@luvio/environments 0.154.6 → 0.154.7-dev1

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.
@@ -880,6 +880,10 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
880
880
  }
881
881
  return {};
882
882
  };
883
+ const getIngestStagingStore = function () {
884
+ validateNotDisposed();
885
+ return stagingStore === null || stagingStore === void 0 ? void 0 : stagingStore.fallbackStringKeyInMemoryStore;
886
+ };
883
887
  const handleSuccessResponse = async function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
884
888
  validateNotDisposed();
885
889
  const cacheKeyMap = getResponseCacheKeysFunc();
@@ -1072,6 +1076,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
1072
1076
  applyCachePolicy: { value: applyCachePolicy },
1073
1077
  getIngestStagingStoreRecords: { value: getIngestStagingStoreRecords },
1074
1078
  getIngestStagingStoreMetadata: { value: getIngestStagingStoreMetadata },
1079
+ getIngestStagingStore: { value: getIngestStagingStore },
1075
1080
  handleSuccessResponse: { value: handleSuccessResponse },
1076
1081
  handleErrorResponse: { value: handleErrorResponse },
1077
1082
  getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
@@ -28,6 +28,11 @@ export interface DurableEnvironment extends Environment {
28
28
  * flow, otherwise returns an empty object.
29
29
  */
30
30
  getIngestStagingStoreMetadata(): InMemoryStore['fallbackStringKeyInMemoryStore']['metadata'];
31
+ /**
32
+ * Gets the ingest staging store if called during the ingestion flow,
33
+ * otherwise returns `undefined`.
34
+ */
35
+ getIngestStagingStore(): InMemoryStore['fallbackStringKeyInMemoryStore'] | undefined;
31
36
  }
32
37
  export declare const AdapterContextSegment = "ADAPTER-CONTEXT";
33
38
  export declare const ADAPTER_CONTEXT_ID_SUFFIX = "__NAMED_CONTEXT";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luvio/environments",
3
- "version": "0.154.6",
3
+ "version": "0.154.7-dev1",
4
4
  "description": "Luvio Environments",
5
5
  "repository": {
6
6
  "type": "git",
@@ -27,7 +27,7 @@
27
27
  "watch": "yarn build --watch"
28
28
  },
29
29
  "dependencies": {
30
- "@luvio/engine": "^0.154.6"
30
+ "@luvio/engine": "^0.154.7-dev1"
31
31
  },
32
32
  "volta": {
33
33
  "extends": "../../../package.json"