@postxl/generator 0.74.2 → 1.0.3

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.
Files changed (189) hide show
  1. package/LICENSE +50 -0
  2. package/README.md +79 -1
  3. package/dist/generator-manager.class.d.ts +59 -0
  4. package/dist/generator-manager.class.js +221 -0
  5. package/dist/generator.class.d.ts +90 -0
  6. package/dist/generator.class.js +32 -0
  7. package/dist/generator.context.d.ts +174 -0
  8. package/dist/generator.context.js +125 -0
  9. package/dist/helpers/branded.types.d.ts +149 -0
  10. package/dist/helpers/branded.types.js +111 -0
  11. package/dist/helpers/config-builder.class.d.ts +27 -0
  12. package/dist/helpers/config-builder.class.js +54 -0
  13. package/dist/helpers/import-generator.class.d.ts +70 -0
  14. package/dist/helpers/import-generator.class.js +166 -0
  15. package/dist/helpers/importable.types.d.ts +52 -0
  16. package/dist/helpers/importable.types.js +15 -0
  17. package/dist/helpers/index-generator.class.d.ts +10 -0
  18. package/dist/helpers/index-generator.class.js +46 -0
  19. package/dist/helpers/index.d.ts +8 -0
  20. package/dist/helpers/index.js +24 -0
  21. package/dist/helpers/package-json.generator.d.ts +56 -0
  22. package/dist/helpers/package-json.generator.js +36 -0
  23. package/dist/helpers/tsconfig.generator.d.ts +1 -0
  24. package/dist/helpers/tsconfig.generator.js +14 -0
  25. package/dist/helpers/verify-context.d.ts +4 -0
  26. package/dist/helpers/verify-context.js +23 -0
  27. package/dist/index.d.ts +5 -0
  28. package/dist/index.js +21 -0
  29. package/dist/utils/checksum.d.ts +10 -0
  30. package/dist/utils/checksum.js +132 -0
  31. package/dist/utils/fs-utils.d.ts +34 -0
  32. package/dist/utils/fs-utils.js +126 -0
  33. package/dist/utils/index.d.ts +10 -0
  34. package/dist/utils/index.js +26 -0
  35. package/dist/utils/jsdoc.d.ts +12 -0
  36. package/dist/utils/jsdoc.js +37 -0
  37. package/dist/utils/lint.d.ts +46 -0
  38. package/dist/utils/lint.js +154 -0
  39. package/dist/utils/lockfile.d.ts +7 -0
  40. package/dist/utils/lockfile.js +80 -0
  41. package/dist/utils/logger.class.d.ts +25 -0
  42. package/dist/utils/logger.class.js +55 -0
  43. package/dist/utils/merge-conflict.d.ts +55 -0
  44. package/dist/utils/merge-conflict.js +264 -0
  45. package/dist/utils/path.d.ts +52 -0
  46. package/dist/utils/path.js +183 -0
  47. package/dist/utils/prettier-config.d.ts +2 -0
  48. package/dist/utils/prettier-config.js +13 -0
  49. package/dist/utils/prettier.d.ts +5 -0
  50. package/dist/utils/prettier.js +67 -0
  51. package/dist/utils/prettier.skiptest.d.ts +1 -0
  52. package/dist/utils/prettier.skiptest.js +22 -0
  53. package/dist/utils/promise.d.ts +2 -0
  54. package/dist/utils/promise.js +10 -0
  55. package/dist/utils/string-functions.d.ts +9 -0
  56. package/dist/utils/string-functions.js +23 -0
  57. package/dist/utils/sync-log-result.d.ts +9 -0
  58. package/dist/utils/sync-log-result.js +90 -0
  59. package/dist/utils/sync.d.ts +143 -0
  60. package/dist/utils/sync.js +325 -0
  61. package/dist/utils/template.d.ts +66 -0
  62. package/dist/utils/template.js +159 -0
  63. package/dist/utils/vfs.class.d.ts +115 -0
  64. package/dist/utils/vfs.class.js +239 -0
  65. package/dist/utils/zip.d.ts +13 -0
  66. package/dist/utils/zip.js +40 -0
  67. package/package.json +53 -31
  68. package/dist/generator.d.ts +0 -13
  69. package/dist/generator.js +0 -455
  70. package/dist/generators/enums/react.generator.d.ts +0 -10
  71. package/dist/generators/enums/react.generator.js +0 -110
  72. package/dist/generators/enums/types.generator.d.ts +0 -10
  73. package/dist/generators/enums/types.generator.js +0 -39
  74. package/dist/generators/indices/data/module.generator.d.ts +0 -9
  75. package/dist/generators/indices/data/module.generator.js +0 -60
  76. package/dist/generators/indices/data/service.generator.d.ts +0 -9
  77. package/dist/generators/indices/data/service.generator.js +0 -249
  78. package/dist/generators/indices/data/types.generator.d.ts +0 -9
  79. package/dist/generators/indices/data/types.generator.js +0 -49
  80. package/dist/generators/indices/dispatcher-service.generator.d.ts +0 -9
  81. package/dist/generators/indices/dispatcher-service.generator.js +0 -107
  82. package/dist/generators/indices/export/class.generator.d.ts +0 -9
  83. package/dist/generators/indices/export/class.generator.js +0 -140
  84. package/dist/generators/indices/export/encoder.generator.d.ts +0 -9
  85. package/dist/generators/indices/export/encoder.generator.js +0 -50
  86. package/dist/generators/indices/import/convert-functions.generator.d.ts +0 -9
  87. package/dist/generators/indices/import/convert-functions.generator.js +0 -509
  88. package/dist/generators/indices/import/decoder.generator.d.ts +0 -9
  89. package/dist/generators/indices/import/decoder.generator.js +0 -40
  90. package/dist/generators/indices/import/service.generator.d.ts +0 -9
  91. package/dist/generators/indices/import/service.generator.js +0 -573
  92. package/dist/generators/indices/import/types.generator.d.ts +0 -9
  93. package/dist/generators/indices/import/types.generator.js +0 -242
  94. package/dist/generators/indices/repositories.generator.d.ts +0 -9
  95. package/dist/generators/indices/repositories.generator.js +0 -25
  96. package/dist/generators/indices/routes.generator.d.ts +0 -9
  97. package/dist/generators/indices/routes.generator.js +0 -29
  98. package/dist/generators/indices/seed-migration.generator.d.ts +0 -9
  99. package/dist/generators/indices/seed-migration.generator.js +0 -36
  100. package/dist/generators/indices/seed-template.generator.d.ts +0 -9
  101. package/dist/generators/indices/seed-template.generator.js +0 -80
  102. package/dist/generators/indices/testids.generator.d.ts +0 -7
  103. package/dist/generators/indices/testids.generator.js +0 -71
  104. package/dist/generators/indices/types.generator.d.ts +0 -10
  105. package/dist/generators/indices/types.generator.js +0 -35
  106. package/dist/generators/indices/update/actiontypes.generator.d.ts +0 -9
  107. package/dist/generators/indices/update/actiontypes.generator.js +0 -49
  108. package/dist/generators/indices/update/module.generator.d.ts +0 -9
  109. package/dist/generators/indices/update/module.generator.js +0 -41
  110. package/dist/generators/indices/update/service.generator.d.ts +0 -9
  111. package/dist/generators/indices/update/service.generator.js +0 -34
  112. package/dist/generators/indices/view/module.generator.d.ts +0 -9
  113. package/dist/generators/indices/view/module.generator.js +0 -39
  114. package/dist/generators/indices/view/service.generator.d.ts +0 -9
  115. package/dist/generators/indices/view/service.generator.js +0 -34
  116. package/dist/generators/models/admin.page.generator.d.ts +0 -7
  117. package/dist/generators/models/admin.page.generator.js +0 -74
  118. package/dist/generators/models/export/encoder.generator.d.ts +0 -9
  119. package/dist/generators/models/export/encoder.generator.js +0 -51
  120. package/dist/generators/models/import/decoder.generator.d.ts +0 -9
  121. package/dist/generators/models/import/decoder.generator.js +0 -148
  122. package/dist/generators/models/react/context.generator.d.ts +0 -9
  123. package/dist/generators/models/react/context.generator.js +0 -71
  124. package/dist/generators/models/react/index.d.ts +0 -10
  125. package/dist/generators/models/react/index.js +0 -31
  126. package/dist/generators/models/react/library.generator.d.ts +0 -10
  127. package/dist/generators/models/react/library.generator.js +0 -94
  128. package/dist/generators/models/react/lookup.generator.d.ts +0 -9
  129. package/dist/generators/models/react/lookup.generator.js +0 -175
  130. package/dist/generators/models/react/modals.generator.d.ts +0 -23
  131. package/dist/generators/models/react/modals.generator.js +0 -710
  132. package/dist/generators/models/repository.generator.d.ts +0 -9
  133. package/dist/generators/models/repository.generator.js +0 -955
  134. package/dist/generators/models/route.generator.d.ts +0 -9
  135. package/dist/generators/models/route.generator.js +0 -92
  136. package/dist/generators/models/seed.generator.d.ts +0 -21
  137. package/dist/generators/models/seed.generator.js +0 -285
  138. package/dist/generators/models/stub.generator.d.ts +0 -9
  139. package/dist/generators/models/stub.generator.js +0 -92
  140. package/dist/generators/models/types.generator.d.ts +0 -9
  141. package/dist/generators/models/types.generator.js +0 -125
  142. package/dist/generators/models/update/service.generator.d.ts +0 -10
  143. package/dist/generators/models/update/service.generator.js +0 -302
  144. package/dist/generators/models/view/service.generator.d.ts +0 -10
  145. package/dist/generators/models/view/service.generator.js +0 -239
  146. package/dist/lib/attributes.d.ts +0 -114
  147. package/dist/lib/attributes.js +0 -2
  148. package/dist/lib/exports.d.ts +0 -45
  149. package/dist/lib/exports.js +0 -90
  150. package/dist/lib/imports.d.ts +0 -65
  151. package/dist/lib/imports.js +0 -114
  152. package/dist/lib/meta.d.ts +0 -1191
  153. package/dist/lib/meta.js +0 -434
  154. package/dist/lib/schema/fields.d.ts +0 -46
  155. package/dist/lib/schema/fields.js +0 -62
  156. package/dist/lib/schema/schema.d.ts +0 -466
  157. package/dist/lib/schema/schema.js +0 -18
  158. package/dist/lib/schema/types.d.ts +0 -201
  159. package/dist/lib/schema/types.js +0 -112
  160. package/dist/lib/serializer.d.ts +0 -15
  161. package/dist/lib/serializer.js +0 -24
  162. package/dist/lib/test-id-collector.d.ts +0 -42
  163. package/dist/lib/test-id-collector.js +0 -53
  164. package/dist/lib/types.d.ts +0 -7
  165. package/dist/lib/types.js +0 -13
  166. package/dist/lib/typescript.d.ts +0 -5
  167. package/dist/lib/typescript.js +0 -22
  168. package/dist/lib/utils/ast.d.ts +0 -29
  169. package/dist/lib/utils/ast.js +0 -23
  170. package/dist/lib/utils/error.d.ts +0 -17
  171. package/dist/lib/utils/error.js +0 -52
  172. package/dist/lib/utils/file.d.ts +0 -10
  173. package/dist/lib/utils/file.js +0 -56
  174. package/dist/lib/utils/jsdoc.d.ts +0 -9
  175. package/dist/lib/utils/jsdoc.js +0 -37
  176. package/dist/lib/utils/logger.d.ts +0 -17
  177. package/dist/lib/utils/logger.js +0 -12
  178. package/dist/lib/utils/string.d.ts +0 -40
  179. package/dist/lib/utils/string.js +0 -187
  180. package/dist/lib/utils/types.d.ts +0 -12
  181. package/dist/lib/utils/types.js +0 -2
  182. package/dist/lib/zod.d.ts +0 -8
  183. package/dist/lib/zod.js +0 -60
  184. package/dist/prisma/attributes.d.ts +0 -21
  185. package/dist/prisma/attributes.js +0 -175
  186. package/dist/prisma/client-path.d.ts +0 -7
  187. package/dist/prisma/client-path.js +0 -29
  188. package/dist/prisma/parse.d.ts +0 -12
  189. package/dist/prisma/parse.js +0 -452
@@ -1,1191 +0,0 @@
1
- import * as Schema from './schema/schema';
2
- import * as Types from './schema/types';
3
- /**
4
- * Collection of "global", schema-related values that might be referenced by different generators.
5
- */
6
- export type SchemaMetaData = {
7
- /**
8
- * Static meta data for the backend modules that are not generated
9
- */
10
- backendModules: {
11
- auth: {
12
- /**
13
- * Path that may be used to import the auth backend module.
14
- */
15
- importPath: Types.BackendModulePath;
16
- };
17
- db: {
18
- /**
19
- * Name of the module class
20
- */
21
- moduleName: Types.ClassName;
22
- /**
23
- * Path that may be used to import the db backend module.
24
- */
25
- moduleLocation: Types.ModuleLocation;
26
- /**
27
- * Path that may be used to import the db types.
28
- *
29
- * NOTE: While we avoid index.ts files in all other modules, here we leverage it as we re-export the native Prisma types!
30
- */
31
- typesImportPath: Types.BackendModulePath;
32
- databaseService: {
33
- /**
34
- * The name of the DB service class.
35
- */
36
- name: Types.ClassName;
37
- /**
38
- * Path that may be used to import the database service.
39
- */
40
- location: Types.ModuleLocation;
41
- };
42
- };
43
- http: {
44
- /**
45
- * Path that may be used to import the http backend module.
46
- */
47
- moduleImportPath: Types.BackendModulePath;
48
- };
49
- i18n: {
50
- /**
51
- * Path that may be used to import the i18n backend module.
52
- */
53
- moduleImportPath: Types.BackendModulePath;
54
- };
55
- s3: {
56
- /**
57
- * Path that may be used to import the s3 backend module.
58
- */
59
- moduleImportPath: Types.BackendModulePath;
60
- };
61
- upload: {
62
- /**
63
- * Path that may be used to import the upload backend module.
64
- */
65
- moduleImportPath: Types.BackendModulePath;
66
- };
67
- xlport: {
68
- /**
69
- * Path that may be used to import the xlport backend module.
70
- */
71
- moduleImportPart: Types.BackendModulePath;
72
- };
73
- };
74
- actions: {
75
- /**
76
- * The name of the Module class
77
- */
78
- moduleName: Types.ClassName;
79
- /**
80
- * Path that may be used to import the action module.
81
- */
82
- moduleLocation: Types.ModuleLocation;
83
- execution: {
84
- /**
85
- * The name of the class that handles the action execution.
86
- */
87
- class: Types.ClassName;
88
- /**
89
- * Path that may be used to import the action execution class.
90
- */
91
- classLocation: Types.ModuleLocation;
92
- /**
93
- * The name of the interface that handles the action execution.
94
- */
95
- interface: Types.ClassName;
96
- /**
97
- * Path that may be used to import the action execution interface.
98
- */
99
- interfaceLocation: Types.ModuleLocation;
100
- /**
101
- * The name of the mock for the actionExecution class.
102
- */
103
- mock: Types.ClassName;
104
- /**
105
- * Path the may be used to import the action mock class
106
- */
107
- mockLocation: Types.ModuleLocation;
108
- };
109
- dispatcher: {
110
- /**
111
- * Path to the file containing the dispatcher service class definition.
112
- */
113
- classLocation: Types.ModuleLocation;
114
- /**
115
- * The name of the dispatcher service class.
116
- */
117
- class: Types.ClassName;
118
- /**
119
- * Path to the file containing the dispatcher interface
120
- */
121
- definitionLocation: Types.ModuleLocation;
122
- /**
123
- * The definition type that may be used to create a dispatcher conforming class.
124
- */
125
- definition: Types.TypeName;
126
- };
127
- definition: {
128
- /**
129
- * Path that may be used to import the definition utils.
130
- */
131
- importPath: Types.BackendModulePath;
132
- /**
133
- * The schema type to define action definitions.
134
- */
135
- schema: Types.TypeName;
136
- /**
137
- * The generated payload of the defined actions.
138
- */
139
- payload: Types.TypeName;
140
- /**
141
- * The generated result of the defined actions.
142
- */
143
- result: Types.TypeName;
144
- /**
145
- * The transformer type that converts action definitions into results dictionary.
146
- */
147
- resultDict: Types.TypeName;
148
- };
149
- };
150
- /**
151
- * Meta data for the data generators
152
- */
153
- data: {
154
- /**
155
- * The name of the Module class
156
- */
157
- moduleName: Types.ClassName;
158
- /**
159
- * Location of the module class
160
- */
161
- moduleLocation: Types.ModuleLocation;
162
- repository: {
163
- /**
164
- * Path to the file containing the repository type definition.
165
- */
166
- typeFilePath: Types.FilePath;
167
- /**
168
- * Name of the repository type.
169
- */
170
- typeName: Types.TypeName;
171
- /**
172
- * Path to the file containing the array with all repositories.
173
- */
174
- constFilePath: Types.FilePath;
175
- /**
176
- * Path to the file containing the index file for the repositories.
177
- */
178
- indexFilePath: Types.FilePath;
179
- };
180
- types: {
181
- /**
182
- * Path to the types definition.
183
- */
184
- location: Types.ModuleLocation;
185
- /**
186
- * The name of the BulkMutation type.
187
- */
188
- bulkMutation: Types.TypeName;
189
- /**
190
- * The name of the generic BulkMutation type for a model
191
- */
192
- bulkMutationForModel: Types.TypeName;
193
- };
194
- dataService: {
195
- /**
196
- * Path to the file containing data service class definitions.
197
- */
198
- location: Types.ModuleLocation;
199
- /**
200
- * Name of the data service class.
201
- */
202
- class: Types.ClassName;
203
- /**
204
- * Name of the function that performs BulkMutations.
205
- */
206
- executeBulkMutations: Types.FunctionName;
207
- /**
208
- * Name of the function that performs BulkMutation.
209
- */
210
- executeBulkMutation: Types.FunctionName;
211
- };
212
- /**
213
- * Path to the file containing the testDataService class definition.
214
- */
215
- testDataServiceFilePath: Types.FilePath;
216
- /**
217
- * Path to the file containing the index file for the subs.
218
- */
219
- stubIndexFilePath: Types.FilePath;
220
- };
221
- /**
222
- * Meta data for import operations.
223
- */
224
- import: {
225
- /**
226
- * Path that may be used to import from the import module.
227
- */
228
- moduleLocation: Types.ModuleLocation;
229
- /**
230
- * Meta data for decoder functions.
231
- */
232
- decoder: {
233
- /**
234
- * Path to the file containing the data decoder
235
- */
236
- location: Types.ModuleLocation;
237
- /**
238
- * Name of the data decoder function
239
- */
240
- fullDecoderName: Types.FunctionName;
241
- /**
242
- * Name of the type that represents the data in the PXL model format
243
- */
244
- decodedPXLModelDataTypeName: Types.TypeName;
245
- };
246
- importService: {
247
- /**
248
- * Path to the file containing the import service class.
249
- */
250
- location: Types.ModuleLocation;
251
- /**
252
- * The name of the import service class.
253
- */
254
- name: Types.ClassName;
255
- /**
256
- * Name of the instantiated import service as used in other services.
257
- *
258
- * Background: Normally, NestJS's dependency injection would be used to inject the import service into other services.
259
- * However, due to a circular dependency between the import service and the dispatcher service, this is not possible.
260
- * Instead, the dispatcher service has a public instance of the import service, which is set in the constructor of the import service.
261
- * The `sharedName` is the name of this public instance.
262
- */
263
- sharedName: Types.VariableName;
264
- };
265
- /**
266
- * Meta data for functions that handle the import of Excel data.
267
- */
268
- converterFunctions: {
269
- /**
270
- * Path to the file containing the import function.
271
- */
272
- location: Types.ModuleLocation;
273
- /**
274
- * Name of the function that convert import data to BulkMutations.
275
- */
276
- importedDataToBulkMutations: Types.FunctionName;
277
- /**
278
- * Name of the function that converts a delta to BulkMutations.
279
- */
280
- deltaToBulkMutations: Types.FunctionName;
281
- };
282
- /**
283
- * Meta data for the import export types file.
284
- */
285
- types: {
286
- /**
287
- * Path to the types definition.
288
- */
289
- location: Types.ModuleLocation;
290
- /**
291
- * The name of the type that represents the delta of all models.
292
- */
293
- delta: Types.TypeName;
294
- delta_Model: {
295
- /**
296
- * The name of the type that represents the delta of a model.
297
- */
298
- type: Types.TypeName;
299
- create: {
300
- /**
301
- * The name of the type that represents the items of a model that should be created.
302
- */
303
- type: Types.TypeName;
304
- /**
305
- * The discriminant for the delta of a model that should be created.
306
- */
307
- discriminant: Types.DiscriminantName;
308
- /**
309
- * The name of the type guard function that checks if a delta item is a create delta.
310
- */
311
- typeGuard: Types.FunctionName;
312
- };
313
- update: {
314
- /**
315
- * The name of the type that represents the delta of existing model items that should be updated.
316
- */
317
- type: Types.TypeName;
318
- /**
319
- * The discriminant for the delta of existing model items that should be updated.
320
- */
321
- discriminant: Types.DiscriminantName;
322
- /**
323
- * The name of the type guard function that checks if a delta item is an update delta.
324
- */
325
- typeGuard: Types.FunctionName;
326
- };
327
- delete: {
328
- /**
329
- * The name of the type that represents the items of a model that should be deleted.
330
- */
331
- type: Types.TypeName;
332
- /**
333
- * The discriminant for the delta of a model that should be deleted.
334
- */
335
- discriminant: Types.DiscriminantName;
336
- /**
337
- * The name of the type that represents the items of a model that should be deleted.
338
- */
339
- typeGuard: Types.FunctionName;
340
- };
341
- unchanged: {
342
- /**
343
- * The name of the type that represents unchanged items of model.
344
- */
345
- type: Types.TypeName;
346
- /**
347
- * The discriminant for unchanged items of a model.
348
- */
349
- discriminant: Types.DiscriminantName;
350
- /**
351
- * The name of the type that represents unchanged items of a model.
352
- */
353
- typeGuard: Types.FunctionName;
354
- };
355
- errors: {
356
- /**
357
- * The name of the type that represents the items of a model that contain errors.
358
- */
359
- type: Types.TypeName;
360
- /**
361
- * The discriminant for the items of a model that contain errors.
362
- */
363
- discriminant: Types.DiscriminantName;
364
- /**
365
- * The name of the type guard function that checks if a delta item is an error.
366
- */
367
- typeGuard: Types.FunctionName;
368
- /**
369
- * Meta data for the model error type for a missing field.
370
- */
371
- missingField: {
372
- /**
373
- * The name of the type that represents the error of missing fields.
374
- */
375
- type: Types.TypeName;
376
- /**
377
- * The discriminant for the error of missing fields.
378
- */
379
- discriminant: Types.DiscriminantName;
380
- };
381
- /**
382
- * Meta data for the model error type for an invalid reference.
383
- */
384
- invalidReference: {
385
- /**
386
- * The name of the type that represents the error of invalid references.
387
- */
388
- type: Types.TypeName;
389
- /**
390
- * The discriminant for the error of invalid references.
391
- */
392
- discriminant: Types.DiscriminantName;
393
- };
394
- /**
395
- * Meta data for the model error type for non-unique fields.
396
- */
397
- nonUnique: {
398
- /**
399
- * The name of the type that represents the error of non-unique fields.
400
- */
401
- type: Types.TypeName;
402
- /**
403
- * The discriminant for the error of non-unique fields.
404
- */
405
- discriminant: Types.DiscriminantName;
406
- };
407
- /**
408
- * Meta data for the model error type for invalid types.
409
- */
410
- invalidType: {
411
- /**
412
- * The name of the type that represents the error of invalid types.
413
- */
414
- type: Types.TypeName;
415
- /**
416
- * The discriminant for the error of invalid types.
417
- */
418
- discriminant: Types.DiscriminantName;
419
- };
420
- /**
421
- * Meta data for the model error type where the item is a required dependency of another item.
422
- */
423
- isRequiredDependency: {
424
- /**
425
- * The name of the type that represents an item to be deleted that is a required dependency of another item.
426
- */
427
- type: Types.TypeName;
428
- /**
429
- * The discriminant for the error of missing required dependencies.
430
- */
431
- discriminant: Types.DiscriminantName;
432
- };
433
- };
434
- };
435
- /**
436
- * The name of the type representing modified fields of a model.
437
- */
438
- delta_Fields: Types.TypeName;
439
- };
440
- };
441
- /**
442
- * Meta data for export operations.
443
- */
444
- export: {
445
- /**
446
- * Path that may be used to import from the export module.
447
- */
448
- moduleLocation: Types.ModuleLocation;
449
- /**
450
- * Meta data for the exporter class.
451
- */
452
- exporterClass: {
453
- /**
454
- * Path to the file containing the exporter class.
455
- */
456
- location: Types.ModuleLocation;
457
- /**
458
- * The name of the exporter class.
459
- */
460
- name: Types.ClassName;
461
- };
462
- exportService: {
463
- /**
464
- * Path to the file containing the export service class.
465
- */
466
- location: Types.ModuleLocation;
467
- /**
468
- * The name of the export service class.
469
- */
470
- name: Types.ClassName;
471
- };
472
- /**
473
- * Meta data for decoder functions.
474
- */
475
- encoder: {
476
- /**
477
- * Path to the file containing the data encoder
478
- */
479
- location: Types.ModuleLocation;
480
- /**
481
- * Name of the data encoder function
482
- */
483
- fullEncoderFunctionName: Types.FunctionName;
484
- /**
485
- * Name of the type that represents the data in encoded Excel format
486
- */
487
- encodedExcelDataTypeName: Types.TypeName;
488
- };
489
- };
490
- view: {
491
- /**
492
- * The name of the module class
493
- */
494
- moduleName: Types.ClassName;
495
- /**
496
- * Path that may be used to import from the view module.
497
- */
498
- moduleLocation: Types.ModuleLocation;
499
- /**
500
- * The name of the central view service class, containing all model view services.
501
- */
502
- serviceClassName: Types.ClassName;
503
- /**
504
- * Path to the file containing the view service class definition.
505
- */
506
- serviceLocation: Types.ModuleLocation;
507
- };
508
- /**
509
- * Settings for the update module
510
- */
511
- update: {
512
- /**
513
- * The name of the module class
514
- */
515
- moduleName: Types.ClassName;
516
- /**
517
- * Path that may be used to import from the update module.
518
- */
519
- moduleLocation: Types.ModuleLocation;
520
- /**
521
- * The name of the central update service class, containing all model update services.
522
- */
523
- serviceClassName: Types.ClassName;
524
- /**
525
- * Path to the file containing the update service class definition.
526
- */
527
- serviceLocation: Types.ModuleLocation;
528
- /**
529
- * Path to the file containing the overall action types
530
- */
531
- actionTypesFilePath: Types.FilePath;
532
- };
533
- seedData: {
534
- /**
535
- * Location of the initial seed data migration
536
- */
537
- initialMigrationLocation: Types.ModuleLocation;
538
- /**
539
- * Path to seed Excel template file.
540
- */
541
- templateExcelFilePath: Types.FilePath;
542
- };
543
- seed: {
544
- /**
545
- * The name of the SeedService class.
546
- */
547
- serviceClassName: Types.ClassName;
548
- /**
549
- * Path that may be used in the import statement.
550
- */
551
- serviceLocation: Types.ModuleLocation;
552
- /**
553
- * Path that may be used in the import statement.
554
- */
555
- actionsLocation: Types.ModuleLocation;
556
- };
557
- trpc: {
558
- /**
559
- * Path to the file that contains the trpc routes object.
560
- */
561
- routesFilePath: Types.FilePath;
562
- };
563
- types: {
564
- /**
565
- * Path to the index file for the types package.
566
- */
567
- indexFilePath: Types.FilePath;
568
- /**
569
- * Path that may be used to import the type definitions package.
570
- */
571
- importPath: Types.BackendModulePath;
572
- /**
573
- * Index of all branded ID types associated with the models.
574
- *
575
- * @example
576
- * ```
577
- * type SchemaIdTypes = {
578
- * Post: PostId
579
- * Comment: CommentId
580
- * }
581
- * ```
582
- */
583
- idTypesIndex: Types.TypeName;
584
- /**
585
- * Path and type names for the Data Transfer Objects (DTOs).
586
- */
587
- dto: {
588
- /**
589
- * Path to the file containing DTO type definitions.
590
- */
591
- path: Types.FilePath;
592
- /**
593
- * Type for generic models
594
- */
595
- genericModel: Types.TypeName;
596
- /**
597
- * Generic type for an ID.
598
- */
599
- idType: Types.TypeName;
600
- /**
601
- * Generic type for a Create DTO.
602
- */
603
- create: Types.TypeName;
604
- /**
605
- * Generic type for an Update DTO.
606
- */
607
- update: Types.TypeName;
608
- /**
609
- * Generic type for an Upsert DTO.
610
- */
611
- upsert: Types.TypeName;
612
- };
613
- };
614
- /**
615
- * Meta data for the e2e generators.
616
- */
617
- e2e: {
618
- /**
619
- * Path to the file containing component test ids for e2e tests.
620
- */
621
- testIdsFilePath: Types.FilePath;
622
- };
623
- /**
624
- * Path to the directory containing Prisma migrations.
625
- */
626
- prismaMigrationsPath: Types.FilePath;
627
- /**
628
- * The schema configuration for reference.
629
- */
630
- config: Schema.SchemaConfig;
631
- };
632
- /**
633
- * Returns a collection of metadata relevant in the global schema context.
634
- */
635
- export declare function getSchemaMetadata({ config }: {
636
- config: Schema.SchemaConfig;
637
- }): SchemaMetaData;
638
- /**
639
- * Collection of values that might be referenced by different generators.
640
- */
641
- export type ModelMetaData = {
642
- /**
643
- * A user friendly name
644
- *
645
- * NOTE: User friendly name is very generic and meant to be used in log messages, comments,
646
- * errors - and any other places where the user shall read about it!
647
- * It is not meant to be used for variables, class names, etc. In code, you should
648
- * use a more specific name for your purposes (e.g. `reactCreateModalComponentName`).
649
- */
650
- userFriendlyName: string;
651
- /**
652
- * A user friendly name in plural form
653
- *
654
- * NOTE: User friendly name is very generic and meant to be used in log messages, comments,
655
- * errors - and any other places where the user shall read about it!
656
- * It is not meant to be used for variables, class names, etc. In code, you should
657
- * use a more specific name for your purposes (e.g. `reactCreateModalComponentName`).
658
- */
659
- userFriendlyNamePlural: string;
660
- /**
661
- * The name of the model in singular form.
662
- *
663
- * NOTE: This name is meant to be used in internal variables only.
664
- * For any variables, class names, etc. that are exposed, please use a more specific name.
665
- * (e.g. `reactCreateModalComponentName`)
666
- */
667
- internalSingularName: Types.VariableName;
668
- /**
669
- * The name of the capitalized model in singular form.
670
- *
671
- * NOTE: This name is meant to be used in internal types only.
672
- * For any types, class names, etc. that are exposed, please use a more specific name.
673
- */
674
- internalSingularNameCapitalized: Types.VariableName;
675
- /**
676
- * The name of the model in plural form.
677
- *
678
- * NOTE: This name is meant to be used in internal variables only.
679
- * For any variables, class names, etc. that are exposed, please use a more specific name.
680
- * (e.g. `reactCreateModalComponentName`)
681
- */
682
- internalPluralName: Types.VariableName;
683
- /**
684
- * The name of the capitalized model in plural form.
685
- *
686
- * NOTE: This name is meant to be used in internal types only.
687
- * For any variables, class names, etc. that are exposed, please use a more specific name.
688
- */
689
- internalPluralNameCapitalized: Types.VariableName;
690
- /**
691
- * Properties provided by the `actions` generators.
692
- */
693
- actions: {
694
- /**
695
- * Each model defines its own action scope as a discriminant for the action execution. (e.g. `aggregation`)
696
- */
697
- actionScopeConstType: Types.TypeName;
698
- };
699
- /**
700
- * Properties provided by the `data` generators.
701
- */
702
- data: {
703
- /**
704
- * Path that may be used to import definitions of this model.
705
- */
706
- importPath: Types.BackendModulePath;
707
- /**
708
- * The name of the MockData's property that contains the mock data for this model. (e.g. aggregations)
709
- */
710
- mockDataPropertyName: Types.VariableName;
711
- /**
712
- * The path to the file containing stub definitions of this model.
713
- */
714
- stubLocation: Types.ModuleLocation;
715
- /**
716
- * The name of the TypeScript constant that contains default values for all fields.
717
- */
718
- defaultStubConstantName: Types.VariableName;
719
- /**
720
- * The name of the function that adds missing values to the partially populated model value.
721
- */
722
- stubGenerationFnName: Types.FunctionName;
723
- /**
724
- * The name by which the repository is exposed in the dataService/context. (e.g. aggregations)
725
- */
726
- dataServiceName: Types.VariableName;
727
- /**
728
- * The name for internal use of modelIds in data mocker
729
- */
730
- dataServiceIdName: Types.VariableName;
731
- repository: {
732
- /**
733
- * Location of the file containing the repository definition for this model.
734
- */
735
- location: Types.ModuleLocation;
736
- /**
737
- * The name of the class for the repository definition of this model (e.g. AggregationRepository).
738
- */
739
- className: Types.ClassName;
740
- /**
741
- * The name of the function that decodes a source (database) object to a fully typed object (e.g. `toAggregation`.)
742
- */
743
- decoderFnName: Types.FunctionName;
744
- /**
745
- * The name of the method that should be used to get objects from the database (e.g. `aggregations`.)
746
- */
747
- getMethodFnName: Types.FunctionName;
748
- };
749
- };
750
- /**
751
- * Properties provided by the `import` generators
752
- */
753
- import: {
754
- /**
755
- * The name of the export Excel table (e.g. `Aggregations`).
756
- */
757
- tableName: string;
758
- /**
759
- * Name of the model specific error type
760
- */
761
- delta_Model_Errors: Types.TypeName;
762
- /**
763
- * Meta data of the model's Excel decoders
764
- */
765
- decoder: {
766
- /**
767
- * Location of the file containing the model's Excel decoders.
768
- */
769
- location: Types.ModuleLocation;
770
- /**
771
- * Name of the decoder function that represents the Excel table import type (e.g. `aggregationExcelTableDecoder`.)
772
- */
773
- tableDecoder: Types.FunctionName;
774
- /**
775
- * Name of the array in the decoded data containing all entities of this model (e.g. `aggregations`.)
776
- */
777
- decodedModelArrayName: Types.VariableName;
778
- /**
779
- * Name of the function that decodes a model Excel row (not blank!) to a fully typed object
780
- */
781
- rowDecoderName: Types.FunctionName;
782
- };
783
- };
784
- /**
785
- * Properties provided by the `export` generators
786
- */
787
- export: {
788
- /**
789
- * Name of the data exports model property (e.g. `Aggregations`).
790
- */
791
- exportDataPropertyName: Types.VariableName;
792
- /**
793
- * Name of the data exports model in the full export (e.g. `aggregations`).
794
- */
795
- exportDataFullPropertyName: Types.VariableName;
796
- /**
797
- * Name of the data export type (e.g. `Aggregations_Export`).
798
- */
799
- exportDataTypeName: Types.TypeName;
800
- /**
801
- * Name of the function that adds an instance of this model to the exporter (e.g. `addAggregation`.)
802
- */
803
- exportAddFunctionName: Types.FunctionName;
804
- /**
805
- * The name of the export Excel table (e.g. `Aggregations`).
806
- */
807
- tableName: string;
808
- /**
809
- * Meta data of the model's Excel decoders
810
- */
811
- encoder: {
812
- /**
813
- * Location of the file containing the model's Excel encoders.
814
- */
815
- location: Types.ModuleLocation;
816
- /**
817
- * Name of the type that represents the model in Excel import/export (e.g. `Aggregation_EncodedExcelData`.)
818
- */
819
- encodedExcelType: Types.TypeName;
820
- /**
821
- * Name of the function that converts a model item to the Excel format (e.g. `encodeAggregation`.)
822
- */
823
- itemEncoderFunctionName: Types.FunctionName;
824
- /**
825
- * Name of the function that converts an array of model items to the Excel format (e.g. `encodeAggregations`.)
826
- */
827
- arrayEncoderFunctionName: Types.FunctionName;
828
- };
829
- };
830
- /**
831
- * Properties provided by the `business logic` generator.
832
- */
833
- view: {
834
- /**
835
- * The const type that represents the scope of the business logic service. (e.g. `aggregation`)
836
- * The scope is typically a model. However, in a more complex business logic, this could also be
837
- * whatever makes sense to put into a single business logic service - e.g. "approval" (for MCA) or "calculation" (for LA360).
838
- */
839
- scopeName: Types.VariableName;
840
- /**
841
- * The name by which the model's view class is exposed in the viewService/context. (e.g. aggregations)
842
- */
843
- serviceClassName: Types.ClassName;
844
- /**
845
- * The name by which the model's service is exposed in the viewService/context. (e.g. aggregations)
846
- */
847
- serviceVariableName: Types.VariableName;
848
- /**
849
- * Path to the view service for this model.
850
- */
851
- serviceLocation: Types.ModuleLocation;
852
- /**
853
- * The name of the variable that defines the filter operator decoder for the current model.
854
- */
855
- filterOperatorDecoder: Types.VariableName;
856
- /**
857
- * The name of the variable that defines the cursor decoder for the current model.
858
- */
859
- cursorDecoder: Types.VariableName;
860
- };
861
- /**
862
- * The definitions for the update service of a model
863
- */
864
- update: {
865
- /**
866
- * The const type that represents the scope of the business logic service. (e.g. `aggregation`)
867
- * The scope is typically a model. However, in a more complex business logic, this could also be
868
- * whatever makes sense to put into a single business logic service - e.g. "approval" (for MCA) or "calculation" (for LA360).
869
- */
870
- scopeName: Types.VariableName;
871
- /**
872
- * Path that may be used to import the types of this model.
873
- */
874
- moduleLocation: Types.ModuleLocation;
875
- /**
876
- * The name by which the model's update class is exposed in the updateService/context. (e.g. AggregationUpdateService)
877
- */
878
- serviceClassName: Types.ClassName;
879
- /**
880
- * Location of the file containing the update service class for this model.
881
- */
882
- serviceClassLocation: Types.ModuleLocation;
883
- /**
884
- * The name of the interface that represents the update service for this model. (e.g. IAggregationUpdateService)
885
- */
886
- serviceInterfaceName: Types.TypeName;
887
- /**
888
- * The name by which the model's service is exposed in the updateService/context. (e.g. aggregations)
889
- */
890
- serviceVariableName: Types.VariableName;
891
- /**
892
- * The name of the model used as a discriminant for the action execution. (e.g. `aggregation`)
893
- */
894
- actionModelDiscriminantName: Types.VariableName;
895
- /**
896
- * The name of the function that decodes a Create object to a fully typed object (e.g. `aggregationCreateDecoder`.)
897
- */
898
- createInputDecoder: Types.VariableName;
899
- /**
900
- * The name of the function that decodes an Update object to a fully typed object (e.g. `aggregationUpdateDecoder`.)
901
- */
902
- updateInputDecoder: Types.VariableName;
903
- /**
904
- * The name of the function that decodes an Upsert object to a fully typed object (e.g. `aggregationUpsertDecoder`.)
905
- */
906
- upsertInputDecoder: Types.VariableName;
907
- };
908
- /**
909
- * Properties provided by the `seed` generators.
910
- */
911
- seed: {
912
- /**
913
- * The name of the constant containing seed data of this model (e.g. `aggregations`).
914
- */
915
- constantName: Types.VariableName;
916
- /**
917
- * Path to the file containing the seed data for this model (e.g. `aggregations.ts`).
918
- */
919
- location: Types.ModuleLocation;
920
- };
921
- /**
922
- * Properties provided by the `react` generators.
923
- */
924
- react: {
925
- /**
926
- * Name of the folder that contains React components for this model.
927
- */
928
- folderName: Types.FolderName;
929
- /**
930
- * The path to the folder that contains React components for this model.
931
- */
932
- folderPath: Types.FilePath;
933
- /**
934
- * Globally accessible import path for the model's React components.
935
- */
936
- importPath: Types.FilePath;
937
- context: {
938
- /**
939
- * Name of the function that should be used as React hook (e.g. `useAggregationContext`).
940
- */
941
- hookFnName: Types.FunctionName;
942
- /**
943
- * Name of the function that may be used to get a single instance of this model (e.g. `useAggregation`).
944
- */
945
- instanceGetterHookFnName: Types.FunctionName;
946
- };
947
- /**
948
- * Names of React components that should be generated for this model.
949
- *
950
- * NOTE: You can assume that these components exist.
951
- */
952
- components: {
953
- modals: {
954
- createComponentName: Types.VariableName;
955
- editComponentName: Types.VariableName;
956
- deleteComponentName: Types.VariableName;
957
- };
958
- forms: {
959
- selectInputName: Types.VariableName;
960
- selectFieldName: Types.VariableName;
961
- menuSelectInputName: Types.VariableName;
962
- menuSelectFieldName: Types.VariableName;
963
- searchInputName: Types.VariableName;
964
- searchFieldName: Types.VariableName;
965
- tableSelectInputName: Types.VariableName;
966
- tableSelectFieldName: Types.VariableName;
967
- };
968
- /**
969
- * React component that may be used to list all model instances.
970
- */
971
- libraryComponentName: Types.VariableName;
972
- /**
973
- * Name of the generic component containing basic information about a single model instance.
974
- */
975
- cardComponentName: Types.VariableName;
976
- };
977
- };
978
- /**
979
- * Properties provided by the `trpc` generators.
980
- */
981
- trpc: {
982
- /**
983
- * The absolute path of the file that contains the router definition for this model.
984
- */
985
- routerFilePath: Types.FilePath;
986
- /**
987
- * The name of the router that should be used for this model (e.g. `aggregation`).
988
- */
989
- routerName: Types.VariableName;
990
- getMap: {
991
- /**
992
- * The name of the TRPC getMap method (e.g. `getMap` or `getMapAggregation`).
993
- */
994
- methodName: Types.VariableName;
995
- /**
996
- * The full method name of the React Query method (e.g. `aggregations.getMap`).
997
- */
998
- reactQueryMethod: Types.FunctionName;
999
- };
1000
- create: {
1001
- /**
1002
- * The name of the TRPC create method (e.g. `create` or `createAggregation`).
1003
- */
1004
- methodName: Types.VariableName;
1005
- /**
1006
- * The full method name of the React Query method (e.g. `aggregations.create`).
1007
- */
1008
- reactQueryMethod: Types.FunctionName;
1009
- };
1010
- update: {
1011
- /**
1012
- * The name of the TRPC update method (e.g. `update` or `updateAggregation`).
1013
- */
1014
- methodName: Types.VariableName;
1015
- /**
1016
- * The full method name of the React Query method (e.g. `aggregations.update`).
1017
- */
1018
- reactQueryMethod: Types.FunctionName;
1019
- };
1020
- delete: {
1021
- /**
1022
- * The name of the TRPC delete method (e.g. `delete` or `deleteAggregation`).
1023
- */
1024
- methodName: Types.VariableName;
1025
- /**
1026
- * The full method name of the React Query method (e.g. `aggregations.delete`).
1027
- */
1028
- reactQueryMethod: Types.FunctionName;
1029
- };
1030
- };
1031
- /**
1032
- * Properties provided by the `admin.page` generators.
1033
- */
1034
- admin: {
1035
- /**
1036
- * The absolute file path of the admin page for this model.
1037
- */
1038
- filePath: Types.FilePath;
1039
- };
1040
- /**
1041
- * Properties provided by the `types` generators.
1042
- */
1043
- types: {
1044
- /**
1045
- * The absolute path of the file that contains the type definition for this model.
1046
- */
1047
- filePath: Types.FilePath;
1048
- /**
1049
- * Path that may be used to import the types of this model.
1050
- */
1051
- importPath: Types.BackendModulePath;
1052
- /**
1053
- * The name of the type that represents a branded ID (e.g. `AggregationId`.)
1054
- */
1055
- brandedIdType: Types.TypeName;
1056
- /**
1057
- * Function that may be used to convert a scalar value to a branded ID type,
1058
- * e.g. `toAggregationId`.
1059
- */
1060
- toBrandedIdTypeFnName: Types.FunctionName;
1061
- zodDecoderFnNames: {
1062
- /**
1063
- * The name of the function that decodes a scalar value to a branded ID type (e.g. `aggregationIdDecoder`.)
1064
- */
1065
- id: Types.FunctionName;
1066
- /**
1067
- * The name of the function that decodes a source (database) object to a fully typed object (e.g. `aggregationDatabaseDecoder`.)
1068
- */
1069
- fromDatabase: Types.FunctionName;
1070
- };
1071
- /**
1072
- * Type definitions for the different Data Transfer Objects (DTOs).
1073
- */
1074
- dto: {
1075
- /**
1076
- * The name of the type that represents a DTO for creating a new object (e.g. `AggregationCreateDTO`.)
1077
- */
1078
- create: Types.TypeName;
1079
- /**
1080
- * The name of the type that represents a DTO for updating an existing object (e.g. `AggregationUpdateDTO`.)
1081
- */
1082
- update: Types.TypeName;
1083
- /**
1084
- * The name of the type that represents a DTO for upserting an existing object (e.g. `AggregationUpsertDTO`.)
1085
- */
1086
- upsert: Types.TypeName;
1087
- /**
1088
- * The name of the type that represents a DTO for cloning an existing object (e.g. `AggregationCloneDTO`.)
1089
- */
1090
- clone: Types.TypeName;
1091
- };
1092
- /**
1093
- * The name of the file containing type definitions (e.g. `aggregation.type`).
1094
- */
1095
- typeDefFileName: Types.FileName;
1096
- /**
1097
- * The name of the type that represents a fully typed, flat object (e.g. `Aggregation`.)
1098
- * This type only refers to related types by their branded ID.
1099
- */
1100
- typeName: Types.TypeName;
1101
- /**
1102
- * The name of the type that represents a fully typed object (e.g. `AggregationFull`.)
1103
- * This type refers to relations by linking to the (flat) types.
1104
- */
1105
- linkedTypeName: Types.TypeName;
1106
- /**
1107
- * The name of the type that represents a source (i.e. database) object (e.g. `Aggregation`.)
1108
- */
1109
- sourceType: Types.TypeName;
1110
- };
1111
- };
1112
- /**
1113
- * Returns metadata related to the given model.
1114
- */
1115
- export declare function getModelMetadata({ model }: {
1116
- model: Schema.ModelCore;
1117
- }): ModelMetaData;
1118
- export type FieldMetaData = {
1119
- /**
1120
- * Name of the field as it should appear in the "exposed" properties of the generated type.
1121
- */
1122
- tsFieldName: Types.VariableName;
1123
- /**
1124
- * The name of the method that should be used to get all child objects for a given item (e.g. `getItemsForAggregation`.)
1125
- */
1126
- getByForeignKeyMethodFnName: Types.FunctionName;
1127
- /**
1128
- * The name of the method that should be used to get all child Ids for a given item (e.g. `getIdsForAggregation`.)
1129
- */
1130
- getByForeignKeyIdsMethodFnName: Types.FunctionName;
1131
- /**
1132
- * The name of the column in the seed Excel table (e.g. `Aggregation`.)
1133
- */
1134
- excelColumnName: string;
1135
- };
1136
- /**
1137
- * A collection of hardcoded values shared across multiple generators related to the given field in the model.
1138
- */
1139
- export declare function getFieldMetadata({ field }: {
1140
- field: Schema.Field;
1141
- }): FieldMetaData;
1142
- export type EnumMetaData = {
1143
- react: {
1144
- /**
1145
- * Name of the folder that contains React components for this model.
1146
- */
1147
- folderName: Types.FolderName;
1148
- /**
1149
- * The path to the folder that contains React components for this model.
1150
- */
1151
- folderPath: Types.FilePath;
1152
- /**
1153
- * Relative path to the file or a package that contains the React components for this model.
1154
- */
1155
- importPath: Types.BackendModulePath;
1156
- selectInputName: Types.VariableName;
1157
- selectFieldName: Types.VariableName;
1158
- switcherInputName: Types.VariableName;
1159
- switcherFieldName: Types.VariableName;
1160
- menuInputName: Types.VariableName;
1161
- menuFieldName: Types.VariableName;
1162
- };
1163
- types: {
1164
- /**
1165
- * Variable that holds a list of all enum members (e.g. `aggregationGroupMembers`).
1166
- */
1167
- membersList: Types.VariableName;
1168
- /**
1169
- * Variable that holds a map of all enum members (e.g. `aggregationGroup`).
1170
- */
1171
- membersMap: Types.VariableName;
1172
- /**
1173
- * Relative path to the file that contains the enum's types (e.g. `./aggregation.type`.)
1174
- */
1175
- filePath: Types.FilePath;
1176
- /**
1177
- * Path that should be used to import enum type definitions.
1178
- */
1179
- importPath: Types.BackendModulePath;
1180
- /**
1181
- * Name of the enum as it appears in the source file (e.g. in Prisma schema).
1182
- */
1183
- sourceName: string;
1184
- };
1185
- };
1186
- /**
1187
- * Returns string values that may be used across multiple generators related to the given enum.
1188
- */
1189
- export declare function getEnumMetadata({ enumerator: { name, schemaConfig: config }, }: {
1190
- enumerator: Schema.Enum;
1191
- }): EnumMetaData;