@salesforce/lds-adapters-industries-epc 1.302.0 → 1.303.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.
Files changed (30) hide show
  1. package/dist/es/es2018/industries-epc.js +1180 -704
  2. package/dist/es/es2018/types/src/generated/adapters/deploySnapshotIndex.d.ts +1 -1
  3. package/dist/es/es2018/types/src/generated/adapters/fetchRelatedRecords.d.ts +17 -0
  4. package/dist/es/es2018/types/src/generated/adapters/updateIndexConfigurations.d.ts +1 -1
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
  7. package/dist/es/es2018/types/src/generated/resources/postConnectPcmIndexDeploy.d.ts +1 -1
  8. package/dist/es/es2018/types/src/generated/resources/postConnectPcmRelatedRecordsByEntityName.d.ts +16 -0
  9. package/dist/es/es2018/types/src/generated/resources/putConnectPcmIndexConfigurations.d.ts +1 -1
  10. package/dist/es/es2018/types/src/generated/types/EpcErrorOutputRepresentation.d.ts +43 -0
  11. package/dist/es/es2018/types/src/generated/types/IndexConfigurationCollectionInputRepresentation.d.ts +3 -3
  12. package/dist/es/es2018/types/src/generated/types/IndexConfigurationCollectionOutputRepresentation.d.ts +14 -7
  13. package/dist/es/es2018/types/src/generated/types/IndexConfigurationsUpdateOutputRepresentation.d.ts +14 -7
  14. package/dist/es/es2018/types/src/generated/types/MetadataOutputRepresentation.d.ts +3 -3
  15. package/dist/es/es2018/types/src/generated/types/ObjectInfoOutputRepresentation.d.ts +5 -5
  16. package/dist/es/es2018/types/src/generated/types/PCMRecordOutputRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/RelatedObjectRecordsOutputRepresentation.d.ts +35 -0
  18. package/dist/es/es2018/types/src/generated/types/RelatedRecordsInputRepresentation.d.ts +34 -0
  19. package/dist/es/es2018/types/src/generated/types/RelatedRecordsInputWrapperRepresentation.d.ts +28 -0
  20. package/dist/es/es2018/types/src/generated/types/RelatedRecordsListOutputRepresentation.d.ts +46 -0
  21. package/dist/es/es2018/types/src/generated/types/RelatedRecordsOutputRepresentation.d.ts +32 -0
  22. package/dist/es/es2018/types/src/generated/types/SnapshotCollectionOutputRepresentation.d.ts +10 -3
  23. package/dist/es/es2018/types/src/generated/types/SnapshotDeploymentInputRepresentation.d.ts +3 -3
  24. package/dist/es/es2018/types/src/generated/types/SnapshotDeploymentOutputRepresentation.d.ts +12 -5
  25. package/dist/es/es2018/types/src/generated/types/SnapshotIndexOutputRepresentation.d.ts +3 -3
  26. package/dist/es/es2018/types/src/generated/types/SnapshotOutputRepresentation.d.ts +5 -5
  27. package/package.json +4 -4
  28. package/sfdc/index.js +854 -375
  29. package/src/raml/api.raml +177 -0
  30. package/src/raml/luvio.raml +10 -1
@@ -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$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$b } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$c, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$7, typeCheckConfig as typeCheckConfig$c } 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$C(obj, path = 'DeactivateInputRepresentation') {
95
+ function validate$I(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$C(obj, path = 'DeactivateInputRepresentation') {
125
125
  return v_error === undefined ? null : v_error;
126
126
  }
127
127
 
128
- function validate$B(obj, path = 'ErrorOutputRepresentation') {
128
+ function validate$H(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$B(obj, path = 'ErrorOutputRepresentation') {
156
156
  return v_error === undefined ? null : v_error;
157
157
  }
158
158
 
159
- const TTL$9 = 6000;
160
- const VERSION$b = "67abdeaa299bae24f468fd2e78cd1e1e";
161
- function validate$A(obj, path = 'RecordIdMapOutputRepresentation') {
159
+ const TTL$a = 6000;
160
+ const VERSION$c = "67abdeaa299bae24f468fd2e78cd1e1e";
161
+ function validate$G(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$A(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$B(obj_errors_item, path_errors_item);
174
+ const referencepath_errors_itemValidationError = validate$H(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$A(obj, path = 'RecordIdMapOutputRepresentation') {
186
186
  })();
187
187
  return v_error === undefined ? null : v_error;
188
188
  }
189
- const RepresentationType$a = 'RecordIdMapOutputRepresentation';
190
- function keyBuilder$h(luvio, config) {
191
- return keyPrefix + '::' + RepresentationType$a + ':' + config.message;
189
+ const RepresentationType$b = 'RecordIdMapOutputRepresentation';
190
+ function keyBuilder$i(luvio, config) {
191
+ return keyPrefix + '::' + RepresentationType$b + ':' + config.message;
192
192
  }
193
- function keyBuilderFromType$3(luvio, object) {
193
+ function keyBuilderFromType$4(luvio, object) {
194
194
  const keyParams = {
195
195
  message: object.status
196
196
  };
197
- return keyBuilder$h(luvio, keyParams);
197
+ return keyBuilder$i(luvio, keyParams);
198
198
  }
199
- function normalize$a(input, existing, path, luvio, store, timestamp) {
199
+ function normalize$b(input, existing, path, luvio, store, timestamp) {
200
200
  return input;
201
201
  }
202
- const select$m = function RecordIdMapOutputRepresentationSelect() {
202
+ const select$o = function RecordIdMapOutputRepresentationSelect() {
203
203
  return {
204
204
  kind: 'Fragment',
205
- version: VERSION$b,
205
+ version: VERSION$c,
206
206
  private: [],
207
207
  opaque: true
208
208
  };
209
209
  };
210
- function equals$b(existing, incoming) {
210
+ function equals$c(existing, incoming) {
211
211
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
212
212
  return false;
213
213
  }
214
214
  return true;
215
215
  }
216
- const ingest$a = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
216
+ const ingest$b = function RecordIdMapOutputRepresentationIngest(input, path, luvio, store, timestamp) {
217
217
  if (process.env.NODE_ENV !== 'production') {
218
- const validateError = validate$A(input);
218
+ const validateError = validate$G(input);
219
219
  if (validateError !== null) {
220
220
  throw validateError;
221
221
  }
222
222
  }
223
- const key = keyBuilderFromType$3(luvio, input);
224
- const ttlToUse = TTL$9;
225
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
223
+ const key = keyBuilderFromType$4(luvio, input);
224
+ const ttlToUse = TTL$a;
225
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$b, "epc", VERSION$c, RepresentationType$b, equals$c);
226
226
  return createLink(key);
227
227
  };
228
- function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
228
+ function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
229
229
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
230
- const rootKey = keyBuilderFromType$3(luvio, input);
230
+ const rootKey = keyBuilderFromType$4(luvio, input);
231
231
  rootKeySet.set(rootKey, {
232
232
  namespace: keyPrefix,
233
- representationName: RepresentationType$a,
233
+ representationName: RepresentationType$b,
234
234
  mergeable: false
235
235
  });
236
236
  }
237
237
 
238
- function select$l(luvio, params) {
239
- return select$m();
238
+ function select$n(luvio, params) {
239
+ return select$o();
240
240
  }
241
- function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
242
- getTypeCacheKeys$a(storeKeyMap, luvio, response);
241
+ function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
242
+ getTypeCacheKeys$b(storeKeyMap, luvio, response);
243
243
  }
244
- function ingestSuccess$a(luvio, resourceParams, response) {
244
+ function ingestSuccess$b(luvio, resourceParams, response) {
245
245
  const { body } = response;
246
- const key = keyBuilderFromType$3(luvio, body);
247
- luvio.storeIngest(key, ingest$a, body);
246
+ const key = keyBuilderFromType$4(luvio, body);
247
+ luvio.storeIngest(key, ingest$b, body);
248
248
  const snapshot = luvio.storeLookup({
249
249
  recordId: key,
250
- node: select$l(),
250
+ node: select$n(),
251
251
  variables: {},
252
252
  });
253
253
  if (process.env.NODE_ENV !== 'production') {
@@ -258,7 +258,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
258
258
  deepFreeze(snapshot.data);
259
259
  return snapshot;
260
260
  }
261
- function createResourceRequest$a(config) {
261
+ function createResourceRequest$b(config) {
262
262
  const headers = {};
263
263
  return {
264
264
  baseUri: '/services/data/v62.0',
@@ -272,45 +272,45 @@ function createResourceRequest$a(config) {
272
272
  };
273
273
  }
274
274
 
275
- const adapterName$a = 'deactivate';
275
+ const adapterName$b = 'deactivate';
276
276
  const deactivate_ConfigPropertyMetadata = [
277
277
  generateParamConfigMetadata('deactivateInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
278
278
  ];
279
- const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, deactivate_ConfigPropertyMetadata);
280
- const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(deactivate_ConfigPropertyMetadata);
281
- function typeCheckConfig$a(untrustedConfig) {
279
+ const deactivate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, deactivate_ConfigPropertyMetadata);
280
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$c(deactivate_ConfigPropertyMetadata);
281
+ function typeCheckConfig$b(untrustedConfig) {
282
282
  const config = {};
283
283
  const untrustedConfig_deactivateInputPayload = untrustedConfig.deactivateInputPayload;
284
- const referenceDeactivateInputRepresentationValidationError = validate$C(untrustedConfig_deactivateInputPayload);
284
+ const referenceDeactivateInputRepresentationValidationError = validate$I(untrustedConfig_deactivateInputPayload);
285
285
  if (referenceDeactivateInputRepresentationValidationError === null) {
286
286
  config.deactivateInputPayload = untrustedConfig_deactivateInputPayload;
287
287
  }
288
288
  return config;
289
289
  }
290
- function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
290
+ function validateAdapterConfig$b(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$a(untrustedConfig);
297
+ const config = typeCheckConfig$b(untrustedConfig);
298
298
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
299
299
  return null;
300
300
  }
301
301
  return config;
302
302
  }
303
- function buildNetworkSnapshot$a(luvio, config, options) {
304
- const resourceParams = createResourceParams$a(config);
305
- const request = createResourceRequest$a(resourceParams);
303
+ function buildNetworkSnapshot$b(luvio, config, options) {
304
+ const resourceParams = createResourceParams$b(config);
305
+ const request = createResourceRequest$b(resourceParams);
306
306
  return luvio.dispatchResourceRequest(request, options)
307
307
  .then((response) => {
308
308
  return luvio.handleSuccessResponse(() => {
309
- const snapshot = ingestSuccess$a(luvio, resourceParams, response);
309
+ const snapshot = ingestSuccess$b(luvio, resourceParams, response);
310
310
  return luvio.storeBroadcast().then(() => snapshot);
311
311
  }, () => {
312
312
  const cache = new StoreKeyMap();
313
- getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
313
+ getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
314
314
  return cache;
315
315
  });
316
316
  }, (response) => {
@@ -320,16 +320,67 @@ function buildNetworkSnapshot$a(luvio, config, options) {
320
320
  }
321
321
  const deactivateAdapterFactory = (luvio) => {
322
322
  return function deactivate(untrustedConfig) {
323
- const config = validateAdapterConfig$a(untrustedConfig, deactivate_ConfigPropertyNames);
323
+ const config = validateAdapterConfig$b(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$a(luvio, config);
328
+ return buildNetworkSnapshot$b(luvio, config);
329
329
  };
330
330
  };
331
331
 
332
- function validate$z(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
332
+ function validate$F(obj, path = 'EpcErrorOutputRepresentation') {
333
+ const v_error = (() => {
334
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
335
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
336
+ }
337
+ if (obj.errorCode !== undefined) {
338
+ const obj_errorCode = obj.errorCode;
339
+ const path_errorCode = path + '.errorCode';
340
+ if (typeof obj_errorCode !== 'string') {
341
+ return new TypeError('Expected "string" but received "' + typeof obj_errorCode + '" (at "' + path_errorCode + '")');
342
+ }
343
+ }
344
+ if (obj.messageDetail !== undefined) {
345
+ const obj_messageDetail = obj.messageDetail;
346
+ const path_messageDetail = path + '.messageDetail';
347
+ if (typeof obj_messageDetail !== 'string') {
348
+ return new TypeError('Expected "string" but received "' + typeof obj_messageDetail + '" (at "' + path_messageDetail + '")');
349
+ }
350
+ }
351
+ if (obj.nodeProductId !== undefined) {
352
+ const obj_nodeProductId = obj.nodeProductId;
353
+ const path_nodeProductId = path + '.nodeProductId';
354
+ if (typeof obj_nodeProductId !== 'string') {
355
+ return new TypeError('Expected "string" but received "' + typeof obj_nodeProductId + '" (at "' + path_nodeProductId + '")');
356
+ }
357
+ }
358
+ if (obj.recordId !== undefined) {
359
+ const obj_recordId = obj.recordId;
360
+ const path_recordId = path + '.recordId';
361
+ if (typeof obj_recordId !== 'string') {
362
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
363
+ }
364
+ }
365
+ if (obj.recordName !== undefined) {
366
+ const obj_recordName = obj.recordName;
367
+ const path_recordName = path + '.recordName';
368
+ if (typeof obj_recordName !== 'string') {
369
+ return new TypeError('Expected "string" but received "' + typeof obj_recordName + '" (at "' + path_recordName + '")');
370
+ }
371
+ }
372
+ if (obj.source !== undefined) {
373
+ const obj_source = obj.source;
374
+ const path_source = path + '.source';
375
+ if (typeof obj_source !== 'string') {
376
+ return new TypeError('Expected "string" but received "' + typeof obj_source + '" (at "' + path_source + '")');
377
+ }
378
+ }
379
+ })();
380
+ return v_error === undefined ? null : v_error;
381
+ }
382
+
383
+ function validate$E(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
333
384
  const v_error = (() => {
334
385
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
335
386
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -387,7 +438,7 @@ function validate$z(obj, path = 'IndexConfigurationFieldOutputRepresentation') {
387
438
  return v_error === undefined ? null : v_error;
388
439
  }
389
440
 
390
- function validate$y(obj, path = 'FieldsInfoOutputRepresentation') {
441
+ function validate$D(obj, path = 'FieldsInfoOutputRepresentation') {
391
442
  const v_error = (() => {
392
443
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
393
444
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -431,153 +482,189 @@ function validate$y(obj, path = 'FieldsInfoOutputRepresentation') {
431
482
  return v_error === undefined ? null : v_error;
432
483
  }
433
484
 
434
- function validate$x(obj, path = 'ObjectInfoOutputRepresentation') {
485
+ function validate$C(obj, path = 'ObjectInfoOutputRepresentation') {
435
486
  const v_error = (() => {
436
487
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
437
488
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
438
489
  }
439
- const obj_fields = obj.fields;
440
- const path_fields = path + '.fields';
441
- if (!ArrayIsArray(obj_fields)) {
442
- return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
443
- }
444
- for (let i = 0; i < obj_fields.length; i++) {
445
- const obj_fields_item = obj_fields[i];
446
- const path_fields_item = path_fields + '[' + i + ']';
447
- const referencepath_fields_itemValidationError = validate$y(obj_fields_item, path_fields_item);
448
- if (referencepath_fields_itemValidationError !== null) {
449
- let message = 'Object doesn\'t match FieldsInfoOutputRepresentation (at "' + path_fields_item + '")\n';
450
- message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
451
- return new TypeError(message);
490
+ if (obj.fields !== undefined) {
491
+ const obj_fields = obj.fields;
492
+ const path_fields = path + '.fields';
493
+ if (!ArrayIsArray(obj_fields)) {
494
+ return new TypeError('Expected "array" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
495
+ }
496
+ for (let i = 0; i < obj_fields.length; i++) {
497
+ const obj_fields_item = obj_fields[i];
498
+ const path_fields_item = path_fields + '[' + i + ']';
499
+ const referencepath_fields_itemValidationError = validate$D(obj_fields_item, path_fields_item);
500
+ if (referencepath_fields_itemValidationError !== null) {
501
+ let message = 'Object doesn\'t match FieldsInfoOutputRepresentation (at "' + path_fields_item + '")\n';
502
+ message += referencepath_fields_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
503
+ return new TypeError(message);
504
+ }
452
505
  }
453
506
  }
454
- const obj_name = obj.name;
455
- const path_name = path + '.name';
456
- if (typeof obj_name !== 'string') {
457
- return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
507
+ if (obj.name !== undefined) {
508
+ const obj_name = obj.name;
509
+ const path_name = path + '.name';
510
+ if (typeof obj_name !== 'string') {
511
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
512
+ }
458
513
  }
459
514
  })();
460
515
  return v_error === undefined ? null : v_error;
461
516
  }
462
517
 
463
- function validate$w(obj, path = 'MetadataOutputRepresentation') {
518
+ function validate$B(obj, path = 'MetadataOutputRepresentation') {
464
519
  const v_error = (() => {
465
520
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
466
521
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
467
522
  }
468
- const obj_objectInfos = obj.objectInfos;
469
- const path_objectInfos = path + '.objectInfos';
470
- if (!ArrayIsArray(obj_objectInfos)) {
471
- return new TypeError('Expected "array" but received "' + typeof obj_objectInfos + '" (at "' + path_objectInfos + '")');
472
- }
473
- for (let i = 0; i < obj_objectInfos.length; i++) {
474
- const obj_objectInfos_item = obj_objectInfos[i];
475
- const path_objectInfos_item = path_objectInfos + '[' + i + ']';
476
- const referencepath_objectInfos_itemValidationError = validate$x(obj_objectInfos_item, path_objectInfos_item);
477
- if (referencepath_objectInfos_itemValidationError !== null) {
478
- let message = 'Object doesn\'t match ObjectInfoOutputRepresentation (at "' + path_objectInfos_item + '")\n';
479
- message += referencepath_objectInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
480
- return new TypeError(message);
523
+ if (obj.objectInfos !== undefined) {
524
+ const obj_objectInfos = obj.objectInfos;
525
+ const path_objectInfos = path + '.objectInfos';
526
+ if (!ArrayIsArray(obj_objectInfos)) {
527
+ return new TypeError('Expected "array" but received "' + typeof obj_objectInfos + '" (at "' + path_objectInfos + '")');
528
+ }
529
+ for (let i = 0; i < obj_objectInfos.length; i++) {
530
+ const obj_objectInfos_item = obj_objectInfos[i];
531
+ const path_objectInfos_item = path_objectInfos + '[' + i + ']';
532
+ const referencepath_objectInfos_itemValidationError = validate$C(obj_objectInfos_item, path_objectInfos_item);
533
+ if (referencepath_objectInfos_itemValidationError !== null) {
534
+ let message = 'Object doesn\'t match ObjectInfoOutputRepresentation (at "' + path_objectInfos_item + '")\n';
535
+ message += referencepath_objectInfos_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
536
+ return new TypeError(message);
537
+ }
481
538
  }
482
539
  }
483
540
  })();
484
541
  return v_error === undefined ? null : v_error;
485
542
  }
486
543
 
487
- const TTL$8 = 6000;
488
- const VERSION$a = "069728c2c1342b59a45c26b737c96f48";
489
- function validate$v(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
544
+ const TTL$9 = 6000;
545
+ const VERSION$b = "61cfe23ab3d064d226af215df6681afc";
546
+ function validate$A(obj, path = 'IndexConfigurationCollectionOutputRepresentation') {
490
547
  const v_error = (() => {
491
548
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
492
549
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
493
550
  }
494
- const obj_correlationId = obj.correlationId;
495
- const path_correlationId = path + '.correlationId';
496
- if (typeof obj_correlationId !== 'string') {
497
- return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
551
+ if (obj.correlationId !== undefined) {
552
+ const obj_correlationId = obj.correlationId;
553
+ const path_correlationId = path + '.correlationId';
554
+ if (typeof obj_correlationId !== 'string') {
555
+ return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
556
+ }
557
+ }
558
+ if (obj.errors !== undefined) {
559
+ const obj_errors = obj.errors;
560
+ const path_errors = path + '.errors';
561
+ if (!ArrayIsArray(obj_errors)) {
562
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
563
+ }
564
+ for (let i = 0; i < obj_errors.length; i++) {
565
+ const obj_errors_item = obj_errors[i];
566
+ const path_errors_item = path_errors + '[' + i + ']';
567
+ const referencepath_errors_itemValidationError = validate$F(obj_errors_item, path_errors_item);
568
+ if (referencepath_errors_itemValidationError !== null) {
569
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
570
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
571
+ return new TypeError(message);
572
+ }
573
+ }
574
+ }
575
+ if (obj.indexConfigurations !== undefined) {
576
+ const obj_indexConfigurations = obj.indexConfigurations;
577
+ const path_indexConfigurations = path + '.indexConfigurations';
578
+ if (!ArrayIsArray(obj_indexConfigurations)) {
579
+ return new TypeError('Expected "array" but received "' + typeof obj_indexConfigurations + '" (at "' + path_indexConfigurations + '")');
580
+ }
581
+ for (let i = 0; i < obj_indexConfigurations.length; i++) {
582
+ const obj_indexConfigurations_item = obj_indexConfigurations[i];
583
+ const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
584
+ const referencepath_indexConfigurations_itemValidationError = validate$E(obj_indexConfigurations_item, path_indexConfigurations_item);
585
+ if (referencepath_indexConfigurations_itemValidationError !== null) {
586
+ let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
587
+ message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
588
+ return new TypeError(message);
589
+ }
590
+ }
498
591
  }
499
- const obj_indexConfigurations = obj.indexConfigurations;
500
- const path_indexConfigurations = path + '.indexConfigurations';
501
- if (!ArrayIsArray(obj_indexConfigurations)) {
502
- return new TypeError('Expected "array" but received "' + typeof obj_indexConfigurations + '" (at "' + path_indexConfigurations + '")');
503
- }
504
- for (let i = 0; i < obj_indexConfigurations.length; i++) {
505
- const obj_indexConfigurations_item = obj_indexConfigurations[i];
506
- const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
507
- const referencepath_indexConfigurations_itemValidationError = validate$z(obj_indexConfigurations_item, path_indexConfigurations_item);
508
- if (referencepath_indexConfigurations_itemValidationError !== null) {
509
- let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
510
- message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
592
+ if (obj.metadata !== undefined) {
593
+ const obj_metadata = obj.metadata;
594
+ const path_metadata = path + '.metadata';
595
+ const referencepath_metadataValidationError = validate$B(obj_metadata, path_metadata);
596
+ if (referencepath_metadataValidationError !== null) {
597
+ let message = 'Object doesn\'t match MetadataOutputRepresentation (at "' + path_metadata + '")\n';
598
+ message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
511
599
  return new TypeError(message);
512
600
  }
513
601
  }
514
- const obj_metadata = obj.metadata;
515
- const path_metadata = path + '.metadata';
516
- const referencepath_metadataValidationError = validate$w(obj_metadata, path_metadata);
517
- if (referencepath_metadataValidationError !== null) {
518
- let message = 'Object doesn\'t match MetadataOutputRepresentation (at "' + path_metadata + '")\n';
519
- message += referencepath_metadataValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
520
- return new TypeError(message);
602
+ if (obj.statusCode !== undefined) {
603
+ const obj_statusCode = obj.statusCode;
604
+ const path_statusCode = path + '.statusCode';
605
+ if (typeof obj_statusCode !== 'string') {
606
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
607
+ }
521
608
  }
522
609
  })();
523
610
  return v_error === undefined ? null : v_error;
524
611
  }
525
- const RepresentationType$9 = 'IndexConfigurationCollectionOutputRepresentation';
526
- function normalize$9(input, existing, path, luvio, store, timestamp) {
612
+ const RepresentationType$a = 'IndexConfigurationCollectionOutputRepresentation';
613
+ function normalize$a(input, existing, path, luvio, store, timestamp) {
527
614
  return input;
528
615
  }
529
- const select$k = function IndexConfigurationCollectionOutputRepresentationSelect() {
616
+ const select$m = function IndexConfigurationCollectionOutputRepresentationSelect() {
530
617
  return {
531
618
  kind: 'Fragment',
532
- version: VERSION$a,
619
+ version: VERSION$b,
533
620
  private: [],
534
621
  opaque: true
535
622
  };
536
623
  };
537
- function equals$a(existing, incoming) {
624
+ function equals$b(existing, incoming) {
538
625
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
539
626
  return false;
540
627
  }
541
628
  return true;
542
629
  }
543
- const ingest$9 = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
630
+ const ingest$a = function IndexConfigurationCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
544
631
  if (process.env.NODE_ENV !== 'production') {
545
- const validateError = validate$v(input);
632
+ const validateError = validate$A(input);
546
633
  if (validateError !== null) {
547
634
  throw validateError;
548
635
  }
549
636
  }
550
637
  const key = path.fullPath;
551
- const ttlToUse = TTL$8;
552
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
638
+ const ttlToUse = TTL$9;
639
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "epc", VERSION$b, RepresentationType$a, equals$b);
553
640
  return createLink(key);
554
641
  };
555
- function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
642
+ function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
556
643
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
557
644
  const rootKey = fullPathFactory();
558
645
  rootKeySet.set(rootKey, {
559
646
  namespace: keyPrefix,
560
- representationName: RepresentationType$9,
647
+ representationName: RepresentationType$a,
561
648
  mergeable: false
562
649
  });
563
650
  }
564
651
 
565
- function select$j(luvio, params) {
566
- return select$k();
652
+ function select$l(luvio, params) {
653
+ return select$m();
567
654
  }
568
- function keyBuilder$g(luvio, params) {
655
+ function keyBuilder$h(luvio, params) {
569
656
  return keyPrefix + '::IndexConfigurationCollectionOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'fieldTypes:' + params.queryParams.fieldTypes + ',' + 'includeMetadata:' + params.queryParams.includeMetadata + ')';
570
657
  }
571
- function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
572
- getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
658
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
659
+ getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$h(luvio, resourceParams));
573
660
  }
574
- function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
661
+ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
575
662
  const { body } = response;
576
- const key = keyBuilder$g(luvio, resourceParams);
577
- luvio.storeIngest(key, ingest$9, body);
663
+ const key = keyBuilder$h(luvio, resourceParams);
664
+ luvio.storeIngest(key, ingest$a, body);
578
665
  const snapshot = luvio.storeLookup({
579
666
  recordId: key,
580
- node: select$j(),
667
+ node: select$l(),
581
668
  variables: {},
582
669
  }, snapshotRefresh);
583
670
  if (process.env.NODE_ENV !== 'production') {
@@ -589,18 +676,18 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
589
676
  return snapshot;
590
677
  }
591
678
  function ingestError$6(luvio, params, error, snapshotRefresh) {
592
- const key = keyBuilder$g(luvio, params);
679
+ const key = keyBuilder$h(luvio, params);
593
680
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
594
681
  const storeMetadataParams = {
595
- ttl: TTL$8,
682
+ ttl: TTL$9,
596
683
  namespace: keyPrefix,
597
- version: VERSION$a,
598
- representationName: RepresentationType$9
684
+ version: VERSION$b,
685
+ representationName: RepresentationType$a
599
686
  };
600
687
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
601
688
  return errorSnapshot;
602
689
  }
603
- function createResourceRequest$9(config) {
690
+ function createResourceRequest$a(config) {
604
691
  const headers = {};
605
692
  return {
606
693
  baseUri: '/services/data/v62.0',
@@ -614,62 +701,62 @@ function createResourceRequest$9(config) {
614
701
  };
615
702
  }
616
703
 
617
- const adapterName$9 = 'getIndexConfigurations';
704
+ const adapterName$a = 'getIndexConfigurations';
618
705
  const getIndexConfigurations_ConfigPropertyMetadata = [
619
706
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
620
707
  generateParamConfigMetadata('fieldTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
621
708
  generateParamConfigMetadata('includeMetadata', false, 1 /* QueryParameter */, 1 /* Boolean */),
622
709
  ];
623
- const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getIndexConfigurations_ConfigPropertyMetadata);
624
- const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(getIndexConfigurations_ConfigPropertyMetadata);
625
- function keyBuilder$f(luvio, config) {
626
- const resourceParams = createResourceParams$9(config);
627
- return keyBuilder$g(luvio, resourceParams);
710
+ const getIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getIndexConfigurations_ConfigPropertyMetadata);
711
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$c(getIndexConfigurations_ConfigPropertyMetadata);
712
+ function keyBuilder$g(luvio, config) {
713
+ const resourceParams = createResourceParams$a(config);
714
+ return keyBuilder$h(luvio, resourceParams);
628
715
  }
629
- function typeCheckConfig$9(untrustedConfig) {
716
+ function typeCheckConfig$a(untrustedConfig) {
630
717
  const config = {};
631
- typeCheckConfig$b(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
718
+ typeCheckConfig$c(untrustedConfig, config, getIndexConfigurations_ConfigPropertyMetadata);
632
719
  return config;
633
720
  }
634
- function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
721
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
635
722
  if (!untrustedIsObject(untrustedConfig)) {
636
723
  return null;
637
724
  }
638
725
  if (process.env.NODE_ENV !== 'production') {
639
726
  validateConfig(untrustedConfig, configPropertyNames);
640
727
  }
641
- const config = typeCheckConfig$9(untrustedConfig);
728
+ const config = typeCheckConfig$a(untrustedConfig);
642
729
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
643
730
  return null;
644
731
  }
645
732
  return config;
646
733
  }
647
734
  function adapterFragment$6(luvio, config) {
648
- createResourceParams$9(config);
649
- return select$j();
735
+ createResourceParams$a(config);
736
+ return select$l();
650
737
  }
651
738
  function onFetchResponseSuccess$6(luvio, config, resourceParams, response) {
652
- const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
739
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
653
740
  config,
654
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
741
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
655
742
  });
656
743
  return luvio.storeBroadcast().then(() => snapshot);
657
744
  }
658
745
  function onFetchResponseError$6(luvio, config, resourceParams, response) {
659
746
  const snapshot = ingestError$6(luvio, resourceParams, response, {
660
747
  config,
661
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
748
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
662
749
  });
663
750
  return luvio.storeBroadcast().then(() => snapshot);
664
751
  }
665
- function buildNetworkSnapshot$9(luvio, config, options) {
666
- const resourceParams = createResourceParams$9(config);
667
- const request = createResourceRequest$9(resourceParams);
752
+ function buildNetworkSnapshot$a(luvio, config, options) {
753
+ const resourceParams = createResourceParams$a(config);
754
+ const request = createResourceRequest$a(resourceParams);
668
755
  return luvio.dispatchResourceRequest(request, options)
669
756
  .then((response) => {
670
757
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
671
758
  const cache = new StoreKeyMap();
672
- getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
759
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
673
760
  return cache;
674
761
  });
675
762
  }, (response) => {
@@ -677,23 +764,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
677
764
  });
678
765
  }
679
766
  function buildNetworkSnapshotCachePolicy$6(context, coercedAdapterRequestContext) {
680
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
767
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
681
768
  }
682
769
  function buildCachedSnapshotCachePolicy$6(context, storeLookup) {
683
770
  const { luvio, config } = context;
684
771
  const selector = {
685
- recordId: keyBuilder$f(luvio, config),
772
+ recordId: keyBuilder$g(luvio, config),
686
773
  node: adapterFragment$6(luvio, config),
687
774
  variables: {},
688
775
  };
689
776
  const cacheSnapshot = storeLookup(selector, {
690
777
  config,
691
- resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
778
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
692
779
  });
693
780
  return cacheSnapshot;
694
781
  }
695
782
  const getIndexConfigurationsAdapterFactory = (luvio) => function epc__getIndexConfigurations(untrustedConfig, requestContext) {
696
- const config = validateAdapterConfig$9(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
783
+ const config = validateAdapterConfig$a(untrustedConfig, getIndexConfigurations_ConfigPropertyNames);
697
784
  // Invalid or incomplete config
698
785
  if (config === null) {
699
786
  return null;
@@ -702,98 +789,124 @@ const getIndexConfigurationsAdapterFactory = (luvio) => function epc__getIndexCo
702
789
  buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$6);
703
790
  };
704
791
 
705
- const TTL$7 = 6000;
706
- const VERSION$9 = "c5d89d43c0e6aba7199675aa7c278463";
707
- function validate$u(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
792
+ const TTL$8 = 6000;
793
+ const VERSION$a = "d8fe6f305d394e3ad9e8b064fd805a31";
794
+ function validate$z(obj, path = 'IndexConfigurationsUpdateOutputRepresentation') {
708
795
  const v_error = (() => {
709
796
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
710
797
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
711
798
  }
712
- const obj_correlationId = obj.correlationId;
713
- const path_correlationId = path + '.correlationId';
714
- if (typeof obj_correlationId !== 'string') {
715
- return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
799
+ if (obj.correlationId !== undefined) {
800
+ const obj_correlationId = obj.correlationId;
801
+ const path_correlationId = path + '.correlationId';
802
+ if (typeof obj_correlationId !== 'string') {
803
+ return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
804
+ }
716
805
  }
717
- const obj_indexConfigurations = obj.indexConfigurations;
718
- const path_indexConfigurations = path + '.indexConfigurations';
719
- if (!ArrayIsArray(obj_indexConfigurations)) {
720
- return new TypeError('Expected "array" but received "' + typeof obj_indexConfigurations + '" (at "' + path_indexConfigurations + '")');
721
- }
722
- for (let i = 0; i < obj_indexConfigurations.length; i++) {
723
- const obj_indexConfigurations_item = obj_indexConfigurations[i];
724
- const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
725
- const referencepath_indexConfigurations_itemValidationError = validate$z(obj_indexConfigurations_item, path_indexConfigurations_item);
726
- if (referencepath_indexConfigurations_itemValidationError !== null) {
727
- let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
728
- message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
729
- return new TypeError(message);
806
+ if (obj.errors !== undefined) {
807
+ const obj_errors = obj.errors;
808
+ const path_errors = path + '.errors';
809
+ if (!ArrayIsArray(obj_errors)) {
810
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
811
+ }
812
+ for (let i = 0; i < obj_errors.length; i++) {
813
+ const obj_errors_item = obj_errors[i];
814
+ const path_errors_item = path_errors + '[' + i + ']';
815
+ const referencepath_errors_itemValidationError = validate$F(obj_errors_item, path_errors_item);
816
+ if (referencepath_errors_itemValidationError !== null) {
817
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
818
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
819
+ return new TypeError(message);
820
+ }
821
+ }
822
+ }
823
+ if (obj.indexConfigurations !== undefined) {
824
+ const obj_indexConfigurations = obj.indexConfigurations;
825
+ const path_indexConfigurations = path + '.indexConfigurations';
826
+ if (!ArrayIsArray(obj_indexConfigurations)) {
827
+ return new TypeError('Expected "array" but received "' + typeof obj_indexConfigurations + '" (at "' + path_indexConfigurations + '")');
828
+ }
829
+ for (let i = 0; i < obj_indexConfigurations.length; i++) {
830
+ const obj_indexConfigurations_item = obj_indexConfigurations[i];
831
+ const path_indexConfigurations_item = path_indexConfigurations + '[' + i + ']';
832
+ const referencepath_indexConfigurations_itemValidationError = validate$E(obj_indexConfigurations_item, path_indexConfigurations_item);
833
+ if (referencepath_indexConfigurations_itemValidationError !== null) {
834
+ let message = 'Object doesn\'t match IndexConfigurationFieldOutputRepresentation (at "' + path_indexConfigurations_item + '")\n';
835
+ message += referencepath_indexConfigurations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
836
+ return new TypeError(message);
837
+ }
730
838
  }
731
839
  }
840
+ const obj_statusCode = obj.statusCode;
841
+ const path_statusCode = path + '.statusCode';
842
+ if (typeof obj_statusCode !== 'string') {
843
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
844
+ }
732
845
  })();
733
846
  return v_error === undefined ? null : v_error;
734
847
  }
735
- const RepresentationType$8 = 'IndexConfigurationsUpdateOutputRepresentation';
736
- function keyBuilder$e(luvio, config) {
737
- return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
848
+ const RepresentationType$9 = 'IndexConfigurationsUpdateOutputRepresentation';
849
+ function keyBuilder$f(luvio, config) {
850
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.message;
738
851
  }
739
- function keyBuilderFromType$2(luvio, object) {
852
+ function keyBuilderFromType$3(luvio, object) {
740
853
  const keyParams = {
741
- message: object.correlationId
854
+ message: object.statusCode
742
855
  };
743
- return keyBuilder$e(luvio, keyParams);
856
+ return keyBuilder$f(luvio, keyParams);
744
857
  }
745
- function normalize$8(input, existing, path, luvio, store, timestamp) {
858
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
746
859
  return input;
747
860
  }
748
- const select$i = function IndexConfigurationsUpdateOutputRepresentationSelect() {
861
+ const select$k = function IndexConfigurationsUpdateOutputRepresentationSelect() {
749
862
  return {
750
863
  kind: 'Fragment',
751
- version: VERSION$9,
864
+ version: VERSION$a,
752
865
  private: [],
753
866
  opaque: true
754
867
  };
755
868
  };
756
- function equals$9(existing, incoming) {
869
+ function equals$a(existing, incoming) {
757
870
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
758
871
  return false;
759
872
  }
760
873
  return true;
761
874
  }
762
- const ingest$8 = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
875
+ const ingest$9 = function IndexConfigurationsUpdateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
763
876
  if (process.env.NODE_ENV !== 'production') {
764
- const validateError = validate$u(input);
877
+ const validateError = validate$z(input);
765
878
  if (validateError !== null) {
766
879
  throw validateError;
767
880
  }
768
881
  }
769
- const key = keyBuilderFromType$2(luvio, input);
770
- const ttlToUse = TTL$7;
771
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "epc", VERSION$9, RepresentationType$8, equals$9);
882
+ const key = keyBuilderFromType$3(luvio, input);
883
+ const ttlToUse = TTL$8;
884
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "epc", VERSION$a, RepresentationType$9, equals$a);
772
885
  return createLink(key);
773
886
  };
774
- function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
887
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
775
888
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
776
- const rootKey = keyBuilderFromType$2(luvio, input);
889
+ const rootKey = keyBuilderFromType$3(luvio, input);
777
890
  rootKeySet.set(rootKey, {
778
891
  namespace: keyPrefix,
779
- representationName: RepresentationType$8,
892
+ representationName: RepresentationType$9,
780
893
  mergeable: false
781
894
  });
782
895
  }
783
896
 
784
- function select$h(luvio, params) {
785
- return select$i();
897
+ function select$j(luvio, params) {
898
+ return select$k();
786
899
  }
787
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
788
- getTypeCacheKeys$8(storeKeyMap, luvio, response);
900
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
901
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
789
902
  }
790
- function ingestSuccess$8(luvio, resourceParams, response) {
903
+ function ingestSuccess$9(luvio, resourceParams, response) {
791
904
  const { body } = response;
792
- const key = keyBuilderFromType$2(luvio, body);
793
- luvio.storeIngest(key, ingest$8, body);
905
+ const key = keyBuilderFromType$3(luvio, body);
906
+ luvio.storeIngest(key, ingest$9, body);
794
907
  const snapshot = luvio.storeLookup({
795
908
  recordId: key,
796
- node: select$h(),
909
+ node: select$j(),
797
910
  variables: {},
798
911
  });
799
912
  if (process.env.NODE_ENV !== 'production') {
@@ -804,7 +917,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
804
917
  deepFreeze(snapshot.data);
805
918
  return snapshot;
806
919
  }
807
- function createResourceRequest$8(config) {
920
+ function createResourceRequest$9(config) {
808
921
  const headers = {};
809
922
  return {
810
923
  baseUri: '/services/data/v62.0',
@@ -818,16 +931,16 @@ function createResourceRequest$8(config) {
818
931
  };
819
932
  }
820
933
 
821
- const adapterName$8 = 'updateIndexConfigurations';
934
+ const adapterName$9 = 'updateIndexConfigurations';
822
935
  const updateIndexConfigurations_ConfigPropertyMetadata = [
823
936
  generateParamConfigMetadata('correlationId', false, 2 /* Body */, 0 /* String */),
824
- generateParamConfigMetadata('indexConfigurations', true, 2 /* Body */, 4 /* Unsupported */, true),
937
+ generateParamConfigMetadata('indexConfigurations', false, 2 /* Body */, 4 /* Unsupported */, true),
825
938
  ];
826
- const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateIndexConfigurations_ConfigPropertyMetadata);
827
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(updateIndexConfigurations_ConfigPropertyMetadata);
828
- function typeCheckConfig$8(untrustedConfig) {
939
+ const updateIndexConfigurations_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateIndexConfigurations_ConfigPropertyMetadata);
940
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$c(updateIndexConfigurations_ConfigPropertyMetadata);
941
+ function typeCheckConfig$9(untrustedConfig) {
829
942
  const config = {};
830
- typeCheckConfig$b(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
943
+ typeCheckConfig$c(untrustedConfig, config, updateIndexConfigurations_ConfigPropertyMetadata);
831
944
  const untrustedConfig_indexConfigurations = untrustedConfig.indexConfigurations;
832
945
  if (ArrayIsArray$1(untrustedConfig_indexConfigurations)) {
833
946
  const untrustedConfig_indexConfigurations_array = [];
@@ -839,30 +952,30 @@ function typeCheckConfig$8(untrustedConfig) {
839
952
  }
840
953
  return config;
841
954
  }
842
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
955
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
843
956
  if (!untrustedIsObject(untrustedConfig)) {
844
957
  return null;
845
958
  }
846
959
  if (process.env.NODE_ENV !== 'production') {
847
960
  validateConfig(untrustedConfig, configPropertyNames);
848
961
  }
849
- const config = typeCheckConfig$8(untrustedConfig);
962
+ const config = typeCheckConfig$9(untrustedConfig);
850
963
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
851
964
  return null;
852
965
  }
853
966
  return config;
854
967
  }
855
- function buildNetworkSnapshot$8(luvio, config, options) {
856
- const resourceParams = createResourceParams$8(config);
857
- const request = createResourceRequest$8(resourceParams);
968
+ function buildNetworkSnapshot$9(luvio, config, options) {
969
+ const resourceParams = createResourceParams$9(config);
970
+ const request = createResourceRequest$9(resourceParams);
858
971
  return luvio.dispatchResourceRequest(request, options)
859
972
  .then((response) => {
860
973
  return luvio.handleSuccessResponse(() => {
861
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
974
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response);
862
975
  return luvio.storeBroadcast().then(() => snapshot);
863
976
  }, () => {
864
977
  const cache = new StoreKeyMap();
865
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
978
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
866
979
  return cache;
867
980
  });
868
981
  }, (response) => {
@@ -872,16 +985,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
872
985
  }
873
986
  const updateIndexConfigurationsAdapterFactory = (luvio) => {
874
987
  return function updateIndexConfigurations(untrustedConfig) {
875
- const config = validateAdapterConfig$8(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
988
+ const config = validateAdapterConfig$9(untrustedConfig, updateIndexConfigurations_ConfigPropertyNames);
876
989
  // Invalid or incomplete config
877
990
  if (config === null) {
878
991
  throw new Error('Invalid config for "updateIndexConfigurations"');
879
992
  }
880
- return buildNetworkSnapshot$8(luvio, config);
993
+ return buildNetworkSnapshot$9(luvio, config);
881
994
  };
882
995
  };
883
996
 
884
- function validate$t(obj, path = 'SnapshotIndexOutputRepresentation') {
997
+ function validate$y(obj, path = 'SnapshotIndexOutputRepresentation') {
885
998
  const v_error = (() => {
886
999
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
887
1000
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -900,10 +1013,12 @@ function validate$t(obj, path = 'SnapshotIndexOutputRepresentation') {
900
1013
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
901
1014
  }
902
1015
  }
903
- const obj_id = obj.id;
904
- const path_id = path + '.id';
905
- if (typeof obj_id !== 'string') {
906
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1016
+ if (obj.id !== undefined) {
1017
+ const obj_id = obj.id;
1018
+ const path_id = path + '.id';
1019
+ if (typeof obj_id !== 'string') {
1020
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1021
+ }
907
1022
  }
908
1023
  if (obj.indexBuildType !== undefined) {
909
1024
  const obj_indexBuildType = obj.indexBuildType;
@@ -937,7 +1052,7 @@ function validate$t(obj, path = 'SnapshotIndexOutputRepresentation') {
937
1052
  return v_error === undefined ? null : v_error;
938
1053
  }
939
1054
 
940
- function validate$s(obj, path = 'SnapshotOutputRepresentation') {
1055
+ function validate$x(obj, path = 'SnapshotOutputRepresentation') {
941
1056
  const v_error = (() => {
942
1057
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
943
1058
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -963,110 +1078,138 @@ function validate$s(obj, path = 'SnapshotOutputRepresentation') {
963
1078
  return new TypeError('Expected "string" but received "' + typeof obj_activationType + '" (at "' + path_activationType + '")');
964
1079
  }
965
1080
  }
966
- const obj_id = obj.id;
967
- const path_id = path + '.id';
968
- if (typeof obj_id !== 'string') {
969
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
970
- }
971
- const obj_snapshotIndexes = obj.snapshotIndexes;
972
- const path_snapshotIndexes = path + '.snapshotIndexes';
973
- if (!ArrayIsArray(obj_snapshotIndexes)) {
974
- return new TypeError('Expected "array" but received "' + typeof obj_snapshotIndexes + '" (at "' + path_snapshotIndexes + '")');
1081
+ if (obj.id !== undefined) {
1082
+ const obj_id = obj.id;
1083
+ const path_id = path + '.id';
1084
+ if (typeof obj_id !== 'string') {
1085
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1086
+ }
975
1087
  }
976
- for (let i = 0; i < obj_snapshotIndexes.length; i++) {
977
- const obj_snapshotIndexes_item = obj_snapshotIndexes[i];
978
- const path_snapshotIndexes_item = path_snapshotIndexes + '[' + i + ']';
979
- const referencepath_snapshotIndexes_itemValidationError = validate$t(obj_snapshotIndexes_item, path_snapshotIndexes_item);
980
- if (referencepath_snapshotIndexes_itemValidationError !== null) {
981
- let message = 'Object doesn\'t match SnapshotIndexOutputRepresentation (at "' + path_snapshotIndexes_item + '")\n';
982
- message += referencepath_snapshotIndexes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
983
- return new TypeError(message);
1088
+ if (obj.snapshotIndexes !== undefined) {
1089
+ const obj_snapshotIndexes = obj.snapshotIndexes;
1090
+ const path_snapshotIndexes = path + '.snapshotIndexes';
1091
+ if (!ArrayIsArray(obj_snapshotIndexes)) {
1092
+ return new TypeError('Expected "array" but received "' + typeof obj_snapshotIndexes + '" (at "' + path_snapshotIndexes + '")');
1093
+ }
1094
+ for (let i = 0; i < obj_snapshotIndexes.length; i++) {
1095
+ const obj_snapshotIndexes_item = obj_snapshotIndexes[i];
1096
+ const path_snapshotIndexes_item = path_snapshotIndexes + '[' + i + ']';
1097
+ const referencepath_snapshotIndexes_itemValidationError = validate$y(obj_snapshotIndexes_item, path_snapshotIndexes_item);
1098
+ if (referencepath_snapshotIndexes_itemValidationError !== null) {
1099
+ let message = 'Object doesn\'t match SnapshotIndexOutputRepresentation (at "' + path_snapshotIndexes_item + '")\n';
1100
+ message += referencepath_snapshotIndexes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1101
+ return new TypeError(message);
1102
+ }
984
1103
  }
985
1104
  }
986
1105
  })();
987
1106
  return v_error === undefined ? null : v_error;
988
1107
  }
989
1108
 
990
- const TTL$6 = 6000;
991
- const VERSION$8 = "726ce1855b2e6bdc8c2a482ede91a062";
992
- function validate$r(obj, path = 'SnapshotDeploymentOutputRepresentation') {
1109
+ const TTL$7 = 6000;
1110
+ const VERSION$9 = "a482669465add5966119b942982ae104";
1111
+ function validate$w(obj, path = 'SnapshotDeploymentOutputRepresentation') {
993
1112
  const v_error = (() => {
994
1113
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
995
1114
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
996
1115
  }
997
- const obj_snapshot = obj.snapshot;
998
- const path_snapshot = path + '.snapshot';
999
- const referencepath_snapshotValidationError = validate$s(obj_snapshot, path_snapshot);
1000
- if (referencepath_snapshotValidationError !== null) {
1001
- let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshot + '")\n';
1002
- message += referencepath_snapshotValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1003
- return new TypeError(message);
1116
+ if (obj.errors !== undefined) {
1117
+ const obj_errors = obj.errors;
1118
+ const path_errors = path + '.errors';
1119
+ if (!ArrayIsArray(obj_errors)) {
1120
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
1121
+ }
1122
+ for (let i = 0; i < obj_errors.length; i++) {
1123
+ const obj_errors_item = obj_errors[i];
1124
+ const path_errors_item = path_errors + '[' + i + ']';
1125
+ const referencepath_errors_itemValidationError = validate$F(obj_errors_item, path_errors_item);
1126
+ if (referencepath_errors_itemValidationError !== null) {
1127
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1128
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1129
+ return new TypeError(message);
1130
+ }
1131
+ }
1132
+ }
1133
+ if (obj.snapshot !== undefined) {
1134
+ const obj_snapshot = obj.snapshot;
1135
+ const path_snapshot = path + '.snapshot';
1136
+ const referencepath_snapshotValidationError = validate$x(obj_snapshot, path_snapshot);
1137
+ if (referencepath_snapshotValidationError !== null) {
1138
+ let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshot + '")\n';
1139
+ message += referencepath_snapshotValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1140
+ return new TypeError(message);
1141
+ }
1142
+ }
1143
+ const obj_statusCode = obj.statusCode;
1144
+ const path_statusCode = path + '.statusCode';
1145
+ if (typeof obj_statusCode !== 'string') {
1146
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
1004
1147
  }
1005
1148
  })();
1006
1149
  return v_error === undefined ? null : v_error;
1007
1150
  }
1008
- const RepresentationType$7 = 'SnapshotDeploymentOutputRepresentation';
1009
- function keyBuilder$d(luvio, config) {
1010
- return keyPrefix + '::' + RepresentationType$7 + ':' + config.message;
1151
+ const RepresentationType$8 = 'SnapshotDeploymentOutputRepresentation';
1152
+ function keyBuilder$e(luvio, config) {
1153
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.message;
1011
1154
  }
1012
- function keyBuilderFromType$1(luvio, object) {
1155
+ function keyBuilderFromType$2(luvio, object) {
1013
1156
  const keyParams = {
1014
- message: object.snapshot.id
1157
+ message: object.statusCode
1015
1158
  };
1016
- return keyBuilder$d(luvio, keyParams);
1159
+ return keyBuilder$e(luvio, keyParams);
1017
1160
  }
1018
- function normalize$7(input, existing, path, luvio, store, timestamp) {
1161
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1019
1162
  return input;
1020
1163
  }
1021
- const select$g = function SnapshotDeploymentOutputRepresentationSelect() {
1164
+ const select$i = function SnapshotDeploymentOutputRepresentationSelect() {
1022
1165
  return {
1023
1166
  kind: 'Fragment',
1024
- version: VERSION$8,
1167
+ version: VERSION$9,
1025
1168
  private: [],
1026
1169
  opaque: true
1027
1170
  };
1028
1171
  };
1029
- function equals$8(existing, incoming) {
1172
+ function equals$9(existing, incoming) {
1030
1173
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1031
1174
  return false;
1032
1175
  }
1033
1176
  return true;
1034
1177
  }
1035
- const ingest$7 = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1178
+ const ingest$8 = function SnapshotDeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1036
1179
  if (process.env.NODE_ENV !== 'production') {
1037
- const validateError = validate$r(input);
1180
+ const validateError = validate$w(input);
1038
1181
  if (validateError !== null) {
1039
1182
  throw validateError;
1040
1183
  }
1041
1184
  }
1042
- const key = keyBuilderFromType$1(luvio, input);
1043
- const ttlToUse = TTL$6;
1044
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "epc", VERSION$8, RepresentationType$7, equals$8);
1185
+ const key = keyBuilderFromType$2(luvio, input);
1186
+ const ttlToUse = TTL$7;
1187
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "epc", VERSION$9, RepresentationType$8, equals$9);
1045
1188
  return createLink(key);
1046
1189
  };
1047
- function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1190
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1048
1191
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1049
- const rootKey = keyBuilderFromType$1(luvio, input);
1192
+ const rootKey = keyBuilderFromType$2(luvio, input);
1050
1193
  rootKeySet.set(rootKey, {
1051
1194
  namespace: keyPrefix,
1052
- representationName: RepresentationType$7,
1195
+ representationName: RepresentationType$8,
1053
1196
  mergeable: false
1054
1197
  });
1055
1198
  }
1056
1199
 
1057
- function select$f(luvio, params) {
1058
- return select$g();
1200
+ function select$h(luvio, params) {
1201
+ return select$i();
1059
1202
  }
1060
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1061
- getTypeCacheKeys$7(storeKeyMap, luvio, response);
1203
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1204
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1062
1205
  }
1063
- function ingestSuccess$7(luvio, resourceParams, response) {
1206
+ function ingestSuccess$8(luvio, resourceParams, response) {
1064
1207
  const { body } = response;
1065
- const key = keyBuilderFromType$1(luvio, body);
1066
- luvio.storeIngest(key, ingest$7, body);
1208
+ const key = keyBuilderFromType$2(luvio, body);
1209
+ luvio.storeIngest(key, ingest$8, body);
1067
1210
  const snapshot = luvio.storeLookup({
1068
1211
  recordId: key,
1069
- node: select$f(),
1212
+ node: select$h(),
1070
1213
  variables: {},
1071
1214
  });
1072
1215
  if (process.env.NODE_ENV !== 'production') {
@@ -1077,7 +1220,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
1077
1220
  deepFreeze(snapshot.data);
1078
1221
  return snapshot;
1079
1222
  }
1080
- function createResourceRequest$7(config) {
1223
+ function createResourceRequest$8(config) {
1081
1224
  const headers = {};
1082
1225
  return {
1083
1226
  baseUri: '/services/data/v62.0',
@@ -1091,44 +1234,44 @@ function createResourceRequest$7(config) {
1091
1234
  };
1092
1235
  }
1093
1236
 
1094
- const adapterName$7 = 'deploySnapshotIndex';
1237
+ const adapterName$8 = 'deploySnapshotIndex';
1095
1238
  const deploySnapshotIndex_ConfigPropertyMetadata = [
1096
1239
  generateParamConfigMetadata('buildType', false, 2 /* Body */, 0 /* String */),
1097
- generateParamConfigMetadata('snapshot', true, 2 /* Body */, 4 /* Unsupported */),
1240
+ generateParamConfigMetadata('snapshot', false, 2 /* Body */, 4 /* Unsupported */),
1098
1241
  ];
1099
- const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, deploySnapshotIndex_ConfigPropertyMetadata);
1100
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(deploySnapshotIndex_ConfigPropertyMetadata);
1101
- function typeCheckConfig$7(untrustedConfig) {
1242
+ const deploySnapshotIndex_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, deploySnapshotIndex_ConfigPropertyMetadata);
1243
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$c(deploySnapshotIndex_ConfigPropertyMetadata);
1244
+ function typeCheckConfig$8(untrustedConfig) {
1102
1245
  const config = {};
1103
- typeCheckConfig$b(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1246
+ typeCheckConfig$c(untrustedConfig, config, deploySnapshotIndex_ConfigPropertyMetadata);
1104
1247
  const untrustedConfig_snapshot = untrustedConfig.snapshot;
1105
1248
  config.snapshot = untrustedConfig_snapshot;
1106
1249
  return config;
1107
1250
  }
1108
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1251
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1109
1252
  if (!untrustedIsObject(untrustedConfig)) {
1110
1253
  return null;
1111
1254
  }
1112
1255
  if (process.env.NODE_ENV !== 'production') {
1113
1256
  validateConfig(untrustedConfig, configPropertyNames);
1114
1257
  }
1115
- const config = typeCheckConfig$7(untrustedConfig);
1258
+ const config = typeCheckConfig$8(untrustedConfig);
1116
1259
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1117
1260
  return null;
1118
1261
  }
1119
1262
  return config;
1120
1263
  }
1121
- function buildNetworkSnapshot$7(luvio, config, options) {
1122
- const resourceParams = createResourceParams$7(config);
1123
- const request = createResourceRequest$7(resourceParams);
1264
+ function buildNetworkSnapshot$8(luvio, config, options) {
1265
+ const resourceParams = createResourceParams$8(config);
1266
+ const request = createResourceRequest$8(resourceParams);
1124
1267
  return luvio.dispatchResourceRequest(request, options)
1125
1268
  .then((response) => {
1126
1269
  return luvio.handleSuccessResponse(() => {
1127
- const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1270
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1128
1271
  return luvio.storeBroadcast().then(() => snapshot);
1129
1272
  }, () => {
1130
1273
  const cache = new StoreKeyMap();
1131
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1274
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1132
1275
  return cache;
1133
1276
  });
1134
1277
  }, (response) => {
@@ -1138,96 +1281,122 @@ function buildNetworkSnapshot$7(luvio, config, options) {
1138
1281
  }
1139
1282
  const deploySnapshotIndexAdapterFactory = (luvio) => {
1140
1283
  return function deploySnapshotIndex(untrustedConfig) {
1141
- const config = validateAdapterConfig$7(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1284
+ const config = validateAdapterConfig$8(untrustedConfig, deploySnapshotIndex_ConfigPropertyNames);
1142
1285
  // Invalid or incomplete config
1143
1286
  if (config === null) {
1144
1287
  throw new Error('Invalid config for "deploySnapshotIndex"');
1145
1288
  }
1146
- return buildNetworkSnapshot$7(luvio, config);
1289
+ return buildNetworkSnapshot$8(luvio, config);
1147
1290
  };
1148
1291
  };
1149
1292
 
1150
- const TTL$5 = 6000;
1151
- const VERSION$7 = "6c7ad97ab7e48e90336529c3204ce90e";
1152
- function validate$q(obj, path = 'SnapshotCollectionOutputRepresentation') {
1293
+ const TTL$6 = 6000;
1294
+ const VERSION$8 = "b1566a76d9cf30f61b94a2d92caab70d";
1295
+ function validate$v(obj, path = 'SnapshotCollectionOutputRepresentation') {
1153
1296
  const v_error = (() => {
1154
1297
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1155
1298
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1156
1299
  }
1157
- const obj_snapshots = obj.snapshots;
1158
- const path_snapshots = path + '.snapshots';
1159
- if (!ArrayIsArray(obj_snapshots)) {
1160
- return new TypeError('Expected "array" but received "' + typeof obj_snapshots + '" (at "' + path_snapshots + '")');
1161
- }
1162
- for (let i = 0; i < obj_snapshots.length; i++) {
1163
- const obj_snapshots_item = obj_snapshots[i];
1164
- const path_snapshots_item = path_snapshots + '[' + i + ']';
1165
- const referencepath_snapshots_itemValidationError = validate$s(obj_snapshots_item, path_snapshots_item);
1166
- if (referencepath_snapshots_itemValidationError !== null) {
1167
- let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshots_item + '")\n';
1168
- message += referencepath_snapshots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1169
- return new TypeError(message);
1300
+ if (obj.errors !== undefined) {
1301
+ const obj_errors = obj.errors;
1302
+ const path_errors = path + '.errors';
1303
+ if (!ArrayIsArray(obj_errors)) {
1304
+ return new TypeError('Expected "array" but received "' + typeof obj_errors + '" (at "' + path_errors + '")');
1305
+ }
1306
+ for (let i = 0; i < obj_errors.length; i++) {
1307
+ const obj_errors_item = obj_errors[i];
1308
+ const path_errors_item = path_errors + '[' + i + ']';
1309
+ const referencepath_errors_itemValidationError = validate$F(obj_errors_item, path_errors_item);
1310
+ if (referencepath_errors_itemValidationError !== null) {
1311
+ let message = 'Object doesn\'t match EpcErrorOutputRepresentation (at "' + path_errors_item + '")\n';
1312
+ message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1313
+ return new TypeError(message);
1314
+ }
1315
+ }
1316
+ }
1317
+ if (obj.snapshots !== undefined) {
1318
+ const obj_snapshots = obj.snapshots;
1319
+ const path_snapshots = path + '.snapshots';
1320
+ if (!ArrayIsArray(obj_snapshots)) {
1321
+ return new TypeError('Expected "array" but received "' + typeof obj_snapshots + '" (at "' + path_snapshots + '")');
1322
+ }
1323
+ for (let i = 0; i < obj_snapshots.length; i++) {
1324
+ const obj_snapshots_item = obj_snapshots[i];
1325
+ const path_snapshots_item = path_snapshots + '[' + i + ']';
1326
+ const referencepath_snapshots_itemValidationError = validate$x(obj_snapshots_item, path_snapshots_item);
1327
+ if (referencepath_snapshots_itemValidationError !== null) {
1328
+ let message = 'Object doesn\'t match SnapshotOutputRepresentation (at "' + path_snapshots_item + '")\n';
1329
+ message += referencepath_snapshots_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1330
+ return new TypeError(message);
1331
+ }
1332
+ }
1333
+ }
1334
+ if (obj.statusCode !== undefined) {
1335
+ const obj_statusCode = obj.statusCode;
1336
+ const path_statusCode = path + '.statusCode';
1337
+ if (typeof obj_statusCode !== 'string') {
1338
+ return new TypeError('Expected "string" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
1170
1339
  }
1171
1340
  }
1172
1341
  })();
1173
1342
  return v_error === undefined ? null : v_error;
1174
1343
  }
1175
- const RepresentationType$6 = 'SnapshotCollectionOutputRepresentation';
1176
- function normalize$6(input, existing, path, luvio, store, timestamp) {
1344
+ const RepresentationType$7 = 'SnapshotCollectionOutputRepresentation';
1345
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1177
1346
  return input;
1178
1347
  }
1179
- const select$e = function SnapshotCollectionOutputRepresentationSelect() {
1348
+ const select$g = function SnapshotCollectionOutputRepresentationSelect() {
1180
1349
  return {
1181
1350
  kind: 'Fragment',
1182
- version: VERSION$7,
1351
+ version: VERSION$8,
1183
1352
  private: [],
1184
1353
  opaque: true
1185
1354
  };
1186
1355
  };
1187
- function equals$7(existing, incoming) {
1356
+ function equals$8(existing, incoming) {
1188
1357
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1189
1358
  return false;
1190
1359
  }
1191
1360
  return true;
1192
1361
  }
1193
- const ingest$6 = function SnapshotCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1362
+ const ingest$7 = function SnapshotCollectionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1194
1363
  if (process.env.NODE_ENV !== 'production') {
1195
- const validateError = validate$q(input);
1364
+ const validateError = validate$v(input);
1196
1365
  if (validateError !== null) {
1197
1366
  throw validateError;
1198
1367
  }
1199
1368
  }
1200
1369
  const key = path.fullPath;
1201
- const ttlToUse = TTL$5;
1202
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "epc", VERSION$7, RepresentationType$6, equals$7);
1370
+ const ttlToUse = TTL$6;
1371
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "epc", VERSION$8, RepresentationType$7, equals$8);
1203
1372
  return createLink(key);
1204
1373
  };
1205
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1374
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1206
1375
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1207
1376
  const rootKey = fullPathFactory();
1208
1377
  rootKeySet.set(rootKey, {
1209
1378
  namespace: keyPrefix,
1210
- representationName: RepresentationType$6,
1379
+ representationName: RepresentationType$7,
1211
1380
  mergeable: false
1212
1381
  });
1213
1382
  }
1214
1383
 
1215
- function select$d(luvio, params) {
1216
- return select$e();
1384
+ function select$f(luvio, params) {
1385
+ return select$g();
1217
1386
  }
1218
- function keyBuilder$c(luvio, params) {
1387
+ function keyBuilder$d(luvio, params) {
1219
1388
  return keyPrefix + '::SnapshotCollectionOutputRepresentation:(' + ')';
1220
1389
  }
1221
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1222
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c());
1390
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
1391
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$d());
1223
1392
  }
1224
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1393
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
1225
1394
  const { body } = response;
1226
- const key = keyBuilder$c();
1227
- luvio.storeIngest(key, ingest$6, body);
1395
+ const key = keyBuilder$d();
1396
+ luvio.storeIngest(key, ingest$7, body);
1228
1397
  const snapshot = luvio.storeLookup({
1229
1398
  recordId: key,
1230
- node: select$d(),
1399
+ node: select$f(),
1231
1400
  variables: {},
1232
1401
  }, snapshotRefresh);
1233
1402
  if (process.env.NODE_ENV !== 'production') {
@@ -1239,18 +1408,18 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
1239
1408
  return snapshot;
1240
1409
  }
1241
1410
  function ingestError$5(luvio, params, error, snapshotRefresh) {
1242
- const key = keyBuilder$c();
1411
+ const key = keyBuilder$d();
1243
1412
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1244
1413
  const storeMetadataParams = {
1245
- ttl: TTL$5,
1414
+ ttl: TTL$6,
1246
1415
  namespace: keyPrefix,
1247
- version: VERSION$7,
1248
- representationName: RepresentationType$6
1416
+ version: VERSION$8,
1417
+ representationName: RepresentationType$7
1249
1418
  };
1250
1419
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1251
1420
  return errorSnapshot;
1252
1421
  }
1253
- function createResourceRequest$6(config) {
1422
+ function createResourceRequest$7(config) {
1254
1423
  const headers = {};
1255
1424
  return {
1256
1425
  baseUri: '/services/data/v62.0',
@@ -1264,57 +1433,57 @@ function createResourceRequest$6(config) {
1264
1433
  };
1265
1434
  }
1266
1435
 
1267
- const adapterName$6 = 'getSnapshots';
1436
+ const adapterName$7 = 'getSnapshots';
1268
1437
  const getSnapshots_ConfigPropertyMetadata = [];
1269
- const getSnapshots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getSnapshots_ConfigPropertyMetadata);
1270
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getSnapshots_ConfigPropertyMetadata);
1271
- function keyBuilder$b(luvio, config) {
1272
- createResourceParams$6(config);
1273
- return keyBuilder$c();
1438
+ const getSnapshots_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getSnapshots_ConfigPropertyMetadata);
1439
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$c(getSnapshots_ConfigPropertyMetadata);
1440
+ function keyBuilder$c(luvio, config) {
1441
+ createResourceParams$7(config);
1442
+ return keyBuilder$d();
1274
1443
  }
1275
- function typeCheckConfig$6(untrustedConfig) {
1444
+ function typeCheckConfig$7(untrustedConfig) {
1276
1445
  const config = {};
1277
1446
  return config;
1278
1447
  }
1279
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1448
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
1280
1449
  if (!untrustedIsObject(untrustedConfig)) {
1281
1450
  return null;
1282
1451
  }
1283
1452
  if (process.env.NODE_ENV !== 'production') {
1284
1453
  validateConfig(untrustedConfig, configPropertyNames);
1285
1454
  }
1286
- const config = typeCheckConfig$6();
1455
+ const config = typeCheckConfig$7();
1287
1456
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1288
1457
  return null;
1289
1458
  }
1290
1459
  return config;
1291
1460
  }
1292
1461
  function adapterFragment$5(luvio, config) {
1293
- createResourceParams$6(config);
1294
- return select$d();
1462
+ createResourceParams$7(config);
1463
+ return select$f();
1295
1464
  }
1296
1465
  function onFetchResponseSuccess$5(luvio, config, resourceParams, response) {
1297
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
1466
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
1298
1467
  config,
1299
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1468
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1300
1469
  });
1301
1470
  return luvio.storeBroadcast().then(() => snapshot);
1302
1471
  }
1303
1472
  function onFetchResponseError$5(luvio, config, resourceParams, response) {
1304
1473
  const snapshot = ingestError$5(luvio, resourceParams, response, {
1305
1474
  config,
1306
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1475
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1307
1476
  });
1308
1477
  return luvio.storeBroadcast().then(() => snapshot);
1309
1478
  }
1310
- function buildNetworkSnapshot$6(luvio, config, options) {
1311
- const resourceParams = createResourceParams$6(config);
1312
- const request = createResourceRequest$6();
1479
+ function buildNetworkSnapshot$7(luvio, config, options) {
1480
+ const resourceParams = createResourceParams$7(config);
1481
+ const request = createResourceRequest$7();
1313
1482
  return luvio.dispatchResourceRequest(request, options)
1314
1483
  .then((response) => {
1315
1484
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
1316
1485
  const cache = new StoreKeyMap();
1317
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1486
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
1318
1487
  return cache;
1319
1488
  });
1320
1489
  }, (response) => {
@@ -1322,23 +1491,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
1322
1491
  });
1323
1492
  }
1324
1493
  function buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext) {
1325
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
1494
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
1326
1495
  }
1327
1496
  function buildCachedSnapshotCachePolicy$5(context, storeLookup) {
1328
1497
  const { luvio, config } = context;
1329
1498
  const selector = {
1330
- recordId: keyBuilder$b(luvio, config),
1499
+ recordId: keyBuilder$c(luvio, config),
1331
1500
  node: adapterFragment$5(luvio, config),
1332
1501
  variables: {},
1333
1502
  };
1334
1503
  const cacheSnapshot = storeLookup(selector, {
1335
1504
  config,
1336
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
1505
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
1337
1506
  });
1338
1507
  return cacheSnapshot;
1339
1508
  }
1340
1509
  const getSnapshotsAdapterFactory = (luvio) => function epc__getSnapshots(untrustedConfig, requestContext) {
1341
- const config = validateAdapterConfig$6(untrustedConfig, getSnapshots_ConfigPropertyNames);
1510
+ const config = validateAdapterConfig$7(untrustedConfig, getSnapshots_ConfigPropertyNames);
1342
1511
  // Invalid or incomplete config
1343
1512
  if (config === null) {
1344
1513
  return null;
@@ -1347,7 +1516,7 @@ const getSnapshotsAdapterFactory = (luvio) => function epc__getSnapshots(untrust
1347
1516
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
1348
1517
  };
1349
1518
 
1350
- function validate$p(obj, path = 'ProductAttributeDefinitionListInputRepresentation') {
1519
+ function validate$u(obj, path = 'ProductAttributeDefinitionListInputRepresentation') {
1351
1520
  const v_error = (() => {
1352
1521
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1353
1522
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1368,7 +1537,7 @@ function validate$p(obj, path = 'ProductAttributeDefinitionListInputRepresentati
1368
1537
  return v_error === undefined ? null : v_error;
1369
1538
  }
1370
1539
 
1371
- function validate$o(obj, path = 'ProductAttributeDefinitionRepresentation') {
1540
+ function validate$t(obj, path = 'ProductAttributeDefinitionRepresentation') {
1372
1541
  const v_error = (() => {
1373
1542
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1374
1543
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1391,9 +1560,9 @@ function validate$o(obj, path = 'ProductAttributeDefinitionRepresentation') {
1391
1560
  return v_error === undefined ? null : v_error;
1392
1561
  }
1393
1562
 
1394
- const TTL$4 = 6000;
1395
- const VERSION$6 = "e67d3c8569b9667eac98cc1a9840041c";
1396
- function validate$n(obj, path = 'ProductAttributeDefinitionListRepresentation') {
1563
+ const TTL$5 = 6000;
1564
+ const VERSION$7 = "e67d3c8569b9667eac98cc1a9840041c";
1565
+ function validate$s(obj, path = 'ProductAttributeDefinitionListRepresentation') {
1397
1566
  const v_error = (() => {
1398
1567
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1399
1568
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1406,7 +1575,7 @@ function validate$n(obj, path = 'ProductAttributeDefinitionListRepresentation')
1406
1575
  for (let i = 0; i < obj_data.length; i++) {
1407
1576
  const obj_data_item = obj_data[i];
1408
1577
  const path_data_item = path_data + '[' + i + ']';
1409
- const referencepath_data_itemValidationError = validate$o(obj_data_item, path_data_item);
1578
+ const referencepath_data_itemValidationError = validate$t(obj_data_item, path_data_item);
1410
1579
  if (referencepath_data_itemValidationError !== null) {
1411
1580
  let message = 'Object doesn\'t match ProductAttributeDefinitionRepresentation (at "' + path_data_item + '")\n';
1412
1581
  message += referencepath_data_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1421,68 +1590,68 @@ function validate$n(obj, path = 'ProductAttributeDefinitionListRepresentation')
1421
1590
  })();
1422
1591
  return v_error === undefined ? null : v_error;
1423
1592
  }
1424
- const RepresentationType$5 = 'ProductAttributeDefinitionListRepresentation';
1425
- function keyBuilder$a(luvio, config) {
1426
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.message;
1593
+ const RepresentationType$6 = 'ProductAttributeDefinitionListRepresentation';
1594
+ function keyBuilder$b(luvio, config) {
1595
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.message;
1427
1596
  }
1428
- function keyBuilderFromType(luvio, object) {
1597
+ function keyBuilderFromType$1(luvio, object) {
1429
1598
  const keyParams = {
1430
1599
  message: object.message
1431
1600
  };
1432
- return keyBuilder$a(luvio, keyParams);
1601
+ return keyBuilder$b(luvio, keyParams);
1433
1602
  }
1434
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1603
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1435
1604
  return input;
1436
1605
  }
1437
- const select$c = function ProductAttributeDefinitionListRepresentationSelect() {
1606
+ const select$e = function ProductAttributeDefinitionListRepresentationSelect() {
1438
1607
  return {
1439
1608
  kind: 'Fragment',
1440
- version: VERSION$6,
1609
+ version: VERSION$7,
1441
1610
  private: [],
1442
1611
  opaque: true
1443
1612
  };
1444
1613
  };
1445
- function equals$6(existing, incoming) {
1614
+ function equals$7(existing, incoming) {
1446
1615
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1447
1616
  return false;
1448
1617
  }
1449
1618
  return true;
1450
1619
  }
1451
- const ingest$5 = function ProductAttributeDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
1620
+ const ingest$6 = function ProductAttributeDefinitionListRepresentationIngest(input, path, luvio, store, timestamp) {
1452
1621
  if (process.env.NODE_ENV !== 'production') {
1453
- const validateError = validate$n(input);
1622
+ const validateError = validate$s(input);
1454
1623
  if (validateError !== null) {
1455
1624
  throw validateError;
1456
1625
  }
1457
1626
  }
1458
- const key = keyBuilderFromType(luvio, input);
1459
- const ttlToUse = TTL$4;
1460
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "epc", VERSION$6, RepresentationType$5, equals$6);
1627
+ const key = keyBuilderFromType$1(luvio, input);
1628
+ const ttlToUse = TTL$5;
1629
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "epc", VERSION$7, RepresentationType$6, equals$7);
1461
1630
  return createLink(key);
1462
1631
  };
1463
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1632
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1464
1633
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1465
- const rootKey = keyBuilderFromType(luvio, input);
1634
+ const rootKey = keyBuilderFromType$1(luvio, input);
1466
1635
  rootKeySet.set(rootKey, {
1467
1636
  namespace: keyPrefix,
1468
- representationName: RepresentationType$5,
1637
+ representationName: RepresentationType$6,
1469
1638
  mergeable: false
1470
1639
  });
1471
1640
  }
1472
1641
 
1473
- function select$b(luvio, params) {
1474
- return select$c();
1642
+ function select$d(luvio, params) {
1643
+ return select$e();
1475
1644
  }
1476
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1477
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1645
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
1646
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
1478
1647
  }
1479
- function ingestSuccess$5(luvio, resourceParams, response) {
1648
+ function ingestSuccess$6(luvio, resourceParams, response) {
1480
1649
  const { body } = response;
1481
- const key = keyBuilderFromType(luvio, body);
1482
- luvio.storeIngest(key, ingest$5, body);
1650
+ const key = keyBuilderFromType$1(luvio, body);
1651
+ luvio.storeIngest(key, ingest$6, body);
1483
1652
  const snapshot = luvio.storeLookup({
1484
1653
  recordId: key,
1485
- node: select$b(),
1654
+ node: select$d(),
1486
1655
  variables: {},
1487
1656
  });
1488
1657
  if (process.env.NODE_ENV !== 'production') {
@@ -1493,7 +1662,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1493
1662
  deepFreeze(snapshot.data);
1494
1663
  return snapshot;
1495
1664
  }
1496
- function createResourceRequest$5(config) {
1665
+ function createResourceRequest$6(config) {
1497
1666
  const headers = {};
1498
1667
  return {
1499
1668
  baseUri: '/services/data/v62.0',
@@ -1507,45 +1676,45 @@ function createResourceRequest$5(config) {
1507
1676
  };
1508
1677
  }
1509
1678
 
1510
- const adapterName$5 = 'createProductAttributeDefinition';
1679
+ const adapterName$6 = 'createProductAttributeDefinition';
1511
1680
  const createProductAttributeDefinition_ConfigPropertyMetadata = [
1512
1681
  generateParamConfigMetadata('productAttributeDefinitionListInputPayload', true, 2 /* Body */, 4 /* Unsupported */),
1513
1682
  ];
1514
- const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createProductAttributeDefinition_ConfigPropertyMetadata);
1515
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(createProductAttributeDefinition_ConfigPropertyMetadata);
1516
- function typeCheckConfig$5(untrustedConfig) {
1683
+ const createProductAttributeDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createProductAttributeDefinition_ConfigPropertyMetadata);
1684
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$c(createProductAttributeDefinition_ConfigPropertyMetadata);
1685
+ function typeCheckConfig$6(untrustedConfig) {
1517
1686
  const config = {};
1518
1687
  const untrustedConfig_productAttributeDefinitionListInputPayload = untrustedConfig.productAttributeDefinitionListInputPayload;
1519
- const referenceProductAttributeDefinitionListInputRepresentationValidationError = validate$p(untrustedConfig_productAttributeDefinitionListInputPayload);
1688
+ const referenceProductAttributeDefinitionListInputRepresentationValidationError = validate$u(untrustedConfig_productAttributeDefinitionListInputPayload);
1520
1689
  if (referenceProductAttributeDefinitionListInputRepresentationValidationError === null) {
1521
1690
  config.productAttributeDefinitionListInputPayload = untrustedConfig_productAttributeDefinitionListInputPayload;
1522
1691
  }
1523
1692
  return config;
1524
1693
  }
1525
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1694
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
1526
1695
  if (!untrustedIsObject(untrustedConfig)) {
1527
1696
  return null;
1528
1697
  }
1529
1698
  if (process.env.NODE_ENV !== 'production') {
1530
1699
  validateConfig(untrustedConfig, configPropertyNames);
1531
1700
  }
1532
- const config = typeCheckConfig$5(untrustedConfig);
1701
+ const config = typeCheckConfig$6(untrustedConfig);
1533
1702
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1534
1703
  return null;
1535
1704
  }
1536
1705
  return config;
1537
1706
  }
1538
- function buildNetworkSnapshot$5(luvio, config, options) {
1539
- const resourceParams = createResourceParams$5(config);
1540
- const request = createResourceRequest$5(resourceParams);
1707
+ function buildNetworkSnapshot$6(luvio, config, options) {
1708
+ const resourceParams = createResourceParams$6(config);
1709
+ const request = createResourceRequest$6(resourceParams);
1541
1710
  return luvio.dispatchResourceRequest(request, options)
1542
1711
  .then((response) => {
1543
1712
  return luvio.handleSuccessResponse(() => {
1544
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1713
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response);
1545
1714
  return luvio.storeBroadcast().then(() => snapshot);
1546
1715
  }, () => {
1547
1716
  const cache = new StoreKeyMap();
1548
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1717
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
1549
1718
  return cache;
1550
1719
  });
1551
1720
  }, (response) => {
@@ -1555,16 +1724,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1555
1724
  }
1556
1725
  const createProductAttributeDefinitionAdapterFactory = (luvio) => {
1557
1726
  return function createProductAttributeDefinition(untrustedConfig) {
1558
- const config = validateAdapterConfig$5(untrustedConfig, createProductAttributeDefinition_ConfigPropertyNames);
1727
+ const config = validateAdapterConfig$6(untrustedConfig, createProductAttributeDefinition_ConfigPropertyNames);
1559
1728
  // Invalid or incomplete config
1560
1729
  if (config === null) {
1561
1730
  throw new Error('Invalid config for "createProductAttributeDefinition"');
1562
1731
  }
1563
- return buildNetworkSnapshot$5(luvio, config);
1732
+ return buildNetworkSnapshot$6(luvio, config);
1564
1733
  };
1565
1734
  };
1566
1735
 
1567
- function validate$m(obj, path = 'ProductFlowConnectRepresentation') {
1736
+ function validate$r(obj, path = 'ProductFlowConnectRepresentation') {
1568
1737
  const v_error = (() => {
1569
1738
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1570
1739
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1580,8 +1749,8 @@ function validate$m(obj, path = 'ProductFlowConnectRepresentation') {
1580
1749
  return v_error === undefined ? null : v_error;
1581
1750
  }
1582
1751
 
1583
- const VERSION$5 = "9e839ceea7c6caa2747b4d3170bd209d";
1584
- function validate$l(obj, path = 'Status') {
1752
+ const VERSION$6 = "9e839ceea7c6caa2747b4d3170bd209d";
1753
+ function validate$q(obj, path = 'Status') {
1585
1754
  const v_error = (() => {
1586
1755
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1587
1756
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1603,10 +1772,10 @@ function validate$l(obj, path = 'Status') {
1603
1772
  })();
1604
1773
  return v_error === undefined ? null : v_error;
1605
1774
  }
1606
- const select$a = function StatusSelect() {
1775
+ const select$c = function StatusSelect() {
1607
1776
  return {
1608
1777
  kind: 'Fragment',
1609
- version: VERSION$5,
1778
+ version: VERSION$6,
1610
1779
  private: [],
1611
1780
  selections: [
1612
1781
  {
@@ -1622,7 +1791,7 @@ const select$a = function StatusSelect() {
1622
1791
  ]
1623
1792
  };
1624
1793
  };
1625
- function equals$5(existing, incoming) {
1794
+ function equals$6(existing, incoming) {
1626
1795
  const existing_code = existing.code;
1627
1796
  const incoming_code = incoming.code;
1628
1797
  // if at least one of these optionals is defined
@@ -1652,9 +1821,9 @@ function equals$5(existing, incoming) {
1652
1821
  return true;
1653
1822
  }
1654
1823
 
1655
- const TTL$3 = 6000;
1656
- const VERSION$4 = "a75aed3c640fb969c24561ef4f8cb169";
1657
- function validate$k(obj, path = 'ProductFlowOutputRepresentation') {
1824
+ const TTL$4 = 6000;
1825
+ const VERSION$5 = "a75aed3c640fb969c24561ef4f8cb169";
1826
+ function validate$p(obj, path = 'ProductFlowOutputRepresentation') {
1658
1827
  const v_error = (() => {
1659
1828
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1660
1829
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1669,7 +1838,7 @@ function validate$k(obj, path = 'ProductFlowOutputRepresentation') {
1669
1838
  if (obj.productFlow !== undefined) {
1670
1839
  const obj_productFlow = obj.productFlow;
1671
1840
  const path_productFlow = path + '.productFlow';
1672
- const referencepath_productFlowValidationError = validate$m(obj_productFlow, path_productFlow);
1841
+ const referencepath_productFlowValidationError = validate$r(obj_productFlow, path_productFlow);
1673
1842
  if (referencepath_productFlowValidationError !== null) {
1674
1843
  let message = 'Object doesn\'t match ProductFlowConnectRepresentation (at "' + path_productFlow + '")\n';
1675
1844
  message += referencepath_productFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1679,7 +1848,7 @@ function validate$k(obj, path = 'ProductFlowOutputRepresentation') {
1679
1848
  if (obj.status !== undefined) {
1680
1849
  const obj_status = obj.status;
1681
1850
  const path_status = path + '.status';
1682
- const referencepath_statusValidationError = validate$l(obj_status, path_status);
1851
+ const referencepath_statusValidationError = validate$q(obj_status, path_status);
1683
1852
  if (referencepath_statusValidationError !== null) {
1684
1853
  let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
1685
1854
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1689,62 +1858,62 @@ function validate$k(obj, path = 'ProductFlowOutputRepresentation') {
1689
1858
  })();
1690
1859
  return v_error === undefined ? null : v_error;
1691
1860
  }
1692
- const RepresentationType$4 = 'ProductFlowOutputRepresentation';
1693
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1861
+ const RepresentationType$5 = 'ProductFlowOutputRepresentation';
1862
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
1694
1863
  return input;
1695
1864
  }
1696
- const select$9 = function ProductFlowOutputRepresentationSelect() {
1865
+ const select$b = function ProductFlowOutputRepresentationSelect() {
1697
1866
  return {
1698
1867
  kind: 'Fragment',
1699
- version: VERSION$4,
1868
+ version: VERSION$5,
1700
1869
  private: [],
1701
1870
  opaque: true
1702
1871
  };
1703
1872
  };
1704
- function equals$4(existing, incoming) {
1873
+ function equals$5(existing, incoming) {
1705
1874
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1706
1875
  return false;
1707
1876
  }
1708
1877
  return true;
1709
1878
  }
1710
- const ingest$4 = function ProductFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1879
+ const ingest$5 = function ProductFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1711
1880
  if (process.env.NODE_ENV !== 'production') {
1712
- const validateError = validate$k(input);
1881
+ const validateError = validate$p(input);
1713
1882
  if (validateError !== null) {
1714
1883
  throw validateError;
1715
1884
  }
1716
1885
  }
1717
1886
  const key = path.fullPath;
1718
- const ttlToUse = TTL$3;
1719
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "epc", VERSION$4, RepresentationType$4, equals$4);
1887
+ const ttlToUse = TTL$4;
1888
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "epc", VERSION$5, RepresentationType$5, equals$5);
1720
1889
  return createLink(key);
1721
1890
  };
1722
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1891
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1723
1892
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1724
1893
  const rootKey = fullPathFactory();
1725
1894
  rootKeySet.set(rootKey, {
1726
1895
  namespace: keyPrefix,
1727
- representationName: RepresentationType$4,
1896
+ representationName: RepresentationType$5,
1728
1897
  mergeable: false
1729
1898
  });
1730
1899
  }
1731
1900
 
1732
- function select$8(luvio, params) {
1733
- return select$9();
1901
+ function select$a(luvio, params) {
1902
+ return select$b();
1734
1903
  }
1735
- function keyBuilder$9(luvio, params) {
1904
+ function keyBuilder$a(luvio, params) {
1736
1905
  return keyPrefix + '::ProductFlowOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'productId:' + params.urlParams.productId + ')';
1737
1906
  }
1738
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1739
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
1907
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1908
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
1740
1909
  }
1741
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1910
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1742
1911
  const { body } = response;
1743
- const key = keyBuilder$9(luvio, resourceParams);
1744
- luvio.storeIngest(key, ingest$4, body);
1912
+ const key = keyBuilder$a(luvio, resourceParams);
1913
+ luvio.storeIngest(key, ingest$5, body);
1745
1914
  const snapshot = luvio.storeLookup({
1746
1915
  recordId: key,
1747
- node: select$8(),
1916
+ node: select$a(),
1748
1917
  variables: {},
1749
1918
  }, snapshotRefresh);
1750
1919
  if (process.env.NODE_ENV !== 'production') {
@@ -1756,18 +1925,18 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1756
1925
  return snapshot;
1757
1926
  }
1758
1927
  function ingestError$4(luvio, params, error, snapshotRefresh) {
1759
- const key = keyBuilder$9(luvio, params);
1928
+ const key = keyBuilder$a(luvio, params);
1760
1929
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1761
1930
  const storeMetadataParams = {
1762
- ttl: TTL$3,
1931
+ ttl: TTL$4,
1763
1932
  namespace: keyPrefix,
1764
- version: VERSION$4,
1765
- representationName: RepresentationType$4
1933
+ version: VERSION$5,
1934
+ representationName: RepresentationType$5
1766
1935
  };
1767
1936
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1768
1937
  return errorSnapshot;
1769
1938
  }
1770
- function createResourceRequest$4(config) {
1939
+ function createResourceRequest$5(config) {
1771
1940
  const headers = {};
1772
1941
  return {
1773
1942
  baseUri: '/services/data/v62.0',
@@ -1781,61 +1950,61 @@ function createResourceRequest$4(config) {
1781
1950
  };
1782
1951
  }
1783
1952
 
1784
- const adapterName$4 = 'getProductFlowByProductId';
1953
+ const adapterName$5 = 'getProductFlowByProductId';
1785
1954
  const getProductFlowByProductId_ConfigPropertyMetadata = [
1786
1955
  generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
1787
1956
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
1788
1957
  ];
1789
- const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getProductFlowByProductId_ConfigPropertyMetadata);
1790
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getProductFlowByProductId_ConfigPropertyMetadata);
1791
- function keyBuilder$8(luvio, config) {
1792
- const resourceParams = createResourceParams$4(config);
1793
- return keyBuilder$9(luvio, resourceParams);
1958
+ const getProductFlowByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getProductFlowByProductId_ConfigPropertyMetadata);
1959
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$c(getProductFlowByProductId_ConfigPropertyMetadata);
1960
+ function keyBuilder$9(luvio, config) {
1961
+ const resourceParams = createResourceParams$5(config);
1962
+ return keyBuilder$a(luvio, resourceParams);
1794
1963
  }
1795
- function typeCheckConfig$4(untrustedConfig) {
1964
+ function typeCheckConfig$5(untrustedConfig) {
1796
1965
  const config = {};
1797
- typeCheckConfig$b(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
1966
+ typeCheckConfig$c(untrustedConfig, config, getProductFlowByProductId_ConfigPropertyMetadata);
1798
1967
  return config;
1799
1968
  }
1800
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1969
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1801
1970
  if (!untrustedIsObject(untrustedConfig)) {
1802
1971
  return null;
1803
1972
  }
1804
1973
  if (process.env.NODE_ENV !== 'production') {
1805
1974
  validateConfig(untrustedConfig, configPropertyNames);
1806
1975
  }
1807
- const config = typeCheckConfig$4(untrustedConfig);
1976
+ const config = typeCheckConfig$5(untrustedConfig);
1808
1977
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1809
1978
  return null;
1810
1979
  }
1811
1980
  return config;
1812
1981
  }
1813
1982
  function adapterFragment$4(luvio, config) {
1814
- createResourceParams$4(config);
1815
- return select$8();
1983
+ createResourceParams$5(config);
1984
+ return select$a();
1816
1985
  }
1817
1986
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
1818
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1987
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
1819
1988
  config,
1820
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1989
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1821
1990
  });
1822
1991
  return luvio.storeBroadcast().then(() => snapshot);
1823
1992
  }
1824
1993
  function onFetchResponseError$4(luvio, config, resourceParams, response) {
1825
1994
  const snapshot = ingestError$4(luvio, resourceParams, response, {
1826
1995
  config,
1827
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1996
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1828
1997
  });
1829
1998
  return luvio.storeBroadcast().then(() => snapshot);
1830
1999
  }
1831
- function buildNetworkSnapshot$4(luvio, config, options) {
1832
- const resourceParams = createResourceParams$4(config);
1833
- const request = createResourceRequest$4(resourceParams);
2000
+ function buildNetworkSnapshot$5(luvio, config, options) {
2001
+ const resourceParams = createResourceParams$5(config);
2002
+ const request = createResourceRequest$5(resourceParams);
1834
2003
  return luvio.dispatchResourceRequest(request, options)
1835
2004
  .then((response) => {
1836
2005
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
1837
2006
  const cache = new StoreKeyMap();
1838
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2007
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1839
2008
  return cache;
1840
2009
  });
1841
2010
  }, (response) => {
@@ -1843,23 +2012,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1843
2012
  });
1844
2013
  }
1845
2014
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
1846
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2015
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
1847
2016
  }
1848
2017
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
1849
2018
  const { luvio, config } = context;
1850
2019
  const selector = {
1851
- recordId: keyBuilder$8(luvio, config),
2020
+ recordId: keyBuilder$9(luvio, config),
1852
2021
  node: adapterFragment$4(luvio, config),
1853
2022
  variables: {},
1854
2023
  };
1855
2024
  const cacheSnapshot = storeLookup(selector, {
1856
2025
  config,
1857
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2026
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1858
2027
  });
1859
2028
  return cacheSnapshot;
1860
2029
  }
1861
2030
  const getProductFlowByProductIdAdapterFactory = (luvio) => function epc__getProductFlowByProductId(untrustedConfig, requestContext) {
1862
- const config = validateAdapterConfig$4(untrustedConfig, getProductFlowByProductId_ConfigPropertyNames);
2031
+ const config = validateAdapterConfig$5(untrustedConfig, getProductFlowByProductId_ConfigPropertyNames);
1863
2032
  // Invalid or incomplete config
1864
2033
  if (config === null) {
1865
2034
  return null;
@@ -1868,7 +2037,7 @@ const getProductFlowByProductIdAdapterFactory = (luvio) => function epc__getProd
1868
2037
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
1869
2038
  };
1870
2039
 
1871
- function validate$j(obj, path = 'AttributePicklistValueOutputRepresentation') {
2040
+ function validate$o(obj, path = 'AttributePicklistValueOutputRepresentation') {
1872
2041
  const v_error = (() => {
1873
2042
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1874
2043
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1947,7 +2116,7 @@ function validate$j(obj, path = 'AttributePicklistValueOutputRepresentation') {
1947
2116
  return v_error === undefined ? null : v_error;
1948
2117
  }
1949
2118
 
1950
- function validate$i(obj, path = 'AttributePicklistOutputRepresentation') {
2119
+ function validate$n(obj, path = 'AttributePicklistOutputRepresentation') {
1951
2120
  const v_error = (() => {
1952
2121
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1953
2122
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1996,7 +2165,7 @@ function validate$i(obj, path = 'AttributePicklistOutputRepresentation') {
1996
2165
  for (let i = 0; i < obj_values.length; i++) {
1997
2166
  const obj_values_item = obj_values[i];
1998
2167
  const path_values_item = path_values + '[' + i + ']';
1999
- const referencepath_values_itemValidationError = validate$j(obj_values_item, path_values_item);
2168
+ const referencepath_values_itemValidationError = validate$o(obj_values_item, path_values_item);
2000
2169
  if (referencepath_values_itemValidationError !== null) {
2001
2170
  let message = 'Object doesn\'t match AttributePicklistValueOutputRepresentation (at "' + path_values_item + '")\n';
2002
2171
  message += referencepath_values_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2008,7 +2177,7 @@ function validate$i(obj, path = 'AttributePicklistOutputRepresentation') {
2008
2177
  return v_error === undefined ? null : v_error;
2009
2178
  }
2010
2179
 
2011
- function validate$h(obj, path = 'AttributeDefinitionOutputRepresentation') {
2180
+ function validate$m(obj, path = 'AttributeDefinitionOutputRepresentation') {
2012
2181
  const v_error = (() => {
2013
2182
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2014
2183
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2128,7 +2297,7 @@ function validate$h(obj, path = 'AttributeDefinitionOutputRepresentation') {
2128
2297
  if (obj.picklist !== undefined) {
2129
2298
  const obj_picklist = obj.picklist;
2130
2299
  const path_picklist = path + '.picklist';
2131
- const referencepath_picklistValidationError = validate$i(obj_picklist, path_picklist);
2300
+ const referencepath_picklistValidationError = validate$n(obj_picklist, path_picklist);
2132
2301
  if (referencepath_picklistValidationError !== null) {
2133
2302
  let message = 'Object doesn\'t match AttributePicklistOutputRepresentation (at "' + path_picklist + '")\n';
2134
2303
  message += referencepath_picklistValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2146,7 +2315,7 @@ function validate$h(obj, path = 'AttributeDefinitionOutputRepresentation') {
2146
2315
  return v_error === undefined ? null : v_error;
2147
2316
  }
2148
2317
 
2149
- function validate$g(obj, path = 'AttributeCategoryOutputRepresentation') {
2318
+ function validate$l(obj, path = 'AttributeCategoryOutputRepresentation') {
2150
2319
  const v_error = (() => {
2151
2320
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2152
2321
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2160,7 +2329,7 @@ function validate$g(obj, path = 'AttributeCategoryOutputRepresentation') {
2160
2329
  for (let i = 0; i < obj_attributes.length; i++) {
2161
2330
  const obj_attributes_item = obj_attributes[i];
2162
2331
  const path_attributes_item = path_attributes + '[' + i + ']';
2163
- const referencepath_attributes_itemValidationError = validate$h(obj_attributes_item, path_attributes_item);
2332
+ const referencepath_attributes_itemValidationError = validate$m(obj_attributes_item, path_attributes_item);
2164
2333
  if (referencepath_attributes_itemValidationError !== null) {
2165
2334
  let message = 'Object doesn\'t match AttributeDefinitionOutputRepresentation (at "' + path_attributes_item + '")\n';
2166
2335
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2193,7 +2362,7 @@ function validate$g(obj, path = 'AttributeCategoryOutputRepresentation') {
2193
2362
  return v_error === undefined ? null : v_error;
2194
2363
  }
2195
2364
 
2196
- function validate$f(obj, path = 'PricingModelOutputRepresentation') {
2365
+ function validate$k(obj, path = 'PricingModelOutputRepresentation') {
2197
2366
  const v_error = (() => {
2198
2367
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2199
2368
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2244,7 +2413,7 @@ function validate$f(obj, path = 'PricingModelOutputRepresentation') {
2244
2413
  return v_error === undefined ? null : v_error;
2245
2414
  }
2246
2415
 
2247
- function validate$e(obj, path = 'PriceOutputRepresentation') {
2416
+ function validate$j(obj, path = 'PriceOutputRepresentation') {
2248
2417
  const v_error = (() => {
2249
2418
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2250
2419
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2280,7 +2449,7 @@ function validate$e(obj, path = 'PriceOutputRepresentation') {
2280
2449
  if (obj.pricingModel !== undefined) {
2281
2450
  const obj_pricingModel = obj.pricingModel;
2282
2451
  const path_pricingModel = path + '.pricingModel';
2283
- const referencepath_pricingModelValidationError = validate$f(obj_pricingModel, path_pricingModel);
2452
+ const referencepath_pricingModelValidationError = validate$k(obj_pricingModel, path_pricingModel);
2284
2453
  if (referencepath_pricingModelValidationError !== null) {
2285
2454
  let message = 'Object doesn\'t match PricingModelOutputRepresentation (at "' + path_pricingModel + '")\n';
2286
2455
  message += referencepath_pricingModelValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2298,7 +2467,7 @@ function validate$e(obj, path = 'PriceOutputRepresentation') {
2298
2467
  return v_error === undefined ? null : v_error;
2299
2468
  }
2300
2469
 
2301
- function validate$d(obj, path = 'ProductClassificationOutputRepresentation') {
2470
+ function validate$i(obj, path = 'ProductClassificationOutputRepresentation') {
2302
2471
  const v_error = (() => {
2303
2472
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2304
2473
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2314,7 +2483,7 @@ function validate$d(obj, path = 'ProductClassificationOutputRepresentation') {
2314
2483
  return v_error === undefined ? null : v_error;
2315
2484
  }
2316
2485
 
2317
- function validate$c(obj, path = 'ProductComponentGroupOutputRepresentation') {
2486
+ function validate$h(obj, path = 'ProductComponentGroupOutputRepresentation') {
2318
2487
  const v_error = (() => {
2319
2488
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2320
2489
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2393,7 +2562,7 @@ function validate$c(obj, path = 'ProductComponentGroupOutputRepresentation') {
2393
2562
  return v_error === undefined ? null : v_error;
2394
2563
  }
2395
2564
 
2396
- function validate$b(obj, path = 'ProductSpecificationTypeOutputRepresentation') {
2565
+ function validate$g(obj, path = 'ProductSpecificationTypeOutputRepresentation') {
2397
2566
  const v_error = (() => {
2398
2567
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2399
2568
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2409,7 +2578,7 @@ function validate$b(obj, path = 'ProductSpecificationTypeOutputRepresentation')
2409
2578
  return v_error === undefined ? null : v_error;
2410
2579
  }
2411
2580
 
2412
- function validate$a(obj, path = 'QuantityInfo') {
2581
+ function validate$f(obj, path = 'QuantityInfo') {
2413
2582
  const v_error = (() => {
2414
2583
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2415
2584
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2427,9 +2596,9 @@ function validate$a(obj, path = 'QuantityInfo') {
2427
2596
  return v_error === undefined ? null : v_error;
2428
2597
  }
2429
2598
 
2430
- const TTL$2 = 6000;
2431
- const VERSION$3 = "38ee0d8d67cda562ff19dd5273e07d95";
2432
- function validate$9(obj, path = 'ProductOutputRepresentation') {
2599
+ const TTL$3 = 6000;
2600
+ const VERSION$4 = "38ee0d8d67cda562ff19dd5273e07d95";
2601
+ function validate$e(obj, path = 'ProductOutputRepresentation') {
2433
2602
  const v_error = (() => {
2434
2603
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2435
2604
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2443,7 +2612,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2443
2612
  for (let i = 0; i < obj_attributeCategory.length; i++) {
2444
2613
  const obj_attributeCategory_item = obj_attributeCategory[i];
2445
2614
  const path_attributeCategory_item = path_attributeCategory + '[' + i + ']';
2446
- const referencepath_attributeCategory_itemValidationError = validate$g(obj_attributeCategory_item, path_attributeCategory_item);
2615
+ const referencepath_attributeCategory_itemValidationError = validate$l(obj_attributeCategory_item, path_attributeCategory_item);
2447
2616
  if (referencepath_attributeCategory_itemValidationError !== null) {
2448
2617
  let message = 'Object doesn\'t match AttributeCategoryOutputRepresentation (at "' + path_attributeCategory_item + '")\n';
2449
2618
  message += referencepath_attributeCategory_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2460,7 +2629,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2460
2629
  for (let i = 0; i < obj_attributes.length; i++) {
2461
2630
  const obj_attributes_item = obj_attributes[i];
2462
2631
  const path_attributes_item = path_attributes + '[' + i + ']';
2463
- const referencepath_attributes_itemValidationError = validate$h(obj_attributes_item, path_attributes_item);
2632
+ const referencepath_attributes_itemValidationError = validate$m(obj_attributes_item, path_attributes_item);
2464
2633
  if (referencepath_attributes_itemValidationError !== null) {
2465
2634
  let message = 'Object doesn\'t match AttributeDefinitionOutputRepresentation (at "' + path_attributes_item + '")\n';
2466
2635
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2484,7 +2653,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2484
2653
  for (let i = 0; i < obj_childProducts.length; i++) {
2485
2654
  const obj_childProducts_item = obj_childProducts[i];
2486
2655
  const path_childProducts_item = path_childProducts + '[' + i + ']';
2487
- const referencepath_childProducts_itemValidationError = validate$9(obj_childProducts_item, path_childProducts_item);
2656
+ const referencepath_childProducts_itemValidationError = validate$e(obj_childProducts_item, path_childProducts_item);
2488
2657
  if (referencepath_childProducts_itemValidationError !== null) {
2489
2658
  let message = 'Object doesn\'t match ProductOutputRepresentation (at "' + path_childProducts_item + '")\n';
2490
2659
  message += referencepath_childProducts_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2557,7 +2726,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2557
2726
  for (let i = 0; i < obj_prices.length; i++) {
2558
2727
  const obj_prices_item = obj_prices[i];
2559
2728
  const path_prices_item = path_prices + '[' + i + ']';
2560
- const referencepath_prices_itemValidationError = validate$e(obj_prices_item, path_prices_item);
2729
+ const referencepath_prices_itemValidationError = validate$j(obj_prices_item, path_prices_item);
2561
2730
  if (referencepath_prices_itemValidationError !== null) {
2562
2731
  let message = 'Object doesn\'t match PriceOutputRepresentation (at "' + path_prices_item + '")\n';
2563
2732
  message += referencepath_prices_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2568,7 +2737,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2568
2737
  if (obj.productClassification !== undefined) {
2569
2738
  const obj_productClassification = obj.productClassification;
2570
2739
  const path_productClassification = path + '.productClassification';
2571
- const referencepath_productClassificationValidationError = validate$d(obj_productClassification, path_productClassification);
2740
+ const referencepath_productClassificationValidationError = validate$i(obj_productClassification, path_productClassification);
2572
2741
  if (referencepath_productClassificationValidationError !== null) {
2573
2742
  let message = 'Object doesn\'t match ProductClassificationOutputRepresentation (at "' + path_productClassification + '")\n';
2574
2743
  message += referencepath_productClassificationValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2591,7 +2760,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2591
2760
  for (let i = 0; i < obj_productComponentGroups.length; i++) {
2592
2761
  const obj_productComponentGroups_item = obj_productComponentGroups[i];
2593
2762
  const path_productComponentGroups_item = path_productComponentGroups + '[' + i + ']';
2594
- const referencepath_productComponentGroups_itemValidationError = validate$c(obj_productComponentGroups_item, path_productComponentGroups_item);
2763
+ const referencepath_productComponentGroups_itemValidationError = validate$h(obj_productComponentGroups_item, path_productComponentGroups_item);
2595
2764
  if (referencepath_productComponentGroups_itemValidationError !== null) {
2596
2765
  let message = 'Object doesn\'t match ProductComponentGroupOutputRepresentation (at "' + path_productComponentGroups_item + '")\n';
2597
2766
  message += referencepath_productComponentGroups_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2602,7 +2771,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2602
2771
  if (obj.productSpecificationType !== undefined) {
2603
2772
  const obj_productSpecificationType = obj.productSpecificationType;
2604
2773
  const path_productSpecificationType = path + '.productSpecificationType';
2605
- const referencepath_productSpecificationTypeValidationError = validate$b(obj_productSpecificationType, path_productSpecificationType);
2774
+ const referencepath_productSpecificationTypeValidationError = validate$g(obj_productSpecificationType, path_productSpecificationType);
2606
2775
  if (referencepath_productSpecificationTypeValidationError !== null) {
2607
2776
  let message = 'Object doesn\'t match ProductSpecificationTypeOutputRepresentation (at "' + path_productSpecificationType + '")\n';
2608
2777
  message += referencepath_productSpecificationTypeValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2612,7 +2781,7 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2612
2781
  if (obj.quantityInfo !== undefined) {
2613
2782
  const obj_quantityInfo = obj.quantityInfo;
2614
2783
  const path_quantityInfo = path + '.quantityInfo';
2615
- const referencepath_quantityInfoValidationError = validate$a(obj_quantityInfo, path_quantityInfo);
2784
+ const referencepath_quantityInfoValidationError = validate$f(obj_quantityInfo, path_quantityInfo);
2616
2785
  if (referencepath_quantityInfoValidationError !== null) {
2617
2786
  let message = 'Object doesn\'t match QuantityInfo (at "' + path_quantityInfo + '")\n';
2618
2787
  message += referencepath_quantityInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2622,62 +2791,62 @@ function validate$9(obj, path = 'ProductOutputRepresentation') {
2622
2791
  })();
2623
2792
  return v_error === undefined ? null : v_error;
2624
2793
  }
2625
- const RepresentationType$3 = 'ProductOutputRepresentation';
2626
- function normalize$3(input, existing, path, luvio, store, timestamp) {
2794
+ const RepresentationType$4 = 'ProductOutputRepresentation';
2795
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2627
2796
  return input;
2628
2797
  }
2629
- const select$7 = function ProductOutputRepresentationSelect() {
2798
+ const select$9 = function ProductOutputRepresentationSelect() {
2630
2799
  return {
2631
2800
  kind: 'Fragment',
2632
- version: VERSION$3,
2801
+ version: VERSION$4,
2633
2802
  private: [],
2634
2803
  opaque: true
2635
2804
  };
2636
2805
  };
2637
- function equals$3(existing, incoming) {
2806
+ function equals$4(existing, incoming) {
2638
2807
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
2639
2808
  return false;
2640
2809
  }
2641
2810
  return true;
2642
2811
  }
2643
- const ingest$3 = function ProductOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2812
+ const ingest$4 = function ProductOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2644
2813
  if (process.env.NODE_ENV !== 'production') {
2645
- const validateError = validate$9(input);
2814
+ const validateError = validate$e(input);
2646
2815
  if (validateError !== null) {
2647
2816
  throw validateError;
2648
2817
  }
2649
2818
  }
2650
2819
  const key = path.fullPath;
2651
- const ttlToUse = TTL$2;
2652
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "epc", VERSION$3, RepresentationType$3, equals$3);
2820
+ const ttlToUse = TTL$3;
2821
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "epc", VERSION$4, RepresentationType$4, equals$4);
2653
2822
  return createLink(key);
2654
2823
  };
2655
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2824
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2656
2825
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2657
2826
  const rootKey = fullPathFactory();
2658
2827
  rootKeySet.set(rootKey, {
2659
2828
  namespace: keyPrefix,
2660
- representationName: RepresentationType$3,
2829
+ representationName: RepresentationType$4,
2661
2830
  mergeable: false
2662
2831
  });
2663
2832
  }
2664
2833
 
2665
- function select$6(luvio, params) {
2666
- return select$7();
2834
+ function select$8(luvio, params) {
2835
+ return select$9();
2667
2836
  }
2668
- function keyBuilder$7(luvio, params) {
2837
+ function keyBuilder$8(luvio, params) {
2669
2838
  return keyPrefix + '::ProductOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'isPriceImpacting:' + params.queryParams.isPriceImpacting + ',' + 'productId:' + params.urlParams.productId + ')';
2670
2839
  }
2671
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
2672
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
2840
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
2841
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
2673
2842
  }
2674
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2843
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2675
2844
  const { body } = response;
2676
- const key = keyBuilder$7(luvio, resourceParams);
2677
- luvio.storeIngest(key, ingest$3, body);
2845
+ const key = keyBuilder$8(luvio, resourceParams);
2846
+ luvio.storeIngest(key, ingest$4, body);
2678
2847
  const snapshot = luvio.storeLookup({
2679
2848
  recordId: key,
2680
- node: select$6(),
2849
+ node: select$8(),
2681
2850
  variables: {},
2682
2851
  }, snapshotRefresh);
2683
2852
  if (process.env.NODE_ENV !== 'production') {
@@ -2689,18 +2858,18 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
2689
2858
  return snapshot;
2690
2859
  }
2691
2860
  function ingestError$3(luvio, params, error, snapshotRefresh) {
2692
- const key = keyBuilder$7(luvio, params);
2861
+ const key = keyBuilder$8(luvio, params);
2693
2862
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2694
2863
  const storeMetadataParams = {
2695
- ttl: TTL$2,
2864
+ ttl: TTL$3,
2696
2865
  namespace: keyPrefix,
2697
- version: VERSION$3,
2698
- representationName: RepresentationType$3
2866
+ version: VERSION$4,
2867
+ representationName: RepresentationType$4
2699
2868
  };
2700
2869
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2701
2870
  return errorSnapshot;
2702
2871
  }
2703
- function createResourceRequest$3(config) {
2872
+ function createResourceRequest$4(config) {
2704
2873
  const headers = {};
2705
2874
  return {
2706
2875
  baseUri: '/services/data/v62.0',
@@ -2714,62 +2883,62 @@ function createResourceRequest$3(config) {
2714
2883
  };
2715
2884
  }
2716
2885
 
2717
- const adapterName$3 = 'getProductAttributesByProductId';
2886
+ const adapterName$4 = 'getProductAttributesByProductId';
2718
2887
  const getProductAttributesByProductId_ConfigPropertyMetadata = [
2719
2888
  generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
2720
2889
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
2721
2890
  generateParamConfigMetadata('isPriceImpacting', false, 1 /* QueryParameter */, 1 /* Boolean */),
2722
2891
  ];
2723
- const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getProductAttributesByProductId_ConfigPropertyMetadata);
2724
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getProductAttributesByProductId_ConfigPropertyMetadata);
2725
- function keyBuilder$6(luvio, config) {
2726
- const resourceParams = createResourceParams$3(config);
2727
- return keyBuilder$7(luvio, resourceParams);
2892
+ const getProductAttributesByProductId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getProductAttributesByProductId_ConfigPropertyMetadata);
2893
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$c(getProductAttributesByProductId_ConfigPropertyMetadata);
2894
+ function keyBuilder$7(luvio, config) {
2895
+ const resourceParams = createResourceParams$4(config);
2896
+ return keyBuilder$8(luvio, resourceParams);
2728
2897
  }
2729
- function typeCheckConfig$3(untrustedConfig) {
2898
+ function typeCheckConfig$4(untrustedConfig) {
2730
2899
  const config = {};
2731
- typeCheckConfig$b(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
2900
+ typeCheckConfig$c(untrustedConfig, config, getProductAttributesByProductId_ConfigPropertyMetadata);
2732
2901
  return config;
2733
2902
  }
2734
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
2903
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2735
2904
  if (!untrustedIsObject(untrustedConfig)) {
2736
2905
  return null;
2737
2906
  }
2738
2907
  if (process.env.NODE_ENV !== 'production') {
2739
2908
  validateConfig(untrustedConfig, configPropertyNames);
2740
2909
  }
2741
- const config = typeCheckConfig$3(untrustedConfig);
2910
+ const config = typeCheckConfig$4(untrustedConfig);
2742
2911
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
2743
2912
  return null;
2744
2913
  }
2745
2914
  return config;
2746
2915
  }
2747
2916
  function adapterFragment$3(luvio, config) {
2748
- createResourceParams$3(config);
2749
- return select$6();
2917
+ createResourceParams$4(config);
2918
+ return select$8();
2750
2919
  }
2751
2920
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2752
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
2921
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2753
2922
  config,
2754
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2923
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2755
2924
  });
2756
2925
  return luvio.storeBroadcast().then(() => snapshot);
2757
2926
  }
2758
2927
  function onFetchResponseError$3(luvio, config, resourceParams, response) {
2759
2928
  const snapshot = ingestError$3(luvio, resourceParams, response, {
2760
2929
  config,
2761
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2930
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2762
2931
  });
2763
2932
  return luvio.storeBroadcast().then(() => snapshot);
2764
2933
  }
2765
- function buildNetworkSnapshot$3(luvio, config, options) {
2766
- const resourceParams = createResourceParams$3(config);
2767
- const request = createResourceRequest$3(resourceParams);
2934
+ function buildNetworkSnapshot$4(luvio, config, options) {
2935
+ const resourceParams = createResourceParams$4(config);
2936
+ const request = createResourceRequest$4(resourceParams);
2768
2937
  return luvio.dispatchResourceRequest(request, options)
2769
2938
  .then((response) => {
2770
2939
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2771
2940
  const cache = new StoreKeyMap();
2772
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
2941
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
2773
2942
  return cache;
2774
2943
  });
2775
2944
  }, (response) => {
@@ -2777,23 +2946,23 @@ function buildNetworkSnapshot$3(luvio, config, options) {
2777
2946
  });
2778
2947
  }
2779
2948
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2780
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
2949
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
2781
2950
  }
2782
2951
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2783
2952
  const { luvio, config } = context;
2784
2953
  const selector = {
2785
- recordId: keyBuilder$6(luvio, config),
2954
+ recordId: keyBuilder$7(luvio, config),
2786
2955
  node: adapterFragment$3(luvio, config),
2787
2956
  variables: {},
2788
2957
  };
2789
2958
  const cacheSnapshot = storeLookup(selector, {
2790
2959
  config,
2791
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
2960
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
2792
2961
  });
2793
2962
  return cacheSnapshot;
2794
2963
  }
2795
2964
  const getProductAttributesByProductIdAdapterFactory = (luvio) => function epc__getProductAttributesByProductId(untrustedConfig, requestContext) {
2796
- const config = validateAdapterConfig$3(untrustedConfig, getProductAttributesByProductId_ConfigPropertyNames);
2965
+ const config = validateAdapterConfig$4(untrustedConfig, getProductAttributesByProductId_ConfigPropertyNames);
2797
2966
  // Invalid or incomplete config
2798
2967
  if (config === null) {
2799
2968
  return null;
@@ -2802,8 +2971,8 @@ const getProductAttributesByProductIdAdapterFactory = (luvio) => function epc__g
2802
2971
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2803
2972
  };
2804
2973
 
2805
- const VERSION$2 = "dc3572320bc5b04b2f7f9fd7c6ee1281";
2806
- function validate$8(obj, path = 'ProductsOutputRepresentation') {
2974
+ const VERSION$3 = "dc3572320bc5b04b2f7f9fd7c6ee1281";
2975
+ function validate$d(obj, path = 'ProductsOutputRepresentation') {
2807
2976
  const v_error = (() => {
2808
2977
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2809
2978
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2839,7 +3008,7 @@ function validate$8(obj, path = 'ProductsOutputRepresentation') {
2839
3008
  if (obj.status !== undefined) {
2840
3009
  const obj_status = obj.status;
2841
3010
  const path_status = path + '.status';
2842
- const referencepath_statusValidationError = validate$l(obj_status, path_status);
3011
+ const referencepath_statusValidationError = validate$q(obj_status, path_status);
2843
3012
  if (referencepath_statusValidationError !== null) {
2844
3013
  let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
2845
3014
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -2849,15 +3018,15 @@ function validate$8(obj, path = 'ProductsOutputRepresentation') {
2849
3018
  })();
2850
3019
  return v_error === undefined ? null : v_error;
2851
3020
  }
2852
- const RepresentationType$2 = 'ProductsOutputRepresentation';
2853
- function normalize$2(input, existing, path, luvio, store, timestamp) {
3021
+ const RepresentationType$3 = 'ProductsOutputRepresentation';
3022
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
2854
3023
  const input_products = input.products;
2855
3024
  const input_products_id = path.fullPath + '__products';
2856
3025
  if (input_products !== undefined) {
2857
3026
  for (let i = 0; i < input_products.length; i++) {
2858
3027
  const input_products_item = input_products[i];
2859
3028
  let input_products_item_id = input_products_id + '__' + i;
2860
- input_products[i] = ingest$3(input_products_item, {
3029
+ input_products[i] = ingest$4(input_products_item, {
2861
3030
  fullPath: input_products_item_id,
2862
3031
  propertyName: i,
2863
3032
  parent: {
@@ -2871,11 +3040,11 @@ function normalize$2(input, existing, path, luvio, store, timestamp) {
2871
3040
  }
2872
3041
  return input;
2873
3042
  }
2874
- const select$5 = function ProductsOutputRepresentationSelect() {
2875
- const { selections: Status__selections, opaque: Status__opaque, } = select$a();
3043
+ const select$7 = function ProductsOutputRepresentationSelect() {
3044
+ const { selections: Status__selections, opaque: Status__opaque, } = select$c();
2876
3045
  return {
2877
3046
  kind: 'Fragment',
2878
- version: VERSION$2,
3047
+ version: VERSION$3,
2879
3048
  private: [],
2880
3049
  selections: [
2881
3050
  {
@@ -2893,7 +3062,7 @@ const select$5 = function ProductsOutputRepresentationSelect() {
2893
3062
  kind: 'Link',
2894
3063
  plural: true,
2895
3064
  required: false,
2896
- fragment: select$7()
3065
+ fragment: select$9()
2897
3066
  },
2898
3067
  {
2899
3068
  name: 'status',
@@ -2904,7 +3073,7 @@ const select$5 = function ProductsOutputRepresentationSelect() {
2904
3073
  ]
2905
3074
  };
2906
3075
  };
2907
- function equals$2(existing, incoming) {
3076
+ function equals$3(existing, incoming) {
2908
3077
  const existing_count = existing.count;
2909
3078
  const incoming_count = incoming.count;
2910
3079
  // if at least one of these optionals is defined
@@ -2958,56 +3127,56 @@ function equals$2(existing, incoming) {
2958
3127
  if (existing_status === undefined || incoming_status === undefined) {
2959
3128
  return false;
2960
3129
  }
2961
- if (!(equals$5(existing_status, incoming_status))) {
3130
+ if (!(equals$6(existing_status, incoming_status))) {
2962
3131
  return false;
2963
3132
  }
2964
3133
  }
2965
3134
  return true;
2966
3135
  }
2967
- const ingest$2 = function ProductsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3136
+ const ingest$3 = function ProductsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2968
3137
  if (process.env.NODE_ENV !== 'production') {
2969
- const validateError = validate$8(input);
3138
+ const validateError = validate$d(input);
2970
3139
  if (validateError !== null) {
2971
3140
  throw validateError;
2972
3141
  }
2973
3142
  }
2974
3143
  const key = path.fullPath;
2975
3144
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
2976
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "epc", VERSION$2, RepresentationType$2, equals$2);
3145
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "epc", VERSION$3, RepresentationType$3, equals$3);
2977
3146
  return createLink(key);
2978
3147
  };
2979
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3148
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
2980
3149
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2981
3150
  const rootKey = fullPathFactory();
2982
3151
  rootKeySet.set(rootKey, {
2983
3152
  namespace: keyPrefix,
2984
- representationName: RepresentationType$2,
3153
+ representationName: RepresentationType$3,
2985
3154
  mergeable: false
2986
3155
  });
2987
3156
  if (input.products !== undefined) {
2988
3157
  const input_products_length = input.products.length;
2989
3158
  for (let i = 0; i < input_products_length; i++) {
2990
- getTypeCacheKeys$3(rootKeySet, luvio, input.products[i], () => '');
3159
+ getTypeCacheKeys$4(rootKeySet, luvio, input.products[i], () => '');
2991
3160
  }
2992
3161
  }
2993
3162
  }
2994
3163
 
2995
- function select$4(luvio, params) {
2996
- return select$5();
3164
+ function select$6(luvio, params) {
3165
+ return select$7();
2997
3166
  }
2998
- function keyBuilder$5(luvio, params) {
3167
+ function keyBuilder$6(luvio, params) {
2999
3168
  return keyPrefix + '::ProductsOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'productId:' + params.urlParams.productId + ')';
3000
3169
  }
3001
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3002
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
3170
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
3171
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
3003
3172
  }
3004
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3173
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
3005
3174
  const { body } = response;
3006
- const key = keyBuilder$5(luvio, resourceParams);
3007
- luvio.storeIngest(key, ingest$2, body);
3175
+ const key = keyBuilder$6(luvio, resourceParams);
3176
+ luvio.storeIngest(key, ingest$3, body);
3008
3177
  const snapshot = luvio.storeLookup({
3009
3178
  recordId: key,
3010
- node: select$4(),
3179
+ node: select$6(),
3011
3180
  variables: {},
3012
3181
  }, snapshotRefresh);
3013
3182
  if (process.env.NODE_ENV !== 'production') {
@@ -3019,12 +3188,12 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3019
3188
  return snapshot;
3020
3189
  }
3021
3190
  function ingestError$2(luvio, params, error, snapshotRefresh) {
3022
- const key = keyBuilder$5(luvio, params);
3191
+ const key = keyBuilder$6(luvio, params);
3023
3192
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3024
3193
  luvio.storeIngestError(key, errorSnapshot);
3025
3194
  return errorSnapshot;
3026
3195
  }
3027
- function createResourceRequest$2(config) {
3196
+ function createResourceRequest$3(config) {
3028
3197
  const headers = {};
3029
3198
  return {
3030
3199
  baseUri: '/services/data/v62.0',
@@ -3038,61 +3207,61 @@ function createResourceRequest$2(config) {
3038
3207
  };
3039
3208
  }
3040
3209
 
3041
- const adapterName$2 = 'getProductById';
3210
+ const adapterName$3 = 'getProductById';
3042
3211
  const getProductById_ConfigPropertyMetadata = [
3043
3212
  generateParamConfigMetadata('productId', true, 0 /* UrlParameter */, 0 /* String */),
3044
3213
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3045
3214
  ];
3046
- const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getProductById_ConfigPropertyMetadata);
3047
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getProductById_ConfigPropertyMetadata);
3048
- function keyBuilder$4(luvio, config) {
3049
- const resourceParams = createResourceParams$2(config);
3050
- return keyBuilder$5(luvio, resourceParams);
3215
+ const getProductById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getProductById_ConfigPropertyMetadata);
3216
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$c(getProductById_ConfigPropertyMetadata);
3217
+ function keyBuilder$5(luvio, config) {
3218
+ const resourceParams = createResourceParams$3(config);
3219
+ return keyBuilder$6(luvio, resourceParams);
3051
3220
  }
3052
- function typeCheckConfig$2(untrustedConfig) {
3221
+ function typeCheckConfig$3(untrustedConfig) {
3053
3222
  const config = {};
3054
- typeCheckConfig$b(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
3223
+ typeCheckConfig$c(untrustedConfig, config, getProductById_ConfigPropertyMetadata);
3055
3224
  return config;
3056
3225
  }
3057
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3226
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
3058
3227
  if (!untrustedIsObject(untrustedConfig)) {
3059
3228
  return null;
3060
3229
  }
3061
3230
  if (process.env.NODE_ENV !== 'production') {
3062
3231
  validateConfig(untrustedConfig, configPropertyNames);
3063
3232
  }
3064
- const config = typeCheckConfig$2(untrustedConfig);
3233
+ const config = typeCheckConfig$3(untrustedConfig);
3065
3234
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3066
3235
  return null;
3067
3236
  }
3068
3237
  return config;
3069
3238
  }
3070
3239
  function adapterFragment$2(luvio, config) {
3071
- createResourceParams$2(config);
3072
- return select$4();
3240
+ createResourceParams$3(config);
3241
+ return select$6();
3073
3242
  }
3074
3243
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
3075
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3244
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
3076
3245
  config,
3077
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3246
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3078
3247
  });
3079
3248
  return luvio.storeBroadcast().then(() => snapshot);
3080
3249
  }
3081
3250
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
3082
3251
  const snapshot = ingestError$2(luvio, resourceParams, response, {
3083
3252
  config,
3084
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3253
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3085
3254
  });
3086
3255
  return luvio.storeBroadcast().then(() => snapshot);
3087
3256
  }
3088
- function buildNetworkSnapshot$2(luvio, config, options) {
3089
- const resourceParams = createResourceParams$2(config);
3090
- const request = createResourceRequest$2(resourceParams);
3257
+ function buildNetworkSnapshot$3(luvio, config, options) {
3258
+ const resourceParams = createResourceParams$3(config);
3259
+ const request = createResourceRequest$3(resourceParams);
3091
3260
  return luvio.dispatchResourceRequest(request, options)
3092
3261
  .then((response) => {
3093
3262
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
3094
3263
  const cache = new StoreKeyMap();
3095
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3264
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
3096
3265
  return cache;
3097
3266
  });
3098
3267
  }, (response) => {
@@ -3100,23 +3269,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
3100
3269
  });
3101
3270
  }
3102
3271
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
3103
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3272
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
3104
3273
  }
3105
3274
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
3106
3275
  const { luvio, config } = context;
3107
3276
  const selector = {
3108
- recordId: keyBuilder$4(luvio, config),
3277
+ recordId: keyBuilder$5(luvio, config),
3109
3278
  node: adapterFragment$2(luvio, config),
3110
3279
  variables: {},
3111
3280
  };
3112
3281
  const cacheSnapshot = storeLookup(selector, {
3113
3282
  config,
3114
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3283
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
3115
3284
  });
3116
3285
  return cacheSnapshot;
3117
3286
  }
3118
3287
  const getProductByIdAdapterFactory = (luvio) => function epc__getProductById(untrustedConfig, requestContext) {
3119
- const config = validateAdapterConfig$2(untrustedConfig, getProductById_ConfigPropertyNames);
3288
+ const config = validateAdapterConfig$3(untrustedConfig, getProductById_ConfigPropertyNames);
3120
3289
  // Invalid or incomplete config
3121
3290
  if (config === null) {
3122
3291
  return null;
@@ -3125,7 +3294,7 @@ const getProductByIdAdapterFactory = (luvio) => function epc__getProductById(unt
3125
3294
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
3126
3295
  };
3127
3296
 
3128
- function validate$7(obj, path = 'ContextFieldInfoOutputRepresentation') {
3297
+ function validate$c(obj, path = 'ContextFieldInfoOutputRepresentation') {
3129
3298
  const v_error = (() => {
3130
3299
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3131
3300
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3176,7 +3345,7 @@ function validate$7(obj, path = 'ContextFieldInfoOutputRepresentation') {
3176
3345
  return v_error === undefined ? null : v_error;
3177
3346
  }
3178
3347
 
3179
- function validate$6(obj, path = 'ContextFieldsInfoOutputRepresentation') {
3348
+ function validate$b(obj, path = 'ContextFieldsInfoOutputRepresentation') {
3180
3349
  const v_error = (() => {
3181
3350
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3182
3351
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3189,7 +3358,7 @@ function validate$6(obj, path = 'ContextFieldsInfoOutputRepresentation') {
3189
3358
  for (let i = 0; i < obj_contextFieldsInfo.length; i++) {
3190
3359
  const obj_contextFieldsInfo_item = obj_contextFieldsInfo[i];
3191
3360
  const path_contextFieldsInfo_item = path_contextFieldsInfo + '[' + i + ']';
3192
- const referencepath_contextFieldsInfo_itemValidationError = validate$7(obj_contextFieldsInfo_item, path_contextFieldsInfo_item);
3361
+ const referencepath_contextFieldsInfo_itemValidationError = validate$c(obj_contextFieldsInfo_item, path_contextFieldsInfo_item);
3193
3362
  if (referencepath_contextFieldsInfo_itemValidationError !== null) {
3194
3363
  let message = 'Object doesn\'t match ContextFieldInfoOutputRepresentation (at "' + path_contextFieldsInfo_item + '")\n';
3195
3364
  message += referencepath_contextFieldsInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3200,7 +3369,7 @@ function validate$6(obj, path = 'ContextFieldsInfoOutputRepresentation') {
3200
3369
  return v_error === undefined ? null : v_error;
3201
3370
  }
3202
3371
 
3203
- function validate$5(obj, path = 'ContextNodeInfoOutputRepresentation') {
3372
+ function validate$a(obj, path = 'ContextNodeInfoOutputRepresentation') {
3204
3373
  const v_error = (() => {
3205
3374
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3206
3375
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3215,7 +3384,7 @@ function validate$5(obj, path = 'ContextNodeInfoOutputRepresentation') {
3215
3384
  if (obj.childNodes !== undefined) {
3216
3385
  const obj_childNodes = obj.childNodes;
3217
3386
  const path_childNodes = path + '.childNodes';
3218
- const referencepath_childNodesValidationError = validate$4(obj_childNodes, path_childNodes);
3387
+ const referencepath_childNodesValidationError = validate$9(obj_childNodes, path_childNodes);
3219
3388
  if (referencepath_childNodesValidationError !== null) {
3220
3389
  let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_childNodes + '")\n';
3221
3390
  message += referencepath_childNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3225,7 +3394,7 @@ function validate$5(obj, path = 'ContextNodeInfoOutputRepresentation') {
3225
3394
  if (obj.fields !== undefined) {
3226
3395
  const obj_fields = obj.fields;
3227
3396
  const path_fields = path + '.fields';
3228
- const referencepath_fieldsValidationError = validate$6(obj_fields, path_fields);
3397
+ const referencepath_fieldsValidationError = validate$b(obj_fields, path_fields);
3229
3398
  if (referencepath_fieldsValidationError !== null) {
3230
3399
  let message = 'Object doesn\'t match ContextFieldsInfoOutputRepresentation (at "' + path_fields + '")\n';
3231
3400
  message += referencepath_fieldsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3257,7 +3426,7 @@ function validate$5(obj, path = 'ContextNodeInfoOutputRepresentation') {
3257
3426
  return v_error === undefined ? null : v_error;
3258
3427
  }
3259
3428
 
3260
- function validate$4(obj, path = 'ContextNodesInfoOutputRepresentation') {
3429
+ function validate$9(obj, path = 'ContextNodesInfoOutputRepresentation') {
3261
3430
  const v_error = (() => {
3262
3431
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3263
3432
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3270,7 +3439,7 @@ function validate$4(obj, path = 'ContextNodesInfoOutputRepresentation') {
3270
3439
  for (let i = 0; i < obj_contextNodesInfo.length; i++) {
3271
3440
  const obj_contextNodesInfo_item = obj_contextNodesInfo[i];
3272
3441
  const path_contextNodesInfo_item = path_contextNodesInfo + '[' + i + ']';
3273
- const referencepath_contextNodesInfo_itemValidationError = validate$5(obj_contextNodesInfo_item, path_contextNodesInfo_item);
3442
+ const referencepath_contextNodesInfo_itemValidationError = validate$a(obj_contextNodesInfo_item, path_contextNodesInfo_item);
3274
3443
  if (referencepath_contextNodesInfo_itemValidationError !== null) {
3275
3444
  let message = 'Object doesn\'t match ContextNodeInfoOutputRepresentation (at "' + path_contextNodesInfo_item + '")\n';
3276
3445
  message += referencepath_contextNodesInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3281,9 +3450,9 @@ function validate$4(obj, path = 'ContextNodesInfoOutputRepresentation') {
3281
3450
  return v_error === undefined ? null : v_error;
3282
3451
  }
3283
3452
 
3284
- const TTL$1 = 6000;
3285
- const VERSION$1 = "0e533503a3df0b0f709f7ff83f175d06";
3286
- function validate$3(obj, path = 'ContextDefinitionOutputRepresentation') {
3453
+ const TTL$2 = 6000;
3454
+ const VERSION$2 = "0e533503a3df0b0f709f7ff83f175d06";
3455
+ function validate$8(obj, path = 'ContextDefinitionOutputRepresentation') {
3287
3456
  const v_error = (() => {
3288
3457
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3289
3458
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3305,7 +3474,7 @@ function validate$3(obj, path = 'ContextDefinitionOutputRepresentation') {
3305
3474
  if (obj.contextNodes !== undefined) {
3306
3475
  const obj_contextNodes = obj.contextNodes;
3307
3476
  const path_contextNodes = path + '.contextNodes';
3308
- const referencepath_contextNodesValidationError = validate$4(obj_contextNodes, path_contextNodes);
3477
+ const referencepath_contextNodesValidationError = validate$9(obj_contextNodes, path_contextNodes);
3309
3478
  if (referencepath_contextNodesValidationError !== null) {
3310
3479
  let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_contextNodes + '")\n';
3311
3480
  message += referencepath_contextNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3322,7 +3491,7 @@ function validate$3(obj, path = 'ContextDefinitionOutputRepresentation') {
3322
3491
  if (obj.status !== undefined) {
3323
3492
  const obj_status = obj.status;
3324
3493
  const path_status = path + '.status';
3325
- const referencepath_statusValidationError = validate$l(obj_status, path_status);
3494
+ const referencepath_statusValidationError = validate$q(obj_status, path_status);
3326
3495
  if (referencepath_statusValidationError !== null) {
3327
3496
  let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
3328
3497
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3332,62 +3501,62 @@ function validate$3(obj, path = 'ContextDefinitionOutputRepresentation') {
3332
3501
  })();
3333
3502
  return v_error === undefined ? null : v_error;
3334
3503
  }
3335
- const RepresentationType$1 = 'ContextDefinitionOutputRepresentation';
3336
- function normalize$1(input, existing, path, luvio, store, timestamp) {
3504
+ const RepresentationType$2 = 'ContextDefinitionOutputRepresentation';
3505
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
3337
3506
  return input;
3338
3507
  }
3339
- const select$3 = function ContextDefinitionOutputRepresentationSelect() {
3508
+ const select$5 = function ContextDefinitionOutputRepresentationSelect() {
3340
3509
  return {
3341
3510
  kind: 'Fragment',
3342
- version: VERSION$1,
3511
+ version: VERSION$2,
3343
3512
  private: [],
3344
3513
  opaque: true
3345
3514
  };
3346
3515
  };
3347
- function equals$1(existing, incoming) {
3516
+ function equals$2(existing, incoming) {
3348
3517
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3349
3518
  return false;
3350
3519
  }
3351
3520
  return true;
3352
3521
  }
3353
- const ingest$1 = function ContextDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3522
+ const ingest$2 = function ContextDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3354
3523
  if (process.env.NODE_ENV !== 'production') {
3355
- const validateError = validate$3(input);
3524
+ const validateError = validate$8(input);
3356
3525
  if (validateError !== null) {
3357
3526
  throw validateError;
3358
3527
  }
3359
3528
  }
3360
3529
  const key = path.fullPath;
3361
- const ttlToUse = TTL$1;
3362
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "epc", VERSION$1, RepresentationType$1, equals$1);
3530
+ const ttlToUse = TTL$2;
3531
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "epc", VERSION$2, RepresentationType$2, equals$2);
3363
3532
  return createLink(key);
3364
3533
  };
3365
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3534
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
3366
3535
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3367
3536
  const rootKey = fullPathFactory();
3368
3537
  rootKeySet.set(rootKey, {
3369
3538
  namespace: keyPrefix,
3370
- representationName: RepresentationType$1,
3539
+ representationName: RepresentationType$2,
3371
3540
  mergeable: false
3372
3541
  });
3373
3542
  }
3374
3543
 
3375
- function select$2(luvio, params) {
3376
- return select$3();
3544
+ function select$4(luvio, params) {
3545
+ return select$5();
3377
3546
  }
3378
- function keyBuilder$3(luvio, params) {
3547
+ function keyBuilder$4(luvio, params) {
3379
3548
  return keyPrefix + '::ContextDefinitionOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'contextDefinitionId:' + params.urlParams.contextDefinitionId + ')';
3380
3549
  }
3381
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3382
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
3550
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
3551
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
3383
3552
  }
3384
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3553
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
3385
3554
  const { body } = response;
3386
- const key = keyBuilder$3(luvio, resourceParams);
3387
- luvio.storeIngest(key, ingest$1, body);
3555
+ const key = keyBuilder$4(luvio, resourceParams);
3556
+ luvio.storeIngest(key, ingest$2, body);
3388
3557
  const snapshot = luvio.storeLookup({
3389
3558
  recordId: key,
3390
- node: select$2(),
3559
+ node: select$4(),
3391
3560
  variables: {},
3392
3561
  }, snapshotRefresh);
3393
3562
  if (process.env.NODE_ENV !== 'production') {
@@ -3399,18 +3568,18 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3399
3568
  return snapshot;
3400
3569
  }
3401
3570
  function ingestError$1(luvio, params, error, snapshotRefresh) {
3402
- const key = keyBuilder$3(luvio, params);
3571
+ const key = keyBuilder$4(luvio, params);
3403
3572
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3404
3573
  const storeMetadataParams = {
3405
- ttl: TTL$1,
3574
+ ttl: TTL$2,
3406
3575
  namespace: keyPrefix,
3407
- version: VERSION$1,
3408
- representationName: RepresentationType$1
3576
+ version: VERSION$2,
3577
+ representationName: RepresentationType$2
3409
3578
  };
3410
3579
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3411
3580
  return errorSnapshot;
3412
3581
  }
3413
- function createResourceRequest$1(config) {
3582
+ function createResourceRequest$2(config) {
3414
3583
  const headers = {};
3415
3584
  return {
3416
3585
  baseUri: '/services/data/v62.0',
@@ -3424,61 +3593,61 @@ function createResourceRequest$1(config) {
3424
3593
  };
3425
3594
  }
3426
3595
 
3427
- const adapterName$1 = 'getContextDefinitionInfoById';
3596
+ const adapterName$2 = 'getContextDefinitionInfoById';
3428
3597
  const getContextDefinitionInfoById_ConfigPropertyMetadata = [
3429
3598
  generateParamConfigMetadata('contextDefinitionId', true, 0 /* UrlParameter */, 0 /* String */),
3430
3599
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3431
3600
  ];
3432
- const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getContextDefinitionInfoById_ConfigPropertyMetadata);
3433
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getContextDefinitionInfoById_ConfigPropertyMetadata);
3434
- function keyBuilder$2(luvio, config) {
3435
- const resourceParams = createResourceParams$1(config);
3436
- return keyBuilder$3(luvio, resourceParams);
3601
+ const getContextDefinitionInfoById_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getContextDefinitionInfoById_ConfigPropertyMetadata);
3602
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$c(getContextDefinitionInfoById_ConfigPropertyMetadata);
3603
+ function keyBuilder$3(luvio, config) {
3604
+ const resourceParams = createResourceParams$2(config);
3605
+ return keyBuilder$4(luvio, resourceParams);
3437
3606
  }
3438
- function typeCheckConfig$1(untrustedConfig) {
3607
+ function typeCheckConfig$2(untrustedConfig) {
3439
3608
  const config = {};
3440
- typeCheckConfig$b(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
3609
+ typeCheckConfig$c(untrustedConfig, config, getContextDefinitionInfoById_ConfigPropertyMetadata);
3441
3610
  return config;
3442
3611
  }
3443
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3612
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
3444
3613
  if (!untrustedIsObject(untrustedConfig)) {
3445
3614
  return null;
3446
3615
  }
3447
3616
  if (process.env.NODE_ENV !== 'production') {
3448
3617
  validateConfig(untrustedConfig, configPropertyNames);
3449
3618
  }
3450
- const config = typeCheckConfig$1(untrustedConfig);
3619
+ const config = typeCheckConfig$2(untrustedConfig);
3451
3620
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3452
3621
  return null;
3453
3622
  }
3454
3623
  return config;
3455
3624
  }
3456
3625
  function adapterFragment$1(luvio, config) {
3457
- createResourceParams$1(config);
3458
- return select$2();
3626
+ createResourceParams$2(config);
3627
+ return select$4();
3459
3628
  }
3460
3629
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
3461
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3630
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
3462
3631
  config,
3463
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3632
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3464
3633
  });
3465
3634
  return luvio.storeBroadcast().then(() => snapshot);
3466
3635
  }
3467
3636
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
3468
3637
  const snapshot = ingestError$1(luvio, resourceParams, response, {
3469
3638
  config,
3470
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3639
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3471
3640
  });
3472
3641
  return luvio.storeBroadcast().then(() => snapshot);
3473
3642
  }
3474
- function buildNetworkSnapshot$1(luvio, config, options) {
3475
- const resourceParams = createResourceParams$1(config);
3476
- const request = createResourceRequest$1(resourceParams);
3643
+ function buildNetworkSnapshot$2(luvio, config, options) {
3644
+ const resourceParams = createResourceParams$2(config);
3645
+ const request = createResourceRequest$2(resourceParams);
3477
3646
  return luvio.dispatchResourceRequest(request, options)
3478
3647
  .then((response) => {
3479
3648
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
3480
3649
  const cache = new StoreKeyMap();
3481
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3650
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
3482
3651
  return cache;
3483
3652
  });
3484
3653
  }, (response) => {
@@ -3486,23 +3655,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
3486
3655
  });
3487
3656
  }
3488
3657
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
3489
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3658
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3490
3659
  }
3491
3660
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
3492
3661
  const { luvio, config } = context;
3493
3662
  const selector = {
3494
- recordId: keyBuilder$2(luvio, config),
3663
+ recordId: keyBuilder$3(luvio, config),
3495
3664
  node: adapterFragment$1(luvio, config),
3496
3665
  variables: {},
3497
3666
  };
3498
3667
  const cacheSnapshot = storeLookup(selector, {
3499
3668
  config,
3500
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3669
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
3501
3670
  });
3502
3671
  return cacheSnapshot;
3503
3672
  }
3504
3673
  const getContextDefinitionInfoByIdAdapterFactory = (luvio) => function epc__getContextDefinitionInfoById(untrustedConfig, requestContext) {
3505
- const config = validateAdapterConfig$1(untrustedConfig, getContextDefinitionInfoById_ConfigPropertyNames);
3674
+ const config = validateAdapterConfig$2(untrustedConfig, getContextDefinitionInfoById_ConfigPropertyNames);
3506
3675
  // Invalid or incomplete config
3507
3676
  if (config === null) {
3508
3677
  return null;
@@ -3511,7 +3680,7 @@ const getContextDefinitionInfoByIdAdapterFactory = (luvio) => function epc__getC
3511
3680
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
3512
3681
  };
3513
3682
 
3514
- function validate$2(obj, path = 'ConfigRuleHashColumnInfoOutputRepresentation') {
3683
+ function validate$7(obj, path = 'ConfigRuleHashColumnInfoOutputRepresentation') {
3515
3684
  const v_error = (() => {
3516
3685
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3517
3686
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3534,7 +3703,7 @@ function validate$2(obj, path = 'ConfigRuleHashColumnInfoOutputRepresentation')
3534
3703
  return v_error === undefined ? null : v_error;
3535
3704
  }
3536
3705
 
3537
- function validate$1(obj, path = 'ConfigRuleHashColumnsInfoOutputRepresentation') {
3706
+ function validate$6(obj, path = 'ConfigRuleHashColumnsInfoOutputRepresentation') {
3538
3707
  const v_error = (() => {
3539
3708
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3540
3709
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3547,7 +3716,7 @@ function validate$1(obj, path = 'ConfigRuleHashColumnsInfoOutputRepresentation')
3547
3716
  for (let i = 0; i < obj_configRuleHashColumnsInfo.length; i++) {
3548
3717
  const obj_configRuleHashColumnsInfo_item = obj_configRuleHashColumnsInfo[i];
3549
3718
  const path_configRuleHashColumnsInfo_item = path_configRuleHashColumnsInfo + '[' + i + ']';
3550
- const referencepath_configRuleHashColumnsInfo_itemValidationError = validate$2(obj_configRuleHashColumnsInfo_item, path_configRuleHashColumnsInfo_item);
3719
+ const referencepath_configRuleHashColumnsInfo_itemValidationError = validate$7(obj_configRuleHashColumnsInfo_item, path_configRuleHashColumnsInfo_item);
3551
3720
  if (referencepath_configRuleHashColumnsInfo_itemValidationError !== null) {
3552
3721
  let message = 'Object doesn\'t match ConfigRuleHashColumnInfoOutputRepresentation (at "' + path_configRuleHashColumnsInfo_item + '")\n';
3553
3722
  message += referencepath_configRuleHashColumnsInfo_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3558,9 +3727,9 @@ function validate$1(obj, path = 'ConfigRuleHashColumnsInfoOutputRepresentation')
3558
3727
  return v_error === undefined ? null : v_error;
3559
3728
  }
3560
3729
 
3561
- const TTL = 6000;
3562
- const VERSION = "a6f17b790f912a982a35bff584a89eb6";
3563
- function validate(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3730
+ const TTL$1 = 6000;
3731
+ const VERSION$1 = "a6f17b790f912a982a35bff584a89eb6";
3732
+ function validate$5(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3564
3733
  const v_error = (() => {
3565
3734
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3566
3735
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3568,7 +3737,7 @@ function validate(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3568
3737
  if (obj.configRuleHashColumns !== undefined) {
3569
3738
  const obj_configRuleHashColumns = obj.configRuleHashColumns;
3570
3739
  const path_configRuleHashColumns = path + '.configRuleHashColumns';
3571
- const referencepath_configRuleHashColumnsValidationError = validate$1(obj_configRuleHashColumns, path_configRuleHashColumns);
3740
+ const referencepath_configRuleHashColumnsValidationError = validate$6(obj_configRuleHashColumns, path_configRuleHashColumns);
3572
3741
  if (referencepath_configRuleHashColumnsValidationError !== null) {
3573
3742
  let message = 'Object doesn\'t match ConfigRuleHashColumnsInfoOutputRepresentation (at "' + path_configRuleHashColumns + '")\n';
3574
3743
  message += referencepath_configRuleHashColumnsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3592,7 +3761,7 @@ function validate(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3592
3761
  if (obj.contextNodes !== undefined) {
3593
3762
  const obj_contextNodes = obj.contextNodes;
3594
3763
  const path_contextNodes = path + '.contextNodes';
3595
- const referencepath_contextNodesValidationError = validate$4(obj_contextNodes, path_contextNodes);
3764
+ const referencepath_contextNodesValidationError = validate$9(obj_contextNodes, path_contextNodes);
3596
3765
  if (referencepath_contextNodesValidationError !== null) {
3597
3766
  let message = 'Object doesn\'t match ContextNodesInfoOutputRepresentation (at "' + path_contextNodes + '")\n';
3598
3767
  message += referencepath_contextNodesValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3609,7 +3778,7 @@ function validate(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3609
3778
  if (obj.status !== undefined) {
3610
3779
  const obj_status = obj.status;
3611
3780
  const path_status = path + '.status';
3612
- const referencepath_statusValidationError = validate$l(obj_status, path_status);
3781
+ const referencepath_statusValidationError = validate$q(obj_status, path_status);
3613
3782
  if (referencepath_statusValidationError !== null) {
3614
3783
  let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
3615
3784
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3619,62 +3788,62 @@ function validate(obj, path = 'ConfigRuleMetadataOutputRepresentation') {
3619
3788
  })();
3620
3789
  return v_error === undefined ? null : v_error;
3621
3790
  }
3622
- const RepresentationType = 'ConfigRuleMetadataOutputRepresentation';
3623
- function normalize(input, existing, path, luvio, store, timestamp) {
3791
+ const RepresentationType$1 = 'ConfigRuleMetadataOutputRepresentation';
3792
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
3624
3793
  return input;
3625
3794
  }
3626
- const select$1 = function ConfigRuleMetadataOutputRepresentationSelect() {
3795
+ const select$3 = function ConfigRuleMetadataOutputRepresentationSelect() {
3627
3796
  return {
3628
3797
  kind: 'Fragment',
3629
- version: VERSION,
3798
+ version: VERSION$1,
3630
3799
  private: [],
3631
3800
  opaque: true
3632
3801
  };
3633
3802
  };
3634
- function equals(existing, incoming) {
3803
+ function equals$1(existing, incoming) {
3635
3804
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
3636
3805
  return false;
3637
3806
  }
3638
3807
  return true;
3639
3808
  }
3640
- const ingest = function ConfigRuleMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3809
+ const ingest$1 = function ConfigRuleMetadataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
3641
3810
  if (process.env.NODE_ENV !== 'production') {
3642
- const validateError = validate(input);
3811
+ const validateError = validate$5(input);
3643
3812
  if (validateError !== null) {
3644
3813
  throw validateError;
3645
3814
  }
3646
3815
  }
3647
3816
  const key = path.fullPath;
3648
- const ttlToUse = TTL;
3649
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "epc", VERSION, RepresentationType, equals);
3817
+ const ttlToUse = TTL$1;
3818
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "epc", VERSION$1, RepresentationType$1, equals$1);
3650
3819
  return createLink(key);
3651
3820
  };
3652
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
3821
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
3653
3822
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
3654
3823
  const rootKey = fullPathFactory();
3655
3824
  rootKeySet.set(rootKey, {
3656
3825
  namespace: keyPrefix,
3657
- representationName: RepresentationType,
3826
+ representationName: RepresentationType$1,
3658
3827
  mergeable: false
3659
3828
  });
3660
3829
  }
3661
3830
 
3662
- function select(luvio, params) {
3663
- return select$1();
3831
+ function select$2(luvio, params) {
3832
+ return select$3();
3664
3833
  }
3665
- function keyBuilder$1(luvio, params) {
3834
+ function keyBuilder$2(luvio, params) {
3666
3835
  return keyPrefix + '::ConfigRuleMetadataOutputRepresentation:(' + 'correlationId:' + params.queryParams.correlationId + ',' + 'usageType:' + params.urlParams.usageType + ',' + 'usageSubType:' + params.urlParams.usageSubType + ')';
3667
3836
  }
3668
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
3669
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
3837
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
3838
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
3670
3839
  }
3671
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
3840
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
3672
3841
  const { body } = response;
3673
- const key = keyBuilder$1(luvio, resourceParams);
3674
- luvio.storeIngest(key, ingest, body);
3842
+ const key = keyBuilder$2(luvio, resourceParams);
3843
+ luvio.storeIngest(key, ingest$1, body);
3675
3844
  const snapshot = luvio.storeLookup({
3676
3845
  recordId: key,
3677
- node: select(),
3846
+ node: select$2(),
3678
3847
  variables: {},
3679
3848
  }, snapshotRefresh);
3680
3849
  if (process.env.NODE_ENV !== 'production') {
@@ -3686,18 +3855,18 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
3686
3855
  return snapshot;
3687
3856
  }
3688
3857
  function ingestError(luvio, params, error, snapshotRefresh) {
3689
- const key = keyBuilder$1(luvio, params);
3858
+ const key = keyBuilder$2(luvio, params);
3690
3859
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
3691
3860
  const storeMetadataParams = {
3692
- ttl: TTL,
3861
+ ttl: TTL$1,
3693
3862
  namespace: keyPrefix,
3694
- version: VERSION,
3695
- representationName: RepresentationType
3863
+ version: VERSION$1,
3864
+ representationName: RepresentationType$1
3696
3865
  };
3697
3866
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
3698
3867
  return errorSnapshot;
3699
3868
  }
3700
- function createResourceRequest(config) {
3869
+ function createResourceRequest$1(config) {
3701
3870
  const headers = {};
3702
3871
  return {
3703
3872
  baseUri: '/services/data/v62.0',
@@ -3711,62 +3880,62 @@ function createResourceRequest(config) {
3711
3880
  };
3712
3881
  }
3713
3882
 
3714
- const adapterName = 'getConfigRuleMetadata';
3883
+ const adapterName$1 = 'getConfigRuleMetadata';
3715
3884
  const getConfigRuleMetadata_ConfigPropertyMetadata = [
3716
3885
  generateParamConfigMetadata('usageType', true, 0 /* UrlParameter */, 0 /* String */),
3717
3886
  generateParamConfigMetadata('usageSubType', true, 0 /* UrlParameter */, 0 /* String */),
3718
3887
  generateParamConfigMetadata('correlationId', false, 1 /* QueryParameter */, 0 /* String */),
3719
3888
  ];
3720
- const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getConfigRuleMetadata_ConfigPropertyMetadata);
3721
- const createResourceParams = /*#__PURE__*/ createResourceParams$b(getConfigRuleMetadata_ConfigPropertyMetadata);
3722
- function keyBuilder(luvio, config) {
3723
- const resourceParams = createResourceParams(config);
3724
- return keyBuilder$1(luvio, resourceParams);
3889
+ const getConfigRuleMetadata_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getConfigRuleMetadata_ConfigPropertyMetadata);
3890
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$c(getConfigRuleMetadata_ConfigPropertyMetadata);
3891
+ function keyBuilder$1(luvio, config) {
3892
+ const resourceParams = createResourceParams$1(config);
3893
+ return keyBuilder$2(luvio, resourceParams);
3725
3894
  }
3726
- function typeCheckConfig(untrustedConfig) {
3895
+ function typeCheckConfig$1(untrustedConfig) {
3727
3896
  const config = {};
3728
- typeCheckConfig$b(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
3897
+ typeCheckConfig$c(untrustedConfig, config, getConfigRuleMetadata_ConfigPropertyMetadata);
3729
3898
  return config;
3730
3899
  }
3731
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
3900
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
3732
3901
  if (!untrustedIsObject(untrustedConfig)) {
3733
3902
  return null;
3734
3903
  }
3735
3904
  if (process.env.NODE_ENV !== 'production') {
3736
3905
  validateConfig(untrustedConfig, configPropertyNames);
3737
3906
  }
3738
- const config = typeCheckConfig(untrustedConfig);
3907
+ const config = typeCheckConfig$1(untrustedConfig);
3739
3908
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
3740
3909
  return null;
3741
3910
  }
3742
3911
  return config;
3743
3912
  }
3744
3913
  function adapterFragment(luvio, config) {
3745
- createResourceParams(config);
3746
- return select();
3914
+ createResourceParams$1(config);
3915
+ return select$2();
3747
3916
  }
3748
3917
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
3749
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
3918
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
3750
3919
  config,
3751
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3920
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3752
3921
  });
3753
3922
  return luvio.storeBroadcast().then(() => snapshot);
3754
3923
  }
3755
3924
  function onFetchResponseError(luvio, config, resourceParams, response) {
3756
3925
  const snapshot = ingestError(luvio, resourceParams, response, {
3757
3926
  config,
3758
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3927
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3759
3928
  });
3760
3929
  return luvio.storeBroadcast().then(() => snapshot);
3761
3930
  }
3762
- function buildNetworkSnapshot(luvio, config, options) {
3763
- const resourceParams = createResourceParams(config);
3764
- const request = createResourceRequest(resourceParams);
3931
+ function buildNetworkSnapshot$1(luvio, config, options) {
3932
+ const resourceParams = createResourceParams$1(config);
3933
+ const request = createResourceRequest$1(resourceParams);
3765
3934
  return luvio.dispatchResourceRequest(request, options)
3766
3935
  .then((response) => {
3767
3936
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
3768
3937
  const cache = new StoreKeyMap();
3769
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
3938
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
3770
3939
  return cache;
3771
3940
  });
3772
3941
  }, (response) => {
@@ -3774,23 +3943,23 @@ function buildNetworkSnapshot(luvio, config, options) {
3774
3943
  });
3775
3944
  }
3776
3945
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3777
- return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
3946
+ return buildNetworkSnapshotCachePolicy$7(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
3778
3947
  }
3779
3948
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
3780
3949
  const { luvio, config } = context;
3781
3950
  const selector = {
3782
- recordId: keyBuilder(luvio, config),
3951
+ recordId: keyBuilder$1(luvio, config),
3783
3952
  node: adapterFragment(luvio, config),
3784
3953
  variables: {},
3785
3954
  };
3786
3955
  const cacheSnapshot = storeLookup(selector, {
3787
3956
  config,
3788
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
3957
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
3789
3958
  });
3790
3959
  return cacheSnapshot;
3791
3960
  }
3792
3961
  const getConfigRuleMetadataAdapterFactory = (luvio) => function epc__getConfigRuleMetadata(untrustedConfig, requestContext) {
3793
- const config = validateAdapterConfig(untrustedConfig, getConfigRuleMetadata_ConfigPropertyNames);
3962
+ const config = validateAdapterConfig$1(untrustedConfig, getConfigRuleMetadata_ConfigPropertyNames);
3794
3963
  // Invalid or incomplete config
3795
3964
  if (config === null) {
3796
3965
  return null;
@@ -3799,4 +3968,311 @@ const getConfigRuleMetadataAdapterFactory = (luvio) => function epc__getConfigRu
3799
3968
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
3800
3969
  };
3801
3970
 
3802
- export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, updateIndexConfigurationsAdapterFactory };
3971
+ function validate$4(obj, path = 'RelatedRecordsInputRepresentation') {
3972
+ const v_error = (() => {
3973
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3974
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3975
+ }
3976
+ const obj_correlationId = obj.correlationId;
3977
+ const path_correlationId = path + '.correlationId';
3978
+ if (typeof obj_correlationId !== 'string') {
3979
+ return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
3980
+ }
3981
+ const obj_recordIds = obj.recordIds;
3982
+ const path_recordIds = path + '.recordIds';
3983
+ if (!ArrayIsArray(obj_recordIds)) {
3984
+ return new TypeError('Expected "array" but received "' + typeof obj_recordIds + '" (at "' + path_recordIds + '")');
3985
+ }
3986
+ for (let i = 0; i < obj_recordIds.length; i++) {
3987
+ const obj_recordIds_item = obj_recordIds[i];
3988
+ const path_recordIds_item = path_recordIds + '[' + i + ']';
3989
+ if (typeof obj_recordIds_item !== 'string') {
3990
+ return new TypeError('Expected "string" but received "' + typeof obj_recordIds_item + '" (at "' + path_recordIds_item + '")');
3991
+ }
3992
+ }
3993
+ const obj_relatedObjectNodes = obj.relatedObjectNodes;
3994
+ const path_relatedObjectNodes = path + '.relatedObjectNodes';
3995
+ if (!ArrayIsArray(obj_relatedObjectNodes)) {
3996
+ return new TypeError('Expected "array" but received "' + typeof obj_relatedObjectNodes + '" (at "' + path_relatedObjectNodes + '")');
3997
+ }
3998
+ for (let i = 0; i < obj_relatedObjectNodes.length; i++) {
3999
+ const obj_relatedObjectNodes_item = obj_relatedObjectNodes[i];
4000
+ const path_relatedObjectNodes_item = path_relatedObjectNodes + '[' + i + ']';
4001
+ if (typeof obj_relatedObjectNodes_item !== 'object' || ArrayIsArray(obj_relatedObjectNodes_item) || obj_relatedObjectNodes_item === null) {
4002
+ return new TypeError('Expected "object" but received "' + typeof obj_relatedObjectNodes_item + '" (at "' + path_relatedObjectNodes_item + '")');
4003
+ }
4004
+ }
4005
+ })();
4006
+ return v_error === undefined ? null : v_error;
4007
+ }
4008
+
4009
+ function validate$3(obj, path = 'PCMRecordOutputRepresentation') {
4010
+ const v_error = (() => {
4011
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4012
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4013
+ }
4014
+ if (obj.id !== undefined) {
4015
+ const obj_id = obj.id;
4016
+ const path_id = path + '.id';
4017
+ if (typeof obj_id !== 'string') {
4018
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
4019
+ }
4020
+ }
4021
+ if (obj.name !== undefined) {
4022
+ const obj_name = obj.name;
4023
+ const path_name = path + '.name';
4024
+ if (typeof obj_name !== 'string') {
4025
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
4026
+ }
4027
+ }
4028
+ })();
4029
+ return v_error === undefined ? null : v_error;
4030
+ }
4031
+
4032
+ function validate$2(obj, path = 'RelatedObjectRecordsOutputRepresentation') {
4033
+ const v_error = (() => {
4034
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4035
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4036
+ }
4037
+ const obj_count = obj.count;
4038
+ const path_count = path + '.count';
4039
+ if (typeof obj_count !== 'number' || (typeof obj_count === 'number' && Math.floor(obj_count) !== obj_count)) {
4040
+ return new TypeError('Expected "integer" but received "' + typeof obj_count + '" (at "' + path_count + '")');
4041
+ }
4042
+ const obj_records = obj.records;
4043
+ const path_records = path + '.records';
4044
+ if (!ArrayIsArray(obj_records)) {
4045
+ return new TypeError('Expected "array" but received "' + typeof obj_records + '" (at "' + path_records + '")');
4046
+ }
4047
+ for (let i = 0; i < obj_records.length; i++) {
4048
+ const obj_records_item = obj_records[i];
4049
+ const path_records_item = path_records + '[' + i + ']';
4050
+ const referencepath_records_itemValidationError = validate$3(obj_records_item, path_records_item);
4051
+ if (referencepath_records_itemValidationError !== null) {
4052
+ let message = 'Object doesn\'t match PCMRecordOutputRepresentation (at "' + path_records_item + '")\n';
4053
+ message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4054
+ return new TypeError(message);
4055
+ }
4056
+ }
4057
+ const obj_relatedObjectAPIName = obj.relatedObjectAPIName;
4058
+ const path_relatedObjectAPIName = path + '.relatedObjectAPIName';
4059
+ if (typeof obj_relatedObjectAPIName !== 'string') {
4060
+ return new TypeError('Expected "string" but received "' + typeof obj_relatedObjectAPIName + '" (at "' + path_relatedObjectAPIName + '")');
4061
+ }
4062
+ })();
4063
+ return v_error === undefined ? null : v_error;
4064
+ }
4065
+
4066
+ function validate$1(obj, path = 'RelatedRecordsOutputRepresentation') {
4067
+ const v_error = (() => {
4068
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4069
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4070
+ }
4071
+ const obj_recordId = obj.recordId;
4072
+ const path_recordId = path + '.recordId';
4073
+ if (typeof obj_recordId !== 'string') {
4074
+ return new TypeError('Expected "string" but received "' + typeof obj_recordId + '" (at "' + path_recordId + '")');
4075
+ }
4076
+ const obj_relatedObjectRecords = obj.relatedObjectRecords;
4077
+ const path_relatedObjectRecords = path + '.relatedObjectRecords';
4078
+ if (!ArrayIsArray(obj_relatedObjectRecords)) {
4079
+ return new TypeError('Expected "array" but received "' + typeof obj_relatedObjectRecords + '" (at "' + path_relatedObjectRecords + '")');
4080
+ }
4081
+ for (let i = 0; i < obj_relatedObjectRecords.length; i++) {
4082
+ const obj_relatedObjectRecords_item = obj_relatedObjectRecords[i];
4083
+ const path_relatedObjectRecords_item = path_relatedObjectRecords + '[' + i + ']';
4084
+ const referencepath_relatedObjectRecords_itemValidationError = validate$2(obj_relatedObjectRecords_item, path_relatedObjectRecords_item);
4085
+ if (referencepath_relatedObjectRecords_itemValidationError !== null) {
4086
+ let message = 'Object doesn\'t match RelatedObjectRecordsOutputRepresentation (at "' + path_relatedObjectRecords_item + '")\n';
4087
+ message += referencepath_relatedObjectRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4088
+ return new TypeError(message);
4089
+ }
4090
+ }
4091
+ })();
4092
+ return v_error === undefined ? null : v_error;
4093
+ }
4094
+
4095
+ const TTL = 6000;
4096
+ const VERSION = "d5517610afe11029dab748699bf3154b";
4097
+ function validate(obj, path = 'RelatedRecordsListOutputRepresentation') {
4098
+ const v_error = (() => {
4099
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4100
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
4101
+ }
4102
+ const obj_correlationId = obj.correlationId;
4103
+ const path_correlationId = path + '.correlationId';
4104
+ if (typeof obj_correlationId !== 'string') {
4105
+ return new TypeError('Expected "string" but received "' + typeof obj_correlationId + '" (at "' + path_correlationId + '")');
4106
+ }
4107
+ const obj_relatedRecords = obj.relatedRecords;
4108
+ const path_relatedRecords = path + '.relatedRecords';
4109
+ if (!ArrayIsArray(obj_relatedRecords)) {
4110
+ return new TypeError('Expected "array" but received "' + typeof obj_relatedRecords + '" (at "' + path_relatedRecords + '")');
4111
+ }
4112
+ for (let i = 0; i < obj_relatedRecords.length; i++) {
4113
+ const obj_relatedRecords_item = obj_relatedRecords[i];
4114
+ const path_relatedRecords_item = path_relatedRecords + '[' + i + ']';
4115
+ const referencepath_relatedRecords_itemValidationError = validate$1(obj_relatedRecords_item, path_relatedRecords_item);
4116
+ if (referencepath_relatedRecords_itemValidationError !== null) {
4117
+ let message = 'Object doesn\'t match RelatedRecordsOutputRepresentation (at "' + path_relatedRecords_item + '")\n';
4118
+ message += referencepath_relatedRecords_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4119
+ return new TypeError(message);
4120
+ }
4121
+ }
4122
+ const obj_status = obj.status;
4123
+ const path_status = path + '.status';
4124
+ const referencepath_statusValidationError = validate$q(obj_status, path_status);
4125
+ if (referencepath_statusValidationError !== null) {
4126
+ let message = 'Object doesn\'t match Status (at "' + path_status + '")\n';
4127
+ message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
4128
+ return new TypeError(message);
4129
+ }
4130
+ })();
4131
+ return v_error === undefined ? null : v_error;
4132
+ }
4133
+ const RepresentationType = 'RelatedRecordsListOutputRepresentation';
4134
+ function keyBuilder(luvio, config) {
4135
+ return keyPrefix + '::' + RepresentationType + ':' + config.message;
4136
+ }
4137
+ function keyBuilderFromType(luvio, object) {
4138
+ const keyParams = {
4139
+ message: object.correlationId
4140
+ };
4141
+ return keyBuilder(luvio, keyParams);
4142
+ }
4143
+ function normalize(input, existing, path, luvio, store, timestamp) {
4144
+ return input;
4145
+ }
4146
+ const select$1 = function RelatedRecordsListOutputRepresentationSelect() {
4147
+ return {
4148
+ kind: 'Fragment',
4149
+ version: VERSION,
4150
+ private: [],
4151
+ opaque: true
4152
+ };
4153
+ };
4154
+ function equals(existing, incoming) {
4155
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
4156
+ return false;
4157
+ }
4158
+ return true;
4159
+ }
4160
+ const ingest = function RelatedRecordsListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
4161
+ if (process.env.NODE_ENV !== 'production') {
4162
+ const validateError = validate(input);
4163
+ if (validateError !== null) {
4164
+ throw validateError;
4165
+ }
4166
+ }
4167
+ const key = keyBuilderFromType(luvio, input);
4168
+ const ttlToUse = TTL;
4169
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "epc", VERSION, RepresentationType, equals);
4170
+ return createLink(key);
4171
+ };
4172
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
4173
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
4174
+ const rootKey = keyBuilderFromType(luvio, input);
4175
+ rootKeySet.set(rootKey, {
4176
+ namespace: keyPrefix,
4177
+ representationName: RepresentationType,
4178
+ mergeable: false
4179
+ });
4180
+ }
4181
+
4182
+ function select(luvio, params) {
4183
+ return select$1();
4184
+ }
4185
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
4186
+ getTypeCacheKeys(storeKeyMap, luvio, response);
4187
+ }
4188
+ function ingestSuccess(luvio, resourceParams, response) {
4189
+ const { body } = response;
4190
+ const key = keyBuilderFromType(luvio, body);
4191
+ luvio.storeIngest(key, ingest, body);
4192
+ const snapshot = luvio.storeLookup({
4193
+ recordId: key,
4194
+ node: select(),
4195
+ variables: {},
4196
+ });
4197
+ if (process.env.NODE_ENV !== 'production') {
4198
+ if (snapshot.state !== 'Fulfilled') {
4199
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
4200
+ }
4201
+ }
4202
+ deepFreeze(snapshot.data);
4203
+ return snapshot;
4204
+ }
4205
+ function createResourceRequest(config) {
4206
+ const headers = {};
4207
+ return {
4208
+ baseUri: '/services/data/v62.0',
4209
+ basePath: '/connect/pcm/relatedRecords/' + config.urlParams.entityName + '',
4210
+ method: 'post',
4211
+ body: config.body,
4212
+ urlParams: config.urlParams,
4213
+ queryParams: {},
4214
+ headers,
4215
+ priority: 'normal',
4216
+ };
4217
+ }
4218
+
4219
+ const adapterName = 'fetchRelatedRecords';
4220
+ const fetchRelatedRecords_ConfigPropertyMetadata = [
4221
+ generateParamConfigMetadata('entityName', true, 0 /* UrlParameter */, 0 /* String */),
4222
+ generateParamConfigMetadata('epcProductRequestPayload', true, 2 /* Body */, 4 /* Unsupported */),
4223
+ ];
4224
+ const fetchRelatedRecords_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, fetchRelatedRecords_ConfigPropertyMetadata);
4225
+ const createResourceParams = /*#__PURE__*/ createResourceParams$c(fetchRelatedRecords_ConfigPropertyMetadata);
4226
+ function typeCheckConfig(untrustedConfig) {
4227
+ const config = {};
4228
+ typeCheckConfig$c(untrustedConfig, config, fetchRelatedRecords_ConfigPropertyMetadata);
4229
+ const untrustedConfig_epcProductRequestPayload = untrustedConfig.epcProductRequestPayload;
4230
+ const referenceRelatedRecordsInputRepresentationValidationError = validate$4(untrustedConfig_epcProductRequestPayload);
4231
+ if (referenceRelatedRecordsInputRepresentationValidationError === null) {
4232
+ config.epcProductRequestPayload = untrustedConfig_epcProductRequestPayload;
4233
+ }
4234
+ return config;
4235
+ }
4236
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
4237
+ if (!untrustedIsObject(untrustedConfig)) {
4238
+ return null;
4239
+ }
4240
+ if (process.env.NODE_ENV !== 'production') {
4241
+ validateConfig(untrustedConfig, configPropertyNames);
4242
+ }
4243
+ const config = typeCheckConfig(untrustedConfig);
4244
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
4245
+ return null;
4246
+ }
4247
+ return config;
4248
+ }
4249
+ function buildNetworkSnapshot(luvio, config, options) {
4250
+ const resourceParams = createResourceParams(config);
4251
+ const request = createResourceRequest(resourceParams);
4252
+ return luvio.dispatchResourceRequest(request, options)
4253
+ .then((response) => {
4254
+ return luvio.handleSuccessResponse(() => {
4255
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
4256
+ return luvio.storeBroadcast().then(() => snapshot);
4257
+ }, () => {
4258
+ const cache = new StoreKeyMap();
4259
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
4260
+ return cache;
4261
+ });
4262
+ }, (response) => {
4263
+ deepFreeze(response);
4264
+ throw response;
4265
+ });
4266
+ }
4267
+ const fetchRelatedRecordsAdapterFactory = (luvio) => {
4268
+ return function fetchRelatedRecords(untrustedConfig) {
4269
+ const config = validateAdapterConfig(untrustedConfig, fetchRelatedRecords_ConfigPropertyNames);
4270
+ // Invalid or incomplete config
4271
+ if (config === null) {
4272
+ throw new Error('Invalid config for "fetchRelatedRecords"');
4273
+ }
4274
+ return buildNetworkSnapshot(luvio, config);
4275
+ };
4276
+ };
4277
+
4278
+ export { createProductAttributeDefinitionAdapterFactory, deactivateAdapterFactory, deploySnapshotIndexAdapterFactory, fetchRelatedRecordsAdapterFactory, getConfigRuleMetadataAdapterFactory, getContextDefinitionInfoByIdAdapterFactory, getIndexConfigurationsAdapterFactory, getProductAttributesByProductIdAdapterFactory, getProductByIdAdapterFactory, getProductFlowByProductIdAdapterFactory, getSnapshotsAdapterFactory, updateIndexConfigurationsAdapterFactory };