@qpqjs/core 0.4.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/config/settings/keyValueStore/defineKeyValueStore.d.ts +1 -1
- package/lib/commonjs/config/settings/keyValueStore/defineKeyValueStore.js.map +1 -1
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.d.ts +7 -0
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.js +3 -0
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.js.map +1 -0
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeKvsIndex.d.ts +2 -7
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeKvsIndex.js.map +1 -1
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeKvsKey.d.ts +4 -0
- package/lib/commonjs/{types/ActionOverride.js → config/settings/keyValueStore/types/CompositeKvsKey.js} +1 -1
- package/lib/commonjs/config/settings/keyValueStore/types/CompositeKvsKey.js.map +1 -0
- package/lib/commonjs/config/settings/keyValueStore/types/index.d.ts +2 -0
- package/lib/commonjs/config/settings/keyValueStore/types/index.js +2 -0
- package/lib/commonjs/config/settings/keyValueStore/types/index.js.map +1 -1
- package/lib/commonjs/logic/config/getForeignItems.d.ts +3 -0
- package/lib/commonjs/logic/config/getForeignItems.js +11 -0
- package/lib/commonjs/logic/config/getForeignItems.js.map +1 -0
- package/lib/commonjs/logic/config/index.d.ts +1 -0
- package/lib/commonjs/logic/config/index.js +1 -0
- package/lib/commonjs/logic/config/index.js.map +1 -1
- package/lib/commonjs/logic/graphDatabase/GraphResultConverters.d.ts +11 -0
- package/lib/commonjs/logic/graphDatabase/GraphResultConverters.js +3 -0
- package/lib/commonjs/logic/graphDatabase/GraphResultConverters.js.map +1 -0
- package/lib/commonjs/logic/graphDatabase/createAnyGraphResultConverter.d.ts +1 -10
- package/lib/commonjs/logic/graphDatabase/createAnyGraphResultConverter.js.map +1 -1
- package/lib/commonjs/logic/graphDatabase/index.d.ts +1 -0
- package/lib/commonjs/logic/graphDatabase/index.js +1 -0
- package/lib/commonjs/logic/graphDatabase/index.js.map +1 -1
- package/lib/commonjs/qpqCoreUtils.d.ts +1 -1
- package/lib/commonjs/qpqCoreUtils.js +3 -2
- package/lib/commonjs/qpqCoreUtils.js.map +1 -1
- package/lib/commonjs/qpqCoreUtilsLib.d.ts +1 -0
- package/lib/commonjs/stories/paging/PagedDataDrainOptions.d.ts +6 -0
- package/lib/commonjs/stories/paging/PagedDataDrainOptions.js +3 -0
- package/lib/commonjs/stories/paging/PagedDataDrainOptions.js.map +1 -0
- package/lib/commonjs/stories/paging/askPagedDataDrain.d.ts +1 -4
- package/lib/commonjs/stories/paging/askPagedDataDrain.js.map +1 -1
- package/lib/commonjs/stories/paging/index.d.ts +1 -0
- package/lib/commonjs/stories/paging/index.js +1 -0
- package/lib/commonjs/stories/paging/index.js.map +1 -1
- package/lib/commonjs/stories/system/overrideActions/AskOverrideSlot.d.ts +2 -0
- package/lib/commonjs/stories/system/overrideActions/AskOverrideSlot.js +3 -0
- package/lib/commonjs/stories/system/overrideActions/AskOverrideSlot.js.map +1 -0
- package/lib/commonjs/stories/system/overrideActions/OverrideBatchSlot.d.ts +7 -0
- package/lib/commonjs/stories/system/overrideActions/OverrideBatchSlot.js +3 -0
- package/lib/commonjs/stories/system/overrideActions/OverrideBatchSlot.js.map +1 -0
- package/lib/commonjs/stories/system/overrideActions/askOverrideActions.d.ts +1 -1
- package/lib/commonjs/stories/system/overrideActions/askOverrideActions.js.map +1 -1
- package/lib/commonjs/stories/system/overrideActions/askOverrideBatch.d.ts +2 -2
- package/lib/commonjs/stories/system/overrideActions/askOverrideBatch.js +3 -15
- package/lib/commonjs/stories/system/overrideActions/askOverrideBatch.js.map +1 -1
- package/lib/commonjs/stories/system/overrideActions/askOverrideSlotRun.d.ts +11 -0
- package/lib/commonjs/stories/system/overrideActions/askOverrideSlotRun.js +23 -0
- package/lib/commonjs/stories/system/overrideActions/askOverrideSlotRun.js.map +1 -0
- package/lib/commonjs/stories/system/overrideActions/getOwnOverrideHandler.d.ts +2 -1
- package/lib/commonjs/stories/system/overrideActions/getOwnOverrideHandler.js.map +1 -1
- package/lib/commonjs/stories/system/overrideActions/index.d.ts +1 -0
- package/lib/commonjs/stories/system/overrideActions/index.js +1 -0
- package/lib/commonjs/stories/system/overrideActions/index.js.map +1 -1
- package/lib/commonjs/types/{ActionOverride.d.ts → ActionOverrideHandler.d.ts} +0 -3
- package/lib/commonjs/types/ActionOverrideHandler.js +3 -0
- package/lib/commonjs/types/ActionOverrideHandler.js.map +1 -0
- package/lib/commonjs/types/ActionOverrideMap.d.ts +4 -0
- package/lib/commonjs/types/ActionOverrideMap.js +3 -0
- package/lib/commonjs/types/ActionOverrideMap.js.map +1 -0
- package/lib/commonjs/types/authChallenge/CreateAuthChallengeEvent.d.ts +5 -0
- package/lib/commonjs/types/authChallenge/CreateAuthChallengeEvent.js.map +1 -1
- package/lib/commonjs/types/authChallenge/DefineAuthChallengeEvent.d.ts +5 -0
- package/lib/commonjs/types/authChallenge/DefineAuthChallengeEvent.js.map +1 -1
- package/lib/commonjs/types/index.d.ts +2 -1
- package/lib/commonjs/types/index.js +2 -1
- package/lib/commonjs/types/index.js.map +1 -1
- package/lib/commonjs/utils/functions/index.d.ts +1 -0
- package/lib/commonjs/utils/functions/index.js +1 -0
- package/lib/commonjs/utils/functions/index.js.map +1 -1
- package/lib/commonjs/utils/functions/sleep.d.ts +2 -0
- package/lib/commonjs/utils/functions/sleep.js +7 -0
- package/lib/commonjs/utils/functions/sleep.js.map +1 -0
- package/lib/esm/config/settings/keyValueStore/defineKeyValueStore.d.ts +1 -1
- package/lib/esm/config/settings/keyValueStore/defineKeyValueStore.js.map +1 -1
- package/lib/esm/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.d.ts +7 -0
- package/lib/esm/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.js +2 -0
- package/lib/esm/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.js.map +1 -0
- package/lib/esm/config/settings/keyValueStore/types/CompositeKvsIndex.d.ts +2 -7
- package/lib/esm/config/settings/keyValueStore/types/CompositeKvsIndex.js.map +1 -1
- package/lib/esm/config/settings/keyValueStore/types/CompositeKvsKey.d.ts +4 -0
- package/lib/esm/config/settings/keyValueStore/types/CompositeKvsKey.js +2 -0
- package/lib/esm/config/settings/keyValueStore/types/CompositeKvsKey.js.map +1 -0
- package/lib/esm/config/settings/keyValueStore/types/index.d.ts +2 -0
- package/lib/esm/config/settings/keyValueStore/types/index.js +2 -0
- package/lib/esm/config/settings/keyValueStore/types/index.js.map +1 -1
- package/lib/esm/logic/config/getForeignItems.d.ts +3 -0
- package/lib/esm/logic/config/getForeignItems.js +7 -0
- package/lib/esm/logic/config/getForeignItems.js.map +1 -0
- package/lib/esm/logic/config/index.d.ts +1 -0
- package/lib/esm/logic/config/index.js +1 -0
- package/lib/esm/logic/config/index.js.map +1 -1
- package/lib/esm/logic/graphDatabase/GraphResultConverters.d.ts +11 -0
- package/lib/esm/logic/graphDatabase/GraphResultConverters.js +2 -0
- package/lib/esm/logic/graphDatabase/GraphResultConverters.js.map +1 -0
- package/lib/esm/logic/graphDatabase/createAnyGraphResultConverter.d.ts +1 -10
- package/lib/esm/logic/graphDatabase/createAnyGraphResultConverter.js.map +1 -1
- package/lib/esm/logic/graphDatabase/index.d.ts +1 -0
- package/lib/esm/logic/graphDatabase/index.js +1 -0
- package/lib/esm/logic/graphDatabase/index.js.map +1 -1
- package/lib/esm/qpqCoreUtils.d.ts +1 -1
- package/lib/esm/qpqCoreUtils.js +1 -1
- package/lib/esm/qpqCoreUtils.js.map +1 -1
- package/lib/esm/qpqCoreUtilsLib.d.ts +1 -0
- package/lib/esm/stories/paging/PagedDataDrainOptions.d.ts +6 -0
- package/lib/esm/stories/paging/PagedDataDrainOptions.js +2 -0
- package/lib/esm/stories/paging/PagedDataDrainOptions.js.map +1 -0
- package/lib/esm/stories/paging/askPagedDataDrain.d.ts +1 -4
- package/lib/esm/stories/paging/askPagedDataDrain.js.map +1 -1
- package/lib/esm/stories/paging/index.d.ts +1 -0
- package/lib/esm/stories/paging/index.js +1 -0
- package/lib/esm/stories/paging/index.js.map +1 -1
- package/lib/esm/stories/system/overrideActions/AskOverrideSlot.d.ts +2 -0
- package/lib/esm/stories/system/overrideActions/AskOverrideSlot.js +2 -0
- package/lib/esm/stories/system/overrideActions/AskOverrideSlot.js.map +1 -0
- package/lib/esm/stories/system/overrideActions/OverrideBatchSlot.d.ts +7 -0
- package/lib/esm/stories/system/overrideActions/OverrideBatchSlot.js +2 -0
- package/lib/esm/stories/system/overrideActions/OverrideBatchSlot.js.map +1 -0
- package/lib/esm/stories/system/overrideActions/askOverrideActions.d.ts +1 -1
- package/lib/esm/stories/system/overrideActions/askOverrideActions.js.map +1 -1
- package/lib/esm/stories/system/overrideActions/askOverrideBatch.d.ts +2 -2
- package/lib/esm/stories/system/overrideActions/askOverrideBatch.js +4 -16
- package/lib/esm/stories/system/overrideActions/askOverrideBatch.js.map +1 -1
- package/lib/esm/stories/system/overrideActions/askOverrideSlotRun.d.ts +11 -0
- package/lib/esm/stories/system/overrideActions/askOverrideSlotRun.js +20 -0
- package/lib/esm/stories/system/overrideActions/askOverrideSlotRun.js.map +1 -0
- package/lib/esm/stories/system/overrideActions/getOwnOverrideHandler.d.ts +2 -1
- package/lib/esm/stories/system/overrideActions/getOwnOverrideHandler.js.map +1 -1
- package/lib/esm/stories/system/overrideActions/index.d.ts +1 -0
- package/lib/esm/stories/system/overrideActions/index.js +1 -0
- package/lib/esm/stories/system/overrideActions/index.js.map +1 -1
- package/lib/esm/types/{ActionOverride.d.ts → ActionOverrideHandler.d.ts} +0 -3
- package/lib/esm/types/ActionOverrideHandler.js +2 -0
- package/lib/esm/types/ActionOverrideHandler.js.map +1 -0
- package/lib/esm/types/ActionOverrideMap.d.ts +4 -0
- package/lib/esm/types/ActionOverrideMap.js +2 -0
- package/lib/esm/types/ActionOverrideMap.js.map +1 -0
- package/lib/esm/types/authChallenge/CreateAuthChallengeEvent.d.ts +5 -0
- package/lib/esm/types/authChallenge/CreateAuthChallengeEvent.js.map +1 -1
- package/lib/esm/types/authChallenge/DefineAuthChallengeEvent.d.ts +5 -0
- package/lib/esm/types/authChallenge/DefineAuthChallengeEvent.js.map +1 -1
- package/lib/esm/types/index.d.ts +2 -1
- package/lib/esm/types/index.js +2 -1
- package/lib/esm/types/index.js.map +1 -1
- package/lib/esm/utils/functions/index.d.ts +1 -0
- package/lib/esm/utils/functions/index.js +1 -0
- package/lib/esm/utils/functions/index.js.map +1 -1
- package/lib/esm/utils/functions/sleep.d.ts +2 -0
- package/lib/esm/utils/functions/sleep.js +3 -0
- package/lib/esm/utils/functions/sleep.js.map +1 -0
- package/package.json +3 -3
- package/lib/commonjs/types/ActionOverride.js.map +0 -1
- package/lib/esm/types/ActionOverride.js +0 -2
- package/lib/esm/types/ActionOverride.js.map +0 -1
|
@@ -12,7 +12,7 @@ export { getAllKeyValueStoreConfigs, getKeyValueStoreByName, getOwnedKeyValueSto
|
|
|
12
12
|
export { getAllParameterConfigs, getOwnedParameterConfigs, getParameterByName, resolveParameterOrThrow } from './config/settings/parameter/logic';
|
|
13
13
|
export { getAllQueueConfigs, getOwnedQueueConfigs, getQueueByName, resolveQueueOrThrow } from './config/settings/queue/logic';
|
|
14
14
|
export { getAllSecretConfigs, getOwnedSecretConfigs, getSecretByName, resolveSecretOrThrow } from './config/settings/secret/logic';
|
|
15
|
-
export { flattenQpqConfig, getApplicationConfigSetting, getApplicationModuleEnvironment, getApplicationModuleFeature, getApplicationModuleName, getApplicationName, getConfigSetting, getConfigSettings, getOwnedItems, resolveOwnedResourceLocalName, resolveOwnerDeploymentContext, } from './logic/config';
|
|
15
|
+
export { flattenQpqConfig, getApplicationConfigSetting, getApplicationModuleEnvironment, getApplicationModuleFeature, getApplicationModuleName, getApplicationName, getConfigSetting, getConfigSettings, getForeignItems, getOwnedItems, resolveOwnedResourceLocalName, resolveOwnerDeploymentContext, } from './logic/config';
|
|
16
16
|
export declare const getConfigRoot: (qpqConfig: QPQConfig) => string;
|
|
17
17
|
export declare const getFederatedModuleStore: (qpqConfig: QPQConfig) => FederatedModuleStoreQPQConfigSetting | undefined;
|
|
18
18
|
export declare const getNotifyErrorConfigs: (configs: QPQConfig) => NotifyErrorQPQConfigSetting[];
|
package/lib/esm/qpqCoreUtils.js
CHANGED
|
@@ -19,7 +19,7 @@ export { getAllKeyValueStoreConfigs, getKeyValueStoreByName, getOwnedKeyValueSto
|
|
|
19
19
|
export { getAllParameterConfigs, getOwnedParameterConfigs, getParameterByName, resolveParameterOrThrow } from './config/settings/parameter/logic';
|
|
20
20
|
export { getAllQueueConfigs, getOwnedQueueConfigs, getQueueByName, resolveQueueOrThrow } from './config/settings/queue/logic';
|
|
21
21
|
export { getAllSecretConfigs, getOwnedSecretConfigs, getSecretByName, resolveSecretOrThrow } from './config/settings/secret/logic';
|
|
22
|
-
export { flattenQpqConfig, getApplicationConfigSetting, getApplicationModuleEnvironment, getApplicationModuleFeature, getApplicationModuleName, getApplicationName, getConfigSetting, getConfigSettings, getOwnedItems, resolveOwnedResourceLocalName, resolveOwnerDeploymentContext, } from './logic/config';
|
|
22
|
+
export { flattenQpqConfig, getApplicationConfigSetting, getApplicationModuleEnvironment, getApplicationModuleFeature, getApplicationModuleName, getApplicationName, getConfigSetting, getConfigSettings, getForeignItems, getOwnedItems, resolveOwnedResourceLocalName, resolveOwnerDeploymentContext, } from './logic/config';
|
|
23
23
|
export const getConfigRoot = (qpqConfig) => {
|
|
24
24
|
return getApplicationConfigSetting(qpqConfig).configRoot;
|
|
25
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qpqCoreUtils.js","sourceRoot":"","sources":["../../src/qpqCoreUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;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,MAAM,eAAe,GAAG,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACnE,MAAM,WAAW,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAE3D,IAAI,OAAO,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;IAEpC,IAAI,eAAe,KAAK,YAAY,EAAE,CAAC;QACrC,OAAO,GAAG,GAAG,eAAe,IAAI,OAAO,EAAE,CAAC;IAC5C,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,GAAG,GAAG,WAAW,IAAI,OAAO,EAAE,CAAC;IACxC,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,GAAG,GAAG,SAAS,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;IAC7C,CAAC;IAED,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,GAAG,GAAG,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,OAAO,GAAG,GAAG,SAAS,CAAC,QAAQ,MAAM,OAAO,EAAE,CAAC;IAE/C,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { getEventBusByName } from './config/settings/eventBus/logic';\nimport { getAllKeyValueStoreConfigs, getKeyValueStoreByName } from './config/settings/keyValueStore/logic';\nexport { getAllCryptoKeyConfigs, getCryptoKeyByName, getOwnedCryptoKeyConfigs, resolveCryptoKeyOrThrow } from './config/settings/cryptoKey/logic';\nexport { getAllEventBusConfigs, getEventBusByName, getOwnedEventBusConfigs, resolveEventBusOrThrow } from './config/settings/eventBus/logic';\nexport { getJavascriptRuntimeConfig } from './config/settings/javascriptRuntime/logic';\nexport {\n getAllSigningKeyConfigs,\n getOwnedSigningKeyConfigs,\n getSigningKeyByName,\n resolveSigningKeyOrThrow,\n} from './config/settings/signingKey/logic';\nexport {\n getAllStorageDriveConfigs,\n getOwnedStorageDriveConfigs,\n getStorageDriveByName,\n resolveStorageDriveOrThrow,\n} from './config/settings/storageDrive/logic';\nexport {\n getAllUserDirectoryConfigs,\n getOwnedUserDirectoryConfigs,\n getUserDirectoryByName,\n resolveUserDirectoryOrThrow,\n} from './config/settings/userDirectory/logic';\nexport { getUserScriptRunnerConfig, resolveUserScriptRunnerConfigOrThrow } from './config/settings/userScriptRunner/logic';\nimport { getAllQueueConfigs, getQueueByName } from './config/settings/queue/logic';\nimport { getAllStorageDriveConfigs } from './config/settings/storageDrive/logic';\nimport { getAllUserDirectoryConfigs, getOwnedUserDirectoryConfigs } from './config/settings/userDirectory/logic';\nimport {\n getApplicationConfigSetting,\n getApplicationModuleEnvironment,\n getApplicationModuleFeature,\n getApplicationModuleName,\n getApplicationName,\n getConfigSetting,\n getConfigSettings,\n getOwnedItems,\n resolveOwnedResourceLocalName,\n resolveOwnerDeploymentContext,\n} from './logic/config';\nimport { CrossModuleOwner } from './types/CrossModuleOwner';\nimport {\n ActionProcessorsQPQConfigSetting,\n AiQPQConfigSetting,\n ApiBuildPathQPQConfigSetting,\n ApplicationQPQConfigSetting,\n BackendBundleOptions,\n BackendBundleOptionsQPQConfigSetting,\n BundleEntriesQPQConfigSetting,\n DeployEventsQPQConfigSetting,\n DynamicFunctionsQPQConfigSetting,\n EmailTemplates,\n EnvironmentSettingsQPQConfigSetting,\n FederatedModuleStoreQPQConfigSetting,\n FrontendBundleOptions,\n FrontendBundleOptionsQPQConfigSetting,\n GlobalQPQConfigSetting,\n GraphDatabaseQPQConfigSetting,\n InlineFunctionQPQConfigSetting,\n KeyValueStoreQPQConfigSetting,\n ModuleQPQConfigSetting,\n NotifyErrorQPQConfigSetting,\n QPQConfig,\n QPQConfigItem,\n QPQConfigSetting,\n QPQCoreConfigSettingType,\n QpqQueueProcessors,\n QueueQPQConfigSetting,\n ScheduleQPQConfigSetting,\n ServiceSettingsQPQConfigSetting,\n UserDirectoryQPQConfigSetting,\n UserScriptModuleQPQConfigSetting,\n VirtualNetworkQPQConfigSetting,\n} from './config';\nimport {\n ConfigUrl,\n CrossServiceResourceName,\n CustomFullyQualifiedResource,\n FullyQualifiedResource,\n KeyOf,\n Nullable,\n QpqFunctionRuntime,\n ResourceName,\n} from './types';\nimport { isQpqFunctionRuntimeAdvanced } from './utils';\n\n// The config walk and the application accessors live in logic/config; they are part of this\n// namespace for callers.\nexport {\n getAllKeyValueStoreConfigs,\n getKeyValueStoreByName,\n getOwnedKeyValueStoreConfigs,\n resolveKeyValueStoreOrThrow,\n} from './config/settings/keyValueStore/logic';\nexport { getAllParameterConfigs, getOwnedParameterConfigs, getParameterByName, resolveParameterOrThrow } from './config/settings/parameter/logic';\nexport { getAllQueueConfigs, getOwnedQueueConfigs, getQueueByName, resolveQueueOrThrow } from './config/settings/queue/logic';\nexport { getAllSecretConfigs, getOwnedSecretConfigs, getSecretByName, resolveSecretOrThrow } from './config/settings/secret/logic';\nexport {\n flattenQpqConfig,\n getApplicationConfigSetting,\n getApplicationModuleEnvironment,\n getApplicationModuleFeature,\n getApplicationModuleName,\n getApplicationName,\n getConfigSetting,\n getConfigSettings,\n getOwnedItems,\n resolveOwnedResourceLocalName,\n resolveOwnerDeploymentContext,\n} from './logic/config';\n\nexport const getConfigRoot = (qpqConfig: QPQConfig): string => {\n return getApplicationConfigSetting(qpqConfig).configRoot;\n};\n\nexport const getFederatedModuleStore = (qpqConfig: QPQConfig): FederatedModuleStoreQPQConfigSetting | undefined => {\n return getConfigSetting<FederatedModuleStoreQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.federatedModuleStore);\n};\n\nexport const getNotifyErrorConfigs = (configs: QPQConfig): NotifyErrorQPQConfigSetting[] => {\n return getConfigSettings<NotifyErrorQPQConfigSetting>(configs, QPQCoreConfigSettingType.notifyError);\n};\n\n// A FIFO queue can only be fed by a FIFO event bus - standard SNS topics cannot deliver\n// to FIFO SQS queues at all. Called at deploy/startup time (the queue and bus are separate\n// settings, so defineQueue can't validate this on its own).\nexport const assertFifoQueueEventBusSubscriptionsAreValid = (qpqConfig: QPQConfig): void => {\n const invalidSubscriptions = getAllQueueConfigs(qpqConfig)\n .filter((queue) => queue.isFifo)\n .flatMap((queue) =>\n queue.eventBusSubscriptions\n .filter((eventBusName) => !getEventBusByName(eventBusName, qpqConfig)?.isFifo)\n .map((eventBusName) => `queue [${queue.name}] -> event bus [${eventBusName}]`),\n );\n\n if (invalidSubscriptions.length > 0) {\n throw new Error(\n `FIFO queues can only subscribe to FIFO event buses (standard SNS topics cannot deliver to FIFO SQS queues): ${invalidSubscriptions.join(', ')}`,\n );\n }\n};\n\nexport const getStorageDriveNames = (configs: QPQConfig): string[] => {\n return getAllStorageDriveConfigs(configs).map((sd) => sd.storageDrive);\n};\n\nexport const getAllAiConfigs = (qpqConfig: QPQConfig): AiQPQConfigSetting[] => {\n return getConfigSettings<AiQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.ai);\n};\n\n/** The module a setting belongs to: its declared owner, or the executing module when it declares none. */\nexport const resolveOwnerModuleName = (owner: CrossModuleOwner | undefined, qpqConfig: QPQConfig): string =>\n resolveOwnerDeploymentContext(qpqConfig, owner).module;\n\nexport const getAllGraphDatabaseConfigs = (qpqConfig: QPQConfig): GraphDatabaseQPQConfigSetting[] => {\n const graphDatabases = getConfigSettings<GraphDatabaseQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.graphDatabase);\n\n return graphDatabases;\n};\n\nexport const getDeployEventConfigs = (qpqConfig: QPQConfig): DeployEventsQPQConfigSetting[] => {\n const deployEvents = getConfigSettings<DeployEventsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.deployEvent);\n\n return deployEvents;\n};\n\nexport const getDeployEventByName = (name: string, qpqConfig: QPQConfig): Nullable<DeployEventsQPQConfigSetting> =>\n getDeployEventConfigs(qpqConfig).find((c) => c.name === name) ?? null;\n\nexport const getVirtualNetworkConfigs = (qpqConfig: QPQConfig): VirtualNetworkQPQConfigSetting[] => {\n return getConfigSettings<VirtualNetworkQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.virtualNetwork);\n};\n\nexport const getOwnedGraphDatabases = (qpqConfig: QPQConfig): GraphDatabaseQPQConfigSetting[] => {\n return getOwnedItems(getAllGraphDatabaseConfigs(qpqConfig), qpqConfig);\n};\n\nexport const resolveCrossServiceResourceName = (resourceName: ResourceName): CrossServiceResourceName => {\n if (typeof resourceName === 'string') {\n return {\n name: resourceName,\n };\n }\n\n return resourceName;\n};\n\nexport const getActionProcessorSources = (configs: QPQConfig): QpqFunctionRuntime[] => {\n const sources = getConfigSettings<ActionProcessorsQPQConfigSetting>(configs, QPQCoreConfigSettingType.actionProcessors).map((ap) => ap.runtime);\n\n return sources;\n};\n\nexport const getUserDirectoryEmailTemplates = (qpqConfig: QPQConfig): Record<string, EmailTemplates> => {\n const record = getAllUserDirectoryConfigs(qpqConfig).reduce(\n (acc, ud) => ({\n ...acc,\n [ud.name]: ud.emailTemplates,\n }),\n {} as Record<string, EmailTemplates>,\n );\n\n return record;\n};\n\nexport const getScheduleEvents = (configs: QPQConfig): ScheduleQPQConfigSetting[] => {\n return getConfigSettings<ScheduleQPQConfigSetting>(configs, QPQCoreConfigSettingType.schedule);\n};\n\nexport const getOwnedScheduleEvents = (qpqConfig: QPQConfig): ScheduleQPQConfigSetting[] => {\n return getOwnedItems(getScheduleEvents(qpqConfig), qpqConfig);\n};\n\nexport const getQueueSrcEntries = (configs: QPQConfig): QpqFunctionRuntime[] => {\n return getAllQueueConfigs(configs).reduce((acc, qc) => [...acc, ...Object.values(qc.qpqQueueProcessors)], [] as QpqFunctionRuntime[]);\n};\n\nexport const getUserDirectorySrcEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n // We just want the ones this service owns.\n const userConfigs = getOwnedUserDirectoryConfigs(qpqConfig);\n\n return userConfigs\n .reduce((acc, ud) => [...acc, ...Object.values(ud.emailTemplates), ...Object.values(ud.customAuthRuntime || {})], [] as QpqFunctionRuntime[])\n .filter((se) => !!se);\n};\n\nexport const getAllInlineFunctions = (qpqConfig: QPQConfig): InlineFunctionQPQConfigSetting[] => {\n return getConfigSettings<InlineFunctionQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.inlineFunction);\n};\n\nexport const getOwnedInlineFunctions = (qpqConfig: QPQConfig): InlineFunctionQPQConfigSetting[] => {\n return getOwnedItems(getAllInlineFunctions(qpqConfig), qpqConfig);\n};\n\nexport const getAllBundleEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n return getConfigSettings<BundleEntriesQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.bundleEntries).flatMap((setting) => setting.runtimes);\n};\n\nexport const getAllDynamicFunctions = (qpqConfig: QPQConfig): DynamicFunctionsQPQConfigSetting[] => {\n return getConfigSettings<DynamicFunctionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.dynamicFunctions);\n};\n\nexport const getAllUserScriptModules = (qpqConfig: QPQConfig): UserScriptModuleQPQConfigSetting[] => {\n return getConfigSettings<UserScriptModuleQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.userScriptModule);\n};\n\n// The sandbox this service runs user scripts in (defineUserScriptRunner), or null when\n// the service has not declared one.\n// Runtime-attached action processor override sources must join the bundler sweep,\n// or the deployed bundle omits them and the dynamic load fails at runtime.\nexport const expandSrcEntriesWithActionProcessors = (runtimes: QpqFunctionRuntime[]): QpqFunctionRuntime[] => {\n return runtimes.flatMap((runtime) => [runtime, ...((isQpqFunctionRuntimeAdvanced(runtime) && runtime.actionProcessors) || [])]);\n};\n\n// Used in bundlers to know where and what to build and index\nexport const getAllSrcEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n const result = [\n ...getActionProcessorSources(qpqConfig),\n ...getScheduleEvents(qpqConfig).map((r) => r.runtime),\n ...getQueueSrcEntries(qpqConfig),\n ...getUserDirectorySrcEntries(qpqConfig),\n ...getDeployEventConfigs(qpqConfig).map((r) => r.runtime),\n ...getAllStorageDriveConfigs(qpqConfig).flatMap((sd) => [sd.onEvent?.create, sd.onEvent?.delete].filter((r) => !!r) as QpqFunctionRuntime[]),\n // A store's change-stream handler. Missing here, the bundler never sees it: the lambda\n // zip omits it and the dev server's dynamic loader has nothing to resolve, so the handler\n // simply never runs, and since nothing throws, the only symptom is a projection that\n // silently stops updating.\n ...(getAllKeyValueStoreConfigs(qpqConfig)\n .map((kvs) => kvs.onStream?.runtime)\n .filter((runtime) => !!runtime) as QpqFunctionRuntime[]),\n ...getAllInlineFunctions(qpqConfig).map((f) => f.runtime),\n ...getAllDynamicFunctions(qpqConfig).map((f) => f.runtime),\n ...getAllBundleEntries(qpqConfig),\n // Loaded only when a script is built or run, so nothing else would make the bundler see it.\n ...getAllUserScriptModules(qpqConfig).flatMap((m) => (m.typesRuntime ? [m.runtime, m.typesRuntime] : [m.runtime])),\n ];\n\n return expandSrcEntriesWithActionProcessors(result);\n};\n\nexport const getApiBuildPath = (qpqConfig: QPQConfig): string => {\n const [apiBuildPathConfig] = getConfigSettings<ApiBuildPathQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.apiBuildPath);\n\n if (!apiBuildPathConfig) {\n throw new Error(`Can not find app base path use defineApiBuildPath or defineApplicationModule`);\n }\n\n return apiBuildPathConfig.apiBuildPath;\n};\n\nexport const getSrcFilenameFromQpqFunctionRuntime = (qpqFunctionRuntime: QpqFunctionRuntime): string => {\n if (isQpqFunctionRuntimeAdvanced(qpqFunctionRuntime)) {\n return qpqFunctionRuntime.relativePath.split('/').pop() || '';\n }\n\n const [srcPath = ''] = qpqFunctionRuntime.split('::');\n return srcPath.split('/').pop() || '';\n};\n\nexport const getGlobalConfigValue = <T>(qpqConfig: QPQConfig, name: string): T => {\n const global = getConfigSettings<GlobalQPQConfigSetting<T>>(qpqConfig, QPQCoreConfigSettingType.global).find((g) => g.key === name);\n\n if (!global) {\n throw new Error(`Global config ${name} not found`);\n }\n\n return global.value;\n};\n\n// Resolves a global by name, giving precedence to globals declared on the\n// executing function (functionGlobals) before falling back to the service-wide\n// config global. Throws (via getGlobalConfigValue) if the name is found in neither.\nexport const resolveGlobalValue = <T>(qpqConfig: QPQConfig, functionGlobals: Record<string, unknown> | undefined, name: string): T => {\n if (functionGlobals && Object.prototype.hasOwnProperty.call(functionGlobals, name)) {\n return functionGlobals[name] as T;\n }\n\n return getGlobalConfigValue<T>(qpqConfig, name);\n};\n\n/**\n * Merges every `defineBackendBundleOptions` in the config into a single set of\n * bundler directives. Services compose config from many fragments, so each\n * fragment can declare the build quirks of its own dependencies.\n */\nexport const getBackendBundleOptions = (qpqConfig: QPQConfig): Required<BackendBundleOptions> => {\n const settings = getConfigSettings<BackendBundleOptionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.backendBundleOptions);\n\n return {\n externals: settings.flatMap((setting) => setting.externals),\n ignoreModules: settings.flatMap((setting) => setting.ignoreModules),\n ignoreWarnings: settings.flatMap((setting) => setting.ignoreWarnings),\n };\n};\n\n/**\n * Merges every `defineFrontendBundleOptions` in the config into a single set\n * of views-bundler directives.\n */\nexport const getFrontendBundleOptions = (qpqConfig: QPQConfig): Required<FrontendBundleOptions> => {\n const settings = getConfigSettings<FrontendBundleOptionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.frontendBundleOptions);\n\n return {\n sharedSingletons: settings.flatMap((setting) => setting.sharedSingletons),\n };\n};\n\nexport const getUniqueKeyForSetting = (setting: QPQConfigSetting) => {\n const type = setting.configSettingType.split('/').pop();\n const key = setting.uniqueKey;\n\n return `${type}${key}`;\n};\n\nexport const getQueueQueueProcessors = (name: string, qpqConfig: QPQConfig): QpqQueueProcessors => {\n return getQueueByName(name, qpqConfig)?.qpqQueueProcessors || {};\n};\n\nexport const convertCustomFullyQualifiedResourceToGeneric = <T extends string>(resource: CustomFullyQualifiedResource<T>): FullyQualifiedResource => {\n type KeyType = KeyOf<CustomFullyQualifiedResource<T>>;\n const key: KeyType = Array.from(Object.keys(resource)).find(\n (k) => k !== 'module' && k !== 'application' && k !== 'feature' && k !== 'environment',\n ) as any as KeyType;\n\n const resourceName = resource[key as T];\n\n return {\n module: resource.module,\n application: resource.application,\n feature: resource.feature,\n environment: resource.environment,\n resourceName: resourceName,\n };\n};\n\nexport const getFullyQualifiedResourceName = (qpqConfig: QPQConfig, resourceName: string, config?: QPQConfigSetting): FullyQualifiedResource => {\n const { application, module, environment, feature } = resolveOwnerDeploymentContext(qpqConfig, config?.owner);\n\n return {\n resourceName: resolveOwnedResourceLocalName(resourceName, config?.owner),\n\n application,\n environment,\n module,\n feature: feature || '',\n };\n};\n\n// Fully Qualified Resource Names\nexport const getKeyValueStoreFullyQualifiedResourceName = (kvsName: string, qpqConfig: QPQConfig): FullyQualifiedResource => {\n const storeConfig = getKeyValueStoreByName(kvsName, qpqConfig) ?? undefined;\n\n return getFullyQualifiedResourceName(qpqConfig, kvsName, storeConfig);\n};\n\nexport const isSameResource = (resourceA: FullyQualifiedResource, resourceB: FullyQualifiedResource): boolean => {\n return (\n resourceA.application === resourceB.application &&\n resourceA.environment === resourceB.environment &&\n resourceA.feature === resourceB.feature &&\n resourceA.module === resourceB.module &&\n resourceA.resourceName === resourceB.resourceName\n );\n};\n\nexport const getFullUrlFromConfigUrl = (configUrl: ConfigUrl, qpqConfig: QPQConfig): string => {\n if (typeof configUrl === 'string') {\n return configUrl;\n }\n\n const confEnvironment = getApplicationModuleEnvironment(qpqConfig);\n const confFeature = getApplicationModuleFeature(qpqConfig);\n\n let fullUrl = `${configUrl.domain}`;\n\n if (confEnvironment !== 'production') {\n fullUrl = `${confEnvironment}.${fullUrl}`;\n }\n\n if (confFeature) {\n fullUrl = `${confFeature}.${fullUrl}`;\n }\n\n if (configUrl.module) {\n fullUrl = `${configUrl.module}.${fullUrl}`;\n }\n\n if (configUrl.path) {\n fullUrl = `${fullUrl}${configUrl.path}`;\n }\n\n fullUrl = `${configUrl.protocol}://${fullUrl}`;\n\n return fullUrl;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"qpqCoreUtils.js","sourceRoot":"","sources":["../../src/qpqCoreUtils.ts"],"names":[],"mappings":"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KAAK,QAAQ,EAAE,CAAC;QAClC,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM,eAAe,GAAG,+BAA+B,CAAC,SAAS,CAAC,CAAC;IACnE,MAAM,WAAW,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAE3D,IAAI,OAAO,GAAG,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC;IAEpC,IAAI,eAAe,KAAK,YAAY,EAAE,CAAC;QACrC,OAAO,GAAG,GAAG,eAAe,IAAI,OAAO,EAAE,CAAC;IAC5C,CAAC;IAED,IAAI,WAAW,EAAE,CAAC;QAChB,OAAO,GAAG,GAAG,WAAW,IAAI,OAAO,EAAE,CAAC;IACxC,CAAC;IAED,IAAI,SAAS,CAAC,MAAM,EAAE,CAAC;QACrB,OAAO,GAAG,GAAG,SAAS,CAAC,MAAM,IAAI,OAAO,EAAE,CAAC;IAC7C,CAAC;IAED,IAAI,SAAS,CAAC,IAAI,EAAE,CAAC;QACnB,OAAO,GAAG,GAAG,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,CAAC;IAC1C,CAAC;IAED,OAAO,GAAG,GAAG,SAAS,CAAC,QAAQ,MAAM,OAAO,EAAE,CAAC;IAE/C,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["import { getEventBusByName } from './config/settings/eventBus/logic';\nimport { getAllKeyValueStoreConfigs, getKeyValueStoreByName } from './config/settings/keyValueStore/logic';\nexport { getAllCryptoKeyConfigs, getCryptoKeyByName, getOwnedCryptoKeyConfigs, resolveCryptoKeyOrThrow } from './config/settings/cryptoKey/logic';\nexport { getAllEventBusConfigs, getEventBusByName, getOwnedEventBusConfigs, resolveEventBusOrThrow } from './config/settings/eventBus/logic';\nexport { getJavascriptRuntimeConfig } from './config/settings/javascriptRuntime/logic';\nexport {\n getAllSigningKeyConfigs,\n getOwnedSigningKeyConfigs,\n getSigningKeyByName,\n resolveSigningKeyOrThrow,\n} from './config/settings/signingKey/logic';\nexport {\n getAllStorageDriveConfigs,\n getOwnedStorageDriveConfigs,\n getStorageDriveByName,\n resolveStorageDriveOrThrow,\n} from './config/settings/storageDrive/logic';\nexport {\n getAllUserDirectoryConfigs,\n getOwnedUserDirectoryConfigs,\n getUserDirectoryByName,\n resolveUserDirectoryOrThrow,\n} from './config/settings/userDirectory/logic';\nexport { getUserScriptRunnerConfig, resolveUserScriptRunnerConfigOrThrow } from './config/settings/userScriptRunner/logic';\nimport { getAllQueueConfigs, getQueueByName } from './config/settings/queue/logic';\nimport { getAllStorageDriveConfigs } from './config/settings/storageDrive/logic';\nimport { getAllUserDirectoryConfigs, getOwnedUserDirectoryConfigs } from './config/settings/userDirectory/logic';\nimport {\n getApplicationConfigSetting,\n getApplicationModuleEnvironment,\n getApplicationModuleFeature,\n getApplicationModuleName,\n getApplicationName,\n getConfigSetting,\n getConfigSettings,\n getForeignItems,\n getOwnedItems,\n resolveOwnedResourceLocalName,\n resolveOwnerDeploymentContext,\n} from './logic/config';\nimport { CrossModuleOwner } from './types/CrossModuleOwner';\nimport {\n ActionProcessorsQPQConfigSetting,\n AiQPQConfigSetting,\n ApiBuildPathQPQConfigSetting,\n ApplicationQPQConfigSetting,\n BackendBundleOptions,\n BackendBundleOptionsQPQConfigSetting,\n BundleEntriesQPQConfigSetting,\n DeployEventsQPQConfigSetting,\n DynamicFunctionsQPQConfigSetting,\n EmailTemplates,\n EnvironmentSettingsQPQConfigSetting,\n FederatedModuleStoreQPQConfigSetting,\n FrontendBundleOptions,\n FrontendBundleOptionsQPQConfigSetting,\n GlobalQPQConfigSetting,\n GraphDatabaseQPQConfigSetting,\n InlineFunctionQPQConfigSetting,\n KeyValueStoreQPQConfigSetting,\n ModuleQPQConfigSetting,\n NotifyErrorQPQConfigSetting,\n QPQConfig,\n QPQConfigItem,\n QPQConfigSetting,\n QPQCoreConfigSettingType,\n QpqQueueProcessors,\n QueueQPQConfigSetting,\n ScheduleQPQConfigSetting,\n ServiceSettingsQPQConfigSetting,\n UserDirectoryQPQConfigSetting,\n UserScriptModuleQPQConfigSetting,\n VirtualNetworkQPQConfigSetting,\n} from './config';\nimport {\n ConfigUrl,\n CrossServiceResourceName,\n CustomFullyQualifiedResource,\n FullyQualifiedResource,\n KeyOf,\n Nullable,\n QpqFunctionRuntime,\n ResourceName,\n} from './types';\nimport { isQpqFunctionRuntimeAdvanced } from './utils';\n\n// The config walk and the application accessors live in logic/config; they are part of this\n// namespace for callers.\nexport {\n getAllKeyValueStoreConfigs,\n getKeyValueStoreByName,\n getOwnedKeyValueStoreConfigs,\n resolveKeyValueStoreOrThrow,\n} from './config/settings/keyValueStore/logic';\nexport { getAllParameterConfigs, getOwnedParameterConfigs, getParameterByName, resolveParameterOrThrow } from './config/settings/parameter/logic';\nexport { getAllQueueConfigs, getOwnedQueueConfigs, getQueueByName, resolveQueueOrThrow } from './config/settings/queue/logic';\nexport { getAllSecretConfigs, getOwnedSecretConfigs, getSecretByName, resolveSecretOrThrow } from './config/settings/secret/logic';\nexport {\n flattenQpqConfig,\n getApplicationConfigSetting,\n getApplicationModuleEnvironment,\n getApplicationModuleFeature,\n getApplicationModuleName,\n getApplicationName,\n getConfigSetting,\n getConfigSettings,\n getForeignItems,\n getOwnedItems,\n resolveOwnedResourceLocalName,\n resolveOwnerDeploymentContext,\n} from './logic/config';\n\nexport const getConfigRoot = (qpqConfig: QPQConfig): string => {\n return getApplicationConfigSetting(qpqConfig).configRoot;\n};\n\nexport const getFederatedModuleStore = (qpqConfig: QPQConfig): FederatedModuleStoreQPQConfigSetting | undefined => {\n return getConfigSetting<FederatedModuleStoreQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.federatedModuleStore);\n};\n\nexport const getNotifyErrorConfigs = (configs: QPQConfig): NotifyErrorQPQConfigSetting[] => {\n return getConfigSettings<NotifyErrorQPQConfigSetting>(configs, QPQCoreConfigSettingType.notifyError);\n};\n\n// A FIFO queue can only be fed by a FIFO event bus - standard SNS topics cannot deliver\n// to FIFO SQS queues at all. Called at deploy/startup time (the queue and bus are separate\n// settings, so defineQueue can't validate this on its own).\nexport const assertFifoQueueEventBusSubscriptionsAreValid = (qpqConfig: QPQConfig): void => {\n const invalidSubscriptions = getAllQueueConfigs(qpqConfig)\n .filter((queue) => queue.isFifo)\n .flatMap((queue) =>\n queue.eventBusSubscriptions\n .filter((eventBusName) => !getEventBusByName(eventBusName, qpqConfig)?.isFifo)\n .map((eventBusName) => `queue [${queue.name}] -> event bus [${eventBusName}]`),\n );\n\n if (invalidSubscriptions.length > 0) {\n throw new Error(\n `FIFO queues can only subscribe to FIFO event buses (standard SNS topics cannot deliver to FIFO SQS queues): ${invalidSubscriptions.join(', ')}`,\n );\n }\n};\n\nexport const getStorageDriveNames = (configs: QPQConfig): string[] => {\n return getAllStorageDriveConfigs(configs).map((sd) => sd.storageDrive);\n};\n\nexport const getAllAiConfigs = (qpqConfig: QPQConfig): AiQPQConfigSetting[] => {\n return getConfigSettings<AiQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.ai);\n};\n\n/** The module a setting belongs to: its declared owner, or the executing module when it declares none. */\nexport const resolveOwnerModuleName = (owner: CrossModuleOwner | undefined, qpqConfig: QPQConfig): string =>\n resolveOwnerDeploymentContext(qpqConfig, owner).module;\n\nexport const getAllGraphDatabaseConfigs = (qpqConfig: QPQConfig): GraphDatabaseQPQConfigSetting[] => {\n const graphDatabases = getConfigSettings<GraphDatabaseQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.graphDatabase);\n\n return graphDatabases;\n};\n\nexport const getDeployEventConfigs = (qpqConfig: QPQConfig): DeployEventsQPQConfigSetting[] => {\n const deployEvents = getConfigSettings<DeployEventsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.deployEvent);\n\n return deployEvents;\n};\n\nexport const getDeployEventByName = (name: string, qpqConfig: QPQConfig): Nullable<DeployEventsQPQConfigSetting> =>\n getDeployEventConfigs(qpqConfig).find((c) => c.name === name) ?? null;\n\nexport const getVirtualNetworkConfigs = (qpqConfig: QPQConfig): VirtualNetworkQPQConfigSetting[] => {\n return getConfigSettings<VirtualNetworkQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.virtualNetwork);\n};\n\nexport const getOwnedGraphDatabases = (qpqConfig: QPQConfig): GraphDatabaseQPQConfigSetting[] => {\n return getOwnedItems(getAllGraphDatabaseConfigs(qpqConfig), qpqConfig);\n};\n\nexport const resolveCrossServiceResourceName = (resourceName: ResourceName): CrossServiceResourceName => {\n if (typeof resourceName === 'string') {\n return {\n name: resourceName,\n };\n }\n\n return resourceName;\n};\n\nexport const getActionProcessorSources = (configs: QPQConfig): QpqFunctionRuntime[] => {\n const sources = getConfigSettings<ActionProcessorsQPQConfigSetting>(configs, QPQCoreConfigSettingType.actionProcessors).map((ap) => ap.runtime);\n\n return sources;\n};\n\nexport const getUserDirectoryEmailTemplates = (qpqConfig: QPQConfig): Record<string, EmailTemplates> => {\n const record = getAllUserDirectoryConfigs(qpqConfig).reduce(\n (acc, ud) => ({\n ...acc,\n [ud.name]: ud.emailTemplates,\n }),\n {} as Record<string, EmailTemplates>,\n );\n\n return record;\n};\n\nexport const getScheduleEvents = (configs: QPQConfig): ScheduleQPQConfigSetting[] => {\n return getConfigSettings<ScheduleQPQConfigSetting>(configs, QPQCoreConfigSettingType.schedule);\n};\n\nexport const getOwnedScheduleEvents = (qpqConfig: QPQConfig): ScheduleQPQConfigSetting[] => {\n return getOwnedItems(getScheduleEvents(qpqConfig), qpqConfig);\n};\n\nexport const getQueueSrcEntries = (configs: QPQConfig): QpqFunctionRuntime[] => {\n return getAllQueueConfigs(configs).reduce((acc, qc) => [...acc, ...Object.values(qc.qpqQueueProcessors)], [] as QpqFunctionRuntime[]);\n};\n\nexport const getUserDirectorySrcEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n // We just want the ones this service owns.\n const userConfigs = getOwnedUserDirectoryConfigs(qpqConfig);\n\n return userConfigs\n .reduce((acc, ud) => [...acc, ...Object.values(ud.emailTemplates), ...Object.values(ud.customAuthRuntime || {})], [] as QpqFunctionRuntime[])\n .filter((se) => !!se);\n};\n\nexport const getAllInlineFunctions = (qpqConfig: QPQConfig): InlineFunctionQPQConfigSetting[] => {\n return getConfigSettings<InlineFunctionQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.inlineFunction);\n};\n\nexport const getOwnedInlineFunctions = (qpqConfig: QPQConfig): InlineFunctionQPQConfigSetting[] => {\n return getOwnedItems(getAllInlineFunctions(qpqConfig), qpqConfig);\n};\n\nexport const getAllBundleEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n return getConfigSettings<BundleEntriesQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.bundleEntries).flatMap((setting) => setting.runtimes);\n};\n\nexport const getAllDynamicFunctions = (qpqConfig: QPQConfig): DynamicFunctionsQPQConfigSetting[] => {\n return getConfigSettings<DynamicFunctionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.dynamicFunctions);\n};\n\nexport const getAllUserScriptModules = (qpqConfig: QPQConfig): UserScriptModuleQPQConfigSetting[] => {\n return getConfigSettings<UserScriptModuleQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.userScriptModule);\n};\n\n// The sandbox this service runs user scripts in (defineUserScriptRunner), or null when\n// the service has not declared one.\n// Runtime-attached action processor override sources must join the bundler sweep,\n// or the deployed bundle omits them and the dynamic load fails at runtime.\nexport const expandSrcEntriesWithActionProcessors = (runtimes: QpqFunctionRuntime[]): QpqFunctionRuntime[] => {\n return runtimes.flatMap((runtime) => [runtime, ...((isQpqFunctionRuntimeAdvanced(runtime) && runtime.actionProcessors) || [])]);\n};\n\n// Used in bundlers to know where and what to build and index\nexport const getAllSrcEntries = (qpqConfig: QPQConfig): QpqFunctionRuntime[] => {\n const result = [\n ...getActionProcessorSources(qpqConfig),\n ...getScheduleEvents(qpqConfig).map((r) => r.runtime),\n ...getQueueSrcEntries(qpqConfig),\n ...getUserDirectorySrcEntries(qpqConfig),\n ...getDeployEventConfigs(qpqConfig).map((r) => r.runtime),\n ...getAllStorageDriveConfigs(qpqConfig).flatMap((sd) => [sd.onEvent?.create, sd.onEvent?.delete].filter((r) => !!r) as QpqFunctionRuntime[]),\n // A store's change-stream handler. Missing here, the bundler never sees it: the lambda\n // zip omits it and the dev server's dynamic loader has nothing to resolve, so the handler\n // simply never runs, and since nothing throws, the only symptom is a projection that\n // silently stops updating.\n ...(getAllKeyValueStoreConfigs(qpqConfig)\n .map((kvs) => kvs.onStream?.runtime)\n .filter((runtime) => !!runtime) as QpqFunctionRuntime[]),\n ...getAllInlineFunctions(qpqConfig).map((f) => f.runtime),\n ...getAllDynamicFunctions(qpqConfig).map((f) => f.runtime),\n ...getAllBundleEntries(qpqConfig),\n // Loaded only when a script is built or run, so nothing else would make the bundler see it.\n ...getAllUserScriptModules(qpqConfig).flatMap((m) => (m.typesRuntime ? [m.runtime, m.typesRuntime] : [m.runtime])),\n ];\n\n return expandSrcEntriesWithActionProcessors(result);\n};\n\nexport const getApiBuildPath = (qpqConfig: QPQConfig): string => {\n const [apiBuildPathConfig] = getConfigSettings<ApiBuildPathQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.apiBuildPath);\n\n if (!apiBuildPathConfig) {\n throw new Error(`Can not find app base path use defineApiBuildPath or defineApplicationModule`);\n }\n\n return apiBuildPathConfig.apiBuildPath;\n};\n\nexport const getSrcFilenameFromQpqFunctionRuntime = (qpqFunctionRuntime: QpqFunctionRuntime): string => {\n if (isQpqFunctionRuntimeAdvanced(qpqFunctionRuntime)) {\n return qpqFunctionRuntime.relativePath.split('/').pop() || '';\n }\n\n const [srcPath = ''] = qpqFunctionRuntime.split('::');\n return srcPath.split('/').pop() || '';\n};\n\nexport const getGlobalConfigValue = <T>(qpqConfig: QPQConfig, name: string): T => {\n const global = getConfigSettings<GlobalQPQConfigSetting<T>>(qpqConfig, QPQCoreConfigSettingType.global).find((g) => g.key === name);\n\n if (!global) {\n throw new Error(`Global config ${name} not found`);\n }\n\n return global.value;\n};\n\n// Resolves a global by name, giving precedence to globals declared on the\n// executing function (functionGlobals) before falling back to the service-wide\n// config global. Throws (via getGlobalConfigValue) if the name is found in neither.\nexport const resolveGlobalValue = <T>(qpqConfig: QPQConfig, functionGlobals: Record<string, unknown> | undefined, name: string): T => {\n if (functionGlobals && Object.prototype.hasOwnProperty.call(functionGlobals, name)) {\n return functionGlobals[name] as T;\n }\n\n return getGlobalConfigValue<T>(qpqConfig, name);\n};\n\n/**\n * Merges every `defineBackendBundleOptions` in the config into a single set of\n * bundler directives. Services compose config from many fragments, so each\n * fragment can declare the build quirks of its own dependencies.\n */\nexport const getBackendBundleOptions = (qpqConfig: QPQConfig): Required<BackendBundleOptions> => {\n const settings = getConfigSettings<BackendBundleOptionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.backendBundleOptions);\n\n return {\n externals: settings.flatMap((setting) => setting.externals),\n ignoreModules: settings.flatMap((setting) => setting.ignoreModules),\n ignoreWarnings: settings.flatMap((setting) => setting.ignoreWarnings),\n };\n};\n\n/**\n * Merges every `defineFrontendBundleOptions` in the config into a single set\n * of views-bundler directives.\n */\nexport const getFrontendBundleOptions = (qpqConfig: QPQConfig): Required<FrontendBundleOptions> => {\n const settings = getConfigSettings<FrontendBundleOptionsQPQConfigSetting>(qpqConfig, QPQCoreConfigSettingType.frontendBundleOptions);\n\n return {\n sharedSingletons: settings.flatMap((setting) => setting.sharedSingletons),\n };\n};\n\nexport const getUniqueKeyForSetting = (setting: QPQConfigSetting) => {\n const type = setting.configSettingType.split('/').pop();\n const key = setting.uniqueKey;\n\n return `${type}${key}`;\n};\n\nexport const getQueueQueueProcessors = (name: string, qpqConfig: QPQConfig): QpqQueueProcessors => {\n return getQueueByName(name, qpqConfig)?.qpqQueueProcessors || {};\n};\n\nexport const convertCustomFullyQualifiedResourceToGeneric = <T extends string>(resource: CustomFullyQualifiedResource<T>): FullyQualifiedResource => {\n type KeyType = KeyOf<CustomFullyQualifiedResource<T>>;\n const key: KeyType = Array.from(Object.keys(resource)).find(\n (k) => k !== 'module' && k !== 'application' && k !== 'feature' && k !== 'environment',\n ) as any as KeyType;\n\n const resourceName = resource[key as T];\n\n return {\n module: resource.module,\n application: resource.application,\n feature: resource.feature,\n environment: resource.environment,\n resourceName: resourceName,\n };\n};\n\nexport const getFullyQualifiedResourceName = (qpqConfig: QPQConfig, resourceName: string, config?: QPQConfigSetting): FullyQualifiedResource => {\n const { application, module, environment, feature } = resolveOwnerDeploymentContext(qpqConfig, config?.owner);\n\n return {\n resourceName: resolveOwnedResourceLocalName(resourceName, config?.owner),\n\n application,\n environment,\n module,\n feature: feature || '',\n };\n};\n\n// Fully Qualified Resource Names\nexport const getKeyValueStoreFullyQualifiedResourceName = (kvsName: string, qpqConfig: QPQConfig): FullyQualifiedResource => {\n const storeConfig = getKeyValueStoreByName(kvsName, qpqConfig) ?? undefined;\n\n return getFullyQualifiedResourceName(qpqConfig, kvsName, storeConfig);\n};\n\nexport const isSameResource = (resourceA: FullyQualifiedResource, resourceB: FullyQualifiedResource): boolean => {\n return (\n resourceA.application === resourceB.application &&\n resourceA.environment === resourceB.environment &&\n resourceA.feature === resourceB.feature &&\n resourceA.module === resourceB.module &&\n resourceA.resourceName === resourceB.resourceName\n );\n};\n\nexport const getFullUrlFromConfigUrl = (configUrl: ConfigUrl, qpqConfig: QPQConfig): string => {\n if (typeof configUrl === 'string') {\n return configUrl;\n }\n\n const confEnvironment = getApplicationModuleEnvironment(qpqConfig);\n const confFeature = getApplicationModuleFeature(qpqConfig);\n\n let fullUrl = `${configUrl.domain}`;\n\n if (confEnvironment !== 'production') {\n fullUrl = `${confEnvironment}.${fullUrl}`;\n }\n\n if (confFeature) {\n fullUrl = `${confFeature}.${fullUrl}`;\n }\n\n if (configUrl.module) {\n fullUrl = `${configUrl.module}.${fullUrl}`;\n }\n\n if (configUrl.path) {\n fullUrl = `${fullUrl}${configUrl.path}`;\n }\n\n fullUrl = `${configUrl.protocol}://${fullUrl}`;\n\n return fullUrl;\n};\n"]}
|
|
@@ -52,6 +52,7 @@ export declare const qpqCoreUtils: {
|
|
|
52
52
|
getApplicationName: (qpqConfig: import("./config").QPQConfig) => string;
|
|
53
53
|
getConfigSetting: <T extends import("./config").QPQConfigSetting>(qpqConfig: import("./config").QPQConfig, configSettingType: string) => T | undefined;
|
|
54
54
|
getConfigSettings: <T extends import("./config").QPQConfigSetting>(qpqConfig: import("./config").QPQConfig, configSettingType: string) => T[];
|
|
55
|
+
getForeignItems: <T extends import("./config").QPQConfigSetting>(settings: T[], qpqConfig: import("./config").QPQConfig) => T[];
|
|
55
56
|
getOwnedItems: <T extends import("./config").QPQConfigSetting>(settings: T[], qpqConfig: import("./config").QPQConfig) => T[];
|
|
56
57
|
resolveOwnedResourceLocalName: (resourceName: string, owner?: import("./types").CrossModuleOwner) => string;
|
|
57
58
|
resolveOwnerDeploymentContext: (qpqConfig: import("./config").QPQConfig, owner?: import("./types").CrossModuleOwner) => import("./types").OwnerDeploymentContext;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PagedDataDrainOptions.js","sourceRoot":"","sources":["../../../../src/stories/paging/PagedDataDrainOptions.ts"],"names":[],"mappings":"","sourcesContent":["import { AskResponse } from '../../types';\n\n/** Options for askPagedDataDrain. */\nexport type PagedDataDrainOptions<T> = {\n // Where to start, for a caller that already holds the first page.\n startPageKey?: string;\n\n // Asked after every page lands with everything collected so far. Answering false stops the\n // walk early; the result then carries the key of the next unread page.\n askShouldContinue?: (collected: T[]) => AskResponse<boolean>;\n};\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { AskResponse, QpqPagedData } from '../../types';
|
|
2
|
-
|
|
3
|
-
startPageKey?: string;
|
|
4
|
-
askShouldContinue?: (collected: T[]) => AskResponse<boolean>;
|
|
5
|
-
};
|
|
2
|
+
import { PagedDataDrainOptions } from './PagedDataDrainOptions';
|
|
6
3
|
export declare function askPagedDataDrain<T>(askPage: (nextPageKey?: string) => AskResponse<QpqPagedData<T>>, options?: PagedDataDrainOptions<T>): AskResponse<QpqPagedData<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askPagedDataDrain.js","sourceRoot":"","sources":["../../../../src/stories/paging/askPagedDataDrain.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"askPagedDataDrain.js","sourceRoot":"","sources":["../../../../src/stories/paging/askPagedDataDrain.ts"],"names":[],"mappings":"AAGA,8FAA8F;AAC9F,+FAA+F;AAC/F,0DAA0D;AAC1D,MAAM,SAAS,CAAC,CAAC,iBAAiB,CAChC,OAA+D,EAC/D,OAAkC;IAElC,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,IAAI,WAAW,GAAuB,OAAO,EAAE,YAAY,CAAC;IAE5D,GAAG,CAAC;QACF,MAAM,IAAI,GAAoB,KAAK,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;QAE1D,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;QAC1B,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAE/B,IAAI,WAAW,IAAI,OAAO,EAAE,iBAAiB,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;YAC5F,MAAM;QACR,CAAC;IACH,CAAC,QAAQ,WAAW,EAAE;IAEtB,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,CAAC;AAChC,CAAC","sourcesContent":["import { AskResponse, QpqPagedData } from '../../types';\nimport { PagedDataDrainOptions } from './PagedDataDrainOptions';\n\n// The one page loop. Walks `askPage` from the start key until it answers no next page (or the\n// caller says stop) and returns everything collected. `nextPageKey` on the result is undefined\n// when the walk ran to the end, which is the normal case.\nexport function* askPagedDataDrain<T>(\n askPage: (nextPageKey?: string) => AskResponse<QpqPagedData<T>>,\n options?: PagedDataDrainOptions<T>,\n): AskResponse<QpqPagedData<T>> {\n const items: T[] = [];\n let nextPageKey: string | undefined = options?.startPageKey;\n\n do {\n const page: QpqPagedData<T> = yield* askPage(nextPageKey);\n\n items.push(...page.items);\n nextPageKey = page.nextPageKey;\n\n if (nextPageKey && options?.askShouldContinue && !(yield* options.askShouldContinue(items))) {\n break;\n }\n } while (nextPageKey);\n\n return { items, nextPageKey };\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stories/paging/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './askPagedDataDrain';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stories/paging/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './askPagedDataDrain';\nexport * from './PagedDataDrainOptions';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AskOverrideSlot.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/AskOverrideSlot.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, AskResponse } from '../../../types';\n\n// How an overridden (or nested batch) slot is run. askOverrideActions passes itself in here, so the\n// batch splitting never has to import the loop it is part of.\nexport type AskOverrideSlot = (batchAction: Action<any>) => AskResponse<unknown>;\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Action, EitherActionResult } from '../../../types';
|
|
2
|
+
/** One slot of a cracked-open batch: the action, whether it ran here already, and that run's outcome if so. */
|
|
3
|
+
export type OverrideBatchSlot = {
|
|
4
|
+
action: Action<any>;
|
|
5
|
+
alreadyProcessed: boolean;
|
|
6
|
+
result: EitherActionResult<any> | undefined;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OverrideBatchSlot.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/OverrideBatchSlot.ts"],"names":[],"mappings":"","sourcesContent":["import { Action, EitherActionResult } from '../../../types';\n\n/** One slot of a cracked-open batch: the action, whether it ran here already, and that run's outcome if so. */\nexport type OverrideBatchSlot = {\n action: Action<any>;\n // Already processed here, so it must not be sent to the runtime again.\n alreadyProcessed: boolean;\n // Set once the slot has run, here or in the runtime batch; successful ones are unwrapped on reassembly.\n result: EitherActionResult<any> | undefined;\n};\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AskResponse, AskResponseReturnType } from '../../../types';
|
|
2
|
-
import { ActionOverrideMap } from '../../../types/
|
|
2
|
+
import { ActionOverrideMap } from '../../../types/ActionOverrideMap';
|
|
3
3
|
export declare function askOverrideActions<T extends AskResponse<any>>(storyIterator: T, overrides: ActionOverrideMap): AskResponse<AskResponseReturnType<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askOverrideActions.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/askOverrideActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,iGAAiG;AACjG,mGAAmG;AACnG,mGAAmG;AACnG,8CAA8C;AAC9C,MAAM,SAAS,CAAC,CAAC,kBAAkB,CACjC,aAAgB,EAChB,SAA4B;IAE5B,IAAI,UAAU,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC;IAEtC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;QAEhC,8FAA8F;QAC9F,0DAA0D;QAC1D,MAAM,OAAO,GACX,qBAAqB,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAEhJ,IAAI,OAAO,EAAE,CAAC;YACZ,6FAA6F;YAC7F,0FAA0F;YAC1F,yFAAyF;YACzF,6FAA6F;YAC7F,4DAA4D;YAC5D,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YACxD,SAAS;QACX,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC3C,UAAU,GAAG,aAAa,CAAC,IAAI,CAC7B,KAAK,CAAC,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAC,CAC1H,CAAC;YACF,SAAS;QACX,CAAC;QAED,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAC","sourcesContent":["import { SystemActionType } from '../../../actions';\nimport { AskResponse, AskResponseReturnType } from '../../../types';\nimport { ActionOverrideMap } from '../../../types/
|
|
1
|
+
{"version":3,"file":"askOverrideActions.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/askOverrideActions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,iGAAiG;AACjG,mGAAmG;AACnG,mGAAmG;AACnG,8CAA8C;AAC9C,MAAM,SAAS,CAAC,CAAC,kBAAkB,CACjC,aAAgB,EAChB,SAA4B;IAE5B,IAAI,UAAU,GAAG,aAAa,CAAC,IAAI,EAAE,CAAC;IAEtC,OAAO,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,MAAM,MAAM,GAAG,UAAU,CAAC,KAAK,CAAC;QAEhC,8FAA8F;QAC9F,0DAA0D;QAC1D,MAAM,OAAO,GACX,qBAAqB,CAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;QAEhJ,IAAI,OAAO,EAAE,CAAC;YACZ,6FAA6F;YAC7F,0FAA0F;YAC1F,yFAAyF;YACzF,6FAA6F;YAC7F,4DAA4D;YAC5D,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;YACxD,SAAS;QACX,CAAC;QAED,IAAI,MAAM,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,EAAE,CAAC;YAC3C,UAAU,GAAG,aAAa,CAAC,IAAI,CAC7B,KAAK,CAAC,CAAC,gBAAgB,CAAC,MAAM,EAAE,SAAS,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC,CAAC,CAC1H,CAAC;YACF,SAAS;QACX,CAAC;QAED,UAAU,GAAG,aAAa,CAAC,IAAI,CAAC,MAAM,MAAM,CAAC,CAAC;IAChD,CAAC;IAED,OAAO,UAAU,CAAC,KAAK,CAAC;AAC1B,CAAC","sourcesContent":["import { SystemActionType } from '../../../actions';\nimport { AskResponse, AskResponseReturnType } from '../../../types';\nimport { ActionOverrideMap } from '../../../types/ActionOverrideMap';\nimport { askOverrideBatch } from './askOverrideBatch';\nimport { askProcessAction } from './askProcessAction';\nimport { getOwnOverrideHandler } from './getOwnOverrideHandler';\n\n// Sits between a story and the runtime, intercepting actions as the story yields them. An action\n// with an override (by type, or the \"*\" wildcard) runs the handler instead of the runtime; a batch\n// is cracked open by askOverrideBatch so overrides apply however deeply the batches nest; anything\n// else is yielded up to the parent untouched.\nexport function* askOverrideActions<T extends AskResponse<any>>(\n storyIterator: T,\n overrides: ActionOverrideMap,\n): AskResponse<AskResponseReturnType<T>> {\n let nextResult = storyIterator.next();\n\n while (!nextResult.done) {\n const action = nextResult.value;\n\n // The specific type takes priority over the wildcard. A batch is never handed to the wildcard\n // as a whole; its members are checked one by one instead.\n const handler =\n getOwnOverrideHandler(overrides, action.type) || (action.type !== SystemActionType.Batch ? getOwnOverrideHandler(overrides, '*') : undefined);\n\n if (handler) {\n // The handler's return value is fed to the story VERBATIM, never reshaped. That is what lets\n // a handler relay an action with a bare `return yield action`: what it gets back from the\n // parent (raw, or an EitherActionResult when the action carries returnErrors, e.g. under\n // askCatch) is already what the story expects. A handler that returns its OWN computed value\n // shapes it with getSuccessfulEitherActionResultIfRequired.\n nextResult = storyIterator.next(yield* handler(action));\n continue;\n }\n\n if (action.type === SystemActionType.Batch) {\n nextResult = storyIterator.next(\n yield* askOverrideBatch(action, overrides, (batchAction) => askOverrideActions(askProcessAction(batchAction), overrides)),\n );\n continue;\n }\n\n nextResult = storyIterator.next(yield action);\n }\n\n return nextResult.value;\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Action, AskResponse } from '../../../types';
|
|
2
|
-
import { ActionOverrideMap } from '../../../types/
|
|
3
|
-
|
|
2
|
+
import { ActionOverrideMap } from '../../../types/ActionOverrideMap';
|
|
3
|
+
import { AskOverrideSlot } from './AskOverrideSlot';
|
|
4
4
|
export declare function askOverrideBatch(action: Action<any>, overrides: ActionOverrideMap, askOverrideSlot: AskOverrideSlot): AskResponse<unknown>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { askBatch, askThrowError
|
|
1
|
+
import { askBatch, askThrowError } from '../../../actions';
|
|
2
2
|
import { getSuccessfulEitherActionResult } from '../../../logic/actionResult';
|
|
3
3
|
import { askMapParallel } from '../../array/askMapParallel';
|
|
4
4
|
import { askCatch } from '../askCatch';
|
|
5
|
-
import {
|
|
5
|
+
import { askOverrideSlotRun } from './askOverrideSlotRun';
|
|
6
6
|
import { getSuccessfulEitherActionResultIfRequired } from './getSuccessfulEitherActionResultIfRequired';
|
|
7
7
|
const isFailedSlotResult = (slotResult) => slotResult !== undefined && !slotResult.success;
|
|
8
8
|
// When stories run things in parallel (askRunParallel), the actions get bundled into a single batch
|
|
@@ -13,20 +13,8 @@ const isFailedSlotResult = (slotResult) => slotResult !== undefined && !slotResu
|
|
|
13
13
|
// failure comes back as the value, matching what the runtime would do.
|
|
14
14
|
export function* askOverrideBatch(action, overrides, askOverrideSlot) {
|
|
15
15
|
const batchActionPayload = action.payload;
|
|
16
|
-
const batchActionsToRun = yield* askMapParallel(batchActionPayload.actions, function*
|
|
17
|
-
|
|
18
|
-
const isBatch = batchAction.type === SystemActionType.Batch;
|
|
19
|
-
const needsRecursion = isOverridden || isBatch;
|
|
20
|
-
return {
|
|
21
|
-
action: batchAction,
|
|
22
|
-
// Already processed here, so it must not be sent to the runtime again below.
|
|
23
|
-
alreadyProcessed: needsRecursion,
|
|
24
|
-
// The slot run is wrapped in askCatch so a failing sub-action becomes a captured failure for
|
|
25
|
-
// THIS slot instead of escaping bare and bypassing the enclosing batch's returnErrors
|
|
26
|
-
// protection. Every slot holds an EitherActionResult; the successful ones are unwrapped when
|
|
27
|
-
// the batch is reassembled.
|
|
28
|
-
result: needsRecursion ? yield* askCatch(askOverrideSlot(batchAction)) : undefined,
|
|
29
|
-
};
|
|
16
|
+
const batchActionsToRun = yield* askMapParallel(batchActionPayload.actions, function* (batchAction) {
|
|
17
|
+
return yield* askOverrideSlotRun(batchAction, overrides, askOverrideSlot);
|
|
30
18
|
});
|
|
31
19
|
const remainingBatchActionsToRun = batchActionsToRun.filter((ba) => !ba.alreadyProcessed);
|
|
32
20
|
// askCatch so a failing runtime batch comes back as a value instead of killing everything.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"askOverrideBatch.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/askOverrideBatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"askOverrideBatch.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/askOverrideBatch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAA4B,MAAM,kBAAkB,CAAC;AACrF,OAAO,EAAE,+BAA+B,EAAE,MAAM,6BAA6B,CAAC;AAG9E,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AAExG,MAAM,kBAAkB,GAAG,CAAC,UAA+C,EAA8D,EAAE,CACzI,UAAU,KAAK,SAAS,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;AAElD,oGAAoG;AACpG,oGAAoG;AACpG,qGAAqG;AACrG,kGAAkG;AAClG,oGAAoG;AACpG,uEAAuE;AACvE,MAAM,SAAS,CAAC,CAAC,gBAAgB,CAAC,MAAmB,EAAE,SAA4B,EAAE,eAAgC;IACnH,MAAM,kBAAkB,GAA6B,MAAM,CAAC,OAAO,CAAC;IAEpE,MAAM,iBAAiB,GAAG,KAAK,CAAC,CAAC,cAAc,CAAC,kBAAkB,CAAC,OAAO,EAAE,QAAQ,CAAC,EAAE,WAAW;QAChG,OAAO,KAAK,CAAC,CAAC,kBAAkB,CAAC,WAAW,EAAE,SAAS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CAAC;IAEpE,OAAO,yCAAyC,CAAC,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC;AACpF,CAAC","sourcesContent":["import { askBatch, askThrowError, SystemBatchActionPayload } from '../../../actions';\nimport { getSuccessfulEitherActionResult } from '../../../logic/actionResult';\nimport { Action, AskResponse, EitherActionResult } from '../../../types';\nimport { ActionOverrideMap } from '../../../types/ActionOverrideMap';\nimport { askMapParallel } from '../../array/askMapParallel';\nimport { askCatch } from '../askCatch';\nimport { AskOverrideSlot } from './AskOverrideSlot';\nimport { askOverrideSlotRun } from './askOverrideSlotRun';\nimport { getSuccessfulEitherActionResultIfRequired } from './getSuccessfulEitherActionResultIfRequired';\n\nconst isFailedSlotResult = (slotResult: EitherActionResult<any> | undefined): slotResult is EitherActionResult<any> & { success: false } =>\n slotResult !== undefined && !slotResult.success;\n\n// When stories run things in parallel (askRunParallel), the actions get bundled into a single batch\n// action. This cracks the batch open, runs every overridden slot (and every nested batch, which may\n// hold overridden actions deeper inside) through `askOverrideSlot`, sends the rest to the runtime as\n// a smaller batch, and reassembles the results in the original order. Returns the value the story\n// should be resumed with; a failure throws unless the batch carries returnErrors, in which case the\n// failure comes back as the value, matching what the runtime would do.\nexport function* askOverrideBatch(action: Action<any>, overrides: ActionOverrideMap, askOverrideSlot: AskOverrideSlot): AskResponse<unknown> {\n const batchActionPayload: SystemBatchActionPayload = action.payload;\n\n const batchActionsToRun = yield* askMapParallel(batchActionPayload.actions, function* (batchAction) {\n return yield* askOverrideSlotRun(batchAction, overrides, askOverrideSlot);\n });\n\n const remainingBatchActionsToRun = batchActionsToRun.filter((ba) => !ba.alreadyProcessed);\n\n // askCatch so a failing runtime batch comes back as a value instead of killing everything.\n const results = yield* askCatch(askBatch(remainingBatchActionsToRun.map((ba) => ba.action)));\n\n if (results.success) {\n remainingBatchActionsToRun.forEach((ba, index) => {\n ba.result = getSuccessfulEitherActionResult(results.result[index]);\n });\n }\n\n // One failure fails the whole batch, matching the runtime's batch semantics: a runtime\n // batch failure wins, otherwise the first captured failure from an overridden slot.\n const failedResult = !results.success ? results : batchActionsToRun.map((ba) => ba.result).find(isFailedSlotResult);\n\n if (failedResult) {\n if (!action.returnErrors) {\n return yield* askThrowError(failedResult.error.errorType, failedResult.error.errorText, failedResult.error.errorStack);\n }\n\n return failedResult;\n }\n\n const allResults = batchActionsToRun.map((ba) => ba.result?.result);\n\n return getSuccessfulEitherActionResultIfRequired(allResults, action.returnErrors);\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Action, AskResponse } from '../../../types';
|
|
2
|
+
import { ActionOverrideMap } from '../../../types/ActionOverrideMap';
|
|
3
|
+
import { AskOverrideSlot } from './AskOverrideSlot';
|
|
4
|
+
import { OverrideBatchSlot } from './OverrideBatchSlot';
|
|
5
|
+
/**
|
|
6
|
+
* Runs one batch slot here when an override claims it, or when it is itself a batch that may hold overridden
|
|
7
|
+
* actions deeper inside; any other slot is left for the runtime batch. The run is wrapped in askCatch so a failing
|
|
8
|
+
* sub-action becomes a captured failure for this slot instead of escaping bare and bypassing the enclosing batch's
|
|
9
|
+
* returnErrors protection.
|
|
10
|
+
*/
|
|
11
|
+
export declare function askOverrideSlotRun(batchAction: Action<any>, overrides: ActionOverrideMap, askOverrideSlot: AskOverrideSlot): AskResponse<OverrideBatchSlot>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SystemActionType } from '../../../actions';
|
|
2
|
+
import { askCatch } from '../askCatch';
|
|
3
|
+
import { getOwnOverrideHandler } from './getOwnOverrideHandler';
|
|
4
|
+
/**
|
|
5
|
+
* Runs one batch slot here when an override claims it, or when it is itself a batch that may hold overridden
|
|
6
|
+
* actions deeper inside; any other slot is left for the runtime batch. The run is wrapped in askCatch so a failing
|
|
7
|
+
* sub-action becomes a captured failure for this slot instead of escaping bare and bypassing the enclosing batch's
|
|
8
|
+
* returnErrors protection.
|
|
9
|
+
*/
|
|
10
|
+
export function* askOverrideSlotRun(batchAction, overrides, askOverrideSlot) {
|
|
11
|
+
const isOverridden = !!(getOwnOverrideHandler(overrides, batchAction.type) || getOwnOverrideHandler(overrides, '*'));
|
|
12
|
+
const isBatch = batchAction.type === SystemActionType.Batch;
|
|
13
|
+
const needsRecursion = isOverridden || isBatch;
|
|
14
|
+
return {
|
|
15
|
+
action: batchAction,
|
|
16
|
+
alreadyProcessed: needsRecursion,
|
|
17
|
+
result: needsRecursion ? yield* askCatch(askOverrideSlot(batchAction)) : undefined,
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=askOverrideSlotRun.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"askOverrideSlotRun.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/askOverrideSlotRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE;;;;;GAKG;AACH,MAAM,SAAS,CAAC,CAAC,kBAAkB,CACjC,WAAwB,EACxB,SAA4B,EAC5B,eAAgC;IAEhC,MAAM,YAAY,GAAG,CAAC,CAAC,CAAC,qBAAqB,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC;IACrH,MAAM,OAAO,GAAG,WAAW,CAAC,IAAI,KAAK,gBAAgB,CAAC,KAAK,CAAC;IAC5D,MAAM,cAAc,GAAG,YAAY,IAAI,OAAO,CAAC;IAE/C,OAAO;QACL,MAAM,EAAE,WAAW;QACnB,gBAAgB,EAAE,cAAc;QAChC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;KACnF,CAAC;AACJ,CAAC","sourcesContent":["import { SystemActionType } from '../../../actions';\nimport { Action, AskResponse } from '../../../types';\nimport { ActionOverrideMap } from '../../../types/ActionOverrideMap';\nimport { askCatch } from '../askCatch';\nimport { AskOverrideSlot } from './AskOverrideSlot';\nimport { getOwnOverrideHandler } from './getOwnOverrideHandler';\nimport { OverrideBatchSlot } from './OverrideBatchSlot';\n\n/**\n * Runs one batch slot here when an override claims it, or when it is itself a batch that may hold overridden\n * actions deeper inside; any other slot is left for the runtime batch. The run is wrapped in askCatch so a failing\n * sub-action becomes a captured failure for this slot instead of escaping bare and bypassing the enclosing batch's\n * returnErrors protection.\n */\nexport function* askOverrideSlotRun(\n batchAction: Action<any>,\n overrides: ActionOverrideMap,\n askOverrideSlot: AskOverrideSlot,\n): AskResponse<OverrideBatchSlot> {\n const isOverridden = !!(getOwnOverrideHandler(overrides, batchAction.type) || getOwnOverrideHandler(overrides, '*'));\n const isBatch = batchAction.type === SystemActionType.Batch;\n const needsRecursion = isOverridden || isBatch;\n\n return {\n action: batchAction,\n alreadyProcessed: needsRecursion,\n result: needsRecursion ? yield* askCatch(askOverrideSlot(batchAction)) : undefined,\n };\n}\n"]}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { ActionOverrideHandler
|
|
1
|
+
import { ActionOverrideHandler } from '../../../types/ActionOverrideHandler';
|
|
2
|
+
import { ActionOverrideMap } from '../../../types/ActionOverrideMap';
|
|
2
3
|
export declare const getOwnOverrideHandler: (overrides: ActionOverrideMap, actionType: string) => ActionOverrideHandler | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getOwnOverrideHandler.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/getOwnOverrideHandler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getOwnOverrideHandler.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/getOwnOverrideHandler.ts"],"names":[],"mappings":"AAGA,8FAA8F;AAC9F,+FAA+F;AAC/F,yDAAyD;AACzD,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,SAA4B,EAAE,UAAkB,EAAqC,EAAE,CAC3H,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC","sourcesContent":["import { ActionOverrideHandler } from '../../../types/ActionOverrideHandler';\nimport { ActionOverrideMap } from '../../../types/ActionOverrideMap';\n\n// Looks up a handler as an OWN property of the override map. A plain-object map inherits from\n// Object.prototype, so an action type like \"toString\" or \"constructor\" would otherwise resolve\n// to an inherited function and get invoked as a handler.\nexport const getOwnOverrideHandler = (overrides: ActionOverrideMap, actionType: string): ActionOverrideHandler | undefined =>\n Object.prototype.hasOwnProperty.call(overrides, actionType) ? overrides[actionType] : undefined;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6CAA6C,CAAC","sourcesContent":["export * from './askOverrideActions';\nexport * from './askOverrideBatch';\nexport * from './getSuccessfulEitherActionResultIfRequired';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/stories/system/overrideActions/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6CAA6C,CAAC","sourcesContent":["export * from './askOverrideActions';\nexport * from './askOverrideBatch';\nexport * from './AskOverrideSlot';\nexport * from './getSuccessfulEitherActionResultIfRequired';\n"]}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
import { Action } from './Action';
|
|
2
2
|
import { AskResponse } from './StorySession';
|
|
3
3
|
export type ActionOverrideHandler<TAction extends Action<any> = Action<any>, TResult = any> = (action: TAction) => AskResponse<TResult>;
|
|
4
|
-
export type ActionOverrideMap = {
|
|
5
|
-
[actionType: string]: ActionOverrideHandler<any, any>;
|
|
6
|
-
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionOverrideHandler.js","sourceRoot":"","sources":["../../../src/types/ActionOverrideHandler.ts"],"names":[],"mappings":"","sourcesContent":["import { Action } from './Action';\nimport { AskResponse } from './StorySession';\n\n// A function that takes an action and returns a story (generator) that produces the override result.\n// This is what the user provides for each action type they want to intercept.\nexport type ActionOverrideHandler<TAction extends Action<any> = Action<any>, TResult = any> = (action: TAction) => AskResponse<TResult>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ActionOverrideMap.js","sourceRoot":"","sources":["../../../src/types/ActionOverrideMap.ts"],"names":[],"mappings":"","sourcesContent":["import { ActionOverrideHandler } from './ActionOverrideHandler';\n\n// A map of action type strings to their override handlers.\n// The key is the action type (e.g. \"MathActionType.RandomNumber\") or \"*\" for a wildcard catch-all.\n// The value is the handler function that will run instead of the normal action processor.\nexport type ActionOverrideMap = {\n [actionType: string]: ActionOverrideHandler<any, any>;\n};\n"]}
|
|
@@ -4,6 +4,11 @@ export type CreateAuthChallengeEvent = {
|
|
|
4
4
|
userName: string;
|
|
5
5
|
session: ChallengeSession;
|
|
6
6
|
userAttributes: UserAttributes;
|
|
7
|
+
/**
|
|
8
|
+
* true when the directory has no such user. With user existence errors suppressed the trigger still runs for an
|
|
9
|
+
* unknown account, and the story must answer exactly as it would for a real one so the two cannot be told apart.
|
|
10
|
+
*/
|
|
11
|
+
userNotFound?: boolean;
|
|
7
12
|
};
|
|
8
13
|
/**
|
|
9
14
|
* Represents the response for creating an authentication challenge.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateAuthChallengeEvent.js","sourceRoot":"","sources":["../../../../src/types/authChallenge/CreateAuthChallengeEvent.ts"],"names":[],"mappings":"","sourcesContent":["import { UserAttributes } from '../../actions';\nimport { ChallengeSession } from './types';\n\nexport type CreateAuthChallengeEvent = {\n userName: string;\n session: ChallengeSession;\n userAttributes: UserAttributes;\n};\n\n/**\n * Represents the response for creating an authentication challenge.\n */\nexport type CreateAuthChallengeEventResponse = {\n /**\n * The name of the custom challenge\n */\n challengeName?: string;\n\n /**\n * Key-value pairs for the client app to use when presenting the challenge to the user.\n * This parameter should contain all necessary information to accurately present the challenge.\n */\n publicChallengeParameters?: Record<string, string>;\n\n /**\n * Key-value pairs containing the information required to validate the user's response to the challenge.\n * Typically, this contains the correct answers or validation criteria for the challenge.\n */\n privateChallengeParameters?: Record<string, string>;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"CreateAuthChallengeEvent.js","sourceRoot":"","sources":["../../../../src/types/authChallenge/CreateAuthChallengeEvent.ts"],"names":[],"mappings":"","sourcesContent":["import { UserAttributes } from '../../actions';\nimport { ChallengeSession } from './types';\n\nexport type CreateAuthChallengeEvent = {\n userName: string;\n session: ChallengeSession;\n userAttributes: UserAttributes;\n /**\n * true when the directory has no such user. With user existence errors suppressed the trigger still runs for an\n * unknown account, and the story must answer exactly as it would for a real one so the two cannot be told apart.\n */\n userNotFound?: boolean;\n};\n\n/**\n * Represents the response for creating an authentication challenge.\n */\nexport type CreateAuthChallengeEventResponse = {\n /**\n * The name of the custom challenge\n */\n challengeName?: string;\n\n /**\n * Key-value pairs for the client app to use when presenting the challenge to the user.\n * This parameter should contain all necessary information to accurately present the challenge.\n */\n publicChallengeParameters?: Record<string, string>;\n\n /**\n * Key-value pairs containing the information required to validate the user's response to the challenge.\n * Typically, this contains the correct answers or validation criteria for the challenge.\n */\n privateChallengeParameters?: Record<string, string>;\n};\n"]}
|
|
@@ -4,6 +4,11 @@ export type DefineAuthChallengeEvent = {
|
|
|
4
4
|
userName: string;
|
|
5
5
|
session: ChallengeSession;
|
|
6
6
|
userAttributes: UserAttributes;
|
|
7
|
+
/**
|
|
8
|
+
* true when the directory has no such user. With user existence errors suppressed the trigger still runs for an
|
|
9
|
+
* unknown account, and the story must answer exactly as it would for a real one so the two cannot be told apart.
|
|
10
|
+
*/
|
|
11
|
+
userNotFound?: boolean;
|
|
7
12
|
};
|
|
8
13
|
export type DefineAuthChallengeEventResponse = {
|
|
9
14
|
runCreateAuthChallenge: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefineAuthChallengeEvent.js","sourceRoot":"","sources":["../../../../src/types/authChallenge/DefineAuthChallengeEvent.ts"],"names":[],"mappings":"","sourcesContent":["import { UserAttributes } from '../../actions';\nimport { ChallengeSession } from './types';\n\nexport type DefineAuthChallengeEvent = {\n userName: string;\n session: ChallengeSession;\n userAttributes: UserAttributes;\n};\n\nexport type DefineAuthChallengeEventResponse = {\n runCreateAuthChallenge: boolean;\n failAuthentication: boolean;\n issueTokens: boolean;\n};\n"]}
|
|
1
|
+
{"version":3,"file":"DefineAuthChallengeEvent.js","sourceRoot":"","sources":["../../../../src/types/authChallenge/DefineAuthChallengeEvent.ts"],"names":[],"mappings":"","sourcesContent":["import { UserAttributes } from '../../actions';\nimport { ChallengeSession } from './types';\n\nexport type DefineAuthChallengeEvent = {\n userName: string;\n session: ChallengeSession;\n userAttributes: UserAttributes;\n /**\n * true when the directory has no such user. With user existence errors suppressed the trigger still runs for an\n * unknown account, and the story must answer exactly as it would for a real one so the two cannot be told apart.\n */\n userNotFound?: boolean;\n};\n\nexport type DefineAuthChallengeEventResponse = {\n runCreateAuthChallenge: boolean;\n failAuthentication: boolean;\n issueTokens: boolean;\n};\n"]}
|
package/lib/esm/types/index.d.ts
CHANGED
package/lib/esm/types/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,uBAAuB,CAAC;AACtC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC","sourcesContent":["export * from './Action';\nexport * from './ActionOverrideHandler';\nexport * from './ActionOverrideMap';\nexport * from './ActionRequesterFunction';\nexport * from './authChallenge';\nexport * from './BoundLogicStory';\nexport * from './Brand';\nexport * from './ConfigUrlDefinition';\nexport * from './CrossModuleMessage';\nexport * from './CrossModuleOwner';\nexport * from './CrossServiceResourceName';\nexport * from './DecomposedString';\nexport * from './DeployEvent';\nexport * from './DynamicModuleLoader';\nexport * from './ErrorTypeEnum';\nexport * from './EventMessage';\nexport * from './ExcludeKeys';\nexport * from './FullyQualifiedResource';\nexport * from './KeyOf';\nexport * from './KvsStreamEvent';\nexport * from './LogLevelEnum';\nexport * from './Lookup';\nexport * from './NotifyErrorQueueEvent';\nexport * from './Nullable';\nexport * from './OwnerDeploymentContext';\nexport * from './QPQBinaryData';\nexport * from './QpqContextIdentifier';\nexport * from './QpqExecutionTrace';\nexport * from './QpqFunctionRuntime';\nexport * from './QpqIsoDateTime';\nexport * from './QpqLogger';\nexport * from './QpqPagedData';\nexport * from './QpqPureFunction';\nexport * from './QueueEvent';\nexport * from './Readonlyify';\nexport * from './ScheduledEvent';\nexport * from './StorySession';\nexport * from './StreamRegistry';\nexport * from './TextFileType';\nexport * from './UnboundLogicStory';\nexport * from './UnionToIntersection';\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC","sourcesContent":["export * from './bindApi';\nexport * from './bindApiFunction';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/functions/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC","sourcesContent":["export * from './bindApi';\nexport * from './bindApiFunction';\nexport * from './sleep';\n"]}
|