@salesforce/lds-adapters-commerce-extensions 1.170.0 → 1.170.1
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/dist/es/es2018/commerce-extensions.js +58 -44
- package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionExtensions.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappings.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionProviders.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/postCommerceExtensionMappings.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ApexClassOutputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/EffectiveMappingRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ExtensionOutputCollectionRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ExtensionOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/MappingInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/MappingOutputCollectionRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/MappingOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/ProviderOutputCollectionRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/ProviderOutputRepresentation.d.ts +1 -1
- package/package.json +1 -1
- package/sfdc/index.js +64 -46
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey,
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -207,8 +207,7 @@ const ingest$5 = function ExtensionOutputRepresentationIngest(input, path, luvio
|
|
|
207
207
|
}
|
|
208
208
|
return createLink(key);
|
|
209
209
|
};
|
|
210
|
-
function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
211
|
-
const rootKeySet = new StoreKeyMap();
|
|
210
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
212
211
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
213
212
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
214
213
|
rootKeySet.set(rootKey, {
|
|
@@ -216,7 +215,6 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
216
215
|
representationName: RepresentationType$5,
|
|
217
216
|
mergeable: false
|
|
218
217
|
});
|
|
219
|
-
return rootKeySet;
|
|
220
218
|
}
|
|
221
219
|
|
|
222
220
|
const TTL$4 = 60000;
|
|
@@ -333,8 +331,7 @@ const ingest$4 = function ExtensionOutputCollectionRepresentationIngest(input, p
|
|
|
333
331
|
}
|
|
334
332
|
return createLink(key);
|
|
335
333
|
};
|
|
336
|
-
function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
337
|
-
const rootKeySet = new StoreKeyMap();
|
|
334
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
338
335
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
339
336
|
const rootKey = fullPathFactory();
|
|
340
337
|
rootKeySet.set(rootKey, {
|
|
@@ -344,9 +341,8 @@ function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
|
344
341
|
});
|
|
345
342
|
const input_items_length = input.items.length;
|
|
346
343
|
for (let i = 0; i < input_items_length; i++) {
|
|
347
|
-
|
|
344
|
+
getTypeCacheKeys$5(rootKeySet, luvio, input.items[i]);
|
|
348
345
|
}
|
|
349
|
-
return rootKeySet;
|
|
350
346
|
}
|
|
351
347
|
|
|
352
348
|
function select$b(luvio, params) {
|
|
@@ -355,8 +351,8 @@ function select$b(luvio, params) {
|
|
|
355
351
|
function keyBuilder$a(luvio, params) {
|
|
356
352
|
return keyPrefix + '::ExtensionOutputCollectionRepresentation:(' + ')';
|
|
357
353
|
}
|
|
358
|
-
function getResponseCacheKeys$6(luvio, resourceParams, response) {
|
|
359
|
-
|
|
354
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
355
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a());
|
|
360
356
|
}
|
|
361
357
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
362
358
|
const { body } = response;
|
|
@@ -454,7 +450,11 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
454
450
|
const request = createResourceRequest$6();
|
|
455
451
|
return luvio.dispatchResourceRequest(request, options)
|
|
456
452
|
.then((response) => {
|
|
457
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () =>
|
|
453
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
454
|
+
const cache = new StoreKeyMap();
|
|
455
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
456
|
+
return cache;
|
|
457
|
+
});
|
|
458
458
|
}, (response) => {
|
|
459
459
|
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
460
460
|
});
|
|
@@ -620,8 +620,7 @@ const ingest$3 = function MappingOutputRepresentationIngest(input, path, luvio,
|
|
|
620
620
|
}
|
|
621
621
|
return createLink(key);
|
|
622
622
|
};
|
|
623
|
-
function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
624
|
-
const rootKeySet = new StoreKeyMap();
|
|
623
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
625
624
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
626
625
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
627
626
|
rootKeySet.set(rootKey, {
|
|
@@ -629,7 +628,6 @@ function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
|
629
628
|
representationName: RepresentationType$3,
|
|
630
629
|
mergeable: false
|
|
631
630
|
});
|
|
632
|
-
return rootKeySet;
|
|
633
631
|
}
|
|
634
632
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
635
633
|
return function notifyMappingUpdateAvailable(configs) {
|
|
@@ -760,8 +758,7 @@ const ingest$2 = function MappingOutputCollectionRepresentationIngest(input, pat
|
|
|
760
758
|
}
|
|
761
759
|
return createLink(key);
|
|
762
760
|
};
|
|
763
|
-
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
764
|
-
const rootKeySet = new StoreKeyMap();
|
|
761
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
765
762
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
766
763
|
const rootKey = fullPathFactory();
|
|
767
764
|
rootKeySet.set(rootKey, {
|
|
@@ -771,9 +768,8 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
771
768
|
});
|
|
772
769
|
const input_items_length = input.items.length;
|
|
773
770
|
for (let i = 0; i < input_items_length; i++) {
|
|
774
|
-
|
|
771
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.items[i]);
|
|
775
772
|
}
|
|
776
|
-
return rootKeySet;
|
|
777
773
|
}
|
|
778
774
|
|
|
779
775
|
function select$8(luvio, params) {
|
|
@@ -782,8 +778,8 @@ function select$8(luvio, params) {
|
|
|
782
778
|
function keyBuilder$7(luvio, params) {
|
|
783
779
|
return keyPrefix + '::MappingOutputCollectionRepresentation:(' + 'epn:' + params.queryParams.epn + ',' + 'webstoreId:' + params.queryParams.webstoreId + ')';
|
|
784
780
|
}
|
|
785
|
-
function getResponseCacheKeys$5(luvio, resourceParams, response) {
|
|
786
|
-
|
|
781
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
782
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
787
783
|
}
|
|
788
784
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
789
785
|
const { body } = response;
|
|
@@ -895,7 +891,11 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
895
891
|
const request = createResourceRequest$5(resourceParams);
|
|
896
892
|
return luvio.dispatchResourceRequest(request, options)
|
|
897
893
|
.then((response) => {
|
|
898
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () =>
|
|
894
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
895
|
+
const cache = new StoreKeyMap();
|
|
896
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
897
|
+
return cache;
|
|
898
|
+
});
|
|
899
899
|
}, (response) => {
|
|
900
900
|
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
901
901
|
});
|
|
@@ -943,8 +943,8 @@ const getMappingsAdapterFactory = (luvio) => function extensions__getMappings(un
|
|
|
943
943
|
function select$7(luvio, params) {
|
|
944
944
|
return select$a();
|
|
945
945
|
}
|
|
946
|
-
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
947
|
-
|
|
946
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
947
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
948
948
|
}
|
|
949
949
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
950
950
|
const { body } = response;
|
|
@@ -1036,7 +1036,11 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1036
1036
|
return luvio.handleSuccessResponse(() => {
|
|
1037
1037
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1038
1038
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1039
|
-
}, () =>
|
|
1039
|
+
}, () => {
|
|
1040
|
+
const cache = new StoreKeyMap();
|
|
1041
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1042
|
+
return cache;
|
|
1043
|
+
});
|
|
1040
1044
|
}, (response) => {
|
|
1041
1045
|
deepFreeze(response);
|
|
1042
1046
|
throw response;
|
|
@@ -1058,15 +1062,13 @@ function keyBuilder$5(luvio, params) {
|
|
|
1058
1062
|
id: params.urlParams.mappingId
|
|
1059
1063
|
});
|
|
1060
1064
|
}
|
|
1061
|
-
function getResponseCacheKeys$3(luvio, resourceParams) {
|
|
1065
|
+
function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
|
|
1062
1066
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
1063
|
-
const cacheKeyMap = new StoreKeyMap();
|
|
1064
1067
|
cacheKeyMap.set(key, {
|
|
1065
1068
|
namespace: keyPrefix,
|
|
1066
1069
|
representationName: RepresentationType$3,
|
|
1067
1070
|
mergeable: false
|
|
1068
1071
|
});
|
|
1069
|
-
return cacheKeyMap;
|
|
1070
1072
|
}
|
|
1071
1073
|
function evictSuccess(luvio, resourceParams) {
|
|
1072
1074
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
@@ -1131,7 +1133,11 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1131
1133
|
return luvio.handleSuccessResponse(() => {
|
|
1132
1134
|
evictSuccess(luvio, resourceParams);
|
|
1133
1135
|
return luvio.storeBroadcast();
|
|
1134
|
-
}, () =>
|
|
1136
|
+
}, () => {
|
|
1137
|
+
const cache = new StoreKeyMap();
|
|
1138
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams);
|
|
1139
|
+
return cache;
|
|
1140
|
+
});
|
|
1135
1141
|
}, (response) => {
|
|
1136
1142
|
deepFreeze(response);
|
|
1137
1143
|
throw response;
|
|
@@ -1156,8 +1162,8 @@ function keyBuilder$4(luvio, params) {
|
|
|
1156
1162
|
id: params.urlParams.mappingId
|
|
1157
1163
|
});
|
|
1158
1164
|
}
|
|
1159
|
-
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
1160
|
-
|
|
1165
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1166
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1161
1167
|
}
|
|
1162
1168
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1163
1169
|
const { body } = response;
|
|
@@ -1265,7 +1271,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1265
1271
|
const request = createResourceRequest$2(resourceParams);
|
|
1266
1272
|
return luvio.dispatchResourceRequest(request, options)
|
|
1267
1273
|
.then((response) => {
|
|
1268
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () =>
|
|
1274
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1275
|
+
const cache = new StoreKeyMap();
|
|
1276
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1277
|
+
return cache;
|
|
1278
|
+
});
|
|
1269
1279
|
}, (response) => {
|
|
1270
1280
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1271
1281
|
});
|
|
@@ -1313,8 +1323,8 @@ const getMappingAdapterFactory = (luvio) => function extensions__getMapping(untr
|
|
|
1313
1323
|
function select$5(luvio, params) {
|
|
1314
1324
|
return select$a();
|
|
1315
1325
|
}
|
|
1316
|
-
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
1317
|
-
|
|
1326
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1327
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1318
1328
|
}
|
|
1319
1329
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1320
1330
|
const { body } = response;
|
|
@@ -1413,7 +1423,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1413
1423
|
return luvio.handleSuccessResponse(() => {
|
|
1414
1424
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1415
1425
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1416
|
-
}, () =>
|
|
1426
|
+
}, () => {
|
|
1427
|
+
const cache = new StoreKeyMap();
|
|
1428
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1429
|
+
return cache;
|
|
1430
|
+
});
|
|
1417
1431
|
}, (response) => {
|
|
1418
1432
|
deepFreeze(response);
|
|
1419
1433
|
throw response;
|
|
@@ -1702,8 +1716,7 @@ const ingest$1 = function ProviderOutputRepresentationIngest(input, path, luvio,
|
|
|
1702
1716
|
}
|
|
1703
1717
|
return createLink(key);
|
|
1704
1718
|
};
|
|
1705
|
-
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
1706
|
-
const rootKeySet = new StoreKeyMap();
|
|
1719
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1707
1720
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1708
1721
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
1709
1722
|
rootKeySet.set(rootKey, {
|
|
@@ -1711,7 +1724,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
|
1711
1724
|
representationName: RepresentationType$1,
|
|
1712
1725
|
mergeable: false
|
|
1713
1726
|
});
|
|
1714
|
-
return rootKeySet;
|
|
1715
1727
|
}
|
|
1716
1728
|
|
|
1717
1729
|
const TTL = 60000;
|
|
@@ -1828,8 +1840,7 @@ const ingest = function ProviderOutputCollectionRepresentationIngest(input, path
|
|
|
1828
1840
|
}
|
|
1829
1841
|
return createLink(key);
|
|
1830
1842
|
};
|
|
1831
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
1832
|
-
const rootKeySet = new StoreKeyMap();
|
|
1843
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1833
1844
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1834
1845
|
const rootKey = fullPathFactory();
|
|
1835
1846
|
rootKeySet.set(rootKey, {
|
|
@@ -1839,9 +1850,8 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
1839
1850
|
});
|
|
1840
1851
|
const input_items_length = input.items.length;
|
|
1841
1852
|
for (let i = 0; i < input_items_length; i++) {
|
|
1842
|
-
|
|
1853
|
+
getTypeCacheKeys$1(rootKeySet, luvio, input.items[i]);
|
|
1843
1854
|
}
|
|
1844
|
-
return rootKeySet;
|
|
1845
1855
|
}
|
|
1846
1856
|
|
|
1847
1857
|
function select(luvio, params) {
|
|
@@ -1850,8 +1860,8 @@ function select(luvio, params) {
|
|
|
1850
1860
|
function keyBuilder$1(luvio, params) {
|
|
1851
1861
|
return keyPrefix + '::ProviderOutputCollectionRepresentation:(' + 'effectiveMappingsWebstoreId:' + params.queryParams.effectiveMappingsWebstoreId + ',' + 'epn:' + params.queryParams.epn + ')';
|
|
1852
1862
|
}
|
|
1853
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
1854
|
-
|
|
1863
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1864
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
1855
1865
|
}
|
|
1856
1866
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
1857
1867
|
const { body } = response;
|
|
@@ -1963,7 +1973,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
1963
1973
|
const request = createResourceRequest(resourceParams);
|
|
1964
1974
|
return luvio.dispatchResourceRequest(request, options)
|
|
1965
1975
|
.then((response) => {
|
|
1966
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
1976
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
1977
|
+
const cache = new StoreKeyMap();
|
|
1978
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
1979
|
+
return cache;
|
|
1980
|
+
});
|
|
1967
1981
|
}, (response) => {
|
|
1968
1982
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
1969
1983
|
});
|
package/dist/es/es2018/types/src/generated/resources/deleteCommerceExtensionMappingsByMappingId.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
export interface ResourceRequestConfig {
|
|
3
3
|
urlParams: {
|
|
4
4
|
mappingId: string;
|
|
@@ -6,7 +6,7 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
}
|
|
7
7
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
8
8
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
9
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig):
|
|
9
|
+
export declare function getResponseCacheKeys(cacheKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
10
10
|
export declare function evictSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig): void;
|
|
11
11
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
12
|
export default createResourceRequest;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { ExtensionOutputCollectionRepresentation as types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation } from '../types/ExtensionOutputCollectionRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
6
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
7
7
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
8
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation):
|
|
8
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation): void;
|
|
9
9
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation, any>;
|
|
10
10
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ExtensionOutputCollectionRepresentation_ExtensionOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
11
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { MappingOutputCollectionRepresentation as types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation } from '../types/MappingOutputCollectionRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
10
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
11
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation, any>;
|
|
14
14
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputCollectionRepresentation_MappingOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
15
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getCommerceExtensionMappingsByMappingId.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { ProviderOutputCollectionRepresentation as types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation } from '../types/ProviderOutputCollectionRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
10
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
11
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation, any>;
|
|
14
14
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ProviderOutputCollectionRepresentation_ProviderOutputCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
15
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
body: {
|
|
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
11
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
15
|
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/putCommerceExtensionMappingsByMappingId.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
2
|
import { MappingOutputRepresentation as types_MappingOutputRepresentation_MappingOutputRepresentation } from '../types/MappingOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -12,7 +12,7 @@ export interface ResourceRequestConfig {
|
|
|
12
12
|
};
|
|
13
13
|
}
|
|
14
14
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
15
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation):
|
|
15
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_MappingOutputRepresentation_MappingOutputRepresentation): void;
|
|
16
16
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_MappingOutputRepresentation_MappingOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_MappingOutputRepresentation_MappingOutputRepresentation, any>;
|
|
17
17
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
18
18
|
export default createResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const VERSION = "bed780ad418f5f02446c1b0f9d165e5d";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: ApexClassOutputRepresentation, existing
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: ApexClassOutputRepresentationNormalized, incoming: ApexClassOutputRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ApexClassOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ApexClassOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Output representation of a provider's apex class.
|
|
12
12
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const VERSION = "5d74820ea8d6cfbe4e56d4a37b7cdb77";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
@@ -6,7 +6,7 @@ export declare function normalize(input: EffectiveMappingRepresentation, existin
|
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: EffectiveMappingRepresentationNormalized, incoming: EffectiveMappingRepresentationNormalized): boolean;
|
|
8
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EffectiveMappingRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
9
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: EffectiveMappingRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
10
|
/**
|
|
11
11
|
* Output representation of a list of webstores that are effectivly mapped to an Extension.
|
|
12
12
|
*
|
package/dist/es/es2018/types/src/generated/types/ExtensionOutputCollectionRepresentation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
import { ExtensionOutputRepresentation as ExtensionOutputRepresentation_ExtensionOutputRepresentation } from './ExtensionOutputRepresentation';
|
|
3
3
|
export declare const TTL = 60000;
|
|
4
4
|
export declare const VERSION = "d4f70ccafbea6d39e182d71c60d4ba89";
|
|
@@ -16,7 +16,7 @@ export interface DynamicSelectParams {
|
|
|
16
16
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: ExtensionOutputCollectionRepresentationNormalized, incoming: ExtensionOutputCollectionRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExtensionOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtensionOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
21
21
|
/**
|
|
22
22
|
* Output representation of a list of extensions.
|
|
@@ -16,7 +16,7 @@ export declare function normalize(input: ExtensionOutputRepresentation, existing
|
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: ExtensionOutputRepresentationNormalized, incoming: ExtensionOutputRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ExtensionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ExtensionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
/**
|
|
21
21
|
* Output representation of one Extension.
|
|
22
22
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 60000;
|
|
3
3
|
export declare const VERSION = "4a8c0a159a66b5d5ed44fde4dee698a8";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
@@ -7,7 +7,7 @@ export declare function normalize(input: MappingInputRepresentation, existing: M
|
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: MappingInputRepresentationNormalized, incoming: MappingInputRepresentationNormalized): boolean;
|
|
9
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: MappingInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
10
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MappingInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
11
|
/**
|
|
12
12
|
* Input representation for mapping.
|
|
13
13
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
import { MappingOutputRepresentation as MappingOutputRepresentation_MappingOutputRepresentation } from './MappingOutputRepresentation';
|
|
3
3
|
export declare const TTL = 60000;
|
|
4
4
|
export declare const VERSION = "7aeadbbc38a3c6a4adff51c98906ed3e";
|
|
@@ -16,7 +16,7 @@ export interface DynamicSelectParams {
|
|
|
16
16
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: MappingOutputCollectionRepresentationNormalized, incoming: MappingOutputCollectionRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: MappingOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MappingOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
21
21
|
/**
|
|
22
22
|
* Output representation of a list of mapped extensions.
|
|
@@ -16,7 +16,7 @@ export declare function normalize(input: MappingOutputRepresentation, existing:
|
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: MappingOutputRepresentationNormalized, incoming: MappingOutputRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: MappingOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: MappingOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
/**
|
|
21
21
|
* Output representation for mapping.
|
|
22
22
|
*
|
package/dist/es/es2018/types/src/generated/types/ProviderOutputCollectionRepresentation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink,
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
import { ProviderOutputRepresentation as ProviderOutputRepresentation_ProviderOutputRepresentation } from './ProviderOutputRepresentation';
|
|
3
3
|
export declare const TTL = 60000;
|
|
4
4
|
export declare const VERSION = "d9978417e0efd08a87aa592d226979e1";
|
|
@@ -16,7 +16,7 @@ export interface DynamicSelectParams {
|
|
|
16
16
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: ProviderOutputCollectionRepresentationNormalized, incoming: ProviderOutputCollectionRepresentationNormalized): boolean;
|
|
18
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProviderOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProviderOutputCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
20
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
21
21
|
/**
|
|
22
22
|
* Output representation of a list of extension providers.
|
|
@@ -18,7 +18,7 @@ export declare function normalize(input: ProviderOutputRepresentation, existing:
|
|
|
18
18
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
19
19
|
export declare function equals(existing: ProviderOutputRepresentationNormalized, incoming: ProviderOutputRepresentationNormalized): boolean;
|
|
20
20
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: ProviderOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata):
|
|
21
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ProviderOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
22
22
|
/**
|
|
23
23
|
* Output representation of a Provider
|
|
24
24
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-commerce-extensions",
|
|
3
|
-
"version": "1.170.
|
|
3
|
+
"version": "1.170.1",
|
|
4
4
|
"description": "APIs to manage providers for commerce extensions and which will be used for each store.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/umd/es2018/commerce-extensions.js",
|
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey,
|
|
17
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -217,8 +217,7 @@ const ingest$5 = function ExtensionOutputRepresentationIngest(input, path, luvio
|
|
|
217
217
|
}
|
|
218
218
|
return createLink(key);
|
|
219
219
|
};
|
|
220
|
-
function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
221
|
-
const rootKeySet = new StoreKeyMap();
|
|
220
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
222
221
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
223
222
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
224
223
|
rootKeySet.set(rootKey, {
|
|
@@ -226,7 +225,6 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
226
225
|
representationName: RepresentationType$5,
|
|
227
226
|
mergeable: false
|
|
228
227
|
});
|
|
229
|
-
return rootKeySet;
|
|
230
228
|
}
|
|
231
229
|
|
|
232
230
|
const TTL$4 = 60000;
|
|
@@ -343,8 +341,7 @@ const ingest$4 = function ExtensionOutputCollectionRepresentationIngest(input, p
|
|
|
343
341
|
}
|
|
344
342
|
return createLink(key);
|
|
345
343
|
};
|
|
346
|
-
function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
347
|
-
const rootKeySet = new StoreKeyMap();
|
|
344
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
348
345
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
349
346
|
const rootKey = fullPathFactory();
|
|
350
347
|
rootKeySet.set(rootKey, {
|
|
@@ -354,9 +351,8 @@ function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
|
354
351
|
});
|
|
355
352
|
const input_items_length = input.items.length;
|
|
356
353
|
for (let i = 0; i < input_items_length; i++) {
|
|
357
|
-
|
|
354
|
+
getTypeCacheKeys$5(rootKeySet, luvio, input.items[i]);
|
|
358
355
|
}
|
|
359
|
-
return rootKeySet;
|
|
360
356
|
}
|
|
361
357
|
|
|
362
358
|
function select$b(luvio, params) {
|
|
@@ -365,8 +361,8 @@ function select$b(luvio, params) {
|
|
|
365
361
|
function keyBuilder$a(luvio, params) {
|
|
366
362
|
return keyPrefix + '::ExtensionOutputCollectionRepresentation:(' + ')';
|
|
367
363
|
}
|
|
368
|
-
function getResponseCacheKeys$6(luvio, resourceParams, response) {
|
|
369
|
-
|
|
364
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
365
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a());
|
|
370
366
|
}
|
|
371
367
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
372
368
|
const { body } = response;
|
|
@@ -464,7 +460,11 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
464
460
|
const request = createResourceRequest$6();
|
|
465
461
|
return luvio.dispatchResourceRequest(request, options)
|
|
466
462
|
.then((response) => {
|
|
467
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () =>
|
|
463
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
464
|
+
const cache = new StoreKeyMap();
|
|
465
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
466
|
+
return cache;
|
|
467
|
+
});
|
|
468
468
|
}, (response) => {
|
|
469
469
|
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
470
470
|
});
|
|
@@ -630,8 +630,7 @@ const ingest$3 = function MappingOutputRepresentationIngest(input, path, luvio,
|
|
|
630
630
|
}
|
|
631
631
|
return createLink(key);
|
|
632
632
|
};
|
|
633
|
-
function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
634
|
-
const rootKeySet = new StoreKeyMap();
|
|
633
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
635
634
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
636
635
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
637
636
|
rootKeySet.set(rootKey, {
|
|
@@ -639,7 +638,6 @@ function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
|
639
638
|
representationName: RepresentationType$3,
|
|
640
639
|
mergeable: false
|
|
641
640
|
});
|
|
642
|
-
return rootKeySet;
|
|
643
641
|
}
|
|
644
642
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
645
643
|
return function notifyMappingUpdateAvailable(configs) {
|
|
@@ -770,8 +768,7 @@ const ingest$2 = function MappingOutputCollectionRepresentationIngest(input, pat
|
|
|
770
768
|
}
|
|
771
769
|
return createLink(key);
|
|
772
770
|
};
|
|
773
|
-
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
774
|
-
const rootKeySet = new StoreKeyMap();
|
|
771
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
775
772
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
776
773
|
const rootKey = fullPathFactory();
|
|
777
774
|
rootKeySet.set(rootKey, {
|
|
@@ -781,9 +778,8 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
781
778
|
});
|
|
782
779
|
const input_items_length = input.items.length;
|
|
783
780
|
for (let i = 0; i < input_items_length; i++) {
|
|
784
|
-
|
|
781
|
+
getTypeCacheKeys$3(rootKeySet, luvio, input.items[i]);
|
|
785
782
|
}
|
|
786
|
-
return rootKeySet;
|
|
787
783
|
}
|
|
788
784
|
|
|
789
785
|
function select$8(luvio, params) {
|
|
@@ -792,8 +788,8 @@ function select$8(luvio, params) {
|
|
|
792
788
|
function keyBuilder$7(luvio, params) {
|
|
793
789
|
return keyPrefix + '::MappingOutputCollectionRepresentation:(' + 'epn:' + params.queryParams.epn + ',' + 'webstoreId:' + params.queryParams.webstoreId + ')';
|
|
794
790
|
}
|
|
795
|
-
function getResponseCacheKeys$5(luvio, resourceParams, response) {
|
|
796
|
-
|
|
791
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
792
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
797
793
|
}
|
|
798
794
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
799
795
|
const { body } = response;
|
|
@@ -905,7 +901,11 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
905
901
|
const request = createResourceRequest$5(resourceParams);
|
|
906
902
|
return luvio.dispatchResourceRequest(request, options)
|
|
907
903
|
.then((response) => {
|
|
908
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () =>
|
|
904
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
905
|
+
const cache = new StoreKeyMap();
|
|
906
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
907
|
+
return cache;
|
|
908
|
+
});
|
|
909
909
|
}, (response) => {
|
|
910
910
|
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
911
911
|
});
|
|
@@ -953,8 +953,8 @@ const getMappingsAdapterFactory = (luvio) => function extensions__getMappings(un
|
|
|
953
953
|
function select$7(luvio, params) {
|
|
954
954
|
return select$a();
|
|
955
955
|
}
|
|
956
|
-
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
957
|
-
|
|
956
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
957
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
958
958
|
}
|
|
959
959
|
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
960
960
|
const { body } = response;
|
|
@@ -1046,7 +1046,11 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
1046
1046
|
return luvio.handleSuccessResponse(() => {
|
|
1047
1047
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
1048
1048
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1049
|
-
}, () =>
|
|
1049
|
+
}, () => {
|
|
1050
|
+
const cache = new StoreKeyMap();
|
|
1051
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
1052
|
+
return cache;
|
|
1053
|
+
});
|
|
1050
1054
|
}, (response) => {
|
|
1051
1055
|
deepFreeze(response);
|
|
1052
1056
|
throw response;
|
|
@@ -1068,15 +1072,13 @@ function keyBuilder$5(luvio, params) {
|
|
|
1068
1072
|
id: params.urlParams.mappingId
|
|
1069
1073
|
});
|
|
1070
1074
|
}
|
|
1071
|
-
function getResponseCacheKeys$3(luvio, resourceParams) {
|
|
1075
|
+
function getResponseCacheKeys$3(cacheKeyMap, luvio, resourceParams) {
|
|
1072
1076
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
1073
|
-
const cacheKeyMap = new StoreKeyMap();
|
|
1074
1077
|
cacheKeyMap.set(key, {
|
|
1075
1078
|
namespace: keyPrefix,
|
|
1076
1079
|
representationName: RepresentationType$3,
|
|
1077
1080
|
mergeable: false
|
|
1078
1081
|
});
|
|
1079
|
-
return cacheKeyMap;
|
|
1080
1082
|
}
|
|
1081
1083
|
function evictSuccess(luvio, resourceParams) {
|
|
1082
1084
|
const key = keyBuilder$5(luvio, resourceParams);
|
|
@@ -1141,7 +1143,11 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
1141
1143
|
return luvio.handleSuccessResponse(() => {
|
|
1142
1144
|
evictSuccess(luvio, resourceParams);
|
|
1143
1145
|
return luvio.storeBroadcast();
|
|
1144
|
-
}, () =>
|
|
1146
|
+
}, () => {
|
|
1147
|
+
const cache = new StoreKeyMap();
|
|
1148
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams);
|
|
1149
|
+
return cache;
|
|
1150
|
+
});
|
|
1145
1151
|
}, (response) => {
|
|
1146
1152
|
deepFreeze(response);
|
|
1147
1153
|
throw response;
|
|
@@ -1166,8 +1172,8 @@ function keyBuilder$4(luvio, params) {
|
|
|
1166
1172
|
id: params.urlParams.mappingId
|
|
1167
1173
|
});
|
|
1168
1174
|
}
|
|
1169
|
-
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
1170
|
-
|
|
1175
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
1176
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1171
1177
|
}
|
|
1172
1178
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
1173
1179
|
const { body } = response;
|
|
@@ -1282,7 +1288,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
1282
1288
|
const request = createResourceRequest$2(resourceParams);
|
|
1283
1289
|
return luvio.dispatchResourceRequest(request, options)
|
|
1284
1290
|
.then((response) => {
|
|
1285
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () =>
|
|
1291
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
1292
|
+
const cache = new StoreKeyMap();
|
|
1293
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
1294
|
+
return cache;
|
|
1295
|
+
});
|
|
1286
1296
|
}, (response) => {
|
|
1287
1297
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
1288
1298
|
});
|
|
@@ -1339,7 +1349,11 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
1339
1349
|
const { body } = response;
|
|
1340
1350
|
luvio.storeIngest(key, ingest$3, body);
|
|
1341
1351
|
return luvio.storeBroadcast();
|
|
1342
|
-
}, () =>
|
|
1352
|
+
}, () => {
|
|
1353
|
+
const cache = new StoreKeyMap();
|
|
1354
|
+
getTypeCacheKeys$3(cache, luvio, response.body);
|
|
1355
|
+
return cache;
|
|
1356
|
+
});
|
|
1343
1357
|
}, (error) => {
|
|
1344
1358
|
return luvio.handleErrorResponse(() => {
|
|
1345
1359
|
const errorSnapshot = luvio.errorSnapshot(error);
|
|
@@ -1360,8 +1374,8 @@ const notifyChangeFactory = (luvio, options) => {
|
|
|
1360
1374
|
function select$5(luvio, params) {
|
|
1361
1375
|
return select$a();
|
|
1362
1376
|
}
|
|
1363
|
-
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
1364
|
-
|
|
1377
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
1378
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
1365
1379
|
}
|
|
1366
1380
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
1367
1381
|
const { body } = response;
|
|
@@ -1460,7 +1474,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
1460
1474
|
return luvio.handleSuccessResponse(() => {
|
|
1461
1475
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
1462
1476
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1463
|
-
}, () =>
|
|
1477
|
+
}, () => {
|
|
1478
|
+
const cache = new StoreKeyMap();
|
|
1479
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
1480
|
+
return cache;
|
|
1481
|
+
});
|
|
1464
1482
|
}, (response) => {
|
|
1465
1483
|
deepFreeze(response);
|
|
1466
1484
|
throw response;
|
|
@@ -1749,8 +1767,7 @@ const ingest$1 = function ProviderOutputRepresentationIngest(input, path, luvio,
|
|
|
1749
1767
|
}
|
|
1750
1768
|
return createLink(key);
|
|
1751
1769
|
};
|
|
1752
|
-
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
1753
|
-
const rootKeySet = new StoreKeyMap();
|
|
1770
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
1754
1771
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1755
1772
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
1756
1773
|
rootKeySet.set(rootKey, {
|
|
@@ -1758,7 +1775,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
|
1758
1775
|
representationName: RepresentationType$1,
|
|
1759
1776
|
mergeable: false
|
|
1760
1777
|
});
|
|
1761
|
-
return rootKeySet;
|
|
1762
1778
|
}
|
|
1763
1779
|
|
|
1764
1780
|
const TTL = 60000;
|
|
@@ -1875,8 +1891,7 @@ const ingest = function ProviderOutputCollectionRepresentationIngest(input, path
|
|
|
1875
1891
|
}
|
|
1876
1892
|
return createLink(key);
|
|
1877
1893
|
};
|
|
1878
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
1879
|
-
const rootKeySet = new StoreKeyMap();
|
|
1894
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
1880
1895
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1881
1896
|
const rootKey = fullPathFactory();
|
|
1882
1897
|
rootKeySet.set(rootKey, {
|
|
@@ -1886,9 +1901,8 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
1886
1901
|
});
|
|
1887
1902
|
const input_items_length = input.items.length;
|
|
1888
1903
|
for (let i = 0; i < input_items_length; i++) {
|
|
1889
|
-
|
|
1904
|
+
getTypeCacheKeys$1(rootKeySet, luvio, input.items[i]);
|
|
1890
1905
|
}
|
|
1891
|
-
return rootKeySet;
|
|
1892
1906
|
}
|
|
1893
1907
|
|
|
1894
1908
|
function select(luvio, params) {
|
|
@@ -1897,8 +1911,8 @@ function select(luvio, params) {
|
|
|
1897
1911
|
function keyBuilder$1(luvio, params) {
|
|
1898
1912
|
return keyPrefix + '::ProviderOutputCollectionRepresentation:(' + 'effectiveMappingsWebstoreId:' + params.queryParams.effectiveMappingsWebstoreId + ',' + 'epn:' + params.queryParams.epn + ')';
|
|
1899
1913
|
}
|
|
1900
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
1901
|
-
|
|
1914
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
1915
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
1902
1916
|
}
|
|
1903
1917
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
1904
1918
|
const { body } = response;
|
|
@@ -2010,7 +2024,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
2010
2024
|
const request = createResourceRequest(resourceParams);
|
|
2011
2025
|
return luvio.dispatchResourceRequest(request, options)
|
|
2012
2026
|
.then((response) => {
|
|
2013
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
2027
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
2028
|
+
const cache = new StoreKeyMap();
|
|
2029
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
2030
|
+
return cache;
|
|
2031
|
+
});
|
|
2014
2032
|
}, (response) => {
|
|
2015
2033
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
2016
2034
|
});
|
|
@@ -2121,4 +2139,4 @@ withDefaultLuvio((luvio) => {
|
|
|
2121
2139
|
});
|
|
2122
2140
|
|
|
2123
2141
|
export { createMapping, deleteMapping, getExtensions, getExtensions_imperative, getMapping, getMappingNotifyChange, getMapping_imperative, getMappings, getMappings_imperative, getProviders, getProviders_imperative, notifyMappingUpdateAvailable, updateMapping };
|
|
2124
|
-
// version: 1.170.
|
|
2142
|
+
// version: 1.170.1-5fb216cf1
|