@salesforce/lds-adapters-service-ecm 1.364.0 → 1.366.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$b } from '@luvio/engine';
8
8
 
9
9
  const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
10
10
  const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
@@ -112,7 +112,7 @@ function createLink(ref) {
112
112
  };
113
113
  }
114
114
 
115
- function validate$z(obj, path = 'AgentActionInputRepresentation') {
115
+ function validate$C(obj, path = 'AgentActionInputRepresentation') {
116
116
  const v_error = (() => {
117
117
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
118
118
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -233,7 +233,7 @@ function validate$z(obj, path = 'AgentActionInputRepresentation') {
233
233
  return v_error === undefined ? null : v_error;
234
234
  }
235
235
 
236
- function validate$y(obj, path = 'KnowledgeArticleInputRepresentation') {
236
+ function validate$B(obj, path = 'KnowledgeArticleInputRepresentation') {
237
237
  const v_error = (() => {
238
238
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
239
239
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -326,7 +326,7 @@ function validate$y(obj, path = 'KnowledgeArticleInputRepresentation') {
326
326
  return v_error === undefined ? null : v_error;
327
327
  }
328
328
 
329
- function validate$x(obj, path = 'PicklistAttributeTypeInputRepresentation') {
329
+ function validate$A(obj, path = 'PicklistAttributeTypeInputRepresentation') {
330
330
  const v_error = (() => {
331
331
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
332
332
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -405,7 +405,7 @@ function validate$x(obj, path = 'PicklistAttributeTypeInputRepresentation') {
405
405
  return v_error === undefined ? null : v_error;
406
406
  }
407
407
 
408
- function validate$w(obj, path = 'CatalogItemAttributeInputRepresentation') {
408
+ function validate$z(obj, path = 'CatalogItemAttributeInputRepresentation') {
409
409
  const v_error = (() => {
410
410
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
411
411
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -771,7 +771,7 @@ function validate$w(obj, path = 'CatalogItemAttributeInputRepresentation') {
771
771
  const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
772
772
  let obj_picklistOptions_item_union0 = null;
773
773
  const obj_picklistOptions_item_union0_error = (() => {
774
- const referencepath_picklistOptions_itemValidationError = validate$x(obj_picklistOptions_item, path_picklistOptions_item);
774
+ const referencepath_picklistOptions_itemValidationError = validate$A(obj_picklistOptions_item, path_picklistOptions_item);
775
775
  if (referencepath_picklistOptions_itemValidationError !== null) {
776
776
  let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
777
777
  message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -830,7 +830,7 @@ function validate$w(obj, path = 'CatalogItemAttributeInputRepresentation') {
830
830
  return v_error === undefined ? null : v_error;
831
831
  }
832
832
 
833
- function validate$v(obj, path = 'SectionInputRepresentation') {
833
+ function validate$y(obj, path = 'SectionInputRepresentation') {
834
834
  const v_error = (() => {
835
835
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
836
836
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -972,7 +972,7 @@ function validate$v(obj, path = 'SectionInputRepresentation') {
972
972
  return v_error === undefined ? null : v_error;
973
973
  }
974
974
 
975
- function validate$u(obj, path = 'EligibilityRulesInputRepresentation') {
975
+ function validate$x(obj, path = 'EligibilityRulesInputRepresentation') {
976
976
  const v_error = (() => {
977
977
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
978
978
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1037,7 +1037,7 @@ function validate$u(obj, path = 'EligibilityRulesInputRepresentation') {
1037
1037
  return v_error === undefined ? null : v_error;
1038
1038
  }
1039
1039
 
1040
- function validate$t(obj, path = 'FulfillmentFlowInputRepresentation') {
1040
+ function validate$w(obj, path = 'FulfillmentFlowInputRepresentation') {
1041
1041
  const v_error = (() => {
1042
1042
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1043
1043
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1158,7 +1158,7 @@ function validate$t(obj, path = 'FulfillmentFlowInputRepresentation') {
1158
1158
  return v_error === undefined ? null : v_error;
1159
1159
  }
1160
1160
 
1161
- function validate$s(obj, path = 'IntakeFormInputRepresentation') {
1161
+ function validate$v(obj, path = 'IntakeFormInputRepresentation') {
1162
1162
  const v_error = (() => {
1163
1163
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1164
1164
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1279,7 +1279,7 @@ function validate$s(obj, path = 'IntakeFormInputRepresentation') {
1279
1279
  return v_error === undefined ? null : v_error;
1280
1280
  }
1281
1281
 
1282
- function validate$r(obj, path = 'IntegrationDefInputRepresentation') {
1282
+ function validate$u(obj, path = 'IntegrationDefInputRepresentation') {
1283
1283
  const v_error = (() => {
1284
1284
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1285
1285
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1372,7 +1372,7 @@ function validate$r(obj, path = 'IntegrationDefInputRepresentation') {
1372
1372
  return v_error === undefined ? null : v_error;
1373
1373
  }
1374
1374
 
1375
- function validate$q(obj, path = 'PreprocessorInputRepresentation') {
1375
+ function validate$t(obj, path = 'PreprocessorInputRepresentation') {
1376
1376
  const v_error = (() => {
1377
1377
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1378
1378
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1465,7 +1465,7 @@ function validate$q(obj, path = 'PreprocessorInputRepresentation') {
1465
1465
  return v_error === undefined ? null : v_error;
1466
1466
  }
1467
1467
 
1468
- function validate$p(obj, path = 'ProductRequestCreateInputRepresentation') {
1468
+ function validate$s(obj, path = 'ProductRequestCreateInputRepresentation') {
1469
1469
  const v_error = (() => {
1470
1470
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1471
1471
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1656,8 +1656,8 @@ function validate$p(obj, path = 'ProductRequestCreateInputRepresentation') {
1656
1656
  return v_error === undefined ? null : v_error;
1657
1657
  }
1658
1658
 
1659
- const VERSION$i = "ac94c0c52190d3f2f063659052e5b46e";
1660
- function validate$o(obj, path = 'AgentActionOutputRepresentation') {
1659
+ const VERSION$k = "ac94c0c52190d3f2f063659052e5b46e";
1660
+ function validate$r(obj, path = 'AgentActionOutputRepresentation') {
1661
1661
  const v_error = (() => {
1662
1662
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1663
1663
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1749,10 +1749,10 @@ function validate$o(obj, path = 'AgentActionOutputRepresentation') {
1749
1749
  })();
1750
1750
  return v_error === undefined ? null : v_error;
1751
1751
  }
1752
- const select$r = function AgentActionOutputRepresentationSelect() {
1752
+ const select$v = function AgentActionOutputRepresentationSelect() {
1753
1753
  return {
1754
1754
  kind: 'Fragment',
1755
- version: VERSION$i,
1755
+ version: VERSION$k,
1756
1756
  private: [],
1757
1757
  selections: [
1758
1758
  {
@@ -1773,7 +1773,7 @@ const select$r = function AgentActionOutputRepresentationSelect() {
1773
1773
  ]
1774
1774
  };
1775
1775
  };
1776
- function equals$i(existing, incoming) {
1776
+ function equals$k(existing, incoming) {
1777
1777
  const existing_agentActionId = existing.agentActionId;
1778
1778
  const incoming_agentActionId = incoming.agentActionId;
1779
1779
  // if at least one of these optionals is defined
@@ -1816,8 +1816,8 @@ function equals$i(existing, incoming) {
1816
1816
  return true;
1817
1817
  }
1818
1818
 
1819
- const VERSION$h = "0b2080174fe6d4ee4f4a0de27011fc7d";
1820
- function validate$n(obj, path = 'AssociatedArticleOutputRepresentation') {
1819
+ const VERSION$j = "0b2080174fe6d4ee4f4a0de27011fc7d";
1820
+ function validate$q(obj, path = 'AssociatedArticleOutputRepresentation') {
1821
1821
  const v_error = (() => {
1822
1822
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1823
1823
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1881,10 +1881,10 @@ function validate$n(obj, path = 'AssociatedArticleOutputRepresentation') {
1881
1881
  })();
1882
1882
  return v_error === undefined ? null : v_error;
1883
1883
  }
1884
- const select$q = function AssociatedArticleOutputRepresentationSelect() {
1884
+ const select$u = function AssociatedArticleOutputRepresentationSelect() {
1885
1885
  return {
1886
1886
  kind: 'Fragment',
1887
- version: VERSION$h,
1887
+ version: VERSION$j,
1888
1888
  private: [],
1889
1889
  selections: [
1890
1890
  {
@@ -1900,7 +1900,7 @@ const select$q = function AssociatedArticleOutputRepresentationSelect() {
1900
1900
  ]
1901
1901
  };
1902
1902
  };
1903
- function equals$h(existing, incoming) {
1903
+ function equals$j(existing, incoming) {
1904
1904
  const existing_id = existing.id;
1905
1905
  const incoming_id = incoming.id;
1906
1906
  // if at least one of these optionals is defined
@@ -1930,8 +1930,8 @@ function equals$h(existing, incoming) {
1930
1930
  return true;
1931
1931
  }
1932
1932
 
1933
- const VERSION$g = "6859d872ce6d03f8f07819eb40c43fe6";
1934
- function validate$m(obj, path = 'EligibilityRuleOutputRepresentation') {
1933
+ const VERSION$i = "6859d872ce6d03f8f07819eb40c43fe6";
1934
+ function validate$p(obj, path = 'EligibilityRuleOutputRepresentation') {
1935
1935
  const v_error = (() => {
1936
1936
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
1937
1937
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -1995,10 +1995,10 @@ function validate$m(obj, path = 'EligibilityRuleOutputRepresentation') {
1995
1995
  })();
1996
1996
  return v_error === undefined ? null : v_error;
1997
1997
  }
1998
- const select$p = function EligibilityRuleOutputRepresentationSelect() {
1998
+ const select$t = function EligibilityRuleOutputRepresentationSelect() {
1999
1999
  return {
2000
2000
  kind: 'Fragment',
2001
- version: VERSION$g,
2001
+ version: VERSION$i,
2002
2002
  private: [],
2003
2003
  selections: [
2004
2004
  {
@@ -2014,7 +2014,7 @@ const select$p = function EligibilityRuleOutputRepresentationSelect() {
2014
2014
  ]
2015
2015
  };
2016
2016
  };
2017
- function equals$g(existing, incoming) {
2017
+ function equals$i(existing, incoming) {
2018
2018
  const existing_eligibilityRuleId = existing.eligibilityRuleId;
2019
2019
  const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
2020
2020
  // if at least one of these optionals is defined
@@ -2044,8 +2044,8 @@ function equals$g(existing, incoming) {
2044
2044
  return true;
2045
2045
  }
2046
2046
 
2047
- const VERSION$f = "b5216beece7c04763cff6924e6953f93";
2048
- function validate$l(obj, path = 'FulfillmentFlowOutputRepresentation') {
2047
+ const VERSION$h = "b5216beece7c04763cff6924e6953f93";
2048
+ function validate$o(obj, path = 'FulfillmentFlowOutputRepresentation') {
2049
2049
  const v_error = (() => {
2050
2050
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2051
2051
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2137,10 +2137,10 @@ function validate$l(obj, path = 'FulfillmentFlowOutputRepresentation') {
2137
2137
  })();
2138
2138
  return v_error === undefined ? null : v_error;
2139
2139
  }
2140
- const select$o = function FulfillmentFlowOutputRepresentationSelect() {
2140
+ const select$s = function FulfillmentFlowOutputRepresentationSelect() {
2141
2141
  return {
2142
2142
  kind: 'Fragment',
2143
- version: VERSION$f,
2143
+ version: VERSION$h,
2144
2144
  private: [],
2145
2145
  selections: [
2146
2146
  {
@@ -2161,7 +2161,7 @@ const select$o = function FulfillmentFlowOutputRepresentationSelect() {
2161
2161
  ]
2162
2162
  };
2163
2163
  };
2164
- function equals$f(existing, incoming) {
2164
+ function equals$h(existing, incoming) {
2165
2165
  const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
2166
2166
  const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
2167
2167
  // if at least one of these optionals is defined
@@ -2204,8 +2204,8 @@ function equals$f(existing, incoming) {
2204
2204
  return true;
2205
2205
  }
2206
2206
 
2207
- const VERSION$e = "dc8ba723ca754951db42f9d0e6891a06";
2208
- function validate$k(obj, path = 'IntakeFormOutputRepresentation') {
2207
+ const VERSION$g = "dc8ba723ca754951db42f9d0e6891a06";
2208
+ function validate$n(obj, path = 'IntakeFormOutputRepresentation') {
2209
2209
  const v_error = (() => {
2210
2210
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2211
2211
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2437,10 +2437,10 @@ function validate$k(obj, path = 'IntakeFormOutputRepresentation') {
2437
2437
  })();
2438
2438
  return v_error === undefined ? null : v_error;
2439
2439
  }
2440
- const select$n = function IntakeFormOutputRepresentationSelect() {
2440
+ const select$r = function IntakeFormOutputRepresentationSelect() {
2441
2441
  return {
2442
2442
  kind: 'Fragment',
2443
- version: VERSION$e,
2443
+ version: VERSION$g,
2444
2444
  private: [],
2445
2445
  selections: [
2446
2446
  {
@@ -2486,7 +2486,7 @@ const select$n = function IntakeFormOutputRepresentationSelect() {
2486
2486
  ]
2487
2487
  };
2488
2488
  };
2489
- function equals$e(existing, incoming) {
2489
+ function equals$g(existing, incoming) {
2490
2490
  const existing_id = existing.id;
2491
2491
  const incoming_id = incoming.id;
2492
2492
  // if at least one of these optionals is defined
@@ -2594,8 +2594,8 @@ function equals$e(existing, incoming) {
2594
2594
  return true;
2595
2595
  }
2596
2596
 
2597
- const VERSION$d = "1006a153c933b8bc4b1d44663893e206";
2598
- function validate$j(obj, path = 'IntegrationDefinitionOutputPresentation') {
2597
+ const VERSION$f = "1006a153c933b8bc4b1d44663893e206";
2598
+ function validate$m(obj, path = 'IntegrationDefinitionOutputPresentation') {
2599
2599
  const v_error = (() => {
2600
2600
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2601
2601
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2659,10 +2659,10 @@ function validate$j(obj, path = 'IntegrationDefinitionOutputPresentation') {
2659
2659
  })();
2660
2660
  return v_error === undefined ? null : v_error;
2661
2661
  }
2662
- const select$m = function IntegrationDefinitionOutputPresentationSelect() {
2662
+ const select$q = function IntegrationDefinitionOutputPresentationSelect() {
2663
2663
  return {
2664
2664
  kind: 'Fragment',
2665
- version: VERSION$d,
2665
+ version: VERSION$f,
2666
2666
  private: [],
2667
2667
  selections: [
2668
2668
  {
@@ -2678,7 +2678,7 @@ const select$m = function IntegrationDefinitionOutputPresentationSelect() {
2678
2678
  ]
2679
2679
  };
2680
2680
  };
2681
- function equals$d(existing, incoming) {
2681
+ function equals$f(existing, incoming) {
2682
2682
  const existing_id = existing.id;
2683
2683
  const incoming_id = incoming.id;
2684
2684
  // if at least one of these optionals is defined
@@ -2708,8 +2708,8 @@ function equals$d(existing, incoming) {
2708
2708
  return true;
2709
2709
  }
2710
2710
 
2711
- const VERSION$c = "2d685b1e467eb8d61276e834ea3b74a3";
2712
- function validate$i(obj, path = 'PreprocessorOutputRepresentation') {
2711
+ const VERSION$e = "2d685b1e467eb8d61276e834ea3b74a3";
2712
+ function validate$l(obj, path = 'PreprocessorOutputRepresentation') {
2713
2713
  const v_error = (() => {
2714
2714
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2715
2715
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2773,10 +2773,10 @@ function validate$i(obj, path = 'PreprocessorOutputRepresentation') {
2773
2773
  })();
2774
2774
  return v_error === undefined ? null : v_error;
2775
2775
  }
2776
- const select$l = function PreprocessorOutputRepresentationSelect() {
2776
+ const select$p = function PreprocessorOutputRepresentationSelect() {
2777
2777
  return {
2778
2778
  kind: 'Fragment',
2779
- version: VERSION$c,
2779
+ version: VERSION$e,
2780
2780
  private: [],
2781
2781
  selections: [
2782
2782
  {
@@ -2792,7 +2792,7 @@ const select$l = function PreprocessorOutputRepresentationSelect() {
2792
2792
  ]
2793
2793
  };
2794
2794
  };
2795
- function equals$c(existing, incoming) {
2795
+ function equals$e(existing, incoming) {
2796
2796
  const existing_id = existing.id;
2797
2797
  const incoming_id = incoming.id;
2798
2798
  // if at least one of these optionals is defined
@@ -2822,8 +2822,8 @@ function equals$c(existing, incoming) {
2822
2822
  return true;
2823
2823
  }
2824
2824
 
2825
- const VERSION$b = "bb9dde3a26e01fbcb2b943119fcb279a";
2826
- function validate$h(obj, path = 'ProductDetailsOutputRepresentation') {
2825
+ const VERSION$d = "bb9dde3a26e01fbcb2b943119fcb279a";
2826
+ function validate$k(obj, path = 'ProductDetailsOutputRepresentation') {
2827
2827
  const v_error = (() => {
2828
2828
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2829
2829
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -2999,10 +2999,10 @@ function validate$h(obj, path = 'ProductDetailsOutputRepresentation') {
2999
2999
  })();
3000
3000
  return v_error === undefined ? null : v_error;
3001
3001
  }
3002
- const select$k = function ProductDetailsOutputRepresentationSelect() {
3002
+ const select$o = function ProductDetailsOutputRepresentationSelect() {
3003
3003
  return {
3004
3004
  kind: 'Fragment',
3005
- version: VERSION$b,
3005
+ version: VERSION$d,
3006
3006
  private: [],
3007
3007
  selections: [
3008
3008
  {
@@ -3038,7 +3038,7 @@ const select$k = function ProductDetailsOutputRepresentationSelect() {
3038
3038
  ]
3039
3039
  };
3040
3040
  };
3041
- function equals$b(existing, incoming) {
3041
+ function equals$d(existing, incoming) {
3042
3042
  const existing_description = existing.description;
3043
3043
  const incoming_description = incoming.description;
3044
3044
  // if at least one of these optionals is defined
@@ -3120,8 +3120,8 @@ function equals$b(existing, incoming) {
3120
3120
  return true;
3121
3121
  }
3122
3122
 
3123
- const VERSION$a = "dc18ee4b99b0510d2c89ddf9261ea1e7";
3124
- function validate$g(obj, path = 'ProductRequestOutputRepresentation') {
3123
+ const VERSION$c = "dc18ee4b99b0510d2c89ddf9261ea1e7";
3124
+ function validate$j(obj, path = 'ProductRequestOutputRepresentation') {
3125
3125
  const v_error = (() => {
3126
3126
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3127
3127
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3135,7 +3135,7 @@ function validate$g(obj, path = 'ProductRequestOutputRepresentation') {
3135
3135
  for (let i = 0; i < obj_productDetails.length; i++) {
3136
3136
  const obj_productDetails_item = obj_productDetails[i];
3137
3137
  const path_productDetails_item = path_productDetails + '[' + i + ']';
3138
- const referencepath_productDetails_itemValidationError = validate$h(obj_productDetails_item, path_productDetails_item);
3138
+ const referencepath_productDetails_itemValidationError = validate$k(obj_productDetails_item, path_productDetails_item);
3139
3139
  if (referencepath_productDetails_itemValidationError !== null) {
3140
3140
  let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
3141
3141
  message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -3314,11 +3314,11 @@ function validate$g(obj, path = 'ProductRequestOutputRepresentation') {
3314
3314
  })();
3315
3315
  return v_error === undefined ? null : v_error;
3316
3316
  }
3317
- const select$j = function ProductRequestOutputRepresentationSelect() {
3318
- const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$k();
3317
+ const select$n = function ProductRequestOutputRepresentationSelect() {
3318
+ const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$o();
3319
3319
  return {
3320
3320
  kind: 'Fragment',
3321
- version: VERSION$a,
3321
+ version: VERSION$c,
3322
3322
  private: [],
3323
3323
  selections: [
3324
3324
  {
@@ -3361,7 +3361,7 @@ const select$j = function ProductRequestOutputRepresentationSelect() {
3361
3361
  ]
3362
3362
  };
3363
3363
  };
3364
- function equals$a(existing, incoming) {
3364
+ function equals$c(existing, incoming) {
3365
3365
  const existing_productDetails = existing.productDetails;
3366
3366
  const incoming_productDetails = incoming.productDetails;
3367
3367
  // if at least one of these optionals is defined
@@ -3372,7 +3372,7 @@ function equals$a(existing, incoming) {
3372
3372
  return false;
3373
3373
  }
3374
3374
  const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
3375
- if (!(equals$b(existing_productDetails_item, incoming_productDetails_item))) {
3375
+ if (!(equals$d(existing_productDetails_item, incoming_productDetails_item))) {
3376
3376
  return false;
3377
3377
  }
3378
3378
  });
@@ -3461,8 +3461,8 @@ function equals$a(existing, incoming) {
3461
3461
  return true;
3462
3462
  }
3463
3463
 
3464
- const VERSION$9 = "96012ee7981543ddc90b7a4d3e505ffb";
3465
- function validate$f(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
3464
+ const VERSION$b = "96012ee7981543ddc90b7a4d3e505ffb";
3465
+ function validate$i(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
3466
3466
  const v_error = (() => {
3467
3467
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3468
3468
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -3512,10 +3512,10 @@ function validate$f(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
3512
3512
  })();
3513
3513
  return v_error === undefined ? null : v_error;
3514
3514
  }
3515
- const select$i = function PicklistAttributeTypeOutputRepresentationSelect() {
3515
+ const select$m = function PicklistAttributeTypeOutputRepresentationSelect() {
3516
3516
  return {
3517
3517
  kind: 'Fragment',
3518
- version: VERSION$9,
3518
+ version: VERSION$b,
3519
3519
  private: [],
3520
3520
  selections: [
3521
3521
  {
@@ -3551,7 +3551,7 @@ const select$i = function PicklistAttributeTypeOutputRepresentationSelect() {
3551
3551
  ]
3552
3552
  };
3553
3553
  };
3554
- function equals$9(existing, incoming) {
3554
+ function equals$b(existing, incoming) {
3555
3555
  const existing_isDefault = existing.isDefault;
3556
3556
  const incoming_isDefault = incoming.isDefault;
3557
3557
  // if at least one of these optionals is defined
@@ -3633,8 +3633,8 @@ function equals$9(existing, incoming) {
3633
3633
  return true;
3634
3634
  }
3635
3635
 
3636
- const VERSION$8 = "564fd7f64d997ab6ecc936f5787a27f9";
3637
- function validate$e(obj, path = 'CatalogItemAttributeOutputRepresentation') {
3636
+ const VERSION$a = "564fd7f64d997ab6ecc936f5787a27f9";
3637
+ function validate$h(obj, path = 'CatalogItemAttributeOutputRepresentation') {
3638
3638
  const v_error = (() => {
3639
3639
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3640
3640
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4028,7 +4028,7 @@ function validate$e(obj, path = 'CatalogItemAttributeOutputRepresentation') {
4028
4028
  const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
4029
4029
  let obj_picklistOptions_item_union0 = null;
4030
4030
  const obj_picklistOptions_item_union0_error = (() => {
4031
- const referencepath_picklistOptions_itemValidationError = validate$f(obj_picklistOptions_item, path_picklistOptions_item);
4031
+ const referencepath_picklistOptions_itemValidationError = validate$i(obj_picklistOptions_item, path_picklistOptions_item);
4032
4032
  if (referencepath_picklistOptions_itemValidationError !== null) {
4033
4033
  let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
4034
4034
  message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4086,11 +4086,11 @@ function validate$e(obj, path = 'CatalogItemAttributeOutputRepresentation') {
4086
4086
  })();
4087
4087
  return v_error === undefined ? null : v_error;
4088
4088
  }
4089
- const select$h = function CatalogItemAttributeOutputRepresentationSelect() {
4090
- const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$i();
4089
+ const select$l = function CatalogItemAttributeOutputRepresentationSelect() {
4090
+ const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$m();
4091
4091
  return {
4092
4092
  kind: 'Fragment',
4093
- version: VERSION$8,
4093
+ version: VERSION$a,
4094
4094
  private: [],
4095
4095
  selections: [
4096
4096
  {
@@ -4184,7 +4184,7 @@ const select$h = function CatalogItemAttributeOutputRepresentationSelect() {
4184
4184
  ]
4185
4185
  };
4186
4186
  };
4187
- function equals$8(existing, incoming) {
4187
+ function equals$a(existing, incoming) {
4188
4188
  const existing_isEditable = existing.isEditable;
4189
4189
  const incoming_isEditable = incoming.isEditable;
4190
4190
  // if at least one of these optionals is defined
@@ -4393,7 +4393,7 @@ function equals$8(existing, incoming) {
4393
4393
  if (!(existing_picklistOptions_item === incoming_picklistOptions_item
4394
4394
  || (existing_picklistOptions_item != null &&
4395
4395
  incoming_picklistOptions_item != null &&
4396
- equals$9(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
4396
+ equals$b(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
4397
4397
  return false;
4398
4398
  }
4399
4399
  });
@@ -4417,8 +4417,8 @@ function equals$8(existing, incoming) {
4417
4417
  return true;
4418
4418
  }
4419
4419
 
4420
- const VERSION$7 = "eed5c7a2ef3082b1059e48f5742cd44f";
4421
- function validate$d(obj, path = 'SectionOutputRepresentation') {
4420
+ const VERSION$9 = "eed5c7a2ef3082b1059e48f5742cd44f";
4421
+ function validate$g(obj, path = 'SectionOutputRepresentation') {
4422
4422
  const v_error = (() => {
4423
4423
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4424
4424
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4434,7 +4434,7 @@ function validate$d(obj, path = 'SectionOutputRepresentation') {
4434
4434
  const path_attributes_item = path_attributes + '[' + i + ']';
4435
4435
  let obj_attributes_item_union0 = null;
4436
4436
  const obj_attributes_item_union0_error = (() => {
4437
- const referencepath_attributes_itemValidationError = validate$e(obj_attributes_item, path_attributes_item);
4437
+ const referencepath_attributes_itemValidationError = validate$h(obj_attributes_item, path_attributes_item);
4438
4438
  if (referencepath_attributes_itemValidationError !== null) {
4439
4439
  let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
4440
4440
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4555,11 +4555,11 @@ function validate$d(obj, path = 'SectionOutputRepresentation') {
4555
4555
  })();
4556
4556
  return v_error === undefined ? null : v_error;
4557
4557
  }
4558
- const select$g = function SectionOutputRepresentationSelect() {
4559
- const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$h();
4558
+ const select$k = function SectionOutputRepresentationSelect() {
4559
+ const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$l();
4560
4560
  return {
4561
4561
  kind: 'Fragment',
4562
- version: VERSION$7,
4562
+ version: VERSION$9,
4563
4563
  private: [],
4564
4564
  selections: [
4565
4565
  {
@@ -4593,7 +4593,7 @@ const select$g = function SectionOutputRepresentationSelect() {
4593
4593
  ]
4594
4594
  };
4595
4595
  };
4596
- function equals$7(existing, incoming) {
4596
+ function equals$9(existing, incoming) {
4597
4597
  const existing_sequence = existing.sequence;
4598
4598
  const incoming_sequence = incoming.sequence;
4599
4599
  // if at least one of these optionals is defined
@@ -4620,7 +4620,7 @@ function equals$7(existing, incoming) {
4620
4620
  if (!(existing_attributes_item === incoming_attributes_item
4621
4621
  || (existing_attributes_item != null &&
4622
4622
  incoming_attributes_item != null &&
4623
- equals$8(existing_attributes_item, incoming_attributes_item)))) {
4623
+ equals$a(existing_attributes_item, incoming_attributes_item)))) {
4624
4624
  return false;
4625
4625
  }
4626
4626
  });
@@ -4670,9 +4670,9 @@ function equals$7(existing, incoming) {
4670
4670
  return true;
4671
4671
  }
4672
4672
 
4673
- const TTL$5 = 6000;
4674
- const VERSION$6 = "9cce3c8a5131820b99e02e05c1d95d43";
4675
- function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4673
+ const TTL$7 = 6000;
4674
+ const VERSION$8 = "9cce3c8a5131820b99e02e05c1d95d43";
4675
+ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
4676
4676
  const v_error = (() => {
4677
4677
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
4678
4678
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -4682,7 +4682,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4682
4682
  const path_agentAction = path + '.agentAction';
4683
4683
  let obj_agentAction_union0 = null;
4684
4684
  const obj_agentAction_union0_error = (() => {
4685
- const referencepath_agentActionValidationError = validate$o(obj_agentAction, path_agentAction);
4685
+ const referencepath_agentActionValidationError = validate$r(obj_agentAction, path_agentAction);
4686
4686
  if (referencepath_agentActionValidationError !== null) {
4687
4687
  let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
4688
4688
  message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4719,7 +4719,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4719
4719
  const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
4720
4720
  let obj_associatedArticles_item_union0 = null;
4721
4721
  const obj_associatedArticles_item_union0_error = (() => {
4722
- const referencepath_associatedArticles_itemValidationError = validate$n(obj_associatedArticles_item, path_associatedArticles_item);
4722
+ const referencepath_associatedArticles_itemValidationError = validate$q(obj_associatedArticles_item, path_associatedArticles_item);
4723
4723
  if (referencepath_associatedArticles_itemValidationError !== null) {
4724
4724
  let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
4725
4725
  message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4867,7 +4867,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4867
4867
  const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
4868
4868
  let obj_eligibilityRules_item_union0 = null;
4869
4869
  const obj_eligibilityRules_item_union0_error = (() => {
4870
- const referencepath_eligibilityRules_itemValidationError = validate$m(obj_eligibilityRules_item, path_eligibilityRules_item);
4870
+ const referencepath_eligibilityRules_itemValidationError = validate$p(obj_eligibilityRules_item, path_eligibilityRules_item);
4871
4871
  if (referencepath_eligibilityRules_itemValidationError !== null) {
4872
4872
  let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
4873
4873
  message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4899,7 +4899,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4899
4899
  const path_fulfillmentFlow = path + '.fulfillmentFlow';
4900
4900
  let obj_fulfillmentFlow_union0 = null;
4901
4901
  const obj_fulfillmentFlow_union0_error = (() => {
4902
- const referencepath_fulfillmentFlowValidationError = validate$l(obj_fulfillmentFlow, path_fulfillmentFlow);
4902
+ const referencepath_fulfillmentFlowValidationError = validate$o(obj_fulfillmentFlow, path_fulfillmentFlow);
4903
4903
  if (referencepath_fulfillmentFlowValidationError !== null) {
4904
4904
  let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
4905
4905
  message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4930,7 +4930,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4930
4930
  const path_intakeForm = path + '.intakeForm';
4931
4931
  let obj_intakeForm_union0 = null;
4932
4932
  const obj_intakeForm_union0_error = (() => {
4933
- const referencepath_intakeFormValidationError = validate$k(obj_intakeForm, path_intakeForm);
4933
+ const referencepath_intakeFormValidationError = validate$n(obj_intakeForm, path_intakeForm);
4934
4934
  if (referencepath_intakeFormValidationError !== null) {
4935
4935
  let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
4936
4936
  message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -4967,7 +4967,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
4967
4967
  const path_integrations_item = path_integrations + '[' + i + ']';
4968
4968
  let obj_integrations_item_union0 = null;
4969
4969
  const obj_integrations_item_union0_error = (() => {
4970
- const referencepath_integrations_itemValidationError = validate$j(obj_integrations_item, path_integrations_item);
4970
+ const referencepath_integrations_itemValidationError = validate$m(obj_integrations_item, path_integrations_item);
4971
4971
  if (referencepath_integrations_itemValidationError !== null) {
4972
4972
  let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
4973
4973
  message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5061,7 +5061,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
5061
5061
  const path_preProcessors_item = path_preProcessors + '[' + i + ']';
5062
5062
  let obj_preProcessors_item_union0 = null;
5063
5063
  const obj_preProcessors_item_union0_error = (() => {
5064
- const referencepath_preProcessors_itemValidationError = validate$i(obj_preProcessors_item, path_preProcessors_item);
5064
+ const referencepath_preProcessors_itemValidationError = validate$l(obj_preProcessors_item, path_preProcessors_item);
5065
5065
  if (referencepath_preProcessors_itemValidationError !== null) {
5066
5066
  let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
5067
5067
  message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5127,7 +5127,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
5127
5127
  const path_productRequests_item = path_productRequests + '[' + i + ']';
5128
5128
  let obj_productRequests_item_union0 = null;
5129
5129
  const obj_productRequests_item_union0_error = (() => {
5130
- const referencepath_productRequests_itemValidationError = validate$g(obj_productRequests_item, path_productRequests_item);
5130
+ const referencepath_productRequests_itemValidationError = validate$j(obj_productRequests_item, path_productRequests_item);
5131
5131
  if (referencepath_productRequests_itemValidationError !== null) {
5132
5132
  let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
5133
5133
  message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5159,7 +5159,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
5159
5159
  const path_section = path + '.section';
5160
5160
  let obj_section_union0 = null;
5161
5161
  const obj_section_union0_error = (() => {
5162
- const referencepath_sectionValidationError = validate$d(obj_section, path_section);
5162
+ const referencepath_sectionValidationError = validate$g(obj_section, path_section);
5163
5163
  if (referencepath_sectionValidationError !== null) {
5164
5164
  let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
5165
5165
  message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5196,7 +5196,7 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
5196
5196
  const path_sections_item = path_sections + '[' + i + ']';
5197
5197
  let obj_sections_item_union0 = null;
5198
5198
  const obj_sections_item_union0_error = (() => {
5199
- const referencepath_sections_itemValidationError = validate$d(obj_sections_item, path_sections_item);
5199
+ const referencepath_sections_itemValidationError = validate$g(obj_sections_item, path_sections_item);
5200
5200
  if (referencepath_sections_itemValidationError !== null) {
5201
5201
  let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
5202
5202
  message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -5282,32 +5282,32 @@ function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
5282
5282
  })();
5283
5283
  return v_error === undefined ? null : v_error;
5284
5284
  }
5285
- const RepresentationType$6 = 'CatalogItemOutputRepresentation';
5286
- function keyBuilder$b(luvio, config) {
5287
- return keyPrefix + '::' + RepresentationType$6 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
5285
+ const RepresentationType$8 = 'CatalogItemOutputRepresentation';
5286
+ function keyBuilder$e(luvio, config) {
5287
+ return keyPrefix + '::' + RepresentationType$8 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
5288
5288
  }
5289
- function keyBuilderFromType$3(luvio, object) {
5289
+ function keyBuilderFromType$4(luvio, object) {
5290
5290
  const keyParams = {
5291
5291
  catalogItemId: object.catalogItemId
5292
5292
  };
5293
- return keyBuilder$b(luvio, keyParams);
5293
+ return keyBuilder$e(luvio, keyParams);
5294
5294
  }
5295
- function normalize$6(input, existing, path, luvio, store, timestamp) {
5295
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
5296
5296
  return input;
5297
5297
  }
5298
- const select$f = function CatalogItemOutputRepresentationSelect() {
5299
- const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$r();
5300
- const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$q();
5301
- const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$p();
5302
- const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$o();
5303
- const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$n();
5304
- const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$m();
5305
- const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$l();
5306
- const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$j();
5307
- const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$g();
5298
+ const select$j = function CatalogItemOutputRepresentationSelect() {
5299
+ const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$v();
5300
+ const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$u();
5301
+ const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$t();
5302
+ const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$s();
5303
+ const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$r();
5304
+ const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$q();
5305
+ const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$p();
5306
+ const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$n();
5307
+ const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$k();
5308
5308
  return {
5309
5309
  kind: 'Fragment',
5310
- version: VERSION$6,
5310
+ version: VERSION$8,
5311
5311
  private: [],
5312
5312
  selections: [
5313
5313
  {
@@ -5433,7 +5433,7 @@ const select$f = function CatalogItemOutputRepresentationSelect() {
5433
5433
  ]
5434
5434
  };
5435
5435
  };
5436
- function equals$6(existing, incoming) {
5436
+ function equals$8(existing, incoming) {
5437
5437
  const existing_agentAction = existing.agentAction;
5438
5438
  const incoming_agentAction = incoming.agentAction;
5439
5439
  // if at least one of these optionals is defined
@@ -5446,7 +5446,7 @@ function equals$6(existing, incoming) {
5446
5446
  if (!(existing_agentAction === incoming_agentAction
5447
5447
  || (existing_agentAction != null &&
5448
5448
  incoming_agentAction != null &&
5449
- equals$i(existing_agentAction, incoming_agentAction)))) {
5449
+ equals$k(existing_agentAction, incoming_agentAction)))) {
5450
5450
  return false;
5451
5451
  }
5452
5452
  }
@@ -5463,7 +5463,7 @@ function equals$6(existing, incoming) {
5463
5463
  if (!(existing_associatedArticles_item === incoming_associatedArticles_item
5464
5464
  || (existing_associatedArticles_item != null &&
5465
5465
  incoming_associatedArticles_item != null &&
5466
- equals$h(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
5466
+ equals$j(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
5467
5467
  return false;
5468
5468
  }
5469
5469
  });
@@ -5528,7 +5528,7 @@ function equals$6(existing, incoming) {
5528
5528
  if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
5529
5529
  || (existing_eligibilityRules_item != null &&
5530
5530
  incoming_eligibilityRules_item != null &&
5531
- equals$g(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
5531
+ equals$i(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
5532
5532
  return false;
5533
5533
  }
5534
5534
  });
@@ -5548,7 +5548,7 @@ function equals$6(existing, incoming) {
5548
5548
  if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
5549
5549
  || (existing_fulfillmentFlow != null &&
5550
5550
  incoming_fulfillmentFlow != null &&
5551
- equals$f(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
5551
+ equals$h(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
5552
5552
  return false;
5553
5553
  }
5554
5554
  }
@@ -5564,7 +5564,7 @@ function equals$6(existing, incoming) {
5564
5564
  if (!(existing_intakeForm === incoming_intakeForm
5565
5565
  || (existing_intakeForm != null &&
5566
5566
  incoming_intakeForm != null &&
5567
- equals$e(existing_intakeForm, incoming_intakeForm)))) {
5567
+ equals$g(existing_intakeForm, incoming_intakeForm)))) {
5568
5568
  return false;
5569
5569
  }
5570
5570
  }
@@ -5581,7 +5581,7 @@ function equals$6(existing, incoming) {
5581
5581
  if (!(existing_integrations_item === incoming_integrations_item
5582
5582
  || (existing_integrations_item != null &&
5583
5583
  incoming_integrations_item != null &&
5584
- equals$d(existing_integrations_item, incoming_integrations_item)))) {
5584
+ equals$f(existing_integrations_item, incoming_integrations_item)))) {
5585
5585
  return false;
5586
5586
  }
5587
5587
  });
@@ -5628,7 +5628,7 @@ function equals$6(existing, incoming) {
5628
5628
  if (!(existing_preProcessors_item === incoming_preProcessors_item
5629
5629
  || (existing_preProcessors_item != null &&
5630
5630
  incoming_preProcessors_item != null &&
5631
- equals$c(existing_preProcessors_item, incoming_preProcessors_item)))) {
5631
+ equals$e(existing_preProcessors_item, incoming_preProcessors_item)))) {
5632
5632
  return false;
5633
5633
  }
5634
5634
  });
@@ -5662,7 +5662,7 @@ function equals$6(existing, incoming) {
5662
5662
  if (!(existing_productRequests_item === incoming_productRequests_item
5663
5663
  || (existing_productRequests_item != null &&
5664
5664
  incoming_productRequests_item != null &&
5665
- equals$a(existing_productRequests_item, incoming_productRequests_item)))) {
5665
+ equals$c(existing_productRequests_item, incoming_productRequests_item)))) {
5666
5666
  return false;
5667
5667
  }
5668
5668
  });
@@ -5682,7 +5682,7 @@ function equals$6(existing, incoming) {
5682
5682
  if (!(existing_section === incoming_section
5683
5683
  || (existing_section != null &&
5684
5684
  incoming_section != null &&
5685
- equals$7(existing_section, incoming_section)))) {
5685
+ equals$9(existing_section, incoming_section)))) {
5686
5686
  return false;
5687
5687
  }
5688
5688
  }
@@ -5699,7 +5699,7 @@ function equals$6(existing, incoming) {
5699
5699
  if (!(existing_sections_item === incoming_sections_item
5700
5700
  || (existing_sections_item != null &&
5701
5701
  incoming_sections_item != null &&
5702
- equals$7(existing_sections_item, incoming_sections_item)))) {
5702
+ equals$9(existing_sections_item, incoming_sections_item)))) {
5703
5703
  return false;
5704
5704
  }
5705
5705
  });
@@ -5735,41 +5735,41 @@ function equals$6(existing, incoming) {
5735
5735
  }
5736
5736
  return true;
5737
5737
  }
5738
- const ingest$6 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
5738
+ const ingest$8 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
5739
5739
  if (process.env.NODE_ENV !== 'production') {
5740
- const validateError = validate$c(input);
5740
+ const validateError = validate$f(input);
5741
5741
  if (validateError !== null) {
5742
5742
  throw validateError;
5743
5743
  }
5744
5744
  }
5745
- const key = keyBuilderFromType$3(luvio, input);
5746
- const ttlToUse = TTL$5;
5747
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$6, RepresentationType$6, equals$6);
5745
+ const key = keyBuilderFromType$4(luvio, input);
5746
+ const ttlToUse = TTL$7;
5747
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "ecm", VERSION$8, RepresentationType$8, equals$8);
5748
5748
  return createLink(key);
5749
5749
  };
5750
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
5750
+ function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
5751
5751
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
5752
- const rootKey = keyBuilderFromType$3(luvio, input);
5752
+ const rootKey = keyBuilderFromType$4(luvio, input);
5753
5753
  rootKeySet.set(rootKey, {
5754
5754
  namespace: keyPrefix,
5755
- representationName: RepresentationType$6,
5755
+ representationName: RepresentationType$8,
5756
5756
  mergeable: false
5757
5757
  });
5758
5758
  }
5759
5759
 
5760
- function select$e(luvio, params) {
5761
- return select$f();
5760
+ function select$i(luvio, params) {
5761
+ return select$j();
5762
5762
  }
5763
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
5764
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
5763
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
5764
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
5765
5765
  }
5766
- function ingestSuccess$8(luvio, resourceParams, response) {
5766
+ function ingestSuccess$a(luvio, resourceParams, response) {
5767
5767
  const { body } = response;
5768
- const key = keyBuilderFromType$3(luvio, body);
5769
- luvio.storeIngest(key, ingest$6, body);
5768
+ const key = keyBuilderFromType$4(luvio, body);
5769
+ luvio.storeIngest(key, ingest$8, body);
5770
5770
  const snapshot = luvio.storeLookup({
5771
5771
  recordId: key,
5772
- node: select$e(),
5772
+ node: select$i(),
5773
5773
  variables: {},
5774
5774
  });
5775
5775
  if (process.env.NODE_ENV !== 'production') {
@@ -5780,7 +5780,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
5780
5780
  deepFreeze(snapshot.data);
5781
5781
  return snapshot;
5782
5782
  }
5783
- function createResourceRequest$8(config) {
5783
+ function createResourceRequest$a(config) {
5784
5784
  const headers = {};
5785
5785
  return {
5786
5786
  baseUri: '/services/data/v65.0',
@@ -5794,7 +5794,7 @@ function createResourceRequest$8(config) {
5794
5794
  };
5795
5795
  }
5796
5796
 
5797
- const adapterName$8 = 'createCatalogItem';
5797
+ const adapterName$a = 'createCatalogItem';
5798
5798
  const createCatalogItem_ConfigPropertyMetadata = [
5799
5799
  generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
5800
5800
  generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
@@ -5814,12 +5814,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
5814
5814
  generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
5815
5815
  generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
5816
5816
  ];
5817
- const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createCatalogItem_ConfigPropertyMetadata);
5818
- const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createCatalogItem_ConfigPropertyMetadata);
5819
- function typeCheckConfig$8(untrustedConfig) {
5817
+ const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, createCatalogItem_ConfigPropertyMetadata);
5818
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(createCatalogItem_ConfigPropertyMetadata);
5819
+ function typeCheckConfig$a(untrustedConfig) {
5820
5820
  const config = {};
5821
5821
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
5822
- const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
5822
+ const referenceAgentActionInputRepresentationValidationError = validate$C(untrustedConfig_agentAction);
5823
5823
  if (referenceAgentActionInputRepresentationValidationError === null) {
5824
5824
  config.agentAction = untrustedConfig_agentAction;
5825
5825
  }
@@ -5831,7 +5831,7 @@ function typeCheckConfig$8(untrustedConfig) {
5831
5831
  const untrustedConfig_associatedArticles_array = [];
5832
5832
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
5833
5833
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
5834
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$y(untrustedConfig_associatedArticles_item);
5834
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$B(untrustedConfig_associatedArticles_item);
5835
5835
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
5836
5836
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
5837
5837
  }
@@ -5846,7 +5846,7 @@ function typeCheckConfig$8(untrustedConfig) {
5846
5846
  const untrustedConfig_attributes_array = [];
5847
5847
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
5848
5848
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
5849
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$w(untrustedConfig_attributes_item);
5849
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$z(untrustedConfig_attributes_item);
5850
5850
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
5851
5851
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
5852
5852
  }
@@ -5861,7 +5861,7 @@ function typeCheckConfig$8(untrustedConfig) {
5861
5861
  const untrustedConfig_sections_array = [];
5862
5862
  for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
5863
5863
  const untrustedConfig_sections_item = untrustedConfig_sections[i];
5864
- const referenceSectionInputRepresentationValidationError = validate$v(untrustedConfig_sections_item);
5864
+ const referenceSectionInputRepresentationValidationError = validate$y(untrustedConfig_sections_item);
5865
5865
  if (referenceSectionInputRepresentationValidationError === null) {
5866
5866
  untrustedConfig_sections_array.push(untrustedConfig_sections_item);
5867
5867
  }
@@ -5897,7 +5897,7 @@ function typeCheckConfig$8(untrustedConfig) {
5897
5897
  const untrustedConfig_eligibilityRules_array = [];
5898
5898
  for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
5899
5899
  const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
5900
- const referenceEligibilityRulesInputRepresentationValidationError = validate$u(untrustedConfig_eligibilityRules_item);
5900
+ const referenceEligibilityRulesInputRepresentationValidationError = validate$x(untrustedConfig_eligibilityRules_item);
5901
5901
  if (referenceEligibilityRulesInputRepresentationValidationError === null) {
5902
5902
  untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
5903
5903
  }
@@ -5908,7 +5908,7 @@ function typeCheckConfig$8(untrustedConfig) {
5908
5908
  config.eligibilityRules = untrustedConfig_eligibilityRules_array;
5909
5909
  }
5910
5910
  const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
5911
- const referenceFulfillmentFlowInputRepresentationValidationError = validate$t(untrustedConfig_fulfillmentFlow);
5911
+ const referenceFulfillmentFlowInputRepresentationValidationError = validate$w(untrustedConfig_fulfillmentFlow);
5912
5912
  if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
5913
5913
  config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
5914
5914
  }
@@ -5916,7 +5916,7 @@ function typeCheckConfig$8(untrustedConfig) {
5916
5916
  config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
5917
5917
  }
5918
5918
  const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
5919
- const referenceIntakeFormInputRepresentationValidationError = validate$s(untrustedConfig_intakeForm);
5919
+ const referenceIntakeFormInputRepresentationValidationError = validate$v(untrustedConfig_intakeForm);
5920
5920
  if (referenceIntakeFormInputRepresentationValidationError === null) {
5921
5921
  config.intakeForm = untrustedConfig_intakeForm;
5922
5922
  }
@@ -5928,7 +5928,7 @@ function typeCheckConfig$8(untrustedConfig) {
5928
5928
  const untrustedConfig_integrations_array = [];
5929
5929
  for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
5930
5930
  const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
5931
- const referenceIntegrationDefInputRepresentationValidationError = validate$r(untrustedConfig_integrations_item);
5931
+ const referenceIntegrationDefInputRepresentationValidationError = validate$u(untrustedConfig_integrations_item);
5932
5932
  if (referenceIntegrationDefInputRepresentationValidationError === null) {
5933
5933
  untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
5934
5934
  }
@@ -5957,7 +5957,7 @@ function typeCheckConfig$8(untrustedConfig) {
5957
5957
  const untrustedConfig_preProcessors_array = [];
5958
5958
  for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
5959
5959
  const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
5960
- const referencePreprocessorInputRepresentationValidationError = validate$q(untrustedConfig_preProcessors_item);
5960
+ const referencePreprocessorInputRepresentationValidationError = validate$t(untrustedConfig_preProcessors_item);
5961
5961
  if (referencePreprocessorInputRepresentationValidationError === null) {
5962
5962
  untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
5963
5963
  }
@@ -5972,7 +5972,7 @@ function typeCheckConfig$8(untrustedConfig) {
5972
5972
  const untrustedConfig_productRequests_array = [];
5973
5973
  for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
5974
5974
  const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
5975
- const referenceProductRequestCreateInputRepresentationValidationError = validate$p(untrustedConfig_productRequests_item);
5975
+ const referenceProductRequestCreateInputRepresentationValidationError = validate$s(untrustedConfig_productRequests_item);
5976
5976
  if (referenceProductRequestCreateInputRepresentationValidationError === null) {
5977
5977
  untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
5978
5978
  }
@@ -5998,30 +5998,30 @@ function typeCheckConfig$8(untrustedConfig) {
5998
5998
  }
5999
5999
  return config;
6000
6000
  }
6001
- function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
6001
+ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
6002
6002
  if (!untrustedIsObject(untrustedConfig)) {
6003
6003
  return null;
6004
6004
  }
6005
6005
  if (process.env.NODE_ENV !== 'production') {
6006
6006
  validateConfig(untrustedConfig, configPropertyNames);
6007
6007
  }
6008
- const config = typeCheckConfig$8(untrustedConfig);
6008
+ const config = typeCheckConfig$a(untrustedConfig);
6009
6009
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6010
6010
  return null;
6011
6011
  }
6012
6012
  return config;
6013
6013
  }
6014
- function buildNetworkSnapshot$8(luvio, config, options) {
6015
- const resourceParams = createResourceParams$8(config);
6016
- const request = createResourceRequest$8(resourceParams);
6014
+ function buildNetworkSnapshot$a(luvio, config, options) {
6015
+ const resourceParams = createResourceParams$a(config);
6016
+ const request = createResourceRequest$a(resourceParams);
6017
6017
  return luvio.dispatchResourceRequest(request, options)
6018
6018
  .then((response) => {
6019
6019
  return luvio.handleSuccessResponse(() => {
6020
- const snapshot = ingestSuccess$8(luvio, resourceParams, response);
6020
+ const snapshot = ingestSuccess$a(luvio, resourceParams, response);
6021
6021
  return luvio.storeBroadcast().then(() => snapshot);
6022
6022
  }, () => {
6023
6023
  const cache = new StoreKeyMap();
6024
- getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
6024
+ getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
6025
6025
  return cache;
6026
6026
  });
6027
6027
  }, (response) => {
@@ -6031,33 +6031,33 @@ function buildNetworkSnapshot$8(luvio, config, options) {
6031
6031
  }
6032
6032
  const createCatalogItemAdapterFactory = (luvio) => {
6033
6033
  return function createCatalogItem(untrustedConfig) {
6034
- const config = validateAdapterConfig$8(untrustedConfig, createCatalogItem_ConfigPropertyNames);
6034
+ const config = validateAdapterConfig$a(untrustedConfig, createCatalogItem_ConfigPropertyNames);
6035
6035
  // Invalid or incomplete config
6036
6036
  if (config === null) {
6037
6037
  throw new Error('Invalid config for "createCatalogItem"');
6038
6038
  }
6039
- return buildNetworkSnapshot$8(luvio, config);
6039
+ return buildNetworkSnapshot$a(luvio, config);
6040
6040
  };
6041
6041
  };
6042
6042
 
6043
- function select$d(luvio, params) {
6044
- return select$f();
6043
+ function select$h(luvio, params) {
6044
+ return select$j();
6045
6045
  }
6046
- function keyBuilder$a(luvio, params) {
6047
- return keyBuilder$b(luvio, {
6046
+ function keyBuilder$d(luvio, params) {
6047
+ return keyBuilder$e(luvio, {
6048
6048
  catalogItemId: params.urlParams.catalogItemId
6049
6049
  });
6050
6050
  }
6051
- function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
6052
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
6051
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
6052
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
6053
6053
  }
6054
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
6054
+ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
6055
6055
  const { body } = response;
6056
- const key = keyBuilder$a(luvio, resourceParams);
6057
- luvio.storeIngest(key, ingest$6, body);
6056
+ const key = keyBuilder$d(luvio, resourceParams);
6057
+ luvio.storeIngest(key, ingest$8, body);
6058
6058
  const snapshot = luvio.storeLookup({
6059
6059
  recordId: key,
6060
- node: select$d(),
6060
+ node: select$h(),
6061
6061
  variables: {},
6062
6062
  }, snapshotRefresh);
6063
6063
  if (process.env.NODE_ENV !== 'production') {
@@ -6068,19 +6068,19 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
6068
6068
  deepFreeze(snapshot.data);
6069
6069
  return snapshot;
6070
6070
  }
6071
- function ingestError$3(luvio, params, error, snapshotRefresh) {
6072
- const key = keyBuilder$a(luvio, params);
6071
+ function ingestError$4(luvio, params, error, snapshotRefresh) {
6072
+ const key = keyBuilder$d(luvio, params);
6073
6073
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6074
6074
  const storeMetadataParams = {
6075
- ttl: TTL$5,
6075
+ ttl: TTL$7,
6076
6076
  namespace: keyPrefix,
6077
- version: VERSION$6,
6078
- representationName: RepresentationType$6
6077
+ version: VERSION$8,
6078
+ representationName: RepresentationType$8
6079
6079
  };
6080
6080
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6081
6081
  return errorSnapshot;
6082
6082
  }
6083
- function createResourceRequest$7(config) {
6083
+ function createResourceRequest$9(config) {
6084
6084
  const headers = {};
6085
6085
  return {
6086
6086
  baseUri: '/services/data/v65.0',
@@ -6094,106 +6094,106 @@ function createResourceRequest$7(config) {
6094
6094
  };
6095
6095
  }
6096
6096
 
6097
- const adapterName$7 = 'getCatalogItem';
6097
+ const adapterName$9 = 'getCatalogItem';
6098
6098
  const getCatalogItem_ConfigPropertyMetadata = [
6099
6099
  generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
6100
6100
  generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
6101
6101
  ];
6102
- const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getCatalogItem_ConfigPropertyMetadata);
6103
- const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(getCatalogItem_ConfigPropertyMetadata);
6104
- function keyBuilder$9(luvio, config) {
6105
- const resourceParams = createResourceParams$7(config);
6106
- return keyBuilder$a(luvio, resourceParams);
6102
+ const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, getCatalogItem_ConfigPropertyMetadata);
6103
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(getCatalogItem_ConfigPropertyMetadata);
6104
+ function keyBuilder$c(luvio, config) {
6105
+ const resourceParams = createResourceParams$9(config);
6106
+ return keyBuilder$d(luvio, resourceParams);
6107
6107
  }
6108
- function typeCheckConfig$7(untrustedConfig) {
6108
+ function typeCheckConfig$9(untrustedConfig) {
6109
6109
  const config = {};
6110
- typeCheckConfig$9(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
6110
+ typeCheckConfig$b(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
6111
6111
  return config;
6112
6112
  }
6113
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
6113
+ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
6114
6114
  if (!untrustedIsObject(untrustedConfig)) {
6115
6115
  return null;
6116
6116
  }
6117
6117
  if (process.env.NODE_ENV !== 'production') {
6118
6118
  validateConfig(untrustedConfig, configPropertyNames);
6119
6119
  }
6120
- const config = typeCheckConfig$7(untrustedConfig);
6120
+ const config = typeCheckConfig$9(untrustedConfig);
6121
6121
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6122
6122
  return null;
6123
6123
  }
6124
6124
  return config;
6125
6125
  }
6126
- function adapterFragment$3(luvio, config) {
6127
- createResourceParams$7(config);
6128
- return select$d();
6126
+ function adapterFragment$4(luvio, config) {
6127
+ createResourceParams$9(config);
6128
+ return select$h();
6129
6129
  }
6130
- function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
6131
- const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
6130
+ function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
6131
+ const snapshot = ingestSuccess$9(luvio, resourceParams, response, {
6132
6132
  config,
6133
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
6133
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
6134
6134
  });
6135
6135
  return luvio.storeBroadcast().then(() => snapshot);
6136
6136
  }
6137
- function onFetchResponseError$3(luvio, config, resourceParams, response) {
6138
- const snapshot = ingestError$3(luvio, resourceParams, response, {
6137
+ function onFetchResponseError$4(luvio, config, resourceParams, response) {
6138
+ const snapshot = ingestError$4(luvio, resourceParams, response, {
6139
6139
  config,
6140
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
6140
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
6141
6141
  });
6142
6142
  return luvio.storeBroadcast().then(() => snapshot);
6143
6143
  }
6144
- function buildNetworkSnapshot$7(luvio, config, options) {
6145
- const resourceParams = createResourceParams$7(config);
6146
- const request = createResourceRequest$7(resourceParams);
6144
+ function buildNetworkSnapshot$9(luvio, config, options) {
6145
+ const resourceParams = createResourceParams$9(config);
6146
+ const request = createResourceRequest$9(resourceParams);
6147
6147
  return luvio.dispatchResourceRequest(request, options)
6148
6148
  .then((response) => {
6149
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
6149
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
6150
6150
  const cache = new StoreKeyMap();
6151
- getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
6151
+ getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
6152
6152
  return cache;
6153
6153
  });
6154
6154
  }, (response) => {
6155
- return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
6155
+ return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
6156
6156
  });
6157
6157
  }
6158
- function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
6159
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
6158
+ function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
6159
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$9, undefined, false);
6160
6160
  }
6161
- function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
6161
+ function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
6162
6162
  const { luvio, config } = context;
6163
6163
  const selector = {
6164
- recordId: keyBuilder$9(luvio, config),
6165
- node: adapterFragment$3(luvio, config),
6164
+ recordId: keyBuilder$c(luvio, config),
6165
+ node: adapterFragment$4(luvio, config),
6166
6166
  variables: {},
6167
6167
  };
6168
6168
  const cacheSnapshot = storeLookup(selector, {
6169
6169
  config,
6170
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
6170
+ resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
6171
6171
  });
6172
6172
  return cacheSnapshot;
6173
6173
  }
6174
6174
  const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(untrustedConfig, requestContext) {
6175
- const config = validateAdapterConfig$7(untrustedConfig, getCatalogItem_ConfigPropertyNames);
6175
+ const config = validateAdapterConfig$9(untrustedConfig, getCatalogItem_ConfigPropertyNames);
6176
6176
  // Invalid or incomplete config
6177
6177
  if (config === null) {
6178
6178
  return null;
6179
6179
  }
6180
6180
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6181
- buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
6181
+ buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
6182
6182
  };
6183
6183
 
6184
- function select$c(luvio, params) {
6185
- return select$f();
6184
+ function select$g(luvio, params) {
6185
+ return select$j();
6186
6186
  }
6187
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
6188
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
6187
+ function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
6188
+ getTypeCacheKeys$8(storeKeyMap, luvio, response);
6189
6189
  }
6190
- function ingestSuccess$6(luvio, resourceParams, response) {
6190
+ function ingestSuccess$8(luvio, resourceParams, response) {
6191
6191
  const { body } = response;
6192
- const key = keyBuilderFromType$3(luvio, body);
6193
- luvio.storeIngest(key, ingest$6, body);
6192
+ const key = keyBuilderFromType$4(luvio, body);
6193
+ luvio.storeIngest(key, ingest$8, body);
6194
6194
  const snapshot = luvio.storeLookup({
6195
6195
  recordId: key,
6196
- node: select$c(),
6196
+ node: select$g(),
6197
6197
  variables: {},
6198
6198
  });
6199
6199
  if (process.env.NODE_ENV !== 'production') {
@@ -6204,7 +6204,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
6204
6204
  deepFreeze(snapshot.data);
6205
6205
  return snapshot;
6206
6206
  }
6207
- function createResourceRequest$6(config) {
6207
+ function createResourceRequest$8(config) {
6208
6208
  const headers = {};
6209
6209
  return {
6210
6210
  baseUri: '/services/data/v65.0',
@@ -6218,7 +6218,7 @@ function createResourceRequest$6(config) {
6218
6218
  };
6219
6219
  }
6220
6220
 
6221
- const adapterName$6 = 'updateCatalogItem';
6221
+ const adapterName$8 = 'updateCatalogItem';
6222
6222
  const updateCatalogItem_ConfigPropertyMetadata = [
6223
6223
  generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
6224
6224
  generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
@@ -6240,13 +6240,13 @@ const updateCatalogItem_ConfigPropertyMetadata = [
6240
6240
  generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
6241
6241
  generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
6242
6242
  ];
6243
- const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateCatalogItem_ConfigPropertyMetadata);
6244
- const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(updateCatalogItem_ConfigPropertyMetadata);
6245
- function typeCheckConfig$6(untrustedConfig) {
6243
+ const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, updateCatalogItem_ConfigPropertyMetadata);
6244
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(updateCatalogItem_ConfigPropertyMetadata);
6245
+ function typeCheckConfig$8(untrustedConfig) {
6246
6246
  const config = {};
6247
- typeCheckConfig$9(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
6247
+ typeCheckConfig$b(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
6248
6248
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
6249
- const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
6249
+ const referenceAgentActionInputRepresentationValidationError = validate$C(untrustedConfig_agentAction);
6250
6250
  if (referenceAgentActionInputRepresentationValidationError === null) {
6251
6251
  config.agentAction = untrustedConfig_agentAction;
6252
6252
  }
@@ -6265,7 +6265,7 @@ function typeCheckConfig$6(untrustedConfig) {
6265
6265
  const untrustedConfig_associatedArticles_array = [];
6266
6266
  for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
6267
6267
  const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
6268
- const referenceKnowledgeArticleInputRepresentationValidationError = validate$y(untrustedConfig_associatedArticles_item);
6268
+ const referenceKnowledgeArticleInputRepresentationValidationError = validate$B(untrustedConfig_associatedArticles_item);
6269
6269
  if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
6270
6270
  untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
6271
6271
  }
@@ -6280,7 +6280,7 @@ function typeCheckConfig$6(untrustedConfig) {
6280
6280
  const untrustedConfig_attributes_array = [];
6281
6281
  for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
6282
6282
  const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
6283
- const referenceCatalogItemAttributeInputRepresentationValidationError = validate$w(untrustedConfig_attributes_item);
6283
+ const referenceCatalogItemAttributeInputRepresentationValidationError = validate$z(untrustedConfig_attributes_item);
6284
6284
  if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
6285
6285
  untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
6286
6286
  }
@@ -6295,7 +6295,7 @@ function typeCheckConfig$6(untrustedConfig) {
6295
6295
  const untrustedConfig_sections_array = [];
6296
6296
  for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
6297
6297
  const untrustedConfig_sections_item = untrustedConfig_sections[i];
6298
- const referenceSectionInputRepresentationValidationError = validate$v(untrustedConfig_sections_item);
6298
+ const referenceSectionInputRepresentationValidationError = validate$y(untrustedConfig_sections_item);
6299
6299
  if (referenceSectionInputRepresentationValidationError === null) {
6300
6300
  untrustedConfig_sections_array.push(untrustedConfig_sections_item);
6301
6301
  }
@@ -6331,7 +6331,7 @@ function typeCheckConfig$6(untrustedConfig) {
6331
6331
  const untrustedConfig_eligibilityRules_array = [];
6332
6332
  for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
6333
6333
  const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
6334
- const referenceEligibilityRulesInputRepresentationValidationError = validate$u(untrustedConfig_eligibilityRules_item);
6334
+ const referenceEligibilityRulesInputRepresentationValidationError = validate$x(untrustedConfig_eligibilityRules_item);
6335
6335
  if (referenceEligibilityRulesInputRepresentationValidationError === null) {
6336
6336
  untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
6337
6337
  }
@@ -6342,7 +6342,7 @@ function typeCheckConfig$6(untrustedConfig) {
6342
6342
  config.eligibilityRules = untrustedConfig_eligibilityRules_array;
6343
6343
  }
6344
6344
  const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
6345
- const referenceFulfillmentFlowInputRepresentationValidationError = validate$t(untrustedConfig_fulfillmentFlow);
6345
+ const referenceFulfillmentFlowInputRepresentationValidationError = validate$w(untrustedConfig_fulfillmentFlow);
6346
6346
  if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
6347
6347
  config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
6348
6348
  }
@@ -6350,7 +6350,7 @@ function typeCheckConfig$6(untrustedConfig) {
6350
6350
  config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
6351
6351
  }
6352
6352
  const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
6353
- const referenceIntakeFormInputRepresentationValidationError = validate$s(untrustedConfig_intakeForm);
6353
+ const referenceIntakeFormInputRepresentationValidationError = validate$v(untrustedConfig_intakeForm);
6354
6354
  if (referenceIntakeFormInputRepresentationValidationError === null) {
6355
6355
  config.intakeForm = untrustedConfig_intakeForm;
6356
6356
  }
@@ -6362,7 +6362,7 @@ function typeCheckConfig$6(untrustedConfig) {
6362
6362
  const untrustedConfig_integrations_array = [];
6363
6363
  for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
6364
6364
  const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
6365
- const referenceIntegrationDefInputRepresentationValidationError = validate$r(untrustedConfig_integrations_item);
6365
+ const referenceIntegrationDefInputRepresentationValidationError = validate$u(untrustedConfig_integrations_item);
6366
6366
  if (referenceIntegrationDefInputRepresentationValidationError === null) {
6367
6367
  untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
6368
6368
  }
@@ -6391,7 +6391,7 @@ function typeCheckConfig$6(untrustedConfig) {
6391
6391
  const untrustedConfig_preProcessors_array = [];
6392
6392
  for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
6393
6393
  const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
6394
- const referencePreprocessorInputRepresentationValidationError = validate$q(untrustedConfig_preProcessors_item);
6394
+ const referencePreprocessorInputRepresentationValidationError = validate$t(untrustedConfig_preProcessors_item);
6395
6395
  if (referencePreprocessorInputRepresentationValidationError === null) {
6396
6396
  untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
6397
6397
  }
@@ -6406,7 +6406,7 @@ function typeCheckConfig$6(untrustedConfig) {
6406
6406
  const untrustedConfig_productRequests_array = [];
6407
6407
  for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
6408
6408
  const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
6409
- const referenceProductRequestCreateInputRepresentationValidationError = validate$p(untrustedConfig_productRequests_item);
6409
+ const referenceProductRequestCreateInputRepresentationValidationError = validate$s(untrustedConfig_productRequests_item);
6410
6410
  if (referenceProductRequestCreateInputRepresentationValidationError === null) {
6411
6411
  untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
6412
6412
  }
@@ -6432,30 +6432,30 @@ function typeCheckConfig$6(untrustedConfig) {
6432
6432
  }
6433
6433
  return config;
6434
6434
  }
6435
- function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
6435
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
6436
6436
  if (!untrustedIsObject(untrustedConfig)) {
6437
6437
  return null;
6438
6438
  }
6439
6439
  if (process.env.NODE_ENV !== 'production') {
6440
6440
  validateConfig(untrustedConfig, configPropertyNames);
6441
6441
  }
6442
- const config = typeCheckConfig$6(untrustedConfig);
6442
+ const config = typeCheckConfig$8(untrustedConfig);
6443
6443
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6444
6444
  return null;
6445
6445
  }
6446
6446
  return config;
6447
6447
  }
6448
- function buildNetworkSnapshot$6(luvio, config, options) {
6449
- const resourceParams = createResourceParams$6(config);
6450
- const request = createResourceRequest$6(resourceParams);
6448
+ function buildNetworkSnapshot$8(luvio, config, options) {
6449
+ const resourceParams = createResourceParams$8(config);
6450
+ const request = createResourceRequest$8(resourceParams);
6451
6451
  return luvio.dispatchResourceRequest(request, options)
6452
6452
  .then((response) => {
6453
6453
  return luvio.handleSuccessResponse(() => {
6454
- const snapshot = ingestSuccess$6(luvio, resourceParams, response);
6454
+ const snapshot = ingestSuccess$8(luvio, resourceParams, response);
6455
6455
  return luvio.storeBroadcast().then(() => snapshot);
6456
6456
  }, () => {
6457
6457
  const cache = new StoreKeyMap();
6458
- getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
6458
+ getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
6459
6459
  return cache;
6460
6460
  });
6461
6461
  }, (response) => {
@@ -6465,16 +6465,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
6465
6465
  }
6466
6466
  const updateCatalogItemAdapterFactory = (luvio) => {
6467
6467
  return function updateCatalogItem(untrustedConfig) {
6468
- const config = validateAdapterConfig$6(untrustedConfig, updateCatalogItem_ConfigPropertyNames);
6468
+ const config = validateAdapterConfig$8(untrustedConfig, updateCatalogItem_ConfigPropertyNames);
6469
6469
  // Invalid or incomplete config
6470
6470
  if (config === null) {
6471
6471
  throw new Error('Invalid config for "updateCatalogItem"');
6472
6472
  }
6473
- return buildNetworkSnapshot$6(luvio, config);
6473
+ return buildNetworkSnapshot$8(luvio, config);
6474
6474
  };
6475
6475
  };
6476
6476
 
6477
- function validate$b(obj, path = 'CategoryInput') {
6477
+ function validate$e(obj, path = 'CategoryInput') {
6478
6478
  const v_error = (() => {
6479
6479
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6480
6480
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6493,7 +6493,7 @@ function validate$b(obj, path = 'CategoryInput') {
6493
6493
  return v_error === undefined ? null : v_error;
6494
6494
  }
6495
6495
 
6496
- function validate$a(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
6496
+ function validate$d(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
6497
6497
  const v_error = (() => {
6498
6498
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6499
6499
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6514,9 +6514,9 @@ function validate$a(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
6514
6514
  return v_error === undefined ? null : v_error;
6515
6515
  }
6516
6516
 
6517
- const TTL$4 = 6000;
6518
- const VERSION$5 = "fe841039450a703d6b90e94658dd230f";
6519
- function validate$9(obj, path = 'CategoryAndParentOutputRepresentation') {
6517
+ const TTL$6 = 6000;
6518
+ const VERSION$7 = "fe841039450a703d6b90e94658dd230f";
6519
+ function validate$c(obj, path = 'CategoryAndParentOutputRepresentation') {
6520
6520
  const v_error = (() => {
6521
6521
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6522
6522
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6534,7 +6534,7 @@ function validate$9(obj, path = 'CategoryAndParentOutputRepresentation') {
6534
6534
  for (let i = 0; i < obj_errors.length; i++) {
6535
6535
  const obj_errors_item = obj_errors[i];
6536
6536
  const path_errors_item = path_errors + '[' + i + ']';
6537
- const referencepath_errors_itemValidationError = validate$a(obj_errors_item, path_errors_item);
6537
+ const referencepath_errors_itemValidationError = validate$d(obj_errors_item, path_errors_item);
6538
6538
  if (referencepath_errors_itemValidationError !== null) {
6539
6539
  let message = 'Object doesn\'t match CategoryAndParentErrorOutputRepresentation (at "' + path_errors_item + '")\n';
6540
6540
  message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6554,68 +6554,68 @@ function validate$9(obj, path = 'CategoryAndParentOutputRepresentation') {
6554
6554
  })();
6555
6555
  return v_error === undefined ? null : v_error;
6556
6556
  }
6557
- const RepresentationType$5 = 'CategoryAndParentOutputRepresentation';
6558
- function keyBuilder$8(luvio, config) {
6559
- return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
6557
+ const RepresentationType$7 = 'CategoryAndParentOutputRepresentation';
6558
+ function keyBuilder$b(luvio, config) {
6559
+ return keyPrefix + '::' + RepresentationType$7 + ':' + config.id;
6560
6560
  }
6561
- function keyBuilderFromType$2(luvio, object) {
6561
+ function keyBuilderFromType$3(luvio, object) {
6562
6562
  const keyParams = {
6563
6563
  id: object.catalogId
6564
6564
  };
6565
- return keyBuilder$8(luvio, keyParams);
6565
+ return keyBuilder$b(luvio, keyParams);
6566
6566
  }
6567
- function normalize$5(input, existing, path, luvio, store, timestamp) {
6567
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
6568
6568
  return input;
6569
6569
  }
6570
- const select$b = function CategoryAndParentOutputRepresentationSelect() {
6570
+ const select$f = function CategoryAndParentOutputRepresentationSelect() {
6571
6571
  return {
6572
6572
  kind: 'Fragment',
6573
- version: VERSION$5,
6573
+ version: VERSION$7,
6574
6574
  private: [],
6575
6575
  opaque: true
6576
6576
  };
6577
6577
  };
6578
- function equals$5(existing, incoming) {
6578
+ function equals$7(existing, incoming) {
6579
6579
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6580
6580
  return false;
6581
6581
  }
6582
6582
  return true;
6583
6583
  }
6584
- const ingest$5 = function CategoryAndParentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6584
+ const ingest$7 = function CategoryAndParentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6585
6585
  if (process.env.NODE_ENV !== 'production') {
6586
- const validateError = validate$9(input);
6586
+ const validateError = validate$c(input);
6587
6587
  if (validateError !== null) {
6588
6588
  throw validateError;
6589
6589
  }
6590
6590
  }
6591
- const key = keyBuilderFromType$2(luvio, input);
6592
- const ttlToUse = TTL$4;
6593
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$5, RepresentationType$5, equals$5);
6591
+ const key = keyBuilderFromType$3(luvio, input);
6592
+ const ttlToUse = TTL$6;
6593
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "ecm", VERSION$7, RepresentationType$7, equals$7);
6594
6594
  return createLink(key);
6595
6595
  };
6596
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
6596
+ function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
6597
6597
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6598
- const rootKey = keyBuilderFromType$2(luvio, input);
6598
+ const rootKey = keyBuilderFromType$3(luvio, input);
6599
6599
  rootKeySet.set(rootKey, {
6600
6600
  namespace: keyPrefix,
6601
- representationName: RepresentationType$5,
6601
+ representationName: RepresentationType$7,
6602
6602
  mergeable: false
6603
6603
  });
6604
6604
  }
6605
6605
 
6606
- function select$a(luvio, params) {
6607
- return select$b();
6606
+ function select$e(luvio, params) {
6607
+ return select$f();
6608
6608
  }
6609
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
6610
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
6609
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
6610
+ getTypeCacheKeys$7(storeKeyMap, luvio, response);
6611
6611
  }
6612
- function ingestSuccess$5(luvio, resourceParams, response) {
6612
+ function ingestSuccess$7(luvio, resourceParams, response) {
6613
6613
  const { body } = response;
6614
- const key = keyBuilderFromType$2(luvio, body);
6615
- luvio.storeIngest(key, ingest$5, body);
6614
+ const key = keyBuilderFromType$3(luvio, body);
6615
+ luvio.storeIngest(key, ingest$7, body);
6616
6616
  const snapshot = luvio.storeLookup({
6617
6617
  recordId: key,
6618
- node: select$a(),
6618
+ node: select$e(),
6619
6619
  variables: {},
6620
6620
  });
6621
6621
  if (process.env.NODE_ENV !== 'production') {
@@ -6626,7 +6626,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
6626
6626
  deepFreeze(snapshot.data);
6627
6627
  return snapshot;
6628
6628
  }
6629
- function createResourceRequest$5(config) {
6629
+ function createResourceRequest$7(config) {
6630
6630
  const headers = {};
6631
6631
  return {
6632
6632
  baseUri: '/services/data/v65.0',
@@ -6640,22 +6640,22 @@ function createResourceRequest$5(config) {
6640
6640
  };
6641
6641
  }
6642
6642
 
6643
- const adapterName$5 = 'updateEpcCategories';
6643
+ const adapterName$7 = 'updateEpcCategories';
6644
6644
  const updateEpcCategories_ConfigPropertyMetadata = [
6645
6645
  generateParamConfigMetadata('catalogId', true, 0 /* UrlParameter */, 0 /* String */),
6646
6646
  generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
6647
6647
  ];
6648
- const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, updateEpcCategories_ConfigPropertyMetadata);
6649
- const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(updateEpcCategories_ConfigPropertyMetadata);
6650
- function typeCheckConfig$5(untrustedConfig) {
6648
+ const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateEpcCategories_ConfigPropertyMetadata);
6649
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(updateEpcCategories_ConfigPropertyMetadata);
6650
+ function typeCheckConfig$7(untrustedConfig) {
6651
6651
  const config = {};
6652
- typeCheckConfig$9(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
6652
+ typeCheckConfig$b(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
6653
6653
  const untrustedConfig_categories = untrustedConfig.categories;
6654
6654
  if (ArrayIsArray$1(untrustedConfig_categories)) {
6655
6655
  const untrustedConfig_categories_array = [];
6656
6656
  for (let i = 0, arrayLength = untrustedConfig_categories.length; i < arrayLength; i++) {
6657
6657
  const untrustedConfig_categories_item = untrustedConfig_categories[i];
6658
- const referenceCategoryInputValidationError = validate$b(untrustedConfig_categories_item);
6658
+ const referenceCategoryInputValidationError = validate$e(untrustedConfig_categories_item);
6659
6659
  if (referenceCategoryInputValidationError === null) {
6660
6660
  untrustedConfig_categories_array.push(untrustedConfig_categories_item);
6661
6661
  }
@@ -6664,30 +6664,30 @@ function typeCheckConfig$5(untrustedConfig) {
6664
6664
  }
6665
6665
  return config;
6666
6666
  }
6667
- function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
6667
+ function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
6668
6668
  if (!untrustedIsObject(untrustedConfig)) {
6669
6669
  return null;
6670
6670
  }
6671
6671
  if (process.env.NODE_ENV !== 'production') {
6672
6672
  validateConfig(untrustedConfig, configPropertyNames);
6673
6673
  }
6674
- const config = typeCheckConfig$5(untrustedConfig);
6674
+ const config = typeCheckConfig$7(untrustedConfig);
6675
6675
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6676
6676
  return null;
6677
6677
  }
6678
6678
  return config;
6679
6679
  }
6680
- function buildNetworkSnapshot$5(luvio, config, options) {
6681
- const resourceParams = createResourceParams$5(config);
6682
- const request = createResourceRequest$5(resourceParams);
6680
+ function buildNetworkSnapshot$7(luvio, config, options) {
6681
+ const resourceParams = createResourceParams$7(config);
6682
+ const request = createResourceRequest$7(resourceParams);
6683
6683
  return luvio.dispatchResourceRequest(request, options)
6684
6684
  .then((response) => {
6685
6685
  return luvio.handleSuccessResponse(() => {
6686
- const snapshot = ingestSuccess$5(luvio, resourceParams, response);
6686
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response);
6687
6687
  return luvio.storeBroadcast().then(() => snapshot);
6688
6688
  }, () => {
6689
6689
  const cache = new StoreKeyMap();
6690
- getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
6690
+ getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
6691
6691
  return cache;
6692
6692
  });
6693
6693
  }, (response) => {
@@ -6697,16 +6697,16 @@ function buildNetworkSnapshot$5(luvio, config, options) {
6697
6697
  }
6698
6698
  const updateEpcCategoriesAdapterFactory = (luvio) => {
6699
6699
  return function updateEpcCategories(untrustedConfig) {
6700
- const config = validateAdapterConfig$5(untrustedConfig, updateEpcCategories_ConfigPropertyNames);
6700
+ const config = validateAdapterConfig$7(untrustedConfig, updateEpcCategories_ConfigPropertyNames);
6701
6701
  // Invalid or incomplete config
6702
6702
  if (config === null) {
6703
6703
  throw new Error('Invalid config for "updateEpcCategories"');
6704
6704
  }
6705
- return buildNetworkSnapshot$5(luvio, config);
6705
+ return buildNetworkSnapshot$7(luvio, config);
6706
6706
  };
6707
6707
  };
6708
6708
 
6709
- function validate$8(obj, path = 'FilterInputRepresentation') {
6709
+ function validate$b(obj, path = 'FilterInputRepresentation') {
6710
6710
  const v_error = (() => {
6711
6711
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6712
6712
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6730,7 +6730,7 @@ function validate$8(obj, path = 'FilterInputRepresentation') {
6730
6730
  return v_error === undefined ? null : v_error;
6731
6731
  }
6732
6732
 
6733
- function validate$7(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
6733
+ function validate$a(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
6734
6734
  const v_error = (() => {
6735
6735
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6736
6736
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6753,9 +6753,9 @@ function validate$7(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
6753
6753
  return v_error === undefined ? null : v_error;
6754
6754
  }
6755
6755
 
6756
- const TTL$3 = 6000;
6757
- const VERSION$4 = "7860ae260a600243129acb4ea01e75be";
6758
- function validate$6(obj, path = 'ServiceAutomationDepOutputRepresentation') {
6756
+ const TTL$5 = 6000;
6757
+ const VERSION$6 = "7860ae260a600243129acb4ea01e75be";
6758
+ function validate$9(obj, path = 'ServiceAutomationDepOutputRepresentation') {
6759
6759
  const v_error = (() => {
6760
6760
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6761
6761
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6773,7 +6773,7 @@ function validate$6(obj, path = 'ServiceAutomationDepOutputRepresentation') {
6773
6773
  for (let i = 0; i < obj_records.length; i++) {
6774
6774
  const obj_records_item = obj_records[i];
6775
6775
  const path_records_item = path_records + '[' + i + ']';
6776
- const referencepath_records_itemValidationError = validate$7(obj_records_item, path_records_item);
6776
+ const referencepath_records_itemValidationError = validate$a(obj_records_item, path_records_item);
6777
6777
  if (referencepath_records_itemValidationError !== null) {
6778
6778
  let message = 'Object doesn\'t match ServiceAutomationOutputRecordRepresentation (at "' + path_records_item + '")\n';
6779
6779
  message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6783,62 +6783,62 @@ function validate$6(obj, path = 'ServiceAutomationDepOutputRepresentation') {
6783
6783
  })();
6784
6784
  return v_error === undefined ? null : v_error;
6785
6785
  }
6786
- const RepresentationType$4 = 'ServiceAutomationDepOutputRepresentation';
6787
- function normalize$4(input, existing, path, luvio, store, timestamp) {
6786
+ const RepresentationType$6 = 'ServiceAutomationDepOutputRepresentation';
6787
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
6788
6788
  return input;
6789
6789
  }
6790
- const select$9 = function ServiceAutomationDepOutputRepresentationSelect() {
6790
+ const select$d = function ServiceAutomationDepOutputRepresentationSelect() {
6791
6791
  return {
6792
6792
  kind: 'Fragment',
6793
- version: VERSION$4,
6793
+ version: VERSION$6,
6794
6794
  private: [],
6795
6795
  opaque: true
6796
6796
  };
6797
6797
  };
6798
- function equals$4(existing, incoming) {
6798
+ function equals$6(existing, incoming) {
6799
6799
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
6800
6800
  return false;
6801
6801
  }
6802
6802
  return true;
6803
6803
  }
6804
- const ingest$4 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6804
+ const ingest$6 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
6805
6805
  if (process.env.NODE_ENV !== 'production') {
6806
- const validateError = validate$6(input);
6806
+ const validateError = validate$9(input);
6807
6807
  if (validateError !== null) {
6808
6808
  throw validateError;
6809
6809
  }
6810
6810
  }
6811
6811
  const key = path.fullPath;
6812
- const ttlToUse = TTL$3;
6813
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
6812
+ const ttlToUse = TTL$5;
6813
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$6, RepresentationType$6, equals$6);
6814
6814
  return createLink(key);
6815
6815
  };
6816
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
6816
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
6817
6817
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
6818
6818
  const rootKey = fullPathFactory();
6819
6819
  rootKeySet.set(rootKey, {
6820
6820
  namespace: keyPrefix,
6821
- representationName: RepresentationType$4,
6821
+ representationName: RepresentationType$6,
6822
6822
  mergeable: false
6823
6823
  });
6824
6824
  }
6825
6825
 
6826
- function select$8(luvio, params) {
6827
- return select$9();
6826
+ function select$c(luvio, params) {
6827
+ return select$d();
6828
6828
  }
6829
- function keyBuilder$7(luvio, params) {
6829
+ function keyBuilder$a(luvio, params) {
6830
6830
  return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => 'filters.field:' + element.field + '::' + 'filters.operator:' + element.operator + '::' + 'filters.value:' + element.value).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
6831
6831
  }
6832
- function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
6833
- getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
6832
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
6833
+ getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
6834
6834
  }
6835
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
6835
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
6836
6836
  const { body } = response;
6837
- const key = keyBuilder$7(luvio, resourceParams);
6838
- luvio.storeIngest(key, ingest$4, body);
6837
+ const key = keyBuilder$a(luvio, resourceParams);
6838
+ luvio.storeIngest(key, ingest$6, body);
6839
6839
  const snapshot = luvio.storeLookup({
6840
6840
  recordId: key,
6841
- node: select$8(),
6841
+ node: select$c(),
6842
6842
  variables: {},
6843
6843
  }, snapshotRefresh);
6844
6844
  if (process.env.NODE_ENV !== 'production') {
@@ -6849,19 +6849,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
6849
6849
  deepFreeze(snapshot.data);
6850
6850
  return snapshot;
6851
6851
  }
6852
- function ingestError$2(luvio, params, error, snapshotRefresh) {
6853
- const key = keyBuilder$7(luvio, params);
6852
+ function ingestError$3(luvio, params, error, snapshotRefresh) {
6853
+ const key = keyBuilder$a(luvio, params);
6854
6854
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6855
6855
  const storeMetadataParams = {
6856
- ttl: TTL$3,
6856
+ ttl: TTL$5,
6857
6857
  namespace: keyPrefix,
6858
- version: VERSION$4,
6859
- representationName: RepresentationType$4
6858
+ version: VERSION$6,
6859
+ representationName: RepresentationType$6
6860
6860
  };
6861
6861
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6862
6862
  return errorSnapshot;
6863
6863
  }
6864
- function createResourceRequest$4(config) {
6864
+ function createResourceRequest$6(config) {
6865
6865
  const headers = {};
6866
6866
  return {
6867
6867
  baseUri: '/services/data/v65.0',
@@ -6875,28 +6875,28 @@ function createResourceRequest$4(config) {
6875
6875
  };
6876
6876
  }
6877
6877
 
6878
- const adapterName$4 = 'getAllServiceAutomationDep';
6878
+ const adapterName$6 = 'getAllServiceAutomationDep';
6879
6879
  const getAllServiceAutomationDep_ConfigPropertyMetadata = [
6880
6880
  generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
6881
6881
  generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
6882
6882
  generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
6883
6883
  generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
6884
6884
  ];
6885
- const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceAutomationDep_ConfigPropertyMetadata);
6886
- const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getAllServiceAutomationDep_ConfigPropertyMetadata);
6887
- function keyBuilder$6(luvio, config) {
6888
- const resourceParams = createResourceParams$4(config);
6889
- return keyBuilder$7(luvio, resourceParams);
6885
+ const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAllServiceAutomationDep_ConfigPropertyMetadata);
6886
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getAllServiceAutomationDep_ConfigPropertyMetadata);
6887
+ function keyBuilder$9(luvio, config) {
6888
+ const resourceParams = createResourceParams$6(config);
6889
+ return keyBuilder$a(luvio, resourceParams);
6890
6890
  }
6891
- function typeCheckConfig$4(untrustedConfig) {
6891
+ function typeCheckConfig$6(untrustedConfig) {
6892
6892
  const config = {};
6893
- typeCheckConfig$9(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
6893
+ typeCheckConfig$b(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
6894
6894
  const untrustedConfig_filters = untrustedConfig.filters;
6895
6895
  if (ArrayIsArray$1(untrustedConfig_filters)) {
6896
6896
  const untrustedConfig_filters_array = [];
6897
6897
  for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
6898
6898
  const untrustedConfig_filters_item = untrustedConfig_filters[i];
6899
- const referenceFilterInputRepresentationValidationError = validate$8(untrustedConfig_filters_item);
6899
+ const referenceFilterInputRepresentationValidationError = validate$b(untrustedConfig_filters_item);
6900
6900
  if (referenceFilterInputRepresentationValidationError === null) {
6901
6901
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
6902
6902
  }
@@ -6912,45 +6912,284 @@ function typeCheckConfig$4(untrustedConfig) {
6912
6912
  }
6913
6913
  return config;
6914
6914
  }
6915
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
6915
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
6916
6916
  if (!untrustedIsObject(untrustedConfig)) {
6917
6917
  return null;
6918
6918
  }
6919
6919
  if (process.env.NODE_ENV !== 'production') {
6920
6920
  validateConfig(untrustedConfig, configPropertyNames);
6921
6921
  }
6922
- const config = typeCheckConfig$4(untrustedConfig);
6922
+ const config = typeCheckConfig$6(untrustedConfig);
6923
6923
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
6924
6924
  return null;
6925
6925
  }
6926
6926
  return config;
6927
6927
  }
6928
- function adapterFragment$2(luvio, config) {
6929
- createResourceParams$4(config);
6930
- return select$8();
6928
+ function adapterFragment$3(luvio, config) {
6929
+ createResourceParams$6(config);
6930
+ return select$c();
6931
6931
  }
6932
- function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
6933
- const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
6932
+ function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
6933
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
6934
6934
  config,
6935
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6935
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
6936
6936
  });
6937
6937
  return luvio.storeBroadcast().then(() => snapshot);
6938
6938
  }
6939
- function onFetchResponseError$2(luvio, config, resourceParams, response) {
6940
- const snapshot = ingestError$2(luvio, resourceParams, response, {
6939
+ function onFetchResponseError$3(luvio, config, resourceParams, response) {
6940
+ const snapshot = ingestError$3(luvio, resourceParams, response, {
6941
6941
  config,
6942
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6942
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
6943
6943
  });
6944
6944
  return luvio.storeBroadcast().then(() => snapshot);
6945
6945
  }
6946
- function buildNetworkSnapshot$4(luvio, config, options) {
6947
- const resourceParams = createResourceParams$4(config);
6948
- const request = createResourceRequest$4(resourceParams);
6946
+ function buildNetworkSnapshot$6(luvio, config, options) {
6947
+ const resourceParams = createResourceParams$6(config);
6948
+ const request = createResourceRequest$6(resourceParams);
6949
6949
  return luvio.dispatchResourceRequest(request, options)
6950
6950
  .then((response) => {
6951
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
6951
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
6952
6952
  const cache = new StoreKeyMap();
6953
- getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
6953
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
6954
+ return cache;
6955
+ });
6956
+ }, (response) => {
6957
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
6958
+ });
6959
+ }
6960
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
6961
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, 'get', false);
6962
+ }
6963
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
6964
+ const { luvio, config } = context;
6965
+ const selector = {
6966
+ recordId: keyBuilder$9(luvio, config),
6967
+ node: adapterFragment$3(luvio, config),
6968
+ variables: {},
6969
+ };
6970
+ const cacheSnapshot = storeLookup(selector, {
6971
+ config,
6972
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
6973
+ });
6974
+ return cacheSnapshot;
6975
+ }
6976
+ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
6977
+ const config = validateAdapterConfig$6(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
6978
+ // Invalid or incomplete config
6979
+ if (config === null) {
6980
+ return null;
6981
+ }
6982
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6983
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
6984
+ };
6985
+
6986
+ function validate$8(obj, path = 'ServiceProcessTemplateOutputRepresentation') {
6987
+ const v_error = (() => {
6988
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6989
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6990
+ }
6991
+ const obj_createdDate = obj.createdDate;
6992
+ const path_createdDate = path + '.createdDate';
6993
+ if (typeof obj_createdDate !== 'string') {
6994
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
6995
+ }
6996
+ const obj_description = obj.description;
6997
+ const path_description = path + '.description';
6998
+ if (typeof obj_description !== 'string') {
6999
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7000
+ }
7001
+ const obj_id = obj.id;
7002
+ const path_id = path + '.id';
7003
+ if (typeof obj_id !== 'string') {
7004
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7005
+ }
7006
+ const obj_imageUrl = obj.imageUrl;
7007
+ const path_imageUrl = path + '.imageUrl';
7008
+ if (typeof obj_imageUrl !== 'string') {
7009
+ return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
7010
+ }
7011
+ const obj_name = obj.name;
7012
+ const path_name = path + '.name';
7013
+ if (typeof obj_name !== 'string') {
7014
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
7015
+ }
7016
+ const obj_type = obj.type;
7017
+ const path_type = path + '.type';
7018
+ if (typeof obj_type !== 'string') {
7019
+ return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
7020
+ }
7021
+ })();
7022
+ return v_error === undefined ? null : v_error;
7023
+ }
7024
+
7025
+ const TTL$4 = 6000;
7026
+ const VERSION$5 = "1cae1bb3aeefe004ae9d9248ac15a1d5";
7027
+ function validate$7(obj, path = 'ServiceProcessTemplatesOutputRepresentation') {
7028
+ const v_error = (() => {
7029
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7030
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7031
+ }
7032
+ const obj_serviceProcessTemplateOutputRepresentation = obj.serviceProcessTemplateOutputRepresentation;
7033
+ const path_serviceProcessTemplateOutputRepresentation = path + '.serviceProcessTemplateOutputRepresentation';
7034
+ if (!ArrayIsArray(obj_serviceProcessTemplateOutputRepresentation)) {
7035
+ return new TypeError('Expected "array" but received "' + typeof obj_serviceProcessTemplateOutputRepresentation + '" (at "' + path_serviceProcessTemplateOutputRepresentation + '")');
7036
+ }
7037
+ for (let i = 0; i < obj_serviceProcessTemplateOutputRepresentation.length; i++) {
7038
+ const obj_serviceProcessTemplateOutputRepresentation_item = obj_serviceProcessTemplateOutputRepresentation[i];
7039
+ const path_serviceProcessTemplateOutputRepresentation_item = path_serviceProcessTemplateOutputRepresentation + '[' + i + ']';
7040
+ const referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError = validate$8(obj_serviceProcessTemplateOutputRepresentation_item, path_serviceProcessTemplateOutputRepresentation_item);
7041
+ if (referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError !== null) {
7042
+ let message = 'Object doesn\'t match ServiceProcessTemplateOutputRepresentation (at "' + path_serviceProcessTemplateOutputRepresentation_item + '")\n';
7043
+ message += referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7044
+ return new TypeError(message);
7045
+ }
7046
+ }
7047
+ })();
7048
+ return v_error === undefined ? null : v_error;
7049
+ }
7050
+ const RepresentationType$5 = 'ServiceProcessTemplatesOutputRepresentation';
7051
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
7052
+ return input;
7053
+ }
7054
+ const select$b = function ServiceProcessTemplatesOutputRepresentationSelect() {
7055
+ return {
7056
+ kind: 'Fragment',
7057
+ version: VERSION$5,
7058
+ private: [],
7059
+ opaque: true
7060
+ };
7061
+ };
7062
+ function equals$5(existing, incoming) {
7063
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
7064
+ return false;
7065
+ }
7066
+ return true;
7067
+ }
7068
+ const ingest$5 = function ServiceProcessTemplatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7069
+ if (process.env.NODE_ENV !== 'production') {
7070
+ const validateError = validate$7(input);
7071
+ if (validateError !== null) {
7072
+ throw validateError;
7073
+ }
7074
+ }
7075
+ const key = path.fullPath;
7076
+ const ttlToUse = TTL$4;
7077
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$5, RepresentationType$5, equals$5);
7078
+ return createLink(key);
7079
+ };
7080
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
7081
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7082
+ const rootKey = fullPathFactory();
7083
+ rootKeySet.set(rootKey, {
7084
+ namespace: keyPrefix,
7085
+ representationName: RepresentationType$5,
7086
+ mergeable: false
7087
+ });
7088
+ }
7089
+
7090
+ function select$a(luvio, params) {
7091
+ return select$b();
7092
+ }
7093
+ function keyBuilder$8(luvio, params) {
7094
+ return keyPrefix + '::ServiceProcessTemplatesOutputRepresentation:(' + ')';
7095
+ }
7096
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
7097
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$8());
7098
+ }
7099
+ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
7100
+ const { body } = response;
7101
+ const key = keyBuilder$8();
7102
+ luvio.storeIngest(key, ingest$5, body);
7103
+ const snapshot = luvio.storeLookup({
7104
+ recordId: key,
7105
+ node: select$a(),
7106
+ variables: {},
7107
+ }, snapshotRefresh);
7108
+ if (process.env.NODE_ENV !== 'production') {
7109
+ if (snapshot.state !== 'Fulfilled') {
7110
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
7111
+ }
7112
+ }
7113
+ deepFreeze(snapshot.data);
7114
+ return snapshot;
7115
+ }
7116
+ function ingestError$2(luvio, params, error, snapshotRefresh) {
7117
+ const key = keyBuilder$8();
7118
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7119
+ const storeMetadataParams = {
7120
+ ttl: TTL$4,
7121
+ namespace: keyPrefix,
7122
+ version: VERSION$5,
7123
+ representationName: RepresentationType$5
7124
+ };
7125
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7126
+ return errorSnapshot;
7127
+ }
7128
+ function createResourceRequest$5(config) {
7129
+ const headers = {};
7130
+ return {
7131
+ baseUri: '/services/data/v65.0',
7132
+ basePath: '/connect/service-automation/service-process/get-all-templates',
7133
+ method: 'get',
7134
+ body: null,
7135
+ urlParams: {},
7136
+ queryParams: {},
7137
+ headers,
7138
+ priority: 'normal',
7139
+ };
7140
+ }
7141
+
7142
+ const adapterName$5 = 'getAllServiceProcessTemplate';
7143
+ const getAllServiceProcessTemplate_ConfigPropertyMetadata = [];
7144
+ const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllServiceProcessTemplate_ConfigPropertyMetadata);
7145
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAllServiceProcessTemplate_ConfigPropertyMetadata);
7146
+ function keyBuilder$7(luvio, config) {
7147
+ createResourceParams$5(config);
7148
+ return keyBuilder$8();
7149
+ }
7150
+ function typeCheckConfig$5(untrustedConfig) {
7151
+ const config = {};
7152
+ return config;
7153
+ }
7154
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
7155
+ if (!untrustedIsObject(untrustedConfig)) {
7156
+ return null;
7157
+ }
7158
+ if (process.env.NODE_ENV !== 'production') {
7159
+ validateConfig(untrustedConfig, configPropertyNames);
7160
+ }
7161
+ const config = typeCheckConfig$5();
7162
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
7163
+ return null;
7164
+ }
7165
+ return config;
7166
+ }
7167
+ function adapterFragment$2(luvio, config) {
7168
+ createResourceParams$5(config);
7169
+ return select$a();
7170
+ }
7171
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
7172
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
7173
+ config,
7174
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
7175
+ });
7176
+ return luvio.storeBroadcast().then(() => snapshot);
7177
+ }
7178
+ function onFetchResponseError$2(luvio, config, resourceParams, response) {
7179
+ const snapshot = ingestError$2(luvio, resourceParams, response, {
7180
+ config,
7181
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
7182
+ });
7183
+ return luvio.storeBroadcast().then(() => snapshot);
7184
+ }
7185
+ function buildNetworkSnapshot$5(luvio, config, options) {
7186
+ const resourceParams = createResourceParams$5(config);
7187
+ const request = createResourceRequest$5();
7188
+ return luvio.dispatchResourceRequest(request, options)
7189
+ .then((response) => {
7190
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
7191
+ const cache = new StoreKeyMap();
7192
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
6954
7193
  return cache;
6955
7194
  });
6956
7195
  }, (response) => {
@@ -6958,23 +7197,23 @@ function buildNetworkSnapshot$4(luvio, config, options) {
6958
7197
  });
6959
7198
  }
6960
7199
  function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
6961
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
7200
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
6962
7201
  }
6963
7202
  function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
6964
7203
  const { luvio, config } = context;
6965
7204
  const selector = {
6966
- recordId: keyBuilder$6(luvio, config),
7205
+ recordId: keyBuilder$7(luvio, config),
6967
7206
  node: adapterFragment$2(luvio, config),
6968
7207
  variables: {},
6969
7208
  };
6970
7209
  const cacheSnapshot = storeLookup(selector, {
6971
7210
  config,
6972
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
7211
+ resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
6973
7212
  });
6974
7213
  return cacheSnapshot;
6975
7214
  }
6976
- const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
6977
- const config = validateAdapterConfig$4(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
7215
+ const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getAllServiceProcessTemplate(untrustedConfig, requestContext) {
7216
+ const config = validateAdapterConfig$5(untrustedConfig, getAllServiceProcessTemplate_ConfigPropertyNames);
6978
7217
  // Invalid or incomplete config
6979
7218
  if (config === null) {
6980
7219
  return null;
@@ -6983,7 +7222,7 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
6983
7222
  buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
6984
7223
  };
6985
7224
 
6986
- function validate$5(obj, path = 'AgentActionAttributeOutputRepresentation') {
7225
+ function validate$6(obj, path = 'AgentActionAttributeOutputRepresentation') {
6987
7226
  const v_error = (() => {
6988
7227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6989
7228
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -7356,7 +7595,7 @@ function validate$5(obj, path = 'AgentActionAttributeOutputRepresentation') {
7356
7595
  return v_error === undefined ? null : v_error;
7357
7596
  }
7358
7597
 
7359
- function validate$4(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7598
+ function validate$5(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7360
7599
  const v_error = (() => {
7361
7600
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7362
7601
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -7370,7 +7609,7 @@ function validate$4(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7370
7609
  for (let i = 0; i < obj_attributes.length; i++) {
7371
7610
  const obj_attributes_item = obj_attributes[i];
7372
7611
  const path_attributes_item = path_attributes + '[' + i + ']';
7373
- const referencepath_attributes_itemValidationError = validate$5(obj_attributes_item, path_attributes_item);
7612
+ const referencepath_attributes_itemValidationError = validate$6(obj_attributes_item, path_attributes_item);
7374
7613
  if (referencepath_attributes_itemValidationError !== null) {
7375
7614
  let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
7376
7615
  message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7690,9 +7929,9 @@ function validate$4(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7690
7929
  return v_error === undefined ? null : v_error;
7691
7930
  }
7692
7931
 
7693
- const TTL$2 = 6000;
7694
- const VERSION$3 = "8d267876ea7c4f028aade73f06d0f634";
7695
- function validate$3(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
7932
+ const TTL$3 = 6000;
7933
+ const VERSION$4 = "8d267876ea7c4f028aade73f06d0f634";
7934
+ function validate$4(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
7696
7935
  const v_error = (() => {
7697
7936
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7698
7937
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -7706,7 +7945,7 @@ function validate$3(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
7706
7945
  for (let i = 0; i < obj_actions.length; i++) {
7707
7946
  const obj_actions_item = obj_actions[i];
7708
7947
  const path_actions_item = path_actions + '[' + i + ']';
7709
- const referencepath_actions_itemValidationError = validate$4(obj_actions_item, path_actions_item);
7948
+ const referencepath_actions_itemValidationError = validate$5(obj_actions_item, path_actions_item);
7710
7949
  if (referencepath_actions_itemValidationError !== null) {
7711
7950
  let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
7712
7951
  message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -7717,62 +7956,62 @@ function validate$3(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
7717
7956
  })();
7718
7957
  return v_error === undefined ? null : v_error;
7719
7958
  }
7720
- const RepresentationType$3 = 'EinsteinAgentActionsOutputRepresentation';
7721
- function normalize$3(input, existing, path, luvio, store, timestamp) {
7959
+ const RepresentationType$4 = 'EinsteinAgentActionsOutputRepresentation';
7960
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
7722
7961
  return input;
7723
7962
  }
7724
- const select$7 = function EinsteinAgentActionsOutputRepresentationSelect() {
7963
+ const select$9 = function EinsteinAgentActionsOutputRepresentationSelect() {
7725
7964
  return {
7726
7965
  kind: 'Fragment',
7727
- version: VERSION$3,
7966
+ version: VERSION$4,
7728
7967
  private: [],
7729
7968
  opaque: true
7730
7969
  };
7731
7970
  };
7732
- function equals$3(existing, incoming) {
7971
+ function equals$4(existing, incoming) {
7733
7972
  if (JSONStringify(incoming) !== JSONStringify(existing)) {
7734
7973
  return false;
7735
7974
  }
7736
7975
  return true;
7737
7976
  }
7738
- const ingest$3 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7977
+ const ingest$4 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7739
7978
  if (process.env.NODE_ENV !== 'production') {
7740
- const validateError = validate$3(input);
7979
+ const validateError = validate$4(input);
7741
7980
  if (validateError !== null) {
7742
7981
  throw validateError;
7743
7982
  }
7744
7983
  }
7745
7984
  const key = path.fullPath;
7746
- const ttlToUse = TTL$2;
7747
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
7985
+ const ttlToUse = TTL$3;
7986
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
7748
7987
  return createLink(key);
7749
7988
  };
7750
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
7989
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
7751
7990
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7752
7991
  const rootKey = fullPathFactory();
7753
7992
  rootKeySet.set(rootKey, {
7754
7993
  namespace: keyPrefix,
7755
- representationName: RepresentationType$3,
7994
+ representationName: RepresentationType$4,
7756
7995
  mergeable: false
7757
7996
  });
7758
7997
  }
7759
7998
 
7760
- function select$6(luvio, params) {
7761
- return select$7();
7999
+ function select$8(luvio, params) {
8000
+ return select$9();
7762
8001
  }
7763
- function keyBuilder$5(luvio, params) {
8002
+ function keyBuilder$6(luvio, params) {
7764
8003
  return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
7765
8004
  }
7766
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
7767
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
8005
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
8006
+ getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
7768
8007
  }
7769
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
8008
+ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
7770
8009
  const { body } = response;
7771
- const key = keyBuilder$5(luvio, resourceParams);
7772
- luvio.storeIngest(key, ingest$3, body);
8010
+ const key = keyBuilder$6(luvio, resourceParams);
8011
+ luvio.storeIngest(key, ingest$4, body);
7773
8012
  const snapshot = luvio.storeLookup({
7774
8013
  recordId: key,
7775
- node: select$6(),
8014
+ node: select$8(),
7776
8015
  variables: {},
7777
8016
  }, snapshotRefresh);
7778
8017
  if (process.env.NODE_ENV !== 'production') {
@@ -7784,18 +8023,18 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
7784
8023
  return snapshot;
7785
8024
  }
7786
8025
  function ingestError$1(luvio, params, error, snapshotRefresh) {
7787
- const key = keyBuilder$5(luvio, params);
8026
+ const key = keyBuilder$6(luvio, params);
7788
8027
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7789
8028
  const storeMetadataParams = {
7790
- ttl: TTL$2,
8029
+ ttl: TTL$3,
7791
8030
  namespace: keyPrefix,
7792
- version: VERSION$3,
7793
- representationName: RepresentationType$3
8031
+ version: VERSION$4,
8032
+ representationName: RepresentationType$4
7794
8033
  };
7795
8034
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7796
8035
  return errorSnapshot;
7797
8036
  }
7798
- function createResourceRequest$3(config) {
8037
+ function createResourceRequest$4(config) {
7799
8038
  const headers = {};
7800
8039
  return {
7801
8040
  baseUri: '/services/data/v65.0',
@@ -7809,61 +8048,61 @@ function createResourceRequest$3(config) {
7809
8048
  };
7810
8049
  }
7811
8050
 
7812
- const adapterName$3 = 'getAgentActions';
8051
+ const adapterName$4 = 'getAgentActions';
7813
8052
  const getAgentActions_ConfigPropertyMetadata = [
7814
8053
  generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
7815
8054
  generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
7816
8055
  ];
7817
- const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getAgentActions_ConfigPropertyMetadata);
7818
- const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getAgentActions_ConfigPropertyMetadata);
7819
- function keyBuilder$4(luvio, config) {
7820
- const resourceParams = createResourceParams$3(config);
7821
- return keyBuilder$5(luvio, resourceParams);
8056
+ const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAgentActions_ConfigPropertyMetadata);
8057
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getAgentActions_ConfigPropertyMetadata);
8058
+ function keyBuilder$5(luvio, config) {
8059
+ const resourceParams = createResourceParams$4(config);
8060
+ return keyBuilder$6(luvio, resourceParams);
7822
8061
  }
7823
- function typeCheckConfig$3(untrustedConfig) {
8062
+ function typeCheckConfig$4(untrustedConfig) {
7824
8063
  const config = {};
7825
- typeCheckConfig$9(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
8064
+ typeCheckConfig$b(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
7826
8065
  return config;
7827
8066
  }
7828
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8067
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
7829
8068
  if (!untrustedIsObject(untrustedConfig)) {
7830
8069
  return null;
7831
8070
  }
7832
8071
  if (process.env.NODE_ENV !== 'production') {
7833
8072
  validateConfig(untrustedConfig, configPropertyNames);
7834
8073
  }
7835
- const config = typeCheckConfig$3(untrustedConfig);
8074
+ const config = typeCheckConfig$4(untrustedConfig);
7836
8075
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7837
8076
  return null;
7838
8077
  }
7839
8078
  return config;
7840
8079
  }
7841
8080
  function adapterFragment$1(luvio, config) {
7842
- createResourceParams$3(config);
7843
- return select$6();
8081
+ createResourceParams$4(config);
8082
+ return select$8();
7844
8083
  }
7845
8084
  function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
7846
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
8085
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
7847
8086
  config,
7848
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8087
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
7849
8088
  });
7850
8089
  return luvio.storeBroadcast().then(() => snapshot);
7851
8090
  }
7852
8091
  function onFetchResponseError$1(luvio, config, resourceParams, response) {
7853
8092
  const snapshot = ingestError$1(luvio, resourceParams, response, {
7854
8093
  config,
7855
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8094
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
7856
8095
  });
7857
8096
  return luvio.storeBroadcast().then(() => snapshot);
7858
8097
  }
7859
- function buildNetworkSnapshot$3(luvio, config, options) {
7860
- const resourceParams = createResourceParams$3(config);
7861
- const request = createResourceRequest$3(resourceParams);
8098
+ function buildNetworkSnapshot$4(luvio, config, options) {
8099
+ const resourceParams = createResourceParams$4(config);
8100
+ const request = createResourceRequest$4(resourceParams);
7862
8101
  return luvio.dispatchResourceRequest(request, options)
7863
8102
  .then((response) => {
7864
8103
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
7865
8104
  const cache = new StoreKeyMap();
7866
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8105
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
7867
8106
  return cache;
7868
8107
  });
7869
8108
  }, (response) => {
@@ -7871,23 +8110,23 @@ function buildNetworkSnapshot$3(luvio, config, options) {
7871
8110
  });
7872
8111
  }
7873
8112
  function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
7874
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
8113
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
7875
8114
  }
7876
8115
  function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
7877
8116
  const { luvio, config } = context;
7878
8117
  const selector = {
7879
- recordId: keyBuilder$4(luvio, config),
8118
+ recordId: keyBuilder$5(luvio, config),
7880
8119
  node: adapterFragment$1(luvio, config),
7881
8120
  variables: {},
7882
8121
  };
7883
8122
  const cacheSnapshot = storeLookup(selector, {
7884
8123
  config,
7885
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
8124
+ resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
7886
8125
  });
7887
8126
  return cacheSnapshot;
7888
8127
  }
7889
8128
  const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
7890
- const config = validateAdapterConfig$3(untrustedConfig, getAgentActions_ConfigPropertyNames);
8129
+ const config = validateAdapterConfig$4(untrustedConfig, getAgentActions_ConfigPropertyNames);
7891
8130
  // Invalid or incomplete config
7892
8131
  if (config === null) {
7893
8132
  return null;
@@ -7896,9 +8135,9 @@ const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(u
7896
8135
  buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
7897
8136
  };
7898
8137
 
7899
- const TTL$1 = 6000;
7900
- const VERSION$2 = "74ef82117094ebb002efc271969896bd";
7901
- function validate$2(obj, path = 'GenerateIntakeFormOutputRepresentation') {
8138
+ const TTL$2 = 6000;
8139
+ const VERSION$3 = "74ef82117094ebb002efc271969896bd";
8140
+ function validate$3(obj, path = 'GenerateIntakeFormOutputRepresentation') {
7902
8141
  const v_error = (() => {
7903
8142
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7904
8143
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -7932,23 +8171,23 @@ function validate$2(obj, path = 'GenerateIntakeFormOutputRepresentation') {
7932
8171
  })();
7933
8172
  return v_error === undefined ? null : v_error;
7934
8173
  }
7935
- const RepresentationType$2 = 'GenerateIntakeFormOutputRepresentation';
7936
- function keyBuilder$3(luvio, config) {
7937
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
8174
+ const RepresentationType$3 = 'GenerateIntakeFormOutputRepresentation';
8175
+ function keyBuilder$4(luvio, config) {
8176
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
7938
8177
  }
7939
- function keyBuilderFromType$1(luvio, object) {
8178
+ function keyBuilderFromType$2(luvio, object) {
7940
8179
  const keyParams = {
7941
8180
  id: object.id
7942
8181
  };
7943
- return keyBuilder$3(luvio, keyParams);
8182
+ return keyBuilder$4(luvio, keyParams);
7944
8183
  }
7945
- function normalize$2(input, existing, path, luvio, store, timestamp) {
8184
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
7946
8185
  return input;
7947
8186
  }
7948
- const select$5 = function GenerateIntakeFormOutputRepresentationSelect() {
8187
+ const select$7 = function GenerateIntakeFormOutputRepresentationSelect() {
7949
8188
  return {
7950
8189
  kind: 'Fragment',
7951
- version: VERSION$2,
8190
+ version: VERSION$3,
7952
8191
  private: [],
7953
8192
  selections: [
7954
8193
  {
@@ -7973,7 +8212,7 @@ const select$5 = function GenerateIntakeFormOutputRepresentationSelect() {
7973
8212
  ]
7974
8213
  };
7975
8214
  };
7976
- function equals$2(existing, incoming) {
8215
+ function equals$3(existing, incoming) {
7977
8216
  const existing_description = existing.description;
7978
8217
  const incoming_description = incoming.description;
7979
8218
  // if at least one of these optionals is defined
@@ -8020,41 +8259,41 @@ function equals$2(existing, incoming) {
8020
8259
  }
8021
8260
  return true;
8022
8261
  }
8023
- const ingest$2 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8262
+ const ingest$3 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8024
8263
  if (process.env.NODE_ENV !== 'production') {
8025
- const validateError = validate$2(input);
8264
+ const validateError = validate$3(input);
8026
8265
  if (validateError !== null) {
8027
8266
  throw validateError;
8028
8267
  }
8029
8268
  }
8030
- const key = keyBuilderFromType$1(luvio, input);
8031
- const ttlToUse = TTL$1;
8032
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
8269
+ const key = keyBuilderFromType$2(luvio, input);
8270
+ const ttlToUse = TTL$2;
8271
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
8033
8272
  return createLink(key);
8034
8273
  };
8035
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
8274
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
8036
8275
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8037
- const rootKey = keyBuilderFromType$1(luvio, input);
8276
+ const rootKey = keyBuilderFromType$2(luvio, input);
8038
8277
  rootKeySet.set(rootKey, {
8039
8278
  namespace: keyPrefix,
8040
- representationName: RepresentationType$2,
8279
+ representationName: RepresentationType$3,
8041
8280
  mergeable: false
8042
8281
  });
8043
8282
  }
8044
8283
 
8045
- function select$4(luvio, params) {
8046
- return select$5();
8284
+ function select$6(luvio, params) {
8285
+ return select$7();
8047
8286
  }
8048
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
8049
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
8287
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
8288
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
8050
8289
  }
8051
- function ingestSuccess$2(luvio, resourceParams, response) {
8290
+ function ingestSuccess$3(luvio, resourceParams, response) {
8052
8291
  const { body } = response;
8053
- const key = keyBuilderFromType$1(luvio, body);
8054
- luvio.storeIngest(key, ingest$2, body);
8292
+ const key = keyBuilderFromType$2(luvio, body);
8293
+ luvio.storeIngest(key, ingest$3, body);
8055
8294
  const snapshot = luvio.storeLookup({
8056
8295
  recordId: key,
8057
- node: select$4(),
8296
+ node: select$6(),
8058
8297
  variables: {},
8059
8298
  });
8060
8299
  if (process.env.NODE_ENV !== 'production') {
@@ -8065,7 +8304,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
8065
8304
  deepFreeze(snapshot.data);
8066
8305
  return snapshot;
8067
8306
  }
8068
- function createResourceRequest$2(config) {
8307
+ function createResourceRequest$3(config) {
8069
8308
  const headers = {};
8070
8309
  return {
8071
8310
  baseUri: '/services/data/v65.0',
@@ -8079,44 +8318,44 @@ function createResourceRequest$2(config) {
8079
8318
  };
8080
8319
  }
8081
8320
 
8082
- const adapterName$2 = 'generateIntakeForm';
8321
+ const adapterName$3 = 'generateIntakeForm';
8083
8322
  const generateIntakeForm_ConfigPropertyMetadata = [
8084
8323
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
8085
8324
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
8086
8325
  generateParamConfigMetadata('productId', false, 2 /* Body */, 0 /* String */),
8087
8326
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
8088
8327
  ];
8089
- const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateIntakeForm_ConfigPropertyMetadata);
8090
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(generateIntakeForm_ConfigPropertyMetadata);
8091
- function typeCheckConfig$2(untrustedConfig) {
8328
+ const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, generateIntakeForm_ConfigPropertyMetadata);
8329
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(generateIntakeForm_ConfigPropertyMetadata);
8330
+ function typeCheckConfig$3(untrustedConfig) {
8092
8331
  const config = {};
8093
- typeCheckConfig$9(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
8332
+ typeCheckConfig$b(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
8094
8333
  return config;
8095
8334
  }
8096
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
8335
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8097
8336
  if (!untrustedIsObject(untrustedConfig)) {
8098
8337
  return null;
8099
8338
  }
8100
8339
  if (process.env.NODE_ENV !== 'production') {
8101
8340
  validateConfig(untrustedConfig, configPropertyNames);
8102
8341
  }
8103
- const config = typeCheckConfig$2(untrustedConfig);
8342
+ const config = typeCheckConfig$3(untrustedConfig);
8104
8343
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8105
8344
  return null;
8106
8345
  }
8107
8346
  return config;
8108
8347
  }
8109
- function buildNetworkSnapshot$2(luvio, config, options) {
8110
- const resourceParams = createResourceParams$2(config);
8111
- const request = createResourceRequest$2(resourceParams);
8348
+ function buildNetworkSnapshot$3(luvio, config, options) {
8349
+ const resourceParams = createResourceParams$3(config);
8350
+ const request = createResourceRequest$3(resourceParams);
8112
8351
  return luvio.dispatchResourceRequest(request, options)
8113
8352
  .then((response) => {
8114
8353
  return luvio.handleSuccessResponse(() => {
8115
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
8354
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
8116
8355
  return luvio.storeBroadcast().then(() => snapshot);
8117
8356
  }, () => {
8118
8357
  const cache = new StoreKeyMap();
8119
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
8358
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8120
8359
  return cache;
8121
8360
  });
8122
8361
  }, (response) => {
@@ -8126,18 +8365,18 @@ function buildNetworkSnapshot$2(luvio, config, options) {
8126
8365
  }
8127
8366
  const generateIntakeFormAdapterFactory = (luvio) => {
8128
8367
  return function generateIntakeForm(untrustedConfig) {
8129
- const config = validateAdapterConfig$2(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
8368
+ const config = validateAdapterConfig$3(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
8130
8369
  // Invalid or incomplete config
8131
8370
  if (config === null) {
8132
8371
  throw new Error('Invalid config for "generateIntakeForm"');
8133
8372
  }
8134
- return buildNetworkSnapshot$2(luvio, config);
8373
+ return buildNetworkSnapshot$3(luvio, config);
8135
8374
  };
8136
8375
  };
8137
8376
 
8138
- const TTL = 6000;
8139
- const VERSION$1 = "b593e197e57b5cb5b7531e71073daefa";
8140
- function validate$1(obj, path = 'OmniIntakeOutputRepresentation') {
8377
+ const TTL$1 = 6000;
8378
+ const VERSION$2 = "b593e197e57b5cb5b7531e71073daefa";
8379
+ function validate$2(obj, path = 'OmniIntakeOutputRepresentation') {
8141
8380
  const v_error = (() => {
8142
8381
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8143
8382
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8185,23 +8424,23 @@ function validate$1(obj, path = 'OmniIntakeOutputRepresentation') {
8185
8424
  })();
8186
8425
  return v_error === undefined ? null : v_error;
8187
8426
  }
8188
- const RepresentationType$1 = 'OmniIntakeOutputRepresentation';
8189
- function keyBuilder$2(luvio, config) {
8190
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
8427
+ const RepresentationType$2 = 'OmniIntakeOutputRepresentation';
8428
+ function keyBuilder$3(luvio, config) {
8429
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
8191
8430
  }
8192
- function keyBuilderFromType(luvio, object) {
8431
+ function keyBuilderFromType$1(luvio, object) {
8193
8432
  const keyParams = {
8194
8433
  id: object.id
8195
8434
  };
8196
- return keyBuilder$2(luvio, keyParams);
8435
+ return keyBuilder$3(luvio, keyParams);
8197
8436
  }
8198
- function normalize$1(input, existing, path, luvio, store, timestamp) {
8437
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
8199
8438
  return input;
8200
8439
  }
8201
- const select$3 = function OmniIntakeOutputRepresentationSelect() {
8440
+ const select$5 = function OmniIntakeOutputRepresentationSelect() {
8202
8441
  return {
8203
8442
  kind: 'Fragment',
8204
- version: VERSION$1,
8443
+ version: VERSION$2,
8205
8444
  private: [],
8206
8445
  selections: [
8207
8446
  {
@@ -8239,7 +8478,7 @@ const select$3 = function OmniIntakeOutputRepresentationSelect() {
8239
8478
  ]
8240
8479
  };
8241
8480
  };
8242
- function equals$1(existing, incoming) {
8481
+ function equals$2(existing, incoming) {
8243
8482
  const existing_description = existing.description;
8244
8483
  const incoming_description = incoming.description;
8245
8484
  if (!(existing_description === incoming_description)) {
@@ -8282,41 +8521,41 @@ function equals$1(existing, incoming) {
8282
8521
  }
8283
8522
  return true;
8284
8523
  }
8285
- const ingest$1 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8524
+ const ingest$2 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8286
8525
  if (process.env.NODE_ENV !== 'production') {
8287
- const validateError = validate$1(input);
8526
+ const validateError = validate$2(input);
8288
8527
  if (validateError !== null) {
8289
8528
  throw validateError;
8290
8529
  }
8291
8530
  }
8292
- const key = keyBuilderFromType(luvio, input);
8293
- const ttlToUse = TTL;
8294
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ecm", VERSION$1, RepresentationType$1, equals$1);
8531
+ const key = keyBuilderFromType$1(luvio, input);
8532
+ const ttlToUse = TTL$1;
8533
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
8295
8534
  return createLink(key);
8296
8535
  };
8297
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
8536
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
8298
8537
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8299
- const rootKey = keyBuilderFromType(luvio, input);
8538
+ const rootKey = keyBuilderFromType$1(luvio, input);
8300
8539
  rootKeySet.set(rootKey, {
8301
8540
  namespace: keyPrefix,
8302
- representationName: RepresentationType$1,
8541
+ representationName: RepresentationType$2,
8303
8542
  mergeable: false
8304
8543
  });
8305
8544
  }
8306
8545
 
8307
- function select$2(luvio, params) {
8308
- return select$3();
8546
+ function select$4(luvio, params) {
8547
+ return select$5();
8309
8548
  }
8310
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
8311
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
8549
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
8550
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
8312
8551
  }
8313
- function ingestSuccess$1(luvio, resourceParams, response) {
8552
+ function ingestSuccess$2(luvio, resourceParams, response) {
8314
8553
  const { body } = response;
8315
- const key = keyBuilderFromType(luvio, body);
8316
- luvio.storeIngest(key, ingest$1, body);
8554
+ const key = keyBuilderFromType$1(luvio, body);
8555
+ luvio.storeIngest(key, ingest$2, body);
8317
8556
  const snapshot = luvio.storeLookup({
8318
8557
  recordId: key,
8319
- node: select$2(),
8558
+ node: select$4(),
8320
8559
  variables: {},
8321
8560
  });
8322
8561
  if (process.env.NODE_ENV !== 'production') {
@@ -8327,7 +8566,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
8327
8566
  deepFreeze(snapshot.data);
8328
8567
  return snapshot;
8329
8568
  }
8330
- function createResourceRequest$1(config) {
8569
+ function createResourceRequest$2(config) {
8331
8570
  const headers = {};
8332
8571
  return {
8333
8572
  baseUri: '/services/data/v65.0',
@@ -8341,43 +8580,43 @@ function createResourceRequest$1(config) {
8341
8580
  };
8342
8581
  }
8343
8582
 
8344
- const adapterName$1 = 'generateOmniScript';
8583
+ const adapterName$2 = 'generateOmniScript';
8345
8584
  const generateOmniScript_ConfigPropertyMetadata = [
8346
8585
  generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
8347
8586
  generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
8348
8587
  generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
8349
8588
  ];
8350
- const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, generateOmniScript_ConfigPropertyMetadata);
8351
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(generateOmniScript_ConfigPropertyMetadata);
8352
- function typeCheckConfig$1(untrustedConfig) {
8589
+ const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateOmniScript_ConfigPropertyMetadata);
8590
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(generateOmniScript_ConfigPropertyMetadata);
8591
+ function typeCheckConfig$2(untrustedConfig) {
8353
8592
  const config = {};
8354
- typeCheckConfig$9(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
8593
+ typeCheckConfig$b(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
8355
8594
  return config;
8356
8595
  }
8357
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
8596
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
8358
8597
  if (!untrustedIsObject(untrustedConfig)) {
8359
8598
  return null;
8360
8599
  }
8361
8600
  if (process.env.NODE_ENV !== 'production') {
8362
8601
  validateConfig(untrustedConfig, configPropertyNames);
8363
8602
  }
8364
- const config = typeCheckConfig$1(untrustedConfig);
8603
+ const config = typeCheckConfig$2(untrustedConfig);
8365
8604
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8366
8605
  return null;
8367
8606
  }
8368
8607
  return config;
8369
8608
  }
8370
- function buildNetworkSnapshot$1(luvio, config, options) {
8371
- const resourceParams = createResourceParams$1(config);
8372
- const request = createResourceRequest$1(resourceParams);
8609
+ function buildNetworkSnapshot$2(luvio, config, options) {
8610
+ const resourceParams = createResourceParams$2(config);
8611
+ const request = createResourceRequest$2(resourceParams);
8373
8612
  return luvio.dispatchResourceRequest(request, options)
8374
8613
  .then((response) => {
8375
8614
  return luvio.handleSuccessResponse(() => {
8376
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
8615
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
8377
8616
  return luvio.storeBroadcast().then(() => snapshot);
8378
8617
  }, () => {
8379
8618
  const cache = new StoreKeyMap();
8380
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
8619
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
8381
8620
  return cache;
8382
8621
  });
8383
8622
  }, (response) => {
@@ -8387,17 +8626,17 @@ function buildNetworkSnapshot$1(luvio, config, options) {
8387
8626
  }
8388
8627
  const generateOmniScriptAdapterFactory = (luvio) => {
8389
8628
  return function generateOmniScript(untrustedConfig) {
8390
- const config = validateAdapterConfig$1(untrustedConfig, generateOmniScript_ConfigPropertyNames);
8629
+ const config = validateAdapterConfig$2(untrustedConfig, generateOmniScript_ConfigPropertyNames);
8391
8630
  // Invalid or incomplete config
8392
8631
  if (config === null) {
8393
8632
  throw new Error('Invalid config for "generateOmniScript"');
8394
8633
  }
8395
- return buildNetworkSnapshot$1(luvio, config);
8634
+ return buildNetworkSnapshot$2(luvio, config);
8396
8635
  };
8397
8636
  };
8398
8637
 
8399
- const VERSION = "4f891f8b58d8bba310f23859c6c0bb4d";
8400
- function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
8638
+ const VERSION$1 = "4f891f8b58d8bba310f23859c6c0bb4d";
8639
+ function validate$1(obj, path = 'ServiceRequestGetOutputRepresentation') {
8401
8640
  const v_error = (() => {
8402
8641
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8403
8642
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8453,14 +8692,14 @@ function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
8453
8692
  })();
8454
8693
  return v_error === undefined ? null : v_error;
8455
8694
  }
8456
- const RepresentationType = 'ServiceRequestGetOutputRepresentation';
8457
- function normalize(input, existing, path, luvio, store, timestamp) {
8695
+ const RepresentationType$1 = 'ServiceRequestGetOutputRepresentation';
8696
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
8458
8697
  return input;
8459
8698
  }
8460
- const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
8699
+ const select$3 = function ServiceRequestGetOutputRepresentationSelect() {
8461
8700
  return {
8462
8701
  kind: 'Fragment',
8463
- version: VERSION,
8702
+ version: VERSION$1,
8464
8703
  private: [],
8465
8704
  selections: [
8466
8705
  {
@@ -8481,7 +8720,7 @@ const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
8481
8720
  ]
8482
8721
  };
8483
8722
  };
8484
- function equals(existing, incoming) {
8723
+ function equals$1(existing, incoming) {
8485
8724
  const existing_anchor = existing.anchor;
8486
8725
  const incoming_anchor = incoming.anchor;
8487
8726
  // if at least one of these optionals is defined
@@ -8538,44 +8777,44 @@ function equals(existing, incoming) {
8538
8777
  }
8539
8778
  return true;
8540
8779
  }
8541
- const ingest = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8780
+ const ingest$1 = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8542
8781
  if (process.env.NODE_ENV !== 'production') {
8543
- const validateError = validate(input);
8782
+ const validateError = validate$1(input);
8544
8783
  if (validateError !== null) {
8545
8784
  throw validateError;
8546
8785
  }
8547
8786
  }
8548
8787
  const key = path.fullPath;
8549
8788
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
8550
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
8789
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ecm", VERSION$1, RepresentationType$1, equals$1);
8551
8790
  return createLink(key);
8552
8791
  };
8553
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
8792
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
8554
8793
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8555
8794
  const rootKey = fullPathFactory();
8556
8795
  rootKeySet.set(rootKey, {
8557
8796
  namespace: keyPrefix,
8558
- representationName: RepresentationType,
8797
+ representationName: RepresentationType$1,
8559
8798
  mergeable: false
8560
8799
  });
8561
8800
  }
8562
8801
 
8563
- function select(luvio, params) {
8564
- return select$1();
8802
+ function select$2(luvio, params) {
8803
+ return select$3();
8565
8804
  }
8566
- function keyBuilder$1(luvio, params) {
8805
+ function keyBuilder$2(luvio, params) {
8567
8806
  return keyPrefix + '::ServiceRequestGetOutputRepresentation:(' + 'serviceRequestId:' + params.urlParams.serviceRequestId + ')';
8568
8807
  }
8569
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
8570
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
8808
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
8809
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
8571
8810
  }
8572
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
8811
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
8573
8812
  const { body } = response;
8574
- const key = keyBuilder$1(luvio, resourceParams);
8575
- luvio.storeIngest(key, ingest, body);
8813
+ const key = keyBuilder$2(luvio, resourceParams);
8814
+ luvio.storeIngest(key, ingest$1, body);
8576
8815
  const snapshot = luvio.storeLookup({
8577
8816
  recordId: key,
8578
- node: select(),
8817
+ node: select$2(),
8579
8818
  variables: {},
8580
8819
  }, snapshotRefresh);
8581
8820
  if (process.env.NODE_ENV !== 'production') {
@@ -8587,12 +8826,12 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
8587
8826
  return snapshot;
8588
8827
  }
8589
8828
  function ingestError(luvio, params, error, snapshotRefresh) {
8590
- const key = keyBuilder$1(luvio, params);
8829
+ const key = keyBuilder$2(luvio, params);
8591
8830
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8592
8831
  luvio.storeIngestError(key, errorSnapshot);
8593
8832
  return errorSnapshot;
8594
8833
  }
8595
- function createResourceRequest(config) {
8834
+ function createResourceRequest$1(config) {
8596
8835
  const headers = {};
8597
8836
  return {
8598
8837
  baseUri: '/services/data/v65.0',
@@ -8606,60 +8845,60 @@ function createResourceRequest(config) {
8606
8845
  };
8607
8846
  }
8608
8847
 
8609
- const adapterName = 'getServiceRequest';
8848
+ const adapterName$1 = 'getServiceRequest';
8610
8849
  const getServiceRequest_ConfigPropertyMetadata = [
8611
8850
  generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
8612
8851
  ];
8613
- const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getServiceRequest_ConfigPropertyMetadata);
8614
- const createResourceParams = /*#__PURE__*/ createResourceParams$9(getServiceRequest_ConfigPropertyMetadata);
8615
- function keyBuilder(luvio, config) {
8616
- const resourceParams = createResourceParams(config);
8617
- return keyBuilder$1(luvio, resourceParams);
8852
+ const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getServiceRequest_ConfigPropertyMetadata);
8853
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(getServiceRequest_ConfigPropertyMetadata);
8854
+ function keyBuilder$1(luvio, config) {
8855
+ const resourceParams = createResourceParams$1(config);
8856
+ return keyBuilder$2(luvio, resourceParams);
8618
8857
  }
8619
- function typeCheckConfig(untrustedConfig) {
8858
+ function typeCheckConfig$1(untrustedConfig) {
8620
8859
  const config = {};
8621
- typeCheckConfig$9(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
8860
+ typeCheckConfig$b(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
8622
8861
  return config;
8623
8862
  }
8624
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
8863
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
8625
8864
  if (!untrustedIsObject(untrustedConfig)) {
8626
8865
  return null;
8627
8866
  }
8628
8867
  if (process.env.NODE_ENV !== 'production') {
8629
8868
  validateConfig(untrustedConfig, configPropertyNames);
8630
8869
  }
8631
- const config = typeCheckConfig(untrustedConfig);
8870
+ const config = typeCheckConfig$1(untrustedConfig);
8632
8871
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8633
8872
  return null;
8634
8873
  }
8635
8874
  return config;
8636
8875
  }
8637
8876
  function adapterFragment(luvio, config) {
8638
- createResourceParams(config);
8639
- return select();
8877
+ createResourceParams$1(config);
8878
+ return select$2();
8640
8879
  }
8641
8880
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
8642
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
8881
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
8643
8882
  config,
8644
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
8883
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8645
8884
  });
8646
8885
  return luvio.storeBroadcast().then(() => snapshot);
8647
8886
  }
8648
8887
  function onFetchResponseError(luvio, config, resourceParams, response) {
8649
8888
  const snapshot = ingestError(luvio, resourceParams, response, {
8650
8889
  config,
8651
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
8890
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8652
8891
  });
8653
8892
  return luvio.storeBroadcast().then(() => snapshot);
8654
8893
  }
8655
- function buildNetworkSnapshot(luvio, config, options) {
8656
- const resourceParams = createResourceParams(config);
8657
- const request = createResourceRequest(resourceParams);
8894
+ function buildNetworkSnapshot$1(luvio, config, options) {
8895
+ const resourceParams = createResourceParams$1(config);
8896
+ const request = createResourceRequest$1(resourceParams);
8658
8897
  return luvio.dispatchResourceRequest(request, options)
8659
8898
  .then((response) => {
8660
8899
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
8661
8900
  const cache = new StoreKeyMap();
8662
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
8901
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
8663
8902
  return cache;
8664
8903
  });
8665
8904
  }, (response) => {
@@ -8667,23 +8906,23 @@ function buildNetworkSnapshot(luvio, config, options) {
8667
8906
  });
8668
8907
  }
8669
8908
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
8670
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
8909
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
8671
8910
  }
8672
8911
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
8673
8912
  const { luvio, config } = context;
8674
8913
  const selector = {
8675
- recordId: keyBuilder(luvio, config),
8914
+ recordId: keyBuilder$1(luvio, config),
8676
8915
  node: adapterFragment(luvio, config),
8677
8916
  variables: {},
8678
8917
  };
8679
8918
  const cacheSnapshot = storeLookup(selector, {
8680
8919
  config,
8681
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
8920
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8682
8921
  });
8683
8922
  return cacheSnapshot;
8684
8923
  }
8685
8924
  const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceRequest(untrustedConfig, requestContext) {
8686
- const config = validateAdapterConfig(untrustedConfig, getServiceRequest_ConfigPropertyNames);
8925
+ const config = validateAdapterConfig$1(untrustedConfig, getServiceRequest_ConfigPropertyNames);
8687
8926
  // Invalid or incomplete config
8688
8927
  if (config === null) {
8689
8928
  return null;
@@ -8692,4 +8931,193 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
8692
8931
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
8693
8932
  };
8694
8933
 
8695
- export { createCatalogItemAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };
8934
+ const TTL = 6000;
8935
+ const VERSION = "86e4694b8895fc704a6e48475634556a";
8936
+ function validate(obj, path = 'DeploymentOutputRepresentation') {
8937
+ const v_error = (() => {
8938
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8939
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
8940
+ }
8941
+ const obj_deploymentResult = obj.deploymentResult;
8942
+ const path_deploymentResult = path + '.deploymentResult';
8943
+ if (typeof obj_deploymentResult !== 'string') {
8944
+ return new TypeError('Expected "string" but received "' + typeof obj_deploymentResult + '" (at "' + path_deploymentResult + '")');
8945
+ }
8946
+ const obj_status = obj.status;
8947
+ const path_status = path + '.status';
8948
+ if (typeof obj_status !== 'string') {
8949
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
8950
+ }
8951
+ const obj_templateId = obj.templateId;
8952
+ const path_templateId = path + '.templateId';
8953
+ if (typeof obj_templateId !== 'string') {
8954
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
8955
+ }
8956
+ })();
8957
+ return v_error === undefined ? null : v_error;
8958
+ }
8959
+ const RepresentationType = 'DeploymentOutputRepresentation';
8960
+ function keyBuilder(luvio, config) {
8961
+ return keyPrefix + '::' + RepresentationType + ':' + config.templateId;
8962
+ }
8963
+ function keyBuilderFromType(luvio, object) {
8964
+ const keyParams = {
8965
+ templateId: object.templateId
8966
+ };
8967
+ return keyBuilder(luvio, keyParams);
8968
+ }
8969
+ function normalize(input, existing, path, luvio, store, timestamp) {
8970
+ return input;
8971
+ }
8972
+ const select$1 = function DeploymentOutputRepresentationSelect() {
8973
+ return {
8974
+ kind: 'Fragment',
8975
+ version: VERSION,
8976
+ private: [],
8977
+ selections: [
8978
+ {
8979
+ name: 'deploymentResult',
8980
+ kind: 'Scalar'
8981
+ },
8982
+ {
8983
+ name: 'status',
8984
+ kind: 'Scalar'
8985
+ },
8986
+ {
8987
+ name: 'templateId',
8988
+ kind: 'Scalar'
8989
+ }
8990
+ ]
8991
+ };
8992
+ };
8993
+ function equals(existing, incoming) {
8994
+ const existing_deploymentResult = existing.deploymentResult;
8995
+ const incoming_deploymentResult = incoming.deploymentResult;
8996
+ if (!(existing_deploymentResult === incoming_deploymentResult)) {
8997
+ return false;
8998
+ }
8999
+ const existing_status = existing.status;
9000
+ const incoming_status = incoming.status;
9001
+ if (!(existing_status === incoming_status)) {
9002
+ return false;
9003
+ }
9004
+ const existing_templateId = existing.templateId;
9005
+ const incoming_templateId = incoming.templateId;
9006
+ if (!(existing_templateId === incoming_templateId)) {
9007
+ return false;
9008
+ }
9009
+ return true;
9010
+ }
9011
+ const ingest = function DeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9012
+ if (process.env.NODE_ENV !== 'production') {
9013
+ const validateError = validate(input);
9014
+ if (validateError !== null) {
9015
+ throw validateError;
9016
+ }
9017
+ }
9018
+ const key = keyBuilderFromType(luvio, input);
9019
+ const ttlToUse = TTL;
9020
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
9021
+ return createLink(key);
9022
+ };
9023
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
9024
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9025
+ const rootKey = keyBuilderFromType(luvio, input);
9026
+ rootKeySet.set(rootKey, {
9027
+ namespace: keyPrefix,
9028
+ representationName: RepresentationType,
9029
+ mergeable: false
9030
+ });
9031
+ }
9032
+
9033
+ function select(luvio, params) {
9034
+ return select$1();
9035
+ }
9036
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
9037
+ getTypeCacheKeys(storeKeyMap, luvio, response);
9038
+ }
9039
+ function ingestSuccess(luvio, resourceParams, response) {
9040
+ const { body } = response;
9041
+ const key = keyBuilderFromType(luvio, body);
9042
+ luvio.storeIngest(key, ingest, body);
9043
+ const snapshot = luvio.storeLookup({
9044
+ recordId: key,
9045
+ node: select(),
9046
+ variables: {},
9047
+ });
9048
+ if (process.env.NODE_ENV !== 'production') {
9049
+ if (snapshot.state !== 'Fulfilled') {
9050
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
9051
+ }
9052
+ }
9053
+ deepFreeze(snapshot.data);
9054
+ return snapshot;
9055
+ }
9056
+ function createResourceRequest(config) {
9057
+ const headers = {};
9058
+ return {
9059
+ baseUri: '/services/data/v65.0',
9060
+ basePath: '/connect/service-automation/template/deploy/' + config.urlParams.templateId + '',
9061
+ method: 'post',
9062
+ body: null,
9063
+ urlParams: config.urlParams,
9064
+ queryParams: {},
9065
+ headers,
9066
+ priority: 'normal',
9067
+ };
9068
+ }
9069
+
9070
+ const adapterName = 'deployTemplate';
9071
+ const deployTemplate_ConfigPropertyMetadata = [
9072
+ generateParamConfigMetadata('templateId', true, 0 /* UrlParameter */, 0 /* String */),
9073
+ ];
9074
+ const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, deployTemplate_ConfigPropertyMetadata);
9075
+ const createResourceParams = /*#__PURE__*/ createResourceParams$b(deployTemplate_ConfigPropertyMetadata);
9076
+ function typeCheckConfig(untrustedConfig) {
9077
+ const config = {};
9078
+ typeCheckConfig$b(untrustedConfig, config, deployTemplate_ConfigPropertyMetadata);
9079
+ return config;
9080
+ }
9081
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
9082
+ if (!untrustedIsObject(untrustedConfig)) {
9083
+ return null;
9084
+ }
9085
+ if (process.env.NODE_ENV !== 'production') {
9086
+ validateConfig(untrustedConfig, configPropertyNames);
9087
+ }
9088
+ const config = typeCheckConfig(untrustedConfig);
9089
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
9090
+ return null;
9091
+ }
9092
+ return config;
9093
+ }
9094
+ function buildNetworkSnapshot(luvio, config, options) {
9095
+ const resourceParams = createResourceParams(config);
9096
+ const request = createResourceRequest(resourceParams);
9097
+ return luvio.dispatchResourceRequest(request, options)
9098
+ .then((response) => {
9099
+ return luvio.handleSuccessResponse(() => {
9100
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
9101
+ return luvio.storeBroadcast().then(() => snapshot);
9102
+ }, () => {
9103
+ const cache = new StoreKeyMap();
9104
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
9105
+ return cache;
9106
+ });
9107
+ }, (response) => {
9108
+ deepFreeze(response);
9109
+ throw response;
9110
+ });
9111
+ }
9112
+ const deployTemplateAdapterFactory = (luvio) => {
9113
+ return function deployTemplate(untrustedConfig) {
9114
+ const config = validateAdapterConfig(untrustedConfig, deployTemplate_ConfigPropertyNames);
9115
+ // Invalid or incomplete config
9116
+ if (config === null) {
9117
+ throw new Error('Invalid config for "deployTemplate"');
9118
+ }
9119
+ return buildNetworkSnapshot(luvio, config);
9120
+ };
9121
+ };
9122
+
9123
+ export { createCatalogItemAdapterFactory, deployTemplateAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getAllServiceProcessTemplateAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };