@sprucelabs/spruce-cli 14.26.19 → 14.28.2
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 +38 -0
- package/build/.spruce/errors/errors.types.d.ts +19 -0
- package/build/.spruce/errors/options.types.d.ts +4 -1
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.d.ts +3 -0
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.js +28 -0
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.js.map +1 -0
- package/build/.spruce/events/events.contract.d.ts +4 -621
- package/build/.spruce/events/events.contract.js +1 -35
- package/build/.spruce/events/events.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.d.ts +0 -15
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js +2 -17
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.d.ts +4 -21
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js +7 -24
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.d.ts +1 -24
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js +5 -28
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.d.ts +12 -0
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js +13 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/schemas/schemas.types.d.ts +54 -1142
- package/build/.spruce/schemas/schemas.types.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
- package/build/.spruce/settings.json +6 -0
- package/build/__tests__/behavioral/AddingADependency.test.d.ts +6 -3
- package/build/__tests__/behavioral/AddingADependency.test.js +116 -44
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +2 -2
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js +4 -4
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +3 -3
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +3 -3
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingDataStores.test.js +2 -2
- package/build/__tests__/behavioral/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/UpgradingANodeModule.test.d.ts +1 -0
- package/build/__tests__/behavioral/UpgradingANodeModule.test.js +50 -3
- package/build/__tests__/behavioral/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +8 -8
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.d.ts +3 -2
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +156 -106
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +6 -9
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +2 -2
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +7 -4
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/UpgradingASkill.test.js +7 -7
- package/build/__tests__/behavioral/skill/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/UpgradingASkill3.test.js +2 -2
- package/build/__tests__/behavioral/skill/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +3 -3
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +2 -2
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +3 -3
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/errors/SpruceError.js +4 -0
- package/build/errors/SpruceError.js.map +1 -1
- package/build/errors/dependencyExists.builder.d.ts +11 -0
- package/build/errors/dependencyExists.builder.js +22 -0
- package/build/errors/dependencyExists.builder.js.map +1 -0
- package/build/features/AbstractAction.js +1 -1
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +22 -15
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +1 -1
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +66 -54
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/stores/EventStore.js +24 -13
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/node/NodeFeature.d.ts +1 -0
- package/build/features/node/NodeFeature.js +83 -64
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +20 -9
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.d.ts +5 -2
- package/build/features/node/writers/NodeWriter.js +37 -22
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +1 -1
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +3 -1
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/interfaces/SpyInterface.d.ts +1 -1
- package/build/interfaces/SpyInterface.js +2 -2
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.d.ts +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js.map +1 -1
- package/build/services/DependencyService.d.ts +1 -0
- package/build/services/DependencyService.js +18 -0
- package/build/services/DependencyService.js.map +1 -1
- package/build/tests/AbstractCliTest.js +1 -1
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/utilities/uiAssert.utility.d.ts +7 -0
- package/build/tests/utilities/uiAssert.utility.js +85 -0
- package/build/tests/utilities/uiAssert.utility.js.map +1 -0
- package/build/writers/AbstractWriter.d.ts +10 -10
- package/build/writers/AbstractWriter.js.map +1 -1
- package/package.json +33 -31
- package/src/.spruce/errors/errors.types.ts +29 -0
- package/src/.spruce/errors/options.types.ts +4 -1
- package/src/.spruce/errors/spruceCli/dependencyExists.schema.ts +22 -0
- package/src/.spruce/events/events.contract.ts +0 -102
- package/src/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.ts +0 -15
- package/src/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.ts +4 -21
- package/src/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.ts +1 -24
- package/src/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.ts +15 -0
- package/src/.spruce/schemas/schemas.types.ts +59 -1413
- package/src/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.ts +1 -1
- package/src/.spruce/settings.json +6 -0
- package/src/__tests__/behavioral/AddingADependency.test.ts +45 -8
- package/src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts +3 -3
- package/src/__tests__/behavioral/LoggingInAsASkill.test.ts +4 -4
- package/src/__tests__/behavioral/ManagingDependencies.test.ts +3 -3
- package/src/__tests__/behavioral/RememberingUpgradeSelections.test.ts +1 -1
- package/src/__tests__/behavioral/SettingRemote.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpVscode.test.ts +3 -3
- package/src/__tests__/behavioral/TestingDataStores.test.ts +2 -2
- package/src/__tests__/behavioral/UpgradingANodeModule.test.ts +24 -0
- package/src/__tests__/behavioral/events/CreatingAListener.test.ts +8 -8
- package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +44 -22
- package/src/__tests__/behavioral/events/KeepingEventsInSync2.test.ts +1 -1
- package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +2 -2
- package/src/__tests__/behavioral/schemas/KeepingSchemasInSync.test.ts +2 -0
- package/src/__tests__/behavioral/skill/UpgradingASkill.test.ts +7 -7
- package/src/__tests__/behavioral/skill/UpgradingASkill3.test.ts +2 -2
- package/src/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.ts +1 -1
- package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +3 -3
- package/src/__tests__/behavioral/views/TestingViewControllers.test.ts +2 -2
- package/src/__tests__/implementation/ActionExecuter2.test.ts +3 -3
- package/src/errors/SpruceError.ts +4 -0
- package/src/errors/dependencyExists.builder.ts +12 -0
- package/src/features/AbstractAction.ts +1 -4
- package/src/features/dependencies/actions/AddAction.ts +12 -5
- package/src/features/event/actions/CreateAction.ts +4 -1
- package/src/features/event/actions/ListenAction.ts +30 -20
- package/src/features/event/stores/EventStore.ts +7 -1
- package/src/features/node/NodeFeature.ts +31 -25
- package/src/features/node/actions/UpgradeAction.ts +8 -1
- package/src/features/node/writers/NodeWriter.ts +38 -23
- package/src/features/sandbox/actions/SetupAction.ts +1 -1
- package/src/features/skill/updaters/Updater.ts +2 -1
- package/src/interfaces/SpyInterface.ts +1 -1
- package/src/schemas/v2020_07_22/listenEventOptions.builder.ts +1 -1
- package/src/services/DependencyService.ts +14 -0
- package/src/tests/AbstractCliTest.ts +1 -1
- package/src/tests/utilities/uiAssert.utility.ts +45 -0
- package/src/writers/AbstractWriter.ts +15 -10
- package/build/.spruce/events/appointments/didBookAppointments.v2021_06_23.contract.d.ts +0 -10
- package/build/.spruce/events/appointments/didBookAppointments.v2021_06_23.contract.js +0 -24
- package/build/.spruce/events/appointments/didBookAppointments.v2021_06_23.contract.js.map +0 -1
- package/build/.spruce/events/calendar/createCalendarEventType.v2021_05_19.contract.d.ts +0 -11
- package/build/.spruce/events/calendar/createCalendarEventType.v2021_05_19.contract.js +0 -27
- package/build/.spruce/events/calendar/createCalendarEventType.v2021_05_19.contract.js.map +0 -1
- package/build/.spruce/events/calendar/listCalendarEventTypes.v2021_05_19.contract.d.ts +0 -10
- package/build/.spruce/events/calendar/listCalendarEventTypes.v2021_05_19.contract.js +0 -24
- package/build/.spruce/events/calendar/listCalendarEventTypes.v2021_05_19.contract.js.map +0 -1
- package/build/.spruce/events/forms/convertPdfToForm.v2021_07_02.contract.d.ts +0 -46
- package/build/.spruce/events/forms/convertPdfToForm.v2021_07_02.contract.js +0 -62
- package/build/.spruce/events/forms/convertPdfToForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/convertPdfToSchemas.v2021_07_02.contract.d.ts +0 -46
- package/build/.spruce/events/forms/convertPdfToSchemas.v2021_07_02.contract.js +0 -62
- package/build/.spruce/events/forms/convertPdfToSchemas.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/createForm.v2021_07_02.contract.d.ts +0 -46
- package/build/.spruce/events/forms/createForm.v2021_07_02.contract.js +0 -62
- package/build/.spruce/events/forms/createForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/deleteCompletedForm.v2021_07_02.contract.d.ts +0 -46
- package/build/.spruce/events/forms/deleteCompletedForm.v2021_07_02.contract.js +0 -62
- package/build/.spruce/events/forms/deleteCompletedForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/didUpdateCompletedForm.v2021_07_02.contract.d.ts +0 -10
- package/build/.spruce/events/forms/didUpdateCompletedForm.v2021_07_02.contract.js +0 -24
- package/build/.spruce/events/forms/didUpdateCompletedForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/getCompletedForm.v2021_07_02.contract.d.ts +0 -40
- package/build/.spruce/events/forms/getCompletedForm.v2021_07_02.contract.js +0 -56
- package/build/.spruce/events/forms/getCompletedForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/listCompletedForms.v2021_07_02.contract.d.ts +0 -45
- package/build/.spruce/events/forms/listCompletedForms.v2021_07_02.contract.js +0 -59
- package/build/.spruce/events/forms/listCompletedForms.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/listForms.v2021_07_02.contract.d.ts +0 -80
- package/build/.spruce/events/forms/listForms.v2021_07_02.contract.js +0 -94
- package/build/.spruce/events/forms/listForms.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/forms/updateCompletedForm.v2021_07_02.contract.d.ts +0 -11
- package/build/.spruce/events/forms/updateCompletedForm.v2021_07_02.contract.js +0 -27
- package/build/.spruce/events/forms/updateCompletedForm.v2021_07_02.contract.js.map +0 -1
- package/build/.spruce/events/mySkill163362874854325100/myCoolEvent.v2021_01_22.contract.d.ts +0 -38
- package/build/.spruce/events/mySkill163362874854325100/myCoolEvent.v2021_01_22.contract.js +0 -48
- package/build/.spruce/events/mySkill163362874854325100/myCoolEvent.v2021_01_22.contract.js.map +0 -1
- package/build/.spruce/events/mySkill163362882591525586/myCoolEvent.v2021_01_22.contract.d.ts +0 -38
- package/build/.spruce/events/mySkill163362882591525586/myCoolEvent.v2021_01_22.contract.js +0 -48
- package/build/.spruce/events/mySkill163362882591525586/myCoolEvent.v2021_01_22.contract.js.map +0 -1
- package/build/.spruce/events/mySkill163459634973936127/myCoolEvent.v2021_01_22.contract.d.ts +0 -38
- package/build/.spruce/events/mySkill163459634973936127/myCoolEvent.v2021_01_22.contract.js +0 -48
- package/build/.spruce/events/mySkill163459634973936127/myCoolEvent.v2021_01_22.contract.js.map +0 -1
- package/build/.spruce/events/mySkill163493473102035607/myCoolEvent.v2021_01_22.contract.d.ts +0 -38
- package/build/.spruce/events/mySkill163493473102035607/myCoolEvent.v2021_01_22.contract.js +0 -48
- package/build/.spruce/events/mySkill163493473102035607/myCoolEvent.v2021_01_22.contract.js.map +0 -1
- package/build/.spruce/events/mySkill163493479880935941/myCoolEvent.v2021_01_22.contract.d.ts +0 -38
- package/build/.spruce/events/mySkill163493479880935941/myCoolEvent.v2021_01_22.contract.js +0 -48
- package/build/.spruce/events/mySkill163493479880935941/myCoolEvent.v2021_01_22.contract.js.map +0 -1
- package/build/.spruce/schemas/appointments/v2021_06_23/appointments.schema.d.ts +0 -3
- package/build/.spruce/schemas/appointments/v2021_06_23/appointments.schema.js +0 -28
- package/build/.spruce/schemas/appointments/v2021_06_23/appointments.schema.js.map +0 -1
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitPayload.schema.js +0 -36
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTarget.schema.d.ts +0 -3
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTarget.schema.js +0 -28
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTarget.schema.js.map +0 -1
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTargetAndPayload.schema.js +0 -56
- package/build/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitPayload.schema.js +0 -36
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeResponsePayload.schema.js +0 -35
- package/build/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/calendar/v2021_05_19/fullCalendarEventType.schema.d.ts +0 -3
- package/build/.spruce/schemas/calendar/v2021_05_19/fullCalendarEventType.schema.js +0 -54
- package/build/.spruce/schemas/calendar/v2021_05_19/fullCalendarEventType.schema.js.map +0 -1
- package/build/.spruce/schemas/calendar/v2021_05_19/listCalendarEventTypesResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/calendar/v2021_05_19/listCalendarEventTypesResponsePayload.schema.js +0 -37
- package/build/.spruce/schemas/calendar/v2021_05_19/listCalendarEventTypesResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/builtForm.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/builtForm.schema.js +0 -66
- package/build/.spruce/schemas/forms/v2021_07_02/builtForm.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormResponse.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormResponse.schema.js +0 -50
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormResponse.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormSourceForm.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormSourceForm.schema.js +0 -59
- package/build/.spruce/schemas/forms/v2021_07_02/completedFormSourceForm.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitPayload.schema.js +0 -30
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormResponsePayload.schema.js +0 -34
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToFormResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitPayload.schema.js +0 -30
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasResponsePayload.schema.js +0 -33
- package/build/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/createBuiltForm.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/createBuiltForm.schema.js +0 -52
- package/build/.spruce/schemas/forms/v2021_07_02/createBuiltForm.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/createFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/createFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/createFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/createFormResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/createFormResponsePayload.schema.js +0 -44
- package/build/.spruce/schemas/forms/v2021_07_02/createFormResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTarget.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTarget.schema.js +0 -29
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTarget.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormResponsePayload.schema.js +0 -29
- package/build/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/didSaveFormEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/didSaveFormEmitPayload.schema.js +0 -29
- package/build/.spruce/schemas/forms/v2021_07_02/didSaveFormEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/didUpdateCompletedFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/didUpdateCompletedFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/didUpdateCompletedFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTarget.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTarget.schema.js +0 -29
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTarget.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEventForm.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEventForm.schema.js +0 -78
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormEventForm.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormResponsePayload.schema.js +0 -35
- package/build/.spruce/schemas/forms/v2021_07_02/getCompletedFormResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/listCompletedFormsResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/listCompletedFormsResponsePayload.schema.js +0 -37
- package/build/.spruce/schemas/forms/v2021_07_02/listCompletedFormsResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsForm.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsForm.schema.js +0 -51
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsForm.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsResponsePayload.schema.js +0 -37
- package/build/.spruce/schemas/forms/v2021_07_02/listFormsResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitPayload.schema.js +0 -38
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitTargetAndPayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitTargetAndPayload.schema.js +0 -46
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitTargetAndPayload.schema.js.map +0 -1
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormResponsePayload.schema.d.ts +0 -3
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormResponsePayload.schema.js +0 -29
- package/build/.spruce/schemas/forms/v2021_07_02/updateCompletedFormResponsePayload.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/builderImportExportPage.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/builderImportExportPage.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/builderImportExportPage.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formBuilderImportExportObject.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formBuilderImportExportObject.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formBuilderImportExportObject.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formSection.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formSection.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formSection.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/list.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/list.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/list.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCell.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCell.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCell.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCellButton.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCellButton.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCellButton.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listRow.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listRow.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listRow.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listSelectInput.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listSelectInput.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listSelectInput.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listTextInput.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listTextInput.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listTextInput.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/selectInputChoice.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/selectInputChoice.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/selectInputChoice.schema.js.map +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/text.schema.d.ts +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/text.schema.js +0 -14
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/text.schema.js.map +0 -1
- package/src/.spruce/events/appointments/didBookAppointments.v2021_06_23.contract.ts +0 -15
- package/src/.spruce/events/calendar/createCalendarEventType.v2021_05_19.contract.ts +0 -17
- package/src/.spruce/events/calendar/listCalendarEventTypes.v2021_05_19.contract.ts +0 -16
- package/src/.spruce/events/forms/convertPdfToForm.v2021_07_02.contract.ts +0 -54
- package/src/.spruce/events/forms/convertPdfToSchemas.v2021_07_02.contract.ts +0 -55
- package/src/.spruce/events/forms/createForm.v2021_07_02.contract.ts +0 -54
- package/src/.spruce/events/forms/deleteCompletedForm.v2021_07_02.contract.ts +0 -55
- package/src/.spruce/events/forms/didUpdateCompletedForm.v2021_07_02.contract.ts +0 -15
- package/src/.spruce/events/forms/getCompletedForm.v2021_07_02.contract.ts +0 -48
- package/src/.spruce/events/forms/listCompletedForms.v2021_07_02.contract.ts +0 -54
- package/src/.spruce/events/forms/listForms.v2021_07_02.contract.ts +0 -90
- package/src/.spruce/events/forms/updateCompletedForm.v2021_07_02.contract.ts +0 -17
- package/src/.spruce/events/mySkill163362874854325100/myCoolEvent.v2021_01_22.contract.ts +0 -45
- package/src/.spruce/events/mySkill163362882591525586/myCoolEvent.v2021_01_22.contract.ts +0 -45
- package/src/.spruce/events/mySkill163459634973936127/myCoolEvent.v2021_01_22.contract.ts +0 -45
- package/src/.spruce/events/mySkill163493473102035607/myCoolEvent.v2021_01_22.contract.ts +0 -45
- package/src/.spruce/events/mySkill163493479880935941/myCoolEvent.v2021_01_22.contract.ts +0 -45
- package/src/.spruce/schemas/appointments/v2021_06_23/appointments.schema.ts +0 -22
- package/src/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitPayload.schema.ts +0 -24
- package/src/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTarget.schema.ts +0 -22
- package/src/.spruce/schemas/appointments/v2021_06_23/didBookAppointmentsEmitTargetAndPayload.schema.ts +0 -36
- package/src/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitPayload.schema.ts +0 -29
- package/src/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/calendar/v2021_05_19/createCalendarEventTypeResponsePayload.schema.ts +0 -23
- package/src/.spruce/schemas/calendar/v2021_05_19/fullCalendarEventType.schema.ts +0 -39
- package/src/.spruce/schemas/calendar/v2021_05_19/listCalendarEventTypesResponsePayload.schema.ts +0 -25
- package/src/.spruce/schemas/forms/v2021_07_02/builtForm.schema.ts +0 -50
- package/src/.spruce/schemas/forms/v2021_07_02/completedFormResponse.schema.ts +0 -41
- package/src/.spruce/schemas/forms/v2021_07_02/completedFormSourceForm.schema.ts +0 -44
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitPayload.schema.ts +0 -24
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToFormResponsePayload.schema.ts +0 -22
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitPayload.schema.ts +0 -24
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/convertPdfToSchemasResponsePayload.schema.ts +0 -25
- package/src/.spruce/schemas/forms/v2021_07_02/createBuiltForm.schema.ts +0 -38
- package/src/.spruce/schemas/forms/v2021_07_02/createFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/createFormResponsePayload.schema.ts +0 -29
- package/src/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTarget.schema.ts +0 -23
- package/src/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/deleteCompletedFormResponsePayload.schema.ts +0 -23
- package/src/.spruce/schemas/forms/v2021_07_02/didSaveFormEmitPayload.schema.ts +0 -23
- package/src/.spruce/schemas/forms/v2021_07_02/didUpdateCompletedFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTarget.schema.ts +0 -23
- package/src/.spruce/schemas/forms/v2021_07_02/getCompletedFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/getCompletedFormEventForm.schema.ts +0 -58
- package/src/.spruce/schemas/forms/v2021_07_02/getCompletedFormResponsePayload.schema.ts +0 -23
- package/src/.spruce/schemas/forms/v2021_07_02/listCompletedFormsResponsePayload.schema.ts +0 -25
- package/src/.spruce/schemas/forms/v2021_07_02/listFormsForm.schema.ts +0 -42
- package/src/.spruce/schemas/forms/v2021_07_02/listFormsResponsePayload.schema.ts +0 -25
- package/src/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitPayload.schema.ts +0 -29
- package/src/.spruce/schemas/forms/v2021_07_02/updateCompletedFormEmitTargetAndPayload.schema.ts +0 -30
- package/src/.spruce/schemas/forms/v2021_07_02/updateCompletedFormResponsePayload.schema.ts +0 -23
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/builderImportExportPage.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formBuilderImportExportObject.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/formSection.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/list.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCell.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listCellButton.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listRow.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listSelectInput.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/listTextInput.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/selectInputChoice.schema.ts +0 -1
- package/src/.spruce/schemas/heartwoodViewControllers/v2021_02_11/text.schema.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.ts"],"names":["listenEventOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","isPrivate","SchemaRegistry","getInstance","trackSchema"],"mappings":";;;;;;;AAAA;;AAKA,IAAMA,wBAAsF,GAAI;AAC/FC,EAAAA,EAAE,EAAE,oBAD2F;AAE/FC,EAAAA,OAAO,EAAE,aAFsF;AAG/FC,EAAAA,SAAS,EAAE,WAHoF;AAI/FC,EAAAA,IAAI,EAAE,wBAJyF;AAK/FC,EAAAA,WAAW,EAAE,2BALkF;AAM3FC,EAAAA,MAAM,EAAE;AACA;AACA,8BAA0B;AACtBC,MAAAA,KAAK,EAAE,sBADe;AAEtBC,MAAAA,IAAI,EAAE,MAFgB;AAGtBC,MAAAA,IAAI,EAAE,wCAHgB;AAItBC,MAAAA,YAAY,EAAE,gBAJQ;AAKtBC,MAAAA,OAAO,EAAEC;AALa,KAF1B;;AASA;AACA,4BAAwB;AACpBL,MAAAA,KAAK,EAAE,+BADa;AAEpBC,MAAAA,IAAI,EAAE,MAFc;AAGpBC,MAAAA,IAAI,EAAE,kDAHc;AAIpBC,MAAAA,YAAY,EAAE,iBAJM;AAKpBC,MAAAA,OAAO,EAAEC;AALW,KAVxB;;AAiBA;AACA,gCAA4B;AACxBL,MAAAA,KAAK,EAAE,uBADiB;AAExBC,MAAAA,IAAI,EAAE,SAFkB;AAGxBC,MAAAA,IAAI,EAAE,sCAHkB;AAIxBE,MAAAA,OAAO,EAAEC;AAJe,KAlB5B;;AAwBA;AACA,mCAA+B;AAC3BL,MAAAA,KAAK,EAAE,4BADoB;AAE3BC,MAAAA,IAAI,EAAE,MAFqB;AAG3BE,MAAAA,YAAY,EAAE,qDAHa;AAI3BC,MAAAA,OAAO,EAAEC;AAJkB,KAzB/B;;AA+BA;AACA,wBAAoB;AAChBL,MAAAA,KAAK,EAAE,oBADS;AAEhBC,MAAAA,IAAI,EAAE,MAFU;AAGhBE,MAAAA,YAAY,EAAE,2BAHE;AAIhBC,MAAAA,OAAO,EAAEC;AAJO,KAhCpB;;AAsCA;AACA,
|
|
1
|
+
{"version":3,"sources":["../../../../../src/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.ts"],"names":["listenEventOptionsSchema","id","version","namespace","name","description","fields","label","type","hint","defaultValue","options","undefined","isPrivate","SchemaRegistry","getInstance","trackSchema"],"mappings":";;;;;;;AAAA;;AAKA,IAAMA,wBAAsF,GAAI;AAC/FC,EAAAA,EAAE,EAAE,oBAD2F;AAE/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ADE;AAETC,MAAAA,IAAI,EAAE,MAFG;AAGTG,MAAAA,OAAO,EAAEC;AAHA,KA7Cb;;AAkDA;AACA,8BAA0B;AACtBL,MAAAA,KAAK,EAAE,8BADe;AAEtBC,MAAAA,IAAI,EAAE,MAFgB;AAGtBC,MAAAA,IAAI,EAAE,oCAHgB;AAItBC,MAAAA,YAAY,EAAE,eAJQ;AAKtBC,MAAAA,OAAO,EAAEC;AALa,KAnD1B;;AA0DA;AACA,eAAW;AACPL,MAAAA,KAAK,EAAE,SADA;AAEPC,MAAAA,IAAI,EAAE,MAFC;AAGPK,MAAAA,SAAS,EAAE,IAHJ;AAIPJ,MAAAA,IAAI,EAAE,mEAJC;AAKPE,MAAAA,OAAO,EAAEC;AALF;AA3DX;AANmF,CAAhG;;AA2EAE,uBAAeC,WAAf,GAA6BC,WAA7B,CAAyChB,wBAAzC;;eAEeA,wB","sourcesContent":["import { SchemaRegistry } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '../../schemas.types'\n\n\n\nconst listenEventOptionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.ListenEventOptionsSchema = {\n\tid: 'listenEventOptions',\n\tversion: 'v2020_07_22',\n\tnamespace: 'SpruceCli',\n\tname: 'Listen to event action',\n\tdescription: 'Options for event.listen.',\n\t fields: {\n\t /** Contract destination. Where I will generate event contracts. */\n\t 'contractDestinationDir': {\n\t label: 'Contract destination',\n\t type: 'text',\n\t hint: 'Where I will generate event contracts.',\n\t defaultValue: \"#spruce/events\",\n\t options: undefined\n\t },\n\t /** Schema types lookup directory. Where I will lookup schema types and interfaces. */\n\t 'schemaTypesLookupDir': {\n\t label: 'Schema types lookup directory',\n\t type: 'text',\n\t hint: 'Where I will lookup schema types and interfaces.',\n\t defaultValue: \"#spruce/schemas\",\n\t options: undefined\n\t },\n\t /** Sync only core events. For use in @sprucelabs/mercury-types */\n\t 'shouldSyncOnlyCoreEvents': {\n\t label: 'Sync only core events',\n\t type: 'boolean',\n\t hint: 'For use in @sprucelabs/mercury-types',\n\t options: undefined\n\t },\n\t /** Event signature types file. */\n\t 'skillEventContractTypesFile': {\n\t label: 'Event signature types file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types/build/types/mercury.types\",\n\t options: undefined\n\t },\n\t /** Event builder file. */\n\t 'eventBuilderFile': {\n\t label: 'Event builder file',\n\t type: 'text',\n\t defaultValue: \"@sprucelabs/mercury-types\",\n\t options: undefined\n\t },\n\t /** Namespace. */\n\t 'namespace': {\n\t label: 'Namespace',\n\t type: 'text',\n\t options: undefined\n\t },\n\t /** Event name. */\n\t 'eventName': {\n\t label: 'Event name',\n\t type: 'text',\n\t options: undefined\n\t },\n\t /** Events destination directory. Where should I add your listeners? */\n\t 'listenerDestinationDir': {\n\t label: 'Events destination directory',\n\t type: 'text',\n\t hint: 'Where should I add your listeners?',\n\t defaultValue: \"src/listeners\",\n\t options: undefined\n\t },\n\t /** Version. Set a version yourself instead of letting me generate one for you */\n\t 'version': {\n\t label: 'Version',\n\t type: 'text',\n\t isPrivate: true,\n\t hint: 'Set a version yourself instead of letting me generate one for you',\n\t options: undefined\n\t },\n\t }\n}\n\nSchemaRegistry.getInstance().trackSchema(listenEventOptionsSchema)\n\nexport default listenEventOptionsSchema\n"],"file":"listenEventOptions.schema.js"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import AbstractSkillTest from '../../tests/AbstractSkillTest';
|
|
2
2
|
export default class ConfiguringDependenciesTest extends AbstractSkillTest {
|
|
3
3
|
protected static skillCacheKey: string;
|
|
4
|
+
private static parentSkill;
|
|
4
5
|
protected static hasAddDependencyAction(): Promise<void>;
|
|
5
|
-
protected static
|
|
6
|
-
protected static
|
|
7
|
-
protected static
|
|
6
|
+
protected static errorsWhenPassedBadNamespace(): Promise<void>;
|
|
7
|
+
protected static succeedsWhenPassedGoodNamespace(): Promise<void>;
|
|
8
|
+
protected static cantAddDependencyTwice(): Promise<void>;
|
|
9
|
+
protected static asksToSelectSkillWhenNoNamespacePassed(): Promise<void>;
|
|
10
|
+
protected static doesNotShowSkillsThatAreAlreadySetAsADependency(): Promise<void>;
|
|
8
11
|
protected static canAddSkillThatWasCreatedBySomeoneElse(): Promise<void>;
|
|
9
12
|
}
|
|
@@ -31,13 +31,15 @@ var _testUtils = require("@sprucelabs/test-utils");
|
|
|
31
31
|
|
|
32
32
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _uiAssert = _interopRequireDefault(require("../../tests/utilities/uiAssert.utility"));
|
|
35
|
+
|
|
36
|
+
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _class, _class2, _temp;
|
|
35
37
|
|
|
36
38
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
37
39
|
|
|
38
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
41
|
|
|
40
|
-
var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3 = (0, _test.test)(), _dec4 = (0, _test.test)(), _dec5 = (0, _test.test)(), (_class = (_temp = _class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
42
|
+
var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3 = (0, _test.test)(), _dec4 = (0, _test.test)(), _dec5 = (0, _test.test)(), _dec6 = (0, _test.test)(), _dec7 = (0, _test.test)(), (_class = (_temp = _class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
41
43
|
(0, _inherits2["default"])(ConfiguringDependenciesTest, _AbstractSkillTest);
|
|
42
44
|
|
|
43
45
|
var _super = _createSuper(ConfiguringDependenciesTest);
|
|
@@ -72,9 +74,9 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
72
74
|
return hasAddDependencyAction;
|
|
73
75
|
}()
|
|
74
76
|
}, {
|
|
75
|
-
key: "
|
|
77
|
+
key: "errorsWhenPassedBadNamespace",
|
|
76
78
|
value: function () {
|
|
77
|
-
var
|
|
79
|
+
var _errorsWhenPassedBadNamespace = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
78
80
|
var results;
|
|
79
81
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
80
82
|
while (1) {
|
|
@@ -106,17 +108,17 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
106
108
|
}, _callee2, this);
|
|
107
109
|
}));
|
|
108
110
|
|
|
109
|
-
function
|
|
110
|
-
return
|
|
111
|
+
function errorsWhenPassedBadNamespace() {
|
|
112
|
+
return _errorsWhenPassedBadNamespace.apply(this, arguments);
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
return
|
|
115
|
+
return errorsWhenPassedBadNamespace;
|
|
114
116
|
}()
|
|
115
117
|
}, {
|
|
116
|
-
key: "
|
|
118
|
+
key: "succeedsWhenPassedGoodNamespace",
|
|
117
119
|
value: function () {
|
|
118
|
-
var
|
|
119
|
-
var
|
|
120
|
+
var _succeedsWhenPassedGoodNamespace = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
121
|
+
var parentSkill, results, settings, dependencies;
|
|
120
122
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
121
123
|
while (1) {
|
|
122
124
|
switch (_context3.prev = _context3.next) {
|
|
@@ -127,10 +129,10 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
127
129
|
});
|
|
128
130
|
|
|
129
131
|
case 2:
|
|
130
|
-
|
|
132
|
+
parentSkill = _context3.sent;
|
|
131
133
|
_context3.next = 5;
|
|
132
134
|
return this.Action('dependency', 'add').execute({
|
|
133
|
-
namespace:
|
|
135
|
+
namespace: parentSkill.slug
|
|
134
136
|
});
|
|
135
137
|
|
|
136
138
|
case 5:
|
|
@@ -138,15 +140,16 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
138
140
|
|
|
139
141
|
_test.assert.isFalsy(results.errors);
|
|
140
142
|
|
|
143
|
+
this.parentSkill = parentSkill;
|
|
141
144
|
settings = this.Service('settings');
|
|
142
145
|
dependencies = settings.get('dependencies');
|
|
143
146
|
|
|
144
147
|
_test.assert.isEqualDeep(dependencies, [{
|
|
145
|
-
id:
|
|
146
|
-
namespace:
|
|
148
|
+
id: parentSkill.id,
|
|
149
|
+
namespace: parentSkill.slug
|
|
147
150
|
}]);
|
|
148
151
|
|
|
149
|
-
case
|
|
152
|
+
case 11:
|
|
150
153
|
case "end":
|
|
151
154
|
return _context3.stop();
|
|
152
155
|
}
|
|
@@ -154,49 +157,83 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
154
157
|
}, _callee3, this);
|
|
155
158
|
}));
|
|
156
159
|
|
|
157
|
-
function
|
|
158
|
-
return
|
|
160
|
+
function succeedsWhenPassedGoodNamespace() {
|
|
161
|
+
return _succeedsWhenPassedGoodNamespace.apply(this, arguments);
|
|
159
162
|
}
|
|
160
163
|
|
|
161
|
-
return
|
|
164
|
+
return succeedsWhenPassedGoodNamespace;
|
|
162
165
|
}()
|
|
163
166
|
}, {
|
|
164
|
-
key: "
|
|
167
|
+
key: "cantAddDependencyTwice",
|
|
165
168
|
value: function () {
|
|
166
|
-
var
|
|
167
|
-
var
|
|
169
|
+
var _cantAddDependencyTwice = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
170
|
+
var _this = this;
|
|
171
|
+
|
|
172
|
+
var err;
|
|
168
173
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
169
174
|
while (1) {
|
|
170
175
|
switch (_context4.prev = _context4.next) {
|
|
171
176
|
case 0:
|
|
172
|
-
|
|
177
|
+
err = _test.assert.doesThrow(function () {
|
|
178
|
+
return _this.Service('dependency').add({
|
|
179
|
+
id: _this.parentSkill.id,
|
|
180
|
+
namespace: _this.parentSkill.slug
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
|
|
184
|
+
_testUtils.errorAssertUtil.assertError(err, 'DEPENDENCY_EXISTS');
|
|
185
|
+
|
|
186
|
+
case 2:
|
|
187
|
+
case "end":
|
|
188
|
+
return _context4.stop();
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}, _callee4);
|
|
192
|
+
}));
|
|
193
|
+
|
|
194
|
+
function cantAddDependencyTwice() {
|
|
195
|
+
return _cantAddDependencyTwice.apply(this, arguments);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
return cantAddDependencyTwice;
|
|
199
|
+
}()
|
|
200
|
+
}, {
|
|
201
|
+
key: "asksToSelectSkillWhenNoNamespacePassed",
|
|
202
|
+
value: function () {
|
|
203
|
+
var _asksToSelectSkillWhenNoNamespacePassed = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
204
|
+
var otherSkill, promise, last, results, settings, dependencies;
|
|
205
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
206
|
+
while (1) {
|
|
207
|
+
switch (_context5.prev = _context5.next) {
|
|
208
|
+
case 0:
|
|
209
|
+
_context5.next = 2;
|
|
173
210
|
return this.getSkillFixture().seedDemoSkill({
|
|
174
211
|
name: 'dependent skill'
|
|
175
212
|
});
|
|
176
213
|
|
|
177
214
|
case 2:
|
|
178
|
-
otherSkill =
|
|
215
|
+
otherSkill = _context5.sent;
|
|
179
216
|
promise = this.Action('dependency', 'add').execute({});
|
|
180
|
-
|
|
217
|
+
_context5.next = 6;
|
|
181
218
|
return this.waitForInput();
|
|
182
219
|
|
|
183
220
|
case 6:
|
|
184
|
-
last = this.ui.
|
|
221
|
+
last = this.ui.getLastInvocation();
|
|
185
222
|
|
|
186
223
|
_test.assert.doesInclude(last.options.options.choices, {
|
|
187
224
|
value: otherSkill.slug,
|
|
188
225
|
label: otherSkill.name
|
|
189
226
|
});
|
|
190
227
|
|
|
191
|
-
|
|
228
|
+
_context5.next = 10;
|
|
192
229
|
return this.ui.sendInput(otherSkill.slug);
|
|
193
230
|
|
|
194
231
|
case 10:
|
|
195
|
-
|
|
232
|
+
_context5.next = 12;
|
|
196
233
|
return promise;
|
|
197
234
|
|
|
198
235
|
case 12:
|
|
199
|
-
results =
|
|
236
|
+
results = _context5.sent;
|
|
200
237
|
|
|
201
238
|
_test.assert.isFalsy(results.errors);
|
|
202
239
|
|
|
@@ -210,54 +247,89 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
210
247
|
|
|
211
248
|
case 17:
|
|
212
249
|
case "end":
|
|
213
|
-
return
|
|
250
|
+
return _context5.stop();
|
|
214
251
|
}
|
|
215
252
|
}
|
|
216
|
-
},
|
|
253
|
+
}, _callee5, this);
|
|
217
254
|
}));
|
|
218
255
|
|
|
219
|
-
function
|
|
220
|
-
return
|
|
256
|
+
function asksToSelectSkillWhenNoNamespacePassed() {
|
|
257
|
+
return _asksToSelectSkillWhenNoNamespacePassed.apply(this, arguments);
|
|
221
258
|
}
|
|
222
259
|
|
|
223
|
-
return
|
|
260
|
+
return asksToSelectSkillWhenNoNamespacePassed;
|
|
261
|
+
}()
|
|
262
|
+
}, {
|
|
263
|
+
key: "doesNotShowSkillsThatAreAlreadySetAsADependency",
|
|
264
|
+
value: function () {
|
|
265
|
+
var _doesNotShowSkillsThatAreAlreadySetAsADependency = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
266
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
267
|
+
while (1) {
|
|
268
|
+
switch (_context6.prev = _context6.next) {
|
|
269
|
+
case 0:
|
|
270
|
+
_context6.next = 2;
|
|
271
|
+
return this.getPersonFixture().loginAsDemoPerson();
|
|
272
|
+
|
|
273
|
+
case 2:
|
|
274
|
+
void this.Action('dependency', 'add').execute({});
|
|
275
|
+
_context6.next = 5;
|
|
276
|
+
return this.waitForInput();
|
|
277
|
+
|
|
278
|
+
case 5:
|
|
279
|
+
_uiAssert["default"].assertSelectDidNotRenderChoice(this.ui, this.parentSkill.slug, this.parentSkill.name);
|
|
280
|
+
|
|
281
|
+
this.ui.reset();
|
|
282
|
+
|
|
283
|
+
case 7:
|
|
284
|
+
case "end":
|
|
285
|
+
return _context6.stop();
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}, _callee6, this);
|
|
289
|
+
}));
|
|
290
|
+
|
|
291
|
+
function doesNotShowSkillsThatAreAlreadySetAsADependency() {
|
|
292
|
+
return _doesNotShowSkillsThatAreAlreadySetAsADependency.apply(this, arguments);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
return doesNotShowSkillsThatAreAlreadySetAsADependency;
|
|
224
296
|
}()
|
|
225
297
|
}, {
|
|
226
298
|
key: "canAddSkillThatWasCreatedBySomeoneElse",
|
|
227
299
|
value: function () {
|
|
228
|
-
var _canAddSkillThatWasCreatedBySomeoneElse = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
300
|
+
var _canAddSkillThatWasCreatedBySomeoneElse = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
229
301
|
var skill, results;
|
|
230
|
-
return _regenerator["default"].wrap(function
|
|
302
|
+
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
231
303
|
while (1) {
|
|
232
|
-
switch (
|
|
304
|
+
switch (_context7.prev = _context7.next) {
|
|
233
305
|
case 0:
|
|
234
|
-
|
|
306
|
+
_context7.next = 2;
|
|
235
307
|
return this.getSkillFixture().seedDemoSkill({
|
|
236
308
|
name: 'global dependency skill'
|
|
237
309
|
});
|
|
238
310
|
|
|
239
311
|
case 2:
|
|
240
|
-
skill =
|
|
241
|
-
|
|
312
|
+
skill = _context7.sent;
|
|
313
|
+
_context7.next = 5;
|
|
242
314
|
return this.getPersonFixture().loginAsDemoPerson(process.env.DEMO_NUMBER_GLOBAL_EVENTS);
|
|
243
315
|
|
|
244
316
|
case 5:
|
|
245
|
-
|
|
317
|
+
_context7.next = 7;
|
|
246
318
|
return this.Action('dependency', 'add').execute({
|
|
247
319
|
namespace: skill.slug
|
|
248
320
|
});
|
|
249
321
|
|
|
250
322
|
case 7:
|
|
251
|
-
results =
|
|
323
|
+
results = _context7.sent;
|
|
252
324
|
|
|
253
325
|
_test.assert.isFalsy(results.errors);
|
|
254
326
|
|
|
255
327
|
case 9:
|
|
256
328
|
case "end":
|
|
257
|
-
return
|
|
329
|
+
return _context7.stop();
|
|
258
330
|
}
|
|
259
331
|
}
|
|
260
|
-
},
|
|
332
|
+
}, _callee7, this);
|
|
261
333
|
}));
|
|
262
334
|
|
|
263
335
|
function canAddSkillThatWasCreatedBySomeoneElse() {
|
|
@@ -268,6 +340,6 @@ var ConfiguringDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
268
340
|
}()
|
|
269
341
|
}]);
|
|
270
342
|
return ConfiguringDependenciesTest;
|
|
271
|
-
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'skills'), _temp), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasAddDependencyAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasAddDependencyAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "
|
|
343
|
+
}(_AbstractSkillTest2["default"]), (0, _defineProperty2["default"])(_class2, "skillCacheKey", 'skills'), (0, _defineProperty2["default"])(_class2, "parentSkill", void 0), _temp), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasAddDependencyAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasAddDependencyAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "errorsWhenPassedBadNamespace", [_dec2], Object.getOwnPropertyDescriptor(_class, "errorsWhenPassedBadNamespace"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "succeedsWhenPassedGoodNamespace", [_dec3], Object.getOwnPropertyDescriptor(_class, "succeedsWhenPassedGoodNamespace"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "cantAddDependencyTwice", [_dec4], Object.getOwnPropertyDescriptor(_class, "cantAddDependencyTwice"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "asksToSelectSkillWhenNoNamespacePassed", [_dec5], Object.getOwnPropertyDescriptor(_class, "asksToSelectSkillWhenNoNamespacePassed"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "doesNotShowSkillsThatAreAlreadySetAsADependency", [_dec6], Object.getOwnPropertyDescriptor(_class, "doesNotShowSkillsThatAreAlreadySetAsADependency"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canAddSkillThatWasCreatedBySomeoneElse", [_dec7], Object.getOwnPropertyDescriptor(_class, "canAddSkillThatWasCreatedBySomeoneElse"), _class)), _class));
|
|
272
344
|
exports["default"] = ConfiguringDependenciesTest;
|
|
273
345
|
//# sourceMappingURL=AddingADependency.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/__tests__/behavioral/AddingADependency.test.ts"],"names":["ConfiguringDependenciesTest","assert","isFunction","Action","execute","getSkillFixture","registerCurrentSkill","name","namespace","results","isTruthy","errors","errorAssertUtil","assertError","seedDemoSkill","
|
|
1
|
+
{"version":3,"sources":["../../../src/__tests__/behavioral/AddingADependency.test.ts"],"names":["ConfiguringDependenciesTest","assert","isFunction","Action","execute","getSkillFixture","registerCurrentSkill","name","namespace","results","isTruthy","errors","errorAssertUtil","assertError","seedDemoSkill","parentSkill","slug","isFalsy","settings","Service","dependencies","get","isEqualDeep","id","err","doesThrow","add","otherSkill","promise","waitForInput","last","ui","getLastInvocation","doesInclude","options","choices","value","label","sendInput","getPersonFixture","loginAsDemoPerson","uiAssertUtil","assertSelectDidNotRenderChoice","reset","skill","process","env","DEMO_NUMBER_GLOBAL_EVENTS","AbstractSkillTest"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,2B,WAQnB,iB,UAKA,iB,UAeA,iB,UAyBA,iB,UAYA,iB,UA+BA,iB,UAiBA,iB;;;;;;;;;;;;;kHAzGD;AAAA;AAAA;AAAA;AAAA;AAECC,6BAAOC,UAAP,CAAkB,KAAKC,MAAL,CAAY,YAAZ,EAA0B,KAA1B,EAAiCC,OAAnD;;AAFD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;wHAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAEO,KAAKC,eAAL,GAAuBC,oBAAvB,CAA4C;AACjDC,kBAAAA,IAAI,EAAE;AAD2C,iBAA5C,CAFP;;AAAA;AAAA;AAAA,uBAMuB,KAAKJ,MAAL,CAAY,YAAZ,EAA0B,KAA1B,EAAiCC,OAAjC,CAAyC;AAC9DI,kBAAAA,SAAS,EAAE;AADmD,iBAAzC,CANvB;;AAAA;AAMOC,gBAAAA,OANP;;AAUCR,6BAAOS,QAAP,CAAgBD,OAAO,CAACE,MAAxB;;AAEAC,2CAAgBC,WAAhB,CAA4BJ,OAAO,CAACE,MAAR,CAAe,CAAf,CAA5B,EAA+C,iBAA/C;;AAZD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;2HAeA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAE2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,EAA0B,KAA1B,EAAiCC,OAAjC,CAAyC,EAAzC,CAAL;AAJD;AAAA,uBAMO,KAAKyB,YAAL,EANP;;AAAA;AAQCY,qCAAaC,8BAAb,CACC,KAAKX,EADN,EAEC,KAAKhB,WAAL,CAAiBC,IAFlB,EAGC,KAAKD,WAAL,CAAiBR,IAHlB;;AAMA,qBAAKwB,EAAL,CAAQY,KAAR;;AAdD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;kIAiBA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAEqB,KAAKtC,eAAL,GAAuBS,aAAvB,CAAqC;AACxDP,kBAAAA,IAAI,EAAE;AADkD,iBAArC,CAFrB;;AAAA;AAEOqC,gBAAAA,KAFP;AAAA;AAAA,uBAMO,KAAKL,gBAAL,GAAwBC,iBAAxB,CACLK,OAAO,CAACC,GAAR,CAAYC,yBADP,CANP;;AAAA;AAAA;AAAA,uBAUuB,KAAK5C,MAAL,CAAY,YAAZ,EAA0B,KAA1B,EAAiCC,OAAjC,CAAyC;AAC9DI,kBAAAA,SAAS,EAAEoC,KAAK,CAAC5B;AAD6C,iBAAzC,CAVvB;;AAAA;AAUOP,gBAAAA,OAVP;;AAcCR,6BAAOgB,OAAP,CAAeR,OAAO,CAACE,MAAvB;;AAdD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;EAjHwDqC,8B,8DACvB,Q","sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport { errorAssertUtil } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport uiAssertUtil from '../../tests/utilities/uiAssert.utility'\n\nexport default class ConfiguringDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static parentSkill: {\n\t\tid: string\n\t\tslug: string\n\t\tname: string\n\t}\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'add').execute)\n\t}\n\n\t@test()\n\tprotected static async errorsWhenPassedBadNamespace() {\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in adding deps',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: 'waka-waka',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssertUtil.assertError(results.errors[0], 'SKILL_NOT_FOUND')\n\t}\n\n\t@test()\n\tprotected static async succeedsWhenPassedGoodNamespace() {\n\t\tconst parentSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: parentSkill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tthis.parentSkill = parentSkill\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: parentSkill.id,\n\t\t\t\tnamespace: parentSkill.slug,\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async cantAddDependencyTwice() {\n\t\tconst err = assert.doesThrow(() =>\n\t\t\tthis.Service('dependency').add({\n\t\t\t\tid: this.parentSkill.id,\n\t\t\t\tnamespace: this.parentSkill.slug,\n\t\t\t})\n\t\t)\n\n\t\terrorAssertUtil.assertError(err, 'DEPENDENCY_EXISTS')\n\t}\n\n\t@test()\n\tprotected static async asksToSelectSkillWhenNoNamespacePassed() {\n\t\tconst otherSkill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependent skill',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: otherSkill.slug,\n\t\t\tlabel: otherSkill.name,\n\t\t})\n\n\t\tawait this.ui.sendInput(otherSkill.slug)\n\n\t\tconst results = await promise\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst settings = this.Service('settings')\n\t\tconst dependencies = settings.get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies[1], {\n\t\t\tid: otherSkill.id,\n\t\t\tnamespace: otherSkill.slug,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async doesNotShowSkillsThatAreAlreadySetAsADependency() {\n\t\tawait this.getPersonFixture().loginAsDemoPerson()\n\n\t\tvoid this.Action('dependency', 'add').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tuiAssertUtil.assertSelectDidNotRenderChoice(\n\t\t\tthis.ui,\n\t\t\tthis.parentSkill.slug,\n\t\t\tthis.parentSkill.name\n\t\t)\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canAddSkillThatWasCreatedBySomeoneElse() {\n\t\tconst skill = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'global dependency skill',\n\t\t})\n\n\t\tawait this.getPersonFixture().loginAsDemoPerson(\n\t\t\tprocess.env.DEMO_NUMBER_GLOBAL_EVENTS\n\t\t)\n\n\t\tconst results = await this.Action('dependency', 'add').execute({\n\t\t\tnamespace: skill.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t}\n}\n"],"file":"AddingADependency.test.js"}
|
|
@@ -313,7 +313,7 @@ var InstallingASkillAtAnOrgTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
313
313
|
return this.waitForInput();
|
|
314
314
|
|
|
315
315
|
case 11:
|
|
316
|
-
_test.assert.doesInclude(this.ui.
|
|
316
|
+
_test.assert.doesInclude(this.ui.getLastInvocation().command, 'confirm', "ui didn't get back a confirm, got back \n\n".concat(_test.assertUtil.stringify(this.ui.getLastInvocation())));
|
|
317
317
|
|
|
318
318
|
_context7.next = 14;
|
|
319
319
|
return this.ui.sendInput('');
|
|
@@ -387,7 +387,7 @@ var InstallingASkillAtAnOrgTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
387
387
|
return this.waitForInput();
|
|
388
388
|
|
|
389
389
|
case 13:
|
|
390
|
-
_test.assert.doesInclude(this.ui.
|
|
390
|
+
_test.assert.doesInclude(this.ui.getLastInvocation().options, {
|
|
391
391
|
type: 'select'
|
|
392
392
|
});
|
|
393
393
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts"],"names":["InstallingASkillAtAnOrgTest","login","getOrganizationFixture","clearAllOrgs","getPersonFixture","loginAsDemoPerson","process","env","DEMO_NUMBER_INSTALL_SKILL","Cli","assert","isFunction","Action","execute","seedDemoOrg","name","org","FeatureFixture","installCachedFeatures","getSkillFixture","registerCurrentSkill","logout","organizationId","id","anonResults","isTruthy","errors","eventAssertUtil","assertError","errorAssertUtil","skill","promise","waitForInput","doesInclude","ui","
|
|
1
|
+
{"version":3,"sources":["../../../src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts"],"names":["InstallingASkillAtAnOrgTest","login","getOrganizationFixture","clearAllOrgs","getPersonFixture","loginAsDemoPerson","process","env","DEMO_NUMBER_INSTALL_SKILL","Cli","assert","isFunction","Action","execute","seedDemoOrg","name","org","FeatureFixture","installCachedFeatures","getSkillFixture","registerCurrentSkill","logout","organizationId","id","anonResults","isTruthy","errors","eventAssertUtil","assertError","errorAssertUtil","skill","promise","waitForInput","doesInclude","ui","getLastInvocation","command","assertUtil","stringify","sendInput","results","isFalsy","Store","isSkillInstalledAtOrg","isInstalled","org2","options","type","AbstractCliTest"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,2B,WAanB,iB,UAMA,iB,UAwBA,iB,UAcA,iB,UAcA,iB,UAsCA,iB;;;;;;;;;;;;;sGA5GD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA,uBAEO,KAAKC,KAAL,EAFP;;AAAA;AAAA;AAAA,uB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spruce-event-utils'\nimport { test, assert, assertUtil } from '@sprucelabs/test'\nimport { errorAssertUtil } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class InstallingASkillAtAnOrgTest extends AbstractCliTest {\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tawait this.login()\n\t\tawait this.getOrganizationFixture().clearAllOrgs()\n\t}\n\n\tprivate static async login() {\n\t\tawait this.getPersonFixture().loginAsDemoPerson(\n\t\t\tprocess.env.DEMO_NUMBER_INSTALL_SKILL\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async hasInstallAction() {\n\t\tawait this.Cli()\n\t\tassert.isFunction(this.Action('organization', 'install').execute)\n\t}\n\n\t@test()\n\tprotected static async cantInstallWithoutBeingLoggedIn() {\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'new org',\n\t\t})\n\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'my amazing skill',\n\t\t})\n\n\t\tawait this.getPersonFixture().logout()\n\n\t\tawait this.Cli()\n\n\t\tconst anonResults = await this.Action('organization', 'install').execute({\n\t\t\torganizationId: org.id,\n\t\t})\n\n\t\tassert.isTruthy(anonResults.errors)\n\t\teventAssertUtil.assertError(anonResults.errors[0], 'UNAUTHORIZED_ACCESS')\n\t}\n\n\t@test()\n\tprotected static async cantInstallWithoutAnyOrgs() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'my amazing skill',\n\t\t})\n\n\t\tconst anonResults = await this.Action('organization', 'install').execute({})\n\n\t\tassert.isTruthy(anonResults.errors)\n\t\terrorAssertUtil.assertError(anonResults.errors[0], 'NO_ORGANIZATIONS_FOUND')\n\t}\n\n\t@test()\n\tprotected static async cantInstallWithoutBeingRegistered() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tawait this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'My great org',\n\t\t})\n\n\t\tconst anonResults = await this.Action('organization', 'install').execute({})\n\n\t\tassert.isTruthy(anonResults.errors)\n\t\terrorAssertUtil.assertError(anonResults.errors[0], 'SKILL_NOT_REGISTERED')\n\t}\n\n\t@test()\n\tprotected static async canInstallSkillAtOrg() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'My great org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'my amazing skill',\n\t\t})\n\n\t\tconst promise = this.Action('organization', 'install').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tassert.doesInclude(\n\t\t\tthis.ui.getLastInvocation().command,\n\t\t\t'confirm',\n\t\t\t`ui didn't get back a confirm, got back \\n\\n${assertUtil.stringify(\n\t\t\t\tthis.ui.getLastInvocation()\n\t\t\t)}`\n\t\t)\n\n\t\tawait this.ui.sendInput('')\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\n\t\tassert.isTruthy(isInstalled)\n\t}\n\n\t@test()\n\tprotected static async asksYouToSelectOrgWithMoreThanOne() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tawait this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'My great org',\n\t\t})\n\n\t\tconst org2 = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'My great org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'my amazing skill',\n\t\t})\n\n\t\tconst promise = this.Action('organization', 'install').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tassert.doesInclude(this.ui.getLastInvocation().options, {\n\t\t\ttype: 'select',\n\t\t})\n\n\t\tawait this.ui.sendInput(org2.id)\n\n\t\tconst results = await promise\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg2.id\n\t\t)\n\n\t\tassert.isTruthy(isInstalled)\n\t}\n}\n"],"file":"InstallingASkillAtAnOrg.test.js"}
|
|
@@ -125,7 +125,7 @@ var LoggingInAsASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
125
125
|
return this.waitForInput();
|
|
126
126
|
|
|
127
127
|
case 3:
|
|
128
|
-
_test.assert.doesInclude(this.ui.
|
|
128
|
+
_test.assert.doesInclude(this.ui.getLastInvocation().options.label, 'Phone');
|
|
129
129
|
|
|
130
130
|
this.ui.reset();
|
|
131
131
|
|
|
@@ -283,11 +283,11 @@ var LoggingInAsASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
283
283
|
return this.waitForInput();
|
|
284
284
|
|
|
285
285
|
case 8:
|
|
286
|
-
_test.assert.doesInclude(this.ui.
|
|
286
|
+
_test.assert.doesInclude(this.ui.getLastInvocation().command, 'prompt');
|
|
287
287
|
|
|
288
|
-
_test.assert.doesInclude(this.ui.
|
|
288
|
+
_test.assert.doesInclude(this.ui.getLastInvocation().options.type, 'select');
|
|
289
289
|
|
|
290
|
-
_test.assert.isEqualDeep(this.ui.
|
|
290
|
+
_test.assert.isEqualDeep(this.ui.getLastInvocation().options.options.choices, [this.skill1, this.skill2].map(function (s) {
|
|
291
291
|
return {
|
|
292
292
|
label: s.name,
|
|
293
293
|
value: s.id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/__tests__/behavioral/LoggingInAsASkill.test.ts"],"names":["LoggingInAsASkillTest","getPersonFixture","loginAsDemoPerson","process","env","DEMO_NUMBER_LOGIN_AS_SKILL","skillFixture","getSkillFixture","clearAllSkills","logout","assert","isFunction","Action","execute","waitForInput","doesInclude","ui","
|
|
1
|
+
{"version":3,"sources":["../../../src/__tests__/behavioral/LoggingInAsASkill.test.ts"],"names":["LoggingInAsASkillTest","getPersonFixture","loginAsDemoPerson","process","env","DEMO_NUMBER_LOGIN_AS_SKILL","skillFixture","getSkillFixture","clearAllSkills","logout","assert","isFunction","Action","execute","waitForInput","doesInclude","ui","getLastInvocation","options","label","reset","login","results","isTruthy","errors","isLength","errorAssertUtil","assertError","person","Service","setLoggedInPerson","seedDemoSkill","name","Date","getTime","skill1","isFalsy","loggedIn","getCurrentSkill","isEqual","id","skill2","promise","command","type","isEqualDeep","choices","map","s","value","sendInput","skillSlug","skill3","slug","AbstractSkillTest"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAGqBA,qB,WAmBnB,iB,UAKA,iB,UAWA,iB,UAmBA,iB,UAgBA,iB,UA8BA,iB,UAYA,iB;;;;;;;;;;;;;qGA1GD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA,uBAGO,KAAKC,gBAAL,GAAwBC,iBAAxB,CACLC,OAAO,CAACC,GAAR,CAAYC,0BADP,CAHP;;AAAA;AAOOC,gBAAAA,YAPP,GAOsB,KAAKC,eAAL,EAPtB;AAAA;AAAA,uBAQOD,YAAY,CAACE,cAAb,EARP;;AAAA;AAAA;AAAA,uBAUO,KAAKP,gBAAL,GAAwBQ,MAAxB,EAVP;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;0GAaA;AAAA;AAAA;AAAA;AAAA;AAECC,6BAAOC,UAAP,CAAkB,KAAKC,MAAL,CAAY,OAAZ,EAAqB,OAArB,EAA8BC,OAAhD;;AAFD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;oHAKA;AAAA;AAAA;AAAA;AAAA;AAEC,qBAAK,KAAKD,MAAL,CAAY,OAAZ,EAAqB,OAArB,EAA8BC,OAA9B,CA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qBAAKkB,MAJN;AAAA;AAAA,uBAQuB,KAAKxC,MAAL,CAAY,OAAZ,EAAqB,OAArB,EAA8BC,OAA9B,CAAsC;AAC3DsC,kBAAAA,SAAS,EAAE,KAAKC,MAAL,CAAYC;AADoC,iBAAtC,CARvB;;AAAA;AAQO/B,gBAAAA,OARP;;AAYCZ,6BAAO0B,OAAP,CAAed,OAAO,CAACE,MAAvB;;AAEMa,gBAAAA,QAdP,GAckB,KAAKR,OAAL,CAAa,MAAb,EAAqBS,eAArB,EAdlB;;AAeC5B,6BAAO6B,OAAP,CAAeF,QAAf,aAAeA,QAAf,uBAAeA,QAAQ,CAAEG,EAAzB,EAA6B,KAAKY,MAAL,CAAYZ,EAAzC;;AAfD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;EAhHkDc,8B,8DACjB,Q","sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport { errorAssertUtil } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { RegisteredSkill } from '../../types/cli.types'\n\nexport default class LoggingInAsASkillTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static skill1: RegisteredSkill\n\tprivate static skill2: RegisteredSkill\n\tprivate static skill3: RegisteredSkill\n\n\tprotected static async beforeAll() {\n\t\tawait super.beforeAll()\n\n\t\tawait this.getPersonFixture().loginAsDemoPerson(\n\t\t\tprocess.env.DEMO_NUMBER_LOGIN_AS_SKILL\n\t\t)\n\n\t\tconst skillFixture = this.getSkillFixture()\n\t\tawait skillFixture.clearAllSkills()\n\n\t\tawait this.getPersonFixture().logout()\n\t}\n\n\t@test()\n\tprotected static async hasLoginAction() {\n\t\tassert.isFunction(this.Action('skill', 'login').execute)\n\t}\n\n\t@test()\n\tprotected static async asksToLoginIfNotLoggedIn() {\n\t\tvoid this.Action('skill', 'login').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tassert.doesInclude(this.ui.getLastInvocation().options.label, 'Phone')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async returnsErrorIfNoSkillHasEverBeenRegistered() {\n\t\tawait this.login()\n\n\t\tconst results = await this.Action('skill', 'login').execute({})\n\n\t\tassert.isTruthy(results.errors)\n\t\tassert.isLength(results.errors, 1)\n\t\terrorAssertUtil.assertError(results.errors[0], 'NO_SKILLS_REGISTERED')\n\t}\n\n\tprivate static async login() {\n\t\tconst person = await this.getPersonFixture().loginAsDemoPerson(\n\t\t\tprocess.env.DEMO_NUMBER_LOGIN_AS_SKILL\n\t\t)\n\n\t\tthis.Service('auth').setLoggedInPerson(person)\n\t}\n\n\t@test()\n\tprotected static async logsInAsOnlySkillIfOnly1Registered() {\n\t\tawait this.login()\n\n\t\tthis.skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: `login skill ${new Date().getTime()}`,\n\t\t})\n\n\t\tconst results = await this.Action('skill', 'login').execute({})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst loggedIn = this.Service('auth').getCurrentSkill()\n\t\tassert.isEqual(loggedIn?.id, this.skill1.id)\n\t}\n\n\t@test()\n\tprotected static async letsYouSelectSkillIfMoreThan1IsRegistered() {\n\t\tawait this.login()\n\n\t\tthis.skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: `login skill 2 ${new Date().getTime()}`,\n\t\t})\n\n\t\tconst promise = this.Action('skill', 'login').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tassert.doesInclude(this.ui.getLastInvocation().command, 'prompt')\n\t\tassert.doesInclude(this.ui.getLastInvocation().options.type, 'select')\n\t\tassert.isEqualDeep(\n\t\t\tthis.ui.getLastInvocation().options.options.choices,\n\t\t\t[this.skill1, this.skill2].map((s) => ({\n\t\t\t\tlabel: s.name,\n\t\t\t\tvalue: s.id,\n\t\t\t}))\n\t\t)\n\n\t\tawait this.ui.sendInput(this.skill2.id)\n\n\t\tawait promise\n\n\t\tconst loggedIn = this.Service('auth').getCurrentSkill()\n\t\tassert.isEqual(loggedIn?.id, this.skill2.id)\n\t}\n\n\t@test()\n\tprotected static async cantLoginWithSlugYouDontOwn() {\n\t\tawait this.login()\n\t\tconst results = await this.Action('skill', 'login').execute({\n\t\t\tskillSlug: 'never found',\n\t\t})\n\n\t\tassert.isTruthy(results.errors)\n\n\t\terrorAssertUtil.assertError(results.errors[0], 'SKILL_NOT_FOUND')\n\t}\n\n\t@test()\n\tprotected static async canLoginWithSlugYouOwn() {\n\t\tawait this.login()\n\n\t\tthis.skill3 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: `login skill 3 ${new Date().getTime()}`,\n\t\t})\n\n\t\tconst results = await this.Action('skill', 'login').execute({\n\t\t\tskillSlug: this.skill3.slug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst loggedIn = this.Service('auth').getCurrentSkill()\n\t\tassert.isEqual(loggedIn?.id, this.skill3.id)\n\t}\n}\n"],"file":"LoggingInAsASkill.test.js"}
|
|
@@ -97,7 +97,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
97
97
|
return this.waitForInput();
|
|
98
98
|
|
|
99
99
|
case 9:
|
|
100
|
-
last = this.ui.
|
|
100
|
+
last = this.ui.getLastInvocation();
|
|
101
101
|
|
|
102
102
|
_test.assert.isEqual(last.options.type, 'select');
|
|
103
103
|
|
|
@@ -150,7 +150,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
150
150
|
return this.waitForInput();
|
|
151
151
|
|
|
152
152
|
case 7:
|
|
153
|
-
last = this.ui.
|
|
153
|
+
last = this.ui.getLastInvocation();
|
|
154
154
|
|
|
155
155
|
_test.assert.isEqualDeep(last.options.value, [skill1.id]);
|
|
156
156
|
|
|
@@ -250,7 +250,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
250
250
|
return this.waitForInput();
|
|
251
251
|
|
|
252
252
|
case 6:
|
|
253
|
-
last = this.ui.
|
|
253
|
+
last = this.ui.getLastInvocation();
|
|
254
254
|
|
|
255
255
|
_test.assert.doesNotInclude(last.options.options.choices, {
|
|
256
256
|
value: skill.id
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/__tests__/behavioral/ManagingDependencies.test.ts"],"names":["ManagingDependenciesTest","assert","isFunction","Action","execute","getSkillFixture","seedDemoSkill","name","skill1","skill2","waitForInput","last","ui","
|
|
1
|
+
{"version":3,"sources":["../../../src/__tests__/behavioral/ManagingDependencies.test.ts"],"names":["ManagingDependenciesTest","assert","isFunction","Action","execute","getSkillFixture","seedDemoSkill","name","skill1","skill2","waitForInput","last","ui","getLastInvocation","isEqual","options","type","doesInclude","choices","value","id","reset","Service","set","namespace","slug","isEqualDeep","promise","sendInput","dependencies","get","registerCurrentSkill","skill","doesNotInclude","AbstractSkillTest"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,wB,WAGnB,iB,UAKA,iB,UA6BA,iB,UAwBA,iB,UAgCA,iB;;;;;;;;;;;;;kHA1FD;AAAA;AAAA;AAAA;AAAA;AAECC,6BAAOC,UAAP,CAAkB,KAAKC,MAAL,CAAY,YAAZ,EAA0B,QAA1B,EAAoCC,OAAtD;;AAFD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;;mHAKA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,uBAEsB,KAAKC,eAAL,GAAuBC,aAAvB,CAAqC;AACzDC,kBAAAA,IAAI,EAAE;AADmD,iBAArC,CAFtB;;AAAA;AAEOC,gBAAAA,MAFP;AAAA;AAAA,uBAMsB,KAAKH,eAAL,GAAuBC,aAAvB,CAAqC;AACzDC,kBAAAA,IAAI,EAAE;AADmD,iBAArC,CANtB;;AAAA;AAMOE,gBAAAA,MANP;AAUC,qBAAK,KAAKN,MAAL,CAAY,YAAZ,EAA0B,QAA1B,EAAoC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AuB0B,oBAAvB,CAA4C;AAC/DxB,kBAAAA,IAAI,EAAE;AADyD,iBAA5C,CAFrB;;AAAA;AAEOyB,gBAAAA,KAFP;AAMC,qBAAK,KAAK7B,MAAL,CAAY,YAAZ,EAA0B,QAA1B,EAAoCC,OAApC,CAA4C,EAA5C,CAAL;AAND;AAAA,uBAQO,KAAKM,YAAL,EARP;;AAAA;AAUOC,gBAAAA,IAVP,GAUc,KAAKC,EAAL,CAAQC,iBAAR,EAVd;;AAYCZ,6BAAOgC,cAAP,CAAsBtB,IAAI,CAACI,OAAL,CAAaA,OAAb,CAAqBG,OAA3C,EAAoD;AACnDC,kBAAAA,KAAK,EAAEa,KAAK,CAACZ;AADsC,iBAApD;;AAIA,qBAAKR,EAAL,CAAQS,KAAR;;AAhBD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,O;;;;;;;;;;EA7FqDa,8B,8DACpB,Q","sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class ManagingDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'manage').execute)\n\t}\n\n\t@test()\n\tprotected static async showsSkillsAsCheckboxes() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 1',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 2',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.options.type, 'select')\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill1.id,\n\t\t})\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill2.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async selectsExistingDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 3',\n\t\t})\n\n\t\tthis.Service('dependency').set([\n\t\t\t{\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t\tid: skill1.id,\n\t\t\t},\n\t\t])\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqualDeep(last.options.value, [skill1.id])\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canSelectANewDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 4',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 5',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tawait this.ui.sendInput([skill1.id, skill2.id])\n\n\t\tconst dependencies = this.Service('settings').get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: skill1.id,\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: skill2.id,\n\t\t\t\tnamespace: skill2.slug,\n\t\t\t},\n\t\t])\n\n\t\tawait promise\n\t}\n\n\t@test()\n\tprotected static async doesNotShowCurrentSkill() {\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in managing deps',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesNotInclude(last.options.options.choices, {\n\t\t\tvalue: skill.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n}\n"],"file":"ManagingDependencies.test.js"}
|