@baseplate-dev/plugin-auth 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/auth/core/common.js +2 -2
- package/dist/auth/core/common.js.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth/core/components/auth-definition-editor.js +3 -2
- package/dist/auth/core/components/auth-definition-editor.js.map +1 -1
- package/dist/auth/core/schema/plugin-definition.d.ts +22 -12
- package/dist/auth/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth/core/schema/plugin-definition.js +10 -10
- package/dist/auth/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/core/common.js +2 -2
- package/dist/auth0/core/common.js.map +1 -1
- package/dist/auth0/core/components/auth-definition-editor.d.ts.map +1 -1
- package/dist/auth0/core/components/auth-definition-editor.js +3 -2
- package/dist/auth0/core/components/auth-definition-editor.js.map +1 -1
- package/dist/auth0/core/components/role-dialog.d.ts.map +1 -1
- package/dist/auth0/core/components/role-dialog.js +3 -1
- package/dist/auth0/core/components/role-dialog.js.map +1 -1
- package/dist/auth0/core/node.d.ts.map +1 -1
- package/dist/auth0/core/node.js +0 -2
- package/dist/auth0/core/node.js.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.d.ts +19 -9
- package/dist/auth0/core/schema/plugin-definition.d.ts.map +1 -1
- package/dist/auth0/core/schema/plugin-definition.js +7 -7
- package/dist/auth0/core/schema/plugin-definition.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts +43 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js +2 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/index.js.map +1 -1
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts +55 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.d.ts.map +1 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js +52 -0
- package/dist/auth0/generators/fastify/auth0-module/generated/template-renderers.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts +0 -1
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js +2 -12
- package/dist/auth0/generators/react/auth0-callback/auth0-callback.generator.js.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts +150 -0
- package/dist/auth0/generators/react/auth0-callback/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/generated/index.js +2 -0
- package/dist/auth0/generators/react/auth0-callback/generated/index.js.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js +2 -2
- package/dist/auth0/generators/react/auth0-callback/generated/template-paths.js.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.d.ts +162 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.js +54 -0
- package/dist/auth0/generators/react/auth0-callback/generated/template-renderers.js.map +1 -0
- package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js +2 -2
- package/dist/auth0/generators/react/auth0-callback/generated/typed-templates.js.map +1 -1
- package/dist/auth0/generators/react/auth0-callback/templates/routes/{auth0-callback.page.tsx → auth0-callback.tsx} +6 -4
- package/dist/auth0/generators/react/auth0-callback/templates/routes/{signup.page.tsx → signup.tsx} +10 -10
- package/dist/auth0/generators/react/auth0-components/generated/index.d.ts +136 -0
- package/dist/auth0/generators/react/auth0-components/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-components/generated/index.js +2 -0
- package/dist/auth0/generators/react/auth0-components/generated/index.js.map +1 -1
- package/dist/auth0/generators/react/auth0-components/generated/template-renderers.d.ts +145 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-renderers.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-renderers.js +39 -0
- package/dist/auth0/generators/react/auth0-components/generated/template-renderers.js.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts +17 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.d.ts.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js +2 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/index.js.map +1 -1
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts +26 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.d.ts.map +1 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js +39 -0
- package/dist/auth0/generators/react/auth0-hooks/generated/template-renderers.js.map +1 -0
- package/dist/roles/schema.d.ts +29 -10
- package/dist/roles/schema.d.ts.map +1 -1
- package/dist/roles/schema.js +7 -6
- package/dist/roles/schema.js.map +1 -1
- package/dist/web/assets/{__federation_expose_auth0CoreCommon-hOTVdirQ.js → __federation_expose_auth0CoreCommon-BYomLcgs.js} +4 -4
- package/dist/web/assets/__federation_expose_auth0CoreCommon-BYomLcgs.js.map +1 -0
- package/dist/web/assets/{__federation_expose_auth0CoreWeb-xV61eveJ.js → __federation_expose_auth0CoreWeb-T5lCcgD1.js} +14 -8
- package/dist/web/assets/__federation_expose_auth0CoreWeb-T5lCcgD1.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreCommon-CndjGc3R.js → __federation_expose_authCoreCommon-CvirZ1-l.js} +4 -4
- package/dist/web/assets/__federation_expose_authCoreCommon-CvirZ1-l.js.map +1 -0
- package/dist/web/assets/{__federation_expose_authCoreWeb-CJ4-gYAU.js → __federation_expose_authCoreWeb-BXQrtVzN.js} +10 -7
- package/dist/web/assets/__federation_expose_authCoreWeb-BXQrtVzN.js.map +1 -0
- package/dist/web/assets/{__federation_fn_import-Drn1CtCD.js → __federation_fn_import-5oUmvVro.js} +2 -2
- package/dist/web/assets/{__federation_fn_import-Drn1CtCD.js.map → __federation_fn_import-5oUmvVro.js.map} +1 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/{web-CcNXBRTZ.js → web-DURp5OH4.js} +12 -12
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-DURp5OH4.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{project-builder-lib-Tb9xtEo4.js → project-builder-lib-SOC0hDo0.js} +572 -193
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-SOC0hDo0.js.map +1 -0
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-0t9VhwId.js → ui-components-BIPS02bW.js} +5 -5
- package/dist/web/assets/__federation_shared_@baseplate-dev/{ui-components-0t9VhwId.js.map → ui-components-BIPS02bW.js.map} +1 -1
- package/dist/web/assets/{index-CZqpaSlN.js → index-BAu6L5Vh.js} +2 -2
- package/dist/web/assets/{index-CZqpaSlN.js.map → index-BAu6L5Vh.js.map} +1 -1
- package/dist/web/assets/{index.esm-SbEmZvZj.js → index.esm-C_MMkPsN.js} +2 -2
- package/dist/web/assets/{index.esm-SbEmZvZj.js.map → index.esm-C_MMkPsN.js.map} +1 -1
- package/dist/web/assets/{model-merger-BLh0ERqk.js → model-merger-qTOhcMVY.js} +115 -540
- package/dist/web/assets/model-merger-qTOhcMVY.js.map +1 -0
- package/dist/web/assets/plugin-definition-7hIqggth.js +36 -0
- package/dist/web/assets/plugin-definition-7hIqggth.js.map +1 -0
- package/dist/web/assets/plugin-definition-BHJF50Kq.js +24 -0
- package/dist/web/assets/plugin-definition-BHJF50Kq.js.map +1 -0
- package/dist/web/assets/{react-BiQIVSjI.js → react-8Ha9uuy8.js} +2 -2
- package/dist/web/assets/{react-BiQIVSjI.js.map → react-8Ha9uuy8.js.map} +1 -1
- package/dist/web/assets/remoteEntry.js +4 -4
- package/dist/web/assets/schema-BdX0t_km.js +72 -0
- package/dist/web/assets/schema-BdX0t_km.js.map +1 -0
- package/dist/web/assets/{styles-BPCQNyj6.js → styles-3Wg6h_d_.js} +2 -2
- package/dist/web/assets/{styles-BPCQNyj6.js.map → styles-3Wg6h_d_.js.map} +1 -1
- package/package.json +10 -10
- package/dist/web/assets/__federation_expose_auth0CoreCommon-hOTVdirQ.js.map +0 -1
- package/dist/web/assets/__federation_expose_auth0CoreWeb-xV61eveJ.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreCommon-CndjGc3R.js.map +0 -1
- package/dist/web/assets/__federation_expose_authCoreWeb-CJ4-gYAU.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib/web-CcNXBRTZ.js.map +0 -1
- package/dist/web/assets/__federation_shared_@baseplate-dev/project-builder-lib-Tb9xtEo4.js.map +0 -1
- package/dist/web/assets/model-merger-BLh0ERqk.js.map +0 -1
- package/dist/web/assets/plugin-definition-CNgM5Juv.js +0 -34
- package/dist/web/assets/plugin-definition-CNgM5Juv.js.map +0 -1
- package/dist/web/assets/plugin-definition-CQ2no5O3.js +0 -22
- package/dist/web/assets/plugin-definition-CQ2no5O3.js.map +0 -1
- package/dist/web/assets/schema-CaLuKwEg.js +0 -67
- package/dist/web/assets/schema-CaLuKwEg.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { importShared } from './__federation_fn_import-
|
|
1
|
+
import { importShared } from './__federation_fn_import-5oUmvVro.js';
|
|
2
2
|
|
|
3
3
|
function createInitializedPluginSpec(spec, implementation) {
|
|
4
4
|
return { spec, implementation };
|
|
@@ -572,46 +572,116 @@ function createEntityType(name, options) {
|
|
|
572
572
|
return new DefinitionEntityType(name, prefix, parentType);
|
|
573
573
|
}
|
|
574
574
|
|
|
575
|
-
|
|
575
|
+
class DefinitionReferenceMarker {
|
|
576
|
+
constructor(value, reference) {
|
|
577
|
+
Object.defineProperty(this, "value", {
|
|
578
|
+
enumerable: true,
|
|
579
|
+
configurable: true,
|
|
580
|
+
writable: true,
|
|
581
|
+
value: value
|
|
582
|
+
});
|
|
583
|
+
Object.defineProperty(this, "reference", {
|
|
584
|
+
enumerable: true,
|
|
585
|
+
configurable: true,
|
|
586
|
+
writable: true,
|
|
587
|
+
value: reference
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
toString() {
|
|
591
|
+
return this.value ?? '';
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
const REF_ANNOTATIONS_MARKER_SYMBOL = Symbol('refAnnotationsMarker');
|
|
576
595
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
// run builder
|
|
586
|
-
const pluginContext = {
|
|
587
|
-
pluginStore: this._def.pluginStore,
|
|
588
|
-
};
|
|
589
|
-
return this._def.innerType._parse({
|
|
590
|
-
...input,
|
|
591
|
-
parent: {
|
|
592
|
-
...input.parent,
|
|
593
|
-
common: {
|
|
594
|
-
...input.parent.common,
|
|
595
|
-
[zodPluginSymbol]: pluginContext,
|
|
596
|
-
},
|
|
597
|
-
},
|
|
596
|
+
const {z: z$1} = await importShared('zod');
|
|
597
|
+
function extendParserContextWithRefs({ transformReferences, }) {
|
|
598
|
+
function withRef(reference) {
|
|
599
|
+
return z$1.string().transform((value) => {
|
|
600
|
+
if (transformReferences && value) {
|
|
601
|
+
return new DefinitionReferenceMarker(value, reference);
|
|
602
|
+
}
|
|
603
|
+
return value;
|
|
598
604
|
});
|
|
599
605
|
}
|
|
600
|
-
|
|
601
|
-
|
|
606
|
+
function withEnt(schema, entity) {
|
|
607
|
+
if (!('id' in schema.shape)) {
|
|
608
|
+
throw new Error(`Entity must have an id field. Entity type: ${entity.type.name}. Schema keys: ${Object.keys(schema.shape).join(', ')}`);
|
|
609
|
+
}
|
|
610
|
+
return schema.transform((value) => {
|
|
611
|
+
// Check if the id is valid
|
|
612
|
+
if (!('id' in value) || !entity.type.isId(value.id)) {
|
|
613
|
+
throw new Error(`Invalid id for entity ${entity.type.name}. Id: ${value.id}`);
|
|
614
|
+
}
|
|
615
|
+
if (transformReferences) {
|
|
616
|
+
const existingAnnotations = REF_ANNOTATIONS_MARKER_SYMBOL in value
|
|
617
|
+
? value[REF_ANNOTATIONS_MARKER_SYMBOL]
|
|
618
|
+
: undefined;
|
|
619
|
+
return {
|
|
620
|
+
...value,
|
|
621
|
+
[REF_ANNOTATIONS_MARKER_SYMBOL]: {
|
|
622
|
+
entities: [...(existingAnnotations?.entities ?? []), entity],
|
|
623
|
+
references: existingAnnotations?.references ?? [],
|
|
624
|
+
contextPaths: existingAnnotations?.contextPaths ?? [],
|
|
625
|
+
},
|
|
626
|
+
};
|
|
627
|
+
}
|
|
628
|
+
return value;
|
|
629
|
+
});
|
|
602
630
|
}
|
|
631
|
+
function withRefBuilder(schema, builder) {
|
|
632
|
+
return schema.transform((value) => {
|
|
633
|
+
if (!value) {
|
|
634
|
+
return value;
|
|
635
|
+
}
|
|
636
|
+
if (typeof value !== 'object') {
|
|
637
|
+
throw new TypeError(`refBuilder requires an object, but got ${typeof value}`);
|
|
638
|
+
}
|
|
639
|
+
const existingAnnotations = REF_ANNOTATIONS_MARKER_SYMBOL in value
|
|
640
|
+
? value[REF_ANNOTATIONS_MARKER_SYMBOL]
|
|
641
|
+
: undefined;
|
|
642
|
+
const entities = existingAnnotations?.entities ?? [];
|
|
643
|
+
const references = existingAnnotations?.references ?? [];
|
|
644
|
+
const contextPaths = existingAnnotations?.contextPaths ?? [];
|
|
645
|
+
const refBuilder = {
|
|
646
|
+
addReference: (reference) => {
|
|
647
|
+
references.push(reference);
|
|
648
|
+
},
|
|
649
|
+
addEntity: (entity) => {
|
|
650
|
+
entities.push(entity);
|
|
651
|
+
},
|
|
652
|
+
addPathToContext: (path, type, context) => {
|
|
653
|
+
contextPaths.push({ path, type, context });
|
|
654
|
+
},
|
|
655
|
+
};
|
|
656
|
+
builder?.(refBuilder, value);
|
|
657
|
+
if (transformReferences) {
|
|
658
|
+
return {
|
|
659
|
+
...value,
|
|
660
|
+
[REF_ANNOTATIONS_MARKER_SYMBOL]: {
|
|
661
|
+
entities,
|
|
662
|
+
references,
|
|
663
|
+
contextPaths,
|
|
664
|
+
},
|
|
665
|
+
};
|
|
666
|
+
}
|
|
667
|
+
return value;
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
return {
|
|
671
|
+
withRef,
|
|
672
|
+
withEnt,
|
|
673
|
+
withRefBuilder,
|
|
674
|
+
};
|
|
603
675
|
}
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
function zPluginWrapper(type, pluginStore) {
|
|
614
|
-
return ZodPluginWrapper.create(type, pluginStore);
|
|
676
|
+
|
|
677
|
+
function createDefinitionSchemaParserContext(options) {
|
|
678
|
+
return {
|
|
679
|
+
...options,
|
|
680
|
+
...extendParserContextWithRefs(options),
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
function definitionSchema(creator) {
|
|
684
|
+
return (context) => creator(context);
|
|
615
685
|
}
|
|
616
686
|
|
|
617
687
|
function isDeepKey(key) {
|
|
@@ -895,508 +965,11 @@ function set(obj, path, value) {
|
|
|
895
965
|
return obj;
|
|
896
966
|
}
|
|
897
967
|
|
|
898
|
-
const {z: z$1,ZodType} = await importShared('zod');
|
|
899
|
-
|
|
900
|
-
/**
|
|
901
|
-
* Zod reference ID schema: a string with a minimum length of 1.
|
|
902
|
-
*/
|
|
903
|
-
const zRefId = z$1.string().min(1);
|
|
904
|
-
/**
|
|
905
|
-
* Determines whether the given object is a Promise.
|
|
906
|
-
* @param object - The value to test.
|
|
907
|
-
* @returns True if the value is a Promise, false otherwise.
|
|
908
|
-
*/
|
|
909
|
-
function isPromise(object) {
|
|
910
|
-
return object instanceof Promise;
|
|
911
|
-
}
|
|
912
|
-
/**
|
|
913
|
-
* Creates a definition entity name resolver.
|
|
914
|
-
* @param entityNameResolver - The entity name resolver.
|
|
915
|
-
* @returns The definition entity name resolver.
|
|
916
|
-
*/
|
|
917
|
-
function createDefinitionEntityNameResolver(entityNameResolver) {
|
|
918
|
-
return entityNameResolver;
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* ZodRefBuilder is responsible for constructing reference paths, and registering
|
|
922
|
-
* references and entities as defined in a Zod schema.
|
|
923
|
-
*
|
|
924
|
-
* The builder uses a prefix (usually the current parsing path) and context (a
|
|
925
|
-
* shared map for resolving relative references) to build complete reference paths.
|
|
926
|
-
*
|
|
927
|
-
* @template TInput - The type of the input data being parsed.
|
|
928
|
-
*/
|
|
929
|
-
class ZodRefBuilder {
|
|
930
|
-
/**
|
|
931
|
-
* Creates a new builder instance.
|
|
932
|
-
* @param pathPrefix - The starting path for all references.
|
|
933
|
-
* @param context - Shared context including a path map and deserialize flag.
|
|
934
|
-
* @param data - The data being parsed.
|
|
935
|
-
*/
|
|
936
|
-
constructor(pathPrefix, context, data) {
|
|
937
|
-
Object.defineProperty(this, "references", {
|
|
938
|
-
enumerable: true,
|
|
939
|
-
configurable: true,
|
|
940
|
-
writable: true,
|
|
941
|
-
value: void 0
|
|
942
|
-
});
|
|
943
|
-
Object.defineProperty(this, "entitiesWithNameResolver", {
|
|
944
|
-
enumerable: true,
|
|
945
|
-
configurable: true,
|
|
946
|
-
writable: true,
|
|
947
|
-
value: void 0
|
|
948
|
-
});
|
|
949
|
-
Object.defineProperty(this, "pathPrefix", {
|
|
950
|
-
enumerable: true,
|
|
951
|
-
configurable: true,
|
|
952
|
-
writable: true,
|
|
953
|
-
value: void 0
|
|
954
|
-
});
|
|
955
|
-
Object.defineProperty(this, "context", {
|
|
956
|
-
enumerable: true,
|
|
957
|
-
configurable: true,
|
|
958
|
-
writable: true,
|
|
959
|
-
value: void 0
|
|
960
|
-
});
|
|
961
|
-
Object.defineProperty(this, "pathMap", {
|
|
962
|
-
enumerable: true,
|
|
963
|
-
configurable: true,
|
|
964
|
-
writable: true,
|
|
965
|
-
value: void 0
|
|
966
|
-
});
|
|
967
|
-
Object.defineProperty(this, "data", {
|
|
968
|
-
enumerable: true,
|
|
969
|
-
configurable: true,
|
|
970
|
-
writable: true,
|
|
971
|
-
value: void 0
|
|
972
|
-
});
|
|
973
|
-
this.references = [];
|
|
974
|
-
this.entitiesWithNameResolver = [];
|
|
975
|
-
this.pathPrefix = pathPrefix;
|
|
976
|
-
this.context = context;
|
|
977
|
-
this.pathMap = new Map();
|
|
978
|
-
this.data = data;
|
|
979
|
-
}
|
|
980
|
-
/**
|
|
981
|
-
* Converts a dot-separated string path into an array of keys.
|
|
982
|
-
* @param path - A string (e.g. "a.b.0.c") representing the path.
|
|
983
|
-
* @returns An array of keys (numbers for numeric strings, otherwise strings).
|
|
984
|
-
*/
|
|
985
|
-
_constructPathWithoutPrefix(path) {
|
|
986
|
-
if (!path)
|
|
987
|
-
return [];
|
|
988
|
-
const pathComponents = path
|
|
989
|
-
.split('.')
|
|
990
|
-
.map((key) => (/^[0-9]+$/.test(key) ? Number.parseInt(key, 10) : key));
|
|
991
|
-
return pathComponents;
|
|
992
|
-
}
|
|
993
|
-
/**
|
|
994
|
-
* Prepends the builder's path prefix to the provided path.
|
|
995
|
-
* @param path - The dot-separated path string.
|
|
996
|
-
* @returns The complete reference path as an array.
|
|
997
|
-
*/
|
|
998
|
-
_constructPath(path) {
|
|
999
|
-
if (!path)
|
|
1000
|
-
return this.pathPrefix;
|
|
1001
|
-
return [...this.pathPrefix, ...this._constructPathWithoutPrefix(path)];
|
|
1002
|
-
}
|
|
1003
|
-
/**
|
|
1004
|
-
* Constructs a reference path that may be defined directly as a string or indirectly
|
|
1005
|
-
* via a context object. If a context object is provided, the function looks up the
|
|
1006
|
-
* actual path from the builder's context.
|
|
1007
|
-
*
|
|
1008
|
-
* @param path - Either a dot-separated string path or an object with a context key.
|
|
1009
|
-
* @param expectedEntityType - The entity type expected for this context.
|
|
1010
|
-
* @returns The resolved reference path.
|
|
1011
|
-
* @throws If the context cannot be found or its type does not match.
|
|
1012
|
-
*/
|
|
1013
|
-
_constructPathWithContext(path, expectedEntityType) {
|
|
1014
|
-
if (typeof path === 'string') {
|
|
1015
|
-
return this._constructPath(path);
|
|
1016
|
-
}
|
|
1017
|
-
// Lookup the context for the given key.
|
|
1018
|
-
const pathContext = this.context.pathMap.get(path.context);
|
|
1019
|
-
if (!pathContext) {
|
|
1020
|
-
throw new Error(`Could not find context for ${path.context} from ${this.pathPrefix.join('.')}`);
|
|
1021
|
-
}
|
|
1022
|
-
if (pathContext.type !== expectedEntityType) {
|
|
1023
|
-
throw new Error(`Attempted to retrieve context for ${path.context} from ${this.pathPrefix.join('.')} expecting ${expectedEntityType.name}, but found ${pathContext.type.name}`);
|
|
1024
|
-
}
|
|
1025
|
-
return pathContext.path;
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* Registers a reference based on the provided input definition.
|
|
1029
|
-
*
|
|
1030
|
-
* Flow:
|
|
1031
|
-
* 1. Validate that the parent path is provided if required (and vice versa).
|
|
1032
|
-
* 2. Compute the reference path; if the path is empty, use the entire data.
|
|
1033
|
-
* 3. If the referenced value is null or undefined, skip adding the reference.
|
|
1034
|
-
* 4. Otherwise, add the reference and, if requested, register its context.
|
|
1035
|
-
*
|
|
1036
|
-
* @param reference - The reference definition.
|
|
1037
|
-
* @throws If parent path usage is incorrect.
|
|
1038
|
-
*/
|
|
1039
|
-
addReference(reference) {
|
|
1040
|
-
if (!reference.type.parentType && reference.parentPath) {
|
|
1041
|
-
throw new Error(`Parent path does nothing since reference does not have parent`);
|
|
1042
|
-
}
|
|
1043
|
-
if (reference.type.parentType && !reference.parentPath) {
|
|
1044
|
-
throw new Error(`Parent path required if reference type has parent type`);
|
|
1045
|
-
}
|
|
1046
|
-
// Compute the path without prefix once.
|
|
1047
|
-
const refPathWithoutPrefix = this._constructPathWithoutPrefix(reference.path);
|
|
1048
|
-
// If the path is empty, use the entire data; otherwise, retrieve the value.
|
|
1049
|
-
const refValue = refPathWithoutPrefix.length === 0
|
|
1050
|
-
? this.data
|
|
1051
|
-
: get(this.data, refPathWithoutPrefix);
|
|
1052
|
-
if (refValue === undefined || refValue === null)
|
|
1053
|
-
return;
|
|
1054
|
-
const fullPath = this._constructPath(reference.path);
|
|
1055
|
-
this.references.push({
|
|
1056
|
-
type: reference.type,
|
|
1057
|
-
path: fullPath,
|
|
1058
|
-
parentPath: reference.parentPath &&
|
|
1059
|
-
reference.type.parentType &&
|
|
1060
|
-
this._constructPathWithContext(reference.parentPath, reference.type.parentType),
|
|
1061
|
-
onDelete: reference.onDelete,
|
|
1062
|
-
});
|
|
1063
|
-
// Optionally, add this path to the shared context.
|
|
1064
|
-
if (reference.addContext) {
|
|
1065
|
-
this._addPathToContext(fullPath, reference.type, reference.addContext);
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
/**
|
|
1069
|
-
* Registers an entity based on the provided definition.
|
|
1070
|
-
*
|
|
1071
|
-
* Flow:
|
|
1072
|
-
* 1. Validate that not both a name and a name reference path are provided.
|
|
1073
|
-
* 2. Compute the full entity path.
|
|
1074
|
-
* 3. Resolve the entity ID:
|
|
1075
|
-
* - Use the provided idPath if available; otherwise, default to appending 'id'
|
|
1076
|
-
* to the entity path.
|
|
1077
|
-
* - If no id is found, generate a new one.
|
|
1078
|
-
* 4. Resolve the entity name:
|
|
1079
|
-
* - Use the provided resolveName if available; otherwise, default to using the
|
|
1080
|
-
* name path.
|
|
1081
|
-
* 5. Register the entity in either the direct entities list or the name-ref list.
|
|
1082
|
-
* 6. Optionally, add the entity’s id path to the shared context.
|
|
1083
|
-
*
|
|
1084
|
-
* @param entity - The entity definition.
|
|
1085
|
-
* @throws If both name and nameRefPath are provided or if no name is resolved.
|
|
1086
|
-
*/
|
|
1087
|
-
addEntity(entity) {
|
|
1088
|
-
// Build the full path for the entity.
|
|
1089
|
-
const path = this._constructPath(entity.path);
|
|
1090
|
-
// Resolve the id path: if provided use it; otherwise, assume the id is at "entity.path.id"
|
|
1091
|
-
const idPath = entity.idPath
|
|
1092
|
-
? this._constructPathWithoutPrefix(entity.idPath)
|
|
1093
|
-
: [...this._constructPathWithoutPrefix(entity.path), 'id'];
|
|
1094
|
-
// TODO [>=0.2.0] Remove the fallback to generateNewId once we've released a new major verison.
|
|
1095
|
-
const id = get(this.data, idPath) ??
|
|
1096
|
-
entity.type.generateNewId();
|
|
1097
|
-
if (!get(this.data, idPath)) {
|
|
1098
|
-
set(this.data, idPath, id);
|
|
1099
|
-
}
|
|
1100
|
-
if (!entity.type.isId(id)) {
|
|
1101
|
-
throw new Error(`Invalid id: ${id} for entity ${entity.type.name}`);
|
|
1102
|
-
}
|
|
1103
|
-
// Resolve the name: if getNameResolver is provided, use it to build the name resolver; otherwise,
|
|
1104
|
-
// use the default name resolver.
|
|
1105
|
-
const getNameResolver = entity.getNameResolver ?? ((value) => get(value, 'name'));
|
|
1106
|
-
const nameResolver = getNameResolver(this.data);
|
|
1107
|
-
// Base entity definition shared between regular entities and those with a name reference.
|
|
1108
|
-
const entityBase = {
|
|
1109
|
-
id,
|
|
1110
|
-
type: entity.type,
|
|
1111
|
-
path,
|
|
1112
|
-
idPath: [...this.pathPrefix, ...idPath],
|
|
1113
|
-
parentPath: entity.parentPath &&
|
|
1114
|
-
entity.type.parentType &&
|
|
1115
|
-
this._constructPathWithContext(entity.parentPath, entity.type.parentType),
|
|
1116
|
-
};
|
|
1117
|
-
this.entitiesWithNameResolver.push({
|
|
1118
|
-
...entityBase,
|
|
1119
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- needed to allow more specific generic typed to be put in here
|
|
1120
|
-
nameResolver: typeof nameResolver === 'string'
|
|
1121
|
-
? { resolveName: () => nameResolver }
|
|
1122
|
-
: nameResolver,
|
|
1123
|
-
});
|
|
1124
|
-
// Optionally add the id path to the context.
|
|
1125
|
-
if (entity.addContext) {
|
|
1126
|
-
this._addPathToContext([...this.pathPrefix, ...idPath], entity.type, entity.addContext);
|
|
1127
|
-
}
|
|
1128
|
-
}
|
|
1129
|
-
/**
|
|
1130
|
-
* Registers a given path into the builder's context map.
|
|
1131
|
-
* @param path - The full reference path.
|
|
1132
|
-
* @param type - The entity type associated with the path.
|
|
1133
|
-
* @param context - A unique key to identify this context.
|
|
1134
|
-
* @throws If the context key is already registered.
|
|
1135
|
-
*/
|
|
1136
|
-
_addPathToContext(path, type, context) {
|
|
1137
|
-
if (this.pathMap.has(context)) {
|
|
1138
|
-
throw new Error(`Context path already defined for ${context} at ${this.pathPrefix.join('.')}`);
|
|
1139
|
-
}
|
|
1140
|
-
this.pathMap.set(context, { path, type });
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* Convenience method that builds a full path from a dot-separated string and
|
|
1144
|
-
* adds it to the context.
|
|
1145
|
-
* @param path - The dot-separated string path.
|
|
1146
|
-
* @param type - The entity type.
|
|
1147
|
-
* @param context - The context key.
|
|
1148
|
-
*/
|
|
1149
|
-
addPathToContext(path, type, context) {
|
|
1150
|
-
this._addPathToContext(this._constructPath(path), type, context);
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
/**
|
|
1154
|
-
* Unique symbol used to store ZodRef context in the parent’s common context.
|
|
1155
|
-
*/
|
|
1156
|
-
const zodRefSymbol = Symbol('zod-ref');
|
|
1157
|
-
/**
|
|
1158
|
-
* ZodRef wraps an inner Zod type and enhances it with the ability to register
|
|
1159
|
-
* and process entity references. During parsing, it delegates to a builder (if present)
|
|
1160
|
-
* to collect references and entities before delegating to the inner type.
|
|
1161
|
-
*
|
|
1162
|
-
* @template T - The inner Zod type.
|
|
1163
|
-
*/
|
|
1164
|
-
class ZodRef extends ZodType {
|
|
1165
|
-
/**
|
|
1166
|
-
* The core parse method that:
|
|
1167
|
-
* 1. Retrieves (or creates) the builder context from the parent.
|
|
1168
|
-
* 2. Runs the builder function (if present) to register references/entities.
|
|
1169
|
-
* 3. Delegates parsing to the inner type.
|
|
1170
|
-
* 4. Transforms the output to replace entity id placeholders with generated ids.
|
|
1171
|
-
*
|
|
1172
|
-
* @param input - The Zod parse input.
|
|
1173
|
-
* @returns The parse result.
|
|
1174
|
-
*/
|
|
1175
|
-
_parse(input) {
|
|
1176
|
-
const context = input.parent.common;
|
|
1177
|
-
// If no builder context or builder function exists, simply parse using the inner type.
|
|
1178
|
-
const zodRefContext = context[zodRefSymbol];
|
|
1179
|
-
if (!zodRefContext || !this._def.builder) {
|
|
1180
|
-
return this._def.innerType._parse(input);
|
|
1181
|
-
}
|
|
1182
|
-
// Create a new builder instance for the current parsing context.
|
|
1183
|
-
const builder = new ZodRefBuilder(input.path, zodRefContext.context, input.data);
|
|
1184
|
-
// Execute the builder function to register references/entities.
|
|
1185
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
|
|
1186
|
-
this._def.builder(builder, input.data);
|
|
1187
|
-
zodRefContext.references.push(...builder.references);
|
|
1188
|
-
zodRefContext.entitiesWithNameResolver.push(...builder.entitiesWithNameResolver);
|
|
1189
|
-
// Re-parse using the inner type but merge the updated context.
|
|
1190
|
-
const parseOutput = this._def.innerType._parse({
|
|
1191
|
-
...input,
|
|
1192
|
-
path: input.path,
|
|
1193
|
-
parent: {
|
|
1194
|
-
...input.parent,
|
|
1195
|
-
common: {
|
|
1196
|
-
...input.parent.common,
|
|
1197
|
-
[zodRefSymbol]: {
|
|
1198
|
-
...zodRefContext,
|
|
1199
|
-
context: {
|
|
1200
|
-
...zodRefContext.context,
|
|
1201
|
-
// Merge new context entries from the builder.
|
|
1202
|
-
pathMap: new Map([
|
|
1203
|
-
...zodRefContext.context.pathMap,
|
|
1204
|
-
...builder.pathMap,
|
|
1205
|
-
]),
|
|
1206
|
-
},
|
|
1207
|
-
},
|
|
1208
|
-
},
|
|
1209
|
-
},
|
|
1210
|
-
});
|
|
1211
|
-
/**
|
|
1212
|
-
* Transforms the output of the inner parse by iterating through all registered
|
|
1213
|
-
* entities and assigning the id to the corresponding path in the output in case
|
|
1214
|
-
* it was generated by the builder.
|
|
1215
|
-
*
|
|
1216
|
-
* @param output - The result from the inner parse.
|
|
1217
|
-
* @returns The transformed parse output.
|
|
1218
|
-
*/
|
|
1219
|
-
function transformParseOutput(output) {
|
|
1220
|
-
if (output.status === 'aborted')
|
|
1221
|
-
return output;
|
|
1222
|
-
// For each entity, assign the id to the corresponding path in the output
|
|
1223
|
-
// in the event that it was generated by the builder.
|
|
1224
|
-
for (const entity of builder.entitiesWithNameResolver) {
|
|
1225
|
-
set(output.value, entity.idPath.slice(input.path.length), entity.id);
|
|
1226
|
-
}
|
|
1227
|
-
return output;
|
|
1228
|
-
}
|
|
1229
|
-
// If the parse result is a Promise, attach the transformation asynchronously.
|
|
1230
|
-
if (isPromise(parseOutput)) {
|
|
1231
|
-
return parseOutput.then(transformParseOutput);
|
|
1232
|
-
}
|
|
1233
|
-
return transformParseOutput(parseOutput);
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* Returns the inner Zod type.
|
|
1237
|
-
* @returns The wrapped inner Zod type.
|
|
1238
|
-
*/
|
|
1239
|
-
innerType() {
|
|
1240
|
-
return this._def.innerType;
|
|
1241
|
-
}
|
|
1242
|
-
/**
|
|
1243
|
-
* Adds an entity registration to the current ZodRef.
|
|
1244
|
-
*
|
|
1245
|
-
* @param entity - Either an entity definition or a function that returns one.
|
|
1246
|
-
* @returns A new ZodRef instance with the entity registration added.
|
|
1247
|
-
*/
|
|
1248
|
-
addEntity(entity) {
|
|
1249
|
-
return ZodRef.create(this, (builder, data) => {
|
|
1250
|
-
builder.addEntity(typeof entity === 'function' ? entity(data) : entity);
|
|
1251
|
-
});
|
|
1252
|
-
}
|
|
1253
|
-
/**
|
|
1254
|
-
* Adds a reference registration to the current ZodRef.
|
|
1255
|
-
*
|
|
1256
|
-
* @param reference - Either a reference definition or a function that returns one.
|
|
1257
|
-
* @returns A new ZodRef instance with the reference registration added.
|
|
1258
|
-
*/
|
|
1259
|
-
addReference(reference) {
|
|
1260
|
-
return ZodRef.create(this, (builder, data) => {
|
|
1261
|
-
builder.addReference(typeof reference === 'function' ? reference(data) : reference);
|
|
1262
|
-
});
|
|
1263
|
-
}
|
|
1264
|
-
/**
|
|
1265
|
-
* Applies a custom builder function to the ZodRef.
|
|
1266
|
-
* @param builder - The builder function that registers additional references/entities.
|
|
1267
|
-
* @returns A new ZodRef instance with the builder applied.
|
|
1268
|
-
*/
|
|
1269
|
-
refBuilder(builder) {
|
|
1270
|
-
return ZodRef.create(this, builder);
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* Creates a new ZodRef instance wrapping a given Zod type with an optional builder.
|
|
1275
|
-
* @param type - The inner Zod type.
|
|
1276
|
-
* @param builder - Optional builder function to register references/entities.
|
|
1277
|
-
* @returns A new ZodRef instance.
|
|
1278
|
-
*/
|
|
1279
|
-
Object.defineProperty(ZodRef, "create", {
|
|
1280
|
-
enumerable: true,
|
|
1281
|
-
configurable: true,
|
|
1282
|
-
writable: true,
|
|
1283
|
-
value: (type, builder) => new ZodRef({
|
|
1284
|
-
innerType: type,
|
|
1285
|
-
builder,
|
|
1286
|
-
})
|
|
1287
|
-
});
|
|
1288
|
-
/**
|
|
1289
|
-
* Convenience function for creating a ZodRef using a schema and an optional builder.
|
|
1290
|
-
* @param schema - The base Zod schema.
|
|
1291
|
-
* @param builder - Optional builder function.
|
|
1292
|
-
* @returns A new ZodRef instance.
|
|
1293
|
-
*/
|
|
1294
|
-
function zRefBuilder(schema, builder) {
|
|
1295
|
-
return ZodRef.create(schema, builder);
|
|
1296
|
-
}
|
|
1297
|
-
/**
|
|
1298
|
-
* Convenience function for creating a ZodRef with a reference added.
|
|
1299
|
-
* @param schema - The base Zod schema.
|
|
1300
|
-
* @param reference - Either a reference definition or a function returning one.
|
|
1301
|
-
* @returns A new ZodRef instance with the reference registration.
|
|
1302
|
-
*/
|
|
1303
|
-
function zRef(schema, reference) {
|
|
1304
|
-
return ZodRef.create(schema).addReference(reference);
|
|
1305
|
-
}
|
|
1306
|
-
/**
|
|
1307
|
-
* Convenience function for creating a ZodRef that registers an entity.
|
|
1308
|
-
* This function also sets the id key on the schema using zRefId.
|
|
1309
|
-
*
|
|
1310
|
-
* @template TObject - The Zod object type.
|
|
1311
|
-
* @template TEntityType - The entity type.
|
|
1312
|
-
* @template TPath - The path type.
|
|
1313
|
-
* @param schema - The base Zod object schema.
|
|
1314
|
-
* @param entity - Either an entity definition or a function returning one.
|
|
1315
|
-
* @returns A new ZodRef instance with the entity registration.
|
|
1316
|
-
*/
|
|
1317
|
-
function zEnt(schema, entity) {
|
|
1318
|
-
// Set the "id" key on the schema using zRefId and then register the entity.
|
|
1319
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-explicit-any
|
|
1320
|
-
return ZodRef.create(schema.setKey('id', zRefId)).addEntity(entity);
|
|
1321
|
-
}
|
|
1322
|
-
/**
|
|
1323
|
-
* ZodRefWrapper is used for initializing parsing that collects references and entities.
|
|
1324
|
-
*
|
|
1325
|
-
* @template T - The inner Zod type.
|
|
1326
|
-
*/
|
|
1327
|
-
class ZodRefWrapper extends ZodType {
|
|
1328
|
-
/**
|
|
1329
|
-
* Core parse method that:
|
|
1330
|
-
* 1. Initializes a fresh reference context.
|
|
1331
|
-
* 2. Parses using the inner type while injecting the context.
|
|
1332
|
-
* 3. Returns a payload containing the parsed data, along with references and entities.
|
|
1333
|
-
*
|
|
1334
|
-
* @param input - The parse input.
|
|
1335
|
-
* @returns The parsed payload.
|
|
1336
|
-
*/
|
|
1337
|
-
_parse(input) {
|
|
1338
|
-
// Initialize the reference context.
|
|
1339
|
-
const refContext = {
|
|
1340
|
-
context: {
|
|
1341
|
-
pathMap: new Map(),
|
|
1342
|
-
},
|
|
1343
|
-
references: [],
|
|
1344
|
-
entitiesWithNameResolver: [],
|
|
1345
|
-
};
|
|
1346
|
-
// Inject the refContext into the parent's common context and parse the inner type.
|
|
1347
|
-
const parseOutput = this._def.innerType._parse({
|
|
1348
|
-
...input,
|
|
1349
|
-
parent: {
|
|
1350
|
-
...input.parent,
|
|
1351
|
-
common: {
|
|
1352
|
-
...input.parent.common,
|
|
1353
|
-
[zodRefSymbol]: refContext,
|
|
1354
|
-
},
|
|
1355
|
-
},
|
|
1356
|
-
});
|
|
1357
|
-
function transformParseOutput(output) {
|
|
1358
|
-
if (output.status === 'aborted')
|
|
1359
|
-
return output;
|
|
1360
|
-
return {
|
|
1361
|
-
...output,
|
|
1362
|
-
value: {
|
|
1363
|
-
data: output.value,
|
|
1364
|
-
entitiesWithNameResolver: refContext.entitiesWithNameResolver,
|
|
1365
|
-
references: refContext.references,
|
|
1366
|
-
},
|
|
1367
|
-
};
|
|
1368
|
-
}
|
|
1369
|
-
if (isPromise(parseOutput)) {
|
|
1370
|
-
return parseOutput.then(transformParseOutput);
|
|
1371
|
-
}
|
|
1372
|
-
return transformParseOutput(parseOutput);
|
|
1373
|
-
}
|
|
1374
|
-
}
|
|
1375
|
-
/**
|
|
1376
|
-
* Creates a new ZodRefWrapper instance.
|
|
1377
|
-
* @param type - The inner Zod type.
|
|
1378
|
-
* @param options - Options for the ZodRefWrapper.
|
|
1379
|
-
* @param options.skipReferenceNameResolution - Flag to skip resolving references to names (serialized definitions use resolved name references).
|
|
1380
|
-
* @param options.allowInvalidReferences - Flag to allow invalid references (used for testing deletes).
|
|
1381
|
-
* @returns A new instance of ZodRefWrapper.
|
|
1382
|
-
*/
|
|
1383
|
-
Object.defineProperty(ZodRefWrapper, "create", {
|
|
1384
|
-
enumerable: true,
|
|
1385
|
-
configurable: true,
|
|
1386
|
-
writable: true,
|
|
1387
|
-
value: (type) => new ZodRefWrapper({
|
|
1388
|
-
innerType: type,
|
|
1389
|
-
})
|
|
1390
|
-
});
|
|
1391
|
-
|
|
1392
|
-
function definitionSchema(creator) {
|
|
1393
|
-
return (options) => creator(options);
|
|
1394
|
-
}
|
|
1395
|
-
|
|
1396
968
|
const {z} = await importShared('zod');
|
|
1397
969
|
const featureEntityType = createEntityType('feature');
|
|
1398
970
|
const featureNameSchema = CASE_VALIDATORS.KEBAB_CASE;
|
|
1399
|
-
const createFeatureSchema = definitionSchema(() =>
|
|
971
|
+
const createFeatureSchema = definitionSchema((ctx) => ctx.withEnt(z.object({
|
|
972
|
+
id: z.string(),
|
|
1400
973
|
name: z
|
|
1401
974
|
.string()
|
|
1402
975
|
.min(1)
|
|
@@ -1405,10 +978,12 @@ const createFeatureSchema = definitionSchema(() => zEnt(z.object({
|
|
|
1405
978
|
.every((part) => featureNameSchema.safeParse(part).success), {
|
|
1406
979
|
message: 'Feature name must be lowercase and contain only letters, numbers, and dashes',
|
|
1407
980
|
}),
|
|
1408
|
-
parentRef:
|
|
981
|
+
parentRef: ctx
|
|
982
|
+
.withRef({
|
|
1409
983
|
type: featureEntityType,
|
|
1410
984
|
onDelete: 'DELETE_PARENT',
|
|
1411
|
-
})
|
|
985
|
+
})
|
|
986
|
+
.optional(),
|
|
1412
987
|
}), { type: featureEntityType }));
|
|
1413
988
|
const createFeaturesSchema = definitionSchema((ctx) => z.array(createFeatureSchema(ctx)).default([]));
|
|
1414
989
|
|
|
@@ -1462,7 +1037,7 @@ function ensureFeatureByNameRecursively(projectDefinition, nameOrId) {
|
|
|
1462
1037
|
}
|
|
1463
1038
|
const nameParts = nameOrId.split('/');
|
|
1464
1039
|
let lastName = '';
|
|
1465
|
-
let parentRef =
|
|
1040
|
+
let parentRef = undefined;
|
|
1466
1041
|
for (const part of nameParts) {
|
|
1467
1042
|
const feature = projectDefinition.features.find((f) => f.name === part && f.parentRef === parentRef);
|
|
1468
1043
|
const name = [lastName, part].filter(Boolean).join('/');
|
|
@@ -2047,5 +1622,5 @@ function createAndApplyModelMergerResults(draftConfig, current, desired, definit
|
|
|
2047
1622
|
: desired[key].name);
|
|
2048
1623
|
}
|
|
2049
1624
|
|
|
2050
|
-
export {
|
|
2051
|
-
//# sourceMappingURL=model-merger-
|
|
1625
|
+
export { createModelMergerResults as A, applyModelMergerDiff as B, CASE_VALIDATORS as C, DefinitionReferenceMarker as D, applyModelMergerResultInPlace as E, FeatureUtils as F, createAndApplyModelMergerResults as G, DefinitionDiffKeyedArrayField as H, DefinitionDiffReplacementField as I, DefinitionDiffArrayIncludesField as J, createDefinitionDiffConfig as K, createDefinitionDiff as L, ModelUtils as M, applyDefinitionDiff as N, REF_ANNOTATIONS_MARKER_SYMBOL as R, createEntityType as a, createDefinitionSchemaParserContext as b, createPluginSpec as c, definitionSchema as d, modelForeignRelationEntityType as e, modelLocalRelationEntityType as f, get as g, modelScalarFieldEntityType as h, isEqual as i, modelTransformerEntityType as j, modelEntityType as k, modelEnumValueEntityType as l, mapValues as m, featureEntityType as n, modelEnumEntityType as o, modelUniqueConstraintEntityType as p, createFeaturesSchema as q, omit as r, set as s, cloneDeep as t, createInitializedPluginSpec as u, DefinitionEntityType as v, featureNameSchema as w, createFeatureSchema as x, modelMergerDefinitionDiffConfig as y, createModelMergerResult as z };
|
|
1626
|
+
//# sourceMappingURL=model-merger-qTOhcMVY.js.map
|