@postxl/generator 0.60.7 → 0.61.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generator.js +29 -36
- package/dist/generators/indices/businesslogic-actiontypes.generator.js +6 -6
- package/dist/generators/indices/businesslogic-update-clonecontext.generator.js +3 -3
- package/dist/generators/indices/businesslogic-update-module.generator.js +9 -9
- package/dist/generators/indices/businesslogic-update-service.generator.js +6 -6
- package/dist/generators/indices/businesslogic-view-module.generator.js +8 -8
- package/dist/generators/indices/businesslogic-view-service.generator.js +6 -6
- package/dist/generators/indices/data-types.generator.js +1 -1
- package/dist/generators/indices/datamock-module.generator.js +8 -32
- package/dist/generators/indices/datamocker.generator.js +3 -3
- package/dist/generators/indices/datamodule.generator.js +5 -4
- package/dist/generators/indices/dataservice.generator.js +4 -4
- package/dist/generators/indices/dispatcher-service.generator.js +11 -10
- package/dist/generators/indices/importexport-convert-import-functions.generator.js +7 -7
- package/dist/generators/indices/importexport-exporter-class.generator.js +6 -6
- package/dist/generators/indices/importexport-import-service.generator.js +14 -12
- package/dist/generators/indices/importexport-types.generator.js +2 -2
- package/dist/generators/indices/repositories.generator.d.ts +0 -7
- package/dist/generators/indices/repositories.generator.js +2 -16
- package/dist/generators/indices/seed-migration.generator.js +6 -4
- package/dist/generators/indices/testdata-service.generator.js +7 -7
- package/dist/generators/models/businesslogic-update.generator.js +24 -23
- package/dist/generators/models/businesslogic-view.generator.js +8 -9
- package/dist/generators/models/importexport-decoder.generator.d.ts +0 -7
- package/dist/generators/models/importexport-decoder.generator.js +2 -16
- package/dist/generators/models/repository.generator.js +5 -7
- package/dist/generators/models/route.generator.js +3 -3
- package/dist/generators/models/seed.generator.js +2 -2
- package/dist/generators/models/stub.generator.js +1 -1
- package/dist/lib/meta.d.ts +189 -231
- package/dist/lib/meta.js +78 -91
- package/dist/lib/schema/schema.d.ts +10 -3
- package/dist/lib/schema/types.d.ts +27 -0
- package/dist/lib/schema/types.js +28 -1
- package/package.json +1 -1
- package/dist/generators/indices/businesslogic-update-index.generator.d.ts +0 -9
- package/dist/generators/indices/businesslogic-update-index.generator.js +0 -23
- package/dist/generators/indices/businesslogic-view-index.generator.d.ts +0 -9
- package/dist/generators/indices/businesslogic-view-index.generator.js +0 -19
- package/dist/generators/indices/stubs.generator.d.ts +0 -16
- package/dist/generators/indices/stubs.generator.js +0 -29
package/dist/lib/meta.d.ts
CHANGED
|
@@ -42,46 +42,60 @@ export type SchemaMetaData = {
|
|
|
42
42
|
importPath: Types.BackendModulePath;
|
|
43
43
|
};
|
|
44
44
|
db: {
|
|
45
|
+
/**
|
|
46
|
+
* Name of the module class
|
|
47
|
+
*/
|
|
48
|
+
moduleName: Types.ClassName;
|
|
45
49
|
/**
|
|
46
50
|
* Path that may be used to import the db backend module.
|
|
47
51
|
*/
|
|
48
|
-
|
|
52
|
+
moduleLocation: Types.ModuleLocation;
|
|
53
|
+
/**
|
|
54
|
+
* Path that may be used to import the db types.
|
|
55
|
+
*
|
|
56
|
+
* NOTE: While we avoid index.ts files in all other modules, here we leverage it as we re-export the native Prisma types!
|
|
57
|
+
*/
|
|
58
|
+
typesImportPath: Types.BackendModulePath;
|
|
49
59
|
databaseService: {
|
|
50
60
|
/**
|
|
51
61
|
* The name of the DB service class.
|
|
52
62
|
*/
|
|
53
63
|
name: Types.ClassName;
|
|
64
|
+
/**
|
|
65
|
+
* Path that may be used to import the database service.
|
|
66
|
+
*/
|
|
67
|
+
location: Types.ModuleLocation;
|
|
54
68
|
};
|
|
55
69
|
};
|
|
56
70
|
http: {
|
|
57
71
|
/**
|
|
58
72
|
* Path that may be used to import the http backend module.
|
|
59
73
|
*/
|
|
60
|
-
|
|
74
|
+
moduleImportPath: Types.BackendModulePath;
|
|
61
75
|
};
|
|
62
76
|
i18n: {
|
|
63
77
|
/**
|
|
64
78
|
* Path that may be used to import the i18n backend module.
|
|
65
79
|
*/
|
|
66
|
-
|
|
80
|
+
moduleImportPath: Types.BackendModulePath;
|
|
67
81
|
};
|
|
68
82
|
s3: {
|
|
69
83
|
/**
|
|
70
84
|
* Path that may be used to import the s3 backend module.
|
|
71
85
|
*/
|
|
72
|
-
|
|
86
|
+
moduleImportPath: Types.BackendModulePath;
|
|
73
87
|
};
|
|
74
88
|
upload: {
|
|
75
89
|
/**
|
|
76
90
|
* Path that may be used to import the upload backend module.
|
|
77
91
|
*/
|
|
78
|
-
|
|
92
|
+
moduleImportPath: Types.BackendModulePath;
|
|
79
93
|
};
|
|
80
94
|
xlport: {
|
|
81
95
|
/**
|
|
82
96
|
* Path that may be used to import the xlport backend module.
|
|
83
97
|
*/
|
|
84
|
-
|
|
98
|
+
moduleImportPart: Types.BackendModulePath;
|
|
85
99
|
};
|
|
86
100
|
};
|
|
87
101
|
actions: {
|
|
@@ -90,38 +104,58 @@ export type SchemaMetaData = {
|
|
|
90
104
|
*/
|
|
91
105
|
moduleName: Types.ClassName;
|
|
92
106
|
/**
|
|
93
|
-
* Path that may be used to import
|
|
107
|
+
* Path that may be used to import the action module.
|
|
94
108
|
*/
|
|
95
|
-
|
|
109
|
+
moduleLocation: Types.ModuleLocation;
|
|
96
110
|
execution: {
|
|
111
|
+
/**
|
|
112
|
+
* The name of the class that handles the action execution.
|
|
113
|
+
*/
|
|
114
|
+
class: Types.ClassName;
|
|
115
|
+
/**
|
|
116
|
+
* Path that may be used to import the action execution class.
|
|
117
|
+
*/
|
|
118
|
+
classLocation: Types.ModuleLocation;
|
|
97
119
|
/**
|
|
98
120
|
* The name of the interface that handles the action execution.
|
|
99
121
|
*/
|
|
100
122
|
interface: Types.ClassName;
|
|
101
123
|
/**
|
|
102
|
-
*
|
|
124
|
+
* Path that may be used to import the action execution interface.
|
|
103
125
|
*/
|
|
104
|
-
|
|
126
|
+
interfaceLocation: Types.ModuleLocation;
|
|
105
127
|
/**
|
|
106
128
|
* The name of the mock for the actionExecution class.
|
|
107
129
|
*/
|
|
108
130
|
mock: Types.ClassName;
|
|
131
|
+
/**
|
|
132
|
+
* Path the may be used to import the action mock class
|
|
133
|
+
*/
|
|
134
|
+
mockLocation: Types.ModuleLocation;
|
|
109
135
|
};
|
|
110
136
|
dispatcher: {
|
|
111
137
|
/**
|
|
112
138
|
* Path to the file containing the dispatcher service class definition.
|
|
113
139
|
*/
|
|
114
|
-
|
|
140
|
+
classLocation: Types.ModuleLocation;
|
|
115
141
|
/**
|
|
116
142
|
* The name of the dispatcher service class.
|
|
117
143
|
*/
|
|
118
144
|
class: Types.ClassName;
|
|
145
|
+
/**
|
|
146
|
+
* Path to the file containing the dispatcher interface
|
|
147
|
+
*/
|
|
148
|
+
definitionLocation: Types.ModuleLocation;
|
|
119
149
|
/**
|
|
120
150
|
* The definition type that may be used to create a dispatcher conforming class.
|
|
121
151
|
*/
|
|
122
152
|
definition: Types.TypeName;
|
|
123
153
|
};
|
|
124
154
|
definition: {
|
|
155
|
+
/**
|
|
156
|
+
* Path that may be used to import the definition utils.
|
|
157
|
+
*/
|
|
158
|
+
importPath: Types.BackendModulePath;
|
|
125
159
|
/**
|
|
126
160
|
* The schema type to define action definitions.
|
|
127
161
|
*/
|
|
@@ -149,21 +183,13 @@ export type SchemaMetaData = {
|
|
|
149
183
|
*/
|
|
150
184
|
moduleName: Types.ClassName;
|
|
151
185
|
/**
|
|
152
|
-
*
|
|
153
|
-
*/
|
|
154
|
-
importPath: Types.BackendModulePath;
|
|
155
|
-
/**
|
|
156
|
-
* Path to the file containing the data module class definition.
|
|
186
|
+
* Location of the module class
|
|
157
187
|
*/
|
|
158
|
-
|
|
188
|
+
moduleLocation: Types.ModuleLocation;
|
|
159
189
|
/**
|
|
160
190
|
* Path to the file containing the data module class definition.
|
|
161
191
|
*/
|
|
162
192
|
emptyDbCommandFilePath: Types.FilePath;
|
|
163
|
-
/**
|
|
164
|
-
* Path to the file containing the mock data for the database.
|
|
165
|
-
*/
|
|
166
|
-
dataMockModuleFilePath: Types.FilePath;
|
|
167
193
|
repository: {
|
|
168
194
|
/**
|
|
169
195
|
* Path to the file containing the repository type definition.
|
|
@@ -186,7 +212,7 @@ export type SchemaMetaData = {
|
|
|
186
212
|
/**
|
|
187
213
|
* Path to the types definition.
|
|
188
214
|
*/
|
|
189
|
-
|
|
215
|
+
location: Types.ModuleLocation;
|
|
190
216
|
/**
|
|
191
217
|
* The name of the BulkMutation type.
|
|
192
218
|
*/
|
|
@@ -196,10 +222,16 @@ export type SchemaMetaData = {
|
|
|
196
222
|
*/
|
|
197
223
|
bulkMutationForModel: Types.TypeName;
|
|
198
224
|
};
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
225
|
+
mockModule: {
|
|
226
|
+
/**
|
|
227
|
+
* Path to the file containing the mock data for the database.
|
|
228
|
+
*/
|
|
229
|
+
location: Types.ModuleLocation;
|
|
230
|
+
/**
|
|
231
|
+
* Name of the mock data module class.
|
|
232
|
+
*/
|
|
233
|
+
name: Types.ClassName;
|
|
234
|
+
};
|
|
203
235
|
/**
|
|
204
236
|
* Name of the data mock type/interface.
|
|
205
237
|
*/
|
|
@@ -208,7 +240,7 @@ export type SchemaMetaData = {
|
|
|
208
240
|
/**
|
|
209
241
|
* Path to the file containing data service class definitions.
|
|
210
242
|
*/
|
|
211
|
-
|
|
243
|
+
location: Types.ModuleLocation;
|
|
212
244
|
/**
|
|
213
245
|
* Name of the data service class.
|
|
214
246
|
*/
|
|
@@ -238,19 +270,15 @@ export type SchemaMetaData = {
|
|
|
238
270
|
/**
|
|
239
271
|
* Path that may be used to import from the import-export module.
|
|
240
272
|
*/
|
|
241
|
-
|
|
273
|
+
moduleLocation: Types.ModuleLocation;
|
|
242
274
|
/**
|
|
243
275
|
* Meta data for decoder functions.
|
|
244
276
|
*/
|
|
245
277
|
decoder: {
|
|
246
|
-
/**
|
|
247
|
-
* Path to the file containing the import-export decoder index.
|
|
248
|
-
*/
|
|
249
|
-
indexFilePath: Types.FilePath;
|
|
250
278
|
/**
|
|
251
279
|
* Path to the file containing the data decoder
|
|
252
280
|
*/
|
|
253
|
-
|
|
281
|
+
location: Types.ModuleLocation;
|
|
254
282
|
/**
|
|
255
283
|
* Name of the data decoder function
|
|
256
284
|
*/
|
|
@@ -275,7 +303,7 @@ export type SchemaMetaData = {
|
|
|
275
303
|
/**
|
|
276
304
|
* Path to the file containing the exporter class.
|
|
277
305
|
*/
|
|
278
|
-
|
|
306
|
+
location: Types.ModuleLocation;
|
|
279
307
|
/**
|
|
280
308
|
* The name of the exporter class.
|
|
281
309
|
*/
|
|
@@ -285,7 +313,7 @@ export type SchemaMetaData = {
|
|
|
285
313
|
/**
|
|
286
314
|
* Path to the file containing the export service class.
|
|
287
315
|
*/
|
|
288
|
-
|
|
316
|
+
location: Types.ModuleLocation;
|
|
289
317
|
/**
|
|
290
318
|
* The name of the export service class.
|
|
291
319
|
*/
|
|
@@ -295,7 +323,7 @@ export type SchemaMetaData = {
|
|
|
295
323
|
/**
|
|
296
324
|
* Path to the file containing the import service class.
|
|
297
325
|
*/
|
|
298
|
-
|
|
326
|
+
location: Types.ModuleLocation;
|
|
299
327
|
/**
|
|
300
328
|
* The name of the import service class.
|
|
301
329
|
*/
|
|
@@ -317,7 +345,7 @@ export type SchemaMetaData = {
|
|
|
317
345
|
/**
|
|
318
346
|
* Path to the file containing the import function.
|
|
319
347
|
*/
|
|
320
|
-
|
|
348
|
+
location: Types.ModuleLocation;
|
|
321
349
|
/**
|
|
322
350
|
* Name of the function that convert import data to BulkMutations.
|
|
323
351
|
*/
|
|
@@ -338,7 +366,7 @@ export type SchemaMetaData = {
|
|
|
338
366
|
/**
|
|
339
367
|
* Path to the types definition.
|
|
340
368
|
*/
|
|
341
|
-
|
|
369
|
+
location: Types.ModuleLocation;
|
|
342
370
|
/**
|
|
343
371
|
* The name of the type that represents the delta of all models.
|
|
344
372
|
*/
|
|
@@ -490,107 +518,66 @@ export type SchemaMetaData = {
|
|
|
490
518
|
delta_Fields: Types.TypeName;
|
|
491
519
|
};
|
|
492
520
|
};
|
|
493
|
-
|
|
521
|
+
view: {
|
|
494
522
|
/**
|
|
495
|
-
* The name of the
|
|
523
|
+
* The name of the module class
|
|
496
524
|
*/
|
|
497
525
|
moduleName: Types.ClassName;
|
|
498
526
|
/**
|
|
499
|
-
* Path that may be used to import from the
|
|
527
|
+
* Path that may be used to import from the view module.
|
|
500
528
|
*/
|
|
501
|
-
|
|
529
|
+
moduleLocation: Types.ModuleLocation;
|
|
502
530
|
/**
|
|
503
|
-
*
|
|
531
|
+
* The name of the central view service class, containing all model view services.
|
|
504
532
|
*/
|
|
505
|
-
|
|
533
|
+
serviceClassName: Types.ClassName;
|
|
506
534
|
/**
|
|
507
|
-
* Path to the file containing the
|
|
535
|
+
* Path to the file containing the view service class definition.
|
|
508
536
|
*/
|
|
509
|
-
|
|
537
|
+
serviceLocation: Types.ModuleLocation;
|
|
538
|
+
};
|
|
539
|
+
/**
|
|
540
|
+
* Settings for the update module
|
|
541
|
+
*/
|
|
542
|
+
update: {
|
|
510
543
|
/**
|
|
511
|
-
*
|
|
544
|
+
* The name of the module class
|
|
512
545
|
*/
|
|
513
|
-
|
|
514
|
-
/**
|
|
515
|
-
* The name of the module class
|
|
516
|
-
*/
|
|
517
|
-
moduleName: Types.ClassName;
|
|
518
|
-
/**
|
|
519
|
-
* Path that may be used to import from the view module.
|
|
520
|
-
*/
|
|
521
|
-
importPath: Types.BackendModulePath;
|
|
522
|
-
/**
|
|
523
|
-
* Path to the file containing the view index.
|
|
524
|
-
*/
|
|
525
|
-
indexFilePath: Types.FilePath;
|
|
526
|
-
/**
|
|
527
|
-
* Path to the file containing the view module definition.
|
|
528
|
-
*/
|
|
529
|
-
moduleFilePath: Types.FilePath;
|
|
530
|
-
/**
|
|
531
|
-
* The name of the central view service class, containing all model view services.
|
|
532
|
-
*/
|
|
533
|
-
serviceClassName: Types.ClassName;
|
|
534
|
-
/**
|
|
535
|
-
* Path to the file containing the view service class definition.
|
|
536
|
-
*/
|
|
537
|
-
serviceFilePath: Types.FilePath;
|
|
538
|
-
};
|
|
546
|
+
moduleName: Types.ClassName;
|
|
539
547
|
/**
|
|
540
|
-
*
|
|
548
|
+
* Path that may be used to import from the update module.
|
|
541
549
|
*/
|
|
542
|
-
|
|
543
|
-
/**
|
|
544
|
-
* The name of the module class
|
|
545
|
-
*/
|
|
546
|
-
moduleName: Types.ClassName;
|
|
547
|
-
/**
|
|
548
|
-
* Path that may be used to import from the update module.
|
|
549
|
-
*/
|
|
550
|
-
importPath: Types.BackendModulePath;
|
|
551
|
-
/**
|
|
552
|
-
* Path to the file containing the update index.
|
|
553
|
-
*/
|
|
554
|
-
indexFilePath: Types.FilePath;
|
|
555
|
-
/**
|
|
556
|
-
* Path to the file containing the update module definition.
|
|
557
|
-
*/
|
|
558
|
-
moduleFilePath: Types.FilePath;
|
|
559
|
-
/**
|
|
560
|
-
* The name of the central update service class, containing all model update services.
|
|
561
|
-
*/
|
|
562
|
-
serviceClassName: Types.ClassName;
|
|
563
|
-
/**
|
|
564
|
-
* Path to the file containing the update service class definition.
|
|
565
|
-
*/
|
|
566
|
-
serviceFilePath: Types.FilePath;
|
|
567
|
-
/**
|
|
568
|
-
* Path to the file containing the overall action types
|
|
569
|
-
*/
|
|
570
|
-
actionTypesFilePath: Types.FilePath;
|
|
571
|
-
/**
|
|
572
|
-
* Path to the file containing the clone context
|
|
573
|
-
*/
|
|
574
|
-
cloneContextFilePath: Types.FilePath;
|
|
575
|
-
/**
|
|
576
|
-
* The name of the clone context type
|
|
577
|
-
*/
|
|
578
|
-
cloneContextType: Types.TypeName;
|
|
579
|
-
/**
|
|
580
|
-
* The name of the function that creates a clone context
|
|
581
|
-
*/
|
|
582
|
-
cloneContextCreateMethod: Types.FunctionName;
|
|
583
|
-
};
|
|
584
|
-
};
|
|
585
|
-
seedData: {
|
|
550
|
+
moduleLocation: Types.ModuleLocation;
|
|
586
551
|
/**
|
|
587
|
-
*
|
|
552
|
+
* The name of the central update service class, containing all model update services.
|
|
588
553
|
*/
|
|
589
|
-
|
|
554
|
+
serviceClassName: Types.ClassName;
|
|
555
|
+
/**
|
|
556
|
+
* Path to the file containing the update service class definition.
|
|
557
|
+
*/
|
|
558
|
+
serviceLocation: Types.ModuleLocation;
|
|
559
|
+
/**
|
|
560
|
+
* Path to the file containing the overall action types
|
|
561
|
+
*/
|
|
562
|
+
actionTypesFilePath: Types.FilePath;
|
|
563
|
+
/**
|
|
564
|
+
* Path to the file containing the clone context
|
|
565
|
+
*/
|
|
566
|
+
cloneContextFilePath: Types.FilePath;
|
|
567
|
+
/**
|
|
568
|
+
* The name of the clone context type
|
|
569
|
+
*/
|
|
570
|
+
cloneContextType: Types.TypeName;
|
|
571
|
+
/**
|
|
572
|
+
* The name of the function that creates a clone context
|
|
573
|
+
*/
|
|
574
|
+
cloneContextCreateMethod: Types.FunctionName;
|
|
575
|
+
};
|
|
576
|
+
seedData: {
|
|
590
577
|
/**
|
|
591
578
|
* Location of the initial seed data migration
|
|
592
579
|
*/
|
|
593
|
-
|
|
580
|
+
initialMigrationLocation: Types.ModuleLocation;
|
|
594
581
|
/**
|
|
595
582
|
* Path to seed Excel template file.
|
|
596
583
|
*/
|
|
@@ -604,17 +591,17 @@ export type SchemaMetaData = {
|
|
|
604
591
|
/**
|
|
605
592
|
* Path that may be used in the import statement.
|
|
606
593
|
*/
|
|
607
|
-
|
|
594
|
+
serviceLocation: Types.ModuleLocation;
|
|
595
|
+
/**
|
|
596
|
+
* Path that may be used in the import statement.
|
|
597
|
+
*/
|
|
598
|
+
actionsLocation: Types.ModuleLocation;
|
|
608
599
|
};
|
|
609
600
|
trpc: {
|
|
610
601
|
/**
|
|
611
602
|
* Path to the file that contains the trpc routes object.
|
|
612
603
|
*/
|
|
613
604
|
routesFilePath: Types.FilePath;
|
|
614
|
-
/**
|
|
615
|
-
* Path that may be used to import the trpc routes object.
|
|
616
|
-
*/
|
|
617
|
-
importPath: Types.BackendModulePath;
|
|
618
605
|
};
|
|
619
606
|
types: {
|
|
620
607
|
/**
|
|
@@ -659,20 +646,10 @@ export type SchemaMetaData = {
|
|
|
659
646
|
* Meta data for the e2e generators.
|
|
660
647
|
*/
|
|
661
648
|
e2e: {
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
filePath: Types.FilePath;
|
|
667
|
-
/**
|
|
668
|
-
* Path to the file containing data mocker class definitions.
|
|
669
|
-
*/
|
|
670
|
-
stubIndexFilePath: Types.FilePath;
|
|
671
|
-
/**
|
|
672
|
-
* Path that may be used to import the data mocker stubs.
|
|
673
|
-
*/
|
|
674
|
-
stubImportPath: Types.FilePath;
|
|
675
|
-
};
|
|
649
|
+
/**
|
|
650
|
+
* Path to the file containing data mocker class definitions.
|
|
651
|
+
*/
|
|
652
|
+
dataMockerLocation: Types.ModuleLocation;
|
|
676
653
|
/**
|
|
677
654
|
* Path to the file containing component selectors for e2e tests.
|
|
678
655
|
*/
|
|
@@ -769,7 +746,7 @@ export type ModelMetaData = {
|
|
|
769
746
|
/**
|
|
770
747
|
* The path to the file containing stub definitions of this model.
|
|
771
748
|
*/
|
|
772
|
-
|
|
749
|
+
stubLocation: Types.ModuleLocation;
|
|
773
750
|
/**
|
|
774
751
|
* The name of the TypeScript constant that contains default values for all fields.
|
|
775
752
|
*/
|
|
@@ -788,13 +765,9 @@ export type ModelMetaData = {
|
|
|
788
765
|
dataServiceIdName: Types.VariableName;
|
|
789
766
|
repository: {
|
|
790
767
|
/**
|
|
791
|
-
*
|
|
768
|
+
* Location of the file containing the repository definition for this model.
|
|
792
769
|
*/
|
|
793
|
-
|
|
794
|
-
/**
|
|
795
|
-
* Path to the file containing the repository definition.
|
|
796
|
-
*/
|
|
797
|
-
filePath: Types.FilePath;
|
|
770
|
+
location: Types.ModuleLocation;
|
|
798
771
|
/**
|
|
799
772
|
* The name of the class for the repository definition of this model (e.g. AggregationRepository).
|
|
800
773
|
*/
|
|
@@ -809,14 +782,10 @@ export type ModelMetaData = {
|
|
|
809
782
|
getMethodFnName: Types.FunctionName;
|
|
810
783
|
};
|
|
811
784
|
mockRepository: {
|
|
812
|
-
/**
|
|
813
|
-
* Name of the file containing the mock repository definition for this model.
|
|
814
|
-
*/
|
|
815
|
-
fileName: Types.FileName;
|
|
816
785
|
/**
|
|
817
786
|
* Path to the file containing the mock repository definition.
|
|
818
787
|
*/
|
|
819
|
-
|
|
788
|
+
location: Types.ModuleLocation;
|
|
820
789
|
/**
|
|
821
790
|
* The name of the class for the in-memory mock repository definition of this model (e.g. MockAggregationRepository).
|
|
822
791
|
*/
|
|
@@ -825,9 +794,13 @@ export type ModelMetaData = {
|
|
|
825
794
|
};
|
|
826
795
|
e2e: {
|
|
827
796
|
/**
|
|
828
|
-
* The path to the file containing stub definitions
|
|
797
|
+
* The path to the file containing stub definitions of this model.
|
|
798
|
+
*/
|
|
799
|
+
stubLocation: Types.ModuleLocation;
|
|
800
|
+
/**
|
|
801
|
+
* The name of the function that adds missing values to the partially populated model value.
|
|
829
802
|
*/
|
|
830
|
-
|
|
803
|
+
stubGenerationFnName: Types.FunctionName;
|
|
831
804
|
};
|
|
832
805
|
/**
|
|
833
806
|
* Properties provided by the `importExport` generators
|
|
@@ -894,7 +867,7 @@ export type ModelMetaData = {
|
|
|
894
867
|
/**
|
|
895
868
|
* Properties provided by the `business logic` generator.
|
|
896
869
|
*/
|
|
897
|
-
|
|
870
|
+
view: {
|
|
898
871
|
/**
|
|
899
872
|
* The const type that represents the scope of the business logic service. (e.g. `aggregation`)
|
|
900
873
|
* The scope is typically a model. However, in a more complex business logic, this could also be
|
|
@@ -902,93 +875,82 @@ export type ModelMetaData = {
|
|
|
902
875
|
*/
|
|
903
876
|
scopeName: Types.VariableName;
|
|
904
877
|
/**
|
|
905
|
-
*
|
|
878
|
+
* The name by which the model's view class is exposed in the viewService/context. (e.g. aggregations)
|
|
906
879
|
*/
|
|
907
|
-
|
|
880
|
+
serviceClassName: Types.ClassName;
|
|
908
881
|
/**
|
|
909
|
-
* The
|
|
882
|
+
* The name by which the model's service is exposed in the viewService/context. (e.g. aggregations)
|
|
910
883
|
*/
|
|
911
|
-
|
|
912
|
-
/**
|
|
913
|
-
* Path that may be used to import the types of this model.
|
|
914
|
-
*/
|
|
915
|
-
importPath: Types.BackendModulePath;
|
|
916
|
-
/**
|
|
917
|
-
* The name by which the model's view class is exposed in the viewService/context. (e.g. aggregations)
|
|
918
|
-
*/
|
|
919
|
-
serviceClassName: Types.ClassName;
|
|
920
|
-
/**
|
|
921
|
-
* The name by which the model's service is exposed in the viewService/context. (e.g. aggregations)
|
|
922
|
-
*/
|
|
923
|
-
serviceVariableName: Types.VariableName;
|
|
924
|
-
/**
|
|
925
|
-
* Name of the file containing the view service for this model.
|
|
926
|
-
*/
|
|
927
|
-
serviceFileName: Types.FileName;
|
|
928
|
-
/**
|
|
929
|
-
* Path to the file containing the view service.
|
|
930
|
-
*/
|
|
931
|
-
serviceFilePath: Types.FilePath;
|
|
932
|
-
};
|
|
884
|
+
serviceVariableName: Types.VariableName;
|
|
933
885
|
/**
|
|
934
|
-
*
|
|
886
|
+
* Path to the view service for this model.
|
|
935
887
|
*/
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
888
|
+
serviceLocation: Types.ModuleLocation;
|
|
889
|
+
/**
|
|
890
|
+
* The name of the variable that holds the repository instance for the current model
|
|
891
|
+
*/
|
|
892
|
+
dataRepositoryVariableName: Types.VariableName;
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* The definitions for the update service of a model
|
|
896
|
+
*/
|
|
897
|
+
update: {
|
|
898
|
+
/**
|
|
899
|
+
* The const type that represents the scope of the business logic service. (e.g. `aggregation`)
|
|
900
|
+
* The scope is typically a model. However, in a more complex business logic, this could also be
|
|
901
|
+
* whatever makes sense to put into a single business logic service - e.g. "approval" (for MCA) or "calculation" (for LA360).
|
|
902
|
+
*/
|
|
903
|
+
scopeName: Types.VariableName;
|
|
904
|
+
/**
|
|
905
|
+
* Path that may be used to import the types of this model.
|
|
906
|
+
*/
|
|
907
|
+
moduleLocation: Types.ModuleLocation;
|
|
908
|
+
/**
|
|
909
|
+
* The name by which the model's update class is exposed in the updateService/context. (e.g. AggregationUpdateService)
|
|
910
|
+
*/
|
|
911
|
+
serviceClassName: Types.ClassName;
|
|
912
|
+
/**
|
|
913
|
+
* Location of the file containing the update service class for this model.
|
|
914
|
+
*/
|
|
915
|
+
serviceClassLocation: Types.ModuleLocation;
|
|
916
|
+
/**
|
|
917
|
+
* The name of the interface that represents the update service for this model. (e.g. IAggregationUpdateService)
|
|
918
|
+
*/
|
|
919
|
+
serviceInterfaceName: Types.TypeName;
|
|
920
|
+
/**
|
|
921
|
+
* The name by which the model's service is exposed in the updateService/context. (e.g. aggregations)
|
|
922
|
+
*/
|
|
923
|
+
serviceVariableName: Types.VariableName;
|
|
924
|
+
/**
|
|
925
|
+
* The name of the model used as a discriminant for the action execution. (e.g. `aggregation`)
|
|
926
|
+
*/
|
|
927
|
+
actionModelDiscriminantName: Types.VariableName;
|
|
928
|
+
decoders: {
|
|
949
929
|
/**
|
|
950
|
-
* The name
|
|
930
|
+
* The name of the variable that holds the decoders for the model. (e.g. `aggregationDecoders`)
|
|
951
931
|
*/
|
|
952
|
-
|
|
932
|
+
name: Types.VariableName;
|
|
953
933
|
/**
|
|
954
|
-
*
|
|
934
|
+
* The name of the function that decodes a Create object to a fully typed object (e.g. `aggregationCreateDecoder`.)
|
|
955
935
|
*/
|
|
956
|
-
|
|
936
|
+
create: Types.FunctionName;
|
|
957
937
|
/**
|
|
958
|
-
*
|
|
938
|
+
* The name of the function that decodes an Update object to a fully typed object (e.g. `aggregationUpdateDecoder`.)
|
|
959
939
|
*/
|
|
960
|
-
|
|
940
|
+
update: Types.FunctionName;
|
|
961
941
|
/**
|
|
962
|
-
* The name of the
|
|
942
|
+
* The name of the function that decodes an Upsert object to a fully typed object (e.g. `aggregationUpsertDecoder`.)
|
|
963
943
|
*/
|
|
964
|
-
|
|
965
|
-
decoders: {
|
|
966
|
-
/**
|
|
967
|
-
* The name of the variable that holds the decoders for the model. (e.g. `aggregationDecoders`)
|
|
968
|
-
*/
|
|
969
|
-
name: Types.VariableName;
|
|
970
|
-
/**
|
|
971
|
-
* The name of the function that decodes a Create object to a fully typed object (e.g. `aggregationCreateDecoder`.)
|
|
972
|
-
*/
|
|
973
|
-
create: Types.FunctionName;
|
|
974
|
-
/**
|
|
975
|
-
* The name of the function that decodes an Update object to a fully typed object (e.g. `aggregationUpdateDecoder`.)
|
|
976
|
-
*/
|
|
977
|
-
update: Types.FunctionName;
|
|
978
|
-
/**
|
|
979
|
-
* The name of the function that decodes an Upsert object to a fully typed object (e.g. `aggregationUpsertDecoder`.)
|
|
980
|
-
*/
|
|
981
|
-
upsert: Types.FunctionName;
|
|
982
|
-
/**
|
|
983
|
-
* The name of the function that clones an object (e.g. `aggregationCloneDecoder`.)
|
|
984
|
-
*/
|
|
985
|
-
clone: Types.FunctionName;
|
|
986
|
-
};
|
|
944
|
+
upsert: Types.FunctionName;
|
|
987
945
|
/**
|
|
988
|
-
* The name of the
|
|
946
|
+
* The name of the function that clones an object (e.g. `aggregationCloneDecoder`.)
|
|
989
947
|
*/
|
|
990
|
-
|
|
948
|
+
clone: Types.FunctionName;
|
|
991
949
|
};
|
|
950
|
+
/**
|
|
951
|
+
* The name of the map variable in the clone context that holds the cloned items of this model (e.g. `aggregation`)
|
|
952
|
+
*/
|
|
953
|
+
cloneContextMap: Types.VariableName;
|
|
992
954
|
/**
|
|
993
955
|
* Name by which the business logic service exposes the data service.
|
|
994
956
|
*/
|
|
@@ -1005,11 +967,7 @@ export type ModelMetaData = {
|
|
|
1005
967
|
/**
|
|
1006
968
|
* Path to the file containing the seed data for this model (e.g. `aggregations.ts`).
|
|
1007
969
|
*/
|
|
1008
|
-
|
|
1009
|
-
/**
|
|
1010
|
-
* The file or package name that contains the seed data for this model (e.g. `@d2i/aggregations`).
|
|
1011
|
-
*/
|
|
1012
|
-
importPath: Types.BackendModulePath;
|
|
970
|
+
location: Types.ModuleLocation;
|
|
1013
971
|
};
|
|
1014
972
|
/**
|
|
1015
973
|
* Properties provided by the `react` generators.
|