@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CompositeKvsKey } from './types/
|
|
1
|
+
import { CompositeKvsKey } from './types/CompositeKvsKey';
|
|
2
2
|
import { KeyValueStoreQPQConfigSetting } from './types/KeyValueStoreQPQConfigSetting';
|
|
3
3
|
import { QPQConfigAdvancedKeyValueStoreSettings } from './types/QPQConfigAdvancedKeyValueStoreSettings';
|
|
4
4
|
export declare const defineKeyValueStore: <T extends object = any>(keyValueStoreName: string, partitionKey: CompositeKvsKey<T>, sortKeys?: CompositeKvsKey<T>[], options?: QPQConfigAdvancedKeyValueStoreSettings<T>) => KeyValueStoreQPQConfigSetting<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"defineKeyValueStore.js","sourceRoot":"","sources":["../../../../../src/config/settings/keyValueStore/defineKeyValueStore.ts"],"names":[],"mappings":";;;AACA,+CAA2D;
|
|
1
|
+
{"version":3,"file":"defineKeyValueStore.js","sourceRoot":"","sources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AErB,YAAY,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY;QAEnC,0BAA0B,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,0BAA0B,mCAAI,KAAK;QAExE,aAAa,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,aAAa;QACrC,MAAM,EAAE,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,mCAAI,KAAK;QAEhC,QAAQ,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ;KAC5B,CAAC;AACJ,CAAC,CAAC;AA9CW,QAAA,mBAAmB,uBA8C9B","sourcesContent":["import { KeyOf } from '../../../types';\nimport { QPQCoreConfigSettingType } from '../../QPQConfig';\nimport { CompositeCompositeKvsIndex } from './types/CompositeCompositeKvsIndex';\nimport { CompositeKvsIndex } from './types/CompositeKvsIndex';\nimport { CompositeKvsKey } from './types/CompositeKvsKey';\nimport { KeyValueStoreQPQConfigSetting } from './types/KeyValueStoreQPQConfigSetting';\nimport { KvsIndex } from './types/KvsIndex';\nimport { KvsKey } from './types/KvsKey';\nimport { QPQConfigAdvancedKeyValueStoreSettings } from './types/QPQConfigAdvancedKeyValueStoreSettings';\nimport { kvsKey } from './kvsKey';\n\n// TODO: @joe-coady: When we put validation on the QPQConfig, we need to make sure\n// Key Length and Data Type: DynamoDB has limitations on key length and data type.\n// Your KvsKeyType only supports 'string', 'number', and 'binary' types. Make sure\n// that you're validating these in convertKvsKeyToDynamodbAttribute function and\n// also ensure that key length is within DynamoDB's specified limits.\n\nconst convertCompositeKvsKeyToKvsKey = <T extends object = any>(compositeKvsKey: CompositeKvsKey<T>): KvsKey<T> => {\n // Must be a keyof T\n if (typeof compositeKvsKey === 'string') {\n return kvsKey<T>(compositeKvsKey as KeyOf<T>, 'string');\n }\n\n // must be a KvsKey<T>\n return compositeKvsKey as KvsKey<T>;\n};\n\nconst isCompositeKvsIndexACompositeCompositeKvsIndex = <T extends object = any>(\n compositeKvsIndex: CompositeKvsIndex<T>,\n): compositeKvsIndex is CompositeCompositeKvsIndex<T> => {\n return typeof compositeKvsIndex !== 'string';\n};\n\nconst convertCompositeKvsIndexToKvsIndex = <T extends object = any>(compositeKvsIndex: CompositeKvsIndex<T>): KvsIndex<T> => {\n if (!isCompositeKvsIndexACompositeCompositeKvsIndex<T>(compositeKvsIndex)) {\n return {\n name: compositeKvsIndex,\n partitionKey: kvsKey<T>(compositeKvsIndex, 'string'),\n };\n }\n\n const partitionKey = convertCompositeKvsKeyToKvsKey<T>(compositeKvsIndex.partitionKey);\n\n return {\n name: compositeKvsIndex.name ?? partitionKey.key,\n partitionKey,\n sortKey: compositeKvsIndex.sortKey ? convertCompositeKvsKeyToKvsKey<T>(compositeKvsIndex.sortKey) : undefined,\n };\n};\n\nexport const defineKeyValueStore = <T extends object = any>(\n keyValueStoreName: string,\n\n partitionKey: CompositeKvsKey<T>,\n sortKeys: CompositeKvsKey<T>[] = [],\n\n options?: QPQConfigAdvancedKeyValueStoreSettings<T>,\n): KeyValueStoreQPQConfigSetting<T> => {\n const tablePartitionKey = convertCompositeKvsKeyToKvsKey<T>(partitionKey);\n const indexes = (options?.indexes ?? []).map(convertCompositeKvsIndexToKvsIndex<T>);\n\n const duplicateIndexName = indexes.find((index, position) => indexes.findIndex((other) => other.name === index.name) !== position);\n if (duplicateIndexName) {\n throw new Error(`Key value store '${keyValueStoreName}' declares two indexes named '${duplicateIndexName.name}'; give one an explicit name`);\n }\n\n // A scoped store's indexes are partitioned per scope, which every backend can do\n // for a string or number key but not a binary one.\n if (options?.scoped && indexes.some((index) => index.partitionKey.type === 'binary' && index.partitionKey.key !== tablePartitionKey.key)) {\n throw new Error(`Key value store '${keyValueStoreName}' is scoped, so its index partition keys must be strings or numbers`);\n }\n\n return {\n configSettingType: QPQCoreConfigSettingType.keyValueStore,\n uniqueKey: keyValueStoreName,\n\n keyValueStoreName,\n\n partitionKey: tablePartitionKey,\n sortKeys: sortKeys.map(convertCompositeKvsKeyToKvsKey<T>),\n\n indexes,\n\n global: options?.global ?? false,\n\n owner: options?.owner,\n\n ttlAttribute: options?.ttlAttribute,\n\n disablePointInTimeRecovery: options?.disablePointInTimeRecovery ?? false,\n\n cryptoKeyName: options?.cryptoKeyName,\n scoped: options?.scoped ?? false,\n\n onStream: options?.onStream,\n };\n};\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompositeKvsKey } from './CompositeKvsKey';
|
|
2
|
+
/** An index written out in full, with each key given as a bare attribute name or in full. */
|
|
3
|
+
export type CompositeCompositeKvsIndex<T extends object = any> = {
|
|
4
|
+
name?: string;
|
|
5
|
+
partitionKey: CompositeKvsKey<T>;
|
|
6
|
+
sortKey?: CompositeKvsKey<T>;
|
|
7
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeCompositeKvsIndex.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/CompositeCompositeKvsIndex.ts"],"names":[],"mappings":"","sourcesContent":["import { CompositeKvsKey } from './CompositeKvsKey';\n\n/** An index written out in full, with each key given as a bare attribute name or in full. */\nexport type CompositeCompositeKvsIndex<T extends object = any> = {\n // Defaults to the partition key attribute. Name an index when two share a partition key.\n name?: string;\n partitionKey: CompositeKvsKey<T>;\n sortKey?: CompositeKvsKey<T>;\n};\n"]}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { KeyOf } from '../../../../types';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
export type CompositeCompositeKvsIndex<T extends object = any> = {
|
|
5
|
-
name?: string;
|
|
6
|
-
partitionKey: CompositeKvsKey<T>;
|
|
7
|
-
sortKey?: CompositeKvsKey<T>;
|
|
8
|
-
};
|
|
2
|
+
import { CompositeCompositeKvsIndex } from './CompositeCompositeKvsIndex';
|
|
3
|
+
/** An index given either as a bare partition key attribute name or in full. */
|
|
9
4
|
export type CompositeKvsIndex<T extends object = any> = KeyOf<T> | CompositeCompositeKvsIndex<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CompositeKvsIndex.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/CompositeKvsIndex.ts"],"names":[],"mappings":"","sourcesContent":["import { KeyOf } from '../../../../types';\nimport {
|
|
1
|
+
{"version":3,"file":"CompositeKvsIndex.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/CompositeKvsIndex.ts"],"names":[],"mappings":"","sourcesContent":["import { KeyOf } from '../../../../types';\nimport { CompositeCompositeKvsIndex } from './CompositeCompositeKvsIndex';\n\n/** An index given either as a bare partition key attribute name or in full. */\nexport type CompositeKvsIndex<T extends object = any> = KeyOf<T> | CompositeCompositeKvsIndex<T>;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CompositeKvsKey.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/CompositeKvsKey.ts"],"names":[],"mappings":"","sourcesContent":["import { KeyOf } from '../../../../types';\nimport { KvsKey } from './KvsKey';\n\n/** A key given either as a bare attribute name (a string key) or in full. */\nexport type CompositeKvsKey<T extends object = any> = KvsKey<T> | KeyOf<T>;\n"]}
|
|
@@ -14,7 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./CompositeCompositeKvsIndex"), exports);
|
|
17
18
|
__exportStar(require("./CompositeKvsIndex"), exports);
|
|
19
|
+
__exportStar(require("./CompositeKvsKey"), exports);
|
|
18
20
|
__exportStar(require("./KeyValueStoreQPQConfigSetting"), exports);
|
|
19
21
|
__exportStar(require("./KvsIndex"), exports);
|
|
20
22
|
__exportStar(require("./KvsKey"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kEAAgD;AAChD,6CAA2B;AAC3B,2CAAyB;AACzB,sDAAoC;AACpC,2EAAyD","sourcesContent":["export * from './CompositeKvsIndex';\nexport * from './KeyValueStoreQPQConfigSetting';\nexport * from './KvsIndex';\nexport * from './KvsKey';\nexport * from './KvsStreamSettings';\nexport * from './QPQConfigAdvancedKeyValueStoreSettings';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/config/settings/keyValueStore/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,sDAAoC;AACpC,oDAAkC;AAClC,kEAAgD;AAChD,6CAA2B;AAC3B,2CAAyB;AACzB,sDAAoC;AACpC,2EAAyD","sourcesContent":["export * from './CompositeCompositeKvsIndex';\nexport * from './CompositeKvsIndex';\nexport * from './CompositeKvsKey';\nexport * from './KeyValueStoreQPQConfigSetting';\nexport * from './KvsIndex';\nexport * from './KvsKey';\nexport * from './KvsStreamSettings';\nexport * from './QPQConfigAdvancedKeyValueStoreSettings';\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { QPQConfig, QPQConfigSetting } from '../../config/QPQConfig';
|
|
2
|
+
/** The settings another service owns (declared here with a cross-module owner): the inverse of getOwnedItems. */
|
|
3
|
+
export declare const getForeignItems: <T extends QPQConfigSetting>(settings: T[], qpqConfig: QPQConfig) => T[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getForeignItems = void 0;
|
|
4
|
+
const getOwnedItems_1 = require("./getOwnedItems");
|
|
5
|
+
/** The settings another service owns (declared here with a cross-module owner): the inverse of getOwnedItems. */
|
|
6
|
+
const getForeignItems = (settings, qpqConfig) => {
|
|
7
|
+
const owned = (0, getOwnedItems_1.getOwnedItems)(settings, qpqConfig);
|
|
8
|
+
return settings.filter((setting) => !owned.includes(setting));
|
|
9
|
+
};
|
|
10
|
+
exports.getForeignItems = getForeignItems;
|
|
11
|
+
//# sourceMappingURL=getForeignItems.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getForeignItems.js","sourceRoot":"","sources":["../../../../src/logic/config/getForeignItems.ts"],"names":[],"mappings":";;;AACA,mDAAgD;AAEhD,iHAAiH;AAC1G,MAAM,eAAe,GAAG,CAA6B,QAAa,EAAE,SAAoB,EAAO,EAAE;IACtG,MAAM,KAAK,GAAG,IAAA,6BAAa,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;IAEjD,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC;AAChE,CAAC,CAAC;AAJW,QAAA,eAAe,mBAI1B","sourcesContent":["import { QPQConfig, QPQConfigSetting } from '../../config/QPQConfig';\nimport { getOwnedItems } from './getOwnedItems';\n\n/** The settings another service owns (declared here with a cross-module owner): the inverse of getOwnedItems. */\nexport const getForeignItems = <T extends QPQConfigSetting>(settings: T[], qpqConfig: QPQConfig): T[] => {\n const owned = getOwnedItems(settings, qpqConfig);\n\n return settings.filter((setting) => !owned.includes(setting));\n};\n"]}
|
|
@@ -7,6 +7,7 @@ export * from './getApplicationModuleName';
|
|
|
7
7
|
export * from './getApplicationName';
|
|
8
8
|
export * from './getConfigSetting';
|
|
9
9
|
export * from './getConfigSettings';
|
|
10
|
+
export * from './getForeignItems';
|
|
10
11
|
export * from './getOwnedItems';
|
|
11
12
|
export * from './resolveOwnedResourceLocalName';
|
|
12
13
|
export * from './resolveOwnerDeploymentContext';
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./getApplicationModuleName"), exports);
|
|
|
23
23
|
__exportStar(require("./getApplicationName"), exports);
|
|
24
24
|
__exportStar(require("./getConfigSetting"), exports);
|
|
25
25
|
__exportStar(require("./getConfigSettings"), exports);
|
|
26
|
+
__exportStar(require("./getForeignItems"), exports);
|
|
26
27
|
__exportStar(require("./getOwnedItems"), exports);
|
|
27
28
|
__exportStar(require("./resolveOwnedResourceLocalName"), exports);
|
|
28
29
|
__exportStar(require("./resolveOwnerDeploymentContext"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,6DAA2C;AAC3C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,kDAAgC;AAChC,kEAAgD;AAChD,kEAAgD","sourcesContent":["export * from './DEFAULT_ENVIRONMENT';\nexport * from './flattenQpqConfig';\nexport * from './getApplicationConfigSetting';\nexport * from './getApplicationModuleEnvironment';\nexport * from './getApplicationModuleFeature';\nexport * from './getApplicationModuleName';\nexport * from './getApplicationName';\nexport * from './getConfigSetting';\nexport * from './getConfigSettings';\nexport * from './getOwnedItems';\nexport * from './resolveOwnedResourceLocalName';\nexport * from './resolveOwnerDeploymentContext';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,qDAAmC;AACnC,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,6DAA2C;AAC3C,uDAAqC;AACrC,qDAAmC;AACnC,sDAAoC;AACpC,oDAAkC;AAClC,kDAAgC;AAChC,kEAAgD;AAChD,kEAAgD","sourcesContent":["export * from './DEFAULT_ENVIRONMENT';\nexport * from './flattenQpqConfig';\nexport * from './getApplicationConfigSetting';\nexport * from './getApplicationModuleEnvironment';\nexport * from './getApplicationModuleFeature';\nexport * from './getApplicationModuleName';\nexport * from './getApplicationName';\nexport * from './getConfigSetting';\nexport * from './getConfigSettings';\nexport * from './getForeignItems';\nexport * from './getOwnedItems';\nexport * from './resolveOwnedResourceLocalName';\nexport * from './resolveOwnerDeploymentContext';\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { GraphNodeResult } from '../../config/settings/graphDatabase/types/GraphNodeResult';
|
|
2
|
+
import { GraphRelationshipResult } from '../../config/settings/graphDatabase/types/GraphRelationshipResult';
|
|
3
|
+
import { AskResponse } from '../../types/StorySession';
|
|
4
|
+
/** What a vendor supplies to turn its own result cells into the platform-neutral graph results. */
|
|
5
|
+
export type GraphResultConverters<TResult, TNode extends TResult, TRelationship extends TResult> = {
|
|
6
|
+
vendor: string;
|
|
7
|
+
isNode: (result: TResult) => result is TNode;
|
|
8
|
+
isRelationship: (result: TResult) => result is TRelationship;
|
|
9
|
+
askConvertNode: (node: TNode) => AskResponse<GraphNodeResult>;
|
|
10
|
+
askConvertRelationship: (relationship: TRelationship) => AskResponse<GraphRelationshipResult>;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GraphResultConverters.js","sourceRoot":"","sources":["../../../../src/logic/graphDatabase/GraphResultConverters.ts"],"names":[],"mappings":"","sourcesContent":["import { GraphNodeResult } from '../../config/settings/graphDatabase/types/GraphNodeResult';\nimport { GraphRelationshipResult } from '../../config/settings/graphDatabase/types/GraphRelationshipResult';\nimport { AskResponse } from '../../types/StorySession';\n\n/** What a vendor supplies to turn its own result cells into the platform-neutral graph results. */\nexport type GraphResultConverters<TResult, TNode extends TResult, TRelationship extends TResult> = {\n vendor: string;\n isNode: (result: TResult) => result is TNode;\n isRelationship: (result: TResult) => result is TRelationship;\n askConvertNode: (node: TNode) => AskResponse<GraphNodeResult>;\n askConvertRelationship: (relationship: TRelationship) => AskResponse<GraphRelationshipResult>;\n};\n"]}
|
|
@@ -1,15 +1,6 @@
|
|
|
1
1
|
import { AnyGraphResult } from '../../config/settings/graphDatabase/types/AnyGraphResult';
|
|
2
|
-
import { GraphNodeResult } from '../../config/settings/graphDatabase/types/GraphNodeResult';
|
|
3
|
-
import { GraphRelationshipResult } from '../../config/settings/graphDatabase/types/GraphRelationshipResult';
|
|
4
2
|
import { AskResponse } from '../../types/StorySession';
|
|
5
|
-
|
|
6
|
-
export type GraphResultConverters<TResult, TNode extends TResult, TRelationship extends TResult> = {
|
|
7
|
-
vendor: string;
|
|
8
|
-
isNode: (result: TResult) => result is TNode;
|
|
9
|
-
isRelationship: (result: TResult) => result is TRelationship;
|
|
10
|
-
askConvertNode: (node: TNode) => AskResponse<GraphNodeResult>;
|
|
11
|
-
askConvertRelationship: (relationship: TRelationship) => AskResponse<GraphRelationshipResult>;
|
|
12
|
-
};
|
|
3
|
+
import { GraphResultConverters } from './GraphResultConverters';
|
|
13
4
|
/**
|
|
14
5
|
* Builds the story that converts any one cell of a vendor's query result: scalars pass through,
|
|
15
6
|
* nodes and relationships go through the vendor's converters, anything else is a wire-format
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createAnyGraphResultConverter.js","sourceRoot":"","sources":["../../../../src/logic/graphDatabase/createAnyGraphResultConverter.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"createAnyGraphResultConverter.js","sourceRoot":"","sources":["../../../../src/logic/graphDatabase/createAnyGraphResultConverter.ts"],"names":[],"mappings":";;AAYA,sEAkBC;AA9BD,qEAAkE;AAElE,6DAA0D;AAG1D,+DAA4D;AAE5D;;;;GAIG;AACH,SAAgB,6BAA6B,CAC3C,UAAgE;IAEhE,OAAO,QAAQ,CAAC,CAAC,mCAAmC,CAAC,MAAe;QAClE,IAAI,IAAA,yCAAmB,EAAC,MAAM,CAAC,EAAE,CAAC;YAChC,OAAO,MAAM,CAAC;QAChB,CAAC;QAED,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;YAC9B,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;QAClD,CAAC;QAED,IAAI,UAAU,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;YACtC,OAAO,KAAK,CAAC,CAAC,UAAU,CAAC,sBAAsB,CAAC,MAAM,CAAC,CAAC;QAC1D,CAAC;QAED,OAAO,KAAK,CAAC,CAAC,IAAA,6BAAa,EAAC,6BAAa,CAAC,YAAY,EAAE,qBAAqB,UAAU,CAAC,MAAM,eAAe,CAAC,CAAC;IACjH,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { askThrowError } from '../../actions/error/askThrowError';\nimport { AnyGraphResult } from '../../config/settings/graphDatabase/types/AnyGraphResult';\nimport { ErrorTypeEnum } from '../../types/ErrorTypeEnum';\nimport { AskResponse } from '../../types/StorySession';\nimport { GraphResultConverters } from './GraphResultConverters';\nimport { isGraphScalarResult } from './isGraphScalarResult';\n\n/**\n * Builds the story that converts any one cell of a vendor's query result: scalars pass through,\n * nodes and relationships go through the vendor's converters, anything else is a wire-format\n * drift and throws. Neptune and Neo4j share this shape and differ only in the guards and converters.\n */\nexport function createAnyGraphResultConverter<TResult, TNode extends TResult, TRelationship extends TResult>(\n converters: GraphResultConverters<TResult, TNode, TRelationship>,\n) {\n return function* askConvertAnyResultToAnyGraphResult(result: TResult): AskResponse<AnyGraphResult> {\n if (isGraphScalarResult(result)) {\n return result;\n }\n\n if (converters.isNode(result)) {\n return yield* converters.askConvertNode(result);\n }\n\n if (converters.isRelationship(result)) {\n return yield* converters.askConvertRelationship(result);\n }\n\n return yield* askThrowError(ErrorTypeEnum.GenericError, `Unable to convert ${converters.vendor} query result`);\n };\n}\n"]}
|
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./createAnyGraphResultConverter"), exports);
|
|
18
|
+
__exportStar(require("./GraphResultConverters"), exports);
|
|
18
19
|
__exportStar(require("./isGraphScalarResult"), exports);
|
|
19
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/graphDatabase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,wDAAsC","sourcesContent":["export * from './createAnyGraphResultConverter';\nexport * from './isGraphScalarResult';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/logic/graphDatabase/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC","sourcesContent":["export * from './createAnyGraphResultConverter';\nexport * from './GraphResultConverters';\nexport * from './isGraphScalarResult';\n"]}
|
|
@@ -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[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.getFullUrlFromConfigUrl = exports.isSameResource = exports.getKeyValueStoreFullyQualifiedResourceName = exports.getFullyQualifiedResourceName = exports.convertCustomFullyQualifiedResourceToGeneric = exports.getQueueQueueProcessors = exports.getUniqueKeyForSetting = exports.getFrontendBundleOptions = exports.getBackendBundleOptions = exports.resolveGlobalValue = exports.getGlobalConfigValue = exports.getSrcFilenameFromQpqFunctionRuntime = exports.getApiBuildPath = exports.getAllSrcEntries = exports.expandSrcEntriesWithActionProcessors = exports.getAllUserScriptModules = exports.getAllDynamicFunctions = exports.getAllBundleEntries = exports.getOwnedInlineFunctions = exports.getAllInlineFunctions = exports.getUserDirectorySrcEntries = exports.getQueueSrcEntries = exports.getOwnedScheduleEvents = exports.getScheduleEvents = exports.getUserDirectoryEmailTemplates = exports.getActionProcessorSources = exports.resolveCrossServiceResourceName = exports.getOwnedGraphDatabases = exports.getVirtualNetworkConfigs = exports.getDeployEventByName = exports.getDeployEventConfigs = exports.getAllGraphDatabaseConfigs = exports.resolveOwnerModuleName = exports.getAllAiConfigs = exports.getStorageDriveNames = exports.assertFifoQueueEventBusSubscriptionsAreValid = exports.getNotifyErrorConfigs = exports.getFederatedModuleStore = exports.getConfigRoot = void 0;
|
|
3
|
+
exports.resolveOwnedResourceLocalName = exports.getOwnedItems = exports.getForeignItems = exports.getConfigSettings = exports.getConfigSetting = exports.getApplicationName = exports.getApplicationModuleName = exports.getApplicationModuleFeature = exports.getApplicationModuleEnvironment = exports.getApplicationConfigSetting = exports.flattenQpqConfig = exports.resolveSecretOrThrow = exports.getSecretByName = exports.getOwnedSecretConfigs = exports.getAllSecretConfigs = exports.resolveQueueOrThrow = exports.getQueueByName = exports.getOwnedQueueConfigs = exports.getAllQueueConfigs = exports.resolveParameterOrThrow = exports.getParameterByName = exports.getOwnedParameterConfigs = exports.getAllParameterConfigs = exports.resolveKeyValueStoreOrThrow = exports.getOwnedKeyValueStoreConfigs = exports.getKeyValueStoreByName = exports.getAllKeyValueStoreConfigs = exports.resolveUserScriptRunnerConfigOrThrow = exports.getUserScriptRunnerConfig = exports.resolveUserDirectoryOrThrow = exports.getUserDirectoryByName = exports.getOwnedUserDirectoryConfigs = exports.getAllUserDirectoryConfigs = exports.resolveStorageDriveOrThrow = exports.getStorageDriveByName = exports.getOwnedStorageDriveConfigs = exports.getAllStorageDriveConfigs = exports.resolveSigningKeyOrThrow = exports.getSigningKeyByName = exports.getOwnedSigningKeyConfigs = exports.getAllSigningKeyConfigs = exports.getJavascriptRuntimeConfig = exports.resolveEventBusOrThrow = exports.getOwnedEventBusConfigs = exports.getEventBusByName = exports.getAllEventBusConfigs = exports.resolveCryptoKeyOrThrow = exports.getOwnedCryptoKeyConfigs = exports.getCryptoKeyByName = exports.getAllCryptoKeyConfigs = void 0;
|
|
4
|
+
exports.getFullUrlFromConfigUrl = exports.isSameResource = exports.getKeyValueStoreFullyQualifiedResourceName = exports.getFullyQualifiedResourceName = exports.convertCustomFullyQualifiedResourceToGeneric = exports.getQueueQueueProcessors = exports.getUniqueKeyForSetting = exports.getFrontendBundleOptions = exports.getBackendBundleOptions = exports.resolveGlobalValue = exports.getGlobalConfigValue = exports.getSrcFilenameFromQpqFunctionRuntime = exports.getApiBuildPath = exports.getAllSrcEntries = exports.expandSrcEntriesWithActionProcessors = exports.getAllUserScriptModules = exports.getAllDynamicFunctions = exports.getAllBundleEntries = exports.getOwnedInlineFunctions = exports.getAllInlineFunctions = exports.getUserDirectorySrcEntries = exports.getQueueSrcEntries = exports.getOwnedScheduleEvents = exports.getScheduleEvents = exports.getUserDirectoryEmailTemplates = exports.getActionProcessorSources = exports.resolveCrossServiceResourceName = exports.getOwnedGraphDatabases = exports.getVirtualNetworkConfigs = exports.getDeployEventByName = exports.getDeployEventConfigs = exports.getAllGraphDatabaseConfigs = exports.resolveOwnerModuleName = exports.getAllAiConfigs = exports.getStorageDriveNames = exports.assertFifoQueueEventBusSubscriptionsAreValid = exports.getNotifyErrorConfigs = exports.getFederatedModuleStore = exports.getConfigRoot = exports.resolveOwnerDeploymentContext = void 0;
|
|
5
5
|
const logic_1 = require("./config/settings/eventBus/logic");
|
|
6
6
|
const logic_2 = require("./config/settings/keyValueStore/logic");
|
|
7
7
|
var logic_3 = require("./config/settings/cryptoKey/logic");
|
|
@@ -71,6 +71,7 @@ Object.defineProperty(exports, "getApplicationModuleName", { enumerable: true, g
|
|
|
71
71
|
Object.defineProperty(exports, "getApplicationName", { enumerable: true, get: function () { return config_3.getApplicationName; } });
|
|
72
72
|
Object.defineProperty(exports, "getConfigSetting", { enumerable: true, get: function () { return config_3.getConfigSetting; } });
|
|
73
73
|
Object.defineProperty(exports, "getConfigSettings", { enumerable: true, get: function () { return config_3.getConfigSettings; } });
|
|
74
|
+
Object.defineProperty(exports, "getForeignItems", { enumerable: true, get: function () { return config_3.getForeignItems; } });
|
|
74
75
|
Object.defineProperty(exports, "getOwnedItems", { enumerable: true, get: function () { return config_3.getOwnedItems; } });
|
|
75
76
|
Object.defineProperty(exports, "resolveOwnedResourceLocalName", { enumerable: true, get: function () { return config_3.resolveOwnedResourceLocalName; } });
|
|
76
77
|
Object.defineProperty(exports, "resolveOwnerDeploymentContext", { enumerable: true, get: function () { return config_3.resolveOwnerDeploymentContext; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qpqCoreUtils.js","sourceRoot":"","sources":["../../src/qpqCoreUtils.ts"],"names":[],"mappings":";;;;AAAA,4DAAqE;AACrE,iEAA2G;AAC3G,2DAAkJ;AAAzI,+GAAA,sBAAsB,OAA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E,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;AA7BW,QAAA,uBAAuB,2BA6BlC","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":";;;;AAAA,4DAAqE;AACrE,iEAA2G;AAC3G,2DAAkJ;AAAzI,+GAAA,sBAAsB,OAAA;AAAE,2GAAA,kBAAkB,OAAA;AAAE,iHAAA,wBAAwB,OAAA;AAAE,gHAAA,uBAAuB,OAAA;AACtG,0DAA6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;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;AA7BW,QAAA,uBAAuB,2BA6BlC","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":";;AAMA,8CAmBC;AAtBD,8FAA8F;AAC9F,+FAA+F;AAC/F,0DAA0D;AAC1D,QAAe,CAAC,CAAC,iBAAiB,CAChC,OAA+D,EAC/D,OAAkC;IAElC,MAAM,KAAK,GAAQ,EAAE,CAAC;IACtB,IAAI,WAAW,GAAuB,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,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,KAAI,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAA,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"]}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./askPagedDataDrain"), exports);
|
|
18
|
+
__exportStar(require("./PagedDataDrainOptions"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stories/paging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC","sourcesContent":["export * from './askPagedDataDrain';\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/stories/paging/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,0DAAwC","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>>;
|