@salesforce/lds-adapters-industries-epc 1.320.0 → 1.321.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/dist/es/es2018/industries-epc.js +658 -351
- package/dist/es/es2018/types/src/generated/adapters/getIndexError.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectPcmIndexError.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/FieldsInfoOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/IndexConfigurationFieldOutputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/IndexConfigurationInputRepresentation.d.ts +7 -1
- package/dist/es/es2018/types/src/generated/types/IndexErrorOutputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/SettingInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SettingOutputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/SnapshotIndexErrorOutputRepresentation.d.ts +36 -0
- package/package.json +4 -4
- package/sfdc/index.js +698 -383
- package/src/raml/api.raml +90 -0
- package/src/raml/luvio.raml +7 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$f, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$9, typeCheckConfig as typeCheckConfig$f } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys, create: ObjectCreate } = Object;
|
|
@@ -92,7 +92,7 @@ function createLink(ref) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
function validate$
|
|
95
|
+
function validate$Q(obj, path = 'DeactivateInputRepresentation') {
|
|
96
96
|
const v_error = (() => {
|
|
97
97
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
98
98
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -125,7 +125,7 @@ function validate$O(obj, path = 'DeactivateInputRepresentation') {
|
|
|
125
125
|
return v_error === undefined ? null : v_error;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
function validate$
|
|
128
|
+
function validate$P(obj, path = 'ErrorOutputRepresentation') {
|
|
129
129
|
const v_error = (() => {
|
|
130
130
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
131
131
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -156,9 +156,9 @@ function validate$N(obj, path = 'ErrorOutputRepresentation') {
|
|
|
156
156
|
return v_error === undefined ? null : v_error;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
|
-
const TTL$
|
|
160
|
-
const VERSION$
|
|
161
|
-
function validate$
|
|
159
|
+
const TTL$d = 6000;
|
|
160
|
+
const VERSION$f = "67abdeaa299bae24f468fd2e78cd1e1e";
|
|
161
|
+
function validate$O(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
162
162
|
const v_error = (() => {
|
|
163
163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
164
164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -171,7 +171,7 @@ function validate$M(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
|
171
171
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
172
172
|
const obj_errors_item = obj_errors[i];
|
|
173
173
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
174
|
-
const referencepath_errors_itemValidationError = validate$
|
|
174
|
+
const referencepath_errors_itemValidationError = validate$P(obj_errors_item, path_errors_item);
|
|
175
175
|
if (referencepath_errors_itemValidationError !== null) {
|
|
176
176
|
let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
177
177
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -186,68 +186,68 @@ function validate$M(obj, path = 'RecordIdMapOutputRepresentation') {
|
|
|
186
186
|
})();
|
|
187
187
|
return v_error === undefined ? null : v_error;
|
|
188
188
|
}
|
|
189
|
-
const RepresentationType$
|
|
190
|
-
function keyBuilder$
|
|
191
|
-
return keyPrefix + '::' + RepresentationType$
|
|
189
|
+
const RepresentationType$e = 'RecordIdMapOutputRepresentation';
|
|
190
|
+
function keyBuilder$n(luvio, config) {
|
|
191
|
+
return keyPrefix + '::' + RepresentationType$e + ':' + config.message;
|
|
192
192
|
}
|
|
193
193
|
function keyBuilderFromType$5(luvio, object) {
|
|
194
194
|
const keyParams = {
|
|
195
195
|
message: object.status
|
|
196
196
|
};
|
|
197
|
-
return keyBuilder$
|
|
197
|
+
return keyBuilder$n(luvio, keyParams);
|
|
198
198
|
}
|
|
199
|
-
function normalize$
|
|
199
|
+
function normalize$e(input, existing, path, luvio, store, timestamp) {
|
|
200
200
|
return input;
|
|
201
201
|
}
|
|
202
|
-
const select$
|
|
202
|
+
const select$u = function RecordIdMapOutputRepresentationSelect() {
|
|
203
203
|
return {
|
|
204
204
|
kind: 'Fragment',
|
|
205
|
-
version: VERSION$
|
|
205
|
+
version: VERSION$f,
|
|
206
206
|
private: [],
|
|
207
207
|
opaque: true
|
|
208
208
|
};
|
|
209
209
|
};
|
|
210
|
-
function equals$
|
|
210
|
+
function equals$f(existing, incoming) {
|
|
211
211
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
212
212
|
return false;
|
|
213
213
|
}
|
|
214
214
|
return true;
|
|
215
215
|
}
|
|
216
|
-
const ingest$
|
|
216
|
+
const ingest$e = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
217
217
|
if (process.env.NODE_ENV !== 'production') {
|
|
218
|
-
const validateError = validate$
|
|
218
|
+
const validateError = validate$O(input);
|
|
219
219
|
if (validateError !== null) {
|
|
220
220
|
throw validateError;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
223
|
const key = keyBuilderFromType$5(luvio, input);
|
|
224
|
-
const ttlToUse = TTL$
|
|
225
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
224
|
+
const ttlToUse = TTL$d;
|
|
225
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$e, "epc", VERSION$f, RepresentationType$e, equals$f);
|
|
226
226
|
return createLink(key);
|
|
227
227
|
};
|
|
228
|
-
function getTypeCacheKeys$
|
|
228
|
+
function getTypeCacheKeys$e(rootKeySet, luvio, input, fullPathFactory) {
|
|
229
229
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
230
230
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
231
231
|
rootKeySet.set(rootKey, {
|
|
232
232
|
namespace: keyPrefix,
|
|
233
|
-
representationName: RepresentationType$
|
|
233
|
+
representationName: RepresentationType$e,
|
|
234
234
|
mergeable: false
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
function select$
|
|
239
|
-
return select$
|
|
238
|
+
function select$t(luvio, params) {
|
|
239
|
+
return select$u();
|
|
240
240
|
}
|
|
241
|
-
function getResponseCacheKeys$
|
|
242
|
-
getTypeCacheKeys$
|
|
241
|
+
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
242
|
+
getTypeCacheKeys$e(storeKeyMap, luvio, response);
|
|
243
243
|
}
|
|
244
|
-
function ingestSuccess$
|
|
244
|
+
function ingestSuccess$e(luvio, resourceParams, response) {
|
|
245
245
|
const { body } = response;
|
|
246
246
|
const key = keyBuilderFromType$5(luvio, body);
|
|
247
|
-
luvio.storeIngest(key, ingest$
|
|
247
|
+
luvio.storeIngest(key, ingest$e, body);
|
|
248
248
|
const snapshot = luvio.storeLookup({
|
|
249
249
|
recordId: key,
|
|
250
|
-
node: select$
|
|
250
|
+
node: select$t(),
|
|
251
251
|
variables: {},
|
|
252
252
|
});
|
|
253
253
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -258,7 +258,7 @@ function ingestSuccess$d(luvio, resourceParams, response) {
|
|
|
258
258
|
deepFreeze(snapshot.data);
|
|
259
259
|
return snapshot;
|
|
260
260
|
}
|
|
261
|
-
function createResourceRequest$
|
|
261
|
+
function createResourceRequest$e(config) {
|
|
262
262
|
const headers = {};
|
|
263
263
|
return {
|
|
264
264
|
baseUri: '/services/data/v63.0',
|
|
@@ -272,45 +272,45 @@ function createResourceRequest$d(config) {
|
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
const adapterName$
|
|
275
|
+
const adapterName$e = 'deactivate';
|
|
276
276
|
const deactivate_ConfigPropertyMetadata = [
|
|
277
277
|
generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
278
278
|
];
|
|
279
|
-
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
280
|
-
const createResourceParams$
|
|
281
|
-
function typeCheckConfig$
|
|
279
|
+
const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$e, deactivate_ConfigPropertyMetadata);
|
|
280
|
+
const createResourceParams$e = /*#__PURE__*/ createResourceParams$f(deactivate_ConfigPropertyMetadata);
|
|
281
|
+
function typeCheckConfig$e(untrustedConfig) {
|
|
282
282
|
const config = {};
|
|
283
283
|
const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
|
|
284
|
-
const referenceDeactivateInputRepresentationValidationError = validate$
|
|
284
|
+
const referenceDeactivateInputRepresentationValidationError = validate$Q(untrustedConfig_deactivateInputPayload);
|
|
285
285
|
if (referenceDeactivateInputRepresentationValidationError === null) {
|
|
286
286
|
config.deactivateInputPayload = untrustedConfig_deactivateInputPayload;
|
|
287
287
|
}
|
|
288
288
|
return config;
|
|
289
289
|
}
|
|
290
|
-
function validateAdapterConfig$
|
|
290
|
+
function validateAdapterConfig$e(untrustedConfig, configPropertyNames) {
|
|
291
291
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
292
292
|
return null;
|
|
293
293
|
}
|
|
294
294
|
if (process.env.NODE_ENV !== 'production') {
|
|
295
295
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
296
296
|
}
|
|
297
|
-
const config = typeCheckConfig$
|
|
297
|
+
const config = typeCheckConfig$e(untrustedConfig);
|
|
298
298
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
299
299
|
return null;
|
|
300
300
|
}
|
|
301
301
|
return config;
|
|
302
302
|
}
|
|
303
|
-
function buildNetworkSnapshot$
|
|
304
|
-
const resourceParams = createResourceParams$
|
|
305
|
-
const request = createResourceRequest$
|
|
303
|
+
function buildNetworkSnapshot$e(luvio, config, options) {
|
|
304
|
+
const resourceParams = createResourceParams$e(config);
|
|
305
|
+
const request = createResourceRequest$e(resourceParams);
|
|
306
306
|
return luvio.dispatchResourceRequest(request, options)
|
|
307
307
|
.then((response) => {
|
|
308
308
|
return luvio.handleSuccessResponse(() => {
|
|
309
|
-
const snapshot = ingestSuccess$
|
|
309
|
+
const snapshot = ingestSuccess$e(luvio, resourceParams, response);
|
|
310
310
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
311
311
|
}, () => {
|
|
312
312
|
const cache = new StoreKeyMap();
|
|
313
|
-
getResponseCacheKeys$
|
|
313
|
+
getResponseCacheKeys$e(cache, luvio, resourceParams, response.body);
|
|
314
314
|
return cache;
|
|
315
315
|
});
|
|
316
316
|
}, (response) => {
|
|
@@ -320,16 +320,16 @@ function buildNetworkSnapshot$d(luvio, config, options) {
|
|
|
320
320
|
}
|
|
321
321
|
const deactivateAdapterFactory = (luvio) => {
|
|
322
322
|
return function deactivate(untrustedConfig) {
|
|
323
|
-
const config = validateAdapterConfig$
|
|
323
|
+
const config = validateAdapterConfig$e(untrustedConfig, deactivate_ConfigPropertyNames);
|
|
324
324
|
// Invalid or incomplete config
|
|
325
325
|
if (config === null) {
|
|
326
326
|
throw new Error('Invalid config for "deactivate"');
|
|
327
327
|
}
|
|
328
|
-
return buildNetworkSnapshot$
|
|
328
|
+
return buildNetworkSnapshot$e(luvio, config);
|
|
329
329
|
};
|
|
330
330
|
};
|
|
331
331
|
|
|
332
|
-
function validate$
|
|
332
|
+
function validate$N(obj, path = 'EpcErrorOutputRepresentation') {
|
|
333
333
|
const v_error = (() => {
|
|
334
334
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
335
335
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -380,7 +380,7 @@ function validate$L(obj, path = 'EpcErrorOutputRepresentation') {
|
|
|
380
380
|
return v_error === undefined ? null : v_error;
|
|
381
381
|
}
|
|
382
382
|
|
|
383
|
-
function validate$
|
|
383
|
+
function validate$M(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
|
|
384
384
|
const v_error = (() => {
|
|
385
385
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
386
386
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -399,6 +399,13 @@ function validate$K(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
|
|
|
399
399
|
return new TypeError('Expected "string" but received "' + typeof obj_attributeFieldId + '" (at "' + path_attributeFieldId + '")');
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
+
if (obj.facetDisplayRank !== undefined) {
|
|
403
|
+
const obj_facetDisplayRank = obj.facetDisplayRank;
|
|
404
|
+
const path_facetDisplayRank = path + '.facetDisplayRank';
|
|
405
|
+
if (typeof obj_facetDisplayRank !== 'number' || (typeof obj_facetDisplayRank === 'number' && Math.floor(obj_facetDisplayRank) !== obj_facetDisplayRank)) {
|
|
406
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_facetDisplayRank + '" (at "' + path_facetDisplayRank + '")');
|
|
407
|
+
}
|
|
408
|
+
}
|
|
402
409
|
if (obj.isDisplayable !== undefined) {
|
|
403
410
|
const obj_isDisplayable = obj.isDisplayable;
|
|
404
411
|
const path_isDisplayable = path + '.isDisplayable';
|
|
@@ -406,6 +413,13 @@ function validate$K(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
|
|
|
406
413
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isDisplayable + '" (at "' + path_isDisplayable + '")');
|
|
407
414
|
}
|
|
408
415
|
}
|
|
416
|
+
if (obj.isFacetable !== undefined) {
|
|
417
|
+
const obj_isFacetable = obj.isFacetable;
|
|
418
|
+
const path_isFacetable = path + '.isFacetable';
|
|
419
|
+
if (typeof obj_isFacetable !== 'boolean') {
|
|
420
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFacetable + '" (at "' + path_isFacetable + '")');
|
|
421
|
+
}
|
|
422
|
+
}
|
|
409
423
|
if (obj.isSearchable !== undefined) {
|
|
410
424
|
const obj_isSearchable = obj.isSearchable;
|
|
411
425
|
const path_isSearchable = path + '.isSearchable';
|
|
@@ -438,7 +452,7 @@ function validate$K(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
|
|
|
438
452
|
return v_error === undefined ? null : v_error;
|
|
439
453
|
}
|
|
440
454
|
|
|
441
|
-
function validate$
|
|
455
|
+
function validate$L(obj, path = 'FieldsInfoOutputRepresentation') {
|
|
442
456
|
const v_error = (() => {
|
|
443
457
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
444
458
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -457,6 +471,20 @@ function validate$J(obj, path = 'FieldsInfoOutputRepresentation') {
|
|
|
457
471
|
return new TypeError('Expected "boolean" but received "' + typeof obj_isConfigurable + '" (at "' + path_isConfigurable + '")');
|
|
458
472
|
}
|
|
459
473
|
}
|
|
474
|
+
if (obj.isFacetableConfigurable !== undefined) {
|
|
475
|
+
const obj_isFacetableConfigurable = obj.isFacetableConfigurable;
|
|
476
|
+
const path_isFacetableConfigurable = path + '.isFacetableConfigurable';
|
|
477
|
+
if (typeof obj_isFacetableConfigurable !== 'boolean') {
|
|
478
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFacetableConfigurable + '" (at "' + path_isFacetableConfigurable + '")');
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
if (obj.isSearchableConfigurable !== undefined) {
|
|
482
|
+
const obj_isSearchableConfigurable = obj.isSearchableConfigurable;
|
|
483
|
+
const path_isSearchableConfigurable = path + '.isSearchableConfigurable';
|
|
484
|
+
if (typeof obj_isSearchableConfigurable !== 'boolean') {
|
|
485
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isSearchableConfigurable + '" (at "' + path_isSearchableConfigurable + '")');
|
|
486
|
+
}
|
|
487
|
+
}
|
|
460
488
|
if (obj.label !== undefined) {
|
|
461
489
|
const obj_label = obj.label;
|
|
462
490
|
const path_label = path + '.label';
|
|
@@ -482,7 +510,7 @@ function validate$J(obj, path = 'FieldsInfoOutputRepresentation') {
|
|
|
482
510
|
return v_error === undefined ? null : v_error;
|
|
483
511
|
}
|
|
484
512
|
|
|
485
|
-
function validate$
|
|
513
|
+
function validate$K(obj, path = 'ObjectInfoOutputRepresentation') {
|
|
486
514
|
const v_error = (() => {
|
|
487
515
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
488
516
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -496,7 +524,7 @@ function validate$I(obj, path = 'ObjectInfoOutputRepresentation') {
|
|
|
496
524
|
for (let i = 0; i < obj_fields.length; i++) {
|
|
497
525
|
const obj_fields_item = obj_fields[i];
|
|
498
526
|
const path_fields_item = path_fields + '[' + i + ']';
|
|
499
|
-
const referencepath_fields_itemValidationError = validate$
|
|
527
|
+
const referencepath_fields_itemValidationError = validate$L(obj_fields_item, path_fields_item);
|
|
500
528
|
if (referencepath_fields_itemValidationError !== null) {
|
|
501
529
|
let message = 'Object doesn\'t match FieldsInfoOutputRepresentation (at "' + path_fields_item + '")\n';
|
|
502
530
|
message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -515,7 +543,7 @@ function validate$I(obj, path = 'ObjectInfoOutputRepresentation') {
|
|
|
515
543
|
return v_error === undefined ? null : v_error;
|
|
516
544
|
}
|
|
517
545
|
|
|
518
|
-
function validate$
|
|
546
|
+
function validate$J(obj, path = 'MetadataOutputRepresentation') {
|
|
519
547
|
const v_error = (() => {
|
|
520
548
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
521
549
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -529,7 +557,7 @@ function validate$H(obj, path = 'MetadataOutputRepresentation') {
|
|
|
529
557
|
for (let i = 0; i < obj_objectInfos.length; i++) {
|
|
530
558
|
const obj_objectInfos_item = obj_objectInfos[i];
|
|
531
559
|
const path_objectInfos_item = path_objectInfos + '[' + i + ']';
|
|
532
|
-
const referencepath_objectInfos_itemValidationError = validate$
|
|
560
|
+
const referencepath_objectInfos_itemValidationError = validate$K(obj_objectInfos_item, path_objectInfos_item);
|
|
533
561
|
if (referencepath_objectInfos_itemValidationError !== null) {
|
|
534
562
|
let message = 'Object doesn\'t match ObjectInfoOutputRepresentation (at "' + path_objectInfos_item + '")\n';
|
|
535
563
|
message += referencepath_objectInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -541,9 +569,9 @@ function validate$H(obj, path = 'MetadataOutputRepresentation') {
|
|
|
541
569
|
return v_error === undefined ? null : v_error;
|
|
542
570
|
}
|
|
543
571
|
|
|
544
|
-
const TTL$
|
|
545
|
-
const VERSION$
|
|
546
|
-
function validate$
|
|
572
|
+
const TTL$c = 6000;
|
|
573
|
+
const VERSION$e = "61cfe23ab3d064d226af215df6681afc";
|
|
574
|
+
function validate$I(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
|
|
547
575
|
const v_error = (() => {
|
|
548
576
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
549
577
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -564,7 +592,7 @@ function validate$G(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
|
|
|
564
592
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
565
593
|
const obj_errors_item = obj_errors[i];
|
|
566
594
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
567
|
-
const referencepath_errors_itemValidationError = validate$
|
|
595
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
568
596
|
if (referencepath_errors_itemValidationError !== null) {
|
|
569
597
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
570
598
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -581,7 +609,7 @@ function validate$G(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
|
|
|
581
609
|
for (let i = 0; i < obj_indexConfigurations.length; i++) {
|
|
582
610
|
const obj_indexConfigurations_item = obj_indexConfigurations[i];
|
|
583
611
|
const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
|
|
584
|
-
const referencepath_indexConfigurations_itemValidationError = validate$
|
|
612
|
+
const referencepath_indexConfigurations_itemValidationError = validate$M(obj_indexConfigurations_item, path_indexConfigurations_item);
|
|
585
613
|
if (referencepath_indexConfigurations_itemValidationError !== null) {
|
|
586
614
|
let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
|
|
587
615
|
message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -592,7 +620,7 @@ function validate$G(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
|
|
|
592
620
|
if (obj.metadata !== undefined) {
|
|
593
621
|
const obj_metadata = obj.metadata;
|
|
594
622
|
const path_metadata = path + '.metadata';
|
|
595
|
-
const referencepath_metadataValidationError = validate$
|
|
623
|
+
const referencepath_metadataValidationError = validate$J(obj_metadata, path_metadata);
|
|
596
624
|
if (referencepath_metadataValidationError !== null) {
|
|
597
625
|
let message = 'Object doesn\'t match MetadataOutputRepresentation (at "' + path_metadata + '")\n';
|
|
598
626
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -609,62 +637,62 @@ function validate$G(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
|
|
|
609
637
|
})();
|
|
610
638
|
return v_error === undefined ? null : v_error;
|
|
611
639
|
}
|
|
612
|
-
const RepresentationType$
|
|
613
|
-
function normalize$
|
|
640
|
+
const RepresentationType$d = 'IndexConfigurationCollectionOutputRepresentation';
|
|
641
|
+
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
614
642
|
return input;
|
|
615
643
|
}
|
|
616
|
-
const select$
|
|
644
|
+
const select$s = function IndexConfigurationCollectionOutputRepresentationSelect() {
|
|
617
645
|
return {
|
|
618
646
|
kind: 'Fragment',
|
|
619
|
-
version: VERSION$
|
|
647
|
+
version: VERSION$e,
|
|
620
648
|
private: [],
|
|
621
649
|
opaque: true
|
|
622
650
|
};
|
|
623
651
|
};
|
|
624
|
-
function equals$
|
|
652
|
+
function equals$e(existing, incoming) {
|
|
625
653
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
626
654
|
return false;
|
|
627
655
|
}
|
|
628
656
|
return true;
|
|
629
657
|
}
|
|
630
|
-
const ingest$
|
|
658
|
+
const ingest$d = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
631
659
|
if (process.env.NODE_ENV !== 'production') {
|
|
632
|
-
const validateError = validate$
|
|
660
|
+
const validateError = validate$I(input);
|
|
633
661
|
if (validateError !== null) {
|
|
634
662
|
throw validateError;
|
|
635
663
|
}
|
|
636
664
|
}
|
|
637
665
|
const key = path.fullPath;
|
|
638
|
-
const ttlToUse = TTL$
|
|
639
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
666
|
+
const ttlToUse = TTL$c;
|
|
667
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "epc", VERSION$e, RepresentationType$d, equals$e);
|
|
640
668
|
return createLink(key);
|
|
641
669
|
};
|
|
642
|
-
function getTypeCacheKeys$
|
|
670
|
+
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
643
671
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
644
672
|
const rootKey = fullPathFactory();
|
|
645
673
|
rootKeySet.set(rootKey, {
|
|
646
674
|
namespace: keyPrefix,
|
|
647
|
-
representationName: RepresentationType$
|
|
675
|
+
representationName: RepresentationType$d,
|
|
648
676
|
mergeable: false
|
|
649
677
|
});
|
|
650
678
|
}
|
|
651
679
|
|
|
652
|
-
function select$
|
|
653
|
-
return select$
|
|
680
|
+
function select$r(luvio, params) {
|
|
681
|
+
return select$s();
|
|
654
682
|
}
|
|
655
|
-
function keyBuilder$
|
|
683
|
+
function keyBuilder$m(luvio, params) {
|
|
656
684
|
return keyPrefix + '::IndexConfigurationCollectionOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'fieldTypes:' + params.queryParams.fieldTypes + ',' + 'includeMetadata:' + params.queryParams.includeMetadata + ')';
|
|
657
685
|
}
|
|
658
|
-
function getResponseCacheKeys$
|
|
659
|
-
getTypeCacheKeys$
|
|
686
|
+
function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
|
|
687
|
+
getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
|
|
660
688
|
}
|
|
661
|
-
function ingestSuccess$
|
|
689
|
+
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
662
690
|
const { body } = response;
|
|
663
|
-
const key = keyBuilder$
|
|
664
|
-
luvio.storeIngest(key, ingest$
|
|
691
|
+
const key = keyBuilder$m(luvio, resourceParams);
|
|
692
|
+
luvio.storeIngest(key, ingest$d, body);
|
|
665
693
|
const snapshot = luvio.storeLookup({
|
|
666
694
|
recordId: key,
|
|
667
|
-
node: select$
|
|
695
|
+
node: select$r(),
|
|
668
696
|
variables: {},
|
|
669
697
|
}, snapshotRefresh);
|
|
670
698
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -675,19 +703,19 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
675
703
|
deepFreeze(snapshot.data);
|
|
676
704
|
return snapshot;
|
|
677
705
|
}
|
|
678
|
-
function ingestError$
|
|
679
|
-
const key = keyBuilder$
|
|
706
|
+
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
707
|
+
const key = keyBuilder$m(luvio, params);
|
|
680
708
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
681
709
|
const storeMetadataParams = {
|
|
682
|
-
ttl: TTL$
|
|
710
|
+
ttl: TTL$c,
|
|
683
711
|
namespace: keyPrefix,
|
|
684
|
-
version: VERSION$
|
|
685
|
-
representationName: RepresentationType$
|
|
712
|
+
version: VERSION$e,
|
|
713
|
+
representationName: RepresentationType$d
|
|
686
714
|
};
|
|
687
715
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
688
716
|
return errorSnapshot;
|
|
689
717
|
}
|
|
690
|
-
function createResourceRequest$
|
|
718
|
+
function createResourceRequest$d(config) {
|
|
691
719
|
const headers = {};
|
|
692
720
|
return {
|
|
693
721
|
baseUri: '/services/data/v63.0',
|
|
@@ -701,97 +729,97 @@ function createResourceRequest$c(config) {
|
|
|
701
729
|
};
|
|
702
730
|
}
|
|
703
731
|
|
|
704
|
-
const adapterName$
|
|
732
|
+
const adapterName$d = 'getIndexConfigurations';
|
|
705
733
|
const getIndexConfigurations_ConfigPropertyMetadata = [
|
|
706
734
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
707
735
|
generateParamConfigMetadata('fieldTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
|
|
708
736
|
generateParamConfigMetadata('includeMetadata', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
709
737
|
];
|
|
710
|
-
const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
711
|
-
const createResourceParams$
|
|
712
|
-
function keyBuilder$
|
|
713
|
-
const resourceParams = createResourceParams$
|
|
714
|
-
return keyBuilder$
|
|
738
|
+
const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getIndexConfigurations_ConfigPropertyMetadata);
|
|
739
|
+
const createResourceParams$d = /*#__PURE__*/ createResourceParams$f(getIndexConfigurations_ConfigPropertyMetadata);
|
|
740
|
+
function keyBuilder$l(luvio, config) {
|
|
741
|
+
const resourceParams = createResourceParams$d(config);
|
|
742
|
+
return keyBuilder$m(luvio, resourceParams);
|
|
715
743
|
}
|
|
716
|
-
function typeCheckConfig$
|
|
744
|
+
function typeCheckConfig$d(untrustedConfig) {
|
|
717
745
|
const config = {};
|
|
718
|
-
typeCheckConfig$
|
|
746
|
+
typeCheckConfig$f(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
|
|
719
747
|
return config;
|
|
720
748
|
}
|
|
721
|
-
function validateAdapterConfig$
|
|
749
|
+
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
722
750
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
723
751
|
return null;
|
|
724
752
|
}
|
|
725
753
|
if (process.env.NODE_ENV !== 'production') {
|
|
726
754
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
727
755
|
}
|
|
728
|
-
const config = typeCheckConfig$
|
|
756
|
+
const config = typeCheckConfig$d(untrustedConfig);
|
|
729
757
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
730
758
|
return null;
|
|
731
759
|
}
|
|
732
760
|
return config;
|
|
733
761
|
}
|
|
734
|
-
function adapterFragment$
|
|
735
|
-
createResourceParams$
|
|
736
|
-
return select$
|
|
762
|
+
function adapterFragment$8(luvio, config) {
|
|
763
|
+
createResourceParams$d(config);
|
|
764
|
+
return select$r();
|
|
737
765
|
}
|
|
738
|
-
function onFetchResponseSuccess$
|
|
739
|
-
const snapshot = ingestSuccess$
|
|
766
|
+
function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
|
|
767
|
+
const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
|
|
740
768
|
config,
|
|
741
|
-
resolve: () => buildNetworkSnapshot$
|
|
769
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
742
770
|
});
|
|
743
771
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
744
772
|
}
|
|
745
|
-
function onFetchResponseError$
|
|
746
|
-
const snapshot = ingestError$
|
|
773
|
+
function onFetchResponseError$8(luvio, config, resourceParams, response) {
|
|
774
|
+
const snapshot = ingestError$8(luvio, resourceParams, response, {
|
|
747
775
|
config,
|
|
748
|
-
resolve: () => buildNetworkSnapshot$
|
|
776
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
749
777
|
});
|
|
750
778
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
751
779
|
}
|
|
752
|
-
function buildNetworkSnapshot$
|
|
753
|
-
const resourceParams = createResourceParams$
|
|
754
|
-
const request = createResourceRequest$
|
|
780
|
+
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
781
|
+
const resourceParams = createResourceParams$d(config);
|
|
782
|
+
const request = createResourceRequest$d(resourceParams);
|
|
755
783
|
return luvio.dispatchResourceRequest(request, options)
|
|
756
784
|
.then((response) => {
|
|
757
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
785
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
758
786
|
const cache = new StoreKeyMap();
|
|
759
|
-
getResponseCacheKeys$
|
|
787
|
+
getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
|
|
760
788
|
return cache;
|
|
761
789
|
});
|
|
762
790
|
}, (response) => {
|
|
763
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
791
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
764
792
|
});
|
|
765
793
|
}
|
|
766
|
-
function buildNetworkSnapshotCachePolicy$
|
|
767
|
-
return buildNetworkSnapshotCachePolicy$
|
|
794
|
+
function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
|
|
795
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
|
|
768
796
|
}
|
|
769
|
-
function buildCachedSnapshotCachePolicy$
|
|
797
|
+
function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
|
|
770
798
|
const { luvio, config } = context;
|
|
771
799
|
const selector = {
|
|
772
|
-
recordId: keyBuilder$
|
|
773
|
-
node: adapterFragment$
|
|
800
|
+
recordId: keyBuilder$l(luvio, config),
|
|
801
|
+
node: adapterFragment$8(luvio, config),
|
|
774
802
|
variables: {},
|
|
775
803
|
};
|
|
776
804
|
const cacheSnapshot = storeLookup(selector, {
|
|
777
805
|
config,
|
|
778
|
-
resolve: () => buildNetworkSnapshot$
|
|
806
|
+
resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
|
|
779
807
|
});
|
|
780
808
|
return cacheSnapshot;
|
|
781
809
|
}
|
|
782
810
|
const getIndexConfigurationsAdapterFactory = (luvio) => function epc__getIndexConfigurations(untrustedConfig, requestContext) {
|
|
783
|
-
const config = validateAdapterConfig$
|
|
811
|
+
const config = validateAdapterConfig$d(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
|
|
784
812
|
// Invalid or incomplete config
|
|
785
813
|
if (config === null) {
|
|
786
814
|
return null;
|
|
787
815
|
}
|
|
788
816
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
789
|
-
buildCachedSnapshotCachePolicy$
|
|
817
|
+
buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
|
|
790
818
|
};
|
|
791
819
|
|
|
792
|
-
const TTL$
|
|
793
|
-
const VERSION$
|
|
794
|
-
function validate$
|
|
820
|
+
const TTL$b = 6000;
|
|
821
|
+
const VERSION$d = "d8fe6f305d394e3ad9e8b064fd805a31";
|
|
822
|
+
function validate$H(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
|
|
795
823
|
const v_error = (() => {
|
|
796
824
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
797
825
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -812,7 +840,7 @@ function validate$F(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
|
|
|
812
840
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
813
841
|
const obj_errors_item = obj_errors[i];
|
|
814
842
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
815
|
-
const referencepath_errors_itemValidationError = validate$
|
|
843
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
816
844
|
if (referencepath_errors_itemValidationError !== null) {
|
|
817
845
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
818
846
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -829,7 +857,7 @@ function validate$F(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
|
|
|
829
857
|
for (let i = 0; i < obj_indexConfigurations.length; i++) {
|
|
830
858
|
const obj_indexConfigurations_item = obj_indexConfigurations[i];
|
|
831
859
|
const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
|
|
832
|
-
const referencepath_indexConfigurations_itemValidationError = validate$
|
|
860
|
+
const referencepath_indexConfigurations_itemValidationError = validate$M(obj_indexConfigurations_item, path_indexConfigurations_item);
|
|
833
861
|
if (referencepath_indexConfigurations_itemValidationError !== null) {
|
|
834
862
|
let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
|
|
835
863
|
message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -845,68 +873,68 @@ function validate$F(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
|
|
|
845
873
|
})();
|
|
846
874
|
return v_error === undefined ? null : v_error;
|
|
847
875
|
}
|
|
848
|
-
const RepresentationType$
|
|
849
|
-
function keyBuilder$
|
|
850
|
-
return keyPrefix + '::' + RepresentationType$
|
|
876
|
+
const RepresentationType$c = 'IndexConfigurationsUpdateOutputRepresentation';
|
|
877
|
+
function keyBuilder$k(luvio, config) {
|
|
878
|
+
return keyPrefix + '::' + RepresentationType$c + ':' + config.message;
|
|
851
879
|
}
|
|
852
880
|
function keyBuilderFromType$4(luvio, object) {
|
|
853
881
|
const keyParams = {
|
|
854
882
|
message: object.statusCode
|
|
855
883
|
};
|
|
856
|
-
return keyBuilder$
|
|
884
|
+
return keyBuilder$k(luvio, keyParams);
|
|
857
885
|
}
|
|
858
|
-
function normalize$
|
|
886
|
+
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
859
887
|
return input;
|
|
860
888
|
}
|
|
861
|
-
const select$
|
|
889
|
+
const select$q = function IndexConfigurationsUpdateOutputRepresentationSelect() {
|
|
862
890
|
return {
|
|
863
891
|
kind: 'Fragment',
|
|
864
|
-
version: VERSION$
|
|
892
|
+
version: VERSION$d,
|
|
865
893
|
private: [],
|
|
866
894
|
opaque: true
|
|
867
895
|
};
|
|
868
896
|
};
|
|
869
|
-
function equals$
|
|
897
|
+
function equals$d(existing, incoming) {
|
|
870
898
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
871
899
|
return false;
|
|
872
900
|
}
|
|
873
901
|
return true;
|
|
874
902
|
}
|
|
875
|
-
const ingest$
|
|
903
|
+
const ingest$c = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
876
904
|
if (process.env.NODE_ENV !== 'production') {
|
|
877
|
-
const validateError = validate$
|
|
905
|
+
const validateError = validate$H(input);
|
|
878
906
|
if (validateError !== null) {
|
|
879
907
|
throw validateError;
|
|
880
908
|
}
|
|
881
909
|
}
|
|
882
910
|
const key = keyBuilderFromType$4(luvio, input);
|
|
883
|
-
const ttlToUse = TTL$
|
|
884
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
911
|
+
const ttlToUse = TTL$b;
|
|
912
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "epc", VERSION$d, RepresentationType$c, equals$d);
|
|
885
913
|
return createLink(key);
|
|
886
914
|
};
|
|
887
|
-
function getTypeCacheKeys$
|
|
915
|
+
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
888
916
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
889
917
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
890
918
|
rootKeySet.set(rootKey, {
|
|
891
919
|
namespace: keyPrefix,
|
|
892
|
-
representationName: RepresentationType$
|
|
920
|
+
representationName: RepresentationType$c,
|
|
893
921
|
mergeable: false
|
|
894
922
|
});
|
|
895
923
|
}
|
|
896
924
|
|
|
897
|
-
function select$
|
|
898
|
-
return select$
|
|
925
|
+
function select$p(luvio, params) {
|
|
926
|
+
return select$q();
|
|
899
927
|
}
|
|
900
|
-
function getResponseCacheKeys$
|
|
901
|
-
getTypeCacheKeys$
|
|
928
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
929
|
+
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
902
930
|
}
|
|
903
|
-
function ingestSuccess$
|
|
931
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
904
932
|
const { body } = response;
|
|
905
933
|
const key = keyBuilderFromType$4(luvio, body);
|
|
906
|
-
luvio.storeIngest(key, ingest$
|
|
934
|
+
luvio.storeIngest(key, ingest$c, body);
|
|
907
935
|
const snapshot = luvio.storeLookup({
|
|
908
936
|
recordId: key,
|
|
909
|
-
node: select$
|
|
937
|
+
node: select$p(),
|
|
910
938
|
variables: {},
|
|
911
939
|
});
|
|
912
940
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -917,7 +945,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
|
|
|
917
945
|
deepFreeze(snapshot.data);
|
|
918
946
|
return snapshot;
|
|
919
947
|
}
|
|
920
|
-
function createResourceRequest$
|
|
948
|
+
function createResourceRequest$c(config) {
|
|
921
949
|
const headers = {};
|
|
922
950
|
return {
|
|
923
951
|
baseUri: '/services/data/v63.0',
|
|
@@ -931,16 +959,16 @@ function createResourceRequest$b(config) {
|
|
|
931
959
|
};
|
|
932
960
|
}
|
|
933
961
|
|
|
934
|
-
const adapterName$
|
|
962
|
+
const adapterName$c = 'updateIndexConfigurations';
|
|
935
963
|
const updateIndexConfigurations_ConfigPropertyMetadata = [
|
|
936
964
|
generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
|
|
937
965
|
generateParamConfigMetadata('indexConfigurations', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
938
966
|
];
|
|
939
|
-
const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
940
|
-
const createResourceParams$
|
|
941
|
-
function typeCheckConfig$
|
|
967
|
+
const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, updateIndexConfigurations_ConfigPropertyMetadata);
|
|
968
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$f(updateIndexConfigurations_ConfigPropertyMetadata);
|
|
969
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
942
970
|
const config = {};
|
|
943
|
-
typeCheckConfig$
|
|
971
|
+
typeCheckConfig$f(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
|
|
944
972
|
const untrustedConfig_indexConfigurations = untrustedConfig.indexConfigurations;
|
|
945
973
|
if (ArrayIsArray$1(untrustedConfig_indexConfigurations)) {
|
|
946
974
|
const untrustedConfig_indexConfigurations_array = [];
|
|
@@ -952,30 +980,30 @@ function typeCheckConfig$b(untrustedConfig) {
|
|
|
952
980
|
}
|
|
953
981
|
return config;
|
|
954
982
|
}
|
|
955
|
-
function validateAdapterConfig$
|
|
983
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
956
984
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
957
985
|
return null;
|
|
958
986
|
}
|
|
959
987
|
if (process.env.NODE_ENV !== 'production') {
|
|
960
988
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
961
989
|
}
|
|
962
|
-
const config = typeCheckConfig$
|
|
990
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
963
991
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
964
992
|
return null;
|
|
965
993
|
}
|
|
966
994
|
return config;
|
|
967
995
|
}
|
|
968
|
-
function buildNetworkSnapshot$
|
|
969
|
-
const resourceParams = createResourceParams$
|
|
970
|
-
const request = createResourceRequest$
|
|
996
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
997
|
+
const resourceParams = createResourceParams$c(config);
|
|
998
|
+
const request = createResourceRequest$c(resourceParams);
|
|
971
999
|
return luvio.dispatchResourceRequest(request, options)
|
|
972
1000
|
.then((response) => {
|
|
973
1001
|
return luvio.handleSuccessResponse(() => {
|
|
974
|
-
const snapshot = ingestSuccess$
|
|
1002
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
975
1003
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
976
1004
|
}, () => {
|
|
977
1005
|
const cache = new StoreKeyMap();
|
|
978
|
-
getResponseCacheKeys$
|
|
1006
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
979
1007
|
return cache;
|
|
980
1008
|
});
|
|
981
1009
|
}, (response) => {
|
|
@@ -985,16 +1013,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
|
|
|
985
1013
|
}
|
|
986
1014
|
const updateIndexConfigurationsAdapterFactory = (luvio) => {
|
|
987
1015
|
return function updateIndexConfigurations(untrustedConfig) {
|
|
988
|
-
const config = validateAdapterConfig$
|
|
1016
|
+
const config = validateAdapterConfig$c(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
|
|
989
1017
|
// Invalid or incomplete config
|
|
990
1018
|
if (config === null) {
|
|
991
1019
|
throw new Error('Invalid config for "updateIndexConfigurations"');
|
|
992
1020
|
}
|
|
993
|
-
return buildNetworkSnapshot$
|
|
1021
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
994
1022
|
};
|
|
995
1023
|
};
|
|
996
1024
|
|
|
997
|
-
function validate$
|
|
1025
|
+
function validate$G(obj, path = 'SnapshotIndexInfoOutputRepresentation') {
|
|
998
1026
|
const v_error = (() => {
|
|
999
1027
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1000
1028
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1031,7 +1059,7 @@ function validate$E(obj, path = 'SnapshotIndexInfoOutputRepresentation') {
|
|
|
1031
1059
|
return v_error === undefined ? null : v_error;
|
|
1032
1060
|
}
|
|
1033
1061
|
|
|
1034
|
-
function validate$
|
|
1062
|
+
function validate$F(obj, path = 'SnapshotIndexLogOutputRepresentation') {
|
|
1035
1063
|
const v_error = (() => {
|
|
1036
1064
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1037
1065
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1096,7 +1124,7 @@ function validate$D(obj, path = 'SnapshotIndexLogOutputRepresentation') {
|
|
|
1096
1124
|
return v_error === undefined ? null : v_error;
|
|
1097
1125
|
}
|
|
1098
1126
|
|
|
1099
|
-
function validate$
|
|
1127
|
+
function validate$E(obj, path = 'SnapshotIndexOutputRepresentation') {
|
|
1100
1128
|
const v_error = (() => {
|
|
1101
1129
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1102
1130
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1138,7 +1166,7 @@ function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
|
|
|
1138
1166
|
for (let i = 0; i < obj_indexInfos.length; i++) {
|
|
1139
1167
|
const obj_indexInfos_item = obj_indexInfos[i];
|
|
1140
1168
|
const path_indexInfos_item = path_indexInfos + '[' + i + ']';
|
|
1141
|
-
const referencepath_indexInfos_itemValidationError = validate$
|
|
1169
|
+
const referencepath_indexInfos_itemValidationError = validate$G(obj_indexInfos_item, path_indexInfos_item);
|
|
1142
1170
|
if (referencepath_indexInfos_itemValidationError !== null) {
|
|
1143
1171
|
let message = 'Object doesn\'t match SnapshotIndexInfoOutputRepresentation (at "' + path_indexInfos_item + '")\n';
|
|
1144
1172
|
message += referencepath_indexInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1155,7 +1183,7 @@ function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
|
|
|
1155
1183
|
for (let i = 0; i < obj_indexLogs.length; i++) {
|
|
1156
1184
|
const obj_indexLogs_item = obj_indexLogs[i];
|
|
1157
1185
|
const path_indexLogs_item = path_indexLogs + '[' + i + ']';
|
|
1158
|
-
const referencepath_indexLogs_itemValidationError = validate$
|
|
1186
|
+
const referencepath_indexLogs_itemValidationError = validate$F(obj_indexLogs_item, path_indexLogs_item);
|
|
1159
1187
|
if (referencepath_indexLogs_itemValidationError !== null) {
|
|
1160
1188
|
let message = 'Object doesn\'t match SnapshotIndexLogOutputRepresentation (at "' + path_indexLogs_item + '")\n';
|
|
1161
1189
|
message += referencepath_indexLogs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1195,7 +1223,7 @@ function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
|
|
|
1195
1223
|
return v_error === undefined ? null : v_error;
|
|
1196
1224
|
}
|
|
1197
1225
|
|
|
1198
|
-
function validate$
|
|
1226
|
+
function validate$D(obj, path = 'SnapshotOutputRepresentation') {
|
|
1199
1227
|
const v_error = (() => {
|
|
1200
1228
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1201
1229
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1237,7 +1265,7 @@ function validate$B(obj, path = 'SnapshotOutputRepresentation') {
|
|
|
1237
1265
|
for (let i = 0; i < obj_snapshotIndexes.length; i++) {
|
|
1238
1266
|
const obj_snapshotIndexes_item = obj_snapshotIndexes[i];
|
|
1239
1267
|
const path_snapshotIndexes_item = path_snapshotIndexes + '[' + i + ']';
|
|
1240
|
-
const referencepath_snapshotIndexes_itemValidationError = validate$
|
|
1268
|
+
const referencepath_snapshotIndexes_itemValidationError = validate$E(obj_snapshotIndexes_item, path_snapshotIndexes_item);
|
|
1241
1269
|
if (referencepath_snapshotIndexes_itemValidationError !== null) {
|
|
1242
1270
|
let message = 'Object doesn\'t match SnapshotIndexOutputRepresentation (at "' + path_snapshotIndexes_item + '")\n';
|
|
1243
1271
|
message += referencepath_snapshotIndexes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1249,9 +1277,9 @@ function validate$B(obj, path = 'SnapshotOutputRepresentation') {
|
|
|
1249
1277
|
return v_error === undefined ? null : v_error;
|
|
1250
1278
|
}
|
|
1251
1279
|
|
|
1252
|
-
const TTL$
|
|
1253
|
-
const VERSION$
|
|
1254
|
-
function validate$
|
|
1280
|
+
const TTL$a = 6000;
|
|
1281
|
+
const VERSION$c = "a482669465add5966119b942982ae104";
|
|
1282
|
+
function validate$C(obj, path = 'SnapshotDeploymentOutputRepresentation') {
|
|
1255
1283
|
const v_error = (() => {
|
|
1256
1284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1257
1285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1265,7 +1293,7 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
|
|
|
1265
1293
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1266
1294
|
const obj_errors_item = obj_errors[i];
|
|
1267
1295
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1268
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1296
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
1269
1297
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1270
1298
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
1271
1299
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1276,7 +1304,7 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
|
|
|
1276
1304
|
if (obj.snapshot !== undefined) {
|
|
1277
1305
|
const obj_snapshot = obj.snapshot;
|
|
1278
1306
|
const path_snapshot = path + '.snapshot';
|
|
1279
|
-
const referencepath_snapshotValidationError = validate$
|
|
1307
|
+
const referencepath_snapshotValidationError = validate$D(obj_snapshot, path_snapshot);
|
|
1280
1308
|
if (referencepath_snapshotValidationError !== null) {
|
|
1281
1309
|
let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshot + '")\n';
|
|
1282
1310
|
message += referencepath_snapshotValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1291,68 +1319,68 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
|
|
|
1291
1319
|
})();
|
|
1292
1320
|
return v_error === undefined ? null : v_error;
|
|
1293
1321
|
}
|
|
1294
|
-
const RepresentationType$
|
|
1295
|
-
function keyBuilder$
|
|
1296
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1322
|
+
const RepresentationType$b = 'SnapshotDeploymentOutputRepresentation';
|
|
1323
|
+
function keyBuilder$j(luvio, config) {
|
|
1324
|
+
return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
|
|
1297
1325
|
}
|
|
1298
1326
|
function keyBuilderFromType$3(luvio, object) {
|
|
1299
1327
|
const keyParams = {
|
|
1300
1328
|
message: object.statusCode
|
|
1301
1329
|
};
|
|
1302
|
-
return keyBuilder$
|
|
1330
|
+
return keyBuilder$j(luvio, keyParams);
|
|
1303
1331
|
}
|
|
1304
|
-
function normalize$
|
|
1332
|
+
function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
1305
1333
|
return input;
|
|
1306
1334
|
}
|
|
1307
|
-
const select$
|
|
1335
|
+
const select$o = function SnapshotDeploymentOutputRepresentationSelect() {
|
|
1308
1336
|
return {
|
|
1309
1337
|
kind: 'Fragment',
|
|
1310
|
-
version: VERSION$
|
|
1338
|
+
version: VERSION$c,
|
|
1311
1339
|
private: [],
|
|
1312
1340
|
opaque: true
|
|
1313
1341
|
};
|
|
1314
1342
|
};
|
|
1315
|
-
function equals$
|
|
1343
|
+
function equals$c(existing, incoming) {
|
|
1316
1344
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1317
1345
|
return false;
|
|
1318
1346
|
}
|
|
1319
1347
|
return true;
|
|
1320
1348
|
}
|
|
1321
|
-
const ingest$
|
|
1349
|
+
const ingest$b = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1322
1350
|
if (process.env.NODE_ENV !== 'production') {
|
|
1323
|
-
const validateError = validate$
|
|
1351
|
+
const validateError = validate$C(input);
|
|
1324
1352
|
if (validateError !== null) {
|
|
1325
1353
|
throw validateError;
|
|
1326
1354
|
}
|
|
1327
1355
|
}
|
|
1328
1356
|
const key = keyBuilderFromType$3(luvio, input);
|
|
1329
|
-
const ttlToUse = TTL$
|
|
1330
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1357
|
+
const ttlToUse = TTL$a;
|
|
1358
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
|
|
1331
1359
|
return createLink(key);
|
|
1332
1360
|
};
|
|
1333
|
-
function getTypeCacheKeys$
|
|
1361
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
1334
1362
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1335
1363
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
1336
1364
|
rootKeySet.set(rootKey, {
|
|
1337
1365
|
namespace: keyPrefix,
|
|
1338
|
-
representationName: RepresentationType$
|
|
1366
|
+
representationName: RepresentationType$b,
|
|
1339
1367
|
mergeable: false
|
|
1340
1368
|
});
|
|
1341
1369
|
}
|
|
1342
1370
|
|
|
1343
|
-
function select$
|
|
1344
|
-
return select$
|
|
1371
|
+
function select$n(luvio, params) {
|
|
1372
|
+
return select$o();
|
|
1345
1373
|
}
|
|
1346
|
-
function getResponseCacheKeys$
|
|
1347
|
-
getTypeCacheKeys$
|
|
1374
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
1375
|
+
getTypeCacheKeys$b(storeKeyMap, luvio, response);
|
|
1348
1376
|
}
|
|
1349
|
-
function ingestSuccess$
|
|
1377
|
+
function ingestSuccess$b(luvio, resourceParams, response) {
|
|
1350
1378
|
const { body } = response;
|
|
1351
1379
|
const key = keyBuilderFromType$3(luvio, body);
|
|
1352
|
-
luvio.storeIngest(key, ingest$
|
|
1380
|
+
luvio.storeIngest(key, ingest$b, body);
|
|
1353
1381
|
const snapshot = luvio.storeLookup({
|
|
1354
1382
|
recordId: key,
|
|
1355
|
-
node: select$
|
|
1383
|
+
node: select$n(),
|
|
1356
1384
|
variables: {},
|
|
1357
1385
|
});
|
|
1358
1386
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1363,7 +1391,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
1363
1391
|
deepFreeze(snapshot.data);
|
|
1364
1392
|
return snapshot;
|
|
1365
1393
|
}
|
|
1366
|
-
function createResourceRequest$
|
|
1394
|
+
function createResourceRequest$b(config) {
|
|
1367
1395
|
const headers = {};
|
|
1368
1396
|
return {
|
|
1369
1397
|
baseUri: '/services/data/v63.0',
|
|
@@ -1377,44 +1405,44 @@ function createResourceRequest$a(config) {
|
|
|
1377
1405
|
};
|
|
1378
1406
|
}
|
|
1379
1407
|
|
|
1380
|
-
const adapterName$
|
|
1408
|
+
const adapterName$b = 'deploySnapshotIndex';
|
|
1381
1409
|
const deploySnapshotIndex_ConfigPropertyMetadata = [
|
|
1382
1410
|
generateParamConfigMetadata('buildType', false, 2 /* Body */, 0 /* String */),
|
|
1383
1411
|
generateParamConfigMetadata('snapshot', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1384
1412
|
];
|
|
1385
|
-
const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1386
|
-
const createResourceParams$
|
|
1387
|
-
function typeCheckConfig$
|
|
1413
|
+
const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deploySnapshotIndex_ConfigPropertyMetadata);
|
|
1414
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(deploySnapshotIndex_ConfigPropertyMetadata);
|
|
1415
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
1388
1416
|
const config = {};
|
|
1389
|
-
typeCheckConfig$
|
|
1417
|
+
typeCheckConfig$f(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
|
|
1390
1418
|
const untrustedConfig_snapshot = untrustedConfig.snapshot;
|
|
1391
1419
|
config.snapshot = untrustedConfig_snapshot;
|
|
1392
1420
|
return config;
|
|
1393
1421
|
}
|
|
1394
|
-
function validateAdapterConfig$
|
|
1422
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
1395
1423
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1396
1424
|
return null;
|
|
1397
1425
|
}
|
|
1398
1426
|
if (process.env.NODE_ENV !== 'production') {
|
|
1399
1427
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1400
1428
|
}
|
|
1401
|
-
const config = typeCheckConfig$
|
|
1429
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
1402
1430
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1403
1431
|
return null;
|
|
1404
1432
|
}
|
|
1405
1433
|
return config;
|
|
1406
1434
|
}
|
|
1407
|
-
function buildNetworkSnapshot$
|
|
1408
|
-
const resourceParams = createResourceParams$
|
|
1409
|
-
const request = createResourceRequest$
|
|
1435
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
1436
|
+
const resourceParams = createResourceParams$b(config);
|
|
1437
|
+
const request = createResourceRequest$b(resourceParams);
|
|
1410
1438
|
return luvio.dispatchResourceRequest(request, options)
|
|
1411
1439
|
.then((response) => {
|
|
1412
1440
|
return luvio.handleSuccessResponse(() => {
|
|
1413
|
-
const snapshot = ingestSuccess$
|
|
1441
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response);
|
|
1414
1442
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1415
1443
|
}, () => {
|
|
1416
1444
|
const cache = new StoreKeyMap();
|
|
1417
|
-
getResponseCacheKeys$
|
|
1445
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
1418
1446
|
return cache;
|
|
1419
1447
|
});
|
|
1420
1448
|
}, (response) => {
|
|
@@ -1424,16 +1452,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
1424
1452
|
}
|
|
1425
1453
|
const deploySnapshotIndexAdapterFactory = (luvio) => {
|
|
1426
1454
|
return function deploySnapshotIndex(untrustedConfig) {
|
|
1427
|
-
const config = validateAdapterConfig$
|
|
1455
|
+
const config = validateAdapterConfig$b(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
|
|
1428
1456
|
// Invalid or incomplete config
|
|
1429
1457
|
if (config === null) {
|
|
1430
1458
|
throw new Error('Invalid config for "deploySnapshotIndex"');
|
|
1431
1459
|
}
|
|
1432
|
-
return buildNetworkSnapshot$
|
|
1460
|
+
return buildNetworkSnapshot$b(luvio, config);
|
|
1433
1461
|
};
|
|
1434
1462
|
};
|
|
1435
1463
|
|
|
1436
|
-
function validate$
|
|
1464
|
+
function validate$B(obj, path = 'SettingMetadataOutputRepresentation') {
|
|
1437
1465
|
const v_error = (() => {
|
|
1438
1466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1439
1467
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1456,11 +1484,18 @@ function validate$z(obj, path = 'SettingMetadataOutputRepresentation') {
|
|
|
1456
1484
|
return v_error === undefined ? null : v_error;
|
|
1457
1485
|
}
|
|
1458
1486
|
|
|
1459
|
-
function validate$
|
|
1487
|
+
function validate$A(obj, path = 'SettingOutputRepresentation') {
|
|
1460
1488
|
const v_error = (() => {
|
|
1461
1489
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1462
1490
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1463
1491
|
}
|
|
1492
|
+
if (obj.defaultLanguage !== undefined) {
|
|
1493
|
+
const obj_defaultLanguage = obj.defaultLanguage;
|
|
1494
|
+
const path_defaultLanguage = path + '.defaultLanguage';
|
|
1495
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
1496
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
1497
|
+
}
|
|
1498
|
+
}
|
|
1464
1499
|
const obj_id = obj.id;
|
|
1465
1500
|
const path_id = path + '.id';
|
|
1466
1501
|
if (typeof obj_id !== 'string') {
|
|
@@ -1484,9 +1519,9 @@ function validate$y(obj, path = 'SettingOutputRepresentation') {
|
|
|
1484
1519
|
return v_error === undefined ? null : v_error;
|
|
1485
1520
|
}
|
|
1486
1521
|
|
|
1487
|
-
const TTL$
|
|
1488
|
-
const VERSION$
|
|
1489
|
-
function validate$
|
|
1522
|
+
const TTL$9 = 6000;
|
|
1523
|
+
const VERSION$b = "8e8994b81e71fbf729c95134f748033b";
|
|
1524
|
+
function validate$z(obj, path = 'IndexSettingOutputRepresentation') {
|
|
1490
1525
|
const v_error = (() => {
|
|
1491
1526
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1492
1527
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1500,7 +1535,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
|
|
|
1500
1535
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1501
1536
|
const obj_errors_item = obj_errors[i];
|
|
1502
1537
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1503
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1538
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
1504
1539
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1505
1540
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
1506
1541
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1510,7 +1545,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
|
|
|
1510
1545
|
}
|
|
1511
1546
|
const obj_metadata = obj.metadata;
|
|
1512
1547
|
const path_metadata = path + '.metadata';
|
|
1513
|
-
const referencepath_metadataValidationError = validate$
|
|
1548
|
+
const referencepath_metadataValidationError = validate$B(obj_metadata, path_metadata);
|
|
1514
1549
|
if (referencepath_metadataValidationError !== null) {
|
|
1515
1550
|
let message = 'Object doesn\'t match SettingMetadataOutputRepresentation (at "' + path_metadata + '")\n';
|
|
1516
1551
|
message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1518,7 +1553,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
|
|
|
1518
1553
|
}
|
|
1519
1554
|
const obj_setting = obj.setting;
|
|
1520
1555
|
const path_setting = path + '.setting';
|
|
1521
|
-
const referencepath_settingValidationError = validate$
|
|
1556
|
+
const referencepath_settingValidationError = validate$A(obj_setting, path_setting);
|
|
1522
1557
|
if (referencepath_settingValidationError !== null) {
|
|
1523
1558
|
let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
|
|
1524
1559
|
message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1532,62 +1567,62 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
|
|
|
1532
1567
|
})();
|
|
1533
1568
|
return v_error === undefined ? null : v_error;
|
|
1534
1569
|
}
|
|
1535
|
-
const RepresentationType$
|
|
1536
|
-
function normalize$
|
|
1570
|
+
const RepresentationType$a = 'IndexSettingOutputRepresentation';
|
|
1571
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
1537
1572
|
return input;
|
|
1538
1573
|
}
|
|
1539
|
-
const select$
|
|
1574
|
+
const select$m = function IndexSettingOutputRepresentationSelect() {
|
|
1540
1575
|
return {
|
|
1541
1576
|
kind: 'Fragment',
|
|
1542
|
-
version: VERSION$
|
|
1577
|
+
version: VERSION$b,
|
|
1543
1578
|
private: [],
|
|
1544
1579
|
opaque: true
|
|
1545
1580
|
};
|
|
1546
1581
|
};
|
|
1547
|
-
function equals$
|
|
1582
|
+
function equals$b(existing, incoming) {
|
|
1548
1583
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1549
1584
|
return false;
|
|
1550
1585
|
}
|
|
1551
1586
|
return true;
|
|
1552
1587
|
}
|
|
1553
|
-
const ingest$
|
|
1588
|
+
const ingest$a = function IndexSettingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1554
1589
|
if (process.env.NODE_ENV !== 'production') {
|
|
1555
|
-
const validateError = validate$
|
|
1590
|
+
const validateError = validate$z(input);
|
|
1556
1591
|
if (validateError !== null) {
|
|
1557
1592
|
throw validateError;
|
|
1558
1593
|
}
|
|
1559
1594
|
}
|
|
1560
1595
|
const key = path.fullPath;
|
|
1561
|
-
const ttlToUse = TTL$
|
|
1562
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1596
|
+
const ttlToUse = TTL$9;
|
|
1597
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
|
|
1563
1598
|
return createLink(key);
|
|
1564
1599
|
};
|
|
1565
|
-
function getTypeCacheKeys$
|
|
1600
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
1566
1601
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1567
1602
|
const rootKey = fullPathFactory();
|
|
1568
1603
|
rootKeySet.set(rootKey, {
|
|
1569
1604
|
namespace: keyPrefix,
|
|
1570
|
-
representationName: RepresentationType$
|
|
1605
|
+
representationName: RepresentationType$a,
|
|
1571
1606
|
mergeable: false
|
|
1572
1607
|
});
|
|
1573
1608
|
}
|
|
1574
1609
|
|
|
1575
|
-
function select$
|
|
1576
|
-
return select$
|
|
1610
|
+
function select$l(luvio, params) {
|
|
1611
|
+
return select$m();
|
|
1577
1612
|
}
|
|
1578
|
-
function keyBuilder$
|
|
1613
|
+
function keyBuilder$i(luvio, params) {
|
|
1579
1614
|
return keyPrefix + '::IndexSettingOutputRepresentation:(' + ')';
|
|
1580
1615
|
}
|
|
1581
|
-
function getResponseCacheKeys$
|
|
1582
|
-
getTypeCacheKeys$
|
|
1616
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
1617
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i());
|
|
1583
1618
|
}
|
|
1584
|
-
function ingestSuccess$
|
|
1619
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
1585
1620
|
const { body } = response;
|
|
1586
|
-
const key = keyBuilder$
|
|
1587
|
-
luvio.storeIngest(key, ingest$
|
|
1621
|
+
const key = keyBuilder$i();
|
|
1622
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
1588
1623
|
const snapshot = luvio.storeLookup({
|
|
1589
1624
|
recordId: key,
|
|
1590
|
-
node: select$
|
|
1625
|
+
node: select$l(),
|
|
1591
1626
|
variables: {},
|
|
1592
1627
|
}, snapshotRefresh);
|
|
1593
1628
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1598,19 +1633,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1598
1633
|
deepFreeze(snapshot.data);
|
|
1599
1634
|
return snapshot;
|
|
1600
1635
|
}
|
|
1601
|
-
function ingestError$
|
|
1602
|
-
const key = keyBuilder$
|
|
1636
|
+
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
1637
|
+
const key = keyBuilder$i();
|
|
1603
1638
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
1604
1639
|
const storeMetadataParams = {
|
|
1605
|
-
ttl: TTL$
|
|
1640
|
+
ttl: TTL$9,
|
|
1606
1641
|
namespace: keyPrefix,
|
|
1607
|
-
version: VERSION$
|
|
1608
|
-
representationName: RepresentationType$
|
|
1642
|
+
version: VERSION$b,
|
|
1643
|
+
representationName: RepresentationType$a
|
|
1609
1644
|
};
|
|
1610
1645
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
1611
1646
|
return errorSnapshot;
|
|
1612
1647
|
}
|
|
1613
|
-
function createResourceRequest$
|
|
1648
|
+
function createResourceRequest$a(config) {
|
|
1614
1649
|
const headers = {};
|
|
1615
1650
|
return {
|
|
1616
1651
|
baseUri: '/services/data/v63.0',
|
|
@@ -1624,94 +1659,101 @@ function createResourceRequest$9(config) {
|
|
|
1624
1659
|
};
|
|
1625
1660
|
}
|
|
1626
1661
|
|
|
1627
|
-
const adapterName$
|
|
1662
|
+
const adapterName$a = 'getIndexSetting';
|
|
1628
1663
|
const getIndexSetting_ConfigPropertyMetadata = [];
|
|
1629
|
-
const getIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1630
|
-
const createResourceParams$
|
|
1631
|
-
function keyBuilder$
|
|
1632
|
-
createResourceParams$
|
|
1633
|
-
return keyBuilder$
|
|
1664
|
+
const getIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndexSetting_ConfigPropertyMetadata);
|
|
1665
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$f(getIndexSetting_ConfigPropertyMetadata);
|
|
1666
|
+
function keyBuilder$h(luvio, config) {
|
|
1667
|
+
createResourceParams$a(config);
|
|
1668
|
+
return keyBuilder$i();
|
|
1634
1669
|
}
|
|
1635
|
-
function typeCheckConfig$
|
|
1670
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
1636
1671
|
const config = {};
|
|
1637
1672
|
return config;
|
|
1638
1673
|
}
|
|
1639
|
-
function validateAdapterConfig$
|
|
1674
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
1640
1675
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1641
1676
|
return null;
|
|
1642
1677
|
}
|
|
1643
1678
|
if (process.env.NODE_ENV !== 'production') {
|
|
1644
1679
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1645
1680
|
}
|
|
1646
|
-
const config = typeCheckConfig$
|
|
1681
|
+
const config = typeCheckConfig$a();
|
|
1647
1682
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1648
1683
|
return null;
|
|
1649
1684
|
}
|
|
1650
1685
|
return config;
|
|
1651
1686
|
}
|
|
1652
|
-
function adapterFragment$
|
|
1653
|
-
createResourceParams$
|
|
1654
|
-
return select$
|
|
1687
|
+
function adapterFragment$7(luvio, config) {
|
|
1688
|
+
createResourceParams$a(config);
|
|
1689
|
+
return select$l();
|
|
1655
1690
|
}
|
|
1656
|
-
function onFetchResponseSuccess$
|
|
1657
|
-
const snapshot = ingestSuccess$
|
|
1691
|
+
function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
|
|
1692
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
1658
1693
|
config,
|
|
1659
|
-
resolve: () => buildNetworkSnapshot$
|
|
1694
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1660
1695
|
});
|
|
1661
1696
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1662
1697
|
}
|
|
1663
|
-
function onFetchResponseError$
|
|
1664
|
-
const snapshot = ingestError$
|
|
1698
|
+
function onFetchResponseError$7(luvio, config, resourceParams, response) {
|
|
1699
|
+
const snapshot = ingestError$7(luvio, resourceParams, response, {
|
|
1665
1700
|
config,
|
|
1666
|
-
resolve: () => buildNetworkSnapshot$
|
|
1701
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1667
1702
|
});
|
|
1668
1703
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1669
1704
|
}
|
|
1670
|
-
function buildNetworkSnapshot$
|
|
1671
|
-
const resourceParams = createResourceParams$
|
|
1672
|
-
const request = createResourceRequest$
|
|
1705
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
1706
|
+
const resourceParams = createResourceParams$a(config);
|
|
1707
|
+
const request = createResourceRequest$a();
|
|
1673
1708
|
return luvio.dispatchResourceRequest(request, options)
|
|
1674
1709
|
.then((response) => {
|
|
1675
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
1710
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1676
1711
|
const cache = new StoreKeyMap();
|
|
1677
|
-
getResponseCacheKeys$
|
|
1712
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
1678
1713
|
return cache;
|
|
1679
1714
|
});
|
|
1680
1715
|
}, (response) => {
|
|
1681
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
1716
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
1682
1717
|
});
|
|
1683
1718
|
}
|
|
1684
|
-
function buildNetworkSnapshotCachePolicy$
|
|
1685
|
-
return buildNetworkSnapshotCachePolicy$
|
|
1719
|
+
function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
|
|
1720
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
|
|
1686
1721
|
}
|
|
1687
|
-
function buildCachedSnapshotCachePolicy$
|
|
1722
|
+
function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
|
|
1688
1723
|
const { luvio, config } = context;
|
|
1689
1724
|
const selector = {
|
|
1690
|
-
recordId: keyBuilder$
|
|
1691
|
-
node: adapterFragment$
|
|
1725
|
+
recordId: keyBuilder$h(luvio, config),
|
|
1726
|
+
node: adapterFragment$7(luvio, config),
|
|
1692
1727
|
variables: {},
|
|
1693
1728
|
};
|
|
1694
1729
|
const cacheSnapshot = storeLookup(selector, {
|
|
1695
1730
|
config,
|
|
1696
|
-
resolve: () => buildNetworkSnapshot$
|
|
1731
|
+
resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
|
|
1697
1732
|
});
|
|
1698
1733
|
return cacheSnapshot;
|
|
1699
1734
|
}
|
|
1700
1735
|
const getIndexSettingAdapterFactory = (luvio) => function epc__getIndexSetting(untrustedConfig, requestContext) {
|
|
1701
|
-
const config = validateAdapterConfig$
|
|
1736
|
+
const config = validateAdapterConfig$a(untrustedConfig, getIndexSetting_ConfigPropertyNames);
|
|
1702
1737
|
// Invalid or incomplete config
|
|
1703
1738
|
if (config === null) {
|
|
1704
1739
|
return null;
|
|
1705
1740
|
}
|
|
1706
1741
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
1707
|
-
buildCachedSnapshotCachePolicy$
|
|
1742
|
+
buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
|
|
1708
1743
|
};
|
|
1709
1744
|
|
|
1710
|
-
function validate$
|
|
1745
|
+
function validate$y(obj, path = 'SettingInputRepresentation') {
|
|
1711
1746
|
const v_error = (() => {
|
|
1712
1747
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1713
1748
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1714
1749
|
}
|
|
1750
|
+
if (obj.defaultLanguage !== undefined) {
|
|
1751
|
+
const obj_defaultLanguage = obj.defaultLanguage;
|
|
1752
|
+
const path_defaultLanguage = path + '.defaultLanguage';
|
|
1753
|
+
if (typeof obj_defaultLanguage !== 'string') {
|
|
1754
|
+
return new TypeError('Expected "string" but received "' + typeof obj_defaultLanguage + '" (at "' + path_defaultLanguage + '")');
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1715
1757
|
if (obj.supportedLanguages !== undefined) {
|
|
1716
1758
|
const obj_supportedLanguages = obj.supportedLanguages;
|
|
1717
1759
|
const path_supportedLanguages = path + '.supportedLanguages';
|
|
@@ -1730,9 +1772,9 @@ function validate$w(obj, path = 'SettingInputRepresentation') {
|
|
|
1730
1772
|
return v_error === undefined ? null : v_error;
|
|
1731
1773
|
}
|
|
1732
1774
|
|
|
1733
|
-
const TTL$
|
|
1734
|
-
const VERSION$
|
|
1735
|
-
function validate$
|
|
1775
|
+
const TTL$8 = 6000;
|
|
1776
|
+
const VERSION$a = "67c20ef2306f437cc5f7d88184b2ea29";
|
|
1777
|
+
function validate$x(obj, path = 'IndexSettingPatchOutputRepresentation') {
|
|
1736
1778
|
const v_error = (() => {
|
|
1737
1779
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1738
1780
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1746,7 +1788,7 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
|
|
|
1746
1788
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1747
1789
|
const obj_errors_item = obj_errors[i];
|
|
1748
1790
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1749
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1791
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
1750
1792
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1751
1793
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
1752
1794
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1756,7 +1798,7 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
|
|
|
1756
1798
|
}
|
|
1757
1799
|
const obj_setting = obj.setting;
|
|
1758
1800
|
const path_setting = path + '.setting';
|
|
1759
|
-
const referencepath_settingValidationError = validate$
|
|
1801
|
+
const referencepath_settingValidationError = validate$A(obj_setting, path_setting);
|
|
1760
1802
|
if (referencepath_settingValidationError !== null) {
|
|
1761
1803
|
let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
|
|
1762
1804
|
message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1770,68 +1812,68 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
|
|
|
1770
1812
|
})();
|
|
1771
1813
|
return v_error === undefined ? null : v_error;
|
|
1772
1814
|
}
|
|
1773
|
-
const RepresentationType$
|
|
1774
|
-
function keyBuilder$
|
|
1775
|
-
return keyPrefix + '::' + RepresentationType$
|
|
1815
|
+
const RepresentationType$9 = 'IndexSettingPatchOutputRepresentation';
|
|
1816
|
+
function keyBuilder$g(luvio, config) {
|
|
1817
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
1776
1818
|
}
|
|
1777
1819
|
function keyBuilderFromType$2(luvio, object) {
|
|
1778
1820
|
const keyParams = {
|
|
1779
1821
|
id: object.setting.id
|
|
1780
1822
|
};
|
|
1781
|
-
return keyBuilder$
|
|
1823
|
+
return keyBuilder$g(luvio, keyParams);
|
|
1782
1824
|
}
|
|
1783
|
-
function normalize$
|
|
1825
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
1784
1826
|
return input;
|
|
1785
1827
|
}
|
|
1786
|
-
const select$
|
|
1828
|
+
const select$k = function IndexSettingPatchOutputRepresentationSelect() {
|
|
1787
1829
|
return {
|
|
1788
1830
|
kind: 'Fragment',
|
|
1789
|
-
version: VERSION$
|
|
1831
|
+
version: VERSION$a,
|
|
1790
1832
|
private: [],
|
|
1791
1833
|
opaque: true
|
|
1792
1834
|
};
|
|
1793
1835
|
};
|
|
1794
|
-
function equals$
|
|
1836
|
+
function equals$a(existing, incoming) {
|
|
1795
1837
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
1796
1838
|
return false;
|
|
1797
1839
|
}
|
|
1798
1840
|
return true;
|
|
1799
1841
|
}
|
|
1800
|
-
const ingest$
|
|
1842
|
+
const ingest$9 = function IndexSettingPatchOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1801
1843
|
if (process.env.NODE_ENV !== 'production') {
|
|
1802
|
-
const validateError = validate$
|
|
1844
|
+
const validateError = validate$x(input);
|
|
1803
1845
|
if (validateError !== null) {
|
|
1804
1846
|
throw validateError;
|
|
1805
1847
|
}
|
|
1806
1848
|
}
|
|
1807
1849
|
const key = keyBuilderFromType$2(luvio, input);
|
|
1808
|
-
const ttlToUse = TTL$
|
|
1809
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
1850
|
+
const ttlToUse = TTL$8;
|
|
1851
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
|
|
1810
1852
|
return createLink(key);
|
|
1811
1853
|
};
|
|
1812
|
-
function getTypeCacheKeys$
|
|
1854
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1813
1855
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1814
1856
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
1815
1857
|
rootKeySet.set(rootKey, {
|
|
1816
1858
|
namespace: keyPrefix,
|
|
1817
|
-
representationName: RepresentationType$
|
|
1859
|
+
representationName: RepresentationType$9,
|
|
1818
1860
|
mergeable: false
|
|
1819
1861
|
});
|
|
1820
1862
|
}
|
|
1821
1863
|
|
|
1822
|
-
function select$
|
|
1823
|
-
return select$
|
|
1864
|
+
function select$j(luvio, params) {
|
|
1865
|
+
return select$k();
|
|
1824
1866
|
}
|
|
1825
|
-
function getResponseCacheKeys$
|
|
1826
|
-
getTypeCacheKeys$
|
|
1867
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
1868
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
1827
1869
|
}
|
|
1828
|
-
function ingestSuccess$
|
|
1870
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
1829
1871
|
const { body } = response;
|
|
1830
1872
|
const key = keyBuilderFromType$2(luvio, body);
|
|
1831
|
-
luvio.storeIngest(key, ingest$
|
|
1873
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
1832
1874
|
const snapshot = luvio.storeLookup({
|
|
1833
1875
|
recordId: key,
|
|
1834
|
-
node: select$
|
|
1876
|
+
node: select$j(),
|
|
1835
1877
|
variables: {},
|
|
1836
1878
|
});
|
|
1837
1879
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1842,7 +1884,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
1842
1884
|
deepFreeze(snapshot.data);
|
|
1843
1885
|
return snapshot;
|
|
1844
1886
|
}
|
|
1845
|
-
function createResourceRequest$
|
|
1887
|
+
function createResourceRequest$9(config) {
|
|
1846
1888
|
const headers = {};
|
|
1847
1889
|
return {
|
|
1848
1890
|
baseUri: '/services/data/v63.0',
|
|
@@ -1856,47 +1898,47 @@ function createResourceRequest$8(config) {
|
|
|
1856
1898
|
};
|
|
1857
1899
|
}
|
|
1858
1900
|
|
|
1859
|
-
const adapterName$
|
|
1901
|
+
const adapterName$9 = 'patchIndexSetting';
|
|
1860
1902
|
const patchIndexSetting_ConfigPropertyMetadata = [
|
|
1861
1903
|
generateParamConfigMetadata('settingId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
1862
1904
|
generateParamConfigMetadata('setting', false, 2 /* Body */, 4 /* Unsupported */),
|
|
1863
1905
|
];
|
|
1864
|
-
const patchIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
1865
|
-
const createResourceParams$
|
|
1866
|
-
function typeCheckConfig$
|
|
1906
|
+
const patchIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, patchIndexSetting_ConfigPropertyMetadata);
|
|
1907
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(patchIndexSetting_ConfigPropertyMetadata);
|
|
1908
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
1867
1909
|
const config = {};
|
|
1868
|
-
typeCheckConfig$
|
|
1910
|
+
typeCheckConfig$f(untrustedConfig, config, patchIndexSetting_ConfigPropertyMetadata);
|
|
1869
1911
|
const untrustedConfig_setting = untrustedConfig.setting;
|
|
1870
|
-
const referenceSettingInputRepresentationValidationError = validate$
|
|
1912
|
+
const referenceSettingInputRepresentationValidationError = validate$y(untrustedConfig_setting);
|
|
1871
1913
|
if (referenceSettingInputRepresentationValidationError === null) {
|
|
1872
1914
|
config.setting = untrustedConfig_setting;
|
|
1873
1915
|
}
|
|
1874
1916
|
return config;
|
|
1875
1917
|
}
|
|
1876
|
-
function validateAdapterConfig$
|
|
1918
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
1877
1919
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
1878
1920
|
return null;
|
|
1879
1921
|
}
|
|
1880
1922
|
if (process.env.NODE_ENV !== 'production') {
|
|
1881
1923
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
1882
1924
|
}
|
|
1883
|
-
const config = typeCheckConfig$
|
|
1925
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
1884
1926
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
1885
1927
|
return null;
|
|
1886
1928
|
}
|
|
1887
1929
|
return config;
|
|
1888
1930
|
}
|
|
1889
|
-
function buildNetworkSnapshot$
|
|
1890
|
-
const resourceParams = createResourceParams$
|
|
1891
|
-
const request = createResourceRequest$
|
|
1931
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
1932
|
+
const resourceParams = createResourceParams$9(config);
|
|
1933
|
+
const request = createResourceRequest$9(resourceParams);
|
|
1892
1934
|
return luvio.dispatchResourceRequest(request, options)
|
|
1893
1935
|
.then((response) => {
|
|
1894
1936
|
return luvio.handleSuccessResponse(() => {
|
|
1895
|
-
const snapshot = ingestSuccess$
|
|
1937
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
1896
1938
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
1897
1939
|
}, () => {
|
|
1898
1940
|
const cache = new StoreKeyMap();
|
|
1899
|
-
getResponseCacheKeys$
|
|
1941
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
1900
1942
|
return cache;
|
|
1901
1943
|
});
|
|
1902
1944
|
}, (response) => {
|
|
@@ -1906,18 +1948,18 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1906
1948
|
}
|
|
1907
1949
|
const patchIndexSettingAdapterFactory = (luvio) => {
|
|
1908
1950
|
return function patchIndexSetting(untrustedConfig) {
|
|
1909
|
-
const config = validateAdapterConfig$
|
|
1951
|
+
const config = validateAdapterConfig$9(untrustedConfig, patchIndexSetting_ConfigPropertyNames);
|
|
1910
1952
|
// Invalid or incomplete config
|
|
1911
1953
|
if (config === null) {
|
|
1912
1954
|
throw new Error('Invalid config for "patchIndexSetting"');
|
|
1913
1955
|
}
|
|
1914
|
-
return buildNetworkSnapshot$
|
|
1956
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
1915
1957
|
};
|
|
1916
1958
|
};
|
|
1917
1959
|
|
|
1918
|
-
const TTL$
|
|
1919
|
-
const VERSION$
|
|
1920
|
-
function validate$
|
|
1960
|
+
const TTL$7 = 6000;
|
|
1961
|
+
const VERSION$9 = "b1566a76d9cf30f61b94a2d92caab70d";
|
|
1962
|
+
function validate$w(obj, path = 'SnapshotCollectionOutputRepresentation') {
|
|
1921
1963
|
const v_error = (() => {
|
|
1922
1964
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1923
1965
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1931,7 +1973,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
|
|
|
1931
1973
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
1932
1974
|
const obj_errors_item = obj_errors[i];
|
|
1933
1975
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
1934
|
-
const referencepath_errors_itemValidationError = validate$
|
|
1976
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
1935
1977
|
if (referencepath_errors_itemValidationError !== null) {
|
|
1936
1978
|
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
1937
1979
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1948,7 +1990,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
|
|
|
1948
1990
|
for (let i = 0; i < obj_snapshots.length; i++) {
|
|
1949
1991
|
const obj_snapshots_item = obj_snapshots[i];
|
|
1950
1992
|
const path_snapshots_item = path_snapshots + '[' + i + ']';
|
|
1951
|
-
const referencepath_snapshots_itemValidationError = validate$
|
|
1993
|
+
const referencepath_snapshots_itemValidationError = validate$D(obj_snapshots_item, path_snapshots_item);
|
|
1952
1994
|
if (referencepath_snapshots_itemValidationError !== null) {
|
|
1953
1995
|
let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshots_item + '")\n';
|
|
1954
1996
|
message += referencepath_snapshots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1966,11 +2008,275 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
|
|
|
1966
2008
|
})();
|
|
1967
2009
|
return v_error === undefined ? null : v_error;
|
|
1968
2010
|
}
|
|
1969
|
-
const RepresentationType$
|
|
2011
|
+
const RepresentationType$8 = 'SnapshotCollectionOutputRepresentation';
|
|
2012
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
2013
|
+
return input;
|
|
2014
|
+
}
|
|
2015
|
+
const select$i = function SnapshotCollectionOutputRepresentationSelect() {
|
|
2016
|
+
return {
|
|
2017
|
+
kind: 'Fragment',
|
|
2018
|
+
version: VERSION$9,
|
|
2019
|
+
private: [],
|
|
2020
|
+
opaque: true
|
|
2021
|
+
};
|
|
2022
|
+
};
|
|
2023
|
+
function equals$9(existing, incoming) {
|
|
2024
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
2025
|
+
return false;
|
|
2026
|
+
}
|
|
2027
|
+
return true;
|
|
2028
|
+
}
|
|
2029
|
+
const ingest$8 = function SnapshotCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
2030
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2031
|
+
const validateError = validate$w(input);
|
|
2032
|
+
if (validateError !== null) {
|
|
2033
|
+
throw validateError;
|
|
2034
|
+
}
|
|
2035
|
+
}
|
|
2036
|
+
const key = path.fullPath;
|
|
2037
|
+
const ttlToUse = TTL$7;
|
|
2038
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "epc", VERSION$9, RepresentationType$8, equals$9);
|
|
2039
|
+
return createLink(key);
|
|
2040
|
+
};
|
|
2041
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
2042
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2043
|
+
const rootKey = fullPathFactory();
|
|
2044
|
+
rootKeySet.set(rootKey, {
|
|
2045
|
+
namespace: keyPrefix,
|
|
2046
|
+
representationName: RepresentationType$8,
|
|
2047
|
+
mergeable: false
|
|
2048
|
+
});
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2051
|
+
function select$h(luvio, params) {
|
|
2052
|
+
return select$i();
|
|
2053
|
+
}
|
|
2054
|
+
function keyBuilder$f(luvio, params) {
|
|
2055
|
+
return keyPrefix + '::SnapshotCollectionOutputRepresentation:(' + 'numberOfIndexLogs:' + params.queryParams.numberOfIndexLogs + ')';
|
|
2056
|
+
}
|
|
2057
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
2058
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$f(luvio, resourceParams));
|
|
2059
|
+
}
|
|
2060
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
2061
|
+
const { body } = response;
|
|
2062
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
2063
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
2064
|
+
const snapshot = luvio.storeLookup({
|
|
2065
|
+
recordId: key,
|
|
2066
|
+
node: select$h(),
|
|
2067
|
+
variables: {},
|
|
2068
|
+
}, snapshotRefresh);
|
|
2069
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2070
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
2071
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2072
|
+
}
|
|
2073
|
+
}
|
|
2074
|
+
deepFreeze(snapshot.data);
|
|
2075
|
+
return snapshot;
|
|
2076
|
+
}
|
|
2077
|
+
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
2078
|
+
const key = keyBuilder$f(luvio, params);
|
|
2079
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
2080
|
+
const storeMetadataParams = {
|
|
2081
|
+
ttl: TTL$7,
|
|
2082
|
+
namespace: keyPrefix,
|
|
2083
|
+
version: VERSION$9,
|
|
2084
|
+
representationName: RepresentationType$8
|
|
2085
|
+
};
|
|
2086
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
2087
|
+
return errorSnapshot;
|
|
2088
|
+
}
|
|
2089
|
+
function createResourceRequest$8(config) {
|
|
2090
|
+
const headers = {};
|
|
2091
|
+
return {
|
|
2092
|
+
baseUri: '/services/data/v63.0',
|
|
2093
|
+
basePath: '/connect/pcm/index/snapshots',
|
|
2094
|
+
method: 'get',
|
|
2095
|
+
body: null,
|
|
2096
|
+
urlParams: {},
|
|
2097
|
+
queryParams: config.queryParams,
|
|
2098
|
+
headers,
|
|
2099
|
+
priority: 'normal',
|
|
2100
|
+
};
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
const adapterName$8 = 'getSnapshots';
|
|
2104
|
+
const getSnapshots_ConfigPropertyMetadata = [
|
|
2105
|
+
generateParamConfigMetadata('numberOfIndexLogs', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
2106
|
+
];
|
|
2107
|
+
const getSnapshots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getSnapshots_ConfigPropertyMetadata);
|
|
2108
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$f(getSnapshots_ConfigPropertyMetadata);
|
|
2109
|
+
function keyBuilder$e(luvio, config) {
|
|
2110
|
+
const resourceParams = createResourceParams$8(config);
|
|
2111
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
2112
|
+
}
|
|
2113
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
2114
|
+
const config = {};
|
|
2115
|
+
typeCheckConfig$f(untrustedConfig, config, getSnapshots_ConfigPropertyMetadata);
|
|
2116
|
+
return config;
|
|
2117
|
+
}
|
|
2118
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
2119
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
2120
|
+
return null;
|
|
2121
|
+
}
|
|
2122
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
2123
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
2124
|
+
}
|
|
2125
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
2126
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
2127
|
+
return null;
|
|
2128
|
+
}
|
|
2129
|
+
return config;
|
|
2130
|
+
}
|
|
2131
|
+
function adapterFragment$6(luvio, config) {
|
|
2132
|
+
createResourceParams$8(config);
|
|
2133
|
+
return select$h();
|
|
2134
|
+
}
|
|
2135
|
+
function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
|
|
2136
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
2137
|
+
config,
|
|
2138
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2139
|
+
});
|
|
2140
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2141
|
+
}
|
|
2142
|
+
function onFetchResponseError$6(luvio, config, resourceParams, response) {
|
|
2143
|
+
const snapshot = ingestError$6(luvio, resourceParams, response, {
|
|
2144
|
+
config,
|
|
2145
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2146
|
+
});
|
|
2147
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
2148
|
+
}
|
|
2149
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
2150
|
+
const resourceParams = createResourceParams$8(config);
|
|
2151
|
+
const request = createResourceRequest$8(resourceParams);
|
|
2152
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
2153
|
+
.then((response) => {
|
|
2154
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
2155
|
+
const cache = new StoreKeyMap();
|
|
2156
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
2157
|
+
return cache;
|
|
2158
|
+
});
|
|
2159
|
+
}, (response) => {
|
|
2160
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
|
|
2164
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, undefined, false);
|
|
2165
|
+
}
|
|
2166
|
+
function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
|
|
2167
|
+
const { luvio, config } = context;
|
|
2168
|
+
const selector = {
|
|
2169
|
+
recordId: keyBuilder$e(luvio, config),
|
|
2170
|
+
node: adapterFragment$6(luvio, config),
|
|
2171
|
+
variables: {},
|
|
2172
|
+
};
|
|
2173
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
2174
|
+
config,
|
|
2175
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
2176
|
+
});
|
|
2177
|
+
return cacheSnapshot;
|
|
2178
|
+
}
|
|
2179
|
+
const getSnapshotsAdapterFactory = (luvio) => function epc__getSnapshots(untrustedConfig, requestContext) {
|
|
2180
|
+
const config = validateAdapterConfig$8(untrustedConfig, getSnapshots_ConfigPropertyNames);
|
|
2181
|
+
// Invalid or incomplete config
|
|
2182
|
+
if (config === null) {
|
|
2183
|
+
return null;
|
|
2184
|
+
}
|
|
2185
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
2186
|
+
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
|
|
2187
|
+
};
|
|
2188
|
+
|
|
2189
|
+
function validate$v(obj, path = 'IndexErrorOutputRepresentation') {
|
|
2190
|
+
const v_error = (() => {
|
|
2191
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2192
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2193
|
+
}
|
|
2194
|
+
if (obj.errorFileId !== undefined) {
|
|
2195
|
+
const obj_errorFileId = obj.errorFileId;
|
|
2196
|
+
const path_errorFileId = path + '.errorFileId';
|
|
2197
|
+
if (typeof obj_errorFileId !== 'string') {
|
|
2198
|
+
return new TypeError('Expected "string" but received "' + typeof obj_errorFileId + '" (at "' + path_errorFileId + '")');
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
if (obj.indexCreatedDate !== undefined) {
|
|
2202
|
+
const obj_indexCreatedDate = obj.indexCreatedDate;
|
|
2203
|
+
const path_indexCreatedDate = path + '.indexCreatedDate';
|
|
2204
|
+
if (typeof obj_indexCreatedDate !== 'string') {
|
|
2205
|
+
return new TypeError('Expected "string" but received "' + typeof obj_indexCreatedDate + '" (at "' + path_indexCreatedDate + '")');
|
|
2206
|
+
}
|
|
2207
|
+
}
|
|
2208
|
+
if (obj.indexErrorsCount !== undefined) {
|
|
2209
|
+
const obj_indexErrorsCount = obj.indexErrorsCount;
|
|
2210
|
+
const path_indexErrorsCount = path + '.indexErrorsCount';
|
|
2211
|
+
if (typeof obj_indexErrorsCount !== 'number' || (typeof obj_indexErrorsCount === 'number' && Math.floor(obj_indexErrorsCount) !== obj_indexErrorsCount)) {
|
|
2212
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_indexErrorsCount + '" (at "' + path_indexErrorsCount + '")');
|
|
2213
|
+
}
|
|
2214
|
+
}
|
|
2215
|
+
if (obj.indexLastUpdatedDate !== undefined) {
|
|
2216
|
+
const obj_indexLastUpdatedDate = obj.indexLastUpdatedDate;
|
|
2217
|
+
const path_indexLastUpdatedDate = path + '.indexLastUpdatedDate';
|
|
2218
|
+
if (typeof obj_indexLastUpdatedDate !== 'string') {
|
|
2219
|
+
return new TypeError('Expected "string" but received "' + typeof obj_indexLastUpdatedDate + '" (at "' + path_indexLastUpdatedDate + '")');
|
|
2220
|
+
}
|
|
2221
|
+
}
|
|
2222
|
+
if (obj.itemLevelErrorsCount !== undefined) {
|
|
2223
|
+
const obj_itemLevelErrorsCount = obj.itemLevelErrorsCount;
|
|
2224
|
+
const path_itemLevelErrorsCount = path + '.itemLevelErrorsCount';
|
|
2225
|
+
if (typeof obj_itemLevelErrorsCount !== 'number' || (typeof obj_itemLevelErrorsCount === 'number' && Math.floor(obj_itemLevelErrorsCount) !== obj_itemLevelErrorsCount)) {
|
|
2226
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_itemLevelErrorsCount + '" (at "' + path_itemLevelErrorsCount + '")');
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
})();
|
|
2230
|
+
return v_error === undefined ? null : v_error;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
const TTL$6 = 6000;
|
|
2234
|
+
const VERSION$8 = "e31c001fd55621e81285a4979e12f08b";
|
|
2235
|
+
function validate$u(obj, path = 'SnapshotIndexErrorOutputRepresentation') {
|
|
2236
|
+
const v_error = (() => {
|
|
2237
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2238
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2239
|
+
}
|
|
2240
|
+
if (obj.errors !== undefined) {
|
|
2241
|
+
const obj_errors = obj.errors;
|
|
2242
|
+
const path_errors = path + '.errors';
|
|
2243
|
+
if (!ArrayIsArray(obj_errors)) {
|
|
2244
|
+
return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
|
|
2245
|
+
}
|
|
2246
|
+
for (let i = 0; i < obj_errors.length; i++) {
|
|
2247
|
+
const obj_errors_item = obj_errors[i];
|
|
2248
|
+
const path_errors_item = path_errors + '[' + i + ']';
|
|
2249
|
+
const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
|
|
2250
|
+
if (referencepath_errors_itemValidationError !== null) {
|
|
2251
|
+
let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
2252
|
+
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2253
|
+
return new TypeError(message);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
if (obj.indexErrorDetails !== undefined) {
|
|
2258
|
+
const obj_indexErrorDetails = obj.indexErrorDetails;
|
|
2259
|
+
const path_indexErrorDetails = path + '.indexErrorDetails';
|
|
2260
|
+
const referencepath_indexErrorDetailsValidationError = validate$v(obj_indexErrorDetails, path_indexErrorDetails);
|
|
2261
|
+
if (referencepath_indexErrorDetailsValidationError !== null) {
|
|
2262
|
+
let message = 'Object doesn\'t match IndexErrorOutputRepresentation (at "' + path_indexErrorDetails + '")\n';
|
|
2263
|
+
message += referencepath_indexErrorDetailsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2264
|
+
return new TypeError(message);
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
const obj_statusCode = obj.statusCode;
|
|
2268
|
+
const path_statusCode = path + '.statusCode';
|
|
2269
|
+
if (typeof obj_statusCode !== 'string') {
|
|
2270
|
+
return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
|
|
2271
|
+
}
|
|
2272
|
+
})();
|
|
2273
|
+
return v_error === undefined ? null : v_error;
|
|
2274
|
+
}
|
|
2275
|
+
const RepresentationType$7 = 'SnapshotIndexErrorOutputRepresentation';
|
|
1970
2276
|
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
1971
2277
|
return input;
|
|
1972
2278
|
}
|
|
1973
|
-
const select$g = function
|
|
2279
|
+
const select$g = function SnapshotIndexErrorOutputRepresentationSelect() {
|
|
1974
2280
|
return {
|
|
1975
2281
|
kind: 'Fragment',
|
|
1976
2282
|
version: VERSION$8,
|
|
@@ -1984,7 +2290,7 @@ function equals$8(existing, incoming) {
|
|
|
1984
2290
|
}
|
|
1985
2291
|
return true;
|
|
1986
2292
|
}
|
|
1987
|
-
const ingest$7 = function
|
|
2293
|
+
const ingest$7 = function SnapshotIndexErrorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1988
2294
|
if (process.env.NODE_ENV !== 'production') {
|
|
1989
2295
|
const validateError = validate$u(input);
|
|
1990
2296
|
if (validateError !== null) {
|
|
@@ -2010,7 +2316,7 @@ function select$f(luvio, params) {
|
|
|
2010
2316
|
return select$g();
|
|
2011
2317
|
}
|
|
2012
2318
|
function keyBuilder$d(luvio, params) {
|
|
2013
|
-
return keyPrefix + '::
|
|
2319
|
+
return keyPrefix + '::SnapshotIndexErrorOutputRepresentation:(' + 'indexId:' + params.queryParams.indexId + ',' + 'snapshotIndexId:' + params.queryParams.snapshotIndexId + ')';
|
|
2014
2320
|
}
|
|
2015
2321
|
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
2016
2322
|
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
@@ -2048,7 +2354,7 @@ function createResourceRequest$7(config) {
|
|
|
2048
2354
|
const headers = {};
|
|
2049
2355
|
return {
|
|
2050
2356
|
baseUri: '/services/data/v63.0',
|
|
2051
|
-
basePath: '/connect/pcm/index/
|
|
2357
|
+
basePath: '/connect/pcm/index/error',
|
|
2052
2358
|
method: 'get',
|
|
2053
2359
|
body: null,
|
|
2054
2360
|
urlParams: {},
|
|
@@ -2058,19 +2364,20 @@ function createResourceRequest$7(config) {
|
|
|
2058
2364
|
};
|
|
2059
2365
|
}
|
|
2060
2366
|
|
|
2061
|
-
const adapterName$7 = '
|
|
2062
|
-
const
|
|
2063
|
-
generateParamConfigMetadata('
|
|
2367
|
+
const adapterName$7 = 'getIndexError';
|
|
2368
|
+
const getIndexError_ConfigPropertyMetadata = [
|
|
2369
|
+
generateParamConfigMetadata('indexId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2370
|
+
generateParamConfigMetadata('snapshotIndexId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2064
2371
|
];
|
|
2065
|
-
const
|
|
2066
|
-
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$
|
|
2372
|
+
const getIndexError_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getIndexError_ConfigPropertyMetadata);
|
|
2373
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getIndexError_ConfigPropertyMetadata);
|
|
2067
2374
|
function keyBuilder$c(luvio, config) {
|
|
2068
2375
|
const resourceParams = createResourceParams$7(config);
|
|
2069
2376
|
return keyBuilder$d(luvio, resourceParams);
|
|
2070
2377
|
}
|
|
2071
2378
|
function typeCheckConfig$7(untrustedConfig) {
|
|
2072
2379
|
const config = {};
|
|
2073
|
-
typeCheckConfig$
|
|
2380
|
+
typeCheckConfig$f(untrustedConfig, config, getIndexError_ConfigPropertyMetadata);
|
|
2074
2381
|
return config;
|
|
2075
2382
|
}
|
|
2076
2383
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -2119,7 +2426,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
2119
2426
|
});
|
|
2120
2427
|
}
|
|
2121
2428
|
function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
|
|
2122
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2429
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
2123
2430
|
}
|
|
2124
2431
|
function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
2125
2432
|
const { luvio, config } = context;
|
|
@@ -2134,8 +2441,8 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
|
|
|
2134
2441
|
});
|
|
2135
2442
|
return cacheSnapshot;
|
|
2136
2443
|
}
|
|
2137
|
-
const
|
|
2138
|
-
const config = validateAdapterConfig$7(untrustedConfig,
|
|
2444
|
+
const getIndexErrorAdapterFactory = (luvio) => function epc__getIndexError(untrustedConfig, requestContext) {
|
|
2445
|
+
const config = validateAdapterConfig$7(untrustedConfig, getIndexError_ConfigPropertyNames);
|
|
2139
2446
|
// Invalid or incomplete config
|
|
2140
2447
|
if (config === null) {
|
|
2141
2448
|
return null;
|
|
@@ -2309,7 +2616,7 @@ const createProductAttributeDefinition_ConfigPropertyMetadata = [
|
|
|
2309
2616
|
generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2310
2617
|
];
|
|
2311
2618
|
const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
2312
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
2619
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(createProductAttributeDefinition_ConfigPropertyMetadata);
|
|
2313
2620
|
function typeCheckConfig$6(untrustedConfig) {
|
|
2314
2621
|
const config = {};
|
|
2315
2622
|
const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
|
|
@@ -2584,14 +2891,14 @@ const getProductFlowByProductId_ConfigPropertyMetadata = [
|
|
|
2584
2891
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
2585
2892
|
];
|
|
2586
2893
|
const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2587
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
2894
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2588
2895
|
function keyBuilder$9(luvio, config) {
|
|
2589
2896
|
const resourceParams = createResourceParams$5(config);
|
|
2590
2897
|
return keyBuilder$a(luvio, resourceParams);
|
|
2591
2898
|
}
|
|
2592
2899
|
function typeCheckConfig$5(untrustedConfig) {
|
|
2593
2900
|
const config = {};
|
|
2594
|
-
typeCheckConfig$
|
|
2901
|
+
typeCheckConfig$f(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
|
|
2595
2902
|
return config;
|
|
2596
2903
|
}
|
|
2597
2904
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -2640,7 +2947,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2640
2947
|
});
|
|
2641
2948
|
}
|
|
2642
2949
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
2643
|
-
return buildNetworkSnapshotCachePolicy$
|
|
2950
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
2644
2951
|
}
|
|
2645
2952
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
2646
2953
|
const { luvio, config } = context;
|
|
@@ -3518,14 +3825,14 @@ const getProductAttributesByProductId_ConfigPropertyMetadata = [
|
|
|
3518
3825
|
generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
3519
3826
|
];
|
|
3520
3827
|
const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
3521
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
3828
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
3522
3829
|
function keyBuilder$7(luvio, config) {
|
|
3523
3830
|
const resourceParams = createResourceParams$4(config);
|
|
3524
3831
|
return keyBuilder$8(luvio, resourceParams);
|
|
3525
3832
|
}
|
|
3526
3833
|
function typeCheckConfig$4(untrustedConfig) {
|
|
3527
3834
|
const config = {};
|
|
3528
|
-
typeCheckConfig$
|
|
3835
|
+
typeCheckConfig$f(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
|
|
3529
3836
|
return config;
|
|
3530
3837
|
}
|
|
3531
3838
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -3574,7 +3881,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3574
3881
|
});
|
|
3575
3882
|
}
|
|
3576
3883
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
3577
|
-
return buildNetworkSnapshotCachePolicy$
|
|
3884
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
3578
3885
|
}
|
|
3579
3886
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
3580
3887
|
const { luvio, config } = context;
|
|
@@ -3841,14 +4148,14 @@ const getProductById_ConfigPropertyMetadata = [
|
|
|
3841
4148
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
3842
4149
|
];
|
|
3843
4150
|
const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getProductById_ConfigPropertyMetadata);
|
|
3844
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
4151
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getProductById_ConfigPropertyMetadata);
|
|
3845
4152
|
function keyBuilder$5(luvio, config) {
|
|
3846
4153
|
const resourceParams = createResourceParams$3(config);
|
|
3847
4154
|
return keyBuilder$6(luvio, resourceParams);
|
|
3848
4155
|
}
|
|
3849
4156
|
function typeCheckConfig$3(untrustedConfig) {
|
|
3850
4157
|
const config = {};
|
|
3851
|
-
typeCheckConfig$
|
|
4158
|
+
typeCheckConfig$f(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
|
|
3852
4159
|
return config;
|
|
3853
4160
|
}
|
|
3854
4161
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -3897,7 +4204,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
3897
4204
|
});
|
|
3898
4205
|
}
|
|
3899
4206
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
3900
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4207
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
3901
4208
|
}
|
|
3902
4209
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
3903
4210
|
const { luvio, config } = context;
|
|
@@ -4227,14 +4534,14 @@ const getContextDefinitionInfoById_ConfigPropertyMetadata = [
|
|
|
4227
4534
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4228
4535
|
];
|
|
4229
4536
|
const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
4230
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
4537
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
4231
4538
|
function keyBuilder$3(luvio, config) {
|
|
4232
4539
|
const resourceParams = createResourceParams$2(config);
|
|
4233
4540
|
return keyBuilder$4(luvio, resourceParams);
|
|
4234
4541
|
}
|
|
4235
4542
|
function typeCheckConfig$2(untrustedConfig) {
|
|
4236
4543
|
const config = {};
|
|
4237
|
-
typeCheckConfig$
|
|
4544
|
+
typeCheckConfig$f(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
|
|
4238
4545
|
return config;
|
|
4239
4546
|
}
|
|
4240
4547
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -4283,7 +4590,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
4283
4590
|
});
|
|
4284
4591
|
}
|
|
4285
4592
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
4286
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4593
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
4287
4594
|
}
|
|
4288
4595
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
4289
4596
|
const { luvio, config } = context;
|
|
@@ -4515,14 +4822,14 @@ const getConfigRuleMetadata_ConfigPropertyMetadata = [
|
|
|
4515
4822
|
generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
4516
4823
|
];
|
|
4517
4824
|
const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
4518
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
4825
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
4519
4826
|
function keyBuilder$1(luvio, config) {
|
|
4520
4827
|
const resourceParams = createResourceParams$1(config);
|
|
4521
4828
|
return keyBuilder$2(luvio, resourceParams);
|
|
4522
4829
|
}
|
|
4523
4830
|
function typeCheckConfig$1(untrustedConfig) {
|
|
4524
4831
|
const config = {};
|
|
4525
|
-
typeCheckConfig$
|
|
4832
|
+
typeCheckConfig$f(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
|
|
4526
4833
|
return config;
|
|
4527
4834
|
}
|
|
4528
4835
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -4571,7 +4878,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
4571
4878
|
});
|
|
4572
4879
|
}
|
|
4573
4880
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
4574
|
-
return buildNetworkSnapshotCachePolicy$
|
|
4881
|
+
return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
|
|
4575
4882
|
}
|
|
4576
4883
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
4577
4884
|
const { luvio, config } = context;
|
|
@@ -4814,10 +5121,10 @@ const fetchRelatedRecords_ConfigPropertyMetadata = [
|
|
|
4814
5121
|
generateParamConfigMetadata('relatedObjectNodes', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
4815
5122
|
];
|
|
4816
5123
|
const fetchRelatedRecords_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, fetchRelatedRecords_ConfigPropertyMetadata);
|
|
4817
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
5124
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$f(fetchRelatedRecords_ConfigPropertyMetadata);
|
|
4818
5125
|
function typeCheckConfig(untrustedConfig) {
|
|
4819
5126
|
const config = {};
|
|
4820
|
-
typeCheckConfig$
|
|
5127
|
+
typeCheckConfig$f(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
|
|
4821
5128
|
const untrustedConfig_relatedObjectNodes = untrustedConfig.relatedObjectNodes;
|
|
4822
5129
|
if (ArrayIsArray$1(untrustedConfig_relatedObjectNodes)) {
|
|
4823
5130
|
const untrustedConfig_relatedObjectNodes_array = [];
|
|
@@ -4871,4 +5178,4 @@ const fetchRelatedRecordsAdapterFactory = (luvio) => {
|
|
|
4871
5178
|
};
|
|
4872
5179
|
};
|
|
4873
5180
|
|
|
4874
|
-
export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, fetchRelatedRecordsAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getIndexSettingAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, patchIndexSettingAdapterFactory, updateIndexConfigurationsAdapterFactory };
|
|
5181
|
+
export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, fetchRelatedRecordsAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getIndexErrorAdapterFactory, getIndexSettingAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, patchIndexSettingAdapterFactory, updateIndexConfigurationsAdapterFactory };
|