@loopback/cli 4.0.0-alpha.7 → 4.0.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.
Files changed (159) hide show
  1. package/.yo-rc.json +1697 -0
  2. package/{generators/project/templates/LICENSE → LICENSE} +2 -1
  3. package/README.md +44 -43
  4. package/bin/cli-main.js +61 -0
  5. package/generators/app/index.js +109 -15
  6. package/generators/app/templates/.dockerignore +5 -0
  7. package/generators/app/templates/Dockerfile +28 -0
  8. package/generators/app/templates/README.md.ejs +130 -0
  9. package/generators/app/templates/public/index.html.ejs +88 -0
  10. package/generators/app/templates/{test → src/__tests__}/README.md +0 -1
  11. package/generators/app/templates/src/__tests__/acceptance/home-page.acceptance.ts.ejs +31 -0
  12. package/generators/app/templates/src/__tests__/acceptance/ping.controller.acceptance.ts.ejs +21 -0
  13. package/generators/app/templates/src/__tests__/acceptance/test-helper.ts.ejs +32 -0
  14. package/generators/app/templates/src/application.ts.ejs +70 -0
  15. package/generators/app/templates/src/controllers/README.md +6 -0
  16. package/generators/app/templates/src/controllers/index.ts.ejs +1 -0
  17. package/generators/app/templates/src/controllers/ping.controller.ts.ejs +55 -0
  18. package/generators/app/templates/src/datasources/README.md +3 -0
  19. package/generators/app/templates/src/index.ts.ejs +39 -0
  20. package/generators/app/templates/src/migrate.ts.ejs +20 -0
  21. package/generators/app/templates/src/models/README.md +3 -0
  22. package/generators/app/templates/src/openapi-spec.ts.ejs +23 -0
  23. package/generators/app/templates/src/sequence.ts.ejs +3 -0
  24. package/generators/controller/index.js +279 -0
  25. package/generators/controller/templates/src/controllers/controller-rest-template.ts.ejs +150 -0
  26. package/generators/controller/templates/src/controllers/controller-template.ts.ejs +8 -0
  27. package/generators/copyright/fs.js +46 -0
  28. package/generators/copyright/git.js +78 -0
  29. package/generators/copyright/header.js +306 -0
  30. package/generators/copyright/index.js +230 -0
  31. package/generators/copyright/license.js +105 -0
  32. package/generators/datasource/index.js +341 -0
  33. package/generators/datasource/templates/datasource.ts.ejs +22 -0
  34. package/generators/discover/import-discovered-model.js +70 -0
  35. package/generators/discover/index.js +349 -0
  36. package/generators/example/downloader.js +16 -0
  37. package/generators/example/index.js +176 -0
  38. package/generators/extension/index.js +34 -5
  39. package/generators/extension/templates/README.md.ejs +32 -0
  40. package/generators/extension/templates/{test → src/__tests__}/acceptance/README.md +0 -0
  41. package/generators/extension/templates/{test → src/__tests__}/integration/README.md +0 -0
  42. package/generators/extension/templates/{test → src/__tests__}/unit/README.md +0 -0
  43. package/generators/extension/templates/src/component.ts.ejs +22 -0
  44. package/generators/extension/templates/src/controllers/README.md +3 -2
  45. package/generators/extension/templates/src/decorators/README.md +10 -4
  46. package/generators/extension/templates/src/index.ts.ejs +3 -0
  47. package/generators/extension/templates/src/keys.ts.ejs +11 -0
  48. package/generators/extension/templates/src/mixins/README.md +77 -21
  49. package/generators/extension/templates/src/providers/README.md +51 -25
  50. package/generators/extension/templates/src/repositories/README.md +1 -1
  51. package/generators/extension/templates/src/types.ts.ejs +15 -0
  52. package/generators/import-lb3-models/index.js +197 -0
  53. package/generators/import-lb3-models/lb3app-loader.js +31 -0
  54. package/generators/import-lb3-models/migrate-model.js +249 -0
  55. package/generators/import-lb3-models/model-names.js +32 -0
  56. package/generators/interceptor/index.js +178 -0
  57. package/generators/interceptor/templates/interceptor-template.ts.ejs +62 -0
  58. package/generators/model/index.js +536 -0
  59. package/generators/model/property-definition.js +85 -0
  60. package/generators/model/templates/model.ts.ejs +42 -0
  61. package/generators/observer/index.js +132 -0
  62. package/generators/observer/templates/observer-template.ts.ejs +40 -0
  63. package/generators/openapi/README.md +211 -0
  64. package/generators/openapi/index.js +535 -0
  65. package/generators/openapi/schema-helper.js +447 -0
  66. package/generators/openapi/spec-helper.js +484 -0
  67. package/generators/openapi/spec-loader.js +75 -0
  68. package/generators/openapi/templates/src/controllers/controller-template.ts.ejs +43 -0
  69. package/generators/openapi/templates/src/datasources/datasource.ts.ejs +42 -0
  70. package/generators/openapi/templates/src/models/model-template.ts.ejs +71 -0
  71. package/generators/openapi/templates/src/models/type-template.ts.ejs +13 -0
  72. package/generators/openapi/templates/src/services/service-proxy-template.ts.ejs +55 -0
  73. package/generators/openapi/utils.js +322 -0
  74. package/generators/project/templates/.eslintignore +4 -0
  75. package/generators/project/templates/.eslintrc.js.ejs +3 -0
  76. package/generators/project/templates/.mocharc.json +5 -0
  77. package/generators/project/templates/.prettierignore +0 -2
  78. package/generators/project/templates/.prettierrc +2 -1
  79. package/generators/project/templates/.vscode/launch.json +38 -0
  80. package/generators/project/templates/.vscode/settings.json +32 -0
  81. package/generators/project/templates/.vscode/tasks.json +29 -0
  82. package/generators/project/templates/DEVELOPING.md +36 -0
  83. package/generators/project/templates/_.gitignore +3 -5
  84. package/generators/project/templates/package.json.ejs +175 -0
  85. package/generators/project/templates/package.plain.json.ejs +176 -0
  86. package/generators/project/templates/tsconfig.json.ejs +39 -0
  87. package/generators/relation/base-relation.generator.js +220 -0
  88. package/generators/relation/belongs-to-relation.generator.js +196 -0
  89. package/generators/relation/has-many-relation.generator.js +200 -0
  90. package/generators/relation/has-many-through-relation.generator.js +331 -0
  91. package/generators/relation/has-one-relation.generator.js +200 -0
  92. package/generators/relation/index.js +795 -0
  93. package/generators/relation/references-many-relation.generator.js +142 -0
  94. package/generators/relation/templates/controller-relation-template-belongs-to.ts.ejs +38 -0
  95. package/generators/relation/templates/controller-relation-template-has-many-through.ts.ejs +110 -0
  96. package/generators/relation/templates/controller-relation-template-has-many.ts.ejs +110 -0
  97. package/generators/relation/templates/controller-relation-template-has-one.ts.ejs +110 -0
  98. package/generators/relation/utils.generator.js +260 -0
  99. package/generators/repository/index.js +576 -0
  100. package/generators/repository/templates/src/repositories/repository-crud-default-template.ts.ejs +21 -0
  101. package/generators/repository/templates/src/repositories/repository-kv-template.ts.ejs +19 -0
  102. package/generators/rest-crud/crud-rest-component.js +63 -0
  103. package/generators/rest-crud/index.js +401 -0
  104. package/generators/rest-crud/templates/src/model-endpoints/model.rest-config-template.ts.ejs +10 -0
  105. package/generators/service/index.js +351 -0
  106. package/generators/service/templates/local-service-class-template.ts.ejs +10 -0
  107. package/generators/service/templates/local-service-provider-template.ts.ejs +19 -0
  108. package/generators/service/templates/remote-service-proxy-template.ts.ejs +21 -0
  109. package/generators/update/index.js +55 -0
  110. package/intl/cs/messages.json +204 -0
  111. package/intl/de/messages.json +204 -0
  112. package/intl/en/messages.json +204 -0
  113. package/intl/es/messages.json +204 -0
  114. package/intl/fr/messages.json +204 -0
  115. package/intl/it/messages.json +204 -0
  116. package/intl/ja/messages.json +204 -0
  117. package/intl/ko/messages.json +204 -0
  118. package/intl/nl/messages.json +204 -0
  119. package/intl/pl/messages.json +204 -0
  120. package/intl/pt/messages.json +204 -0
  121. package/intl/ru/messages.json +204 -0
  122. package/intl/tr/messages.json +204 -0
  123. package/intl/zh-Hans/messages.json +204 -0
  124. package/intl/zh-Hant/messages.json +204 -0
  125. package/lib/artifact-generator.js +189 -0
  126. package/lib/ast-helper.js +214 -0
  127. package/lib/base-generator.js +509 -0
  128. package/lib/cli.js +233 -0
  129. package/lib/connectors.json +894 -0
  130. package/lib/debug.js +16 -0
  131. package/lib/globalize.js +12 -0
  132. package/lib/model-discoverer.js +118 -0
  133. package/lib/project-generator.js +154 -57
  134. package/lib/tab-completion.js +127 -0
  135. package/lib/update-index.js +44 -0
  136. package/lib/utils.js +746 -22
  137. package/lib/version-helper.js +299 -0
  138. package/package.json +183 -32
  139. package/CHANGELOG.md +0 -64
  140. package/bin/cli.js +0 -65
  141. package/generators/app/templates/index.js +0 -14
  142. package/generators/app/templates/src/application.ts +0 -27
  143. package/generators/app/templates/src/controllers/ping-controller.ts +0 -25
  144. package/generators/app/templates/src/index.ts +0 -25
  145. package/generators/app/templates/test/ping-controller.test.ts +0 -46
  146. package/generators/extension/templates/index.js +0 -8
  147. package/generators/extension/templates/src/component.ts +0 -14
  148. package/generators/extension/templates/src/index.ts +0 -6
  149. package/generators/project/templates/.npmrc +0 -1
  150. package/generators/project/templates/.yo-rc.json +0 -1
  151. package/generators/project/templates/README.md +0 -4
  152. package/generators/project/templates/index.d.ts +0 -6
  153. package/generators/project/templates/index.ts +0 -11
  154. package/generators/project/templates/package.json +0 -79
  155. package/generators/project/templates/package.plain.json +0 -82
  156. package/generators/project/templates/test/mocha.opts +0 -1
  157. package/generators/project/templates/tsconfig.json +0 -29
  158. package/generators/project/templates/tslint.build.json +0 -17
  159. package/generators/project/templates/tslint.json +0 -33
package/.yo-rc.json ADDED
@@ -0,0 +1,1697 @@
1
+ {
2
+ "commands": {
3
+ "base": {
4
+ "help": {
5
+ "name": "help",
6
+ "type": "Boolean",
7
+ "alias": "h",
8
+ "description": "Print the generator's options and usage"
9
+ },
10
+ "skip-cache": {
11
+ "name": "skip-cache",
12
+ "type": "Boolean",
13
+ "description": "Do not remember prompt answers",
14
+ "default": false
15
+ },
16
+ "skip-install": {
17
+ "name": "skip-install",
18
+ "type": "Boolean",
19
+ "description": "Do not automatically install dependencies",
20
+ "default": false
21
+ },
22
+ "force-install": {
23
+ "name": "force-install",
24
+ "type": "Boolean",
25
+ "description": "Fail on install dependencies error",
26
+ "default": false
27
+ },
28
+ "ask-answered": {
29
+ "type": "Boolean",
30
+ "description": "Show prompts for already configured options",
31
+ "default": false,
32
+ "name": "ask-answered",
33
+ "hide": false
34
+ }
35
+ },
36
+ "app": {
37
+ "options": {
38
+ "help": {
39
+ "name": "help",
40
+ "type": "Boolean",
41
+ "alias": "h",
42
+ "description": "Print the generator's options and usage"
43
+ },
44
+ "skip-cache": {
45
+ "name": "skip-cache",
46
+ "type": "Boolean",
47
+ "description": "Do not remember prompt answers",
48
+ "default": false
49
+ },
50
+ "skip-install": {
51
+ "name": "skip-install",
52
+ "type": "Boolean",
53
+ "description": "Do not automatically install dependencies",
54
+ "default": false
55
+ },
56
+ "force-install": {
57
+ "name": "force-install",
58
+ "type": "Boolean",
59
+ "description": "Fail on install dependencies error",
60
+ "default": false
61
+ },
62
+ "ask-answered": {
63
+ "type": "Boolean",
64
+ "description": "Show prompts for already configured options",
65
+ "default": false,
66
+ "name": "ask-answered",
67
+ "hide": false
68
+ },
69
+ "applicationName": {
70
+ "type": "String",
71
+ "description": "Application class name",
72
+ "name": "applicationName",
73
+ "hide": false
74
+ },
75
+ "docker": {
76
+ "type": "Boolean",
77
+ "description": "Include Dockerfile and .dockerignore",
78
+ "name": "docker",
79
+ "hide": false
80
+ },
81
+ "repositories": {
82
+ "type": "Boolean",
83
+ "description": "Include repository imports and RepositoryMixin",
84
+ "name": "repositories",
85
+ "hide": false
86
+ },
87
+ "services": {
88
+ "type": "Boolean",
89
+ "description": "Include service-proxy imports and ServiceMixin",
90
+ "name": "services",
91
+ "hide": false
92
+ },
93
+ "apiconnect": {
94
+ "type": "Boolean",
95
+ "description": "Include ApiConnectComponent",
96
+ "name": "apiconnect",
97
+ "hide": false
98
+ },
99
+ "description": {
100
+ "type": "String",
101
+ "description": "Description for the application",
102
+ "name": "description",
103
+ "hide": false
104
+ },
105
+ "outdir": {
106
+ "type": "String",
107
+ "description": "Project root directory for the application",
108
+ "name": "outdir",
109
+ "hide": false
110
+ },
111
+ "eslint": {
112
+ "type": "Boolean",
113
+ "description": "Enable eslint",
114
+ "name": "eslint",
115
+ "hide": false
116
+ },
117
+ "prettier": {
118
+ "type": "Boolean",
119
+ "description": "Enable prettier",
120
+ "name": "prettier",
121
+ "hide": false
122
+ },
123
+ "mocha": {
124
+ "type": "Boolean",
125
+ "description": "Enable mocha",
126
+ "name": "mocha",
127
+ "hide": false
128
+ },
129
+ "loopbackBuild": {
130
+ "type": "Boolean",
131
+ "description": "Use @loopback/build",
132
+ "name": "loopbackBuild",
133
+ "hide": false
134
+ },
135
+ "vscode": {
136
+ "type": "Boolean",
137
+ "description": "Use preconfigured VSCode settings",
138
+ "name": "vscode",
139
+ "hide": false
140
+ },
141
+ "private": {
142
+ "type": "Boolean",
143
+ "description": "Mark the project private (excluded from npm publish)",
144
+ "name": "private",
145
+ "hide": false
146
+ },
147
+ "config": {
148
+ "type": "String",
149
+ "alias": "c",
150
+ "description": "JSON file name or value to configure options",
151
+ "name": "config",
152
+ "hide": false
153
+ },
154
+ "yes": {
155
+ "type": "Boolean",
156
+ "alias": "y",
157
+ "description": "Skip all confirmation prompts with default or provided value",
158
+ "name": "yes",
159
+ "hide": false
160
+ },
161
+ "format": {
162
+ "type": "Boolean",
163
+ "description": "Format generated code using npm run lint:fix",
164
+ "name": "format",
165
+ "hide": false
166
+ },
167
+ "packageManager": {
168
+ "type": "String",
169
+ "description": "Change the default package manager",
170
+ "alias": "pm",
171
+ "name": "packageManager",
172
+ "hide": false
173
+ }
174
+ },
175
+ "arguments": [
176
+ {
177
+ "type": "String",
178
+ "required": false,
179
+ "description": "Project name for the application",
180
+ "name": "name"
181
+ }
182
+ ],
183
+ "name": "app"
184
+ },
185
+ "extension": {
186
+ "options": {
187
+ "help": {
188
+ "name": "help",
189
+ "type": "Boolean",
190
+ "alias": "h",
191
+ "description": "Print the generator's options and usage"
192
+ },
193
+ "skip-cache": {
194
+ "name": "skip-cache",
195
+ "type": "Boolean",
196
+ "description": "Do not remember prompt answers",
197
+ "default": false
198
+ },
199
+ "skip-install": {
200
+ "name": "skip-install",
201
+ "type": "Boolean",
202
+ "description": "Do not automatically install dependencies",
203
+ "default": false
204
+ },
205
+ "force-install": {
206
+ "name": "force-install",
207
+ "type": "Boolean",
208
+ "description": "Fail on install dependencies error",
209
+ "default": false
210
+ },
211
+ "ask-answered": {
212
+ "type": "Boolean",
213
+ "description": "Show prompts for already configured options",
214
+ "default": false,
215
+ "name": "ask-answered",
216
+ "hide": false
217
+ },
218
+ "componentName": {
219
+ "type": "String",
220
+ "description": "Component name",
221
+ "name": "componentName",
222
+ "hide": false
223
+ },
224
+ "description": {
225
+ "type": "String",
226
+ "description": "Description for the extension",
227
+ "name": "description",
228
+ "hide": false
229
+ },
230
+ "outdir": {
231
+ "type": "String",
232
+ "description": "Project root directory for the extension",
233
+ "name": "outdir",
234
+ "hide": false
235
+ },
236
+ "eslint": {
237
+ "type": "Boolean",
238
+ "description": "Enable eslint",
239
+ "name": "eslint",
240
+ "hide": false
241
+ },
242
+ "prettier": {
243
+ "type": "Boolean",
244
+ "description": "Enable prettier",
245
+ "name": "prettier",
246
+ "hide": false
247
+ },
248
+ "mocha": {
249
+ "type": "Boolean",
250
+ "description": "Enable mocha",
251
+ "name": "mocha",
252
+ "hide": false
253
+ },
254
+ "loopbackBuild": {
255
+ "type": "Boolean",
256
+ "description": "Use @loopback/build",
257
+ "name": "loopbackBuild",
258
+ "hide": false
259
+ },
260
+ "vscode": {
261
+ "type": "Boolean",
262
+ "description": "Use preconfigured VSCode settings",
263
+ "name": "vscode",
264
+ "hide": false
265
+ },
266
+ "private": {
267
+ "type": "Boolean",
268
+ "description": "Mark the project private (excluded from npm publish)",
269
+ "name": "private",
270
+ "hide": false
271
+ },
272
+ "config": {
273
+ "type": "String",
274
+ "alias": "c",
275
+ "description": "JSON file name or value to configure options",
276
+ "name": "config",
277
+ "hide": false
278
+ },
279
+ "yes": {
280
+ "type": "Boolean",
281
+ "alias": "y",
282
+ "description": "Skip all confirmation prompts with default or provided value",
283
+ "name": "yes",
284
+ "hide": false
285
+ },
286
+ "format": {
287
+ "type": "Boolean",
288
+ "description": "Format generated code using npm run lint:fix",
289
+ "name": "format",
290
+ "hide": false
291
+ },
292
+ "packageManager": {
293
+ "type": "String",
294
+ "description": "Change the default package manager",
295
+ "alias": "pm",
296
+ "name": "packageManager",
297
+ "hide": false
298
+ }
299
+ },
300
+ "arguments": [
301
+ {
302
+ "type": "String",
303
+ "required": false,
304
+ "description": "Project name for the extension",
305
+ "name": "name"
306
+ }
307
+ ],
308
+ "name": "extension"
309
+ },
310
+ "controller": {
311
+ "options": {
312
+ "help": {
313
+ "name": "help",
314
+ "type": "Boolean",
315
+ "alias": "h",
316
+ "description": "Print the generator's options and usage"
317
+ },
318
+ "skip-cache": {
319
+ "name": "skip-cache",
320
+ "type": "Boolean",
321
+ "description": "Do not remember prompt answers",
322
+ "default": false
323
+ },
324
+ "skip-install": {
325
+ "name": "skip-install",
326
+ "type": "Boolean",
327
+ "description": "Do not automatically install dependencies",
328
+ "default": false
329
+ },
330
+ "force-install": {
331
+ "name": "force-install",
332
+ "type": "Boolean",
333
+ "description": "Fail on install dependencies error",
334
+ "default": false
335
+ },
336
+ "ask-answered": {
337
+ "type": "Boolean",
338
+ "description": "Show prompts for already configured options",
339
+ "default": false,
340
+ "name": "ask-answered",
341
+ "hide": false
342
+ },
343
+ "controllerType": {
344
+ "type": "String",
345
+ "required": false,
346
+ "description": "Type for the controller",
347
+ "name": "controllerType",
348
+ "hide": false
349
+ },
350
+ "config": {
351
+ "type": "String",
352
+ "alias": "c",
353
+ "description": "JSON file name or value to configure options",
354
+ "name": "config",
355
+ "hide": false
356
+ },
357
+ "yes": {
358
+ "type": "Boolean",
359
+ "alias": "y",
360
+ "description": "Skip all confirmation prompts with default or provided value",
361
+ "name": "yes",
362
+ "hide": false
363
+ },
364
+ "format": {
365
+ "type": "Boolean",
366
+ "description": "Format generated code using npm run lint:fix",
367
+ "name": "format",
368
+ "hide": false
369
+ },
370
+ "packageManager": {
371
+ "type": "String",
372
+ "description": "Change the default package manager",
373
+ "alias": "pm",
374
+ "name": "packageManager",
375
+ "hide": false
376
+ }
377
+ },
378
+ "arguments": [
379
+ {
380
+ "type": "String",
381
+ "required": false,
382
+ "description": "Name for the controller",
383
+ "name": "name"
384
+ }
385
+ ],
386
+ "name": "controller"
387
+ },
388
+ "datasource": {
389
+ "options": {
390
+ "help": {
391
+ "name": "help",
392
+ "type": "Boolean",
393
+ "alias": "h",
394
+ "description": "Print the generator's options and usage"
395
+ },
396
+ "skip-cache": {
397
+ "name": "skip-cache",
398
+ "type": "Boolean",
399
+ "description": "Do not remember prompt answers",
400
+ "default": false
401
+ },
402
+ "skip-install": {
403
+ "name": "skip-install",
404
+ "type": "Boolean",
405
+ "description": "Do not automatically install dependencies",
406
+ "default": false
407
+ },
408
+ "force-install": {
409
+ "name": "force-install",
410
+ "type": "Boolean",
411
+ "description": "Fail on install dependencies error",
412
+ "default": false
413
+ },
414
+ "ask-answered": {
415
+ "type": "Boolean",
416
+ "description": "Show prompts for already configured options",
417
+ "default": false,
418
+ "name": "ask-answered",
419
+ "hide": false
420
+ },
421
+ "config": {
422
+ "type": "String",
423
+ "alias": "c",
424
+ "description": "JSON file name or value to configure options",
425
+ "name": "config",
426
+ "hide": false
427
+ },
428
+ "yes": {
429
+ "type": "Boolean",
430
+ "alias": "y",
431
+ "description": "Skip all confirmation prompts with default or provided value",
432
+ "name": "yes",
433
+ "hide": false
434
+ },
435
+ "format": {
436
+ "type": "Boolean",
437
+ "description": "Format generated code using npm run lint:fix",
438
+ "name": "format",
439
+ "hide": false
440
+ },
441
+ "packageManager": {
442
+ "type": "String",
443
+ "description": "Change the default package manager",
444
+ "alias": "pm",
445
+ "name": "packageManager",
446
+ "hide": false
447
+ }
448
+ },
449
+ "arguments": [
450
+ {
451
+ "type": "String",
452
+ "required": false,
453
+ "description": "Name for the datasource",
454
+ "name": "name"
455
+ }
456
+ ],
457
+ "name": "datasource"
458
+ },
459
+ "import-lb3-models": {
460
+ "options": {
461
+ "help": {
462
+ "name": "help",
463
+ "type": "Boolean",
464
+ "alias": "h",
465
+ "description": "Print the generator's options and usage"
466
+ },
467
+ "skip-cache": {
468
+ "name": "skip-cache",
469
+ "type": "Boolean",
470
+ "description": "Do not remember prompt answers",
471
+ "default": false
472
+ },
473
+ "skip-install": {
474
+ "name": "skip-install",
475
+ "type": "Boolean",
476
+ "description": "Do not automatically install dependencies",
477
+ "default": false
478
+ },
479
+ "force-install": {
480
+ "name": "force-install",
481
+ "type": "Boolean",
482
+ "description": "Fail on install dependencies error",
483
+ "default": false
484
+ },
485
+ "ask-answered": {
486
+ "type": "Boolean",
487
+ "description": "Show prompts for already configured options",
488
+ "default": false,
489
+ "name": "ask-answered",
490
+ "hide": false
491
+ },
492
+ "config": {
493
+ "type": "String",
494
+ "alias": "c",
495
+ "description": "JSON file name or value to configure options",
496
+ "name": "config",
497
+ "hide": false
498
+ },
499
+ "yes": {
500
+ "type": "Boolean",
501
+ "alias": "y",
502
+ "description": "Skip all confirmation prompts with default or provided value",
503
+ "name": "yes",
504
+ "hide": false
505
+ },
506
+ "format": {
507
+ "type": "Boolean",
508
+ "description": "Format generated code using npm run lint:fix",
509
+ "name": "format",
510
+ "hide": false
511
+ },
512
+ "packageManager": {
513
+ "type": "String",
514
+ "description": "Change the default package manager",
515
+ "alias": "pm",
516
+ "name": "packageManager",
517
+ "hide": false
518
+ },
519
+ "outDir": {
520
+ "type": "String",
521
+ "description": "Directory where to write the generated source file",
522
+ "default": "src/models",
523
+ "name": "outDir",
524
+ "hide": false
525
+ }
526
+ },
527
+ "arguments": [
528
+ {
529
+ "type": "String",
530
+ "required": true,
531
+ "description": "Path to your LoopBack 3.x application. This can be a project directory (e.g. \"my-lb3-app\") or the server file (e.g. \"my-lb3-app/server/server.js\").",
532
+ "name": "lb3app"
533
+ }
534
+ ],
535
+ "name": "import-lb3-models"
536
+ },
537
+ "model": {
538
+ "options": {
539
+ "help": {
540
+ "name": "help",
541
+ "type": "Boolean",
542
+ "alias": "h",
543
+ "description": "Print the generator's options and usage"
544
+ },
545
+ "skip-cache": {
546
+ "name": "skip-cache",
547
+ "type": "Boolean",
548
+ "description": "Do not remember prompt answers",
549
+ "default": false
550
+ },
551
+ "skip-install": {
552
+ "name": "skip-install",
553
+ "type": "Boolean",
554
+ "description": "Do not automatically install dependencies",
555
+ "default": false
556
+ },
557
+ "force-install": {
558
+ "name": "force-install",
559
+ "type": "Boolean",
560
+ "description": "Fail on install dependencies error",
561
+ "default": false
562
+ },
563
+ "ask-answered": {
564
+ "type": "Boolean",
565
+ "description": "Show prompts for already configured options",
566
+ "default": false,
567
+ "name": "ask-answered",
568
+ "hide": false
569
+ },
570
+ "base": {
571
+ "type": "String",
572
+ "required": false,
573
+ "description": "A valid based model",
574
+ "name": "base",
575
+ "hide": false
576
+ },
577
+ "dataSource": {
578
+ "type": "String",
579
+ "required": false,
580
+ "description": "The name of the dataSource which contains this model and suppots model discovery",
581
+ "name": "dataSource",
582
+ "hide": false
583
+ },
584
+ "table": {
585
+ "type": "String",
586
+ "required": false,
587
+ "description": "If discovering a model from a dataSource, specify the name of its table/view",
588
+ "name": "table",
589
+ "hide": false
590
+ },
591
+ "schema": {
592
+ "type": "String",
593
+ "required": false,
594
+ "description": "If discovering a model from a dataSource, specify the schema which contains it",
595
+ "name": "schema",
596
+ "hide": false
597
+ },
598
+ "config": {
599
+ "type": "String",
600
+ "alias": "c",
601
+ "description": "JSON file name or value to configure options",
602
+ "name": "config",
603
+ "hide": false
604
+ },
605
+ "yes": {
606
+ "type": "Boolean",
607
+ "alias": "y",
608
+ "description": "Skip all confirmation prompts with default or provided value",
609
+ "name": "yes",
610
+ "hide": false
611
+ },
612
+ "format": {
613
+ "type": "Boolean",
614
+ "description": "Format generated code using npm run lint:fix",
615
+ "name": "format",
616
+ "hide": false
617
+ },
618
+ "packageManager": {
619
+ "type": "String",
620
+ "description": "Change the default package manager",
621
+ "alias": "pm",
622
+ "name": "packageManager",
623
+ "hide": false
624
+ }
625
+ },
626
+ "arguments": [
627
+ {
628
+ "type": "String",
629
+ "required": false,
630
+ "description": "Name for the model",
631
+ "name": "name"
632
+ }
633
+ ],
634
+ "name": "model"
635
+ },
636
+ "repository": {
637
+ "options": {
638
+ "help": {
639
+ "name": "help",
640
+ "type": "Boolean",
641
+ "alias": "h",
642
+ "description": "Print the generator's options and usage"
643
+ },
644
+ "skip-cache": {
645
+ "name": "skip-cache",
646
+ "type": "Boolean",
647
+ "description": "Do not remember prompt answers",
648
+ "default": false
649
+ },
650
+ "skip-install": {
651
+ "name": "skip-install",
652
+ "type": "Boolean",
653
+ "description": "Do not automatically install dependencies",
654
+ "default": false
655
+ },
656
+ "force-install": {
657
+ "name": "force-install",
658
+ "type": "Boolean",
659
+ "description": "Fail on install dependencies error",
660
+ "default": false
661
+ },
662
+ "ask-answered": {
663
+ "type": "Boolean",
664
+ "description": "Show prompts for already configured options",
665
+ "default": false,
666
+ "name": "ask-answered",
667
+ "hide": false
668
+ },
669
+ "model": {
670
+ "type": "String",
671
+ "required": false,
672
+ "description": "A valid model name",
673
+ "name": "model",
674
+ "hide": false
675
+ },
676
+ "id": {
677
+ "type": "String",
678
+ "required": false,
679
+ "description": "A valid ID property name for the specified model",
680
+ "name": "id",
681
+ "hide": false
682
+ },
683
+ "datasource": {
684
+ "type": "String",
685
+ "required": false,
686
+ "description": "A valid datasource name",
687
+ "name": "datasource",
688
+ "hide": false
689
+ },
690
+ "repositoryBaseClass": {
691
+ "type": "String",
692
+ "required": false,
693
+ "description": "A valid repository base class",
694
+ "default": "DefaultCrudRepository",
695
+ "name": "repositoryBaseClass",
696
+ "hide": false
697
+ },
698
+ "config": {
699
+ "type": "String",
700
+ "alias": "c",
701
+ "description": "JSON file name or value to configure options",
702
+ "name": "config",
703
+ "hide": false
704
+ },
705
+ "yes": {
706
+ "type": "Boolean",
707
+ "alias": "y",
708
+ "description": "Skip all confirmation prompts with default or provided value",
709
+ "name": "yes",
710
+ "hide": false
711
+ },
712
+ "format": {
713
+ "type": "Boolean",
714
+ "description": "Format generated code using npm run lint:fix",
715
+ "name": "format",
716
+ "hide": false
717
+ },
718
+ "packageManager": {
719
+ "type": "String",
720
+ "description": "Change the default package manager",
721
+ "alias": "pm",
722
+ "name": "packageManager",
723
+ "hide": false
724
+ }
725
+ },
726
+ "arguments": [
727
+ {
728
+ "type": "String",
729
+ "required": false,
730
+ "description": "Name for the repository ",
731
+ "name": "name"
732
+ }
733
+ ],
734
+ "name": "repository"
735
+ },
736
+ "service": {
737
+ "options": {
738
+ "help": {
739
+ "name": "help",
740
+ "type": "Boolean",
741
+ "alias": "h",
742
+ "description": "Print the generator's options and usage"
743
+ },
744
+ "skip-cache": {
745
+ "name": "skip-cache",
746
+ "type": "Boolean",
747
+ "description": "Do not remember prompt answers",
748
+ "default": false
749
+ },
750
+ "skip-install": {
751
+ "name": "skip-install",
752
+ "type": "Boolean",
753
+ "description": "Do not automatically install dependencies",
754
+ "default": false
755
+ },
756
+ "force-install": {
757
+ "name": "force-install",
758
+ "type": "Boolean",
759
+ "description": "Fail on install dependencies error",
760
+ "default": false
761
+ },
762
+ "ask-answered": {
763
+ "type": "Boolean",
764
+ "description": "Show prompts for already configured options",
765
+ "default": false,
766
+ "name": "ask-answered",
767
+ "hide": false
768
+ },
769
+ "type": {
770
+ "type": "String",
771
+ "required": false,
772
+ "description": "Service type - proxy, class or provider",
773
+ "name": "type",
774
+ "hide": false
775
+ },
776
+ "datasource": {
777
+ "type": "String",
778
+ "required": false,
779
+ "description": "A valid datasource name",
780
+ "name": "datasource",
781
+ "hide": false
782
+ },
783
+ "config": {
784
+ "type": "String",
785
+ "alias": "c",
786
+ "description": "JSON file name or value to configure options",
787
+ "name": "config",
788
+ "hide": false
789
+ },
790
+ "yes": {
791
+ "type": "Boolean",
792
+ "alias": "y",
793
+ "description": "Skip all confirmation prompts with default or provided value",
794
+ "name": "yes",
795
+ "hide": false
796
+ },
797
+ "format": {
798
+ "type": "Boolean",
799
+ "description": "Format generated code using npm run lint:fix",
800
+ "name": "format",
801
+ "hide": false
802
+ },
803
+ "packageManager": {
804
+ "type": "String",
805
+ "description": "Change the default package manager",
806
+ "alias": "pm",
807
+ "name": "packageManager",
808
+ "hide": false
809
+ }
810
+ },
811
+ "arguments": [
812
+ {
813
+ "type": "String",
814
+ "required": false,
815
+ "description": "Name for the service",
816
+ "name": "name"
817
+ }
818
+ ],
819
+ "name": "service"
820
+ },
821
+ "example": {
822
+ "options": {
823
+ "help": {
824
+ "name": "help",
825
+ "type": "Boolean",
826
+ "alias": "h",
827
+ "description": "Print the generator's options and usage"
828
+ },
829
+ "skip-cache": {
830
+ "name": "skip-cache",
831
+ "type": "Boolean",
832
+ "description": "Do not remember prompt answers",
833
+ "default": false
834
+ },
835
+ "skip-install": {
836
+ "name": "skip-install",
837
+ "type": "Boolean",
838
+ "description": "Do not automatically install dependencies",
839
+ "default": false
840
+ },
841
+ "force-install": {
842
+ "name": "force-install",
843
+ "type": "Boolean",
844
+ "description": "Fail on install dependencies error",
845
+ "default": false
846
+ },
847
+ "ask-answered": {
848
+ "type": "Boolean",
849
+ "description": "Show prompts for already configured options",
850
+ "default": false,
851
+ "name": "ask-answered",
852
+ "hide": false
853
+ },
854
+ "config": {
855
+ "type": "String",
856
+ "alias": "c",
857
+ "description": "JSON file name or value to configure options",
858
+ "name": "config",
859
+ "hide": false
860
+ },
861
+ "yes": {
862
+ "type": "Boolean",
863
+ "alias": "y",
864
+ "description": "Skip all confirmation prompts with default or provided value",
865
+ "name": "yes",
866
+ "hide": false
867
+ },
868
+ "format": {
869
+ "type": "Boolean",
870
+ "description": "Format generated code using npm run lint:fix",
871
+ "name": "format",
872
+ "hide": false
873
+ },
874
+ "packageManager": {
875
+ "type": "String",
876
+ "description": "Change the default package manager",
877
+ "alias": "pm",
878
+ "name": "packageManager",
879
+ "hide": false
880
+ }
881
+ },
882
+ "arguments": [
883
+ {
884
+ "type": "String",
885
+ "description": "Name of the example to clone",
886
+ "required": false,
887
+ "name": "example-name"
888
+ }
889
+ ],
890
+ "name": "example"
891
+ },
892
+ "openapi": {
893
+ "options": {
894
+ "help": {
895
+ "name": "help",
896
+ "type": "Boolean",
897
+ "alias": "h",
898
+ "description": "Print the generator's options and usage"
899
+ },
900
+ "skip-cache": {
901
+ "name": "skip-cache",
902
+ "type": "Boolean",
903
+ "description": "Do not remember prompt answers",
904
+ "default": false
905
+ },
906
+ "skip-install": {
907
+ "name": "skip-install",
908
+ "type": "Boolean",
909
+ "description": "Do not automatically install dependencies",
910
+ "default": false
911
+ },
912
+ "force-install": {
913
+ "name": "force-install",
914
+ "type": "Boolean",
915
+ "description": "Fail on install dependencies error",
916
+ "default": false
917
+ },
918
+ "ask-answered": {
919
+ "type": "Boolean",
920
+ "description": "Show prompts for already configured options",
921
+ "default": false,
922
+ "name": "ask-answered",
923
+ "hide": false
924
+ },
925
+ "url": {
926
+ "description": "URL or file path of the OpenAPI spec",
927
+ "required": false,
928
+ "type": "String",
929
+ "name": "url",
930
+ "hide": false
931
+ },
932
+ "validate": {
933
+ "description": "Validate the OpenAPI spec",
934
+ "required": false,
935
+ "default": false,
936
+ "type": "Boolean",
937
+ "name": "validate",
938
+ "hide": false
939
+ },
940
+ "server": {
941
+ "description": "Generate server-side controllers for the OpenAPI spec",
942
+ "required": false,
943
+ "default": true,
944
+ "type": "Boolean",
945
+ "name": "server",
946
+ "hide": false
947
+ },
948
+ "client": {
949
+ "description": "Generate client-side service proxies for the OpenAPI spec",
950
+ "required": false,
951
+ "default": false,
952
+ "type": "Boolean",
953
+ "name": "client",
954
+ "hide": false
955
+ },
956
+ "datasource": {
957
+ "type": "String",
958
+ "required": false,
959
+ "description": "A valid datasource name for the OpenAPI endpoint",
960
+ "name": "datasource",
961
+ "hide": false
962
+ },
963
+ "baseModel": {
964
+ "description": "Base model class",
965
+ "required": false,
966
+ "default": "",
967
+ "type": "String",
968
+ "name": "baseModel",
969
+ "hide": false
970
+ },
971
+ "promote-anonymous-schemas": {
972
+ "description": "Promote anonymous schemas as models",
973
+ "required": false,
974
+ "default": false,
975
+ "type": "Boolean",
976
+ "name": "promote-anonymous-schemas",
977
+ "hide": false
978
+ },
979
+ "config": {
980
+ "type": "String",
981
+ "alias": "c",
982
+ "description": "JSON file name or value to configure options",
983
+ "name": "config",
984
+ "hide": false
985
+ },
986
+ "yes": {
987
+ "type": "Boolean",
988
+ "alias": "y",
989
+ "description": "Skip all confirmation prompts with default or provided value",
990
+ "name": "yes",
991
+ "hide": false
992
+ },
993
+ "format": {
994
+ "type": "Boolean",
995
+ "description": "Format generated code using npm run lint:fix",
996
+ "name": "format",
997
+ "hide": false
998
+ },
999
+ "packageManager": {
1000
+ "type": "String",
1001
+ "description": "Change the default package manager",
1002
+ "alias": "pm",
1003
+ "name": "packageManager",
1004
+ "hide": false
1005
+ }
1006
+ },
1007
+ "arguments": [
1008
+ {
1009
+ "description": "URL or file path of the OpenAPI spec",
1010
+ "required": false,
1011
+ "type": "String",
1012
+ "name": "url"
1013
+ }
1014
+ ],
1015
+ "name": "openapi"
1016
+ },
1017
+ "observer": {
1018
+ "options": {
1019
+ "help": {
1020
+ "name": "help",
1021
+ "type": "Boolean",
1022
+ "alias": "h",
1023
+ "description": "Print the generator's options and usage"
1024
+ },
1025
+ "skip-cache": {
1026
+ "name": "skip-cache",
1027
+ "type": "Boolean",
1028
+ "description": "Do not remember prompt answers",
1029
+ "default": false
1030
+ },
1031
+ "skip-install": {
1032
+ "name": "skip-install",
1033
+ "type": "Boolean",
1034
+ "description": "Do not automatically install dependencies",
1035
+ "default": false
1036
+ },
1037
+ "force-install": {
1038
+ "name": "force-install",
1039
+ "type": "Boolean",
1040
+ "description": "Fail on install dependencies error",
1041
+ "default": false
1042
+ },
1043
+ "ask-answered": {
1044
+ "type": "Boolean",
1045
+ "description": "Show prompts for already configured options",
1046
+ "default": false,
1047
+ "name": "ask-answered",
1048
+ "hide": false
1049
+ },
1050
+ "group": {
1051
+ "description": "Name of the observer group for ordering",
1052
+ "required": false,
1053
+ "type": "String",
1054
+ "name": "group",
1055
+ "hide": false
1056
+ },
1057
+ "config": {
1058
+ "type": "String",
1059
+ "alias": "c",
1060
+ "description": "JSON file name or value to configure options",
1061
+ "name": "config",
1062
+ "hide": false
1063
+ },
1064
+ "yes": {
1065
+ "type": "Boolean",
1066
+ "alias": "y",
1067
+ "description": "Skip all confirmation prompts with default or provided value",
1068
+ "name": "yes",
1069
+ "hide": false
1070
+ },
1071
+ "format": {
1072
+ "type": "Boolean",
1073
+ "description": "Format generated code using npm run lint:fix",
1074
+ "name": "format",
1075
+ "hide": false
1076
+ },
1077
+ "packageManager": {
1078
+ "type": "String",
1079
+ "description": "Change the default package manager",
1080
+ "alias": "pm",
1081
+ "name": "packageManager",
1082
+ "hide": false
1083
+ }
1084
+ },
1085
+ "arguments": [
1086
+ {
1087
+ "type": "String",
1088
+ "required": false,
1089
+ "description": "Name for the observer",
1090
+ "name": "name"
1091
+ }
1092
+ ],
1093
+ "name": "observer"
1094
+ },
1095
+ "interceptor": {
1096
+ "options": {
1097
+ "help": {
1098
+ "name": "help",
1099
+ "type": "Boolean",
1100
+ "alias": "h",
1101
+ "description": "Print the generator's options and usage"
1102
+ },
1103
+ "skip-cache": {
1104
+ "name": "skip-cache",
1105
+ "type": "Boolean",
1106
+ "description": "Do not remember prompt answers",
1107
+ "default": false
1108
+ },
1109
+ "skip-install": {
1110
+ "name": "skip-install",
1111
+ "type": "Boolean",
1112
+ "description": "Do not automatically install dependencies",
1113
+ "default": false
1114
+ },
1115
+ "force-install": {
1116
+ "name": "force-install",
1117
+ "type": "Boolean",
1118
+ "description": "Fail on install dependencies error",
1119
+ "default": false
1120
+ },
1121
+ "ask-answered": {
1122
+ "type": "Boolean",
1123
+ "description": "Show prompts for already configured options",
1124
+ "default": false,
1125
+ "name": "ask-answered",
1126
+ "hide": false
1127
+ },
1128
+ "global": {
1129
+ "description": "Flag to indicate a global interceptor",
1130
+ "required": false,
1131
+ "type": "Boolean",
1132
+ "name": "global",
1133
+ "hide": false
1134
+ },
1135
+ "group": {
1136
+ "description": "Group name for ordering the global interceptor",
1137
+ "required": false,
1138
+ "type": "String",
1139
+ "name": "group",
1140
+ "hide": false
1141
+ },
1142
+ "config": {
1143
+ "type": "String",
1144
+ "alias": "c",
1145
+ "description": "JSON file name or value to configure options",
1146
+ "name": "config",
1147
+ "hide": false
1148
+ },
1149
+ "yes": {
1150
+ "type": "Boolean",
1151
+ "alias": "y",
1152
+ "description": "Skip all confirmation prompts with default or provided value",
1153
+ "name": "yes",
1154
+ "hide": false
1155
+ },
1156
+ "format": {
1157
+ "type": "Boolean",
1158
+ "description": "Format generated code using npm run lint:fix",
1159
+ "name": "format",
1160
+ "hide": false
1161
+ },
1162
+ "packageManager": {
1163
+ "type": "String",
1164
+ "description": "Change the default package manager",
1165
+ "alias": "pm",
1166
+ "name": "packageManager",
1167
+ "hide": false
1168
+ }
1169
+ },
1170
+ "arguments": [
1171
+ {
1172
+ "type": "String",
1173
+ "required": false,
1174
+ "description": "Name for the interceptor",
1175
+ "name": "name"
1176
+ }
1177
+ ],
1178
+ "name": "interceptor"
1179
+ },
1180
+ "discover": {
1181
+ "options": {
1182
+ "help": {
1183
+ "name": "help",
1184
+ "type": "Boolean",
1185
+ "alias": "h",
1186
+ "description": "Print the generator's options and usage"
1187
+ },
1188
+ "skip-cache": {
1189
+ "name": "skip-cache",
1190
+ "type": "Boolean",
1191
+ "description": "Do not remember prompt answers",
1192
+ "default": false
1193
+ },
1194
+ "skip-install": {
1195
+ "name": "skip-install",
1196
+ "type": "Boolean",
1197
+ "description": "Do not automatically install dependencies",
1198
+ "default": false
1199
+ },
1200
+ "force-install": {
1201
+ "name": "force-install",
1202
+ "type": "Boolean",
1203
+ "description": "Fail on install dependencies error",
1204
+ "default": false
1205
+ },
1206
+ "ask-answered": {
1207
+ "type": "Boolean",
1208
+ "description": "Show prompts for already configured options",
1209
+ "default": false,
1210
+ "name": "ask-answered",
1211
+ "hide": false
1212
+ },
1213
+ "config": {
1214
+ "type": "String",
1215
+ "alias": "c",
1216
+ "description": "JSON file name or value to configure options",
1217
+ "name": "config",
1218
+ "hide": false
1219
+ },
1220
+ "yes": {
1221
+ "type": "Boolean",
1222
+ "alias": "y",
1223
+ "description": "Skip all confirmation prompts with default or provided value",
1224
+ "name": "yes",
1225
+ "hide": false
1226
+ },
1227
+ "format": {
1228
+ "type": "Boolean",
1229
+ "description": "Format generated code using npm run lint:fix",
1230
+ "name": "format",
1231
+ "hide": false
1232
+ },
1233
+ "packageManager": {
1234
+ "type": "String",
1235
+ "description": "Change the default package manager",
1236
+ "alias": "pm",
1237
+ "name": "packageManager",
1238
+ "hide": false
1239
+ },
1240
+ "dataSource": {
1241
+ "type": "String",
1242
+ "alias": "ds",
1243
+ "description": "The name of the datasource to discover",
1244
+ "name": "dataSource",
1245
+ "hide": false
1246
+ },
1247
+ "views": {
1248
+ "type": "Boolean",
1249
+ "description": "Boolean to discover views",
1250
+ "default": true,
1251
+ "name": "views",
1252
+ "hide": false
1253
+ },
1254
+ "schema": {
1255
+ "type": "String",
1256
+ "description": "Schema to discover",
1257
+ "default": "",
1258
+ "name": "schema",
1259
+ "hide": false
1260
+ },
1261
+ "all": {
1262
+ "type": "Boolean",
1263
+ "description": "Discover all models without prompting users to select",
1264
+ "default": false,
1265
+ "name": "all",
1266
+ "hide": false
1267
+ },
1268
+ "outDir": {
1269
+ "type": "String",
1270
+ "description": "Specify the directory into which the `model.model.ts` files will be placed",
1271
+ "name": "outDir",
1272
+ "hide": false
1273
+ }
1274
+ },
1275
+ "arguments": [
1276
+ {
1277
+ "type": "String",
1278
+ "required": false,
1279
+ "description": "Name for the discover",
1280
+ "name": "name"
1281
+ }
1282
+ ],
1283
+ "name": "discover"
1284
+ },
1285
+ "relation": {
1286
+ "options": {
1287
+ "help": {
1288
+ "name": "help",
1289
+ "type": "Boolean",
1290
+ "alias": "h",
1291
+ "description": "Print the generator's options and usage"
1292
+ },
1293
+ "skip-cache": {
1294
+ "name": "skip-cache",
1295
+ "type": "Boolean",
1296
+ "description": "Do not remember prompt answers",
1297
+ "default": false
1298
+ },
1299
+ "skip-install": {
1300
+ "name": "skip-install",
1301
+ "type": "Boolean",
1302
+ "description": "Do not automatically install dependencies",
1303
+ "default": false
1304
+ },
1305
+ "force-install": {
1306
+ "name": "force-install",
1307
+ "type": "Boolean",
1308
+ "description": "Fail on install dependencies error",
1309
+ "default": false
1310
+ },
1311
+ "ask-answered": {
1312
+ "type": "Boolean",
1313
+ "description": "Show prompts for already configured options",
1314
+ "default": false,
1315
+ "name": "ask-answered",
1316
+ "hide": false
1317
+ },
1318
+ "relationType": {
1319
+ "type": "String",
1320
+ "required": false,
1321
+ "description": "Relation type",
1322
+ "name": "relationType",
1323
+ "hide": false
1324
+ },
1325
+ "sourceModel": {
1326
+ "type": "String",
1327
+ "required": false,
1328
+ "description": "Source model",
1329
+ "name": "sourceModel",
1330
+ "hide": false
1331
+ },
1332
+ "destinationModel": {
1333
+ "type": "String",
1334
+ "required": false,
1335
+ "description": "Destination model",
1336
+ "name": "destinationModel",
1337
+ "hide": false
1338
+ },
1339
+ "throughModel": {
1340
+ "type": "String",
1341
+ "required": false,
1342
+ "description": "Through model",
1343
+ "name": "throughModel",
1344
+ "hide": false
1345
+ },
1346
+ "sourceModelPrimaryKey": {
1347
+ "type": "String",
1348
+ "required": false,
1349
+ "description": "Primary key on source model",
1350
+ "name": "sourceModelPrimaryKey",
1351
+ "hide": false
1352
+ },
1353
+ "sourceModelPrimaryKeyType": {
1354
+ "type": "String",
1355
+ "required": false,
1356
+ "description": "Type of the primary key on source model",
1357
+ "name": "sourceModelPrimaryKeyType",
1358
+ "hide": false
1359
+ },
1360
+ "destinationModelPrimaryKey": {
1361
+ "type": "String",
1362
+ "required": false,
1363
+ "description": "Primary key on destination model",
1364
+ "name": "destinationModelPrimaryKey",
1365
+ "hide": false
1366
+ },
1367
+ "destinationModelPrimaryKeyType": {
1368
+ "type": "String",
1369
+ "required": false,
1370
+ "description": "Type of the primary key on destination model",
1371
+ "name": "destinationModelPrimaryKeyType",
1372
+ "hide": false
1373
+ },
1374
+ "sourceKeyOnThrough": {
1375
+ "type": "String",
1376
+ "required": false,
1377
+ "description": "Foreign key references source model on through model",
1378
+ "name": "sourceKeyOnThrough",
1379
+ "hide": false
1380
+ },
1381
+ "targetKeyOnThrough": {
1382
+ "type": "String",
1383
+ "required": false,
1384
+ "description": "Foreign key references target model on through model",
1385
+ "name": "targetKeyOnThrough",
1386
+ "hide": false
1387
+ },
1388
+ "defaultForeignKeyName": {
1389
+ "type": "String",
1390
+ "required": false,
1391
+ "description": "default foreign key name",
1392
+ "name": "defaultForeignKeyName",
1393
+ "hide": false
1394
+ },
1395
+ "foreignKeyName": {
1396
+ "type": "String",
1397
+ "required": false,
1398
+ "description": "Destination model foreign key name",
1399
+ "name": "foreignKeyName",
1400
+ "hide": false
1401
+ },
1402
+ "relationName": {
1403
+ "type": "String",
1404
+ "required": false,
1405
+ "description": "Relation name",
1406
+ "name": "relationName",
1407
+ "hide": false
1408
+ },
1409
+ "defaultRelationName": {
1410
+ "type": "String",
1411
+ "required": false,
1412
+ "description": "Default relation name",
1413
+ "name": "defaultRelationName",
1414
+ "hide": false
1415
+ },
1416
+ "registerInclusionResolver": {
1417
+ "type": "Boolean",
1418
+ "required": false,
1419
+ "description": "Allow <sourceModel> queries to include data from related <destinationModel>",
1420
+ "name": "registerInclusionResolver",
1421
+ "hide": false
1422
+ },
1423
+ "config": {
1424
+ "type": "String",
1425
+ "alias": "c",
1426
+ "description": "JSON file name or value to configure options",
1427
+ "name": "config",
1428
+ "hide": false
1429
+ },
1430
+ "yes": {
1431
+ "type": "Boolean",
1432
+ "alias": "y",
1433
+ "description": "Skip all confirmation prompts with default or provided value",
1434
+ "name": "yes",
1435
+ "hide": false
1436
+ },
1437
+ "format": {
1438
+ "type": "Boolean",
1439
+ "description": "Format generated code using npm run lint:fix",
1440
+ "name": "format",
1441
+ "hide": false
1442
+ },
1443
+ "packageManager": {
1444
+ "type": "String",
1445
+ "description": "Change the default package manager",
1446
+ "alias": "pm",
1447
+ "name": "packageManager",
1448
+ "hide": false
1449
+ }
1450
+ },
1451
+ "arguments": [],
1452
+ "name": "relation"
1453
+ },
1454
+ "update": {
1455
+ "options": {
1456
+ "help": {
1457
+ "name": "help",
1458
+ "type": "Boolean",
1459
+ "alias": "h",
1460
+ "description": "Print the generator's options and usage"
1461
+ },
1462
+ "skip-cache": {
1463
+ "name": "skip-cache",
1464
+ "type": "Boolean",
1465
+ "description": "Do not remember prompt answers",
1466
+ "default": false
1467
+ },
1468
+ "skip-install": {
1469
+ "name": "skip-install",
1470
+ "type": "Boolean",
1471
+ "description": "Do not automatically install dependencies",
1472
+ "default": false
1473
+ },
1474
+ "force-install": {
1475
+ "name": "force-install",
1476
+ "type": "Boolean",
1477
+ "description": "Fail on install dependencies error",
1478
+ "default": false
1479
+ },
1480
+ "ask-answered": {
1481
+ "type": "Boolean",
1482
+ "description": "Show prompts for already configured options",
1483
+ "default": false,
1484
+ "name": "ask-answered",
1485
+ "hide": false
1486
+ },
1487
+ "semver": {
1488
+ "type": "Boolean",
1489
+ "required": false,
1490
+ "default": false,
1491
+ "description": "Check version compatibility using semver semantics",
1492
+ "name": "semver",
1493
+ "hide": false
1494
+ },
1495
+ "config": {
1496
+ "type": "String",
1497
+ "alias": "c",
1498
+ "description": "JSON file name or value to configure options",
1499
+ "name": "config",
1500
+ "hide": false
1501
+ },
1502
+ "yes": {
1503
+ "type": "Boolean",
1504
+ "alias": "y",
1505
+ "description": "Skip all confirmation prompts with default or provided value",
1506
+ "name": "yes",
1507
+ "hide": false
1508
+ },
1509
+ "format": {
1510
+ "type": "Boolean",
1511
+ "description": "Format generated code using npm run lint:fix",
1512
+ "name": "format",
1513
+ "hide": false
1514
+ },
1515
+ "packageManager": {
1516
+ "type": "String",
1517
+ "description": "Change the default package manager",
1518
+ "alias": "pm",
1519
+ "name": "packageManager",
1520
+ "hide": false
1521
+ }
1522
+ },
1523
+ "arguments": [],
1524
+ "name": "update"
1525
+ },
1526
+ "rest-crud": {
1527
+ "options": {
1528
+ "help": {
1529
+ "name": "help",
1530
+ "type": "Boolean",
1531
+ "alias": "h",
1532
+ "description": "Print the generator's options and usage"
1533
+ },
1534
+ "skip-cache": {
1535
+ "name": "skip-cache",
1536
+ "type": "Boolean",
1537
+ "description": "Do not remember prompt answers",
1538
+ "default": false
1539
+ },
1540
+ "skip-install": {
1541
+ "name": "skip-install",
1542
+ "type": "Boolean",
1543
+ "description": "Do not automatically install dependencies",
1544
+ "default": false
1545
+ },
1546
+ "force-install": {
1547
+ "name": "force-install",
1548
+ "type": "Boolean",
1549
+ "description": "Fail on install dependencies error",
1550
+ "default": false
1551
+ },
1552
+ "ask-answered": {
1553
+ "type": "Boolean",
1554
+ "description": "Show prompts for already configured options",
1555
+ "default": false,
1556
+ "name": "ask-answered",
1557
+ "hide": false
1558
+ },
1559
+ "model": {
1560
+ "type": "String",
1561
+ "required": false,
1562
+ "description": "A valid model name",
1563
+ "name": "model",
1564
+ "hide": false
1565
+ },
1566
+ "datasource": {
1567
+ "type": "String",
1568
+ "required": false,
1569
+ "description": "A valid datasource name",
1570
+ "name": "datasource",
1571
+ "hide": false
1572
+ },
1573
+ "basePath": {
1574
+ "type": "String",
1575
+ "required": false,
1576
+ "description": "A valid base path",
1577
+ "name": "basePath",
1578
+ "hide": false
1579
+ },
1580
+ "config": {
1581
+ "type": "String",
1582
+ "alias": "c",
1583
+ "description": "JSON file name or value to configure options",
1584
+ "name": "config",
1585
+ "hide": false
1586
+ },
1587
+ "yes": {
1588
+ "type": "Boolean",
1589
+ "alias": "y",
1590
+ "description": "Skip all confirmation prompts with default or provided value",
1591
+ "name": "yes",
1592
+ "hide": false
1593
+ },
1594
+ "format": {
1595
+ "type": "Boolean",
1596
+ "description": "Format generated code using npm run lint:fix",
1597
+ "name": "format",
1598
+ "hide": false
1599
+ },
1600
+ "packageManager": {
1601
+ "type": "String",
1602
+ "description": "Change the default package manager",
1603
+ "alias": "pm",
1604
+ "name": "packageManager",
1605
+ "hide": false
1606
+ }
1607
+ },
1608
+ "arguments": [
1609
+ {
1610
+ "type": "String",
1611
+ "required": false,
1612
+ "description": "Name for the rest-config",
1613
+ "name": "name"
1614
+ }
1615
+ ],
1616
+ "name": "rest-crud"
1617
+ },
1618
+ "copyright": {
1619
+ "options": {
1620
+ "help": {
1621
+ "type": "Boolean",
1622
+ "alias": "h",
1623
+ "description": "Print the generator's options and usage",
1624
+ "name": "help",
1625
+ "hide": false
1626
+ },
1627
+ "skip-cache": {
1628
+ "type": "Boolean",
1629
+ "description": "Do not remember prompt answers",
1630
+ "default": false,
1631
+ "name": "skip-cache",
1632
+ "hide": false
1633
+ },
1634
+ "skip-install": {
1635
+ "type": "Boolean",
1636
+ "description": "Do not automatically install dependencies",
1637
+ "default": false,
1638
+ "name": "skip-install",
1639
+ "hide": false
1640
+ },
1641
+ "force-install": {
1642
+ "type": "Boolean",
1643
+ "description": "Fail on install dependencies error",
1644
+ "default": false,
1645
+ "name": "force-install",
1646
+ "hide": false
1647
+ },
1648
+ "ask-answered": {
1649
+ "type": "Boolean",
1650
+ "description": "Show prompts for already configured options",
1651
+ "default": false,
1652
+ "name": "ask-answered",
1653
+ "hide": false
1654
+ },
1655
+ "owner": {
1656
+ "type": "String",
1657
+ "required": false,
1658
+ "description": "Copyright owner",
1659
+ "name": "owner",
1660
+ "hide": false
1661
+ },
1662
+ "license": {
1663
+ "type": "String",
1664
+ "required": false,
1665
+ "description": "License",
1666
+ "name": "license",
1667
+ "hide": false
1668
+ },
1669
+ "updateLicense": {
1670
+ "type": "Boolean",
1671
+ "required": false,
1672
+ "description": "Update license in package.json and LICENSE",
1673
+ "name": "updateLicense",
1674
+ "hide": false
1675
+ },
1676
+ "gitOnly": {
1677
+ "type": "Boolean",
1678
+ "required": false,
1679
+ "default": true,
1680
+ "description": "Only update git tracked files",
1681
+ "name": "gitOnly",
1682
+ "hide": false
1683
+ },
1684
+ "exclude": {
1685
+ "type": "String",
1686
+ "required": false,
1687
+ "default": "",
1688
+ "description": "Exclude files that match the pattern",
1689
+ "name": "exclude",
1690
+ "hide": false
1691
+ }
1692
+ },
1693
+ "arguments": [],
1694
+ "name": "copyright"
1695
+ }
1696
+ }
1697
+ }