@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,174 +1,175 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const syncErrorOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema =
5
- {
6
- id: 'syncErrorOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'Sync error action',
10
- description: 'Keep your errors types in sync with your builders',
11
- fields: {
12
- /** Field types directory. Where field types and interfaces will be generated. */
13
- fieldTypesDestinationDir: {
14
- label: 'Field types directory',
15
- type: 'text',
16
- isPrivate: true,
17
- hint: 'Where field types and interfaces will be generated.',
18
- defaultValue: '#spruce/schemas',
19
- options: undefined,
20
- },
21
- /** Addons lookup directory. Where I'll look for new schema fields to be registered. */
22
- addonsLookupDir: {
23
- label: 'Addons lookup directory',
24
- type: 'text',
25
- hint: "Where I'll look for new schema fields to be registered.",
26
- defaultValue: 'src/addons',
27
- options: undefined,
28
- },
29
- /** Generate field types. Should I generate field types too? */
30
- generateFieldTypes: {
31
- label: 'Generate field types',
32
- type: 'boolean',
33
- isPrivate: true,
34
- hint: 'Should I generate field types too?',
35
- defaultValue: true,
36
- options: undefined,
37
- },
38
- /** Schema types destination directory. Where I will generate schema types and interfaces. */
39
- schemaTypesDestinationDirOrFile: {
40
- label: 'Schema types destination directory',
41
- type: 'text',
42
- hint: 'Where I will generate schema types and interfaces.',
43
- defaultValue: '#spruce/schemas',
44
- options: undefined,
45
- },
46
- /** . Where I should look for your schema builders? */
47
- schemaLookupDir: {
48
- type: 'text',
49
- hint: 'Where I should look for your schema builders?',
50
- defaultValue: 'src/schemas',
51
- options: undefined,
52
- },
53
- /** Module import. When other skills use your schemas, will they import them from a module? */
54
- moduleToImportFromWhenRemote: {
55
- label: 'Module import',
56
- type: 'text',
57
- hint: 'When other skills use your schemas, will they import them from a module?',
58
- options: undefined,
59
- },
60
- /** Auto install missing dependencies. */
61
- shouldInstallMissingDependencies: {
62
- label: 'Auto install missing dependencies',
63
- type: 'boolean',
64
- options: undefined,
65
- },
66
- /** Enable versioning. Should we use versioning? */
67
- shouldEnableVersioning: {
68
- label: 'Enable versioning',
69
- type: 'boolean',
70
- isPrivate: true,
71
- hint: 'Should we use versioning?',
72
- defaultValue: true,
73
- options: undefined,
74
- },
75
- /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
76
- globalSchemaNamespace: {
77
- label: 'Global namespace',
78
- type: 'text',
79
- isPrivate: true,
80
- hint: "The name you'll use when accessing these schemas, e.g. SpruceSchemas",
81
- defaultValue: 'SpruceSchemas',
82
- options: undefined,
83
- },
84
- /** Fetch remote schemas. I will pull in schemas from other features. */
85
- shouldFetchRemoteSchemas: {
86
- label: 'Fetch remote schemas',
87
- type: 'boolean',
88
- isPrivate: true,
89
- hint: 'I will pull in schemas from other features.',
90
- defaultValue: true,
91
- options: undefined,
92
- },
93
- /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
94
- shouldFetchLocalSchemas: {
95
- label: 'Fetch local schemas',
96
- type: 'boolean',
97
- isPrivate: true,
98
- hint: 'I will look in schemaLookupDir to load local schemas.',
99
- defaultValue: true,
100
- options: undefined,
101
- },
102
- /** Fetch core schemas. Should I pull in core schemas too? */
103
- shouldFetchCoreSchemas: {
104
- label: 'Fetch core schemas',
105
- type: 'boolean',
106
- isPrivate: true,
107
- hint: 'Should I pull in core schemas too?',
108
- defaultValue: true,
109
- options: undefined,
110
- },
111
- /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */
112
- shouldGenerateCoreSchemaTypes: {
113
- label: 'Generate core schemas',
114
- type: 'boolean',
115
- isPrivate: true,
116
- hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',
117
- options: undefined,
118
- },
119
- /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
120
- registerBuiltSchemas: {
121
- label: 'Register built schemas',
122
- type: 'boolean',
123
- isPrivate: true,
124
- hint: 'Should the schemas use the SchemaRegistry for tracking?',
125
- defaultValue: true,
126
- options: undefined,
127
- },
128
- /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */
129
- generateStandaloneTypesFile: {
130
- label: 'Generate standalone types file',
131
- type: 'boolean',
132
- isPrivate: true,
133
- hint: "By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.",
134
- defaultValue: false,
135
- options: undefined,
136
- },
137
- /** message. */
138
- syncingMessage: {
139
- label: ' message',
140
- type: 'text',
141
- isPrivate: true,
142
- defaultValue: 'Syncing schemas...',
143
- options: undefined,
144
- },
145
- /** Error class destination. Where I'll save your new Error class file? */
146
- errorClassDestinationDir: {
147
- label: 'Error class destination',
148
- type: 'text',
149
- isPrivate: true,
150
- isRequired: true,
151
- hint: "Where I'll save your new Error class file?",
152
- defaultValue: 'src/errors',
153
- options: undefined,
154
- },
155
- /** . Where I should look for your error builders? */
156
- errorLookupDir: {
157
- type: 'text',
158
- hint: 'Where I should look for your error builders?',
159
- defaultValue: 'src/errors',
160
- options: undefined,
161
- },
162
- /** Types destination dir. This is where error options and type information will be written */
163
- errorTypesDestinationDir: {
164
- label: 'Types destination dir',
165
- type: 'text',
166
- hint: 'This is where error options and type information will be written',
167
- defaultValue: '#spruce/errors',
168
- options: undefined,
169
- },
170
- },
171
- }
4
+
5
+
6
+ const syncErrorOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncErrorOptionsSchema = {
7
+ id: 'syncErrorOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'Sync error action',
11
+ description: 'Keep your errors types in sync with your builders',
12
+ fields: {
13
+ /** Field types directory. Where field types and interfaces will be generated. */
14
+ 'fieldTypesDestinationDir': {
15
+ label: 'Field types directory',
16
+ type: 'text',
17
+ isPrivate: true,
18
+ hint: 'Where field types and interfaces will be generated.',
19
+ defaultValue: "#spruce/schemas",
20
+ options: undefined
21
+ },
22
+ /** Addons lookup directory. Where I'll look for new schema fields to be registered. */
23
+ 'addonsLookupDir': {
24
+ label: 'Addons lookup directory',
25
+ type: 'text',
26
+ hint: 'Where I\'ll look for new schema fields to be registered.',
27
+ defaultValue: "src/addons",
28
+ options: undefined
29
+ },
30
+ /** Generate field types. Should I generate field types too? */
31
+ 'generateFieldTypes': {
32
+ label: 'Generate field types',
33
+ type: 'boolean',
34
+ isPrivate: true,
35
+ hint: 'Should I generate field types too?',
36
+ defaultValue: true,
37
+ options: undefined
38
+ },
39
+ /** Schema types destination directory. Where I will generate schema types and interfaces. */
40
+ 'schemaTypesDestinationDirOrFile': {
41
+ label: 'Schema types destination directory',
42
+ type: 'text',
43
+ hint: 'Where I will generate schema types and interfaces.',
44
+ defaultValue: "#spruce/schemas",
45
+ options: undefined
46
+ },
47
+ /** . Where I should look for your schema builders? */
48
+ 'schemaLookupDir': {
49
+ type: 'text',
50
+ hint: 'Where I should look for your schema builders?',
51
+ defaultValue: "src/schemas",
52
+ options: undefined
53
+ },
54
+ /** Module import. When other skills use your schemas, will they import them from a module? */
55
+ 'moduleToImportFromWhenRemote': {
56
+ label: 'Module import',
57
+ type: 'text',
58
+ hint: 'When other skills use your schemas, will they import them from a module?',
59
+ options: undefined
60
+ },
61
+ /** Auto install missing dependencies. */
62
+ 'shouldInstallMissingDependencies': {
63
+ label: 'Auto install missing dependencies',
64
+ type: 'boolean',
65
+ options: undefined
66
+ },
67
+ /** Enable versioning. Should we use versioning? */
68
+ 'shouldEnableVersioning': {
69
+ label: 'Enable versioning',
70
+ type: 'boolean',
71
+ isPrivate: true,
72
+ hint: 'Should we use versioning?',
73
+ defaultValue: true,
74
+ options: undefined
75
+ },
76
+ /** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
77
+ 'globalSchemaNamespace': {
78
+ label: 'Global namespace',
79
+ type: 'text',
80
+ isPrivate: true,
81
+ hint: 'The name you\'ll use when accessing these schemas, e.g. SpruceSchemas',
82
+ defaultValue: "SpruceSchemas",
83
+ options: undefined
84
+ },
85
+ /** Fetch remote schemas. I will pull in schemas from other features. */
86
+ 'shouldFetchRemoteSchemas': {
87
+ label: 'Fetch remote schemas',
88
+ type: 'boolean',
89
+ isPrivate: true,
90
+ hint: 'I will pull in schemas from other features.',
91
+ defaultValue: true,
92
+ options: undefined
93
+ },
94
+ /** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
95
+ 'shouldFetchLocalSchemas': {
96
+ label: 'Fetch local schemas',
97
+ type: 'boolean',
98
+ isPrivate: true,
99
+ hint: 'I will look in schemaLookupDir to load local schemas.',
100
+ defaultValue: true,
101
+ options: undefined
102
+ },
103
+ /** Fetch core schemas. Should I pull in core schemas too? */
104
+ 'shouldFetchCoreSchemas': {
105
+ label: 'Fetch core schemas',
106
+ type: 'boolean',
107
+ isPrivate: true,
108
+ hint: 'Should I pull in core schemas too?',
109
+ defaultValue: true,
110
+ options: undefined
111
+ },
112
+ /** Generate core schemas. Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile. */
113
+ 'shouldGenerateCoreSchemaTypes': {
114
+ label: 'Generate core schemas',
115
+ type: 'boolean',
116
+ isPrivate: true,
117
+ hint: 'Used only for updating the @sprucelabs/spruce-core-schemas. Ensures core schemas are generated like local schemas. Also an alias for `--shouldFetchRemoteSchemas=false --shouldFetchCoreSchemas=false --generateStandaloneTypesFile.',
118
+ options: undefined
119
+ },
120
+ /** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
121
+ 'registerBuiltSchemas': {
122
+ label: 'Register built schemas',
123
+ type: 'boolean',
124
+ isPrivate: true,
125
+ hint: 'Should the schemas use the SchemaRegistry for tracking?',
126
+ defaultValue: true,
127
+ options: undefined
128
+ },
129
+ /** Generate standalone types file. By default, I'll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file. */
130
+ 'generateStandaloneTypesFile': {
131
+ label: 'Generate standalone types file',
132
+ type: 'boolean',
133
+ isPrivate: true,
134
+ hint: 'By default, I\'ll generate a types file that augments core types from @sprucelabs/spruce-core-schemas. Setting this to true will generate a stand alone types file.',
135
+ defaultValue: false,
136
+ options: undefined
137
+ },
138
+ /** message. */
139
+ 'syncingMessage': {
140
+ label: ' message',
141
+ type: 'text',
142
+ isPrivate: true,
143
+ defaultValue: "Syncing schemas...",
144
+ options: undefined
145
+ },
146
+ /** Error class destination. Where I'll save your new Error class file? */
147
+ 'errorClassDestinationDir': {
148
+ label: 'Error class destination',
149
+ type: 'text',
150
+ isPrivate: true,
151
+ isRequired: true,
152
+ hint: 'Where I\'ll save your new Error class file?',
153
+ defaultValue: "src/errors",
154
+ options: undefined
155
+ },
156
+ /** . Where I should look for your error builders? */
157
+ 'errorLookupDir': {
158
+ type: 'text',
159
+ hint: 'Where I should look for your error builders?',
160
+ defaultValue: "src/errors",
161
+ options: undefined
162
+ },
163
+ /** Types destination dir. This is where error options and type information will be written */
164
+ 'errorTypesDestinationDir': {
165
+ label: 'Types destination dir',
166
+ type: 'text',
167
+ hint: 'This is where error options and type information will be written',
168
+ defaultValue: "#spruce/errors",
169
+ options: undefined
170
+ },
171
+ }
172
+ }
172
173
 
173
174
  SchemaRegistry.getInstance().trackSchema(syncErrorOptionsSchema)
174
175
 
@@ -1,55 +1,54 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const syncEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema =
5
- {
6
- id: 'syncEventOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'sync event action',
10
- description:
11
- 'Pull down event contracts from Mercury to make them available in your skill.',
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:
41
- '@sprucelabs/mercury-types/build/types/mercury.types',
42
- options: undefined,
43
- },
44
- /** Event builder file. */
45
- eventBuilderFile: {
46
- label: 'Event builder file',
47
- type: 'text',
48
- defaultValue: '@sprucelabs/mercury-types',
49
- options: undefined,
50
- },
51
- },
52
- }
4
+
5
+
6
+ const syncEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncEventOptionsSchema = {
7
+ id: 'syncEventOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'sync event action',
11
+ description: 'Pull down event contracts from Mercury to make them available in your skill.',
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
+ }
51
+ }
53
52
 
54
53
  SchemaRegistry.getInstance().trackSchema(syncEventOptionsSchema)
55
54
 
@@ -1,42 +1,43 @@
1
1
  import { SchemaRegistry } from '@sprucelabs/schema'
2
2
  import { SpruceSchemas } from '../../schemas.types'
3
3
 
4
- const syncSchemaFieldsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema =
5
- {
6
- id: 'syncSchemaFieldsOptions',
7
- version: 'v2020_07_22',
8
- namespace: 'SpruceCli',
9
- name: 'syncSchemaFieldsOptions',
10
- description: 'Sync schema fields so you can use schemas!',
11
- fields: {
12
- /** Field types directory. Where field types and interfaces will be generated. */
13
- fieldTypesDestinationDir: {
14
- label: 'Field types directory',
15
- type: 'text',
16
- isPrivate: true,
17
- hint: 'Where field types and interfaces will be generated.',
18
- defaultValue: '#spruce/schemas',
19
- options: undefined,
20
- },
21
- /** Addons lookup directory. Where I'll look for new schema fields to be registered. */
22
- addonsLookupDir: {
23
- label: 'Addons lookup directory',
24
- type: 'text',
25
- hint: "Where I'll look for new schema fields to be registered.",
26
- defaultValue: 'src/addons',
27
- options: undefined,
28
- },
29
- /** Generate field types. Should I generate field types too? */
30
- generateFieldTypes: {
31
- label: 'Generate field types',
32
- type: 'boolean',
33
- isPrivate: true,
34
- hint: 'Should I generate field types too?',
35
- defaultValue: true,
36
- options: undefined,
37
- },
38
- },
39
- }
4
+
5
+
6
+ const syncSchemaFieldsOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.SyncSchemaFieldsOptionsSchema = {
7
+ id: 'syncSchemaFieldsOptions',
8
+ version: 'v2020_07_22',
9
+ namespace: 'SpruceCli',
10
+ name: 'syncSchemaFieldsOptions',
11
+ description: 'Sync schema fields so you can use schemas!',
12
+ fields: {
13
+ /** Field types directory. Where field types and interfaces will be generated. */
14
+ 'fieldTypesDestinationDir': {
15
+ label: 'Field types directory',
16
+ type: 'text',
17
+ isPrivate: true,
18
+ hint: 'Where field types and interfaces will be generated.',
19
+ defaultValue: "#spruce/schemas",
20
+ options: undefined
21
+ },
22
+ /** Addons lookup directory. Where I'll look for new schema fields to be registered. */
23
+ 'addonsLookupDir': {
24
+ label: 'Addons lookup directory',
25
+ type: 'text',
26
+ hint: 'Where I\'ll look for new schema fields to be registered.',
27
+ defaultValue: "src/addons",
28
+ options: undefined
29
+ },
30
+ /** Generate field types. Should I generate field types too? */
31
+ 'generateFieldTypes': {
32
+ label: 'Generate field types',
33
+ type: 'boolean',
34
+ isPrivate: true,
35
+ hint: 'Should I generate field types too?',
36
+ defaultValue: true,
37
+ options: undefined
38
+ },
39
+ }
40
+ }
40
41
 
41
42
  SchemaRegistry.getInstance().trackSchema(syncSchemaFieldsOptionsSchema)
42
43