@sprucelabs/spruce-cli 18.2.0 → 18.3.0
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 +6 -0
- package/build/.spruce/events/events.contract.d.ts +159 -0
- package/build/.spruce/events/events.contract.js +5 -1
- package/build/.spruce/events/events.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.d.ts +46 -0
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.js +57 -0
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.js.map +1 -0
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.d.ts +68 -0
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.js +78 -0
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.js.map +1 -0
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.d.ts +40 -0
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.js +51 -0
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.js.map +1 -0
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.d.ts +9 -0
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.js +17 -0
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.js.map +1 -0
- package/build/.spruce/schemas/schemas.types.d.ts +158 -55
- package/build/.spruce/schemas/schemas.types.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js +70 -0
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js.map +1 -0
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.d.ts +3 -0
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js +35 -0
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js.map +1 -0
- package/build/.spruce/settings.json +2 -1
- package/build/GlobalEmitter.d.ts +13 -38
- package/build/GlobalEmitter.js +3 -6
- package/build/GlobalEmitter.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.d.ts +2 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +74 -84
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +38 -13
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.d.ts +1 -0
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +16 -9
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.d.ts +2 -2
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +7 -7
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.d.ts +6 -0
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js +85 -0
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -0
- package/build/__tests__/behavioral/permissions/PermissionStore.test.d.ts +5 -4
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js +96 -63
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.d.ts +5 -0
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js +88 -0
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -0
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.d.ts +15 -4
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +325 -28
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.d.ts +11 -0
- package/build/__tests__/behavioral/permissions/{AbstractPermissionsTest.js → support/AbstractPermissionsTest.js} +34 -2
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -0
- package/build/__tests__/behavioral/permissions/support/generateShortAlphaId.d.ts +1 -0
- package/build/__tests__/behavioral/permissions/support/generateShortAlphaId.js +11 -0
- package/build/__tests__/behavioral/permissions/support/generateShortAlphaId.js.map +1 -0
- package/build/__tests__/behavioral/permissions/support/renderPermissionTestFile.d.ts +1 -0
- package/build/__tests__/behavioral/permissions/support/renderPermissionTestFile.js +17 -0
- package/build/__tests__/behavioral/permissions/support/renderPermissionTestFile.js.map +1 -0
- package/build/__tests__/behavioral/permissions/support/sortPermissionContracts.d.ts +5 -0
- package/build/__tests__/behavioral/permissions/support/sortPermissionContracts.js +10 -0
- package/build/__tests__/behavioral/permissions/support/sortPermissionContracts.js.map +1 -0
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.d.ts +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +46 -46
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +2 -2
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +7 -3
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +2 -2
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.d.ts +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +23 -11
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.test.d.ts +1 -0
- package/build/__tests__/implementation/GlobalEmitter.test.js +40 -3
- package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +3 -4
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/features/AbstractAction.d.ts +1 -1
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.d.ts +3 -3
- package/build/features/AbstractFeature.js +8 -8
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.d.ts +1 -1
- package/build/features/ActionExecuter.js +3 -4
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionFactory.d.ts +12 -5
- package/build/features/ActionFactory.js +27 -6
- package/build/features/ActionFactory.js.map +1 -1
- package/build/features/ActionQuestionAsker.d.ts +1 -1
- package/build/features/ActionQuestionAsker.js +6 -6
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +1 -1
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +1 -1
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +31 -33
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/error/ErrorFeature.js +4 -4
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/event/EventFeature.d.ts +8 -8
- package/build/features/event/EventFeature.js +7 -4
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/stores/EventStore.d.ts +9 -9
- package/build/features/event/stores/EventStore.js +26 -26
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/eventContract/EventContractFeature.js +4 -1
- package/build/features/eventContract/EventContractFeature.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +10 -5
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/features.types.d.ts +2 -37
- package/build/features/features.types.js +0 -41
- package/build/features/features.types.js.map +1 -1
- package/build/features/log/LogFeature.js +1 -1
- package/build/features/log/LogFeature.js.map +1 -1
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/permission/PermissionFeature.d.ts +12 -2
- package/build/features/permission/PermissionFeature.js +140 -15
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +4 -1
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/permission/actions/SyncAction.d.ts +5 -1
- package/build/features/permission/actions/SyncAction.js +28 -10
- package/build/features/permission/actions/SyncAction.js.map +1 -1
- package/build/features/permission/stores/PermissionStore.d.ts +6 -1
- package/build/features/permission/stores/PermissionStore.js +43 -31
- package/build/features/permission/stores/PermissionStore.js.map +1 -1
- package/build/features/permission/writers/PermissionWriter.d.ts +7 -1
- package/build/features/permission/writers/PermissionWriter.js +66 -17
- package/build/features/permission/writers/PermissionWriter.js.map +1 -1
- package/build/features/person/PersonFeature.js +1 -1
- package/build/features/person/PersonFeature.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +1 -1
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/schema/SchemaFeature.d.ts +8 -8
- package/build/features/schema/SchemaFeature.js +4 -4
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.d.ts +12 -12
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.d.ts +11 -11
- package/build/features/skill/SkillFeature.js +2 -2
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +1 -2
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/store/StoreFeature.js +1 -1
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/SyncAction.d.ts +1 -1
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/test/TestFeature.js +1 -1
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/view/ViewFeature.js +1 -1
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/schemas/v2020_07_22/actionResponse.builder.d.ts +85 -0
- package/build/schemas/v2020_07_22/actionResponse.builder.js +70 -0
- package/build/schemas/v2020_07_22/actionResponse.builder.js.map +1 -0
- package/build/schemas/v2020_07_22/generatedFile.builder.d.ts +27 -0
- package/build/schemas/v2020_07_22/generatedFile.builder.js +45 -0
- package/build/schemas/v2020_07_22/generatedFile.builder.js.map +1 -0
- package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js +4 -40
- package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js.map +1 -1
- package/build/services/CommandService.d.ts +2 -2
- package/build/services/CommandService.js +6 -6
- package/build/services/CommandService.js.map +1 -1
- package/build/services/PkgService.d.ts +1 -0
- package/build/services/PkgService.js +5 -0
- package/build/services/PkgService.js.map +1 -1
- package/build/tests/AbstractCliTest.d.ts +7 -3
- package/build/tests/AbstractCliTest.js +81 -45
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/buildTestCache.js +7 -0
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +1 -0
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/utilities/test.utility.d.ts +2 -0
- package/build/tests/utilities/test.utility.js +6 -0
- package/build/tests/utilities/test.utility.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +4 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +13 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +2 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +3 -0
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +20 -2
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +20 -2
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +2 -0
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +15 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +63 -49
- package/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -1
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +65 -33
- package/src/.spruce/events/events.contract.ts +24 -0
- package/src/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.ts +54 -0
- package/src/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.ts +79 -0
- package/src/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.ts +48 -0
- package/src/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.ts +13 -0
- package/src/.spruce/schemas/schemas.types.ts +171 -52
- package/src/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.ts +58 -0
- package/src/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.ts +33 -0
- package/src/.spruce/settings.json +2 -1
- package/src/GlobalEmitter.ts +2 -7
- package/src/__tests__/behavioral/TestingAConversation.test.ts +20 -37
- package/src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts +14 -2
- package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +6 -0
- package/src/__tests__/behavioral/permissions/CreatingPermissions.test.ts +2 -2
- package/src/__tests__/behavioral/permissions/PermissionPlugin.test.ts +24 -0
- package/src/__tests__/behavioral/permissions/PermissionStore.test.ts +95 -38
- package/src/__tests__/behavioral/permissions/PermissionWriter.test.ts +23 -0
- package/src/__tests__/behavioral/permissions/SyncingPermissions.test.ts +125 -8
- package/src/__tests__/behavioral/permissions/support/AbstractPermissionsTest.ts +38 -0
- package/src/__tests__/behavioral/permissions/support/generateShortAlphaId.ts +5 -0
- package/src/__tests__/behavioral/permissions/support/renderPermissionTestFile.ts +27 -0
- package/src/__tests__/behavioral/permissions/support/sortPermissionContracts.ts +3 -0
- package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +12 -12
- package/src/__tests__/behavioral/tests/CreatingATest.test.ts +2 -2
- package/src/__tests__/behavioral/upgrading/UpgradingANodeModule.test.ts +3 -0
- package/src/__tests__/behavioral/upgrading/UpgradingASkill3.test.ts +3 -2
- package/src/__tests__/behavioral/upgrading/UpgradingASkill4.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter2.test.ts +13 -6
- package/src/__tests__/implementation/GlobalEmitter.test.ts +22 -1
- package/src/__tests__/implementation/SkillStore.test.ts +1 -2
- package/src/features/AbstractAction.ts +2 -2
- package/src/features/AbstractFeature.ts +8 -8
- package/src/features/ActionExecuter.ts +4 -5
- package/src/features/ActionFactory.ts +44 -20
- package/src/features/ActionQuestionAsker.ts +17 -17
- package/src/features/conversation/ConversationFeature.ts +1 -1
- package/src/features/dependencies/DependencyFeature.ts +1 -1
- package/src/features/deploy/actions/HerokuAction.ts +2 -2
- package/src/features/error/ErrorFeature.ts +4 -4
- package/src/features/event/EventFeature.ts +15 -14
- package/src/features/event/actions/CreateAction.ts +1 -1
- package/src/features/event/actions/ListenAction.ts +1 -1
- package/src/features/event/stores/EventStore.ts +37 -37
- package/src/features/eventContract/EventContractFeature.ts +6 -1
- package/src/features/eventContract/actions/PullAction.ts +7 -3
- package/src/features/features.types.ts +4 -41
- package/src/features/log/LogFeature.ts +1 -1
- package/src/features/node/NodeFeature.ts +1 -1
- package/src/features/organization/actions/InstallAction.ts +1 -1
- package/src/features/permission/PermissionFeature.ts +66 -11
- package/src/features/permission/actions/CreateAction.ts +2 -0
- package/src/features/permission/actions/SyncAction.ts +22 -3
- package/src/features/permission/stores/PermissionStore.ts +27 -8
- package/src/features/permission/writers/PermissionWriter.ts +64 -3
- package/src/features/person/PersonFeature.ts +1 -1
- package/src/features/sandbox/SandboxFeature.ts +1 -3
- package/src/features/schema/SchemaFeature.ts +14 -14
- package/src/features/schema/writers/SchemaWriter.ts +14 -15
- package/src/features/skill/SkillFeature.ts +18 -18
- package/src/features/skill/actions/RebuildAction.ts +1 -1
- package/src/features/skill/actions/RegisterAction.ts +1 -1
- package/src/features/skill/stores/SkillStore.ts +1 -2
- package/src/features/store/StoreFeature.ts +1 -1
- package/src/features/store/actions/SyncAction.ts +1 -1
- package/src/features/test/TestFeature.ts +1 -1
- package/src/features/view/ViewFeature.ts +1 -1
- package/src/schemas/v2020_07_22/actionResponse.builder.ts +62 -0
- package/src/schemas/v2020_07_22/generatedFile.builder.ts +44 -0
- package/src/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.ts +3 -46
- package/src/services/CommandService.ts +5 -5
- package/src/services/PkgService.ts +4 -0
- package/src/tests/AbstractCliTest.ts +31 -13
- package/src/tests/buildTestCache.ts +7 -0
- package/src/tests/fixtures/FeatureFixture.ts +2 -0
- package/src/tests/utilities/test.utility.ts +13 -0
- package/build/__tests__/behavioral/permissions/AbstractPermissionsTest.d.ts +0 -8
- package/build/__tests__/behavioral/permissions/AbstractPermissionsTest.js.map +0 -1
- package/src/__tests__/behavioral/permissions/AbstractPermissionsTest.ts +0 -20
|
@@ -25,82 +25,91 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.visitorKeys = void 0;
|
|
27
27
|
const eslintVisitorKeys = __importStar(require("eslint-visitor-keys"));
|
|
28
|
+
/**
|
|
29
|
+
* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! IMPORTANT NOTE !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
30
|
+
*
|
|
31
|
+
* The key arrays should be sorted in the order in which you would want to visit
|
|
32
|
+
* the child keys - don't just sort them alphabetically.
|
|
33
|
+
*/
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type -- TODO - add ignore IIFE option
|
|
35
|
+
const SharedVisitorKeys = (() => {
|
|
36
|
+
const FunctionType = ['typeParameters', 'params', 'returnType'];
|
|
37
|
+
const AnonymousFunction = [...FunctionType, 'body'];
|
|
38
|
+
const AbstractPropertyDefinition = [
|
|
39
|
+
'decorators',
|
|
40
|
+
'key',
|
|
41
|
+
'typeAnnotation',
|
|
42
|
+
];
|
|
43
|
+
return {
|
|
44
|
+
AnonymousFunction,
|
|
45
|
+
Function: ['id', ...AnonymousFunction],
|
|
46
|
+
FunctionType,
|
|
47
|
+
ClassDeclaration: [
|
|
48
|
+
'decorators',
|
|
49
|
+
'id',
|
|
50
|
+
'typeParameters',
|
|
51
|
+
'superClass',
|
|
52
|
+
'superTypeParameters',
|
|
53
|
+
'implements',
|
|
54
|
+
'body',
|
|
55
|
+
],
|
|
56
|
+
AbstractPropertyDefinition: ['decorators', 'key', 'typeAnnotation'],
|
|
57
|
+
PropertyDefinition: [...AbstractPropertyDefinition, 'value'],
|
|
58
|
+
TypeAssertion: ['expression', 'typeAnnotation'],
|
|
59
|
+
};
|
|
60
|
+
})();
|
|
28
61
|
const additionalKeys = {
|
|
29
|
-
|
|
30
|
-
ImportAttribute: ['key', 'value'],
|
|
31
|
-
// Additional Properties.
|
|
62
|
+
AccessorProperty: SharedVisitorKeys.PropertyDefinition,
|
|
32
63
|
ArrayPattern: ['decorators', 'elements', 'typeAnnotation'],
|
|
33
|
-
ArrowFunctionExpression:
|
|
64
|
+
ArrowFunctionExpression: SharedVisitorKeys.AnonymousFunction,
|
|
34
65
|
AssignmentPattern: ['decorators', 'left', 'right', 'typeAnnotation'],
|
|
35
66
|
CallExpression: ['callee', 'typeParameters', 'arguments'],
|
|
36
|
-
ClassDeclaration:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
'typeParameters',
|
|
40
|
-
'superClass',
|
|
41
|
-
'superTypeParameters',
|
|
42
|
-
'implements',
|
|
43
|
-
'body',
|
|
44
|
-
],
|
|
45
|
-
ClassExpression: [
|
|
46
|
-
'decorators',
|
|
47
|
-
'id',
|
|
48
|
-
'typeParameters',
|
|
49
|
-
'superClass',
|
|
50
|
-
'superTypeParameters',
|
|
51
|
-
'implements',
|
|
52
|
-
'body',
|
|
53
|
-
],
|
|
67
|
+
ClassDeclaration: SharedVisitorKeys.ClassDeclaration,
|
|
68
|
+
ClassExpression: SharedVisitorKeys.ClassDeclaration,
|
|
69
|
+
Decorator: ['expression'],
|
|
54
70
|
ExportAllDeclaration: ['exported', 'source', 'assertions'],
|
|
55
71
|
ExportNamedDeclaration: ['declaration', 'specifiers', 'source', 'assertions'],
|
|
56
|
-
FunctionDeclaration:
|
|
57
|
-
FunctionExpression:
|
|
72
|
+
FunctionDeclaration: SharedVisitorKeys.Function,
|
|
73
|
+
FunctionExpression: SharedVisitorKeys.Function,
|
|
58
74
|
Identifier: ['decorators', 'typeAnnotation'],
|
|
75
|
+
ImportAttribute: ['key', 'value'],
|
|
59
76
|
ImportDeclaration: ['specifiers', 'source', 'assertions'],
|
|
60
77
|
ImportExpression: ['source', 'attributes'],
|
|
78
|
+
JSXClosingFragment: [],
|
|
79
|
+
JSXOpeningElement: ['name', 'typeParameters', 'attributes'],
|
|
80
|
+
JSXOpeningFragment: [],
|
|
81
|
+
JSXSpreadChild: ['expression'],
|
|
61
82
|
MethodDefinition: ['decorators', 'key', 'value', 'typeParameters'],
|
|
62
83
|
NewExpression: ['callee', 'typeParameters', 'arguments'],
|
|
63
84
|
ObjectPattern: ['decorators', 'properties', 'typeAnnotation'],
|
|
64
|
-
PropertyDefinition:
|
|
85
|
+
PropertyDefinition: SharedVisitorKeys.PropertyDefinition,
|
|
65
86
|
RestElement: ['decorators', 'argument', 'typeAnnotation'],
|
|
66
|
-
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
|
|
67
87
|
StaticBlock: ['body'],
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
JSXClosingFragment: [],
|
|
71
|
-
JSXOpeningFragment: [],
|
|
72
|
-
JSXSpreadChild: ['expression'],
|
|
73
|
-
// Additional Nodes.
|
|
74
|
-
Decorator: ['expression'],
|
|
75
|
-
// TS-prefixed nodes
|
|
88
|
+
TaggedTemplateExpression: ['tag', 'typeParameters', 'quasi'],
|
|
89
|
+
TSAbstractAccessorProperty: SharedVisitorKeys.AbstractPropertyDefinition,
|
|
76
90
|
TSAbstractKeyword: [],
|
|
77
91
|
TSAbstractMethodDefinition: ['key', 'value'],
|
|
78
|
-
TSAbstractPropertyDefinition:
|
|
92
|
+
TSAbstractPropertyDefinition: SharedVisitorKeys.AbstractPropertyDefinition,
|
|
79
93
|
TSAnyKeyword: [],
|
|
80
94
|
TSArrayType: ['elementType'],
|
|
81
|
-
TSAsExpression:
|
|
95
|
+
TSAsExpression: SharedVisitorKeys.TypeAssertion,
|
|
82
96
|
TSAsyncKeyword: [],
|
|
83
97
|
TSBigIntKeyword: [],
|
|
84
98
|
TSBooleanKeyword: [],
|
|
85
|
-
TSCallSignatureDeclaration:
|
|
99
|
+
TSCallSignatureDeclaration: SharedVisitorKeys.FunctionType,
|
|
86
100
|
TSClassImplements: ['expression', 'typeParameters'],
|
|
87
101
|
TSConditionalType: ['checkType', 'extendsType', 'trueType', 'falseType'],
|
|
88
|
-
TSConstructorType:
|
|
89
|
-
TSConstructSignatureDeclaration:
|
|
90
|
-
TSDeclareFunction:
|
|
102
|
+
TSConstructorType: SharedVisitorKeys.FunctionType,
|
|
103
|
+
TSConstructSignatureDeclaration: SharedVisitorKeys.FunctionType,
|
|
104
|
+
TSDeclareFunction: SharedVisitorKeys.Function,
|
|
91
105
|
TSDeclareKeyword: [],
|
|
92
|
-
TSEmptyBodyFunctionExpression: [
|
|
93
|
-
'id',
|
|
94
|
-
'typeParameters',
|
|
95
|
-
'params',
|
|
96
|
-
'returnType',
|
|
97
|
-
],
|
|
106
|
+
TSEmptyBodyFunctionExpression: ['id', ...SharedVisitorKeys.FunctionType],
|
|
98
107
|
TSEnumDeclaration: ['id', 'members'],
|
|
99
108
|
TSEnumMember: ['id', 'initializer'],
|
|
100
109
|
TSExportAssignment: ['expression'],
|
|
101
110
|
TSExportKeyword: [],
|
|
102
111
|
TSExternalModuleReference: ['expression'],
|
|
103
|
-
TSFunctionType:
|
|
112
|
+
TSFunctionType: SharedVisitorKeys.FunctionType,
|
|
104
113
|
TSImportEqualsDeclaration: ['id', 'moduleReference'],
|
|
105
114
|
TSImportType: ['parameter', 'qualifier', 'typeParameters'],
|
|
106
115
|
TSIndexedAccessType: ['indexType', 'objectType'],
|
|
@@ -133,7 +142,12 @@ const additionalKeys = {
|
|
|
133
142
|
TSQualifiedName: ['left', 'right'],
|
|
134
143
|
TSReadonlyKeyword: [],
|
|
135
144
|
TSRestType: ['typeAnnotation'],
|
|
136
|
-
TSSatisfiesExpression: [
|
|
145
|
+
TSSatisfiesExpression: [
|
|
146
|
+
// this is intentionally different to SharedVisitorKeys.TypeAssertion because
|
|
147
|
+
// the type annotation comes first in the source code
|
|
148
|
+
'typeAnnotation',
|
|
149
|
+
'expression',
|
|
150
|
+
],
|
|
137
151
|
TSStaticKeyword: [],
|
|
138
152
|
TSStringKeyword: [],
|
|
139
153
|
TSSymbolKeyword: [],
|
|
@@ -142,7 +156,7 @@ const additionalKeys = {
|
|
|
142
156
|
TSTupleType: ['elementTypes'],
|
|
143
157
|
TSTypeAliasDeclaration: ['id', 'typeParameters', 'typeAnnotation'],
|
|
144
158
|
TSTypeAnnotation: ['typeAnnotation'],
|
|
145
|
-
TSTypeAssertion:
|
|
159
|
+
TSTypeAssertion: SharedVisitorKeys.TypeAssertion,
|
|
146
160
|
TSTypeLiteral: ['members'],
|
|
147
161
|
TSTypeOperator: ['typeAnnotation'],
|
|
148
162
|
TSTypeParameter: ['name', 'constraint', 'default'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uEAAyD;
|
|
1
|
+
{"version":3,"file":"visitor-keys.js","sourceRoot":"","sources":["../src/visitor-keys.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uEAAyD;AAgHzD;;;;;GAKG;AAEH,6GAA6G;AAC7G,MAAM,iBAAiB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;IAC1B,cAAc,EAAE,CAAC,gBAAgB,CAAC;IAClC,eAAe,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,SAAS,CAAC;IAClD,0BAA0B,EAAE,CAAC,QAAQ,CAAC;IACtC,4BAA4B,EAAE,CAAC,QAAQ,CAAC;IACxC,eAAe,EAAE,CAAC,gBAAgB,EAAE,eAAe,CAAC;IACpD,WAAW,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IAC3C,eAAe,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC;IAC/C,kBAAkB,EAAE,EAAE;IACtB,WAAW,EAAE,CAAC,OAAO,CAAC;IACtB,gBAAgB,EAAE,EAAE;IACpB,aAAa,EAAE,EAAE;CAClB,CAAC;AAEF,MAAM,WAAW,GAAgB,iBAAiB,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;AAEpE,kCAAW"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@typescript-eslint/visitor-keys",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.45.0",
|
|
4
4
|
"description": "Visitor keys used to help traverse the TypeScript-ESTree AST",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@typescript-eslint/types": "5.
|
|
42
|
+
"@typescript-eslint/types": "5.45.0",
|
|
43
43
|
"eslint-visitor-keys": "^3.3.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "267da4e416f7de6892336db8a2360d7af702b73c"
|
|
60
60
|
}
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
21
|
-
"version": "18.
|
|
21
|
+
"version": "18.3.0",
|
|
22
22
|
"bin": {
|
|
23
23
|
"spruce": "./build/index.js"
|
|
24
24
|
},
|
|
@@ -73,20 +73,20 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@babel/cli": "^7.19.3",
|
|
76
|
-
"@babel/plugin-proposal-decorators": "^7.20.
|
|
77
|
-
"@babel/runtime": "^7.20.
|
|
76
|
+
"@babel/plugin-proposal-decorators": "^7.20.5",
|
|
77
|
+
"@babel/runtime": "^7.20.6",
|
|
78
78
|
"@jest/reporters": "^29.3.1",
|
|
79
|
-
"@sprucelabs/error": "^5.0.
|
|
80
|
-
"@sprucelabs/heartwood-view-controllers": "^98.3.
|
|
81
|
-
"@sprucelabs/jest-json-reporter": "^6.0.
|
|
82
|
-
"@sprucelabs/mercury-client": "^34.0.
|
|
83
|
-
"@sprucelabs/mercury-event-emitter": "^34.0.
|
|
84
|
-
"@sprucelabs/mercury-types": "^37.
|
|
85
|
-
"@sprucelabs/schema": "^28.5.
|
|
86
|
-
"@sprucelabs/spruce-core-schemas": "^35.1.
|
|
87
|
-
"@sprucelabs/spruce-event-utils": "^29.2.
|
|
88
|
-
"@sprucelabs/spruce-skill-utils": "^28.
|
|
89
|
-
"@sprucelabs/spruce-templates": "^18.
|
|
79
|
+
"@sprucelabs/error": "^5.0.546",
|
|
80
|
+
"@sprucelabs/heartwood-view-controllers": "^98.3.40",
|
|
81
|
+
"@sprucelabs/jest-json-reporter": "^6.0.525",
|
|
82
|
+
"@sprucelabs/mercury-client": "^34.0.78",
|
|
83
|
+
"@sprucelabs/mercury-event-emitter": "^34.0.78",
|
|
84
|
+
"@sprucelabs/mercury-types": "^37.3.4",
|
|
85
|
+
"@sprucelabs/schema": "^28.5.73",
|
|
86
|
+
"@sprucelabs/spruce-core-schemas": "^35.1.68",
|
|
87
|
+
"@sprucelabs/spruce-event-utils": "^29.2.25",
|
|
88
|
+
"@sprucelabs/spruce-skill-utils": "^28.1.2",
|
|
89
|
+
"@sprucelabs/spruce-templates": "^18.3.0",
|
|
90
90
|
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
91
91
|
"@typescript-eslint/parser": "^5.27.1",
|
|
92
92
|
"cfonts": "^3.1.1",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"cli-table3": "^0.6.3",
|
|
96
96
|
"commander": "7.2.0",
|
|
97
97
|
"emphasize": "4.2.0",
|
|
98
|
-
"fs-extra": "^
|
|
98
|
+
"fs-extra": "^11.1.0",
|
|
99
99
|
"globby": "11.0.4",
|
|
100
100
|
"inquirer": "^8.2.4",
|
|
101
101
|
"inquirer-file-tree-selection-prompt": "1.0.18",
|
|
@@ -114,33 +114,33 @@
|
|
|
114
114
|
"uuid": "^9.0.0"
|
|
115
115
|
},
|
|
116
116
|
"devDependencies": {
|
|
117
|
-
"@sprucelabs/data-stores": "^19.0.
|
|
117
|
+
"@sprucelabs/data-stores": "^19.0.61",
|
|
118
118
|
"@sprucelabs/jest-sheets-reporter": "^2.0.21",
|
|
119
|
-
"@sprucelabs/mercury-core-events": "^15.0.
|
|
120
|
-
"@sprucelabs/resolve-path-aliases": "^1.1.
|
|
121
|
-
"@sprucelabs/spruce-conversation-plugin": "^52.2
|
|
122
|
-
"@sprucelabs/spruce-deploy-plugin": "^52.2
|
|
123
|
-
"@sprucelabs/spruce-store-plugin": "^52.2
|
|
124
|
-
"@sprucelabs/spruce-test-fixtures": "^52.2
|
|
125
|
-
"@sprucelabs/test": "^7.7.
|
|
126
|
-
"@sprucelabs/test-utils": "^3.2.
|
|
119
|
+
"@sprucelabs/mercury-core-events": "^15.0.100",
|
|
120
|
+
"@sprucelabs/resolve-path-aliases": "^1.1.137",
|
|
121
|
+
"@sprucelabs/spruce-conversation-plugin": "^52.3.2",
|
|
122
|
+
"@sprucelabs/spruce-deploy-plugin": "^52.3.2",
|
|
123
|
+
"@sprucelabs/spruce-store-plugin": "^52.3.2",
|
|
124
|
+
"@sprucelabs/spruce-test-fixtures": "^52.3.2",
|
|
125
|
+
"@sprucelabs/test": "^7.7.391",
|
|
126
|
+
"@sprucelabs/test-utils": "^3.2.61",
|
|
127
127
|
"@types/blessed": "^0.1.19",
|
|
128
128
|
"@types/eslint": "^8.4.10",
|
|
129
129
|
"@types/fs-extra": "^9.0.13",
|
|
130
130
|
"@types/inquirer": "^8.2.1",
|
|
131
|
-
"@types/lodash": "^4.14.
|
|
131
|
+
"@types/lodash": "^4.14.191",
|
|
132
132
|
"@types/md5": "^2.3.2",
|
|
133
133
|
"@types/mkdirp": "^1.0.2",
|
|
134
|
-
"@types/node": "^18.11.
|
|
134
|
+
"@types/node": "^18.11.10",
|
|
135
135
|
"@types/promise.allsettled": "^1.0.3",
|
|
136
136
|
"@types/ps-node": "^0.1.1",
|
|
137
137
|
"@types/rimraf": "^3.0.2",
|
|
138
138
|
"@types/semver": "^7.3.13",
|
|
139
139
|
"@types/sha1": "^1.1.3",
|
|
140
140
|
"@types/slug": "^5.0.3",
|
|
141
|
-
"@types/superagent": "^4.1.
|
|
142
|
-
"@types/terminal-kit": "^2.5.
|
|
143
|
-
"@types/uuid": "^
|
|
141
|
+
"@types/superagent": "^4.1.16",
|
|
142
|
+
"@types/terminal-kit": "^2.5.1",
|
|
143
|
+
"@types/uuid": "^9.0.0",
|
|
144
144
|
"chokidar-cli": "^3.0.0",
|
|
145
145
|
"concurrently": "^7.6.0",
|
|
146
146
|
"conventional-changelog-sprucelabs": "^1.1.2",
|
|
@@ -152,13 +152,13 @@
|
|
|
152
152
|
"jest-circus": "^29.3.1",
|
|
153
153
|
"jest-junit": "^15.0.0",
|
|
154
154
|
"jest-reporters": "^0.0.2",
|
|
155
|
-
"prettier": "^2.
|
|
155
|
+
"prettier": "^2.8.0",
|
|
156
156
|
"ps-node": "^0.1.6",
|
|
157
157
|
"rimraf": "^3.0.2",
|
|
158
158
|
"ts-jest": "^29.0.3",
|
|
159
159
|
"ts-node": "^10.9.1",
|
|
160
160
|
"tsc-watch": "^5.0.3",
|
|
161
|
-
"tsconfig-paths": "^4.1.
|
|
161
|
+
"tsconfig-paths": "^4.1.1"
|
|
162
162
|
},
|
|
163
163
|
"testSkillCache": {
|
|
164
164
|
"everything": [
|
|
@@ -175,6 +175,9 @@
|
|
|
175
175
|
{
|
|
176
176
|
"code": "test"
|
|
177
177
|
},
|
|
178
|
+
{
|
|
179
|
+
"code": "permission"
|
|
180
|
+
},
|
|
178
181
|
{
|
|
179
182
|
"code": "event"
|
|
180
183
|
},
|
|
@@ -208,6 +211,9 @@
|
|
|
208
211
|
{
|
|
209
212
|
"code": "test"
|
|
210
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"code": "permission"
|
|
216
|
+
},
|
|
211
217
|
{
|
|
212
218
|
"code": "event"
|
|
213
219
|
}
|
|
@@ -268,6 +274,9 @@
|
|
|
268
274
|
{
|
|
269
275
|
"code": "schema"
|
|
270
276
|
},
|
|
277
|
+
{
|
|
278
|
+
"code": "permission"
|
|
279
|
+
},
|
|
271
280
|
{
|
|
272
281
|
"code": "event"
|
|
273
282
|
}
|
|
@@ -295,6 +304,9 @@
|
|
|
295
304
|
{
|
|
296
305
|
"code": "schema"
|
|
297
306
|
},
|
|
307
|
+
{
|
|
308
|
+
"code": "permission"
|
|
309
|
+
},
|
|
298
310
|
{
|
|
299
311
|
"code": "event"
|
|
300
312
|
},
|
|
@@ -313,6 +325,9 @@
|
|
|
313
325
|
{
|
|
314
326
|
"code": "schema"
|
|
315
327
|
},
|
|
328
|
+
{
|
|
329
|
+
"code": "permission"
|
|
330
|
+
},
|
|
316
331
|
{
|
|
317
332
|
"code": "event"
|
|
318
333
|
},
|
|
@@ -331,6 +346,9 @@
|
|
|
331
346
|
{
|
|
332
347
|
"code": "schema"
|
|
333
348
|
},
|
|
349
|
+
{
|
|
350
|
+
"code": "permission"
|
|
351
|
+
},
|
|
334
352
|
{
|
|
335
353
|
"code": "event"
|
|
336
354
|
},
|
|
@@ -394,6 +412,9 @@
|
|
|
394
412
|
"description": "This is for permissions"
|
|
395
413
|
}
|
|
396
414
|
},
|
|
415
|
+
{
|
|
416
|
+
"code": "permission"
|
|
417
|
+
},
|
|
397
418
|
{
|
|
398
419
|
"code": "event"
|
|
399
420
|
},
|
|
@@ -412,6 +433,9 @@
|
|
|
412
433
|
{
|
|
413
434
|
"code": "schema"
|
|
414
435
|
},
|
|
436
|
+
{
|
|
437
|
+
"code": "permission"
|
|
438
|
+
},
|
|
415
439
|
{
|
|
416
440
|
"code": "event"
|
|
417
441
|
},
|
|
@@ -484,6 +508,9 @@
|
|
|
484
508
|
{
|
|
485
509
|
"code": "schema"
|
|
486
510
|
},
|
|
511
|
+
{
|
|
512
|
+
"code": "permission"
|
|
513
|
+
},
|
|
487
514
|
{
|
|
488
515
|
"code": "event"
|
|
489
516
|
},
|
|
@@ -502,6 +529,9 @@
|
|
|
502
529
|
{
|
|
503
530
|
"code": "schema"
|
|
504
531
|
},
|
|
532
|
+
{
|
|
533
|
+
"code": "permission"
|
|
534
|
+
},
|
|
505
535
|
{
|
|
506
536
|
"code": "event"
|
|
507
537
|
},
|
|
@@ -541,7 +571,9 @@
|
|
|
541
571
|
"sheetId": "1DoWM7mYgGDa-PJXptLomrZmbIBZiuxS1YiAsRXU2Gm0",
|
|
542
572
|
"worksheetId": 889384139,
|
|
543
573
|
"testMap": {
|
|
544
|
-
"
|
|
574
|
+
"generatesExpectedPermissionContract": "P11",
|
|
575
|
+
"syncsNewPermissionsWhenMade": "P13",
|
|
576
|
+
"combinedFileImportsAllPermissions": "P14"
|
|
545
577
|
}
|
|
546
578
|
}
|
|
547
579
|
],
|
|
@@ -563,5 +595,5 @@
|
|
|
563
595
|
"terminal-kit"
|
|
564
596
|
]
|
|
565
597
|
},
|
|
566
|
-
"gitHead": "
|
|
598
|
+
"gitHead": "f8239e76132381bf8b038dededf356c6e78f1061"
|
|
567
599
|
}
|
|
@@ -5,22 +5,38 @@ import heartwoodDidRegisterSkillViewsEventContract_v2021_02_11, {
|
|
|
5
5
|
import heartwoodGenerateUrlEventContract_v2021_02_11, {
|
|
6
6
|
GenerateUrlEventContract as HeartwoodGenerateUrlEventContract_v2021_02_11,
|
|
7
7
|
} from '#spruce/events/heartwood/generateUrl.v2021_02_11.contract'
|
|
8
|
+
import heartwoodGetActiveThemeEventContract_v2021_02_11, {
|
|
9
|
+
GetActiveThemeEventContract as HeartwoodGetActiveThemeEventContract_v2021_02_11,
|
|
10
|
+
} from '#spruce/events/heartwood/getActiveTheme.v2021_02_11.contract'
|
|
8
11
|
import heartwoodGetSkillViewsEventContract_v2021_02_11, {
|
|
9
12
|
GetSkillViewsEventContract as HeartwoodGetSkillViewsEventContract_v2021_02_11,
|
|
10
13
|
} from '#spruce/events/heartwood/getSkillViews.v2021_02_11.contract'
|
|
11
14
|
import heartwoodListViewsEventContract_v2021_02_11, {
|
|
12
15
|
ListViewsEventContract as HeartwoodListViewsEventContract_v2021_02_11,
|
|
13
16
|
} from '#spruce/events/heartwood/listViews.v2021_02_11.contract'
|
|
17
|
+
import heartwoodRegisterDashboardCardsEventContract_v2021_02_11, {
|
|
18
|
+
RegisterDashboardCardsEventContract as HeartwoodRegisterDashboardCardsEventContract_v2021_02_11,
|
|
19
|
+
} from '#spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract'
|
|
14
20
|
import heartwoodRegisterSkillViewsEventContract_v2021_02_11, {
|
|
15
21
|
RegisterSkillViewsEventContract as HeartwoodRegisterSkillViewsEventContract_v2021_02_11,
|
|
16
22
|
} from '#spruce/events/heartwood/registerSkillViews.v2021_02_11.contract'
|
|
23
|
+
import heartwoodUpsertThemeEventContract_v2021_02_11, {
|
|
24
|
+
UpsertThemeEventContract as HeartwoodUpsertThemeEventContract_v2021_02_11,
|
|
25
|
+
} from '#spruce/events/heartwood/upsertTheme.v2021_02_11.contract'
|
|
26
|
+
import spruceCliRegisterSkillViewsEventContract_v2021_04_11, {
|
|
27
|
+
RegisterSkillViewsEventContract as SpruceCliRegisterSkillViewsEventContract_v2021_04_11,
|
|
28
|
+
} from '#spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract'
|
|
17
29
|
|
|
18
30
|
export default [
|
|
19
31
|
heartwoodDidRegisterSkillViewsEventContract_v2021_02_11,
|
|
20
32
|
heartwoodGenerateUrlEventContract_v2021_02_11,
|
|
33
|
+
heartwoodGetActiveThemeEventContract_v2021_02_11,
|
|
21
34
|
heartwoodGetSkillViewsEventContract_v2021_02_11,
|
|
22
35
|
heartwoodListViewsEventContract_v2021_02_11,
|
|
36
|
+
heartwoodRegisterDashboardCardsEventContract_v2021_02_11,
|
|
23
37
|
heartwoodRegisterSkillViewsEventContract_v2021_02_11,
|
|
38
|
+
spruceCliRegisterSkillViewsEventContract_v2021_04_11,
|
|
39
|
+
heartwoodUpsertThemeEventContract_v2021_02_11,
|
|
24
40
|
...coreEventContracts,
|
|
25
41
|
]
|
|
26
42
|
|
|
@@ -30,10 +46,18 @@ declare module '@sprucelabs/mercury-types/build/types/mercury.types' {
|
|
|
30
46
|
|
|
31
47
|
'heartwood.generate-url::v2021_02_11': HeartwoodGenerateUrlEventContract_v2021_02_11['eventSignatures']['heartwood.generate-url::v2021_02_11']
|
|
32
48
|
|
|
49
|
+
'heartwood.get-active-theme::v2021_02_11': HeartwoodGetActiveThemeEventContract_v2021_02_11['eventSignatures']['heartwood.get-active-theme::v2021_02_11']
|
|
50
|
+
|
|
33
51
|
'heartwood.get-skill-views::v2021_02_11': HeartwoodGetSkillViewsEventContract_v2021_02_11['eventSignatures']['heartwood.get-skill-views::v2021_02_11']
|
|
34
52
|
|
|
35
53
|
'heartwood.list-views::v2021_02_11': HeartwoodListViewsEventContract_v2021_02_11['eventSignatures']['heartwood.list-views::v2021_02_11']
|
|
36
54
|
|
|
55
|
+
'heartwood.register-dashboard-cards::v2021_02_11': HeartwoodRegisterDashboardCardsEventContract_v2021_02_11['eventSignatures']['heartwood.register-dashboard-cards::v2021_02_11']
|
|
56
|
+
|
|
37
57
|
'heartwood.register-skill-views::v2021_02_11': HeartwoodRegisterSkillViewsEventContract_v2021_02_11['eventSignatures']['heartwood.register-skill-views::v2021_02_11']
|
|
58
|
+
|
|
59
|
+
'spruce-cli.register-skill-views::v2021_04_11': SpruceCliRegisterSkillViewsEventContract_v2021_04_11['eventSignatures']['spruce-cli.register-skill-views::v2021_04_11']
|
|
60
|
+
|
|
61
|
+
'heartwood.upsert-theme::v2021_02_11': HeartwoodUpsertThemeEventContract_v2021_02_11['eventSignatures']['heartwood.upsert-theme::v2021_02_11']
|
|
38
62
|
}
|
|
39
63
|
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { buildEventContract } from '@sprucelabs/mercury-types'
|
|
2
|
+
import { buildPermissionContract } from '@sprucelabs/mercury-types'
|
|
3
|
+
import getActiveThemeEmitTargetAndPayloadSchema from '#spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTargetAndPayload.schema'
|
|
4
|
+
import getActiveThemeResponsePayloadSchema from '#spruce/schemas/heartwood/v2021_02_11/getActiveThemeResponsePayload.schema'
|
|
5
|
+
|
|
6
|
+
const getActiveThemeEventContract = buildEventContract({
|
|
7
|
+
eventSignatures: {
|
|
8
|
+
'heartwood.get-active-theme::v2021_02_11': {
|
|
9
|
+
isGlobal: true,
|
|
10
|
+
emitPayloadSchema: getActiveThemeEmitTargetAndPayloadSchema,
|
|
11
|
+
responsePayloadSchema: getActiveThemeResponsePayloadSchema,
|
|
12
|
+
emitPermissionContract: buildPermissionContract({
|
|
13
|
+
id: 'getActiveThemeEmitPermissions',
|
|
14
|
+
name: 'Get active theme',
|
|
15
|
+
description: null,
|
|
16
|
+
requireAllPermissions: false,
|
|
17
|
+
permissions: [
|
|
18
|
+
{
|
|
19
|
+
id: 'can-get-active-theme',
|
|
20
|
+
name: 'Can get active theme',
|
|
21
|
+
description: null,
|
|
22
|
+
requireAllStatuses: false,
|
|
23
|
+
defaults: {
|
|
24
|
+
skill: true,
|
|
25
|
+
owner: null,
|
|
26
|
+
groupManager: null,
|
|
27
|
+
manager: null,
|
|
28
|
+
teammate: null,
|
|
29
|
+
anonymous: {
|
|
30
|
+
default: true,
|
|
31
|
+
clockedIn: null,
|
|
32
|
+
clockedOut: null,
|
|
33
|
+
onPrem: null,
|
|
34
|
+
offPrem: null,
|
|
35
|
+
},
|
|
36
|
+
loggedIn: {
|
|
37
|
+
default: true,
|
|
38
|
+
clockedIn: null,
|
|
39
|
+
clockedOut: null,
|
|
40
|
+
onPrem: null,
|
|
41
|
+
offPrem: null,
|
|
42
|
+
},
|
|
43
|
+
guest: null,
|
|
44
|
+
},
|
|
45
|
+
can: null,
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}),
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
})
|
|
52
|
+
export default getActiveThemeEventContract
|
|
53
|
+
|
|
54
|
+
export type GetActiveThemeEventContract = typeof getActiveThemeEventContract
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { buildEventContract } from '@sprucelabs/mercury-types'
|
|
2
|
+
import { buildPermissionContract } from '@sprucelabs/mercury-types'
|
|
3
|
+
import registerDashboardCardsResponsePayloadSchema from '#spruce/schemas/heartwood/v2021_02_11/registerDashboardCardsResponsePayload.schema'
|
|
4
|
+
|
|
5
|
+
const registerDashboardCardsEventContract = buildEventContract({
|
|
6
|
+
eventSignatures: {
|
|
7
|
+
'heartwood.register-dashboard-cards::v2021_02_11': {
|
|
8
|
+
isGlobal: true,
|
|
9
|
+
|
|
10
|
+
responsePayloadSchema: registerDashboardCardsResponsePayloadSchema,
|
|
11
|
+
emitPermissionContract: buildPermissionContract({
|
|
12
|
+
id: 'registerDashboardCardsEmitPermissions',
|
|
13
|
+
name: 'register dashboard cards',
|
|
14
|
+
description: null,
|
|
15
|
+
requireAllPermissions: false,
|
|
16
|
+
permissions: [
|
|
17
|
+
{
|
|
18
|
+
id: 'can-get-dashboard-cards',
|
|
19
|
+
name: 'Can get dashboard cards',
|
|
20
|
+
description: 'Can get dashboard cards',
|
|
21
|
+
requireAllStatuses: false,
|
|
22
|
+
defaults: {
|
|
23
|
+
skill: null,
|
|
24
|
+
owner: null,
|
|
25
|
+
groupManager: null,
|
|
26
|
+
manager: null,
|
|
27
|
+
teammate: null,
|
|
28
|
+
anonymous: {
|
|
29
|
+
default: true,
|
|
30
|
+
clockedIn: null,
|
|
31
|
+
clockedOut: null,
|
|
32
|
+
onPrem: null,
|
|
33
|
+
offPrem: null,
|
|
34
|
+
},
|
|
35
|
+
loggedIn: {
|
|
36
|
+
default: true,
|
|
37
|
+
clockedIn: null,
|
|
38
|
+
clockedOut: null,
|
|
39
|
+
onPrem: null,
|
|
40
|
+
offPrem: null,
|
|
41
|
+
},
|
|
42
|
+
guest: null,
|
|
43
|
+
},
|
|
44
|
+
can: null,
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
}),
|
|
48
|
+
listenPermissionContract: buildPermissionContract({
|
|
49
|
+
id: 'registerDashboardCardsListenPermissions',
|
|
50
|
+
name: 'register dashboard cards',
|
|
51
|
+
description: null,
|
|
52
|
+
requireAllPermissions: false,
|
|
53
|
+
permissions: [
|
|
54
|
+
{
|
|
55
|
+
id: 'can-register-dashboard-cards',
|
|
56
|
+
name: 'Can register dashboard cards',
|
|
57
|
+
description: null,
|
|
58
|
+
requireAllStatuses: false,
|
|
59
|
+
defaults: {
|
|
60
|
+
skill: true,
|
|
61
|
+
owner: null,
|
|
62
|
+
groupManager: null,
|
|
63
|
+
manager: null,
|
|
64
|
+
teammate: null,
|
|
65
|
+
anonymous: null,
|
|
66
|
+
loggedIn: null,
|
|
67
|
+
guest: null,
|
|
68
|
+
},
|
|
69
|
+
can: null,
|
|
70
|
+
},
|
|
71
|
+
],
|
|
72
|
+
}),
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
})
|
|
76
|
+
export default registerDashboardCardsEventContract
|
|
77
|
+
|
|
78
|
+
export type RegisterDashboardCardsEventContract =
|
|
79
|
+
typeof registerDashboardCardsEventContract
|