@sprucelabs/spruce-cli 22.1.2 → 22.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/build/.spruce/schemas/fields/fieldClassMap.js.map +1 -1
  3. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  4. package/build/.spruce/schemas/schemas.types.d.ts +485 -512
  5. package/build/.spruce/schemas/schemas.types.js +4 -0
  6. package/build/.spruce/schemas/schemas.types.js.map +1 -1
  7. package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js +15 -15
  8. package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js.map +1 -1
  9. package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js +9 -9
  10. package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js.map +1 -1
  11. package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js +5 -5
  12. package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js.map +1 -1
  13. package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js +64 -64
  14. package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js.map +1 -1
  15. package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js +5 -5
  16. package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js.map +1 -1
  17. package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js +65 -65
  18. package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js.map +1 -1
  19. package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js +13 -18
  20. package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js.map +1 -1
  21. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js +9 -16
  22. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js.map +1 -1
  23. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js +9 -16
  24. package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js.map +1 -1
  25. package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js +3 -3
  26. package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js.map +1 -1
  27. package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js +24 -24
  28. package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
  29. package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js +23 -23
  30. package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js.map +1 -1
  31. package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js +9 -9
  32. package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js.map +1 -1
  33. package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js +7 -7
  34. package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js.map +1 -1
  35. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js +1 -1
  36. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js.map +1 -1
  37. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js +5 -16
  38. package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js.map +1 -1
  39. package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js +9 -9
  40. package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js.map +1 -1
  41. package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js +3 -3
  42. package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js.map +1 -1
  43. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js +5 -5
  44. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
  45. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js +3 -3
  46. package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js.map +1 -1
  47. package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js +11 -10
  48. package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js.map +1 -1
  49. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js +52 -52
  50. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js.map +1 -1
  51. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js +15 -15
  52. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js.map +1 -1
  53. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js +10 -10
  54. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js.map +1 -1
  55. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js +46 -46
  56. package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js.map +1 -1
  57. package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js +14 -20
  58. package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js.map +1 -1
  59. package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js +4 -16
  60. package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js.map +1 -1
  61. package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js +4 -9
  62. package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js.map +1 -1
  63. package/build/features/schema/utilities/schema.utility.d.ts +1 -1
  64. package/build/features/skill/actions/CreateAction.d.ts +2 -0
  65. package/build/features/skill/actions/RegisterAction.js +2 -2
  66. package/build/features/skill/actions/RegisterAction.js.map +1 -1
  67. package/build/features/skill/stores/SkillStore.d.ts +1 -1
  68. package/build/features/vscode/actions/SetupAction.js +7 -3
  69. package/build/features/vscode/actions/SetupAction.js.map +1 -1
  70. package/build/schemas/v2020_07_22/skillFeature.builder.d.ts +1 -0
  71. package/build/schemas/v2020_07_22/skillFeature.builder.js +1 -0
  72. package/build/schemas/v2020_07_22/skillFeature.builder.js.map +1 -1
  73. package/package.json +3 -3
  74. package/src/.spruce/schemas/fields/fieldClassMap.ts +3 -0
  75. package/src/.spruce/schemas/fields/fields.types.ts +1 -6
  76. package/src/.spruce/schemas/schemas.types.ts +2257 -2237
  77. package/src/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.ts +49 -50
  78. package/src/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.ts +37 -36
  79. package/src/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.ts +27 -26
  80. package/src/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.ts +209 -208
  81. package/src/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.ts +26 -26
  82. package/src/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.ts +226 -225
  83. package/src/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.ts +49 -53
  84. package/src/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.ts +33 -39
  85. package/src/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.ts +33 -39
  86. package/src/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.ts +18 -20
  87. package/src/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.ts +76 -76
  88. package/src/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.ts +91 -91
  89. package/src/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.ts +31 -31
  90. package/src/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.ts +25 -23
  91. package/src/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.ts +11 -9
  92. package/src/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.ts +23 -32
  93. package/src/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.ts +38 -37
  94. package/src/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.ts +16 -17
  95. package/src/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.ts +25 -25
  96. package/src/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.ts +17 -17
  97. package/src/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.ts +31 -29
  98. package/src/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.ts +169 -168
  99. package/src/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.ts +48 -49
  100. package/src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.ts +37 -36
  101. package/src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.ts +162 -161
  102. package/src/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.ts +55 -60
  103. package/src/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.ts +18 -30
  104. package/src/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.ts +19 -26
  105. package/src/features/skill/actions/RegisterAction.ts +2 -2
  106. package/src/features/vscode/actions/SetupAction.ts +7 -3
  107. package/src/schemas/v2020_07_22/skillFeature.builder.ts +1 -0
@@ -1,45 +1,39 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const generatedDirSchema: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedDirSchema =
5
- {
6
- id: 'generatedDir',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: '',
10
- fields: {
11
- /** . */
12
- name: {
13
- type: 'text',
14
- isRequired: true,
15
- options: undefined,
16
- },
17
- /** . */
18
- path: {
19
- type: 'text',
20
- isRequired: true,
21
- options: undefined,
22
- },
23
- /** . */
24
- description: {
25
- type: 'text',
26
- options: undefined,
27
- },
28
- /** . */
29
- action: {
30
- type: 'select',
31
- isRequired: true,
32
- options: {
33
- choices: [
34
- { label: 'Skipped', value: 'skipped' },
35
- { label: 'Generated', value: 'generated' },
36
- { label: 'Updated', value: 'updated' },
37
- { label: 'Deleted', value: 'deleted' },
38
- ],
39
- },
40
- },
41
- },
42
- }
4
+
5
+
6
+ const generatedDirSchema: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedDirSchema = {
7
+ id: 'generatedDir',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: '',
11
+ fields: {
12
+ /** . */
13
+ 'name': {
14
+ type: 'text',
15
+ isRequired: true,
16
+ options: undefined
17
+ },
18
+ /** . */
19
+ 'path': {
20
+ type: 'text',
21
+ isRequired: true,
22
+ options: undefined
23
+ },
24
+ /** . */
25
+ 'description': {
26
+ type: 'text',
27
+ options: undefined
28
+ },
29
+ /** . */
30
+ 'action': {
31
+ type: 'select',
32
+ isRequired: true,
33
+ options: {choices: [{"label":"Skipped","value":"skipped"},{"label":"Generated","value":"generated"},{"label":"Updated","value":"updated"},{"label":"Deleted","value":"deleted"}],}
34
+ },
35
+ }
36
+ }
43
37
 
44
38
  SchemaRegistry.getInstance().trackSchema(generatedDirSchema)
45
39
 
@@ -1,45 +1,39 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const generatedFileSchema: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedFileSchema =
5
- {
6
- id: 'generatedFile',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: '',
10
- fields: {
11
- /** . */
12
- name: {
13
- type: 'text',
14
- isRequired: true,
15
- options: undefined,
16
- },
17
- /** . */
18
- path: {
19
- type: 'text',
20
- isRequired: true,
21
- options: undefined,
22
- },
23
- /** . */
24
- description: {
25
- type: 'text',
26
- options: undefined,
27
- },
28
- /** . */
29
- action: {
30
- type: 'select',
31
- isRequired: true,
32
- options: {
33
- choices: [
34
- { label: 'Skipped', value: 'skipped' },
35
- { label: 'Generated', value: 'generated' },
36
- { label: 'Updated', value: 'updated' },
37
- { label: 'Deleted', value: 'deleted' },
38
- ],
39
- },
40
- },
41
- },
42
- }
4
+
5
+
6
+ const generatedFileSchema: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedFileSchema = {
7
+ id: 'generatedFile',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: '',
11
+ fields: {
12
+ /** . */
13
+ 'name': {
14
+ type: 'text',
15
+ isRequired: true,
16
+ options: undefined
17
+ },
18
+ /** . */
19
+ 'path': {
20
+ type: 'text',
21
+ isRequired: true,
22
+ options: undefined
23
+ },
24
+ /** . */
25
+ 'description': {
26
+ type: 'text',
27
+ options: undefined
28
+ },
29
+ /** . */
30
+ 'action': {
31
+ type: 'select',
32
+ isRequired: true,
33
+ options: {choices: [{"label":"Skipped","value":"skipped"},{"label":"Generated","value":"generated"},{"label":"Updated","value":"updated"},{"label":"Deleted","value":"deleted"}],}
34
+ },
35
+ }
36
+ }
43
37
 
44
38
  SchemaRegistry.getInstance().trackSchema(generatedFileSchema)
45
39
 
@@ -1,26 +1,24 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const installSkillAtOrganizationOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.InstallSkillAtOrganizationOptionsSchema =
5
- {
6
- id: 'installSkillAtOrganizationOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'install skill at organization action',
10
- description:
11
- 'Install your skill at any organization you are connected to.',
12
- fields: {
13
- /** Organization id. */
14
- organizationId: {
15
- label: 'Organization id',
16
- type: 'id',
17
- options: undefined,
18
- },
19
- },
20
- }
21
4
 
22
- SchemaRegistry.getInstance().trackSchema(
23
- installSkillAtOrganizationOptionsSchema
24
- )
5
+
6
+ const installSkillAtOrganizationOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.InstallSkillAtOrganizationOptionsSchema = {
7
+ id: 'installSkillAtOrganizationOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'install skill at organization action',
11
+ description: 'Install your skill at any organization you are connected to.',
12
+ fields: {
13
+ /** Organization id. */
14
+ 'organizationId': {
15
+ label: 'Organization id',
16
+ type: 'id',
17
+ options: undefined
18
+ },
19
+ }
20
+ }
21
+
22
+ SchemaRegistry.getInstance().trackSchema(installSkillAtOrganizationOptionsSchema)
25
23
 
26
24
  export default installSkillAtOrganizationOptionsSchema
@@ -1,82 +1,82 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const listenEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.ListenEventOptionsSchema =
5
- {
6
- id: 'listenEventOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'Listen to event action',
10
- description: 'Options for event.listen.',
11
- fields: {
12
- /** Contract destination. Where I will generate event contracts. */
13
- contractDestinationDir: {
14
- label: 'Contract destination',
15
- type: 'text',
16
- hint: 'Where I will generate event contracts.',
17
- defaultValue: '#spruce/events',
18
- options: undefined,
19
- },
20
- /** Schema types lookup directory. Where I will lookup schema types and interfaces. */
21
- schemaTypesLookupDir: {
22
- label: 'Schema types lookup directory',
23
- type: 'text',
24
- hint: 'Where I will lookup schema types and interfaces.',
25
- defaultValue: '#spruce/schemas',
26
- options: undefined,
27
- },
28
- /** Sync only core events. For use in @sprucelabs/mercury-types */
29
- shouldSyncOnlyCoreEvents: {
30
- label: 'Sync only core events',
31
- type: 'boolean',
32
- hint: 'For use in @sprucelabs/mercury-types',
33
- options: undefined,
34
- },
35
- /** Event signature types file. */
36
- skillEventContractTypesFile: {
37
- label: 'Event signature types file',
38
- type: 'text',
39
- defaultValue:
40
- '@sprucelabs/mercury-types/build/types/mercury.types',
41
- options: undefined,
42
- },
43
- /** Event builder file. */
44
- eventBuilderFile: {
45
- label: 'Event builder file',
46
- type: 'text',
47
- defaultValue: '@sprucelabs/mercury-types',
48
- options: undefined,
49
- },
50
- /** Namespace. */
51
- namespace: {
52
- label: 'Namespace',
53
- type: 'text',
54
- options: undefined,
55
- },
56
- /** Event name. */
57
- eventName: {
58
- label: 'Event name',
59
- type: 'text',
60
- options: undefined,
61
- },
62
- /** Events destination directory. Where should I add your listeners? */
63
- listenerDestinationDir: {
64
- label: 'Events destination directory',
65
- type: 'text',
66
- hint: 'Where should I add your listeners?',
67
- defaultValue: 'src/listeners',
68
- options: undefined,
69
- },
70
- /** Version. Set a version yourself instead of letting me generate one for you */
71
- version: {
72
- label: 'Version',
73
- type: 'text',
74
- isPrivate: true,
75
- hint: 'Set a version yourself instead of letting me generate one for you',
76
- options: undefined,
77
- },
78
- },
79
- }
4
+
5
+
6
+ const listenEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.ListenEventOptionsSchema = {
7
+ id: 'listenEventOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'Listen to event action',
11
+ description: 'Options for event.listen.',
12
+ fields: {
13
+ /** Contract destination. Where I will generate event contracts. */
14
+ 'contractDestinationDir': {
15
+ label: 'Contract destination',
16
+ type: 'text',
17
+ hint: 'Where I will generate event contracts.',
18
+ defaultValue: "#spruce/events",
19
+ options: undefined
20
+ },
21
+ /** Schema types lookup directory. Where I will lookup schema types and interfaces. */
22
+ 'schemaTypesLookupDir': {
23
+ label: 'Schema types lookup directory',
24
+ type: 'text',
25
+ hint: 'Where I will lookup schema types and interfaces.',
26
+ defaultValue: "#spruce/schemas",
27
+ options: undefined
28
+ },
29
+ /** Sync only core events. For use in @sprucelabs/mercury-types */
30
+ 'shouldSyncOnlyCoreEvents': {
31
+ label: 'Sync only core events',
32
+ type: 'boolean',
33
+ hint: 'For use in @sprucelabs/mercury-types',
34
+ options: undefined
35
+ },
36
+ /** Event signature types file. */
37
+ 'skillEventContractTypesFile': {
38
+ label: 'Event signature types file',
39
+ type: 'text',
40
+ defaultValue: "@sprucelabs/mercury-types/build/types/mercury.types",
41
+ options: undefined
42
+ },
43
+ /** Event builder file. */
44
+ 'eventBuilderFile': {
45
+ label: 'Event builder file',
46
+ type: 'text',
47
+ defaultValue: "@sprucelabs/mercury-types",
48
+ options: undefined
49
+ },
50
+ /** Namespace. */
51
+ 'namespace': {
52
+ label: 'Namespace',
53
+ type: 'text',
54
+ options: undefined
55
+ },
56
+ /** Event name. */
57
+ 'eventName': {
58
+ label: 'Event name',
59
+ type: 'text',
60
+ options: undefined
61
+ },
62
+ /** Events destination directory. Where should I add your listeners? */
63
+ 'listenerDestinationDir': {
64
+ label: 'Events destination directory',
65
+ type: 'text',
66
+ hint: 'Where should I add your listeners?',
67
+ defaultValue: "src/listeners",
68
+ options: undefined
69
+ },
70
+ /** Version. Set a version yourself instead of letting me generate one for you */
71
+ 'version': {
72
+ label: 'Version',
73
+ type: 'text',
74
+ isPrivate: true,
75
+ hint: 'Set a version yourself instead of letting me generate one for you',
76
+ options: undefined
77
+ },
78
+ }
79
+ }
80
80
 
81
81
  SchemaRegistry.getInstance().trackSchema(listenEventOptionsSchema)
82
82
 
@@ -1,97 +1,97 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const namedTemplateItemSchema: SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItemSchema =
5
- {
6
- id: 'namedTemplateItem',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'NamedTemplateItem',
10
- description:
11
- 'Used to collect input on the names of a class or interface',
12
- fields: {
13
- /** Readable name. The name people will read */
14
- nameReadable: {
15
- label: 'Readable name',
16
- type: 'text',
17
- isRequired: true,
18
- hint: 'The name people will read',
19
- options: undefined,
20
- },
21
- /** Readable name (plural). The plural form of the name people will read */
22
- nameReadablePlural: {
23
- label: 'Readable name (plural)',
24
- type: 'text',
25
- isRequired: true,
26
- hint: 'The plural form of the name people will read',
27
- options: undefined,
28
- },
29
- /** Camel case name. camelCase version of the name */
30
- nameCamel: {
31
- label: 'Camel case name',
32
- type: 'text',
33
- isRequired: true,
34
- hint: 'camelCase version of the name',
35
- options: undefined,
36
- },
37
- /** Plural camel case name. camelCase version of the name */
38
- nameCamelPlural: {
39
- label: 'Plural camel case name',
40
- type: 'text',
41
- hint: 'camelCase version of the name',
42
- options: undefined,
43
- },
44
- /** Pascal case name. PascalCase of the name */
45
- namePascal: {
46
- label: 'Pascal case name',
47
- type: 'text',
48
- hint: 'PascalCase of the name',
49
- options: undefined,
50
- },
51
- /** Plural Pascal case name. PascalCase of the name */
52
- namePascalPlural: {
53
- label: 'Plural Pascal case name',
54
- type: 'text',
55
- hint: 'PascalCase of the name',
56
- options: undefined,
57
- },
58
- /** Constant case name. CONST_CASE of the name */
59
- nameConst: {
60
- label: 'Constant case name',
61
- type: 'text',
62
- hint: 'CONST_CASE of the name',
63
- options: undefined,
64
- },
65
- /** Kebab case name. kebab-case of the name */
66
- nameKebab: {
67
- label: 'Kebab case name',
68
- type: 'text',
69
- hint: 'kebab-case of the name',
70
- options: undefined,
71
- },
72
- /** Snake case name. snake_case of the name */
73
- nameSnake: {
74
- label: 'Snake case name',
75
- type: 'text',
76
- hint: 'snake_case of the name',
77
- options: undefined,
78
- },
79
- /** Snake case name (plural). snakes_case of the name */
80
- nameSnakePlural: {
81
- label: 'Snake case name (plural)',
82
- type: 'text',
83
- hint: 'snakes_case of the name',
84
- options: undefined,
85
- },
86
- /** Description. Describe a bit more here */
87
- description: {
88
- label: 'Description',
89
- type: 'text',
90
- hint: 'Describe a bit more here',
91
- options: undefined,
92
- },
93
- },
94
- }
4
+
5
+
6
+ const namedTemplateItemSchema: SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItemSchema = {
7
+ id: 'namedTemplateItem',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'NamedTemplateItem',
11
+ description: 'Used to collect input on the names of a class or interface',
12
+ fields: {
13
+ /** Readable name. The name people will read */
14
+ 'nameReadable': {
15
+ label: 'Readable name',
16
+ type: 'text',
17
+ isRequired: true,
18
+ hint: 'The name people will read',
19
+ options: undefined
20
+ },
21
+ /** Readable name (plural). The plural form of the name people will read */
22
+ 'nameReadablePlural': {
23
+ label: 'Readable name (plural)',
24
+ type: 'text',
25
+ isRequired: true,
26
+ hint: 'The plural form of the name people will read',
27
+ options: undefined
28
+ },
29
+ /** Camel case name. camelCase version of the name */
30
+ 'nameCamel': {
31
+ label: 'Camel case name',
32
+ type: 'text',
33
+ isRequired: true,
34
+ hint: 'camelCase version of the name',
35
+ options: undefined
36
+ },
37
+ /** Plural camel case name. camelCase version of the name */
38
+ 'nameCamelPlural': {
39
+ label: 'Plural camel case name',
40
+ type: 'text',
41
+ hint: 'camelCase version of the name',
42
+ options: undefined
43
+ },
44
+ /** Pascal case name. PascalCase of the name */
45
+ 'namePascal': {
46
+ label: 'Pascal case name',
47
+ type: 'text',
48
+ hint: 'PascalCase of the name',
49
+ options: undefined
50
+ },
51
+ /** Plural Pascal case name. PascalCase of the name */
52
+ 'namePascalPlural': {
53
+ label: 'Plural Pascal case name',
54
+ type: 'text',
55
+ hint: 'PascalCase of the name',
56
+ options: undefined
57
+ },
58
+ /** Constant case name. CONST_CASE of the name */
59
+ 'nameConst': {
60
+ label: 'Constant case name',
61
+ type: 'text',
62
+ hint: 'CONST_CASE of the name',
63
+ options: undefined
64
+ },
65
+ /** Kebab case name. kebab-case of the name */
66
+ 'nameKebab': {
67
+ label: 'Kebab case name',
68
+ type: 'text',
69
+ hint: 'kebab-case of the name',
70
+ options: undefined
71
+ },
72
+ /** Snake case name. snake_case of the name */
73
+ 'nameSnake': {
74
+ label: 'Snake case name',
75
+ type: 'text',
76
+ hint: 'snake_case of the name',
77
+ options: undefined
78
+ },
79
+ /** Snake case name (plural). snakes_case of the name */
80
+ 'nameSnakePlural': {
81
+ label: 'Snake case name (plural)',
82
+ type: 'text',
83
+ hint: 'snakes_case of the name',
84
+ options: undefined
85
+ },
86
+ /** Description. Describe a bit more here */
87
+ 'description': {
88
+ label: 'Description',
89
+ type: 'text',
90
+ hint: 'Describe a bit more here',
91
+ options: undefined
92
+ },
93
+ }
94
+ }
95
95
 
96
96
  SchemaRegistry.getInstance().trackSchema(namedTemplateItemSchema)
97
97
 
@@ -1,37 +1,37 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const nodeFeatureOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptionsSchema =
5
- {
6
- id: 'nodeFeatureOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'Create node module',
10
- description:
11
- 'Create a new node module, to be written in typescript, ready to rock!',
12
- fields: {
13
- /** . */
14
- destination: {
15
- type: 'text',
16
- defaultValue: '.',
17
- options: undefined,
18
- },
19
- /** What's the name of your module?. */
20
- name: {
21
- label: "What's the name of your module?",
22
- type: 'text',
23
- isRequired: true,
24
- options: undefined,
25
- },
26
- /** How would you describe your module?. */
27
- description: {
28
- label: 'How would you describe your module?',
29
- type: 'text',
30
- isRequired: true,
31
- options: undefined,
32
- },
33
- },
34
- }
4
+
5
+
6
+ const nodeFeatureOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.NodeFeatureOptionsSchema = {
7
+ id: 'nodeFeatureOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'Create node module',
11
+ description: 'Create a new node module, to be written in typescript, ready to rock!',
12
+ fields: {
13
+ /** . */
14
+ 'destination': {
15
+ type: 'text',
16
+ defaultValue: ".",
17
+ options: undefined
18
+ },
19
+ /** What's the name of your module?. */
20
+ 'name': {
21
+ label: 'What\'s the name of your module?',
22
+ type: 'text',
23
+ isRequired: true,
24
+ options: undefined
25
+ },
26
+ /** How would you describe your module?. */
27
+ 'description': {
28
+ label: 'How would you describe your module?',
29
+ type: 'text',
30
+ isRequired: true,
31
+ options: undefined
32
+ },
33
+ }
34
+ }
35
35
 
36
36
  SchemaRegistry.getInstance().trackSchema(nodeFeatureOptionsSchema)
37
37