Socket
Socket
Sign inDemoInstall

ldap-schema-ts-generator

Package Overview
Dependencies
Maintainers
1
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-schema-ts-generator - npm Package Compare versions

Comparing version 2.6.0 to 3.0.0

8

CHANGELOG.md

@@ -7,2 +7,10 @@ ### Changelog

#### [v2.6.0](https://github.com/saostad/ldap-schema-ts-generator/compare/v2.5.1...v2.6.0)
> 24 April 2020
- feat: added option for just generate graphql schema files for specific classes [`a780a91`](https://github.com/saostad/ldap-schema-ts-generator/commit/a780a915c061e594a487083d7116ba187bb5cbfa)
- feat: generateStructuralClassesFile added [`52cda7f`](https://github.com/saostad/ldap-schema-ts-generator/commit/52cda7fda48a22846e04e6232df96455f13fe7d5)
- doc: change log [`9f79aba`](https://github.com/saostad/ldap-schema-ts-generator/commit/9f79aba2b30eadc7a50256c67284d5140960e225)
#### [v2.5.1](https://github.com/saostad/ldap-schema-ts-generator/compare/v2.5.0...v2.5.1)

@@ -9,0 +17,0 @@

25

dist/app.js

@@ -33,4 +33,4 @@ "use strict";

// await generateStructuralClassesFile({ classes });
const objectAttributes = await index_1.getSchemaAttributes({ schemaDn, options });
const objectClasses = await index_1.getSchemaClasses({ schemaDn, options });
// const objectAttributes = await getSchemaAttributes({ schemaDn, options });
// const objectClasses = await getSchemaClasses({ schemaDn, options });
// await generateInterfaceFiles({ objectAttributes, objectClasses });

@@ -41,9 +41,16 @@ // await generateGraphqlTypeFiles({

// });
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
options: {
justThisClasses: ["user", "group", "computer"],
},
});
// await generateGraphqlTypeFiles<StructuralClasses>({
// objectClasses,
// objectAttributes,
// options: {
// justThisClasses: ["user", "group", "computer", "contact"],
// },
// });
// await generateGraphqlTypeFiles<keyof typeof StructuralClassesEnum>({
// objectClasses,
// objectAttributes,
// options: {
// justThisClasses: ["user", "group", "computer", "contact"],
// },
// });
}

@@ -50,0 +57,0 @@ exports.main = main;

@@ -23,3 +23,3 @@ import { SchemaClass, SchemaAttribute } from "../services";

*/
justThisClasses?: Extract<keyof T, string>[];
justThisClasses?: T[];
};

@@ -26,0 +26,0 @@ };

@@ -25,6 +25,11 @@ "use strict";

const textToWriteToFile = `
/** all possible capabilities defined in schema */
export type SchemaCapabilities = ${oids
.map((el) => `"${el.oid}"`)
.join(" | ")} ;
/**
* Enum for schema capabilities
*/
export enum SchemaCapabilities {
export enum SchemaCapabilitiesEnum {
${oids

@@ -34,3 +39,4 @@ .map((el) => `

* - Purpose: ${el.purpose}
* - Source: ${el.source} */
* - Source: ${el.source}
*/
"${el.oid}"= "${el.oid}",

@@ -37,0 +43,0 @@ `)

@@ -25,6 +25,11 @@ "use strict";

const textToWriteToFile = `
/** all possible controls defined in schema */
export type SchemaControls = ${oids
.map((el) => `"${el.oid}"`)
.join(" | ")} ;
/**
* Enum for schema controls
*/
export enum SchemaControls {
export enum SchemaControlsEnum {
${oids

@@ -31,0 +36,0 @@ .map((el) => `

@@ -25,6 +25,11 @@ "use strict";

const textToWriteToFile = `
/** all possible extensions defined in schema */
export type SchemaExtensions = ${oids
.map((el) => `"${el.oid}"`)
.join(" | ")} ;
/**
* Enum for schema extensions
*/
export enum SchemaExtensions {
export enum SchemaExtensionsEnum {
${oids

@@ -31,0 +36,0 @@ .map((el) => `

@@ -25,6 +25,11 @@ "use strict";

const textToWriteToFile = `
/** all possible policies defined in schema */
export type SchemaPolicies = ${policiesWithMeta
.map((el) => `"${el.policy}"`)
.join(" | ")} ;
/**
* Enum for schema policy
* Enum for schema policies
*/
export enum SchemaPolicies {
export enum SchemaPoliciesEnum {
${policiesWithMeta

@@ -31,0 +36,0 @@ .map((el) => `

@@ -15,2 +15,7 @@ "use strict";

const textToWriteToFile = `
/** all possible Structural Classes defined in schema */
export type StructuralClasses = ${classes
.map((el) => `"${el.lDAPDisplayName}"`)
.join(" | ")} ;
/**

@@ -20,3 +25,3 @@ * Enum for schema classes

*/
export enum StructuralClasses {
export enum StructuralClassesEnum {
${classes

@@ -23,0 +28,0 @@ .map((el) => `

{
"name": "ldap-schema-ts-generator",
"version": "2.6.0",
"version": "3.0.0",
"description": "Typescript typedef and meta-data generator for LDAP Schema. It can be useful to interact from schema-aware/type-safe LDAP Client with LDAP servers like active directory.",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc