@salesforce/lds-adapters-industries-decisiontable 1.296.1 → 1.297.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$4, StoreKeyMap, createResourceParams as createResourceParams$4 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$5, StoreKeyMap, createResourceParams as createResourceParams$5 } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -80,7 +80,7 @@ function createLink(ref) {
80
80
  };
81
81
  }
82
82
 
83
- function validate$b(obj, path = 'DecisionTableParameterOutputRepresentation') {
83
+ function validate$d(obj, path = 'DecisionTableParameterOutputRepresentation') {
84
84
  const v_error = (() => {
85
85
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
86
86
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -180,7 +180,7 @@ function validate$b(obj, path = 'DecisionTableParameterOutputRepresentation') {
180
180
  return v_error === undefined ? null : v_error;
181
181
  }
182
182
 
183
- function validate$a(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation') {
183
+ function validate$c(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation') {
184
184
  const v_error = (() => {
185
185
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
186
186
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -224,7 +224,7 @@ function validate$a(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation
224
224
  return v_error === undefined ? null : v_error;
225
225
  }
226
226
 
227
- function validate$9(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
227
+ function validate$b(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
228
228
  const v_error = (() => {
229
229
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
230
230
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -286,7 +286,7 @@ function validate$9(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
286
286
  for (let i = 0; i < obj_parameters.length; i++) {
287
287
  const obj_parameters_item = obj_parameters[i];
288
288
  const path_parameters_item = path_parameters + '[' + i + ']';
289
- const referencepath_parameters_itemValidationError = validate$b(obj_parameters_item, path_parameters_item);
289
+ const referencepath_parameters_itemValidationError = validate$d(obj_parameters_item, path_parameters_item);
290
290
  if (referencepath_parameters_itemValidationError !== null) {
291
291
  let message = 'Object doesn\'t match DecisionTableParameterOutputRepresentation (at "' + path_parameters_item + '")\n';
292
292
  message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -308,7 +308,7 @@ function validate$9(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
308
308
  for (let i = 0; i < obj_sourceCriteria.length; i++) {
309
309
  const obj_sourceCriteria_item = obj_sourceCriteria[i];
310
310
  const path_sourceCriteria_item = path_sourceCriteria + '[' + i + ']';
311
- const referencepath_sourceCriteria_itemValidationError = validate$a(obj_sourceCriteria_item, path_sourceCriteria_item);
311
+ const referencepath_sourceCriteria_itemValidationError = validate$c(obj_sourceCriteria_item, path_sourceCriteria_item);
312
312
  if (referencepath_sourceCriteria_itemValidationError !== null) {
313
313
  let message = 'Object doesn\'t match DecisionTableSourceCriteriaOutputRepresentation (at "' + path_sourceCriteria_item + '")\n';
314
314
  message += referencepath_sourceCriteria_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -354,9 +354,9 @@ function validate$9(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
354
354
  return v_error === undefined ? null : v_error;
355
355
  }
356
356
 
357
- const TTL$3 = 1000;
358
- const VERSION$3 = "21435364536c593ed8b8972af7d154d5";
359
- function validate$8(obj, path = 'DecisionTableOutputRepresentation') {
357
+ const TTL$4 = 1000;
358
+ const VERSION$4 = "21435364536c593ed8b8972af7d154d5";
359
+ function validate$a(obj, path = 'DecisionTableOutputRepresentation') {
360
360
  const v_error = (() => {
361
361
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
362
362
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -370,7 +370,7 @@ function validate$8(obj, path = 'DecisionTableOutputRepresentation') {
370
370
  }
371
371
  const obj_decisionTable = obj.decisionTable;
372
372
  const path_decisionTable = path + '.decisionTable';
373
- const referencepath_decisionTableValidationError = validate$9(obj_decisionTable, path_decisionTable);
373
+ const referencepath_decisionTableValidationError = validate$b(obj_decisionTable, path_decisionTable);
374
374
  if (referencepath_decisionTableValidationError !== null) {
375
375
  let message = 'Object doesn\'t match DecisionTableDefinitionOutputRepresentation (at "' + path_decisionTable + '")\n';
376
376
  message += referencepath_decisionTableValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -393,62 +393,62 @@ function validate$8(obj, path = 'DecisionTableOutputRepresentation') {
393
393
  })();
394
394
  return v_error === undefined ? null : v_error;
395
395
  }
396
- const RepresentationType$3 = 'DecisionTableOutputRepresentation';
397
- function normalize$3(input, existing, path, luvio, store, timestamp) {
396
+ const RepresentationType$4 = 'DecisionTableOutputRepresentation';
397
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
398
398
  return input;
399
399
  }
400
- const select$7 = function DecisionTableOutputRepresentationSelect() {
400
+ const select$9 = function DecisionTableOutputRepresentationSelect() {
401
401
  return {
402
402
  kind: 'Fragment',
403
- version: VERSION$3,
403
+ version: VERSION$4,
404
404
  private: [],
405
405
  opaque: true
406
406
  };
407
407
  };
408
- function equals$3(existing, incoming) {
408
+ function equals$4(existing, incoming) {
409
409
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
410
410
  return false;
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$3 = function DecisionTableOutputRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$4 = function DecisionTableOutputRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$8(input);
416
+ const validateError = validate$a(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$3;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "DecisionTable", VERSION$3, RepresentationType$3, equals$3);
422
+ const ttlToUse = TTL$4;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "DecisionTable", VERSION$4, RepresentationType$4, equals$4);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
427
427
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
428
428
  const rootKey = fullPathFactory();
429
429
  rootKeySet.set(rootKey, {
430
430
  namespace: keyPrefix,
431
- representationName: RepresentationType$3,
431
+ representationName: RepresentationType$4,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$6(luvio, params) {
437
- return select$7();
436
+ function select$8(luvio, params) {
437
+ return select$9();
438
438
  }
439
- function keyBuilder$6(luvio, params) {
439
+ function keyBuilder$8(luvio, params) {
440
440
  return keyPrefix + '::DecisionTableOutputRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
441
441
  }
442
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
442
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$6(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$3, body);
447
+ const key = keyBuilder$8(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$4, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$6(),
451
+ node: select$8(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -459,19 +459,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
459
459
  deepFreeze(snapshot.data);
460
460
  return snapshot;
461
461
  }
462
- function ingestError$2(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$6(luvio, params);
462
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
463
+ const key = keyBuilder$8(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$3,
466
+ ttl: TTL$4,
467
467
  namespace: keyPrefix,
468
- version: VERSION$3,
469
- representationName: RepresentationType$3
468
+ version: VERSION$4,
469
+ representationName: RepresentationType$4
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$3(config) {
474
+ function createResourceRequest$4(config) {
475
475
  const headers = {};
476
476
  return {
477
477
  baseUri: '/services/data/v62.0',
@@ -485,93 +485,93 @@ function createResourceRequest$3(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$3 = 'getDecisionTable';
488
+ const adapterName$4 = 'getDecisionTable';
489
489
  const getDecisionTable_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
491
491
  ];
492
- const getDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDecisionTable_ConfigPropertyMetadata);
493
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$4(getDecisionTable_ConfigPropertyMetadata);
494
- function keyBuilder$5(luvio, config) {
495
- const resourceParams = createResourceParams$3(config);
496
- return keyBuilder$6(luvio, resourceParams);
492
+ const getDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDecisionTable_ConfigPropertyMetadata);
493
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$5(getDecisionTable_ConfigPropertyMetadata);
494
+ function keyBuilder$7(luvio, config) {
495
+ const resourceParams = createResourceParams$4(config);
496
+ return keyBuilder$8(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$3(untrustedConfig) {
498
+ function typeCheckConfig$4(untrustedConfig) {
499
499
  const config = {};
500
- typeCheckConfig$4(untrustedConfig, config, getDecisionTable_ConfigPropertyMetadata);
500
+ typeCheckConfig$5(untrustedConfig, config, getDecisionTable_ConfigPropertyMetadata);
501
501
  return config;
502
502
  }
503
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
503
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
504
504
  if (!untrustedIsObject(untrustedConfig)) {
505
505
  return null;
506
506
  }
507
507
  if (process.env.NODE_ENV !== 'production') {
508
508
  validateConfig(untrustedConfig, configPropertyNames);
509
509
  }
510
- const config = typeCheckConfig$3(untrustedConfig);
510
+ const config = typeCheckConfig$4(untrustedConfig);
511
511
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
512
512
  return null;
513
513
  }
514
514
  return config;
515
515
  }
516
- function adapterFragment$2(luvio, config) {
517
- createResourceParams$3(config);
518
- return select$6();
516
+ function adapterFragment$3(luvio, config) {
517
+ createResourceParams$4(config);
518
+ return select$8();
519
519
  }
520
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
521
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
520
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
521
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
522
522
  config,
523
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
523
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
524
524
  });
525
525
  return luvio.storeBroadcast().then(() => snapshot);
526
526
  }
527
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
528
- const snapshot = ingestError$2(luvio, resourceParams, response, {
527
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
528
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
529
529
  config,
530
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
530
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
531
531
  });
532
532
  return luvio.storeBroadcast().then(() => snapshot);
533
533
  }
534
- function buildNetworkSnapshot$3(luvio, config, options) {
535
- const resourceParams = createResourceParams$3(config);
536
- const request = createResourceRequest$3(resourceParams);
534
+ function buildNetworkSnapshot$4(luvio, config, options) {
535
+ const resourceParams = createResourceParams$4(config);
536
+ const request = createResourceRequest$4(resourceParams);
537
537
  return luvio.dispatchResourceRequest(request, options)
538
538
  .then((response) => {
539
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
539
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
540
540
  const cache = new StoreKeyMap();
541
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
541
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
542
542
  return cache;
543
543
  });
544
544
  }, (response) => {
545
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
545
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
546
546
  });
547
547
  }
548
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
549
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
548
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
549
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
550
550
  }
551
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
551
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
552
552
  const { luvio, config } = context;
553
553
  const selector = {
554
- recordId: keyBuilder$5(luvio, config),
555
- node: adapterFragment$2(luvio, config),
554
+ recordId: keyBuilder$7(luvio, config),
555
+ node: adapterFragment$3(luvio, config),
556
556
  variables: {},
557
557
  };
558
558
  const cacheSnapshot = storeLookup(selector, {
559
559
  config,
560
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
560
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
561
561
  });
562
562
  return cacheSnapshot;
563
563
  }
564
564
  const getDecisionTableAdapterFactory = (luvio) => function DecisionTable__getDecisionTable(untrustedConfig, requestContext) {
565
- const config = validateAdapterConfig$3(untrustedConfig, getDecisionTable_ConfigPropertyNames);
565
+ const config = validateAdapterConfig$4(untrustedConfig, getDecisionTable_ConfigPropertyNames);
566
566
  // Invalid or incomplete config
567
567
  if (config === null) {
568
568
  return null;
569
569
  }
570
570
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
571
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
571
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
572
572
  };
573
573
 
574
- function validate$7(obj, path = 'DecisionTableTemplateOutputRepresentation') {
574
+ function validate$9(obj, path = 'DecisionTableTemplateOutputRepresentation') {
575
575
  const v_error = (() => {
576
576
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
577
577
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -601,7 +601,7 @@ function validate$7(obj, path = 'DecisionTableTemplateOutputRepresentation') {
601
601
  return v_error === undefined ? null : v_error;
602
602
  }
603
603
 
604
- function validate$6(obj, path = 'ErrorParametersOutputRepresentation') {
604
+ function validate$8(obj, path = 'ErrorParametersOutputRepresentation') {
605
605
  const v_error = (() => {
606
606
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
607
607
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -624,7 +624,7 @@ function validate$6(obj, path = 'ErrorParametersOutputRepresentation') {
624
624
  return v_error === undefined ? null : v_error;
625
625
  }
626
626
 
627
- function validate$5(obj, path = 'ErrorTargetsOutputRepresentation') {
627
+ function validate$7(obj, path = 'ErrorTargetsOutputRepresentation') {
628
628
  const v_error = (() => {
629
629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
630
630
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -647,7 +647,7 @@ function validate$5(obj, path = 'ErrorTargetsOutputRepresentation') {
647
647
  return v_error === undefined ? null : v_error;
648
648
  }
649
649
 
650
- function validate$4(obj, path = 'ErrorOutputRepresentation') {
650
+ function validate$6(obj, path = 'ErrorOutputRepresentation') {
651
651
  const v_error = (() => {
652
652
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
653
653
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -682,7 +682,7 @@ function validate$4(obj, path = 'ErrorOutputRepresentation') {
682
682
  for (let i = 0; i < obj_parameters.length; i++) {
683
683
  const obj_parameters_item = obj_parameters[i];
684
684
  const path_parameters_item = path_parameters + '[' + i + ']';
685
- const referencepath_parameters_itemValidationError = validate$6(obj_parameters_item, path_parameters_item);
685
+ const referencepath_parameters_itemValidationError = validate$8(obj_parameters_item, path_parameters_item);
686
686
  if (referencepath_parameters_itemValidationError !== null) {
687
687
  let message = 'Object doesn\'t match ErrorParametersOutputRepresentation (at "' + path_parameters_item + '")\n';
688
688
  message += referencepath_parameters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -699,7 +699,7 @@ function validate$4(obj, path = 'ErrorOutputRepresentation') {
699
699
  for (let i = 0; i < obj_targets.length; i++) {
700
700
  const obj_targets_item = obj_targets[i];
701
701
  const path_targets_item = path_targets + '[' + i + ']';
702
- const referencepath_targets_itemValidationError = validate$5(obj_targets_item, path_targets_item);
702
+ const referencepath_targets_itemValidationError = validate$7(obj_targets_item, path_targets_item);
703
703
  if (referencepath_targets_itemValidationError !== null) {
704
704
  let message = 'Object doesn\'t match ErrorTargetsOutputRepresentation (at "' + path_targets_item + '")\n';
705
705
  message += referencepath_targets_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -711,9 +711,9 @@ function validate$4(obj, path = 'ErrorOutputRepresentation') {
711
711
  return v_error === undefined ? null : v_error;
712
712
  }
713
713
 
714
- const TTL$2 = 1000;
715
- const VERSION$2 = "a2891bd122ab9f728d5937bf70b9f600";
716
- function validate$3(obj, path = 'DecisionTableTemplatesListOutputRepresentation') {
714
+ const TTL$3 = 1000;
715
+ const VERSION$3 = "a2891bd122ab9f728d5937bf70b9f600";
716
+ function validate$5(obj, path = 'DecisionTableTemplatesListOutputRepresentation') {
717
717
  const v_error = (() => {
718
718
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
719
719
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -727,7 +727,7 @@ function validate$3(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
727
727
  for (let i = 0; i < obj_decisionTableTemplates.length; i++) {
728
728
  const obj_decisionTableTemplates_item = obj_decisionTableTemplates[i];
729
729
  const path_decisionTableTemplates_item = path_decisionTableTemplates + '[' + i + ']';
730
- const referencepath_decisionTableTemplates_itemValidationError = validate$7(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
730
+ const referencepath_decisionTableTemplates_itemValidationError = validate$9(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
731
731
  if (referencepath_decisionTableTemplates_itemValidationError !== null) {
732
732
  let message = 'Object doesn\'t match DecisionTableTemplateOutputRepresentation (at "' + path_decisionTableTemplates_item + '")\n';
733
733
  message += referencepath_decisionTableTemplates_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -744,7 +744,7 @@ function validate$3(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
744
744
  for (let i = 0; i < obj_errors.length; i++) {
745
745
  const obj_errors_item = obj_errors[i];
746
746
  const path_errors_item = path_errors + '[' + i + ']';
747
- const referencepath_errors_itemValidationError = validate$4(obj_errors_item, path_errors_item);
747
+ const referencepath_errors_itemValidationError = validate$6(obj_errors_item, path_errors_item);
748
748
  if (referencepath_errors_itemValidationError !== null) {
749
749
  let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
750
750
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -755,62 +755,62 @@ function validate$3(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
755
755
  })();
756
756
  return v_error === undefined ? null : v_error;
757
757
  }
758
- const RepresentationType$2 = 'DecisionTableTemplatesListOutputRepresentation';
759
- function normalize$2(input, existing, path, luvio, store, timestamp) {
758
+ const RepresentationType$3 = 'DecisionTableTemplatesListOutputRepresentation';
759
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
760
760
  return input;
761
761
  }
762
- const select$5 = function DecisionTableTemplatesListOutputRepresentationSelect() {
762
+ const select$7 = function DecisionTableTemplatesListOutputRepresentationSelect() {
763
763
  return {
764
764
  kind: 'Fragment',
765
- version: VERSION$2,
765
+ version: VERSION$3,
766
766
  private: [],
767
767
  opaque: true
768
768
  };
769
769
  };
770
- function equals$2(existing, incoming) {
770
+ function equals$3(existing, incoming) {
771
771
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
772
772
  return false;
773
773
  }
774
774
  return true;
775
775
  }
776
- const ingest$2 = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
776
+ const ingest$3 = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
777
777
  if (process.env.NODE_ENV !== 'production') {
778
- const validateError = validate$3(input);
778
+ const validateError = validate$5(input);
779
779
  if (validateError !== null) {
780
780
  throw validateError;
781
781
  }
782
782
  }
783
783
  const key = path.fullPath;
784
- const ttlToUse = TTL$2;
785
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "DecisionTable", VERSION$2, RepresentationType$2, equals$2);
784
+ const ttlToUse = TTL$3;
785
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "DecisionTable", VERSION$3, RepresentationType$3, equals$3);
786
786
  return createLink(key);
787
787
  };
788
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
788
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
789
789
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
790
790
  const rootKey = fullPathFactory();
791
791
  rootKeySet.set(rootKey, {
792
792
  namespace: keyPrefix,
793
- representationName: RepresentationType$2,
793
+ representationName: RepresentationType$3,
794
794
  mergeable: false
795
795
  });
796
796
  }
797
797
 
798
- function select$4(luvio, params) {
799
- return select$5();
798
+ function select$6(luvio, params) {
799
+ return select$7();
800
800
  }
801
- function keyBuilder$4(luvio, params) {
801
+ function keyBuilder$6(luvio, params) {
802
802
  return keyPrefix + '::DecisionTableTemplatesListOutputRepresentation:(' + 'usageType:' + params.queryParams.usageType + ')';
803
803
  }
804
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
805
- getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
804
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
805
+ getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
806
806
  }
807
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
807
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
808
808
  const { body } = response;
809
- const key = keyBuilder$4(luvio, resourceParams);
810
- luvio.storeIngest(key, ingest$2, body);
809
+ const key = keyBuilder$6(luvio, resourceParams);
810
+ luvio.storeIngest(key, ingest$3, body);
811
811
  const snapshot = luvio.storeLookup({
812
812
  recordId: key,
813
- node: select$4(),
813
+ node: select$6(),
814
814
  variables: {},
815
815
  }, snapshotRefresh);
816
816
  if (process.env.NODE_ENV !== 'production') {
@@ -821,19 +821,19 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
821
821
  deepFreeze(snapshot.data);
822
822
  return snapshot;
823
823
  }
824
- function ingestError$1(luvio, params, error, snapshotRefresh) {
825
- const key = keyBuilder$4(luvio, params);
824
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
825
+ const key = keyBuilder$6(luvio, params);
826
826
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
827
827
  const storeMetadataParams = {
828
- ttl: TTL$2,
828
+ ttl: TTL$3,
829
829
  namespace: keyPrefix,
830
- version: VERSION$2,
831
- representationName: RepresentationType$2
830
+ version: VERSION$3,
831
+ representationName: RepresentationType$3
832
832
  };
833
833
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
834
834
  return errorSnapshot;
835
835
  }
836
- function createResourceRequest$2(config) {
836
+ function createResourceRequest$3(config) {
837
837
  const headers = {};
838
838
  return {
839
839
  baseUri: '/services/data/v62.0',
@@ -847,95 +847,95 @@ function createResourceRequest$2(config) {
847
847
  };
848
848
  }
849
849
 
850
- const adapterName$2 = 'getDecisionTableTemplateList';
850
+ const adapterName$3 = 'getDecisionTableTemplateList';
851
851
  const getDecisionTableTemplateList_ConfigPropertyMetadata = [
852
852
  generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
853
853
  ];
854
- const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDecisionTableTemplateList_ConfigPropertyMetadata);
855
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$4(getDecisionTableTemplateList_ConfigPropertyMetadata);
856
- function keyBuilder$3(luvio, config) {
857
- const resourceParams = createResourceParams$2(config);
858
- return keyBuilder$4(luvio, resourceParams);
854
+ const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDecisionTableTemplateList_ConfigPropertyMetadata);
855
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$5(getDecisionTableTemplateList_ConfigPropertyMetadata);
856
+ function keyBuilder$5(luvio, config) {
857
+ const resourceParams = createResourceParams$3(config);
858
+ return keyBuilder$6(luvio, resourceParams);
859
859
  }
860
- function typeCheckConfig$2(untrustedConfig) {
860
+ function typeCheckConfig$3(untrustedConfig) {
861
861
  const config = {};
862
- typeCheckConfig$4(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
862
+ typeCheckConfig$5(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
863
863
  return config;
864
864
  }
865
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
865
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
866
866
  if (!untrustedIsObject(untrustedConfig)) {
867
867
  return null;
868
868
  }
869
869
  if (process.env.NODE_ENV !== 'production') {
870
870
  validateConfig(untrustedConfig, configPropertyNames);
871
871
  }
872
- const config = typeCheckConfig$2(untrustedConfig);
872
+ const config = typeCheckConfig$3(untrustedConfig);
873
873
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
874
874
  return null;
875
875
  }
876
876
  return config;
877
877
  }
878
- function adapterFragment$1(luvio, config) {
879
- createResourceParams$2(config);
880
- return select$4();
878
+ function adapterFragment$2(luvio, config) {
879
+ createResourceParams$3(config);
880
+ return select$6();
881
881
  }
882
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
883
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
882
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
883
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
884
884
  config,
885
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
885
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
886
886
  });
887
887
  return luvio.storeBroadcast().then(() => snapshot);
888
888
  }
889
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
890
- const snapshot = ingestError$1(luvio, resourceParams, response, {
889
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
890
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
891
891
  config,
892
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
892
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
893
893
  });
894
894
  return luvio.storeBroadcast().then(() => snapshot);
895
895
  }
896
- function buildNetworkSnapshot$2(luvio, config, options) {
897
- const resourceParams = createResourceParams$2(config);
898
- const request = createResourceRequest$2(resourceParams);
896
+ function buildNetworkSnapshot$3(luvio, config, options) {
897
+ const resourceParams = createResourceParams$3(config);
898
+ const request = createResourceRequest$3(resourceParams);
899
899
  return luvio.dispatchResourceRequest(request, options)
900
900
  .then((response) => {
901
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
901
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
902
902
  const cache = new StoreKeyMap();
903
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
903
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
904
904
  return cache;
905
905
  });
906
906
  }, (response) => {
907
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
907
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
908
908
  });
909
909
  }
910
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
911
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
910
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
911
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
912
912
  }
913
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
913
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
914
914
  const { luvio, config } = context;
915
915
  const selector = {
916
- recordId: keyBuilder$3(luvio, config),
917
- node: adapterFragment$1(luvio, config),
916
+ recordId: keyBuilder$5(luvio, config),
917
+ node: adapterFragment$2(luvio, config),
918
918
  variables: {},
919
919
  };
920
920
  const cacheSnapshot = storeLookup(selector, {
921
921
  config,
922
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
922
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
923
923
  });
924
924
  return cacheSnapshot;
925
925
  }
926
926
  const getDecisionTableTemplateListAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplateList(untrustedConfig, requestContext) {
927
- const config = validateAdapterConfig$2(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
927
+ const config = validateAdapterConfig$3(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
928
928
  // Invalid or incomplete config
929
929
  if (config === null) {
930
930
  return null;
931
931
  }
932
932
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
933
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
933
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
934
934
  };
935
935
 
936
- const TTL$1 = 1000;
937
- const VERSION$1 = "9a106f486843ccdb3e85594fb33ef97f";
938
- function validate$2(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentation') {
936
+ const TTL$2 = 1000;
937
+ const VERSION$2 = "9a106f486843ccdb3e85594fb33ef97f";
938
+ function validate$4(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentation') {
939
939
  const v_error = (() => {
940
940
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
941
941
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -943,7 +943,7 @@ function validate$2(obj, path = 'DecisionTableTemplateDefinitionOutputRepresenta
943
943
  if (obj.decisionTableTemplate !== undefined) {
944
944
  const obj_decisionTableTemplate = obj.decisionTableTemplate;
945
945
  const path_decisionTableTemplate = path + '.decisionTableTemplate';
946
- const referencepath_decisionTableTemplateValidationError = validate$9(obj_decisionTableTemplate, path_decisionTableTemplate);
946
+ const referencepath_decisionTableTemplateValidationError = validate$b(obj_decisionTableTemplate, path_decisionTableTemplate);
947
947
  if (referencepath_decisionTableTemplateValidationError !== null) {
948
948
  let message = 'Object doesn\'t match DecisionTableDefinitionOutputRepresentation (at "' + path_decisionTableTemplate + '")\n';
949
949
  message += referencepath_decisionTableTemplateValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -959,7 +959,7 @@ function validate$2(obj, path = 'DecisionTableTemplateDefinitionOutputRepresenta
959
959
  for (let i = 0; i < obj_errors.length; i++) {
960
960
  const obj_errors_item = obj_errors[i];
961
961
  const path_errors_item = path_errors + '[' + i + ']';
962
- const referencepath_errors_itemValidationError = validate$4(obj_errors_item, path_errors_item);
962
+ const referencepath_errors_itemValidationError = validate$6(obj_errors_item, path_errors_item);
963
963
  if (referencepath_errors_itemValidationError !== null) {
964
964
  let message = 'Object doesn\'t match ErrorOutputRepresentation (at "' + path_errors_item + '")\n';
965
965
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -970,62 +970,62 @@ function validate$2(obj, path = 'DecisionTableTemplateDefinitionOutputRepresenta
970
970
  })();
971
971
  return v_error === undefined ? null : v_error;
972
972
  }
973
- const RepresentationType$1 = 'DecisionTableTemplateDefinitionOutputRepresentation';
974
- function normalize$1(input, existing, path, luvio, store, timestamp) {
973
+ const RepresentationType$2 = 'DecisionTableTemplateDefinitionOutputRepresentation';
974
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
975
975
  return input;
976
976
  }
977
- const select$3 = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
977
+ const select$5 = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
978
978
  return {
979
979
  kind: 'Fragment',
980
- version: VERSION$1,
980
+ version: VERSION$2,
981
981
  private: [],
982
982
  opaque: true
983
983
  };
984
984
  };
985
- function equals$1(existing, incoming) {
985
+ function equals$2(existing, incoming) {
986
986
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
987
987
  return false;
988
988
  }
989
989
  return true;
990
990
  }
991
- const ingest$1 = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
991
+ const ingest$2 = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
992
992
  if (process.env.NODE_ENV !== 'production') {
993
- const validateError = validate$2(input);
993
+ const validateError = validate$4(input);
994
994
  if (validateError !== null) {
995
995
  throw validateError;
996
996
  }
997
997
  }
998
998
  const key = path.fullPath;
999
- const ttlToUse = TTL$1;
1000
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "DecisionTable", VERSION$1, RepresentationType$1, equals$1);
999
+ const ttlToUse = TTL$2;
1000
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "DecisionTable", VERSION$2, RepresentationType$2, equals$2);
1001
1001
  return createLink(key);
1002
1002
  };
1003
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1003
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1004
1004
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1005
1005
  const rootKey = fullPathFactory();
1006
1006
  rootKeySet.set(rootKey, {
1007
1007
  namespace: keyPrefix,
1008
- representationName: RepresentationType$1,
1008
+ representationName: RepresentationType$2,
1009
1009
  mergeable: false
1010
1010
  });
1011
1011
  }
1012
1012
 
1013
- function select$2(luvio, params) {
1014
- return select$3();
1013
+ function select$4(luvio, params) {
1014
+ return select$5();
1015
1015
  }
1016
- function keyBuilder$2(luvio, params) {
1016
+ function keyBuilder$4(luvio, params) {
1017
1017
  return keyPrefix + '::DecisionTableTemplateDefinitionOutputRepresentation:(' + 'templateName:' + params.urlParams.templateName + ')';
1018
1018
  }
1019
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1020
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
1019
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1020
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1021
1021
  }
1022
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1022
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1023
1023
  const { body } = response;
1024
- const key = keyBuilder$2(luvio, resourceParams);
1025
- luvio.storeIngest(key, ingest$1, body);
1024
+ const key = keyBuilder$4(luvio, resourceParams);
1025
+ luvio.storeIngest(key, ingest$2, body);
1026
1026
  const snapshot = luvio.storeLookup({
1027
1027
  recordId: key,
1028
- node: select$2(),
1028
+ node: select$4(),
1029
1029
  variables: {},
1030
1030
  }, snapshotRefresh);
1031
1031
  if (process.env.NODE_ENV !== 'production') {
@@ -1036,19 +1036,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1036
1036
  deepFreeze(snapshot.data);
1037
1037
  return snapshot;
1038
1038
  }
1039
- function ingestError(luvio, params, error, snapshotRefresh) {
1040
- const key = keyBuilder$2(luvio, params);
1039
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
1040
+ const key = keyBuilder$4(luvio, params);
1041
1041
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1042
1042
  const storeMetadataParams = {
1043
- ttl: TTL$1,
1043
+ ttl: TTL$2,
1044
1044
  namespace: keyPrefix,
1045
- version: VERSION$1,
1046
- representationName: RepresentationType$1
1045
+ version: VERSION$2,
1046
+ representationName: RepresentationType$2
1047
1047
  };
1048
1048
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1049
1049
  return errorSnapshot;
1050
1050
  }
1051
- function createResourceRequest$1(config) {
1051
+ function createResourceRequest$2(config) {
1052
1052
  const headers = {};
1053
1053
  return {
1054
1054
  baseUri: '/services/data/v62.0',
@@ -1062,93 +1062,93 @@ function createResourceRequest$1(config) {
1062
1062
  };
1063
1063
  }
1064
1064
 
1065
- const adapterName$1 = 'getDecisionTableTemplate';
1065
+ const adapterName$2 = 'getDecisionTableTemplate';
1066
1066
  const getDecisionTableTemplate_ConfigPropertyMetadata = [
1067
1067
  generateParamConfigMetadata('templateName', true, 0 /* UrlParameter */, 0 /* String */),
1068
1068
  ];
1069
- const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDecisionTableTemplate_ConfigPropertyMetadata);
1070
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$4(getDecisionTableTemplate_ConfigPropertyMetadata);
1071
- function keyBuilder$1(luvio, config) {
1072
- const resourceParams = createResourceParams$1(config);
1073
- return keyBuilder$2(luvio, resourceParams);
1069
+ const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDecisionTableTemplate_ConfigPropertyMetadata);
1070
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$5(getDecisionTableTemplate_ConfigPropertyMetadata);
1071
+ function keyBuilder$3(luvio, config) {
1072
+ const resourceParams = createResourceParams$2(config);
1073
+ return keyBuilder$4(luvio, resourceParams);
1074
1074
  }
1075
- function typeCheckConfig$1(untrustedConfig) {
1075
+ function typeCheckConfig$2(untrustedConfig) {
1076
1076
  const config = {};
1077
- typeCheckConfig$4(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
1077
+ typeCheckConfig$5(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
1078
1078
  return config;
1079
1079
  }
1080
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1080
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1081
1081
  if (!untrustedIsObject(untrustedConfig)) {
1082
1082
  return null;
1083
1083
  }
1084
1084
  if (process.env.NODE_ENV !== 'production') {
1085
1085
  validateConfig(untrustedConfig, configPropertyNames);
1086
1086
  }
1087
- const config = typeCheckConfig$1(untrustedConfig);
1087
+ const config = typeCheckConfig$2(untrustedConfig);
1088
1088
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1089
1089
  return null;
1090
1090
  }
1091
1091
  return config;
1092
1092
  }
1093
- function adapterFragment(luvio, config) {
1094
- createResourceParams$1(config);
1095
- return select$2();
1093
+ function adapterFragment$1(luvio, config) {
1094
+ createResourceParams$2(config);
1095
+ return select$4();
1096
1096
  }
1097
- function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1098
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1097
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1098
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1099
1099
  config,
1100
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1100
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1101
1101
  });
1102
1102
  return luvio.storeBroadcast().then(() => snapshot);
1103
1103
  }
1104
- function onFetchResponseError(luvio, config, resourceParams, response) {
1105
- const snapshot = ingestError(luvio, resourceParams, response, {
1104
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
1105
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
1106
1106
  config,
1107
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1107
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1108
1108
  });
1109
1109
  return luvio.storeBroadcast().then(() => snapshot);
1110
1110
  }
1111
- function buildNetworkSnapshot$1(luvio, config, options) {
1112
- const resourceParams = createResourceParams$1(config);
1113
- const request = createResourceRequest$1(resourceParams);
1111
+ function buildNetworkSnapshot$2(luvio, config, options) {
1112
+ const resourceParams = createResourceParams$2(config);
1113
+ const request = createResourceRequest$2(resourceParams);
1114
1114
  return luvio.dispatchResourceRequest(request, options)
1115
1115
  .then((response) => {
1116
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1116
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1117
1117
  const cache = new StoreKeyMap();
1118
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1118
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1119
1119
  return cache;
1120
1120
  });
1121
1121
  }, (response) => {
1122
- return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1122
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
1123
1123
  });
1124
1124
  }
1125
- function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1126
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1125
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1126
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1127
1127
  }
1128
- function buildCachedSnapshotCachePolicy(context, storeLookup) {
1128
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1129
1129
  const { luvio, config } = context;
1130
1130
  const selector = {
1131
- recordId: keyBuilder$1(luvio, config),
1132
- node: adapterFragment(luvio, config),
1131
+ recordId: keyBuilder$3(luvio, config),
1132
+ node: adapterFragment$1(luvio, config),
1133
1133
  variables: {},
1134
1134
  };
1135
1135
  const cacheSnapshot = storeLookup(selector, {
1136
1136
  config,
1137
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1137
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1138
1138
  });
1139
1139
  return cacheSnapshot;
1140
1140
  }
1141
1141
  const getDecisionTableTemplateAdapterFactory = (luvio) => function DecisionTable__getDecisionTableTemplate(untrustedConfig, requestContext) {
1142
- const config = validateAdapterConfig$1(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
1142
+ const config = validateAdapterConfig$2(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
1143
1143
  // Invalid or incomplete config
1144
1144
  if (config === null) {
1145
1145
  return null;
1146
1146
  }
1147
1147
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1148
- buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1148
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1149
1149
  };
1150
1150
 
1151
- function validate$1(obj, path = 'DecisionTableRowInputRepresentation') {
1151
+ function validate$3(obj, path = 'DecisionTableRowInputRepresentation') {
1152
1152
  const v_error = (() => {
1153
1153
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1154
1154
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1186,9 +1186,9 @@ function validate$1(obj, path = 'DecisionTableRowInputRepresentation') {
1186
1186
  return v_error === undefined ? null : v_error;
1187
1187
  }
1188
1188
 
1189
- const TTL = 1000;
1190
- const VERSION = "b20786da88bc707d39693989566d86c6";
1191
- function validate(obj, path = 'DecisionTableDataOutputRepresentation') {
1189
+ const TTL$1 = 1000;
1190
+ const VERSION$1 = "b20786da88bc707d39693989566d86c6";
1191
+ function validate$2(obj, path = 'DecisionTableDataOutputRepresentation') {
1192
1192
  const v_error = (() => {
1193
1193
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1194
1194
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1227,68 +1227,68 @@ function validate(obj, path = 'DecisionTableDataOutputRepresentation') {
1227
1227
  })();
1228
1228
  return v_error === undefined ? null : v_error;
1229
1229
  }
1230
- const RepresentationType = 'DecisionTableDataOutputRepresentation';
1231
- function keyBuilder(luvio, config) {
1232
- return keyPrefix + '::' + RepresentationType + ':' + config.success;
1230
+ const RepresentationType$1 = 'DecisionTableDataOutputRepresentation';
1231
+ function keyBuilder$2(luvio, config) {
1232
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.success;
1233
1233
  }
1234
1234
  function keyBuilderFromType(luvio, object) {
1235
1235
  const keyParams = {
1236
1236
  success: object.success
1237
1237
  };
1238
- return keyBuilder(luvio, keyParams);
1238
+ return keyBuilder$2(luvio, keyParams);
1239
1239
  }
1240
- function normalize(input, existing, path, luvio, store, timestamp) {
1240
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1241
1241
  return input;
1242
1242
  }
1243
- const select$1 = function DecisionTableDataOutputRepresentationSelect() {
1243
+ const select$3 = function DecisionTableDataOutputRepresentationSelect() {
1244
1244
  return {
1245
1245
  kind: 'Fragment',
1246
- version: VERSION,
1246
+ version: VERSION$1,
1247
1247
  private: [],
1248
1248
  opaque: true
1249
1249
  };
1250
1250
  };
1251
- function equals(existing, incoming) {
1251
+ function equals$1(existing, incoming) {
1252
1252
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1253
1253
  return false;
1254
1254
  }
1255
1255
  return true;
1256
1256
  }
1257
- const ingest = function DecisionTableDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1257
+ const ingest$1 = function DecisionTableDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1258
1258
  if (process.env.NODE_ENV !== 'production') {
1259
- const validateError = validate(input);
1259
+ const validateError = validate$2(input);
1260
1260
  if (validateError !== null) {
1261
1261
  throw validateError;
1262
1262
  }
1263
1263
  }
1264
1264
  const key = keyBuilderFromType(luvio, input);
1265
- const ttlToUse = TTL;
1266
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "DecisionTable", VERSION, RepresentationType, equals);
1265
+ const ttlToUse = TTL$1;
1266
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "DecisionTable", VERSION$1, RepresentationType$1, equals$1);
1267
1267
  return createLink(key);
1268
1268
  };
1269
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1269
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1270
1270
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1271
1271
  const rootKey = keyBuilderFromType(luvio, input);
1272
1272
  rootKeySet.set(rootKey, {
1273
1273
  namespace: keyPrefix,
1274
- representationName: RepresentationType,
1274
+ representationName: RepresentationType$1,
1275
1275
  mergeable: false
1276
1276
  });
1277
1277
  }
1278
1278
 
1279
- function select(luvio, params) {
1280
- return select$1();
1279
+ function select$2(luvio, params) {
1280
+ return select$3();
1281
1281
  }
1282
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1283
- getTypeCacheKeys(storeKeyMap, luvio, response);
1282
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1283
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1284
1284
  }
1285
- function ingestSuccess(luvio, resourceParams, response) {
1285
+ function ingestSuccess$1(luvio, resourceParams, response) {
1286
1286
  const { body } = response;
1287
1287
  const key = keyBuilderFromType(luvio, body);
1288
- luvio.storeIngest(key, ingest, body);
1288
+ luvio.storeIngest(key, ingest$1, body);
1289
1289
  const snapshot = luvio.storeLookup({
1290
1290
  recordId: key,
1291
- node: select(),
1291
+ node: select$2(),
1292
1292
  variables: {},
1293
1293
  });
1294
1294
  if (process.env.NODE_ENV !== 'production') {
@@ -1299,7 +1299,7 @@ function ingestSuccess(luvio, resourceParams, response) {
1299
1299
  deepFreeze(snapshot.data);
1300
1300
  return snapshot;
1301
1301
  }
1302
- function createResourceRequest(config) {
1302
+ function createResourceRequest$1(config) {
1303
1303
  const headers = {};
1304
1304
  return {
1305
1305
  baseUri: '/services/data/v62.0',
@@ -1313,24 +1313,24 @@ function createResourceRequest(config) {
1313
1313
  };
1314
1314
  }
1315
1315
 
1316
- const adapterName = 'postDecisionTableRows';
1316
+ const adapterName$1 = 'postDecisionTableRows';
1317
1317
  const postDecisionTableRows_ConfigPropertyMetadata = [
1318
1318
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1319
1319
  generateParamConfigMetadata('deleteAllRows', false, 2 /* Body */, 1 /* Boolean */),
1320
1320
  generateParamConfigMetadata('fileId', false, 2 /* Body */, 0 /* String */),
1321
1321
  generateParamConfigMetadata('rows', false, 2 /* Body */, 4 /* Unsupported */, true),
1322
1322
  ];
1323
- const postDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postDecisionTableRows_ConfigPropertyMetadata);
1324
- const createResourceParams = /*#__PURE__*/ createResourceParams$4(postDecisionTableRows_ConfigPropertyMetadata);
1325
- function typeCheckConfig(untrustedConfig) {
1323
+ const postDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postDecisionTableRows_ConfigPropertyMetadata);
1324
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$5(postDecisionTableRows_ConfigPropertyMetadata);
1325
+ function typeCheckConfig$1(untrustedConfig) {
1326
1326
  const config = {};
1327
- typeCheckConfig$4(untrustedConfig, config, postDecisionTableRows_ConfigPropertyMetadata);
1327
+ typeCheckConfig$5(untrustedConfig, config, postDecisionTableRows_ConfigPropertyMetadata);
1328
1328
  const untrustedConfig_rows = untrustedConfig.rows;
1329
1329
  if (ArrayIsArray$1(untrustedConfig_rows)) {
1330
1330
  const untrustedConfig_rows_array = [];
1331
1331
  for (let i = 0, arrayLength = untrustedConfig_rows.length; i < arrayLength; i++) {
1332
1332
  const untrustedConfig_rows_item = untrustedConfig_rows[i];
1333
- const referenceDecisionTableRowInputRepresentationValidationError = validate$1(untrustedConfig_rows_item);
1333
+ const referenceDecisionTableRowInputRepresentationValidationError = validate$3(untrustedConfig_rows_item);
1334
1334
  if (referenceDecisionTableRowInputRepresentationValidationError === null) {
1335
1335
  untrustedConfig_rows_array.push(untrustedConfig_rows_item);
1336
1336
  }
@@ -1339,30 +1339,30 @@ function typeCheckConfig(untrustedConfig) {
1339
1339
  }
1340
1340
  return config;
1341
1341
  }
1342
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1342
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1343
1343
  if (!untrustedIsObject(untrustedConfig)) {
1344
1344
  return null;
1345
1345
  }
1346
1346
  if (process.env.NODE_ENV !== 'production') {
1347
1347
  validateConfig(untrustedConfig, configPropertyNames);
1348
1348
  }
1349
- const config = typeCheckConfig(untrustedConfig);
1349
+ const config = typeCheckConfig$1(untrustedConfig);
1350
1350
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1351
1351
  return null;
1352
1352
  }
1353
1353
  return config;
1354
1354
  }
1355
- function buildNetworkSnapshot(luvio, config, options) {
1356
- const resourceParams = createResourceParams(config);
1357
- const request = createResourceRequest(resourceParams);
1355
+ function buildNetworkSnapshot$1(luvio, config, options) {
1356
+ const resourceParams = createResourceParams$1(config);
1357
+ const request = createResourceRequest$1(resourceParams);
1358
1358
  return luvio.dispatchResourceRequest(request, options)
1359
1359
  .then((response) => {
1360
1360
  return luvio.handleSuccessResponse(() => {
1361
- const snapshot = ingestSuccess(luvio, resourceParams, response);
1361
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1362
1362
  return luvio.storeBroadcast().then(() => snapshot);
1363
1363
  }, () => {
1364
1364
  const cache = new StoreKeyMap();
1365
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1365
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1366
1366
  return cache;
1367
1367
  });
1368
1368
  }, (response) => {
@@ -1372,13 +1372,307 @@ function buildNetworkSnapshot(luvio, config, options) {
1372
1372
  }
1373
1373
  const postDecisionTableRowsAdapterFactory = (luvio) => {
1374
1374
  return function postDecisionTableRows(untrustedConfig) {
1375
- const config = validateAdapterConfig(untrustedConfig, postDecisionTableRows_ConfigPropertyNames);
1375
+ const config = validateAdapterConfig$1(untrustedConfig, postDecisionTableRows_ConfigPropertyNames);
1376
1376
  // Invalid or incomplete config
1377
1377
  if (config === null) {
1378
1378
  throw new Error('Invalid config for "postDecisionTableRows"');
1379
1379
  }
1380
- return buildNetworkSnapshot(luvio, config);
1380
+ return buildNetworkSnapshot$1(luvio, config);
1381
+ };
1382
+ };
1383
+
1384
+ function validate$1(obj, path = 'DecisionTableRowOutputRepresentation') {
1385
+ const v_error = (() => {
1386
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1387
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1388
+ }
1389
+ const obj_id = obj.id;
1390
+ const path_id = path + '.id';
1391
+ if (typeof obj_id !== 'string') {
1392
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1393
+ }
1394
+ const obj_name = obj.name;
1395
+ const path_name = path + '.name';
1396
+ if (typeof obj_name !== 'string') {
1397
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
1398
+ }
1399
+ const obj_rowData = obj.rowData;
1400
+ const path_rowData = path + '.rowData';
1401
+ if (typeof obj_rowData !== 'object' || ArrayIsArray(obj_rowData) || obj_rowData === null) {
1402
+ return new TypeError('Expected "object" but received "' + typeof obj_rowData + '" (at "' + path_rowData + '")');
1403
+ }
1404
+ const obj_rowData_keys = ObjectKeys(obj_rowData);
1405
+ for (let i = 0; i < obj_rowData_keys.length; i++) {
1406
+ const key = obj_rowData_keys[i];
1407
+ const obj_rowData_prop = obj_rowData[key];
1408
+ const path_rowData_prop = path_rowData + '["' + key + '"]';
1409
+ if (obj_rowData_prop === undefined) {
1410
+ return new TypeError('Expected "defined" but received "' + typeof obj_rowData_prop + '" (at "' + path_rowData_prop + '")');
1411
+ }
1412
+ }
1413
+ })();
1414
+ return v_error === undefined ? null : v_error;
1415
+ }
1416
+
1417
+ const TTL = 1000;
1418
+ const VERSION = "a83448e0697c7cd760bb326aef31b635";
1419
+ function validate(obj, path = 'DecisionTableRowsListOutputRepresentation') {
1420
+ const v_error = (() => {
1421
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1422
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1423
+ }
1424
+ const obj_message = obj.message;
1425
+ const path_message = path + '.message';
1426
+ let obj_message_union0 = null;
1427
+ const obj_message_union0_error = (() => {
1428
+ if (typeof obj_message !== 'string') {
1429
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1430
+ }
1431
+ })();
1432
+ if (obj_message_union0_error != null) {
1433
+ obj_message_union0 = obj_message_union0_error.message;
1434
+ }
1435
+ let obj_message_union1 = null;
1436
+ const obj_message_union1_error = (() => {
1437
+ if (obj_message !== null) {
1438
+ return new TypeError('Expected "null" but received "' + typeof obj_message + '" (at "' + path_message + '")');
1439
+ }
1440
+ })();
1441
+ if (obj_message_union1_error != null) {
1442
+ obj_message_union1 = obj_message_union1_error.message;
1443
+ }
1444
+ if (obj_message_union0 && obj_message_union1) {
1445
+ let message = 'Object doesn\'t match union (at "' + path_message + '")';
1446
+ message += '\n' + obj_message_union0.split('\n').map((line) => '\t' + line).join('\n');
1447
+ message += '\n' + obj_message_union1.split('\n').map((line) => '\t' + line).join('\n');
1448
+ return new TypeError(message);
1449
+ }
1450
+ const obj_rows = obj.rows;
1451
+ const path_rows = path + '.rows';
1452
+ if (!ArrayIsArray(obj_rows)) {
1453
+ return new TypeError('Expected "array" but received "' + typeof obj_rows + '" (at "' + path_rows + '")');
1454
+ }
1455
+ for (let i = 0; i < obj_rows.length; i++) {
1456
+ const obj_rows_item = obj_rows[i];
1457
+ const path_rows_item = path_rows + '[' + i + ']';
1458
+ const referencepath_rows_itemValidationError = validate$1(obj_rows_item, path_rows_item);
1459
+ if (referencepath_rows_itemValidationError !== null) {
1460
+ let message = 'Object doesn\'t match DecisionTableRowOutputRepresentation (at "' + path_rows_item + '")\n';
1461
+ message += referencepath_rows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1462
+ return new TypeError(message);
1463
+ }
1464
+ }
1465
+ const obj_totalRows = obj.totalRows;
1466
+ const path_totalRows = path + '.totalRows';
1467
+ let obj_totalRows_union0 = null;
1468
+ const obj_totalRows_union0_error = (() => {
1469
+ if (typeof obj_totalRows !== 'number' || (typeof obj_totalRows === 'number' && Math.floor(obj_totalRows) !== obj_totalRows)) {
1470
+ return new TypeError('Expected "integer" but received "' + typeof obj_totalRows + '" (at "' + path_totalRows + '")');
1471
+ }
1472
+ })();
1473
+ if (obj_totalRows_union0_error != null) {
1474
+ obj_totalRows_union0 = obj_totalRows_union0_error.message;
1475
+ }
1476
+ let obj_totalRows_union1 = null;
1477
+ const obj_totalRows_union1_error = (() => {
1478
+ if (obj_totalRows !== null) {
1479
+ return new TypeError('Expected "null" but received "' + typeof obj_totalRows + '" (at "' + path_totalRows + '")');
1480
+ }
1481
+ })();
1482
+ if (obj_totalRows_union1_error != null) {
1483
+ obj_totalRows_union1 = obj_totalRows_union1_error.message;
1484
+ }
1485
+ if (obj_totalRows_union0 && obj_totalRows_union1) {
1486
+ let message = 'Object doesn\'t match union (at "' + path_totalRows + '")';
1487
+ message += '\n' + obj_totalRows_union0.split('\n').map((line) => '\t' + line).join('\n');
1488
+ message += '\n' + obj_totalRows_union1.split('\n').map((line) => '\t' + line).join('\n');
1489
+ return new TypeError(message);
1490
+ }
1491
+ })();
1492
+ return v_error === undefined ? null : v_error;
1493
+ }
1494
+ const RepresentationType = 'DecisionTableRowsListOutputRepresentation';
1495
+ function normalize(input, existing, path, luvio, store, timestamp) {
1496
+ return input;
1497
+ }
1498
+ const select$1 = function DecisionTableRowsListOutputRepresentationSelect() {
1499
+ return {
1500
+ kind: 'Fragment',
1501
+ version: VERSION,
1502
+ private: [],
1503
+ opaque: true
1504
+ };
1505
+ };
1506
+ function equals(existing, incoming) {
1507
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1508
+ return false;
1509
+ }
1510
+ return true;
1511
+ }
1512
+ const ingest = function DecisionTableRowsListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1513
+ if (process.env.NODE_ENV !== 'production') {
1514
+ const validateError = validate(input);
1515
+ if (validateError !== null) {
1516
+ throw validateError;
1517
+ }
1518
+ }
1519
+ const key = path.fullPath;
1520
+ const ttlToUse = TTL;
1521
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "DecisionTable", VERSION, RepresentationType, equals);
1522
+ return createLink(key);
1523
+ };
1524
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1525
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1526
+ const rootKey = fullPathFactory();
1527
+ rootKeySet.set(rootKey, {
1528
+ namespace: keyPrefix,
1529
+ representationName: RepresentationType,
1530
+ mergeable: false
1531
+ });
1532
+ }
1533
+
1534
+ function select(luvio, params) {
1535
+ return select$1();
1536
+ }
1537
+ function keyBuilder$1(luvio, params) {
1538
+ return keyPrefix + '::DecisionTableRowsListOutputRepresentation:(' + 'errorFile:' + params.queryParams.errorFile + ',' + 'file:' + params.queryParams.file + ',' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
1539
+ }
1540
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1541
+ getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
1542
+ }
1543
+ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
1544
+ const { body } = response;
1545
+ const key = keyBuilder$1(luvio, resourceParams);
1546
+ luvio.storeIngest(key, ingest, body);
1547
+ const snapshot = luvio.storeLookup({
1548
+ recordId: key,
1549
+ node: select(),
1550
+ variables: {},
1551
+ }, snapshotRefresh);
1552
+ if (process.env.NODE_ENV !== 'production') {
1553
+ if (snapshot.state !== 'Fulfilled') {
1554
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1555
+ }
1556
+ }
1557
+ deepFreeze(snapshot.data);
1558
+ return snapshot;
1559
+ }
1560
+ function ingestError(luvio, params, error, snapshotRefresh) {
1561
+ const key = keyBuilder$1(luvio, params);
1562
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1563
+ const storeMetadataParams = {
1564
+ ttl: TTL,
1565
+ namespace: keyPrefix,
1566
+ version: VERSION,
1567
+ representationName: RepresentationType
1568
+ };
1569
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1570
+ return errorSnapshot;
1571
+ }
1572
+ function createResourceRequest(config) {
1573
+ const headers = {};
1574
+ return {
1575
+ baseUri: '/services/data/v62.0',
1576
+ basePath: '/connect/business-rules/decision-table/' + config.urlParams.decisionTableId + '/data',
1577
+ method: 'get',
1578
+ body: null,
1579
+ urlParams: config.urlParams,
1580
+ queryParams: config.queryParams,
1581
+ headers,
1582
+ priority: 'normal',
1381
1583
  };
1584
+ }
1585
+
1586
+ const adapterName = 'getDecisionTableRows';
1587
+ const getDecisionTableRows_ConfigPropertyMetadata = [
1588
+ generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1589
+ generateParamConfigMetadata('errorFile', false, 1 /* QueryParameter */, 1 /* Boolean */),
1590
+ generateParamConfigMetadata('file', false, 1 /* QueryParameter */, 1 /* Boolean */),
1591
+ generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
1592
+ generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1593
+ generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1594
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */),
1595
+ ];
1596
+ const getDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getDecisionTableRows_ConfigPropertyMetadata);
1597
+ const createResourceParams = /*#__PURE__*/ createResourceParams$5(getDecisionTableRows_ConfigPropertyMetadata);
1598
+ function keyBuilder(luvio, config) {
1599
+ const resourceParams = createResourceParams(config);
1600
+ return keyBuilder$1(luvio, resourceParams);
1601
+ }
1602
+ function typeCheckConfig(untrustedConfig) {
1603
+ const config = {};
1604
+ typeCheckConfig$5(untrustedConfig, config, getDecisionTableRows_ConfigPropertyMetadata);
1605
+ return config;
1606
+ }
1607
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1608
+ if (!untrustedIsObject(untrustedConfig)) {
1609
+ return null;
1610
+ }
1611
+ if (process.env.NODE_ENV !== 'production') {
1612
+ validateConfig(untrustedConfig, configPropertyNames);
1613
+ }
1614
+ const config = typeCheckConfig(untrustedConfig);
1615
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1616
+ return null;
1617
+ }
1618
+ return config;
1619
+ }
1620
+ function adapterFragment(luvio, config) {
1621
+ createResourceParams(config);
1622
+ return select();
1623
+ }
1624
+ function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1625
+ const snapshot = ingestSuccess(luvio, resourceParams, response, {
1626
+ config,
1627
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1628
+ });
1629
+ return luvio.storeBroadcast().then(() => snapshot);
1630
+ }
1631
+ function onFetchResponseError(luvio, config, resourceParams, response) {
1632
+ const snapshot = ingestError(luvio, resourceParams, response, {
1633
+ config,
1634
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1635
+ });
1636
+ return luvio.storeBroadcast().then(() => snapshot);
1637
+ }
1638
+ function buildNetworkSnapshot(luvio, config, options) {
1639
+ const resourceParams = createResourceParams(config);
1640
+ const request = createResourceRequest(resourceParams);
1641
+ return luvio.dispatchResourceRequest(request, options)
1642
+ .then((response) => {
1643
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1644
+ const cache = new StoreKeyMap();
1645
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
1646
+ return cache;
1647
+ });
1648
+ }, (response) => {
1649
+ return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
1650
+ });
1651
+ }
1652
+ function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1653
+ return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
1654
+ }
1655
+ function buildCachedSnapshotCachePolicy(context, storeLookup) {
1656
+ const { luvio, config } = context;
1657
+ const selector = {
1658
+ recordId: keyBuilder(luvio, config),
1659
+ node: adapterFragment(luvio, config),
1660
+ variables: {},
1661
+ };
1662
+ const cacheSnapshot = storeLookup(selector, {
1663
+ config,
1664
+ resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
1665
+ });
1666
+ return cacheSnapshot;
1667
+ }
1668
+ const getDecisionTableRowsAdapterFactory = (luvio) => function DecisionTable__getDecisionTableRows(untrustedConfig, requestContext) {
1669
+ const config = validateAdapterConfig(untrustedConfig, getDecisionTableRows_ConfigPropertyNames);
1670
+ // Invalid or incomplete config
1671
+ if (config === null) {
1672
+ return null;
1673
+ }
1674
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
1675
+ buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1382
1676
  };
1383
1677
 
1384
- export { getDecisionTableAdapterFactory, getDecisionTableTemplateAdapterFactory, getDecisionTableTemplateListAdapterFactory, postDecisionTableRowsAdapterFactory };
1678
+ export { getDecisionTableAdapterFactory, getDecisionTableRowsAdapterFactory, getDecisionTableTemplateAdapterFactory, getDecisionTableTemplateListAdapterFactory, postDecisionTableRowsAdapterFactory };