@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.
- package/CHANGELOG.md +16 -0
- package/build/.spruce/schemas/fields/fieldClassMap.js.map +1 -1
- package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
- package/build/.spruce/schemas/schemas.types.d.ts +485 -512
- package/build/.spruce/schemas/schemas.types.js +4 -0
- package/build/.spruce/schemas/schemas.types.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js +15 -15
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js +9 -9
- package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js +5 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js +64 -64
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js +5 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js +65 -65
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js +13 -18
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js +9 -16
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js +9 -16
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js +3 -3
- package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js +24 -24
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js +23 -23
- package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js +9 -9
- package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js +7 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js +5 -16
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js +9 -9
- package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js +3 -3
- package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js +5 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js +3 -3
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js +11 -10
- package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js +52 -52
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js +15 -15
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js +10 -10
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js +46 -46
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js +14 -20
- package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js +4 -16
- package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js +4 -9
- package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js.map +1 -1
- package/build/features/schema/utilities/schema.utility.d.ts +1 -1
- package/build/features/skill/actions/CreateAction.d.ts +2 -0
- package/build/features/skill/actions/RegisterAction.js +2 -2
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.d.ts +1 -1
- package/build/features/vscode/actions/SetupAction.js +7 -3
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/schemas/v2020_07_22/skillFeature.builder.d.ts +1 -0
- package/build/schemas/v2020_07_22/skillFeature.builder.js +1 -0
- package/build/schemas/v2020_07_22/skillFeature.builder.js.map +1 -1
- package/package.json +3 -3
- package/src/.spruce/schemas/fields/fieldClassMap.ts +3 -0
- package/src/.spruce/schemas/fields/fields.types.ts +1 -6
- package/src/.spruce/schemas/schemas.types.ts +2257 -2237
- package/src/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.ts +49 -50
- package/src/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.ts +37 -36
- package/src/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.ts +27 -26
- package/src/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.ts +209 -208
- package/src/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.ts +26 -26
- package/src/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.ts +226 -225
- package/src/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.ts +49 -53
- package/src/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.ts +33 -39
- package/src/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.ts +33 -39
- package/src/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.ts +18 -20
- package/src/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.ts +76 -76
- package/src/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.ts +91 -91
- package/src/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.ts +31 -31
- package/src/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.ts +25 -23
- package/src/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.ts +11 -9
- package/src/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.ts +23 -32
- package/src/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.ts +38 -37
- package/src/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.ts +16 -17
- package/src/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.ts +25 -25
- package/src/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.ts +17 -17
- package/src/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.ts +31 -29
- package/src/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.ts +169 -168
- package/src/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.ts +48 -49
- package/src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.ts +37 -36
- package/src/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.ts +162 -161
- package/src/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.ts +55 -60
- package/src/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.ts +18 -30
- package/src/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.ts +19 -26
- package/src/features/skill/actions/RegisterAction.ts +2 -2
- package/src/features/vscode/actions/SetupAction.ts +7 -3
- package/src/schemas/v2020_07_22/skillFeature.builder.ts +1 -0
|
@@ -1,214 +1,215 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema'
|
|
2
2
|
import { SpruceSchemas } from '../../schemas.types'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const createErrorOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateErrorOptionsSchema = {
|
|
7
|
+
id: 'createErrorOptions',
|
|
8
|
+
version: 'v2020_07_22',
|
|
9
|
+
namespace: 'SpruceCli',
|
|
10
|
+
name: 'Create error action',
|
|
11
|
+
description: 'Create a builder for your brand new error! ',
|
|
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
|
+
/** Error builder destination directory. Where I'll save your new builder file? */
|
|
172
|
+
'errorBuilderDestinationDir': {
|
|
173
|
+
label: 'Error builder destination directory',
|
|
174
|
+
type: 'text',
|
|
175
|
+
isPrivate: true,
|
|
176
|
+
isRequired: true,
|
|
177
|
+
hint: 'Where I\'ll save your new builder file?',
|
|
178
|
+
defaultValue: "./src/errors",
|
|
179
|
+
options: undefined
|
|
180
|
+
},
|
|
181
|
+
/** Readable name. The name people will read */
|
|
182
|
+
'nameReadable': {
|
|
183
|
+
label: 'Readable name',
|
|
184
|
+
type: 'text',
|
|
185
|
+
isRequired: true,
|
|
186
|
+
hint: 'The name people will read',
|
|
187
|
+
options: undefined
|
|
188
|
+
},
|
|
189
|
+
/** Pascal case name. PascalCase of the name */
|
|
190
|
+
'namePascal': {
|
|
191
|
+
label: 'Pascal case name',
|
|
192
|
+
type: 'text',
|
|
193
|
+
hint: 'PascalCase of the name',
|
|
194
|
+
options: undefined
|
|
195
|
+
},
|
|
196
|
+
/** Camel case name. camelCase version of the name */
|
|
197
|
+
'nameCamel': {
|
|
198
|
+
label: 'Camel case name',
|
|
199
|
+
type: 'text',
|
|
200
|
+
isRequired: true,
|
|
201
|
+
hint: 'camelCase version of the name',
|
|
202
|
+
options: undefined
|
|
203
|
+
},
|
|
204
|
+
/** Description. Describe a bit more here */
|
|
205
|
+
'description': {
|
|
206
|
+
label: 'Description',
|
|
207
|
+
type: 'text',
|
|
208
|
+
hint: 'Describe a bit more here',
|
|
209
|
+
options: undefined
|
|
210
|
+
},
|
|
211
|
+
}
|
|
212
|
+
}
|
|
212
213
|
|
|
213
214
|
SchemaRegistry.getInstance().trackSchema(createErrorOptionsSchema)
|
|
214
215
|
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema'
|
|
2
2
|
import { SpruceSchemas } from '../../schemas.types'
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const createOrganizationOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateOrganizationOptionsSchema = {
|
|
7
|
+
id: 'createOrganizationOptions',
|
|
8
|
+
version: 'v2020_07_22',
|
|
9
|
+
namespace: 'SpruceCli',
|
|
10
|
+
name: 'create organization action',
|
|
11
|
+
description: 'Skills can only communicate with people and skills associated with the same organization. This ensures people can get differentiated experiences across multiple businesses.',
|
|
12
|
+
fields: {
|
|
13
|
+
/** Name. The name people will read */
|
|
14
|
+
'nameReadable': {
|
|
15
|
+
label: 'Name',
|
|
16
|
+
type: 'text',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
hint: 'The name people will read',
|
|
19
|
+
options: undefined
|
|
20
|
+
},
|
|
21
|
+
/** Slug. kebab-case of the name */
|
|
22
|
+
'nameKebab': {
|
|
23
|
+
label: 'Slug',
|
|
24
|
+
type: 'text',
|
|
25
|
+
hint: 'kebab-case of the name',
|
|
26
|
+
options: undefined
|
|
27
|
+
},
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
30
|
|
|
31
31
|
SchemaRegistry.getInstance().trackSchema(createOrganizationOptionsSchema)
|
|
32
32
|
|