@sprucelabs/spruce-cli 17.1.52 → 17.1.54
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 +8 -0
- package/build/.spruce/errors/spruceCli/actionCancelled.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/actionCancelled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/bootError.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/bootError.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/buildFailed.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/buildFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/cacheNotEnabled.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/cacheNotEnabled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandAborted.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/commandAborted.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandBlocked.schema.js +0 -5
- package/build/.spruce/errors/spruceCli/commandBlocked.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandNotImplemented.schema.js +0 -5
- package/build/.spruce/errors/spruceCli/commandNotImplemented.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/createAutoloaderFailed.schema.js +0 -7
- package/build/.spruce/errors/spruceCli/createAutoloaderFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/deployFailed.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/deployFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/directoryEmpty.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/directoryEmpty.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/directoryNotSkill.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/directoryNotSkill.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/dockerNotStarted.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/dockerNotStarted.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/executingCommandFailed.schema.js +0 -8
- package/build/.spruce/errors/spruceCli/executingCommandFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/failedToImport.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/failedToImport.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/featureNotInstalled.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/featureNotInstalled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/fileExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/fileExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/generic.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/generic.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidCommand.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/invalidCommand.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidEventContract.schema.js +0 -5
- package/build/.spruce/errors/spruceCli/invalidEventContract.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidFeatureCode.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/invalidFeatureCode.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidTestDirectory.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/invalidTestDirectory.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/lintFailed.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/lintFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/mercuryResponseError.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/mercuryResponseError.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/missingDependencies.schema.js +0 -6
- package/build/.spruce/errors/spruceCli/missingDependencies.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/missingDependenciesDependency.schema.js +0 -5
- package/build/.spruce/errors/spruceCli/missingDependenciesDependency.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/noOrganizationsFound.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/noOrganizationsFound.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/noSkillsRegistered.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/noSkillsRegistered.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/notImplemented.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/notImplemented.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/notLoggedIn.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/notLoggedIn.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaExists.schema.js +0 -5
- package/build/.spruce/errors/spruceCli/schemaExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaFailedToImport.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/schemaFailedToImport.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaTemplateItemBuildingFailed.schema.js +0 -7
- package/build/.spruce/errors/spruceCli/schemaTemplateItemBuildingFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillNotFound.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/skillNotFound.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillNotRegistered.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/skillNotRegistered.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillViewExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/skillViewExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/storeExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/storeExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/testFailed.schema.js +0 -6
- package/build/.spruce/errors/spruceCli/testFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/themeExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/themeExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/transportAlreadyExists.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/transportAlreadyExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/vscodeNotInstalled.schema.js +0 -4
- package/build/.spruce/errors/spruceCli/vscodeNotInstalled.schema.js.map +1 -1
- package/build/.spruce/events/events.contract.js +0 -10
- package/build/.spruce/events/events.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js +0 -4
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js +0 -5
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js +0 -5
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.js +0 -4
- package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js +0 -5
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/schemas/fields/fieldClassMap.js +0 -2
- package/build/.spruce/schemas/fields/fieldClassMap.js.map +1 -1
- package/build/.spruce/schemas/fields/fields.types.js +0 -1
- package/build/.spruce/schemas/fields/fields.types.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitPayload.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTarget.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTargetAndPayload.schema.js +0 -10
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitPayload.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTarget.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTargetAndPayload.schema.js +0 -10
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlResponsePayload.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTarget.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTargetAndPayload.schema.js +0 -8
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeResponsePayload.schema.js +0 -6
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsEmitTargetAndPayload.schema.js +0 -8
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsResponsePayload.schema.js +0 -9
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getViewControllersEmitTarget.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/getViewControllersEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js +0 -6
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js +0 -6
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerDashboardCardsResponsePayload.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerDashboardCardsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitPayload.schema.js +0 -8
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitTargetAndPayload.schema.js +0 -8
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsResponsePayload.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/theme.schema.js +0 -8
- package/build/.spruce/schemas/heartwood/v2021_02_11/theme.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitPayload.schema.js +0 -6
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTarget.schema.js +0 -4
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTargetAndPayload.schema.js +0 -10
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeResponsePayload.schema.js +0 -6
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/theme.schema.js +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/theme.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js +0 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js.map +1 -1
- package/build/.spruce/schemas/schemas.types.js +0 -2
- package/build/.spruce/schemas/schemas.types.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js +0 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js +0 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js +0 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js +0 -27
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js +0 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js +0 -29
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js +0 -8
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js +0 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js +0 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js +0 -4
- package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js +0 -12
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js +0 -14
- package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js +0 -6
- package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js +0 -4
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js +0 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js +0 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js +0 -4
- package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js +0 -5
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js +0 -4
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js +0 -6
- package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js +0 -22
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js +0 -8
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js +0 -6
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js +0 -21
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js +0 -9
- package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js +0 -4
- package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js +0 -7
- package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.js +0 -1
- package/build/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.js.map +1 -1
- package/build/.spruce/skill.types.js +0 -3
- package/build/.spruce/skill.types.js.map +1 -1
- package/build/GlobalEmitter.js +0 -22
- package/build/GlobalEmitter.js.map +1 -1
- package/build/InFlightEntertainment.js +0 -13
- package/build/InFlightEntertainment.js.map +1 -1
- package/build/__tests__/behavioral/AddingADependency.test.js +0 -69
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +0 -34
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +0 -23
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +0 -41
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +6 -48
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js +0 -34
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +0 -215
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +4 -141
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +0 -78
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +0 -33
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +0 -89
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js +0 -31
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js +0 -84
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +0 -55
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +0 -32
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RebuildingASkill.test.js +0 -36
- package/build/__tests__/behavioral/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +0 -33
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js +0 -47
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js +0 -68
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js +0 -58
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +0 -42
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +3 -64
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +0 -49
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js +0 -49
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js +6 -142
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +0 -40
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js +0 -54
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js +0 -35
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +0 -77
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingDataStores.test.js +0 -51
- package/build/__tests__/behavioral/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/WatchingSkillViews.test.js +1 -120
- package/build/__tests__/behavioral/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +0 -58
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +0 -52
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +16 -97
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +0 -32
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +0 -95
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +2 -160
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +0 -135
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +7 -154
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +1 -154
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +0 -39
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +0 -41
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +0 -25
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +0 -43
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +0 -38
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +0 -55
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +0 -38
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +0 -31
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +0 -79
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +0 -37
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +0 -59
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +2 -107
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +0 -37
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +0 -43
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +5 -70
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +0 -32
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +14 -215
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +0 -40
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +0 -30
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +0 -26
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +0 -54
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +0 -35
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +0 -61
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +0 -89
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +22 -116
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +0 -64
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +6 -115
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +0 -43
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +2 -138
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +2 -31
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +0 -48
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +0 -65
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +0 -53
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +0 -117
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +5 -101
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +2 -117
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +0 -67
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +0 -65
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +5 -37
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +0 -62
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +1 -111
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +0 -55
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +0 -47
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +0 -30
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +0 -59
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +0 -121
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +0 -57
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +0 -112
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +0 -40
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +2 -38
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +0 -28
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +0 -31
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +0 -86
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +0 -59
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommandOptionBuilder.test.js +0 -29
- package/build/__tests__/implementation/CommandOptionBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +0 -60
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +0 -78
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +2 -34
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +0 -43
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +0 -155
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +80 -129
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +0 -78
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +2 -42
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +0 -41
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +0 -25
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +0 -30
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.js +0 -22
- package/build/__tests__/implementation/GlobalEmitter.js.map +1 -1
- package/build/__tests__/implementation/Introspection.test.js +0 -22
- package/build/__tests__/implementation/Introspection.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +0 -61
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +0 -33
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/ListenerStore.test.js +2 -19
- package/build/__tests__/implementation/ListenerStore.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +0 -43
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +0 -74
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +0 -39
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +0 -59
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +0 -35
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +0 -55
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +20 -154
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +0 -37
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +0 -72
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +0 -25
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +0 -35
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +0 -93
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +0 -31
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +0 -35
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +0 -102
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +0 -31
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +0 -42
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/support/onTestFileResult.js +0 -2
- package/build/__tests__/support/onTestFileResult.js.map +1 -1
- package/build/__tests__/support/scripts/first.script.js +0 -7
- package/build/__tests__/support/scripts/first.script.js.map +1 -1
- package/build/__tests__/support/scripts/second.script.js.map +1 -1
- package/build/__tests__/support/scripts/third.test.script.js.map +1 -1
- package/build/addons/filePrompt.addon.js +1 -3
- package/build/addons/filePrompt.addon.js.map +1 -1
- package/build/cli.js +14 -165
- package/build/cli.js.map +1 -1
- package/build/components/AbstractComponent.js +0 -10
- package/build/components/AbstractComponent.js.map +1 -1
- package/build/components/FormComponent.js +36 -113
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +45 -88
- package/build/components/QuizComponent.js.map +1 -1
- package/build/constants.js.map +1 -1
- package/build/errors/SpruceError.js +2 -86
- package/build/errors/SpruceError.js.map +1 -1
- package/build/errors/actionCancelled.builder.js +0 -3
- package/build/errors/actionCancelled.builder.js.map +1 -1
- package/build/errors/bootError.builder.js +0 -3
- package/build/errors/bootError.builder.js.map +1 -1
- package/build/errors/buildFailed.builder.js +0 -3
- package/build/errors/buildFailed.builder.js.map +1 -1
- package/build/errors/cacheNotEnabled.builder.js +0 -3
- package/build/errors/cacheNotEnabled.builder.js.map +1 -1
- package/build/errors/commandAborted.builder.js +0 -3
- package/build/errors/commandAborted.builder.js.map +1 -1
- package/build/errors/commandBlocked.builder.js +0 -3
- package/build/errors/commandBlocked.builder.js.map +1 -1
- package/build/errors/commandNotImplemented.builder.js +0 -3
- package/build/errors/commandNotImplemented.builder.js.map +1 -1
- package/build/errors/createAutoloaderFailed.builder.js +0 -3
- package/build/errors/createAutoloaderFailed.builder.js.map +1 -1
- package/build/errors/dependencyExists.builder.js +0 -3
- package/build/errors/dependencyExists.builder.js.map +1 -1
- package/build/errors/deployFailed.builder.js +0 -3
- package/build/errors/deployFailed.builder.js.map +1 -1
- package/build/errors/directoryEmpty.builder.js +0 -3
- package/build/errors/directoryEmpty.builder.js.map +1 -1
- package/build/errors/directoryNotSkill.builder.js +0 -3
- package/build/errors/directoryNotSkill.builder.js.map +1 -1
- package/build/errors/dockerNotStarted.builder.js +0 -3
- package/build/errors/dockerNotStarted.builder.js.map +1 -1
- package/build/errors/executingCommandFailed.builder.js +0 -3
- package/build/errors/executingCommandFailed.builder.js.map +1 -1
- package/build/errors/failedToImport.builder.js +0 -2
- package/build/errors/failedToImport.builder.js.map +1 -1
- package/build/errors/featureNotInstalled.builder.js +0 -3
- package/build/errors/featureNotInstalled.builder.js.map +1 -1
- package/build/errors/fileExists.builder.js +0 -2
- package/build/errors/fileExists.builder.js.map +1 -1
- package/build/errors/generic.builder.js +0 -2
- package/build/errors/generic.builder.js.map +1 -1
- package/build/errors/invalidCommand.builder.js +0 -2
- package/build/errors/invalidCommand.builder.js.map +1 -1
- package/build/errors/invalidEventContract.builder.js +0 -3
- package/build/errors/invalidEventContract.builder.js.map +1 -1
- package/build/errors/invalidFeatureCode.builder.js +0 -3
- package/build/errors/invalidFeatureCode.builder.js.map +1 -1
- package/build/errors/invalidTestDirectory.builder.js +0 -3
- package/build/errors/invalidTestDirectory.builder.js.map +1 -1
- package/build/errors/lintFailed.builder.js +0 -2
- package/build/errors/lintFailed.builder.js.map +1 -1
- package/build/errors/mercuryResponseError.builder.js +0 -3
- package/build/errors/mercuryResponseError.builder.js.map +1 -1
- package/build/errors/missingDependencies.builder.js +0 -3
- package/build/errors/missingDependencies.builder.js.map +1 -1
- package/build/errors/noOrganizationsFound.builder.js +0 -3
- package/build/errors/noOrganizationsFound.builder.js.map +1 -1
- package/build/errors/noSkillsRegistered.builder.js +0 -3
- package/build/errors/noSkillsRegistered.builder.js.map +1 -1
- package/build/errors/notImplemented.builder.js +0 -2
- package/build/errors/notImplemented.builder.js.map +1 -1
- package/build/errors/notLoggedIn.builder.js +0 -3
- package/build/errors/notLoggedIn.builder.js.map +1 -1
- package/build/errors/schemaExists.builder.js +0 -3
- package/build/errors/schemaExists.builder.js.map +1 -1
- package/build/errors/schemaFailedToImport.builder.js +0 -3
- package/build/errors/schemaFailedToImport.builder.js.map +1 -1
- package/build/errors/schemaTemplateItemBuildingFailed.builder.js +0 -3
- package/build/errors/schemaTemplateItemBuildingFailed.builder.js.map +1 -1
- package/build/errors/skillNotFound.builder.js +0 -3
- package/build/errors/skillNotFound.builder.js.map +1 -1
- package/build/errors/skillNotRegistered.builder.js +0 -3
- package/build/errors/skillNotRegistered.builder.js.map +1 -1
- package/build/errors/skillViewExists.builder.js +0 -3
- package/build/errors/skillViewExists.builder.js.map +1 -1
- package/build/errors/storeExists.builder.js +0 -3
- package/build/errors/storeExists.builder.js.map +1 -1
- package/build/errors/testFailed.builder.js +0 -3
- package/build/errors/testFailed.builder.js.map +1 -1
- package/build/errors/themeExists.builder.js +0 -3
- package/build/errors/themeExists.builder.js.map +1 -1
- package/build/errors/transportAlreadyExists.builder.js +0 -3
- package/build/errors/transportAlreadyExists.builder.js.map +1 -1
- package/build/errors/vscodeNotInstalled.builder.js +0 -3
- package/build/errors/vscodeNotInstalled.builder.js.map +1 -1
- package/build/features/AbstractAction.js +0 -36
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +0 -40
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +0 -85
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionFactory.js +9 -30
- package/build/features/ActionFactory.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +0 -111
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +16 -64
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +5 -157
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/FeatureInstallerFactory.js +5 -37
- package/build/features/FeatureInstallerFactory.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +11 -52
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/cache/CacheFeature.js +0 -25
- package/build/features/cache/CacheFeature.js.map +1 -1
- package/build/features/cache/actions/DisableAction.js +0 -34
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +0 -35
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/cache/constants.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +0 -35
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/conversation/actions/CreateAction.js +0 -27
- package/build/features/conversation/actions/CreateAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +2 -48
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.js +0 -30
- package/build/features/conversation/stores/ConversationStore.js.map +1 -1
- package/build/features/conversation/writers/ConversationWriter.js +0 -24
- package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +0 -25
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +0 -39
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/dependencies/actions/ManageAction.js +0 -34
- package/build/features/dependencies/actions/ManageAction.js.map +1 -1
- package/build/features/deploy/DeployFeature.js +0 -26
- package/build/features/deploy/DeployFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +0 -139
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/deploy/writers/DeployWriter.js +0 -16
- package/build/features/deploy/writers/DeployWriter.js.map +1 -1
- package/build/features/error/ErrorFeature.js +0 -53
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/error/ParentTestFinder.js +0 -17
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +0 -33
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +0 -51
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +0 -72
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/EventFeature.js +0 -80
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +0 -43
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +1 -101
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SetRemoteAction.js +0 -27
- package/build/features/event/actions/SetRemoteAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js +0 -31
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/actions/SyncListenersAction.js +0 -30
- package/build/features/event/actions/SyncListenersAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +0 -52
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/builders/ListenerTemplateItemBuilder.js +1 -19
- package/build/features/event/builders/ListenerTemplateItemBuilder.js.map +1 -1
- package/build/features/event/services/EventSettingsService.js +0 -7
- package/build/features/event/services/EventSettingsService.js.map +1 -1
- package/build/features/event/services/RemoteService.js +0 -2
- package/build/features/event/services/RemoteService.js.map +1 -1
- package/build/features/event/stores/EventStore.js +5 -114
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +0 -36
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +2 -69
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/EventContractFeature.js +0 -23
- package/build/features/eventContract/EventContractFeature.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +0 -31
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/feature.utilities.js +0 -12
- package/build/features/feature.utilities.js.map +1 -1
- package/build/features/features.types.js +0 -4
- package/build/features/features.types.js.map +1 -1
- package/build/features/log/LogFeature.js +0 -20
- package/build/features/log/LogFeature.js.map +1 -1
- package/build/features/log/actions/CreateTransportAction.js +0 -29
- package/build/features/log/actions/CreateTransportAction.js.map +1 -1
- package/build/features/log/writers/LogWriter.js +0 -25
- package/build/features/log/writers/LogWriter.js.map +1 -1
- package/build/features/node/NodeFeature.js +2 -57
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/CreateAction.js +0 -26
- package/build/features/node/actions/CreateAction.js.map +1 -1
- package/build/features/node/actions/UpdateDependenciesAction.js +4 -66
- package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +0 -51
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +0 -31
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/OnboardFeature.js +0 -51
- package/build/features/onboard/OnboardFeature.js.map +1 -1
- package/build/features/onboard/ScriptLoader.js +0 -21
- package/build/features/onboard/ScriptLoader.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js +0 -47
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/onboard/actions/OnboardAction.js +0 -32
- package/build/features/onboard/actions/OnboardAction.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.first.script.js +1 -25
- package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.immersive.script.js +0 -12
- package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.returning.script.js +0 -13
- package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.short.script.js +0 -21
- package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js +0 -7
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.test.script.js +0 -6
- package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
- package/build/features/onboard/scripts/wrongCommand.script.js +0 -12
- package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
- package/build/features/onboard/stores/OnboardingStore.js +0 -25
- package/build/features/onboard/stores/OnboardingStore.js.map +1 -1
- package/build/features/organization/OrganizationFeature.js +0 -20
- package/build/features/organization/OrganizationFeature.js.map +1 -1
- package/build/features/organization/actions/CreateAction.js +0 -27
- package/build/features/organization/actions/CreateAction.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js +0 -47
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/organization/stores/OrganizationStore.js +0 -52
- package/build/features/organization/stores/OrganizationStore.js.map +1 -1
- package/build/features/permission/PermissionFeature.js +0 -20
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +0 -29
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/person/PersonFeature.js +0 -20
- package/build/features/person/PersonFeature.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +0 -41
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/person/actions/LogoutAction.js +0 -30
- package/build/features/person/actions/LogoutAction.js.map +1 -1
- package/build/features/person/actions/WhoamiAction.js +0 -32
- package/build/features/person/actions/WhoamiAction.js.map +1 -1
- package/build/features/polish/PolishFeature.js +0 -20
- package/build/features/polish/PolishFeature.js.map +1 -1
- package/build/features/polish/actions/SetupAction.js +0 -31
- package/build/features/polish/actions/SetupAction.js.map +1 -1
- package/build/features/polish/writers/PolishWriter.js +0 -22
- package/build/features/polish/writers/PolishWriter.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +0 -28
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +0 -38
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/sandbox/writers/SandboxWriter.js +0 -22
- package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
- package/build/features/schema/SchemaFeature.js +0 -51
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/ValueTypeBuilder.js +0 -20
- package/build/features/schema/ValueTypeBuilder.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +0 -44
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/actions/SyncAction.js +0 -91
- package/build/features/schema/actions/SyncAction.js.map +1 -1
- package/build/features/schema/actions/SyncFieldsAction.js +0 -34
- package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
- package/build/features/schema/services/SchemaService.js +0 -25
- package/build/features/schema/services/SchemaService.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +0 -102
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/utilities/schema.utility.js +0 -4
- package/build/features/schema/utilities/schema.utility.js.map +1 -1
- package/build/features/schema/utilities/schemaDisk.utility.js +5 -25
- package/build/features/schema/utilities/schemaDisk.utility.js.map +1 -1
- package/build/features/schema/utilities/schemaGenerator.utility.js +3 -22
- package/build/features/schema/utilities/schemaGenerator.utility.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +0 -95
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +2 -65
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +0 -46
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +0 -29
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/DashboardAction.js +0 -26
- package/build/features/skill/actions/DashboardAction.js.map +1 -1
- package/build/features/skill/actions/LoginAction.js +0 -55
- package/build/features/skill/actions/LoginAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +0 -34
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js +0 -32
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +0 -87
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +0 -25
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +0 -26
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/StoreFeature.js +0 -37
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +0 -35
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/store/actions/SyncAction.js +0 -34
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/store/stores/StoreStore.js +0 -37
- package/build/features/store/stores/StoreStore.js.map +1 -1
- package/build/features/store/templateItemBuilders/StoreTemplateItemBuilder.js +1 -18
- package/build/features/store/templateItemBuilders/StoreTemplateItemBuilder.js.map +1 -1
- package/build/features/store/writers/StoreWriter.js +0 -43
- package/build/features/store/writers/StoreWriter.js.map +1 -1
- package/build/features/test/TestFeature.js +2 -72
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestLogItemGenerator.js +0 -40
- package/build/features/test/TestLogItemGenerator.js.map +1 -1
- package/build/features/test/TestReporter.js +11 -123
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +2 -58
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +2 -66
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +0 -33
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +12 -131
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/test/writers/TestWriter.js +0 -22
- package/build/features/test/writers/TestWriter.js.map +1 -1
- package/build/features/universalDevDependencies.js.map +1 -1
- package/build/features/universalFileDescriptions.js.map +1 -1
- package/build/features/universalScripts.js.map +1 -1
- package/build/features/validateAndNormalize.utility.js +0 -7
- package/build/features/validateAndNormalize.utility.js.map +1 -1
- package/build/features/view/ViewFeature.js +0 -32
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +0 -48
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreateThemeAction.js +0 -36
- package/build/features/view/actions/CreateThemeAction.js.map +1 -1
- package/build/features/view/actions/SyncAction.js +3 -48
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/actions/WatchAction.js +4 -64
- package/build/features/view/actions/WatchAction.js.map +1 -1
- package/build/features/view/stores/ViewStore.js +0 -32
- package/build/features/view/stores/ViewStore.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +3 -43
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/VsCodeFeature.js +0 -26
- package/build/features/vscode/VsCodeFeature.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +0 -83
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/vscode/services/VsCodeService.js +3 -43
- package/build/features/vscode/services/VsCodeService.js.map +1 -1
- package/build/features/vscode/writers/VsCodeWriter.js +1 -21
- package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
- package/build/features/watch/WatchFeature.js +1 -45
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/index.js +0 -5
- package/build/index.js.map +1 -1
- package/build/interfaces/SpyInterface.js +4 -81
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +33 -156
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/schemas/v2020_07_22/bootSkillOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/bootSkillOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js +0 -8
- package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createErrorOptions.builder.js +0 -9
- package/build/schemas/v2020_07_22/createErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js +0 -8
- package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createSchemaOptions.builder.js +0 -9
- package/build/schemas/v2020_07_22/createSchemaOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createTestOptions.builder.js +0 -5
- package/build/schemas/v2020_07_22/createTestOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/installSkillAtOrganizationOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/installSkillAtOrganizationOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js +0 -8
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/namedTemplateItem.builder.js +0 -3
- package/build/schemas/v2020_07_22/namedTemplateItem.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/nodeFeatureOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/nodeFeatureOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/onboardOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/onboardOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/onboarding.builder.js +0 -3
- package/build/schemas/v2020_07_22/onboarding.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/personWithToken.builder.js +0 -5
- package/build/schemas/v2020_07_22/personWithToken.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.builder.js +0 -3
- package/build/schemas/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/setupTestsOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/setupTestsOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/setupVscodeOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/setupVscodeOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/skillFeature.builder.js +0 -3
- package/build/schemas/v2020_07_22/skillFeature.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncErrorOptions.builder.js +0 -8
- package/build/schemas/v2020_07_22/syncErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncEventOptions.builder.js +0 -5
- package/build/schemas/v2020_07_22/syncEventOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncSchemaFieldsOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/syncSchemaFieldsOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js +0 -9
- package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/testOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/testOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/upgradeSkillOptions.builder.js +0 -3
- package/build/schemas/v2020_07_22/upgradeSkillOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js +0 -4
- package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js.map +1 -1
- package/build/services/BuildService.js +0 -15
- package/build/services/BuildService.js.map +1 -1
- package/build/services/CommandService.js +0 -51
- package/build/services/CommandService.js.map +1 -1
- package/build/services/DependencyService.js +0 -11
- package/build/services/DependencyService.js.map +1 -1
- package/build/services/GameService.js +3 -32
- package/build/services/GameService.js.map +1 -1
- package/build/services/ImportService.js +4 -104
- package/build/services/ImportService.js.map +1 -1
- package/build/services/LintService.js +0 -33
- package/build/services/LintService.js.map +1 -1
- package/build/services/PkgService.js +0 -47
- package/build/services/PkgService.js.map +1 -1
- package/build/services/ServiceFactory.js +0 -35
- package/build/services/ServiceFactory.js.map +1 -1
- package/build/services/TypeCheckerService.js +0 -10
- package/build/services/TypeCheckerService.js.map +1 -1
- package/build/stores/AbstractLocalStore.js +0 -19
- package/build/stores/AbstractLocalStore.js.map +1 -1
- package/build/stores/AbstractStore.js +0 -14
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/stores/StoreFactory.js +4 -24
- package/build/stores/StoreFactory.js.map +1 -1
- package/build/templateItemBuilders/EventTemplateItemBuilder.js +14 -64
- package/build/templateItemBuilders/EventTemplateItemBuilder.js.map +1 -1
- package/build/templateItemBuilders/FieldTemplateItemBuilder.js +1 -16
- package/build/templateItemBuilders/FieldTemplateItemBuilder.js.map +1 -1
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js +11 -68
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js.map +1 -1
- package/build/tests/AbstractCliTest.js +0 -173
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractErrorTest.js +0 -20
- package/build/tests/AbstractErrorTest.js.map +1 -1
- package/build/tests/AbstractEventTest.js +13 -55
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +12 -71
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/AbstractSkillTest.js +1 -34
- package/build/tests/AbstractSkillTest.js.map +1 -1
- package/build/tests/AbstractTestTest.js +3 -26
- package/build/tests/AbstractTestTest.js.map +1 -1
- package/build/tests/CommandFaker.js +0 -8
- package/build/tests/CommandFaker.js.map +1 -1
- package/build/tests/JestJsonParser.js +2 -47
- package/build/tests/JestJsonParser.js.map +1 -1
- package/build/tests/MockProgramFactory.js +0 -17
- package/build/tests/MockProgramFactory.js.map +1 -1
- package/build/tests/buildTestCache.js +0 -82
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestCache.js +0 -11
- package/build/tests/cleanTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +0 -38
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/tests/constants.js +0 -3
- package/build/tests/constants.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +7 -82
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/MercuryFixture.js +0 -17
- package/build/tests/fixtures/MercuryFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +0 -39
- package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
- package/build/tests/fixtures/PersonFixture.js +0 -37
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +0 -55
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/tests/fixtures/ViewFixture.js +0 -14
- package/build/tests/fixtures/ViewFixture.js.map +1 -1
- package/build/tests/utilities/test.utility.js +0 -25
- package/build/tests/utilities/test.utility.js.map +1 -1
- package/build/tests/utilities/uiAssert.utility.js +0 -15
- package/build/tests/utilities/uiAssert.utility.js.map +1 -1
- package/build/types/cli.types.js +0 -1
- package/build/types/cli.types.js.map +1 -1
- package/build/types/graphicsInterface.types.js +0 -1
- package/build/types/graphicsInterface.types.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +0 -28
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/utilities/action.utility.js +0 -11
- package/build/utilities/action.utility.js.map +1 -1
- package/build/utilities/apiClient.utility.js +2 -11
- package/build/utilities/apiClient.utility.js.map +1 -1
- package/build/utilities/argParser.utility.js +1 -11
- package/build/utilities/argParser.utility.js.map +1 -1
- package/build/utilities/commander.utility.js +0 -12
- package/build/utilities/commander.utility.js.map +1 -1
- package/build/utilities/duration.utility.js +3 -8
- package/build/utilities/duration.utility.js.map +1 -1
- package/build/utilities/eventContractCleaner.utility.js +1 -22
- package/build/utilities/eventContractCleaner.utility.js.map +1 -1
- package/build/utilities/form.utility.js +1 -27
- package/build/utilities/form.utility.js.map +1 -1
- package/build/utilities/introspection.utility.js +11 -40
- package/build/utilities/introspection.utility.js.map +1 -1
- package/build/utilities/isCi.js +0 -3
- package/build/utilities/isCi.js.map +1 -1
- package/build/utilities/tsConfig.utility.js +4 -16
- package/build/utilities/tsConfig.utility.js.map +1 -1
- package/build/utilities/ui.utility.js +2 -4
- package/build/utilities/ui.utility.js.map +1 -1
- package/build/widgets/Theme.js +0 -3
- package/build/widgets/Theme.js.map +1 -1
- package/build/widgets/WidgetFactory.js +4 -14
- package/build/widgets/WidgetFactory.js.map +1 -1
- package/build/widgets/keySelectChoices.js.map +1 -1
- package/build/widgets/terminalKit/TKButtonWidget.js +2 -32
- package/build/widgets/terminalKit/TKButtonWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +1 -55
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +1 -44
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutCellWidget.js +0 -19
- package/build/widgets/terminalKit/TkLayoutCellWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +3 -47
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkMenuBarWidget.js +3 -48
- package/build/widgets/terminalKit/TkMenuBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkPopupWidget.js +1 -27
- package/build/widgets/terminalKit/TkPopupWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkProgressBarWidget.js +5 -30
- package/build/widgets/terminalKit/TkProgressBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +6 -48
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkWindowWidget.js +4 -35
- package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
- package/build/widgets/terminalKit/termKit.utility.js +2 -40
- package/build/widgets/terminalKit/termKit.utility.js.map +1 -1
- package/build/widgets/types/button.types.js.map +1 -1
- package/build/widgets/types/factory.types.js +0 -16
- package/build/widgets/types/factory.types.js.map +1 -1
- package/build/widgets/types/input.types.js +0 -2
- package/build/widgets/types/input.types.js.map +1 -1
- package/build/widgets/types/menuBar.types.js +1 -2
- package/build/widgets/types/menuBar.types.js.map +1 -1
- package/build/widgets/types/popup.types.js.map +1 -1
- package/build/widgets/types/text.types.js +1 -2
- package/build/widgets/types/text.types.js.map +1 -1
- package/build/widgets/types/window.types.js +0 -2
- package/build/widgets/types/window.types.js.map +1 -1
- package/build/widgets/widget.utilities.js +6 -10
- package/build/widgets/widget.utilities.js.map +1 -1
- package/build/writers/AbstractWriter.js +13 -94
- package/build/writers/AbstractWriter.js.map +1 -1
- package/build/writers/WriterFactory.js +3 -27
- package/build/writers/WriterFactory.js.map +1 -1
- package/docs/images/doors.jpg +0 -0
- package/package.json +26 -26
- package/src/features/onboard/scripts/onboarding.first.script.ts +8 -5
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
11
|
-
|
|
12
9
|
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
13
|
-
|
|
14
10
|
var _spruceEventUtils = require("@sprucelabs/spruce-event-utils");
|
|
15
|
-
|
|
16
11
|
var _isEqual = _interopRequireDefault(require("lodash/isEqual"));
|
|
17
|
-
|
|
18
12
|
var _uniqWith = _interopRequireDefault(require("lodash/uniqWith"));
|
|
19
|
-
|
|
20
13
|
var actionUtil = {
|
|
21
14
|
mergeActionResults: function mergeActionResults() {
|
|
22
15
|
var _this = this;
|
|
23
|
-
|
|
24
16
|
var isObject = function isObject(obj) {
|
|
25
17
|
return obj && (0, _typeof2["default"])(obj) === 'object';
|
|
26
18
|
};
|
|
27
|
-
|
|
28
19
|
for (var _len = arguments.length, objects = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
29
20
|
objects[_key] = arguments[_key];
|
|
30
21
|
}
|
|
31
|
-
|
|
32
22
|
return objects.reduce(function (prev, obj) {
|
|
33
23
|
Object.keys(obj || {}).forEach(function (key) {
|
|
34
24
|
var pVal = prev[key];
|
|
35
25
|
var oVal = obj[key];
|
|
36
|
-
|
|
37
26
|
if (Array.isArray(pVal) && Array.isArray(oVal)) {
|
|
38
27
|
prev[key] = pVal.concat.apply(pVal, (0, _toConsumableArray2["default"])(oVal));
|
|
39
28
|
prev[key] = _this.makeUnique(prev[key]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.utility.js","names":["actionUtil","mergeActionResults","isObject","obj","objects","reduce","prev","Object","keys","forEach","key","pVal","oVal","Array","isArray","concat","makeUnique","val","uniqWith","a","b","isEqual","path","assertNoErrorsInResponse","response","eventResponseUtil","getFirstResponseOrThrow"],"sources":["../../src/utilities/action.utility.ts"],"sourcesContent":["import { MercuryAggregateResponse } from '@sprucelabs/mercury-types'\nimport { eventResponseUtil } from '@sprucelabs/spruce-event-utils'\nimport isEqual from 'lodash/isEqual'\nimport uniqWith from 'lodash/uniqWith'\n\nconst actionUtil = {\n\tmergeActionResults(...objects: any[]) {\n\t\tconst isObject = (obj: any) => obj && typeof obj === 'object'\n\t\treturn objects.reduce((prev, obj) => {\n\t\t\tObject.keys(obj || {}).forEach((key) => {\n\t\t\t\tconst pVal = prev[key]\n\t\t\t\tconst oVal = obj[key]\n\n\t\t\t\tif (Array.isArray(pVal) && Array.isArray(oVal)) {\n\t\t\t\t\tprev[key] = pVal.concat(...oVal)\n\t\t\t\t\tprev[key] = this.makeUnique(prev[key])\n\t\t\t\t} else if (isObject(pVal) && isObject(oVal)) {\n\t\t\t\t\tprev[key] = this.mergeActionResults(pVal, oVal)\n\t\t\t\t} else if (typeof oVal !== 'undefined') {\n\t\t\t\t\tprev[key] = oVal\n\t\t\t\t}\n\t\t\t})\n\t\t\treturn prev\n\t\t}, {})\n\t},\n\n\tmakeUnique(val: any[]): any[] {\n\t\treturn uniqWith(val, (a: any, b: any) => {\n\t\t\treturn isEqual(a, b) || (a.path && b.path && a.path === b.path)\n\t\t})\n\t},\n\n\tassertNoErrorsInResponse(response: MercuryAggregateResponse<any>) {\n\t\teventResponseUtil.getFirstResponseOrThrow(response)\n\t},\n}\n\nexport default actionUtil\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"action.utility.js","names":["actionUtil","mergeActionResults","isObject","obj","objects","reduce","prev","Object","keys","forEach","key","pVal","oVal","Array","isArray","concat","makeUnique","val","uniqWith","a","b","isEqual","path","assertNoErrorsInResponse","response","eventResponseUtil","getFirstResponseOrThrow"],"sources":["../../src/utilities/action.utility.ts"],"sourcesContent":["import { MercuryAggregateResponse } from '@sprucelabs/mercury-types'\nimport { eventResponseUtil } from '@sprucelabs/spruce-event-utils'\nimport isEqual from 'lodash/isEqual'\nimport uniqWith from 'lodash/uniqWith'\n\nconst actionUtil = {\n\tmergeActionResults(...objects: any[]) {\n\t\tconst isObject = (obj: any) => obj && typeof obj === 'object'\n\t\treturn objects.reduce((prev, obj) => {\n\t\t\tObject.keys(obj || {}).forEach((key) => {\n\t\t\t\tconst pVal = prev[key]\n\t\t\t\tconst oVal = obj[key]\n\n\t\t\t\tif (Array.isArray(pVal) && Array.isArray(oVal)) {\n\t\t\t\t\tprev[key] = pVal.concat(...oVal)\n\t\t\t\t\tprev[key] = this.makeUnique(prev[key])\n\t\t\t\t} else if (isObject(pVal) && isObject(oVal)) {\n\t\t\t\t\tprev[key] = this.mergeActionResults(pVal, oVal)\n\t\t\t\t} else if (typeof oVal !== 'undefined') {\n\t\t\t\t\tprev[key] = oVal\n\t\t\t\t}\n\t\t\t})\n\t\t\treturn prev\n\t\t}, {})\n\t},\n\n\tmakeUnique(val: any[]): any[] {\n\t\treturn uniqWith(val, (a: any, b: any) => {\n\t\t\treturn isEqual(a, b) || (a.path && b.path && a.path === b.path)\n\t\t})\n\t},\n\n\tassertNoErrorsInResponse(response: MercuryAggregateResponse<any>) {\n\t\teventResponseUtil.getFirstResponseOrThrow(response)\n\t},\n}\n\nexport default actionUtil\n"],"mappings":";;;;;;;;;AACA;AACA;AACA;AAEA,IAAMA,UAAU,GAAG;EAClBC,kBAAkB,gCAAoB;IAAA;IACrC,IAAMC,QAAQ,GAAG,SAAXA,QAAQ,CAAIC,GAAQ;MAAA,OAAKA,GAAG,IAAI,yBAAOA,GAAG,MAAK,QAAQ;IAAA;IAAA,kCADxCC,OAAO;MAAPA,OAAO;IAAA;IAE5B,OAAOA,OAAO,CAACC,MAAM,CAAC,UAACC,IAAI,EAAEH,GAAG,EAAK;MACpCI,MAAM,CAACC,IAAI,CAACL,GAAG,IAAI,CAAC,CAAC,CAAC,CAACM,OAAO,CAAC,UAACC,GAAG,EAAK;QACvC,IAAMC,IAAI,GAAGL,IAAI,CAACI,GAAG,CAAC;QACtB,IAAME,IAAI,GAAGT,GAAG,CAACO,GAAG,CAAC;QAErB,IAAIG,KAAK,CAACC,OAAO,CAACH,IAAI,CAAC,IAAIE,KAAK,CAACC,OAAO,CAACF,IAAI,CAAC,EAAE;UAC/CN,IAAI,CAACI,GAAG,CAAC,GAAGC,IAAI,CAACI,MAAM,OAAXJ,IAAI,sCAAWC,IAAI,EAAC;UAChCN,IAAI,CAACI,GAAG,CAAC,GAAG,KAAI,CAACM,UAAU,CAACV,IAAI,CAACI,GAAG,CAAC,CAAC;QACvC,CAAC,MAAM,IAAIR,QAAQ,CAACS,IAAI,CAAC,IAAIT,QAAQ,CAACU,IAAI,CAAC,EAAE;UAC5CN,IAAI,CAACI,GAAG,CAAC,GAAG,KAAI,CAACT,kBAAkB,CAACU,IAAI,EAAEC,IAAI,CAAC;QAChD,CAAC,MAAM,IAAI,OAAOA,IAAI,KAAK,WAAW,EAAE;UACvCN,IAAI,CAACI,GAAG,CAAC,GAAGE,IAAI;QACjB;MACD,CAAC,CAAC;MACF,OAAON,IAAI;IACZ,CAAC,EAAE,CAAC,CAAC,CAAC;EACP,CAAC;EAEDU,UAAU,sBAACC,GAAU,EAAS;IAC7B,OAAO,IAAAC,oBAAQ,EAACD,GAAG,EAAE,UAACE,CAAM,EAAEC,CAAM,EAAK;MACxC,OAAO,IAAAC,mBAAO,EAACF,CAAC,EAAEC,CAAC,CAAC,IAAKD,CAAC,CAACG,IAAI,IAAIF,CAAC,CAACE,IAAI,IAAIH,CAAC,CAACG,IAAI,KAAKF,CAAC,CAACE,IAAK;IAChE,CAAC,CAAC;EACH,CAAC;EAEDC,wBAAwB,oCAACC,QAAuC,EAAE;IACjEC,mCAAiB,CAACC,uBAAuB,CAACF,QAAQ,CAAC;EACpD;AACD,CAAC;AAAA,eAEcxB,UAAU;AAAA"}
|
|
@@ -4,31 +4,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _schema = require("@sprucelabs/schema");
|
|
9
|
-
|
|
10
8
|
var apiClientUtil = {
|
|
11
9
|
generateClientCacheKey: function generateClientCacheKey(options) {
|
|
12
10
|
if (options !== null && options !== void 0 && options.shouldAuthAsCurrentSkill) {
|
|
13
11
|
return 'skill';
|
|
14
12
|
}
|
|
15
|
-
|
|
16
13
|
if ((options === null || options === void 0 ? void 0 : options.shouldAuthAsLoggedInPerson) === false) {
|
|
17
14
|
return 'anon';
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
if (!options || !options.token && !options.skillId) {
|
|
21
17
|
return 'loggedInPersonOrAnon';
|
|
22
18
|
}
|
|
23
|
-
|
|
24
19
|
if (options.token) {
|
|
25
20
|
return "person:".concat(options.token);
|
|
26
21
|
}
|
|
27
|
-
|
|
28
22
|
if (options.skillId && options.apiKey) {
|
|
29
23
|
return "skill:".concat(options.skillId, ":").concat(options.apiKey);
|
|
30
24
|
}
|
|
31
|
-
|
|
32
25
|
throw new _schema.SchemaError({
|
|
33
26
|
code: 'INVALID_PARAMETERS',
|
|
34
27
|
parameters: [!options.token && 'token', !options.skillId && 'skillId', !options.apiKey && 'apiKey'].filter(function (p) {
|
|
@@ -39,18 +32,16 @@ var apiClientUtil = {
|
|
|
39
32
|
},
|
|
40
33
|
skillOrAuthToAuth: function skillOrAuthToAuth(auth) {
|
|
41
34
|
var _ref = auth,
|
|
42
|
-
|
|
35
|
+
skillId = _ref.skillId;
|
|
43
36
|
var _ref2 = auth,
|
|
44
|
-
|
|
37
|
+
id = _ref2.id;
|
|
45
38
|
skillId = id !== null && id !== void 0 ? id : skillId;
|
|
46
|
-
|
|
47
39
|
if (!skillId) {
|
|
48
40
|
throw new _schema.SchemaError({
|
|
49
41
|
code: 'MISSING_PARAMETERS',
|
|
50
42
|
parameters: ['auth.skillId']
|
|
51
43
|
});
|
|
52
44
|
}
|
|
53
|
-
|
|
54
45
|
var skillAuth = {
|
|
55
46
|
skillId: skillId,
|
|
56
47
|
apiKey: auth.apiKey
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiClient.utility.js","names":["apiClientUtil","generateClientCacheKey","options","shouldAuthAsCurrentSkill","shouldAuthAsLoggedInPerson","token","skillId","apiKey","SchemaError","code","parameters","filter","p","friendlyMessage","skillOrAuthToAuth","auth","id","skillAuth"],"sources":["../../src/utilities/apiClient.utility.ts"],"sourcesContent":["import { SchemaError } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '@sprucelabs/spruce-core-schemas'\nimport { ApiClientFactoryOptions } from '../types/apiClient.types'\n\ntype Skill = SpruceSchemas.Spruce.v2020_07_22.Skill\n\nconst apiClientUtil = {\n\tgenerateClientCacheKey: (options?: ApiClientFactoryOptions) => {\n\t\tif (options?.shouldAuthAsCurrentSkill) {\n\t\t\treturn 'skill'\n\t\t}\n\n\t\tif (options?.shouldAuthAsLoggedInPerson === false) {\n\t\t\treturn 'anon'\n\t\t}\n\n\t\tif (!options || (!options.token && !options.skillId)) {\n\t\t\treturn 'loggedInPersonOrAnon'\n\t\t}\n\n\t\tif (options.token) {\n\t\t\treturn `person:${options.token}`\n\t\t}\n\n\t\tif (options.skillId && options.apiKey) {\n\t\t\treturn `skill:${options.skillId}:${options.apiKey}`\n\t\t}\n\n\t\tthrow new SchemaError({\n\t\t\tcode: 'INVALID_PARAMETERS',\n\t\t\tparameters: [\n\t\t\t\t!options.token && 'token',\n\t\t\t\t!options.skillId && 'skillId',\n\t\t\t\t!options.apiKey && 'apiKey',\n\t\t\t].filter((p) => !!p) as string[],\n\t\t\tfriendlyMessage: `You must pass a token to login as a person or a skillId and apiKey to login as a skill.`,\n\t\t})\n\t},\n\n\tskillOrAuthToAuth(auth: ApiClientFactoryOptions | Skill) {\n\t\tlet { skillId } = auth as ApiClientFactoryOptions\n\t\tlet { id } = auth as Skill\n\n\t\tskillId = id ?? skillId\n\n\t\tif (!skillId) {\n\t\t\tthrow new SchemaError({\n\t\t\t\tcode: 'MISSING_PARAMETERS',\n\t\t\t\tparameters: ['auth.skillId'],\n\t\t\t})\n\t\t}\n\n\t\tconst skillAuth = {\n\t\t\tskillId,\n\t\t\tapiKey: auth.apiKey,\n\t\t}\n\n\t\treturn skillAuth\n\t},\n}\n\nexport default apiClientUtil\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"apiClient.utility.js","names":["apiClientUtil","generateClientCacheKey","options","shouldAuthAsCurrentSkill","shouldAuthAsLoggedInPerson","token","skillId","apiKey","SchemaError","code","parameters","filter","p","friendlyMessage","skillOrAuthToAuth","auth","id","skillAuth"],"sources":["../../src/utilities/apiClient.utility.ts"],"sourcesContent":["import { SchemaError } from '@sprucelabs/schema'\nimport { SpruceSchemas } from '@sprucelabs/spruce-core-schemas'\nimport { ApiClientFactoryOptions } from '../types/apiClient.types'\n\ntype Skill = SpruceSchemas.Spruce.v2020_07_22.Skill\n\nconst apiClientUtil = {\n\tgenerateClientCacheKey: (options?: ApiClientFactoryOptions) => {\n\t\tif (options?.shouldAuthAsCurrentSkill) {\n\t\t\treturn 'skill'\n\t\t}\n\n\t\tif (options?.shouldAuthAsLoggedInPerson === false) {\n\t\t\treturn 'anon'\n\t\t}\n\n\t\tif (!options || (!options.token && !options.skillId)) {\n\t\t\treturn 'loggedInPersonOrAnon'\n\t\t}\n\n\t\tif (options.token) {\n\t\t\treturn `person:${options.token}`\n\t\t}\n\n\t\tif (options.skillId && options.apiKey) {\n\t\t\treturn `skill:${options.skillId}:${options.apiKey}`\n\t\t}\n\n\t\tthrow new SchemaError({\n\t\t\tcode: 'INVALID_PARAMETERS',\n\t\t\tparameters: [\n\t\t\t\t!options.token && 'token',\n\t\t\t\t!options.skillId && 'skillId',\n\t\t\t\t!options.apiKey && 'apiKey',\n\t\t\t].filter((p) => !!p) as string[],\n\t\t\tfriendlyMessage: `You must pass a token to login as a person or a skillId and apiKey to login as a skill.`,\n\t\t})\n\t},\n\n\tskillOrAuthToAuth(auth: ApiClientFactoryOptions | Skill) {\n\t\tlet { skillId } = auth as ApiClientFactoryOptions\n\t\tlet { id } = auth as Skill\n\n\t\tskillId = id ?? skillId\n\n\t\tif (!skillId) {\n\t\t\tthrow new SchemaError({\n\t\t\t\tcode: 'MISSING_PARAMETERS',\n\t\t\t\tparameters: ['auth.skillId'],\n\t\t\t})\n\t\t}\n\n\t\tconst skillAuth = {\n\t\t\tskillId,\n\t\t\tapiKey: auth.apiKey,\n\t\t}\n\n\t\treturn skillAuth\n\t},\n}\n\nexport default apiClientUtil\n"],"mappings":";;;;;;AAAA;AAMA,IAAMA,aAAa,GAAG;EACrBC,sBAAsB,EAAE,gCAACC,OAAiC,EAAK;IAC9D,IAAIA,OAAO,aAAPA,OAAO,eAAPA,OAAO,CAAEC,wBAAwB,EAAE;MACtC,OAAO,OAAO;IACf;IAEA,IAAI,CAAAD,OAAO,aAAPA,OAAO,uBAAPA,OAAO,CAAEE,0BAA0B,MAAK,KAAK,EAAE;MAClD,OAAO,MAAM;IACd;IAEA,IAAI,CAACF,OAAO,IAAK,CAACA,OAAO,CAACG,KAAK,IAAI,CAACH,OAAO,CAACI,OAAQ,EAAE;MACrD,OAAO,sBAAsB;IAC9B;IAEA,IAAIJ,OAAO,CAACG,KAAK,EAAE;MAClB,wBAAiBH,OAAO,CAACG,KAAK;IAC/B;IAEA,IAAIH,OAAO,CAACI,OAAO,IAAIJ,OAAO,CAACK,MAAM,EAAE;MACtC,uBAAgBL,OAAO,CAACI,OAAO,cAAIJ,OAAO,CAACK,MAAM;IAClD;IAEA,MAAM,IAAIC,mBAAW,CAAC;MACrBC,IAAI,EAAE,oBAAoB;MAC1BC,UAAU,EAAE,CACX,CAACR,OAAO,CAACG,KAAK,IAAI,OAAO,EACzB,CAACH,OAAO,CAACI,OAAO,IAAI,SAAS,EAC7B,CAACJ,OAAO,CAACK,MAAM,IAAI,QAAQ,CAC3B,CAACI,MAAM,CAAC,UAACC,CAAC;QAAA,OAAK,CAAC,CAACA,CAAC;MAAA,EAAa;MAChCC,eAAe;IAChB,CAAC,CAAC;EACH,CAAC;EAEDC,iBAAiB,6BAACC,IAAqC,EAAE;IACxD,WAAkBA,IAAI;MAAhBT,OAAO,QAAPA,OAAO;IACb,YAAaS,IAAI;MAAXC,EAAE,SAAFA,EAAE;IAERV,OAAO,GAAGU,EAAE,aAAFA,EAAE,cAAFA,EAAE,GAAIV,OAAO;IAEvB,IAAI,CAACA,OAAO,EAAE;MACb,MAAM,IAAIE,mBAAW,CAAC;QACrBC,IAAI,EAAE,oBAAoB;QAC1BC,UAAU,EAAE,CAAC,cAAc;MAC5B,CAAC,CAAC;IACH;IAEA,IAAMO,SAAS,GAAG;MACjBX,OAAO,EAAPA,OAAO;MACPC,MAAM,EAAEQ,IAAI,CAACR;IACd,CAAC;IAED,OAAOU,SAAS;EACjB;AACD,CAAC;AAAA,eAEcjB,aAAa;AAAA"}
|
|
@@ -4,27 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.argParserUtil = void 0;
|
|
7
|
-
|
|
8
7
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
9
|
-
|
|
10
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
11
|
-
|
|
12
9
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
13
|
-
|
|
14
10
|
var argParserUtil = {
|
|
15
11
|
parse: function parse(input) {
|
|
16
12
|
if (input.length > 0) {
|
|
17
13
|
var parts = input.split(' ');
|
|
18
14
|
var args = {};
|
|
19
15
|
var key = null;
|
|
20
|
-
|
|
21
16
|
var _iterator = _createForOfIteratorHelper(parts),
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
_step;
|
|
24
18
|
try {
|
|
25
19
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
26
20
|
var part = _step.value;
|
|
27
|
-
|
|
28
21
|
if (part[0] === '-') {
|
|
29
22
|
key = part.replace(/^--?/, '');
|
|
30
23
|
} else if (key) {
|
|
@@ -37,14 +30,11 @@ var argParserUtil = {
|
|
|
37
30
|
} finally {
|
|
38
31
|
_iterator.f();
|
|
39
32
|
}
|
|
40
|
-
|
|
41
33
|
if (key) {
|
|
42
34
|
args[key] = 'true';
|
|
43
35
|
}
|
|
44
|
-
|
|
45
36
|
return args;
|
|
46
37
|
}
|
|
47
|
-
|
|
48
38
|
return {};
|
|
49
39
|
}
|
|
50
40
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"argParser.utility.js","names":["argParserUtil","parse","input","length","parts","split","args","key","part","replace"],"sources":["../../src/utilities/argParser.utility.ts"],"sourcesContent":["export const argParserUtil = {\n\tparse(input: string) {\n\t\tif (input.length > 0) {\n\t\t\tconst parts = input.split(' ')\n\n\t\t\tconst args: Record<string, string> = {}\n\t\t\tlet key: string | null = null\n\n\t\t\tfor (const part of parts) {\n\t\t\t\tif (part[0] === '-') {\n\t\t\t\t\tkey = part.replace(/^--?/, '')\n\t\t\t\t} else if (key) {\n\t\t\t\t\targs[key] = part\n\t\t\t\t\tkey = null\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (key) {\n\t\t\t\targs[key] = 'true'\n\t\t\t}\n\n\t\t\treturn args\n\t\t}\n\t\treturn {}\n\t},\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"argParser.utility.js","names":["argParserUtil","parse","input","length","parts","split","args","key","part","replace"],"sources":["../../src/utilities/argParser.utility.ts"],"sourcesContent":["export const argParserUtil = {\n\tparse(input: string) {\n\t\tif (input.length > 0) {\n\t\t\tconst parts = input.split(' ')\n\n\t\t\tconst args: Record<string, string> = {}\n\t\t\tlet key: string | null = null\n\n\t\t\tfor (const part of parts) {\n\t\t\t\tif (part[0] === '-') {\n\t\t\t\t\tkey = part.replace(/^--?/, '')\n\t\t\t\t} else if (key) {\n\t\t\t\t\targs[key] = part\n\t\t\t\t\tkey = null\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (key) {\n\t\t\t\targs[key] = 'true'\n\t\t\t}\n\n\t\t\treturn args\n\t\t}\n\t\treturn {}\n\t},\n}\n"],"mappings":";;;;;;;;;AAAO,IAAMA,aAAa,GAAG;EAC5BC,KAAK,iBAACC,KAAa,EAAE;IACpB,IAAIA,KAAK,CAACC,MAAM,GAAG,CAAC,EAAE;MACrB,IAAMC,KAAK,GAAGF,KAAK,CAACG,KAAK,CAAC,GAAG,CAAC;MAE9B,IAAMC,IAA4B,GAAG,CAAC,CAAC;MACvC,IAAIC,GAAkB,GAAG,IAAI;MAAA,2CAEVH,KAAK;QAAA;MAAA;QAAxB,oDAA0B;UAAA,IAAfI,IAAI;UACd,IAAIA,IAAI,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE;YACpBD,GAAG,GAAGC,IAAI,CAACC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC;UAC/B,CAAC,MAAM,IAAIF,GAAG,EAAE;YACfD,IAAI,CAACC,GAAG,CAAC,GAAGC,IAAI;YAChBD,GAAG,GAAG,IAAI;UACX;QACD;MAAC;QAAA;MAAA;QAAA;MAAA;MAED,IAAIA,GAAG,EAAE;QACRD,IAAI,CAACC,GAAG,CAAC,GAAG,MAAM;MACnB;MAEA,OAAOD,IAAI;IACZ;IACA,OAAO,CAAC,CAAC;EACV;AACD,CAAC;AAAA"}
|
|
@@ -1,28 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports["default"] = void 0;
|
|
9
|
-
|
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
9
|
var _lodash = require("lodash");
|
|
13
|
-
|
|
14
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
|
|
18
12
|
var commanderUtil = {
|
|
19
13
|
mapIncomingToOptions: function mapIncomingToOptions() {
|
|
20
14
|
var _args$find;
|
|
21
|
-
|
|
22
15
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
23
16
|
args[_key] = arguments[_key];
|
|
24
17
|
}
|
|
25
|
-
|
|
26
18
|
var strings = args.filter(function (a) {
|
|
27
19
|
return typeof a === 'string';
|
|
28
20
|
});
|
|
@@ -32,17 +24,13 @@ var commanderUtil = {
|
|
|
32
24
|
return (0, _lodash.isObjectLike)(a);
|
|
33
25
|
})) !== null && _args$find !== void 0 ? _args$find : {};
|
|
34
26
|
var options = {};
|
|
35
|
-
|
|
36
27
|
if (schema) {
|
|
37
28
|
var _schema$fields;
|
|
38
|
-
|
|
39
29
|
var fieldNames = Object.keys((_schema$fields = schema.fields) !== null && _schema$fields !== void 0 ? _schema$fields : {});
|
|
40
|
-
|
|
41
30
|
for (var c = 0; c < strings.length; c++) {
|
|
42
31
|
options[fieldNames[c]] = strings[c];
|
|
43
32
|
}
|
|
44
33
|
}
|
|
45
|
-
|
|
46
34
|
return _objectSpread(_objectSpread({}, originalOptions), options);
|
|
47
35
|
}
|
|
48
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commander.utility.js","names":["commanderUtil","mapIncomingToOptions","args","strings","filter","a","possibleSchema","length","schema","id","fields","undefined","originalOptions","find","isObjectLike","options","fieldNames","Object","keys","c"],"sources":["../../src/utilities/commander.utility.ts"],"sourcesContent":["import { isObjectLike } from 'lodash'\n\nconst commanderUtil = {\n\tmapIncomingToOptions(...args: any[]) {\n\t\tconst strings = args.filter((a) => typeof a === 'string')\n\t\tconst possibleSchema = args[args.length - 1]\n\t\tconst schema =\n\t\t\tpossibleSchema?.id && possibleSchema?.fields ? possibleSchema : undefined\n\n\t\tconst originalOptions = args.find((a) => isObjectLike(a)) ?? {}\n\t\tconst options: Record<string, any> = {}\n\n\t\tif (schema) {\n\t\t\tconst fieldNames = Object.keys(schema.fields ?? {})\n\t\t\tfor (let c = 0; c < strings.length; c++) {\n\t\t\t\toptions[fieldNames[c]] = strings[c]\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\t...originalOptions,\n\t\t\t...options,\n\t\t}\n\t},\n}\n\nexport default commanderUtil\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"commander.utility.js","names":["commanderUtil","mapIncomingToOptions","args","strings","filter","a","possibleSchema","length","schema","id","fields","undefined","originalOptions","find","isObjectLike","options","fieldNames","Object","keys","c"],"sources":["../../src/utilities/commander.utility.ts"],"sourcesContent":["import { isObjectLike } from 'lodash'\n\nconst commanderUtil = {\n\tmapIncomingToOptions(...args: any[]) {\n\t\tconst strings = args.filter((a) => typeof a === 'string')\n\t\tconst possibleSchema = args[args.length - 1]\n\t\tconst schema =\n\t\t\tpossibleSchema?.id && possibleSchema?.fields ? possibleSchema : undefined\n\n\t\tconst originalOptions = args.find((a) => isObjectLike(a)) ?? {}\n\t\tconst options: Record<string, any> = {}\n\n\t\tif (schema) {\n\t\t\tconst fieldNames = Object.keys(schema.fields ?? {})\n\t\t\tfor (let c = 0; c < strings.length; c++) {\n\t\t\t\toptions[fieldNames[c]] = strings[c]\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\t...originalOptions,\n\t\t\t...options,\n\t\t}\n\t},\n}\n\nexport default commanderUtil\n"],"mappings":";;;;;;;;AAAA;AAAqC;AAAA;AAErC,IAAMA,aAAa,GAAG;EACrBC,oBAAoB,kCAAiB;IAAA;IAAA,kCAAbC,IAAI;MAAJA,IAAI;IAAA;IAC3B,IAAMC,OAAO,GAAGD,IAAI,CAACE,MAAM,CAAC,UAACC,CAAC;MAAA,OAAK,OAAOA,CAAC,KAAK,QAAQ;IAAA,EAAC;IACzD,IAAMC,cAAc,GAAGJ,IAAI,CAACA,IAAI,CAACK,MAAM,GAAG,CAAC,CAAC;IAC5C,IAAMC,MAAM,GACXF,cAAc,aAAdA,cAAc,eAAdA,cAAc,CAAEG,EAAE,IAAIH,cAAc,aAAdA,cAAc,eAAdA,cAAc,CAAEI,MAAM,GAAGJ,cAAc,GAAGK,SAAS;IAE1E,IAAMC,eAAe,iBAAGV,IAAI,CAACW,IAAI,CAAC,UAACR,CAAC;MAAA,OAAK,IAAAS,oBAAY,EAACT,CAAC,CAAC;IAAA,EAAC,mDAAI,CAAC,CAAC;IAC/D,IAAMU,OAA4B,GAAG,CAAC,CAAC;IAEvC,IAAIP,MAAM,EAAE;MAAA;MACX,IAAMQ,UAAU,GAAGC,MAAM,CAACC,IAAI,mBAACV,MAAM,CAACE,MAAM,2DAAI,CAAC,CAAC,CAAC;MACnD,KAAK,IAAIS,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGhB,OAAO,CAACI,MAAM,EAAEY,CAAC,EAAE,EAAE;QACxCJ,OAAO,CAACC,UAAU,CAACG,CAAC,CAAC,CAAC,GAAGhB,OAAO,CAACgB,CAAC,CAAC;MACpC;IACD;IAEA,uCACIP,eAAe,GACfG,OAAO;EAEZ;AACD,CAAC;AAAA,eAEcf,aAAa;AAAA"}
|
|
@@ -7,23 +7,19 @@ exports["default"] = void 0;
|
|
|
7
7
|
var durationUtil = {
|
|
8
8
|
msToFriendly: function msToFriendly(duration) {
|
|
9
9
|
var milliseconds = duration % 1000,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
seconds = Math.floor(duration / 1000 % 60),
|
|
11
|
+
minutes = Math.floor(duration / (1000 * 60) % 60),
|
|
12
|
+
hours = Math.floor(duration / (1000 * 60 * 60) % 24);
|
|
13
13
|
var durationStr = '';
|
|
14
|
-
|
|
15
14
|
if (hours > 0) {
|
|
16
15
|
durationStr += "".concat(hours, "h ");
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
if (hours > 0 || minutes > 0) {
|
|
20
18
|
durationStr += "".concat(minutes, "m ");
|
|
21
19
|
}
|
|
22
|
-
|
|
23
20
|
if (durationStr.length > 0 || seconds > 0) {
|
|
24
21
|
durationStr += "".concat(seconds, "s ");
|
|
25
22
|
}
|
|
26
|
-
|
|
27
23
|
if (hours === 0 && minutes === 0) {
|
|
28
24
|
if (seconds > 0) {
|
|
29
25
|
durationStr = "".concat(seconds, ".").concat(milliseconds, "s");
|
|
@@ -31,7 +27,6 @@ var durationUtil = {
|
|
|
31
27
|
durationStr += "".concat(milliseconds, "ms");
|
|
32
28
|
}
|
|
33
29
|
}
|
|
34
|
-
|
|
35
30
|
return durationStr.trim();
|
|
36
31
|
}
|
|
37
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"duration.utility.js","names":["durationUtil","msToFriendly","duration","milliseconds","seconds","Math","floor","minutes","hours","durationStr","length","trim"],"sources":["../../src/utilities/duration.utility.ts"],"sourcesContent":["const durationUtil = {\n\tmsToFriendly(duration: number): string {\n\t\tlet milliseconds = duration % 1000,\n\t\t\tseconds = Math.floor((duration / 1000) % 60),\n\t\t\tminutes = Math.floor((duration / (1000 * 60)) % 60),\n\t\t\thours = Math.floor((duration / (1000 * 60 * 60)) % 24)\n\n\t\tlet durationStr = ''\n\n\t\tif (hours > 0) {\n\t\t\tdurationStr += `${hours}h `\n\t\t}\n\n\t\tif (hours > 0 || minutes > 0) {\n\t\t\tdurationStr += `${minutes}m `\n\t\t}\n\n\t\tif (durationStr.length > 0 || seconds > 0) {\n\t\t\tdurationStr += `${seconds}s `\n\t\t}\n\n\t\tif (hours === 0 && minutes === 0) {\n\t\t\tif (seconds > 0) {\n\t\t\t\tdurationStr = `${seconds}.${milliseconds}s`\n\t\t\t} else {\n\t\t\t\tdurationStr += `${milliseconds}ms`\n\t\t\t}\n\t\t}\n\n\t\treturn durationStr.trim()\n\t},\n}\n\nexport default durationUtil\n"],"mappings":";;;;;;AAAA,IAAMA,YAAY,GAAG;EACpBC,
|
|
1
|
+
{"version":3,"file":"duration.utility.js","names":["durationUtil","msToFriendly","duration","milliseconds","seconds","Math","floor","minutes","hours","durationStr","length","trim"],"sources":["../../src/utilities/duration.utility.ts"],"sourcesContent":["const durationUtil = {\n\tmsToFriendly(duration: number): string {\n\t\tlet milliseconds = duration % 1000,\n\t\t\tseconds = Math.floor((duration / 1000) % 60),\n\t\t\tminutes = Math.floor((duration / (1000 * 60)) % 60),\n\t\t\thours = Math.floor((duration / (1000 * 60 * 60)) % 24)\n\n\t\tlet durationStr = ''\n\n\t\tif (hours > 0) {\n\t\t\tdurationStr += `${hours}h `\n\t\t}\n\n\t\tif (hours > 0 || minutes > 0) {\n\t\t\tdurationStr += `${minutes}m `\n\t\t}\n\n\t\tif (durationStr.length > 0 || seconds > 0) {\n\t\t\tdurationStr += `${seconds}s `\n\t\t}\n\n\t\tif (hours === 0 && minutes === 0) {\n\t\t\tif (seconds > 0) {\n\t\t\t\tdurationStr = `${seconds}.${milliseconds}s`\n\t\t\t} else {\n\t\t\t\tdurationStr += `${milliseconds}ms`\n\t\t\t}\n\t\t}\n\n\t\treturn durationStr.trim()\n\t},\n}\n\nexport default durationUtil\n"],"mappings":";;;;;;AAAA,IAAMA,YAAY,GAAG;EACpBC,YAAY,wBAACC,QAAgB,EAAU;IACtC,IAAIC,YAAY,GAAGD,QAAQ,GAAG,IAAI;MACjCE,OAAO,GAAGC,IAAI,CAACC,KAAK,CAAEJ,QAAQ,GAAG,IAAI,GAAI,EAAE,CAAC;MAC5CK,OAAO,GAAGF,IAAI,CAACC,KAAK,CAAEJ,QAAQ,IAAI,IAAI,GAAG,EAAE,CAAC,GAAI,EAAE,CAAC;MACnDM,KAAK,GAAGH,IAAI,CAACC,KAAK,CAAEJ,QAAQ,IAAI,IAAI,GAAG,EAAE,GAAG,EAAE,CAAC,GAAI,EAAE,CAAC;IAEvD,IAAIO,WAAW,GAAG,EAAE;IAEpB,IAAID,KAAK,GAAG,CAAC,EAAE;MACdC,WAAW,cAAOD,KAAK,OAAI;IAC5B;IAEA,IAAIA,KAAK,GAAG,CAAC,IAAID,OAAO,GAAG,CAAC,EAAE;MAC7BE,WAAW,cAAOF,OAAO,OAAI;IAC9B;IAEA,IAAIE,WAAW,CAACC,MAAM,GAAG,CAAC,IAAIN,OAAO,GAAG,CAAC,EAAE;MAC1CK,WAAW,cAAOL,OAAO,OAAI;IAC9B;IAEA,IAAII,KAAK,KAAK,CAAC,IAAID,OAAO,KAAK,CAAC,EAAE;MACjC,IAAIH,OAAO,GAAG,CAAC,EAAE;QAChBK,WAAW,aAAML,OAAO,cAAID,YAAY,MAAG;MAC5C,CAAC,MAAM;QACNM,WAAW,cAAON,YAAY,OAAI;MACnC;IACD;IAEA,OAAOM,WAAW,CAACE,IAAI,EAAE;EAC1B;AACD,CAAC;AAAA,eAEcX,YAAY;AAAA"}
|
|
@@ -1,66 +1,46 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
4
|
Object.defineProperty(exports, "__esModule", {
|
|
6
5
|
value: true
|
|
7
6
|
});
|
|
8
7
|
exports.eventContractCleanerUtil = void 0;
|
|
9
|
-
|
|
10
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
|
|
12
9
|
var _spruceEventUtils = require("@sprucelabs/spruce-event-utils");
|
|
13
|
-
|
|
14
10
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
15
|
-
|
|
16
11
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
17
|
-
|
|
18
12
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
|
|
19
|
-
|
|
20
13
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
21
|
-
|
|
22
14
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
23
|
-
|
|
24
15
|
var eventContractCleanerUtil = {
|
|
25
16
|
cleanPayloadsAndPermissions: function cleanPayloadsAndPermissions(contract) {
|
|
26
17
|
var cleaned = {
|
|
27
18
|
eventSignatures: {}
|
|
28
19
|
};
|
|
29
|
-
|
|
30
20
|
var signatures = _spruceEventUtils.eventContractUtil.getNamedEventSignatures(contract);
|
|
31
|
-
|
|
32
21
|
var _iterator = _createForOfIteratorHelper(signatures),
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
_step;
|
|
35
23
|
try {
|
|
36
24
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
37
25
|
var _cleanedSig$emitPaylo, _cleanedSig$emitPaylo2, _cleanedSig$emitPaylo3, _cleanedSig$emitPaylo4, _cleanedSig$emitPaylo5, _cleanedSig$emitPaylo6, _cleanedSig$emitPaylo7, _cleanedSig$emitPaylo8, _cleanedSig$emitPaylo9, _cleanedSig$emitPaylo10, _cleanedSig$emitPaylo11, _cleanedSig$emitPaylo12, _cleanedSig$responseP, _cleanedSig$responseP2;
|
|
38
|
-
|
|
39
26
|
var sig = _step.value;
|
|
40
|
-
|
|
41
27
|
var cleanedSig = _objectSpread({}, sig.signature);
|
|
42
|
-
|
|
43
28
|
var emitPayloadFields = Object.keys( //@ts-ignore
|
|
44
29
|
(_cleanedSig$emitPaylo = (_cleanedSig$emitPaylo2 = cleanedSig.emitPayloadSchema) === null || _cleanedSig$emitPaylo2 === void 0 ? void 0 : (_cleanedSig$emitPaylo3 = _cleanedSig$emitPaylo2.fields) === null || _cleanedSig$emitPaylo3 === void 0 ? void 0 : (_cleanedSig$emitPaylo4 = _cleanedSig$emitPaylo3.payload) === null || _cleanedSig$emitPaylo4 === void 0 ? void 0 : (_cleanedSig$emitPaylo5 = _cleanedSig$emitPaylo4.options) === null || _cleanedSig$emitPaylo5 === void 0 ? void 0 : (_cleanedSig$emitPaylo6 = _cleanedSig$emitPaylo5.schema) === null || _cleanedSig$emitPaylo6 === void 0 ? void 0 : _cleanedSig$emitPaylo6.fields) !== null && _cleanedSig$emitPaylo !== void 0 ? _cleanedSig$emitPaylo : {}).length;
|
|
45
30
|
var targetPayloadFields = Object.keys( //@ts-ignore
|
|
46
31
|
(_cleanedSig$emitPaylo7 = (_cleanedSig$emitPaylo8 = cleanedSig.emitPayloadSchema) === null || _cleanedSig$emitPaylo8 === void 0 ? void 0 : (_cleanedSig$emitPaylo9 = _cleanedSig$emitPaylo8.fields) === null || _cleanedSig$emitPaylo9 === void 0 ? void 0 : (_cleanedSig$emitPaylo10 = _cleanedSig$emitPaylo9.target) === null || _cleanedSig$emitPaylo10 === void 0 ? void 0 : (_cleanedSig$emitPaylo11 = _cleanedSig$emitPaylo10.options) === null || _cleanedSig$emitPaylo11 === void 0 ? void 0 : (_cleanedSig$emitPaylo12 = _cleanedSig$emitPaylo11.schema) === null || _cleanedSig$emitPaylo12 === void 0 ? void 0 : _cleanedSig$emitPaylo12.fields) !== null && _cleanedSig$emitPaylo7 !== void 0 ? _cleanedSig$emitPaylo7 : {}).length;
|
|
47
|
-
|
|
48
32
|
if (emitPayloadFields + targetPayloadFields === 0) {
|
|
49
33
|
delete cleanedSig.emitPayloadSchema;
|
|
50
34
|
}
|
|
51
|
-
|
|
52
35
|
if ((_cleanedSig$responseP = cleanedSig.responsePayloadSchema) !== null && _cleanedSig$responseP !== void 0 && _cleanedSig$responseP.fields && Object.keys((_cleanedSig$responseP2 = cleanedSig.responsePayloadSchema) === null || _cleanedSig$responseP2 === void 0 ? void 0 : _cleanedSig$responseP2.fields).length === 0) {
|
|
53
36
|
delete cleanedSig.responsePayloadSchema;
|
|
54
37
|
}
|
|
55
|
-
|
|
56
38
|
if (cleanedSig.emitPermissionContract && cleanedSig.emitPermissionContract.permissions.length === 0) {
|
|
57
39
|
delete cleanedSig.emitPermissionContract;
|
|
58
40
|
}
|
|
59
|
-
|
|
60
41
|
if (cleanedSig.listenPermissionContract && cleanedSig.listenPermissionContract.permissions.length === 0) {
|
|
61
42
|
delete cleanedSig.listenPermissionContract;
|
|
62
43
|
}
|
|
63
|
-
|
|
64
44
|
cleaned.eventSignatures[sig.fullyQualifiedEventName] = cleanedSig;
|
|
65
45
|
}
|
|
66
46
|
} catch (err) {
|
|
@@ -68,7 +48,6 @@ var eventContractCleanerUtil = {
|
|
|
68
48
|
} finally {
|
|
69
49
|
_iterator.f();
|
|
70
50
|
}
|
|
71
|
-
|
|
72
51
|
return cleaned;
|
|
73
52
|
}
|
|
74
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventContractCleaner.utility.js","names":["eventContractCleanerUtil","cleanPayloadsAndPermissions","contract","cleaned","eventSignatures","signatures","eventContractUtil","getNamedEventSignatures","sig","cleanedSig","signature","emitPayloadFields","Object","keys","emitPayloadSchema","fields","payload","options","schema","length","targetPayloadFields","target","responsePayloadSchema","emitPermissionContract","permissions","listenPermissionContract","fullyQualifiedEventName"],"sources":["../../src/utilities/eventContractCleaner.utility.ts"],"sourcesContent":["import { EventContract } from '@sprucelabs/mercury-types'\nimport { eventContractUtil } from '@sprucelabs/spruce-event-utils'\n\nexport const eventContractCleanerUtil = {\n\tcleanPayloadsAndPermissions(contract: EventContract): EventContract {\n\t\tconst cleaned: EventContract = {\n\t\t\teventSignatures: {},\n\t\t}\n\n\t\tconst signatures = eventContractUtil.getNamedEventSignatures(contract)\n\n\t\tfor (const sig of signatures) {\n\t\t\tconst cleanedSig = {\n\t\t\t\t...sig.signature,\n\t\t\t}\n\n\t\t\tconst emitPayloadFields = Object.keys(\n\t\t\t\t//@ts-ignore\n\t\t\t\tcleanedSig.emitPayloadSchema?.fields?.payload?.options?.schema\n\t\t\t\t\t?.fields ?? {}\n\t\t\t).length\n\n\t\t\tconst targetPayloadFields = Object.keys(\n\t\t\t\t//@ts-ignore\n\t\t\t\tcleanedSig.emitPayloadSchema?.fields?.target?.options?.schema?.fields ??\n\t\t\t\t\t{}\n\t\t\t).length\n\n\t\t\tif (emitPayloadFields + targetPayloadFields === 0) {\n\t\t\t\tdelete cleanedSig.emitPayloadSchema\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.responsePayloadSchema?.fields &&\n\t\t\t\tObject.keys(cleanedSig.responsePayloadSchema?.fields).length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.responsePayloadSchema\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.emitPermissionContract &&\n\t\t\t\tcleanedSig.emitPermissionContract.permissions.length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.emitPermissionContract\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.listenPermissionContract &&\n\t\t\t\tcleanedSig.listenPermissionContract.permissions.length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.listenPermissionContract\n\t\t\t}\n\n\t\t\tcleaned.eventSignatures[sig.fullyQualifiedEventName] = cleanedSig\n\t\t}\n\n\t\treturn cleaned\n\t},\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"eventContractCleaner.utility.js","names":["eventContractCleanerUtil","cleanPayloadsAndPermissions","contract","cleaned","eventSignatures","signatures","eventContractUtil","getNamedEventSignatures","sig","cleanedSig","signature","emitPayloadFields","Object","keys","emitPayloadSchema","fields","payload","options","schema","length","targetPayloadFields","target","responsePayloadSchema","emitPermissionContract","permissions","listenPermissionContract","fullyQualifiedEventName"],"sources":["../../src/utilities/eventContractCleaner.utility.ts"],"sourcesContent":["import { EventContract } from '@sprucelabs/mercury-types'\nimport { eventContractUtil } from '@sprucelabs/spruce-event-utils'\n\nexport const eventContractCleanerUtil = {\n\tcleanPayloadsAndPermissions(contract: EventContract): EventContract {\n\t\tconst cleaned: EventContract = {\n\t\t\teventSignatures: {},\n\t\t}\n\n\t\tconst signatures = eventContractUtil.getNamedEventSignatures(contract)\n\n\t\tfor (const sig of signatures) {\n\t\t\tconst cleanedSig = {\n\t\t\t\t...sig.signature,\n\t\t\t}\n\n\t\t\tconst emitPayloadFields = Object.keys(\n\t\t\t\t//@ts-ignore\n\t\t\t\tcleanedSig.emitPayloadSchema?.fields?.payload?.options?.schema\n\t\t\t\t\t?.fields ?? {}\n\t\t\t).length\n\n\t\t\tconst targetPayloadFields = Object.keys(\n\t\t\t\t//@ts-ignore\n\t\t\t\tcleanedSig.emitPayloadSchema?.fields?.target?.options?.schema?.fields ??\n\t\t\t\t\t{}\n\t\t\t).length\n\n\t\t\tif (emitPayloadFields + targetPayloadFields === 0) {\n\t\t\t\tdelete cleanedSig.emitPayloadSchema\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.responsePayloadSchema?.fields &&\n\t\t\t\tObject.keys(cleanedSig.responsePayloadSchema?.fields).length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.responsePayloadSchema\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.emitPermissionContract &&\n\t\t\t\tcleanedSig.emitPermissionContract.permissions.length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.emitPermissionContract\n\t\t\t}\n\n\t\t\tif (\n\t\t\t\tcleanedSig.listenPermissionContract &&\n\t\t\t\tcleanedSig.listenPermissionContract.permissions.length === 0\n\t\t\t) {\n\t\t\t\tdelete cleanedSig.listenPermissionContract\n\t\t\t}\n\n\t\t\tcleaned.eventSignatures[sig.fullyQualifiedEventName] = cleanedSig\n\t\t}\n\n\t\treturn cleaned\n\t},\n}\n"],"mappings":";;;;;;;;AACA;AAAkE;AAAA;AAAA;AAAA;AAAA;AAE3D,IAAMA,wBAAwB,GAAG;EACvCC,2BAA2B,uCAACC,QAAuB,EAAiB;IACnE,IAAMC,OAAsB,GAAG;MAC9BC,eAAe,EAAE,CAAC;IACnB,CAAC;IAED,IAAMC,UAAU,GAAGC,mCAAiB,CAACC,uBAAuB,CAACL,QAAQ,CAAC;IAAA,2CAEpDG,UAAU;MAAA;IAAA;MAA5B,oDAA8B;QAAA;QAAA,IAAnBG,GAAG;QACb,IAAMC,UAAU,qBACZD,GAAG,CAACE,SAAS,CAChB;QAED,IAAMC,iBAAiB,GAAGC,MAAM,CAACC,IAAI,EACpC;QAAA,mDACAJ,UAAU,CAACK,iBAAiB,qFAA5B,uBAA8BC,MAAM,qFAApC,uBAAsCC,OAAO,qFAA7C,uBAA+CC,OAAO,qFAAtD,uBAAwDC,MAAM,2DAA9D,uBACGH,MAAM,yEAAI,CAAC,CAAC,CACf,CAACI,MAAM;QAER,IAAMC,mBAAmB,GAAGR,MAAM,CAACC,IAAI,EACtC;QAAA,oDACAJ,UAAU,CAACK,iBAAiB,qFAA5B,uBAA8BC,MAAM,sFAApC,uBAAsCM,MAAM,uFAA5C,wBAA8CJ,OAAO,uFAArD,wBAAuDC,MAAM,4DAA7D,wBAA+DH,MAAM,2EACpE,CAAC,CAAC,CACH,CAACI,MAAM;QAER,IAAIR,iBAAiB,GAAGS,mBAAmB,KAAK,CAAC,EAAE;UAClD,OAAOX,UAAU,CAACK,iBAAiB;QACpC;QAEA,IACC,yBAAAL,UAAU,CAACa,qBAAqB,kDAAhC,sBAAkCP,MAAM,IACxCH,MAAM,CAACC,IAAI,2BAACJ,UAAU,CAACa,qBAAqB,2DAAhC,uBAAkCP,MAAM,CAAC,CAACI,MAAM,KAAK,CAAC,EACjE;UACD,OAAOV,UAAU,CAACa,qBAAqB;QACxC;QAEA,IACCb,UAAU,CAACc,sBAAsB,IACjCd,UAAU,CAACc,sBAAsB,CAACC,WAAW,CAACL,MAAM,KAAK,CAAC,EACzD;UACD,OAAOV,UAAU,CAACc,sBAAsB;QACzC;QAEA,IACCd,UAAU,CAACgB,wBAAwB,IACnChB,UAAU,CAACgB,wBAAwB,CAACD,WAAW,CAACL,MAAM,KAAK,CAAC,EAC3D;UACD,OAAOV,UAAU,CAACgB,wBAAwB;QAC3C;QAEAtB,OAAO,CAACC,eAAe,CAACI,GAAG,CAACkB,uBAAuB,CAAC,GAAGjB,UAAU;MAClE;IAAC;MAAA;IAAA;MAAA;IAAA;IAED,OAAON,OAAO;EACf;AACD,CAAC;AAAA"}
|
|
@@ -4,88 +4,62 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
|
|
8
7
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
9
|
-
|
|
10
8
|
var formUtil = {
|
|
11
|
-
/** Help guess on answers */
|
|
12
|
-
onWillAskQuestionHandler: function onWillAskQuestionHandler(fieldName, fieldDefinition, values) {
|
|
9
|
+
/** Help guess on answers */onWillAskQuestionHandler: function onWillAskQuestionHandler(fieldName, fieldDefinition, values) {
|
|
13
10
|
switch (fieldName) {
|
|
14
11
|
case 'nameCamel':
|
|
15
12
|
if (!values.nameCamel) {
|
|
16
13
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toCamel(values.nameReadable || '');
|
|
17
14
|
}
|
|
18
|
-
|
|
19
15
|
break;
|
|
20
|
-
|
|
21
16
|
case 'nameCamelPlural':
|
|
22
17
|
if (!values.nameCamelPlural) {
|
|
23
18
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toPlural(_spruceSkillUtils.namesUtil.toCamel(values.nameReadable || ''));
|
|
24
19
|
}
|
|
25
|
-
|
|
26
20
|
break;
|
|
27
|
-
|
|
28
21
|
case 'namePascal':
|
|
29
22
|
if (!values.namePascal) {
|
|
30
23
|
var _ref, _values$nameCamel;
|
|
31
|
-
|
|
32
24
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toPascal((_ref = (_values$nameCamel = values.nameCamel) !== null && _values$nameCamel !== void 0 ? _values$nameCamel : values.nameReadable) !== null && _ref !== void 0 ? _ref : '');
|
|
33
25
|
}
|
|
34
|
-
|
|
35
26
|
break;
|
|
36
|
-
|
|
37
27
|
case 'namePascalPlural':
|
|
38
28
|
if (!values.namePascalPlural) {
|
|
39
29
|
if (values.nameCamelPlural || values.nameReadablePlural) {
|
|
40
30
|
var _ref2, _values$nameCamelPlur;
|
|
41
|
-
|
|
42
31
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toPascal((_ref2 = (_values$nameCamelPlur = values.nameCamelPlural) !== null && _values$nameCamelPlur !== void 0 ? _values$nameCamelPlur : values.nameReadablePlural) !== null && _ref2 !== void 0 ? _ref2 : '');
|
|
43
32
|
} else if (values.nameCamel || values.nameReadable) {
|
|
44
33
|
var _ref3, _values$nameCamel2;
|
|
45
|
-
|
|
46
34
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toPlural(_spruceSkillUtils.namesUtil.toPascal((_ref3 = (_values$nameCamel2 = values.nameCamel) !== null && _values$nameCamel2 !== void 0 ? _values$nameCamel2 : values.nameReadable) !== null && _ref3 !== void 0 ? _ref3 : ''));
|
|
47
35
|
}
|
|
48
36
|
}
|
|
49
|
-
|
|
50
37
|
break;
|
|
51
|
-
|
|
52
38
|
case 'nameConst':
|
|
53
39
|
if (!values.nameConst) {
|
|
54
40
|
var _ref4, _ref5, _values$nameCamel3;
|
|
55
|
-
|
|
56
41
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toConst((_ref4 = (_ref5 = (_values$nameCamel3 = values.nameCamel) !== null && _values$nameCamel3 !== void 0 ? _values$nameCamel3 : values.namePascal) !== null && _ref5 !== void 0 ? _ref5 : values.nameReadable) !== null && _ref4 !== void 0 ? _ref4 : '');
|
|
57
42
|
}
|
|
58
|
-
|
|
59
43
|
break;
|
|
60
|
-
|
|
61
44
|
case 'nameKebab':
|
|
62
45
|
if (!values.nameKebab) {
|
|
63
46
|
var _ref6, _ref7, _values$nameCamel4;
|
|
64
|
-
|
|
65
47
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toKebab((_ref6 = (_ref7 = (_values$nameCamel4 = values.nameCamel) !== null && _values$nameCamel4 !== void 0 ? _values$nameCamel4 : values.namePascal) !== null && _ref7 !== void 0 ? _ref7 : values.nameReadable) !== null && _ref6 !== void 0 ? _ref6 : '');
|
|
66
48
|
}
|
|
67
|
-
|
|
68
49
|
break;
|
|
69
|
-
|
|
70
50
|
case 'nameSnake':
|
|
71
51
|
if (!values.nameSnake) {
|
|
72
52
|
var _ref8, _ref9, _values$nameCamel5;
|
|
73
|
-
|
|
74
53
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toSnake((_ref8 = (_ref9 = (_values$nameCamel5 = values.nameCamel) !== null && _values$nameCamel5 !== void 0 ? _values$nameCamel5 : values.namePascal) !== null && _ref9 !== void 0 ? _ref9 : values.nameReadable) !== null && _ref8 !== void 0 ? _ref8 : '');
|
|
75
54
|
}
|
|
76
|
-
|
|
77
55
|
break;
|
|
78
|
-
|
|
79
56
|
case 'nameSnakePlural':
|
|
80
57
|
if (!values.nameSnake) {
|
|
81
58
|
var _ref10, _ref11, _values$nameCamelPlur2;
|
|
82
|
-
|
|
83
59
|
fieldDefinition.defaultValue = _spruceSkillUtils.namesUtil.toSnake((_ref10 = (_ref11 = (_values$nameCamelPlur2 = values.nameCamelPlural) !== null && _values$nameCamelPlur2 !== void 0 ? _values$nameCamelPlur2 : values.namePascalPlural) !== null && _ref11 !== void 0 ? _ref11 : values.nameReadablePlural) !== null && _ref10 !== void 0 ? _ref10 : '');
|
|
84
60
|
}
|
|
85
|
-
|
|
86
61
|
break;
|
|
87
62
|
}
|
|
88
|
-
|
|
89
63
|
return fieldDefinition;
|
|
90
64
|
}
|
|
91
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.utility.js","names":["formUtil","onWillAskQuestionHandler","fieldName","fieldDefinition","values","nameCamel","defaultValue","namesUtil","toCamel","nameReadable","nameCamelPlural","toPlural","namePascal","toPascal","namePascalPlural","nameReadablePlural","nameConst","toConst","nameKebab","toKebab","nameSnake","toSnake"],"sources":["../../src/utilities/form.utility.ts"],"sourcesContent":["import { Optional } from '@sprucelabs/schema'\nimport { namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport { FieldDefinitions } from '#spruce/schemas/fields/fields.types'\nimport { SpruceSchemas } from '#spruce/schemas/schemas.types'\n\nconst formUtil = {\n\t/** Help guess on answers */\n\tonWillAskQuestionHandler<\n\t\tK extends keyof SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem = keyof SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem,\n\t\tV extends Optional<SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem> = Optional<SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem>\n\t>(fieldName: K, fieldDefinition: FieldDefinitions, values: V) {\n\t\tswitch (fieldName) {\n\t\t\tcase 'nameCamel':\n\t\t\t\tif (!values.nameCamel) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toCamel(\n\t\t\t\t\t\tvalues.nameReadable || ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameCamelPlural':\n\t\t\t\tif (!values.nameCamelPlural) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPlural(\n\t\t\t\t\t\tnamesUtil.toCamel(values.nameReadable || '')\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'namePascal':\n\t\t\t\tif (!values.namePascal) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPascal(\n\t\t\t\t\t\tvalues.nameCamel ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\tcase 'namePascalPlural':\n\t\t\t\tif (!values.namePascalPlural) {\n\t\t\t\t\tif (values.nameCamelPlural || values.nameReadablePlural) {\n\t\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPascal(\n\t\t\t\t\t\t\tvalues.nameCamelPlural ?? values.nameReadablePlural ?? ''\n\t\t\t\t\t\t)\n\t\t\t\t\t} else if (values.nameCamel || values.nameReadable) {\n\t\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPlural(\n\t\t\t\t\t\t\tnamesUtil.toPascal(values.nameCamel ?? values.nameReadable ?? '')\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameConst':\n\t\t\t\tif (!values.nameConst) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toConst(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameKebab':\n\t\t\t\tif (!values.nameKebab) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toKebab(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameSnake':\n\t\t\t\tif (!values.nameSnake) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toSnake(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameSnakePlural':\n\t\t\t\tif (!values.nameSnake) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toSnake(\n\t\t\t\t\t\tvalues.nameCamelPlural ??\n\t\t\t\t\t\t\tvalues.namePascalPlural ??\n\t\t\t\t\t\t\tvalues.nameReadablePlural ??\n\t\t\t\t\t\t\t''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t}\n\t\treturn fieldDefinition\n\t},\n}\n\nexport default formUtil\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.utility.js","names":["formUtil","onWillAskQuestionHandler","fieldName","fieldDefinition","values","nameCamel","defaultValue","namesUtil","toCamel","nameReadable","nameCamelPlural","toPlural","namePascal","toPascal","namePascalPlural","nameReadablePlural","nameConst","toConst","nameKebab","toKebab","nameSnake","toSnake"],"sources":["../../src/utilities/form.utility.ts"],"sourcesContent":["import { Optional } from '@sprucelabs/schema'\nimport { namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport { FieldDefinitions } from '#spruce/schemas/fields/fields.types'\nimport { SpruceSchemas } from '#spruce/schemas/schemas.types'\n\nconst formUtil = {\n\t/** Help guess on answers */\n\tonWillAskQuestionHandler<\n\t\tK extends keyof SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem = keyof SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem,\n\t\tV extends Optional<SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem> = Optional<SpruceSchemas.SpruceCli.v2020_07_22.NamedTemplateItem>\n\t>(fieldName: K, fieldDefinition: FieldDefinitions, values: V) {\n\t\tswitch (fieldName) {\n\t\t\tcase 'nameCamel':\n\t\t\t\tif (!values.nameCamel) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toCamel(\n\t\t\t\t\t\tvalues.nameReadable || ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameCamelPlural':\n\t\t\t\tif (!values.nameCamelPlural) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPlural(\n\t\t\t\t\t\tnamesUtil.toCamel(values.nameReadable || '')\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'namePascal':\n\t\t\t\tif (!values.namePascal) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPascal(\n\t\t\t\t\t\tvalues.nameCamel ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\tbreak\n\t\t\tcase 'namePascalPlural':\n\t\t\t\tif (!values.namePascalPlural) {\n\t\t\t\t\tif (values.nameCamelPlural || values.nameReadablePlural) {\n\t\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPascal(\n\t\t\t\t\t\t\tvalues.nameCamelPlural ?? values.nameReadablePlural ?? ''\n\t\t\t\t\t\t)\n\t\t\t\t\t} else if (values.nameCamel || values.nameReadable) {\n\t\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toPlural(\n\t\t\t\t\t\t\tnamesUtil.toPascal(values.nameCamel ?? values.nameReadable ?? '')\n\t\t\t\t\t\t)\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameConst':\n\t\t\t\tif (!values.nameConst) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toConst(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameKebab':\n\t\t\t\tif (!values.nameKebab) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toKebab(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameSnake':\n\t\t\t\tif (!values.nameSnake) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toSnake(\n\t\t\t\t\t\tvalues.nameCamel ?? values.namePascal ?? values.nameReadable ?? ''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t\tcase 'nameSnakePlural':\n\t\t\t\tif (!values.nameSnake) {\n\t\t\t\t\tfieldDefinition.defaultValue = namesUtil.toSnake(\n\t\t\t\t\t\tvalues.nameCamelPlural ??\n\t\t\t\t\t\t\tvalues.namePascalPlural ??\n\t\t\t\t\t\t\tvalues.nameReadablePlural ??\n\t\t\t\t\t\t\t''\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t\tbreak\n\t\t}\n\t\treturn fieldDefinition\n\t},\n}\n\nexport default formUtil\n"],"mappings":";;;;;;AACA;AAIA,IAAMA,QAAQ,GAAG;EAChB,4BACAC,wBAAwB,oCAGtBC,SAAY,EAAEC,eAAiC,EAAEC,MAAS,EAAE;IAC7D,QAAQF,SAAS;MAChB,KAAK,WAAW;QACf,IAAI,CAACE,MAAM,CAACC,SAAS,EAAE;UACtBF,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACC,OAAO,CAC/CJ,MAAM,CAACK,YAAY,IAAI,EAAE,CACzB;QACF;QACA;MACD,KAAK,iBAAiB;QACrB,IAAI,CAACL,MAAM,CAACM,eAAe,EAAE;UAC5BP,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACI,QAAQ,CAChDJ,2BAAS,CAACC,OAAO,CAACJ,MAAM,CAACK,YAAY,IAAI,EAAE,CAAC,CAC5C;QACF;QACA;MACD,KAAK,YAAY;QAChB,IAAI,CAACL,MAAM,CAACQ,UAAU,EAAE;UAAA;UACvBT,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACM,QAAQ,8BAChDT,MAAM,CAACC,SAAS,iEAAID,MAAM,CAACK,YAAY,uCAAI,EAAE,CAC7C;QACF;QAEA;MACD,KAAK,kBAAkB;QACtB,IAAI,CAACL,MAAM,CAACU,gBAAgB,EAAE;UAC7B,IAAIV,MAAM,CAACM,eAAe,IAAIN,MAAM,CAACW,kBAAkB,EAAE;YAAA;YACxDZ,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACM,QAAQ,mCAChDT,MAAM,CAACM,eAAe,yEAAIN,MAAM,CAACW,kBAAkB,yCAAI,EAAE,CACzD;UACF,CAAC,MAAM,IAAIX,MAAM,CAACC,SAAS,IAAID,MAAM,CAACK,YAAY,EAAE;YAAA;YACnDN,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACI,QAAQ,CAChDJ,2BAAS,CAACM,QAAQ,gCAACT,MAAM,CAACC,SAAS,mEAAID,MAAM,CAACK,YAAY,yCAAI,EAAE,CAAC,CACjE;UACF;QACD;QACA;MACD,KAAK,WAAW;QACf,IAAI,CAACL,MAAM,CAACY,SAAS,EAAE;UAAA;UACtBb,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACU,OAAO,yCAC/Cb,MAAM,CAACC,SAAS,mEAAID,MAAM,CAACQ,UAAU,yCAAIR,MAAM,CAACK,YAAY,yCAAI,EAAE,CAClE;QACF;QACA;MACD,KAAK,WAAW;QACf,IAAI,CAACL,MAAM,CAACc,SAAS,EAAE;UAAA;UACtBf,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACY,OAAO,yCAC/Cf,MAAM,CAACC,SAAS,mEAAID,MAAM,CAACQ,UAAU,yCAAIR,MAAM,CAACK,YAAY,yCAAI,EAAE,CAClE;QACF;QACA;MACD,KAAK,WAAW;QACf,IAAI,CAACL,MAAM,CAACgB,SAAS,EAAE;UAAA;UACtBjB,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACc,OAAO,yCAC/CjB,MAAM,CAACC,SAAS,mEAAID,MAAM,CAACQ,UAAU,yCAAIR,MAAM,CAACK,YAAY,yCAAI,EAAE,CAClE;QACF;QACA;MACD,KAAK,iBAAiB;QACrB,IAAI,CAACL,MAAM,CAACgB,SAAS,EAAE;UAAA;UACtBjB,eAAe,CAACG,YAAY,GAAGC,2BAAS,CAACc,OAAO,+CAC/CjB,MAAM,CAACM,eAAe,2EACrBN,MAAM,CAACU,gBAAgB,2CACvBV,MAAM,CAACW,kBAAkB,2CACzB,EAAE,CACH;QACF;QACA;IAAK;IAEP,OAAOZ,eAAe;EACvB;AACD,CAAC;AAAA,eAEcH,QAAQ;AAAA"}
|