@memberjunction/codegen-lib 6.1.0-edge.4 → 6.1.0-edge.6
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/README.md +20 -0
- package/dist/Angular/angular-codegen.d.ts +9 -6
- package/dist/Angular/angular-codegen.d.ts.map +1 -1
- package/dist/Angular/angular-codegen.js +80 -51
- package/dist/Angular/angular-codegen.js.map +1 -1
- package/dist/Angular/join-grid-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/join-grid-related-entity-component.js +5 -2
- package/dist/Angular/join-grid-related-entity-component.js.map +1 -1
- package/dist/Angular/related-entity-components.d.ts +11 -0
- package/dist/Angular/related-entity-components.d.ts.map +1 -1
- package/dist/Angular/related-entity-components.js +23 -0
- package/dist/Angular/related-entity-components.js.map +1 -1
- package/dist/Angular/timeline-related-entity-component.d.ts.map +1 -1
- package/dist/Angular/timeline-related-entity-component.js +3 -2
- package/dist/Angular/timeline-related-entity-component.js.map +1 -1
- package/dist/Config/config.d.ts +216 -12
- package/dist/Config/config.d.ts.map +1 -1
- package/dist/Config/config.js +88 -6
- package/dist/Config/config.js.map +1 -1
- package/dist/Config/schema-output.d.ts +33 -0
- package/dist/Config/schema-output.d.ts.map +1 -0
- package/dist/Config/schema-output.js +52 -0
- package/dist/Config/schema-output.js.map +1 -0
- package/dist/Database/codeGenDatabaseProvider.d.ts +68 -1
- package/dist/Database/codeGenDatabaseProvider.d.ts.map +1 -1
- package/dist/Database/codeGenDatabaseProvider.js +142 -3
- package/dist/Database/codeGenDatabaseProvider.js.map +1 -1
- package/dist/Database/dbSchema.js +2 -1
- package/dist/Database/dbSchema.js.map +1 -1
- package/dist/Database/decision-metadata-format.d.ts +124 -0
- package/dist/Database/decision-metadata-format.d.ts.map +1 -0
- package/dist/Database/decision-metadata-format.js +279 -0
- package/dist/Database/decision-metadata-format.js.map +1 -0
- package/dist/Database/decision-metadata-writer.d.ts +48 -0
- package/dist/Database/decision-metadata-writer.d.ts.map +1 -0
- package/dist/Database/decision-metadata-writer.js +482 -0
- package/dist/Database/decision-metadata-writer.js.map +1 -0
- package/dist/Database/entity-field-change-tracking.d.ts +53 -0
- package/dist/Database/entity-field-change-tracking.d.ts.map +1 -0
- package/dist/Database/entity-field-change-tracking.js +120 -0
- package/dist/Database/entity-field-change-tracking.js.map +1 -0
- package/dist/Database/entity-level-tree-cycles.d.ts.map +1 -1
- package/dist/Database/entity-level-tree-cycles.js +3 -2
- package/dist/Database/entity-level-tree-cycles.js.map +1 -1
- package/dist/Database/exclude-tables.d.ts +26 -0
- package/dist/Database/exclude-tables.d.ts.map +1 -0
- package/dist/Database/exclude-tables.js +38 -0
- package/dist/Database/exclude-tables.js.map +1 -0
- package/dist/Database/field-metadata-lock.d.ts +47 -0
- package/dist/Database/field-metadata-lock.d.ts.map +1 -0
- package/dist/Database/field-metadata-lock.js +159 -0
- package/dist/Database/field-metadata-lock.js.map +1 -0
- package/dist/Database/manage-metadata.d.ts +142 -42
- package/dist/Database/manage-metadata.d.ts.map +1 -1
- package/dist/Database/manage-metadata.js +625 -287
- package/dist/Database/manage-metadata.js.map +1 -1
- package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.d.ts +2 -2
- package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.d.ts.map +1 -1
- package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.js +90 -41
- package/dist/Database/providers/postgresql/PostgreSQLCodeGenProvider.js.map +1 -1
- package/dist/Database/providers/postgresql/metadataSupportObjects.js +31 -8
- package/dist/Database/providers/postgresql/metadataSupportObjects.js.map +1 -1
- package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.d.ts +3 -1
- package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.d.ts.map +1 -1
- package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.js +58 -23
- package/dist/Database/providers/sqlserver/SQLServerCodeGenProvider.js.map +1 -1
- package/dist/Database/providers/sqlserver/__tests__/BaseViewEmissionGoldenMaster.test.js +15 -2
- package/dist/Database/providers/sqlserver/__tests__/BaseViewEmissionGoldenMaster.test.js.map +1 -1
- package/dist/Database/providers/sqlserver/__tests__/SQLServerCodeGenProvider.test.js +17 -0
- package/dist/Database/providers/sqlserver/__tests__/SQLServerCodeGenProvider.test.js.map +1 -1
- package/dist/Database/sql_codegen.d.ts +24 -0
- package/dist/Database/sql_codegen.d.ts.map +1 -1
- package/dist/Database/sql_codegen.js +108 -29
- package/dist/Database/sql_codegen.js.map +1 -1
- package/dist/Manifest/GenerateClassRegistrationsManifest.d.ts +22 -0
- package/dist/Manifest/GenerateClassRegistrationsManifest.d.ts.map +1 -1
- package/dist/Manifest/GenerateClassRegistrationsManifest.js +115 -7
- package/dist/Manifest/GenerateClassRegistrationsManifest.js.map +1 -1
- package/dist/Misc/action_subclasses_codegen.js +2 -2
- package/dist/Misc/action_subclasses_codegen.js.map +1 -1
- package/dist/Misc/advanced_generation.d.ts +7 -5
- package/dist/Misc/advanced_generation.d.ts.map +1 -1
- package/dist/Misc/advanced_generation.js +34 -23
- package/dist/Misc/advanced_generation.js.map +1 -1
- package/dist/Misc/codegen-reporter.d.ts +5 -0
- package/dist/Misc/codegen-reporter.d.ts.map +1 -1
- package/dist/Misc/codegen-reporter.js +9 -2
- package/dist/Misc/codegen-reporter.js.map +1 -1
- package/dist/Misc/emit-stats.d.ts +28 -0
- package/dist/Misc/emit-stats.d.ts.map +1 -0
- package/dist/Misc/emit-stats.js +43 -0
- package/dist/Misc/emit-stats.js.map +1 -0
- package/dist/Misc/entity_subclasses_codegen.d.ts +20 -2
- package/dist/Misc/entity_subclasses_codegen.d.ts.map +1 -1
- package/dist/Misc/entity_subclasses_codegen.js +120 -51
- package/dist/Misc/entity_subclasses_codegen.js.map +1 -1
- package/dist/Misc/file-write.d.ts +15 -0
- package/dist/Misc/file-write.d.ts.map +1 -0
- package/dist/Misc/file-write.js +33 -0
- package/dist/Misc/file-write.js.map +1 -0
- package/dist/Misc/graphql_server_codegen.d.ts +12 -2
- package/dist/Misc/graphql_server_codegen.d.ts.map +1 -1
- package/dist/Misc/graphql_server_codegen.js +72 -16
- package/dist/Misc/graphql_server_codegen.js.map +1 -1
- package/dist/Misc/remote_operations_codegen.d.ts.map +1 -1
- package/dist/Misc/remote_operations_codegen.js +4 -3
- package/dist/Misc/remote_operations_codegen.js.map +1 -1
- package/dist/Misc/runCommand.d.ts +5 -0
- package/dist/Misc/runCommand.d.ts.map +1 -1
- package/dist/Misc/runCommand.js +43 -17
- package/dist/Misc/runCommand.js.map +1 -1
- package/dist/Misc/schema-emit.d.ts +123 -0
- package/dist/Misc/schema-emit.d.ts.map +1 -0
- package/dist/Misc/schema-emit.js +221 -0
- package/dist/Misc/schema-emit.js.map +1 -0
- package/dist/Misc/sql_logging.d.ts +63 -8
- package/dist/Misc/sql_logging.d.ts.map +1 -1
- package/dist/Misc/sql_logging.js +169 -42
- package/dist/Misc/sql_logging.js.map +1 -1
- package/dist/Misc/util.d.ts +12 -0
- package/dist/Misc/util.d.ts.map +1 -1
- package/dist/Misc/util.js +71 -8
- package/dist/Misc/util.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/plugins/index.d.ts +3 -0
- package/dist/plugins/index.d.ts.map +1 -1
- package/dist/plugins/index.js +28 -1
- package/dist/plugins/index.js.map +1 -1
- package/dist/runCodeGen.d.ts +20 -2
- package/dist/runCodeGen.d.ts.map +1 -1
- package/dist/runCodeGen.js +186 -33
- package/dist/runCodeGen.js.map +1 -1
- package/package.json +29 -29
|
@@ -80,8 +80,9 @@ let TimelineRelatedEntityGenerator = class TimelineRelatedEntityGenerator extend
|
|
|
80
80
|
throw new Error("Invalid configuration for component for relationship " + input.RelationshipInfo.ID);
|
|
81
81
|
// Get the foreign key field that links the related entity back to the parent entity
|
|
82
82
|
const fk = this.GetForeignKey(input.RelationshipInfo.RelatedEntity, input.Entity.Name);
|
|
83
|
-
// Build the filter expression to show only records related to the current parent record
|
|
84
|
-
|
|
83
|
+
// Build the filter expression to show only records related to the current parent record,
|
|
84
|
+
// binding the parent key column that the FK actually references.
|
|
85
|
+
const filter = `'${fk.Name}=' + record.${this.GetParentKeyFieldName(input.Entity, fk)}`;
|
|
85
86
|
// Generate the Angular template with timeline configuration
|
|
86
87
|
const template = `<mj-timeline
|
|
87
88
|
DisplayOrientation="${config.DisplayOrientation}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-related-entity-component.js","sourceRoot":"","sources":["../../src/Angular/timeline-related-entity-component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAwB,mBAAmB,EAAqC,0CAA0C,EAAE,MAAM,6BAA6B,CAAC;AAGvK;;;;GAIG;AACH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IAgCvD;;OAEG;IACH;QACI,KAAK,EAAE,CAAC;QAXZ;;;;WAIG;QACH,uBAAkB,GAAgC,UAAU,CAAC;QAOzD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACzB,CAAC;CACJ;AAED;;;;;;;;;;GAUG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,0CAA0C;IAC1F;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IACD;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,6BAA6B,CAAC;IACzC,CAAC;IACD;;;OAGG;IACH,IAAW,WAAW;QAClB,OAAO;YACH;gBACI,SAAS,EAAE,mBAAmB;gBAC9B,mBAAmB,EAAE,aAAa;gBAClC,UAAU,EAAE,gBAAgB;aAC/B;SACJ,CAAC;IACN,CAAC;IAGD;;;;;;;OAOG;IACI,KAAK,CAAC,QAAQ,CAAC,KAAsB;QACxC,MAAM,MAAM,GAAG,aAAa,CAAqB,KAAK,CAAC,gBAAiB,CAAC,6BAA6B,CAAC,CAAC;QACxG,IAAI,CAAC,MAAM;YACP,MAAM,IAAI,KAAK,CAAC,uDAAuD,GAAG,KAAK,CAAC,gBAAiB,CAAC,EAAE,CAAC,CAAC;QAE1G,oFAAoF;QACpF,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gBAAiB,CAAC,aAAa,EAAE,KAAK,CAAC,MAAO,CAAC,IAAI,CAAC,CAAC;QACzF,
|
|
1
|
+
{"version":3,"file":"timeline-related-entity-component.js","sourceRoot":"","sources":["../../src/Angular/timeline-related-entity-component.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAwB,mBAAmB,EAAqC,0CAA0C,EAAE,MAAM,6BAA6B,CAAC;AAGvK;;;;GAIG;AACH,MAAM,OAAO,kBAAmB,SAAQ,mBAAmB;IAgCvD;;OAEG;IACH;QACI,KAAK,EAAE,CAAC;QAXZ;;;;WAIG;QACH,uBAAkB,GAAgC,UAAU,CAAC;QAOzD,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;QACpB,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;IACzB,CAAC;CACJ;AAED;;;;;;;;;;GAUG;AAEI,IAAM,8BAA8B,GAApC,MAAM,8BAA+B,SAAQ,0CAA0C;IAC1F;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,kBAAkB,CAAC;IAC9B,CAAC;IACD;;;OAGG;IACH,IAAW,UAAU;QACjB,OAAO,6BAA6B,CAAC;IACzC,CAAC;IACD;;;OAGG;IACH,IAAW,WAAW;QAClB,OAAO;YACH;gBACI,SAAS,EAAE,mBAAmB;gBAC9B,mBAAmB,EAAE,aAAa;gBAClC,UAAU,EAAE,gBAAgB;aAC/B;SACJ,CAAC;IACN,CAAC;IAGD;;;;;;;OAOG;IACI,KAAK,CAAC,QAAQ,CAAC,KAAsB;QACxC,MAAM,MAAM,GAAG,aAAa,CAAqB,KAAK,CAAC,gBAAiB,CAAC,6BAA6B,CAAC,CAAC;QACxG,IAAI,CAAC,MAAM;YACP,MAAM,IAAI,KAAK,CAAC,uDAAuD,GAAG,KAAK,CAAC,gBAAiB,CAAC,EAAE,CAAC,CAAC;QAE1G,oFAAoF;QACpF,MAAM,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,gBAAiB,CAAC,aAAa,EAAE,KAAK,CAAC,MAAO,CAAC,IAAI,CAAC,CAAC;QACzF,yFAAyF;QACzF,iEAAiE;QACjE,MAAM,MAAM,GAAG,IAAI,EAAE,CAAC,IAAI,eAAe,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,MAAO,EAAE,EAAE,CAAC,EAAE,CAAC;QAEzF,4DAA4D;QAC5D,MAAM,QAAQ,GAAG;0BACC,MAAM,CAAC,kBAAkB;+BACpB,KAAK,CAAC,gBAAiB,CAAC,aAAa,wCAAwC,MAAM,sBAAsB,MAAM,CAAC,UAAU,sBAAsB,MAAM,CAAC,SAAS;eAChL,CAAA;QAEP,OAAO;YACH,OAAO,EAAE,IAAI;YACb,cAAc,EAAE,QAAQ;YACxB,UAAU,EAAE,EAAE;YACd,SAAS,EAAE,IAAI;SAClB,CAAA;IACL,CAAC;CACJ,CAAA;AA9DY,8BAA8B;IAD1C,aAAa,CAAC,0CAA0C,EAAE,UAAU,CAAC;GACzD,8BAA8B,CA8D1C"}
|
package/dist/Config/config.d.ts
CHANGED
|
@@ -158,6 +158,63 @@ declare const tableInfoSchema: z.ZodObject<{
|
|
|
158
158
|
schema: string;
|
|
159
159
|
table: string;
|
|
160
160
|
}>;
|
|
161
|
+
declare const fileEmitSchema: z.ZodDefault<z.ZodObject<{
|
|
162
|
+
/** Emit one TypeScript file per schema plus a barrel. Default true. */
|
|
163
|
+
perSchema: z.ZodDefault<z.ZodBoolean>;
|
|
164
|
+
/** Skip the disk write when generated bytes are identical. Default true. */
|
|
165
|
+
writeIfChanged: z.ZodDefault<z.ZodBoolean>;
|
|
166
|
+
/** Assemble independent schema files in parallel. Default true. */
|
|
167
|
+
parallel: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
+
/** Max schemas assembled at once when `parallel` is true. Default 8. */
|
|
169
|
+
concurrency: z.ZodDefault<z.ZodNumber>;
|
|
170
|
+
/**
|
|
171
|
+
* Rebuild only schemas that contain a new/modified entity (plus any schema
|
|
172
|
+
* whose file is missing). `--skipdb` file-only runs ignore this and rebuild
|
|
173
|
+
* every schema, still gated by write-if-changed. Default true.
|
|
174
|
+
*/
|
|
175
|
+
dirtySchemaOnly: z.ZodDefault<z.ZodBoolean>;
|
|
176
|
+
/**
|
|
177
|
+
* SQL Server per-entity SQL generation width. PostgreSQL stays serial (1)
|
|
178
|
+
* regardless — catalog deadlocks under parallel phased DDL. Default 8.
|
|
179
|
+
*/
|
|
180
|
+
sqlEntityBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
181
|
+
}, "strip", z.ZodTypeAny, {
|
|
182
|
+
perSchema: boolean;
|
|
183
|
+
writeIfChanged: boolean;
|
|
184
|
+
parallel: boolean;
|
|
185
|
+
concurrency: number;
|
|
186
|
+
dirtySchemaOnly: boolean;
|
|
187
|
+
sqlEntityBatchSize: number;
|
|
188
|
+
}, {
|
|
189
|
+
perSchema?: boolean | undefined;
|
|
190
|
+
writeIfChanged?: boolean | undefined;
|
|
191
|
+
parallel?: boolean | undefined;
|
|
192
|
+
concurrency?: number | undefined;
|
|
193
|
+
dirtySchemaOnly?: boolean | undefined;
|
|
194
|
+
sqlEntityBatchSize?: number | undefined;
|
|
195
|
+
}>>;
|
|
196
|
+
declare const schemaOutputOverrideSchema: z.ZodObject<{
|
|
197
|
+
/** Exact schema name or `%` wildcard (`bsd_%`). */
|
|
198
|
+
schema: z.ZodString;
|
|
199
|
+
EntitySubClasses: z.ZodOptional<z.ZodString>;
|
|
200
|
+
GraphQLServer: z.ZodOptional<z.ZodString>;
|
|
201
|
+
Angular: z.ZodOptional<z.ZodString>;
|
|
202
|
+
skip: z.ZodOptional<z.ZodArray<z.ZodEnum<["EntitySubClasses", "GraphQLServer", "Angular", "SQL"]>, "many">>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
schema: string;
|
|
205
|
+
EntitySubClasses?: string | undefined;
|
|
206
|
+
GraphQLServer?: string | undefined;
|
|
207
|
+
Angular?: string | undefined;
|
|
208
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
209
|
+
}, {
|
|
210
|
+
schema: string;
|
|
211
|
+
EntitySubClasses?: string | undefined;
|
|
212
|
+
GraphQLServer?: string | undefined;
|
|
213
|
+
Angular?: string | undefined;
|
|
214
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
215
|
+
}>;
|
|
216
|
+
export type FileEmitConfig = z.infer<typeof fileEmitSchema>;
|
|
217
|
+
export type SchemaOutputOverrideConfig = z.infer<typeof schemaOutputOverrideSchema>;
|
|
161
218
|
/**
|
|
162
219
|
* Configuration bundle for generating database schema JSON output
|
|
163
220
|
*/
|
|
@@ -499,7 +556,7 @@ declare const sqlOutputConfigSchema: z.ZodObject<{
|
|
|
499
556
|
*/
|
|
500
557
|
convertCoreSchemaToFlywayMigrationFile: z.ZodDefault<z.ZodBoolean>;
|
|
501
558
|
/**
|
|
502
|
-
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to
|
|
559
|
+
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to true
|
|
503
560
|
*/
|
|
504
561
|
omitRecurringScriptsFromLog: z.ZodDefault<z.ZodBoolean>;
|
|
505
562
|
/**
|
|
@@ -905,6 +962,20 @@ declare const newEntityRelationshipDefaultsSchema: z.ZodObject<{
|
|
|
905
962
|
AutomaticallyCreateRelationships?: boolean | undefined;
|
|
906
963
|
CreateOneToManyRelationships?: boolean | undefined;
|
|
907
964
|
}>;
|
|
965
|
+
export declare const decisionMetadataConfigSchema: z.ZodDefault<z.ZodObject<{
|
|
966
|
+
/**
|
|
967
|
+
* Controls decision metadata persistence:
|
|
968
|
+
* - 'auto' (default): enabled if <metadataDirectory>/entities/.mj-sync.json exists
|
|
969
|
+
* - true: explicitly enabled
|
|
970
|
+
* - false: explicitly disabled
|
|
971
|
+
*/
|
|
972
|
+
enabled: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
973
|
+
}, "strip", z.ZodTypeAny, {
|
|
974
|
+
enabled: boolean | "auto";
|
|
975
|
+
}, {
|
|
976
|
+
enabled?: boolean | "auto" | undefined;
|
|
977
|
+
}>>;
|
|
978
|
+
export type DecisionMetadataConfig = z.infer<typeof decisionMetadataConfigSchema>;
|
|
908
979
|
/**
|
|
909
980
|
* Default settings applied when creating new entities
|
|
910
981
|
*/
|
|
@@ -981,7 +1052,7 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
981
1052
|
* Leave off for Open Apps.
|
|
982
1053
|
*/
|
|
983
1054
|
allowCrossSchemaCascadeDeletes: z.ZodDefault<z.ZodBoolean>;
|
|
984
|
-
excludeTables: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1055
|
+
excludeTables: z.ZodDefault<z.ZodArray<z.ZodEffects<z.ZodUnion<[z.ZodObject<{
|
|
985
1056
|
/** Schema name (supports wildcards like '%') */
|
|
986
1057
|
schema: z.ZodString;
|
|
987
1058
|
/** Table name (supports wildcards like 'sys%') */
|
|
@@ -992,6 +1063,72 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
992
1063
|
}, {
|
|
993
1064
|
schema: string;
|
|
994
1065
|
table: string;
|
|
1066
|
+
}>, z.ZodString]>, import("../index.js").ExcludeTableEntry, string | {
|
|
1067
|
+
schema: string;
|
|
1068
|
+
table: string;
|
|
1069
|
+
}>, "many">>;
|
|
1070
|
+
/**
|
|
1071
|
+
* File-emit behaviour for entity subclasses and GraphQL resolvers.
|
|
1072
|
+
* Schema is the incremental unit — see `guides/CODEGEN_LARGE_SCHEMA_GUIDE.md`.
|
|
1073
|
+
*/
|
|
1074
|
+
fileEmit: z.ZodDefault<z.ZodObject<{
|
|
1075
|
+
/** Emit one TypeScript file per schema plus a barrel. Default true. */
|
|
1076
|
+
perSchema: z.ZodDefault<z.ZodBoolean>;
|
|
1077
|
+
/** Skip the disk write when generated bytes are identical. Default true. */
|
|
1078
|
+
writeIfChanged: z.ZodDefault<z.ZodBoolean>;
|
|
1079
|
+
/** Assemble independent schema files in parallel. Default true. */
|
|
1080
|
+
parallel: z.ZodDefault<z.ZodBoolean>;
|
|
1081
|
+
/** Max schemas assembled at once when `parallel` is true. Default 8. */
|
|
1082
|
+
concurrency: z.ZodDefault<z.ZodNumber>;
|
|
1083
|
+
/**
|
|
1084
|
+
* Rebuild only schemas that contain a new/modified entity (plus any schema
|
|
1085
|
+
* whose file is missing). `--skipdb` file-only runs ignore this and rebuild
|
|
1086
|
+
* every schema, still gated by write-if-changed. Default true.
|
|
1087
|
+
*/
|
|
1088
|
+
dirtySchemaOnly: z.ZodDefault<z.ZodBoolean>;
|
|
1089
|
+
/**
|
|
1090
|
+
* SQL Server per-entity SQL generation width. PostgreSQL stays serial (1)
|
|
1091
|
+
* regardless — catalog deadlocks under parallel phased DDL. Default 8.
|
|
1092
|
+
*/
|
|
1093
|
+
sqlEntityBatchSize: z.ZodDefault<z.ZodNumber>;
|
|
1094
|
+
}, "strip", z.ZodTypeAny, {
|
|
1095
|
+
perSchema: boolean;
|
|
1096
|
+
writeIfChanged: boolean;
|
|
1097
|
+
parallel: boolean;
|
|
1098
|
+
concurrency: number;
|
|
1099
|
+
dirtySchemaOnly: boolean;
|
|
1100
|
+
sqlEntityBatchSize: number;
|
|
1101
|
+
}, {
|
|
1102
|
+
perSchema?: boolean | undefined;
|
|
1103
|
+
writeIfChanged?: boolean | undefined;
|
|
1104
|
+
parallel?: boolean | undefined;
|
|
1105
|
+
concurrency?: number | undefined;
|
|
1106
|
+
dirtySchemaOnly?: boolean | undefined;
|
|
1107
|
+
sqlEntityBatchSize?: number | undefined;
|
|
1108
|
+
}>>;
|
|
1109
|
+
/**
|
|
1110
|
+
* Route (or skip) generated artifacts for matching schemas to a directory
|
|
1111
|
+
* other than the default `output.*` entry. First match wins.
|
|
1112
|
+
*/
|
|
1113
|
+
schemaOutput: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1114
|
+
/** Exact schema name or `%` wildcard (`bsd_%`). */
|
|
1115
|
+
schema: z.ZodString;
|
|
1116
|
+
EntitySubClasses: z.ZodOptional<z.ZodString>;
|
|
1117
|
+
GraphQLServer: z.ZodOptional<z.ZodString>;
|
|
1118
|
+
Angular: z.ZodOptional<z.ZodString>;
|
|
1119
|
+
skip: z.ZodOptional<z.ZodArray<z.ZodEnum<["EntitySubClasses", "GraphQLServer", "Angular", "SQL"]>, "many">>;
|
|
1120
|
+
}, "strip", z.ZodTypeAny, {
|
|
1121
|
+
schema: string;
|
|
1122
|
+
EntitySubClasses?: string | undefined;
|
|
1123
|
+
GraphQLServer?: string | undefined;
|
|
1124
|
+
Angular?: string | undefined;
|
|
1125
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
1126
|
+
}, {
|
|
1127
|
+
schema: string;
|
|
1128
|
+
EntitySubClasses?: string | undefined;
|
|
1129
|
+
GraphQLServer?: string | undefined;
|
|
1130
|
+
Angular?: string | undefined;
|
|
1131
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
995
1132
|
}>, "many">>;
|
|
996
1133
|
customSQLScripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
997
1134
|
/** When to run the script (e.g., 'before-all', 'after-all') */
|
|
@@ -1481,7 +1618,7 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1481
1618
|
*/
|
|
1482
1619
|
convertCoreSchemaToFlywayMigrationFile: z.ZodDefault<z.ZodBoolean>;
|
|
1483
1620
|
/**
|
|
1484
|
-
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to
|
|
1621
|
+
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to true
|
|
1485
1622
|
*/
|
|
1486
1623
|
omitRecurringScriptsFromLog: z.ZodDefault<z.ZodBoolean>;
|
|
1487
1624
|
/**
|
|
@@ -1587,6 +1724,22 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1587
1724
|
indexes?: boolean | undefined;
|
|
1588
1725
|
fullTextSearch?: boolean | undefined;
|
|
1589
1726
|
}>;
|
|
1727
|
+
/** Root directory containing metadata files for sync (e.g. './metadata') */
|
|
1728
|
+
metadataDirectory: z.ZodOptional<z.ZodString>;
|
|
1729
|
+
/** Decision metadata persistence settings */
|
|
1730
|
+
decisionMetadata: z.ZodDefault<z.ZodObject<{
|
|
1731
|
+
/**
|
|
1732
|
+
* Controls decision metadata persistence:
|
|
1733
|
+
* - 'auto' (default): enabled if <metadataDirectory>/entities/.mj-sync.json exists
|
|
1734
|
+
* - true: explicitly enabled
|
|
1735
|
+
* - false: explicitly disabled
|
|
1736
|
+
*/
|
|
1737
|
+
enabled: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodBoolean]>>;
|
|
1738
|
+
}, "strip", z.ZodTypeAny, {
|
|
1739
|
+
enabled: boolean | "auto";
|
|
1740
|
+
}, {
|
|
1741
|
+
enabled?: boolean | "auto" | undefined;
|
|
1742
|
+
}>>;
|
|
1590
1743
|
/** Database platform: 'sqlserver' or 'postgresql'. */
|
|
1591
1744
|
dbPlatform: z.ZodDefault<z.ZodEnum<["sqlserver", "postgresql"]>>;
|
|
1592
1745
|
dbHost: z.ZodString;
|
|
@@ -1746,10 +1899,15 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1746
1899
|
}[];
|
|
1747
1900
|
excludeSchemas: string[];
|
|
1748
1901
|
allowCrossSchemaCascadeDeletes: boolean;
|
|
1749
|
-
excludeTables:
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1902
|
+
excludeTables: import("../index.js").ExcludeTableEntry[];
|
|
1903
|
+
fileEmit: {
|
|
1904
|
+
perSchema: boolean;
|
|
1905
|
+
writeIfChanged: boolean;
|
|
1906
|
+
parallel: boolean;
|
|
1907
|
+
concurrency: number;
|
|
1908
|
+
dirtySchemaOnly: boolean;
|
|
1909
|
+
sqlEntityBatchSize: number;
|
|
1910
|
+
};
|
|
1753
1911
|
customSQLScripts: {
|
|
1754
1912
|
when: string;
|
|
1755
1913
|
scriptFile: string;
|
|
@@ -1867,6 +2025,9 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1867
2025
|
fullTextSearch: boolean;
|
|
1868
2026
|
entityWhereClause?: string | undefined;
|
|
1869
2027
|
};
|
|
2028
|
+
decisionMetadata: {
|
|
2029
|
+
enabled: boolean | "auto";
|
|
2030
|
+
};
|
|
1870
2031
|
dbPlatform: "sqlserver" | "postgresql";
|
|
1871
2032
|
dbHost: string;
|
|
1872
2033
|
dbPort: number;
|
|
@@ -1889,6 +2050,13 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1889
2050
|
UserApplications: string[];
|
|
1890
2051
|
} | null | undefined;
|
|
1891
2052
|
includeSchemas?: string[] | undefined;
|
|
2053
|
+
schemaOutput?: {
|
|
2054
|
+
schema: string;
|
|
2055
|
+
EntitySubClasses?: string | undefined;
|
|
2056
|
+
GraphQLServer?: string | undefined;
|
|
2057
|
+
Angular?: string | undefined;
|
|
2058
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
2059
|
+
}[] | undefined;
|
|
1892
2060
|
advancedGeneration?: {
|
|
1893
2061
|
enableAdvancedGeneration: boolean;
|
|
1894
2062
|
allowFullTextSearchAutoUpdate: boolean;
|
|
@@ -1906,6 +2074,7 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
1906
2074
|
}[];
|
|
1907
2075
|
} | null | undefined;
|
|
1908
2076
|
additionalSchemaInfo?: string | undefined;
|
|
2077
|
+
metadataDirectory?: string | undefined;
|
|
1909
2078
|
dbInstanceName?: string | null | undefined;
|
|
1910
2079
|
dbRequestTimeout?: number | undefined;
|
|
1911
2080
|
codegenPool?: {
|
|
@@ -2029,9 +2198,24 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
2029
2198
|
excludeSchemas?: string[] | undefined;
|
|
2030
2199
|
includeSchemas?: string[] | undefined;
|
|
2031
2200
|
allowCrossSchemaCascadeDeletes?: boolean | undefined;
|
|
2032
|
-
excludeTables?: {
|
|
2201
|
+
excludeTables?: (string | {
|
|
2033
2202
|
schema: string;
|
|
2034
2203
|
table: string;
|
|
2204
|
+
})[] | undefined;
|
|
2205
|
+
fileEmit?: {
|
|
2206
|
+
perSchema?: boolean | undefined;
|
|
2207
|
+
writeIfChanged?: boolean | undefined;
|
|
2208
|
+
parallel?: boolean | undefined;
|
|
2209
|
+
concurrency?: number | undefined;
|
|
2210
|
+
dirtySchemaOnly?: boolean | undefined;
|
|
2211
|
+
sqlEntityBatchSize?: number | undefined;
|
|
2212
|
+
} | undefined;
|
|
2213
|
+
schemaOutput?: {
|
|
2214
|
+
schema: string;
|
|
2215
|
+
EntitySubClasses?: string | undefined;
|
|
2216
|
+
GraphQLServer?: string | undefined;
|
|
2217
|
+
Angular?: string | undefined;
|
|
2218
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
2035
2219
|
}[] | undefined;
|
|
2036
2220
|
customSQLScripts?: {
|
|
2037
2221
|
when: string;
|
|
@@ -2080,6 +2264,10 @@ declare const configInfoSchema: z.ZodObject<{
|
|
|
2080
2264
|
normalizeFieldNames?: boolean | undefined;
|
|
2081
2265
|
additionalDomainWords?: string[] | undefined;
|
|
2082
2266
|
} | undefined;
|
|
2267
|
+
metadataDirectory?: string | undefined;
|
|
2268
|
+
decisionMetadata?: {
|
|
2269
|
+
enabled?: boolean | "auto" | undefined;
|
|
2270
|
+
} | undefined;
|
|
2083
2271
|
dbPlatform?: "sqlserver" | "postgresql" | undefined;
|
|
2084
2272
|
dbPort?: number | undefined;
|
|
2085
2273
|
dbInstanceName?: string | null | undefined;
|
|
@@ -2149,10 +2337,15 @@ export declare const configInfo: {
|
|
|
2149
2337
|
}[];
|
|
2150
2338
|
excludeSchemas: string[];
|
|
2151
2339
|
allowCrossSchemaCascadeDeletes: boolean;
|
|
2152
|
-
excludeTables:
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2340
|
+
excludeTables: import("../index.js").ExcludeTableEntry[];
|
|
2341
|
+
fileEmit: {
|
|
2342
|
+
perSchema: boolean;
|
|
2343
|
+
writeIfChanged: boolean;
|
|
2344
|
+
parallel: boolean;
|
|
2345
|
+
concurrency: number;
|
|
2346
|
+
dirtySchemaOnly: boolean;
|
|
2347
|
+
sqlEntityBatchSize: number;
|
|
2348
|
+
};
|
|
2156
2349
|
customSQLScripts: {
|
|
2157
2350
|
when: string;
|
|
2158
2351
|
scriptFile: string;
|
|
@@ -2270,6 +2463,9 @@ export declare const configInfo: {
|
|
|
2270
2463
|
fullTextSearch: boolean;
|
|
2271
2464
|
entityWhereClause?: string | undefined;
|
|
2272
2465
|
};
|
|
2466
|
+
decisionMetadata: {
|
|
2467
|
+
enabled: boolean | "auto";
|
|
2468
|
+
};
|
|
2273
2469
|
dbPlatform: "sqlserver" | "postgresql";
|
|
2274
2470
|
dbHost: string;
|
|
2275
2471
|
dbPort: number;
|
|
@@ -2292,6 +2488,13 @@ export declare const configInfo: {
|
|
|
2292
2488
|
UserApplications: string[];
|
|
2293
2489
|
} | null | undefined;
|
|
2294
2490
|
includeSchemas?: string[] | undefined;
|
|
2491
|
+
schemaOutput?: {
|
|
2492
|
+
schema: string;
|
|
2493
|
+
EntitySubClasses?: string | undefined;
|
|
2494
|
+
GraphQLServer?: string | undefined;
|
|
2495
|
+
Angular?: string | undefined;
|
|
2496
|
+
skip?: ("EntitySubClasses" | "GraphQLServer" | "Angular" | "SQL")[] | undefined;
|
|
2497
|
+
}[] | undefined;
|
|
2295
2498
|
advancedGeneration?: {
|
|
2296
2499
|
enableAdvancedGeneration: boolean;
|
|
2297
2500
|
allowFullTextSearchAutoUpdate: boolean;
|
|
@@ -2309,6 +2512,7 @@ export declare const configInfo: {
|
|
|
2309
2512
|
}[];
|
|
2310
2513
|
} | null | undefined;
|
|
2311
2514
|
additionalSchemaInfo?: string | undefined;
|
|
2515
|
+
metadataDirectory?: string | undefined;
|
|
2312
2516
|
dbInstanceName?: string | null | undefined;
|
|
2313
2517
|
dbRequestTimeout?: number | undefined;
|
|
2314
2518
|
codegenPool?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/Config/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAY,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/Config/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,OAAO,EAAY,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAUlE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,QAAA,MAAM,iBAAiB;IACrB,kCAAkC;;IAElC,iDAAiD;;;;;;;;EAEjD,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACpD,QAAA,MAAM,aAAa;IACjB,iCAAiC;;IA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M,EAAE,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,CAO3F;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,0BAA0B,CACxC,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,MAAM,CAAC,EAAE,UAAU,GAClB,MAAM,CAuDR;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,CAAC,EAAE,UAAU,GAAG,MAAM,EAAE,CAOtE;AAED;;GAEG;AACH,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;GAGG;AACH,wBAAgB,UAAU,IAAI,gBAAgB,CAE7C"}
|
package/dist/Config/config.js
CHANGED
|
@@ -10,6 +10,7 @@ import { logStatus } from '../Misc/status_logging.js';
|
|
|
10
10
|
import { LogError } from '@memberjunction/core';
|
|
11
11
|
import { resolveDbPlatformFromEnv } from '@memberjunction/generic-database-provider';
|
|
12
12
|
import { mergeConfigs, parseBooleanEnv } from '@memberjunction/config';
|
|
13
|
+
import { parseExcludeTableEntry } from '../Database/exclude-tables.js';
|
|
13
14
|
/** Global configuration explorer for finding MJ config files */
|
|
14
15
|
const explorer = cosmiconfigSync('mj', { searchStrategy: 'global' });
|
|
15
16
|
/** Initial config search result from current working directory */
|
|
@@ -68,6 +69,51 @@ const tableInfoSchema = z.object({
|
|
|
68
69
|
/** Table name (supports wildcards like 'sys%') */
|
|
69
70
|
table: z.string(),
|
|
70
71
|
});
|
|
72
|
+
/**
|
|
73
|
+
* `excludeTables` accepts the historical `{ schema, table }` object **or** a
|
|
74
|
+
* `'schema.table'` / table-only string (`'%.%History'`, `'%Audit%'`). Strings
|
|
75
|
+
* are normalized to the object form at parse time — see `parseExcludeTableEntry`.
|
|
76
|
+
*/
|
|
77
|
+
const excludeTableEntrySchema = z.union([
|
|
78
|
+
tableInfoSchema,
|
|
79
|
+
z.string().min(1),
|
|
80
|
+
]).transform((entry) => parseExcludeTableEntry(entry));
|
|
81
|
+
const fileEmitSchema = z.object({
|
|
82
|
+
/** Emit one TypeScript file per schema plus a barrel. Default true. */
|
|
83
|
+
perSchema: z.boolean().default(true),
|
|
84
|
+
/** Skip the disk write when generated bytes are identical. Default true. */
|
|
85
|
+
writeIfChanged: z.boolean().default(true),
|
|
86
|
+
/** Assemble independent schema files in parallel. Default true. */
|
|
87
|
+
parallel: z.boolean().default(true),
|
|
88
|
+
/** Max schemas assembled at once when `parallel` is true. Default 8. */
|
|
89
|
+
concurrency: z.coerce.number().int().positive().default(8),
|
|
90
|
+
/**
|
|
91
|
+
* Rebuild only schemas that contain a new/modified entity (plus any schema
|
|
92
|
+
* whose file is missing). `--skipdb` file-only runs ignore this and rebuild
|
|
93
|
+
* every schema, still gated by write-if-changed. Default true.
|
|
94
|
+
*/
|
|
95
|
+
dirtySchemaOnly: z.boolean().default(true),
|
|
96
|
+
/**
|
|
97
|
+
* SQL Server per-entity SQL generation width. PostgreSQL stays serial (1)
|
|
98
|
+
* regardless — catalog deadlocks under parallel phased DDL. Default 8.
|
|
99
|
+
*/
|
|
100
|
+
sqlEntityBatchSize: z.coerce.number().int().positive().default(8),
|
|
101
|
+
}).default({
|
|
102
|
+
perSchema: true,
|
|
103
|
+
writeIfChanged: true,
|
|
104
|
+
parallel: true,
|
|
105
|
+
concurrency: 8,
|
|
106
|
+
dirtySchemaOnly: true,
|
|
107
|
+
sqlEntityBatchSize: 8,
|
|
108
|
+
});
|
|
109
|
+
const schemaOutputOverrideSchema = z.object({
|
|
110
|
+
/** Exact schema name or `%` wildcard (`bsd_%`). */
|
|
111
|
+
schema: z.string().min(1),
|
|
112
|
+
EntitySubClasses: z.string().optional(),
|
|
113
|
+
GraphQLServer: z.string().optional(),
|
|
114
|
+
Angular: z.string().optional(),
|
|
115
|
+
skip: z.array(z.enum(['EntitySubClasses', 'GraphQLServer', 'Angular', 'SQL'])).optional(),
|
|
116
|
+
});
|
|
71
117
|
const dbSchemaJSONOutputBundleSchema = z.object({
|
|
72
118
|
/** Name of the bundle */
|
|
73
119
|
name: z.string(),
|
|
@@ -234,9 +280,9 @@ const sqlOutputConfigSchema = z.object({
|
|
|
234
280
|
*/
|
|
235
281
|
convertCoreSchemaToFlywayMigrationFile: z.boolean().default(true),
|
|
236
282
|
/**
|
|
237
|
-
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to
|
|
283
|
+
* If true, scripts that are being emitted via SQL logging that are marked by CodeGen as recurring will be SKIPPED. Defaults to true
|
|
238
284
|
*/
|
|
239
|
-
omitRecurringScriptsFromLog: z.boolean().default(
|
|
285
|
+
omitRecurringScriptsFromLog: z.boolean().default(true),
|
|
240
286
|
/**
|
|
241
287
|
* Optional array of schema-to-placeholder mappings for Flyway migrations.
|
|
242
288
|
* Each mapping specifies a database schema name and its corresponding Flyway placeholder.
|
|
@@ -332,6 +378,15 @@ const newEntityRelationshipDefaultsSchema = z.object({
|
|
|
332
378
|
AutomaticallyCreateRelationships: z.boolean().default(true),
|
|
333
379
|
CreateOneToManyRelationships: z.boolean().default(true),
|
|
334
380
|
});
|
|
381
|
+
export const decisionMetadataConfigSchema = z.object({
|
|
382
|
+
/**
|
|
383
|
+
* Controls decision metadata persistence:
|
|
384
|
+
* - 'auto' (default): enabled if <metadataDirectory>/entities/.mj-sync.json exists
|
|
385
|
+
* - true: explicitly enabled
|
|
386
|
+
* - false: explicitly disabled
|
|
387
|
+
*/
|
|
388
|
+
enabled: z.union([z.literal('auto'), z.boolean()]).default('auto'),
|
|
389
|
+
}).default({ enabled: 'auto' });
|
|
335
390
|
const configInfoSchema = z.object({
|
|
336
391
|
newUserSetup: newUserSetupSchema.nullish(),
|
|
337
392
|
settings: settingInfoSchema.array().default([
|
|
@@ -370,10 +425,20 @@ const configInfoSchema = z.object({
|
|
|
370
425
|
* Leave off for Open Apps.
|
|
371
426
|
*/
|
|
372
427
|
allowCrossSchemaCascadeDeletes: z.boolean().default(false),
|
|
373
|
-
excludeTables:
|
|
428
|
+
excludeTables: excludeTableEntrySchema.array().default([
|
|
374
429
|
{ schema: '%', table: 'sys%' },
|
|
375
430
|
{ schema: '%', table: 'flyway_schema_history' }
|
|
376
431
|
]),
|
|
432
|
+
/**
|
|
433
|
+
* File-emit behaviour for entity subclasses and GraphQL resolvers.
|
|
434
|
+
* Schema is the incremental unit — see `guides/CODEGEN_LARGE_SCHEMA_GUIDE.md`.
|
|
435
|
+
*/
|
|
436
|
+
fileEmit: fileEmitSchema,
|
|
437
|
+
/**
|
|
438
|
+
* Route (or skip) generated artifacts for matching schemas to a directory
|
|
439
|
+
* other than the default `output.*` entry. First match wins.
|
|
440
|
+
*/
|
|
441
|
+
schemaOutput: schemaOutputOverrideSchema.array().optional(),
|
|
377
442
|
customSQLScripts: customSQLScriptSchema.array().default([
|
|
378
443
|
// AS OF 5.3.0 we are NOT including this as it wipes out standard views and procs
|
|
379
444
|
// for ZERO reason, we have a solid baseline configuration now. We are
|
|
@@ -392,11 +457,11 @@ const configInfoSchema = z.object({
|
|
|
392
457
|
}),
|
|
393
458
|
output: outputInfoSchema.array().default([
|
|
394
459
|
{ type: 'SQL', directory: '../../SQL Scripts/generated', appendOutputCode: true },
|
|
395
|
-
{ type: 'Angular', directory: '../MJExplorer/src/app/generated', options: [{ name: 'maxComponentsPerModule', value: 20 }] },
|
|
460
|
+
{ type: 'Angular', directory: '../MJExplorer/src/app/generated', options: [{ name: 'maxComponentsPerModule', value: 20 }, { name: 'submoduleCount', value: 32 }] },
|
|
396
461
|
{
|
|
397
462
|
type: 'AngularCoreEntities',
|
|
398
463
|
directory: '../Angular/Explorer/core-entity-forms/src/lib/generated',
|
|
399
|
-
options: [{ name: 'maxComponentsPerModule', value: 100 }],
|
|
464
|
+
options: [{ name: 'maxComponentsPerModule', value: 100 }, { name: 'submoduleCount', value: 32 }],
|
|
400
465
|
},
|
|
401
466
|
{ type: 'GraphQLServer', directory: '../MJAPI/src/generated' },
|
|
402
467
|
{ type: 'GraphQLCoreEntityResolvers', directory: '../MJServer/src/generated' },
|
|
@@ -440,6 +505,10 @@ const configInfoSchema = z.object({
|
|
|
440
505
|
newEntityRelationshipDefaults: newEntityRelationshipDefaultsSchema,
|
|
441
506
|
SQLOutput: sqlOutputConfigSchema,
|
|
442
507
|
forceRegeneration: forceRegenerationConfigSchema,
|
|
508
|
+
/** Root directory containing metadata files for sync (e.g. './metadata') */
|
|
509
|
+
metadataDirectory: z.string().optional(),
|
|
510
|
+
/** Decision metadata persistence settings */
|
|
511
|
+
decisionMetadata: decisionMetadataConfigSchema,
|
|
443
512
|
/** Database platform: 'sqlserver' or 'postgresql'. */
|
|
444
513
|
dbPlatform: z.enum(['sqlserver', 'postgresql']).default('sqlserver'),
|
|
445
514
|
dbHost: z.string(),
|
|
@@ -703,6 +772,8 @@ export const DEFAULT_CODEGEN_CONFIG = {
|
|
|
703
772
|
mjCoreSchema: '__mj',
|
|
704
773
|
graphqlPort: 4000,
|
|
705
774
|
verboseOutput: false,
|
|
775
|
+
metadataDirectory: './metadata',
|
|
776
|
+
decisionMetadata: { enabled: 'auto' },
|
|
706
777
|
settings: [
|
|
707
778
|
{ name: 'mj_core_schema', value: '__mj' },
|
|
708
779
|
{ name: 'skip_database_generation', value: false },
|
|
@@ -810,7 +881,7 @@ export const DEFAULT_CODEGEN_CONFIG = {
|
|
|
810
881
|
},
|
|
811
882
|
{
|
|
812
883
|
name: 'FormLayoutGeneration',
|
|
813
|
-
description: 'Use AI to generate semantic field categories
|
|
884
|
+
description: 'Use AI to generate semantic field categories and layout for new entities, newly added fields, and fields whose upstream schema changes re-opened them for review.',
|
|
814
885
|
enabled: true,
|
|
815
886
|
},
|
|
816
887
|
{
|
|
@@ -908,6 +979,14 @@ export function initializeConfig(cwd) {
|
|
|
908
979
|
// getExternalEntitySchemas() see the config from the correct working
|
|
909
980
|
// directory, not the stale one from initial module load.
|
|
910
981
|
Object.assign(configInfo, config);
|
|
982
|
+
if (process.env.MJ_CODEGEN_NO_AI === '1' || process.env.MJ_CODEGEN_NO_AI === 'true') {
|
|
983
|
+
if (!configInfo.advancedGeneration) {
|
|
984
|
+
configInfo.advancedGeneration = { enableAdvancedGeneration: false };
|
|
985
|
+
}
|
|
986
|
+
else {
|
|
987
|
+
configInfo.advancedGeneration.enableAdvancedGeneration = false;
|
|
988
|
+
}
|
|
989
|
+
}
|
|
911
990
|
return config;
|
|
912
991
|
}
|
|
913
992
|
/**
|
|
@@ -973,6 +1052,9 @@ export function outputOptionValue(type, optionName, defaultValue) {
|
|
|
973
1052
|
* @returns Array of commands to execute
|
|
974
1053
|
*/
|
|
975
1054
|
export function commands(when) {
|
|
1055
|
+
if (process.env.MJ_CODEGEN_SKIP_COMMANDS === '1' || process.env.MJ_CODEGEN_SKIP_COMMANDS === 'true') {
|
|
1056
|
+
return [];
|
|
1057
|
+
}
|
|
976
1058
|
return configInfo.commands.filter((c) => c.when.trim().toUpperCase() === when.trim().toUpperCase());
|
|
977
1059
|
}
|
|
978
1060
|
/**
|