ldap-schema-ts-generator
Advanced tools
Comparing version 3.7.0 to 3.7.1
@@ -7,2 +7,10 @@ ### Changelog | ||
#### [v3.7.0](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.7.0-beta1...v3.7.0) | ||
> 18 May 2020 | ||
- v 3.7.0 [`ec72c7c`](https://github.com/saostad/ldap-schema-ts-generator/commit/ec72c7c0be34c5d9f47d58924eb160801ff3381d) | ||
- package: updated [`b8ca383`](https://github.com/saostad/ldap-schema-ts-generator/commit/b8ca383cbd4391a24d8861e87daef15725d30da6) | ||
- doc: change log [`03a18c3`](https://github.com/saostad/ldap-schema-ts-generator/commit/03a18c39dbb9e6a816b0a378fe4ef99d89c44e0d) | ||
#### [v3.7.0-beta1](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.6.0...v3.7.0-beta1) | ||
@@ -9,0 +17,0 @@ |
@@ -21,25 +21,25 @@ "use strict"; | ||
const schemaDn = await index_1.getSchemaNamingContext({ options }); | ||
// const linkIds = await getLinkIds({ options, schemaDn }); | ||
// const relations = getRelations(linkIds); | ||
// await generateRelationsFile({ relations }); | ||
// const controls = await getSchemaControls({ options }); | ||
// await generateControlsFile({ controls }); | ||
// const extensions = await getSchemaExtensions({ options }); | ||
// await generateExtensionsFile({ extensions }); | ||
// const capabilities = await getSchemaCapabilities({ options }); | ||
// await generateCapabilitiesFile({ capabilities }); | ||
// const policies = await getSchemaPolicies({ options }); | ||
// await generatePoliciesFile({ policies }); | ||
// const classes = await getStructuralSchemaClasses({ schemaDn, options }); | ||
// await generateStructuralClassesFile({ classes }); | ||
const linkIds = await index_1.getLinkIds({ options, schemaDn }); | ||
const relations = index_1.getRelations(linkIds); | ||
await index_1.generateRelationsFile({ relations }); | ||
const controls = await index_1.getSchemaControls({ options }); | ||
await index_1.generateControlsFile({ controls }); | ||
const extensions = await index_1.getSchemaExtensions({ options }); | ||
await index_1.generateExtensionsFile({ extensions }); | ||
const capabilities = await index_1.getSchemaCapabilities({ options }); | ||
await index_1.generateCapabilitiesFile({ capabilities }); | ||
const policies = await index_1.getSchemaPolicies({ options }); | ||
await index_1.generatePoliciesFile({ policies }); | ||
const classes = await index_1.getStructuralSchemaClasses({ schemaDn, options }); | ||
await index_1.generateStructuralClassesFile({ classes }); | ||
const objectAttributes = await index_1.getSchemaAttributes({ schemaDn, options }); | ||
const objectClasses = await index_1.getSchemaClasses({ schemaDn, options }); | ||
// await generateAttributesMeta({ | ||
// attributes: objectAttributes, | ||
// options: { | ||
// generateJsonFile: true, | ||
// generateTsFile: true, | ||
// }, | ||
// }); | ||
// await generateInterfaceFiles({ objectAttributes, objectClasses }); | ||
await index_1.generateAttributesMeta({ | ||
attributes: objectAttributes, | ||
options: { | ||
generateJsonFile: true, | ||
generateTsFile: true, | ||
}, | ||
}); | ||
await index_1.generateInterfaceFiles({ objectAttributes, objectClasses }); | ||
// // test without generic type | ||
@@ -46,0 +46,0 @@ // await generateGraphqlTypeFiles({ |
@@ -16,3 +16,3 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
}; | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
@@ -19,0 +19,0 @@ if (mod && mod.__esModule) return mod; |
@@ -11,3 +11,3 @@ "use strict"; | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
} | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -14,0 +14,0 @@ __exportStar(require("./attribute"), exports); |
@@ -42,4 +42,4 @@ "use strict"; | ||
* - dn: ${data.originalClassFields.dn} | ||
*/ | ||
// @ts-ignore | ||
*/ | ||
// @ts-expect-error | ||
export interface ${change_case_1.pascalCase(data.lDAPDisplayName)} ${data.lDAPDisplayName !== "top" | ||
@@ -57,3 +57,3 @@ ? `extends ${parentClasses.map((el) => change_case_1.pascalCase(el)).join()}` | ||
*/ | ||
${el.systemOnly ? "readonly" : ""} "${el.lDAPDisplayName}" ${el.isRequired ? "" : "?"}: ${type_map_1.jsTypeMapper(el.attributeSyntax)} ${el.isSingleValued ? "" : "[]"};`; | ||
"${el.lDAPDisplayName}" ${el.isRequired ? "" : "?"}: ${type_map_1.jsTypeMapper(el.attributeSyntax)} ${el.isSingleValued ? "" : "[]"};`; | ||
}))} | ||
@@ -60,0 +60,0 @@ } |
@@ -23,3 +23,3 @@ "use strict"; | ||
dn: ID! | ||
${(_a = data.attributes) === null || _a === void 0 ? void 0 : _a.filter((el) => el.systemOnly !== true).map((el) => `""" | ||
${(_a = data.attributes) === null || _a === void 0 ? void 0 : _a.map((el) => `""" | ||
Admin DisplayName: ${el.adminDisplayName} | ||
@@ -26,0 +26,0 @@ Description: ${el.adminDescription} |
{ | ||
"name": "ldap-schema-ts-generator", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"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.", | ||
@@ -52,8 +52,8 @@ "repository": { | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^14.0.1", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"@types/node": "^14.0.5", | ||
"@typescript-eslint/eslint-plugin": "^3.0.1", | ||
"@typescript-eslint/parser": "^3.0.1", | ||
"auto-changelog": "^2.0.0", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^7.0.0", | ||
"eslint": "^7.1.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
@@ -66,3 +66,3 @@ "eslint-plugin-prettier": "^3.1.3", | ||
"typedoc": "^0.17.7", | ||
"typescript": "^3.9.2" | ||
"typescript": "^3.9.3" | ||
}, | ||
@@ -69,0 +69,0 @@ "dependencies": { |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
347539