@postxl/generator 0.44.3 → 0.44.5
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 +8 -9
- package/dist/generators/enums/react.generator.js +1 -1
- package/dist/generators/indices/businesslogic-update-module.generator.js +1 -1
- package/dist/generators/indices/businesslogic-view-module.generator.js +1 -1
- package/dist/generators/indices/data-types.generator.js +4 -3
- package/dist/generators/indices/datamock-module.generator.js +3 -3
- package/dist/generators/indices/datamocker.generator.js +5 -4
- package/dist/generators/indices/datamodule.generator.js +3 -3
- package/dist/generators/indices/dataservice.generator.js +5 -4
- package/dist/generators/indices/dispatcher-service.generator.js +4 -3
- package/dist/generators/indices/importexport-convert-import-functions.generator.js +29 -24
- package/dist/generators/indices/importexport-exporter-class.generator.js +4 -3
- package/dist/generators/indices/importexport-import-service.generator.js +27 -12
- package/dist/generators/indices/importexport-types.generator.js +9 -4
- package/dist/generators/indices/stubs.generator.js +2 -2
- package/dist/generators/indices/testdata-service.generator.js +5 -2
- package/dist/generators/models/businesslogic-update.generator.js +11 -10
- package/dist/generators/models/businesslogic-view.generator.js +4 -3
- package/dist/generators/models/importexport-decoder.generator.d.ts +2 -1
- package/dist/generators/models/importexport-decoder.generator.js +20 -19
- package/dist/generators/models/react.generator/context.generator.js +1 -1
- package/dist/generators/models/react.generator/index.js +2 -8
- package/dist/generators/models/react.generator/library.generator.d.ts +0 -2
- package/dist/generators/models/react.generator/library.generator.js +3 -5
- package/dist/generators/models/react.generator/lookup.generator.js +3 -6
- package/dist/generators/models/react.generator/modals.generator.js +4 -4
- package/dist/generators/models/repository.generator.js +26 -17
- package/dist/generators/models/route.generator.js +3 -2
- package/dist/generators/models/seed.generator.js +5 -4
- package/dist/generators/models/stub.generator.js +7 -2
- package/dist/generators/models/types.generator.js +7 -3
- package/dist/lib/exports.d.ts +2 -2
- package/dist/lib/imports.d.ts +12 -3
- package/dist/lib/imports.js +47 -15
- package/dist/lib/meta.d.ts +163 -88
- package/dist/lib/meta.js +68 -23
- package/dist/lib/schema/schema.d.ts +15 -18
- package/dist/lib/schema/types.d.ts +35 -5
- package/dist/lib/schema/types.js +20 -2
- package/dist/lib/types.d.ts +1 -1
- package/dist/lib/types.js +1 -1
- package/dist/prisma/parse.js +7 -9
- package/package.json +1 -1
package/dist/lib/meta.d.ts
CHANGED
|
@@ -4,6 +4,80 @@ import * as Types from './schema/types';
|
|
|
4
4
|
* Collection of "global", schema-related values that might be referenced by different generators.
|
|
5
5
|
*/
|
|
6
6
|
export type SchemaMetaData = {
|
|
7
|
+
/**
|
|
8
|
+
* Static meta data for the backend modules that are not generated
|
|
9
|
+
*/
|
|
10
|
+
backendModules: {
|
|
11
|
+
common: {
|
|
12
|
+
/**
|
|
13
|
+
* Path that may be used to import the common backend module.
|
|
14
|
+
*/
|
|
15
|
+
importPath: Types.BackendModulePath;
|
|
16
|
+
/**
|
|
17
|
+
* Names of the functions that are provided by the common backend module.
|
|
18
|
+
*/
|
|
19
|
+
functions: {
|
|
20
|
+
format: Types.FunctionName;
|
|
21
|
+
pluralize: Types.FunctionName;
|
|
22
|
+
uncapitalizeKeys: Types.FunctionName;
|
|
23
|
+
capitalizeKeys: Types.FunctionName;
|
|
24
|
+
nullOrBlankDecoder: Types.FunctionName;
|
|
25
|
+
excelStringNullableDecoder: Types.FunctionName;
|
|
26
|
+
excelStringDecoder: Types.FunctionName;
|
|
27
|
+
excelDateNullableDecoder: Types.FunctionName;
|
|
28
|
+
excelDateDecoder: Types.FunctionName;
|
|
29
|
+
excelBooleanDecoder: Types.FunctionName;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
auth: {
|
|
33
|
+
/**
|
|
34
|
+
* Path that may be used to import the auth backend module.
|
|
35
|
+
*/
|
|
36
|
+
importPath: Types.BackendModulePath;
|
|
37
|
+
};
|
|
38
|
+
db: {
|
|
39
|
+
/**
|
|
40
|
+
* Path that may be used to import the db backend module.
|
|
41
|
+
*/
|
|
42
|
+
importPath: Types.BackendModulePath;
|
|
43
|
+
dbService: {
|
|
44
|
+
/**
|
|
45
|
+
* The name of the DB service class.
|
|
46
|
+
*/
|
|
47
|
+
name: Types.ClassName;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
http: {
|
|
51
|
+
/**
|
|
52
|
+
* Path that may be used to import the http backend module.
|
|
53
|
+
*/
|
|
54
|
+
importPath: Types.BackendModulePath;
|
|
55
|
+
};
|
|
56
|
+
i18n: {
|
|
57
|
+
/**
|
|
58
|
+
* Path that may be used to import the i18n backend module.
|
|
59
|
+
*/
|
|
60
|
+
importPath: Types.BackendModulePath;
|
|
61
|
+
};
|
|
62
|
+
s3: {
|
|
63
|
+
/**
|
|
64
|
+
* Path that may be used to import the s3 backend module.
|
|
65
|
+
*/
|
|
66
|
+
importPath: Types.BackendModulePath;
|
|
67
|
+
};
|
|
68
|
+
upload: {
|
|
69
|
+
/**
|
|
70
|
+
* Path that may be used to import the upload backend module.
|
|
71
|
+
*/
|
|
72
|
+
importPath: Types.BackendModulePath;
|
|
73
|
+
};
|
|
74
|
+
xlport: {
|
|
75
|
+
/**
|
|
76
|
+
* Path that may be used to import the xlport backend module.
|
|
77
|
+
*/
|
|
78
|
+
importPath: Types.BackendModulePath;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
7
81
|
actions: {
|
|
8
82
|
/**
|
|
9
83
|
* The name of the Module class
|
|
@@ -12,12 +86,8 @@ export type SchemaMetaData = {
|
|
|
12
86
|
/**
|
|
13
87
|
* Path that may be used to import from the action module.
|
|
14
88
|
*/
|
|
15
|
-
importPath: Types.
|
|
89
|
+
importPath: Types.BackendModulePath;
|
|
16
90
|
actionExecution: {
|
|
17
|
-
/**
|
|
18
|
-
* Path to the file containing the execution interface definition.
|
|
19
|
-
*/
|
|
20
|
-
filePath: Types.Path;
|
|
21
91
|
/**
|
|
22
92
|
* The name of the interface that handles the action execution.
|
|
23
93
|
*/
|
|
@@ -35,7 +105,7 @@ export type SchemaMetaData = {
|
|
|
35
105
|
/**
|
|
36
106
|
* Path to the file containing the dispatcher service class definition.
|
|
37
107
|
*/
|
|
38
|
-
filePath: Types.
|
|
108
|
+
filePath: Types.FilePath;
|
|
39
109
|
/**
|
|
40
110
|
* The name of the dispatcher service class.
|
|
41
111
|
*/
|
|
@@ -53,20 +123,20 @@ export type SchemaMetaData = {
|
|
|
53
123
|
/**
|
|
54
124
|
* Path that may be used to import from the data module.
|
|
55
125
|
*/
|
|
56
|
-
importPath: Types.
|
|
126
|
+
importPath: Types.BackendModulePath;
|
|
57
127
|
/**
|
|
58
128
|
* Path to the file containing the data module class definition.
|
|
59
129
|
*/
|
|
60
|
-
dataModuleFilePath: Types.
|
|
130
|
+
dataModuleFilePath: Types.FilePath;
|
|
61
131
|
/**
|
|
62
132
|
* Path to the file containing the mock data for the database.
|
|
63
133
|
*/
|
|
64
|
-
dataMockModuleFilePath: Types.
|
|
134
|
+
dataMockModuleFilePath: Types.FilePath;
|
|
65
135
|
repository: {
|
|
66
136
|
/**
|
|
67
137
|
* Path to the file containing the repository type definition.
|
|
68
138
|
*/
|
|
69
|
-
typeFilePath: Types.
|
|
139
|
+
typeFilePath: Types.FilePath;
|
|
70
140
|
/**
|
|
71
141
|
* Name of the repository type.
|
|
72
142
|
*/
|
|
@@ -74,17 +144,17 @@ export type SchemaMetaData = {
|
|
|
74
144
|
/**
|
|
75
145
|
* Path to the file containing the array with all repositories.
|
|
76
146
|
*/
|
|
77
|
-
constFilePath: Types.
|
|
147
|
+
constFilePath: Types.FilePath;
|
|
78
148
|
/**
|
|
79
149
|
* Path to the file containing the index file for the repositories.
|
|
80
150
|
*/
|
|
81
|
-
indexFilePath: Types.
|
|
151
|
+
indexFilePath: Types.FilePath;
|
|
82
152
|
};
|
|
83
153
|
types: {
|
|
84
154
|
/**
|
|
85
155
|
* Path to the types definition.
|
|
86
156
|
*/
|
|
87
|
-
filePath: Types.
|
|
157
|
+
filePath: Types.FilePath;
|
|
88
158
|
/**
|
|
89
159
|
* The name of the BulkMutation type.
|
|
90
160
|
*/
|
|
@@ -106,7 +176,7 @@ export type SchemaMetaData = {
|
|
|
106
176
|
/**
|
|
107
177
|
* Path to the file containing data service class definitions.
|
|
108
178
|
*/
|
|
109
|
-
filePath: Types.
|
|
179
|
+
filePath: Types.FilePath;
|
|
110
180
|
/**
|
|
111
181
|
* Name of the data service class.
|
|
112
182
|
*/
|
|
@@ -120,30 +190,14 @@ export type SchemaMetaData = {
|
|
|
120
190
|
*/
|
|
121
191
|
executeBulkMutation: Types.FunctionName;
|
|
122
192
|
};
|
|
123
|
-
/**
|
|
124
|
-
* Path to the file containing data mocker class definitions.
|
|
125
|
-
*/
|
|
126
|
-
dataMockerFilePath: Types.Path;
|
|
127
|
-
/**
|
|
128
|
-
* Path to the file containing component selectors for e2e tests.
|
|
129
|
-
*/
|
|
130
|
-
selectorsFilePath: Types.Path;
|
|
131
193
|
/**
|
|
132
194
|
* Path to the file containing the testDataService class definition.
|
|
133
195
|
*/
|
|
134
|
-
testDataServiceFilePath: Types.
|
|
135
|
-
/**
|
|
136
|
-
* Path to the file containing data mocker class definitions.
|
|
137
|
-
*/
|
|
138
|
-
dataMockerStubIndexFilePath: Types.Path;
|
|
139
|
-
/**
|
|
140
|
-
* Path that may be used to import the data mocker stubs.
|
|
141
|
-
*/
|
|
142
|
-
dataMockerStubImportPath: Types.Path;
|
|
196
|
+
testDataServiceFilePath: Types.FilePath;
|
|
143
197
|
/**
|
|
144
198
|
* Path to the file containing the index file for the subs.
|
|
145
199
|
*/
|
|
146
|
-
stubIndexFilePath: Types.
|
|
200
|
+
stubIndexFilePath: Types.FilePath;
|
|
147
201
|
};
|
|
148
202
|
/**
|
|
149
203
|
* Meta data for import/export operations.
|
|
@@ -152,7 +206,7 @@ export type SchemaMetaData = {
|
|
|
152
206
|
/**
|
|
153
207
|
* Path that may be used to import from the import-export module.
|
|
154
208
|
*/
|
|
155
|
-
importPath: Types.
|
|
209
|
+
importPath: Types.BackendModulePath;
|
|
156
210
|
/**
|
|
157
211
|
* Meta data for decoder functions.
|
|
158
212
|
*/
|
|
@@ -160,11 +214,11 @@ export type SchemaMetaData = {
|
|
|
160
214
|
/**
|
|
161
215
|
* Path to the file containing the import-export decoder index.
|
|
162
216
|
*/
|
|
163
|
-
indexFilePath: Types.
|
|
217
|
+
indexFilePath: Types.FilePath;
|
|
164
218
|
/**
|
|
165
219
|
* Path to the file containing the data decoder
|
|
166
220
|
*/
|
|
167
|
-
fullDecoderFilePath: Types.
|
|
221
|
+
fullDecoderFilePath: Types.FilePath;
|
|
168
222
|
/**
|
|
169
223
|
* Name of the data decoder function
|
|
170
224
|
*/
|
|
@@ -189,7 +243,7 @@ export type SchemaMetaData = {
|
|
|
189
243
|
/**
|
|
190
244
|
* Path to the file containing the exporter class.
|
|
191
245
|
*/
|
|
192
|
-
filePath: Types.
|
|
246
|
+
filePath: Types.FilePath;
|
|
193
247
|
/**
|
|
194
248
|
* The name of the exporter class.
|
|
195
249
|
*/
|
|
@@ -199,7 +253,7 @@ export type SchemaMetaData = {
|
|
|
199
253
|
/**
|
|
200
254
|
* Path to the file containing the export service class.
|
|
201
255
|
*/
|
|
202
|
-
filePath: Types.
|
|
256
|
+
filePath: Types.FilePath;
|
|
203
257
|
/**
|
|
204
258
|
* The name of the export service class.
|
|
205
259
|
*/
|
|
@@ -209,7 +263,7 @@ export type SchemaMetaData = {
|
|
|
209
263
|
/**
|
|
210
264
|
* Path to the file containing the import service class.
|
|
211
265
|
*/
|
|
212
|
-
filePath: Types.
|
|
266
|
+
filePath: Types.FilePath;
|
|
213
267
|
/**
|
|
214
268
|
* The name of the import service class.
|
|
215
269
|
*/
|
|
@@ -231,7 +285,7 @@ export type SchemaMetaData = {
|
|
|
231
285
|
/**
|
|
232
286
|
* Path to the file containing the import function.
|
|
233
287
|
*/
|
|
234
|
-
filePath: Types.
|
|
288
|
+
filePath: Types.FilePath;
|
|
235
289
|
/**
|
|
236
290
|
* Name of the function that convert import data to BulkMutations.
|
|
237
291
|
*/
|
|
@@ -252,7 +306,7 @@ export type SchemaMetaData = {
|
|
|
252
306
|
/**
|
|
253
307
|
* Path to the types definition.
|
|
254
308
|
*/
|
|
255
|
-
filePath: Types.
|
|
309
|
+
filePath: Types.FilePath;
|
|
256
310
|
/**
|
|
257
311
|
* The name of the type that represents the delta of all models.
|
|
258
312
|
*/
|
|
@@ -412,15 +466,15 @@ export type SchemaMetaData = {
|
|
|
412
466
|
/**
|
|
413
467
|
* Path that may be used to import from the business logic module.
|
|
414
468
|
*/
|
|
415
|
-
importPath: Types.
|
|
469
|
+
importPath: Types.BackendModulePath;
|
|
416
470
|
/**
|
|
417
471
|
* Path to the file containing the business logic index.
|
|
418
472
|
*/
|
|
419
|
-
indexFilePath: Types.
|
|
473
|
+
indexFilePath: Types.FilePath;
|
|
420
474
|
/**
|
|
421
475
|
* Path to the file containing the business logic module definition.
|
|
422
476
|
*/
|
|
423
|
-
moduleFilePath: Types.
|
|
477
|
+
moduleFilePath: Types.FilePath;
|
|
424
478
|
/**
|
|
425
479
|
* Settings for the view sub-module
|
|
426
480
|
*/
|
|
@@ -432,15 +486,15 @@ export type SchemaMetaData = {
|
|
|
432
486
|
/**
|
|
433
487
|
* Path that may be used to import from the view module.
|
|
434
488
|
*/
|
|
435
|
-
importPath: Types.
|
|
489
|
+
importPath: Types.BackendModulePath;
|
|
436
490
|
/**
|
|
437
491
|
* Path to the file containing the view index.
|
|
438
492
|
*/
|
|
439
|
-
indexFilePath: Types.
|
|
493
|
+
indexFilePath: Types.FilePath;
|
|
440
494
|
/**
|
|
441
495
|
* Path to the file containing the view module definition.
|
|
442
496
|
*/
|
|
443
|
-
moduleFilePath: Types.
|
|
497
|
+
moduleFilePath: Types.FilePath;
|
|
444
498
|
/**
|
|
445
499
|
* The name of the central view service class, containing all model view services.
|
|
446
500
|
*/
|
|
@@ -448,7 +502,7 @@ export type SchemaMetaData = {
|
|
|
448
502
|
/**
|
|
449
503
|
* Path to the file containing the view service class definition.
|
|
450
504
|
*/
|
|
451
|
-
serviceFilePath: Types.
|
|
505
|
+
serviceFilePath: Types.FilePath;
|
|
452
506
|
};
|
|
453
507
|
/**
|
|
454
508
|
* Settings for the update sub-module
|
|
@@ -461,15 +515,15 @@ export type SchemaMetaData = {
|
|
|
461
515
|
/**
|
|
462
516
|
* Path that may be used to import from the update module.
|
|
463
517
|
*/
|
|
464
|
-
importPath: Types.
|
|
518
|
+
importPath: Types.BackendModulePath;
|
|
465
519
|
/**
|
|
466
520
|
* Path to the file containing the update index.
|
|
467
521
|
*/
|
|
468
|
-
indexFilePath: Types.
|
|
522
|
+
indexFilePath: Types.FilePath;
|
|
469
523
|
/**
|
|
470
524
|
* Path to the file containing the update module definition.
|
|
471
525
|
*/
|
|
472
|
-
moduleFilePath: Types.
|
|
526
|
+
moduleFilePath: Types.FilePath;
|
|
473
527
|
/**
|
|
474
528
|
* The name of the central update service class, containing all model update services.
|
|
475
529
|
*/
|
|
@@ -477,26 +531,26 @@ export type SchemaMetaData = {
|
|
|
477
531
|
/**
|
|
478
532
|
* Path to the file containing the update service class definition.
|
|
479
533
|
*/
|
|
480
|
-
serviceFilePath: Types.
|
|
534
|
+
serviceFilePath: Types.FilePath;
|
|
481
535
|
/**
|
|
482
536
|
* Path to the file containing the overall action types
|
|
483
537
|
*/
|
|
484
|
-
actionTypesFilePath: Types.
|
|
538
|
+
actionTypesFilePath: Types.FilePath;
|
|
485
539
|
};
|
|
486
540
|
};
|
|
487
541
|
seedData: {
|
|
488
542
|
/**
|
|
489
543
|
* Path that may be used in the import statement.
|
|
490
544
|
*/
|
|
491
|
-
importPath: Types.
|
|
545
|
+
importPath: Types.BackendModulePath;
|
|
492
546
|
/**
|
|
493
547
|
* Location of the initial seed data migration
|
|
494
548
|
*/
|
|
495
|
-
initialMigrationFilePath: Types.
|
|
549
|
+
initialMigrationFilePath: Types.FilePath;
|
|
496
550
|
/**
|
|
497
551
|
* Path to seed Excel template file.
|
|
498
552
|
*/
|
|
499
|
-
templateExcelFilePath: Types.
|
|
553
|
+
templateExcelFilePath: Types.FilePath;
|
|
500
554
|
};
|
|
501
555
|
seed: {
|
|
502
556
|
/**
|
|
@@ -506,27 +560,27 @@ export type SchemaMetaData = {
|
|
|
506
560
|
/**
|
|
507
561
|
* Path that may be used in the import statement.
|
|
508
562
|
*/
|
|
509
|
-
importPath: Types.
|
|
563
|
+
importPath: Types.BackendModulePath;
|
|
510
564
|
};
|
|
511
565
|
trpc: {
|
|
512
566
|
/**
|
|
513
567
|
* Path to the file that contains the trpc routes object.
|
|
514
568
|
*/
|
|
515
|
-
routesFilePath: Types.
|
|
569
|
+
routesFilePath: Types.FilePath;
|
|
516
570
|
/**
|
|
517
571
|
* Path that may be used to import the trpc routes object.
|
|
518
572
|
*/
|
|
519
|
-
importPath: Types.
|
|
573
|
+
importPath: Types.BackendModulePath;
|
|
520
574
|
};
|
|
521
575
|
types: {
|
|
522
576
|
/**
|
|
523
577
|
* Path to the index file for the types package.
|
|
524
578
|
*/
|
|
525
|
-
indexFilePath: Types.
|
|
579
|
+
indexFilePath: Types.FilePath;
|
|
526
580
|
/**
|
|
527
581
|
* Path that may be used to import the type definitions package.
|
|
528
582
|
*/
|
|
529
|
-
importPath: Types.
|
|
583
|
+
importPath: Types.BackendModulePath;
|
|
530
584
|
/**
|
|
531
585
|
* Path and type names for the Data Transfer Objects (DTOs).
|
|
532
586
|
*/
|
|
@@ -534,7 +588,7 @@ export type SchemaMetaData = {
|
|
|
534
588
|
/**
|
|
535
589
|
* Path to the file containing DTO type definitions.
|
|
536
590
|
*/
|
|
537
|
-
path: Types.
|
|
591
|
+
path: Types.FilePath;
|
|
538
592
|
/**
|
|
539
593
|
* Type for generic models
|
|
540
594
|
*/
|
|
@@ -557,10 +611,33 @@ export type SchemaMetaData = {
|
|
|
557
611
|
upsert: Types.TypeName;
|
|
558
612
|
};
|
|
559
613
|
};
|
|
614
|
+
/**
|
|
615
|
+
* Meta data for the e2e generators.
|
|
616
|
+
*/
|
|
617
|
+
e2e: {
|
|
618
|
+
dataMocker: {
|
|
619
|
+
/**
|
|
620
|
+
* Path to the file containing data mocker class definitions.
|
|
621
|
+
*/
|
|
622
|
+
filePath: Types.FilePath;
|
|
623
|
+
/**
|
|
624
|
+
* Path to the file containing data mocker class definitions.
|
|
625
|
+
*/
|
|
626
|
+
stubIndexFilePath: Types.FilePath;
|
|
627
|
+
/**
|
|
628
|
+
* Path that may be used to import the data mocker stubs.
|
|
629
|
+
*/
|
|
630
|
+
stubImportPath: Types.FilePath;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* Path to the file containing component selectors for e2e tests.
|
|
634
|
+
*/
|
|
635
|
+
selectorsFilePath: Types.FilePath;
|
|
636
|
+
};
|
|
560
637
|
/**
|
|
561
638
|
* Path to the directory containing migrations.
|
|
562
639
|
*/
|
|
563
|
-
migrationsPath: Types.
|
|
640
|
+
migrationsPath: Types.FilePath;
|
|
564
641
|
/**
|
|
565
642
|
* The schema configuration for reference.
|
|
566
643
|
*/
|
|
@@ -640,7 +717,7 @@ export type ModelMetaData = {
|
|
|
640
717
|
/**
|
|
641
718
|
* Path that may be used to import definitions of this model.
|
|
642
719
|
*/
|
|
643
|
-
importPath: Types.
|
|
720
|
+
importPath: Types.BackendModulePath;
|
|
644
721
|
/**
|
|
645
722
|
* The name of the MockData's property that contains the mock data for this model. (e.g. aggregations)
|
|
646
723
|
*/
|
|
@@ -648,11 +725,7 @@ export type ModelMetaData = {
|
|
|
648
725
|
/**
|
|
649
726
|
* The path to the file containing stub definitions of this model.
|
|
650
727
|
*/
|
|
651
|
-
stubFilePath: Types.
|
|
652
|
-
/**
|
|
653
|
-
* The path to the file containing stub definitions for the data mocker of this model.
|
|
654
|
-
*/
|
|
655
|
-
dataMockerStubFilePath: Types.Path;
|
|
728
|
+
stubFilePath: Types.FilePath;
|
|
656
729
|
/**
|
|
657
730
|
* The name of the TypeScript constant that contains default values for all fields.
|
|
658
731
|
*/
|
|
@@ -677,7 +750,7 @@ export type ModelMetaData = {
|
|
|
677
750
|
/**
|
|
678
751
|
* Path to the file containing the repository definition.
|
|
679
752
|
*/
|
|
680
|
-
filePath: Types.
|
|
753
|
+
filePath: Types.FilePath;
|
|
681
754
|
/**
|
|
682
755
|
* The name of the class for the repository definition of this model (e.g. AggregationRepository).
|
|
683
756
|
*/
|
|
@@ -699,13 +772,19 @@ export type ModelMetaData = {
|
|
|
699
772
|
/**
|
|
700
773
|
* Path to the file containing the mock repository definition.
|
|
701
774
|
*/
|
|
702
|
-
filePath: Types.
|
|
775
|
+
filePath: Types.FilePath;
|
|
703
776
|
/**
|
|
704
777
|
* The name of the class for the in-memory mock repository definition of this model (e.g. MockAggregationRepository).
|
|
705
778
|
*/
|
|
706
779
|
className: Types.ClassName;
|
|
707
780
|
};
|
|
708
781
|
};
|
|
782
|
+
e2e: {
|
|
783
|
+
/**
|
|
784
|
+
* The path to the file containing stub definitions for the data mocker of this model.
|
|
785
|
+
*/
|
|
786
|
+
dataMockerStubFilePath: Types.FilePath;
|
|
787
|
+
};
|
|
709
788
|
/**
|
|
710
789
|
* Properties provided by the `importExport` generators
|
|
711
790
|
*/
|
|
@@ -745,7 +824,7 @@ export type ModelMetaData = {
|
|
|
745
824
|
/**
|
|
746
825
|
* Path to the file containing the model's Excel decoders.
|
|
747
826
|
*/
|
|
748
|
-
filePath: Types.
|
|
827
|
+
filePath: Types.FilePath;
|
|
749
828
|
/**
|
|
750
829
|
* Name of the type that represents the model in Excel import/export, e.g. `Aggregation_EncodedExcelData`.
|
|
751
830
|
*/
|
|
@@ -781,7 +860,7 @@ export type ModelMetaData = {
|
|
|
781
860
|
/**
|
|
782
861
|
* Path that may be used to import definitions of this model.
|
|
783
862
|
*/
|
|
784
|
-
importPath: Types.
|
|
863
|
+
importPath: Types.BackendModulePath;
|
|
785
864
|
/**
|
|
786
865
|
* The definitions for the view service of a model
|
|
787
866
|
*/
|
|
@@ -801,7 +880,7 @@ export type ModelMetaData = {
|
|
|
801
880
|
/**
|
|
802
881
|
* Path to the file containing the view service.
|
|
803
882
|
*/
|
|
804
|
-
serviceFilePath: Types.
|
|
883
|
+
serviceFilePath: Types.FilePath;
|
|
805
884
|
};
|
|
806
885
|
/**
|
|
807
886
|
* The definitions for the update service of a model
|
|
@@ -822,7 +901,7 @@ export type ModelMetaData = {
|
|
|
822
901
|
/**
|
|
823
902
|
* Path to the file containing the update service.
|
|
824
903
|
*/
|
|
825
|
-
serviceFilePath: Types.
|
|
904
|
+
serviceFilePath: Types.FilePath;
|
|
826
905
|
/**
|
|
827
906
|
* The name of the model used as a discriminant for the action execution. (e.g. `aggregation`)
|
|
828
907
|
*/
|
|
@@ -889,11 +968,11 @@ export type ModelMetaData = {
|
|
|
889
968
|
/**
|
|
890
969
|
* Path to the file containing the seed data for this model (e.g. `aggregations.ts`).
|
|
891
970
|
*/
|
|
892
|
-
filePath: Types.
|
|
971
|
+
filePath: Types.FilePath;
|
|
893
972
|
/**
|
|
894
973
|
* The file or package name that contains the seed data for this model (e.g. `@d2i/aggregations`).
|
|
895
974
|
*/
|
|
896
|
-
importPath: Types.
|
|
975
|
+
importPath: Types.BackendModulePath;
|
|
897
976
|
};
|
|
898
977
|
/**
|
|
899
978
|
* Properties provided by the `react` generators.
|
|
@@ -906,7 +985,7 @@ export type ModelMetaData = {
|
|
|
906
985
|
/**
|
|
907
986
|
* The path to the folder that contains React components for this model.
|
|
908
987
|
*/
|
|
909
|
-
folderPath: Types.
|
|
988
|
+
folderPath: Types.FilePath;
|
|
910
989
|
context: {
|
|
911
990
|
/**
|
|
912
991
|
* Name of the function that should be used as React hook (e.g. `useAggregationContext`).
|
|
@@ -952,14 +1031,10 @@ export type ModelMetaData = {
|
|
|
952
1031
|
* Properties provided by the `trpc` generators.
|
|
953
1032
|
*/
|
|
954
1033
|
trpc: {
|
|
955
|
-
/**
|
|
956
|
-
* The path to the file that contains the router definition for this model.
|
|
957
|
-
*/
|
|
958
|
-
importPath: Types.Path;
|
|
959
1034
|
/**
|
|
960
1035
|
* The absolute path of the file that contains the router definition for this model.
|
|
961
1036
|
*/
|
|
962
|
-
routerFilePath: Types.
|
|
1037
|
+
routerFilePath: Types.FilePath;
|
|
963
1038
|
/**
|
|
964
1039
|
* The name of the router that should be used for this model (e.g. `aggregation`).
|
|
965
1040
|
*/
|
|
@@ -1012,11 +1087,11 @@ export type ModelMetaData = {
|
|
|
1012
1087
|
/**
|
|
1013
1088
|
* The absolute path of the file that contains the type definition for this model.
|
|
1014
1089
|
*/
|
|
1015
|
-
filePath: Types.
|
|
1090
|
+
filePath: Types.FilePath;
|
|
1016
1091
|
/**
|
|
1017
1092
|
* Path that may be used to import the types of this model.
|
|
1018
1093
|
*/
|
|
1019
|
-
importPath: Types.
|
|
1094
|
+
importPath: Types.BackendModulePath;
|
|
1020
1095
|
/**
|
|
1021
1096
|
* The name of the type that represents a branded ID, e.g. `AggregationId`.
|
|
1022
1097
|
*/
|
|
@@ -1124,11 +1199,11 @@ export type EnumMetaData = {
|
|
|
1124
1199
|
/**
|
|
1125
1200
|
* The path to the folder that contains React components for this model.
|
|
1126
1201
|
*/
|
|
1127
|
-
folderPath: Types.
|
|
1202
|
+
folderPath: Types.FilePath;
|
|
1128
1203
|
/**
|
|
1129
1204
|
* Relative path to the file or a package that contains the React components for this model.
|
|
1130
1205
|
*/
|
|
1131
|
-
importPath: Types.
|
|
1206
|
+
importPath: Types.BackendModulePath;
|
|
1132
1207
|
selectInputName: Types.VariableName;
|
|
1133
1208
|
selectFieldName: Types.VariableName;
|
|
1134
1209
|
switcherInputName: Types.VariableName;
|
|
@@ -1148,11 +1223,11 @@ export type EnumMetaData = {
|
|
|
1148
1223
|
/**
|
|
1149
1224
|
* Relative path to the file that contains the enum's types, e.g. `./aggregation.type`.
|
|
1150
1225
|
*/
|
|
1151
|
-
filePath: Types.
|
|
1226
|
+
filePath: Types.FilePath;
|
|
1152
1227
|
/**
|
|
1153
1228
|
* Path that should be used to import enum type definitions.
|
|
1154
1229
|
*/
|
|
1155
|
-
importPath: Types.
|
|
1230
|
+
importPath: Types.BackendModulePath;
|
|
1156
1231
|
/**
|
|
1157
1232
|
* Name of the enum as it appears in the source file (e.g. in Prisma schema).
|
|
1158
1233
|
*/
|