@salesforce/lds-adapters-industries-epc 1.315.0 → 1.316.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.
@@ -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$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$c } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$e, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$e } 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$H(obj, path = 'DeactivateInputRepresentation') {
95
+ function validate$L(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$H(obj, path = 'DeactivateInputRepresentation') {
125
125
  return v_error === undefined ? null : v_error;
126
126
  }
127
127
 
128
- function validate$G(obj, path = 'ErrorOutputRepresentation') {
128
+ function validate$K(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$G(obj, path = 'ErrorOutputRepresentation') {
156
156
  return v_error === undefined ? null : v_error;
157
157
  }
158
158
 
159
- const TTL$a = 6000;
160
- const VERSION$c = "67abdeaa299bae24f468fd2e78cd1e1e";
161
- function validate$F(obj, path = 'RecordIdMapOutputRepresentation') {
159
+ const TTL$c = 6000;
160
+ const VERSION$e = "67abdeaa299bae24f468fd2e78cd1e1e";
161
+ function validate$J(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$F(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$G(obj_errors_item, path_errors_item);
174
+ const referencepath_errors_itemValidationError = validate$K(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$F(obj, path = 'RecordIdMapOutputRepresentation') {
186
186
  })();
187
187
  return v_error === undefined ? null : v_error;
188
188
  }
189
- const RepresentationType$b = 'RecordIdMapOutputRepresentation';
190
- function keyBuilder$i(luvio, config) {
191
- return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
189
+ const RepresentationType$d = 'RecordIdMapOutputRepresentation';
190
+ function keyBuilder$l(luvio, config) {
191
+ return keyPrefix + '::' + RepresentationType$d + ':' + config.message;
192
192
  }
193
- function keyBuilderFromType$4(luvio, object) {
193
+ function keyBuilderFromType$5(luvio, object) {
194
194
  const keyParams = {
195
195
  message: object.status
196
196
  };
197
- return keyBuilder$i(luvio, keyParams);
197
+ return keyBuilder$l(luvio, keyParams);
198
198
  }
199
- function normalize$b(input, existing, path, luvio, store, timestamp) {
199
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
200
200
  return input;
201
201
  }
202
- const select$o = function RecordIdMapOutputRepresentationSelect() {
202
+ const select$s = function RecordIdMapOutputRepresentationSelect() {
203
203
  return {
204
204
  kind: 'Fragment',
205
- version: VERSION$c,
205
+ version: VERSION$e,
206
206
  private: [],
207
207
  opaque: true
208
208
  };
209
209
  };
210
- function equals$c(existing, incoming) {
210
+ function equals$e(existing, incoming) {
211
211
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
212
212
  return false;
213
213
  }
214
214
  return true;
215
215
  }
216
- const ingest$b = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
216
+ const ingest$d = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
217
217
  if (process.env.NODE_ENV !== 'production') {
218
- const validateError = validate$F(input);
218
+ const validateError = validate$J(input);
219
219
  if (validateError !== null) {
220
220
  throw validateError;
221
221
  }
222
222
  }
223
- const key = keyBuilderFromType$4(luvio, input);
224
- const ttlToUse = TTL$a;
225
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
223
+ const key = keyBuilderFromType$5(luvio, input);
224
+ const ttlToUse = TTL$c;
225
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "epc", VERSION$e, RepresentationType$d, equals$e);
226
226
  return createLink(key);
227
227
  };
228
- function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
228
+ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
229
229
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
230
- const rootKey = keyBuilderFromType$4(luvio, input);
230
+ const rootKey = keyBuilderFromType$5(luvio, input);
231
231
  rootKeySet.set(rootKey, {
232
232
  namespace: keyPrefix,
233
- representationName: RepresentationType$b,
233
+ representationName: RepresentationType$d,
234
234
  mergeable: false
235
235
  });
236
236
  }
237
237
 
238
- function select$n(luvio, params) {
239
- return select$o();
238
+ function select$r(luvio, params) {
239
+ return select$s();
240
240
  }
241
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
242
- getTypeCacheKeys$b(storeKeyMap, luvio, response);
241
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
242
+ getTypeCacheKeys$d(storeKeyMap, luvio, response);
243
243
  }
244
- function ingestSuccess$b(luvio, resourceParams, response) {
244
+ function ingestSuccess$d(luvio, resourceParams, response) {
245
245
  const { body } = response;
246
- const key = keyBuilderFromType$4(luvio, body);
247
- luvio.storeIngest(key, ingest$b, body);
246
+ const key = keyBuilderFromType$5(luvio, body);
247
+ luvio.storeIngest(key, ingest$d, body);
248
248
  const snapshot = luvio.storeLookup({
249
249
  recordId: key,
250
- node: select$n(),
250
+ node: select$r(),
251
251
  variables: {},
252
252
  });
253
253
  if (process.env.NODE_ENV !== 'production') {
@@ -258,7 +258,7 @@ function ingestSuccess$b(luvio, resourceParams, response) {
258
258
  deepFreeze(snapshot.data);
259
259
  return snapshot;
260
260
  }
261
- function createResourceRequest$b(config) {
261
+ function createResourceRequest$d(config) {
262
262
  const headers = {};
263
263
  return {
264
264
  baseUri: '/services/data/v63.0',
@@ -272,45 +272,45 @@ function createResourceRequest$b(config) {
272
272
  };
273
273
  }
274
274
 
275
- const adapterName$b = 'deactivate';
275
+ const adapterName$d = 'deactivate';
276
276
  const deactivate_ConfigPropertyMetadata = [
277
277
  generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
278
278
  ];
279
- const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deactivate_ConfigPropertyMetadata);
280
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(deactivate_ConfigPropertyMetadata);
281
- function typeCheckConfig$b(untrustedConfig) {
279
+ const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, deactivate_ConfigPropertyMetadata);
280
+ const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(deactivate_ConfigPropertyMetadata);
281
+ function typeCheckConfig$d(untrustedConfig) {
282
282
  const config = {};
283
283
  const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
284
- const referenceDeactivateInputRepresentationValidationError = validate$H(untrustedConfig_deactivateInputPayload);
284
+ const referenceDeactivateInputRepresentationValidationError = validate$L(untrustedConfig_deactivateInputPayload);
285
285
  if (referenceDeactivateInputRepresentationValidationError === null) {
286
286
  config.deactivateInputPayload = untrustedConfig_deactivateInputPayload;
287
287
  }
288
288
  return config;
289
289
  }
290
- function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
290
+ function validateAdapterConfig$d(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$b(untrustedConfig);
297
+ const config = typeCheckConfig$d(untrustedConfig);
298
298
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
299
299
  return null;
300
300
  }
301
301
  return config;
302
302
  }
303
- function buildNetworkSnapshot$b(luvio, config, options) {
304
- const resourceParams = createResourceParams$b(config);
305
- const request = createResourceRequest$b(resourceParams);
303
+ function buildNetworkSnapshot$d(luvio, config, options) {
304
+ const resourceParams = createResourceParams$d(config);
305
+ const request = createResourceRequest$d(resourceParams);
306
306
  return luvio.dispatchResourceRequest(request, options)
307
307
  .then((response) => {
308
308
  return luvio.handleSuccessResponse(() => {
309
- const snapshot = ingestSuccess$b(luvio, resourceParams, response);
309
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response);
310
310
  return luvio.storeBroadcast().then(() => snapshot);
311
311
  }, () => {
312
312
  const cache = new StoreKeyMap();
313
- getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
313
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
314
314
  return cache;
315
315
  });
316
316
  }, (response) => {
@@ -320,16 +320,16 @@ function buildNetworkSnapshot$b(luvio, config, options) {
320
320
  }
321
321
  const deactivateAdapterFactory = (luvio) => {
322
322
  return function deactivate(untrustedConfig) {
323
- const config = validateAdapterConfig$b(untrustedConfig, deactivate_ConfigPropertyNames);
323
+ const config = validateAdapterConfig$d(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$b(luvio, config);
328
+ return buildNetworkSnapshot$d(luvio, config);
329
329
  };
330
330
  };
331
331
 
332
- function validate$E(obj, path = 'EpcErrorOutputRepresentation') {
332
+ function validate$I(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$E(obj, path = 'EpcErrorOutputRepresentation') {
380
380
  return v_error === undefined ? null : v_error;
381
381
  }
382
382
 
383
- function validate$D(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
383
+ function validate$H(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 + '")');
@@ -438,7 +438,7 @@ function validate$D(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
438
438
  return v_error === undefined ? null : v_error;
439
439
  }
440
440
 
441
- function validate$C(obj, path = 'FieldsInfoOutputRepresentation') {
441
+ function validate$G(obj, path = 'FieldsInfoOutputRepresentation') {
442
442
  const v_error = (() => {
443
443
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
444
444
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -482,7 +482,7 @@ function validate$C(obj, path = 'FieldsInfoOutputRepresentation') {
482
482
  return v_error === undefined ? null : v_error;
483
483
  }
484
484
 
485
- function validate$B(obj, path = 'ObjectInfoOutputRepresentation') {
485
+ function validate$F(obj, path = 'ObjectInfoOutputRepresentation') {
486
486
  const v_error = (() => {
487
487
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
488
488
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -496,7 +496,7 @@ function validate$B(obj, path = 'ObjectInfoOutputRepresentation') {
496
496
  for (let i = 0; i < obj_fields.length; i++) {
497
497
  const obj_fields_item = obj_fields[i];
498
498
  const path_fields_item = path_fields + '[' + i + ']';
499
- const referencepath_fields_itemValidationError = validate$C(obj_fields_item, path_fields_item);
499
+ const referencepath_fields_itemValidationError = validate$G(obj_fields_item, path_fields_item);
500
500
  if (referencepath_fields_itemValidationError !== null) {
501
501
  let message = 'Object doesn\'t match FieldsInfoOutputRepresentation (at "' + path_fields_item + '")\n';
502
502
  message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -515,7 +515,7 @@ function validate$B(obj, path = 'ObjectInfoOutputRepresentation') {
515
515
  return v_error === undefined ? null : v_error;
516
516
  }
517
517
 
518
- function validate$A(obj, path = 'MetadataOutputRepresentation') {
518
+ function validate$E(obj, path = 'MetadataOutputRepresentation') {
519
519
  const v_error = (() => {
520
520
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
521
521
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -529,7 +529,7 @@ function validate$A(obj, path = 'MetadataOutputRepresentation') {
529
529
  for (let i = 0; i < obj_objectInfos.length; i++) {
530
530
  const obj_objectInfos_item = obj_objectInfos[i];
531
531
  const path_objectInfos_item = path_objectInfos + '[' + i + ']';
532
- const referencepath_objectInfos_itemValidationError = validate$B(obj_objectInfos_item, path_objectInfos_item);
532
+ const referencepath_objectInfos_itemValidationError = validate$F(obj_objectInfos_item, path_objectInfos_item);
533
533
  if (referencepath_objectInfos_itemValidationError !== null) {
534
534
  let message = 'Object doesn\'t match ObjectInfoOutputRepresentation (at "' + path_objectInfos_item + '")\n';
535
535
  message += referencepath_objectInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -541,9 +541,9 @@ function validate$A(obj, path = 'MetadataOutputRepresentation') {
541
541
  return v_error === undefined ? null : v_error;
542
542
  }
543
543
 
544
- const TTL$9 = 6000;
545
- const VERSION$b = "61cfe23ab3d064d226af215df6681afc";
546
- function validate$z(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
544
+ const TTL$b = 6000;
545
+ const VERSION$d = "61cfe23ab3d064d226af215df6681afc";
546
+ function validate$D(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
547
547
  const v_error = (() => {
548
548
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
549
549
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -564,7 +564,7 @@ function validate$z(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
564
564
  for (let i = 0; i < obj_errors.length; i++) {
565
565
  const obj_errors_item = obj_errors[i];
566
566
  const path_errors_item = path_errors + '[' + i + ']';
567
- const referencepath_errors_itemValidationError = validate$E(obj_errors_item, path_errors_item);
567
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
568
568
  if (referencepath_errors_itemValidationError !== null) {
569
569
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
570
570
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -581,7 +581,7 @@ function validate$z(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
581
581
  for (let i = 0; i < obj_indexConfigurations.length; i++) {
582
582
  const obj_indexConfigurations_item = obj_indexConfigurations[i];
583
583
  const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
584
- const referencepath_indexConfigurations_itemValidationError = validate$D(obj_indexConfigurations_item, path_indexConfigurations_item);
584
+ const referencepath_indexConfigurations_itemValidationError = validate$H(obj_indexConfigurations_item, path_indexConfigurations_item);
585
585
  if (referencepath_indexConfigurations_itemValidationError !== null) {
586
586
  let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
587
587
  message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -592,7 +592,7 @@ function validate$z(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
592
592
  if (obj.metadata !== undefined) {
593
593
  const obj_metadata = obj.metadata;
594
594
  const path_metadata = path + '.metadata';
595
- const referencepath_metadataValidationError = validate$A(obj_metadata, path_metadata);
595
+ const referencepath_metadataValidationError = validate$E(obj_metadata, path_metadata);
596
596
  if (referencepath_metadataValidationError !== null) {
597
597
  let message = 'Object doesn\'t match MetadataOutputRepresentation (at "' + path_metadata + '")\n';
598
598
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -609,62 +609,62 @@ function validate$z(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
609
609
  })();
610
610
  return v_error === undefined ? null : v_error;
611
611
  }
612
- const RepresentationType$a = 'IndexConfigurationCollectionOutputRepresentation';
613
- function normalize$a(input, existing, path, luvio, store, timestamp) {
612
+ const RepresentationType$c = 'IndexConfigurationCollectionOutputRepresentation';
613
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
614
614
  return input;
615
615
  }
616
- const select$m = function IndexConfigurationCollectionOutputRepresentationSelect() {
616
+ const select$q = function IndexConfigurationCollectionOutputRepresentationSelect() {
617
617
  return {
618
618
  kind: 'Fragment',
619
- version: VERSION$b,
619
+ version: VERSION$d,
620
620
  private: [],
621
621
  opaque: true
622
622
  };
623
623
  };
624
- function equals$b(existing, incoming) {
624
+ function equals$d(existing, incoming) {
625
625
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
626
626
  return false;
627
627
  }
628
628
  return true;
629
629
  }
630
- const ingest$a = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
630
+ const ingest$c = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
631
631
  if (process.env.NODE_ENV !== 'production') {
632
- const validateError = validate$z(input);
632
+ const validateError = validate$D(input);
633
633
  if (validateError !== null) {
634
634
  throw validateError;
635
635
  }
636
636
  }
637
637
  const key = path.fullPath;
638
- const ttlToUse = TTL$9;
639
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
638
+ const ttlToUse = TTL$b;
639
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "epc", VERSION$d, RepresentationType$c, equals$d);
640
640
  return createLink(key);
641
641
  };
642
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
642
+ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
643
643
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
644
644
  const rootKey = fullPathFactory();
645
645
  rootKeySet.set(rootKey, {
646
646
  namespace: keyPrefix,
647
- representationName: RepresentationType$a,
647
+ representationName: RepresentationType$c,
648
648
  mergeable: false
649
649
  });
650
650
  }
651
651
 
652
- function select$l(luvio, params) {
653
- return select$m();
652
+ function select$p(luvio, params) {
653
+ return select$q();
654
654
  }
655
- function keyBuilder$h(luvio, params) {
655
+ function keyBuilder$k(luvio, params) {
656
656
  return keyPrefix + '::IndexConfigurationCollectionOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'fieldTypes:' + params.queryParams.fieldTypes + ',' + 'includeMetadata:' + params.queryParams.includeMetadata + ')';
657
657
  }
658
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
659
- getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
658
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
659
+ getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
660
660
  }
661
- function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
661
+ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
662
662
  const { body } = response;
663
- const key = keyBuilder$h(luvio, resourceParams);
664
- luvio.storeIngest(key, ingest$a, body);
663
+ const key = keyBuilder$k(luvio, resourceParams);
664
+ luvio.storeIngest(key, ingest$c, body);
665
665
  const snapshot = luvio.storeLookup({
666
666
  recordId: key,
667
- node: select$l(),
667
+ node: select$p(),
668
668
  variables: {},
669
669
  }, snapshotRefresh);
670
670
  if (process.env.NODE_ENV !== 'production') {
@@ -675,19 +675,19 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
675
675
  deepFreeze(snapshot.data);
676
676
  return snapshot;
677
677
  }
678
- function ingestError$6(luvio, params, error, snapshotRefresh) {
679
- const key = keyBuilder$h(luvio, params);
678
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
679
+ const key = keyBuilder$k(luvio, params);
680
680
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
681
681
  const storeMetadataParams = {
682
- ttl: TTL$9,
682
+ ttl: TTL$b,
683
683
  namespace: keyPrefix,
684
- version: VERSION$b,
685
- representationName: RepresentationType$a
684
+ version: VERSION$d,
685
+ representationName: RepresentationType$c
686
686
  };
687
687
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
688
688
  return errorSnapshot;
689
689
  }
690
- function createResourceRequest$a(config) {
690
+ function createResourceRequest$c(config) {
691
691
  const headers = {};
692
692
  return {
693
693
  baseUri: '/services/data/v63.0',
@@ -701,97 +701,97 @@ function createResourceRequest$a(config) {
701
701
  };
702
702
  }
703
703
 
704
- const adapterName$a = 'getIndexConfigurations';
704
+ const adapterName$c = 'getIndexConfigurations';
705
705
  const getIndexConfigurations_ConfigPropertyMetadata = [
706
706
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
707
707
  generateParamConfigMetadata('fieldTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
708
708
  generateParamConfigMetadata('includeMetadata', false, 1 /* QueryParameter */, 1 /* Boolean */),
709
709
  ];
710
- const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndexConfigurations_ConfigPropertyMetadata);
711
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(getIndexConfigurations_ConfigPropertyMetadata);
712
- function keyBuilder$g(luvio, config) {
713
- const resourceParams = createResourceParams$a(config);
714
- return keyBuilder$h(luvio, resourceParams);
710
+ const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, getIndexConfigurations_ConfigPropertyMetadata);
711
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$e(getIndexConfigurations_ConfigPropertyMetadata);
712
+ function keyBuilder$j(luvio, config) {
713
+ const resourceParams = createResourceParams$c(config);
714
+ return keyBuilder$k(luvio, resourceParams);
715
715
  }
716
- function typeCheckConfig$a(untrustedConfig) {
716
+ function typeCheckConfig$c(untrustedConfig) {
717
717
  const config = {};
718
- typeCheckConfig$c(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
718
+ typeCheckConfig$e(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
719
719
  return config;
720
720
  }
721
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
721
+ function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
722
722
  if (!untrustedIsObject(untrustedConfig)) {
723
723
  return null;
724
724
  }
725
725
  if (process.env.NODE_ENV !== 'production') {
726
726
  validateConfig(untrustedConfig, configPropertyNames);
727
727
  }
728
- const config = typeCheckConfig$a(untrustedConfig);
728
+ const config = typeCheckConfig$c(untrustedConfig);
729
729
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
730
730
  return null;
731
731
  }
732
732
  return config;
733
733
  }
734
- function adapterFragment$6(luvio, config) {
735
- createResourceParams$a(config);
736
- return select$l();
734
+ function adapterFragment$7(luvio, config) {
735
+ createResourceParams$c(config);
736
+ return select$p();
737
737
  }
738
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
739
- const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
738
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
739
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
740
740
  config,
741
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
741
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
742
742
  });
743
743
  return luvio.storeBroadcast().then(() => snapshot);
744
744
  }
745
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
746
- const snapshot = ingestError$6(luvio, resourceParams, response, {
745
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
746
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
747
747
  config,
748
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
748
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
749
749
  });
750
750
  return luvio.storeBroadcast().then(() => snapshot);
751
751
  }
752
- function buildNetworkSnapshot$a(luvio, config, options) {
753
- const resourceParams = createResourceParams$a(config);
754
- const request = createResourceRequest$a(resourceParams);
752
+ function buildNetworkSnapshot$c(luvio, config, options) {
753
+ const resourceParams = createResourceParams$c(config);
754
+ const request = createResourceRequest$c(resourceParams);
755
755
  return luvio.dispatchResourceRequest(request, options)
756
756
  .then((response) => {
757
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
757
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
758
758
  const cache = new StoreKeyMap();
759
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
759
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
760
760
  return cache;
761
761
  });
762
762
  }, (response) => {
763
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
763
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
764
764
  });
765
765
  }
766
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
767
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
766
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
767
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
768
768
  }
769
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
769
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
770
770
  const { luvio, config } = context;
771
771
  const selector = {
772
- recordId: keyBuilder$g(luvio, config),
773
- node: adapterFragment$6(luvio, config),
772
+ recordId: keyBuilder$j(luvio, config),
773
+ node: adapterFragment$7(luvio, config),
774
774
  variables: {},
775
775
  };
776
776
  const cacheSnapshot = storeLookup(selector, {
777
777
  config,
778
- resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
778
+ resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
779
779
  });
780
780
  return cacheSnapshot;
781
781
  }
782
782
  const getIndexConfigurationsAdapterFactory = (luvio) => function epc__getIndexConfigurations(untrustedConfig, requestContext) {
783
- const config = validateAdapterConfig$a(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
783
+ const config = validateAdapterConfig$c(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
784
784
  // Invalid or incomplete config
785
785
  if (config === null) {
786
786
  return null;
787
787
  }
788
788
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
789
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
789
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
790
790
  };
791
791
 
792
- const TTL$8 = 6000;
793
- const VERSION$a = "d8fe6f305d394e3ad9e8b064fd805a31";
794
- function validate$y(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
792
+ const TTL$a = 6000;
793
+ const VERSION$c = "d8fe6f305d394e3ad9e8b064fd805a31";
794
+ function validate$C(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
795
795
  const v_error = (() => {
796
796
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
797
797
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -812,7 +812,7 @@ function validate$y(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
812
812
  for (let i = 0; i < obj_errors.length; i++) {
813
813
  const obj_errors_item = obj_errors[i];
814
814
  const path_errors_item = path_errors + '[' + i + ']';
815
- const referencepath_errors_itemValidationError = validate$E(obj_errors_item, path_errors_item);
815
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
816
816
  if (referencepath_errors_itemValidationError !== null) {
817
817
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
818
818
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -829,7 +829,7 @@ function validate$y(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
829
829
  for (let i = 0; i < obj_indexConfigurations.length; i++) {
830
830
  const obj_indexConfigurations_item = obj_indexConfigurations[i];
831
831
  const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
832
- const referencepath_indexConfigurations_itemValidationError = validate$D(obj_indexConfigurations_item, path_indexConfigurations_item);
832
+ const referencepath_indexConfigurations_itemValidationError = validate$H(obj_indexConfigurations_item, path_indexConfigurations_item);
833
833
  if (referencepath_indexConfigurations_itemValidationError !== null) {
834
834
  let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
835
835
  message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -845,68 +845,68 @@ function validate$y(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
845
845
  })();
846
846
  return v_error === undefined ? null : v_error;
847
847
  }
848
- const RepresentationType$9 = 'IndexConfigurationsUpdateOutputRepresentation';
849
- function keyBuilder$f(luvio, config) {
850
- return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
848
+ const RepresentationType$b = 'IndexConfigurationsUpdateOutputRepresentation';
849
+ function keyBuilder$i(luvio, config) {
850
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
851
851
  }
852
- function keyBuilderFromType$3(luvio, object) {
852
+ function keyBuilderFromType$4(luvio, object) {
853
853
  const keyParams = {
854
854
  message: object.statusCode
855
855
  };
856
- return keyBuilder$f(luvio, keyParams);
856
+ return keyBuilder$i(luvio, keyParams);
857
857
  }
858
- function normalize$9(input, existing, path, luvio, store, timestamp) {
858
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
859
859
  return input;
860
860
  }
861
- const select$k = function IndexConfigurationsUpdateOutputRepresentationSelect() {
861
+ const select$o = function IndexConfigurationsUpdateOutputRepresentationSelect() {
862
862
  return {
863
863
  kind: 'Fragment',
864
- version: VERSION$a,
864
+ version: VERSION$c,
865
865
  private: [],
866
866
  opaque: true
867
867
  };
868
868
  };
869
- function equals$a(existing, incoming) {
869
+ function equals$c(existing, incoming) {
870
870
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
871
871
  return false;
872
872
  }
873
873
  return true;
874
874
  }
875
- const ingest$9 = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
875
+ const ingest$b = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
876
876
  if (process.env.NODE_ENV !== 'production') {
877
- const validateError = validate$y(input);
877
+ const validateError = validate$C(input);
878
878
  if (validateError !== null) {
879
879
  throw validateError;
880
880
  }
881
881
  }
882
- const key = keyBuilderFromType$3(luvio, input);
883
- const ttlToUse = TTL$8;
884
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
882
+ const key = keyBuilderFromType$4(luvio, input);
883
+ const ttlToUse = TTL$a;
884
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
885
885
  return createLink(key);
886
886
  };
887
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
887
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
888
888
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
889
- const rootKey = keyBuilderFromType$3(luvio, input);
889
+ const rootKey = keyBuilderFromType$4(luvio, input);
890
890
  rootKeySet.set(rootKey, {
891
891
  namespace: keyPrefix,
892
- representationName: RepresentationType$9,
892
+ representationName: RepresentationType$b,
893
893
  mergeable: false
894
894
  });
895
895
  }
896
896
 
897
- function select$j(luvio, params) {
898
- return select$k();
897
+ function select$n(luvio, params) {
898
+ return select$o();
899
899
  }
900
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
901
- getTypeCacheKeys$9(storeKeyMap, luvio, response);
900
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
901
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
902
902
  }
903
- function ingestSuccess$9(luvio, resourceParams, response) {
903
+ function ingestSuccess$b(luvio, resourceParams, response) {
904
904
  const { body } = response;
905
- const key = keyBuilderFromType$3(luvio, body);
906
- luvio.storeIngest(key, ingest$9, body);
905
+ const key = keyBuilderFromType$4(luvio, body);
906
+ luvio.storeIngest(key, ingest$b, body);
907
907
  const snapshot = luvio.storeLookup({
908
908
  recordId: key,
909
- node: select$j(),
909
+ node: select$n(),
910
910
  variables: {},
911
911
  });
912
912
  if (process.env.NODE_ENV !== 'production') {
@@ -917,7 +917,7 @@ function ingestSuccess$9(luvio, resourceParams, response) {
917
917
  deepFreeze(snapshot.data);
918
918
  return snapshot;
919
919
  }
920
- function createResourceRequest$9(config) {
920
+ function createResourceRequest$b(config) {
921
921
  const headers = {};
922
922
  return {
923
923
  baseUri: '/services/data/v63.0',
@@ -931,16 +931,16 @@ function createResourceRequest$9(config) {
931
931
  };
932
932
  }
933
933
 
934
- const adapterName$9 = 'updateIndexConfigurations';
934
+ const adapterName$b = 'updateIndexConfigurations';
935
935
  const updateIndexConfigurations_ConfigPropertyMetadata = [
936
936
  generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
937
937
  generateParamConfigMetadata('indexConfigurations', false, 2 /* Body */, 4 /* Unsupported */, true),
938
938
  ];
939
- const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateIndexConfigurations_ConfigPropertyMetadata);
940
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(updateIndexConfigurations_ConfigPropertyMetadata);
941
- function typeCheckConfig$9(untrustedConfig) {
939
+ const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, updateIndexConfigurations_ConfigPropertyMetadata);
940
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$e(updateIndexConfigurations_ConfigPropertyMetadata);
941
+ function typeCheckConfig$b(untrustedConfig) {
942
942
  const config = {};
943
- typeCheckConfig$c(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
943
+ typeCheckConfig$e(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
944
944
  const untrustedConfig_indexConfigurations = untrustedConfig.indexConfigurations;
945
945
  if (ArrayIsArray$1(untrustedConfig_indexConfigurations)) {
946
946
  const untrustedConfig_indexConfigurations_array = [];
@@ -952,30 +952,30 @@ function typeCheckConfig$9(untrustedConfig) {
952
952
  }
953
953
  return config;
954
954
  }
955
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
955
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
956
956
  if (!untrustedIsObject(untrustedConfig)) {
957
957
  return null;
958
958
  }
959
959
  if (process.env.NODE_ENV !== 'production') {
960
960
  validateConfig(untrustedConfig, configPropertyNames);
961
961
  }
962
- const config = typeCheckConfig$9(untrustedConfig);
962
+ const config = typeCheckConfig$b(untrustedConfig);
963
963
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
964
964
  return null;
965
965
  }
966
966
  return config;
967
967
  }
968
- function buildNetworkSnapshot$9(luvio, config, options) {
969
- const resourceParams = createResourceParams$9(config);
970
- const request = createResourceRequest$9(resourceParams);
968
+ function buildNetworkSnapshot$b(luvio, config, options) {
969
+ const resourceParams = createResourceParams$b(config);
970
+ const request = createResourceRequest$b(resourceParams);
971
971
  return luvio.dispatchResourceRequest(request, options)
972
972
  .then((response) => {
973
973
  return luvio.handleSuccessResponse(() => {
974
- const snapshot = ingestSuccess$9(luvio, resourceParams, response);
974
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
975
975
  return luvio.storeBroadcast().then(() => snapshot);
976
976
  }, () => {
977
977
  const cache = new StoreKeyMap();
978
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
978
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
979
979
  return cache;
980
980
  });
981
981
  }, (response) => {
@@ -985,16 +985,16 @@ function buildNetworkSnapshot$9(luvio, config, options) {
985
985
  }
986
986
  const updateIndexConfigurationsAdapterFactory = (luvio) => {
987
987
  return function updateIndexConfigurations(untrustedConfig) {
988
- const config = validateAdapterConfig$9(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
988
+ const config = validateAdapterConfig$b(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
989
989
  // Invalid or incomplete config
990
990
  if (config === null) {
991
991
  throw new Error('Invalid config for "updateIndexConfigurations"');
992
992
  }
993
- return buildNetworkSnapshot$9(luvio, config);
993
+ return buildNetworkSnapshot$b(luvio, config);
994
994
  };
995
995
  };
996
996
 
997
- function validate$x(obj, path = 'SnapshotIndexOutputRepresentation') {
997
+ function validate$B(obj, path = 'SnapshotIndexOutputRepresentation') {
998
998
  const v_error = (() => {
999
999
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1000
1000
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1052,7 +1052,7 @@ function validate$x(obj, path = 'SnapshotIndexOutputRepresentation') {
1052
1052
  return v_error === undefined ? null : v_error;
1053
1053
  }
1054
1054
 
1055
- function validate$w(obj, path = 'SnapshotOutputRepresentation') {
1055
+ function validate$A(obj, path = 'SnapshotOutputRepresentation') {
1056
1056
  const v_error = (() => {
1057
1057
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1058
1058
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1094,7 +1094,7 @@ function validate$w(obj, path = 'SnapshotOutputRepresentation') {
1094
1094
  for (let i = 0; i < obj_snapshotIndexes.length; i++) {
1095
1095
  const obj_snapshotIndexes_item = obj_snapshotIndexes[i];
1096
1096
  const path_snapshotIndexes_item = path_snapshotIndexes + '[' + i + ']';
1097
- const referencepath_snapshotIndexes_itemValidationError = validate$x(obj_snapshotIndexes_item, path_snapshotIndexes_item);
1097
+ const referencepath_snapshotIndexes_itemValidationError = validate$B(obj_snapshotIndexes_item, path_snapshotIndexes_item);
1098
1098
  if (referencepath_snapshotIndexes_itemValidationError !== null) {
1099
1099
  let message = 'Object doesn\'t match SnapshotIndexOutputRepresentation (at "' + path_snapshotIndexes_item + '")\n';
1100
1100
  message += referencepath_snapshotIndexes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1106,9 +1106,9 @@ function validate$w(obj, path = 'SnapshotOutputRepresentation') {
1106
1106
  return v_error === undefined ? null : v_error;
1107
1107
  }
1108
1108
 
1109
- const TTL$7 = 6000;
1110
- const VERSION$9 = "a482669465add5966119b942982ae104";
1111
- function validate$v(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1109
+ const TTL$9 = 6000;
1110
+ const VERSION$b = "a482669465add5966119b942982ae104";
1111
+ function validate$z(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1112
1112
  const v_error = (() => {
1113
1113
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1114
1114
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1122,7 +1122,7 @@ function validate$v(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1122
1122
  for (let i = 0; i < obj_errors.length; i++) {
1123
1123
  const obj_errors_item = obj_errors[i];
1124
1124
  const path_errors_item = path_errors + '[' + i + ']';
1125
- const referencepath_errors_itemValidationError = validate$E(obj_errors_item, path_errors_item);
1125
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
1126
1126
  if (referencepath_errors_itemValidationError !== null) {
1127
1127
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1128
1128
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,7 +1133,7 @@ function validate$v(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1133
1133
  if (obj.snapshot !== undefined) {
1134
1134
  const obj_snapshot = obj.snapshot;
1135
1135
  const path_snapshot = path + '.snapshot';
1136
- const referencepath_snapshotValidationError = validate$w(obj_snapshot, path_snapshot);
1136
+ const referencepath_snapshotValidationError = validate$A(obj_snapshot, path_snapshot);
1137
1137
  if (referencepath_snapshotValidationError !== null) {
1138
1138
  let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshot + '")\n';
1139
1139
  message += referencepath_snapshotValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1148,20 +1148,468 @@ function validate$v(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1148
1148
  })();
1149
1149
  return v_error === undefined ? null : v_error;
1150
1150
  }
1151
- const RepresentationType$8 = 'SnapshotDeploymentOutputRepresentation';
1151
+ const RepresentationType$a = 'SnapshotDeploymentOutputRepresentation';
1152
+ function keyBuilder$h(luvio, config) {
1153
+ return keyPrefix + '::' + RepresentationType$a + ':' + config.message;
1154
+ }
1155
+ function keyBuilderFromType$3(luvio, object) {
1156
+ const keyParams = {
1157
+ message: object.statusCode
1158
+ };
1159
+ return keyBuilder$h(luvio, keyParams);
1160
+ }
1161
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
1162
+ return input;
1163
+ }
1164
+ const select$m = function SnapshotDeploymentOutputRepresentationSelect() {
1165
+ return {
1166
+ kind: 'Fragment',
1167
+ version: VERSION$b,
1168
+ private: [],
1169
+ opaque: true
1170
+ };
1171
+ };
1172
+ function equals$b(existing, incoming) {
1173
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1174
+ return false;
1175
+ }
1176
+ return true;
1177
+ }
1178
+ const ingest$a = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1179
+ if (process.env.NODE_ENV !== 'production') {
1180
+ const validateError = validate$z(input);
1181
+ if (validateError !== null) {
1182
+ throw validateError;
1183
+ }
1184
+ }
1185
+ const key = keyBuilderFromType$3(luvio, input);
1186
+ const ttlToUse = TTL$9;
1187
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
1188
+ return createLink(key);
1189
+ };
1190
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1191
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1192
+ const rootKey = keyBuilderFromType$3(luvio, input);
1193
+ rootKeySet.set(rootKey, {
1194
+ namespace: keyPrefix,
1195
+ representationName: RepresentationType$a,
1196
+ mergeable: false
1197
+ });
1198
+ }
1199
+
1200
+ function select$l(luvio, params) {
1201
+ return select$m();
1202
+ }
1203
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1204
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
1205
+ }
1206
+ function ingestSuccess$a(luvio, resourceParams, response) {
1207
+ const { body } = response;
1208
+ const key = keyBuilderFromType$3(luvio, body);
1209
+ luvio.storeIngest(key, ingest$a, body);
1210
+ const snapshot = luvio.storeLookup({
1211
+ recordId: key,
1212
+ node: select$l(),
1213
+ variables: {},
1214
+ });
1215
+ if (process.env.NODE_ENV !== 'production') {
1216
+ if (snapshot.state !== 'Fulfilled') {
1217
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1218
+ }
1219
+ }
1220
+ deepFreeze(snapshot.data);
1221
+ return snapshot;
1222
+ }
1223
+ function createResourceRequest$a(config) {
1224
+ const headers = {};
1225
+ return {
1226
+ baseUri: '/services/data/v63.0',
1227
+ basePath: '/connect/pcm/index/deploy',
1228
+ method: 'post',
1229
+ body: config.body,
1230
+ urlParams: {},
1231
+ queryParams: {},
1232
+ headers,
1233
+ priority: 'normal',
1234
+ };
1235
+ }
1236
+
1237
+ const adapterName$a = 'deploySnapshotIndex';
1238
+ const deploySnapshotIndex_ConfigPropertyMetadata = [
1239
+ generateParamConfigMetadata('buildType', false, 2 /* Body */, 0 /* String */),
1240
+ generateParamConfigMetadata('snapshot', false, 2 /* Body */, 4 /* Unsupported */),
1241
+ ];
1242
+ const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deploySnapshotIndex_ConfigPropertyMetadata);
1243
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$e(deploySnapshotIndex_ConfigPropertyMetadata);
1244
+ function typeCheckConfig$a(untrustedConfig) {
1245
+ const config = {};
1246
+ typeCheckConfig$e(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1247
+ const untrustedConfig_snapshot = untrustedConfig.snapshot;
1248
+ config.snapshot = untrustedConfig_snapshot;
1249
+ return config;
1250
+ }
1251
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1252
+ if (!untrustedIsObject(untrustedConfig)) {
1253
+ return null;
1254
+ }
1255
+ if (process.env.NODE_ENV !== 'production') {
1256
+ validateConfig(untrustedConfig, configPropertyNames);
1257
+ }
1258
+ const config = typeCheckConfig$a(untrustedConfig);
1259
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1260
+ return null;
1261
+ }
1262
+ return config;
1263
+ }
1264
+ function buildNetworkSnapshot$a(luvio, config, options) {
1265
+ const resourceParams = createResourceParams$a(config);
1266
+ const request = createResourceRequest$a(resourceParams);
1267
+ return luvio.dispatchResourceRequest(request, options)
1268
+ .then((response) => {
1269
+ return luvio.handleSuccessResponse(() => {
1270
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1271
+ return luvio.storeBroadcast().then(() => snapshot);
1272
+ }, () => {
1273
+ const cache = new StoreKeyMap();
1274
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1275
+ return cache;
1276
+ });
1277
+ }, (response) => {
1278
+ deepFreeze(response);
1279
+ throw response;
1280
+ });
1281
+ }
1282
+ const deploySnapshotIndexAdapterFactory = (luvio) => {
1283
+ return function deploySnapshotIndex(untrustedConfig) {
1284
+ const config = validateAdapterConfig$a(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1285
+ // Invalid or incomplete config
1286
+ if (config === null) {
1287
+ throw new Error('Invalid config for "deploySnapshotIndex"');
1288
+ }
1289
+ return buildNetworkSnapshot$a(luvio, config);
1290
+ };
1291
+ };
1292
+
1293
+ function validate$y(obj, path = 'SettingOutputRepresentation') {
1294
+ const v_error = (() => {
1295
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1296
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1297
+ }
1298
+ const obj_id = obj.id;
1299
+ const path_id = path + '.id';
1300
+ if (typeof obj_id !== 'string') {
1301
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1302
+ }
1303
+ if (obj.supportedLanguages !== undefined) {
1304
+ const obj_supportedLanguages = obj.supportedLanguages;
1305
+ const path_supportedLanguages = path + '.supportedLanguages';
1306
+ if (!ArrayIsArray(obj_supportedLanguages)) {
1307
+ return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
1308
+ }
1309
+ for (let i = 0; i < obj_supportedLanguages.length; i++) {
1310
+ const obj_supportedLanguages_item = obj_supportedLanguages[i];
1311
+ const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
1312
+ if (typeof obj_supportedLanguages_item !== 'string') {
1313
+ return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
1314
+ }
1315
+ }
1316
+ }
1317
+ })();
1318
+ return v_error === undefined ? null : v_error;
1319
+ }
1320
+
1321
+ const TTL$8 = 6000;
1322
+ const VERSION$a = "02d404761e9bd8ad6ae6a628f69afb38";
1323
+ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1324
+ const v_error = (() => {
1325
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1326
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1327
+ }
1328
+ if (obj.errors !== undefined) {
1329
+ const obj_errors = obj.errors;
1330
+ const path_errors = path + '.errors';
1331
+ if (!ArrayIsArray(obj_errors)) {
1332
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
1333
+ }
1334
+ for (let i = 0; i < obj_errors.length; i++) {
1335
+ const obj_errors_item = obj_errors[i];
1336
+ const path_errors_item = path_errors + '[' + i + ']';
1337
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
1338
+ if (referencepath_errors_itemValidationError !== null) {
1339
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1340
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1341
+ return new TypeError(message);
1342
+ }
1343
+ }
1344
+ }
1345
+ const obj_setting = obj.setting;
1346
+ const path_setting = path + '.setting';
1347
+ const referencepath_settingValidationError = validate$y(obj_setting, path_setting);
1348
+ if (referencepath_settingValidationError !== null) {
1349
+ let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
1350
+ message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1351
+ return new TypeError(message);
1352
+ }
1353
+ const obj_statusCode = obj.statusCode;
1354
+ const path_statusCode = path + '.statusCode';
1355
+ if (typeof obj_statusCode !== 'string') {
1356
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
1357
+ }
1358
+ })();
1359
+ return v_error === undefined ? null : v_error;
1360
+ }
1361
+ const RepresentationType$9 = 'IndexSettingOutputRepresentation';
1362
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1363
+ return input;
1364
+ }
1365
+ const select$k = function IndexSettingOutputRepresentationSelect() {
1366
+ return {
1367
+ kind: 'Fragment',
1368
+ version: VERSION$a,
1369
+ private: [],
1370
+ opaque: true
1371
+ };
1372
+ };
1373
+ function equals$a(existing, incoming) {
1374
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1375
+ return false;
1376
+ }
1377
+ return true;
1378
+ }
1379
+ const ingest$9 = function IndexSettingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1380
+ if (process.env.NODE_ENV !== 'production') {
1381
+ const validateError = validate$x(input);
1382
+ if (validateError !== null) {
1383
+ throw validateError;
1384
+ }
1385
+ }
1386
+ const key = path.fullPath;
1387
+ const ttlToUse = TTL$8;
1388
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
1389
+ return createLink(key);
1390
+ };
1391
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1392
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1393
+ const rootKey = fullPathFactory();
1394
+ rootKeySet.set(rootKey, {
1395
+ namespace: keyPrefix,
1396
+ representationName: RepresentationType$9,
1397
+ mergeable: false
1398
+ });
1399
+ }
1400
+
1401
+ function select$j(luvio, params) {
1402
+ return select$k();
1403
+ }
1404
+ function keyBuilder$g(luvio, params) {
1405
+ return keyPrefix + '::IndexSettingOutputRepresentation:(' + ')';
1406
+ }
1407
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1408
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g());
1409
+ }
1410
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1411
+ const { body } = response;
1412
+ const key = keyBuilder$g();
1413
+ luvio.storeIngest(key, ingest$9, body);
1414
+ const snapshot = luvio.storeLookup({
1415
+ recordId: key,
1416
+ node: select$j(),
1417
+ variables: {},
1418
+ }, snapshotRefresh);
1419
+ if (process.env.NODE_ENV !== 'production') {
1420
+ if (snapshot.state !== 'Fulfilled') {
1421
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1422
+ }
1423
+ }
1424
+ deepFreeze(snapshot.data);
1425
+ return snapshot;
1426
+ }
1427
+ function ingestError$6(luvio, params, error, snapshotRefresh) {
1428
+ const key = keyBuilder$g();
1429
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1430
+ const storeMetadataParams = {
1431
+ ttl: TTL$8,
1432
+ namespace: keyPrefix,
1433
+ version: VERSION$a,
1434
+ representationName: RepresentationType$9
1435
+ };
1436
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1437
+ return errorSnapshot;
1438
+ }
1439
+ function createResourceRequest$9(config) {
1440
+ const headers = {};
1441
+ return {
1442
+ baseUri: '/services/data/v63.0',
1443
+ basePath: '/connect/pcm/index/setting',
1444
+ method: 'get',
1445
+ body: null,
1446
+ urlParams: {},
1447
+ queryParams: {},
1448
+ headers,
1449
+ priority: 'normal',
1450
+ };
1451
+ }
1452
+
1453
+ const adapterName$9 = 'getIndexSetting';
1454
+ const getIndexSetting_ConfigPropertyMetadata = [];
1455
+ const getIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getIndexSetting_ConfigPropertyMetadata);
1456
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$e(getIndexSetting_ConfigPropertyMetadata);
1457
+ function keyBuilder$f(luvio, config) {
1458
+ createResourceParams$9(config);
1459
+ return keyBuilder$g();
1460
+ }
1461
+ function typeCheckConfig$9(untrustedConfig) {
1462
+ const config = {};
1463
+ return config;
1464
+ }
1465
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1466
+ if (!untrustedIsObject(untrustedConfig)) {
1467
+ return null;
1468
+ }
1469
+ if (process.env.NODE_ENV !== 'production') {
1470
+ validateConfig(untrustedConfig, configPropertyNames);
1471
+ }
1472
+ const config = typeCheckConfig$9();
1473
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1474
+ return null;
1475
+ }
1476
+ return config;
1477
+ }
1478
+ function adapterFragment$6(luvio, config) {
1479
+ createResourceParams$9(config);
1480
+ return select$j();
1481
+ }
1482
+ function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1483
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1484
+ config,
1485
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1486
+ });
1487
+ return luvio.storeBroadcast().then(() => snapshot);
1488
+ }
1489
+ function onFetchResponseError$6(luvio, config, resourceParams, response) {
1490
+ const snapshot = ingestError$6(luvio, resourceParams, response, {
1491
+ config,
1492
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1493
+ });
1494
+ return luvio.storeBroadcast().then(() => snapshot);
1495
+ }
1496
+ function buildNetworkSnapshot$9(luvio, config, options) {
1497
+ const resourceParams = createResourceParams$9(config);
1498
+ const request = createResourceRequest$9();
1499
+ return luvio.dispatchResourceRequest(request, options)
1500
+ .then((response) => {
1501
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1502
+ const cache = new StoreKeyMap();
1503
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1504
+ return cache;
1505
+ });
1506
+ }, (response) => {
1507
+ return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1508
+ });
1509
+ }
1510
+ function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1511
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1512
+ }
1513
+ function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1514
+ const { luvio, config } = context;
1515
+ const selector = {
1516
+ recordId: keyBuilder$f(luvio, config),
1517
+ node: adapterFragment$6(luvio, config),
1518
+ variables: {},
1519
+ };
1520
+ const cacheSnapshot = storeLookup(selector, {
1521
+ config,
1522
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1523
+ });
1524
+ return cacheSnapshot;
1525
+ }
1526
+ const getIndexSettingAdapterFactory = (luvio) => function epc__getIndexSetting(untrustedConfig, requestContext) {
1527
+ const config = validateAdapterConfig$9(untrustedConfig, getIndexSetting_ConfigPropertyNames);
1528
+ // Invalid or incomplete config
1529
+ if (config === null) {
1530
+ return null;
1531
+ }
1532
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1533
+ buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1534
+ };
1535
+
1536
+ function validate$w(obj, path = 'SettingInputRepresentation') {
1537
+ const v_error = (() => {
1538
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1539
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1540
+ }
1541
+ if (obj.supportedLanguages !== undefined) {
1542
+ const obj_supportedLanguages = obj.supportedLanguages;
1543
+ const path_supportedLanguages = path + '.supportedLanguages';
1544
+ if (!ArrayIsArray(obj_supportedLanguages)) {
1545
+ return new TypeError('Expected "array" but received "' + typeof obj_supportedLanguages + '" (at "' + path_supportedLanguages + '")');
1546
+ }
1547
+ for (let i = 0; i < obj_supportedLanguages.length; i++) {
1548
+ const obj_supportedLanguages_item = obj_supportedLanguages[i];
1549
+ const path_supportedLanguages_item = path_supportedLanguages + '[' + i + ']';
1550
+ if (typeof obj_supportedLanguages_item !== 'string') {
1551
+ return new TypeError('Expected "string" but received "' + typeof obj_supportedLanguages_item + '" (at "' + path_supportedLanguages_item + '")');
1552
+ }
1553
+ }
1554
+ }
1555
+ })();
1556
+ return v_error === undefined ? null : v_error;
1557
+ }
1558
+
1559
+ const TTL$7 = 6000;
1560
+ const VERSION$9 = "67c20ef2306f437cc5f7d88184b2ea29";
1561
+ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
1562
+ const v_error = (() => {
1563
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1564
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1565
+ }
1566
+ if (obj.errors !== undefined) {
1567
+ const obj_errors = obj.errors;
1568
+ const path_errors = path + '.errors';
1569
+ if (!ArrayIsArray(obj_errors)) {
1570
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
1571
+ }
1572
+ for (let i = 0; i < obj_errors.length; i++) {
1573
+ const obj_errors_item = obj_errors[i];
1574
+ const path_errors_item = path_errors + '[' + i + ']';
1575
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
1576
+ if (referencepath_errors_itemValidationError !== null) {
1577
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1578
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1579
+ return new TypeError(message);
1580
+ }
1581
+ }
1582
+ }
1583
+ const obj_setting = obj.setting;
1584
+ const path_setting = path + '.setting';
1585
+ const referencepath_settingValidationError = validate$y(obj_setting, path_setting);
1586
+ if (referencepath_settingValidationError !== null) {
1587
+ let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
1588
+ message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1589
+ return new TypeError(message);
1590
+ }
1591
+ const obj_statusCode = obj.statusCode;
1592
+ const path_statusCode = path + '.statusCode';
1593
+ if (typeof obj_statusCode !== 'string') {
1594
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
1595
+ }
1596
+ })();
1597
+ return v_error === undefined ? null : v_error;
1598
+ }
1599
+ const RepresentationType$8 = 'IndexSettingPatchOutputRepresentation';
1152
1600
  function keyBuilder$e(luvio, config) {
1153
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
1601
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1154
1602
  }
1155
1603
  function keyBuilderFromType$2(luvio, object) {
1156
1604
  const keyParams = {
1157
- message: object.statusCode
1605
+ id: object.setting.id
1158
1606
  };
1159
1607
  return keyBuilder$e(luvio, keyParams);
1160
1608
  }
1161
1609
  function normalize$8(input, existing, path, luvio, store, timestamp) {
1162
1610
  return input;
1163
1611
  }
1164
- const select$i = function SnapshotDeploymentOutputRepresentationSelect() {
1612
+ const select$i = function IndexSettingPatchOutputRepresentationSelect() {
1165
1613
  return {
1166
1614
  kind: 'Fragment',
1167
1615
  version: VERSION$9,
@@ -1175,7 +1623,7 @@ function equals$9(existing, incoming) {
1175
1623
  }
1176
1624
  return true;
1177
1625
  }
1178
- const ingest$8 = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1626
+ const ingest$8 = function IndexSettingPatchOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1179
1627
  if (process.env.NODE_ENV !== 'production') {
1180
1628
  const validateError = validate$v(input);
1181
1629
  if (validateError !== null) {
@@ -1224,28 +1672,31 @@ function createResourceRequest$8(config) {
1224
1672
  const headers = {};
1225
1673
  return {
1226
1674
  baseUri: '/services/data/v63.0',
1227
- basePath: '/connect/pcm/index/deploy',
1228
- method: 'post',
1675
+ basePath: '/connect/pcm/index/setting/' + config.urlParams.settingId + '',
1676
+ method: 'patch',
1229
1677
  body: config.body,
1230
- urlParams: {},
1678
+ urlParams: config.urlParams,
1231
1679
  queryParams: {},
1232
1680
  headers,
1233
1681
  priority: 'normal',
1234
1682
  };
1235
1683
  }
1236
1684
 
1237
- const adapterName$8 = 'deploySnapshotIndex';
1238
- const deploySnapshotIndex_ConfigPropertyMetadata = [
1239
- generateParamConfigMetadata('buildType', false, 2 /* Body */, 0 /* String */),
1240
- generateParamConfigMetadata('snapshot', false, 2 /* Body */, 4 /* Unsupported */),
1685
+ const adapterName$8 = 'patchIndexSetting';
1686
+ const patchIndexSetting_ConfigPropertyMetadata = [
1687
+ generateParamConfigMetadata('settingId', true, 0 /* UrlParameter */, 0 /* String */),
1688
+ generateParamConfigMetadata('setting', false, 2 /* Body */, 4 /* Unsupported */),
1241
1689
  ];
1242
- const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deploySnapshotIndex_ConfigPropertyMetadata);
1243
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(deploySnapshotIndex_ConfigPropertyMetadata);
1690
+ const patchIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchIndexSetting_ConfigPropertyMetadata);
1691
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$e(patchIndexSetting_ConfigPropertyMetadata);
1244
1692
  function typeCheckConfig$8(untrustedConfig) {
1245
1693
  const config = {};
1246
- typeCheckConfig$c(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1247
- const untrustedConfig_snapshot = untrustedConfig.snapshot;
1248
- config.snapshot = untrustedConfig_snapshot;
1694
+ typeCheckConfig$e(untrustedConfig, config, patchIndexSetting_ConfigPropertyMetadata);
1695
+ const untrustedConfig_setting = untrustedConfig.setting;
1696
+ const referenceSettingInputRepresentationValidationError = validate$w(untrustedConfig_setting);
1697
+ if (referenceSettingInputRepresentationValidationError === null) {
1698
+ config.setting = untrustedConfig_setting;
1699
+ }
1249
1700
  return config;
1250
1701
  }
1251
1702
  function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
@@ -1279,12 +1730,12 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1279
1730
  throw response;
1280
1731
  });
1281
1732
  }
1282
- const deploySnapshotIndexAdapterFactory = (luvio) => {
1283
- return function deploySnapshotIndex(untrustedConfig) {
1284
- const config = validateAdapterConfig$8(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1733
+ const patchIndexSettingAdapterFactory = (luvio) => {
1734
+ return function patchIndexSetting(untrustedConfig) {
1735
+ const config = validateAdapterConfig$8(untrustedConfig, patchIndexSetting_ConfigPropertyNames);
1285
1736
  // Invalid or incomplete config
1286
1737
  if (config === null) {
1287
- throw new Error('Invalid config for "deploySnapshotIndex"');
1738
+ throw new Error('Invalid config for "patchIndexSetting"');
1288
1739
  }
1289
1740
  return buildNetworkSnapshot$8(luvio, config);
1290
1741
  };
@@ -1306,7 +1757,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1306
1757
  for (let i = 0; i < obj_errors.length; i++) {
1307
1758
  const obj_errors_item = obj_errors[i];
1308
1759
  const path_errors_item = path_errors + '[' + i + ']';
1309
- const referencepath_errors_itemValidationError = validate$E(obj_errors_item, path_errors_item);
1760
+ const referencepath_errors_itemValidationError = validate$I(obj_errors_item, path_errors_item);
1310
1761
  if (referencepath_errors_itemValidationError !== null) {
1311
1762
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1312
1763
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1323,7 +1774,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1323
1774
  for (let i = 0; i < obj_snapshots.length; i++) {
1324
1775
  const obj_snapshots_item = obj_snapshots[i];
1325
1776
  const path_snapshots_item = path_snapshots + '[' + i + ']';
1326
- const referencepath_snapshots_itemValidationError = validate$w(obj_snapshots_item, path_snapshots_item);
1777
+ const referencepath_snapshots_itemValidationError = validate$A(obj_snapshots_item, path_snapshots_item);
1327
1778
  if (referencepath_snapshots_itemValidationError !== null) {
1328
1779
  let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshots_item + '")\n';
1329
1780
  message += referencepath_snapshots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1385,14 +1836,14 @@ function select$f(luvio, params) {
1385
1836
  return select$g();
1386
1837
  }
1387
1838
  function keyBuilder$d(luvio, params) {
1388
- return keyPrefix + '::SnapshotCollectionOutputRepresentation:(' + ')';
1839
+ return keyPrefix + '::SnapshotCollectionOutputRepresentation:(' + 'numberOfIndexLogs:' + params.queryParams.numberOfIndexLogs + ')';
1389
1840
  }
1390
1841
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1391
- getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$d());
1842
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
1392
1843
  }
1393
1844
  function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1394
1845
  const { body } = response;
1395
- const key = keyBuilder$d();
1846
+ const key = keyBuilder$d(luvio, resourceParams);
1396
1847
  luvio.storeIngest(key, ingest$7, body);
1397
1848
  const snapshot = luvio.storeLookup({
1398
1849
  recordId: key,
@@ -1408,7 +1859,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1408
1859
  return snapshot;
1409
1860
  }
1410
1861
  function ingestError$5(luvio, params, error, snapshotRefresh) {
1411
- const key = keyBuilder$d();
1862
+ const key = keyBuilder$d(luvio, params);
1412
1863
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1413
1864
  const storeMetadataParams = {
1414
1865
  ttl: TTL$6,
@@ -1427,22 +1878,25 @@ function createResourceRequest$7(config) {
1427
1878
  method: 'get',
1428
1879
  body: null,
1429
1880
  urlParams: {},
1430
- queryParams: {},
1881
+ queryParams: config.queryParams,
1431
1882
  headers,
1432
1883
  priority: 'normal',
1433
1884
  };
1434
1885
  }
1435
1886
 
1436
1887
  const adapterName$7 = 'getSnapshots';
1437
- const getSnapshots_ConfigPropertyMetadata = [];
1888
+ const getSnapshots_ConfigPropertyMetadata = [
1889
+ generateParamConfigMetadata('numberOfIndexLogs', false, 1 /* QueryParameter */, 3 /* Integer */),
1890
+ ];
1438
1891
  const getSnapshots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSnapshots_ConfigPropertyMetadata);
1439
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSnapshots_ConfigPropertyMetadata);
1892
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$e(getSnapshots_ConfigPropertyMetadata);
1440
1893
  function keyBuilder$c(luvio, config) {
1441
- createResourceParams$7(config);
1442
- return keyBuilder$d();
1894
+ const resourceParams = createResourceParams$7(config);
1895
+ return keyBuilder$d(luvio, resourceParams);
1443
1896
  }
1444
1897
  function typeCheckConfig$7(untrustedConfig) {
1445
1898
  const config = {};
1899
+ typeCheckConfig$e(untrustedConfig, config, getSnapshots_ConfigPropertyMetadata);
1446
1900
  return config;
1447
1901
  }
1448
1902
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -1452,7 +1906,7 @@ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1452
1906
  if (process.env.NODE_ENV !== 'production') {
1453
1907
  validateConfig(untrustedConfig, configPropertyNames);
1454
1908
  }
1455
- const config = typeCheckConfig$7();
1909
+ const config = typeCheckConfig$7(untrustedConfig);
1456
1910
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1457
1911
  return null;
1458
1912
  }
@@ -1478,7 +1932,7 @@ function onFetchResponseError$5(luvio, config, resourceParams, response) {
1478
1932
  }
1479
1933
  function buildNetworkSnapshot$7(luvio, config, options) {
1480
1934
  const resourceParams = createResourceParams$7(config);
1481
- const request = createResourceRequest$7();
1935
+ const request = createResourceRequest$7(resourceParams);
1482
1936
  return luvio.dispatchResourceRequest(request, options)
1483
1937
  .then((response) => {
1484
1938
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
@@ -1491,7 +1945,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1491
1945
  });
1492
1946
  }
1493
1947
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1494
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1948
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1495
1949
  }
1496
1950
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1497
1951
  const { luvio, config } = context;
@@ -1681,7 +2135,7 @@ const createProductAttributeDefinition_ConfigPropertyMetadata = [
1681
2135
  generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
1682
2136
  ];
1683
2137
  const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createProductAttributeDefinition_ConfigPropertyMetadata);
1684
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(createProductAttributeDefinition_ConfigPropertyMetadata);
2138
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$e(createProductAttributeDefinition_ConfigPropertyMetadata);
1685
2139
  function typeCheckConfig$6(untrustedConfig) {
1686
2140
  const config = {};
1687
2141
  const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
@@ -1956,14 +2410,14 @@ const getProductFlowByProductId_ConfigPropertyMetadata = [
1956
2410
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
1957
2411
  ];
1958
2412
  const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getProductFlowByProductId_ConfigPropertyMetadata);
1959
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getProductFlowByProductId_ConfigPropertyMetadata);
2413
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$e(getProductFlowByProductId_ConfigPropertyMetadata);
1960
2414
  function keyBuilder$9(luvio, config) {
1961
2415
  const resourceParams = createResourceParams$5(config);
1962
2416
  return keyBuilder$a(luvio, resourceParams);
1963
2417
  }
1964
2418
  function typeCheckConfig$5(untrustedConfig) {
1965
2419
  const config = {};
1966
- typeCheckConfig$c(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
2420
+ typeCheckConfig$e(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
1967
2421
  return config;
1968
2422
  }
1969
2423
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -2012,7 +2466,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2012
2466
  });
2013
2467
  }
2014
2468
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2015
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2469
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2016
2470
  }
2017
2471
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2018
2472
  const { luvio, config } = context;
@@ -2890,14 +3344,14 @@ const getProductAttributesByProductId_ConfigPropertyMetadata = [
2890
3344
  generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
2891
3345
  ];
2892
3346
  const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getProductAttributesByProductId_ConfigPropertyMetadata);
2893
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getProductAttributesByProductId_ConfigPropertyMetadata);
3347
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$e(getProductAttributesByProductId_ConfigPropertyMetadata);
2894
3348
  function keyBuilder$7(luvio, config) {
2895
3349
  const resourceParams = createResourceParams$4(config);
2896
3350
  return keyBuilder$8(luvio, resourceParams);
2897
3351
  }
2898
3352
  function typeCheckConfig$4(untrustedConfig) {
2899
3353
  const config = {};
2900
- typeCheckConfig$c(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
3354
+ typeCheckConfig$e(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
2901
3355
  return config;
2902
3356
  }
2903
3357
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -2946,7 +3400,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
2946
3400
  });
2947
3401
  }
2948
3402
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2949
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
3403
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2950
3404
  }
2951
3405
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2952
3406
  const { luvio, config } = context;
@@ -3213,14 +3667,14 @@ const getProductById_ConfigPropertyMetadata = [
3213
3667
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3214
3668
  ];
3215
3669
  const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getProductById_ConfigPropertyMetadata);
3216
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getProductById_ConfigPropertyMetadata);
3670
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$e(getProductById_ConfigPropertyMetadata);
3217
3671
  function keyBuilder$5(luvio, config) {
3218
3672
  const resourceParams = createResourceParams$3(config);
3219
3673
  return keyBuilder$6(luvio, resourceParams);
3220
3674
  }
3221
3675
  function typeCheckConfig$3(untrustedConfig) {
3222
3676
  const config = {};
3223
- typeCheckConfig$c(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
3677
+ typeCheckConfig$e(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
3224
3678
  return config;
3225
3679
  }
3226
3680
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -3269,7 +3723,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3269
3723
  });
3270
3724
  }
3271
3725
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3272
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3726
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3273
3727
  }
3274
3728
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3275
3729
  const { luvio, config } = context;
@@ -3599,14 +4053,14 @@ const getContextDefinitionInfoById_ConfigPropertyMetadata = [
3599
4053
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3600
4054
  ];
3601
4055
  const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContextDefinitionInfoById_ConfigPropertyMetadata);
3602
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getContextDefinitionInfoById_ConfigPropertyMetadata);
4056
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$e(getContextDefinitionInfoById_ConfigPropertyMetadata);
3603
4057
  function keyBuilder$3(luvio, config) {
3604
4058
  const resourceParams = createResourceParams$2(config);
3605
4059
  return keyBuilder$4(luvio, resourceParams);
3606
4060
  }
3607
4061
  function typeCheckConfig$2(untrustedConfig) {
3608
4062
  const config = {};
3609
- typeCheckConfig$c(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
4063
+ typeCheckConfig$e(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
3610
4064
  return config;
3611
4065
  }
3612
4066
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -3655,7 +4109,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3655
4109
  });
3656
4110
  }
3657
4111
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3658
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4112
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3659
4113
  }
3660
4114
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3661
4115
  const { luvio, config } = context;
@@ -3887,14 +4341,14 @@ const getConfigRuleMetadata_ConfigPropertyMetadata = [
3887
4341
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3888
4342
  ];
3889
4343
  const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConfigRuleMetadata_ConfigPropertyMetadata);
3890
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getConfigRuleMetadata_ConfigPropertyMetadata);
4344
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$e(getConfigRuleMetadata_ConfigPropertyMetadata);
3891
4345
  function keyBuilder$1(luvio, config) {
3892
4346
  const resourceParams = createResourceParams$1(config);
3893
4347
  return keyBuilder$2(luvio, resourceParams);
3894
4348
  }
3895
4349
  function typeCheckConfig$1(untrustedConfig) {
3896
4350
  const config = {};
3897
- typeCheckConfig$c(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
4351
+ typeCheckConfig$e(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
3898
4352
  return config;
3899
4353
  }
3900
4354
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -3943,7 +4397,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3943
4397
  });
3944
4398
  }
3945
4399
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3946
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4400
+ return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3947
4401
  }
3948
4402
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3949
4403
  const { luvio, config } = context;
@@ -4186,10 +4640,10 @@ const fetchRelatedRecords_ConfigPropertyMetadata = [
4186
4640
  generateParamConfigMetadata('relatedObjectNodes', true, 2 /* Body */, 4 /* Unsupported */, true),
4187
4641
  ];
4188
4642
  const fetchRelatedRecords_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, fetchRelatedRecords_ConfigPropertyMetadata);
4189
- const createResourceParams = /*#__PURE__*/ createResourceParams$c(fetchRelatedRecords_ConfigPropertyMetadata);
4643
+ const createResourceParams = /*#__PURE__*/ createResourceParams$e(fetchRelatedRecords_ConfigPropertyMetadata);
4190
4644
  function typeCheckConfig(untrustedConfig) {
4191
4645
  const config = {};
4192
- typeCheckConfig$c(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
4646
+ typeCheckConfig$e(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
4193
4647
  const untrustedConfig_relatedObjectNodes = untrustedConfig.relatedObjectNodes;
4194
4648
  if (ArrayIsArray$1(untrustedConfig_relatedObjectNodes)) {
4195
4649
  const untrustedConfig_relatedObjectNodes_array = [];
@@ -4243,4 +4697,4 @@ const fetchRelatedRecordsAdapterFactory = (luvio) => {
4243
4697
  };
4244
4698
  };
4245
4699
 
4246
- export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, fetchRelatedRecordsAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, updateIndexConfigurationsAdapterFactory };
4700
+ export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, fetchRelatedRecordsAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getIndexSettingAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, patchIndexSettingAdapterFactory, updateIndexConfigurationsAdapterFactory };