ldap-schema-ts-generator
Advanced tools
Comparing version 3.4.0 to 3.4.1
@@ -7,2 +7,9 @@ ### Changelog | ||
#### [v3.4.0](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.3.0...v3.4.0) | ||
> 1 May 2020 | ||
- feat: added more meta data in attributes info [`fe32d2c`](https://github.com/saostad/ldap-schema-ts-generator/commit/fe32d2ce46253cc852150d5f9b0c7daf97bc1a1f) | ||
- doc: change log [`3df4082`](https://github.com/saostad/ldap-schema-ts-generator/commit/3df4082de69e85cff9ced5efa40bde9835f4382e) | ||
#### [v3.3.0](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.2.0...v3.3.0) | ||
@@ -9,0 +16,0 @@ |
@@ -34,11 +34,20 @@ "use strict"; | ||
const objectAttributes = await index_1.getSchemaAttributes({ schemaDn, options }); | ||
// const objectClasses = await getSchemaClasses({ schemaDn, options }); | ||
await index_1.generateAttributesMeta({ | ||
attributes: objectAttributes, | ||
const objectClasses = await index_1.getSchemaClasses({ schemaDn, options }); | ||
// await generateAttributesMeta({ | ||
// attributes: objectAttributes, | ||
// options: { | ||
// generateJsonFile: true, | ||
// generateTsFile: true, | ||
// }, | ||
// }); | ||
// await generateInterfaceFiles({ objectAttributes, objectClasses }); | ||
// test without generic type | ||
await index_1.generateGraphqlTypeFiles({ | ||
objectClasses, | ||
objectAttributes, | ||
options: { | ||
generateJsonFile: true, | ||
generateTsFile: true, | ||
generateClientSideDocuments: true, | ||
}, | ||
}); | ||
// await generateInterfaceFiles({ objectAttributes, objectClasses }); | ||
// // test without generic type but limited classes | ||
// await generateGraphqlTypeFiles({ | ||
@@ -48,5 +57,7 @@ // objectClasses, | ||
// options: { | ||
// justThisClasses: ["user"], | ||
// generateClientSideDocuments: true, | ||
// }, | ||
// }); | ||
// // test with type | ||
// await generateGraphqlTypeFiles<StructuralClasses>({ | ||
@@ -60,2 +71,3 @@ // objectClasses, | ||
// }); | ||
// // test with enum type | ||
// await generateGraphqlTypeFiles<keyof typeof StructuralClassesEnum>({ | ||
@@ -62,0 +74,0 @@ // objectClasses, |
@@ -45,6 +45,7 @@ "use strict"; | ||
exports.jsTypeMapper = jsTypeMapper; | ||
/** [source](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-adts/7cda533e-d7a4-4aec-a517-91d02ff4a1aa) */ | ||
const graphqlTypeMap = { | ||
/**@Note: | ||
* - 2.5.5.11 is Date | ||
* - 2.5.5.16 is the OID for LargeInteger. in Microsoft Active Directory Syntax is restricted to 64-bit integers. | ||
* - 2.5.5.16 is the OID for LargeInteger. in Microsoft Active Directory Syntax is restricted to 64-bit integers, but here I put it as string because javascript doesn't support 64bit int. | ||
* - 2.5.5.14 is Object(DN-String) | ||
*/ | ||
@@ -63,3 +64,2 @@ String: [ | ||
"2.5.5.13", | ||
"2.5.5.11", | ||
"2.5.5.16", | ||
@@ -70,4 +70,8 @@ ], | ||
/** @note: | ||
* - for 2.5.5.1 : https://docs.microsoft.com/en-us/windows/win32/adschema/s-object-ds-dn */ | ||
* - Object(DS-DN) for 2.5.5.1 : https://docs.microsoft.com/en-us/windows/win32/adschema/s-object-ds-dn */ | ||
ID: ["2.5.5.1"], | ||
/** @note: | ||
* - 2.5.5.11 is String(UTC-Time) & String(Generalized-Time) | ||
*/ | ||
Date: ["2.5.5.11"], | ||
}; | ||
@@ -74,0 +78,0 @@ /** get ldap attributeSyntax and return graphql equivalent type */ |
{ | ||
"name": "ldap-schema-ts-generator", | ||
"version": "3.4.0", | ||
"version": "3.4.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,14 +52,14 @@ "repository": { | ||
"@types/jest": "^25.2.1", | ||
"@types/node": "^13.13.4", | ||
"@typescript-eslint/eslint-plugin": "^2.30.0", | ||
"@typescript-eslint/parser": "^2.30.0", | ||
"@types/node": "^13.13.5", | ||
"@typescript-eslint/eslint-plugin": "^2.32.0", | ||
"@typescript-eslint/parser": "^2.32.0", | ||
"auto-changelog": "^2.0.0", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^6.8.0", | ||
"eslint": "^7.0.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-prettier": "^3.1.3", | ||
"jest": "^25.4.0", | ||
"jest": "^26.0.1", | ||
"nodemon": "^2.0.3", | ||
"npm-run-all": "^4.1.5", | ||
"ts-jest": "^25.4.0", | ||
"ts-jest": "^25.5.1", | ||
"typedoc": "^0.17.6", | ||
@@ -66,0 +66,0 @@ "typescript": "^3.8.3" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
336597
7008