@salesforce/lds-adapters-industries-decisiontable 1.393.0 → 1.394.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$5, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$8, StoreKeyMap, createResourceParams as createResourceParams$8 } 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$e(obj, path = 'DecisionTableParameterOutputRepresentation') {
83
+ function validate$f(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$e(obj, path = 'DecisionTableParameterOutputRepresentation') {
180
180
  return v_error === undefined ? null : v_error;
181
181
  }
182
182
 
183
- function validate$d(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation') {
183
+ function validate$e(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$d(obj, path = 'DecisionTableSourceCriteriaOutputRepresentation
224
224
  return v_error === undefined ? null : v_error;
225
225
  }
226
226
 
227
- function validate$c(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
227
+ function validate$d(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$c(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$e(obj_parameters_item, path_parameters_item);
289
+ const referencepath_parameters_itemValidationError = validate$f(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$c(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$d(obj_sourceCriteria_item, path_sourceCriteria_item);
311
+ const referencepath_sourceCriteria_itemValidationError = validate$e(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$c(obj, path = 'DecisionTableDefinitionOutputRepresentation') {
354
354
  return v_error === undefined ? null : v_error;
355
355
  }
356
356
 
357
- const TTL$5 = 1000;
358
- const VERSION$5 = "21435364536c593ed8b8972af7d154d5";
359
- function validate$b(obj, path = 'DecisionTableOutputRepresentation') {
357
+ const TTL$6 = 1000;
358
+ const VERSION$6 = "21435364536c593ed8b8972af7d154d5";
359
+ function validate$c(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$b(obj, path = 'DecisionTableOutputRepresentation') {
370
370
  }
371
371
  const obj_decisionTable = obj.decisionTable;
372
372
  const path_decisionTable = path + '.decisionTable';
373
- const referencepath_decisionTableValidationError = validate$c(obj_decisionTable, path_decisionTable);
373
+ const referencepath_decisionTableValidationError = validate$d(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$b(obj, path = 'DecisionTableOutputRepresentation') {
393
393
  })();
394
394
  return v_error === undefined ? null : v_error;
395
395
  }
396
- const RepresentationType$5 = 'DecisionTableOutputRepresentation';
397
- function normalize$5(input, existing, path, luvio, store, timestamp) {
396
+ const RepresentationType$6 = 'DecisionTableOutputRepresentation';
397
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
398
398
  return input;
399
399
  }
400
- const select$c = function DecisionTableOutputRepresentationSelect() {
400
+ const select$e = function DecisionTableOutputRepresentationSelect() {
401
401
  return {
402
402
  kind: 'Fragment',
403
- version: VERSION$5,
403
+ version: VERSION$6,
404
404
  private: [],
405
405
  opaque: true
406
406
  };
407
407
  };
408
- function equals$5(existing, incoming) {
408
+ function equals$6(existing, incoming) {
409
409
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
410
410
  return false;
411
411
  }
412
412
  return true;
413
413
  }
414
- const ingest$5 = function DecisionTableOutputRepresentationIngest(input, path, luvio, store, timestamp) {
414
+ const ingest$6 = function DecisionTableOutputRepresentationIngest(input, path, luvio, store, timestamp) {
415
415
  if (process.env.NODE_ENV !== 'production') {
416
- const validateError = validate$b(input);
416
+ const validateError = validate$c(input);
417
417
  if (validateError !== null) {
418
418
  throw validateError;
419
419
  }
420
420
  }
421
421
  const key = path.fullPath;
422
- const ttlToUse = TTL$5;
423
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "DecisionTable", VERSION$5, RepresentationType$5, equals$5);
422
+ const ttlToUse = TTL$6;
423
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "DecisionTable", VERSION$6, RepresentationType$6, equals$6);
424
424
  return createLink(key);
425
425
  };
426
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
426
+ function getTypeCacheKeys$6(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$5,
431
+ representationName: RepresentationType$6,
432
432
  mergeable: false
433
433
  });
434
434
  }
435
435
 
436
- function select$b(luvio, params) {
437
- return select$c();
436
+ function select$d(luvio, params) {
437
+ return select$e();
438
438
  }
439
- function keyBuilder$b(luvio, params) {
439
+ function keyBuilder$c(luvio, params) {
440
440
  return keyPrefix + '::DecisionTableOutputRepresentation:(' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
441
441
  }
442
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
443
- getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
442
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
443
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
444
444
  }
445
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
445
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
446
446
  const { body } = response;
447
- const key = keyBuilder$b(luvio, resourceParams);
448
- luvio.storeIngest(key, ingest$5, body);
447
+ const key = keyBuilder$c(luvio, resourceParams);
448
+ luvio.storeIngest(key, ingest$6, body);
449
449
  const snapshot = luvio.storeLookup({
450
450
  recordId: key,
451
- node: select$b(),
451
+ node: select$d(),
452
452
  variables: {},
453
453
  }, snapshotRefresh);
454
454
  if (process.env.NODE_ENV !== 'production') {
@@ -460,18 +460,18 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
460
460
  return snapshot;
461
461
  }
462
462
  function ingestError$4(luvio, params, error, snapshotRefresh) {
463
- const key = keyBuilder$b(luvio, params);
463
+ const key = keyBuilder$c(luvio, params);
464
464
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
465
465
  const storeMetadataParams = {
466
- ttl: TTL$5,
466
+ ttl: TTL$6,
467
467
  namespace: keyPrefix,
468
- version: VERSION$5,
469
- representationName: RepresentationType$5
468
+ version: VERSION$6,
469
+ representationName: RepresentationType$6
470
470
  };
471
471
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
472
472
  return errorSnapshot;
473
473
  }
474
- function createResourceRequest$6(config) {
474
+ function createResourceRequest$7(config) {
475
475
  const headers = {};
476
476
  return {
477
477
  baseUri: '/services/data/v66.0',
@@ -485,60 +485,60 @@ function createResourceRequest$6(config) {
485
485
  };
486
486
  }
487
487
 
488
- const adapterName$6 = 'getDecisionTable';
488
+ const adapterName$7 = 'getDecisionTable';
489
489
  const getDecisionTable_ConfigPropertyMetadata = [
490
490
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
491
491
  ];
492
- const getDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDecisionTable_ConfigPropertyMetadata);
493
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getDecisionTable_ConfigPropertyMetadata);
494
- function keyBuilder$a(luvio, config) {
495
- const resourceParams = createResourceParams$6(config);
496
- return keyBuilder$b(luvio, resourceParams);
492
+ const getDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getDecisionTable_ConfigPropertyMetadata);
493
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(getDecisionTable_ConfigPropertyMetadata);
494
+ function keyBuilder$b(luvio, config) {
495
+ const resourceParams = createResourceParams$7(config);
496
+ return keyBuilder$c(luvio, resourceParams);
497
497
  }
498
- function typeCheckConfig$6(untrustedConfig) {
498
+ function typeCheckConfig$7(untrustedConfig) {
499
499
  const config = {};
500
- typeCheckConfig$7(untrustedConfig, config, getDecisionTable_ConfigPropertyMetadata);
500
+ typeCheckConfig$8(untrustedConfig, config, getDecisionTable_ConfigPropertyMetadata);
501
501
  return config;
502
502
  }
503
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
503
+ function validateAdapterConfig$7(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$6(untrustedConfig);
510
+ const config = typeCheckConfig$7(untrustedConfig);
511
511
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
512
512
  return null;
513
513
  }
514
514
  return config;
515
515
  }
516
516
  function adapterFragment$4(luvio, config) {
517
- createResourceParams$6(config);
518
- return select$b();
517
+ createResourceParams$7(config);
518
+ return select$d();
519
519
  }
520
520
  function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
521
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
521
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
522
522
  config,
523
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
523
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
524
524
  });
525
525
  return luvio.storeBroadcast().then(() => snapshot);
526
526
  }
527
527
  function onFetchResponseError$4(luvio, config, resourceParams, response) {
528
528
  const snapshot = ingestError$4(luvio, resourceParams, response, {
529
529
  config,
530
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
530
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
531
531
  });
532
532
  return luvio.storeBroadcast().then(() => snapshot);
533
533
  }
534
- function buildNetworkSnapshot$6(luvio, config, options) {
535
- const resourceParams = createResourceParams$6(config);
536
- const request = createResourceRequest$6(resourceParams);
534
+ function buildNetworkSnapshot$7(luvio, config, options) {
535
+ const resourceParams = createResourceParams$7(config);
536
+ const request = createResourceRequest$7(resourceParams);
537
537
  return luvio.dispatchResourceRequest(request, options)
538
538
  .then((response) => {
539
539
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
540
540
  const cache = new StoreKeyMap();
541
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
541
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
542
542
  return cache;
543
543
  });
544
544
  }, (response) => {
@@ -546,23 +546,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
546
546
  });
547
547
  }
548
548
  function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
549
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
549
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
550
550
  }
551
551
  function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
552
552
  const { luvio, config } = context;
553
553
  const selector = {
554
- recordId: keyBuilder$a(luvio, config),
554
+ recordId: keyBuilder$b(luvio, config),
555
555
  node: adapterFragment$4(luvio, config),
556
556
  variables: {},
557
557
  };
558
558
  const cacheSnapshot = storeLookup(selector, {
559
559
  config,
560
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
560
+ resolve: () => buildNetworkSnapshot$7(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$6(untrustedConfig, getDecisionTable_ConfigPropertyNames);
565
+ const config = validateAdapterConfig$7(untrustedConfig, getDecisionTable_ConfigPropertyNames);
566
566
  // Invalid or incomplete config
567
567
  if (config === null) {
568
568
  return null;
@@ -571,7 +571,7 @@ const getDecisionTableAdapterFactory = (luvio) => function DecisionTable__getDec
571
571
  buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
572
572
  };
573
573
 
574
- function validate$a(obj, path = 'DecisionTableTemplateOutputRepresentation') {
574
+ function validate$b(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$a(obj, path = 'DecisionTableTemplateOutputRepresentation') {
601
601
  return v_error === undefined ? null : v_error;
602
602
  }
603
603
 
604
- function validate$9(obj, path = 'ErrorParametersOutputRepresentation') {
604
+ function validate$a(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$9(obj, path = 'ErrorParametersOutputRepresentation') {
624
624
  return v_error === undefined ? null : v_error;
625
625
  }
626
626
 
627
- function validate$8(obj, path = 'ErrorTargetsOutputRepresentation') {
627
+ function validate$9(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$8(obj, path = 'ErrorTargetsOutputRepresentation') {
647
647
  return v_error === undefined ? null : v_error;
648
648
  }
649
649
 
650
- function validate$7(obj, path = 'ErrorOutputRepresentation') {
650
+ function validate$8(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$7(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$9(obj_parameters_item, path_parameters_item);
685
+ const referencepath_parameters_itemValidationError = validate$a(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$7(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$8(obj_targets_item, path_targets_item);
702
+ const referencepath_targets_itemValidationError = validate$9(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$7(obj, path = 'ErrorOutputRepresentation') {
711
711
  return v_error === undefined ? null : v_error;
712
712
  }
713
713
 
714
- const TTL$4 = 1000;
715
- const VERSION$4 = "a2891bd122ab9f728d5937bf70b9f600";
716
- function validate$6(obj, path = 'DecisionTableTemplatesListOutputRepresentation') {
714
+ const TTL$5 = 1000;
715
+ const VERSION$5 = "a2891bd122ab9f728d5937bf70b9f600";
716
+ function validate$7(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$6(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$a(obj_decisionTableTemplates_item, path_decisionTableTemplates_item);
730
+ const referencepath_decisionTableTemplates_itemValidationError = validate$b(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$6(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$7(obj_errors_item, path_errors_item);
747
+ const referencepath_errors_itemValidationError = validate$8(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$6(obj, path = 'DecisionTableTemplatesListOutputRepresentation'
755
755
  })();
756
756
  return v_error === undefined ? null : v_error;
757
757
  }
758
- const RepresentationType$4 = 'DecisionTableTemplatesListOutputRepresentation';
759
- function normalize$4(input, existing, path, luvio, store, timestamp) {
758
+ const RepresentationType$5 = 'DecisionTableTemplatesListOutputRepresentation';
759
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
760
760
  return input;
761
761
  }
762
- const select$a = function DecisionTableTemplatesListOutputRepresentationSelect() {
762
+ const select$c = function DecisionTableTemplatesListOutputRepresentationSelect() {
763
763
  return {
764
764
  kind: 'Fragment',
765
- version: VERSION$4,
765
+ version: VERSION$5,
766
766
  private: [],
767
767
  opaque: true
768
768
  };
769
769
  };
770
- function equals$4(existing, incoming) {
770
+ function equals$5(existing, incoming) {
771
771
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
772
772
  return false;
773
773
  }
774
774
  return true;
775
775
  }
776
- const ingest$4 = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
776
+ const ingest$5 = function DecisionTableTemplatesListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
777
777
  if (process.env.NODE_ENV !== 'production') {
778
- const validateError = validate$6(input);
778
+ const validateError = validate$7(input);
779
779
  if (validateError !== null) {
780
780
  throw validateError;
781
781
  }
782
782
  }
783
783
  const key = path.fullPath;
784
- const ttlToUse = TTL$4;
785
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "DecisionTable", VERSION$4, RepresentationType$4, equals$4);
784
+ const ttlToUse = TTL$5;
785
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "DecisionTable", VERSION$5, RepresentationType$5, equals$5);
786
786
  return createLink(key);
787
787
  };
788
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
788
+ function getTypeCacheKeys$5(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$4,
793
+ representationName: RepresentationType$5,
794
794
  mergeable: false
795
795
  });
796
796
  }
797
797
 
798
- function select$9(luvio, params) {
799
- return select$a();
798
+ function select$b(luvio, params) {
799
+ return select$c();
800
800
  }
801
- function keyBuilder$9(luvio, params) {
801
+ function keyBuilder$a(luvio, params) {
802
802
  return keyPrefix + '::DecisionTableTemplatesListOutputRepresentation:(' + 'usageType:' + params.queryParams.usageType + ')';
803
803
  }
804
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
805
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
804
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
805
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
806
806
  }
807
- function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
807
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
808
808
  const { body } = response;
809
- const key = keyBuilder$9(luvio, resourceParams);
810
- luvio.storeIngest(key, ingest$4, body);
809
+ const key = keyBuilder$a(luvio, resourceParams);
810
+ luvio.storeIngest(key, ingest$5, body);
811
811
  const snapshot = luvio.storeLookup({
812
812
  recordId: key,
813
- node: select$9(),
813
+ node: select$b(),
814
814
  variables: {},
815
815
  }, snapshotRefresh);
816
816
  if (process.env.NODE_ENV !== 'production') {
@@ -822,18 +822,18 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
822
822
  return snapshot;
823
823
  }
824
824
  function ingestError$3(luvio, params, error, snapshotRefresh) {
825
- const key = keyBuilder$9(luvio, params);
825
+ const key = keyBuilder$a(luvio, params);
826
826
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
827
827
  const storeMetadataParams = {
828
- ttl: TTL$4,
828
+ ttl: TTL$5,
829
829
  namespace: keyPrefix,
830
- version: VERSION$4,
831
- representationName: RepresentationType$4
830
+ version: VERSION$5,
831
+ representationName: RepresentationType$5
832
832
  };
833
833
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
834
834
  return errorSnapshot;
835
835
  }
836
- function createResourceRequest$5(config) {
836
+ function createResourceRequest$6(config) {
837
837
  const headers = {};
838
838
  return {
839
839
  baseUri: '/services/data/v66.0',
@@ -847,60 +847,60 @@ function createResourceRequest$5(config) {
847
847
  };
848
848
  }
849
849
 
850
- const adapterName$5 = 'getDecisionTableTemplateList';
850
+ const adapterName$6 = 'getDecisionTableTemplateList';
851
851
  const getDecisionTableTemplateList_ConfigPropertyMetadata = [
852
852
  generateParamConfigMetadata('usageType', false, 1 /* QueryParameter */, 0 /* String */),
853
853
  ];
854
- const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDecisionTableTemplateList_ConfigPropertyMetadata);
855
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getDecisionTableTemplateList_ConfigPropertyMetadata);
856
- function keyBuilder$8(luvio, config) {
857
- const resourceParams = createResourceParams$5(config);
858
- return keyBuilder$9(luvio, resourceParams);
854
+ const getDecisionTableTemplateList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getDecisionTableTemplateList_ConfigPropertyMetadata);
855
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(getDecisionTableTemplateList_ConfigPropertyMetadata);
856
+ function keyBuilder$9(luvio, config) {
857
+ const resourceParams = createResourceParams$6(config);
858
+ return keyBuilder$a(luvio, resourceParams);
859
859
  }
860
- function typeCheckConfig$5(untrustedConfig) {
860
+ function typeCheckConfig$6(untrustedConfig) {
861
861
  const config = {};
862
- typeCheckConfig$7(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
862
+ typeCheckConfig$8(untrustedConfig, config, getDecisionTableTemplateList_ConfigPropertyMetadata);
863
863
  return config;
864
864
  }
865
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
865
+ function validateAdapterConfig$6(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$5(untrustedConfig);
872
+ const config = typeCheckConfig$6(untrustedConfig);
873
873
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
874
874
  return null;
875
875
  }
876
876
  return config;
877
877
  }
878
878
  function adapterFragment$3(luvio, config) {
879
- createResourceParams$5(config);
880
- return select$9();
879
+ createResourceParams$6(config);
880
+ return select$b();
881
881
  }
882
882
  function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
883
- const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
883
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
884
884
  config,
885
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
885
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
886
886
  });
887
887
  return luvio.storeBroadcast().then(() => snapshot);
888
888
  }
889
889
  function onFetchResponseError$3(luvio, config, resourceParams, response) {
890
890
  const snapshot = ingestError$3(luvio, resourceParams, response, {
891
891
  config,
892
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
892
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
893
893
  });
894
894
  return luvio.storeBroadcast().then(() => snapshot);
895
895
  }
896
- function buildNetworkSnapshot$5(luvio, config, options) {
897
- const resourceParams = createResourceParams$5(config);
898
- const request = createResourceRequest$5(resourceParams);
896
+ function buildNetworkSnapshot$6(luvio, config, options) {
897
+ const resourceParams = createResourceParams$6(config);
898
+ const request = createResourceRequest$6(resourceParams);
899
899
  return luvio.dispatchResourceRequest(request, options)
900
900
  .then((response) => {
901
901
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
902
902
  const cache = new StoreKeyMap();
903
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
903
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
904
904
  return cache;
905
905
  });
906
906
  }, (response) => {
@@ -908,23 +908,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
908
908
  });
909
909
  }
910
910
  function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
911
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
911
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
912
912
  }
913
913
  function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
914
914
  const { luvio, config } = context;
915
915
  const selector = {
916
- recordId: keyBuilder$8(luvio, config),
916
+ recordId: keyBuilder$9(luvio, config),
917
917
  node: adapterFragment$3(luvio, config),
918
918
  variables: {},
919
919
  };
920
920
  const cacheSnapshot = storeLookup(selector, {
921
921
  config,
922
- resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
922
+ resolve: () => buildNetworkSnapshot$6(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$5(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
927
+ const config = validateAdapterConfig$6(untrustedConfig, getDecisionTableTemplateList_ConfigPropertyNames);
928
928
  // Invalid or incomplete config
929
929
  if (config === null) {
930
930
  return null;
@@ -933,9 +933,9 @@ const getDecisionTableTemplateListAdapterFactory = (luvio) => function DecisionT
933
933
  buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
934
934
  };
935
935
 
936
- const TTL$3 = 1000;
937
- const VERSION$3 = "9a106f486843ccdb3e85594fb33ef97f";
938
- function validate$5(obj, path = 'DecisionTableTemplateDefinitionOutputRepresentation') {
936
+ const TTL$4 = 1000;
937
+ const VERSION$4 = "9a106f486843ccdb3e85594fb33ef97f";
938
+ function validate$6(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$5(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$c(obj_decisionTableTemplate, path_decisionTableTemplate);
946
+ const referencepath_decisionTableTemplateValidationError = validate$d(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$5(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$7(obj_errors_item, path_errors_item);
962
+ const referencepath_errors_itemValidationError = validate$8(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$5(obj, path = 'DecisionTableTemplateDefinitionOutputRepresenta
970
970
  })();
971
971
  return v_error === undefined ? null : v_error;
972
972
  }
973
- const RepresentationType$3 = 'DecisionTableTemplateDefinitionOutputRepresentation';
974
- function normalize$3(input, existing, path, luvio, store, timestamp) {
973
+ const RepresentationType$4 = 'DecisionTableTemplateDefinitionOutputRepresentation';
974
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
975
975
  return input;
976
976
  }
977
- const select$8 = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
977
+ const select$a = function DecisionTableTemplateDefinitionOutputRepresentationSelect() {
978
978
  return {
979
979
  kind: 'Fragment',
980
- version: VERSION$3,
980
+ version: VERSION$4,
981
981
  private: [],
982
982
  opaque: true
983
983
  };
984
984
  };
985
- function equals$3(existing, incoming) {
985
+ function equals$4(existing, incoming) {
986
986
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
987
987
  return false;
988
988
  }
989
989
  return true;
990
990
  }
991
- const ingest$3 = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
991
+ const ingest$4 = function DecisionTableTemplateDefinitionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
992
992
  if (process.env.NODE_ENV !== 'production') {
993
- const validateError = validate$5(input);
993
+ const validateError = validate$6(input);
994
994
  if (validateError !== null) {
995
995
  throw validateError;
996
996
  }
997
997
  }
998
998
  const key = path.fullPath;
999
- const ttlToUse = TTL$3;
1000
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "DecisionTable", VERSION$3, RepresentationType$3, equals$3);
999
+ const ttlToUse = TTL$4;
1000
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "DecisionTable", VERSION$4, RepresentationType$4, equals$4);
1001
1001
  return createLink(key);
1002
1002
  };
1003
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1003
+ function getTypeCacheKeys$4(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$3,
1008
+ representationName: RepresentationType$4,
1009
1009
  mergeable: false
1010
1010
  });
1011
1011
  }
1012
1012
 
1013
- function select$7(luvio, params) {
1014
- return select$8();
1013
+ function select$9(luvio, params) {
1014
+ return select$a();
1015
1015
  }
1016
- function keyBuilder$7(luvio, params) {
1016
+ function keyBuilder$8(luvio, params) {
1017
1017
  return keyPrefix + '::DecisionTableTemplateDefinitionOutputRepresentation:(' + 'templateName:' + params.urlParams.templateName + ')';
1018
1018
  }
1019
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1020
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
1019
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1020
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
1021
1021
  }
1022
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1022
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
1023
1023
  const { body } = response;
1024
- const key = keyBuilder$7(luvio, resourceParams);
1025
- luvio.storeIngest(key, ingest$3, body);
1024
+ const key = keyBuilder$8(luvio, resourceParams);
1025
+ luvio.storeIngest(key, ingest$4, body);
1026
1026
  const snapshot = luvio.storeLookup({
1027
1027
  recordId: key,
1028
- node: select$7(),
1028
+ node: select$9(),
1029
1029
  variables: {},
1030
1030
  }, snapshotRefresh);
1031
1031
  if (process.env.NODE_ENV !== 'production') {
@@ -1037,18 +1037,18 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
1037
1037
  return snapshot;
1038
1038
  }
1039
1039
  function ingestError$2(luvio, params, error, snapshotRefresh) {
1040
- const key = keyBuilder$7(luvio, params);
1040
+ const key = keyBuilder$8(luvio, params);
1041
1041
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1042
1042
  const storeMetadataParams = {
1043
- ttl: TTL$3,
1043
+ ttl: TTL$4,
1044
1044
  namespace: keyPrefix,
1045
- version: VERSION$3,
1046
- representationName: RepresentationType$3
1045
+ version: VERSION$4,
1046
+ representationName: RepresentationType$4
1047
1047
  };
1048
1048
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1049
1049
  return errorSnapshot;
1050
1050
  }
1051
- function createResourceRequest$4(config) {
1051
+ function createResourceRequest$5(config) {
1052
1052
  const headers = {};
1053
1053
  return {
1054
1054
  baseUri: '/services/data/v66.0',
@@ -1062,60 +1062,60 @@ function createResourceRequest$4(config) {
1062
1062
  };
1063
1063
  }
1064
1064
 
1065
- const adapterName$4 = 'getDecisionTableTemplate';
1065
+ const adapterName$5 = 'getDecisionTableTemplate';
1066
1066
  const getDecisionTableTemplate_ConfigPropertyMetadata = [
1067
1067
  generateParamConfigMetadata('templateName', true, 0 /* UrlParameter */, 0 /* String */),
1068
1068
  ];
1069
- const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getDecisionTableTemplate_ConfigPropertyMetadata);
1070
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getDecisionTableTemplate_ConfigPropertyMetadata);
1071
- function keyBuilder$6(luvio, config) {
1072
- const resourceParams = createResourceParams$4(config);
1073
- return keyBuilder$7(luvio, resourceParams);
1069
+ const getDecisionTableTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getDecisionTableTemplate_ConfigPropertyMetadata);
1070
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getDecisionTableTemplate_ConfigPropertyMetadata);
1071
+ function keyBuilder$7(luvio, config) {
1072
+ const resourceParams = createResourceParams$5(config);
1073
+ return keyBuilder$8(luvio, resourceParams);
1074
1074
  }
1075
- function typeCheckConfig$4(untrustedConfig) {
1075
+ function typeCheckConfig$5(untrustedConfig) {
1076
1076
  const config = {};
1077
- typeCheckConfig$7(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
1077
+ typeCheckConfig$8(untrustedConfig, config, getDecisionTableTemplate_ConfigPropertyMetadata);
1078
1078
  return config;
1079
1079
  }
1080
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1080
+ function validateAdapterConfig$5(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$4(untrustedConfig);
1087
+ const config = typeCheckConfig$5(untrustedConfig);
1088
1088
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1089
1089
  return null;
1090
1090
  }
1091
1091
  return config;
1092
1092
  }
1093
1093
  function adapterFragment$2(luvio, config) {
1094
- createResourceParams$4(config);
1095
- return select$7();
1094
+ createResourceParams$5(config);
1095
+ return select$9();
1096
1096
  }
1097
1097
  function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
1098
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
1098
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
1099
1099
  config,
1100
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1100
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1101
1101
  });
1102
1102
  return luvio.storeBroadcast().then(() => snapshot);
1103
1103
  }
1104
1104
  function onFetchResponseError$2(luvio, config, resourceParams, response) {
1105
1105
  const snapshot = ingestError$2(luvio, resourceParams, response, {
1106
1106
  config,
1107
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1107
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
1108
1108
  });
1109
1109
  return luvio.storeBroadcast().then(() => snapshot);
1110
1110
  }
1111
- function buildNetworkSnapshot$4(luvio, config, options) {
1112
- const resourceParams = createResourceParams$4(config);
1113
- const request = createResourceRequest$4(resourceParams);
1111
+ function buildNetworkSnapshot$5(luvio, config, options) {
1112
+ const resourceParams = createResourceParams$5(config);
1113
+ const request = createResourceRequest$5(resourceParams);
1114
1114
  return luvio.dispatchResourceRequest(request, options)
1115
1115
  .then((response) => {
1116
1116
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
1117
1117
  const cache = new StoreKeyMap();
1118
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1118
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1119
1119
  return cache;
1120
1120
  });
1121
1121
  }, (response) => {
@@ -1123,23 +1123,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1123
1123
  });
1124
1124
  }
1125
1125
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
1126
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
1126
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
1127
1127
  }
1128
1128
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
1129
1129
  const { luvio, config } = context;
1130
1130
  const selector = {
1131
- recordId: keyBuilder$6(luvio, config),
1131
+ recordId: keyBuilder$7(luvio, config),
1132
1132
  node: adapterFragment$2(luvio, config),
1133
1133
  variables: {},
1134
1134
  };
1135
1135
  const cacheSnapshot = storeLookup(selector, {
1136
1136
  config,
1137
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
1137
+ resolve: () => buildNetworkSnapshot$5(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$4(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
1142
+ const config = validateAdapterConfig$5(untrustedConfig, getDecisionTableTemplate_ConfigPropertyNames);
1143
1143
  // Invalid or incomplete config
1144
1144
  if (config === null) {
1145
1145
  return null;
@@ -1148,7 +1148,7 @@ const getDecisionTableTemplateAdapterFactory = (luvio) => function DecisionTable
1148
1148
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
1149
1149
  };
1150
1150
 
1151
- function validate$4(obj, path = 'DecisionTableRowInputRepresentation') {
1151
+ function validate$5(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 + '")');
@@ -1181,9 +1181,9 @@ function validate$4(obj, path = 'DecisionTableRowInputRepresentation') {
1181
1181
  return v_error === undefined ? null : v_error;
1182
1182
  }
1183
1183
 
1184
- const TTL$2 = 1000;
1185
- const VERSION$2 = "58833f5bd113747199f0032242bf21b6";
1186
- function validate$3(obj, path = 'DecisionTableDataOutputRepresentation') {
1184
+ const TTL$3 = 1000;
1185
+ const VERSION$3 = "58833f5bd113747199f0032242bf21b6";
1186
+ function validate$4(obj, path = 'DecisionTableDataOutputRepresentation') {
1187
1187
  const v_error = (() => {
1188
1188
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1189
1189
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1210,68 +1210,68 @@ function validate$3(obj, path = 'DecisionTableDataOutputRepresentation') {
1210
1210
  })();
1211
1211
  return v_error === undefined ? null : v_error;
1212
1212
  }
1213
- const RepresentationType$2 = 'DecisionTableDataOutputRepresentation';
1214
- function keyBuilder$5(luvio, config) {
1215
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.errorFileId;
1213
+ const RepresentationType$3 = 'DecisionTableDataOutputRepresentation';
1214
+ function keyBuilder$6(luvio, config) {
1215
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.errorFileId;
1216
1216
  }
1217
- function keyBuilderFromType$1(luvio, object) {
1217
+ function keyBuilderFromType$2(luvio, object) {
1218
1218
  const keyParams = {
1219
1219
  errorFileId: object.errorFileId
1220
1220
  };
1221
- return keyBuilder$5(luvio, keyParams);
1221
+ return keyBuilder$6(luvio, keyParams);
1222
1222
  }
1223
- function normalize$2(input, existing, path, luvio, store, timestamp) {
1223
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
1224
1224
  return input;
1225
1225
  }
1226
- const select$6 = function DecisionTableDataOutputRepresentationSelect() {
1226
+ const select$8 = function DecisionTableDataOutputRepresentationSelect() {
1227
1227
  return {
1228
1228
  kind: 'Fragment',
1229
- version: VERSION$2,
1229
+ version: VERSION$3,
1230
1230
  private: [],
1231
1231
  opaque: true
1232
1232
  };
1233
1233
  };
1234
- function equals$2(existing, incoming) {
1234
+ function equals$3(existing, incoming) {
1235
1235
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1236
1236
  return false;
1237
1237
  }
1238
1238
  return true;
1239
1239
  }
1240
- const ingest$2 = function DecisionTableDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1240
+ const ingest$3 = function DecisionTableDataOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1241
1241
  if (process.env.NODE_ENV !== 'production') {
1242
- const validateError = validate$3(input);
1242
+ const validateError = validate$4(input);
1243
1243
  if (validateError !== null) {
1244
1244
  throw validateError;
1245
1245
  }
1246
1246
  }
1247
- const key = keyBuilderFromType$1(luvio, input);
1248
- const ttlToUse = TTL$2;
1249
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "DecisionTable", VERSION$2, RepresentationType$2, equals$2);
1247
+ const key = keyBuilderFromType$2(luvio, input);
1248
+ const ttlToUse = TTL$3;
1249
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "DecisionTable", VERSION$3, RepresentationType$3, equals$3);
1250
1250
  return createLink(key);
1251
1251
  };
1252
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1252
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
1253
1253
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1254
- const rootKey = keyBuilderFromType$1(luvio, input);
1254
+ const rootKey = keyBuilderFromType$2(luvio, input);
1255
1255
  rootKeySet.set(rootKey, {
1256
1256
  namespace: keyPrefix,
1257
- representationName: RepresentationType$2,
1257
+ representationName: RepresentationType$3,
1258
1258
  mergeable: false
1259
1259
  });
1260
1260
  }
1261
1261
 
1262
- function select$5(luvio, params) {
1263
- return select$6();
1262
+ function select$7(luvio, params) {
1263
+ return select$8();
1264
1264
  }
1265
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1266
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
1265
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1266
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
1267
1267
  }
1268
- function ingestSuccess$3(luvio, resourceParams, response) {
1268
+ function ingestSuccess$4(luvio, resourceParams, response) {
1269
1269
  const { body } = response;
1270
- const key = keyBuilderFromType$1(luvio, body);
1271
- luvio.storeIngest(key, ingest$2, body);
1270
+ const key = keyBuilderFromType$2(luvio, body);
1271
+ luvio.storeIngest(key, ingest$3, body);
1272
1272
  const snapshot = luvio.storeLookup({
1273
1273
  recordId: key,
1274
- node: select$5(),
1274
+ node: select$7(),
1275
1275
  variables: {},
1276
1276
  });
1277
1277
  if (process.env.NODE_ENV !== 'production') {
@@ -1282,7 +1282,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
1282
1282
  deepFreeze(snapshot.data);
1283
1283
  return snapshot;
1284
1284
  }
1285
- function createResourceRequest$3(config) {
1285
+ function createResourceRequest$4(config) {
1286
1286
  const headers = {};
1287
1287
  return {
1288
1288
  baseUri: '/services/data/v66.0',
@@ -1296,22 +1296,22 @@ function createResourceRequest$3(config) {
1296
1296
  };
1297
1297
  }
1298
1298
 
1299
- const adapterName$3 = 'postDecisionTableRows';
1299
+ const adapterName$4 = 'postDecisionTableRows';
1300
1300
  const postDecisionTableRows_ConfigPropertyMetadata = [
1301
1301
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1302
1302
  generateParamConfigMetadata('rows', false, 2 /* Body */, 4 /* Unsupported */, true),
1303
1303
  ];
1304
- const postDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, postDecisionTableRows_ConfigPropertyMetadata);
1305
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(postDecisionTableRows_ConfigPropertyMetadata);
1306
- function typeCheckConfig$3(untrustedConfig) {
1304
+ const postDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, postDecisionTableRows_ConfigPropertyMetadata);
1305
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(postDecisionTableRows_ConfigPropertyMetadata);
1306
+ function typeCheckConfig$4(untrustedConfig) {
1307
1307
  const config = {};
1308
- typeCheckConfig$7(untrustedConfig, config, postDecisionTableRows_ConfigPropertyMetadata);
1308
+ typeCheckConfig$8(untrustedConfig, config, postDecisionTableRows_ConfigPropertyMetadata);
1309
1309
  const untrustedConfig_rows = untrustedConfig.rows;
1310
1310
  if (ArrayIsArray$1(untrustedConfig_rows)) {
1311
1311
  const untrustedConfig_rows_array = [];
1312
1312
  for (let i = 0, arrayLength = untrustedConfig_rows.length; i < arrayLength; i++) {
1313
1313
  const untrustedConfig_rows_item = untrustedConfig_rows[i];
1314
- const referenceDecisionTableRowInputRepresentationValidationError = validate$4(untrustedConfig_rows_item);
1314
+ const referenceDecisionTableRowInputRepresentationValidationError = validate$5(untrustedConfig_rows_item);
1315
1315
  if (referenceDecisionTableRowInputRepresentationValidationError === null) {
1316
1316
  untrustedConfig_rows_array.push(untrustedConfig_rows_item);
1317
1317
  }
@@ -1320,30 +1320,30 @@ function typeCheckConfig$3(untrustedConfig) {
1320
1320
  }
1321
1321
  return config;
1322
1322
  }
1323
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1323
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1324
1324
  if (!untrustedIsObject(untrustedConfig)) {
1325
1325
  return null;
1326
1326
  }
1327
1327
  if (process.env.NODE_ENV !== 'production') {
1328
1328
  validateConfig(untrustedConfig, configPropertyNames);
1329
1329
  }
1330
- const config = typeCheckConfig$3(untrustedConfig);
1330
+ const config = typeCheckConfig$4(untrustedConfig);
1331
1331
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1332
1332
  return null;
1333
1333
  }
1334
1334
  return config;
1335
1335
  }
1336
- function buildNetworkSnapshot$3(luvio, config, options) {
1337
- const resourceParams = createResourceParams$3(config);
1338
- const request = createResourceRequest$3(resourceParams);
1336
+ function buildNetworkSnapshot$4(luvio, config, options) {
1337
+ const resourceParams = createResourceParams$4(config);
1338
+ const request = createResourceRequest$4(resourceParams);
1339
1339
  return luvio.dispatchResourceRequest(request, options)
1340
1340
  .then((response) => {
1341
1341
  return luvio.handleSuccessResponse(() => {
1342
- const snapshot = ingestSuccess$3(luvio, resourceParams, response);
1342
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1343
1343
  return luvio.storeBroadcast().then(() => snapshot);
1344
1344
  }, () => {
1345
1345
  const cache = new StoreKeyMap();
1346
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1346
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1347
1347
  return cache;
1348
1348
  });
1349
1349
  }, (response) => {
@@ -1353,16 +1353,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
1353
1353
  }
1354
1354
  const postDecisionTableRowsAdapterFactory = (luvio) => {
1355
1355
  return function postDecisionTableRows(untrustedConfig) {
1356
- const config = validateAdapterConfig$3(untrustedConfig, postDecisionTableRows_ConfigPropertyNames);
1356
+ const config = validateAdapterConfig$4(untrustedConfig, postDecisionTableRows_ConfigPropertyNames);
1357
1357
  // Invalid or incomplete config
1358
1358
  if (config === null) {
1359
1359
  throw new Error('Invalid config for "postDecisionTableRows"');
1360
1360
  }
1361
- return buildNetworkSnapshot$3(luvio, config);
1361
+ return buildNetworkSnapshot$4(luvio, config);
1362
1362
  };
1363
1363
  };
1364
1364
 
1365
- function validate$2(obj, path = 'DecisionTableRowOutputRepresentation') {
1365
+ function validate$3(obj, path = 'DecisionTableRowOutputRepresentation') {
1366
1366
  const v_error = (() => {
1367
1367
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1368
1368
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1390,9 +1390,9 @@ function validate$2(obj, path = 'DecisionTableRowOutputRepresentation') {
1390
1390
  return v_error === undefined ? null : v_error;
1391
1391
  }
1392
1392
 
1393
- const TTL$1 = 1000;
1394
- const VERSION$1 = "10dd31535fc5c028227867bd30804643";
1395
- function validate$1(obj, path = 'DecisionTableRowsListOutputRepresentation') {
1393
+ const TTL$2 = 1000;
1394
+ const VERSION$2 = "10dd31535fc5c028227867bd30804643";
1395
+ function validate$2(obj, path = 'DecisionTableRowsListOutputRepresentation') {
1396
1396
  const v_error = (() => {
1397
1397
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1398
1398
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1405,7 +1405,7 @@ function validate$1(obj, path = 'DecisionTableRowsListOutputRepresentation') {
1405
1405
  for (let i = 0; i < obj_rows.length; i++) {
1406
1406
  const obj_rows_item = obj_rows[i];
1407
1407
  const path_rows_item = path_rows + '[' + i + ']';
1408
- const referencepath_rows_itemValidationError = validate$2(obj_rows_item, path_rows_item);
1408
+ const referencepath_rows_itemValidationError = validate$3(obj_rows_item, path_rows_item);
1409
1409
  if (referencepath_rows_itemValidationError !== null) {
1410
1410
  let message = 'Object doesn\'t match DecisionTableRowOutputRepresentation (at "' + path_rows_item + '")\n';
1411
1411
  message += referencepath_rows_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1441,62 +1441,62 @@ function validate$1(obj, path = 'DecisionTableRowsListOutputRepresentation') {
1441
1441
  })();
1442
1442
  return v_error === undefined ? null : v_error;
1443
1443
  }
1444
- const RepresentationType$1 = 'DecisionTableRowsListOutputRepresentation';
1445
- function normalize$1(input, existing, path, luvio, store, timestamp) {
1444
+ const RepresentationType$2 = 'DecisionTableRowsListOutputRepresentation';
1445
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
1446
1446
  return input;
1447
1447
  }
1448
- const select$4 = function DecisionTableRowsListOutputRepresentationSelect() {
1448
+ const select$6 = function DecisionTableRowsListOutputRepresentationSelect() {
1449
1449
  return {
1450
1450
  kind: 'Fragment',
1451
- version: VERSION$1,
1451
+ version: VERSION$2,
1452
1452
  private: [],
1453
1453
  opaque: true
1454
1454
  };
1455
1455
  };
1456
- function equals$1(existing, incoming) {
1456
+ function equals$2(existing, incoming) {
1457
1457
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1458
1458
  return false;
1459
1459
  }
1460
1460
  return true;
1461
1461
  }
1462
- const ingest$1 = function DecisionTableRowsListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1462
+ const ingest$2 = function DecisionTableRowsListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1463
1463
  if (process.env.NODE_ENV !== 'production') {
1464
- const validateError = validate$1(input);
1464
+ const validateError = validate$2(input);
1465
1465
  if (validateError !== null) {
1466
1466
  throw validateError;
1467
1467
  }
1468
1468
  }
1469
1469
  const key = path.fullPath;
1470
- const ttlToUse = TTL$1;
1471
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "DecisionTable", VERSION$1, RepresentationType$1, equals$1);
1470
+ const ttlToUse = TTL$2;
1471
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "DecisionTable", VERSION$2, RepresentationType$2, equals$2);
1472
1472
  return createLink(key);
1473
1473
  };
1474
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1474
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
1475
1475
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1476
1476
  const rootKey = fullPathFactory();
1477
1477
  rootKeySet.set(rootKey, {
1478
1478
  namespace: keyPrefix,
1479
- representationName: RepresentationType$1,
1479
+ representationName: RepresentationType$2,
1480
1480
  mergeable: false
1481
1481
  });
1482
1482
  }
1483
1483
 
1484
- function select$3(luvio, params) {
1485
- return select$4();
1484
+ function select$5(luvio, params) {
1485
+ return select$6();
1486
1486
  }
1487
- function keyBuilder$4(luvio, params) {
1487
+ function keyBuilder$5(luvio, params) {
1488
1488
  return keyPrefix + '::DecisionTableRowsListOutputRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ',' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
1489
1489
  }
1490
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1491
- getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
1490
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
1491
+ getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
1492
1492
  }
1493
- function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1493
+ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
1494
1494
  const { body } = response;
1495
- const key = keyBuilder$4(luvio, resourceParams);
1496
- luvio.storeIngest(key, ingest$1, body);
1495
+ const key = keyBuilder$5(luvio, resourceParams);
1496
+ luvio.storeIngest(key, ingest$2, body);
1497
1497
  const snapshot = luvio.storeLookup({
1498
1498
  recordId: key,
1499
- node: select$3(),
1499
+ node: select$5(),
1500
1500
  variables: {},
1501
1501
  }, snapshotRefresh);
1502
1502
  if (process.env.NODE_ENV !== 'production') {
@@ -1508,18 +1508,18 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1508
1508
  return snapshot;
1509
1509
  }
1510
1510
  function ingestError$1(luvio, params, error, snapshotRefresh) {
1511
- const key = keyBuilder$4(luvio, params);
1511
+ const key = keyBuilder$5(luvio, params);
1512
1512
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1513
1513
  const storeMetadataParams = {
1514
- ttl: TTL$1,
1514
+ ttl: TTL$2,
1515
1515
  namespace: keyPrefix,
1516
- version: VERSION$1,
1517
- representationName: RepresentationType$1
1516
+ version: VERSION$2,
1517
+ representationName: RepresentationType$2
1518
1518
  };
1519
1519
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1520
1520
  return errorSnapshot;
1521
1521
  }
1522
- function createResourceRequest$2(config) {
1522
+ function createResourceRequest$3(config) {
1523
1523
  const headers = {};
1524
1524
  return {
1525
1525
  baseUri: '/services/data/v66.0',
@@ -1533,63 +1533,63 @@ function createResourceRequest$2(config) {
1533
1533
  };
1534
1534
  }
1535
1535
 
1536
- const adapterName$2 = 'getDecisionTableRows';
1536
+ const adapterName$3 = 'getDecisionTableRows';
1537
1537
  const getDecisionTableRows_ConfigPropertyMetadata = [
1538
1538
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1539
1539
  generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
1540
1540
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
1541
1541
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
1542
1542
  ];
1543
- const getDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDecisionTableRows_ConfigPropertyMetadata);
1544
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getDecisionTableRows_ConfigPropertyMetadata);
1545
- function keyBuilder$3(luvio, config) {
1546
- const resourceParams = createResourceParams$2(config);
1547
- return keyBuilder$4(luvio, resourceParams);
1543
+ const getDecisionTableRows_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDecisionTableRows_ConfigPropertyMetadata);
1544
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getDecisionTableRows_ConfigPropertyMetadata);
1545
+ function keyBuilder$4(luvio, config) {
1546
+ const resourceParams = createResourceParams$3(config);
1547
+ return keyBuilder$5(luvio, resourceParams);
1548
1548
  }
1549
- function typeCheckConfig$2(untrustedConfig) {
1549
+ function typeCheckConfig$3(untrustedConfig) {
1550
1550
  const config = {};
1551
- typeCheckConfig$7(untrustedConfig, config, getDecisionTableRows_ConfigPropertyMetadata);
1551
+ typeCheckConfig$8(untrustedConfig, config, getDecisionTableRows_ConfigPropertyMetadata);
1552
1552
  return config;
1553
1553
  }
1554
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1554
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
1555
1555
  if (!untrustedIsObject(untrustedConfig)) {
1556
1556
  return null;
1557
1557
  }
1558
1558
  if (process.env.NODE_ENV !== 'production') {
1559
1559
  validateConfig(untrustedConfig, configPropertyNames);
1560
1560
  }
1561
- const config = typeCheckConfig$2(untrustedConfig);
1561
+ const config = typeCheckConfig$3(untrustedConfig);
1562
1562
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1563
1563
  return null;
1564
1564
  }
1565
1565
  return config;
1566
1566
  }
1567
1567
  function adapterFragment$1(luvio, config) {
1568
- createResourceParams$2(config);
1569
- return select$3();
1568
+ createResourceParams$3(config);
1569
+ return select$5();
1570
1570
  }
1571
1571
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
1572
- const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1572
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
1573
1573
  config,
1574
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1574
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1575
1575
  });
1576
1576
  return luvio.storeBroadcast().then(() => snapshot);
1577
1577
  }
1578
1578
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
1579
1579
  const snapshot = ingestError$1(luvio, resourceParams, response, {
1580
1580
  config,
1581
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1581
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1582
1582
  });
1583
1583
  return luvio.storeBroadcast().then(() => snapshot);
1584
1584
  }
1585
- function buildNetworkSnapshot$2(luvio, config, options) {
1586
- const resourceParams = createResourceParams$2(config);
1587
- const request = createResourceRequest$2(resourceParams);
1585
+ function buildNetworkSnapshot$3(luvio, config, options) {
1586
+ const resourceParams = createResourceParams$3(config);
1587
+ const request = createResourceRequest$3(resourceParams);
1588
1588
  return luvio.dispatchResourceRequest(request, options)
1589
1589
  .then((response) => {
1590
1590
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
1591
1591
  const cache = new StoreKeyMap();
1592
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1592
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
1593
1593
  return cache;
1594
1594
  });
1595
1595
  }, (response) => {
@@ -1597,23 +1597,23 @@ function buildNetworkSnapshot$2(luvio, config, options) {
1597
1597
  });
1598
1598
  }
1599
1599
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
1600
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1600
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
1601
1601
  }
1602
1602
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
1603
1603
  const { luvio, config } = context;
1604
1604
  const selector = {
1605
- recordId: keyBuilder$3(luvio, config),
1605
+ recordId: keyBuilder$4(luvio, config),
1606
1606
  node: adapterFragment$1(luvio, config),
1607
1607
  variables: {},
1608
1608
  };
1609
1609
  const cacheSnapshot = storeLookup(selector, {
1610
1610
  config,
1611
- resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1611
+ resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
1612
1612
  });
1613
1613
  return cacheSnapshot;
1614
1614
  }
1615
1615
  const getDecisionTableRowsAdapterFactory = (luvio) => function DecisionTable__getDecisionTableRows(untrustedConfig, requestContext) {
1616
- const config = validateAdapterConfig$2(untrustedConfig, getDecisionTableRows_ConfigPropertyNames);
1616
+ const config = validateAdapterConfig$3(untrustedConfig, getDecisionTableRows_ConfigPropertyNames);
1617
1617
  // Invalid or incomplete config
1618
1618
  if (config === null) {
1619
1619
  return null;
@@ -1622,9 +1622,9 @@ const getDecisionTableRowsAdapterFactory = (luvio) => function DecisionTable__ge
1622
1622
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
1623
1623
  };
1624
1624
 
1625
- const TTL = 1000;
1626
- const VERSION = "581abdd509fd88568bfa17b4a220d8db";
1627
- function validate(obj, path = 'DecisionTableFileOutputRepresentation') {
1625
+ const TTL$1 = 1000;
1626
+ const VERSION$1 = "581abdd509fd88568bfa17b4a220d8db";
1627
+ function validate$1(obj, path = 'DecisionTableFileOutputRepresentation') {
1628
1628
  const v_error = (() => {
1629
1629
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1630
1630
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1637,71 +1637,71 @@ function validate(obj, path = 'DecisionTableFileOutputRepresentation') {
1637
1637
  })();
1638
1638
  return v_error === undefined ? null : v_error;
1639
1639
  }
1640
- const RepresentationType = 'DecisionTableFileOutputRepresentation';
1641
- function keyBuilder$2(luvio, config) {
1642
- return keyPrefix + '::' + RepresentationType + ':' + config.message;
1640
+ const RepresentationType$1 = 'DecisionTableFileOutputRepresentation';
1641
+ function keyBuilder$3(luvio, config) {
1642
+ return keyPrefix + '::' + RepresentationType$1 + ':' + config.message;
1643
1643
  }
1644
- function keyBuilderFromType(luvio, object) {
1644
+ function keyBuilderFromType$1(luvio, object) {
1645
1645
  const keyParams = {
1646
1646
  message: object.message
1647
1647
  };
1648
- return keyBuilder$2(luvio, keyParams);
1648
+ return keyBuilder$3(luvio, keyParams);
1649
1649
  }
1650
- function normalize(input, existing, path, luvio, store, timestamp) {
1650
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
1651
1651
  return input;
1652
1652
  }
1653
- const select$2 = function DecisionTableFileOutputRepresentationSelect() {
1653
+ const select$4 = function DecisionTableFileOutputRepresentationSelect() {
1654
1654
  return {
1655
1655
  kind: 'Fragment',
1656
- version: VERSION,
1656
+ version: VERSION$1,
1657
1657
  private: [],
1658
1658
  opaque: true
1659
1659
  };
1660
1660
  };
1661
- function equals(existing, incoming) {
1661
+ function equals$1(existing, incoming) {
1662
1662
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
1663
1663
  return false;
1664
1664
  }
1665
1665
  return true;
1666
1666
  }
1667
- const ingest = function DecisionTableFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1667
+ const ingest$1 = function DecisionTableFileOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1668
1668
  if (process.env.NODE_ENV !== 'production') {
1669
- const validateError = validate(input);
1669
+ const validateError = validate$1(input);
1670
1670
  if (validateError !== null) {
1671
1671
  throw validateError;
1672
1672
  }
1673
1673
  }
1674
- const key = keyBuilderFromType(luvio, input);
1675
- const ttlToUse = TTL;
1676
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "DecisionTable", VERSION, RepresentationType, equals);
1674
+ const key = keyBuilderFromType$1(luvio, input);
1675
+ const ttlToUse = TTL$1;
1676
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "DecisionTable", VERSION$1, RepresentationType$1, equals$1);
1677
1677
  return createLink(key);
1678
1678
  };
1679
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1679
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
1680
1680
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1681
- const rootKey = keyBuilderFromType(luvio, input);
1681
+ const rootKey = keyBuilderFromType$1(luvio, input);
1682
1682
  rootKeySet.set(rootKey, {
1683
1683
  namespace: keyPrefix,
1684
- representationName: RepresentationType,
1684
+ representationName: RepresentationType$1,
1685
1685
  mergeable: false
1686
1686
  });
1687
1687
  }
1688
1688
 
1689
- function select$1(luvio, params) {
1690
- return select$2();
1689
+ function select$3(luvio, params) {
1690
+ return select$4();
1691
1691
  }
1692
- function keyBuilder$1(luvio, params) {
1692
+ function keyBuilder$2(luvio, params) {
1693
1693
  return keyPrefix + '::DecisionTableFileOutputRepresentation:(' + 'filter:' + params.queryParams.filter + ',' + 'decisionTableId:' + params.urlParams.decisionTableId + ')';
1694
1694
  }
1695
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1696
- getTypeCacheKeys(storeKeyMap, luvio, response);
1695
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
1696
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1697
1697
  }
1698
- function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1698
+ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
1699
1699
  const { body } = response;
1700
- const key = keyBuilder$1(luvio, resourceParams);
1701
- luvio.storeIngest(key, ingest, body);
1700
+ const key = keyBuilder$2(luvio, resourceParams);
1701
+ luvio.storeIngest(key, ingest$1, body);
1702
1702
  const snapshot = luvio.storeLookup({
1703
1703
  recordId: key,
1704
- node: select$1(),
1704
+ node: select$3(),
1705
1705
  variables: {},
1706
1706
  }, snapshotRefresh);
1707
1707
  if (process.env.NODE_ENV !== 'production') {
@@ -1713,18 +1713,18 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
1713
1713
  return snapshot;
1714
1714
  }
1715
1715
  function ingestError(luvio, params, error, snapshotRefresh) {
1716
- const key = keyBuilder$1(luvio, params);
1716
+ const key = keyBuilder$2(luvio, params);
1717
1717
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
1718
1718
  const storeMetadataParams = {
1719
- ttl: TTL,
1719
+ ttl: TTL$1,
1720
1720
  namespace: keyPrefix,
1721
- version: VERSION,
1722
- representationName: RepresentationType
1721
+ version: VERSION$1,
1722
+ representationName: RepresentationType$1
1723
1723
  };
1724
1724
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
1725
1725
  return errorSnapshot;
1726
1726
  }
1727
- function createResourceRequest$1(config) {
1727
+ function createResourceRequest$2(config) {
1728
1728
  const headers = {};
1729
1729
  return {
1730
1730
  baseUri: '/services/data/v66.0',
@@ -1738,61 +1738,61 @@ function createResourceRequest$1(config) {
1738
1738
  };
1739
1739
  }
1740
1740
 
1741
- const adapterName$1 = 'getDecisionTableFile';
1741
+ const adapterName$2 = 'getDecisionTableFile';
1742
1742
  const getDecisionTableFile_ConfigPropertyMetadata = [
1743
1743
  generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1744
1744
  generateParamConfigMetadata('filter', false, 1 /* QueryParameter */, 0 /* String */),
1745
1745
  ];
1746
- const getDecisionTableFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDecisionTableFile_ConfigPropertyMetadata);
1747
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(getDecisionTableFile_ConfigPropertyMetadata);
1748
- function keyBuilder(luvio, config) {
1749
- const resourceParams = createResourceParams$1(config);
1750
- return keyBuilder$1(luvio, resourceParams);
1746
+ const getDecisionTableFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getDecisionTableFile_ConfigPropertyMetadata);
1747
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getDecisionTableFile_ConfigPropertyMetadata);
1748
+ function keyBuilder$1(luvio, config) {
1749
+ const resourceParams = createResourceParams$2(config);
1750
+ return keyBuilder$2(luvio, resourceParams);
1751
1751
  }
1752
- function typeCheckConfig$1(untrustedConfig) {
1752
+ function typeCheckConfig$2(untrustedConfig) {
1753
1753
  const config = {};
1754
- typeCheckConfig$7(untrustedConfig, config, getDecisionTableFile_ConfigPropertyMetadata);
1754
+ typeCheckConfig$8(untrustedConfig, config, getDecisionTableFile_ConfigPropertyMetadata);
1755
1755
  return config;
1756
1756
  }
1757
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1757
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
1758
1758
  if (!untrustedIsObject(untrustedConfig)) {
1759
1759
  return null;
1760
1760
  }
1761
1761
  if (process.env.NODE_ENV !== 'production') {
1762
1762
  validateConfig(untrustedConfig, configPropertyNames);
1763
1763
  }
1764
- const config = typeCheckConfig$1(untrustedConfig);
1764
+ const config = typeCheckConfig$2(untrustedConfig);
1765
1765
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1766
1766
  return null;
1767
1767
  }
1768
1768
  return config;
1769
1769
  }
1770
1770
  function adapterFragment(luvio, config) {
1771
- createResourceParams$1(config);
1772
- return select$1();
1771
+ createResourceParams$2(config);
1772
+ return select$3();
1773
1773
  }
1774
1774
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
1775
- const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
1775
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
1776
1776
  config,
1777
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1777
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1778
1778
  });
1779
1779
  return luvio.storeBroadcast().then(() => snapshot);
1780
1780
  }
1781
1781
  function onFetchResponseError(luvio, config, resourceParams, response) {
1782
1782
  const snapshot = ingestError(luvio, resourceParams, response, {
1783
1783
  config,
1784
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1784
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1785
1785
  });
1786
1786
  return luvio.storeBroadcast().then(() => snapshot);
1787
1787
  }
1788
- function buildNetworkSnapshot$1(luvio, config, options) {
1789
- const resourceParams = createResourceParams$1(config);
1790
- const request = createResourceRequest$1(resourceParams);
1788
+ function buildNetworkSnapshot$2(luvio, config, options) {
1789
+ const resourceParams = createResourceParams$2(config);
1790
+ const request = createResourceRequest$2(resourceParams);
1791
1791
  return luvio.dispatchResourceRequest(request, options)
1792
1792
  .then((response) => {
1793
1793
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
1794
1794
  const cache = new StoreKeyMap();
1795
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1795
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
1796
1796
  return cache;
1797
1797
  });
1798
1798
  }, (response) => {
@@ -1800,23 +1800,23 @@ function buildNetworkSnapshot$1(luvio, config, options) {
1800
1800
  });
1801
1801
  }
1802
1802
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
1803
- return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
1803
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
1804
1804
  }
1805
1805
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
1806
1806
  const { luvio, config } = context;
1807
1807
  const selector = {
1808
- recordId: keyBuilder(luvio, config),
1808
+ recordId: keyBuilder$1(luvio, config),
1809
1809
  node: adapterFragment(luvio, config),
1810
1810
  variables: {},
1811
1811
  };
1812
1812
  const cacheSnapshot = storeLookup(selector, {
1813
1813
  config,
1814
- resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
1814
+ resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
1815
1815
  });
1816
1816
  return cacheSnapshot;
1817
1817
  }
1818
1818
  const getDecisionTableFileAdapterFactory = (luvio) => function DecisionTable__getDecisionTableFile(untrustedConfig, requestContext) {
1819
- const config = validateAdapterConfig$1(untrustedConfig, getDecisionTableFile_ConfigPropertyNames);
1819
+ const config = validateAdapterConfig$2(untrustedConfig, getDecisionTableFile_ConfigPropertyNames);
1820
1820
  // Invalid or incomplete config
1821
1821
  if (config === null) {
1822
1822
  return null;
@@ -1825,8 +1825,169 @@ const getDecisionTableFileAdapterFactory = (luvio) => function DecisionTable__ge
1825
1825
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
1826
1826
  };
1827
1827
 
1828
+ function select$2(luvio, params) {
1829
+ return select$4();
1830
+ }
1831
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1832
+ getTypeCacheKeys$1(storeKeyMap, luvio, response);
1833
+ }
1834
+ function ingestSuccess$1(luvio, resourceParams, response) {
1835
+ const { body } = response;
1836
+ const key = keyBuilderFromType$1(luvio, body);
1837
+ luvio.storeIngest(key, ingest$1, body);
1838
+ const snapshot = luvio.storeLookup({
1839
+ recordId: key,
1840
+ node: select$2(),
1841
+ variables: {},
1842
+ });
1843
+ if (process.env.NODE_ENV !== 'production') {
1844
+ if (snapshot.state !== 'Fulfilled') {
1845
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
1846
+ }
1847
+ }
1848
+ deepFreeze(snapshot.data);
1849
+ return snapshot;
1850
+ }
1851
+ function createResourceRequest$1(config) {
1852
+ const headers = {};
1853
+ return {
1854
+ baseUri: '/services/data/v66.0',
1855
+ basePath: '/connect/business-rules/decision-table/' + config.urlParams.decisionTableId + '/file',
1856
+ method: 'post',
1857
+ body: config.body,
1858
+ urlParams: config.urlParams,
1859
+ queryParams: {},
1860
+ headers,
1861
+ priority: 'normal',
1862
+ };
1863
+ }
1864
+
1865
+ const adapterName$1 = 'postDecisionTableFile';
1866
+ const postDecisionTableFile_ConfigPropertyMetadata = [
1867
+ generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1868
+ generateParamConfigMetadata('deleteAllRows', false, 2 /* Body */, 1 /* Boolean */),
1869
+ generateParamConfigMetadata('fileId', true, 2 /* Body */, 0 /* String */),
1870
+ ];
1871
+ const postDecisionTableFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, postDecisionTableFile_ConfigPropertyMetadata);
1872
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(postDecisionTableFile_ConfigPropertyMetadata);
1873
+ function typeCheckConfig$1(untrustedConfig) {
1874
+ const config = {};
1875
+ typeCheckConfig$8(untrustedConfig, config, postDecisionTableFile_ConfigPropertyMetadata);
1876
+ return config;
1877
+ }
1878
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
1879
+ if (!untrustedIsObject(untrustedConfig)) {
1880
+ return null;
1881
+ }
1882
+ if (process.env.NODE_ENV !== 'production') {
1883
+ validateConfig(untrustedConfig, configPropertyNames);
1884
+ }
1885
+ const config = typeCheckConfig$1(untrustedConfig);
1886
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
1887
+ return null;
1888
+ }
1889
+ return config;
1890
+ }
1891
+ function buildNetworkSnapshot$1(luvio, config, options) {
1892
+ const resourceParams = createResourceParams$1(config);
1893
+ const request = createResourceRequest$1(resourceParams);
1894
+ return luvio.dispatchResourceRequest(request, options)
1895
+ .then((response) => {
1896
+ return luvio.handleSuccessResponse(() => {
1897
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response);
1898
+ return luvio.storeBroadcast().then(() => snapshot);
1899
+ }, () => {
1900
+ const cache = new StoreKeyMap();
1901
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
1902
+ return cache;
1903
+ });
1904
+ }, (response) => {
1905
+ deepFreeze(response);
1906
+ throw response;
1907
+ });
1908
+ }
1909
+ const postDecisionTableFileAdapterFactory = (luvio) => {
1910
+ return function postDecisionTableFile(untrustedConfig) {
1911
+ const config = validateAdapterConfig$1(untrustedConfig, postDecisionTableFile_ConfigPropertyNames);
1912
+ // Invalid or incomplete config
1913
+ if (config === null) {
1914
+ throw new Error('Invalid config for "postDecisionTableFile"');
1915
+ }
1916
+ return buildNetworkSnapshot$1(luvio, config);
1917
+ };
1918
+ };
1919
+
1920
+ const TTL = 1000;
1921
+ const VERSION = "b0d141e11ef33593ddcf5bb30203b031";
1922
+ function validate(obj, path = 'DecisionTableRefreshOutput') {
1923
+ const v_error = (() => {
1924
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1925
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1926
+ }
1927
+ const obj_errorMessage = obj.errorMessage;
1928
+ const path_errorMessage = path + '.errorMessage';
1929
+ if (typeof obj_errorMessage !== 'string') {
1930
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
1931
+ }
1932
+ const obj_status = obj.status;
1933
+ const path_status = path + '.status';
1934
+ if (typeof obj_status !== 'string') {
1935
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
1936
+ }
1937
+ })();
1938
+ return v_error === undefined ? null : v_error;
1939
+ }
1940
+ const RepresentationType = 'DecisionTableRefreshOutput';
1941
+ function keyBuilder(luvio, config) {
1942
+ return keyPrefix + '::' + RepresentationType + ':' + config.errorMessage;
1943
+ }
1944
+ function keyBuilderFromType(luvio, object) {
1945
+ const keyParams = {
1946
+ errorMessage: object.errorMessage
1947
+ };
1948
+ return keyBuilder(luvio, keyParams);
1949
+ }
1950
+ function normalize(input, existing, path, luvio, store, timestamp) {
1951
+ return input;
1952
+ }
1953
+ const select$1 = function DecisionTableRefreshOutputSelect() {
1954
+ return {
1955
+ kind: 'Fragment',
1956
+ version: VERSION,
1957
+ private: [],
1958
+ opaque: true
1959
+ };
1960
+ };
1961
+ function equals(existing, incoming) {
1962
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
1963
+ return false;
1964
+ }
1965
+ return true;
1966
+ }
1967
+ const ingest = function DecisionTableRefreshOutputIngest(input, path, luvio, store, timestamp) {
1968
+ if (process.env.NODE_ENV !== 'production') {
1969
+ const validateError = validate(input);
1970
+ if (validateError !== null) {
1971
+ throw validateError;
1972
+ }
1973
+ }
1974
+ const key = keyBuilderFromType(luvio, input);
1975
+ const ttlToUse = TTL;
1976
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "DecisionTable", VERSION, RepresentationType, equals);
1977
+ return createLink(key);
1978
+ };
1979
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
1980
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1981
+ const rootKey = keyBuilderFromType(luvio, input);
1982
+ rootKeySet.set(rootKey, {
1983
+ namespace: keyPrefix,
1984
+ representationName: RepresentationType,
1985
+ mergeable: false
1986
+ });
1987
+ }
1988
+
1828
1989
  function select(luvio, params) {
1829
- return select$2();
1990
+ return select$1();
1830
1991
  }
1831
1992
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1832
1993
  getTypeCacheKeys(storeKeyMap, luvio, response);
@@ -1852,27 +2013,40 @@ function createResourceRequest(config) {
1852
2013
  const headers = {};
1853
2014
  return {
1854
2015
  baseUri: '/services/data/v66.0',
1855
- basePath: '/connect/business-rules/decision-table/' + config.urlParams.decisionTableId + '/file',
2016
+ basePath: '/connect/decision-table/refresh',
1856
2017
  method: 'post',
1857
2018
  body: config.body,
1858
- urlParams: config.urlParams,
2019
+ urlParams: {},
1859
2020
  queryParams: {},
1860
2021
  headers,
1861
2022
  priority: 'normal',
1862
2023
  };
1863
2024
  }
1864
2025
 
1865
- const adapterName = 'postDecisionTableFile';
1866
- const postDecisionTableFile_ConfigPropertyMetadata = [
1867
- generateParamConfigMetadata('decisionTableId', true, 0 /* UrlParameter */, 0 /* String */),
1868
- generateParamConfigMetadata('deleteAllRows', false, 2 /* Body */, 1 /* Boolean */),
1869
- generateParamConfigMetadata('fileId', true, 2 /* Body */, 0 /* String */),
2026
+ const adapterName = 'refreshDecisionTable';
2027
+ const refreshDecisionTable_ConfigPropertyMetadata = [
2028
+ generateParamConfigMetadata('decisionTableId', true, 2 /* Body */, 0 /* String */),
2029
+ generateParamConfigMetadata('instantRefreshRecordsIds', false, 2 /* Body */, 4 /* Unsupported */, true),
1870
2030
  ];
1871
- const postDecisionTableFile_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postDecisionTableFile_ConfigPropertyMetadata);
1872
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(postDecisionTableFile_ConfigPropertyMetadata);
2031
+ const refreshDecisionTable_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, refreshDecisionTable_ConfigPropertyMetadata);
2032
+ const createResourceParams = /*#__PURE__*/ createResourceParams$8(refreshDecisionTable_ConfigPropertyMetadata);
1873
2033
  function typeCheckConfig(untrustedConfig) {
1874
2034
  const config = {};
1875
- typeCheckConfig$7(untrustedConfig, config, postDecisionTableFile_ConfigPropertyMetadata);
2035
+ typeCheckConfig$8(untrustedConfig, config, refreshDecisionTable_ConfigPropertyMetadata);
2036
+ const untrustedConfig_instantRefreshRecordsIds = untrustedConfig.instantRefreshRecordsIds;
2037
+ if (ArrayIsArray$1(untrustedConfig_instantRefreshRecordsIds)) {
2038
+ const untrustedConfig_instantRefreshRecordsIds_array = [];
2039
+ for (let i = 0, arrayLength = untrustedConfig_instantRefreshRecordsIds.length; i < arrayLength; i++) {
2040
+ const untrustedConfig_instantRefreshRecordsIds_item = untrustedConfig_instantRefreshRecordsIds[i];
2041
+ if (typeof untrustedConfig_instantRefreshRecordsIds_item === 'string') {
2042
+ untrustedConfig_instantRefreshRecordsIds_array.push(untrustedConfig_instantRefreshRecordsIds_item);
2043
+ }
2044
+ if (untrustedConfig_instantRefreshRecordsIds_item === null) {
2045
+ untrustedConfig_instantRefreshRecordsIds_array.push(untrustedConfig_instantRefreshRecordsIds_item);
2046
+ }
2047
+ }
2048
+ config.instantRefreshRecordsIds = untrustedConfig_instantRefreshRecordsIds_array;
2049
+ }
1876
2050
  return config;
1877
2051
  }
1878
2052
  function validateAdapterConfig(untrustedConfig, configPropertyNames) {
@@ -1906,15 +2080,15 @@ function buildNetworkSnapshot(luvio, config, options) {
1906
2080
  throw response;
1907
2081
  });
1908
2082
  }
1909
- const postDecisionTableFileAdapterFactory = (luvio) => {
1910
- return function postDecisionTableFile(untrustedConfig) {
1911
- const config = validateAdapterConfig(untrustedConfig, postDecisionTableFile_ConfigPropertyNames);
2083
+ const refreshDecisionTableAdapterFactory = (luvio) => {
2084
+ return function refreshDecisionTable(untrustedConfig) {
2085
+ const config = validateAdapterConfig(untrustedConfig, refreshDecisionTable_ConfigPropertyNames);
1912
2086
  // Invalid or incomplete config
1913
2087
  if (config === null) {
1914
- throw new Error('Invalid config for "postDecisionTableFile"');
2088
+ throw new Error('Invalid config for "refreshDecisionTable"');
1915
2089
  }
1916
2090
  return buildNetworkSnapshot(luvio, config);
1917
2091
  };
1918
2092
  };
1919
2093
 
1920
- export { getDecisionTableAdapterFactory, getDecisionTableFileAdapterFactory, getDecisionTableRowsAdapterFactory, getDecisionTableTemplateAdapterFactory, getDecisionTableTemplateListAdapterFactory, postDecisionTableFileAdapterFactory, postDecisionTableRowsAdapterFactory };
2094
+ export { getDecisionTableAdapterFactory, getDecisionTableFileAdapterFactory, getDecisionTableRowsAdapterFactory, getDecisionTableTemplateAdapterFactory, getDecisionTableTemplateListAdapterFactory, postDecisionTableFileAdapterFactory, postDecisionTableRowsAdapterFactory, refreshDecisionTableAdapterFactory };