@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,15 +1,15 @@
|
|
|
1
1
|
export { SpruceSchemas } from '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types';
|
|
2
|
-
import AbstractSpruceError from '@sprucelabs/error';
|
|
3
2
|
import { default as SchemaEntity } from '@sprucelabs/schema';
|
|
4
3
|
import * as SpruceSchema from '@sprucelabs/schema';
|
|
5
4
|
import { BaseWidget } from './../../widgets/types/widgets.types';
|
|
5
|
+
import AbstractSpruceError from '@sprucelabs/error';
|
|
6
6
|
declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schemas.types' {
|
|
7
7
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
8
8
|
interface GeneratedDir {
|
|
9
|
-
name: string;
|
|
10
|
-
path: string;
|
|
11
|
-
description?: string | undefined | null;
|
|
12
|
-
action:
|
|
9
|
+
'name': string;
|
|
10
|
+
'path': string;
|
|
11
|
+
'description'?: string | undefined | null;
|
|
12
|
+
'action': ("skipped" | "generated" | "updated" | "deleted");
|
|
13
13
|
}
|
|
14
14
|
interface GeneratedDirSchema extends SpruceSchema.Schema {
|
|
15
15
|
id: 'generatedDir';
|
|
@@ -18,45 +18,40 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
18
18
|
name: '';
|
|
19
19
|
fields: {
|
|
20
20
|
/** . */
|
|
21
|
-
name: {
|
|
21
|
+
'name': {
|
|
22
22
|
type: 'text';
|
|
23
23
|
isRequired: true;
|
|
24
24
|
options: undefined;
|
|
25
25
|
};
|
|
26
26
|
/** . */
|
|
27
|
-
path: {
|
|
27
|
+
'path': {
|
|
28
28
|
type: 'text';
|
|
29
29
|
isRequired: true;
|
|
30
30
|
options: undefined;
|
|
31
31
|
};
|
|
32
32
|
/** . */
|
|
33
|
-
description: {
|
|
33
|
+
'description': {
|
|
34
34
|
type: 'text';
|
|
35
35
|
options: undefined;
|
|
36
36
|
};
|
|
37
37
|
/** . */
|
|
38
|
-
action: {
|
|
38
|
+
'action': {
|
|
39
39
|
type: 'select';
|
|
40
40
|
isRequired: true;
|
|
41
41
|
options: {
|
|
42
|
-
choices: [
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
{
|
|
56
|
-
label: 'Deleted';
|
|
57
|
-
value: 'deleted';
|
|
58
|
-
}
|
|
59
|
-
];
|
|
42
|
+
choices: [{
|
|
43
|
+
"label": "Skipped";
|
|
44
|
+
"value": "skipped";
|
|
45
|
+
}, {
|
|
46
|
+
"label": "Generated";
|
|
47
|
+
"value": "generated";
|
|
48
|
+
}, {
|
|
49
|
+
"label": "Updated";
|
|
50
|
+
"value": "updated";
|
|
51
|
+
}, {
|
|
52
|
+
"label": "Deleted";
|
|
53
|
+
"value": "deleted";
|
|
54
|
+
}];
|
|
60
55
|
};
|
|
61
56
|
};
|
|
62
57
|
};
|
|
@@ -66,7 +61,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
66
61
|
}
|
|
67
62
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
68
63
|
interface WatcherDidDetectChangesEmitPayload {
|
|
69
|
-
changes: ({
|
|
64
|
+
'changes': ({
|
|
70
65
|
schemaId: 'generatedFile';
|
|
71
66
|
version: 'v2020_07_22';
|
|
72
67
|
values: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedFile;
|
|
@@ -83,7 +78,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
83
78
|
name: 'Watcher did detect changes emit payload';
|
|
84
79
|
fields: {
|
|
85
80
|
/** . */
|
|
86
|
-
changes: {
|
|
81
|
+
'changes': {
|
|
87
82
|
type: 'schema';
|
|
88
83
|
isRequired: true;
|
|
89
84
|
isArray: true;
|
|
@@ -100,7 +95,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
100
95
|
/** Upgrade. Everything. Heads up, this can take a few minutes. ⏱ */
|
|
101
96
|
interface UpgradeSkillOptions {
|
|
102
97
|
/** Upgrade mode. */
|
|
103
|
-
upgradeMode?: (
|
|
98
|
+
'upgradeMode'?: ("askForChanged" | "forceEverything" | "forceRequiredSkipRest") | undefined | null;
|
|
104
99
|
}
|
|
105
100
|
interface UpgradeSkillOptionsSchema extends SpruceSchema.Schema {
|
|
106
101
|
id: 'upgradeSkillOptions';
|
|
@@ -110,25 +105,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
110
105
|
description: 'Upgrade. Everything. Heads up, this can take a few minutes. ⏱';
|
|
111
106
|
fields: {
|
|
112
107
|
/** Upgrade mode. */
|
|
113
|
-
upgradeMode: {
|
|
108
|
+
'upgradeMode': {
|
|
114
109
|
label: 'Upgrade mode';
|
|
115
110
|
type: 'select';
|
|
116
|
-
defaultValue:
|
|
111
|
+
defaultValue: "askForChanged";
|
|
117
112
|
options: {
|
|
118
|
-
choices: [
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
value: 'forceRequiredSkipRest';
|
|
129
|
-
label: 'Force required (skipping all non-essential)';
|
|
130
|
-
}
|
|
131
|
-
];
|
|
113
|
+
choices: [{
|
|
114
|
+
"value": "askForChanged";
|
|
115
|
+
"label": "Ask for changed files";
|
|
116
|
+
}, {
|
|
117
|
+
"value": "forceEverything";
|
|
118
|
+
"label": "Force everything";
|
|
119
|
+
}, {
|
|
120
|
+
"value": "forceRequiredSkipRest";
|
|
121
|
+
"label": "Force required (skipping all non-essential)";
|
|
122
|
+
}];
|
|
132
123
|
};
|
|
133
124
|
};
|
|
134
125
|
};
|
|
@@ -140,17 +131,17 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
140
131
|
/** Test your might! 💪 */
|
|
141
132
|
interface TestOptions {
|
|
142
133
|
/** Report while running. Should I output the test results while they are running? */
|
|
143
|
-
shouldReportWhileRunning?: boolean | undefined | null;
|
|
134
|
+
'shouldReportWhileRunning'?: boolean | undefined | null;
|
|
144
135
|
/** Pattern. I'll filter all tests that match this pattern */
|
|
145
|
-
pattern?: string | undefined | null;
|
|
136
|
+
'pattern'?: string | undefined | null;
|
|
146
137
|
/** Inspect. Pass --inspect related args to test process. */
|
|
147
|
-
inspect?: number | undefined | null;
|
|
138
|
+
'inspect'?: number | undefined | null;
|
|
148
139
|
/** Should wait for manual start?. */
|
|
149
|
-
shouldHoldAtStart?: boolean | undefined | null;
|
|
140
|
+
'shouldHoldAtStart'?: boolean | undefined | null;
|
|
150
141
|
/** Wait until tests are finished. For testing. Returns immediately after executing test so the running process can be managed programatically. */
|
|
151
|
-
shouldReturnImmediately?: boolean | undefined | null;
|
|
142
|
+
'shouldReturnImmediately'?: boolean | undefined | null;
|
|
152
143
|
/** Watch. */
|
|
153
|
-
watchMode?: (
|
|
144
|
+
'watchMode'?: ("off" | "standard" | "smart") | undefined | null;
|
|
154
145
|
}
|
|
155
146
|
interface TestOptionsSchema extends SpruceSchema.Schema {
|
|
156
147
|
id: 'testOptions';
|
|
@@ -160,7 +151,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
160
151
|
description: 'Test your might! 💪';
|
|
161
152
|
fields: {
|
|
162
153
|
/** Report while running. Should I output the test results while they are running? */
|
|
163
|
-
shouldReportWhileRunning: {
|
|
154
|
+
'shouldReportWhileRunning': {
|
|
164
155
|
label: 'Report while running';
|
|
165
156
|
type: 'boolean';
|
|
166
157
|
hint: 'Should I output the test results while they are running?';
|
|
@@ -168,28 +159,28 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
168
159
|
options: undefined;
|
|
169
160
|
};
|
|
170
161
|
/** Pattern. I'll filter all tests that match this pattern */
|
|
171
|
-
pattern: {
|
|
162
|
+
'pattern': {
|
|
172
163
|
label: 'Pattern';
|
|
173
164
|
type: 'text';
|
|
174
|
-
hint:
|
|
165
|
+
hint: 'I\'ll filter all tests that match this pattern';
|
|
175
166
|
options: undefined;
|
|
176
167
|
};
|
|
177
168
|
/** Inspect. Pass --inspect related args to test process. */
|
|
178
|
-
inspect: {
|
|
169
|
+
'inspect': {
|
|
179
170
|
label: 'Inspect';
|
|
180
171
|
type: 'number';
|
|
181
172
|
hint: 'Pass --inspect related args to test process.';
|
|
182
173
|
options: undefined;
|
|
183
174
|
};
|
|
184
175
|
/** Should wait for manual start?. */
|
|
185
|
-
shouldHoldAtStart: {
|
|
176
|
+
'shouldHoldAtStart': {
|
|
186
177
|
label: 'Should wait for manual start?';
|
|
187
178
|
type: 'boolean';
|
|
188
179
|
defaultValue: false;
|
|
189
180
|
options: undefined;
|
|
190
181
|
};
|
|
191
182
|
/** Wait until tests are finished. For testing. Returns immediately after executing test so the running process can be managed programatically. */
|
|
192
|
-
shouldReturnImmediately: {
|
|
183
|
+
'shouldReturnImmediately': {
|
|
193
184
|
label: 'Wait until tests are finished';
|
|
194
185
|
type: 'boolean';
|
|
195
186
|
isPrivate: true;
|
|
@@ -198,24 +189,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
198
189
|
options: undefined;
|
|
199
190
|
};
|
|
200
191
|
/** Watch. */
|
|
201
|
-
watchMode: {
|
|
192
|
+
'watchMode': {
|
|
202
193
|
label: 'Watch';
|
|
203
194
|
type: 'select';
|
|
204
195
|
options: {
|
|
205
|
-
choices: [
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
value: 'smart';
|
|
216
|
-
label: 'Smart';
|
|
217
|
-
}
|
|
218
|
-
];
|
|
196
|
+
choices: [{
|
|
197
|
+
"value": "off";
|
|
198
|
+
"label": "Off";
|
|
199
|
+
}, {
|
|
200
|
+
"value": "standard";
|
|
201
|
+
"label": "Standard";
|
|
202
|
+
}, {
|
|
203
|
+
"value": "smart";
|
|
204
|
+
"label": "Smart";
|
|
205
|
+
}];
|
|
219
206
|
};
|
|
220
207
|
};
|
|
221
208
|
};
|
|
@@ -227,41 +214,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
227
214
|
/** Options for schema.sync. */
|
|
228
215
|
interface SyncSchemasOptions {
|
|
229
216
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
230
|
-
fieldTypesDestinationDir?: string | undefined | null;
|
|
217
|
+
'fieldTypesDestinationDir'?: string | undefined | null;
|
|
231
218
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
232
|
-
addonsLookupDir?: string | undefined | null;
|
|
219
|
+
'addonsLookupDir'?: string | undefined | null;
|
|
233
220
|
/** Generate field types. Should I generate field types too? */
|
|
234
|
-
generateFieldTypes?: boolean | undefined | null;
|
|
221
|
+
'generateFieldTypes'?: boolean | undefined | null;
|
|
235
222
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
236
|
-
schemaTypesDestinationDirOrFile?: string | undefined | null;
|
|
223
|
+
'schemaTypesDestinationDirOrFile'?: string | undefined | null;
|
|
237
224
|
/** . Where I should look for your schema builders? */
|
|
238
|
-
schemaLookupDir?: string | undefined | null;
|
|
225
|
+
'schemaLookupDir'?: string | undefined | null;
|
|
239
226
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
240
|
-
moduleToImportFromWhenRemote?: string | undefined | null;
|
|
227
|
+
'moduleToImportFromWhenRemote'?: string | undefined | null;
|
|
241
228
|
/** Auto install missing dependencies. */
|
|
242
|
-
shouldInstallMissingDependencies?: boolean | undefined | null;
|
|
229
|
+
'shouldInstallMissingDependencies'?: boolean | undefined | null;
|
|
243
230
|
/** Enable versioning. Should we use versioning? */
|
|
244
|
-
shouldEnableVersioning?: boolean | undefined | null;
|
|
231
|
+
'shouldEnableVersioning'?: boolean | undefined | null;
|
|
245
232
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
246
|
-
globalSchemaNamespace?: string | undefined | null;
|
|
233
|
+
'globalSchemaNamespace'?: string | undefined | null;
|
|
247
234
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
248
|
-
shouldFetchRemoteSchemas?: boolean | undefined | null;
|
|
235
|
+
'shouldFetchRemoteSchemas'?: boolean | undefined | null;
|
|
249
236
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
250
|
-
shouldFetchLocalSchemas?: boolean | undefined | null;
|
|
237
|
+
'shouldFetchLocalSchemas'?: boolean | undefined | null;
|
|
251
238
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
252
|
-
shouldFetchCoreSchemas?: boolean | undefined | null;
|
|
239
|
+
'shouldFetchCoreSchemas'?: boolean | undefined | null;
|
|
253
240
|
/** 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. */
|
|
254
|
-
shouldGenerateCoreSchemaTypes?: boolean | undefined | null;
|
|
241
|
+
'shouldGenerateCoreSchemaTypes'?: boolean | undefined | null;
|
|
255
242
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
256
|
-
registerBuiltSchemas?: boolean | undefined | null;
|
|
243
|
+
'registerBuiltSchemas'?: boolean | undefined | null;
|
|
257
244
|
/** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */
|
|
258
|
-
deleteDestinationDirIfNoSchemas?: boolean | undefined | null;
|
|
245
|
+
'deleteDestinationDirIfNoSchemas'?: boolean | undefined | null;
|
|
259
246
|
/** Delete orphaned schemas. Should I delete schemas where the builders are missing? */
|
|
260
|
-
deleteOrphanedSchemas?: boolean | undefined | null;
|
|
247
|
+
'deleteOrphanedSchemas'?: boolean | undefined | null;
|
|
261
248
|
/** 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. */
|
|
262
|
-
generateStandaloneTypesFile?: boolean | undefined | null;
|
|
249
|
+
'generateStandaloneTypesFile'?: boolean | undefined | null;
|
|
263
250
|
/** message. */
|
|
264
|
-
syncingMessage?: string | undefined | null;
|
|
251
|
+
'syncingMessage'?: string | undefined | null;
|
|
265
252
|
}
|
|
266
253
|
interface SyncSchemasOptionsSchema extends SpruceSchema.Schema {
|
|
267
254
|
id: 'syncSchemasOptions';
|
|
@@ -271,24 +258,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
271
258
|
description: 'Options for schema.sync.';
|
|
272
259
|
fields: {
|
|
273
260
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
274
|
-
fieldTypesDestinationDir: {
|
|
261
|
+
'fieldTypesDestinationDir': {
|
|
275
262
|
label: 'Field types directory';
|
|
276
263
|
type: 'text';
|
|
277
264
|
isPrivate: true;
|
|
278
265
|
hint: 'Where field types and interfaces will be generated.';
|
|
279
|
-
defaultValue:
|
|
266
|
+
defaultValue: "#spruce/schemas";
|
|
280
267
|
options: undefined;
|
|
281
268
|
};
|
|
282
269
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
283
|
-
addonsLookupDir: {
|
|
270
|
+
'addonsLookupDir': {
|
|
284
271
|
label: 'Addons lookup directory';
|
|
285
272
|
type: 'text';
|
|
286
|
-
hint:
|
|
287
|
-
defaultValue:
|
|
273
|
+
hint: 'Where I\'ll look for new schema fields to be registered.';
|
|
274
|
+
defaultValue: "src/addons";
|
|
288
275
|
options: undefined;
|
|
289
276
|
};
|
|
290
277
|
/** Generate field types. Should I generate field types too? */
|
|
291
|
-
generateFieldTypes: {
|
|
278
|
+
'generateFieldTypes': {
|
|
292
279
|
label: 'Generate field types';
|
|
293
280
|
type: 'boolean';
|
|
294
281
|
isPrivate: true;
|
|
@@ -297,35 +284,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
297
284
|
options: undefined;
|
|
298
285
|
};
|
|
299
286
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
300
|
-
schemaTypesDestinationDirOrFile: {
|
|
287
|
+
'schemaTypesDestinationDirOrFile': {
|
|
301
288
|
label: 'Schema types destination directory';
|
|
302
289
|
type: 'text';
|
|
303
290
|
hint: 'Where I will generate schema types and interfaces.';
|
|
304
|
-
defaultValue:
|
|
291
|
+
defaultValue: "#spruce/schemas";
|
|
305
292
|
options: undefined;
|
|
306
293
|
};
|
|
307
294
|
/** . Where I should look for your schema builders? */
|
|
308
|
-
schemaLookupDir: {
|
|
295
|
+
'schemaLookupDir': {
|
|
309
296
|
type: 'text';
|
|
310
297
|
hint: 'Where I should look for your schema builders?';
|
|
311
|
-
defaultValue:
|
|
298
|
+
defaultValue: "src/schemas";
|
|
312
299
|
options: undefined;
|
|
313
300
|
};
|
|
314
301
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
315
|
-
moduleToImportFromWhenRemote: {
|
|
302
|
+
'moduleToImportFromWhenRemote': {
|
|
316
303
|
label: 'Module import';
|
|
317
304
|
type: 'text';
|
|
318
305
|
hint: 'When other skills use your schemas, will they import them from a module?';
|
|
319
306
|
options: undefined;
|
|
320
307
|
};
|
|
321
308
|
/** Auto install missing dependencies. */
|
|
322
|
-
shouldInstallMissingDependencies: {
|
|
309
|
+
'shouldInstallMissingDependencies': {
|
|
323
310
|
label: 'Auto install missing dependencies';
|
|
324
311
|
type: 'boolean';
|
|
325
312
|
options: undefined;
|
|
326
313
|
};
|
|
327
314
|
/** Enable versioning. Should we use versioning? */
|
|
328
|
-
shouldEnableVersioning: {
|
|
315
|
+
'shouldEnableVersioning': {
|
|
329
316
|
label: 'Enable versioning';
|
|
330
317
|
type: 'boolean';
|
|
331
318
|
isPrivate: true;
|
|
@@ -334,16 +321,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
334
321
|
options: undefined;
|
|
335
322
|
};
|
|
336
323
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
337
|
-
globalSchemaNamespace: {
|
|
324
|
+
'globalSchemaNamespace': {
|
|
338
325
|
label: 'Global namespace';
|
|
339
326
|
type: 'text';
|
|
340
327
|
isPrivate: true;
|
|
341
|
-
hint:
|
|
342
|
-
defaultValue:
|
|
328
|
+
hint: 'The name you\'ll use when accessing these schemas, e.g. SpruceSchemas';
|
|
329
|
+
defaultValue: "SpruceSchemas";
|
|
343
330
|
options: undefined;
|
|
344
331
|
};
|
|
345
332
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
346
|
-
shouldFetchRemoteSchemas: {
|
|
333
|
+
'shouldFetchRemoteSchemas': {
|
|
347
334
|
label: 'Fetch remote schemas';
|
|
348
335
|
type: 'boolean';
|
|
349
336
|
isPrivate: true;
|
|
@@ -352,7 +339,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
352
339
|
options: undefined;
|
|
353
340
|
};
|
|
354
341
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
355
|
-
shouldFetchLocalSchemas: {
|
|
342
|
+
'shouldFetchLocalSchemas': {
|
|
356
343
|
label: 'Fetch local schemas';
|
|
357
344
|
type: 'boolean';
|
|
358
345
|
isPrivate: true;
|
|
@@ -361,7 +348,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
361
348
|
options: undefined;
|
|
362
349
|
};
|
|
363
350
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
364
|
-
shouldFetchCoreSchemas: {
|
|
351
|
+
'shouldFetchCoreSchemas': {
|
|
365
352
|
label: 'Fetch core schemas';
|
|
366
353
|
type: 'boolean';
|
|
367
354
|
isPrivate: true;
|
|
@@ -370,7 +357,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
370
357
|
options: undefined;
|
|
371
358
|
};
|
|
372
359
|
/** 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. */
|
|
373
|
-
shouldGenerateCoreSchemaTypes: {
|
|
360
|
+
'shouldGenerateCoreSchemaTypes': {
|
|
374
361
|
label: 'Generate core schemas';
|
|
375
362
|
type: 'boolean';
|
|
376
363
|
isPrivate: true;
|
|
@@ -378,7 +365,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
378
365
|
options: undefined;
|
|
379
366
|
};
|
|
380
367
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
381
|
-
registerBuiltSchemas: {
|
|
368
|
+
'registerBuiltSchemas': {
|
|
382
369
|
label: 'Register built schemas';
|
|
383
370
|
type: 'boolean';
|
|
384
371
|
isPrivate: true;
|
|
@@ -387,7 +374,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
387
374
|
options: undefined;
|
|
388
375
|
};
|
|
389
376
|
/** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */
|
|
390
|
-
deleteDestinationDirIfNoSchemas: {
|
|
377
|
+
'deleteDestinationDirIfNoSchemas': {
|
|
391
378
|
label: 'Delete directory if no schemas';
|
|
392
379
|
type: 'boolean';
|
|
393
380
|
isPrivate: true;
|
|
@@ -396,7 +383,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
396
383
|
options: undefined;
|
|
397
384
|
};
|
|
398
385
|
/** Delete orphaned schemas. Should I delete schemas where the builders are missing? */
|
|
399
|
-
deleteOrphanedSchemas: {
|
|
386
|
+
'deleteOrphanedSchemas': {
|
|
400
387
|
label: 'Delete orphaned schemas';
|
|
401
388
|
type: 'boolean';
|
|
402
389
|
isPrivate: true;
|
|
@@ -405,20 +392,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
405
392
|
options: undefined;
|
|
406
393
|
};
|
|
407
394
|
/** 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. */
|
|
408
|
-
generateStandaloneTypesFile: {
|
|
395
|
+
'generateStandaloneTypesFile': {
|
|
409
396
|
label: 'Generate standalone types file';
|
|
410
397
|
type: 'boolean';
|
|
411
398
|
isPrivate: true;
|
|
412
|
-
hint:
|
|
399
|
+
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.';
|
|
413
400
|
defaultValue: false;
|
|
414
401
|
options: undefined;
|
|
415
402
|
};
|
|
416
403
|
/** message. */
|
|
417
|
-
syncingMessage: {
|
|
404
|
+
'syncingMessage': {
|
|
418
405
|
label: ' message';
|
|
419
406
|
type: 'text';
|
|
420
407
|
isPrivate: true;
|
|
421
|
-
defaultValue:
|
|
408
|
+
defaultValue: "Syncing schemas...";
|
|
422
409
|
options: undefined;
|
|
423
410
|
};
|
|
424
411
|
};
|
|
@@ -430,11 +417,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
430
417
|
/** Sync schema fields so you can use schemas! */
|
|
431
418
|
interface SyncSchemaFieldsOptions {
|
|
432
419
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
433
|
-
fieldTypesDestinationDir?: string | undefined | null;
|
|
420
|
+
'fieldTypesDestinationDir'?: string | undefined | null;
|
|
434
421
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
435
|
-
addonsLookupDir?: string | undefined | null;
|
|
422
|
+
'addonsLookupDir'?: string | undefined | null;
|
|
436
423
|
/** Generate field types. Should I generate field types too? */
|
|
437
|
-
generateFieldTypes?: boolean | undefined | null;
|
|
424
|
+
'generateFieldTypes'?: boolean | undefined | null;
|
|
438
425
|
}
|
|
439
426
|
interface SyncSchemaFieldsOptionsSchema extends SpruceSchema.Schema {
|
|
440
427
|
id: 'syncSchemaFieldsOptions';
|
|
@@ -444,24 +431,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
444
431
|
description: 'Sync schema fields so you can use schemas!';
|
|
445
432
|
fields: {
|
|
446
433
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
447
|
-
fieldTypesDestinationDir: {
|
|
434
|
+
'fieldTypesDestinationDir': {
|
|
448
435
|
label: 'Field types directory';
|
|
449
436
|
type: 'text';
|
|
450
437
|
isPrivate: true;
|
|
451
438
|
hint: 'Where field types and interfaces will be generated.';
|
|
452
|
-
defaultValue:
|
|
439
|
+
defaultValue: "#spruce/schemas";
|
|
453
440
|
options: undefined;
|
|
454
441
|
};
|
|
455
442
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
456
|
-
addonsLookupDir: {
|
|
443
|
+
'addonsLookupDir': {
|
|
457
444
|
label: 'Addons lookup directory';
|
|
458
445
|
type: 'text';
|
|
459
|
-
hint:
|
|
460
|
-
defaultValue:
|
|
446
|
+
hint: 'Where I\'ll look for new schema fields to be registered.';
|
|
447
|
+
defaultValue: "src/addons";
|
|
461
448
|
options: undefined;
|
|
462
449
|
};
|
|
463
450
|
/** Generate field types. Should I generate field types too? */
|
|
464
|
-
generateFieldTypes: {
|
|
451
|
+
'generateFieldTypes': {
|
|
465
452
|
label: 'Generate field types';
|
|
466
453
|
type: 'boolean';
|
|
467
454
|
isPrivate: true;
|
|
@@ -478,15 +465,15 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
478
465
|
/** Pull down event contracts from Mercury to make them available in your skill. */
|
|
479
466
|
interface SyncEventOptions {
|
|
480
467
|
/** Contract destination. Where I will generate event contracts. */
|
|
481
|
-
contractDestinationDir?: string | undefined | null;
|
|
468
|
+
'contractDestinationDir'?: string | undefined | null;
|
|
482
469
|
/** Schema types lookup directory. Where I will lookup schema types and interfaces. */
|
|
483
|
-
schemaTypesLookupDir?: string | undefined | null;
|
|
470
|
+
'schemaTypesLookupDir'?: string | undefined | null;
|
|
484
471
|
/** Sync only core events. For use in @sprucelabs/mercury-types */
|
|
485
|
-
shouldSyncOnlyCoreEvents?: boolean | undefined | null;
|
|
472
|
+
'shouldSyncOnlyCoreEvents'?: boolean | undefined | null;
|
|
486
473
|
/** Event signature types file. */
|
|
487
|
-
skillEventContractTypesFile?: string | undefined | null;
|
|
474
|
+
'skillEventContractTypesFile'?: string | undefined | null;
|
|
488
475
|
/** Event builder file. */
|
|
489
|
-
eventBuilderFile?: string | undefined | null;
|
|
476
|
+
'eventBuilderFile'?: string | undefined | null;
|
|
490
477
|
}
|
|
491
478
|
interface SyncEventOptionsSchema extends SpruceSchema.Schema {
|
|
492
479
|
id: 'syncEventOptions';
|
|
@@ -496,40 +483,40 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
496
483
|
description: 'Pull down event contracts from Mercury to make them available in your skill.';
|
|
497
484
|
fields: {
|
|
498
485
|
/** Contract destination. Where I will generate event contracts. */
|
|
499
|
-
contractDestinationDir: {
|
|
486
|
+
'contractDestinationDir': {
|
|
500
487
|
label: 'Contract destination';
|
|
501
488
|
type: 'text';
|
|
502
489
|
hint: 'Where I will generate event contracts.';
|
|
503
|
-
defaultValue:
|
|
490
|
+
defaultValue: "#spruce/events";
|
|
504
491
|
options: undefined;
|
|
505
492
|
};
|
|
506
493
|
/** Schema types lookup directory. Where I will lookup schema types and interfaces. */
|
|
507
|
-
schemaTypesLookupDir: {
|
|
494
|
+
'schemaTypesLookupDir': {
|
|
508
495
|
label: 'Schema types lookup directory';
|
|
509
496
|
type: 'text';
|
|
510
497
|
hint: 'Where I will lookup schema types and interfaces.';
|
|
511
|
-
defaultValue:
|
|
498
|
+
defaultValue: "#spruce/schemas";
|
|
512
499
|
options: undefined;
|
|
513
500
|
};
|
|
514
501
|
/** Sync only core events. For use in @sprucelabs/mercury-types */
|
|
515
|
-
shouldSyncOnlyCoreEvents: {
|
|
502
|
+
'shouldSyncOnlyCoreEvents': {
|
|
516
503
|
label: 'Sync only core events';
|
|
517
504
|
type: 'boolean';
|
|
518
505
|
hint: 'For use in @sprucelabs/mercury-types';
|
|
519
506
|
options: undefined;
|
|
520
507
|
};
|
|
521
508
|
/** Event signature types file. */
|
|
522
|
-
skillEventContractTypesFile: {
|
|
509
|
+
'skillEventContractTypesFile': {
|
|
523
510
|
label: 'Event signature types file';
|
|
524
511
|
type: 'text';
|
|
525
|
-
defaultValue:
|
|
512
|
+
defaultValue: "@sprucelabs/mercury-types/build/types/mercury.types";
|
|
526
513
|
options: undefined;
|
|
527
514
|
};
|
|
528
515
|
/** Event builder file. */
|
|
529
|
-
eventBuilderFile: {
|
|
516
|
+
'eventBuilderFile': {
|
|
530
517
|
label: 'Event builder file';
|
|
531
518
|
type: 'text';
|
|
532
|
-
defaultValue:
|
|
519
|
+
defaultValue: "@sprucelabs/mercury-types";
|
|
533
520
|
options: undefined;
|
|
534
521
|
};
|
|
535
522
|
};
|
|
@@ -541,43 +528,43 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
541
528
|
/** Keep your errors types in sync with your builders */
|
|
542
529
|
interface SyncErrorOptions {
|
|
543
530
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
544
|
-
fieldTypesDestinationDir?: string | undefined | null;
|
|
531
|
+
'fieldTypesDestinationDir'?: string | undefined | null;
|
|
545
532
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
546
|
-
addonsLookupDir?: string | undefined | null;
|
|
533
|
+
'addonsLookupDir'?: string | undefined | null;
|
|
547
534
|
/** Generate field types. Should I generate field types too? */
|
|
548
|
-
generateFieldTypes?: boolean | undefined | null;
|
|
535
|
+
'generateFieldTypes'?: boolean | undefined | null;
|
|
549
536
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
550
|
-
schemaTypesDestinationDirOrFile?: string | undefined | null;
|
|
537
|
+
'schemaTypesDestinationDirOrFile'?: string | undefined | null;
|
|
551
538
|
/** . Where I should look for your schema builders? */
|
|
552
|
-
schemaLookupDir?: string | undefined | null;
|
|
539
|
+
'schemaLookupDir'?: string | undefined | null;
|
|
553
540
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
554
|
-
moduleToImportFromWhenRemote?: string | undefined | null;
|
|
541
|
+
'moduleToImportFromWhenRemote'?: string | undefined | null;
|
|
555
542
|
/** Auto install missing dependencies. */
|
|
556
|
-
shouldInstallMissingDependencies?: boolean | undefined | null;
|
|
543
|
+
'shouldInstallMissingDependencies'?: boolean | undefined | null;
|
|
557
544
|
/** Enable versioning. Should we use versioning? */
|
|
558
|
-
shouldEnableVersioning?: boolean | undefined | null;
|
|
545
|
+
'shouldEnableVersioning'?: boolean | undefined | null;
|
|
559
546
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
560
|
-
globalSchemaNamespace?: string | undefined | null;
|
|
547
|
+
'globalSchemaNamespace'?: string | undefined | null;
|
|
561
548
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
562
|
-
shouldFetchRemoteSchemas?: boolean | undefined | null;
|
|
549
|
+
'shouldFetchRemoteSchemas'?: boolean | undefined | null;
|
|
563
550
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
564
|
-
shouldFetchLocalSchemas?: boolean | undefined | null;
|
|
551
|
+
'shouldFetchLocalSchemas'?: boolean | undefined | null;
|
|
565
552
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
566
|
-
shouldFetchCoreSchemas?: boolean | undefined | null;
|
|
553
|
+
'shouldFetchCoreSchemas'?: boolean | undefined | null;
|
|
567
554
|
/** 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. */
|
|
568
|
-
shouldGenerateCoreSchemaTypes?: boolean | undefined | null;
|
|
555
|
+
'shouldGenerateCoreSchemaTypes'?: boolean | undefined | null;
|
|
569
556
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
570
|
-
registerBuiltSchemas?: boolean | undefined | null;
|
|
557
|
+
'registerBuiltSchemas'?: boolean | undefined | null;
|
|
571
558
|
/** 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. */
|
|
572
|
-
generateStandaloneTypesFile?: boolean | undefined | null;
|
|
559
|
+
'generateStandaloneTypesFile'?: boolean | undefined | null;
|
|
573
560
|
/** message. */
|
|
574
|
-
syncingMessage?: string | undefined | null;
|
|
561
|
+
'syncingMessage'?: string | undefined | null;
|
|
575
562
|
/** Error class destination. Where I'll save your new Error class file? */
|
|
576
|
-
errorClassDestinationDir: string;
|
|
563
|
+
'errorClassDestinationDir': string;
|
|
577
564
|
/** . Where I should look for your error builders? */
|
|
578
|
-
errorLookupDir?: string | undefined | null;
|
|
565
|
+
'errorLookupDir'?: string | undefined | null;
|
|
579
566
|
/** Types destination dir. This is where error options and type information will be written */
|
|
580
|
-
errorTypesDestinationDir?: string | undefined | null;
|
|
567
|
+
'errorTypesDestinationDir'?: string | undefined | null;
|
|
581
568
|
}
|
|
582
569
|
interface SyncErrorOptionsSchema extends SpruceSchema.Schema {
|
|
583
570
|
id: 'syncErrorOptions';
|
|
@@ -587,24 +574,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
587
574
|
description: 'Keep your errors types in sync with your builders';
|
|
588
575
|
fields: {
|
|
589
576
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
590
|
-
fieldTypesDestinationDir: {
|
|
577
|
+
'fieldTypesDestinationDir': {
|
|
591
578
|
label: 'Field types directory';
|
|
592
579
|
type: 'text';
|
|
593
580
|
isPrivate: true;
|
|
594
581
|
hint: 'Where field types and interfaces will be generated.';
|
|
595
|
-
defaultValue:
|
|
582
|
+
defaultValue: "#spruce/schemas";
|
|
596
583
|
options: undefined;
|
|
597
584
|
};
|
|
598
585
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
599
|
-
addonsLookupDir: {
|
|
586
|
+
'addonsLookupDir': {
|
|
600
587
|
label: 'Addons lookup directory';
|
|
601
588
|
type: 'text';
|
|
602
|
-
hint:
|
|
603
|
-
defaultValue:
|
|
589
|
+
hint: 'Where I\'ll look for new schema fields to be registered.';
|
|
590
|
+
defaultValue: "src/addons";
|
|
604
591
|
options: undefined;
|
|
605
592
|
};
|
|
606
593
|
/** Generate field types. Should I generate field types too? */
|
|
607
|
-
generateFieldTypes: {
|
|
594
|
+
'generateFieldTypes': {
|
|
608
595
|
label: 'Generate field types';
|
|
609
596
|
type: 'boolean';
|
|
610
597
|
isPrivate: true;
|
|
@@ -613,35 +600,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
613
600
|
options: undefined;
|
|
614
601
|
};
|
|
615
602
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
616
|
-
schemaTypesDestinationDirOrFile: {
|
|
603
|
+
'schemaTypesDestinationDirOrFile': {
|
|
617
604
|
label: 'Schema types destination directory';
|
|
618
605
|
type: 'text';
|
|
619
606
|
hint: 'Where I will generate schema types and interfaces.';
|
|
620
|
-
defaultValue:
|
|
607
|
+
defaultValue: "#spruce/schemas";
|
|
621
608
|
options: undefined;
|
|
622
609
|
};
|
|
623
610
|
/** . Where I should look for your schema builders? */
|
|
624
|
-
schemaLookupDir: {
|
|
611
|
+
'schemaLookupDir': {
|
|
625
612
|
type: 'text';
|
|
626
613
|
hint: 'Where I should look for your schema builders?';
|
|
627
|
-
defaultValue:
|
|
614
|
+
defaultValue: "src/schemas";
|
|
628
615
|
options: undefined;
|
|
629
616
|
};
|
|
630
617
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
631
|
-
moduleToImportFromWhenRemote: {
|
|
618
|
+
'moduleToImportFromWhenRemote': {
|
|
632
619
|
label: 'Module import';
|
|
633
620
|
type: 'text';
|
|
634
621
|
hint: 'When other skills use your schemas, will they import them from a module?';
|
|
635
622
|
options: undefined;
|
|
636
623
|
};
|
|
637
624
|
/** Auto install missing dependencies. */
|
|
638
|
-
shouldInstallMissingDependencies: {
|
|
625
|
+
'shouldInstallMissingDependencies': {
|
|
639
626
|
label: 'Auto install missing dependencies';
|
|
640
627
|
type: 'boolean';
|
|
641
628
|
options: undefined;
|
|
642
629
|
};
|
|
643
630
|
/** Enable versioning. Should we use versioning? */
|
|
644
|
-
shouldEnableVersioning: {
|
|
631
|
+
'shouldEnableVersioning': {
|
|
645
632
|
label: 'Enable versioning';
|
|
646
633
|
type: 'boolean';
|
|
647
634
|
isPrivate: true;
|
|
@@ -650,16 +637,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
650
637
|
options: undefined;
|
|
651
638
|
};
|
|
652
639
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
653
|
-
globalSchemaNamespace: {
|
|
640
|
+
'globalSchemaNamespace': {
|
|
654
641
|
label: 'Global namespace';
|
|
655
642
|
type: 'text';
|
|
656
643
|
isPrivate: true;
|
|
657
|
-
hint:
|
|
658
|
-
defaultValue:
|
|
644
|
+
hint: 'The name you\'ll use when accessing these schemas, e.g. SpruceSchemas';
|
|
645
|
+
defaultValue: "SpruceSchemas";
|
|
659
646
|
options: undefined;
|
|
660
647
|
};
|
|
661
648
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
662
|
-
shouldFetchRemoteSchemas: {
|
|
649
|
+
'shouldFetchRemoteSchemas': {
|
|
663
650
|
label: 'Fetch remote schemas';
|
|
664
651
|
type: 'boolean';
|
|
665
652
|
isPrivate: true;
|
|
@@ -668,7 +655,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
668
655
|
options: undefined;
|
|
669
656
|
};
|
|
670
657
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
671
|
-
shouldFetchLocalSchemas: {
|
|
658
|
+
'shouldFetchLocalSchemas': {
|
|
672
659
|
label: 'Fetch local schemas';
|
|
673
660
|
type: 'boolean';
|
|
674
661
|
isPrivate: true;
|
|
@@ -677,7 +664,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
677
664
|
options: undefined;
|
|
678
665
|
};
|
|
679
666
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
680
|
-
shouldFetchCoreSchemas: {
|
|
667
|
+
'shouldFetchCoreSchemas': {
|
|
681
668
|
label: 'Fetch core schemas';
|
|
682
669
|
type: 'boolean';
|
|
683
670
|
isPrivate: true;
|
|
@@ -686,7 +673,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
686
673
|
options: undefined;
|
|
687
674
|
};
|
|
688
675
|
/** 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. */
|
|
689
|
-
shouldGenerateCoreSchemaTypes: {
|
|
676
|
+
'shouldGenerateCoreSchemaTypes': {
|
|
690
677
|
label: 'Generate core schemas';
|
|
691
678
|
type: 'boolean';
|
|
692
679
|
isPrivate: true;
|
|
@@ -694,7 +681,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
694
681
|
options: undefined;
|
|
695
682
|
};
|
|
696
683
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
697
|
-
registerBuiltSchemas: {
|
|
684
|
+
'registerBuiltSchemas': {
|
|
698
685
|
label: 'Register built schemas';
|
|
699
686
|
type: 'boolean';
|
|
700
687
|
isPrivate: true;
|
|
@@ -703,45 +690,45 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
703
690
|
options: undefined;
|
|
704
691
|
};
|
|
705
692
|
/** 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. */
|
|
706
|
-
generateStandaloneTypesFile: {
|
|
693
|
+
'generateStandaloneTypesFile': {
|
|
707
694
|
label: 'Generate standalone types file';
|
|
708
695
|
type: 'boolean';
|
|
709
696
|
isPrivate: true;
|
|
710
|
-
hint:
|
|
697
|
+
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.';
|
|
711
698
|
defaultValue: false;
|
|
712
699
|
options: undefined;
|
|
713
700
|
};
|
|
714
701
|
/** message. */
|
|
715
|
-
syncingMessage: {
|
|
702
|
+
'syncingMessage': {
|
|
716
703
|
label: ' message';
|
|
717
704
|
type: 'text';
|
|
718
705
|
isPrivate: true;
|
|
719
|
-
defaultValue:
|
|
706
|
+
defaultValue: "Syncing schemas...";
|
|
720
707
|
options: undefined;
|
|
721
708
|
};
|
|
722
709
|
/** Error class destination. Where I'll save your new Error class file? */
|
|
723
|
-
errorClassDestinationDir: {
|
|
710
|
+
'errorClassDestinationDir': {
|
|
724
711
|
label: 'Error class destination';
|
|
725
712
|
type: 'text';
|
|
726
713
|
isPrivate: true;
|
|
727
714
|
isRequired: true;
|
|
728
|
-
hint:
|
|
729
|
-
defaultValue:
|
|
715
|
+
hint: 'Where I\'ll save your new Error class file?';
|
|
716
|
+
defaultValue: "src/errors";
|
|
730
717
|
options: undefined;
|
|
731
718
|
};
|
|
732
719
|
/** . Where I should look for your error builders? */
|
|
733
|
-
errorLookupDir: {
|
|
720
|
+
'errorLookupDir': {
|
|
734
721
|
type: 'text';
|
|
735
722
|
hint: 'Where I should look for your error builders?';
|
|
736
|
-
defaultValue:
|
|
723
|
+
defaultValue: "src/errors";
|
|
737
724
|
options: undefined;
|
|
738
725
|
};
|
|
739
726
|
/** Types destination dir. This is where error options and type information will be written */
|
|
740
|
-
errorTypesDestinationDir: {
|
|
727
|
+
'errorTypesDestinationDir': {
|
|
741
728
|
label: 'Types destination dir';
|
|
742
729
|
type: 'text';
|
|
743
730
|
hint: 'This is where error options and type information will be written';
|
|
744
|
-
defaultValue:
|
|
731
|
+
defaultValue: "#spruce/errors";
|
|
745
732
|
options: undefined;
|
|
746
733
|
};
|
|
747
734
|
};
|
|
@@ -751,11 +738,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
751
738
|
}
|
|
752
739
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
753
740
|
interface SkillFeature {
|
|
754
|
-
destination?: string | undefined | null;
|
|
755
|
-
/** What's the name of your skill?. */
|
|
756
|
-
name: string;
|
|
741
|
+
'destination'?: string | undefined | null;
|
|
742
|
+
/** What's the name of your skill?. This marketing focused, like "8-bit Stories" or "Adventures". */
|
|
743
|
+
'name': string;
|
|
757
744
|
/** How would you describe your skill?. */
|
|
758
|
-
description: string;
|
|
745
|
+
'description': string;
|
|
759
746
|
}
|
|
760
747
|
interface SkillFeatureSchema extends SpruceSchema.Schema {
|
|
761
748
|
id: 'skillFeature';
|
|
@@ -764,20 +751,21 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
764
751
|
name: 'Skill feature options';
|
|
765
752
|
fields: {
|
|
766
753
|
/** . */
|
|
767
|
-
destination: {
|
|
754
|
+
'destination': {
|
|
768
755
|
type: 'text';
|
|
769
|
-
defaultValue:
|
|
756
|
+
defaultValue: ".";
|
|
770
757
|
options: undefined;
|
|
771
758
|
};
|
|
772
|
-
/** What's the name of your skill?. */
|
|
773
|
-
name: {
|
|
774
|
-
label:
|
|
759
|
+
/** What's the name of your skill?. This marketing focused, like "8-bit Stories" or "Adventures". */
|
|
760
|
+
'name': {
|
|
761
|
+
label: 'What\'s the name of your skill?';
|
|
775
762
|
type: 'text';
|
|
776
763
|
isRequired: true;
|
|
764
|
+
hint: 'This marketing focused, like "8-bit Stories" or "Adventures".';
|
|
777
765
|
options: undefined;
|
|
778
766
|
};
|
|
779
767
|
/** How would you describe your skill?. */
|
|
780
|
-
description: {
|
|
768
|
+
'description': {
|
|
781
769
|
label: 'How would you describe your skill?';
|
|
782
770
|
type: 'text';
|
|
783
771
|
isRequired: true;
|
|
@@ -792,7 +780,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
792
780
|
/** Install vscode extensions, launch configs, and settings the Spruce team uses in-house! */
|
|
793
781
|
interface SetupVscodeOptions {
|
|
794
782
|
/** Install everything. */
|
|
795
|
-
all?: boolean | undefined | null;
|
|
783
|
+
'all'?: boolean | undefined | null;
|
|
796
784
|
}
|
|
797
785
|
interface SetupVscodeOptionsSchema extends SpruceSchema.Schema {
|
|
798
786
|
id: 'setupVscodeOptions';
|
|
@@ -802,7 +790,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
802
790
|
description: 'Install vscode extensions, launch configs, and settings the Spruce team uses in-house!';
|
|
803
791
|
fields: {
|
|
804
792
|
/** Install everything. */
|
|
805
|
-
all: {
|
|
793
|
+
'all': {
|
|
806
794
|
label: 'Install everything';
|
|
807
795
|
type: 'boolean';
|
|
808
796
|
options: undefined;
|
|
@@ -816,9 +804,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
816
804
|
/** Use this with in your CI/CD environment to get your skill ready to run tests. */
|
|
817
805
|
interface SetupTestsOptions {
|
|
818
806
|
/** Demo phone number. */
|
|
819
|
-
demoNumber: string;
|
|
807
|
+
'demoNumber': string;
|
|
820
808
|
/** Namespace. */
|
|
821
|
-
skillSlug: string;
|
|
809
|
+
'skillSlug': string;
|
|
822
810
|
}
|
|
823
811
|
interface SetupTestsOptionsSchema extends SpruceSchema.Schema {
|
|
824
812
|
id: 'setupTestsOptions';
|
|
@@ -828,14 +816,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
828
816
|
description: 'Use this with in your CI/CD environment to get your skill ready to run tests.';
|
|
829
817
|
fields: {
|
|
830
818
|
/** Demo phone number. */
|
|
831
|
-
demoNumber: {
|
|
819
|
+
'demoNumber': {
|
|
832
820
|
label: 'Demo phone number';
|
|
833
821
|
type: 'phone';
|
|
834
822
|
isRequired: true;
|
|
835
823
|
options: undefined;
|
|
836
824
|
};
|
|
837
825
|
/** Namespace. */
|
|
838
|
-
skillSlug: {
|
|
826
|
+
'skillSlug': {
|
|
839
827
|
label: 'Namespace';
|
|
840
828
|
type: 'text';
|
|
841
829
|
isRequired: true;
|
|
@@ -848,7 +836,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
848
836
|
}
|
|
849
837
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
850
838
|
interface RegisterDashboardWidgetsEmitPayloadSchema {
|
|
851
|
-
widgets?: BaseWidget | undefined | null;
|
|
839
|
+
'widgets'?: (BaseWidget) | undefined | null;
|
|
852
840
|
}
|
|
853
841
|
interface RegisterDashboardWidgetsEmitPayloadSchemaSchema extends SpruceSchema.Schema {
|
|
854
842
|
id: 'registerDashboardWidgetsEmitPayloadSchema';
|
|
@@ -857,7 +845,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
857
845
|
name: 'register dashboard widgets emit payload schema';
|
|
858
846
|
fields: {
|
|
859
847
|
/** . */
|
|
860
|
-
widgets: {
|
|
848
|
+
'widgets': {
|
|
861
849
|
type: 'raw';
|
|
862
850
|
options: {
|
|
863
851
|
valueType: `BaseWidget`;
|
|
@@ -872,12 +860,12 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
872
860
|
/** A stripped down cli user with token details for login */
|
|
873
861
|
interface PersonWithToken {
|
|
874
862
|
/** Id. */
|
|
875
|
-
id: string;
|
|
863
|
+
'id': string;
|
|
876
864
|
/** Casual name. The name you can use when talking to this person. */
|
|
877
|
-
casualName: string;
|
|
878
|
-
token: string;
|
|
865
|
+
'casualName': string;
|
|
866
|
+
'token': string;
|
|
879
867
|
/** Logged in. */
|
|
880
|
-
isLoggedIn?: boolean | undefined | null;
|
|
868
|
+
'isLoggedIn'?: boolean | undefined | null;
|
|
881
869
|
}
|
|
882
870
|
interface PersonWithTokenSchema extends SpruceSchema.Schema {
|
|
883
871
|
id: 'personWithToken';
|
|
@@ -887,14 +875,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
887
875
|
description: 'A stripped down cli user with token details for login';
|
|
888
876
|
fields: {
|
|
889
877
|
/** Id. */
|
|
890
|
-
id: {
|
|
878
|
+
'id': {
|
|
891
879
|
label: 'Id';
|
|
892
880
|
type: 'id';
|
|
893
881
|
isRequired: true;
|
|
894
882
|
options: undefined;
|
|
895
883
|
};
|
|
896
884
|
/** Casual name. The name you can use when talking to this person. */
|
|
897
|
-
casualName: {
|
|
885
|
+
'casualName': {
|
|
898
886
|
label: 'Casual name';
|
|
899
887
|
type: 'text';
|
|
900
888
|
isRequired: true;
|
|
@@ -902,13 +890,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
902
890
|
options: undefined;
|
|
903
891
|
};
|
|
904
892
|
/** . */
|
|
905
|
-
token: {
|
|
893
|
+
'token': {
|
|
906
894
|
type: 'text';
|
|
907
895
|
isRequired: true;
|
|
908
896
|
options: undefined;
|
|
909
897
|
};
|
|
910
898
|
/** Logged in. */
|
|
911
|
-
isLoggedIn: {
|
|
899
|
+
'isLoggedIn': {
|
|
912
900
|
label: 'Logged in';
|
|
913
901
|
type: 'boolean';
|
|
914
902
|
options: undefined;
|
|
@@ -922,9 +910,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
922
910
|
/** Track onboarding progress and tutorials & quizzes completed. */
|
|
923
911
|
interface Onboarding {
|
|
924
912
|
/** mode. */
|
|
925
|
-
mode:
|
|
913
|
+
'mode': ("short" | "immersive" | "off");
|
|
926
914
|
/** Stage. */
|
|
927
|
-
stage?: (
|
|
915
|
+
'stage'?: ("create.skill" | "test") | undefined | null;
|
|
928
916
|
}
|
|
929
917
|
interface OnboardingSchema extends SpruceSchema.Schema {
|
|
930
918
|
id: 'onboarding';
|
|
@@ -934,42 +922,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
934
922
|
description: 'Track onboarding progress and tutorials & quizzes completed.';
|
|
935
923
|
fields: {
|
|
936
924
|
/** mode. */
|
|
937
|
-
mode: {
|
|
925
|
+
'mode': {
|
|
938
926
|
label: 'mode';
|
|
939
927
|
type: 'select';
|
|
940
928
|
isRequired: true;
|
|
941
929
|
options: {
|
|
942
|
-
choices: [
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
label: 'Off';
|
|
953
|
-
value: 'off';
|
|
954
|
-
}
|
|
955
|
-
];
|
|
930
|
+
choices: [{
|
|
931
|
+
"label": "Short";
|
|
932
|
+
"value": "short";
|
|
933
|
+
}, {
|
|
934
|
+
"label": "Immersive";
|
|
935
|
+
"value": "immersive";
|
|
936
|
+
}, {
|
|
937
|
+
"label": "Off";
|
|
938
|
+
"value": "off";
|
|
939
|
+
}];
|
|
956
940
|
};
|
|
957
941
|
};
|
|
958
942
|
/** Stage. */
|
|
959
|
-
stage: {
|
|
943
|
+
'stage': {
|
|
960
944
|
label: 'Stage';
|
|
961
945
|
type: 'select';
|
|
962
946
|
options: {
|
|
963
|
-
choices: [
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
value: 'test';
|
|
971
|
-
}
|
|
972
|
-
];
|
|
947
|
+
choices: [{
|
|
948
|
+
"label": "Create skill";
|
|
949
|
+
"value": "create.skill";
|
|
950
|
+
}, {
|
|
951
|
+
"label": "Test";
|
|
952
|
+
"value": "test";
|
|
953
|
+
}];
|
|
973
954
|
};
|
|
974
955
|
};
|
|
975
956
|
};
|
|
@@ -995,11 +976,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
995
976
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
996
977
|
/** Create a new node module, to be written in typescript, ready to rock! */
|
|
997
978
|
interface NodeFeatureOptions {
|
|
998
|
-
destination?: string | undefined | null;
|
|
979
|
+
'destination'?: string | undefined | null;
|
|
999
980
|
/** What's the name of your module?. */
|
|
1000
|
-
name: string;
|
|
981
|
+
'name': string;
|
|
1001
982
|
/** How would you describe your module?. */
|
|
1002
|
-
description: string;
|
|
983
|
+
'description': string;
|
|
1003
984
|
}
|
|
1004
985
|
interface NodeFeatureOptionsSchema extends SpruceSchema.Schema {
|
|
1005
986
|
id: 'nodeFeatureOptions';
|
|
@@ -1009,20 +990,20 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1009
990
|
description: 'Create a new node module, to be written in typescript, ready to rock!';
|
|
1010
991
|
fields: {
|
|
1011
992
|
/** . */
|
|
1012
|
-
destination: {
|
|
993
|
+
'destination': {
|
|
1013
994
|
type: 'text';
|
|
1014
|
-
defaultValue:
|
|
995
|
+
defaultValue: ".";
|
|
1015
996
|
options: undefined;
|
|
1016
997
|
};
|
|
1017
998
|
/** What's the name of your module?. */
|
|
1018
|
-
name: {
|
|
1019
|
-
label:
|
|
999
|
+
'name': {
|
|
1000
|
+
label: 'What\'s the name of your module?';
|
|
1020
1001
|
type: 'text';
|
|
1021
1002
|
isRequired: true;
|
|
1022
1003
|
options: undefined;
|
|
1023
1004
|
};
|
|
1024
1005
|
/** How would you describe your module?. */
|
|
1025
|
-
description: {
|
|
1006
|
+
'description': {
|
|
1026
1007
|
label: 'How would you describe your module?';
|
|
1027
1008
|
type: 'text';
|
|
1028
1009
|
isRequired: true;
|
|
@@ -1037,27 +1018,27 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1037
1018
|
/** Used to collect input on the names of a class or interface */
|
|
1038
1019
|
interface NamedTemplateItem {
|
|
1039
1020
|
/** Readable name. The name people will read */
|
|
1040
|
-
nameReadable: string;
|
|
1021
|
+
'nameReadable': string;
|
|
1041
1022
|
/** Readable name (plural). The plural form of the name people will read */
|
|
1042
|
-
nameReadablePlural: string;
|
|
1023
|
+
'nameReadablePlural': string;
|
|
1043
1024
|
/** Camel case name. camelCase version of the name */
|
|
1044
|
-
nameCamel: string;
|
|
1025
|
+
'nameCamel': string;
|
|
1045
1026
|
/** Plural camel case name. camelCase version of the name */
|
|
1046
|
-
nameCamelPlural?: string | undefined | null;
|
|
1027
|
+
'nameCamelPlural'?: string | undefined | null;
|
|
1047
1028
|
/** Pascal case name. PascalCase of the name */
|
|
1048
|
-
namePascal?: string | undefined | null;
|
|
1029
|
+
'namePascal'?: string | undefined | null;
|
|
1049
1030
|
/** Plural Pascal case name. PascalCase of the name */
|
|
1050
|
-
namePascalPlural?: string | undefined | null;
|
|
1031
|
+
'namePascalPlural'?: string | undefined | null;
|
|
1051
1032
|
/** Constant case name. CONST_CASE of the name */
|
|
1052
|
-
nameConst?: string | undefined | null;
|
|
1033
|
+
'nameConst'?: string | undefined | null;
|
|
1053
1034
|
/** Kebab case name. kebab-case of the name */
|
|
1054
|
-
nameKebab?: string | undefined | null;
|
|
1035
|
+
'nameKebab'?: string | undefined | null;
|
|
1055
1036
|
/** Snake case name. snake_case of the name */
|
|
1056
|
-
nameSnake?: string | undefined | null;
|
|
1037
|
+
'nameSnake'?: string | undefined | null;
|
|
1057
1038
|
/** Snake case name (plural). snakes_case of the name */
|
|
1058
|
-
nameSnakePlural?: string | undefined | null;
|
|
1039
|
+
'nameSnakePlural'?: string | undefined | null;
|
|
1059
1040
|
/** Description. Describe a bit more here */
|
|
1060
|
-
description?: string | undefined | null;
|
|
1041
|
+
'description'?: string | undefined | null;
|
|
1061
1042
|
}
|
|
1062
1043
|
interface NamedTemplateItemSchema extends SpruceSchema.Schema {
|
|
1063
1044
|
id: 'namedTemplateItem';
|
|
@@ -1067,7 +1048,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1067
1048
|
description: 'Used to collect input on the names of a class or interface';
|
|
1068
1049
|
fields: {
|
|
1069
1050
|
/** Readable name. The name people will read */
|
|
1070
|
-
nameReadable: {
|
|
1051
|
+
'nameReadable': {
|
|
1071
1052
|
label: 'Readable name';
|
|
1072
1053
|
type: 'text';
|
|
1073
1054
|
isRequired: true;
|
|
@@ -1075,7 +1056,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1075
1056
|
options: undefined;
|
|
1076
1057
|
};
|
|
1077
1058
|
/** Readable name (plural). The plural form of the name people will read */
|
|
1078
|
-
nameReadablePlural: {
|
|
1059
|
+
'nameReadablePlural': {
|
|
1079
1060
|
label: 'Readable name (plural)';
|
|
1080
1061
|
type: 'text';
|
|
1081
1062
|
isRequired: true;
|
|
@@ -1083,7 +1064,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1083
1064
|
options: undefined;
|
|
1084
1065
|
};
|
|
1085
1066
|
/** Camel case name. camelCase version of the name */
|
|
1086
|
-
nameCamel: {
|
|
1067
|
+
'nameCamel': {
|
|
1087
1068
|
label: 'Camel case name';
|
|
1088
1069
|
type: 'text';
|
|
1089
1070
|
isRequired: true;
|
|
@@ -1091,56 +1072,56 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1091
1072
|
options: undefined;
|
|
1092
1073
|
};
|
|
1093
1074
|
/** Plural camel case name. camelCase version of the name */
|
|
1094
|
-
nameCamelPlural: {
|
|
1075
|
+
'nameCamelPlural': {
|
|
1095
1076
|
label: 'Plural camel case name';
|
|
1096
1077
|
type: 'text';
|
|
1097
1078
|
hint: 'camelCase version of the name';
|
|
1098
1079
|
options: undefined;
|
|
1099
1080
|
};
|
|
1100
1081
|
/** Pascal case name. PascalCase of the name */
|
|
1101
|
-
namePascal: {
|
|
1082
|
+
'namePascal': {
|
|
1102
1083
|
label: 'Pascal case name';
|
|
1103
1084
|
type: 'text';
|
|
1104
1085
|
hint: 'PascalCase of the name';
|
|
1105
1086
|
options: undefined;
|
|
1106
1087
|
};
|
|
1107
1088
|
/** Plural Pascal case name. PascalCase of the name */
|
|
1108
|
-
namePascalPlural: {
|
|
1089
|
+
'namePascalPlural': {
|
|
1109
1090
|
label: 'Plural Pascal case name';
|
|
1110
1091
|
type: 'text';
|
|
1111
1092
|
hint: 'PascalCase of the name';
|
|
1112
1093
|
options: undefined;
|
|
1113
1094
|
};
|
|
1114
1095
|
/** Constant case name. CONST_CASE of the name */
|
|
1115
|
-
nameConst: {
|
|
1096
|
+
'nameConst': {
|
|
1116
1097
|
label: 'Constant case name';
|
|
1117
1098
|
type: 'text';
|
|
1118
1099
|
hint: 'CONST_CASE of the name';
|
|
1119
1100
|
options: undefined;
|
|
1120
1101
|
};
|
|
1121
1102
|
/** Kebab case name. kebab-case of the name */
|
|
1122
|
-
nameKebab: {
|
|
1103
|
+
'nameKebab': {
|
|
1123
1104
|
label: 'Kebab case name';
|
|
1124
1105
|
type: 'text';
|
|
1125
1106
|
hint: 'kebab-case of the name';
|
|
1126
1107
|
options: undefined;
|
|
1127
1108
|
};
|
|
1128
1109
|
/** Snake case name. snake_case of the name */
|
|
1129
|
-
nameSnake: {
|
|
1110
|
+
'nameSnake': {
|
|
1130
1111
|
label: 'Snake case name';
|
|
1131
1112
|
type: 'text';
|
|
1132
1113
|
hint: 'snake_case of the name';
|
|
1133
1114
|
options: undefined;
|
|
1134
1115
|
};
|
|
1135
1116
|
/** Snake case name (plural). snakes_case of the name */
|
|
1136
|
-
nameSnakePlural: {
|
|
1117
|
+
'nameSnakePlural': {
|
|
1137
1118
|
label: 'Snake case name (plural)';
|
|
1138
1119
|
type: 'text';
|
|
1139
1120
|
hint: 'snakes_case of the name';
|
|
1140
1121
|
options: undefined;
|
|
1141
1122
|
};
|
|
1142
1123
|
/** Description. Describe a bit more here */
|
|
1143
|
-
description: {
|
|
1124
|
+
'description': {
|
|
1144
1125
|
label: 'Description';
|
|
1145
1126
|
type: 'text';
|
|
1146
1127
|
hint: 'Describe a bit more here';
|
|
@@ -1155,23 +1136,23 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1155
1136
|
/** Options for event.listen. */
|
|
1156
1137
|
interface ListenEventOptions {
|
|
1157
1138
|
/** Contract destination. Where I will generate event contracts. */
|
|
1158
|
-
contractDestinationDir?: string | undefined | null;
|
|
1139
|
+
'contractDestinationDir'?: string | undefined | null;
|
|
1159
1140
|
/** Schema types lookup directory. Where I will lookup schema types and interfaces. */
|
|
1160
|
-
schemaTypesLookupDir?: string | undefined | null;
|
|
1141
|
+
'schemaTypesLookupDir'?: string | undefined | null;
|
|
1161
1142
|
/** Sync only core events. For use in @sprucelabs/mercury-types */
|
|
1162
|
-
shouldSyncOnlyCoreEvents?: boolean | undefined | null;
|
|
1143
|
+
'shouldSyncOnlyCoreEvents'?: boolean | undefined | null;
|
|
1163
1144
|
/** Event signature types file. */
|
|
1164
|
-
skillEventContractTypesFile?: string | undefined | null;
|
|
1145
|
+
'skillEventContractTypesFile'?: string | undefined | null;
|
|
1165
1146
|
/** Event builder file. */
|
|
1166
|
-
eventBuilderFile?: string | undefined | null;
|
|
1147
|
+
'eventBuilderFile'?: string | undefined | null;
|
|
1167
1148
|
/** Namespace. */
|
|
1168
|
-
namespace?: string | undefined | null;
|
|
1149
|
+
'namespace'?: string | undefined | null;
|
|
1169
1150
|
/** Event name. */
|
|
1170
|
-
eventName?: string | undefined | null;
|
|
1151
|
+
'eventName'?: string | undefined | null;
|
|
1171
1152
|
/** Events destination directory. Where should I add your listeners? */
|
|
1172
|
-
listenerDestinationDir?: string | undefined | null;
|
|
1153
|
+
'listenerDestinationDir'?: string | undefined | null;
|
|
1173
1154
|
/** Version. Set a version yourself instead of letting me generate one for you */
|
|
1174
|
-
version?: string | undefined | null;
|
|
1155
|
+
'version'?: string | undefined | null;
|
|
1175
1156
|
}
|
|
1176
1157
|
interface ListenEventOptionsSchema extends SpruceSchema.Schema {
|
|
1177
1158
|
id: 'listenEventOptions';
|
|
@@ -1181,64 +1162,64 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1181
1162
|
description: 'Options for event.listen.';
|
|
1182
1163
|
fields: {
|
|
1183
1164
|
/** Contract destination. Where I will generate event contracts. */
|
|
1184
|
-
contractDestinationDir: {
|
|
1165
|
+
'contractDestinationDir': {
|
|
1185
1166
|
label: 'Contract destination';
|
|
1186
1167
|
type: 'text';
|
|
1187
1168
|
hint: 'Where I will generate event contracts.';
|
|
1188
|
-
defaultValue:
|
|
1169
|
+
defaultValue: "#spruce/events";
|
|
1189
1170
|
options: undefined;
|
|
1190
1171
|
};
|
|
1191
1172
|
/** Schema types lookup directory. Where I will lookup schema types and interfaces. */
|
|
1192
|
-
schemaTypesLookupDir: {
|
|
1173
|
+
'schemaTypesLookupDir': {
|
|
1193
1174
|
label: 'Schema types lookup directory';
|
|
1194
1175
|
type: 'text';
|
|
1195
1176
|
hint: 'Where I will lookup schema types and interfaces.';
|
|
1196
|
-
defaultValue:
|
|
1177
|
+
defaultValue: "#spruce/schemas";
|
|
1197
1178
|
options: undefined;
|
|
1198
1179
|
};
|
|
1199
1180
|
/** Sync only core events. For use in @sprucelabs/mercury-types */
|
|
1200
|
-
shouldSyncOnlyCoreEvents: {
|
|
1181
|
+
'shouldSyncOnlyCoreEvents': {
|
|
1201
1182
|
label: 'Sync only core events';
|
|
1202
1183
|
type: 'boolean';
|
|
1203
1184
|
hint: 'For use in @sprucelabs/mercury-types';
|
|
1204
1185
|
options: undefined;
|
|
1205
1186
|
};
|
|
1206
1187
|
/** Event signature types file. */
|
|
1207
|
-
skillEventContractTypesFile: {
|
|
1188
|
+
'skillEventContractTypesFile': {
|
|
1208
1189
|
label: 'Event signature types file';
|
|
1209
1190
|
type: 'text';
|
|
1210
|
-
defaultValue:
|
|
1191
|
+
defaultValue: "@sprucelabs/mercury-types/build/types/mercury.types";
|
|
1211
1192
|
options: undefined;
|
|
1212
1193
|
};
|
|
1213
1194
|
/** Event builder file. */
|
|
1214
|
-
eventBuilderFile: {
|
|
1195
|
+
'eventBuilderFile': {
|
|
1215
1196
|
label: 'Event builder file';
|
|
1216
1197
|
type: 'text';
|
|
1217
|
-
defaultValue:
|
|
1198
|
+
defaultValue: "@sprucelabs/mercury-types";
|
|
1218
1199
|
options: undefined;
|
|
1219
1200
|
};
|
|
1220
1201
|
/** Namespace. */
|
|
1221
|
-
namespace: {
|
|
1202
|
+
'namespace': {
|
|
1222
1203
|
label: 'Namespace';
|
|
1223
1204
|
type: 'text';
|
|
1224
1205
|
options: undefined;
|
|
1225
1206
|
};
|
|
1226
1207
|
/** Event name. */
|
|
1227
|
-
eventName: {
|
|
1208
|
+
'eventName': {
|
|
1228
1209
|
label: 'Event name';
|
|
1229
1210
|
type: 'text';
|
|
1230
1211
|
options: undefined;
|
|
1231
1212
|
};
|
|
1232
1213
|
/** Events destination directory. Where should I add your listeners? */
|
|
1233
|
-
listenerDestinationDir: {
|
|
1214
|
+
'listenerDestinationDir': {
|
|
1234
1215
|
label: 'Events destination directory';
|
|
1235
1216
|
type: 'text';
|
|
1236
1217
|
hint: 'Where should I add your listeners?';
|
|
1237
|
-
defaultValue:
|
|
1218
|
+
defaultValue: "src/listeners";
|
|
1238
1219
|
options: undefined;
|
|
1239
1220
|
};
|
|
1240
1221
|
/** Version. Set a version yourself instead of letting me generate one for you */
|
|
1241
|
-
version: {
|
|
1222
|
+
'version': {
|
|
1242
1223
|
label: 'Version';
|
|
1243
1224
|
type: 'text';
|
|
1244
1225
|
isPrivate: true;
|
|
@@ -1254,7 +1235,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1254
1235
|
/** Install your skill at any organization you are connected to. */
|
|
1255
1236
|
interface InstallSkillAtOrganizationOptions {
|
|
1256
1237
|
/** Organization id. */
|
|
1257
|
-
organizationId?: string | undefined | null;
|
|
1238
|
+
'organizationId'?: string | undefined | null;
|
|
1258
1239
|
}
|
|
1259
1240
|
interface InstallSkillAtOrganizationOptionsSchema extends SpruceSchema.Schema {
|
|
1260
1241
|
id: 'installSkillAtOrganizationOptions';
|
|
@@ -1264,7 +1245,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1264
1245
|
description: 'Install your skill at any organization you are connected to.';
|
|
1265
1246
|
fields: {
|
|
1266
1247
|
/** Organization id. */
|
|
1267
|
-
organizationId: {
|
|
1248
|
+
'organizationId': {
|
|
1268
1249
|
label: 'Organization id';
|
|
1269
1250
|
type: 'id';
|
|
1270
1251
|
options: undefined;
|
|
@@ -1278,15 +1259,15 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1278
1259
|
/** Your first failing test just a command away! ⚔️ */
|
|
1279
1260
|
interface CreateTestOptions {
|
|
1280
1261
|
/** Type of test. */
|
|
1281
|
-
type:
|
|
1262
|
+
'type': ("behavioral" | "implementation");
|
|
1282
1263
|
/** What are you testing?. E.g. Todo Card or Systems List */
|
|
1283
|
-
nameReadable: string;
|
|
1264
|
+
'nameReadable': string;
|
|
1284
1265
|
/** Test destination directory. Where I'll save your new test. */
|
|
1285
|
-
testDestinationDir?: string | undefined | null;
|
|
1266
|
+
'testDestinationDir'?: string | undefined | null;
|
|
1286
1267
|
/** Camel case name. camelCase version of the name */
|
|
1287
|
-
nameCamel: string;
|
|
1268
|
+
'nameCamel': string;
|
|
1288
1269
|
/** Pascal case name. PascalCase of the name */
|
|
1289
|
-
namePascal?: string | undefined | null;
|
|
1270
|
+
'namePascal'?: string | undefined | null;
|
|
1290
1271
|
}
|
|
1291
1272
|
interface CreateTestOptionsSchema extends SpruceSchema.Schema {
|
|
1292
1273
|
id: 'createTestOptions';
|
|
@@ -1296,25 +1277,22 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1296
1277
|
description: 'Your first failing test just a command away! ⚔️';
|
|
1297
1278
|
fields: {
|
|
1298
1279
|
/** Type of test. */
|
|
1299
|
-
type: {
|
|
1280
|
+
'type': {
|
|
1300
1281
|
label: 'Type of test';
|
|
1301
1282
|
type: 'select';
|
|
1302
1283
|
isRequired: true;
|
|
1303
1284
|
options: {
|
|
1304
|
-
choices: [
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
label: 'Implementation';
|
|
1312
|
-
}
|
|
1313
|
-
];
|
|
1285
|
+
choices: [{
|
|
1286
|
+
"value": "behavioral";
|
|
1287
|
+
"label": "Behavioral";
|
|
1288
|
+
}, {
|
|
1289
|
+
"value": "implementation";
|
|
1290
|
+
"label": "Implementation";
|
|
1291
|
+
}];
|
|
1314
1292
|
};
|
|
1315
1293
|
};
|
|
1316
1294
|
/** What are you testing?. E.g. Todo Card or Systems List */
|
|
1317
|
-
nameReadable: {
|
|
1295
|
+
'nameReadable': {
|
|
1318
1296
|
label: 'What are you testing?';
|
|
1319
1297
|
type: 'text';
|
|
1320
1298
|
isRequired: true;
|
|
@@ -1322,15 +1300,15 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1322
1300
|
options: undefined;
|
|
1323
1301
|
};
|
|
1324
1302
|
/** Test destination directory. Where I'll save your new test. */
|
|
1325
|
-
testDestinationDir: {
|
|
1303
|
+
'testDestinationDir': {
|
|
1326
1304
|
label: 'Test destination directory';
|
|
1327
1305
|
type: 'text';
|
|
1328
|
-
hint:
|
|
1329
|
-
defaultValue:
|
|
1306
|
+
hint: 'Where I\'ll save your new test.';
|
|
1307
|
+
defaultValue: "src/__tests__";
|
|
1330
1308
|
options: undefined;
|
|
1331
1309
|
};
|
|
1332
1310
|
/** Camel case name. camelCase version of the name */
|
|
1333
|
-
nameCamel: {
|
|
1311
|
+
'nameCamel': {
|
|
1334
1312
|
label: 'Camel case name';
|
|
1335
1313
|
type: 'text';
|
|
1336
1314
|
isRequired: true;
|
|
@@ -1338,7 +1316,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1338
1316
|
options: undefined;
|
|
1339
1317
|
};
|
|
1340
1318
|
/** Pascal case name. PascalCase of the name */
|
|
1341
|
-
namePascal: {
|
|
1319
|
+
'namePascal': {
|
|
1342
1320
|
label: 'Pascal case name';
|
|
1343
1321
|
type: 'text';
|
|
1344
1322
|
hint: 'PascalCase of the name';
|
|
@@ -1353,57 +1331,57 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1353
1331
|
/** Create the builder to a fresh new schema! */
|
|
1354
1332
|
interface CreateSchemaOptions {
|
|
1355
1333
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
1356
|
-
fieldTypesDestinationDir?: string | undefined | null;
|
|
1334
|
+
'fieldTypesDestinationDir'?: string | undefined | null;
|
|
1357
1335
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
1358
|
-
addonsLookupDir?: string | undefined | null;
|
|
1336
|
+
'addonsLookupDir'?: string | undefined | null;
|
|
1359
1337
|
/** Generate field types. Should I generate field types too? */
|
|
1360
|
-
generateFieldTypes?: boolean | undefined | null;
|
|
1338
|
+
'generateFieldTypes'?: boolean | undefined | null;
|
|
1361
1339
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
1362
|
-
schemaTypesDestinationDirOrFile?: string | undefined | null;
|
|
1340
|
+
'schemaTypesDestinationDirOrFile'?: string | undefined | null;
|
|
1363
1341
|
/** . Where I should look for your schema builders? */
|
|
1364
|
-
schemaLookupDir?: string | undefined | null;
|
|
1342
|
+
'schemaLookupDir'?: string | undefined | null;
|
|
1365
1343
|
/** Source module. If this schema should be imported from a node module vs generated locally. */
|
|
1366
|
-
moduleToImportFromWhenRemote?: string | undefined | null;
|
|
1344
|
+
'moduleToImportFromWhenRemote'?: string | undefined | null;
|
|
1367
1345
|
/** Auto install missing dependencies. */
|
|
1368
|
-
shouldInstallMissingDependencies?: boolean | undefined | null;
|
|
1346
|
+
'shouldInstallMissingDependencies'?: boolean | undefined | null;
|
|
1369
1347
|
/** Enable versioning. Should we use versioning? */
|
|
1370
|
-
shouldEnableVersioning?: boolean | undefined | null;
|
|
1348
|
+
'shouldEnableVersioning'?: boolean | undefined | null;
|
|
1371
1349
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
1372
|
-
globalSchemaNamespace?: string | undefined | null;
|
|
1350
|
+
'globalSchemaNamespace'?: string | undefined | null;
|
|
1373
1351
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
1374
|
-
shouldFetchRemoteSchemas?: boolean | undefined | null;
|
|
1352
|
+
'shouldFetchRemoteSchemas'?: boolean | undefined | null;
|
|
1375
1353
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
1376
|
-
shouldFetchLocalSchemas?: boolean | undefined | null;
|
|
1354
|
+
'shouldFetchLocalSchemas'?: boolean | undefined | null;
|
|
1377
1355
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
1378
|
-
shouldFetchCoreSchemas?: boolean | undefined | null;
|
|
1356
|
+
'shouldFetchCoreSchemas'?: boolean | undefined | null;
|
|
1379
1357
|
/** 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. */
|
|
1380
|
-
shouldGenerateCoreSchemaTypes?: boolean | undefined | null;
|
|
1358
|
+
'shouldGenerateCoreSchemaTypes'?: boolean | undefined | null;
|
|
1381
1359
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
1382
|
-
registerBuiltSchemas?: boolean | undefined | null;
|
|
1360
|
+
'registerBuiltSchemas'?: boolean | undefined | null;
|
|
1383
1361
|
/** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */
|
|
1384
|
-
deleteDestinationDirIfNoSchemas?: boolean | undefined | null;
|
|
1362
|
+
'deleteDestinationDirIfNoSchemas'?: boolean | undefined | null;
|
|
1385
1363
|
/** Delete orphaned schemas. Should I delete schemas where the builders are missing? */
|
|
1386
|
-
deleteOrphanedSchemas?: boolean | undefined | null;
|
|
1364
|
+
'deleteOrphanedSchemas'?: boolean | undefined | null;
|
|
1387
1365
|
/** 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. */
|
|
1388
|
-
generateStandaloneTypesFile?: boolean | undefined | null;
|
|
1366
|
+
'generateStandaloneTypesFile'?: boolean | undefined | null;
|
|
1389
1367
|
/** message. */
|
|
1390
|
-
syncingMessage?: string | undefined | null;
|
|
1368
|
+
'syncingMessage'?: string | undefined | null;
|
|
1391
1369
|
/** Schema builder destination directory. Where I'll save the new schema builder. */
|
|
1392
|
-
schemaBuilderDestinationDir?: string | undefined | null;
|
|
1370
|
+
'schemaBuilderDestinationDir'?: string | undefined | null;
|
|
1393
1371
|
/** Builder function. The function that builds this schema */
|
|
1394
|
-
builderFunction?: string | undefined | null;
|
|
1372
|
+
'builderFunction'?: string | undefined | null;
|
|
1395
1373
|
/** Sync after creation. This will ensure types and schemas are in sync after you create your builder. */
|
|
1396
|
-
syncAfterCreate?: boolean | undefined | null;
|
|
1374
|
+
'syncAfterCreate'?: boolean | undefined | null;
|
|
1397
1375
|
/** Version. Set a version yourself instead of letting me generate one for you */
|
|
1398
|
-
version?: string | undefined | null;
|
|
1376
|
+
'version'?: string | undefined | null;
|
|
1399
1377
|
/** Readable name. The name people will read */
|
|
1400
|
-
nameReadable: string;
|
|
1378
|
+
'nameReadable': string;
|
|
1401
1379
|
/** Pascal case name. PascalCase of the name */
|
|
1402
|
-
namePascal?: string | undefined | null;
|
|
1380
|
+
'namePascal'?: string | undefined | null;
|
|
1403
1381
|
/** Camel case name. camelCase version of the name */
|
|
1404
|
-
nameCamel: string;
|
|
1382
|
+
'nameCamel': string;
|
|
1405
1383
|
/** Description. Describe a bit more here */
|
|
1406
|
-
description?: string | undefined | null;
|
|
1384
|
+
'description'?: string | undefined | null;
|
|
1407
1385
|
}
|
|
1408
1386
|
interface CreateSchemaOptionsSchema extends SpruceSchema.Schema {
|
|
1409
1387
|
id: 'createSchemaOptions';
|
|
@@ -1413,24 +1391,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1413
1391
|
description: 'Create the builder to a fresh new schema!';
|
|
1414
1392
|
fields: {
|
|
1415
1393
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
1416
|
-
fieldTypesDestinationDir: {
|
|
1394
|
+
'fieldTypesDestinationDir': {
|
|
1417
1395
|
label: 'Field types directory';
|
|
1418
1396
|
type: 'text';
|
|
1419
1397
|
isPrivate: true;
|
|
1420
1398
|
hint: 'Where field types and interfaces will be generated.';
|
|
1421
|
-
defaultValue:
|
|
1399
|
+
defaultValue: "#spruce/schemas";
|
|
1422
1400
|
options: undefined;
|
|
1423
1401
|
};
|
|
1424
1402
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
1425
|
-
addonsLookupDir: {
|
|
1403
|
+
'addonsLookupDir': {
|
|
1426
1404
|
label: 'Addons lookup directory';
|
|
1427
1405
|
type: 'text';
|
|
1428
|
-
hint:
|
|
1429
|
-
defaultValue:
|
|
1406
|
+
hint: 'Where I\'ll look for new schema fields to be registered.';
|
|
1407
|
+
defaultValue: "src/addons";
|
|
1430
1408
|
options: undefined;
|
|
1431
1409
|
};
|
|
1432
1410
|
/** Generate field types. Should I generate field types too? */
|
|
1433
|
-
generateFieldTypes: {
|
|
1411
|
+
'generateFieldTypes': {
|
|
1434
1412
|
label: 'Generate field types';
|
|
1435
1413
|
type: 'boolean';
|
|
1436
1414
|
isPrivate: true;
|
|
@@ -1439,35 +1417,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1439
1417
|
options: undefined;
|
|
1440
1418
|
};
|
|
1441
1419
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
1442
|
-
schemaTypesDestinationDirOrFile: {
|
|
1420
|
+
'schemaTypesDestinationDirOrFile': {
|
|
1443
1421
|
label: 'Schema types destination directory';
|
|
1444
1422
|
type: 'text';
|
|
1445
1423
|
hint: 'Where I will generate schema types and interfaces.';
|
|
1446
|
-
defaultValue:
|
|
1424
|
+
defaultValue: "#spruce/schemas";
|
|
1447
1425
|
options: undefined;
|
|
1448
1426
|
};
|
|
1449
1427
|
/** . Where I should look for your schema builders? */
|
|
1450
|
-
schemaLookupDir: {
|
|
1428
|
+
'schemaLookupDir': {
|
|
1451
1429
|
type: 'text';
|
|
1452
1430
|
hint: 'Where I should look for your schema builders?';
|
|
1453
|
-
defaultValue:
|
|
1431
|
+
defaultValue: "src/schemas";
|
|
1454
1432
|
options: undefined;
|
|
1455
1433
|
};
|
|
1456
1434
|
/** Source module. If this schema should be imported from a node module vs generated locally. */
|
|
1457
|
-
moduleToImportFromWhenRemote: {
|
|
1435
|
+
'moduleToImportFromWhenRemote': {
|
|
1458
1436
|
label: 'Source module';
|
|
1459
1437
|
type: 'text';
|
|
1460
1438
|
hint: 'If this schema should be imported from a node module vs generated locally.';
|
|
1461
1439
|
options: undefined;
|
|
1462
1440
|
};
|
|
1463
1441
|
/** Auto install missing dependencies. */
|
|
1464
|
-
shouldInstallMissingDependencies: {
|
|
1442
|
+
'shouldInstallMissingDependencies': {
|
|
1465
1443
|
label: 'Auto install missing dependencies';
|
|
1466
1444
|
type: 'boolean';
|
|
1467
1445
|
options: undefined;
|
|
1468
1446
|
};
|
|
1469
1447
|
/** Enable versioning. Should we use versioning? */
|
|
1470
|
-
shouldEnableVersioning: {
|
|
1448
|
+
'shouldEnableVersioning': {
|
|
1471
1449
|
label: 'Enable versioning';
|
|
1472
1450
|
type: 'boolean';
|
|
1473
1451
|
isPrivate: true;
|
|
@@ -1476,16 +1454,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1476
1454
|
options: undefined;
|
|
1477
1455
|
};
|
|
1478
1456
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
1479
|
-
globalSchemaNamespace: {
|
|
1457
|
+
'globalSchemaNamespace': {
|
|
1480
1458
|
label: 'Global namespace';
|
|
1481
1459
|
type: 'text';
|
|
1482
1460
|
isPrivate: true;
|
|
1483
|
-
hint:
|
|
1484
|
-
defaultValue:
|
|
1461
|
+
hint: 'The name you\'ll use when accessing these schemas, e.g. SpruceSchemas';
|
|
1462
|
+
defaultValue: "SpruceSchemas";
|
|
1485
1463
|
options: undefined;
|
|
1486
1464
|
};
|
|
1487
1465
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
1488
|
-
shouldFetchRemoteSchemas: {
|
|
1466
|
+
'shouldFetchRemoteSchemas': {
|
|
1489
1467
|
label: 'Fetch remote schemas';
|
|
1490
1468
|
type: 'boolean';
|
|
1491
1469
|
isPrivate: true;
|
|
@@ -1494,7 +1472,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1494
1472
|
options: undefined;
|
|
1495
1473
|
};
|
|
1496
1474
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
1497
|
-
shouldFetchLocalSchemas: {
|
|
1475
|
+
'shouldFetchLocalSchemas': {
|
|
1498
1476
|
label: 'Fetch local schemas';
|
|
1499
1477
|
type: 'boolean';
|
|
1500
1478
|
isPrivate: true;
|
|
@@ -1503,7 +1481,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1503
1481
|
options: undefined;
|
|
1504
1482
|
};
|
|
1505
1483
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
1506
|
-
shouldFetchCoreSchemas: {
|
|
1484
|
+
'shouldFetchCoreSchemas': {
|
|
1507
1485
|
label: 'Fetch core schemas';
|
|
1508
1486
|
type: 'boolean';
|
|
1509
1487
|
isPrivate: true;
|
|
@@ -1512,7 +1490,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1512
1490
|
options: undefined;
|
|
1513
1491
|
};
|
|
1514
1492
|
/** 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. */
|
|
1515
|
-
shouldGenerateCoreSchemaTypes: {
|
|
1493
|
+
'shouldGenerateCoreSchemaTypes': {
|
|
1516
1494
|
label: 'Generate core schemas';
|
|
1517
1495
|
type: 'boolean';
|
|
1518
1496
|
isPrivate: true;
|
|
@@ -1520,7 +1498,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1520
1498
|
options: undefined;
|
|
1521
1499
|
};
|
|
1522
1500
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
1523
|
-
registerBuiltSchemas: {
|
|
1501
|
+
'registerBuiltSchemas': {
|
|
1524
1502
|
label: 'Register built schemas';
|
|
1525
1503
|
type: 'boolean';
|
|
1526
1504
|
isPrivate: true;
|
|
@@ -1529,7 +1507,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1529
1507
|
options: undefined;
|
|
1530
1508
|
};
|
|
1531
1509
|
/** Delete directory if no schemas. Should I delete the schema directory if no schemas are found? */
|
|
1532
|
-
deleteDestinationDirIfNoSchemas: {
|
|
1510
|
+
'deleteDestinationDirIfNoSchemas': {
|
|
1533
1511
|
label: 'Delete directory if no schemas';
|
|
1534
1512
|
type: 'boolean';
|
|
1535
1513
|
isPrivate: true;
|
|
@@ -1538,7 +1516,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1538
1516
|
options: undefined;
|
|
1539
1517
|
};
|
|
1540
1518
|
/** Delete orphaned schemas. Should I delete schemas where the builders are missing? */
|
|
1541
|
-
deleteOrphanedSchemas: {
|
|
1519
|
+
'deleteOrphanedSchemas': {
|
|
1542
1520
|
label: 'Delete orphaned schemas';
|
|
1543
1521
|
type: 'boolean';
|
|
1544
1522
|
isPrivate: true;
|
|
@@ -1547,41 +1525,41 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1547
1525
|
options: undefined;
|
|
1548
1526
|
};
|
|
1549
1527
|
/** 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. */
|
|
1550
|
-
generateStandaloneTypesFile: {
|
|
1528
|
+
'generateStandaloneTypesFile': {
|
|
1551
1529
|
label: 'Generate standalone types file';
|
|
1552
1530
|
type: 'boolean';
|
|
1553
1531
|
isPrivate: true;
|
|
1554
|
-
hint:
|
|
1532
|
+
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.';
|
|
1555
1533
|
defaultValue: false;
|
|
1556
1534
|
options: undefined;
|
|
1557
1535
|
};
|
|
1558
1536
|
/** message. */
|
|
1559
|
-
syncingMessage: {
|
|
1537
|
+
'syncingMessage': {
|
|
1560
1538
|
label: ' message';
|
|
1561
1539
|
type: 'text';
|
|
1562
1540
|
isPrivate: true;
|
|
1563
|
-
defaultValue:
|
|
1541
|
+
defaultValue: "Syncing schemas...";
|
|
1564
1542
|
options: undefined;
|
|
1565
1543
|
};
|
|
1566
1544
|
/** Schema builder destination directory. Where I'll save the new schema builder. */
|
|
1567
|
-
schemaBuilderDestinationDir: {
|
|
1545
|
+
'schemaBuilderDestinationDir': {
|
|
1568
1546
|
label: 'Schema builder destination directory';
|
|
1569
1547
|
type: 'text';
|
|
1570
|
-
hint:
|
|
1571
|
-
defaultValue:
|
|
1548
|
+
hint: 'Where I\'ll save the new schema builder.';
|
|
1549
|
+
defaultValue: "src/schemas";
|
|
1572
1550
|
options: undefined;
|
|
1573
1551
|
};
|
|
1574
1552
|
/** Builder function. The function that builds this schema */
|
|
1575
|
-
builderFunction: {
|
|
1553
|
+
'builderFunction': {
|
|
1576
1554
|
label: 'Builder function';
|
|
1577
1555
|
type: 'text';
|
|
1578
1556
|
isPrivate: true;
|
|
1579
1557
|
hint: 'The function that builds this schema';
|
|
1580
|
-
defaultValue:
|
|
1558
|
+
defaultValue: "buildSchema";
|
|
1581
1559
|
options: undefined;
|
|
1582
1560
|
};
|
|
1583
1561
|
/** Sync after creation. This will ensure types and schemas are in sync after you create your builder. */
|
|
1584
|
-
syncAfterCreate: {
|
|
1562
|
+
'syncAfterCreate': {
|
|
1585
1563
|
label: 'Sync after creation';
|
|
1586
1564
|
type: 'boolean';
|
|
1587
1565
|
isPrivate: true;
|
|
@@ -1590,7 +1568,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1590
1568
|
options: undefined;
|
|
1591
1569
|
};
|
|
1592
1570
|
/** Version. Set a version yourself instead of letting me generate one for you */
|
|
1593
|
-
version: {
|
|
1571
|
+
'version': {
|
|
1594
1572
|
label: 'Version';
|
|
1595
1573
|
type: 'text';
|
|
1596
1574
|
isPrivate: true;
|
|
@@ -1598,7 +1576,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1598
1576
|
options: undefined;
|
|
1599
1577
|
};
|
|
1600
1578
|
/** Readable name. The name people will read */
|
|
1601
|
-
nameReadable: {
|
|
1579
|
+
'nameReadable': {
|
|
1602
1580
|
label: 'Readable name';
|
|
1603
1581
|
type: 'text';
|
|
1604
1582
|
isRequired: true;
|
|
@@ -1606,14 +1584,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1606
1584
|
options: undefined;
|
|
1607
1585
|
};
|
|
1608
1586
|
/** Pascal case name. PascalCase of the name */
|
|
1609
|
-
namePascal: {
|
|
1587
|
+
'namePascal': {
|
|
1610
1588
|
label: 'Pascal case name';
|
|
1611
1589
|
type: 'text';
|
|
1612
1590
|
hint: 'PascalCase of the name';
|
|
1613
1591
|
options: undefined;
|
|
1614
1592
|
};
|
|
1615
1593
|
/** Camel case name. camelCase version of the name */
|
|
1616
|
-
nameCamel: {
|
|
1594
|
+
'nameCamel': {
|
|
1617
1595
|
label: 'Camel case name';
|
|
1618
1596
|
type: 'text';
|
|
1619
1597
|
isRequired: true;
|
|
@@ -1621,7 +1599,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1621
1599
|
options: undefined;
|
|
1622
1600
|
};
|
|
1623
1601
|
/** Description. Describe a bit more here */
|
|
1624
|
-
description: {
|
|
1602
|
+
'description': {
|
|
1625
1603
|
label: 'Description';
|
|
1626
1604
|
type: 'text';
|
|
1627
1605
|
hint: 'Describe a bit more here';
|
|
@@ -1636,9 +1614,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1636
1614
|
/** Skills can only communicate with people and skills associated with the same organization. This ensures people can get differentiated experiences across multiple businesses. */
|
|
1637
1615
|
interface CreateOrganizationOptions {
|
|
1638
1616
|
/** Name. The name people will read */
|
|
1639
|
-
nameReadable: string;
|
|
1617
|
+
'nameReadable': string;
|
|
1640
1618
|
/** Slug. kebab-case of the name */
|
|
1641
|
-
nameKebab?: string | undefined | null;
|
|
1619
|
+
'nameKebab'?: string | undefined | null;
|
|
1642
1620
|
}
|
|
1643
1621
|
interface CreateOrganizationOptionsSchema extends SpruceSchema.Schema {
|
|
1644
1622
|
id: 'createOrganizationOptions';
|
|
@@ -1648,7 +1626,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1648
1626
|
description: 'Skills can only communicate with people and skills associated with the same organization. This ensures people can get differentiated experiences across multiple businesses.';
|
|
1649
1627
|
fields: {
|
|
1650
1628
|
/** Name. The name people will read */
|
|
1651
|
-
nameReadable: {
|
|
1629
|
+
'nameReadable': {
|
|
1652
1630
|
label: 'Name';
|
|
1653
1631
|
type: 'text';
|
|
1654
1632
|
isRequired: true;
|
|
@@ -1656,7 +1634,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1656
1634
|
options: undefined;
|
|
1657
1635
|
};
|
|
1658
1636
|
/** Slug. kebab-case of the name */
|
|
1659
|
-
nameKebab: {
|
|
1637
|
+
'nameKebab': {
|
|
1660
1638
|
label: 'Slug';
|
|
1661
1639
|
type: 'text';
|
|
1662
1640
|
hint: 'kebab-case of the name';
|
|
@@ -1671,53 +1649,53 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1671
1649
|
/** Create a builder for your brand new error! */
|
|
1672
1650
|
interface CreateErrorOptions {
|
|
1673
1651
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
1674
|
-
fieldTypesDestinationDir?: string | undefined | null;
|
|
1652
|
+
'fieldTypesDestinationDir'?: string | undefined | null;
|
|
1675
1653
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
1676
|
-
addonsLookupDir?: string | undefined | null;
|
|
1654
|
+
'addonsLookupDir'?: string | undefined | null;
|
|
1677
1655
|
/** Generate field types. Should I generate field types too? */
|
|
1678
|
-
generateFieldTypes?: boolean | undefined | null;
|
|
1656
|
+
'generateFieldTypes'?: boolean | undefined | null;
|
|
1679
1657
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
1680
|
-
schemaTypesDestinationDirOrFile?: string | undefined | null;
|
|
1658
|
+
'schemaTypesDestinationDirOrFile'?: string | undefined | null;
|
|
1681
1659
|
/** . Where I should look for your schema builders? */
|
|
1682
|
-
schemaLookupDir?: string | undefined | null;
|
|
1660
|
+
'schemaLookupDir'?: string | undefined | null;
|
|
1683
1661
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
1684
|
-
moduleToImportFromWhenRemote?: string | undefined | null;
|
|
1662
|
+
'moduleToImportFromWhenRemote'?: string | undefined | null;
|
|
1685
1663
|
/** Auto install missing dependencies. */
|
|
1686
|
-
shouldInstallMissingDependencies?: boolean | undefined | null;
|
|
1664
|
+
'shouldInstallMissingDependencies'?: boolean | undefined | null;
|
|
1687
1665
|
/** Enable versioning. Should we use versioning? */
|
|
1688
|
-
shouldEnableVersioning?: boolean | undefined | null;
|
|
1666
|
+
'shouldEnableVersioning'?: boolean | undefined | null;
|
|
1689
1667
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
1690
|
-
globalSchemaNamespace?: string | undefined | null;
|
|
1668
|
+
'globalSchemaNamespace'?: string | undefined | null;
|
|
1691
1669
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
1692
|
-
shouldFetchRemoteSchemas?: boolean | undefined | null;
|
|
1670
|
+
'shouldFetchRemoteSchemas'?: boolean | undefined | null;
|
|
1693
1671
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
1694
|
-
shouldFetchLocalSchemas?: boolean | undefined | null;
|
|
1672
|
+
'shouldFetchLocalSchemas'?: boolean | undefined | null;
|
|
1695
1673
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
1696
|
-
shouldFetchCoreSchemas?: boolean | undefined | null;
|
|
1674
|
+
'shouldFetchCoreSchemas'?: boolean | undefined | null;
|
|
1697
1675
|
/** 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. */
|
|
1698
|
-
shouldGenerateCoreSchemaTypes?: boolean | undefined | null;
|
|
1676
|
+
'shouldGenerateCoreSchemaTypes'?: boolean | undefined | null;
|
|
1699
1677
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
1700
|
-
registerBuiltSchemas?: boolean | undefined | null;
|
|
1678
|
+
'registerBuiltSchemas'?: boolean | undefined | null;
|
|
1701
1679
|
/** 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. */
|
|
1702
|
-
generateStandaloneTypesFile?: boolean | undefined | null;
|
|
1680
|
+
'generateStandaloneTypesFile'?: boolean | undefined | null;
|
|
1703
1681
|
/** message. */
|
|
1704
|
-
syncingMessage?: string | undefined | null;
|
|
1682
|
+
'syncingMessage'?: string | undefined | null;
|
|
1705
1683
|
/** Error class destination. Where I'll save your new Error class file? */
|
|
1706
|
-
errorClassDestinationDir: string;
|
|
1684
|
+
'errorClassDestinationDir': string;
|
|
1707
1685
|
/** . Where I should look for your error builders? */
|
|
1708
|
-
errorLookupDir?: string | undefined | null;
|
|
1686
|
+
'errorLookupDir'?: string | undefined | null;
|
|
1709
1687
|
/** Types destination dir. This is where error options and type information will be written */
|
|
1710
|
-
errorTypesDestinationDir?: string | undefined | null;
|
|
1688
|
+
'errorTypesDestinationDir'?: string | undefined | null;
|
|
1711
1689
|
/** Error builder destination directory. Where I'll save your new builder file? */
|
|
1712
|
-
errorBuilderDestinationDir: string;
|
|
1690
|
+
'errorBuilderDestinationDir': string;
|
|
1713
1691
|
/** Readable name. The name people will read */
|
|
1714
|
-
nameReadable: string;
|
|
1692
|
+
'nameReadable': string;
|
|
1715
1693
|
/** Pascal case name. PascalCase of the name */
|
|
1716
|
-
namePascal?: string | undefined | null;
|
|
1694
|
+
'namePascal'?: string | undefined | null;
|
|
1717
1695
|
/** Camel case name. camelCase version of the name */
|
|
1718
|
-
nameCamel: string;
|
|
1696
|
+
'nameCamel': string;
|
|
1719
1697
|
/** Description. Describe a bit more here */
|
|
1720
|
-
description?: string | undefined | null;
|
|
1698
|
+
'description'?: string | undefined | null;
|
|
1721
1699
|
}
|
|
1722
1700
|
interface CreateErrorOptionsSchema extends SpruceSchema.Schema {
|
|
1723
1701
|
id: 'createErrorOptions';
|
|
@@ -1727,24 +1705,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1727
1705
|
description: 'Create a builder for your brand new error! ';
|
|
1728
1706
|
fields: {
|
|
1729
1707
|
/** Field types directory. Where field types and interfaces will be generated. */
|
|
1730
|
-
fieldTypesDestinationDir: {
|
|
1708
|
+
'fieldTypesDestinationDir': {
|
|
1731
1709
|
label: 'Field types directory';
|
|
1732
1710
|
type: 'text';
|
|
1733
1711
|
isPrivate: true;
|
|
1734
1712
|
hint: 'Where field types and interfaces will be generated.';
|
|
1735
|
-
defaultValue:
|
|
1713
|
+
defaultValue: "#spruce/schemas";
|
|
1736
1714
|
options: undefined;
|
|
1737
1715
|
};
|
|
1738
1716
|
/** Addons lookup directory. Where I'll look for new schema fields to be registered. */
|
|
1739
|
-
addonsLookupDir: {
|
|
1717
|
+
'addonsLookupDir': {
|
|
1740
1718
|
label: 'Addons lookup directory';
|
|
1741
1719
|
type: 'text';
|
|
1742
|
-
hint:
|
|
1743
|
-
defaultValue:
|
|
1720
|
+
hint: 'Where I\'ll look for new schema fields to be registered.';
|
|
1721
|
+
defaultValue: "src/addons";
|
|
1744
1722
|
options: undefined;
|
|
1745
1723
|
};
|
|
1746
1724
|
/** Generate field types. Should I generate field types too? */
|
|
1747
|
-
generateFieldTypes: {
|
|
1725
|
+
'generateFieldTypes': {
|
|
1748
1726
|
label: 'Generate field types';
|
|
1749
1727
|
type: 'boolean';
|
|
1750
1728
|
isPrivate: true;
|
|
@@ -1753,35 +1731,35 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1753
1731
|
options: undefined;
|
|
1754
1732
|
};
|
|
1755
1733
|
/** Schema types destination directory. Where I will generate schema types and interfaces. */
|
|
1756
|
-
schemaTypesDestinationDirOrFile: {
|
|
1734
|
+
'schemaTypesDestinationDirOrFile': {
|
|
1757
1735
|
label: 'Schema types destination directory';
|
|
1758
1736
|
type: 'text';
|
|
1759
1737
|
hint: 'Where I will generate schema types and interfaces.';
|
|
1760
|
-
defaultValue:
|
|
1738
|
+
defaultValue: "#spruce/schemas";
|
|
1761
1739
|
options: undefined;
|
|
1762
1740
|
};
|
|
1763
1741
|
/** . Where I should look for your schema builders? */
|
|
1764
|
-
schemaLookupDir: {
|
|
1742
|
+
'schemaLookupDir': {
|
|
1765
1743
|
type: 'text';
|
|
1766
1744
|
hint: 'Where I should look for your schema builders?';
|
|
1767
|
-
defaultValue:
|
|
1745
|
+
defaultValue: "src/schemas";
|
|
1768
1746
|
options: undefined;
|
|
1769
1747
|
};
|
|
1770
1748
|
/** Module import. When other skills use your schemas, will they import them from a module? */
|
|
1771
|
-
moduleToImportFromWhenRemote: {
|
|
1749
|
+
'moduleToImportFromWhenRemote': {
|
|
1772
1750
|
label: 'Module import';
|
|
1773
1751
|
type: 'text';
|
|
1774
1752
|
hint: 'When other skills use your schemas, will they import them from a module?';
|
|
1775
1753
|
options: undefined;
|
|
1776
1754
|
};
|
|
1777
1755
|
/** Auto install missing dependencies. */
|
|
1778
|
-
shouldInstallMissingDependencies: {
|
|
1756
|
+
'shouldInstallMissingDependencies': {
|
|
1779
1757
|
label: 'Auto install missing dependencies';
|
|
1780
1758
|
type: 'boolean';
|
|
1781
1759
|
options: undefined;
|
|
1782
1760
|
};
|
|
1783
1761
|
/** Enable versioning. Should we use versioning? */
|
|
1784
|
-
shouldEnableVersioning: {
|
|
1762
|
+
'shouldEnableVersioning': {
|
|
1785
1763
|
label: 'Enable versioning';
|
|
1786
1764
|
type: 'boolean';
|
|
1787
1765
|
isPrivate: true;
|
|
@@ -1790,16 +1768,16 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1790
1768
|
options: undefined;
|
|
1791
1769
|
};
|
|
1792
1770
|
/** Global namespace. The name you'll use when accessing these schemas, e.g. SpruceSchemas */
|
|
1793
|
-
globalSchemaNamespace: {
|
|
1771
|
+
'globalSchemaNamespace': {
|
|
1794
1772
|
label: 'Global namespace';
|
|
1795
1773
|
type: 'text';
|
|
1796
1774
|
isPrivate: true;
|
|
1797
|
-
hint:
|
|
1798
|
-
defaultValue:
|
|
1775
|
+
hint: 'The name you\'ll use when accessing these schemas, e.g. SpruceSchemas';
|
|
1776
|
+
defaultValue: "SpruceSchemas";
|
|
1799
1777
|
options: undefined;
|
|
1800
1778
|
};
|
|
1801
1779
|
/** Fetch remote schemas. I will pull in schemas from other features. */
|
|
1802
|
-
shouldFetchRemoteSchemas: {
|
|
1780
|
+
'shouldFetchRemoteSchemas': {
|
|
1803
1781
|
label: 'Fetch remote schemas';
|
|
1804
1782
|
type: 'boolean';
|
|
1805
1783
|
isPrivate: true;
|
|
@@ -1808,7 +1786,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1808
1786
|
options: undefined;
|
|
1809
1787
|
};
|
|
1810
1788
|
/** Fetch local schemas. I will look in schemaLookupDir to load local schemas. */
|
|
1811
|
-
shouldFetchLocalSchemas: {
|
|
1789
|
+
'shouldFetchLocalSchemas': {
|
|
1812
1790
|
label: 'Fetch local schemas';
|
|
1813
1791
|
type: 'boolean';
|
|
1814
1792
|
isPrivate: true;
|
|
@@ -1817,7 +1795,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1817
1795
|
options: undefined;
|
|
1818
1796
|
};
|
|
1819
1797
|
/** Fetch core schemas. Should I pull in core schemas too? */
|
|
1820
|
-
shouldFetchCoreSchemas: {
|
|
1798
|
+
'shouldFetchCoreSchemas': {
|
|
1821
1799
|
label: 'Fetch core schemas';
|
|
1822
1800
|
type: 'boolean';
|
|
1823
1801
|
isPrivate: true;
|
|
@@ -1826,7 +1804,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1826
1804
|
options: undefined;
|
|
1827
1805
|
};
|
|
1828
1806
|
/** 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. */
|
|
1829
|
-
shouldGenerateCoreSchemaTypes: {
|
|
1807
|
+
'shouldGenerateCoreSchemaTypes': {
|
|
1830
1808
|
label: 'Generate core schemas';
|
|
1831
1809
|
type: 'boolean';
|
|
1832
1810
|
isPrivate: true;
|
|
@@ -1834,7 +1812,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1834
1812
|
options: undefined;
|
|
1835
1813
|
};
|
|
1836
1814
|
/** Register built schemas. Should the schemas use the SchemaRegistry for tracking? */
|
|
1837
|
-
registerBuiltSchemas: {
|
|
1815
|
+
'registerBuiltSchemas': {
|
|
1838
1816
|
label: 'Register built schemas';
|
|
1839
1817
|
type: 'boolean';
|
|
1840
1818
|
isPrivate: true;
|
|
@@ -1843,59 +1821,59 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1843
1821
|
options: undefined;
|
|
1844
1822
|
};
|
|
1845
1823
|
/** 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. */
|
|
1846
|
-
generateStandaloneTypesFile: {
|
|
1824
|
+
'generateStandaloneTypesFile': {
|
|
1847
1825
|
label: 'Generate standalone types file';
|
|
1848
1826
|
type: 'boolean';
|
|
1849
1827
|
isPrivate: true;
|
|
1850
|
-
hint:
|
|
1828
|
+
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.';
|
|
1851
1829
|
defaultValue: false;
|
|
1852
1830
|
options: undefined;
|
|
1853
1831
|
};
|
|
1854
1832
|
/** message. */
|
|
1855
|
-
syncingMessage: {
|
|
1833
|
+
'syncingMessage': {
|
|
1856
1834
|
label: ' message';
|
|
1857
1835
|
type: 'text';
|
|
1858
1836
|
isPrivate: true;
|
|
1859
|
-
defaultValue:
|
|
1837
|
+
defaultValue: "Syncing schemas...";
|
|
1860
1838
|
options: undefined;
|
|
1861
1839
|
};
|
|
1862
1840
|
/** Error class destination. Where I'll save your new Error class file? */
|
|
1863
|
-
errorClassDestinationDir: {
|
|
1841
|
+
'errorClassDestinationDir': {
|
|
1864
1842
|
label: 'Error class destination';
|
|
1865
1843
|
type: 'text';
|
|
1866
1844
|
isPrivate: true;
|
|
1867
1845
|
isRequired: true;
|
|
1868
|
-
hint:
|
|
1869
|
-
defaultValue:
|
|
1846
|
+
hint: 'Where I\'ll save your new Error class file?';
|
|
1847
|
+
defaultValue: "src/errors";
|
|
1870
1848
|
options: undefined;
|
|
1871
1849
|
};
|
|
1872
1850
|
/** . Where I should look for your error builders? */
|
|
1873
|
-
errorLookupDir: {
|
|
1851
|
+
'errorLookupDir': {
|
|
1874
1852
|
type: 'text';
|
|
1875
1853
|
hint: 'Where I should look for your error builders?';
|
|
1876
|
-
defaultValue:
|
|
1854
|
+
defaultValue: "src/errors";
|
|
1877
1855
|
options: undefined;
|
|
1878
1856
|
};
|
|
1879
1857
|
/** Types destination dir. This is where error options and type information will be written */
|
|
1880
|
-
errorTypesDestinationDir: {
|
|
1858
|
+
'errorTypesDestinationDir': {
|
|
1881
1859
|
label: 'Types destination dir';
|
|
1882
1860
|
type: 'text';
|
|
1883
1861
|
hint: 'This is where error options and type information will be written';
|
|
1884
|
-
defaultValue:
|
|
1862
|
+
defaultValue: "#spruce/errors";
|
|
1885
1863
|
options: undefined;
|
|
1886
1864
|
};
|
|
1887
1865
|
/** Error builder destination directory. Where I'll save your new builder file? */
|
|
1888
|
-
errorBuilderDestinationDir: {
|
|
1866
|
+
'errorBuilderDestinationDir': {
|
|
1889
1867
|
label: 'Error builder destination directory';
|
|
1890
1868
|
type: 'text';
|
|
1891
1869
|
isPrivate: true;
|
|
1892
1870
|
isRequired: true;
|
|
1893
|
-
hint:
|
|
1894
|
-
defaultValue:
|
|
1871
|
+
hint: 'Where I\'ll save your new builder file?';
|
|
1872
|
+
defaultValue: "./src/errors";
|
|
1895
1873
|
options: undefined;
|
|
1896
1874
|
};
|
|
1897
1875
|
/** Readable name. The name people will read */
|
|
1898
|
-
nameReadable: {
|
|
1876
|
+
'nameReadable': {
|
|
1899
1877
|
label: 'Readable name';
|
|
1900
1878
|
type: 'text';
|
|
1901
1879
|
isRequired: true;
|
|
@@ -1903,14 +1881,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1903
1881
|
options: undefined;
|
|
1904
1882
|
};
|
|
1905
1883
|
/** Pascal case name. PascalCase of the name */
|
|
1906
|
-
namePascal: {
|
|
1884
|
+
'namePascal': {
|
|
1907
1885
|
label: 'Pascal case name';
|
|
1908
1886
|
type: 'text';
|
|
1909
1887
|
hint: 'PascalCase of the name';
|
|
1910
1888
|
options: undefined;
|
|
1911
1889
|
};
|
|
1912
1890
|
/** Camel case name. camelCase version of the name */
|
|
1913
|
-
nameCamel: {
|
|
1891
|
+
'nameCamel': {
|
|
1914
1892
|
label: 'Camel case name';
|
|
1915
1893
|
type: 'text';
|
|
1916
1894
|
isRequired: true;
|
|
@@ -1918,7 +1896,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1918
1896
|
options: undefined;
|
|
1919
1897
|
};
|
|
1920
1898
|
/** Description. Describe a bit more here */
|
|
1921
|
-
description: {
|
|
1899
|
+
'description': {
|
|
1922
1900
|
label: 'Description';
|
|
1923
1901
|
type: 'text';
|
|
1924
1902
|
hint: 'Describe a bit more here';
|
|
@@ -1933,9 +1911,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1933
1911
|
/** Define a topic you want to discuss. */
|
|
1934
1912
|
interface CreateConversationTopicOptions {
|
|
1935
1913
|
/** Topic. What should we talk about or try and get done, e.g. Book an appointment or tell a knock knock joke. */
|
|
1936
|
-
nameReadable: string;
|
|
1914
|
+
'nameReadable': string;
|
|
1937
1915
|
/** Camel case name. camelCase version of the name */
|
|
1938
|
-
nameCamel: string;
|
|
1916
|
+
'nameCamel': string;
|
|
1939
1917
|
}
|
|
1940
1918
|
interface CreateConversationTopicOptionsSchema extends SpruceSchema.Schema {
|
|
1941
1919
|
id: 'createConversationTopicOptions';
|
|
@@ -1945,7 +1923,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1945
1923
|
description: 'Define a topic you want to discuss.';
|
|
1946
1924
|
fields: {
|
|
1947
1925
|
/** Topic. What should we talk about or try and get done, e.g. Book an appointment or tell a knock knock joke. */
|
|
1948
|
-
nameReadable: {
|
|
1926
|
+
'nameReadable': {
|
|
1949
1927
|
label: 'Topic';
|
|
1950
1928
|
type: 'text';
|
|
1951
1929
|
isRequired: true;
|
|
@@ -1953,7 +1931,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1953
1931
|
options: undefined;
|
|
1954
1932
|
};
|
|
1955
1933
|
/** Camel case name. camelCase version of the name */
|
|
1956
|
-
nameCamel: {
|
|
1934
|
+
'nameCamel': {
|
|
1957
1935
|
label: 'Camel case name';
|
|
1958
1936
|
type: 'text';
|
|
1959
1937
|
isRequired: true;
|
|
@@ -1969,11 +1947,11 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1969
1947
|
/** Boot your skill 💪 */
|
|
1970
1948
|
interface BootSkillOptions {
|
|
1971
1949
|
/** Run local. Will run using ts-node and typescript directly. Longer boot times */
|
|
1972
|
-
local?: boolean | undefined | null;
|
|
1973
|
-
onData?: ((msg: string) => void) | undefined | null;
|
|
1974
|
-
onError?: ((msg: string) => void) | undefined | null;
|
|
1950
|
+
'local'?: boolean | undefined | null;
|
|
1951
|
+
'onData'?: ((msg: string) => void) | undefined | null;
|
|
1952
|
+
'onError'?: ((msg: string) => void) | undefined | null;
|
|
1975
1953
|
/** Wait until skill is booted. For testing. Returns immediately after executing test so the running tests can be managed programatically. */
|
|
1976
|
-
shouldReturnImmediately?: boolean | undefined | null;
|
|
1954
|
+
'shouldReturnImmediately'?: boolean | undefined | null;
|
|
1977
1955
|
}
|
|
1978
1956
|
interface BootSkillOptionsSchema extends SpruceSchema.Schema {
|
|
1979
1957
|
id: 'bootSkillOptions';
|
|
@@ -1983,28 +1961,28 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
1983
1961
|
description: 'Boot your skill 💪';
|
|
1984
1962
|
fields: {
|
|
1985
1963
|
/** Run local. Will run using ts-node and typescript directly. Longer boot times */
|
|
1986
|
-
local: {
|
|
1964
|
+
'local': {
|
|
1987
1965
|
label: 'Run local';
|
|
1988
1966
|
type: 'boolean';
|
|
1989
1967
|
hint: 'Will run using ts-node and typescript directly. Longer boot times';
|
|
1990
1968
|
options: undefined;
|
|
1991
1969
|
};
|
|
1992
1970
|
/** . */
|
|
1993
|
-
onData: {
|
|
1971
|
+
'onData': {
|
|
1994
1972
|
type: 'raw';
|
|
1995
1973
|
options: {
|
|
1996
1974
|
valueType: `(msg: string) => void`;
|
|
1997
1975
|
};
|
|
1998
1976
|
};
|
|
1999
1977
|
/** . */
|
|
2000
|
-
onError: {
|
|
1978
|
+
'onError': {
|
|
2001
1979
|
type: 'raw';
|
|
2002
1980
|
options: {
|
|
2003
1981
|
valueType: `(msg: string) => void`;
|
|
2004
1982
|
};
|
|
2005
1983
|
};
|
|
2006
1984
|
/** Wait until skill is booted. For testing. Returns immediately after executing test so the running tests can be managed programatically. */
|
|
2007
|
-
shouldReturnImmediately: {
|
|
1985
|
+
'shouldReturnImmediately': {
|
|
2008
1986
|
label: 'Wait until skill is booted';
|
|
2009
1987
|
type: 'boolean';
|
|
2010
1988
|
isPrivate: true;
|
|
@@ -2019,9 +1997,9 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2019
1997
|
}
|
|
2020
1998
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
2021
1999
|
interface NpmPackage {
|
|
2022
|
-
name: string;
|
|
2023
|
-
version?: string | undefined | null;
|
|
2024
|
-
isDev?: boolean | undefined | null;
|
|
2000
|
+
'name': string;
|
|
2001
|
+
'version'?: string | undefined | null;
|
|
2002
|
+
'isDev'?: boolean | undefined | null;
|
|
2025
2003
|
}
|
|
2026
2004
|
interface NpmPackageSchema extends SpruceSchema.Schema {
|
|
2027
2005
|
id: 'npmPackage';
|
|
@@ -2030,18 +2008,18 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2030
2008
|
name: '';
|
|
2031
2009
|
fields: {
|
|
2032
2010
|
/** . */
|
|
2033
|
-
name: {
|
|
2011
|
+
'name': {
|
|
2034
2012
|
type: 'text';
|
|
2035
2013
|
isRequired: true;
|
|
2036
2014
|
options: undefined;
|
|
2037
2015
|
};
|
|
2038
2016
|
/** . */
|
|
2039
|
-
version: {
|
|
2017
|
+
'version': {
|
|
2040
2018
|
type: 'text';
|
|
2041
2019
|
options: undefined;
|
|
2042
2020
|
};
|
|
2043
2021
|
/** . */
|
|
2044
|
-
isDev: {
|
|
2022
|
+
'isDev': {
|
|
2045
2023
|
type: 'boolean';
|
|
2046
2024
|
options: undefined;
|
|
2047
2025
|
};
|
|
@@ -2052,10 +2030,10 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2052
2030
|
}
|
|
2053
2031
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
2054
2032
|
interface GeneratedFile {
|
|
2055
|
-
name: string;
|
|
2056
|
-
path: string;
|
|
2057
|
-
description?: string | undefined | null;
|
|
2058
|
-
action:
|
|
2033
|
+
'name': string;
|
|
2034
|
+
'path': string;
|
|
2035
|
+
'description'?: string | undefined | null;
|
|
2036
|
+
'action': ("skipped" | "generated" | "updated" | "deleted");
|
|
2059
2037
|
}
|
|
2060
2038
|
interface GeneratedFileSchema extends SpruceSchema.Schema {
|
|
2061
2039
|
id: 'generatedFile';
|
|
@@ -2064,45 +2042,40 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2064
2042
|
name: '';
|
|
2065
2043
|
fields: {
|
|
2066
2044
|
/** . */
|
|
2067
|
-
name: {
|
|
2045
|
+
'name': {
|
|
2068
2046
|
type: 'text';
|
|
2069
2047
|
isRequired: true;
|
|
2070
2048
|
options: undefined;
|
|
2071
2049
|
};
|
|
2072
2050
|
/** . */
|
|
2073
|
-
path: {
|
|
2051
|
+
'path': {
|
|
2074
2052
|
type: 'text';
|
|
2075
2053
|
isRequired: true;
|
|
2076
2054
|
options: undefined;
|
|
2077
2055
|
};
|
|
2078
2056
|
/** . */
|
|
2079
|
-
description: {
|
|
2057
|
+
'description': {
|
|
2080
2058
|
type: 'text';
|
|
2081
2059
|
options: undefined;
|
|
2082
2060
|
};
|
|
2083
2061
|
/** . */
|
|
2084
|
-
action: {
|
|
2062
|
+
'action': {
|
|
2085
2063
|
type: 'select';
|
|
2086
2064
|
isRequired: true;
|
|
2087
2065
|
options: {
|
|
2088
|
-
choices: [
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
{
|
|
2102
|
-
label: 'Deleted';
|
|
2103
|
-
value: 'deleted';
|
|
2104
|
-
}
|
|
2105
|
-
];
|
|
2066
|
+
choices: [{
|
|
2067
|
+
"label": "Skipped";
|
|
2068
|
+
"value": "skipped";
|
|
2069
|
+
}, {
|
|
2070
|
+
"label": "Generated";
|
|
2071
|
+
"value": "generated";
|
|
2072
|
+
}, {
|
|
2073
|
+
"label": "Updated";
|
|
2074
|
+
"value": "updated";
|
|
2075
|
+
}, {
|
|
2076
|
+
"label": "Deleted";
|
|
2077
|
+
"value": "deleted";
|
|
2078
|
+
}];
|
|
2106
2079
|
};
|
|
2107
2080
|
};
|
|
2108
2081
|
};
|
|
@@ -2112,13 +2085,13 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2112
2085
|
}
|
|
2113
2086
|
namespace SpruceSchemas.SpruceCli.v2020_07_22 {
|
|
2114
2087
|
interface ActionResponse {
|
|
2115
|
-
files?: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedFile[] | undefined | null;
|
|
2116
|
-
headline?: string | undefined | null;
|
|
2117
|
-
hints?: string[] | undefined | null;
|
|
2118
|
-
summaryLines?: string[] | undefined | null;
|
|
2119
|
-
errors?: AbstractSpruceError<any>[] | undefined | null;
|
|
2120
|
-
meta?: Record<string, any> | undefined | null;
|
|
2121
|
-
packagesInstalled?: SpruceSchemas.SpruceCli.v2020_07_22.NpmPackage[] | undefined | null;
|
|
2088
|
+
'files'?: SpruceSchemas.SpruceCli.v2020_07_22.GeneratedFile[] | undefined | null;
|
|
2089
|
+
'headline'?: string | undefined | null;
|
|
2090
|
+
'hints'?: string[] | undefined | null;
|
|
2091
|
+
'summaryLines'?: string[] | undefined | null;
|
|
2092
|
+
'errors'?: (AbstractSpruceError<any>)[] | undefined | null;
|
|
2093
|
+
'meta'?: (Record<string, any>) | undefined | null;
|
|
2094
|
+
'packagesInstalled'?: SpruceSchemas.SpruceCli.v2020_07_22.NpmPackage[] | undefined | null;
|
|
2122
2095
|
}
|
|
2123
2096
|
interface ActionResponseSchema extends SpruceSchema.Schema {
|
|
2124
2097
|
id: 'actionResponse';
|
|
@@ -2127,7 +2100,7 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2127
2100
|
name: 'Action response';
|
|
2128
2101
|
fields: {
|
|
2129
2102
|
/** . */
|
|
2130
|
-
files: {
|
|
2103
|
+
'files': {
|
|
2131
2104
|
type: 'schema';
|
|
2132
2105
|
isArray: true;
|
|
2133
2106
|
options: {
|
|
@@ -2135,24 +2108,24 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2135
2108
|
};
|
|
2136
2109
|
};
|
|
2137
2110
|
/** . */
|
|
2138
|
-
headline: {
|
|
2111
|
+
'headline': {
|
|
2139
2112
|
type: 'text';
|
|
2140
2113
|
options: undefined;
|
|
2141
2114
|
};
|
|
2142
2115
|
/** . */
|
|
2143
|
-
hints: {
|
|
2116
|
+
'hints': {
|
|
2144
2117
|
type: 'text';
|
|
2145
2118
|
isArray: true;
|
|
2146
2119
|
options: undefined;
|
|
2147
2120
|
};
|
|
2148
2121
|
/** . */
|
|
2149
|
-
summaryLines: {
|
|
2122
|
+
'summaryLines': {
|
|
2150
2123
|
type: 'text';
|
|
2151
2124
|
isArray: true;
|
|
2152
2125
|
options: undefined;
|
|
2153
2126
|
};
|
|
2154
2127
|
/** . */
|
|
2155
|
-
errors: {
|
|
2128
|
+
'errors': {
|
|
2156
2129
|
type: 'raw';
|
|
2157
2130
|
isArray: true;
|
|
2158
2131
|
options: {
|
|
@@ -2160,14 +2133,14 @@ declare module '@sprucelabs/spruce-core-schemas/build/.spruce/schemas/core.schem
|
|
|
2160
2133
|
};
|
|
2161
2134
|
};
|
|
2162
2135
|
/** . */
|
|
2163
|
-
meta: {
|
|
2136
|
+
'meta': {
|
|
2164
2137
|
type: 'raw';
|
|
2165
2138
|
options: {
|
|
2166
2139
|
valueType: `Record<string, any>`;
|
|
2167
2140
|
};
|
|
2168
2141
|
};
|
|
2169
2142
|
/** . */
|
|
2170
|
-
packagesInstalled: {
|
|
2143
|
+
'packagesInstalled': {
|
|
2171
2144
|
type: 'schema';
|
|
2172
2145
|
isArray: true;
|
|
2173
2146
|
options: {
|