@salesforce/lds-adapters-industries-actionablelist 1.243.0 → 1.245.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (20) hide show
  1. package/dist/es/es2018/industries-actionablelist.js +1475 -224
  2. package/dist/es/es2018/types/src/generated/adapters/deleteFilterTemplate.d.ts +14 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getFilterTemplate.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getFilterTemplatesForListDefinition.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/upsertActionableListFilterTemplate.d.ts +16 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -1
  8. package/dist/es/es2018/types/src/generated/resources/deleteConnectActionableListDefFilterByActionableListDefinitionFilterId.d.ts +12 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectActionableListDefFilterByActionableListDefinitionFilterId.d.ts +16 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectGetActionableListDefFilters.d.ts +15 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectActionableListDefFilter.d.ts +13 -0
  12. package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateInputRepresentation.d.ts +53 -0
  13. package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateListOutputRepresentation.d.ts +42 -0
  14. package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateOutputRepresentation.d.ts +54 -0
  15. package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateUpsertOutputRepresentation.d.ts +44 -0
  16. package/dist/es/es2018/types/src/generated/types/ActionableListFilterTemplateWrapperInputRepresentation.d.ts +29 -0
  17. package/package.json +7 -3
  18. package/sfdc/index.js +2966 -1649
  19. package/src/raml/api.raml +141 -0
  20. package/src/raml/luvio.raml +33 -1
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$7, StoreKeyMap, createResourceParams as createResourceParams$7 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$b, StoreKeyMap, createResourceParams as createResourceParams$b } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -167,8 +167,8 @@ function createLink(ref) {
167
167
  };
168
168
  }
169
169
 
170
- const VERSION$f = "bf02e6b522639f3bb93ec16ccee16087";
171
- function validate$l(obj, path = 'ALDDatasetColumnOutputRepresentation') {
170
+ const VERSION$i = "bf02e6b522639f3bb93ec16ccee16087";
171
+ function validate$q(obj, path = 'ALDDatasetColumnOutputRepresentation') {
172
172
  const v_error = (() => {
173
173
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
174
174
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -326,10 +326,10 @@ function validate$l(obj, path = 'ALDDatasetColumnOutputRepresentation') {
326
326
  })();
327
327
  return v_error === undefined ? null : v_error;
328
328
  }
329
- const select$m = function ALDDatasetColumnOutputRepresentationSelect() {
329
+ const select$s = function ALDDatasetColumnOutputRepresentationSelect() {
330
330
  return {
331
331
  kind: 'Fragment',
332
- version: VERSION$f,
332
+ version: VERSION$i,
333
333
  private: [],
334
334
  selections: [
335
335
  {
@@ -371,7 +371,7 @@ const select$m = function ALDDatasetColumnOutputRepresentationSelect() {
371
371
  ]
372
372
  };
373
373
  };
374
- function equals$f(existing, incoming) {
374
+ function equals$i(existing, incoming) {
375
375
  const existing_isDefault = existing.isDefault;
376
376
  const incoming_isDefault = incoming.isDefault;
377
377
  if (!(existing_isDefault === incoming_isDefault)) {
@@ -420,8 +420,8 @@ function equals$f(existing, incoming) {
420
420
  return true;
421
421
  }
422
422
 
423
- const VERSION$e = "9d133a939d3bf9e4f6209870e525ff9f";
424
- function validate$k(obj, path = 'ALDMemberStatusOutputRepresentation') {
423
+ const VERSION$h = "9d133a939d3bf9e4f6209870e525ff9f";
424
+ function validate$p(obj, path = 'ALDMemberStatusOutputRepresentation') {
425
425
  const v_error = (() => {
426
426
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
427
427
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -444,10 +444,10 @@ function validate$k(obj, path = 'ALDMemberStatusOutputRepresentation') {
444
444
  })();
445
445
  return v_error === undefined ? null : v_error;
446
446
  }
447
- const select$l = function ALDMemberStatusOutputRepresentationSelect() {
447
+ const select$r = function ALDMemberStatusOutputRepresentationSelect() {
448
448
  return {
449
449
  kind: 'Fragment',
450
- version: VERSION$e,
450
+ version: VERSION$h,
451
451
  private: [],
452
452
  selections: [
453
453
  {
@@ -465,7 +465,7 @@ const select$l = function ALDMemberStatusOutputRepresentationSelect() {
465
465
  ]
466
466
  };
467
467
  };
468
- function equals$e(existing, incoming) {
468
+ function equals$h(existing, incoming) {
469
469
  const existing_iconName = existing.iconName;
470
470
  const incoming_iconName = incoming.iconName;
471
471
  if (!(existing_iconName === incoming_iconName)) {
@@ -484,8 +484,8 @@ function equals$e(existing, incoming) {
484
484
  return true;
485
485
  }
486
486
 
487
- const VERSION$d = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
488
- function validate$j(obj, path = 'ActionableListDefinitionOutputRepresentation') {
487
+ const VERSION$g = "63348e0d2a5e8d3cf7f7ddc110bf6cf4";
488
+ function validate$o(obj, path = 'ActionableListDefinitionOutputRepresentation') {
489
489
  const v_error = (() => {
490
490
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
491
491
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -498,7 +498,7 @@ function validate$j(obj, path = 'ActionableListDefinitionOutputRepresentation')
498
498
  for (let i = 0; i < obj_aldDatasetColumnOutputRepresentation.length; i++) {
499
499
  const obj_aldDatasetColumnOutputRepresentation_item = obj_aldDatasetColumnOutputRepresentation[i];
500
500
  const path_aldDatasetColumnOutputRepresentation_item = path_aldDatasetColumnOutputRepresentation + '[' + i + ']';
501
- const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$l(obj_aldDatasetColumnOutputRepresentation_item, path_aldDatasetColumnOutputRepresentation_item);
501
+ const referencepath_aldDatasetColumnOutputRepresentation_itemValidationError = validate$q(obj_aldDatasetColumnOutputRepresentation_item, path_aldDatasetColumnOutputRepresentation_item);
502
502
  if (referencepath_aldDatasetColumnOutputRepresentation_itemValidationError !== null) {
503
503
  let message = 'Object doesn\'t match ALDDatasetColumnOutputRepresentation (at "' + path_aldDatasetColumnOutputRepresentation_item + '")\n';
504
504
  message += referencepath_aldDatasetColumnOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -513,7 +513,7 @@ function validate$j(obj, path = 'ActionableListDefinitionOutputRepresentation')
513
513
  for (let i = 0; i < obj_aldMemberStatusOutputRepresentation.length; i++) {
514
514
  const obj_aldMemberStatusOutputRepresentation_item = obj_aldMemberStatusOutputRepresentation[i];
515
515
  const path_aldMemberStatusOutputRepresentation_item = path_aldMemberStatusOutputRepresentation + '[' + i + ']';
516
- const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$k(obj_aldMemberStatusOutputRepresentation_item, path_aldMemberStatusOutputRepresentation_item);
516
+ const referencepath_aldMemberStatusOutputRepresentation_itemValidationError = validate$p(obj_aldMemberStatusOutputRepresentation_item, path_aldMemberStatusOutputRepresentation_item);
517
517
  if (referencepath_aldMemberStatusOutputRepresentation_itemValidationError !== null) {
518
518
  let message = 'Object doesn\'t match ALDMemberStatusOutputRepresentation (at "' + path_aldMemberStatusOutputRepresentation_item + '")\n';
519
519
  message += referencepath_aldMemberStatusOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -605,12 +605,12 @@ function validate$j(obj, path = 'ActionableListDefinitionOutputRepresentation')
605
605
  })();
606
606
  return v_error === undefined ? null : v_error;
607
607
  }
608
- const select$k = function ActionableListDefinitionOutputRepresentationSelect() {
609
- const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$m();
610
- const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$l();
608
+ const select$q = function ActionableListDefinitionOutputRepresentationSelect() {
609
+ const { selections: ALDDatasetColumnOutputRepresentation__selections, opaque: ALDDatasetColumnOutputRepresentation__opaque, } = select$s();
610
+ const { selections: ALDMemberStatusOutputRepresentation__selections, opaque: ALDMemberStatusOutputRepresentation__opaque, } = select$r();
611
611
  return {
612
612
  kind: 'Fragment',
613
- version: VERSION$d,
613
+ version: VERSION$g,
614
614
  private: [],
615
615
  selections: [
616
616
  {
@@ -660,7 +660,7 @@ const select$k = function ActionableListDefinitionOutputRepresentationSelect() {
660
660
  ]
661
661
  };
662
662
  };
663
- function equals$d(existing, incoming) {
663
+ function equals$g(existing, incoming) {
664
664
  const existing_isActive = existing.isActive;
665
665
  const incoming_isActive = incoming.isActive;
666
666
  if (!(existing_isActive === incoming_isActive)) {
@@ -694,7 +694,7 @@ function equals$d(existing, incoming) {
694
694
  const existing_aldDatasetColumnOutputRepresentation = existing.aldDatasetColumnOutputRepresentation;
695
695
  const incoming_aldDatasetColumnOutputRepresentation = incoming.aldDatasetColumnOutputRepresentation;
696
696
  const equals_aldDatasetColumnOutputRepresentation_items = equalsArray(existing_aldDatasetColumnOutputRepresentation, incoming_aldDatasetColumnOutputRepresentation, (existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item) => {
697
- if (!(equals$f(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
697
+ if (!(equals$i(existing_aldDatasetColumnOutputRepresentation_item, incoming_aldDatasetColumnOutputRepresentation_item))) {
698
698
  return false;
699
699
  }
700
700
  });
@@ -704,7 +704,7 @@ function equals$d(existing, incoming) {
704
704
  const existing_aldMemberStatusOutputRepresentation = existing.aldMemberStatusOutputRepresentation;
705
705
  const incoming_aldMemberStatusOutputRepresentation = incoming.aldMemberStatusOutputRepresentation;
706
706
  const equals_aldMemberStatusOutputRepresentation_items = equalsArray(existing_aldMemberStatusOutputRepresentation, incoming_aldMemberStatusOutputRepresentation, (existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item) => {
707
- if (!(equals$e(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
707
+ if (!(equals$h(existing_aldMemberStatusOutputRepresentation_item, incoming_aldMemberStatusOutputRepresentation_item))) {
708
708
  return false;
709
709
  }
710
710
  });
@@ -724,9 +724,9 @@ function equals$d(existing, incoming) {
724
724
  return true;
725
725
  }
726
726
 
727
- const TTL$6 = 100;
728
- const VERSION$c = "4c1ba3bd226b3670b78af4e7ea159854";
729
- function validate$i(obj, path = 'ActionableListDefinitionGetAllOutputRepresentation') {
727
+ const TTL$9 = 100;
728
+ const VERSION$f = "4c1ba3bd226b3670b78af4e7ea159854";
729
+ function validate$n(obj, path = 'ActionableListDefinitionGetAllOutputRepresentation') {
730
730
  const v_error = (() => {
731
731
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
732
732
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -739,7 +739,7 @@ function validate$i(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
739
739
  for (let i = 0; i < obj_aldList.length; i++) {
740
740
  const obj_aldList_item = obj_aldList[i];
741
741
  const path_aldList_item = path_aldList + '[' + i + ']';
742
- const referencepath_aldList_itemValidationError = validate$j(obj_aldList_item, path_aldList_item);
742
+ const referencepath_aldList_itemValidationError = validate$o(obj_aldList_item, path_aldList_item);
743
743
  if (referencepath_aldList_itemValidationError !== null) {
744
744
  let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_aldList_item + '")\n';
745
745
  message += referencepath_aldList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -749,15 +749,15 @@ function validate$i(obj, path = 'ActionableListDefinitionGetAllOutputRepresentat
749
749
  })();
750
750
  return v_error === undefined ? null : v_error;
751
751
  }
752
- const RepresentationType$6 = 'ActionableListDefinitionGetAllOutputRepresentation';
753
- function normalize$6(input, existing, path, luvio, store, timestamp) {
752
+ const RepresentationType$9 = 'ActionableListDefinitionGetAllOutputRepresentation';
753
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
754
754
  return input;
755
755
  }
756
- const select$j = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
757
- const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$k();
756
+ const select$p = function ActionableListDefinitionGetAllOutputRepresentationSelect() {
757
+ const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$q();
758
758
  return {
759
759
  kind: 'Fragment',
760
- version: VERSION$c,
760
+ version: VERSION$f,
761
761
  private: [],
762
762
  selections: [
763
763
  {
@@ -769,11 +769,11 @@ const select$j = function ActionableListDefinitionGetAllOutputRepresentationSele
769
769
  ]
770
770
  };
771
771
  };
772
- function equals$c(existing, incoming) {
772
+ function equals$f(existing, incoming) {
773
773
  const existing_aldList = existing.aldList;
774
774
  const incoming_aldList = incoming.aldList;
775
775
  const equals_aldList_items = equalsArray(existing_aldList, incoming_aldList, (existing_aldList_item, incoming_aldList_item) => {
776
- if (!(equals$d(existing_aldList_item, incoming_aldList_item))) {
776
+ if (!(equals$g(existing_aldList_item, incoming_aldList_item))) {
777
777
  return false;
778
778
  }
779
779
  });
@@ -782,44 +782,44 @@ function equals$c(existing, incoming) {
782
782
  }
783
783
  return true;
784
784
  }
785
- const ingest$6 = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
785
+ const ingest$9 = function ActionableListDefinitionGetAllOutputRepresentationIngest(input, path, luvio, store, timestamp) {
786
786
  if (process.env.NODE_ENV !== 'production') {
787
- const validateError = validate$i(input);
787
+ const validateError = validate$n(input);
788
788
  if (validateError !== null) {
789
789
  throw validateError;
790
790
  }
791
791
  }
792
792
  const key = path.fullPath;
793
- const ttlToUse = TTL$6;
794
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "actionablelist", VERSION$c, RepresentationType$6, equals$c);
793
+ const ttlToUse = TTL$9;
794
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "actionablelist", VERSION$f, RepresentationType$9, equals$f);
795
795
  return createLink(key);
796
796
  };
797
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
797
+ function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
798
798
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
799
799
  const rootKey = fullPathFactory();
800
800
  rootKeySet.set(rootKey, {
801
801
  namespace: keyPrefix,
802
- representationName: RepresentationType$6,
802
+ representationName: RepresentationType$9,
803
803
  mergeable: false
804
804
  });
805
805
  }
806
806
 
807
- function select$i(luvio, params) {
808
- return select$j();
807
+ function select$o(luvio, params) {
808
+ return select$p();
809
809
  }
810
- function keyBuilder$9(luvio, params) {
810
+ function keyBuilder$g(luvio, params) {
811
811
  return keyPrefix + '::ActionableListDefinitionGetAllOutputRepresentation:(' + 'id:' + params.queryParams.id + ',' + 'isActive:' + params.queryParams.isActive + ',' + 'limit:' + params.queryParams.limit + ',' + 'offset:' + params.queryParams.offset + ')';
812
812
  }
813
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
814
- getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$9(luvio, resourceParams));
813
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
814
+ getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
815
815
  }
816
- function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
816
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
817
817
  const { body } = response;
818
- const key = keyBuilder$9(luvio, resourceParams);
819
- luvio.storeIngest(key, ingest$6, body);
818
+ const key = keyBuilder$g(luvio, resourceParams);
819
+ luvio.storeIngest(key, ingest$9, body);
820
820
  const snapshot = luvio.storeLookup({
821
821
  recordId: key,
822
- node: select$i(),
822
+ node: select$o(),
823
823
  variables: {},
824
824
  }, snapshotRefresh);
825
825
  if (process.env.NODE_ENV !== 'production') {
@@ -830,19 +830,19 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
830
830
  deepFreeze(snapshot.data);
831
831
  return snapshot;
832
832
  }
833
- function ingestError$2(luvio, params, error, snapshotRefresh) {
834
- const key = keyBuilder$9(luvio, params);
833
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
834
+ const key = keyBuilder$g(luvio, params);
835
835
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
836
836
  const storeMetadataParams = {
837
- ttl: TTL$6,
837
+ ttl: TTL$9,
838
838
  namespace: keyPrefix,
839
- version: VERSION$c,
840
- representationName: RepresentationType$6
839
+ version: VERSION$f,
840
+ representationName: RepresentationType$9
841
841
  };
842
842
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
843
843
  return errorSnapshot;
844
844
  }
845
- function createResourceRequest$6(config) {
845
+ function createResourceRequest$a(config) {
846
846
  const headers = {};
847
847
  return {
848
848
  baseUri: '/services/data/v60.0',
@@ -856,96 +856,96 @@ function createResourceRequest$6(config) {
856
856
  };
857
857
  }
858
858
 
859
- const adapterName$6 = 'getActionableListDefinitions';
859
+ const adapterName$a = 'getActionableListDefinitions';
860
860
  const getActionableListDefinitions_ConfigPropertyMetadata = [
861
861
  generateParamConfigMetadata('id', false, 1 /* QueryParameter */, 0 /* String */),
862
862
  generateParamConfigMetadata('isActive', false, 1 /* QueryParameter */, 1 /* Boolean */),
863
863
  generateParamConfigMetadata('limit', false, 1 /* QueryParameter */, 3 /* Integer */),
864
864
  generateParamConfigMetadata('offset', false, 1 /* QueryParameter */, 3 /* Integer */),
865
865
  ];
866
- const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getActionableListDefinitions_ConfigPropertyMetadata);
867
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(getActionableListDefinitions_ConfigPropertyMetadata);
868
- function keyBuilder$8(luvio, config) {
869
- const resourceParams = createResourceParams$6(config);
870
- return keyBuilder$9(luvio, resourceParams);
866
+ const getActionableListDefinitions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, getActionableListDefinitions_ConfigPropertyMetadata);
867
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(getActionableListDefinitions_ConfigPropertyMetadata);
868
+ function keyBuilder$f(luvio, config) {
869
+ const resourceParams = createResourceParams$a(config);
870
+ return keyBuilder$g(luvio, resourceParams);
871
871
  }
872
- function typeCheckConfig$6(untrustedConfig) {
872
+ function typeCheckConfig$a(untrustedConfig) {
873
873
  const config = {};
874
- typeCheckConfig$7(untrustedConfig, config, getActionableListDefinitions_ConfigPropertyMetadata);
874
+ typeCheckConfig$b(untrustedConfig, config, getActionableListDefinitions_ConfigPropertyMetadata);
875
875
  return config;
876
876
  }
877
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
877
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
878
878
  if (!untrustedIsObject(untrustedConfig)) {
879
879
  return null;
880
880
  }
881
881
  if (process.env.NODE_ENV !== 'production') {
882
882
  validateConfig(untrustedConfig, configPropertyNames);
883
883
  }
884
- const config = typeCheckConfig$6(untrustedConfig);
884
+ const config = typeCheckConfig$a(untrustedConfig);
885
885
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
886
886
  return null;
887
887
  }
888
888
  return config;
889
889
  }
890
- function adapterFragment$2(luvio, config) {
891
- createResourceParams$6(config);
892
- return select$i();
890
+ function adapterFragment$4(luvio, config) {
891
+ createResourceParams$a(config);
892
+ return select$o();
893
893
  }
894
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
895
- const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
894
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
895
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
896
896
  config,
897
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
897
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
898
898
  });
899
899
  return luvio.storeBroadcast().then(() => snapshot);
900
900
  }
901
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
902
- const snapshot = ingestError$2(luvio, resourceParams, response, {
901
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
902
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
903
903
  config,
904
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
904
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
905
905
  });
906
906
  return luvio.storeBroadcast().then(() => snapshot);
907
907
  }
908
- function buildNetworkSnapshot$6(luvio, config, options) {
909
- const resourceParams = createResourceParams$6(config);
910
- const request = createResourceRequest$6(resourceParams);
908
+ function buildNetworkSnapshot$a(luvio, config, options) {
909
+ const resourceParams = createResourceParams$a(config);
910
+ const request = createResourceRequest$a(resourceParams);
911
911
  return luvio.dispatchResourceRequest(request, options)
912
912
  .then((response) => {
913
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
913
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
914
914
  const cache = new StoreKeyMap();
915
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
915
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
916
916
  return cache;
917
917
  });
918
918
  }, (response) => {
919
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
919
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
920
920
  });
921
921
  }
922
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
923
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
922
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
923
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$a, undefined, false);
924
924
  }
925
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
925
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
926
926
  const { luvio, config } = context;
927
927
  const selector = {
928
- recordId: keyBuilder$8(luvio, config),
929
- node: adapterFragment$2(luvio, config),
928
+ recordId: keyBuilder$f(luvio, config),
929
+ node: adapterFragment$4(luvio, config),
930
930
  variables: {},
931
931
  };
932
932
  const cacheSnapshot = storeLookup(selector, {
933
933
  config,
934
- resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
934
+ resolve: () => buildNetworkSnapshot$a(luvio, config, snapshotRefreshOptions)
935
935
  });
936
936
  return cacheSnapshot;
937
937
  }
938
938
  const getActionableListDefinitionsAdapterFactory = (luvio) => function actionablelist__getActionableListDefinitions(untrustedConfig, requestContext) {
939
- const config = validateAdapterConfig$6(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
939
+ const config = validateAdapterConfig$a(untrustedConfig, getActionableListDefinitions_ConfigPropertyNames);
940
940
  // Invalid or incomplete config
941
941
  if (config === null) {
942
942
  return null;
943
943
  }
944
944
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
945
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
945
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
946
946
  };
947
947
 
948
- function validate$h(obj, path = 'ActionableListDefinitionCreateInputRepresentation') {
948
+ function validate$m(obj, path = 'ActionableListDefinitionCreateInputRepresentation') {
949
949
  const v_error = (() => {
950
950
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
951
951
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -997,8 +997,8 @@ function validate$h(obj, path = 'ActionableListDefinitionCreateInputRepresentati
997
997
  return v_error === undefined ? null : v_error;
998
998
  }
999
999
 
1000
- const VERSION$b = "c011e92d9100cd54f4f75b6951999c39";
1001
- function validate$g(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
1000
+ const VERSION$e = "c011e92d9100cd54f4f75b6951999c39";
1001
+ function validate$l(obj, path = 'ActionableListDefinitionStatusOutputRepresentation') {
1002
1002
  const v_error = (() => {
1003
1003
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1004
1004
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1016,10 +1016,10 @@ function validate$g(obj, path = 'ActionableListDefinitionStatusOutputRepresentat
1016
1016
  })();
1017
1017
  return v_error === undefined ? null : v_error;
1018
1018
  }
1019
- const select$h = function ActionableListDefinitionStatusOutputRepresentationSelect() {
1019
+ const select$n = function ActionableListDefinitionStatusOutputRepresentationSelect() {
1020
1020
  return {
1021
1021
  kind: 'Fragment',
1022
- version: VERSION$b,
1022
+ version: VERSION$e,
1023
1023
  private: [],
1024
1024
  selections: [
1025
1025
  {
@@ -1033,7 +1033,7 @@ const select$h = function ActionableListDefinitionStatusOutputRepresentationSele
1033
1033
  ]
1034
1034
  };
1035
1035
  };
1036
- function equals$b(existing, incoming) {
1036
+ function equals$e(existing, incoming) {
1037
1037
  const existing_code = existing.code;
1038
1038
  const incoming_code = incoming.code;
1039
1039
  if (!(existing_code === incoming_code)) {
@@ -1047,16 +1047,16 @@ function equals$b(existing, incoming) {
1047
1047
  return true;
1048
1048
  }
1049
1049
 
1050
- const TTL$5 = 100;
1051
- const VERSION$a = "7f7f8555df2466c8cbc7878266c1decd";
1052
- function validate$f(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
1050
+ const TTL$8 = 100;
1051
+ const VERSION$d = "7f7f8555df2466c8cbc7878266c1decd";
1052
+ function validate$k(obj, path = 'ActionableListDefinitionCreateOutputRepresentation') {
1053
1053
  const v_error = (() => {
1054
1054
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1055
1055
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1056
1056
  }
1057
1057
  const obj_actionableListDefinition = obj.actionableListDefinition;
1058
1058
  const path_actionableListDefinition = path + '.actionableListDefinition';
1059
- const referencepath_actionableListDefinitionValidationError = validate$j(obj_actionableListDefinition, path_actionableListDefinition);
1059
+ const referencepath_actionableListDefinitionValidationError = validate$o(obj_actionableListDefinition, path_actionableListDefinition);
1060
1060
  if (referencepath_actionableListDefinitionValidationError !== null) {
1061
1061
  let message = 'Object doesn\'t match ActionableListDefinitionOutputRepresentation (at "' + path_actionableListDefinition + '")\n';
1062
1062
  message += referencepath_actionableListDefinitionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1064,7 +1064,7 @@ function validate$f(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
1064
1064
  }
1065
1065
  const obj_status = obj.status;
1066
1066
  const path_status = path + '.status';
1067
- const referencepath_statusValidationError = validate$g(obj_status, path_status);
1067
+ const referencepath_statusValidationError = validate$l(obj_status, path_status);
1068
1068
  if (referencepath_statusValidationError !== null) {
1069
1069
  let message = 'Object doesn\'t match ActionableListDefinitionStatusOutputRepresentation (at "' + path_status + '")\n';
1070
1070
  message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1073,25 +1073,25 @@ function validate$f(obj, path = 'ActionableListDefinitionCreateOutputRepresentat
1073
1073
  })();
1074
1074
  return v_error === undefined ? null : v_error;
1075
1075
  }
1076
- const RepresentationType$5 = 'ActionableListDefinitionCreateOutputRepresentation';
1077
- function keyBuilder$7(luvio, config) {
1078
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
1076
+ const RepresentationType$8 = 'ActionableListDefinitionCreateOutputRepresentation';
1077
+ function keyBuilder$e(luvio, config) {
1078
+ return keyPrefix + '::' + RepresentationType$8 + ':' + config.id;
1079
1079
  }
1080
- function keyBuilderFromType$3(luvio, object) {
1080
+ function keyBuilderFromType$5(luvio, object) {
1081
1081
  const keyParams = {
1082
1082
  id: object.actionableListDefinition.id
1083
1083
  };
1084
- return keyBuilder$7(luvio, keyParams);
1084
+ return keyBuilder$e(luvio, keyParams);
1085
1085
  }
1086
- function normalize$5(input, existing, path, luvio, store, timestamp) {
1086
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
1087
1087
  return input;
1088
1088
  }
1089
- const select$g = function ActionableListDefinitionCreateOutputRepresentationSelect() {
1090
- const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$k();
1091
- const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$h();
1089
+ const select$m = function ActionableListDefinitionCreateOutputRepresentationSelect() {
1090
+ const { selections: ActionableListDefinitionOutputRepresentation__selections, opaque: ActionableListDefinitionOutputRepresentation__opaque, } = select$q();
1091
+ const { selections: ActionableListDefinitionStatusOutputRepresentation__selections, opaque: ActionableListDefinitionStatusOutputRepresentation__opaque, } = select$n();
1092
1092
  return {
1093
1093
  kind: 'Fragment',
1094
- version: VERSION$a,
1094
+ version: VERSION$d,
1095
1095
  private: [],
1096
1096
  selections: [
1097
1097
  {
@@ -1107,54 +1107,54 @@ const select$g = function ActionableListDefinitionCreateOutputRepresentationSele
1107
1107
  ]
1108
1108
  };
1109
1109
  };
1110
- function equals$a(existing, incoming) {
1110
+ function equals$d(existing, incoming) {
1111
1111
  const existing_actionableListDefinition = existing.actionableListDefinition;
1112
1112
  const incoming_actionableListDefinition = incoming.actionableListDefinition;
1113
- if (!(equals$d(existing_actionableListDefinition, incoming_actionableListDefinition))) {
1113
+ if (!(equals$g(existing_actionableListDefinition, incoming_actionableListDefinition))) {
1114
1114
  return false;
1115
1115
  }
1116
1116
  const existing_status = existing.status;
1117
1117
  const incoming_status = incoming.status;
1118
- if (!(equals$b(existing_status, incoming_status))) {
1118
+ if (!(equals$e(existing_status, incoming_status))) {
1119
1119
  return false;
1120
1120
  }
1121
1121
  return true;
1122
1122
  }
1123
- const ingest$5 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1123
+ const ingest$8 = function ActionableListDefinitionCreateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1124
1124
  if (process.env.NODE_ENV !== 'production') {
1125
- const validateError = validate$f(input);
1125
+ const validateError = validate$k(input);
1126
1126
  if (validateError !== null) {
1127
1127
  throw validateError;
1128
1128
  }
1129
1129
  }
1130
- const key = keyBuilderFromType$3(luvio, input);
1131
- const ttlToUse = TTL$5;
1132
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "actionablelist", VERSION$a, RepresentationType$5, equals$a);
1130
+ const key = keyBuilderFromType$5(luvio, input);
1131
+ const ttlToUse = TTL$8;
1132
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "actionablelist", VERSION$d, RepresentationType$8, equals$d);
1133
1133
  return createLink(key);
1134
1134
  };
1135
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
1135
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
1136
1136
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1137
- const rootKey = keyBuilderFromType$3(luvio, input);
1137
+ const rootKey = keyBuilderFromType$5(luvio, input);
1138
1138
  rootKeySet.set(rootKey, {
1139
1139
  namespace: keyPrefix,
1140
- representationName: RepresentationType$5,
1140
+ representationName: RepresentationType$8,
1141
1141
  mergeable: false
1142
1142
  });
1143
1143
  }
1144
1144
 
1145
- function select$f(luvio, params) {
1146
- return select$g();
1145
+ function select$l(luvio, params) {
1146
+ return select$m();
1147
1147
  }
1148
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
1149
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
1148
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
1149
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
1150
1150
  }
1151
- function ingestSuccess$5(luvio, resourceParams, response) {
1151
+ function ingestSuccess$8(luvio, resourceParams, response) {
1152
1152
  const { body } = response;
1153
- const key = keyBuilderFromType$3(luvio, body);
1154
- luvio.storeIngest(key, ingest$5, body);
1153
+ const key = keyBuilderFromType$5(luvio, body);
1154
+ luvio.storeIngest(key, ingest$8, body);
1155
1155
  const snapshot = luvio.storeLookup({
1156
1156
  recordId: key,
1157
- node: select$f(),
1157
+ node: select$l(),
1158
1158
  variables: {},
1159
1159
  });
1160
1160
  if (process.env.NODE_ENV !== 'production') {
@@ -1165,7 +1165,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
1165
1165
  deepFreeze(snapshot.data);
1166
1166
  return snapshot;
1167
1167
  }
1168
- function createResourceRequest$5(config) {
1168
+ function createResourceRequest$9(config) {
1169
1169
  const headers = {};
1170
1170
  return {
1171
1171
  baseUri: '/services/data/v60.0',
@@ -1179,45 +1179,45 @@ function createResourceRequest$5(config) {
1179
1179
  };
1180
1180
  }
1181
1181
 
1182
- const adapterName$5 = 'createActionableListDefinition';
1182
+ const adapterName$9 = 'createActionableListDefinition';
1183
1183
  const createActionableListDefinition_ConfigPropertyMetadata = [
1184
1184
  generateParamConfigMetadata('actionableListDefinitionCreateInput', true, 2 /* Body */, 4 /* Unsupported */),
1185
1185
  ];
1186
- const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createActionableListDefinition_ConfigPropertyMetadata);
1187
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(createActionableListDefinition_ConfigPropertyMetadata);
1188
- function typeCheckConfig$5(untrustedConfig) {
1186
+ const createActionableListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, createActionableListDefinition_ConfigPropertyMetadata);
1187
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(createActionableListDefinition_ConfigPropertyMetadata);
1188
+ function typeCheckConfig$9(untrustedConfig) {
1189
1189
  const config = {};
1190
1190
  const untrustedConfig_actionableListDefinitionCreateInput = untrustedConfig.actionableListDefinitionCreateInput;
1191
- const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$h(untrustedConfig_actionableListDefinitionCreateInput);
1191
+ const referenceActionableListDefinitionCreateInputRepresentationValidationError = validate$m(untrustedConfig_actionableListDefinitionCreateInput);
1192
1192
  if (referenceActionableListDefinitionCreateInputRepresentationValidationError === null) {
1193
1193
  config.actionableListDefinitionCreateInput = untrustedConfig_actionableListDefinitionCreateInput;
1194
1194
  }
1195
1195
  return config;
1196
1196
  }
1197
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
1197
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
1198
1198
  if (!untrustedIsObject(untrustedConfig)) {
1199
1199
  return null;
1200
1200
  }
1201
1201
  if (process.env.NODE_ENV !== 'production') {
1202
1202
  validateConfig(untrustedConfig, configPropertyNames);
1203
1203
  }
1204
- const config = typeCheckConfig$5(untrustedConfig);
1204
+ const config = typeCheckConfig$9(untrustedConfig);
1205
1205
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1206
1206
  return null;
1207
1207
  }
1208
1208
  return config;
1209
1209
  }
1210
- function buildNetworkSnapshot$5(luvio, config, options) {
1211
- const resourceParams = createResourceParams$5(config);
1212
- const request = createResourceRequest$5(resourceParams);
1210
+ function buildNetworkSnapshot$9(luvio, config, options) {
1211
+ const resourceParams = createResourceParams$9(config);
1212
+ const request = createResourceRequest$9(resourceParams);
1213
1213
  return luvio.dispatchResourceRequest(request, options)
1214
1214
  .then((response) => {
1215
1215
  return luvio.handleSuccessResponse(() => {
1216
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
1216
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
1217
1217
  return luvio.storeBroadcast().then(() => snapshot);
1218
1218
  }, () => {
1219
1219
  const cache = new StoreKeyMap();
1220
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
1220
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
1221
1221
  return cache;
1222
1222
  });
1223
1223
  }, (response) => {
@@ -1227,16 +1227,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
1227
1227
  }
1228
1228
  const createActionableListDefinitionAdapterFactory = (luvio) => {
1229
1229
  return function createActionableListDefinition(untrustedConfig) {
1230
- const config = validateAdapterConfig$5(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
1230
+ const config = validateAdapterConfig$9(untrustedConfig, createActionableListDefinition_ConfigPropertyNames);
1231
1231
  // Invalid or incomplete config
1232
1232
  if (config === null) {
1233
1233
  throw new Error('Invalid config for "createActionableListDefinition"');
1234
1234
  }
1235
- return buildNetworkSnapshot$5(luvio, config);
1235
+ return buildNetworkSnapshot$9(luvio, config);
1236
1236
  };
1237
1237
  };
1238
1238
 
1239
- function validate$e(obj, path = 'ActionableListColumnUserInputRepresentation') {
1239
+ function validate$j(obj, path = 'ActionableListColumnUserInputRepresentation') {
1240
1240
  const v_error = (() => {
1241
1241
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1242
1242
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1283,7 +1283,7 @@ function validate$e(obj, path = 'ActionableListColumnUserInputRepresentation') {
1283
1283
  return v_error === undefined ? null : v_error;
1284
1284
  }
1285
1285
 
1286
- function validate$d(obj, path = 'ActionableListColumnsUserUpsertInputRepresentation') {
1286
+ function validate$i(obj, path = 'ActionableListColumnsUserUpsertInputRepresentation') {
1287
1287
  const v_error = (() => {
1288
1288
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1289
1289
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1296,7 +1296,7 @@ function validate$d(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
1296
1296
  for (let i = 0; i < obj_actionableListDatasetColumnUserPrefList.length; i++) {
1297
1297
  const obj_actionableListDatasetColumnUserPrefList_item = obj_actionableListDatasetColumnUserPrefList[i];
1298
1298
  const path_actionableListDatasetColumnUserPrefList_item = path_actionableListDatasetColumnUserPrefList + '[' + i + ']';
1299
- const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$e(obj_actionableListDatasetColumnUserPrefList_item, path_actionableListDatasetColumnUserPrefList_item);
1299
+ const referencepath_actionableListDatasetColumnUserPrefList_itemValidationError = validate$j(obj_actionableListDatasetColumnUserPrefList_item, path_actionableListDatasetColumnUserPrefList_item);
1300
1300
  if (referencepath_actionableListDatasetColumnUserPrefList_itemValidationError !== null) {
1301
1301
  let message = 'Object doesn\'t match ActionableListColumnUserInputRepresentation (at "' + path_actionableListDatasetColumnUserPrefList_item + '")\n';
1302
1302
  message += referencepath_actionableListDatasetColumnUserPrefList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1307,9 +1307,9 @@ function validate$d(obj, path = 'ActionableListColumnsUserUpsertInputRepresentat
1307
1307
  return v_error === undefined ? null : v_error;
1308
1308
  }
1309
1309
 
1310
- const TTL$4 = 5000;
1311
- const VERSION$9 = "9a39093642c984addcbd6425bb594898";
1312
- function validate$c(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
1310
+ const TTL$7 = 5000;
1311
+ const VERSION$c = "9a39093642c984addcbd6425bb594898";
1312
+ function validate$h(obj, path = 'ActionableListColumnsUserOutputRepresentation') {
1313
1313
  const v_error = (() => {
1314
1314
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1315
1315
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1395,23 +1395,23 @@ function validate$c(obj, path = 'ActionableListColumnsUserOutputRepresentation')
1395
1395
  })();
1396
1396
  return v_error === undefined ? null : v_error;
1397
1397
  }
1398
- const RepresentationType$4 = 'ActionableListColumnsUserOutputRepresentation';
1399
- function keyBuilder$6(luvio, config) {
1400
- return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
1398
+ const RepresentationType$7 = 'ActionableListColumnsUserOutputRepresentation';
1399
+ function keyBuilder$d(luvio, config) {
1400
+ return keyPrefix + '::' + RepresentationType$7 + ':' + (config.id === null ? '' : config.id);
1401
1401
  }
1402
- function keyBuilderFromType$2(luvio, object) {
1402
+ function keyBuilderFromType$4(luvio, object) {
1403
1403
  const keyParams = {
1404
1404
  id: object.id
1405
1405
  };
1406
- return keyBuilder$6(luvio, keyParams);
1406
+ return keyBuilder$d(luvio, keyParams);
1407
1407
  }
1408
- function normalize$4(input, existing, path, luvio, store, timestamp) {
1408
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
1409
1409
  return input;
1410
1410
  }
1411
- const select$e = function ActionableListColumnsUserOutputRepresentationSelect() {
1411
+ const select$k = function ActionableListColumnsUserOutputRepresentationSelect() {
1412
1412
  return {
1413
1413
  kind: 'Fragment',
1414
- version: VERSION$9,
1414
+ version: VERSION$c,
1415
1415
  private: [],
1416
1416
  selections: [
1417
1417
  {
@@ -1429,7 +1429,7 @@ const select$e = function ActionableListColumnsUserOutputRepresentationSelect()
1429
1429
  ]
1430
1430
  };
1431
1431
  };
1432
- function equals$9(existing, incoming) {
1432
+ function equals$c(existing, incoming) {
1433
1433
  const existing_errorMessage = existing.errorMessage;
1434
1434
  const incoming_errorMessage = incoming.errorMessage;
1435
1435
  if (!(existing_errorMessage === incoming_errorMessage)) {
@@ -1447,41 +1447,41 @@ function equals$9(existing, incoming) {
1447
1447
  }
1448
1448
  return true;
1449
1449
  }
1450
- const ingest$4 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1450
+ const ingest$7 = function ActionableListColumnsUserOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1451
1451
  if (process.env.NODE_ENV !== 'production') {
1452
- const validateError = validate$c(input);
1452
+ const validateError = validate$h(input);
1453
1453
  if (validateError !== null) {
1454
1454
  throw validateError;
1455
1455
  }
1456
1456
  }
1457
- const key = keyBuilderFromType$2(luvio, input);
1458
- const ttlToUse = TTL$4;
1459
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "actionablelist", VERSION$9, RepresentationType$4, equals$9);
1457
+ const key = keyBuilderFromType$4(luvio, input);
1458
+ const ttlToUse = TTL$7;
1459
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "actionablelist", VERSION$c, RepresentationType$7, equals$c);
1460
1460
  return createLink(key);
1461
1461
  };
1462
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
1462
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
1463
1463
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1464
- const rootKey = keyBuilderFromType$2(luvio, input);
1464
+ const rootKey = keyBuilderFromType$4(luvio, input);
1465
1465
  rootKeySet.set(rootKey, {
1466
1466
  namespace: keyPrefix,
1467
- representationName: RepresentationType$4,
1467
+ representationName: RepresentationType$7,
1468
1468
  mergeable: false
1469
1469
  });
1470
1470
  }
1471
1471
 
1472
- function select$d(luvio, params) {
1473
- return select$e();
1472
+ function select$j(luvio, params) {
1473
+ return select$k();
1474
1474
  }
1475
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
1476
- getTypeCacheKeys$4(storeKeyMap, luvio, response);
1475
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
1476
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
1477
1477
  }
1478
- function ingestSuccess$4(luvio, resourceParams, response) {
1478
+ function ingestSuccess$7(luvio, resourceParams, response) {
1479
1479
  const { body } = response;
1480
- const key = keyBuilderFromType$2(luvio, body);
1481
- luvio.storeIngest(key, ingest$4, body);
1480
+ const key = keyBuilderFromType$4(luvio, body);
1481
+ luvio.storeIngest(key, ingest$7, body);
1482
1482
  const snapshot = luvio.storeLookup({
1483
1483
  recordId: key,
1484
- node: select$d(),
1484
+ node: select$j(),
1485
1485
  variables: {},
1486
1486
  });
1487
1487
  if (process.env.NODE_ENV !== 'production') {
@@ -1492,7 +1492,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
1492
1492
  deepFreeze(snapshot.data);
1493
1493
  return snapshot;
1494
1494
  }
1495
- function createResourceRequest$4(config) {
1495
+ function createResourceRequest$8(config) {
1496
1496
  const headers = {};
1497
1497
  return {
1498
1498
  baseUri: '/services/data/v60.0',
@@ -1506,45 +1506,45 @@ function createResourceRequest$4(config) {
1506
1506
  };
1507
1507
  }
1508
1508
 
1509
- const adapterName$4 = 'upsertActionableListDatasetColumnUser';
1509
+ const adapterName$8 = 'upsertActionableListDatasetColumnUser';
1510
1510
  const upsertActionableListDatasetColumnUser_ConfigPropertyMetadata = [
1511
1511
  generateParamConfigMetadata('actionableListDatasetColumnUserPreferencesUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
1512
1512
  ];
1513
- const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
1514
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
1515
- function typeCheckConfig$4(untrustedConfig) {
1513
+ const upsertActionableListDatasetColumnUser_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
1514
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(upsertActionableListDatasetColumnUser_ConfigPropertyMetadata);
1515
+ function typeCheckConfig$8(untrustedConfig) {
1516
1516
  const config = {};
1517
1517
  const untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig.actionableListDatasetColumnUserPreferencesUpsertInput;
1518
- const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$d(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
1518
+ const referenceActionableListColumnsUserUpsertInputRepresentationValidationError = validate$i(untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput);
1519
1519
  if (referenceActionableListColumnsUserUpsertInputRepresentationValidationError === null) {
1520
1520
  config.actionableListDatasetColumnUserPreferencesUpsertInput = untrustedConfig_actionableListDatasetColumnUserPreferencesUpsertInput;
1521
1521
  }
1522
1522
  return config;
1523
1523
  }
1524
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
1524
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
1525
1525
  if (!untrustedIsObject(untrustedConfig)) {
1526
1526
  return null;
1527
1527
  }
1528
1528
  if (process.env.NODE_ENV !== 'production') {
1529
1529
  validateConfig(untrustedConfig, configPropertyNames);
1530
1530
  }
1531
- const config = typeCheckConfig$4(untrustedConfig);
1531
+ const config = typeCheckConfig$8(untrustedConfig);
1532
1532
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1533
1533
  return null;
1534
1534
  }
1535
1535
  return config;
1536
1536
  }
1537
- function buildNetworkSnapshot$4(luvio, config, options) {
1538
- const resourceParams = createResourceParams$4(config);
1539
- const request = createResourceRequest$4(resourceParams);
1537
+ function buildNetworkSnapshot$8(luvio, config, options) {
1538
+ const resourceParams = createResourceParams$8(config);
1539
+ const request = createResourceRequest$8(resourceParams);
1540
1540
  return luvio.dispatchResourceRequest(request, options)
1541
1541
  .then((response) => {
1542
1542
  return luvio.handleSuccessResponse(() => {
1543
- const snapshot = ingestSuccess$4(luvio, resourceParams, response);
1543
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
1544
1544
  return luvio.storeBroadcast().then(() => snapshot);
1545
1545
  }, () => {
1546
1546
  const cache = new StoreKeyMap();
1547
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
1547
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
1548
1548
  return cache;
1549
1549
  });
1550
1550
  }, (response) => {
@@ -1554,36 +1554,17 @@ function buildNetworkSnapshot$4(luvio, config, options) {
1554
1554
  }
1555
1555
  const upsertActionableListDatasetColumnUserAdapterFactory = (luvio) => {
1556
1556
  return function upsertActionableListDatasetColumnUser(untrustedConfig) {
1557
- const config = validateAdapterConfig$4(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
1557
+ const config = validateAdapterConfig$8(untrustedConfig, upsertActionableListDatasetColumnUser_ConfigPropertyNames);
1558
1558
  // Invalid or incomplete config
1559
1559
  if (config === null) {
1560
1560
  throw new Error('Invalid config for "upsertActionableListDatasetColumnUser"');
1561
1561
  }
1562
- return buildNetworkSnapshot$4(luvio, config);
1562
+ return buildNetworkSnapshot$8(luvio, config);
1563
1563
  };
1564
1564
  };
1565
1565
 
1566
- function validate$b(obj, path = 'ActionableListRefreshInputRepresentation') {
1567
- const v_error = (() => {
1568
- if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1569
- return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1570
- }
1571
- const obj_actionableListDefinitionId = obj.actionableListDefinitionId;
1572
- const path_actionableListDefinitionId = path + '.actionableListDefinitionId';
1573
- if (typeof obj_actionableListDefinitionId !== 'string') {
1574
- return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId + '" (at "' + path_actionableListDefinitionId + '")');
1575
- }
1576
- const obj_actionableListId = obj.actionableListId;
1577
- const path_actionableListId = path + '.actionableListId';
1578
- if (typeof obj_actionableListId !== 'string') {
1579
- return new TypeError('Expected "string" but received "' + typeof obj_actionableListId + '" (at "' + path_actionableListId + '")');
1580
- }
1581
- })();
1582
- return v_error === undefined ? null : v_error;
1583
- }
1584
-
1585
- const VERSION$8 = "bad75ff1a6600988b043c5bd86a36316";
1586
- function validate$a(obj, path = 'ActionableListRefreshFilterConditionOutputRepresentation') {
1566
+ const VERSION$b = "bad75ff1a6600988b043c5bd86a36316";
1567
+ function validate$g(obj, path = 'ActionableListRefreshFilterConditionOutputRepresentation') {
1587
1568
  const v_error = (() => {
1588
1569
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1589
1570
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1721,10 +1702,10 @@ function validate$a(obj, path = 'ActionableListRefreshFilterConditionOutputRepre
1721
1702
  })();
1722
1703
  return v_error === undefined ? null : v_error;
1723
1704
  }
1724
- const select$c = function ActionableListRefreshFilterConditionOutputRepresentationSelect() {
1705
+ const select$i = function ActionableListRefreshFilterConditionOutputRepresentationSelect() {
1725
1706
  return {
1726
1707
  kind: 'Fragment',
1727
- version: VERSION$8,
1708
+ version: VERSION$b,
1728
1709
  private: [],
1729
1710
  selections: [
1730
1711
  {
@@ -1750,7 +1731,7 @@ const select$c = function ActionableListRefreshFilterConditionOutputRepresentati
1750
1731
  ]
1751
1732
  };
1752
1733
  };
1753
- function equals$8(existing, incoming) {
1734
+ function equals$b(existing, incoming) {
1754
1735
  const existing_columnName = existing.columnName;
1755
1736
  const incoming_columnName = incoming.columnName;
1756
1737
  if (!(existing_columnName === incoming_columnName)) {
@@ -1779,6 +1760,1276 @@ function equals$8(existing, incoming) {
1779
1760
  return true;
1780
1761
  }
1781
1762
 
1763
+ const TTL$6 = 5000;
1764
+ const VERSION$a = "9380a061b11e14a513ad18137293e8a5";
1765
+ function validate$f(obj, path = 'ActionableListFilterTemplateOutputRepresentation') {
1766
+ const v_error = (() => {
1767
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1768
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1769
+ }
1770
+ const obj_description = obj.description;
1771
+ const path_description = path + '.description';
1772
+ let obj_description_union0 = null;
1773
+ const obj_description_union0_error = (() => {
1774
+ if (typeof obj_description !== 'string') {
1775
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1776
+ }
1777
+ })();
1778
+ if (obj_description_union0_error != null) {
1779
+ obj_description_union0 = obj_description_union0_error.message;
1780
+ }
1781
+ let obj_description_union1 = null;
1782
+ const obj_description_union1_error = (() => {
1783
+ if (obj_description !== null) {
1784
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
1785
+ }
1786
+ })();
1787
+ if (obj_description_union1_error != null) {
1788
+ obj_description_union1 = obj_description_union1_error.message;
1789
+ }
1790
+ if (obj_description_union0 && obj_description_union1) {
1791
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
1792
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
1793
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
1794
+ return new TypeError(message);
1795
+ }
1796
+ const obj_filterList = obj.filterList;
1797
+ const path_filterList = path + '.filterList';
1798
+ if (!ArrayIsArray(obj_filterList)) {
1799
+ return new TypeError('Expected "array" but received "' + typeof obj_filterList + '" (at "' + path_filterList + '")');
1800
+ }
1801
+ for (let i = 0; i < obj_filterList.length; i++) {
1802
+ const obj_filterList_item = obj_filterList[i];
1803
+ const path_filterList_item = path_filterList + '[' + i + ']';
1804
+ let obj_filterList_item_union0 = null;
1805
+ const obj_filterList_item_union0_error = (() => {
1806
+ const referencepath_filterList_itemValidationError = validate$g(obj_filterList_item, path_filterList_item);
1807
+ if (referencepath_filterList_itemValidationError !== null) {
1808
+ let message = 'Object doesn\'t match ActionableListRefreshFilterConditionOutputRepresentation (at "' + path_filterList_item + '")\n';
1809
+ message += referencepath_filterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
1810
+ return new TypeError(message);
1811
+ }
1812
+ })();
1813
+ if (obj_filterList_item_union0_error != null) {
1814
+ obj_filterList_item_union0 = obj_filterList_item_union0_error.message;
1815
+ }
1816
+ let obj_filterList_item_union1 = null;
1817
+ const obj_filterList_item_union1_error = (() => {
1818
+ if (obj_filterList_item !== null) {
1819
+ return new TypeError('Expected "null" but received "' + typeof obj_filterList_item + '" (at "' + path_filterList_item + '")');
1820
+ }
1821
+ })();
1822
+ if (obj_filterList_item_union1_error != null) {
1823
+ obj_filterList_item_union1 = obj_filterList_item_union1_error.message;
1824
+ }
1825
+ if (obj_filterList_item_union0 && obj_filterList_item_union1) {
1826
+ let message = 'Object doesn\'t match union (at "' + path_filterList_item + '")';
1827
+ message += '\n' + obj_filterList_item_union0.split('\n').map((line) => '\t' + line).join('\n');
1828
+ message += '\n' + obj_filterList_item_union1.split('\n').map((line) => '\t' + line).join('\n');
1829
+ return new TypeError(message);
1830
+ }
1831
+ }
1832
+ const obj_filterLogic = obj.filterLogic;
1833
+ const path_filterLogic = path + '.filterLogic';
1834
+ let obj_filterLogic_union0 = null;
1835
+ const obj_filterLogic_union0_error = (() => {
1836
+ if (typeof obj_filterLogic !== 'string') {
1837
+ return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
1838
+ }
1839
+ })();
1840
+ if (obj_filterLogic_union0_error != null) {
1841
+ obj_filterLogic_union0 = obj_filterLogic_union0_error.message;
1842
+ }
1843
+ let obj_filterLogic_union1 = null;
1844
+ const obj_filterLogic_union1_error = (() => {
1845
+ if (obj_filterLogic !== null) {
1846
+ return new TypeError('Expected "null" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
1847
+ }
1848
+ })();
1849
+ if (obj_filterLogic_union1_error != null) {
1850
+ obj_filterLogic_union1 = obj_filterLogic_union1_error.message;
1851
+ }
1852
+ if (obj_filterLogic_union0 && obj_filterLogic_union1) {
1853
+ let message = 'Object doesn\'t match union (at "' + path_filterLogic + '")';
1854
+ message += '\n' + obj_filterLogic_union0.split('\n').map((line) => '\t' + line).join('\n');
1855
+ message += '\n' + obj_filterLogic_union1.split('\n').map((line) => '\t' + line).join('\n');
1856
+ return new TypeError(message);
1857
+ }
1858
+ const obj_id = obj.id;
1859
+ const path_id = path + '.id';
1860
+ if (typeof obj_id !== 'string') {
1861
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
1862
+ }
1863
+ const obj_sharingType = obj.sharingType;
1864
+ const path_sharingType = path + '.sharingType';
1865
+ if (typeof obj_sharingType !== 'string') {
1866
+ return new TypeError('Expected "string" but received "' + typeof obj_sharingType + '" (at "' + path_sharingType + '")');
1867
+ }
1868
+ const obj_templateName = obj.templateName;
1869
+ const path_templateName = path + '.templateName';
1870
+ if (typeof obj_templateName !== 'string') {
1871
+ return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
1872
+ }
1873
+ })();
1874
+ return v_error === undefined ? null : v_error;
1875
+ }
1876
+ const RepresentationType$6 = 'ActionableListFilterTemplateOutputRepresentation';
1877
+ function keyBuilder$c(luvio, config) {
1878
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
1879
+ }
1880
+ function keyBuilderFromType$3(luvio, object) {
1881
+ const keyParams = {
1882
+ id: object.id
1883
+ };
1884
+ return keyBuilder$c(luvio, keyParams);
1885
+ }
1886
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
1887
+ return input;
1888
+ }
1889
+ const select$h = function ActionableListFilterTemplateOutputRepresentationSelect() {
1890
+ const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$i();
1891
+ return {
1892
+ kind: 'Fragment',
1893
+ version: VERSION$a,
1894
+ private: [],
1895
+ selections: [
1896
+ {
1897
+ name: 'description',
1898
+ kind: 'Scalar'
1899
+ },
1900
+ {
1901
+ name: 'filterList',
1902
+ kind: 'Object',
1903
+ nullable: true,
1904
+ plural: true,
1905
+ selections: ActionableListRefreshFilterConditionOutputRepresentation__selections
1906
+ },
1907
+ {
1908
+ name: 'filterLogic',
1909
+ kind: 'Scalar'
1910
+ },
1911
+ {
1912
+ name: 'id',
1913
+ kind: 'Scalar'
1914
+ },
1915
+ {
1916
+ name: 'sharingType',
1917
+ kind: 'Scalar'
1918
+ },
1919
+ {
1920
+ name: 'templateName',
1921
+ kind: 'Scalar'
1922
+ }
1923
+ ]
1924
+ };
1925
+ };
1926
+ function equals$a(existing, incoming) {
1927
+ const existing_id = existing.id;
1928
+ const incoming_id = incoming.id;
1929
+ if (!(existing_id === incoming_id)) {
1930
+ return false;
1931
+ }
1932
+ const existing_sharingType = existing.sharingType;
1933
+ const incoming_sharingType = incoming.sharingType;
1934
+ if (!(existing_sharingType === incoming_sharingType)) {
1935
+ return false;
1936
+ }
1937
+ const existing_templateName = existing.templateName;
1938
+ const incoming_templateName = incoming.templateName;
1939
+ if (!(existing_templateName === incoming_templateName)) {
1940
+ return false;
1941
+ }
1942
+ const existing_description = existing.description;
1943
+ const incoming_description = incoming.description;
1944
+ if (!(existing_description === incoming_description)) {
1945
+ return false;
1946
+ }
1947
+ const existing_filterList = existing.filterList;
1948
+ const incoming_filterList = incoming.filterList;
1949
+ const equals_filterList_items = equalsArray(existing_filterList, incoming_filterList, (existing_filterList_item, incoming_filterList_item) => {
1950
+ if (!(existing_filterList_item === incoming_filterList_item
1951
+ || (existing_filterList_item != null &&
1952
+ incoming_filterList_item != null &&
1953
+ equals$b(existing_filterList_item, incoming_filterList_item)))) {
1954
+ return false;
1955
+ }
1956
+ });
1957
+ if (equals_filterList_items === false) {
1958
+ return false;
1959
+ }
1960
+ const existing_filterLogic = existing.filterLogic;
1961
+ const incoming_filterLogic = incoming.filterLogic;
1962
+ if (!(existing_filterLogic === incoming_filterLogic)) {
1963
+ return false;
1964
+ }
1965
+ return true;
1966
+ }
1967
+ const ingest$6 = function ActionableListFilterTemplateOutputRepresentationIngest(input, path, luvio, store, timestamp) {
1968
+ if (process.env.NODE_ENV !== 'production') {
1969
+ const validateError = validate$f(input);
1970
+ if (validateError !== null) {
1971
+ throw validateError;
1972
+ }
1973
+ }
1974
+ const key = keyBuilderFromType$3(luvio, input);
1975
+ const ttlToUse = TTL$6;
1976
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "actionablelist", VERSION$a, RepresentationType$6, equals$a);
1977
+ return createLink(key);
1978
+ };
1979
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
1980
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
1981
+ const rootKey = keyBuilderFromType$3(luvio, input);
1982
+ rootKeySet.set(rootKey, {
1983
+ namespace: keyPrefix,
1984
+ representationName: RepresentationType$6,
1985
+ mergeable: false
1986
+ });
1987
+ }
1988
+
1989
+ const TTL$5 = 5000;
1990
+ const VERSION$9 = "1e66eb919610ba591f0e8168462a1df1";
1991
+ function validate$e(obj, path = 'ActionableListFilterTemplateListOutputRepresentation') {
1992
+ const v_error = (() => {
1993
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1994
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
1995
+ }
1996
+ const obj_actionableListDefinitionId = obj.actionableListDefinitionId;
1997
+ const path_actionableListDefinitionId = path + '.actionableListDefinitionId';
1998
+ if (typeof obj_actionableListDefinitionId !== 'string') {
1999
+ return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId + '" (at "' + path_actionableListDefinitionId + '")');
2000
+ }
2001
+ const obj_filterTemplates = obj.filterTemplates;
2002
+ const path_filterTemplates = path + '.filterTemplates';
2003
+ if (!ArrayIsArray(obj_filterTemplates)) {
2004
+ return new TypeError('Expected "array" but received "' + typeof obj_filterTemplates + '" (at "' + path_filterTemplates + '")');
2005
+ }
2006
+ for (let i = 0; i < obj_filterTemplates.length; i++) {
2007
+ const obj_filterTemplates_item = obj_filterTemplates[i];
2008
+ const path_filterTemplates_item = path_filterTemplates + '[' + i + ']';
2009
+ if (typeof obj_filterTemplates_item !== 'object') {
2010
+ return new TypeError('Expected "object" but received "' + typeof obj_filterTemplates_item + '" (at "' + path_filterTemplates_item + '")');
2011
+ }
2012
+ }
2013
+ })();
2014
+ return v_error === undefined ? null : v_error;
2015
+ }
2016
+ const RepresentationType$5 = 'ActionableListFilterTemplateListOutputRepresentation';
2017
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
2018
+ const input_filterTemplates = input.filterTemplates;
2019
+ const input_filterTemplates_id = path.fullPath + '__filterTemplates';
2020
+ for (let i = 0; i < input_filterTemplates.length; i++) {
2021
+ const input_filterTemplates_item = input_filterTemplates[i];
2022
+ let input_filterTemplates_item_id = input_filterTemplates_id + '__' + i;
2023
+ input_filterTemplates[i] = ingest$6(input_filterTemplates_item, {
2024
+ fullPath: input_filterTemplates_item_id,
2025
+ propertyName: i,
2026
+ parent: {
2027
+ data: input,
2028
+ key: path.fullPath,
2029
+ existing: existing,
2030
+ },
2031
+ ttl: path.ttl
2032
+ }, luvio, store, timestamp);
2033
+ }
2034
+ return input;
2035
+ }
2036
+ const select$g = function ActionableListFilterTemplateListOutputRepresentationSelect() {
2037
+ return {
2038
+ kind: 'Fragment',
2039
+ version: VERSION$9,
2040
+ private: [],
2041
+ selections: [
2042
+ {
2043
+ name: 'actionableListDefinitionId',
2044
+ kind: 'Scalar'
2045
+ },
2046
+ {
2047
+ name: 'filterTemplates',
2048
+ kind: 'Link',
2049
+ plural: true,
2050
+ fragment: select$h()
2051
+ }
2052
+ ]
2053
+ };
2054
+ };
2055
+ function equals$9(existing, incoming) {
2056
+ const existing_actionableListDefinitionId = existing.actionableListDefinitionId;
2057
+ const incoming_actionableListDefinitionId = incoming.actionableListDefinitionId;
2058
+ if (!(existing_actionableListDefinitionId === incoming_actionableListDefinitionId)) {
2059
+ return false;
2060
+ }
2061
+ const existing_filterTemplates = existing.filterTemplates;
2062
+ const incoming_filterTemplates = incoming.filterTemplates;
2063
+ const equals_filterTemplates_items = equalsArray(existing_filterTemplates, incoming_filterTemplates, (existing_filterTemplates_item, incoming_filterTemplates_item) => {
2064
+ if (!(existing_filterTemplates_item.__ref === incoming_filterTemplates_item.__ref)) {
2065
+ return false;
2066
+ }
2067
+ });
2068
+ if (equals_filterTemplates_items === false) {
2069
+ return false;
2070
+ }
2071
+ return true;
2072
+ }
2073
+ const ingest$5 = function ActionableListFilterTemplateListOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2074
+ if (process.env.NODE_ENV !== 'production') {
2075
+ const validateError = validate$e(input);
2076
+ if (validateError !== null) {
2077
+ throw validateError;
2078
+ }
2079
+ }
2080
+ const key = path.fullPath;
2081
+ const ttlToUse = TTL$5;
2082
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "actionablelist", VERSION$9, RepresentationType$5, equals$9);
2083
+ return createLink(key);
2084
+ };
2085
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
2086
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2087
+ const rootKey = fullPathFactory();
2088
+ rootKeySet.set(rootKey, {
2089
+ namespace: keyPrefix,
2090
+ representationName: RepresentationType$5,
2091
+ mergeable: false
2092
+ });
2093
+ const input_filterTemplates_length = input.filterTemplates.length;
2094
+ for (let i = 0; i < input_filterTemplates_length; i++) {
2095
+ getTypeCacheKeys$6(rootKeySet, luvio, input.filterTemplates[i]);
2096
+ }
2097
+ }
2098
+
2099
+ function select$f(luvio, params) {
2100
+ return select$g();
2101
+ }
2102
+ function keyBuilder$b(luvio, params) {
2103
+ return keyPrefix + '::ActionableListFilterTemplateListOutputRepresentation:(' + 'actionableListDefinitionId:' + params.queryParams.actionableListDefinitionId + ')';
2104
+ }
2105
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
2106
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$b(luvio, resourceParams));
2107
+ }
2108
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
2109
+ const { body } = response;
2110
+ const key = keyBuilder$b(luvio, resourceParams);
2111
+ luvio.storeIngest(key, ingest$5, body);
2112
+ const snapshot = luvio.storeLookup({
2113
+ recordId: key,
2114
+ node: select$f(),
2115
+ variables: {},
2116
+ }, snapshotRefresh);
2117
+ if (process.env.NODE_ENV !== 'production') {
2118
+ if (snapshot.state !== 'Fulfilled') {
2119
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2120
+ }
2121
+ }
2122
+ deepFreeze(snapshot.data);
2123
+ return snapshot;
2124
+ }
2125
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
2126
+ const key = keyBuilder$b(luvio, params);
2127
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2128
+ const storeMetadataParams = {
2129
+ ttl: TTL$5,
2130
+ namespace: keyPrefix,
2131
+ version: VERSION$9,
2132
+ representationName: RepresentationType$5
2133
+ };
2134
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2135
+ return errorSnapshot;
2136
+ }
2137
+ function createResourceRequest$7(config) {
2138
+ const headers = {};
2139
+ return {
2140
+ baseUri: '/services/data/v60.0',
2141
+ basePath: '/connect/get-actionable-list-def-filters',
2142
+ method: 'get',
2143
+ body: null,
2144
+ urlParams: {},
2145
+ queryParams: config.queryParams,
2146
+ headers,
2147
+ priority: 'normal',
2148
+ };
2149
+ }
2150
+
2151
+ const adapterName$7 = 'getFilterTemplatesForListDefinition';
2152
+ const getFilterTemplatesForListDefinition_ConfigPropertyMetadata = [
2153
+ generateParamConfigMetadata('actionableListDefinitionId', false, 1 /* QueryParameter */, 0 /* String */),
2154
+ ];
2155
+ const getFilterTemplatesForListDefinition_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
2156
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
2157
+ function keyBuilder$a(luvio, config) {
2158
+ const resourceParams = createResourceParams$7(config);
2159
+ return keyBuilder$b(luvio, resourceParams);
2160
+ }
2161
+ function typeCheckConfig$7(untrustedConfig) {
2162
+ const config = {};
2163
+ typeCheckConfig$b(untrustedConfig, config, getFilterTemplatesForListDefinition_ConfigPropertyMetadata);
2164
+ return config;
2165
+ }
2166
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
2167
+ if (!untrustedIsObject(untrustedConfig)) {
2168
+ return null;
2169
+ }
2170
+ if (process.env.NODE_ENV !== 'production') {
2171
+ validateConfig(untrustedConfig, configPropertyNames);
2172
+ }
2173
+ const config = typeCheckConfig$7(untrustedConfig);
2174
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2175
+ return null;
2176
+ }
2177
+ return config;
2178
+ }
2179
+ function adapterFragment$3(luvio, config) {
2180
+ createResourceParams$7(config);
2181
+ return select$f();
2182
+ }
2183
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
2184
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
2185
+ config,
2186
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2187
+ });
2188
+ return luvio.storeBroadcast().then(() => snapshot);
2189
+ }
2190
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
2191
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
2192
+ config,
2193
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2194
+ });
2195
+ return luvio.storeBroadcast().then(() => snapshot);
2196
+ }
2197
+ function buildNetworkSnapshot$7(luvio, config, options) {
2198
+ const resourceParams = createResourceParams$7(config);
2199
+ const request = createResourceRequest$7(resourceParams);
2200
+ return luvio.dispatchResourceRequest(request, options)
2201
+ .then((response) => {
2202
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
2203
+ const cache = new StoreKeyMap();
2204
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
2205
+ return cache;
2206
+ });
2207
+ }, (response) => {
2208
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
2209
+ });
2210
+ }
2211
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
2212
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
2213
+ }
2214
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
2215
+ const { luvio, config } = context;
2216
+ const selector = {
2217
+ recordId: keyBuilder$a(luvio, config),
2218
+ node: adapterFragment$3(luvio, config),
2219
+ variables: {},
2220
+ };
2221
+ const cacheSnapshot = storeLookup(selector, {
2222
+ config,
2223
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
2224
+ });
2225
+ return cacheSnapshot;
2226
+ }
2227
+ const getFilterTemplatesForListDefinitionAdapterFactory = (luvio) => function actionablelist__getFilterTemplatesForListDefinition(untrustedConfig, requestContext) {
2228
+ const config = validateAdapterConfig$7(untrustedConfig, getFilterTemplatesForListDefinition_ConfigPropertyNames);
2229
+ // Invalid or incomplete config
2230
+ if (config === null) {
2231
+ return null;
2232
+ }
2233
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2234
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
2235
+ };
2236
+
2237
+ function validate$d(obj, path = 'ActionableListFilterInputRepresentation') {
2238
+ const v_error = (() => {
2239
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2240
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2241
+ }
2242
+ if (obj.columnId !== undefined) {
2243
+ const obj_columnId = obj.columnId;
2244
+ const path_columnId = path + '.columnId';
2245
+ let obj_columnId_union0 = null;
2246
+ const obj_columnId_union0_error = (() => {
2247
+ if (typeof obj_columnId !== 'string') {
2248
+ return new TypeError('Expected "string" but received "' + typeof obj_columnId + '" (at "' + path_columnId + '")');
2249
+ }
2250
+ })();
2251
+ if (obj_columnId_union0_error != null) {
2252
+ obj_columnId_union0 = obj_columnId_union0_error.message;
2253
+ }
2254
+ let obj_columnId_union1 = null;
2255
+ const obj_columnId_union1_error = (() => {
2256
+ if (obj_columnId !== null) {
2257
+ return new TypeError('Expected "null" but received "' + typeof obj_columnId + '" (at "' + path_columnId + '")');
2258
+ }
2259
+ })();
2260
+ if (obj_columnId_union1_error != null) {
2261
+ obj_columnId_union1 = obj_columnId_union1_error.message;
2262
+ }
2263
+ if (obj_columnId_union0 && obj_columnId_union1) {
2264
+ let message = 'Object doesn\'t match union (at "' + path_columnId + '")';
2265
+ message += '\n' + obj_columnId_union0.split('\n').map((line) => '\t' + line).join('\n');
2266
+ message += '\n' + obj_columnId_union1.split('\n').map((line) => '\t' + line).join('\n');
2267
+ return new TypeError(message);
2268
+ }
2269
+ }
2270
+ if (obj.columnName !== undefined) {
2271
+ const obj_columnName = obj.columnName;
2272
+ const path_columnName = path + '.columnName';
2273
+ let obj_columnName_union0 = null;
2274
+ const obj_columnName_union0_error = (() => {
2275
+ if (typeof obj_columnName !== 'string') {
2276
+ return new TypeError('Expected "string" but received "' + typeof obj_columnName + '" (at "' + path_columnName + '")');
2277
+ }
2278
+ })();
2279
+ if (obj_columnName_union0_error != null) {
2280
+ obj_columnName_union0 = obj_columnName_union0_error.message;
2281
+ }
2282
+ let obj_columnName_union1 = null;
2283
+ const obj_columnName_union1_error = (() => {
2284
+ if (obj_columnName !== null) {
2285
+ return new TypeError('Expected "null" but received "' + typeof obj_columnName + '" (at "' + path_columnName + '")');
2286
+ }
2287
+ })();
2288
+ if (obj_columnName_union1_error != null) {
2289
+ obj_columnName_union1 = obj_columnName_union1_error.message;
2290
+ }
2291
+ if (obj_columnName_union0 && obj_columnName_union1) {
2292
+ let message = 'Object doesn\'t match union (at "' + path_columnName + '")';
2293
+ message += '\n' + obj_columnName_union0.split('\n').map((line) => '\t' + line).join('\n');
2294
+ message += '\n' + obj_columnName_union1.split('\n').map((line) => '\t' + line).join('\n');
2295
+ return new TypeError(message);
2296
+ }
2297
+ }
2298
+ if (obj.dataDomain !== undefined) {
2299
+ const obj_dataDomain = obj.dataDomain;
2300
+ const path_dataDomain = path + '.dataDomain';
2301
+ let obj_dataDomain_union0 = null;
2302
+ const obj_dataDomain_union0_error = (() => {
2303
+ if (typeof obj_dataDomain !== 'string') {
2304
+ return new TypeError('Expected "string" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
2305
+ }
2306
+ })();
2307
+ if (obj_dataDomain_union0_error != null) {
2308
+ obj_dataDomain_union0 = obj_dataDomain_union0_error.message;
2309
+ }
2310
+ let obj_dataDomain_union1 = null;
2311
+ const obj_dataDomain_union1_error = (() => {
2312
+ if (obj_dataDomain !== null) {
2313
+ return new TypeError('Expected "null" but received "' + typeof obj_dataDomain + '" (at "' + path_dataDomain + '")');
2314
+ }
2315
+ })();
2316
+ if (obj_dataDomain_union1_error != null) {
2317
+ obj_dataDomain_union1 = obj_dataDomain_union1_error.message;
2318
+ }
2319
+ if (obj_dataDomain_union0 && obj_dataDomain_union1) {
2320
+ let message = 'Object doesn\'t match union (at "' + path_dataDomain + '")';
2321
+ message += '\n' + obj_dataDomain_union0.split('\n').map((line) => '\t' + line).join('\n');
2322
+ message += '\n' + obj_dataDomain_union1.split('\n').map((line) => '\t' + line).join('\n');
2323
+ return new TypeError(message);
2324
+ }
2325
+ }
2326
+ if (obj.operator !== undefined) {
2327
+ const obj_operator = obj.operator;
2328
+ const path_operator = path + '.operator';
2329
+ let obj_operator_union0 = null;
2330
+ const obj_operator_union0_error = (() => {
2331
+ if (typeof obj_operator !== 'string') {
2332
+ return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
2333
+ }
2334
+ })();
2335
+ if (obj_operator_union0_error != null) {
2336
+ obj_operator_union0 = obj_operator_union0_error.message;
2337
+ }
2338
+ let obj_operator_union1 = null;
2339
+ const obj_operator_union1_error = (() => {
2340
+ if (obj_operator !== null) {
2341
+ return new TypeError('Expected "null" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
2342
+ }
2343
+ })();
2344
+ if (obj_operator_union1_error != null) {
2345
+ obj_operator_union1 = obj_operator_union1_error.message;
2346
+ }
2347
+ if (obj_operator_union0 && obj_operator_union1) {
2348
+ let message = 'Object doesn\'t match union (at "' + path_operator + '")';
2349
+ message += '\n' + obj_operator_union0.split('\n').map((line) => '\t' + line).join('\n');
2350
+ message += '\n' + obj_operator_union1.split('\n').map((line) => '\t' + line).join('\n');
2351
+ return new TypeError(message);
2352
+ }
2353
+ }
2354
+ if (obj.value !== undefined) {
2355
+ const obj_value = obj.value;
2356
+ const path_value = path + '.value';
2357
+ let obj_value_union0 = null;
2358
+ const obj_value_union0_error = (() => {
2359
+ if (typeof obj_value !== 'string') {
2360
+ return new TypeError('Expected "string" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2361
+ }
2362
+ })();
2363
+ if (obj_value_union0_error != null) {
2364
+ obj_value_union0 = obj_value_union0_error.message;
2365
+ }
2366
+ let obj_value_union1 = null;
2367
+ const obj_value_union1_error = (() => {
2368
+ if (obj_value !== null) {
2369
+ return new TypeError('Expected "null" but received "' + typeof obj_value + '" (at "' + path_value + '")');
2370
+ }
2371
+ })();
2372
+ if (obj_value_union1_error != null) {
2373
+ obj_value_union1 = obj_value_union1_error.message;
2374
+ }
2375
+ if (obj_value_union0 && obj_value_union1) {
2376
+ let message = 'Object doesn\'t match union (at "' + path_value + '")';
2377
+ message += '\n' + obj_value_union0.split('\n').map((line) => '\t' + line).join('\n');
2378
+ message += '\n' + obj_value_union1.split('\n').map((line) => '\t' + line).join('\n');
2379
+ return new TypeError(message);
2380
+ }
2381
+ }
2382
+ })();
2383
+ return v_error === undefined ? null : v_error;
2384
+ }
2385
+
2386
+ function validate$c(obj, path = 'ActionableListFilterTemplateInputRepresentation') {
2387
+ const v_error = (() => {
2388
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2389
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2390
+ }
2391
+ const obj_actionableListDefinitionId = obj.actionableListDefinitionId;
2392
+ const path_actionableListDefinitionId = path + '.actionableListDefinitionId';
2393
+ if (typeof obj_actionableListDefinitionId !== 'string') {
2394
+ return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId + '" (at "' + path_actionableListDefinitionId + '")');
2395
+ }
2396
+ const obj_description = obj.description;
2397
+ const path_description = path + '.description';
2398
+ let obj_description_union0 = null;
2399
+ const obj_description_union0_error = (() => {
2400
+ if (typeof obj_description !== 'string') {
2401
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2402
+ }
2403
+ })();
2404
+ if (obj_description_union0_error != null) {
2405
+ obj_description_union0 = obj_description_union0_error.message;
2406
+ }
2407
+ let obj_description_union1 = null;
2408
+ const obj_description_union1_error = (() => {
2409
+ if (obj_description !== null) {
2410
+ return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2411
+ }
2412
+ })();
2413
+ if (obj_description_union1_error != null) {
2414
+ obj_description_union1 = obj_description_union1_error.message;
2415
+ }
2416
+ if (obj_description_union0 && obj_description_union1) {
2417
+ let message = 'Object doesn\'t match union (at "' + path_description + '")';
2418
+ message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
2419
+ message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
2420
+ return new TypeError(message);
2421
+ }
2422
+ const obj_filterList = obj.filterList;
2423
+ const path_filterList = path + '.filterList';
2424
+ if (!ArrayIsArray(obj_filterList)) {
2425
+ return new TypeError('Expected "array" but received "' + typeof obj_filterList + '" (at "' + path_filterList + '")');
2426
+ }
2427
+ for (let i = 0; i < obj_filterList.length; i++) {
2428
+ const obj_filterList_item = obj_filterList[i];
2429
+ const path_filterList_item = path_filterList + '[' + i + ']';
2430
+ let obj_filterList_item_union0 = null;
2431
+ const obj_filterList_item_union0_error = (() => {
2432
+ const referencepath_filterList_itemValidationError = validate$d(obj_filterList_item, path_filterList_item);
2433
+ if (referencepath_filterList_itemValidationError !== null) {
2434
+ let message = 'Object doesn\'t match ActionableListFilterInputRepresentation (at "' + path_filterList_item + '")\n';
2435
+ message += referencepath_filterList_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
2436
+ return new TypeError(message);
2437
+ }
2438
+ })();
2439
+ if (obj_filterList_item_union0_error != null) {
2440
+ obj_filterList_item_union0 = obj_filterList_item_union0_error.message;
2441
+ }
2442
+ let obj_filterList_item_union1 = null;
2443
+ const obj_filterList_item_union1_error = (() => {
2444
+ if (obj_filterList_item !== null) {
2445
+ return new TypeError('Expected "null" but received "' + typeof obj_filterList_item + '" (at "' + path_filterList_item + '")');
2446
+ }
2447
+ })();
2448
+ if (obj_filterList_item_union1_error != null) {
2449
+ obj_filterList_item_union1 = obj_filterList_item_union1_error.message;
2450
+ }
2451
+ if (obj_filterList_item_union0 && obj_filterList_item_union1) {
2452
+ let message = 'Object doesn\'t match union (at "' + path_filterList_item + '")';
2453
+ message += '\n' + obj_filterList_item_union0.split('\n').map((line) => '\t' + line).join('\n');
2454
+ message += '\n' + obj_filterList_item_union1.split('\n').map((line) => '\t' + line).join('\n');
2455
+ return new TypeError(message);
2456
+ }
2457
+ }
2458
+ const obj_filterLogic = obj.filterLogic;
2459
+ const path_filterLogic = path + '.filterLogic';
2460
+ let obj_filterLogic_union0 = null;
2461
+ const obj_filterLogic_union0_error = (() => {
2462
+ if (typeof obj_filterLogic !== 'string') {
2463
+ return new TypeError('Expected "string" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
2464
+ }
2465
+ })();
2466
+ if (obj_filterLogic_union0_error != null) {
2467
+ obj_filterLogic_union0 = obj_filterLogic_union0_error.message;
2468
+ }
2469
+ let obj_filterLogic_union1 = null;
2470
+ const obj_filterLogic_union1_error = (() => {
2471
+ if (obj_filterLogic !== null) {
2472
+ return new TypeError('Expected "null" but received "' + typeof obj_filterLogic + '" (at "' + path_filterLogic + '")');
2473
+ }
2474
+ })();
2475
+ if (obj_filterLogic_union1_error != null) {
2476
+ obj_filterLogic_union1 = obj_filterLogic_union1_error.message;
2477
+ }
2478
+ if (obj_filterLogic_union0 && obj_filterLogic_union1) {
2479
+ let message = 'Object doesn\'t match union (at "' + path_filterLogic + '")';
2480
+ message += '\n' + obj_filterLogic_union0.split('\n').map((line) => '\t' + line).join('\n');
2481
+ message += '\n' + obj_filterLogic_union1.split('\n').map((line) => '\t' + line).join('\n');
2482
+ return new TypeError(message);
2483
+ }
2484
+ const obj_id = obj.id;
2485
+ const path_id = path + '.id';
2486
+ let obj_id_union0 = null;
2487
+ const obj_id_union0_error = (() => {
2488
+ if (typeof obj_id !== 'string') {
2489
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2490
+ }
2491
+ })();
2492
+ if (obj_id_union0_error != null) {
2493
+ obj_id_union0 = obj_id_union0_error.message;
2494
+ }
2495
+ let obj_id_union1 = null;
2496
+ const obj_id_union1_error = (() => {
2497
+ if (obj_id !== null) {
2498
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2499
+ }
2500
+ })();
2501
+ if (obj_id_union1_error != null) {
2502
+ obj_id_union1 = obj_id_union1_error.message;
2503
+ }
2504
+ if (obj_id_union0 && obj_id_union1) {
2505
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
2506
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
2507
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
2508
+ return new TypeError(message);
2509
+ }
2510
+ const obj_ownerId = obj.ownerId;
2511
+ const path_ownerId = path + '.ownerId';
2512
+ if (typeof obj_ownerId !== 'string') {
2513
+ return new TypeError('Expected "string" but received "' + typeof obj_ownerId + '" (at "' + path_ownerId + '")');
2514
+ }
2515
+ const obj_ownerName = obj.ownerName;
2516
+ const path_ownerName = path + '.ownerName';
2517
+ if (typeof obj_ownerName !== 'string') {
2518
+ return new TypeError('Expected "string" but received "' + typeof obj_ownerName + '" (at "' + path_ownerName + '")');
2519
+ }
2520
+ const obj_sharingType = obj.sharingType;
2521
+ const path_sharingType = path + '.sharingType';
2522
+ if (typeof obj_sharingType !== 'string') {
2523
+ return new TypeError('Expected "string" but received "' + typeof obj_sharingType + '" (at "' + path_sharingType + '")');
2524
+ }
2525
+ const obj_templateName = obj.templateName;
2526
+ const path_templateName = path + '.templateName';
2527
+ if (typeof obj_templateName !== 'string') {
2528
+ return new TypeError('Expected "string" but received "' + typeof obj_templateName + '" (at "' + path_templateName + '")');
2529
+ }
2530
+ })();
2531
+ return v_error === undefined ? null : v_error;
2532
+ }
2533
+
2534
+ const TTL$4 = 5000;
2535
+ const VERSION$8 = "3cd16ed4312e68ebb85a92c2878b54f2";
2536
+ function validate$b(obj, path = 'ActionableListFilterTemplateUpsertOutputRepresentation') {
2537
+ const v_error = (() => {
2538
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2539
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2540
+ }
2541
+ const obj_errorMessage = obj.errorMessage;
2542
+ const path_errorMessage = path + '.errorMessage';
2543
+ let obj_errorMessage_union0 = null;
2544
+ const obj_errorMessage_union0_error = (() => {
2545
+ if (typeof obj_errorMessage !== 'string') {
2546
+ return new TypeError('Expected "string" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
2547
+ }
2548
+ })();
2549
+ if (obj_errorMessage_union0_error != null) {
2550
+ obj_errorMessage_union0 = obj_errorMessage_union0_error.message;
2551
+ }
2552
+ let obj_errorMessage_union1 = null;
2553
+ const obj_errorMessage_union1_error = (() => {
2554
+ if (obj_errorMessage !== null) {
2555
+ return new TypeError('Expected "null" but received "' + typeof obj_errorMessage + '" (at "' + path_errorMessage + '")');
2556
+ }
2557
+ })();
2558
+ if (obj_errorMessage_union1_error != null) {
2559
+ obj_errorMessage_union1 = obj_errorMessage_union1_error.message;
2560
+ }
2561
+ if (obj_errorMessage_union0 && obj_errorMessage_union1) {
2562
+ let message = 'Object doesn\'t match union (at "' + path_errorMessage + '")';
2563
+ message += '\n' + obj_errorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
2564
+ message += '\n' + obj_errorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
2565
+ return new TypeError(message);
2566
+ }
2567
+ const obj_id = obj.id;
2568
+ const path_id = path + '.id';
2569
+ let obj_id_union0 = null;
2570
+ const obj_id_union0_error = (() => {
2571
+ if (typeof obj_id !== 'string') {
2572
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2573
+ }
2574
+ })();
2575
+ if (obj_id_union0_error != null) {
2576
+ obj_id_union0 = obj_id_union0_error.message;
2577
+ }
2578
+ let obj_id_union1 = null;
2579
+ const obj_id_union1_error = (() => {
2580
+ if (obj_id !== null) {
2581
+ return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
2582
+ }
2583
+ })();
2584
+ if (obj_id_union1_error != null) {
2585
+ obj_id_union1 = obj_id_union1_error.message;
2586
+ }
2587
+ if (obj_id_union0 && obj_id_union1) {
2588
+ let message = 'Object doesn\'t match union (at "' + path_id + '")';
2589
+ message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
2590
+ message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
2591
+ return new TypeError(message);
2592
+ }
2593
+ const obj_isSuccess = obj.isSuccess;
2594
+ const path_isSuccess = path + '.isSuccess';
2595
+ let obj_isSuccess_union0 = null;
2596
+ const obj_isSuccess_union0_error = (() => {
2597
+ if (typeof obj_isSuccess !== 'string') {
2598
+ return new TypeError('Expected "string" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
2599
+ }
2600
+ })();
2601
+ if (obj_isSuccess_union0_error != null) {
2602
+ obj_isSuccess_union0 = obj_isSuccess_union0_error.message;
2603
+ }
2604
+ let obj_isSuccess_union1 = null;
2605
+ const obj_isSuccess_union1_error = (() => {
2606
+ if (obj_isSuccess !== null) {
2607
+ return new TypeError('Expected "null" but received "' + typeof obj_isSuccess + '" (at "' + path_isSuccess + '")');
2608
+ }
2609
+ })();
2610
+ if (obj_isSuccess_union1_error != null) {
2611
+ obj_isSuccess_union1 = obj_isSuccess_union1_error.message;
2612
+ }
2613
+ if (obj_isSuccess_union0 && obj_isSuccess_union1) {
2614
+ let message = 'Object doesn\'t match union (at "' + path_isSuccess + '")';
2615
+ message += '\n' + obj_isSuccess_union0.split('\n').map((line) => '\t' + line).join('\n');
2616
+ message += '\n' + obj_isSuccess_union1.split('\n').map((line) => '\t' + line).join('\n');
2617
+ return new TypeError(message);
2618
+ }
2619
+ })();
2620
+ return v_error === undefined ? null : v_error;
2621
+ }
2622
+ const RepresentationType$4 = 'ActionableListFilterTemplateUpsertOutputRepresentation';
2623
+ function keyBuilder$9(luvio, config) {
2624
+ return keyPrefix + '::' + RepresentationType$4 + ':' + (config.id === null ? '' : config.id);
2625
+ }
2626
+ function keyBuilderFromType$2(luvio, object) {
2627
+ const keyParams = {
2628
+ id: object.id
2629
+ };
2630
+ return keyBuilder$9(luvio, keyParams);
2631
+ }
2632
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
2633
+ return input;
2634
+ }
2635
+ const select$e = function ActionableListFilterTemplateUpsertOutputRepresentationSelect() {
2636
+ return {
2637
+ kind: 'Fragment',
2638
+ version: VERSION$8,
2639
+ private: [],
2640
+ selections: [
2641
+ {
2642
+ name: 'errorMessage',
2643
+ kind: 'Scalar'
2644
+ },
2645
+ {
2646
+ name: 'id',
2647
+ kind: 'Scalar'
2648
+ },
2649
+ {
2650
+ name: 'isSuccess',
2651
+ kind: 'Scalar'
2652
+ }
2653
+ ]
2654
+ };
2655
+ };
2656
+ function equals$8(existing, incoming) {
2657
+ const existing_errorMessage = existing.errorMessage;
2658
+ const incoming_errorMessage = incoming.errorMessage;
2659
+ if (!(existing_errorMessage === incoming_errorMessage)) {
2660
+ return false;
2661
+ }
2662
+ const existing_id = existing.id;
2663
+ const incoming_id = incoming.id;
2664
+ if (!(existing_id === incoming_id)) {
2665
+ return false;
2666
+ }
2667
+ const existing_isSuccess = existing.isSuccess;
2668
+ const incoming_isSuccess = incoming.isSuccess;
2669
+ if (!(existing_isSuccess === incoming_isSuccess)) {
2670
+ return false;
2671
+ }
2672
+ return true;
2673
+ }
2674
+ const ingest$4 = function ActionableListFilterTemplateUpsertOutputRepresentationIngest(input, path, luvio, store, timestamp) {
2675
+ if (process.env.NODE_ENV !== 'production') {
2676
+ const validateError = validate$b(input);
2677
+ if (validateError !== null) {
2678
+ throw validateError;
2679
+ }
2680
+ }
2681
+ const key = keyBuilderFromType$2(luvio, input);
2682
+ const ttlToUse = TTL$4;
2683
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "actionablelist", VERSION$8, RepresentationType$4, equals$8);
2684
+ return createLink(key);
2685
+ };
2686
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
2687
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
2688
+ const rootKey = keyBuilderFromType$2(luvio, input);
2689
+ rootKeySet.set(rootKey, {
2690
+ namespace: keyPrefix,
2691
+ representationName: RepresentationType$4,
2692
+ mergeable: false
2693
+ });
2694
+ }
2695
+
2696
+ function select$d(luvio, params) {
2697
+ return select$e();
2698
+ }
2699
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
2700
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
2701
+ }
2702
+ function ingestSuccess$5(luvio, resourceParams, response) {
2703
+ const { body } = response;
2704
+ const key = keyBuilderFromType$2(luvio, body);
2705
+ luvio.storeIngest(key, ingest$4, body);
2706
+ const snapshot = luvio.storeLookup({
2707
+ recordId: key,
2708
+ node: select$d(),
2709
+ variables: {},
2710
+ });
2711
+ if (process.env.NODE_ENV !== 'production') {
2712
+ if (snapshot.state !== 'Fulfilled') {
2713
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2714
+ }
2715
+ }
2716
+ deepFreeze(snapshot.data);
2717
+ return snapshot;
2718
+ }
2719
+ function createResourceRequest$6(config) {
2720
+ const headers = {};
2721
+ return {
2722
+ baseUri: '/services/data/v60.0',
2723
+ basePath: '/connect/actionable-list-def-filter',
2724
+ method: 'post',
2725
+ body: config.body,
2726
+ urlParams: {},
2727
+ queryParams: {},
2728
+ headers,
2729
+ priority: 'normal',
2730
+ };
2731
+ }
2732
+
2733
+ const adapterName$6 = 'upsertActionableListFilterTemplate';
2734
+ const upsertActionableListFilterTemplate_ConfigPropertyMetadata = [
2735
+ generateParamConfigMetadata('actionableListDefinitionFilterInput', true, 2 /* Body */, 4 /* Unsupported */),
2736
+ ];
2737
+ const upsertActionableListFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, upsertActionableListFilterTemplate_ConfigPropertyMetadata);
2738
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(upsertActionableListFilterTemplate_ConfigPropertyMetadata);
2739
+ function typeCheckConfig$6(untrustedConfig) {
2740
+ const config = {};
2741
+ const untrustedConfig_actionableListDefinitionFilterInput = untrustedConfig.actionableListDefinitionFilterInput;
2742
+ const referenceActionableListFilterTemplateInputRepresentationValidationError = validate$c(untrustedConfig_actionableListDefinitionFilterInput);
2743
+ if (referenceActionableListFilterTemplateInputRepresentationValidationError === null) {
2744
+ config.actionableListDefinitionFilterInput = untrustedConfig_actionableListDefinitionFilterInput;
2745
+ }
2746
+ return config;
2747
+ }
2748
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
2749
+ if (!untrustedIsObject(untrustedConfig)) {
2750
+ return null;
2751
+ }
2752
+ if (process.env.NODE_ENV !== 'production') {
2753
+ validateConfig(untrustedConfig, configPropertyNames);
2754
+ }
2755
+ const config = typeCheckConfig$6(untrustedConfig);
2756
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2757
+ return null;
2758
+ }
2759
+ return config;
2760
+ }
2761
+ function buildNetworkSnapshot$6(luvio, config, options) {
2762
+ const resourceParams = createResourceParams$6(config);
2763
+ const request = createResourceRequest$6(resourceParams);
2764
+ return luvio.dispatchResourceRequest(request, options)
2765
+ .then((response) => {
2766
+ return luvio.handleSuccessResponse(() => {
2767
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
2768
+ return luvio.storeBroadcast().then(() => snapshot);
2769
+ }, () => {
2770
+ const cache = new StoreKeyMap();
2771
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
2772
+ return cache;
2773
+ });
2774
+ }, (response) => {
2775
+ deepFreeze(response);
2776
+ throw response;
2777
+ });
2778
+ }
2779
+ const upsertActionableListFilterTemplateAdapterFactory = (luvio) => {
2780
+ return function upsertActionableListFilterTemplate(untrustedConfig) {
2781
+ const config = validateAdapterConfig$6(untrustedConfig, upsertActionableListFilterTemplate_ConfigPropertyNames);
2782
+ // Invalid or incomplete config
2783
+ if (config === null) {
2784
+ throw new Error('Invalid config for "upsertActionableListFilterTemplate"');
2785
+ }
2786
+ return buildNetworkSnapshot$6(luvio, config);
2787
+ };
2788
+ };
2789
+
2790
+ function select$c(luvio, params) {
2791
+ return select$h();
2792
+ }
2793
+ function keyBuilder$8(luvio, params) {
2794
+ return keyBuilder$c(luvio, {
2795
+ id: params.urlParams.actionableListDefinitionFilterId
2796
+ });
2797
+ }
2798
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
2799
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
2800
+ }
2801
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
2802
+ const { body } = response;
2803
+ const key = keyBuilder$8(luvio, resourceParams);
2804
+ luvio.storeIngest(key, ingest$6, body);
2805
+ const snapshot = luvio.storeLookup({
2806
+ recordId: key,
2807
+ node: select$c(),
2808
+ variables: {},
2809
+ }, snapshotRefresh);
2810
+ if (process.env.NODE_ENV !== 'production') {
2811
+ if (snapshot.state !== 'Fulfilled') {
2812
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
2813
+ }
2814
+ }
2815
+ deepFreeze(snapshot.data);
2816
+ return snapshot;
2817
+ }
2818
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
2819
+ const key = keyBuilder$8(luvio, params);
2820
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
2821
+ const storeMetadataParams = {
2822
+ ttl: TTL$6,
2823
+ namespace: keyPrefix,
2824
+ version: VERSION$a,
2825
+ representationName: RepresentationType$6
2826
+ };
2827
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
2828
+ return errorSnapshot;
2829
+ }
2830
+ function createResourceRequest$5(config) {
2831
+ const headers = {};
2832
+ return {
2833
+ baseUri: '/services/data/v60.0',
2834
+ basePath: '/connect/actionable-list-def-filter/' + config.urlParams.actionableListDefinitionFilterId + '',
2835
+ method: 'get',
2836
+ body: null,
2837
+ urlParams: config.urlParams,
2838
+ queryParams: {},
2839
+ headers,
2840
+ priority: 'normal',
2841
+ };
2842
+ }
2843
+
2844
+ const adapterName$5 = 'getFilterTemplate';
2845
+ const getFilterTemplate_ConfigPropertyMetadata = [
2846
+ generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
2847
+ ];
2848
+ const getFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getFilterTemplate_ConfigPropertyMetadata);
2849
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getFilterTemplate_ConfigPropertyMetadata);
2850
+ function keyBuilder$7(luvio, config) {
2851
+ const resourceParams = createResourceParams$5(config);
2852
+ return keyBuilder$8(luvio, resourceParams);
2853
+ }
2854
+ function typeCheckConfig$5(untrustedConfig) {
2855
+ const config = {};
2856
+ typeCheckConfig$b(untrustedConfig, config, getFilterTemplate_ConfigPropertyMetadata);
2857
+ return config;
2858
+ }
2859
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
2860
+ if (!untrustedIsObject(untrustedConfig)) {
2861
+ return null;
2862
+ }
2863
+ if (process.env.NODE_ENV !== 'production') {
2864
+ validateConfig(untrustedConfig, configPropertyNames);
2865
+ }
2866
+ const config = typeCheckConfig$5(untrustedConfig);
2867
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2868
+ return null;
2869
+ }
2870
+ return config;
2871
+ }
2872
+ function adapterFragment$2(luvio, config) {
2873
+ createResourceParams$5(config);
2874
+ return select$c();
2875
+ }
2876
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
2877
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
2878
+ config,
2879
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2880
+ });
2881
+ return luvio.storeBroadcast().then(() => snapshot);
2882
+ }
2883
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
2884
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
2885
+ config,
2886
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2887
+ });
2888
+ return luvio.storeBroadcast().then(() => snapshot);
2889
+ }
2890
+ function buildNetworkSnapshot$5(luvio, config, options) {
2891
+ const resourceParams = createResourceParams$5(config);
2892
+ const request = createResourceRequest$5(resourceParams);
2893
+ return luvio.dispatchResourceRequest(request, options)
2894
+ .then((response) => {
2895
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
2896
+ const cache = new StoreKeyMap();
2897
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
2898
+ return cache;
2899
+ });
2900
+ }, (response) => {
2901
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
2902
+ });
2903
+ }
2904
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
2905
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
2906
+ }
2907
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
2908
+ const { luvio, config } = context;
2909
+ const selector = {
2910
+ recordId: keyBuilder$7(luvio, config),
2911
+ node: adapterFragment$2(luvio, config),
2912
+ variables: {},
2913
+ };
2914
+ const cacheSnapshot = storeLookup(selector, {
2915
+ config,
2916
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
2917
+ });
2918
+ return cacheSnapshot;
2919
+ }
2920
+ const getFilterTemplateAdapterFactory = (luvio) => function actionablelist__getFilterTemplate(untrustedConfig, requestContext) {
2921
+ const config = validateAdapterConfig$5(untrustedConfig, getFilterTemplate_ConfigPropertyNames);
2922
+ // Invalid or incomplete config
2923
+ if (config === null) {
2924
+ return null;
2925
+ }
2926
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
2927
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
2928
+ };
2929
+
2930
+ function keyBuilder$6(luvio, params) {
2931
+ return keyBuilder$c(luvio, {
2932
+ id: params.urlParams.actionableListDefinitionFilterId
2933
+ });
2934
+ }
2935
+ function getResponseCacheKeys$4(cacheKeyMap, luvio, resourceParams) {
2936
+ const key = keyBuilder$6(luvio, resourceParams);
2937
+ cacheKeyMap.set(key, {
2938
+ namespace: keyPrefix,
2939
+ representationName: RepresentationType$6,
2940
+ mergeable: false
2941
+ });
2942
+ }
2943
+ function evictSuccess(luvio, resourceParams) {
2944
+ const key = keyBuilder$6(luvio, resourceParams);
2945
+ luvio.storeEvict(key);
2946
+ }
2947
+ function createResourceRequest$4(config) {
2948
+ const headers = {};
2949
+ return {
2950
+ baseUri: '/services/data/v60.0',
2951
+ basePath: '/connect/actionable-list-def-filter/' + config.urlParams.actionableListDefinitionFilterId + '',
2952
+ method: 'delete',
2953
+ body: null,
2954
+ urlParams: config.urlParams,
2955
+ queryParams: {},
2956
+ headers,
2957
+ priority: 'normal',
2958
+ };
2959
+ }
2960
+
2961
+ const adapterName$4 = 'deleteFilterTemplate';
2962
+ const deleteFilterTemplate_ConfigPropertyMetadata = [
2963
+ generateParamConfigMetadata('actionableListDefinitionFilterId', true, 0 /* UrlParameter */, 0 /* String */),
2964
+ ];
2965
+ const deleteFilterTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, deleteFilterTemplate_ConfigPropertyMetadata);
2966
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(deleteFilterTemplate_ConfigPropertyMetadata);
2967
+ function typeCheckConfig$4(untrustedConfig) {
2968
+ const config = {};
2969
+ typeCheckConfig$b(untrustedConfig, config, deleteFilterTemplate_ConfigPropertyMetadata);
2970
+ return config;
2971
+ }
2972
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
2973
+ if (!untrustedIsObject(untrustedConfig)) {
2974
+ return null;
2975
+ }
2976
+ if (process.env.NODE_ENV !== 'production') {
2977
+ validateConfig(untrustedConfig, configPropertyNames);
2978
+ }
2979
+ const config = typeCheckConfig$4(untrustedConfig);
2980
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
2981
+ return null;
2982
+ }
2983
+ return config;
2984
+ }
2985
+ function buildNetworkSnapshot$4(luvio, config, options) {
2986
+ const resourceParams = createResourceParams$4(config);
2987
+ const request = createResourceRequest$4(resourceParams);
2988
+ return luvio.dispatchResourceRequest(request, options)
2989
+ .then(() => {
2990
+ return luvio.handleSuccessResponse(() => {
2991
+ evictSuccess(luvio, resourceParams);
2992
+ return luvio.storeBroadcast();
2993
+ }, () => {
2994
+ const cache = new StoreKeyMap();
2995
+ getResponseCacheKeys$4(cache, luvio, resourceParams);
2996
+ return cache;
2997
+ });
2998
+ }, (response) => {
2999
+ deepFreeze(response);
3000
+ throw response;
3001
+ });
3002
+ }
3003
+ const deleteFilterTemplateAdapterFactory = (luvio) => {
3004
+ return function actionablelistdeleteFilterTemplate(untrustedConfig) {
3005
+ const config = validateAdapterConfig$4(untrustedConfig, deleteFilterTemplate_ConfigPropertyNames);
3006
+ // Invalid or incomplete config
3007
+ if (config === null) {
3008
+ throw new Error(`Invalid config for "${adapterName$4}"`);
3009
+ }
3010
+ return buildNetworkSnapshot$4(luvio, config);
3011
+ };
3012
+ };
3013
+
3014
+ function validate$a(obj, path = 'ActionableListRefreshInputRepresentation') {
3015
+ const v_error = (() => {
3016
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3017
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3018
+ }
3019
+ const obj_actionableListDefinitionId = obj.actionableListDefinitionId;
3020
+ const path_actionableListDefinitionId = path + '.actionableListDefinitionId';
3021
+ if (typeof obj_actionableListDefinitionId !== 'string') {
3022
+ return new TypeError('Expected "string" but received "' + typeof obj_actionableListDefinitionId + '" (at "' + path_actionableListDefinitionId + '")');
3023
+ }
3024
+ const obj_actionableListId = obj.actionableListId;
3025
+ const path_actionableListId = path + '.actionableListId';
3026
+ if (typeof obj_actionableListId !== 'string') {
3027
+ return new TypeError('Expected "string" but received "' + typeof obj_actionableListId + '" (at "' + path_actionableListId + '")');
3028
+ }
3029
+ })();
3030
+ return v_error === undefined ? null : v_error;
3031
+ }
3032
+
1782
3033
  const VERSION$7 = "eb64878570998dc7aa7bb9f8a21e65fb";
1783
3034
  function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresentation') {
1784
3035
  const v_error = (() => {
@@ -1795,7 +3046,7 @@ function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresenta
1795
3046
  const path_conditions_item = path_conditions + '[' + i + ']';
1796
3047
  let obj_conditions_item_union0 = null;
1797
3048
  const obj_conditions_item_union0_error = (() => {
1798
- const referencepath_conditions_itemValidationError = validate$a(obj_conditions_item, path_conditions_item);
3049
+ const referencepath_conditions_itemValidationError = validate$g(obj_conditions_item, path_conditions_item);
1799
3050
  if (referencepath_conditions_itemValidationError !== null) {
1800
3051
  let message = 'Object doesn\'t match ActionableListRefreshFilterConditionOutputRepresentation (at "' + path_conditions_item + '")\n';
1801
3052
  message += referencepath_conditions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -1851,7 +3102,7 @@ function validate$9(obj, path = 'ActionableListRefreshFilterListOutputRepresenta
1851
3102
  return v_error === undefined ? null : v_error;
1852
3103
  }
1853
3104
  const select$b = function ActionableListRefreshFilterListOutputRepresentationSelect() {
1854
- const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$c();
3105
+ const { selections: ActionableListRefreshFilterConditionOutputRepresentation__selections, opaque: ActionableListRefreshFilterConditionOutputRepresentation__opaque, } = select$i();
1855
3106
  return {
1856
3107
  kind: 'Fragment',
1857
3108
  version: VERSION$7,
@@ -1878,7 +3129,7 @@ function equals$7(existing, incoming) {
1878
3129
  if (!(existing_conditions_item === incoming_conditions_item
1879
3130
  || (existing_conditions_item != null &&
1880
3131
  incoming_conditions_item != null &&
1881
- equals$8(existing_conditions_item, incoming_conditions_item)))) {
3132
+ equals$b(existing_conditions_item, incoming_conditions_item)))) {
1882
3133
  return false;
1883
3134
  }
1884
3135
  });
@@ -2246,11 +3497,11 @@ const upsertActionableListRefreshFilter_ConfigPropertyMetadata = [
2246
3497
  generateParamConfigMetadata('actionableListRefreshInput', true, 2 /* Body */, 4 /* Unsupported */),
2247
3498
  ];
2248
3499
  const upsertActionableListRefreshFilter_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, upsertActionableListRefreshFilter_ConfigPropertyMetadata);
2249
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(upsertActionableListRefreshFilter_ConfigPropertyMetadata);
3500
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(upsertActionableListRefreshFilter_ConfigPropertyMetadata);
2250
3501
  function typeCheckConfig$3(untrustedConfig) {
2251
3502
  const config = {};
2252
3503
  const untrustedConfig_actionableListRefreshInput = untrustedConfig.actionableListRefreshInput;
2253
- const referenceActionableListRefreshInputRepresentationValidationError = validate$b(untrustedConfig_actionableListRefreshInput);
3504
+ const referenceActionableListRefreshInputRepresentationValidationError = validate$a(untrustedConfig_actionableListRefreshInput);
2254
3505
  if (referenceActionableListRefreshInputRepresentationValidationError === null) {
2255
3506
  config.actionableListRefreshInput = untrustedConfig_actionableListRefreshInput;
2256
3507
  }
@@ -2430,14 +3681,14 @@ const getActionableListMembers_ConfigPropertyMetadata = [
2430
3681
  generateParamConfigMetadata('id', true, 0 /* UrlParameter */, 0 /* String */),
2431
3682
  ];
2432
3683
  const getActionableListMembers_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getActionableListMembers_ConfigPropertyMetadata);
2433
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getActionableListMembers_ConfigPropertyMetadata);
3684
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getActionableListMembers_ConfigPropertyMetadata);
2434
3685
  function keyBuilder$3(luvio, config) {
2435
3686
  const resourceParams = createResourceParams$2(config);
2436
3687
  return keyBuilder$4(luvio, resourceParams);
2437
3688
  }
2438
3689
  function typeCheckConfig$2(untrustedConfig) {
2439
3690
  const config = {};
2440
- typeCheckConfig$7(untrustedConfig, config, getActionableListMembers_ConfigPropertyMetadata);
3691
+ typeCheckConfig$b(untrustedConfig, config, getActionableListMembers_ConfigPropertyMetadata);
2441
3692
  return config;
2442
3693
  }
2443
3694
  function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
@@ -2486,7 +3737,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
2486
3737
  });
2487
3738
  }
2488
3739
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
2489
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
3740
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
2490
3741
  }
2491
3742
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
2492
3743
  const { luvio, config } = context;
@@ -2941,7 +4192,7 @@ const upsertActionableList_ConfigPropertyMetadata = [
2941
4192
  generateParamConfigMetadata('actionableListUpsertInput', true, 2 /* Body */, 4 /* Unsupported */),
2942
4193
  ];
2943
4194
  const upsertActionableList_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, upsertActionableList_ConfigPropertyMetadata);
2944
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(upsertActionableList_ConfigPropertyMetadata);
4195
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(upsertActionableList_ConfigPropertyMetadata);
2945
4196
  function typeCheckConfig$1(untrustedConfig) {
2946
4197
  const config = {};
2947
4198
  const untrustedConfig_actionableListUpsertInput = untrustedConfig.actionableListUpsertInput;
@@ -3935,7 +5186,7 @@ const getActionableListDatasetInfo_ConfigPropertyMetadata = [
3935
5186
  generateParamConfigMetadata('actionableListDataset', true, 2 /* Body */, 4 /* Unsupported */),
3936
5187
  ];
3937
5188
  const getActionableListDatasetInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getActionableListDatasetInfo_ConfigPropertyMetadata);
3938
- const createResourceParams = /*#__PURE__*/ createResourceParams$7(getActionableListDatasetInfo_ConfigPropertyMetadata);
5189
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(getActionableListDatasetInfo_ConfigPropertyMetadata);
3939
5190
  function keyBuilder(luvio, config) {
3940
5191
  const resourceParams = createResourceParams(config);
3941
5192
  return keyBuilder$1(luvio, resourceParams);
@@ -3995,7 +5246,7 @@ function buildNetworkSnapshot(luvio, config, options) {
3995
5246
  });
3996
5247
  }
3997
5248
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
3998
- return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
5249
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot, 'get', false);
3999
5250
  }
4000
5251
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
4001
5252
  const { luvio, config } = context;
@@ -4020,4 +5271,4 @@ const getActionableListDatasetInfoAdapterFactory = (luvio) => function actionabl
4020
5271
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
4021
5272
  };
4022
5273
 
4023
- export { createActionableListDefinitionAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };
5274
+ export { createActionableListDefinitionAdapterFactory, deleteFilterTemplateAdapterFactory, getActionableListDatasetInfoAdapterFactory, getActionableListDefinitionsAdapterFactory, getActionableListMembersAdapterFactory, getFilterTemplateAdapterFactory, getFilterTemplatesForListDefinitionAdapterFactory, upsertActionableListAdapterFactory, upsertActionableListDatasetColumnUserAdapterFactory, upsertActionableListFilterTemplateAdapterFactory, upsertActionableListRefreshFilterAdapterFactory };