@memberjunction/codegen-lib 2.13.2 → 2.13.4

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.
@@ -1,126 +1,478 @@
1
- export declare const dbHost: string;
2
- export declare const dbPort: number;
3
- export declare const dbUsername: string;
4
- export declare const dbPassword: string;
5
- export declare const dbDatabase: string;
6
- export declare const dbInstanceName: string | undefined;
7
- export declare const dbTrustServerCertificate: boolean | undefined;
8
- export declare const outputCode: string | undefined;
9
- export declare const configFile: string | undefined;
10
- export declare const mjCoreSchema: string;
11
- export declare const graphqlPort: number;
12
- export type TableInfo = {
13
- schema: string;
14
- table: string;
15
- };
16
- export type OutputOptionInfo = {
1
+ import { z } from 'zod';
2
+ export type SettingInfo = z.infer<typeof settingInfoSchema>;
3
+ declare const settingInfoSchema: z.ZodObject<{
4
+ name: z.ZodString;
5
+ value: z.ZodAny;
6
+ }, "strip", z.ZodTypeAny, {
17
7
  name: string;
18
- value: any;
19
- };
20
- export type OutputInfo = {
21
- type: string;
22
- directory: string;
23
- appendOutputCode?: boolean;
24
- options?: OutputOptionInfo[];
25
- };
26
- export type CommandInfo = {
8
+ value?: any;
9
+ }, {
10
+ name: string;
11
+ value?: any;
12
+ }>;
13
+ export type LogInfo = z.infer<typeof logInfoSchema>;
14
+ declare const logInfoSchema: z.ZodObject<{
15
+ log: z.ZodDefault<z.ZodBoolean>;
16
+ logFile: z.ZodDefault<z.ZodString>;
17
+ console: z.ZodDefault<z.ZodBoolean>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ log: boolean;
20
+ logFile: string;
21
+ console: boolean;
22
+ }, {
23
+ log?: boolean | undefined;
24
+ logFile?: string | undefined;
25
+ console?: boolean | undefined;
26
+ }>;
27
+ export type CustomSQLScript = z.infer<typeof customSQLScriptSchema>;
28
+ declare const customSQLScriptSchema: z.ZodObject<{
29
+ when: z.ZodString;
30
+ scriptFile: z.ZodString;
31
+ }, "strip", z.ZodTypeAny, {
32
+ when: string;
33
+ scriptFile: string;
34
+ }, {
35
+ when: string;
36
+ scriptFile: string;
37
+ }>;
38
+ export type CommandInfo = z.infer<typeof commandInfoSchema>;
39
+ declare const commandInfoSchema: z.ZodObject<{
40
+ workingDirectory: z.ZodString;
41
+ command: z.ZodString;
42
+ args: z.ZodArray<z.ZodString, "many">;
43
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ when: z.ZodString;
45
+ }, "strip", z.ZodTypeAny, {
46
+ args: string[];
47
+ when: string;
27
48
  workingDirectory: string;
28
49
  command: string;
50
+ timeout?: number | null | undefined;
51
+ }, {
29
52
  args: string[];
30
- timeout: number;
31
53
  when: string;
32
- };
33
- export type CustomSQLScript = {
34
- when: string;
35
- scriptFile: string;
36
- };
37
- export type LogInfo = {
38
- log: boolean;
39
- logFile: string;
40
- console: boolean;
41
- };
42
- export type SettingInfo = {
54
+ workingDirectory: string;
55
+ command: string;
56
+ timeout?: number | null | undefined;
57
+ }>;
58
+ export type OutputOptionInfo = z.infer<typeof outputOptionInfoSchema>;
59
+ declare const outputOptionInfoSchema: z.ZodObject<{
60
+ name: z.ZodString;
61
+ value: z.ZodAny;
62
+ }, "strip", z.ZodTypeAny, {
63
+ name: string;
64
+ value?: any;
65
+ }, {
66
+ name: string;
67
+ value?: any;
68
+ }>;
69
+ export type OutputInfo = z.infer<typeof outputInfoSchema>;
70
+ declare const outputInfoSchema: z.ZodObject<{
71
+ type: z.ZodString;
72
+ directory: z.ZodString;
73
+ appendOutputCode: z.ZodOptional<z.ZodBoolean>;
74
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
75
+ name: z.ZodString;
76
+ value: z.ZodAny;
77
+ }, "strip", z.ZodTypeAny, {
78
+ name: string;
79
+ value?: any;
80
+ }, {
81
+ name: string;
82
+ value?: any;
83
+ }>, "many">>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ type: string;
86
+ directory: string;
87
+ options?: {
88
+ name: string;
89
+ value?: any;
90
+ }[] | undefined;
91
+ appendOutputCode?: boolean | undefined;
92
+ }, {
93
+ type: string;
94
+ directory: string;
95
+ options?: {
96
+ name: string;
97
+ value?: any;
98
+ }[] | undefined;
99
+ appendOutputCode?: boolean | undefined;
100
+ }>;
101
+ export type TableInfo = z.infer<typeof tableInfoSchema>;
102
+ declare const tableInfoSchema: z.ZodObject<{
103
+ schema: z.ZodString;
104
+ table: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ table: string;
107
+ schema: string;
108
+ }, {
109
+ table: string;
110
+ schema: string;
111
+ }>;
112
+ export type DBSchemaJSONOutputBundle = z.infer<typeof dbSchemaJSONOutputBundleSchema>;
113
+ declare const dbSchemaJSONOutputBundleSchema: z.ZodObject<{
114
+ name: z.ZodString;
115
+ schemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
116
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
117
+ excludeEntities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
118
+ }, "strip", z.ZodTypeAny, {
43
119
  name: string;
44
- value: any;
45
- };
46
- export type DBSchemaJSONOutput = {
47
120
  excludeSchemas: string[];
48
121
  excludeEntities: string[];
49
- bundles: DBSchemaJSONOutputBundle[];
50
- };
51
- export type DBSchemaJSONOutputBundle = {
52
- name: string;
53
122
  schemas: string[];
123
+ }, {
124
+ name: string;
125
+ excludeSchemas?: string[] | undefined;
126
+ excludeEntities?: string[] | undefined;
127
+ schemas?: string[] | undefined;
128
+ }>;
129
+ export type DBSchemaJSONOutput = z.infer<typeof dbSchemaJSONOutputSchema>;
130
+ declare const dbSchemaJSONOutputSchema: z.ZodObject<{
131
+ excludeEntities: z.ZodArray<z.ZodString, "many">;
132
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
133
+ bundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
134
+ name: z.ZodString;
135
+ schemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
136
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
137
+ excludeEntities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
138
+ }, "strip", z.ZodTypeAny, {
139
+ name: string;
140
+ excludeSchemas: string[];
141
+ excludeEntities: string[];
142
+ schemas: string[];
143
+ }, {
144
+ name: string;
145
+ excludeSchemas?: string[] | undefined;
146
+ excludeEntities?: string[] | undefined;
147
+ schemas?: string[] | undefined;
148
+ }>, "many">>;
149
+ }, "strip", z.ZodTypeAny, {
54
150
  excludeSchemas: string[];
55
151
  excludeEntities: string[];
56
- };
57
- export type NewUserSetup = {
152
+ bundles: {
153
+ name: string;
154
+ excludeSchemas: string[];
155
+ excludeEntities: string[];
156
+ schemas: string[];
157
+ }[];
158
+ }, {
159
+ excludeEntities: string[];
160
+ excludeSchemas?: string[] | undefined;
161
+ bundles?: {
162
+ name: string;
163
+ excludeSchemas?: string[] | undefined;
164
+ excludeEntities?: string[] | undefined;
165
+ schemas?: string[] | undefined;
166
+ }[] | undefined;
167
+ }>;
168
+ export type NewUserSetup = z.infer<typeof newUserSetupSchema>;
169
+ declare const newUserSetupSchema: z.ZodObject<{
170
+ UserName: z.ZodString;
171
+ FirstName: z.ZodString;
172
+ LastName: z.ZodString;
173
+ Email: z.ZodString;
174
+ Roles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
175
+ CreateUserApplicationRecords: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
176
+ UserApplications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
177
+ }, "strip", z.ZodTypeAny, {
58
178
  UserName: string;
59
179
  FirstName: string;
60
180
  LastName: string;
61
181
  Email: string;
62
182
  Roles: string[];
63
- IsComplete: boolean;
64
- };
65
- export type AdvancedGenerationFeatureOption = {
183
+ CreateUserApplicationRecords: boolean;
184
+ UserApplications: string[];
185
+ }, {
186
+ UserName: string;
187
+ FirstName: string;
188
+ LastName: string;
189
+ Email: string;
190
+ Roles?: string[] | undefined;
191
+ CreateUserApplicationRecords?: boolean | undefined;
192
+ UserApplications?: string[] | undefined;
193
+ }>;
194
+ export type AdvancedGenerationFeatureOption = z.infer<typeof advancedGenerationFeatureOptionSchema>;
195
+ declare const advancedGenerationFeatureOptionSchema: z.ZodObject<{
196
+ name: z.ZodString;
197
+ value: z.ZodUnknown;
198
+ }, "strip", z.ZodTypeAny, {
66
199
  name: string;
67
- value: any;
68
- };
69
- export type AdvancedGenerationFeature = {
200
+ value?: unknown;
201
+ }, {
202
+ name: string;
203
+ value?: unknown;
204
+ }>;
205
+ export type AdvancedGenerationFeature = z.infer<typeof advancedGenerationFeatureSchema>;
206
+ declare const advancedGenerationFeatureSchema: z.ZodObject<{
207
+ name: z.ZodString;
208
+ enabled: z.ZodBoolean;
209
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
210
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
211
+ userMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
212
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
213
+ name: z.ZodString;
214
+ value: z.ZodUnknown;
215
+ }, "strip", z.ZodTypeAny, {
216
+ name: string;
217
+ value?: unknown;
218
+ }, {
219
+ name: string;
220
+ value?: unknown;
221
+ }>, "many">>>;
222
+ }, "strip", z.ZodTypeAny, {
70
223
  name: string;
71
224
  enabled: boolean;
72
- description?: string;
73
- systemPrompt?: string;
74
- userMessage?: string;
75
- options?: AdvancedGenerationFeatureOption[];
76
- };
77
- export type AdvancedGeneration = {
225
+ options?: {
226
+ name: string;
227
+ value?: unknown;
228
+ }[] | null | undefined;
229
+ description?: string | null | undefined;
230
+ systemPrompt?: string | null | undefined;
231
+ userMessage?: string | null | undefined;
232
+ }, {
233
+ name: string;
234
+ enabled: boolean;
235
+ options?: {
236
+ name: string;
237
+ value?: unknown;
238
+ }[] | null | undefined;
239
+ description?: string | null | undefined;
240
+ systemPrompt?: string | null | undefined;
241
+ userMessage?: string | null | undefined;
242
+ }>;
243
+ export type AdvancedGeneration = z.infer<typeof advancedGenerationSchema>;
244
+ declare const advancedGenerationSchema: z.ZodObject<{
245
+ enableAdvancedGeneration: z.ZodDefault<z.ZodBoolean>;
246
+ AIVendor: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "mistral"]>>;
247
+ AIModel: z.ZodDefault<z.ZodString>;
248
+ features: z.ZodDefault<z.ZodArray<z.ZodObject<{
249
+ name: z.ZodString;
250
+ enabled: z.ZodBoolean;
251
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ userMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
254
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
255
+ name: z.ZodString;
256
+ value: z.ZodUnknown;
257
+ }, "strip", z.ZodTypeAny, {
258
+ name: string;
259
+ value?: unknown;
260
+ }, {
261
+ name: string;
262
+ value?: unknown;
263
+ }>, "many">>>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ name: string;
266
+ enabled: boolean;
267
+ options?: {
268
+ name: string;
269
+ value?: unknown;
270
+ }[] | null | undefined;
271
+ description?: string | null | undefined;
272
+ systemPrompt?: string | null | undefined;
273
+ userMessage?: string | null | undefined;
274
+ }, {
275
+ name: string;
276
+ enabled: boolean;
277
+ options?: {
278
+ name: string;
279
+ value?: unknown;
280
+ }[] | null | undefined;
281
+ description?: string | null | undefined;
282
+ systemPrompt?: string | null | undefined;
283
+ userMessage?: string | null | undefined;
284
+ }>, "many">>;
285
+ }, "strip", z.ZodTypeAny, {
78
286
  enableAdvancedGeneration: boolean;
79
287
  AIVendor: "openai" | "anthropic" | "mistral";
80
- AIModel: "";
81
- features: AdvancedGenerationFeature[];
82
- };
83
- export type ConfigInfo = {
84
- newUserSetup?: NewUserSetup;
85
- settings: SettingInfo[];
86
- excludeSchemas: string[];
87
- excludeTables: TableInfo[];
88
- customSQLScripts: CustomSQLScript[];
89
- advancedGeneration?: AdvancedGeneration;
90
- output: OutputInfo[];
91
- commands: CommandInfo[];
92
- logging: LogInfo;
93
- newEntityDefaults: NewEntityDefaults;
94
- newSchemaDefaults: NewSchemaDefaults;
95
- dbSchemaJSONOutput: DBSchemaJSONOutput;
96
- newEntityRelationshipDefaults: NewEntityRelationshipDefaults;
97
- SQLOutput: SQLOutputConfig;
98
- };
99
- export type SQLOutputConfig = {
288
+ AIModel: string;
289
+ features: {
290
+ name: string;
291
+ enabled: boolean;
292
+ options?: {
293
+ name: string;
294
+ value?: unknown;
295
+ }[] | null | undefined;
296
+ description?: string | null | undefined;
297
+ systemPrompt?: string | null | undefined;
298
+ userMessage?: string | null | undefined;
299
+ }[];
300
+ }, {
301
+ enableAdvancedGeneration?: boolean | undefined;
302
+ AIVendor?: "openai" | "anthropic" | "mistral" | undefined;
303
+ AIModel?: string | undefined;
304
+ features?: {
305
+ name: string;
306
+ enabled: boolean;
307
+ options?: {
308
+ name: string;
309
+ value?: unknown;
310
+ }[] | null | undefined;
311
+ description?: string | null | undefined;
312
+ systemPrompt?: string | null | undefined;
313
+ userMessage?: string | null | undefined;
314
+ }[] | undefined;
315
+ }>;
316
+ export type SQLOutputConfig = z.infer<typeof sqlOutputConfigSchema>;
317
+ declare const sqlOutputConfigSchema: z.ZodObject<{
100
318
  /**
101
319
  * Whether or not sql statements generated while managing metadata should be written to a file
102
320
  */
103
- enabled: boolean;
321
+ enabled: z.ZodDefault<z.ZodBoolean>;
104
322
  /**
105
323
  * The path of the folder to use when logging is enabled.
106
324
  * If provided, a file will be created with the format "CodeGen_Run_yyyy-mm-dd_hh-mm-ss.sql"
107
325
  */
108
- folderPath: string;
326
+ folderPath: z.ZodDefault<z.ZodString>;
109
327
  /**
110
328
  * Optional, the file name that will be written WITHIN the folderPath specified.
111
329
  */
112
- fileName?: string;
330
+ fileName: z.ZodOptional<z.ZodString>;
113
331
  /**
114
332
  * If set to true, then we append to the existing file, if one exists, otherwise we create a new file.
115
333
  */
116
- appendToFile?: boolean;
334
+ appendToFile: z.ZodDefault<z.ZodBoolean>;
117
335
  /**
118
336
  * If true, all mention of the core schema within the log file will be replaced with the flyway schema,
119
- * ${flyway:defaultSchema}
337
+ * ${flyway:defaultSchema}
120
338
  */
339
+ convertCoreSchemaToFlywayMigrationFile: z.ZodDefault<z.ZodBoolean>;
340
+ }, "strip", z.ZodTypeAny, {
341
+ enabled: boolean;
342
+ folderPath: string;
343
+ appendToFile: boolean;
121
344
  convertCoreSchemaToFlywayMigrationFile: boolean;
122
- };
123
- export type NewEntityDefaults = {
345
+ fileName?: string | undefined;
346
+ }, {
347
+ enabled?: boolean | undefined;
348
+ folderPath?: string | undefined;
349
+ fileName?: string | undefined;
350
+ appendToFile?: boolean | undefined;
351
+ convertCoreSchemaToFlywayMigrationFile?: boolean | undefined;
352
+ }>;
353
+ export type NewSchemaDefaults = z.infer<typeof newSchemaDefaultsSchema>;
354
+ declare const newSchemaDefaultsSchema: z.ZodObject<{
355
+ CreateNewApplicationWithSchemaName: z.ZodDefault<z.ZodBoolean>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ CreateNewApplicationWithSchemaName: boolean;
358
+ }, {
359
+ CreateNewApplicationWithSchemaName?: boolean | undefined;
360
+ }>;
361
+ declare const entityPermissionSchema: z.ZodObject<{
362
+ RoleName: z.ZodString;
363
+ CanRead: z.ZodBoolean;
364
+ CanCreate: z.ZodBoolean;
365
+ CanUpdate: z.ZodBoolean;
366
+ CanDelete: z.ZodBoolean;
367
+ }, "strip", z.ZodTypeAny, {
368
+ RoleName: string;
369
+ CanRead: boolean;
370
+ CanCreate: boolean;
371
+ CanUpdate: boolean;
372
+ CanDelete: boolean;
373
+ }, {
374
+ RoleName: string;
375
+ CanRead: boolean;
376
+ CanCreate: boolean;
377
+ CanUpdate: boolean;
378
+ CanDelete: boolean;
379
+ }>;
380
+ export type EntityPermission = z.infer<typeof entityPermissionSchema>;
381
+ declare const newEntityPermissionDefaultsSchema: z.ZodObject<{
382
+ AutoAddPermissionsForNewEntities: z.ZodDefault<z.ZodBoolean>;
383
+ Permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
384
+ RoleName: z.ZodString;
385
+ CanRead: z.ZodBoolean;
386
+ CanCreate: z.ZodBoolean;
387
+ CanUpdate: z.ZodBoolean;
388
+ CanDelete: z.ZodBoolean;
389
+ }, "strip", z.ZodTypeAny, {
390
+ RoleName: string;
391
+ CanRead: boolean;
392
+ CanCreate: boolean;
393
+ CanUpdate: boolean;
394
+ CanDelete: boolean;
395
+ }, {
396
+ RoleName: string;
397
+ CanRead: boolean;
398
+ CanCreate: boolean;
399
+ CanUpdate: boolean;
400
+ CanDelete: boolean;
401
+ }>, "many">>;
402
+ }, "strip", z.ZodTypeAny, {
403
+ AutoAddPermissionsForNewEntities: boolean;
404
+ Permissions: {
405
+ RoleName: string;
406
+ CanRead: boolean;
407
+ CanCreate: boolean;
408
+ CanUpdate: boolean;
409
+ CanDelete: boolean;
410
+ }[];
411
+ }, {
412
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
413
+ Permissions?: {
414
+ RoleName: string;
415
+ CanRead: boolean;
416
+ CanCreate: boolean;
417
+ CanUpdate: boolean;
418
+ CanDelete: boolean;
419
+ }[] | undefined;
420
+ }>;
421
+ export type NewEntityPermissionDefaults = z.infer<typeof newEntityPermissionDefaultsSchema>;
422
+ declare const newEntityDefaultsSchema: z.ZodObject<{
423
+ TrackRecordChanges: z.ZodDefault<z.ZodBoolean>;
424
+ AuditRecordAccess: z.ZodDefault<z.ZodBoolean>;
425
+ AuditViewRuns: z.ZodDefault<z.ZodBoolean>;
426
+ AllowAllRowsAPI: z.ZodDefault<z.ZodBoolean>;
427
+ AllowCreateAPI: z.ZodDefault<z.ZodBoolean>;
428
+ AllowUpdateAPI: z.ZodDefault<z.ZodBoolean>;
429
+ AllowDeleteAPI: z.ZodDefault<z.ZodBoolean>;
430
+ AllowUserSearchAPI: z.ZodDefault<z.ZodBoolean>;
431
+ CascadeDeletes: z.ZodDefault<z.ZodBoolean>;
432
+ UserViewMaxRows: z.ZodDefault<z.ZodNumber>;
433
+ AddToApplicationWithSchemaName: z.ZodDefault<z.ZodBoolean>;
434
+ IncludeFirstNFieldsAsDefaultInView: z.ZodDefault<z.ZodNumber>;
435
+ PermissionDefaults: z.ZodObject<{
436
+ AutoAddPermissionsForNewEntities: z.ZodDefault<z.ZodBoolean>;
437
+ Permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
438
+ RoleName: z.ZodString;
439
+ CanRead: z.ZodBoolean;
440
+ CanCreate: z.ZodBoolean;
441
+ CanUpdate: z.ZodBoolean;
442
+ CanDelete: z.ZodBoolean;
443
+ }, "strip", z.ZodTypeAny, {
444
+ RoleName: string;
445
+ CanRead: boolean;
446
+ CanCreate: boolean;
447
+ CanUpdate: boolean;
448
+ CanDelete: boolean;
449
+ }, {
450
+ RoleName: string;
451
+ CanRead: boolean;
452
+ CanCreate: boolean;
453
+ CanUpdate: boolean;
454
+ CanDelete: boolean;
455
+ }>, "many">>;
456
+ }, "strip", z.ZodTypeAny, {
457
+ AutoAddPermissionsForNewEntities: boolean;
458
+ Permissions: {
459
+ RoleName: string;
460
+ CanRead: boolean;
461
+ CanCreate: boolean;
462
+ CanUpdate: boolean;
463
+ CanDelete: boolean;
464
+ }[];
465
+ }, {
466
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
467
+ Permissions?: {
468
+ RoleName: string;
469
+ CanRead: boolean;
470
+ CanCreate: boolean;
471
+ CanUpdate: boolean;
472
+ CanDelete: boolean;
473
+ }[] | undefined;
474
+ }>;
475
+ }, "strip", z.ZodTypeAny, {
124
476
  TrackRecordChanges: boolean;
125
477
  AuditRecordAccess: boolean;
126
478
  AuditViewRuns: boolean;
@@ -129,32 +481,809 @@ export type NewEntityDefaults = {
129
481
  AllowUpdateAPI: boolean;
130
482
  AllowDeleteAPI: boolean;
131
483
  AllowUserSearchAPI: boolean;
484
+ CascadeDeletes: boolean;
132
485
  UserViewMaxRows: number;
133
486
  AddToApplicationWithSchemaName: boolean;
134
487
  IncludeFirstNFieldsAsDefaultInView: number;
135
- PermissionDefaults: NewEntityPermissionDefaults;
136
- };
137
- export type EntityPermission = {
138
- RoleName: string;
139
- CanRead: boolean;
140
- CanCreate: boolean;
141
- CanUpdate: boolean;
142
- CanDelete: boolean;
143
- };
144
- export type NewEntityPermissionDefaults = {
145
- AutoAddPermissionsForNewEntities: boolean;
146
- Permissions: EntityPermission[];
147
- };
148
- export type NewSchemaDefaults = {
149
- CreateNewApplicationWithSchemaName: boolean;
150
- };
151
- export type NewEntityRelationshipDefaults = {
488
+ PermissionDefaults: {
489
+ AutoAddPermissionsForNewEntities: boolean;
490
+ Permissions: {
491
+ RoleName: string;
492
+ CanRead: boolean;
493
+ CanCreate: boolean;
494
+ CanUpdate: boolean;
495
+ CanDelete: boolean;
496
+ }[];
497
+ };
498
+ }, {
499
+ PermissionDefaults: {
500
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
501
+ Permissions?: {
502
+ RoleName: string;
503
+ CanRead: boolean;
504
+ CanCreate: boolean;
505
+ CanUpdate: boolean;
506
+ CanDelete: boolean;
507
+ }[] | undefined;
508
+ };
509
+ TrackRecordChanges?: boolean | undefined;
510
+ AuditRecordAccess?: boolean | undefined;
511
+ AuditViewRuns?: boolean | undefined;
512
+ AllowAllRowsAPI?: boolean | undefined;
513
+ AllowCreateAPI?: boolean | undefined;
514
+ AllowUpdateAPI?: boolean | undefined;
515
+ AllowDeleteAPI?: boolean | undefined;
516
+ AllowUserSearchAPI?: boolean | undefined;
517
+ CascadeDeletes?: boolean | undefined;
518
+ UserViewMaxRows?: number | undefined;
519
+ AddToApplicationWithSchemaName?: boolean | undefined;
520
+ IncludeFirstNFieldsAsDefaultInView?: number | undefined;
521
+ }>;
522
+ export type NewEntityRelationshipDefaults = z.infer<typeof newEntityRelationshipDefaultsSchema>;
523
+ declare const newEntityRelationshipDefaultsSchema: z.ZodObject<{
524
+ AutomaticallyCreateRelationships: z.ZodDefault<z.ZodBoolean>;
525
+ CreateOneToManyRelationships: z.ZodDefault<z.ZodBoolean>;
526
+ }, "strip", z.ZodTypeAny, {
152
527
  AutomaticallyCreateRelationships: boolean;
153
528
  CreateOneToManyRelationships: boolean;
154
- };
155
- export declare let configInfo: ConfigInfo;
529
+ }, {
530
+ AutomaticallyCreateRelationships?: boolean | undefined;
531
+ CreateOneToManyRelationships?: boolean | undefined;
532
+ }>;
533
+ export type NewEntityDefaults = z.infer<typeof newEntityDefaultsSchema>;
534
+ export type ConfigInfo = z.infer<typeof configInfoSchema>;
535
+ declare const configInfoSchema: z.ZodObject<{
536
+ newUserSetup: z.ZodOptional<z.ZodNullable<z.ZodObject<{
537
+ UserName: z.ZodString;
538
+ FirstName: z.ZodString;
539
+ LastName: z.ZodString;
540
+ Email: z.ZodString;
541
+ Roles: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
542
+ CreateUserApplicationRecords: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
543
+ UserApplications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
544
+ }, "strip", z.ZodTypeAny, {
545
+ UserName: string;
546
+ FirstName: string;
547
+ LastName: string;
548
+ Email: string;
549
+ Roles: string[];
550
+ CreateUserApplicationRecords: boolean;
551
+ UserApplications: string[];
552
+ }, {
553
+ UserName: string;
554
+ FirstName: string;
555
+ LastName: string;
556
+ Email: string;
557
+ Roles?: string[] | undefined;
558
+ CreateUserApplicationRecords?: boolean | undefined;
559
+ UserApplications?: string[] | undefined;
560
+ }>>>;
561
+ settings: z.ZodDefault<z.ZodArray<z.ZodObject<{
562
+ name: z.ZodString;
563
+ value: z.ZodAny;
564
+ }, "strip", z.ZodTypeAny, {
565
+ name: string;
566
+ value?: any;
567
+ }, {
568
+ name: string;
569
+ value?: any;
570
+ }>, "many">>;
571
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
572
+ excludeTables: z.ZodDefault<z.ZodArray<z.ZodObject<{
573
+ schema: z.ZodString;
574
+ table: z.ZodString;
575
+ }, "strip", z.ZodTypeAny, {
576
+ table: string;
577
+ schema: string;
578
+ }, {
579
+ table: string;
580
+ schema: string;
581
+ }>, "many">>;
582
+ customSQLScripts: z.ZodDefault<z.ZodArray<z.ZodObject<{
583
+ when: z.ZodString;
584
+ scriptFile: z.ZodString;
585
+ }, "strip", z.ZodTypeAny, {
586
+ when: string;
587
+ scriptFile: string;
588
+ }, {
589
+ when: string;
590
+ scriptFile: string;
591
+ }>, "many">>;
592
+ advancedGeneration: z.ZodOptional<z.ZodNullable<z.ZodObject<{
593
+ enableAdvancedGeneration: z.ZodDefault<z.ZodBoolean>;
594
+ AIVendor: z.ZodDefault<z.ZodEnum<["openai", "anthropic", "mistral"]>>;
595
+ AIModel: z.ZodDefault<z.ZodString>;
596
+ features: z.ZodDefault<z.ZodArray<z.ZodObject<{
597
+ name: z.ZodString;
598
+ enabled: z.ZodBoolean;
599
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
600
+ systemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
601
+ userMessage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
+ options: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
603
+ name: z.ZodString;
604
+ value: z.ZodUnknown;
605
+ }, "strip", z.ZodTypeAny, {
606
+ name: string;
607
+ value?: unknown;
608
+ }, {
609
+ name: string;
610
+ value?: unknown;
611
+ }>, "many">>>;
612
+ }, "strip", z.ZodTypeAny, {
613
+ name: string;
614
+ enabled: boolean;
615
+ options?: {
616
+ name: string;
617
+ value?: unknown;
618
+ }[] | null | undefined;
619
+ description?: string | null | undefined;
620
+ systemPrompt?: string | null | undefined;
621
+ userMessage?: string | null | undefined;
622
+ }, {
623
+ name: string;
624
+ enabled: boolean;
625
+ options?: {
626
+ name: string;
627
+ value?: unknown;
628
+ }[] | null | undefined;
629
+ description?: string | null | undefined;
630
+ systemPrompt?: string | null | undefined;
631
+ userMessage?: string | null | undefined;
632
+ }>, "many">>;
633
+ }, "strip", z.ZodTypeAny, {
634
+ enableAdvancedGeneration: boolean;
635
+ AIVendor: "openai" | "anthropic" | "mistral";
636
+ AIModel: string;
637
+ features: {
638
+ name: string;
639
+ enabled: boolean;
640
+ options?: {
641
+ name: string;
642
+ value?: unknown;
643
+ }[] | null | undefined;
644
+ description?: string | null | undefined;
645
+ systemPrompt?: string | null | undefined;
646
+ userMessage?: string | null | undefined;
647
+ }[];
648
+ }, {
649
+ enableAdvancedGeneration?: boolean | undefined;
650
+ AIVendor?: "openai" | "anthropic" | "mistral" | undefined;
651
+ AIModel?: string | undefined;
652
+ features?: {
653
+ name: string;
654
+ enabled: boolean;
655
+ options?: {
656
+ name: string;
657
+ value?: unknown;
658
+ }[] | null | undefined;
659
+ description?: string | null | undefined;
660
+ systemPrompt?: string | null | undefined;
661
+ userMessage?: string | null | undefined;
662
+ }[] | undefined;
663
+ }>>>;
664
+ output: z.ZodDefault<z.ZodArray<z.ZodObject<{
665
+ type: z.ZodString;
666
+ directory: z.ZodString;
667
+ appendOutputCode: z.ZodOptional<z.ZodBoolean>;
668
+ options: z.ZodOptional<z.ZodArray<z.ZodObject<{
669
+ name: z.ZodString;
670
+ value: z.ZodAny;
671
+ }, "strip", z.ZodTypeAny, {
672
+ name: string;
673
+ value?: any;
674
+ }, {
675
+ name: string;
676
+ value?: any;
677
+ }>, "many">>;
678
+ }, "strip", z.ZodTypeAny, {
679
+ type: string;
680
+ directory: string;
681
+ options?: {
682
+ name: string;
683
+ value?: any;
684
+ }[] | undefined;
685
+ appendOutputCode?: boolean | undefined;
686
+ }, {
687
+ type: string;
688
+ directory: string;
689
+ options?: {
690
+ name: string;
691
+ value?: any;
692
+ }[] | undefined;
693
+ appendOutputCode?: boolean | undefined;
694
+ }>, "many">>;
695
+ commands: z.ZodDefault<z.ZodArray<z.ZodObject<{
696
+ workingDirectory: z.ZodString;
697
+ command: z.ZodString;
698
+ args: z.ZodArray<z.ZodString, "many">;
699
+ timeout: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
700
+ when: z.ZodString;
701
+ }, "strip", z.ZodTypeAny, {
702
+ args: string[];
703
+ when: string;
704
+ workingDirectory: string;
705
+ command: string;
706
+ timeout?: number | null | undefined;
707
+ }, {
708
+ args: string[];
709
+ when: string;
710
+ workingDirectory: string;
711
+ command: string;
712
+ timeout?: number | null | undefined;
713
+ }>, "many">>;
714
+ logging: z.ZodObject<{
715
+ log: z.ZodDefault<z.ZodBoolean>;
716
+ logFile: z.ZodDefault<z.ZodString>;
717
+ console: z.ZodDefault<z.ZodBoolean>;
718
+ }, "strip", z.ZodTypeAny, {
719
+ log: boolean;
720
+ logFile: string;
721
+ console: boolean;
722
+ }, {
723
+ log?: boolean | undefined;
724
+ logFile?: string | undefined;
725
+ console?: boolean | undefined;
726
+ }>;
727
+ newEntityDefaults: z.ZodObject<{
728
+ TrackRecordChanges: z.ZodDefault<z.ZodBoolean>;
729
+ AuditRecordAccess: z.ZodDefault<z.ZodBoolean>;
730
+ AuditViewRuns: z.ZodDefault<z.ZodBoolean>;
731
+ AllowAllRowsAPI: z.ZodDefault<z.ZodBoolean>;
732
+ AllowCreateAPI: z.ZodDefault<z.ZodBoolean>;
733
+ AllowUpdateAPI: z.ZodDefault<z.ZodBoolean>;
734
+ AllowDeleteAPI: z.ZodDefault<z.ZodBoolean>;
735
+ AllowUserSearchAPI: z.ZodDefault<z.ZodBoolean>;
736
+ CascadeDeletes: z.ZodDefault<z.ZodBoolean>;
737
+ UserViewMaxRows: z.ZodDefault<z.ZodNumber>;
738
+ AddToApplicationWithSchemaName: z.ZodDefault<z.ZodBoolean>;
739
+ IncludeFirstNFieldsAsDefaultInView: z.ZodDefault<z.ZodNumber>;
740
+ PermissionDefaults: z.ZodObject<{
741
+ AutoAddPermissionsForNewEntities: z.ZodDefault<z.ZodBoolean>;
742
+ Permissions: z.ZodDefault<z.ZodArray<z.ZodObject<{
743
+ RoleName: z.ZodString;
744
+ CanRead: z.ZodBoolean;
745
+ CanCreate: z.ZodBoolean;
746
+ CanUpdate: z.ZodBoolean;
747
+ CanDelete: z.ZodBoolean;
748
+ }, "strip", z.ZodTypeAny, {
749
+ RoleName: string;
750
+ CanRead: boolean;
751
+ CanCreate: boolean;
752
+ CanUpdate: boolean;
753
+ CanDelete: boolean;
754
+ }, {
755
+ RoleName: string;
756
+ CanRead: boolean;
757
+ CanCreate: boolean;
758
+ CanUpdate: boolean;
759
+ CanDelete: boolean;
760
+ }>, "many">>;
761
+ }, "strip", z.ZodTypeAny, {
762
+ AutoAddPermissionsForNewEntities: boolean;
763
+ Permissions: {
764
+ RoleName: string;
765
+ CanRead: boolean;
766
+ CanCreate: boolean;
767
+ CanUpdate: boolean;
768
+ CanDelete: boolean;
769
+ }[];
770
+ }, {
771
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
772
+ Permissions?: {
773
+ RoleName: string;
774
+ CanRead: boolean;
775
+ CanCreate: boolean;
776
+ CanUpdate: boolean;
777
+ CanDelete: boolean;
778
+ }[] | undefined;
779
+ }>;
780
+ }, "strip", z.ZodTypeAny, {
781
+ TrackRecordChanges: boolean;
782
+ AuditRecordAccess: boolean;
783
+ AuditViewRuns: boolean;
784
+ AllowAllRowsAPI: boolean;
785
+ AllowCreateAPI: boolean;
786
+ AllowUpdateAPI: boolean;
787
+ AllowDeleteAPI: boolean;
788
+ AllowUserSearchAPI: boolean;
789
+ CascadeDeletes: boolean;
790
+ UserViewMaxRows: number;
791
+ AddToApplicationWithSchemaName: boolean;
792
+ IncludeFirstNFieldsAsDefaultInView: number;
793
+ PermissionDefaults: {
794
+ AutoAddPermissionsForNewEntities: boolean;
795
+ Permissions: {
796
+ RoleName: string;
797
+ CanRead: boolean;
798
+ CanCreate: boolean;
799
+ CanUpdate: boolean;
800
+ CanDelete: boolean;
801
+ }[];
802
+ };
803
+ }, {
804
+ PermissionDefaults: {
805
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
806
+ Permissions?: {
807
+ RoleName: string;
808
+ CanRead: boolean;
809
+ CanCreate: boolean;
810
+ CanUpdate: boolean;
811
+ CanDelete: boolean;
812
+ }[] | undefined;
813
+ };
814
+ TrackRecordChanges?: boolean | undefined;
815
+ AuditRecordAccess?: boolean | undefined;
816
+ AuditViewRuns?: boolean | undefined;
817
+ AllowAllRowsAPI?: boolean | undefined;
818
+ AllowCreateAPI?: boolean | undefined;
819
+ AllowUpdateAPI?: boolean | undefined;
820
+ AllowDeleteAPI?: boolean | undefined;
821
+ AllowUserSearchAPI?: boolean | undefined;
822
+ CascadeDeletes?: boolean | undefined;
823
+ UserViewMaxRows?: number | undefined;
824
+ AddToApplicationWithSchemaName?: boolean | undefined;
825
+ IncludeFirstNFieldsAsDefaultInView?: number | undefined;
826
+ }>;
827
+ newSchemaDefaults: z.ZodObject<{
828
+ CreateNewApplicationWithSchemaName: z.ZodDefault<z.ZodBoolean>;
829
+ }, "strip", z.ZodTypeAny, {
830
+ CreateNewApplicationWithSchemaName: boolean;
831
+ }, {
832
+ CreateNewApplicationWithSchemaName?: boolean | undefined;
833
+ }>;
834
+ dbSchemaJSONOutput: z.ZodObject<{
835
+ excludeEntities: z.ZodArray<z.ZodString, "many">;
836
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
837
+ bundles: z.ZodDefault<z.ZodArray<z.ZodObject<{
838
+ name: z.ZodString;
839
+ schemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
840
+ excludeSchemas: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
841
+ excludeEntities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
842
+ }, "strip", z.ZodTypeAny, {
843
+ name: string;
844
+ excludeSchemas: string[];
845
+ excludeEntities: string[];
846
+ schemas: string[];
847
+ }, {
848
+ name: string;
849
+ excludeSchemas?: string[] | undefined;
850
+ excludeEntities?: string[] | undefined;
851
+ schemas?: string[] | undefined;
852
+ }>, "many">>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ excludeSchemas: string[];
855
+ excludeEntities: string[];
856
+ bundles: {
857
+ name: string;
858
+ excludeSchemas: string[];
859
+ excludeEntities: string[];
860
+ schemas: string[];
861
+ }[];
862
+ }, {
863
+ excludeEntities: string[];
864
+ excludeSchemas?: string[] | undefined;
865
+ bundles?: {
866
+ name: string;
867
+ excludeSchemas?: string[] | undefined;
868
+ excludeEntities?: string[] | undefined;
869
+ schemas?: string[] | undefined;
870
+ }[] | undefined;
871
+ }>;
872
+ newEntityRelationshipDefaults: z.ZodObject<{
873
+ AutomaticallyCreateRelationships: z.ZodDefault<z.ZodBoolean>;
874
+ CreateOneToManyRelationships: z.ZodDefault<z.ZodBoolean>;
875
+ }, "strip", z.ZodTypeAny, {
876
+ AutomaticallyCreateRelationships: boolean;
877
+ CreateOneToManyRelationships: boolean;
878
+ }, {
879
+ AutomaticallyCreateRelationships?: boolean | undefined;
880
+ CreateOneToManyRelationships?: boolean | undefined;
881
+ }>;
882
+ SQLOutput: z.ZodObject<{
883
+ /**
884
+ * Whether or not sql statements generated while managing metadata should be written to a file
885
+ */
886
+ enabled: z.ZodDefault<z.ZodBoolean>;
887
+ /**
888
+ * The path of the folder to use when logging is enabled.
889
+ * If provided, a file will be created with the format "CodeGen_Run_yyyy-mm-dd_hh-mm-ss.sql"
890
+ */
891
+ folderPath: z.ZodDefault<z.ZodString>;
892
+ /**
893
+ * Optional, the file name that will be written WITHIN the folderPath specified.
894
+ */
895
+ fileName: z.ZodOptional<z.ZodString>;
896
+ /**
897
+ * If set to true, then we append to the existing file, if one exists, otherwise we create a new file.
898
+ */
899
+ appendToFile: z.ZodDefault<z.ZodBoolean>;
900
+ /**
901
+ * If true, all mention of the core schema within the log file will be replaced with the flyway schema,
902
+ * ${flyway:defaultSchema}
903
+ */
904
+ convertCoreSchemaToFlywayMigrationFile: z.ZodDefault<z.ZodBoolean>;
905
+ }, "strip", z.ZodTypeAny, {
906
+ enabled: boolean;
907
+ folderPath: string;
908
+ appendToFile: boolean;
909
+ convertCoreSchemaToFlywayMigrationFile: boolean;
910
+ fileName?: string | undefined;
911
+ }, {
912
+ enabled?: boolean | undefined;
913
+ folderPath?: string | undefined;
914
+ fileName?: string | undefined;
915
+ appendToFile?: boolean | undefined;
916
+ convertCoreSchemaToFlywayMigrationFile?: boolean | undefined;
917
+ }>;
918
+ dbHost: z.ZodString;
919
+ dbPort: z.ZodDefault<z.ZodNumber>;
920
+ codeGenLogin: z.ZodString;
921
+ codeGenPassword: z.ZodString;
922
+ dbDatabase: z.ZodString;
923
+ dbInstanceName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
924
+ dbTrustServerCertificate: z.ZodEffects<z.ZodDefault<z.ZodBoolean>, "N" | "Y", boolean | undefined>;
925
+ outputCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ mjCoreSchema: z.ZodDefault<z.ZodString>;
927
+ graphqlPort: z.ZodDefault<z.ZodNumber>;
928
+ }, "strip", z.ZodTypeAny, {
929
+ output: {
930
+ type: string;
931
+ directory: string;
932
+ options?: {
933
+ name: string;
934
+ value?: any;
935
+ }[] | undefined;
936
+ appendOutputCode?: boolean | undefined;
937
+ }[];
938
+ settings: {
939
+ name: string;
940
+ value?: any;
941
+ }[];
942
+ excludeSchemas: string[];
943
+ excludeTables: {
944
+ table: string;
945
+ schema: string;
946
+ }[];
947
+ customSQLScripts: {
948
+ when: string;
949
+ scriptFile: string;
950
+ }[];
951
+ commands: {
952
+ args: string[];
953
+ when: string;
954
+ workingDirectory: string;
955
+ command: string;
956
+ timeout?: number | null | undefined;
957
+ }[];
958
+ logging: {
959
+ log: boolean;
960
+ logFile: string;
961
+ console: boolean;
962
+ };
963
+ newEntityDefaults: {
964
+ TrackRecordChanges: boolean;
965
+ AuditRecordAccess: boolean;
966
+ AuditViewRuns: boolean;
967
+ AllowAllRowsAPI: boolean;
968
+ AllowCreateAPI: boolean;
969
+ AllowUpdateAPI: boolean;
970
+ AllowDeleteAPI: boolean;
971
+ AllowUserSearchAPI: boolean;
972
+ CascadeDeletes: boolean;
973
+ UserViewMaxRows: number;
974
+ AddToApplicationWithSchemaName: boolean;
975
+ IncludeFirstNFieldsAsDefaultInView: number;
976
+ PermissionDefaults: {
977
+ AutoAddPermissionsForNewEntities: boolean;
978
+ Permissions: {
979
+ RoleName: string;
980
+ CanRead: boolean;
981
+ CanCreate: boolean;
982
+ CanUpdate: boolean;
983
+ CanDelete: boolean;
984
+ }[];
985
+ };
986
+ };
987
+ newSchemaDefaults: {
988
+ CreateNewApplicationWithSchemaName: boolean;
989
+ };
990
+ dbSchemaJSONOutput: {
991
+ excludeSchemas: string[];
992
+ excludeEntities: string[];
993
+ bundles: {
994
+ name: string;
995
+ excludeSchemas: string[];
996
+ excludeEntities: string[];
997
+ schemas: string[];
998
+ }[];
999
+ };
1000
+ newEntityRelationshipDefaults: {
1001
+ AutomaticallyCreateRelationships: boolean;
1002
+ CreateOneToManyRelationships: boolean;
1003
+ };
1004
+ SQLOutput: {
1005
+ enabled: boolean;
1006
+ folderPath: string;
1007
+ appendToFile: boolean;
1008
+ convertCoreSchemaToFlywayMigrationFile: boolean;
1009
+ fileName?: string | undefined;
1010
+ };
1011
+ dbHost: string;
1012
+ dbPort: number;
1013
+ codeGenLogin: string;
1014
+ codeGenPassword: string;
1015
+ dbDatabase: string;
1016
+ dbTrustServerCertificate: "N" | "Y";
1017
+ mjCoreSchema: string;
1018
+ graphqlPort: number;
1019
+ newUserSetup?: {
1020
+ UserName: string;
1021
+ FirstName: string;
1022
+ LastName: string;
1023
+ Email: string;
1024
+ Roles: string[];
1025
+ CreateUserApplicationRecords: boolean;
1026
+ UserApplications: string[];
1027
+ } | null | undefined;
1028
+ advancedGeneration?: {
1029
+ enableAdvancedGeneration: boolean;
1030
+ AIVendor: "openai" | "anthropic" | "mistral";
1031
+ AIModel: string;
1032
+ features: {
1033
+ name: string;
1034
+ enabled: boolean;
1035
+ options?: {
1036
+ name: string;
1037
+ value?: unknown;
1038
+ }[] | null | undefined;
1039
+ description?: string | null | undefined;
1040
+ systemPrompt?: string | null | undefined;
1041
+ userMessage?: string | null | undefined;
1042
+ }[];
1043
+ } | null | undefined;
1044
+ dbInstanceName?: string | null | undefined;
1045
+ outputCode?: string | null | undefined;
1046
+ }, {
1047
+ logging: {
1048
+ log?: boolean | undefined;
1049
+ logFile?: string | undefined;
1050
+ console?: boolean | undefined;
1051
+ };
1052
+ newEntityDefaults: {
1053
+ PermissionDefaults: {
1054
+ AutoAddPermissionsForNewEntities?: boolean | undefined;
1055
+ Permissions?: {
1056
+ RoleName: string;
1057
+ CanRead: boolean;
1058
+ CanCreate: boolean;
1059
+ CanUpdate: boolean;
1060
+ CanDelete: boolean;
1061
+ }[] | undefined;
1062
+ };
1063
+ TrackRecordChanges?: boolean | undefined;
1064
+ AuditRecordAccess?: boolean | undefined;
1065
+ AuditViewRuns?: boolean | undefined;
1066
+ AllowAllRowsAPI?: boolean | undefined;
1067
+ AllowCreateAPI?: boolean | undefined;
1068
+ AllowUpdateAPI?: boolean | undefined;
1069
+ AllowDeleteAPI?: boolean | undefined;
1070
+ AllowUserSearchAPI?: boolean | undefined;
1071
+ CascadeDeletes?: boolean | undefined;
1072
+ UserViewMaxRows?: number | undefined;
1073
+ AddToApplicationWithSchemaName?: boolean | undefined;
1074
+ IncludeFirstNFieldsAsDefaultInView?: number | undefined;
1075
+ };
1076
+ newSchemaDefaults: {
1077
+ CreateNewApplicationWithSchemaName?: boolean | undefined;
1078
+ };
1079
+ dbSchemaJSONOutput: {
1080
+ excludeEntities: string[];
1081
+ excludeSchemas?: string[] | undefined;
1082
+ bundles?: {
1083
+ name: string;
1084
+ excludeSchemas?: string[] | undefined;
1085
+ excludeEntities?: string[] | undefined;
1086
+ schemas?: string[] | undefined;
1087
+ }[] | undefined;
1088
+ };
1089
+ newEntityRelationshipDefaults: {
1090
+ AutomaticallyCreateRelationships?: boolean | undefined;
1091
+ CreateOneToManyRelationships?: boolean | undefined;
1092
+ };
1093
+ SQLOutput: {
1094
+ enabled?: boolean | undefined;
1095
+ folderPath?: string | undefined;
1096
+ fileName?: string | undefined;
1097
+ appendToFile?: boolean | undefined;
1098
+ convertCoreSchemaToFlywayMigrationFile?: boolean | undefined;
1099
+ };
1100
+ dbHost: string;
1101
+ codeGenLogin: string;
1102
+ codeGenPassword: string;
1103
+ dbDatabase: string;
1104
+ output?: {
1105
+ type: string;
1106
+ directory: string;
1107
+ options?: {
1108
+ name: string;
1109
+ value?: any;
1110
+ }[] | undefined;
1111
+ appendOutputCode?: boolean | undefined;
1112
+ }[] | undefined;
1113
+ newUserSetup?: {
1114
+ UserName: string;
1115
+ FirstName: string;
1116
+ LastName: string;
1117
+ Email: string;
1118
+ Roles?: string[] | undefined;
1119
+ CreateUserApplicationRecords?: boolean | undefined;
1120
+ UserApplications?: string[] | undefined;
1121
+ } | null | undefined;
1122
+ settings?: {
1123
+ name: string;
1124
+ value?: any;
1125
+ }[] | undefined;
1126
+ excludeSchemas?: string[] | undefined;
1127
+ excludeTables?: {
1128
+ table: string;
1129
+ schema: string;
1130
+ }[] | undefined;
1131
+ customSQLScripts?: {
1132
+ when: string;
1133
+ scriptFile: string;
1134
+ }[] | undefined;
1135
+ advancedGeneration?: {
1136
+ enableAdvancedGeneration?: boolean | undefined;
1137
+ AIVendor?: "openai" | "anthropic" | "mistral" | undefined;
1138
+ AIModel?: string | undefined;
1139
+ features?: {
1140
+ name: string;
1141
+ enabled: boolean;
1142
+ options?: {
1143
+ name: string;
1144
+ value?: unknown;
1145
+ }[] | null | undefined;
1146
+ description?: string | null | undefined;
1147
+ systemPrompt?: string | null | undefined;
1148
+ userMessage?: string | null | undefined;
1149
+ }[] | undefined;
1150
+ } | null | undefined;
1151
+ commands?: {
1152
+ args: string[];
1153
+ when: string;
1154
+ workingDirectory: string;
1155
+ command: string;
1156
+ timeout?: number | null | undefined;
1157
+ }[] | undefined;
1158
+ dbPort?: number | undefined;
1159
+ dbInstanceName?: string | null | undefined;
1160
+ dbTrustServerCertificate?: boolean | undefined;
1161
+ outputCode?: string | null | undefined;
1162
+ mjCoreSchema?: string | undefined;
1163
+ graphqlPort?: number | undefined;
1164
+ }>;
156
1165
  export declare let currentWorkingDirectory: string;
157
- export declare function initializeConfig(workingDirectory: string): ConfigInfo;
1166
+ export declare const configInfo: {
1167
+ output: {
1168
+ type: string;
1169
+ directory: string;
1170
+ options?: {
1171
+ name: string;
1172
+ value?: any;
1173
+ }[] | undefined;
1174
+ appendOutputCode?: boolean | undefined;
1175
+ }[];
1176
+ settings: {
1177
+ name: string;
1178
+ value?: any;
1179
+ }[];
1180
+ excludeSchemas: string[];
1181
+ excludeTables: {
1182
+ table: string;
1183
+ schema: string;
1184
+ }[];
1185
+ customSQLScripts: {
1186
+ when: string;
1187
+ scriptFile: string;
1188
+ }[];
1189
+ commands: {
1190
+ args: string[];
1191
+ when: string;
1192
+ workingDirectory: string;
1193
+ command: string;
1194
+ timeout?: number | null | undefined;
1195
+ }[];
1196
+ logging: {
1197
+ log: boolean;
1198
+ logFile: string;
1199
+ console: boolean;
1200
+ };
1201
+ newEntityDefaults: {
1202
+ TrackRecordChanges: boolean;
1203
+ AuditRecordAccess: boolean;
1204
+ AuditViewRuns: boolean;
1205
+ AllowAllRowsAPI: boolean;
1206
+ AllowCreateAPI: boolean;
1207
+ AllowUpdateAPI: boolean;
1208
+ AllowDeleteAPI: boolean;
1209
+ AllowUserSearchAPI: boolean;
1210
+ CascadeDeletes: boolean;
1211
+ UserViewMaxRows: number;
1212
+ AddToApplicationWithSchemaName: boolean;
1213
+ IncludeFirstNFieldsAsDefaultInView: number;
1214
+ PermissionDefaults: {
1215
+ AutoAddPermissionsForNewEntities: boolean;
1216
+ Permissions: {
1217
+ RoleName: string;
1218
+ CanRead: boolean;
1219
+ CanCreate: boolean;
1220
+ CanUpdate: boolean;
1221
+ CanDelete: boolean;
1222
+ }[];
1223
+ };
1224
+ };
1225
+ newSchemaDefaults: {
1226
+ CreateNewApplicationWithSchemaName: boolean;
1227
+ };
1228
+ dbSchemaJSONOutput: {
1229
+ excludeSchemas: string[];
1230
+ excludeEntities: string[];
1231
+ bundles: {
1232
+ name: string;
1233
+ excludeSchemas: string[];
1234
+ excludeEntities: string[];
1235
+ schemas: string[];
1236
+ }[];
1237
+ };
1238
+ newEntityRelationshipDefaults: {
1239
+ AutomaticallyCreateRelationships: boolean;
1240
+ CreateOneToManyRelationships: boolean;
1241
+ };
1242
+ SQLOutput: {
1243
+ enabled: boolean;
1244
+ folderPath: string;
1245
+ appendToFile: boolean;
1246
+ convertCoreSchemaToFlywayMigrationFile: boolean;
1247
+ fileName?: string | undefined;
1248
+ };
1249
+ dbHost: string;
1250
+ dbPort: number;
1251
+ codeGenLogin: string;
1252
+ codeGenPassword: string;
1253
+ dbDatabase: string;
1254
+ dbTrustServerCertificate: "N" | "Y";
1255
+ mjCoreSchema: string;
1256
+ graphqlPort: number;
1257
+ newUserSetup?: {
1258
+ UserName: string;
1259
+ FirstName: string;
1260
+ LastName: string;
1261
+ Email: string;
1262
+ Roles: string[];
1263
+ CreateUserApplicationRecords: boolean;
1264
+ UserApplications: string[];
1265
+ } | null | undefined;
1266
+ advancedGeneration?: {
1267
+ enableAdvancedGeneration: boolean;
1268
+ AIVendor: "openai" | "anthropic" | "mistral";
1269
+ AIModel: string;
1270
+ features: {
1271
+ name: string;
1272
+ enabled: boolean;
1273
+ options?: {
1274
+ name: string;
1275
+ value?: unknown;
1276
+ }[] | null | undefined;
1277
+ description?: string | null | undefined;
1278
+ systemPrompt?: string | null | undefined;
1279
+ userMessage?: string | null | undefined;
1280
+ }[];
1281
+ } | null | undefined;
1282
+ dbInstanceName?: string | null | undefined;
1283
+ outputCode?: string | null | undefined;
1284
+ };
1285
+ export declare const mjCoreSchema: string, dbDatabase: string;
1286
+ export declare function initializeConfig(cwd: string): ConfigInfo;
158
1287
  export declare function outputDir(type: string, useLocalDirectoryIfMissing: boolean): string | null;
159
1288
  export declare function outputOptions(type: string): OutputOptionInfo[] | null;
160
1289
  export declare function outputOptionValue(type: string, optionName: string, defaultValue?: any): any;
@@ -168,4 +1297,5 @@ export declare function autoIndexForeignKeys(): boolean;
168
1297
  */
169
1298
  export declare const MAX_INDEX_NAME_LENGTH = 128;
170
1299
  export declare function mj_core_schema(): string;
1300
+ export {};
171
1301
  //# sourceMappingURL=config.d.ts.map