@sprucelabs/spruce-cli 19.1.42 → 19.2.1
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 +20 -0
- package/build/.spruce/errors/errors.types.d.ts +19 -0
- package/build/.spruce/errors/errors.types.js.map +1 -1
- package/build/.spruce/errors/options.types.d.ts +4 -1
- package/build/.spruce/errors/options.types.js.map +1 -1
- package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.d.ts +3 -0
- package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.js +23 -0
- package/build/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.js.map +1 -0
- package/build/__tests__/behavioral/views/CreatingASkillView.test.d.ts +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +6 -6
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.d.ts +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +6 -6
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.d.ts +23 -0
- package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.js +355 -0
- package/build/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.js.map +1 -0
- package/build/errors/SpruceError.js +3 -0
- package/build/errors/SpruceError.js.map +1 -1
- package/build/errors/viewPluginAlreadyExists.builder.d.ts +11 -0
- package/build/errors/viewPluginAlreadyExists.builder.js +18 -0
- package/build/errors/viewPluginAlreadyExists.builder.js.map +1 -0
- package/build/features/view/actions/CreateAction.d.ts +6 -6
- package/build/features/view/actions/CreateAction.js +59 -59
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreatePluginAction.d.ts +56 -0
- package/build/features/view/actions/CreatePluginAction.js +95 -0
- package/build/features/view/actions/CreatePluginAction.js.map +1 -0
- package/build/features/view/actions/SyncAction.d.ts +6 -6
- package/build/features/view/actions/SyncAction.js +29 -15
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/writers/ViewWriter.d.ts +5 -0
- package/build/features/view/writers/ViewWriter.js +44 -7
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/package.json +25 -25
- package/src/.spruce/errors/errors.types.ts +29 -0
- package/src/.spruce/errors/options.types.ts +4 -1
- package/src/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.ts +22 -0
- package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +1 -1
- package/src/__tests__/behavioral/views/KeepingViewsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/views/plugins/CreatingAViewPlugin.test.ts +161 -0
- package/src/errors/SpruceError.ts +4 -0
- package/src/errors/viewPluginAlreadyExists.builder.ts +12 -0
- package/src/features/view/actions/CreateAction.ts +72 -72
- package/src/features/view/actions/CreatePluginAction.ts +54 -0
- package/src/features/view/actions/SyncAction.ts +30 -14
- package/src/features/view/writers/ViewWriter.ts +45 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [19.2.1](https://github.com/sprucelabsai-community/spruce-cli-workspace/compare/v19.2.0...v19.2.1) (2024-03-18)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @sprucelabs/spruce-cli
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [19.2.0](https://github.com/sprucelabsai-community/spruce-cli-workspace/compare/v19.1.42...v19.2.0) (2024-03-08)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* view controller plugins ([0253f8c](https://github.com/sprucelabsai-community/spruce-cli-workspace/commit/0253f8c))
|
|
20
|
+
* view plugins yeah! ([642b994](https://github.com/sprucelabsai-community/spruce-cli-workspace/commit/642b994))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
6
26
|
## [19.1.42](https://github.com/sprucelabsai-community/spruce-cli-workspace/compare/v19.1.41...v19.1.42) (2024-03-08)
|
|
7
27
|
|
|
8
28
|
**Note:** Version bump only for package @sprucelabs/spruce-cli
|
|
@@ -11,6 +11,25 @@ export declare namespace SpruceErrors.SpruceCli {
|
|
|
11
11
|
}
|
|
12
12
|
type VscodeNotInstalledEntity = SchemaEntity<SpruceErrors.SpruceCli.VscodeNotInstalledSchema>;
|
|
13
13
|
}
|
|
14
|
+
export declare namespace SpruceErrors.SpruceCli {
|
|
15
|
+
interface ViewPluginAlreadyExists {
|
|
16
|
+
'name': string;
|
|
17
|
+
}
|
|
18
|
+
interface ViewPluginAlreadyExistsSchema extends SpruceSchema.Schema {
|
|
19
|
+
id: 'viewPluginAlreadyExists';
|
|
20
|
+
namespace: 'SpruceCli';
|
|
21
|
+
name: 'View plugin already exists';
|
|
22
|
+
fields: {
|
|
23
|
+
/** . */
|
|
24
|
+
'name': {
|
|
25
|
+
type: 'text';
|
|
26
|
+
isRequired: true;
|
|
27
|
+
options: undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
type ViewPluginAlreadyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.ViewPluginAlreadyExistsSchema>;
|
|
32
|
+
}
|
|
14
33
|
export declare namespace SpruceErrors.SpruceCli {
|
|
15
34
|
interface TransportAlreadyExists {
|
|
16
35
|
/** Transport name. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.types.js","names":[],"sources":["../../../src/.spruce/errors/errors.types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\n/* eslint-disable no-redeclare */\n\nimport { default as SchemaEntity } from '@sprucelabs/schema'\nimport * as SpruceSchema from '@sprucelabs/schema'\n\n\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface VscodeNotInstalled {\n\t\t\n\t}\n\n\texport interface VscodeNotInstalledSchema extends SpruceSchema.Schema {\n\t\tid: 'vscodeNotInstalled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'vscode not installed',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type VscodeNotInstalledEntity = SchemaEntity<SpruceErrors.SpruceCli.VscodeNotInstalledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface TransportAlreadyExists {\n\t\t\n\t\t\t/** Transport name. */\n\t\t\t'name': string\n\t}\n\n\texport interface TransportAlreadyExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'transportAlreadyExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'transport already exists',\n\t\t fields: {\n\t\t /** Transport name. */\n\t\t 'name': {\n\t\t label: 'Transport name',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type TransportAlreadyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.TransportAlreadyExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface ThemeExists {\n\t\t\n\t}\n\n\texport interface ThemeExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'themeExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Theme exists',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type ThemeExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.ThemeExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface TestFailed {\n\t\t\n\t\t\t\n\t\t\t'fileName': string\n\t\t\t\n\t\t\t'testName': string\n\t\t\t\n\t\t\t'errorMessage': string\n\t}\n\n\texport interface TestFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'testFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Test failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'fileName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'testName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'errorMessage': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type TestFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.TestFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface StoreExists {\n\t\t\n\t}\n\n\texport interface StoreExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'storeExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Store exists',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type StoreExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.StoreExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillViewExists {\n\t\t\n\t\t\t\n\t\t\t'name': string\n\t}\n\n\texport interface SkillViewExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'skillViewExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Skill view exists',\n\t\t fields: {\n\t\t /** . */\n\t\t 'name': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SkillViewExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillViewExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillNotRegistered {\n\t\t\n\t}\n\n\texport interface SkillNotRegisteredSchema extends SpruceSchema.Schema {\n\t\tid: 'skillNotRegistered',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Skill not registered',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type SkillNotRegisteredEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillNotRegisteredSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillNotFound {\n\t\t\n\t}\n\n\texport interface SkillNotFoundSchema extends SpruceSchema.Schema {\n\t\tid: 'skillNotFound',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'skill not found',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type SkillNotFoundEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillNotFoundSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SchemaTemplateItemBuildingFailed {\n\t\t\n\t\t\t\n\t\t\t'schemaId': string\n\t\t\t\n\t\t\t'schemaNamespace': string\n\t\t\t\n\t\t\t'fieldName': string\n\t\t\t\n\t\t\t'fieldOptions': (Record<string, any>)\n\t}\n\n\texport interface SchemaTemplateItemBuildingFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaTemplateItemBuildingFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Schema template item building failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'schemaId': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'schemaNamespace': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'fieldName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'fieldOptions': {\n\t\t type: 'raw',\n\t\t isRequired: true,\n\t\t options: {valueType: `Record<string, any>`,}\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaTemplateItemBuildingFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaTemplateItemBuildingFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The definition file failed to import */\n\texport interface SchemaFailedToImport {\n\t\t\n\t\t\t/** File. The file definition file I tried to import */\n\t\t\t'file': string\n\t}\n\n\texport interface SchemaFailedToImportSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaFailedToImport',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Definition failed to import',\n\t\tdescription: 'The definition file failed to import',\n\t\t fields: {\n\t\t /** File. The file definition file I tried to import */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file definition file I tried to import',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaFailedToImportEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaFailedToImportSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SchemaExists {\n\t\t\n\t\t\t/** Schema id. */\n\t\t\t'schemaId': string\n\t\t\t/** Destination. */\n\t\t\t'destination'?: string| undefined | null\n\t}\n\n\texport interface SchemaExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Schema exists',\n\t\t fields: {\n\t\t /** Schema id. */\n\t\t 'schemaId': {\n\t\t label: 'Schema id',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** Destination. */\n\t\t 'destination': {\n\t\t label: 'Destination',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NotLoggedIn {\n\t\t\n\t}\n\n\texport interface NotLoggedInSchema extends SpruceSchema.Schema {\n\t\tid: 'notLoggedIn',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Not logged in',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NotLoggedInEntity = SchemaEntity<SpruceErrors.SpruceCli.NotLoggedInSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** This feature has not been implemented */\n\texport interface NotImplemented {\n\t\t\n\t}\n\n\texport interface NotImplementedSchema extends SpruceSchema.Schema {\n\t\tid: 'notImplemented',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Not implemented',\n\t\tdescription: 'This feature has not been implemented',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NotImplementedEntity = SchemaEntity<SpruceErrors.SpruceCli.NotImplementedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NoSkillsRegistered {\n\t\t\n\t}\n\n\texport interface NoSkillsRegisteredSchema extends SpruceSchema.Schema {\n\t\tid: 'noSkillsRegistered',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'No skills registered',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NoSkillsRegisteredEntity = SchemaEntity<SpruceErrors.SpruceCli.NoSkillsRegisteredSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NoOrganizationsFound {\n\t\t\n\t}\n\n\texport interface NoOrganizationsFoundSchema extends SpruceSchema.Schema {\n\t\tid: 'noOrganizationsFound',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'no organizations found',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NoOrganizationsFoundEntity = SchemaEntity<SpruceErrors.SpruceCli.NoOrganizationsFoundSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MissingDependenciesDependency {\n\t\t\n\t\t\t\n\t\t\t'name': string\n\t\t\t\n\t\t\t'hint': string\n\t}\n\n\texport interface MissingDependenciesDependencySchema extends SpruceSchema.Schema {\n\t\tid: 'missingDependenciesDependency',\n\t\tnamespace: 'SpruceCli',\n\t\tname: '',\n\t\t fields: {\n\t\t /** . */\n\t\t 'name': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'hint': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type MissingDependenciesDependencyEntity = SchemaEntity<SpruceErrors.SpruceCli.MissingDependenciesDependencySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MissingDependencies {\n\t\t\n\t\t\t\n\t\t\t'dependencies': SpruceErrors.SpruceCli.MissingDependenciesDependency[]\n\t}\n\n\texport interface MissingDependenciesSchema extends SpruceSchema.Schema {\n\t\tid: 'missingDependencies',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Missing dependencies',\n\t\t fields: {\n\t\t /** . */\n\t\t 'dependencies': {\n\t\t type: 'schema',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: {schema: SpruceErrors.SpruceCli.MissingDependenciesDependencySchema,}\n\t\t },\n\t\t }\n\t}\n\n\texport type MissingDependenciesEntity = SchemaEntity<SpruceErrors.SpruceCli.MissingDependenciesSchema>\n\n}\n\n\nimport AbstractSpruceError from '@sprucelabs/error'\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MercuryResponseError {\n\t\t\n\t\t\t\n\t\t\t'responseErrors': (AbstractSpruceError<any>)[]\n\t}\n\n\texport interface MercuryResponseErrorSchema extends SpruceSchema.Schema {\n\t\tid: 'mercuryResponseError',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Mercury response error',\n\t\t fields: {\n\t\t /** . */\n\t\t 'responseErrors': {\n\t\t type: 'raw',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: {valueType: `AbstractSpruceError<any>`,}\n\t\t },\n\t\t }\n\t}\n\n\texport type MercuryResponseErrorEntity = SchemaEntity<SpruceErrors.SpruceCli.MercuryResponseErrorSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** When linting a file fails */\n\texport interface LintFailed {\n\t\t\n\t\t\t/** Pattern. The pattern used to match files relative to the root of the skill */\n\t\t\t'pattern': string\n\t}\n\n\texport interface LintFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'lintFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Lint failed!',\n\t\tdescription: 'When linting a file fails',\n\t\t fields: {\n\t\t /** Pattern. The pattern used to match files relative to the root of the skill */\n\t\t 'pattern': {\n\t\t label: 'Pattern',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The pattern used to match files relative to the root of the skill',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type LintFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.LintFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidTestDirectory {\n\t\t\n\t\t\t\n\t\t\t'dir': string\n\t}\n\n\texport interface InvalidTestDirectorySchema extends SpruceSchema.Schema {\n\t\tid: 'invalidTestDirectory',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'invalid test directory',\n\t\t fields: {\n\t\t /** . */\n\t\t 'dir': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidTestDirectoryEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidTestDirectorySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidFeatureCode {\n\t\t\n\t\t\t\n\t\t\t'featureCode': string\n\t}\n\n\texport interface InvalidFeatureCodeSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidFeatureCode',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Invalid feature code',\n\t\t fields: {\n\t\t /** . */\n\t\t 'featureCode': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidFeatureCodeEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidFeatureCodeSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidEventContract {\n\t\t\n\t\t\t\n\t\t\t'fullyQualifiedEventName': string\n\t\t\t\n\t\t\t'brokenProperty': string\n\t}\n\n\texport interface InvalidEventContractSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidEventContract',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'invalid event contract',\n\t\t fields: {\n\t\t /** . */\n\t\t 'fullyQualifiedEventName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'brokenProperty': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidEventContractEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidEventContractSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The command is not valid, try --help */\n\texport interface InvalidCommand {\n\t\t\n\t\t\t/** args. */\n\t\t\t'args': string[]\n\t}\n\n\texport interface InvalidCommandSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidCommand',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Invalid command',\n\t\tdescription: 'The command is not valid, try --help',\n\t\t fields: {\n\t\t /** args. */\n\t\t 'args': {\n\t\t label: 'args',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidCommandEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidCommandSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** When you're too lazy to make a new error */\n\texport interface Generic {\n\t\t\n\t\t\t/** Friendly message. */\n\t\t\t'friendlyMessageSet'?: string| undefined | null\n\t}\n\n\texport interface GenericSchema extends SpruceSchema.Schema {\n\t\tid: 'generic',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'generic',\n\t\tdescription: 'When you\\'re too lazy to make a new error',\n\t\t fields: {\n\t\t /** Friendly message. */\n\t\t 'friendlyMessageSet': {\n\t\t label: 'Friendly message',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type GenericEntity = SchemaEntity<SpruceErrors.SpruceCli.GenericSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The file already exists */\n\texport interface FileExists {\n\t\t\n\t\t\t/** File. The file being created */\n\t\t\t'file': string\n\t}\n\n\texport interface FileExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'fileExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'fileExists',\n\t\tdescription: 'The file already exists',\n\t\t fields: {\n\t\t /** File. The file being created */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file being created',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FileExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.FileExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface FeatureNotInstalled {\n\t\t\n\t\t\t\n\t\t\t'featureCode': string\n\t}\n\n\texport interface FeatureNotInstalledSchema extends SpruceSchema.Schema {\n\t\tid: 'featureNotInstalled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Feature not installed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'featureCode': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FeatureNotInstalledEntity = SchemaEntity<SpruceErrors.SpruceCli.FeatureNotInstalledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Failed to import a file through VM */\n\texport interface FailedToImport {\n\t\t\n\t\t\t/** File. The file I tried to import */\n\t\t\t'file': string\n\t}\n\n\texport interface FailedToImportSchema extends SpruceSchema.Schema {\n\t\tid: 'failedToImport',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'FailedToImport',\n\t\tdescription: 'Failed to import a file through VM',\n\t\t fields: {\n\t\t /** File. The file I tried to import */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file I tried to import',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FailedToImportEntity = SchemaEntity<SpruceErrors.SpruceCli.FailedToImportSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The command that was being executed failed */\n\texport interface ExecutingCommandFailed {\n\t\t\n\t\t\t/** The command being run. */\n\t\t\t'cmd'?: string| undefined | null\n\t\t\t/** Args. */\n\t\t\t'args'?: string[]| undefined | null\n\t\t\t/** Cwd. */\n\t\t\t'cwd'?: string| undefined | null\n\t\t\t/** Stdout. */\n\t\t\t'stdout'?: string| undefined | null\n\t\t\t/** stderr. */\n\t\t\t'stderr'?: string| undefined | null\n\t}\n\n\texport interface ExecutingCommandFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'executingCommandFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Executing command failed',\n\t\tdescription: 'The command that was being executed failed',\n\t\t fields: {\n\t\t /** The command being run. */\n\t\t 'cmd': {\n\t\t label: 'The command being run',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** Args. */\n\t\t 'args': {\n\t\t label: 'Args',\n\t\t type: 'text',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t /** Cwd. */\n\t\t 'cwd': {\n\t\t label: 'Cwd',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** Stdout. */\n\t\t 'stdout': {\n\t\t label: 'Stdout',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** stderr. */\n\t\t 'stderr': {\n\t\t label: 'stderr',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type ExecutingCommandFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.ExecutingCommandFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DockerNotStarted {\n\t\t\n\t}\n\n\texport interface DockerNotStartedSchema extends SpruceSchema.Schema {\n\t\tid: 'dockerNotStarted',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Docker not started',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type DockerNotStartedEntity = SchemaEntity<SpruceErrors.SpruceCli.DockerNotStartedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DirectoryNotSkill {\n\t\t\n\t}\n\n\texport interface DirectoryNotSkillSchema extends SpruceSchema.Schema {\n\t\tid: 'directoryNotSkill',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Dir not skill',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type DirectoryNotSkillEntity = SchemaEntity<SpruceErrors.SpruceCli.DirectoryNotSkillSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DirectoryEmpty {\n\t\t\n\t\t\t\n\t\t\t'directory': string\n\t}\n\n\texport interface DirectoryEmptySchema extends SpruceSchema.Schema {\n\t\tid: 'directoryEmpty',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'directory empty',\n\t\t fields: {\n\t\t /** . */\n\t\t 'directory': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type DirectoryEmptyEntity = SchemaEntity<SpruceErrors.SpruceCli.DirectoryEmptySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DeployFailed {\n\t\t\n\t\t\t\n\t\t\t'stage': (\"skill\" | \"building\" | \"testing\" | \"git\" | \"procfile\" | \"remote\" | \"heroku\")\n\t}\n\n\texport interface DeployFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'deployFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Deploy Failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'stage': {\n\t\t type: 'select',\n\t\t isRequired: true,\n\t\t options: {choices: [{\"label\":\"Skill\",\"value\":\"skill\"},{\"label\":\"Building\",\"value\":\"building\"},{\"label\":\"Testing\",\"value\":\"testing\"},{\"label\":\"Git\",\"value\":\"git\"},{\"label\":\"Procfile\",\"value\":\"procfile\"},{\"label\":\"Remote\",\"value\":\"remote\"},{\"label\":\"Heroku\",\"value\":\"heroku\"}],}\n\t\t },\n\t\t }\n\t}\n\n\texport type DeployFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.DeployFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DependencyExists {\n\t\t\n\t\t\t\n\t\t\t'namespace': string\n\t}\n\n\texport interface DependencyExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'dependencyExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Dependency exists',\n\t\t fields: {\n\t\t /** . */\n\t\t 'namespace': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type DependencyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.DependencyExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Autoloader creation failed */\n\texport interface CreateAutoloaderFailed {\n\t\t\n\t\t\t/** The globby pattern used to find files. Globby pattern */\n\t\t\t'globbyPattern': string\n\t\t\t/** The files that were loaded. The files that were loaded */\n\t\t\t'filePaths': string[]\n\t\t\t/** The suffix for classes to autoload. Class suffix */\n\t\t\t'suffix': string\n\t\t\t/** The directory we're trying to create the autoloader for. Directory to autoload */\n\t\t\t'directory': string\n\t}\n\n\texport interface CreateAutoloaderFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'createAutoloaderFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Could not create an autoloader',\n\t\tdescription: 'Autoloader creation failed',\n\t\t fields: {\n\t\t /** The globby pattern used to find files. Globby pattern */\n\t\t 'globbyPattern': {\n\t\t label: 'The globby pattern used to find files',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Globby pattern',\n\t\t options: undefined\n\t\t },\n\t\t /** The files that were loaded. The files that were loaded */\n\t\t 'filePaths': {\n\t\t label: 'The files that were loaded',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The files that were loaded',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t /** The suffix for classes to autoload. Class suffix */\n\t\t 'suffix': {\n\t\t label: 'The suffix for classes to autoload',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Class suffix',\n\t\t options: undefined\n\t\t },\n\t\t /** The directory we're trying to create the autoloader for. Directory to autoload */\n\t\t 'directory': {\n\t\t label: 'The directory we\\'re trying to create the autoloader for',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Directory to autoload',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CreateAutoloaderFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.CreateAutoloaderFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** This command has not yet been implemented */\n\texport interface CommandNotImplemented {\n\t\t\n\t\t\t/** Command. the command being run! */\n\t\t\t'command': string\n\t\t\t/** Args. Arguments passed to the command */\n\t\t\t'args'?: string[]| undefined | null\n\t}\n\n\texport interface CommandNotImplementedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandNotImplemented',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command not implemented',\n\t\tdescription: 'This command has not yet been implemented ',\n\t\t fields: {\n\t\t /** Command. the command being run! */\n\t\t 'command': {\n\t\t label: 'Command',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'the command being run!',\n\t\t options: undefined\n\t\t },\n\t\t /** Args. Arguments passed to the command */\n\t\t 'args': {\n\t\t label: 'Args',\n\t\t type: 'text',\n\t\t hint: 'Arguments passed to the command',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandNotImplementedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandNotImplementedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CommandBlocked {\n\t\t\n\t\t\t\n\t\t\t'command': string\n\t\t\t\n\t\t\t'hint': string\n\t}\n\n\texport interface CommandBlockedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandBlocked',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command blocked',\n\t\t fields: {\n\t\t /** . */\n\t\t 'command': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'hint': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandBlockedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandBlockedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CommandAborted {\n\t\t\n\t\t\t/** Command. */\n\t\t\t'command': string\n\t}\n\n\texport interface CommandAbortedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandAborted',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command aborted',\n\t\t fields: {\n\t\t /** Command. */\n\t\t 'command': {\n\t\t label: 'Command',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandAbortedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandAbortedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CacheNotEnabled {\n\t\t\n\t}\n\n\texport interface CacheNotEnabledSchema extends SpruceSchema.Schema {\n\t\tid: 'cacheNotEnabled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Cache not enabled',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type CacheNotEnabledEntity = SchemaEntity<SpruceErrors.SpruceCli.CacheNotEnabledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Error thrown when building or linting failed. Happens when a yarn command fails inside the package utility. */\n\texport interface BuildFailed {\n\t\t\n\t\t\t/** File. File we wanted to build, if not set we wanted to build everything.. */\n\t\t\t'file'?: string| undefined | null\n\t}\n\n\texport interface BuildFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'buildFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'BuildFailed',\n\t\tdescription: 'Error thrown when building or linting failed. Happens when a yarn command fails inside the package utility.',\n\t\t fields: {\n\t\t /** File. File we wanted to build, if not set we wanted to build everything.. */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t hint: 'File we wanted to build, if not set we wanted to build everything..',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type BuildFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.BuildFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface BootError {\n\t\t\n\t}\n\n\texport interface BootErrorSchema extends SpruceSchema.Schema {\n\t\tid: 'bootError',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'boot error',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type BootErrorEntity = SchemaEntity<SpruceErrors.SpruceCli.BootErrorSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface ActionCancelled {\n\t\t\n\t}\n\n\texport interface ActionCancelledSchema extends SpruceSchema.Schema {\n\t\tid: 'actionCancelled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Action cancelled',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type ActionCancelledEntity = SchemaEntity<SpruceErrors.SpruceCli.ActionCancelledSchema>\n\n}\n\n\n\n\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"errors.types.js","names":[],"sources":["../../../src/.spruce/errors/errors.types.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-namespace */\n/* eslint-disable no-redeclare */\n\nimport { default as SchemaEntity } from '@sprucelabs/schema'\nimport * as SpruceSchema from '@sprucelabs/schema'\n\n\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface VscodeNotInstalled {\n\t\t\n\t}\n\n\texport interface VscodeNotInstalledSchema extends SpruceSchema.Schema {\n\t\tid: 'vscodeNotInstalled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'vscode not installed',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type VscodeNotInstalledEntity = SchemaEntity<SpruceErrors.SpruceCli.VscodeNotInstalledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface ViewPluginAlreadyExists {\n\t\t\n\t\t\t\n\t\t\t'name': string\n\t}\n\n\texport interface ViewPluginAlreadyExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'viewPluginAlreadyExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'View plugin already exists',\n\t\t fields: {\n\t\t /** . */\n\t\t 'name': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type ViewPluginAlreadyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.ViewPluginAlreadyExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface TransportAlreadyExists {\n\t\t\n\t\t\t/** Transport name. */\n\t\t\t'name': string\n\t}\n\n\texport interface TransportAlreadyExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'transportAlreadyExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'transport already exists',\n\t\t fields: {\n\t\t /** Transport name. */\n\t\t 'name': {\n\t\t label: 'Transport name',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type TransportAlreadyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.TransportAlreadyExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface ThemeExists {\n\t\t\n\t}\n\n\texport interface ThemeExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'themeExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Theme exists',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type ThemeExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.ThemeExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface TestFailed {\n\t\t\n\t\t\t\n\t\t\t'fileName': string\n\t\t\t\n\t\t\t'testName': string\n\t\t\t\n\t\t\t'errorMessage': string\n\t}\n\n\texport interface TestFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'testFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Test failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'fileName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'testName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'errorMessage': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type TestFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.TestFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface StoreExists {\n\t\t\n\t}\n\n\texport interface StoreExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'storeExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Store exists',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type StoreExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.StoreExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillViewExists {\n\t\t\n\t\t\t\n\t\t\t'name': string\n\t}\n\n\texport interface SkillViewExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'skillViewExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Skill view exists',\n\t\t fields: {\n\t\t /** . */\n\t\t 'name': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SkillViewExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillViewExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillNotRegistered {\n\t\t\n\t}\n\n\texport interface SkillNotRegisteredSchema extends SpruceSchema.Schema {\n\t\tid: 'skillNotRegistered',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Skill not registered',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type SkillNotRegisteredEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillNotRegisteredSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SkillNotFound {\n\t\t\n\t}\n\n\texport interface SkillNotFoundSchema extends SpruceSchema.Schema {\n\t\tid: 'skillNotFound',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'skill not found',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type SkillNotFoundEntity = SchemaEntity<SpruceErrors.SpruceCli.SkillNotFoundSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SchemaTemplateItemBuildingFailed {\n\t\t\n\t\t\t\n\t\t\t'schemaId': string\n\t\t\t\n\t\t\t'schemaNamespace': string\n\t\t\t\n\t\t\t'fieldName': string\n\t\t\t\n\t\t\t'fieldOptions': (Record<string, any>)\n\t}\n\n\texport interface SchemaTemplateItemBuildingFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaTemplateItemBuildingFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Schema template item building failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'schemaId': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'schemaNamespace': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'fieldName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'fieldOptions': {\n\t\t type: 'raw',\n\t\t isRequired: true,\n\t\t options: {valueType: `Record<string, any>`,}\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaTemplateItemBuildingFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaTemplateItemBuildingFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The definition file failed to import */\n\texport interface SchemaFailedToImport {\n\t\t\n\t\t\t/** File. The file definition file I tried to import */\n\t\t\t'file': string\n\t}\n\n\texport interface SchemaFailedToImportSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaFailedToImport',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Definition failed to import',\n\t\tdescription: 'The definition file failed to import',\n\t\t fields: {\n\t\t /** File. The file definition file I tried to import */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file definition file I tried to import',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaFailedToImportEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaFailedToImportSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface SchemaExists {\n\t\t\n\t\t\t/** Schema id. */\n\t\t\t'schemaId': string\n\t\t\t/** Destination. */\n\t\t\t'destination'?: string| undefined | null\n\t}\n\n\texport interface SchemaExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'schemaExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Schema exists',\n\t\t fields: {\n\t\t /** Schema id. */\n\t\t 'schemaId': {\n\t\t label: 'Schema id',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** Destination. */\n\t\t 'destination': {\n\t\t label: 'Destination',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type SchemaExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.SchemaExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NotLoggedIn {\n\t\t\n\t}\n\n\texport interface NotLoggedInSchema extends SpruceSchema.Schema {\n\t\tid: 'notLoggedIn',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Not logged in',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NotLoggedInEntity = SchemaEntity<SpruceErrors.SpruceCli.NotLoggedInSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** This feature has not been implemented */\n\texport interface NotImplemented {\n\t\t\n\t}\n\n\texport interface NotImplementedSchema extends SpruceSchema.Schema {\n\t\tid: 'notImplemented',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Not implemented',\n\t\tdescription: 'This feature has not been implemented',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NotImplementedEntity = SchemaEntity<SpruceErrors.SpruceCli.NotImplementedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NoSkillsRegistered {\n\t\t\n\t}\n\n\texport interface NoSkillsRegisteredSchema extends SpruceSchema.Schema {\n\t\tid: 'noSkillsRegistered',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'No skills registered',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NoSkillsRegisteredEntity = SchemaEntity<SpruceErrors.SpruceCli.NoSkillsRegisteredSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface NoOrganizationsFound {\n\t\t\n\t}\n\n\texport interface NoOrganizationsFoundSchema extends SpruceSchema.Schema {\n\t\tid: 'noOrganizationsFound',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'no organizations found',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type NoOrganizationsFoundEntity = SchemaEntity<SpruceErrors.SpruceCli.NoOrganizationsFoundSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MissingDependenciesDependency {\n\t\t\n\t\t\t\n\t\t\t'name': string\n\t\t\t\n\t\t\t'hint': string\n\t}\n\n\texport interface MissingDependenciesDependencySchema extends SpruceSchema.Schema {\n\t\tid: 'missingDependenciesDependency',\n\t\tnamespace: 'SpruceCli',\n\t\tname: '',\n\t\t fields: {\n\t\t /** . */\n\t\t 'name': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'hint': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type MissingDependenciesDependencyEntity = SchemaEntity<SpruceErrors.SpruceCli.MissingDependenciesDependencySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MissingDependencies {\n\t\t\n\t\t\t\n\t\t\t'dependencies': SpruceErrors.SpruceCli.MissingDependenciesDependency[]\n\t}\n\n\texport interface MissingDependenciesSchema extends SpruceSchema.Schema {\n\t\tid: 'missingDependencies',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Missing dependencies',\n\t\t fields: {\n\t\t /** . */\n\t\t 'dependencies': {\n\t\t type: 'schema',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: {schema: SpruceErrors.SpruceCli.MissingDependenciesDependencySchema,}\n\t\t },\n\t\t }\n\t}\n\n\texport type MissingDependenciesEntity = SchemaEntity<SpruceErrors.SpruceCli.MissingDependenciesSchema>\n\n}\n\n\nimport AbstractSpruceError from '@sprucelabs/error'\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface MercuryResponseError {\n\t\t\n\t\t\t\n\t\t\t'responseErrors': (AbstractSpruceError<any>)[]\n\t}\n\n\texport interface MercuryResponseErrorSchema extends SpruceSchema.Schema {\n\t\tid: 'mercuryResponseError',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Mercury response error',\n\t\t fields: {\n\t\t /** . */\n\t\t 'responseErrors': {\n\t\t type: 'raw',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: {valueType: `AbstractSpruceError<any>`,}\n\t\t },\n\t\t }\n\t}\n\n\texport type MercuryResponseErrorEntity = SchemaEntity<SpruceErrors.SpruceCli.MercuryResponseErrorSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** When linting a file fails */\n\texport interface LintFailed {\n\t\t\n\t\t\t/** Pattern. The pattern used to match files relative to the root of the skill */\n\t\t\t'pattern': string\n\t}\n\n\texport interface LintFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'lintFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Lint failed!',\n\t\tdescription: 'When linting a file fails',\n\t\t fields: {\n\t\t /** Pattern. The pattern used to match files relative to the root of the skill */\n\t\t 'pattern': {\n\t\t label: 'Pattern',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The pattern used to match files relative to the root of the skill',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type LintFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.LintFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidTestDirectory {\n\t\t\n\t\t\t\n\t\t\t'dir': string\n\t}\n\n\texport interface InvalidTestDirectorySchema extends SpruceSchema.Schema {\n\t\tid: 'invalidTestDirectory',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'invalid test directory',\n\t\t fields: {\n\t\t /** . */\n\t\t 'dir': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidTestDirectoryEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidTestDirectorySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidFeatureCode {\n\t\t\n\t\t\t\n\t\t\t'featureCode': string\n\t}\n\n\texport interface InvalidFeatureCodeSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidFeatureCode',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Invalid feature code',\n\t\t fields: {\n\t\t /** . */\n\t\t 'featureCode': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidFeatureCodeEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidFeatureCodeSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface InvalidEventContract {\n\t\t\n\t\t\t\n\t\t\t'fullyQualifiedEventName': string\n\t\t\t\n\t\t\t'brokenProperty': string\n\t}\n\n\texport interface InvalidEventContractSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidEventContract',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'invalid event contract',\n\t\t fields: {\n\t\t /** . */\n\t\t 'fullyQualifiedEventName': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'brokenProperty': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidEventContractEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidEventContractSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The command is not valid, try --help */\n\texport interface InvalidCommand {\n\t\t\n\t\t\t/** args. */\n\t\t\t'args': string[]\n\t}\n\n\texport interface InvalidCommandSchema extends SpruceSchema.Schema {\n\t\tid: 'invalidCommand',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Invalid command',\n\t\tdescription: 'The command is not valid, try --help',\n\t\t fields: {\n\t\t /** args. */\n\t\t 'args': {\n\t\t label: 'args',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type InvalidCommandEntity = SchemaEntity<SpruceErrors.SpruceCli.InvalidCommandSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** When you're too lazy to make a new error */\n\texport interface Generic {\n\t\t\n\t\t\t/** Friendly message. */\n\t\t\t'friendlyMessageSet'?: string| undefined | null\n\t}\n\n\texport interface GenericSchema extends SpruceSchema.Schema {\n\t\tid: 'generic',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'generic',\n\t\tdescription: 'When you\\'re too lazy to make a new error',\n\t\t fields: {\n\t\t /** Friendly message. */\n\t\t 'friendlyMessageSet': {\n\t\t label: 'Friendly message',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type GenericEntity = SchemaEntity<SpruceErrors.SpruceCli.GenericSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The file already exists */\n\texport interface FileExists {\n\t\t\n\t\t\t/** File. The file being created */\n\t\t\t'file': string\n\t}\n\n\texport interface FileExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'fileExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'fileExists',\n\t\tdescription: 'The file already exists',\n\t\t fields: {\n\t\t /** File. The file being created */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file being created',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FileExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.FileExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface FeatureNotInstalled {\n\t\t\n\t\t\t\n\t\t\t'featureCode': string\n\t}\n\n\texport interface FeatureNotInstalledSchema extends SpruceSchema.Schema {\n\t\tid: 'featureNotInstalled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Feature not installed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'featureCode': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FeatureNotInstalledEntity = SchemaEntity<SpruceErrors.SpruceCli.FeatureNotInstalledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Failed to import a file through VM */\n\texport interface FailedToImport {\n\t\t\n\t\t\t/** File. The file I tried to import */\n\t\t\t'file': string\n\t}\n\n\texport interface FailedToImportSchema extends SpruceSchema.Schema {\n\t\tid: 'failedToImport',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'FailedToImport',\n\t\tdescription: 'Failed to import a file through VM',\n\t\t fields: {\n\t\t /** File. The file I tried to import */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The file I tried to import',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type FailedToImportEntity = SchemaEntity<SpruceErrors.SpruceCli.FailedToImportSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** The command that was being executed failed */\n\texport interface ExecutingCommandFailed {\n\t\t\n\t\t\t/** The command being run. */\n\t\t\t'cmd'?: string| undefined | null\n\t\t\t/** Args. */\n\t\t\t'args'?: string[]| undefined | null\n\t\t\t/** Cwd. */\n\t\t\t'cwd'?: string| undefined | null\n\t\t\t/** Stdout. */\n\t\t\t'stdout'?: string| undefined | null\n\t\t\t/** stderr. */\n\t\t\t'stderr'?: string| undefined | null\n\t}\n\n\texport interface ExecutingCommandFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'executingCommandFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Executing command failed',\n\t\tdescription: 'The command that was being executed failed',\n\t\t fields: {\n\t\t /** The command being run. */\n\t\t 'cmd': {\n\t\t label: 'The command being run',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** Args. */\n\t\t 'args': {\n\t\t label: 'Args',\n\t\t type: 'text',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t /** Cwd. */\n\t\t 'cwd': {\n\t\t label: 'Cwd',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** Stdout. */\n\t\t 'stdout': {\n\t\t label: 'Stdout',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t /** stderr. */\n\t\t 'stderr': {\n\t\t label: 'stderr',\n\t\t type: 'text',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type ExecutingCommandFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.ExecutingCommandFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DockerNotStarted {\n\t\t\n\t}\n\n\texport interface DockerNotStartedSchema extends SpruceSchema.Schema {\n\t\tid: 'dockerNotStarted',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Docker not started',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type DockerNotStartedEntity = SchemaEntity<SpruceErrors.SpruceCli.DockerNotStartedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DirectoryNotSkill {\n\t\t\n\t}\n\n\texport interface DirectoryNotSkillSchema extends SpruceSchema.Schema {\n\t\tid: 'directoryNotSkill',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Dir not skill',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type DirectoryNotSkillEntity = SchemaEntity<SpruceErrors.SpruceCli.DirectoryNotSkillSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DirectoryEmpty {\n\t\t\n\t\t\t\n\t\t\t'directory': string\n\t}\n\n\texport interface DirectoryEmptySchema extends SpruceSchema.Schema {\n\t\tid: 'directoryEmpty',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'directory empty',\n\t\t fields: {\n\t\t /** . */\n\t\t 'directory': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type DirectoryEmptyEntity = SchemaEntity<SpruceErrors.SpruceCli.DirectoryEmptySchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DeployFailed {\n\t\t\n\t\t\t\n\t\t\t'stage': (\"skill\" | \"building\" | \"testing\" | \"git\" | \"procfile\" | \"remote\" | \"heroku\")\n\t}\n\n\texport interface DeployFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'deployFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Deploy Failed',\n\t\t fields: {\n\t\t /** . */\n\t\t 'stage': {\n\t\t type: 'select',\n\t\t isRequired: true,\n\t\t options: {choices: [{\"label\":\"Skill\",\"value\":\"skill\"},{\"label\":\"Building\",\"value\":\"building\"},{\"label\":\"Testing\",\"value\":\"testing\"},{\"label\":\"Git\",\"value\":\"git\"},{\"label\":\"Procfile\",\"value\":\"procfile\"},{\"label\":\"Remote\",\"value\":\"remote\"},{\"label\":\"Heroku\",\"value\":\"heroku\"}],}\n\t\t },\n\t\t }\n\t}\n\n\texport type DeployFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.DeployFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface DependencyExists {\n\t\t\n\t\t\t\n\t\t\t'namespace': string\n\t}\n\n\texport interface DependencyExistsSchema extends SpruceSchema.Schema {\n\t\tid: 'dependencyExists',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Dependency exists',\n\t\t fields: {\n\t\t /** . */\n\t\t 'namespace': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type DependencyExistsEntity = SchemaEntity<SpruceErrors.SpruceCli.DependencyExistsSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Autoloader creation failed */\n\texport interface CreateAutoloaderFailed {\n\t\t\n\t\t\t/** The globby pattern used to find files. Globby pattern */\n\t\t\t'globbyPattern': string\n\t\t\t/** The files that were loaded. The files that were loaded */\n\t\t\t'filePaths': string[]\n\t\t\t/** The suffix for classes to autoload. Class suffix */\n\t\t\t'suffix': string\n\t\t\t/** The directory we're trying to create the autoloader for. Directory to autoload */\n\t\t\t'directory': string\n\t}\n\n\texport interface CreateAutoloaderFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'createAutoloaderFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Could not create an autoloader',\n\t\tdescription: 'Autoloader creation failed',\n\t\t fields: {\n\t\t /** The globby pattern used to find files. Globby pattern */\n\t\t 'globbyPattern': {\n\t\t label: 'The globby pattern used to find files',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Globby pattern',\n\t\t options: undefined\n\t\t },\n\t\t /** The files that were loaded. The files that were loaded */\n\t\t 'filePaths': {\n\t\t label: 'The files that were loaded',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'The files that were loaded',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t /** The suffix for classes to autoload. Class suffix */\n\t\t 'suffix': {\n\t\t label: 'The suffix for classes to autoload',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Class suffix',\n\t\t options: undefined\n\t\t },\n\t\t /** The directory we're trying to create the autoloader for. Directory to autoload */\n\t\t 'directory': {\n\t\t label: 'The directory we\\'re trying to create the autoloader for',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'Directory to autoload',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CreateAutoloaderFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.CreateAutoloaderFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** This command has not yet been implemented */\n\texport interface CommandNotImplemented {\n\t\t\n\t\t\t/** Command. the command being run! */\n\t\t\t'command': string\n\t\t\t/** Args. Arguments passed to the command */\n\t\t\t'args'?: string[]| undefined | null\n\t}\n\n\texport interface CommandNotImplementedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandNotImplemented',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command not implemented',\n\t\tdescription: 'This command has not yet been implemented ',\n\t\t fields: {\n\t\t /** Command. the command being run! */\n\t\t 'command': {\n\t\t label: 'Command',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t hint: 'the command being run!',\n\t\t options: undefined\n\t\t },\n\t\t /** Args. Arguments passed to the command */\n\t\t 'args': {\n\t\t label: 'Args',\n\t\t type: 'text',\n\t\t hint: 'Arguments passed to the command',\n\t\t isArray: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandNotImplementedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandNotImplementedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CommandBlocked {\n\t\t\n\t\t\t\n\t\t\t'command': string\n\t\t\t\n\t\t\t'hint': string\n\t}\n\n\texport interface CommandBlockedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandBlocked',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command blocked',\n\t\t fields: {\n\t\t /** . */\n\t\t 'command': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t /** . */\n\t\t 'hint': {\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandBlockedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandBlockedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CommandAborted {\n\t\t\n\t\t\t/** Command. */\n\t\t\t'command': string\n\t}\n\n\texport interface CommandAbortedSchema extends SpruceSchema.Schema {\n\t\tid: 'commandAborted',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Command aborted',\n\t\t fields: {\n\t\t /** Command. */\n\t\t 'command': {\n\t\t label: 'Command',\n\t\t type: 'text',\n\t\t isRequired: true,\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type CommandAbortedEntity = SchemaEntity<SpruceErrors.SpruceCli.CommandAbortedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface CacheNotEnabled {\n\t\t\n\t}\n\n\texport interface CacheNotEnabledSchema extends SpruceSchema.Schema {\n\t\tid: 'cacheNotEnabled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Cache not enabled',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type CacheNotEnabledEntity = SchemaEntity<SpruceErrors.SpruceCli.CacheNotEnabledSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t/** Error thrown when building or linting failed. Happens when a yarn command fails inside the package utility. */\n\texport interface BuildFailed {\n\t\t\n\t\t\t/** File. File we wanted to build, if not set we wanted to build everything.. */\n\t\t\t'file'?: string| undefined | null\n\t}\n\n\texport interface BuildFailedSchema extends SpruceSchema.Schema {\n\t\tid: 'buildFailed',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'BuildFailed',\n\t\tdescription: 'Error thrown when building or linting failed. Happens when a yarn command fails inside the package utility.',\n\t\t fields: {\n\t\t /** File. File we wanted to build, if not set we wanted to build everything.. */\n\t\t 'file': {\n\t\t label: 'File',\n\t\t type: 'text',\n\t\t hint: 'File we wanted to build, if not set we wanted to build everything..',\n\t\t options: undefined\n\t\t },\n\t\t }\n\t}\n\n\texport type BuildFailedEntity = SchemaEntity<SpruceErrors.SpruceCli.BuildFailedSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface BootError {\n\t\t\n\t}\n\n\texport interface BootErrorSchema extends SpruceSchema.Schema {\n\t\tid: 'bootError',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'boot error',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type BootErrorEntity = SchemaEntity<SpruceErrors.SpruceCli.BootErrorSchema>\n\n}\n\n\n\nexport declare namespace SpruceErrors.SpruceCli {\n\n\t\n\texport interface ActionCancelled {\n\t\t\n\t}\n\n\texport interface ActionCancelledSchema extends SpruceSchema.Schema {\n\t\tid: 'actionCancelled',\n\t\tnamespace: 'SpruceCli',\n\t\tname: 'Action cancelled',\n\t\t fields: {\n\t\t }\n\t}\n\n\texport type ActionCancelledEntity = SchemaEntity<SpruceErrors.SpruceCli.ActionCancelledSchema>\n\n}\n\n\n\n\n"],"mappings":"","ignoreList":[]}
|
|
@@ -3,6 +3,9 @@ import { ErrorOptions as ISpruceErrorOptions } from "@sprucelabs/error";
|
|
|
3
3
|
export interface VscodeNotInstalledErrorOptions extends SpruceErrors.SpruceCli.VscodeNotInstalled, ISpruceErrorOptions {
|
|
4
4
|
code: 'VSCODE_NOT_INSTALLED';
|
|
5
5
|
}
|
|
6
|
+
export interface ViewPluginAlreadyExistsErrorOptions extends SpruceErrors.SpruceCli.ViewPluginAlreadyExists, ISpruceErrorOptions {
|
|
7
|
+
code: 'VIEW_PLUGIN_ALREADY_EXISTS';
|
|
8
|
+
}
|
|
6
9
|
export interface TransportAlreadyExistsErrorOptions extends SpruceErrors.SpruceCli.TransportAlreadyExists, ISpruceErrorOptions {
|
|
7
10
|
code: 'TRANSPORT_ALREADY_EXISTS';
|
|
8
11
|
}
|
|
@@ -120,5 +123,5 @@ export interface BootErrorErrorOptions extends SpruceErrors.SpruceCli.BootError,
|
|
|
120
123
|
export interface ActionCancelledErrorOptions extends SpruceErrors.SpruceCli.ActionCancelled, ISpruceErrorOptions {
|
|
121
124
|
code: 'ACTION_CANCELLED';
|
|
122
125
|
}
|
|
123
|
-
type ErrorOptions = VscodeNotInstalledErrorOptions | TransportAlreadyExistsErrorOptions | ThemeExistsErrorOptions | TestFailedErrorOptions | StoreExistsErrorOptions | SkillViewExistsErrorOptions | SkillNotRegisteredErrorOptions | SkillNotFoundErrorOptions | SchemaTemplateItemBuildingFailedErrorOptions | SchemaFailedToImportErrorOptions | SchemaExistsErrorOptions | NotLoggedInErrorOptions | NotImplementedErrorOptions | NoSkillsRegisteredErrorOptions | NoOrganizationsFoundErrorOptions | MissingDependenciesErrorOptions | MercuryResponseErrorErrorOptions | LintFailedErrorOptions | InvalidTestDirectoryErrorOptions | InvalidFeatureCodeErrorOptions | InvalidEventContractErrorOptions | InvalidCommandErrorOptions | GenericErrorOptions | FileExistsErrorOptions | FeatureNotInstalledErrorOptions | FailedToImportErrorOptions | ExecutingCommandFailedErrorOptions | DockerNotStartedErrorOptions | DirectoryNotSkillErrorOptions | DirectoryEmptyErrorOptions | DeployFailedErrorOptions | DependencyExistsErrorOptions | CreateAutoloaderFailedErrorOptions | CommandNotImplementedErrorOptions | CommandBlockedErrorOptions | CommandAbortedErrorOptions | CacheNotEnabledErrorOptions | BuildFailedErrorOptions | BootErrorErrorOptions | ActionCancelledErrorOptions;
|
|
126
|
+
type ErrorOptions = VscodeNotInstalledErrorOptions | ViewPluginAlreadyExistsErrorOptions | TransportAlreadyExistsErrorOptions | ThemeExistsErrorOptions | TestFailedErrorOptions | StoreExistsErrorOptions | SkillViewExistsErrorOptions | SkillNotRegisteredErrorOptions | SkillNotFoundErrorOptions | SchemaTemplateItemBuildingFailedErrorOptions | SchemaFailedToImportErrorOptions | SchemaExistsErrorOptions | NotLoggedInErrorOptions | NotImplementedErrorOptions | NoSkillsRegisteredErrorOptions | NoOrganizationsFoundErrorOptions | MissingDependenciesErrorOptions | MercuryResponseErrorErrorOptions | LintFailedErrorOptions | InvalidTestDirectoryErrorOptions | InvalidFeatureCodeErrorOptions | InvalidEventContractErrorOptions | InvalidCommandErrorOptions | GenericErrorOptions | FileExistsErrorOptions | FeatureNotInstalledErrorOptions | FailedToImportErrorOptions | ExecutingCommandFailedErrorOptions | DockerNotStartedErrorOptions | DirectoryNotSkillErrorOptions | DirectoryEmptyErrorOptions | DeployFailedErrorOptions | DependencyExistsErrorOptions | CreateAutoloaderFailedErrorOptions | CommandNotImplementedErrorOptions | CommandBlockedErrorOptions | CommandAbortedErrorOptions | CacheNotEnabledErrorOptions | BuildFailedErrorOptions | BootErrorErrorOptions | ActionCancelledErrorOptions;
|
|
124
127
|
export default ErrorOptions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.types.js","names":[],"sources":["../../../src/.spruce/errors/options.types.ts"],"sourcesContent":["import { SpruceErrors } from \"#spruce/errors/errors.types\"\nimport { ErrorOptions as ISpruceErrorOptions} from \"@sprucelabs/error\"\n\nexport interface VscodeNotInstalledErrorOptions extends SpruceErrors.SpruceCli.VscodeNotInstalled, ISpruceErrorOptions {\n\tcode: 'VSCODE_NOT_INSTALLED'\n}\nexport interface TransportAlreadyExistsErrorOptions extends SpruceErrors.SpruceCli.TransportAlreadyExists, ISpruceErrorOptions {\n\tcode: 'TRANSPORT_ALREADY_EXISTS'\n}\nexport interface ThemeExistsErrorOptions extends SpruceErrors.SpruceCli.ThemeExists, ISpruceErrorOptions {\n\tcode: 'THEME_EXISTS'\n}\nexport interface TestFailedErrorOptions extends SpruceErrors.SpruceCli.TestFailed, ISpruceErrorOptions {\n\tcode: 'TEST_FAILED'\n}\nexport interface StoreExistsErrorOptions extends SpruceErrors.SpruceCli.StoreExists, ISpruceErrorOptions {\n\tcode: 'STORE_EXISTS'\n}\nexport interface SkillViewExistsErrorOptions extends SpruceErrors.SpruceCli.SkillViewExists, ISpruceErrorOptions {\n\tcode: 'SKILL_VIEW_EXISTS'\n}\nexport interface SkillNotRegisteredErrorOptions extends SpruceErrors.SpruceCli.SkillNotRegistered, ISpruceErrorOptions {\n\tcode: 'SKILL_NOT_REGISTERED'\n}\nexport interface SkillNotFoundErrorOptions extends SpruceErrors.SpruceCli.SkillNotFound, ISpruceErrorOptions {\n\tcode: 'SKILL_NOT_FOUND'\n}\nexport interface SchemaTemplateItemBuildingFailedErrorOptions extends SpruceErrors.SpruceCli.SchemaTemplateItemBuildingFailed, ISpruceErrorOptions {\n\tcode: 'SCHEMA_TEMPLATE_ITEM_BUILDING_FAILED'\n}\nexport interface SchemaFailedToImportErrorOptions extends SpruceErrors.SpruceCli.SchemaFailedToImport, ISpruceErrorOptions {\n\tcode: 'SCHEMA_FAILED_TO_IMPORT'\n}\nexport interface SchemaExistsErrorOptions extends SpruceErrors.SpruceCli.SchemaExists, ISpruceErrorOptions {\n\tcode: 'SCHEMA_EXISTS'\n}\nexport interface NotLoggedInErrorOptions extends SpruceErrors.SpruceCli.NotLoggedIn, ISpruceErrorOptions {\n\tcode: 'NOT_LOGGED_IN'\n}\nexport interface NotImplementedErrorOptions extends SpruceErrors.SpruceCli.NotImplemented, ISpruceErrorOptions {\n\tcode: 'NOT_IMPLEMENTED'\n}\nexport interface NoSkillsRegisteredErrorOptions extends SpruceErrors.SpruceCli.NoSkillsRegistered, ISpruceErrorOptions {\n\tcode: 'NO_SKILLS_REGISTERED'\n}\nexport interface NoOrganizationsFoundErrorOptions extends SpruceErrors.SpruceCli.NoOrganizationsFound, ISpruceErrorOptions {\n\tcode: 'NO_ORGANIZATIONS_FOUND'\n}\nexport interface MissingDependenciesErrorOptions extends SpruceErrors.SpruceCli.MissingDependencies, ISpruceErrorOptions {\n\tcode: 'MISSING_DEPENDENCIES'\n}\nexport interface MercuryResponseErrorErrorOptions extends SpruceErrors.SpruceCli.MercuryResponseError, ISpruceErrorOptions {\n\tcode: 'MERCURY_RESPONSE_ERROR'\n}\nexport interface LintFailedErrorOptions extends SpruceErrors.SpruceCli.LintFailed, ISpruceErrorOptions {\n\tcode: 'LINT_FAILED'\n}\nexport interface InvalidTestDirectoryErrorOptions extends SpruceErrors.SpruceCli.InvalidTestDirectory, ISpruceErrorOptions {\n\tcode: 'INVALID_TEST_DIRECTORY'\n}\nexport interface InvalidFeatureCodeErrorOptions extends SpruceErrors.SpruceCli.InvalidFeatureCode, ISpruceErrorOptions {\n\tcode: 'INVALID_FEATURE_CODE'\n}\nexport interface InvalidEventContractErrorOptions extends SpruceErrors.SpruceCli.InvalidEventContract, ISpruceErrorOptions {\n\tcode: 'INVALID_EVENT_CONTRACT'\n}\nexport interface InvalidCommandErrorOptions extends SpruceErrors.SpruceCli.InvalidCommand, ISpruceErrorOptions {\n\tcode: 'INVALID_COMMAND'\n}\nexport interface GenericErrorOptions extends SpruceErrors.SpruceCli.Generic, ISpruceErrorOptions {\n\tcode: 'GENERIC'\n}\nexport interface FileExistsErrorOptions extends SpruceErrors.SpruceCli.FileExists, ISpruceErrorOptions {\n\tcode: 'FILE_EXISTS'\n}\nexport interface FeatureNotInstalledErrorOptions extends SpruceErrors.SpruceCli.FeatureNotInstalled, ISpruceErrorOptions {\n\tcode: 'FEATURE_NOT_INSTALLED'\n}\nexport interface FailedToImportErrorOptions extends SpruceErrors.SpruceCli.FailedToImport, ISpruceErrorOptions {\n\tcode: 'FAILED_TO_IMPORT'\n}\nexport interface ExecutingCommandFailedErrorOptions extends SpruceErrors.SpruceCli.ExecutingCommandFailed, ISpruceErrorOptions {\n\tcode: 'EXECUTING_COMMAND_FAILED'\n}\nexport interface DockerNotStartedErrorOptions extends SpruceErrors.SpruceCli.DockerNotStarted, ISpruceErrorOptions {\n\tcode: 'DOCKER_NOT_STARTED'\n}\nexport interface DirectoryNotSkillErrorOptions extends SpruceErrors.SpruceCli.DirectoryNotSkill, ISpruceErrorOptions {\n\tcode: 'DIRECTORY_NOT_SKILL'\n}\nexport interface DirectoryEmptyErrorOptions extends SpruceErrors.SpruceCli.DirectoryEmpty, ISpruceErrorOptions {\n\tcode: 'DIRECTORY_EMPTY'\n}\nexport interface DeployFailedErrorOptions extends SpruceErrors.SpruceCli.DeployFailed, ISpruceErrorOptions {\n\tcode: 'DEPLOY_FAILED'\n}\nexport interface DependencyExistsErrorOptions extends SpruceErrors.SpruceCli.DependencyExists, ISpruceErrorOptions {\n\tcode: 'DEPENDENCY_EXISTS'\n}\nexport interface CreateAutoloaderFailedErrorOptions extends SpruceErrors.SpruceCli.CreateAutoloaderFailed, ISpruceErrorOptions {\n\tcode: 'CREATE_AUTOLOADER_FAILED'\n}\nexport interface CommandNotImplementedErrorOptions extends SpruceErrors.SpruceCli.CommandNotImplemented, ISpruceErrorOptions {\n\tcode: 'COMMAND_NOT_IMPLEMENTED'\n}\nexport interface CommandBlockedErrorOptions extends SpruceErrors.SpruceCli.CommandBlocked, ISpruceErrorOptions {\n\tcode: 'COMMAND_BLOCKED'\n}\nexport interface CommandAbortedErrorOptions extends SpruceErrors.SpruceCli.CommandAborted, ISpruceErrorOptions {\n\tcode: 'COMMAND_ABORTED'\n}\nexport interface CacheNotEnabledErrorOptions extends SpruceErrors.SpruceCli.CacheNotEnabled, ISpruceErrorOptions {\n\tcode: 'CACHE_NOT_ENABLED'\n}\nexport interface BuildFailedErrorOptions extends SpruceErrors.SpruceCli.BuildFailed, ISpruceErrorOptions {\n\tcode: 'BUILD_FAILED'\n}\nexport interface BootErrorErrorOptions extends SpruceErrors.SpruceCli.BootError, ISpruceErrorOptions {\n\tcode: 'BOOT_ERROR'\n}\nexport interface ActionCancelledErrorOptions extends SpruceErrors.SpruceCli.ActionCancelled, ISpruceErrorOptions {\n\tcode: 'ACTION_CANCELLED'\n}\n\ntype ErrorOptions = | VscodeNotInstalledErrorOptions | TransportAlreadyExistsErrorOptions | ThemeExistsErrorOptions | TestFailedErrorOptions | StoreExistsErrorOptions | SkillViewExistsErrorOptions | SkillNotRegisteredErrorOptions | SkillNotFoundErrorOptions | SchemaTemplateItemBuildingFailedErrorOptions | SchemaFailedToImportErrorOptions | SchemaExistsErrorOptions | NotLoggedInErrorOptions | NotImplementedErrorOptions | NoSkillsRegisteredErrorOptions | NoOrganizationsFoundErrorOptions | MissingDependenciesErrorOptions | MercuryResponseErrorErrorOptions | LintFailedErrorOptions | InvalidTestDirectoryErrorOptions | InvalidFeatureCodeErrorOptions | InvalidEventContractErrorOptions | InvalidCommandErrorOptions | GenericErrorOptions | FileExistsErrorOptions | FeatureNotInstalledErrorOptions | FailedToImportErrorOptions | ExecutingCommandFailedErrorOptions | DockerNotStartedErrorOptions | DirectoryNotSkillErrorOptions | DirectoryEmptyErrorOptions | DeployFailedErrorOptions | DependencyExistsErrorOptions | CreateAutoloaderFailedErrorOptions | CommandNotImplementedErrorOptions | CommandBlockedErrorOptions | CommandAbortedErrorOptions | CacheNotEnabledErrorOptions | BuildFailedErrorOptions | BootErrorErrorOptions | ActionCancelledErrorOptions \n\nexport default ErrorOptions\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"options.types.js","names":[],"sources":["../../../src/.spruce/errors/options.types.ts"],"sourcesContent":["import { SpruceErrors } from \"#spruce/errors/errors.types\"\nimport { ErrorOptions as ISpruceErrorOptions} from \"@sprucelabs/error\"\n\nexport interface VscodeNotInstalledErrorOptions extends SpruceErrors.SpruceCli.VscodeNotInstalled, ISpruceErrorOptions {\n\tcode: 'VSCODE_NOT_INSTALLED'\n}\nexport interface ViewPluginAlreadyExistsErrorOptions extends SpruceErrors.SpruceCli.ViewPluginAlreadyExists, ISpruceErrorOptions {\n\tcode: 'VIEW_PLUGIN_ALREADY_EXISTS'\n}\nexport interface TransportAlreadyExistsErrorOptions extends SpruceErrors.SpruceCli.TransportAlreadyExists, ISpruceErrorOptions {\n\tcode: 'TRANSPORT_ALREADY_EXISTS'\n}\nexport interface ThemeExistsErrorOptions extends SpruceErrors.SpruceCli.ThemeExists, ISpruceErrorOptions {\n\tcode: 'THEME_EXISTS'\n}\nexport interface TestFailedErrorOptions extends SpruceErrors.SpruceCli.TestFailed, ISpruceErrorOptions {\n\tcode: 'TEST_FAILED'\n}\nexport interface StoreExistsErrorOptions extends SpruceErrors.SpruceCli.StoreExists, ISpruceErrorOptions {\n\tcode: 'STORE_EXISTS'\n}\nexport interface SkillViewExistsErrorOptions extends SpruceErrors.SpruceCli.SkillViewExists, ISpruceErrorOptions {\n\tcode: 'SKILL_VIEW_EXISTS'\n}\nexport interface SkillNotRegisteredErrorOptions extends SpruceErrors.SpruceCli.SkillNotRegistered, ISpruceErrorOptions {\n\tcode: 'SKILL_NOT_REGISTERED'\n}\nexport interface SkillNotFoundErrorOptions extends SpruceErrors.SpruceCli.SkillNotFound, ISpruceErrorOptions {\n\tcode: 'SKILL_NOT_FOUND'\n}\nexport interface SchemaTemplateItemBuildingFailedErrorOptions extends SpruceErrors.SpruceCli.SchemaTemplateItemBuildingFailed, ISpruceErrorOptions {\n\tcode: 'SCHEMA_TEMPLATE_ITEM_BUILDING_FAILED'\n}\nexport interface SchemaFailedToImportErrorOptions extends SpruceErrors.SpruceCli.SchemaFailedToImport, ISpruceErrorOptions {\n\tcode: 'SCHEMA_FAILED_TO_IMPORT'\n}\nexport interface SchemaExistsErrorOptions extends SpruceErrors.SpruceCli.SchemaExists, ISpruceErrorOptions {\n\tcode: 'SCHEMA_EXISTS'\n}\nexport interface NotLoggedInErrorOptions extends SpruceErrors.SpruceCli.NotLoggedIn, ISpruceErrorOptions {\n\tcode: 'NOT_LOGGED_IN'\n}\nexport interface NotImplementedErrorOptions extends SpruceErrors.SpruceCli.NotImplemented, ISpruceErrorOptions {\n\tcode: 'NOT_IMPLEMENTED'\n}\nexport interface NoSkillsRegisteredErrorOptions extends SpruceErrors.SpruceCli.NoSkillsRegistered, ISpruceErrorOptions {\n\tcode: 'NO_SKILLS_REGISTERED'\n}\nexport interface NoOrganizationsFoundErrorOptions extends SpruceErrors.SpruceCli.NoOrganizationsFound, ISpruceErrorOptions {\n\tcode: 'NO_ORGANIZATIONS_FOUND'\n}\nexport interface MissingDependenciesErrorOptions extends SpruceErrors.SpruceCli.MissingDependencies, ISpruceErrorOptions {\n\tcode: 'MISSING_DEPENDENCIES'\n}\nexport interface MercuryResponseErrorErrorOptions extends SpruceErrors.SpruceCli.MercuryResponseError, ISpruceErrorOptions {\n\tcode: 'MERCURY_RESPONSE_ERROR'\n}\nexport interface LintFailedErrorOptions extends SpruceErrors.SpruceCli.LintFailed, ISpruceErrorOptions {\n\tcode: 'LINT_FAILED'\n}\nexport interface InvalidTestDirectoryErrorOptions extends SpruceErrors.SpruceCli.InvalidTestDirectory, ISpruceErrorOptions {\n\tcode: 'INVALID_TEST_DIRECTORY'\n}\nexport interface InvalidFeatureCodeErrorOptions extends SpruceErrors.SpruceCli.InvalidFeatureCode, ISpruceErrorOptions {\n\tcode: 'INVALID_FEATURE_CODE'\n}\nexport interface InvalidEventContractErrorOptions extends SpruceErrors.SpruceCli.InvalidEventContract, ISpruceErrorOptions {\n\tcode: 'INVALID_EVENT_CONTRACT'\n}\nexport interface InvalidCommandErrorOptions extends SpruceErrors.SpruceCli.InvalidCommand, ISpruceErrorOptions {\n\tcode: 'INVALID_COMMAND'\n}\nexport interface GenericErrorOptions extends SpruceErrors.SpruceCli.Generic, ISpruceErrorOptions {\n\tcode: 'GENERIC'\n}\nexport interface FileExistsErrorOptions extends SpruceErrors.SpruceCli.FileExists, ISpruceErrorOptions {\n\tcode: 'FILE_EXISTS'\n}\nexport interface FeatureNotInstalledErrorOptions extends SpruceErrors.SpruceCli.FeatureNotInstalled, ISpruceErrorOptions {\n\tcode: 'FEATURE_NOT_INSTALLED'\n}\nexport interface FailedToImportErrorOptions extends SpruceErrors.SpruceCli.FailedToImport, ISpruceErrorOptions {\n\tcode: 'FAILED_TO_IMPORT'\n}\nexport interface ExecutingCommandFailedErrorOptions extends SpruceErrors.SpruceCli.ExecutingCommandFailed, ISpruceErrorOptions {\n\tcode: 'EXECUTING_COMMAND_FAILED'\n}\nexport interface DockerNotStartedErrorOptions extends SpruceErrors.SpruceCli.DockerNotStarted, ISpruceErrorOptions {\n\tcode: 'DOCKER_NOT_STARTED'\n}\nexport interface DirectoryNotSkillErrorOptions extends SpruceErrors.SpruceCli.DirectoryNotSkill, ISpruceErrorOptions {\n\tcode: 'DIRECTORY_NOT_SKILL'\n}\nexport interface DirectoryEmptyErrorOptions extends SpruceErrors.SpruceCli.DirectoryEmpty, ISpruceErrorOptions {\n\tcode: 'DIRECTORY_EMPTY'\n}\nexport interface DeployFailedErrorOptions extends SpruceErrors.SpruceCli.DeployFailed, ISpruceErrorOptions {\n\tcode: 'DEPLOY_FAILED'\n}\nexport interface DependencyExistsErrorOptions extends SpruceErrors.SpruceCli.DependencyExists, ISpruceErrorOptions {\n\tcode: 'DEPENDENCY_EXISTS'\n}\nexport interface CreateAutoloaderFailedErrorOptions extends SpruceErrors.SpruceCli.CreateAutoloaderFailed, ISpruceErrorOptions {\n\tcode: 'CREATE_AUTOLOADER_FAILED'\n}\nexport interface CommandNotImplementedErrorOptions extends SpruceErrors.SpruceCli.CommandNotImplemented, ISpruceErrorOptions {\n\tcode: 'COMMAND_NOT_IMPLEMENTED'\n}\nexport interface CommandBlockedErrorOptions extends SpruceErrors.SpruceCli.CommandBlocked, ISpruceErrorOptions {\n\tcode: 'COMMAND_BLOCKED'\n}\nexport interface CommandAbortedErrorOptions extends SpruceErrors.SpruceCli.CommandAborted, ISpruceErrorOptions {\n\tcode: 'COMMAND_ABORTED'\n}\nexport interface CacheNotEnabledErrorOptions extends SpruceErrors.SpruceCli.CacheNotEnabled, ISpruceErrorOptions {\n\tcode: 'CACHE_NOT_ENABLED'\n}\nexport interface BuildFailedErrorOptions extends SpruceErrors.SpruceCli.BuildFailed, ISpruceErrorOptions {\n\tcode: 'BUILD_FAILED'\n}\nexport interface BootErrorErrorOptions extends SpruceErrors.SpruceCli.BootError, ISpruceErrorOptions {\n\tcode: 'BOOT_ERROR'\n}\nexport interface ActionCancelledErrorOptions extends SpruceErrors.SpruceCli.ActionCancelled, ISpruceErrorOptions {\n\tcode: 'ACTION_CANCELLED'\n}\n\ntype ErrorOptions = | VscodeNotInstalledErrorOptions | ViewPluginAlreadyExistsErrorOptions | TransportAlreadyExistsErrorOptions | ThemeExistsErrorOptions | TestFailedErrorOptions | StoreExistsErrorOptions | SkillViewExistsErrorOptions | SkillNotRegisteredErrorOptions | SkillNotFoundErrorOptions | SchemaTemplateItemBuildingFailedErrorOptions | SchemaFailedToImportErrorOptions | SchemaExistsErrorOptions | NotLoggedInErrorOptions | NotImplementedErrorOptions | NoSkillsRegisteredErrorOptions | NoOrganizationsFoundErrorOptions | MissingDependenciesErrorOptions | MercuryResponseErrorErrorOptions | LintFailedErrorOptions | InvalidTestDirectoryErrorOptions | InvalidFeatureCodeErrorOptions | InvalidEventContractErrorOptions | InvalidCommandErrorOptions | GenericErrorOptions | FileExistsErrorOptions | FeatureNotInstalledErrorOptions | FailedToImportErrorOptions | ExecutingCommandFailedErrorOptions | DockerNotStartedErrorOptions | DirectoryNotSkillErrorOptions | DirectoryEmptyErrorOptions | DeployFailedErrorOptions | DependencyExistsErrorOptions | CreateAutoloaderFailedErrorOptions | CommandNotImplementedErrorOptions | CommandBlockedErrorOptions | CommandAbortedErrorOptions | CacheNotEnabledErrorOptions | BuildFailedErrorOptions | BootErrorErrorOptions | ActionCancelledErrorOptions \n\nexport default ErrorOptions\n"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _schema = require("@sprucelabs/schema");
|
|
8
|
+
var viewPluginAlreadyExistsSchema = {
|
|
9
|
+
id: 'viewPluginAlreadyExists',
|
|
10
|
+
namespace: 'SpruceCli',
|
|
11
|
+
name: 'View plugin already exists',
|
|
12
|
+
fields: {
|
|
13
|
+
/** . */
|
|
14
|
+
'name': {
|
|
15
|
+
type: 'text',
|
|
16
|
+
isRequired: true,
|
|
17
|
+
options: undefined
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
_schema.SchemaRegistry.getInstance().trackSchema(viewPluginAlreadyExistsSchema);
|
|
22
|
+
var _default = exports["default"] = viewPluginAlreadyExistsSchema;
|
|
23
|
+
//# sourceMappingURL=viewPluginAlreadyExists.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewPluginAlreadyExists.schema.js","names":["_schema","require","viewPluginAlreadyExistsSchema","id","namespace","name","fields","type","isRequired","options","undefined","SchemaRegistry","getInstance","trackSchema","_default","exports"],"sources":["../../../../src/.spruce/errors/spruceCli/viewPluginAlreadyExists.schema.ts"],"sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceErrors } from '../errors.types'\n\n\n\nconst viewPluginAlreadyExistsSchema: SpruceErrors.SpruceCli.ViewPluginAlreadyExistsSchema = {\n\tid: 'viewPluginAlreadyExists',\n\tnamespace: 'SpruceCli',\n\tname: 'View plugin already exists',\n\t fields: {\n\t /** . */\n\t 'name': {\n\t type: 'text',\n\t isRequired: true,\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(viewPluginAlreadyExistsSchema)\n\nexport default viewPluginAlreadyExistsSchema\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAKA,IAAMC,6BAAmF,GAAI;EAC5FC,EAAE,EAAE,yBAAyB;EAC7BC,SAAS,EAAE,WAAW;EACtBC,IAAI,EAAE,4BAA4B;EAC9BC,MAAM,EAAE;IACA;IACA,MAAM,EAAE;MACJC,IAAI,EAAE,MAAM;MACZC,UAAU,EAAE,IAAI;MAChBC,OAAO,EAAEC;IACb;EACR;AACL,CAAC;AAEDC,sBAAc,CAACC,WAAW,CAAC,CAAC,CAACC,WAAW,CAACX,6BAA6B,CAAC;AAAA,IAAAY,QAAA,GAAAC,OAAA,cAExDb,6BAA6B","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ export default class CreatingASkillViewTest extends AbstractSkillTest {
|
|
|
7
7
|
private static dashboardVc;
|
|
8
8
|
protected static beforeEach(): Promise<void>;
|
|
9
9
|
protected static hasCreateAction(): void;
|
|
10
|
-
protected static
|
|
10
|
+
protected static viewFeatureHasExpectedDependencies(): Promise<void>;
|
|
11
11
|
protected static asksIfRootSkillViewIfNotYetCreated(): Promise<void>;
|
|
12
12
|
protected static canCreateRootSkillView(): Promise<void>;
|
|
13
13
|
protected static generatesValidRootSkillView(): Promise<void>;
|
|
@@ -56,9 +56,9 @@ var CreatingASkillViewTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
56
56
|
_testUtils.assert.isFunction(this.action.execute);
|
|
57
57
|
}
|
|
58
58
|
}, {
|
|
59
|
-
key: "
|
|
59
|
+
key: "viewFeatureHasExpectedDependencies",
|
|
60
60
|
value: function () {
|
|
61
|
-
var
|
|
61
|
+
var _viewFeatureHasExpectedDependencies = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
62
62
|
var features, view;
|
|
63
63
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
64
64
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -84,10 +84,10 @@ var CreatingASkillViewTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
84
84
|
}
|
|
85
85
|
}, _callee2, this);
|
|
86
86
|
}));
|
|
87
|
-
function
|
|
88
|
-
return
|
|
87
|
+
function viewFeatureHasExpectedDependencies() {
|
|
88
|
+
return _viewFeatureHasExpectedDependencies.apply(this, arguments);
|
|
89
89
|
}
|
|
90
|
-
return
|
|
90
|
+
return viewFeatureHasExpectedDependencies;
|
|
91
91
|
}()
|
|
92
92
|
}, {
|
|
93
93
|
key: "asksIfRootSkillViewIfNotYetCreated",
|
|
@@ -423,5 +423,5 @@ var CreatingASkillViewTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
423
423
|
}
|
|
424
424
|
}]);
|
|
425
425
|
return CreatingASkillViewTest;
|
|
426
|
-
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "action", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "rootSvc", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "appointmentsCard", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "dashboardVc", void 0), _CreatingASkillViewTest), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasCreateAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasCreateAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "
|
|
426
|
+
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "action", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "rootSvc", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "appointmentsCard", void 0), (0, _defineProperty2["default"])(_CreatingASkillViewTest, "dashboardVc", void 0), _CreatingASkillViewTest), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasCreateAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasCreateAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "viewFeatureHasExpectedDependencies", [_dec2], Object.getOwnPropertyDescriptor(_class, "viewFeatureHasExpectedDependencies"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "asksIfRootSkillViewIfNotYetCreated", [_dec3], Object.getOwnPropertyDescriptor(_class, "asksIfRootSkillViewIfNotYetCreated"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canCreateRootSkillView", [_dec4], Object.getOwnPropertyDescriptor(_class, "canCreateRootSkillView"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesValidRootSkillView", [_dec5], Object.getOwnPropertyDescriptor(_class, "generatesValidRootSkillView"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "rootSkillViewExtendsAbstractSkillViewController", [_dec6], Object.getOwnPropertyDescriptor(_class, "rootSkillViewExtendsAbstractSkillViewController"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "cantCreateTwoRootSvcs", [_dec7], Object.getOwnPropertyDescriptor(_class, "cantCreateTwoRootSvcs"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "asksForNamesIfCreatingSkillViewNotRoot", [_dec8], Object.getOwnPropertyDescriptor(_class, "asksForNamesIfCreatingSkillViewNotRoot"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "asksForViewModelWhenCreatingSkillView", [_dec9], Object.getOwnPropertyDescriptor(_class, "asksForViewModelWhenCreatingSkillView"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "skillViewExtendsAbstractViewControllerWithProperView", [_dec10], Object.getOwnPropertyDescriptor(_class, "skillViewExtendsAbstractViewControllerWithProperView"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "nicelyTypesRootSkillViewController", [_dec11], Object.getOwnPropertyDescriptor(_class, "nicelyTypesRootSkillViewController"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "nicelyTypesViewController", [_dec12], Object.getOwnPropertyDescriptor(_class, "nicelyTypesViewController"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "typesViewControllerOptions", [_dec13], Object.getOwnPropertyDescriptor(_class, "typesViewControllerOptions"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "typesSkillViewControllerLoadOptionsOptions", [_dec14], Object.getOwnPropertyDescriptor(_class, "typesSkillViewControllerLoadOptionsOptions"), _class)), _class));
|
|
427
427
|
//# sourceMappingURL=CreatingASkillView.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreatingASkillView.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractSkillTest2","_interopRequireDefault","_test","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_dec12","_dec13","_dec14","_class","_CreatingASkillViewTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","CreatingASkillViewTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","action","Action","stop","beforeEach","hasCreateAction","assert","isFunction","execute","_viewFieatureHasExpectedDependencies","_callee2","features","view","_callee2$","_context2","featureInstaller","sent","getFeature","isEqualDeep","dependencies","code","isRequired","viewFieatureHasExpectedDependencies","_asksIfRootSkillViewIfNotYetCreated","_callee3","last","_callee3$","_context3","viewType","waitForInput","ui","getLastInvocation","isEqual","command","reset","asksIfRootSkillViewIfNotYetCreated","_canCreateRootSkillView","_callee4","results","_callee4$","_context4","isRoot","isFalsy","errors","rootSvc","testUtil","assertFileByNameInGeneratedFiles","files","doesInclude","canCreateRootSkillView","_generatesValidRootSkillView","_callee5","_callee5$","_context5","Service","check","generatesValidRootSkillView","_rootSkillViewExtendsAbstractSkillViewController","_callee6","contents","_callee6$","_context6","diskUtil","readFile","rootSkillViewExtendsAbstractSkillViewController","_cantCreateTwoRootSvcs","_callee7","_results$errors","_callee7$","_context7","isTruthy","errorAssert","assertError","name","cantCreateTwoRootSvcs","_asksForNamesIfCreatingSkillViewNotRoot","_callee8","promise","_callee8$","_context8","sendInput","dashboardVc","asksForNamesIfCreatingSkillViewNotRoot","_asksForViewModelWhenCreatingSkillView","_callee9","_callee9$","_context9","nameReadable","options","choices","appointmentsCard","asksForViewModelWhenCreatingSkillView","skillViewExtendsAbstractViewControllerWithProperView","_nicelyTypesRootSkillViewController","_callee10","testFile","imported","_callee10$","_context10","buildTestfile","idInterfaceName","resolvePath","writeFile","importAll","svcModel","svcId","nicelyTypesRootSkillViewController","_nicelyTypesViewController","_callee11","_callee11$","_context11","vcModel","vcId","nicelyTypesViewController","_typesViewControllerOptions","_callee12","viewsFile","viewContents","_callee12$","_context12","resolveHashSprucePath","typesViewControllerOptions","_typesSkillViewControllerLoadOptionsOptions","_callee13","_callee13$","_context13","typesSkillViewControllerLoadOptionsOptions","concat","trim","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../../src/__tests__/behavioral/views/CreatingASkillView.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport CreateAction from '../../../features/view/actions/CreateAction'\nimport AbstractSkillTest from '../../../tests/AbstractSkillTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class CreatingASkillViewTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\tprivate static action: CreateAction\n\tprivate static rootSvc: string\n\tpublic static appointmentsCard: string\n\tprivate static dashboardVc: string\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.action = this.Action('view', 'create') as CreateAction\n\t}\n\n\t@test()\n\tprotected static hasCreateAction() {\n\t\tassert.isFunction(this.action.execute)\n\t}\n\n\t@test()\n\tprotected static async viewFieatureHasExpectedDependencies() {\n\t\tconst features = await this.featureInstaller\n\t\tconst view = features.getFeature('view')\n\t\tassert.isEqualDeep(view.dependencies, [\n\t\t\t{\n\t\t\t\tcode: 'node',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tcode: 'schema',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tcode: 'event',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async asksIfRootSkillViewIfNotYetCreated() {\n\t\tvoid this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'confirm')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canCreateRootSkillView() {\n\t\tconst results = await this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.rootSvc = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'Root.svc.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(this.rootSvc, 'skillViewControllers')\n\t}\n\n\t@test()\n\tprotected static async generatesValidRootSkillView() {\n\t\tawait this.Service('typeChecker').check(this.rootSvc)\n\t}\n\n\t@test()\n\tprotected static async rootSkillViewExtendsAbstractSkillViewController() {\n\t\tconst contents = diskUtil.readFile(this.rootSvc)\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export default class RootSkillViewController extends AbstractSkillViewController'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async cantCreateTwoRootSvcs() {\n\t\tconst results = await this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssert.assertError(results.errors?.[0], 'SKILL_VIEW_EXISTS', {\n\t\t\tname: 'Root',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async asksForNamesIfCreatingSkillViewNotRoot() {\n\t\tconst promise = this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tlet last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'prompt')\n\n\t\tawait this.ui.sendInput('Dashboard')\n\t\tawait this.ui.sendInput('\\n')\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.dashboardVc = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'Dashboard.svc.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(this.dashboardVc, 'skillViewControllers')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async asksForViewModelWhenCreatingSkillView() {\n\t\tconst promise = this.action.execute({\n\t\t\tviewType: 'view',\n\t\t\tnameReadable: 'Appointments card',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'prompt')\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: 'Card',\n\t\t})\n\n\t\tawait this.ui.sendInput('Card')\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.appointmentsCard = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'AppointmentsCard.vc.ts',\n\t\t\tresults.files\n\t\t)\n\t}\n\n\t@test()\n\tprotected static skillViewExtendsAbstractViewControllerWithProperView() {\n\t\tconst contents = diskUtil.readFile(this.appointmentsCard)\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export default class AppointmentsCardViewController extends AbstractViewController<Card>'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async nicelyTypesRootSkillViewController() {\n\t\tconst contents = this.buildTestfile({\n\t\t\tidInterfaceName: 'SkillViewControllerId',\n\t\t\tcode: `\nconst root = vcFactory.Controller('testing-views.root', {})\nexport const svcModel = root.render()\nexport const svcId: SkillViewControllerId = 'testing-views.root'`,\n\t\t})\n\n\t\tconst testFile = this.resolvePath('src', 'test.ts')\n\t\tdiskUtil.writeFile(testFile, contents)\n\n\t\tconst imported = await this.Service('import').importAll(testFile)\n\n\t\tassert.isTruthy(imported.svcModel)\n\t\tassert.isTruthy(imported.svcId)\n\t}\n\n\t@test()\n\tprotected static async nicelyTypesViewController() {\n\t\tconst contents = this.buildTestfile({\n\t\t\tidInterfaceName: 'ViewControllerId',\n\t\t\tcode: `\n\t\tconst apptCard = vcFactory.Controller('testing-views.appointments-card', {})\n\t\texport const vcModel = apptCard.render()\n\t\texport const vcId: ViewControllerId = 'testing-views.appointments-card'`,\n\t\t})\n\n\t\tconst testFile = this.resolvePath('src', 'test.ts')\n\t\tdiskUtil.writeFile(testFile, contents)\n\n\t\tconst imported = await this.Service('import').importAll(testFile)\n\n\t\tassert.isTruthy(imported.vcModel)\n\t\tassert.isTruthy(imported.vcId)\n\t}\n\n\t@test()\n\tprotected static async typesViewControllerOptions() {\n\t\tconst viewsFile = this.resolveHashSprucePath('views', 'views.ts')\n\t\tconst viewContents = diskUtil.readFile(viewsFile)\n\n\t\tassert.doesInclude(viewContents, `interface ViewControllerOptionsMap`)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`'testing-views.appointments-card': ConstructorParameters<typeof AppointmentsCardViewController>[0]`\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async typesSkillViewControllerLoadOptionsOptions() {\n\t\tconst viewsFile = this.resolveHashSprucePath('views', 'views.ts')\n\t\tconst viewContents = diskUtil.readFile(viewsFile)\n\n\t\tassert.doesInclude(viewContents, `interface SkillViewControllerArgsMap`)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`type LoadOptions<Args extends Record<string,any>[]> = Args[0]['args'] extends Record<string, any> ? Args[0]['args'] : Record<never, any>`\n\t\t)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`'testing-views.root': LoadOptions<Parameters<RootSkillViewController['load']>>`\n\t\t)\n\t}\n\n\tprivate static buildTestfile(options: {\n\t\tcode: string\n\t\tidInterfaceName: 'SkillViewControllerId' | 'ViewControllerId'\n\t}) {\n\t\tconst { code, idInterfaceName } = options\n\n\t\treturn (\n\t\t\t`\nimport ` +\n\t\t\t`'#spruce/views/views'\nimport {\n\tViewControllerFactory,\n\tAuthenticatorImpl,\n\tStubStorage,\n\t${idInterfaceName},\n} from '@sprucelabs/heartwood-view-controllers'\nimport { vcDiskUtil } from '@sprucelabs/spruce-test-fixtures'\n\nAuthenticatorImpl.setStorage(new StubStorage())\n\nconst vcFactory = ViewControllerFactory.Factory({\n\tcontrollerMap: vcDiskU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AA,aAAAxK,MAAA,4BAAAR,KAAA,GAAAiL,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,4BAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,6CAAAP,KAAA,GAAAgL,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,6CAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,4CAAAN,KAAA,GAAA+K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,4CAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,2DAAAL,MAAA,GAAA8K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,2DAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,yCAAAJ,MAAA,GAAA6K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,yCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,gCAAAH,MAAA,GAAA4K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,gCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,iCAAAF,MAAA,GAAA2K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,iCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,iDAAAD,MAAA,GAAA0K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,iDAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"CreatingASkillView.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractSkillTest2","_interopRequireDefault","_test","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_dec12","_dec13","_dec14","_class","_CreatingASkillViewTest","_callSuper","t","o","e","_getPrototypeOf2","_possibleConstructorReturn2","_isNativeReflectConstruct","Reflect","construct","constructor","apply","Boolean","prototype","valueOf","call","CreatingASkillViewTest","exports","test","_AbstractSkillTest","_inherits2","_classCallCheck2","arguments","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","action","Action","stop","beforeEach","hasCreateAction","assert","isFunction","execute","_viewFeatureHasExpectedDependencies","_callee2","features","view","_callee2$","_context2","featureInstaller","sent","getFeature","isEqualDeep","dependencies","code","isRequired","viewFeatureHasExpectedDependencies","_asksIfRootSkillViewIfNotYetCreated","_callee3","last","_callee3$","_context3","viewType","waitForInput","ui","getLastInvocation","isEqual","command","reset","asksIfRootSkillViewIfNotYetCreated","_canCreateRootSkillView","_callee4","results","_callee4$","_context4","isRoot","isFalsy","errors","rootSvc","testUtil","assertFileByNameInGeneratedFiles","files","doesInclude","canCreateRootSkillView","_generatesValidRootSkillView","_callee5","_callee5$","_context5","Service","check","generatesValidRootSkillView","_rootSkillViewExtendsAbstractSkillViewController","_callee6","contents","_callee6$","_context6","diskUtil","readFile","rootSkillViewExtendsAbstractSkillViewController","_cantCreateTwoRootSvcs","_callee7","_results$errors","_callee7$","_context7","isTruthy","errorAssert","assertError","name","cantCreateTwoRootSvcs","_asksForNamesIfCreatingSkillViewNotRoot","_callee8","promise","_callee8$","_context8","sendInput","dashboardVc","asksForNamesIfCreatingSkillViewNotRoot","_asksForViewModelWhenCreatingSkillView","_callee9","_callee9$","_context9","nameReadable","options","choices","appointmentsCard","asksForViewModelWhenCreatingSkillView","skillViewExtendsAbstractViewControllerWithProperView","_nicelyTypesRootSkillViewController","_callee10","testFile","imported","_callee10$","_context10","buildTestfile","idInterfaceName","resolvePath","writeFile","importAll","svcModel","svcId","nicelyTypesRootSkillViewController","_nicelyTypesViewController","_callee11","_callee11$","_context11","vcModel","vcId","nicelyTypesViewController","_typesViewControllerOptions","_callee12","viewsFile","viewContents","_callee12$","_context12","resolveHashSprucePath","typesViewControllerOptions","_typesSkillViewControllerLoadOptionsOptions","_callee13","_callee13$","_context13","typesSkillViewControllerLoadOptionsOptions","concat","trim","AbstractSkillTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor"],"sources":["../../../../src/__tests__/behavioral/views/CreatingASkillView.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport CreateAction from '../../../features/view/actions/CreateAction'\nimport AbstractSkillTest from '../../../tests/AbstractSkillTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class CreatingASkillViewTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\tprivate static action: CreateAction\n\tprivate static rootSvc: string\n\tpublic static appointmentsCard: string\n\tprivate static dashboardVc: string\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.action = this.Action('view', 'create') as CreateAction\n\t}\n\n\t@test()\n\tprotected static hasCreateAction() {\n\t\tassert.isFunction(this.action.execute)\n\t}\n\n\t@test()\n\tprotected static async viewFeatureHasExpectedDependencies() {\n\t\tconst features = await this.featureInstaller\n\t\tconst view = features.getFeature('view')\n\t\tassert.isEqualDeep(view.dependencies, [\n\t\t\t{\n\t\t\t\tcode: 'node',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tcode: 'schema',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t\t{\n\t\t\t\tcode: 'event',\n\t\t\t\tisRequired: true,\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async asksIfRootSkillViewIfNotYetCreated() {\n\t\tvoid this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'confirm')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canCreateRootSkillView() {\n\t\tconst results = await this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.rootSvc = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'Root.svc.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(this.rootSvc, 'skillViewControllers')\n\t}\n\n\t@test()\n\tprotected static async generatesValidRootSkillView() {\n\t\tawait this.Service('typeChecker').check(this.rootSvc)\n\t}\n\n\t@test()\n\tprotected static async rootSkillViewExtendsAbstractSkillViewController() {\n\t\tconst contents = diskUtil.readFile(this.rootSvc)\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export default class RootSkillViewController extends AbstractSkillViewController'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async cantCreateTwoRootSvcs() {\n\t\tconst results = await this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssert.assertError(results.errors?.[0], 'SKILL_VIEW_EXISTS', {\n\t\t\tname: 'Root',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async asksForNamesIfCreatingSkillViewNotRoot() {\n\t\tconst promise = this.action.execute({\n\t\t\tviewType: 'skillView',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tlet last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'prompt')\n\n\t\tawait this.ui.sendInput('Dashboard')\n\t\tawait this.ui.sendInput('\\n')\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.dashboardVc = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'Dashboard.svc.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(this.dashboardVc, 'skillViewControllers')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async asksForViewModelWhenCreatingSkillView() {\n\t\tconst promise = this.action.execute({\n\t\t\tviewType: 'view',\n\t\t\tnameReadable: 'Appointments card',\n\t\t})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.command, 'prompt')\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: 'Card',\n\t\t})\n\n\t\tawait this.ui.sendInput('Card')\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.appointmentsCard = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'AppointmentsCard.vc.ts',\n\t\t\tresults.files\n\t\t)\n\t}\n\n\t@test()\n\tprotected static skillViewExtendsAbstractViewControllerWithProperView() {\n\t\tconst contents = diskUtil.readFile(this.appointmentsCard)\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export default class AppointmentsCardViewController extends AbstractViewController<Card>'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async nicelyTypesRootSkillViewController() {\n\t\tconst contents = this.buildTestfile({\n\t\t\tidInterfaceName: 'SkillViewControllerId',\n\t\t\tcode: `\nconst root = vcFactory.Controller('testing-views.root', {})\nexport const svcModel = root.render()\nexport const svcId: SkillViewControllerId = 'testing-views.root'`,\n\t\t})\n\n\t\tconst testFile = this.resolvePath('src', 'test.ts')\n\t\tdiskUtil.writeFile(testFile, contents)\n\n\t\tconst imported = await this.Service('import').importAll(testFile)\n\n\t\tassert.isTruthy(imported.svcModel)\n\t\tassert.isTruthy(imported.svcId)\n\t}\n\n\t@test()\n\tprotected static async nicelyTypesViewController() {\n\t\tconst contents = this.buildTestfile({\n\t\t\tidInterfaceName: 'ViewControllerId',\n\t\t\tcode: `\n\t\tconst apptCard = vcFactory.Controller('testing-views.appointments-card', {})\n\t\texport const vcModel = apptCard.render()\n\t\texport const vcId: ViewControllerId = 'testing-views.appointments-card'`,\n\t\t})\n\n\t\tconst testFile = this.resolvePath('src', 'test.ts')\n\t\tdiskUtil.writeFile(testFile, contents)\n\n\t\tconst imported = await this.Service('import').importAll(testFile)\n\n\t\tassert.isTruthy(imported.vcModel)\n\t\tassert.isTruthy(imported.vcId)\n\t}\n\n\t@test()\n\tprotected static async typesViewControllerOptions() {\n\t\tconst viewsFile = this.resolveHashSprucePath('views', 'views.ts')\n\t\tconst viewContents = diskUtil.readFile(viewsFile)\n\n\t\tassert.doesInclude(viewContents, `interface ViewControllerOptionsMap`)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`'testing-views.appointments-card': ConstructorParameters<typeof AppointmentsCardViewController>[0]`\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async typesSkillViewControllerLoadOptionsOptions() {\n\t\tconst viewsFile = this.resolveHashSprucePath('views', 'views.ts')\n\t\tconst viewContents = diskUtil.readFile(viewsFile)\n\n\t\tassert.doesInclude(viewContents, `interface SkillViewControllerArgsMap`)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`type LoadOptions<Args extends Record<string,any>[]> = Args[0]['args'] extends Record<string, any> ? Args[0]['args'] : Record<never, any>`\n\t\t)\n\t\tassert.doesInclude(\n\t\t\tviewContents,\n\t\t\t`'testing-views.root': LoadOptions<Parameters<RootSkillViewController['load']>>`\n\t\t)\n\t}\n\n\tprivate static buildTestfile(options: {\n\t\tcode: string\n\t\tidInterfaceName: 'SkillViewControllerId' | 'ViewControllerId'\n\t}) {\n\t\tconst { code, idInterfaceName } = options\n\n\t\treturn (\n\t\t\t`\nimport ` +\n\t\t\t`'#spruce/views/views'\nimport {\n\tViewControllerFactory,\n\tAuthenticatorImpl,\n\tStubStorage,\n\t${idInterfaceName},\n} from '@sprucelabs/heartwood-view-controllers'\nimport { vcDiskUtil } from '@sprucelabs/spruce-test-fixtures'\n\nAuthenticatorImpl.setStorage(new StubStorage())\n\nconst vcFactory = ViewControllerFactory.Factory({\n\tcontrollerMap: vcDiskUtil.loadViewControllersAndBuildMap('testing-views', __dirname),\n\tdevice: {} as any,\n\tconnectToApi: async () => {\n\t\treturn 'yes' as any\n\t},\n})\n${code}\n\t\t`.trim()\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAGA,IAAAE,mBAAA,GA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CAAAC,wBAAA,CAAA1K,MAAA,4CAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,2DAAAL,MAAA,GAAA8K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,2DAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,yCAAAJ,MAAA,GAAA6K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,yCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,gCAAAH,MAAA,GAAA4K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,gCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,iCAAAF,MAAA,GAAA2K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,iCAAAA,MAAA,OAAAwK,0BAAA,aAAAxK,MAAA,iDAAAD,MAAA,GAAA0K,MAAA,CAAAC,wBAAA,CAAA1K,MAAA,iDAAAA,MAAA,IAAAA,MAAA","ignoreList":[]}
|
|
@@ -6,6 +6,6 @@ export default class KeepingViewsInSyncTest extends AbstractSkillTest {
|
|
|
6
6
|
protected static hasSyncAction(): Promise<void>;
|
|
7
7
|
protected static syncingWithNoViewsGeneratesNothing(): Promise<void>;
|
|
8
8
|
protected static createsValidCombinedEventsFileWhenCreatingANewSvc(): Promise<void>;
|
|
9
|
-
protected static
|
|
9
|
+
protected static generatesValidTypesFileWithNoSkillViews(): Promise<void>;
|
|
10
10
|
private static assertValuedViewsFile;
|
|
11
11
|
}
|
|
@@ -122,9 +122,9 @@ var KeepingViewsInSyncTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
122
122
|
return createsValidCombinedEventsFileWhenCreatingANewSvc;
|
|
123
123
|
}()
|
|
124
124
|
}, {
|
|
125
|
-
key: "
|
|
125
|
+
key: "generatesValidTypesFileWithNoSkillViews",
|
|
126
126
|
value: function () {
|
|
127
|
-
var
|
|
127
|
+
var _generatesValidTypesFileWithNoSkillViews = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
128
128
|
var results;
|
|
129
129
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
130
130
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -146,10 +146,10 @@ var KeepingViewsInSyncTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
146
146
|
}
|
|
147
147
|
}, _callee5, this);
|
|
148
148
|
}));
|
|
149
|
-
function
|
|
150
|
-
return
|
|
149
|
+
function generatesValidTypesFileWithNoSkillViews() {
|
|
150
|
+
return _generatesValidTypesFileWithNoSkillViews.apply(this, arguments);
|
|
151
151
|
}
|
|
152
|
-
return
|
|
152
|
+
return generatesValidTypesFileWithNoSkillViews;
|
|
153
153
|
}()
|
|
154
154
|
}, {
|
|
155
155
|
key: "assertValuedViewsFile",
|
|
@@ -175,5 +175,5 @@ var KeepingViewsInSyncTest = exports["default"] = (_dec = (0, _testUtils.test)()
|
|
|
175
175
|
}()
|
|
176
176
|
}]);
|
|
177
177
|
return KeepingViewsInSyncTest;
|
|
178
|
-
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_KeepingViewsInSyncTest, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_KeepingViewsInSyncTest, "action", void 0), _KeepingViewsInSyncTest), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "syncingWithNoViewsGeneratesNothing", [_dec2], Object.getOwnPropertyDescriptor(_class, "syncingWithNoViewsGeneratesNothing"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc", [_dec3], Object.getOwnPropertyDescriptor(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "
|
|
178
|
+
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_KeepingViewsInSyncTest, "skillCacheKey", 'views'), (0, _defineProperty2["default"])(_KeepingViewsInSyncTest, "action", void 0), _KeepingViewsInSyncTest), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "syncingWithNoViewsGeneratesNothing", [_dec2], Object.getOwnPropertyDescriptor(_class, "syncingWithNoViewsGeneratesNothing"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc", [_dec3], Object.getOwnPropertyDescriptor(_class, "createsValidCombinedEventsFileWhenCreatingANewSvc"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesValidTypesFileWithNoSkillViews", [_dec4], Object.getOwnPropertyDescriptor(_class, "generatesValidTypesFileWithNoSkillViews"), _class)), _class));
|
|
179
179
|
//# sourceMappingURL=KeepingViewsInSync.test.js.map
|