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 3.2.0 to 3.3.0

dist/templates/generate-attributes-meta-file.d.ts

8

CHANGELOG.md

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

#### [v3.2.0](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.1.2...v3.2.0)
> 28 April 2020
- package: updated [`07f3412`](https://github.com/saostad/ldap-schema-ts-generator/commit/07f341226d2c7e4c5c06247e863004c1808ed364)
- middle: bug fix generating graphql types [`6ba04e2`](https://github.com/saostad/ldap-schema-ts-generator/commit/6ba04e2117f09e7b6cfd20963cc3576387830456)
- feat: generate client-side query and mutations callsed generateClientSideDocuments [`e06f5ef`](https://github.com/saostad/ldap-schema-ts-generator/commit/e06f5ef4b8b192d041eb41568f31c2fd680836e2)
#### [v3.1.2](https://github.com/saostad/ldap-schema-ts-generator/compare/v3.1.1...v3.1.2)

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

19

dist/app.js

@@ -34,11 +34,18 @@ "use strict";

const objectAttributes = await index_1.getSchemaAttributes({ schemaDn, options });
const objectClasses = await index_1.getSchemaClasses({ schemaDn, options });
// await generateInterfaceFiles({ objectAttributes, objectClasses });
await index_1.generateGraphqlTypeFiles({
objectClasses,
objectAttributes,
// const objectClasses = await getSchemaClasses({ schemaDn, options });
await index_1.generateAttributesMeta({
attributes: objectAttributes,
options: {
generateClientSideDocuments: true,
generateJsonFile: true,
generateTsFile: true,
},
});
// await generateInterfaceFiles({ objectAttributes, objectClasses });
// await generateGraphqlTypeFiles({
// objectClasses,
// objectAttributes,
// options: {
// generateClientSideDocuments: true,
// },
// });
// await generateGraphqlTypeFiles<StructuralClasses>({

@@ -45,0 +52,0 @@ // objectClasses,

@@ -48,2 +48,3 @@ "use strict";

* - 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.
*/

@@ -63,5 +64,6 @@ String: [

"2.5.5.11",
"2.5.5.16",
],
Boolean: ["2.5.5.8"],
Int: ["2.5.5.16", "2.5.5.9"],
Int: ["2.5.5.9"],
/** @note:

@@ -68,0 +70,0 @@ * - for 2.5.5.1 : https://docs.microsoft.com/en-us/windows/win32/adschema/s-object-ds-dn */

@@ -7,1 +7,2 @@ export declare const defaultOutDir: string;

export declare const defaultGraphqlClientDir: string;
export declare const defaultMetaDir: string;

@@ -13,2 +13,3 @@ "use strict";

exports.defaultGraphqlClientDir = path_1.default.join(exports.defaultGraphqlDir, "client");
exports.defaultMetaDir = path_1.default.join(exports.defaultOutDir, "meta");
//# sourceMappingURL=variables.js.map

@@ -12,2 +12,3 @@ export * from "./services";

import { generateStructuralClassesFile } from "./templates/generate-structural-classes-file";
export { generateInterfaceFiles, generateControlsFile, generateCapabilitiesFile, generateExtensionsFile, generatePoliciesFile, generateRelationsFile, mapClassAttributesIncludeInherited, generateGraphqlTypeFiles, generateStructuralClassesFile, };
import { generateAttributesMeta } from "./templates/generate-attributes-meta-file";
export { generateInterfaceFiles, generateControlsFile, generateCapabilitiesFile, generateExtensionsFile, generatePoliciesFile, generateRelationsFile, mapClassAttributesIncludeInherited, generateGraphqlTypeFiles, generateStructuralClassesFile, generateAttributesMeta, };

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

exports.generateStructuralClassesFile = generate_structural_classes_file_1.generateStructuralClassesFile;
const generate_attributes_meta_file_1 = require("./templates/generate-attributes-meta-file");
exports.generateAttributesMeta = generate_attributes_meta_file_1.generateAttributesMeta;
//# sourceMappingURL=index.js.map
import { IClientConfig } from "ldap-ts-client";
import type { SearchEntryObject, CN, AttributeID, AttributeSyntax, IsSingleValued, ShowInAdvancedViewOnly, AdminDisplayName, AdminDescription, OMSyntax, LDAPDisplayName, SystemOnly, SystemFlags, ObjectCategory } from "../typings/general/types";
interface GetSchemaAttributesFnInput {
declare type GetSchemaAttributesFnInput = {
schemaDn: string;
options: Omit<IClientConfig, "baseDN">;
}
};
export interface SchemaAttribute extends Pick<SearchEntryObject, "dn" | "controls"> {

@@ -21,5 +21,4 @@ cn: CN;

}
declare type GetSchemaAttributesFnOutput = Promise<Partial<SchemaAttribute>[]>;
/** get defined an attribute objects in the schema. */
export declare function getSchemaAttributes({ schemaDn, options, }: GetSchemaAttributesFnInput): GetSchemaAttributesFnOutput;
export declare function getSchemaAttributes({ schemaDn, options, }: GetSchemaAttributesFnInput): Promise<Partial<SchemaAttribute>[]>;
export {};

@@ -55,3 +55,3 @@ "use strict";

});
fast_node_logger_1.writeLog(`SchemaCapabilities has been created in ${filePath}`, {
fast_node_logger_1.writeLog(`Schema Capabilities has been generated in ${filePath}`, {
stdout: true,

@@ -58,0 +58,0 @@ });

@@ -18,3 +18,3 @@ "use strict";

"""
${change_case_1.camelCase(el.lDAPDisplayName)}: ${el.isSingleValued ? "" : "["}${type_map_1.graphqlTypeMapper(el.attributeSyntax)}${el.isRequired ? "!" : ""}${el.isSingleValued ? "" : "]"}`).join("\n")}
${change_case_1.camelCase(el.lDAPDisplayName)}: [${type_map_1.graphqlTypeMapper(el.attributeSyntax)}${el.isRequired ? "!" : ""}]`).join("\n")}
}

@@ -21,0 +21,0 @@ `;

{
"name": "ldap-schema-ts-generator",
"version": "3.2.0",
"version": "3.3.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

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