@salesforce/lds-adapters-industries-epc 1.319.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.
@@ -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$e, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$8, typeCheckConfig as typeCheckConfig$e } from '@luvio/engine';
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$M(obj, path = 'DeactivateInputRepresentation') {
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$M(obj, path = 'DeactivateInputRepresentation') {
125
125
  return v_error === undefined ? null : v_error;
126
126
  }
127
127
 
128
- function validate$L(obj, path = 'ErrorOutputRepresentation') {
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$L(obj, path = 'ErrorOutputRepresentation') {
156
156
  return v_error === undefined ? null : v_error;
157
157
  }
158
158
 
159
- const TTL$c = 6000;
160
- const VERSION$e = "67abdeaa299bae24f468fd2e78cd1e1e";
161
- function validate$K(obj, path = 'RecordIdMapOutputRepresentation') {
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$K(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$L(obj_errors_item, path_errors_item);
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$K(obj, path = 'RecordIdMapOutputRepresentation') {
186
186
  })();
187
187
  return v_error === undefined ? null : v_error;
188
188
  }
189
- const RepresentationType$d = 'RecordIdMapOutputRepresentation';
190
- function keyBuilder$l(luvio, config) {
191
- return keyPrefix + '::' + RepresentationType$d + ':' + config.message;
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$l(luvio, keyParams);
197
+ return keyBuilder$n(luvio, keyParams);
198
198
  }
199
- function normalize$d(input, existing, path, luvio, store, timestamp) {
199
+ function normalize$e(input, existing, path, luvio, store, timestamp) {
200
200
  return input;
201
201
  }
202
- const select$s = function RecordIdMapOutputRepresentationSelect() {
202
+ const select$u = function RecordIdMapOutputRepresentationSelect() {
203
203
  return {
204
204
  kind: 'Fragment',
205
- version: VERSION$e,
205
+ version: VERSION$f,
206
206
  private: [],
207
207
  opaque: true
208
208
  };
209
209
  };
210
- function equals$e(existing, incoming) {
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$d = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
216
+ const ingest$e = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
217
217
  if (process.env.NODE_ENV !== 'production') {
218
- const validateError = validate$K(input);
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$c;
225
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "epc", VERSION$e, RepresentationType$d, equals$e);
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$d(rootKeySet, luvio, input, fullPathFactory) {
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$d,
233
+ representationName: RepresentationType$e,
234
234
  mergeable: false
235
235
  });
236
236
  }
237
237
 
238
- function select$r(luvio, params) {
239
- return select$s();
238
+ function select$t(luvio, params) {
239
+ return select$u();
240
240
  }
241
- function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
242
- getTypeCacheKeys$d(storeKeyMap, luvio, response);
241
+ function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
242
+ getTypeCacheKeys$e(storeKeyMap, luvio, response);
243
243
  }
244
- function ingestSuccess$d(luvio, resourceParams, response) {
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$d, body);
247
+ luvio.storeIngest(key, ingest$e, body);
248
248
  const snapshot = luvio.storeLookup({
249
249
  recordId: key,
250
- node: select$r(),
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$d(config) {
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$d = 'deactivate';
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$d, deactivate_ConfigPropertyMetadata);
280
- const createResourceParams$d = /*#__PURE__*/ createResourceParams$e(deactivate_ConfigPropertyMetadata);
281
- function typeCheckConfig$d(untrustedConfig) {
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$M(untrustedConfig_deactivateInputPayload);
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$d(untrustedConfig, configPropertyNames) {
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$d(untrustedConfig);
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$d(luvio, config, options) {
304
- const resourceParams = createResourceParams$d(config);
305
- const request = createResourceRequest$d(resourceParams);
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$d(luvio, resourceParams, response);
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$d(cache, luvio, resourceParams, response.body);
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$d(untrustedConfig, deactivate_ConfigPropertyNames);
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$d(luvio, config);
328
+ return buildNetworkSnapshot$e(luvio, config);
329
329
  };
330
330
  };
331
331
 
332
- function validate$J(obj, path = 'EpcErrorOutputRepresentation') {
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$J(obj, path = 'EpcErrorOutputRepresentation') {
380
380
  return v_error === undefined ? null : v_error;
381
381
  }
382
382
 
383
- function validate$I(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
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$I(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$I(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$I(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
438
452
  return v_error === undefined ? null : v_error;
439
453
  }
440
454
 
441
- function validate$H(obj, path = 'FieldsInfoOutputRepresentation') {
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$H(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$H(obj, path = 'FieldsInfoOutputRepresentation') {
482
510
  return v_error === undefined ? null : v_error;
483
511
  }
484
512
 
485
- function validate$G(obj, path = 'ObjectInfoOutputRepresentation') {
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$G(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$H(obj_fields_item, path_fields_item);
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$G(obj, path = 'ObjectInfoOutputRepresentation') {
515
543
  return v_error === undefined ? null : v_error;
516
544
  }
517
545
 
518
- function validate$F(obj, path = 'MetadataOutputRepresentation') {
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$F(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$G(obj_objectInfos_item, path_objectInfos_item);
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$F(obj, path = 'MetadataOutputRepresentation') {
541
569
  return v_error === undefined ? null : v_error;
542
570
  }
543
571
 
544
- const TTL$b = 6000;
545
- const VERSION$d = "61cfe23ab3d064d226af215df6681afc";
546
- function validate$E(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
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$E(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$J(obj_errors_item, path_errors_item);
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$E(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$I(obj_indexConfigurations_item, path_indexConfigurations_item);
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$E(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$F(obj_metadata, path_metadata);
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$E(obj, path = 'IndexConfigurationCollectionOutputRepresentatio
609
637
  })();
610
638
  return v_error === undefined ? null : v_error;
611
639
  }
612
- const RepresentationType$c = 'IndexConfigurationCollectionOutputRepresentation';
613
- function normalize$c(input, existing, path, luvio, store, timestamp) {
640
+ const RepresentationType$d = 'IndexConfigurationCollectionOutputRepresentation';
641
+ function normalize$d(input, existing, path, luvio, store, timestamp) {
614
642
  return input;
615
643
  }
616
- const select$q = function IndexConfigurationCollectionOutputRepresentationSelect() {
644
+ const select$s = function IndexConfigurationCollectionOutputRepresentationSelect() {
617
645
  return {
618
646
  kind: 'Fragment',
619
- version: VERSION$d,
647
+ version: VERSION$e,
620
648
  private: [],
621
649
  opaque: true
622
650
  };
623
651
  };
624
- function equals$d(existing, incoming) {
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$c = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
658
+ const ingest$d = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
631
659
  if (process.env.NODE_ENV !== 'production') {
632
- const validateError = validate$E(input);
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$b;
639
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "epc", VERSION$d, RepresentationType$c, equals$d);
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$c(rootKeySet, luvio, input, fullPathFactory) {
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$c,
675
+ representationName: RepresentationType$d,
648
676
  mergeable: false
649
677
  });
650
678
  }
651
679
 
652
- function select$p(luvio, params) {
653
- return select$q();
680
+ function select$r(luvio, params) {
681
+ return select$s();
654
682
  }
655
- function keyBuilder$k(luvio, params) {
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$c(storeKeyMap, luvio, resourceParams, response) {
659
- getTypeCacheKeys$c(storeKeyMap, luvio, response, () => keyBuilder$k(luvio, resourceParams));
686
+ function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
687
+ getTypeCacheKeys$d(storeKeyMap, luvio, response, () => keyBuilder$m(luvio, resourceParams));
660
688
  }
661
- function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
689
+ function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
662
690
  const { body } = response;
663
- const key = keyBuilder$k(luvio, resourceParams);
664
- luvio.storeIngest(key, ingest$c, body);
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$p(),
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$7(luvio, params, error, snapshotRefresh) {
679
- const key = keyBuilder$k(luvio, params);
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$b,
710
+ ttl: TTL$c,
683
711
  namespace: keyPrefix,
684
- version: VERSION$d,
685
- representationName: RepresentationType$c
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$c(config) {
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$c = 'getIndexConfigurations';
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$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);
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$c(untrustedConfig) {
744
+ function typeCheckConfig$d(untrustedConfig) {
717
745
  const config = {};
718
- typeCheckConfig$e(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
746
+ typeCheckConfig$f(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
719
747
  return config;
720
748
  }
721
- function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
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$c(untrustedConfig);
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$7(luvio, config) {
735
- createResourceParams$c(config);
736
- return select$p();
762
+ function adapterFragment$8(luvio, config) {
763
+ createResourceParams$d(config);
764
+ return select$r();
737
765
  }
738
- function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
739
- const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
766
+ function onFetchResponseSuccess$8(luvio, config, resourceParams, response) {
767
+ const snapshot = ingestSuccess$d(luvio, resourceParams, response, {
740
768
  config,
741
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
769
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
742
770
  });
743
771
  return luvio.storeBroadcast().then(() => snapshot);
744
772
  }
745
- function onFetchResponseError$7(luvio, config, resourceParams, response) {
746
- const snapshot = ingestError$7(luvio, resourceParams, response, {
773
+ function onFetchResponseError$8(luvio, config, resourceParams, response) {
774
+ const snapshot = ingestError$8(luvio, resourceParams, response, {
747
775
  config,
748
- resolve: () => buildNetworkSnapshot$c(luvio, config, snapshotRefreshOptions)
776
+ resolve: () => buildNetworkSnapshot$d(luvio, config, snapshotRefreshOptions)
749
777
  });
750
778
  return luvio.storeBroadcast().then(() => snapshot);
751
779
  }
752
- function buildNetworkSnapshot$c(luvio, config, options) {
753
- const resourceParams = createResourceParams$c(config);
754
- const request = createResourceRequest$c(resourceParams);
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$7(luvio, config, resourceParams, response), () => {
785
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
758
786
  const cache = new StoreKeyMap();
759
- getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
787
+ getResponseCacheKeys$d(cache, luvio, resourceParams, response.body);
760
788
  return cache;
761
789
  });
762
790
  }, (response) => {
763
- return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
791
+ return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
764
792
  });
765
793
  }
766
- function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
767
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$c, undefined, false);
794
+ function buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext) {
795
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$d, undefined, false);
768
796
  }
769
- function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
797
+ function buildCachedSnapshotCachePolicy$8(context, storeLookup) {
770
798
  const { luvio, config } = context;
771
799
  const selector = {
772
- recordId: keyBuilder$j(luvio, config),
773
- node: adapterFragment$7(luvio, config),
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$c(luvio, config, snapshotRefreshOptions)
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$c(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
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$7, buildNetworkSnapshotCachePolicy$7);
817
+ buildCachedSnapshotCachePolicy$8, buildNetworkSnapshotCachePolicy$8);
790
818
  };
791
819
 
792
- const TTL$a = 6000;
793
- const VERSION$c = "d8fe6f305d394e3ad9e8b064fd805a31";
794
- function validate$D(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
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$D(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$J(obj_errors_item, path_errors_item);
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$D(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$I(obj_indexConfigurations_item, path_indexConfigurations_item);
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$D(obj, path = 'IndexConfigurationsUpdateOutputRepresentation')
845
873
  })();
846
874
  return v_error === undefined ? null : v_error;
847
875
  }
848
- const RepresentationType$b = 'IndexConfigurationsUpdateOutputRepresentation';
849
- function keyBuilder$i(luvio, config) {
850
- return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
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$i(luvio, keyParams);
884
+ return keyBuilder$k(luvio, keyParams);
857
885
  }
858
- function normalize$b(input, existing, path, luvio, store, timestamp) {
886
+ function normalize$c(input, existing, path, luvio, store, timestamp) {
859
887
  return input;
860
888
  }
861
- const select$o = function IndexConfigurationsUpdateOutputRepresentationSelect() {
889
+ const select$q = function IndexConfigurationsUpdateOutputRepresentationSelect() {
862
890
  return {
863
891
  kind: 'Fragment',
864
- version: VERSION$c,
892
+ version: VERSION$d,
865
893
  private: [],
866
894
  opaque: true
867
895
  };
868
896
  };
869
- function equals$c(existing, incoming) {
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$b = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
903
+ const ingest$c = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
876
904
  if (process.env.NODE_ENV !== 'production') {
877
- const validateError = validate$D(input);
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$a;
884
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
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$b(rootKeySet, luvio, input, fullPathFactory) {
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$b,
920
+ representationName: RepresentationType$c,
893
921
  mergeable: false
894
922
  });
895
923
  }
896
924
 
897
- function select$n(luvio, params) {
898
- return select$o();
925
+ function select$p(luvio, params) {
926
+ return select$q();
899
927
  }
900
- function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
901
- getTypeCacheKeys$b(storeKeyMap, luvio, response);
928
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
929
+ getTypeCacheKeys$c(storeKeyMap, luvio, response);
902
930
  }
903
- function ingestSuccess$b(luvio, resourceParams, response) {
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$b, body);
934
+ luvio.storeIngest(key, ingest$c, body);
907
935
  const snapshot = luvio.storeLookup({
908
936
  recordId: key,
909
- node: select$n(),
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$b(config) {
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$b = 'updateIndexConfigurations';
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$b, updateIndexConfigurations_ConfigPropertyMetadata);
940
- const createResourceParams$b = /*#__PURE__*/ createResourceParams$e(updateIndexConfigurations_ConfigPropertyMetadata);
941
- function typeCheckConfig$b(untrustedConfig) {
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$e(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
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$b(untrustedConfig, configPropertyNames) {
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$b(untrustedConfig);
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$b(luvio, config, options) {
969
- const resourceParams = createResourceParams$b(config);
970
- const request = createResourceRequest$b(resourceParams);
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$b(luvio, resourceParams, response);
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$b(cache, luvio, resourceParams, response.body);
1006
+ getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
979
1007
  return cache;
980
1008
  });
981
1009
  }, (response) => {
@@ -985,16 +1013,118 @@ function buildNetworkSnapshot$b(luvio, config, options) {
985
1013
  }
986
1014
  const updateIndexConfigurationsAdapterFactory = (luvio) => {
987
1015
  return function updateIndexConfigurations(untrustedConfig) {
988
- const config = validateAdapterConfig$b(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
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$b(luvio, config);
1021
+ return buildNetworkSnapshot$c(luvio, config);
994
1022
  };
995
1023
  };
996
1024
 
997
- function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
1025
+ function validate$G(obj, path = 'SnapshotIndexInfoOutputRepresentation') {
1026
+ const v_error = (() => {
1027
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1028
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1029
+ }
1030
+ if (obj.buildType !== undefined) {
1031
+ const obj_buildType = obj.buildType;
1032
+ const path_buildType = path + '.buildType';
1033
+ if (typeof obj_buildType !== 'string') {
1034
+ return new TypeError('Expected "string" but received "' + typeof obj_buildType + '" (at "' + path_buildType + '")');
1035
+ }
1036
+ }
1037
+ if (obj.id !== undefined) {
1038
+ const obj_id = obj.id;
1039
+ const path_id = path + '.id';
1040
+ if (typeof obj_id !== 'string') {
1041
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1042
+ }
1043
+ }
1044
+ if (obj.isIncrementable !== undefined) {
1045
+ const obj_isIncrementable = obj.isIncrementable;
1046
+ const path_isIncrementable = path + '.isIncrementable';
1047
+ if (typeof obj_isIncrementable !== 'boolean') {
1048
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isIncrementable + '" (at "' + path_isIncrementable + '")');
1049
+ }
1050
+ }
1051
+ if (obj.usageType !== undefined) {
1052
+ const obj_usageType = obj.usageType;
1053
+ const path_usageType = path + '.usageType';
1054
+ if (typeof obj_usageType !== 'string') {
1055
+ return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
1056
+ }
1057
+ }
1058
+ })();
1059
+ return v_error === undefined ? null : v_error;
1060
+ }
1061
+
1062
+ function validate$F(obj, path = 'SnapshotIndexLogOutputRepresentation') {
1063
+ const v_error = (() => {
1064
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1065
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1066
+ }
1067
+ if (obj.catalogSnapshotTime !== undefined) {
1068
+ const obj_catalogSnapshotTime = obj.catalogSnapshotTime;
1069
+ const path_catalogSnapshotTime = path + '.catalogSnapshotTime';
1070
+ if (typeof obj_catalogSnapshotTime !== 'string') {
1071
+ return new TypeError('Expected "string" but received "' + typeof obj_catalogSnapshotTime + '" (at "' + path_catalogSnapshotTime + '")');
1072
+ }
1073
+ }
1074
+ if (obj.completionTime !== undefined) {
1075
+ const obj_completionTime = obj.completionTime;
1076
+ const path_completionTime = path + '.completionTime';
1077
+ if (typeof obj_completionTime !== 'string') {
1078
+ return new TypeError('Expected "string" but received "' + typeof obj_completionTime + '" (at "' + path_completionTime + '")');
1079
+ }
1080
+ }
1081
+ if (obj.createdById !== undefined) {
1082
+ const obj_createdById = obj.createdById;
1083
+ const path_createdById = path + '.createdById';
1084
+ if (typeof obj_createdById !== 'string') {
1085
+ return new TypeError('Expected "string" but received "' + typeof obj_createdById + '" (at "' + path_createdById + '")');
1086
+ }
1087
+ }
1088
+ if (obj.indexBuildStatus !== undefined) {
1089
+ const obj_indexBuildStatus = obj.indexBuildStatus;
1090
+ const path_indexBuildStatus = path + '.indexBuildStatus';
1091
+ if (typeof obj_indexBuildStatus !== 'string') {
1092
+ return new TypeError('Expected "string" but received "' + typeof obj_indexBuildStatus + '" (at "' + path_indexBuildStatus + '")');
1093
+ }
1094
+ }
1095
+ if (obj.indexBuildType !== undefined) {
1096
+ const obj_indexBuildType = obj.indexBuildType;
1097
+ const path_indexBuildType = path + '.indexBuildType';
1098
+ if (typeof obj_indexBuildType !== 'string') {
1099
+ return new TypeError('Expected "string" but received "' + typeof obj_indexBuildType + '" (at "' + path_indexBuildType + '")');
1100
+ }
1101
+ }
1102
+ if (obj.indexId !== undefined) {
1103
+ const obj_indexId = obj.indexId;
1104
+ const path_indexId = path + '.indexId';
1105
+ if (typeof obj_indexId !== 'string') {
1106
+ return new TypeError('Expected "string" but received "' + typeof obj_indexId + '" (at "' + path_indexId + '")');
1107
+ }
1108
+ }
1109
+ if (obj.message !== undefined) {
1110
+ const obj_message = obj.message;
1111
+ const path_message = path + '.message';
1112
+ if (typeof obj_message !== 'string') {
1113
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1114
+ }
1115
+ }
1116
+ if (obj.numberOfChanges !== undefined) {
1117
+ const obj_numberOfChanges = obj.numberOfChanges;
1118
+ const path_numberOfChanges = path + '.numberOfChanges';
1119
+ if (typeof obj_numberOfChanges !== 'number' || (typeof obj_numberOfChanges === 'number' && Math.floor(obj_numberOfChanges) !== obj_numberOfChanges)) {
1120
+ return new TypeError('Expected "integer" but received "' + typeof obj_numberOfChanges + '" (at "' + path_numberOfChanges + '")');
1121
+ }
1122
+ }
1123
+ })();
1124
+ return v_error === undefined ? null : v_error;
1125
+ }
1126
+
1127
+ function validate$E(obj, path = 'SnapshotIndexOutputRepresentation') {
998
1128
  const v_error = (() => {
999
1129
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1000
1130
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1027,6 +1157,40 @@ function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
1027
1157
  return new TypeError('Expected "string" but received "' + typeof obj_indexBuildType + '" (at "' + path_indexBuildType + '")');
1028
1158
  }
1029
1159
  }
1160
+ if (obj.indexInfos !== undefined) {
1161
+ const obj_indexInfos = obj.indexInfos;
1162
+ const path_indexInfos = path + '.indexInfos';
1163
+ if (!ArrayIsArray(obj_indexInfos)) {
1164
+ return new TypeError('Expected "array" but received "' + typeof obj_indexInfos + '" (at "' + path_indexInfos + '")');
1165
+ }
1166
+ for (let i = 0; i < obj_indexInfos.length; i++) {
1167
+ const obj_indexInfos_item = obj_indexInfos[i];
1168
+ const path_indexInfos_item = path_indexInfos + '[' + i + ']';
1169
+ const referencepath_indexInfos_itemValidationError = validate$G(obj_indexInfos_item, path_indexInfos_item);
1170
+ if (referencepath_indexInfos_itemValidationError !== null) {
1171
+ let message = 'Object doesn\'t match SnapshotIndexInfoOutputRepresentation (at "' + path_indexInfos_item + '")\n';
1172
+ message += referencepath_indexInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1173
+ return new TypeError(message);
1174
+ }
1175
+ }
1176
+ }
1177
+ if (obj.indexLogs !== undefined) {
1178
+ const obj_indexLogs = obj.indexLogs;
1179
+ const path_indexLogs = path + '.indexLogs';
1180
+ if (!ArrayIsArray(obj_indexLogs)) {
1181
+ return new TypeError('Expected "array" but received "' + typeof obj_indexLogs + '" (at "' + path_indexLogs + '")');
1182
+ }
1183
+ for (let i = 0; i < obj_indexLogs.length; i++) {
1184
+ const obj_indexLogs_item = obj_indexLogs[i];
1185
+ const path_indexLogs_item = path_indexLogs + '[' + i + ']';
1186
+ const referencepath_indexLogs_itemValidationError = validate$F(obj_indexLogs_item, path_indexLogs_item);
1187
+ if (referencepath_indexLogs_itemValidationError !== null) {
1188
+ let message = 'Object doesn\'t match SnapshotIndexLogOutputRepresentation (at "' + path_indexLogs_item + '")\n';
1189
+ message += referencepath_indexLogs_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1190
+ return new TypeError(message);
1191
+ }
1192
+ }
1193
+ }
1030
1194
  if (obj.indexType !== undefined) {
1031
1195
  const obj_indexType = obj.indexType;
1032
1196
  const path_indexType = path + '.indexType';
@@ -1048,11 +1212,18 @@ function validate$C(obj, path = 'SnapshotIndexOutputRepresentation') {
1048
1212
  return new TypeError('Expected "integer" but received "' + typeof obj_numberOfRecords + '" (at "' + path_numberOfRecords + '")');
1049
1213
  }
1050
1214
  }
1215
+ if (obj.venueId !== undefined) {
1216
+ const obj_venueId = obj.venueId;
1217
+ const path_venueId = path + '.venueId';
1218
+ if (typeof obj_venueId !== 'string') {
1219
+ return new TypeError('Expected "string" but received "' + typeof obj_venueId + '" (at "' + path_venueId + '")');
1220
+ }
1221
+ }
1051
1222
  })();
1052
1223
  return v_error === undefined ? null : v_error;
1053
1224
  }
1054
1225
 
1055
- function validate$B(obj, path = 'SnapshotOutputRepresentation') {
1226
+ function validate$D(obj, path = 'SnapshotOutputRepresentation') {
1056
1227
  const v_error = (() => {
1057
1228
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1058
1229
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1094,7 +1265,7 @@ function validate$B(obj, path = 'SnapshotOutputRepresentation') {
1094
1265
  for (let i = 0; i < obj_snapshotIndexes.length; i++) {
1095
1266
  const obj_snapshotIndexes_item = obj_snapshotIndexes[i];
1096
1267
  const path_snapshotIndexes_item = path_snapshotIndexes + '[' + i + ']';
1097
- const referencepath_snapshotIndexes_itemValidationError = validate$C(obj_snapshotIndexes_item, path_snapshotIndexes_item);
1268
+ const referencepath_snapshotIndexes_itemValidationError = validate$E(obj_snapshotIndexes_item, path_snapshotIndexes_item);
1098
1269
  if (referencepath_snapshotIndexes_itemValidationError !== null) {
1099
1270
  let message = 'Object doesn\'t match SnapshotIndexOutputRepresentation (at "' + path_snapshotIndexes_item + '")\n';
1100
1271
  message += referencepath_snapshotIndexes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1106,9 +1277,9 @@ function validate$B(obj, path = 'SnapshotOutputRepresentation') {
1106
1277
  return v_error === undefined ? null : v_error;
1107
1278
  }
1108
1279
 
1109
- const TTL$9 = 6000;
1110
- const VERSION$b = "a482669465add5966119b942982ae104";
1111
- function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1280
+ const TTL$a = 6000;
1281
+ const VERSION$c = "a482669465add5966119b942982ae104";
1282
+ function validate$C(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1112
1283
  const v_error = (() => {
1113
1284
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1114
1285
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1122,7 +1293,7 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1122
1293
  for (let i = 0; i < obj_errors.length; i++) {
1123
1294
  const obj_errors_item = obj_errors[i];
1124
1295
  const path_errors_item = path_errors + '[' + i + ']';
1125
- const referencepath_errors_itemValidationError = validate$J(obj_errors_item, path_errors_item);
1296
+ const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
1126
1297
  if (referencepath_errors_itemValidationError !== null) {
1127
1298
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1128
1299
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1133,7 +1304,7 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1133
1304
  if (obj.snapshot !== undefined) {
1134
1305
  const obj_snapshot = obj.snapshot;
1135
1306
  const path_snapshot = path + '.snapshot';
1136
- const referencepath_snapshotValidationError = validate$B(obj_snapshot, path_snapshot);
1307
+ const referencepath_snapshotValidationError = validate$D(obj_snapshot, path_snapshot);
1137
1308
  if (referencepath_snapshotValidationError !== null) {
1138
1309
  let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshot + '")\n';
1139
1310
  message += referencepath_snapshotValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1148,68 +1319,68 @@ function validate$A(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1148
1319
  })();
1149
1320
  return v_error === undefined ? null : v_error;
1150
1321
  }
1151
- const RepresentationType$a = 'SnapshotDeploymentOutputRepresentation';
1152
- function keyBuilder$h(luvio, config) {
1153
- return keyPrefix + '::' + RepresentationType$a + ':' + config.message;
1322
+ const RepresentationType$b = 'SnapshotDeploymentOutputRepresentation';
1323
+ function keyBuilder$j(luvio, config) {
1324
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
1154
1325
  }
1155
1326
  function keyBuilderFromType$3(luvio, object) {
1156
1327
  const keyParams = {
1157
1328
  message: object.statusCode
1158
1329
  };
1159
- return keyBuilder$h(luvio, keyParams);
1330
+ return keyBuilder$j(luvio, keyParams);
1160
1331
  }
1161
- function normalize$a(input, existing, path, luvio, store, timestamp) {
1332
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
1162
1333
  return input;
1163
1334
  }
1164
- const select$m = function SnapshotDeploymentOutputRepresentationSelect() {
1335
+ const select$o = function SnapshotDeploymentOutputRepresentationSelect() {
1165
1336
  return {
1166
1337
  kind: 'Fragment',
1167
- version: VERSION$b,
1338
+ version: VERSION$c,
1168
1339
  private: [],
1169
1340
  opaque: true
1170
1341
  };
1171
1342
  };
1172
- function equals$b(existing, incoming) {
1343
+ function equals$c(existing, incoming) {
1173
1344
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1174
1345
  return false;
1175
1346
  }
1176
1347
  return true;
1177
1348
  }
1178
- const ingest$a = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1349
+ const ingest$b = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1179
1350
  if (process.env.NODE_ENV !== 'production') {
1180
- const validateError = validate$A(input);
1351
+ const validateError = validate$C(input);
1181
1352
  if (validateError !== null) {
1182
1353
  throw validateError;
1183
1354
  }
1184
1355
  }
1185
1356
  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);
1357
+ const ttlToUse = TTL$a;
1358
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
1188
1359
  return createLink(key);
1189
1360
  };
1190
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1361
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
1191
1362
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1192
1363
  const rootKey = keyBuilderFromType$3(luvio, input);
1193
1364
  rootKeySet.set(rootKey, {
1194
1365
  namespace: keyPrefix,
1195
- representationName: RepresentationType$a,
1366
+ representationName: RepresentationType$b,
1196
1367
  mergeable: false
1197
1368
  });
1198
1369
  }
1199
1370
 
1200
- function select$l(luvio, params) {
1201
- return select$m();
1371
+ function select$n(luvio, params) {
1372
+ return select$o();
1202
1373
  }
1203
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1204
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
1374
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
1375
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
1205
1376
  }
1206
- function ingestSuccess$a(luvio, resourceParams, response) {
1377
+ function ingestSuccess$b(luvio, resourceParams, response) {
1207
1378
  const { body } = response;
1208
1379
  const key = keyBuilderFromType$3(luvio, body);
1209
- luvio.storeIngest(key, ingest$a, body);
1380
+ luvio.storeIngest(key, ingest$b, body);
1210
1381
  const snapshot = luvio.storeLookup({
1211
1382
  recordId: key,
1212
- node: select$l(),
1383
+ node: select$n(),
1213
1384
  variables: {},
1214
1385
  });
1215
1386
  if (process.env.NODE_ENV !== 'production') {
@@ -1220,7 +1391,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
1220
1391
  deepFreeze(snapshot.data);
1221
1392
  return snapshot;
1222
1393
  }
1223
- function createResourceRequest$a(config) {
1394
+ function createResourceRequest$b(config) {
1224
1395
  const headers = {};
1225
1396
  return {
1226
1397
  baseUri: '/services/data/v63.0',
@@ -1234,44 +1405,44 @@ function createResourceRequest$a(config) {
1234
1405
  };
1235
1406
  }
1236
1407
 
1237
- const adapterName$a = 'deploySnapshotIndex';
1408
+ const adapterName$b = 'deploySnapshotIndex';
1238
1409
  const deploySnapshotIndex_ConfigPropertyMetadata = [
1239
1410
  generateParamConfigMetadata('buildType', false, 2 /* Body */, 0 /* String */),
1240
1411
  generateParamConfigMetadata('snapshot', false, 2 /* Body */, 4 /* Unsupported */),
1241
1412
  ];
1242
- const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deploySnapshotIndex_ConfigPropertyMetadata);
1243
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$e(deploySnapshotIndex_ConfigPropertyMetadata);
1244
- function typeCheckConfig$a(untrustedConfig) {
1413
+ const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deploySnapshotIndex_ConfigPropertyMetadata);
1414
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$f(deploySnapshotIndex_ConfigPropertyMetadata);
1415
+ function typeCheckConfig$b(untrustedConfig) {
1245
1416
  const config = {};
1246
- typeCheckConfig$e(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1417
+ typeCheckConfig$f(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1247
1418
  const untrustedConfig_snapshot = untrustedConfig.snapshot;
1248
1419
  config.snapshot = untrustedConfig_snapshot;
1249
1420
  return config;
1250
1421
  }
1251
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1422
+ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
1252
1423
  if (!untrustedIsObject(untrustedConfig)) {
1253
1424
  return null;
1254
1425
  }
1255
1426
  if (process.env.NODE_ENV !== 'production') {
1256
1427
  validateConfig(untrustedConfig, configPropertyNames);
1257
1428
  }
1258
- const config = typeCheckConfig$a(untrustedConfig);
1429
+ const config = typeCheckConfig$b(untrustedConfig);
1259
1430
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1260
1431
  return null;
1261
1432
  }
1262
1433
  return config;
1263
1434
  }
1264
- function buildNetworkSnapshot$a(luvio, config, options) {
1265
- const resourceParams = createResourceParams$a(config);
1266
- const request = createResourceRequest$a(resourceParams);
1435
+ function buildNetworkSnapshot$b(luvio, config, options) {
1436
+ const resourceParams = createResourceParams$b(config);
1437
+ const request = createResourceRequest$b(resourceParams);
1267
1438
  return luvio.dispatchResourceRequest(request, options)
1268
1439
  .then((response) => {
1269
1440
  return luvio.handleSuccessResponse(() => {
1270
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
1441
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
1271
1442
  return luvio.storeBroadcast().then(() => snapshot);
1272
1443
  }, () => {
1273
1444
  const cache = new StoreKeyMap();
1274
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1445
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
1275
1446
  return cache;
1276
1447
  });
1277
1448
  }, (response) => {
@@ -1281,16 +1452,16 @@ function buildNetworkSnapshot$a(luvio, config, options) {
1281
1452
  }
1282
1453
  const deploySnapshotIndexAdapterFactory = (luvio) => {
1283
1454
  return function deploySnapshotIndex(untrustedConfig) {
1284
- const config = validateAdapterConfig$a(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1455
+ const config = validateAdapterConfig$b(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1285
1456
  // Invalid or incomplete config
1286
1457
  if (config === null) {
1287
1458
  throw new Error('Invalid config for "deploySnapshotIndex"');
1288
1459
  }
1289
- return buildNetworkSnapshot$a(luvio, config);
1460
+ return buildNetworkSnapshot$b(luvio, config);
1290
1461
  };
1291
1462
  };
1292
1463
 
1293
- function validate$z(obj, path = 'SettingMetadataOutputRepresentation') {
1464
+ function validate$B(obj, path = 'SettingMetadataOutputRepresentation') {
1294
1465
  const v_error = (() => {
1295
1466
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1296
1467
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1313,11 +1484,18 @@ function validate$z(obj, path = 'SettingMetadataOutputRepresentation') {
1313
1484
  return v_error === undefined ? null : v_error;
1314
1485
  }
1315
1486
 
1316
- function validate$y(obj, path = 'SettingOutputRepresentation') {
1487
+ function validate$A(obj, path = 'SettingOutputRepresentation') {
1317
1488
  const v_error = (() => {
1318
1489
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1319
1490
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1320
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
+ }
1321
1499
  const obj_id = obj.id;
1322
1500
  const path_id = path + '.id';
1323
1501
  if (typeof obj_id !== 'string') {
@@ -1341,9 +1519,9 @@ function validate$y(obj, path = 'SettingOutputRepresentation') {
1341
1519
  return v_error === undefined ? null : v_error;
1342
1520
  }
1343
1521
 
1344
- const TTL$8 = 6000;
1345
- const VERSION$a = "8e8994b81e71fbf729c95134f748033b";
1346
- function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1522
+ const TTL$9 = 6000;
1523
+ const VERSION$b = "8e8994b81e71fbf729c95134f748033b";
1524
+ function validate$z(obj, path = 'IndexSettingOutputRepresentation') {
1347
1525
  const v_error = (() => {
1348
1526
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1349
1527
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1357,7 +1535,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1357
1535
  for (let i = 0; i < obj_errors.length; i++) {
1358
1536
  const obj_errors_item = obj_errors[i];
1359
1537
  const path_errors_item = path_errors + '[' + i + ']';
1360
- const referencepath_errors_itemValidationError = validate$J(obj_errors_item, path_errors_item);
1538
+ const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
1361
1539
  if (referencepath_errors_itemValidationError !== null) {
1362
1540
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1363
1541
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1367,7 +1545,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1367
1545
  }
1368
1546
  const obj_metadata = obj.metadata;
1369
1547
  const path_metadata = path + '.metadata';
1370
- const referencepath_metadataValidationError = validate$z(obj_metadata, path_metadata);
1548
+ const referencepath_metadataValidationError = validate$B(obj_metadata, path_metadata);
1371
1549
  if (referencepath_metadataValidationError !== null) {
1372
1550
  let message = 'Object doesn\'t match SettingMetadataOutputRepresentation (at "' + path_metadata + '")\n';
1373
1551
  message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1375,7 +1553,7 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1375
1553
  }
1376
1554
  const obj_setting = obj.setting;
1377
1555
  const path_setting = path + '.setting';
1378
- const referencepath_settingValidationError = validate$y(obj_setting, path_setting);
1556
+ const referencepath_settingValidationError = validate$A(obj_setting, path_setting);
1379
1557
  if (referencepath_settingValidationError !== null) {
1380
1558
  let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
1381
1559
  message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1389,62 +1567,62 @@ function validate$x(obj, path = 'IndexSettingOutputRepresentation') {
1389
1567
  })();
1390
1568
  return v_error === undefined ? null : v_error;
1391
1569
  }
1392
- const RepresentationType$9 = 'IndexSettingOutputRepresentation';
1393
- function normalize$9(input, existing, path, luvio, store, timestamp) {
1570
+ const RepresentationType$a = 'IndexSettingOutputRepresentation';
1571
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
1394
1572
  return input;
1395
1573
  }
1396
- const select$k = function IndexSettingOutputRepresentationSelect() {
1574
+ const select$m = function IndexSettingOutputRepresentationSelect() {
1397
1575
  return {
1398
1576
  kind: 'Fragment',
1399
- version: VERSION$a,
1577
+ version: VERSION$b,
1400
1578
  private: [],
1401
1579
  opaque: true
1402
1580
  };
1403
1581
  };
1404
- function equals$a(existing, incoming) {
1582
+ function equals$b(existing, incoming) {
1405
1583
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1406
1584
  return false;
1407
1585
  }
1408
1586
  return true;
1409
1587
  }
1410
- const ingest$9 = function IndexSettingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1588
+ const ingest$a = function IndexSettingOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1411
1589
  if (process.env.NODE_ENV !== 'production') {
1412
- const validateError = validate$x(input);
1590
+ const validateError = validate$z(input);
1413
1591
  if (validateError !== null) {
1414
1592
  throw validateError;
1415
1593
  }
1416
1594
  }
1417
1595
  const key = path.fullPath;
1418
- const ttlToUse = TTL$8;
1419
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
1596
+ const ttlToUse = TTL$9;
1597
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
1420
1598
  return createLink(key);
1421
1599
  };
1422
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1600
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
1423
1601
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1424
1602
  const rootKey = fullPathFactory();
1425
1603
  rootKeySet.set(rootKey, {
1426
1604
  namespace: keyPrefix,
1427
- representationName: RepresentationType$9,
1605
+ representationName: RepresentationType$a,
1428
1606
  mergeable: false
1429
1607
  });
1430
1608
  }
1431
1609
 
1432
- function select$j(luvio, params) {
1433
- return select$k();
1610
+ function select$l(luvio, params) {
1611
+ return select$m();
1434
1612
  }
1435
- function keyBuilder$g(luvio, params) {
1613
+ function keyBuilder$i(luvio, params) {
1436
1614
  return keyPrefix + '::IndexSettingOutputRepresentation:(' + ')';
1437
1615
  }
1438
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1439
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g());
1616
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
1617
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$i());
1440
1618
  }
1441
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1619
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
1442
1620
  const { body } = response;
1443
- const key = keyBuilder$g();
1444
- luvio.storeIngest(key, ingest$9, body);
1621
+ const key = keyBuilder$i();
1622
+ luvio.storeIngest(key, ingest$a, body);
1445
1623
  const snapshot = luvio.storeLookup({
1446
1624
  recordId: key,
1447
- node: select$j(),
1625
+ node: select$l(),
1448
1626
  variables: {},
1449
1627
  }, snapshotRefresh);
1450
1628
  if (process.env.NODE_ENV !== 'production') {
@@ -1455,19 +1633,19 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
1455
1633
  deepFreeze(snapshot.data);
1456
1634
  return snapshot;
1457
1635
  }
1458
- function ingestError$6(luvio, params, error, snapshotRefresh) {
1459
- const key = keyBuilder$g();
1636
+ function ingestError$7(luvio, params, error, snapshotRefresh) {
1637
+ const key = keyBuilder$i();
1460
1638
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1461
1639
  const storeMetadataParams = {
1462
- ttl: TTL$8,
1640
+ ttl: TTL$9,
1463
1641
  namespace: keyPrefix,
1464
- version: VERSION$a,
1465
- representationName: RepresentationType$9
1642
+ version: VERSION$b,
1643
+ representationName: RepresentationType$a
1466
1644
  };
1467
1645
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1468
1646
  return errorSnapshot;
1469
1647
  }
1470
- function createResourceRequest$9(config) {
1648
+ function createResourceRequest$a(config) {
1471
1649
  const headers = {};
1472
1650
  return {
1473
1651
  baseUri: '/services/data/v63.0',
@@ -1481,94 +1659,101 @@ function createResourceRequest$9(config) {
1481
1659
  };
1482
1660
  }
1483
1661
 
1484
- const adapterName$9 = 'getIndexSetting';
1662
+ const adapterName$a = 'getIndexSetting';
1485
1663
  const getIndexSetting_ConfigPropertyMetadata = [];
1486
- const getIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getIndexSetting_ConfigPropertyMetadata);
1487
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$e(getIndexSetting_ConfigPropertyMetadata);
1488
- function keyBuilder$f(luvio, config) {
1489
- createResourceParams$9(config);
1490
- return keyBuilder$g();
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();
1491
1669
  }
1492
- function typeCheckConfig$9(untrustedConfig) {
1670
+ function typeCheckConfig$a(untrustedConfig) {
1493
1671
  const config = {};
1494
1672
  return config;
1495
1673
  }
1496
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1674
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
1497
1675
  if (!untrustedIsObject(untrustedConfig)) {
1498
1676
  return null;
1499
1677
  }
1500
1678
  if (process.env.NODE_ENV !== 'production') {
1501
1679
  validateConfig(untrustedConfig, configPropertyNames);
1502
1680
  }
1503
- const config = typeCheckConfig$9();
1681
+ const config = typeCheckConfig$a();
1504
1682
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1505
1683
  return null;
1506
1684
  }
1507
1685
  return config;
1508
1686
  }
1509
- function adapterFragment$6(luvio, config) {
1510
- createResourceParams$9(config);
1511
- return select$j();
1687
+ function adapterFragment$7(luvio, config) {
1688
+ createResourceParams$a(config);
1689
+ return select$l();
1512
1690
  }
1513
- function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
1514
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
1691
+ function onFetchResponseSuccess$7(luvio, config, resourceParams, response) {
1692
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
1515
1693
  config,
1516
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1694
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1517
1695
  });
1518
1696
  return luvio.storeBroadcast().then(() => snapshot);
1519
1697
  }
1520
- function onFetchResponseError$6(luvio, config, resourceParams, response) {
1521
- const snapshot = ingestError$6(luvio, resourceParams, response, {
1698
+ function onFetchResponseError$7(luvio, config, resourceParams, response) {
1699
+ const snapshot = ingestError$7(luvio, resourceParams, response, {
1522
1700
  config,
1523
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1701
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1524
1702
  });
1525
1703
  return luvio.storeBroadcast().then(() => snapshot);
1526
1704
  }
1527
- function buildNetworkSnapshot$9(luvio, config, options) {
1528
- const resourceParams = createResourceParams$9(config);
1529
- const request = createResourceRequest$9();
1705
+ function buildNetworkSnapshot$a(luvio, config, options) {
1706
+ const resourceParams = createResourceParams$a(config);
1707
+ const request = createResourceRequest$a();
1530
1708
  return luvio.dispatchResourceRequest(request, options)
1531
1709
  .then((response) => {
1532
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
1710
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
1533
1711
  const cache = new StoreKeyMap();
1534
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1712
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
1535
1713
  return cache;
1536
1714
  });
1537
1715
  }, (response) => {
1538
- return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
1716
+ return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
1539
1717
  });
1540
1718
  }
1541
- function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
1542
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
1719
+ function buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext) {
1720
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
1543
1721
  }
1544
- function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
1722
+ function buildCachedSnapshotCachePolicy$7(context, storeLookup) {
1545
1723
  const { luvio, config } = context;
1546
1724
  const selector = {
1547
- recordId: keyBuilder$f(luvio, config),
1548
- node: adapterFragment$6(luvio, config),
1725
+ recordId: keyBuilder$h(luvio, config),
1726
+ node: adapterFragment$7(luvio, config),
1549
1727
  variables: {},
1550
1728
  };
1551
1729
  const cacheSnapshot = storeLookup(selector, {
1552
1730
  config,
1553
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
1731
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
1554
1732
  });
1555
1733
  return cacheSnapshot;
1556
1734
  }
1557
1735
  const getIndexSettingAdapterFactory = (luvio) => function epc__getIndexSetting(untrustedConfig, requestContext) {
1558
- const config = validateAdapterConfig$9(untrustedConfig, getIndexSetting_ConfigPropertyNames);
1736
+ const config = validateAdapterConfig$a(untrustedConfig, getIndexSetting_ConfigPropertyNames);
1559
1737
  // Invalid or incomplete config
1560
1738
  if (config === null) {
1561
1739
  return null;
1562
1740
  }
1563
1741
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1564
- buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
1742
+ buildCachedSnapshotCachePolicy$7, buildNetworkSnapshotCachePolicy$7);
1565
1743
  };
1566
1744
 
1567
- function validate$w(obj, path = 'SettingInputRepresentation') {
1745
+ function validate$y(obj, path = 'SettingInputRepresentation') {
1568
1746
  const v_error = (() => {
1569
1747
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1570
1748
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1571
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
+ }
1572
1757
  if (obj.supportedLanguages !== undefined) {
1573
1758
  const obj_supportedLanguages = obj.supportedLanguages;
1574
1759
  const path_supportedLanguages = path + '.supportedLanguages';
@@ -1587,9 +1772,9 @@ function validate$w(obj, path = 'SettingInputRepresentation') {
1587
1772
  return v_error === undefined ? null : v_error;
1588
1773
  }
1589
1774
 
1590
- const TTL$7 = 6000;
1591
- const VERSION$9 = "67c20ef2306f437cc5f7d88184b2ea29";
1592
- function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
1775
+ const TTL$8 = 6000;
1776
+ const VERSION$a = "67c20ef2306f437cc5f7d88184b2ea29";
1777
+ function validate$x(obj, path = 'IndexSettingPatchOutputRepresentation') {
1593
1778
  const v_error = (() => {
1594
1779
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1595
1780
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1603,7 +1788,7 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
1603
1788
  for (let i = 0; i < obj_errors.length; i++) {
1604
1789
  const obj_errors_item = obj_errors[i];
1605
1790
  const path_errors_item = path_errors + '[' + i + ']';
1606
- const referencepath_errors_itemValidationError = validate$J(obj_errors_item, path_errors_item);
1791
+ const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
1607
1792
  if (referencepath_errors_itemValidationError !== null) {
1608
1793
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1609
1794
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1613,7 +1798,7 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
1613
1798
  }
1614
1799
  const obj_setting = obj.setting;
1615
1800
  const path_setting = path + '.setting';
1616
- const referencepath_settingValidationError = validate$y(obj_setting, path_setting);
1801
+ const referencepath_settingValidationError = validate$A(obj_setting, path_setting);
1617
1802
  if (referencepath_settingValidationError !== null) {
1618
1803
  let message = 'Object doesn\'t match SettingOutputRepresentation (at "' + path_setting + '")\n';
1619
1804
  message += referencepath_settingValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1627,68 +1812,68 @@ function validate$v(obj, path = 'IndexSettingPatchOutputRepresentation') {
1627
1812
  })();
1628
1813
  return v_error === undefined ? null : v_error;
1629
1814
  }
1630
- const RepresentationType$8 = 'IndexSettingPatchOutputRepresentation';
1631
- function keyBuilder$e(luvio, config) {
1632
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1815
+ const RepresentationType$9 = 'IndexSettingPatchOutputRepresentation';
1816
+ function keyBuilder$g(luvio, config) {
1817
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
1633
1818
  }
1634
1819
  function keyBuilderFromType$2(luvio, object) {
1635
1820
  const keyParams = {
1636
1821
  id: object.setting.id
1637
1822
  };
1638
- return keyBuilder$e(luvio, keyParams);
1823
+ return keyBuilder$g(luvio, keyParams);
1639
1824
  }
1640
- function normalize$8(input, existing, path, luvio, store, timestamp) {
1825
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
1641
1826
  return input;
1642
1827
  }
1643
- const select$i = function IndexSettingPatchOutputRepresentationSelect() {
1828
+ const select$k = function IndexSettingPatchOutputRepresentationSelect() {
1644
1829
  return {
1645
1830
  kind: 'Fragment',
1646
- version: VERSION$9,
1831
+ version: VERSION$a,
1647
1832
  private: [],
1648
1833
  opaque: true
1649
1834
  };
1650
1835
  };
1651
- function equals$9(existing, incoming) {
1836
+ function equals$a(existing, incoming) {
1652
1837
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1653
1838
  return false;
1654
1839
  }
1655
1840
  return true;
1656
1841
  }
1657
- const ingest$8 = function IndexSettingPatchOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1842
+ const ingest$9 = function IndexSettingPatchOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1658
1843
  if (process.env.NODE_ENV !== 'production') {
1659
- const validateError = validate$v(input);
1844
+ const validateError = validate$x(input);
1660
1845
  if (validateError !== null) {
1661
1846
  throw validateError;
1662
1847
  }
1663
1848
  }
1664
1849
  const key = keyBuilderFromType$2(luvio, input);
1665
- const ttlToUse = TTL$7;
1666
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "epc", VERSION$9, RepresentationType$8, equals$9);
1850
+ const ttlToUse = TTL$8;
1851
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
1667
1852
  return createLink(key);
1668
1853
  };
1669
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1854
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
1670
1855
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1671
1856
  const rootKey = keyBuilderFromType$2(luvio, input);
1672
1857
  rootKeySet.set(rootKey, {
1673
1858
  namespace: keyPrefix,
1674
- representationName: RepresentationType$8,
1859
+ representationName: RepresentationType$9,
1675
1860
  mergeable: false
1676
1861
  });
1677
1862
  }
1678
1863
 
1679
- function select$h(luvio, params) {
1680
- return select$i();
1864
+ function select$j(luvio, params) {
1865
+ return select$k();
1681
1866
  }
1682
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1683
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
1867
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1868
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
1684
1869
  }
1685
- function ingestSuccess$8(luvio, resourceParams, response) {
1870
+ function ingestSuccess$9(luvio, resourceParams, response) {
1686
1871
  const { body } = response;
1687
1872
  const key = keyBuilderFromType$2(luvio, body);
1688
- luvio.storeIngest(key, ingest$8, body);
1873
+ luvio.storeIngest(key, ingest$9, body);
1689
1874
  const snapshot = luvio.storeLookup({
1690
1875
  recordId: key,
1691
- node: select$h(),
1876
+ node: select$j(),
1692
1877
  variables: {},
1693
1878
  });
1694
1879
  if (process.env.NODE_ENV !== 'production') {
@@ -1699,7 +1884,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
1699
1884
  deepFreeze(snapshot.data);
1700
1885
  return snapshot;
1701
1886
  }
1702
- function createResourceRequest$8(config) {
1887
+ function createResourceRequest$9(config) {
1703
1888
  const headers = {};
1704
1889
  return {
1705
1890
  baseUri: '/services/data/v63.0',
@@ -1713,47 +1898,47 @@ function createResourceRequest$8(config) {
1713
1898
  };
1714
1899
  }
1715
1900
 
1716
- const adapterName$8 = 'patchIndexSetting';
1901
+ const adapterName$9 = 'patchIndexSetting';
1717
1902
  const patchIndexSetting_ConfigPropertyMetadata = [
1718
1903
  generateParamConfigMetadata('settingId', true, 0 /* UrlParameter */, 0 /* String */),
1719
1904
  generateParamConfigMetadata('setting', false, 2 /* Body */, 4 /* Unsupported */),
1720
1905
  ];
1721
- const patchIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, patchIndexSetting_ConfigPropertyMetadata);
1722
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$e(patchIndexSetting_ConfigPropertyMetadata);
1723
- function typeCheckConfig$8(untrustedConfig) {
1906
+ const patchIndexSetting_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, patchIndexSetting_ConfigPropertyMetadata);
1907
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$f(patchIndexSetting_ConfigPropertyMetadata);
1908
+ function typeCheckConfig$9(untrustedConfig) {
1724
1909
  const config = {};
1725
- typeCheckConfig$e(untrustedConfig, config, patchIndexSetting_ConfigPropertyMetadata);
1910
+ typeCheckConfig$f(untrustedConfig, config, patchIndexSetting_ConfigPropertyMetadata);
1726
1911
  const untrustedConfig_setting = untrustedConfig.setting;
1727
- const referenceSettingInputRepresentationValidationError = validate$w(untrustedConfig_setting);
1912
+ const referenceSettingInputRepresentationValidationError = validate$y(untrustedConfig_setting);
1728
1913
  if (referenceSettingInputRepresentationValidationError === null) {
1729
1914
  config.setting = untrustedConfig_setting;
1730
1915
  }
1731
1916
  return config;
1732
1917
  }
1733
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1918
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1734
1919
  if (!untrustedIsObject(untrustedConfig)) {
1735
1920
  return null;
1736
1921
  }
1737
1922
  if (process.env.NODE_ENV !== 'production') {
1738
1923
  validateConfig(untrustedConfig, configPropertyNames);
1739
1924
  }
1740
- const config = typeCheckConfig$8(untrustedConfig);
1925
+ const config = typeCheckConfig$9(untrustedConfig);
1741
1926
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1742
1927
  return null;
1743
1928
  }
1744
1929
  return config;
1745
1930
  }
1746
- function buildNetworkSnapshot$8(luvio, config, options) {
1747
- const resourceParams = createResourceParams$8(config);
1748
- const request = createResourceRequest$8(resourceParams);
1931
+ function buildNetworkSnapshot$9(luvio, config, options) {
1932
+ const resourceParams = createResourceParams$9(config);
1933
+ const request = createResourceRequest$9(resourceParams);
1749
1934
  return luvio.dispatchResourceRequest(request, options)
1750
1935
  .then((response) => {
1751
1936
  return luvio.handleSuccessResponse(() => {
1752
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1937
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
1753
1938
  return luvio.storeBroadcast().then(() => snapshot);
1754
1939
  }, () => {
1755
1940
  const cache = new StoreKeyMap();
1756
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1941
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1757
1942
  return cache;
1758
1943
  });
1759
1944
  }, (response) => {
@@ -1763,18 +1948,18 @@ function buildNetworkSnapshot$8(luvio, config, options) {
1763
1948
  }
1764
1949
  const patchIndexSettingAdapterFactory = (luvio) => {
1765
1950
  return function patchIndexSetting(untrustedConfig) {
1766
- const config = validateAdapterConfig$8(untrustedConfig, patchIndexSetting_ConfigPropertyNames);
1951
+ const config = validateAdapterConfig$9(untrustedConfig, patchIndexSetting_ConfigPropertyNames);
1767
1952
  // Invalid or incomplete config
1768
1953
  if (config === null) {
1769
1954
  throw new Error('Invalid config for "patchIndexSetting"');
1770
1955
  }
1771
- return buildNetworkSnapshot$8(luvio, config);
1956
+ return buildNetworkSnapshot$9(luvio, config);
1772
1957
  };
1773
1958
  };
1774
1959
 
1775
- const TTL$6 = 6000;
1776
- const VERSION$8 = "b1566a76d9cf30f61b94a2d92caab70d";
1777
- function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1960
+ const TTL$7 = 6000;
1961
+ const VERSION$9 = "b1566a76d9cf30f61b94a2d92caab70d";
1962
+ function validate$w(obj, path = 'SnapshotCollectionOutputRepresentation') {
1778
1963
  const v_error = (() => {
1779
1964
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1780
1965
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1788,7 +1973,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1788
1973
  for (let i = 0; i < obj_errors.length; i++) {
1789
1974
  const obj_errors_item = obj_errors[i];
1790
1975
  const path_errors_item = path_errors + '[' + i + ']';
1791
- const referencepath_errors_itemValidationError = validate$J(obj_errors_item, path_errors_item);
1976
+ const referencepath_errors_itemValidationError = validate$N(obj_errors_item, path_errors_item);
1792
1977
  if (referencepath_errors_itemValidationError !== null) {
1793
1978
  let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1794
1979
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1805,7 +1990,7 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1805
1990
  for (let i = 0; i < obj_snapshots.length; i++) {
1806
1991
  const obj_snapshots_item = obj_snapshots[i];
1807
1992
  const path_snapshots_item = path_snapshots + '[' + i + ']';
1808
- const referencepath_snapshots_itemValidationError = validate$B(obj_snapshots_item, path_snapshots_item);
1993
+ const referencepath_snapshots_itemValidationError = validate$D(obj_snapshots_item, path_snapshots_item);
1809
1994
  if (referencepath_snapshots_itemValidationError !== null) {
1810
1995
  let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshots_item + '")\n';
1811
1996
  message += referencepath_snapshots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1823,11 +2008,275 @@ function validate$u(obj, path = 'SnapshotCollectionOutputRepresentation') {
1823
2008
  })();
1824
2009
  return v_error === undefined ? null : v_error;
1825
2010
  }
1826
- const RepresentationType$7 = 'SnapshotCollectionOutputRepresentation';
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';
1827
2276
  function normalize$7(input, existing, path, luvio, store, timestamp) {
1828
2277
  return input;
1829
2278
  }
1830
- const select$g = function SnapshotCollectionOutputRepresentationSelect() {
2279
+ const select$g = function SnapshotIndexErrorOutputRepresentationSelect() {
1831
2280
  return {
1832
2281
  kind: 'Fragment',
1833
2282
  version: VERSION$8,
@@ -1841,7 +2290,7 @@ function equals$8(existing, incoming) {
1841
2290
  }
1842
2291
  return true;
1843
2292
  }
1844
- const ingest$7 = function SnapshotCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2293
+ const ingest$7 = function SnapshotIndexErrorOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1845
2294
  if (process.env.NODE_ENV !== 'production') {
1846
2295
  const validateError = validate$u(input);
1847
2296
  if (validateError !== null) {
@@ -1867,7 +2316,7 @@ function select$f(luvio, params) {
1867
2316
  return select$g();
1868
2317
  }
1869
2318
  function keyBuilder$d(luvio, params) {
1870
- return keyPrefix + '::SnapshotCollectionOutputRepresentation:(' + 'numberOfIndexLogs:' + params.queryParams.numberOfIndexLogs + ')';
2319
+ return keyPrefix + '::SnapshotIndexErrorOutputRepresentation:(' + 'indexId:' + params.queryParams.indexId + ',' + 'snapshotIndexId:' + params.queryParams.snapshotIndexId + ')';
1871
2320
  }
1872
2321
  function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1873
2322
  getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
@@ -1905,7 +2354,7 @@ function createResourceRequest$7(config) {
1905
2354
  const headers = {};
1906
2355
  return {
1907
2356
  baseUri: '/services/data/v63.0',
1908
- basePath: '/connect/pcm/index/snapshots',
2357
+ basePath: '/connect/pcm/index/error',
1909
2358
  method: 'get',
1910
2359
  body: null,
1911
2360
  urlParams: {},
@@ -1915,19 +2364,20 @@ function createResourceRequest$7(config) {
1915
2364
  };
1916
2365
  }
1917
2366
 
1918
- const adapterName$7 = 'getSnapshots';
1919
- const getSnapshots_ConfigPropertyMetadata = [
1920
- generateParamConfigMetadata('numberOfIndexLogs', false, 1 /* QueryParameter */, 3 /* Integer */),
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 */),
1921
2371
  ];
1922
- const getSnapshots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSnapshots_ConfigPropertyMetadata);
1923
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$e(getSnapshots_ConfigPropertyMetadata);
2372
+ const getIndexError_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getIndexError_ConfigPropertyMetadata);
2373
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$f(getIndexError_ConfigPropertyMetadata);
1924
2374
  function keyBuilder$c(luvio, config) {
1925
2375
  const resourceParams = createResourceParams$7(config);
1926
2376
  return keyBuilder$d(luvio, resourceParams);
1927
2377
  }
1928
2378
  function typeCheckConfig$7(untrustedConfig) {
1929
2379
  const config = {};
1930
- typeCheckConfig$e(untrustedConfig, config, getSnapshots_ConfigPropertyMetadata);
2380
+ typeCheckConfig$f(untrustedConfig, config, getIndexError_ConfigPropertyMetadata);
1931
2381
  return config;
1932
2382
  }
1933
2383
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -1976,7 +2426,7 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1976
2426
  });
1977
2427
  }
1978
2428
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1979
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2429
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1980
2430
  }
1981
2431
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1982
2432
  const { luvio, config } = context;
@@ -1991,8 +2441,8 @@ function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1991
2441
  });
1992
2442
  return cacheSnapshot;
1993
2443
  }
1994
- const getSnapshotsAdapterFactory = (luvio) => function epc__getSnapshots(untrustedConfig, requestContext) {
1995
- const config = validateAdapterConfig$7(untrustedConfig, getSnapshots_ConfigPropertyNames);
2444
+ const getIndexErrorAdapterFactory = (luvio) => function epc__getIndexError(untrustedConfig, requestContext) {
2445
+ const config = validateAdapterConfig$7(untrustedConfig, getIndexError_ConfigPropertyNames);
1996
2446
  // Invalid or incomplete config
1997
2447
  if (config === null) {
1998
2448
  return null;
@@ -2166,7 +2616,7 @@ const createProductAttributeDefinition_ConfigPropertyMetadata = [
2166
2616
  generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
2167
2617
  ];
2168
2618
  const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createProductAttributeDefinition_ConfigPropertyMetadata);
2169
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$e(createProductAttributeDefinition_ConfigPropertyMetadata);
2619
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$f(createProductAttributeDefinition_ConfigPropertyMetadata);
2170
2620
  function typeCheckConfig$6(untrustedConfig) {
2171
2621
  const config = {};
2172
2622
  const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
@@ -2441,14 +2891,14 @@ const getProductFlowByProductId_ConfigPropertyMetadata = [
2441
2891
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
2442
2892
  ];
2443
2893
  const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getProductFlowByProductId_ConfigPropertyMetadata);
2444
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$e(getProductFlowByProductId_ConfigPropertyMetadata);
2894
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$f(getProductFlowByProductId_ConfigPropertyMetadata);
2445
2895
  function keyBuilder$9(luvio, config) {
2446
2896
  const resourceParams = createResourceParams$5(config);
2447
2897
  return keyBuilder$a(luvio, resourceParams);
2448
2898
  }
2449
2899
  function typeCheckConfig$5(untrustedConfig) {
2450
2900
  const config = {};
2451
- typeCheckConfig$e(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
2901
+ typeCheckConfig$f(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
2452
2902
  return config;
2453
2903
  }
2454
2904
  function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
@@ -2497,7 +2947,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
2497
2947
  });
2498
2948
  }
2499
2949
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
2500
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2950
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2501
2951
  }
2502
2952
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
2503
2953
  const { luvio, config } = context;
@@ -3375,14 +3825,14 @@ const getProductAttributesByProductId_ConfigPropertyMetadata = [
3375
3825
  generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
3376
3826
  ];
3377
3827
  const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getProductAttributesByProductId_ConfigPropertyMetadata);
3378
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$e(getProductAttributesByProductId_ConfigPropertyMetadata);
3828
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$f(getProductAttributesByProductId_ConfigPropertyMetadata);
3379
3829
  function keyBuilder$7(luvio, config) {
3380
3830
  const resourceParams = createResourceParams$4(config);
3381
3831
  return keyBuilder$8(luvio, resourceParams);
3382
3832
  }
3383
3833
  function typeCheckConfig$4(untrustedConfig) {
3384
3834
  const config = {};
3385
- typeCheckConfig$e(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
3835
+ typeCheckConfig$f(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
3386
3836
  return config;
3387
3837
  }
3388
3838
  function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
@@ -3431,7 +3881,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
3431
3881
  });
3432
3882
  }
3433
3883
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
3434
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
3884
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
3435
3885
  }
3436
3886
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
3437
3887
  const { luvio, config } = context;
@@ -3698,14 +4148,14 @@ const getProductById_ConfigPropertyMetadata = [
3698
4148
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3699
4149
  ];
3700
4150
  const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getProductById_ConfigPropertyMetadata);
3701
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$e(getProductById_ConfigPropertyMetadata);
4151
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$f(getProductById_ConfigPropertyMetadata);
3702
4152
  function keyBuilder$5(luvio, config) {
3703
4153
  const resourceParams = createResourceParams$3(config);
3704
4154
  return keyBuilder$6(luvio, resourceParams);
3705
4155
  }
3706
4156
  function typeCheckConfig$3(untrustedConfig) {
3707
4157
  const config = {};
3708
- typeCheckConfig$e(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
4158
+ typeCheckConfig$f(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
3709
4159
  return config;
3710
4160
  }
3711
4161
  function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
@@ -3754,7 +4204,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
3754
4204
  });
3755
4205
  }
3756
4206
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3757
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
4207
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3758
4208
  }
3759
4209
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3760
4210
  const { luvio, config } = context;
@@ -4084,14 +4534,14 @@ const getContextDefinitionInfoById_ConfigPropertyMetadata = [
4084
4534
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
4085
4535
  ];
4086
4536
  const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContextDefinitionInfoById_ConfigPropertyMetadata);
4087
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$e(getContextDefinitionInfoById_ConfigPropertyMetadata);
4537
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$f(getContextDefinitionInfoById_ConfigPropertyMetadata);
4088
4538
  function keyBuilder$3(luvio, config) {
4089
4539
  const resourceParams = createResourceParams$2(config);
4090
4540
  return keyBuilder$4(luvio, resourceParams);
4091
4541
  }
4092
4542
  function typeCheckConfig$2(untrustedConfig) {
4093
4543
  const config = {};
4094
- typeCheckConfig$e(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
4544
+ typeCheckConfig$f(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
4095
4545
  return config;
4096
4546
  }
4097
4547
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -4140,7 +4590,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
4140
4590
  });
4141
4591
  }
4142
4592
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
4143
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4593
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
4144
4594
  }
4145
4595
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
4146
4596
  const { luvio, config } = context;
@@ -4372,14 +4822,14 @@ const getConfigRuleMetadata_ConfigPropertyMetadata = [
4372
4822
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
4373
4823
  ];
4374
4824
  const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConfigRuleMetadata_ConfigPropertyMetadata);
4375
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$e(getConfigRuleMetadata_ConfigPropertyMetadata);
4825
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$f(getConfigRuleMetadata_ConfigPropertyMetadata);
4376
4826
  function keyBuilder$1(luvio, config) {
4377
4827
  const resourceParams = createResourceParams$1(config);
4378
4828
  return keyBuilder$2(luvio, resourceParams);
4379
4829
  }
4380
4830
  function typeCheckConfig$1(untrustedConfig) {
4381
4831
  const config = {};
4382
- typeCheckConfig$e(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
4832
+ typeCheckConfig$f(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
4383
4833
  return config;
4384
4834
  }
4385
4835
  function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
@@ -4428,7 +4878,7 @@ function buildNetworkSnapshot$1(luvio, config, options) {
4428
4878
  });
4429
4879
  }
4430
4880
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
4431
- return buildNetworkSnapshotCachePolicy$8(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4881
+ return buildNetworkSnapshotCachePolicy$9(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
4432
4882
  }
4433
4883
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4434
4884
  const { luvio, config } = context;
@@ -4671,10 +5121,10 @@ const fetchRelatedRecords_ConfigPropertyMetadata = [
4671
5121
  generateParamConfigMetadata('relatedObjectNodes', true, 2 /* Body */, 4 /* Unsupported */, true),
4672
5122
  ];
4673
5123
  const fetchRelatedRecords_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, fetchRelatedRecords_ConfigPropertyMetadata);
4674
- const createResourceParams = /*#__PURE__*/ createResourceParams$e(fetchRelatedRecords_ConfigPropertyMetadata);
5124
+ const createResourceParams = /*#__PURE__*/ createResourceParams$f(fetchRelatedRecords_ConfigPropertyMetadata);
4675
5125
  function typeCheckConfig(untrustedConfig) {
4676
5126
  const config = {};
4677
- typeCheckConfig$e(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
5127
+ typeCheckConfig$f(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
4678
5128
  const untrustedConfig_relatedObjectNodes = untrustedConfig.relatedObjectNodes;
4679
5129
  if (ArrayIsArray$1(untrustedConfig_relatedObjectNodes)) {
4680
5130
  const untrustedConfig_relatedObjectNodes_array = [];
@@ -4728,4 +5178,4 @@ const fetchRelatedRecordsAdapterFactory = (luvio) => {
4728
5178
  };
4729
5179
  };
4730
5180
 
4731
- 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 };