@salesforce/lds-adapters-service-ecm 1.365.0 → 1.367.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. package/dist/es/es2018/service-ecm.js +1900 -1235
  2. package/dist/es/es2018/types/src/generated/adapters/createAgentAction.d.ts +20 -0
  3. package/dist/es/es2018/types/src/generated/adapters/createAgentFlow.d.ts +18 -0
  4. package/dist/es/es2018/types/src/generated/adapters/deployTemplate.d.ts +15 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getAllServiceProcessTemplate.d.ts +26 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -1
  8. package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceProcessGetAllTemplates.d.ts +12 -0
  9. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationAgentFlowAutolaunched.d.ts +15 -0
  10. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationGenAiActions.d.ts +17 -0
  11. package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationTemplateDeployByTemplateId.d.ts +12 -0
  12. package/dist/es/es2018/types/src/generated/types/AgentActionAttributeOutputRepresentation.d.ts +27 -27
  13. package/dist/es/es2018/types/src/generated/types/AgentFlowInputRepresentation.d.ts +37 -0
  14. package/dist/es/es2018/types/src/generated/types/AgentFlowOutputRepresentation.d.ts +47 -0
  15. package/dist/es/es2018/types/src/generated/types/AgentFlowStatusOutputRepresentation.d.ts +31 -0
  16. package/dist/es/es2018/types/src/generated/types/DeploymentOutputRepresentation.d.ts +44 -0
  17. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionInputRepresentation.d.ts +43 -0
  18. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionOutputRepresentation.d.ts +38 -28
  19. package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionsOutputRepresentation.d.ts +5 -5
  20. package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplateOutputRepresentation.d.ts +43 -0
  21. package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplatesOutputRepresentation.d.ts +30 -0
  22. package/package.json +3 -3
  23. package/sfdc/index.js +2112 -1426
  24. package/src/raml/api.raml +190 -37
  25. package/src/raml/luvio.raml +31 -1
@@ -4,7 +4,7 @@
4
4
  * For full license text, see the LICENSE.txt file
5
5
  */
6
6
 
7
- import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4, typeCheckConfig as typeCheckConfig$9 } from '@luvio/engine';
7
+ import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$d } 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$E(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$D(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$C(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$B(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$C(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$A(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$z(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$y(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$x(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$w(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$v(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$u(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$o = "ac94c0c52190d3f2f063659052e5b46e";
1660
+ function validate$t(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$B = function AgentActionOutputRepresentationSelect() {
1753
1753
  return {
1754
1754
  kind: 'Fragment',
1755
- version: VERSION$i,
1755
+ version: VERSION$o,
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$o(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$n = "0b2080174fe6d4ee4f4a0de27011fc7d";
1820
+ function validate$s(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$A = function AssociatedArticleOutputRepresentationSelect() {
1885
1885
  return {
1886
1886
  kind: 'Fragment',
1887
- version: VERSION$h,
1887
+ version: VERSION$n,
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$n(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$m = "6859d872ce6d03f8f07819eb40c43fe6";
1934
+ function validate$r(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$z = function EligibilityRuleOutputRepresentationSelect() {
1999
1999
  return {
2000
2000
  kind: 'Fragment',
2001
- version: VERSION$g,
2001
+ version: VERSION$m,
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$m(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$l = "b5216beece7c04763cff6924e6953f93";
2048
+ function validate$q(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$y = function FulfillmentFlowOutputRepresentationSelect() {
2141
2141
  return {
2142
2142
  kind: 'Fragment',
2143
- version: VERSION$f,
2143
+ version: VERSION$l,
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$l(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$k = "dc8ba723ca754951db42f9d0e6891a06";
2208
+ function validate$p(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$x = function IntakeFormOutputRepresentationSelect() {
2441
2441
  return {
2442
2442
  kind: 'Fragment',
2443
- version: VERSION$e,
2443
+ version: VERSION$k,
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$k(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$j = "1006a153c933b8bc4b1d44663893e206";
2598
+ function validate$o(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$w = function IntegrationDefinitionOutputPresentationSelect() {
2663
2663
  return {
2664
2664
  kind: 'Fragment',
2665
- version: VERSION$d,
2665
+ version: VERSION$j,
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$j(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$i = "2d685b1e467eb8d61276e834ea3b74a3";
2712
+ function validate$n(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$v = function PreprocessorOutputRepresentationSelect() {
2777
2777
  return {
2778
2778
  kind: 'Fragment',
2779
- version: VERSION$c,
2779
+ version: VERSION$i,
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$i(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$h = "bb9dde3a26e01fbcb2b943119fcb279a";
2826
+ function validate$m(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$u = function ProductDetailsOutputRepresentationSelect() {
3003
3003
  return {
3004
3004
  kind: 'Fragment',
3005
- version: VERSION$b,
3005
+ version: VERSION$h,
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$h(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$g = "dc18ee4b99b0510d2c89ddf9261ea1e7";
3124
+ function validate$l(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$m(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$t = function ProductRequestOutputRepresentationSelect() {
3318
+ const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$u();
3319
3319
  return {
3320
3320
  kind: 'Fragment',
3321
- version: VERSION$a,
3321
+ version: VERSION$g,
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$g(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$h(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$f = "96012ee7981543ddc90b7a4d3e505ffb";
3465
+ function validate$k(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$s = function PicklistAttributeTypeOutputRepresentationSelect() {
3516
3516
  return {
3517
3517
  kind: 'Fragment',
3518
- version: VERSION$9,
3518
+ version: VERSION$f,
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$f(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$e = "564fd7f64d997ab6ecc936f5787a27f9";
3637
+ function validate$j(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$k(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$r = function CatalogItemAttributeOutputRepresentationSelect() {
4090
+ const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$s();
4091
4091
  return {
4092
4092
  kind: 'Fragment',
4093
- version: VERSION$8,
4093
+ version: VERSION$e,
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$e(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$f(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$d = "eed5c7a2ef3082b1059e48f5742cd44f";
4421
+ function validate$i(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$j(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$q = function SectionOutputRepresentationSelect() {
4559
+ const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$r();
4560
4560
  return {
4561
4561
  kind: 'Fragment',
4562
- version: VERSION$7,
4562
+ version: VERSION$d,
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$d(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$e(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$9 = 6000;
4674
+ const VERSION$c = "9cce3c8a5131820b99e02e05c1d95d43";
4675
+ function validate$h(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$t(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$s(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$r(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$q(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$p(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$o(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$n(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$l(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$i(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$i(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$a = 'CatalogItemOutputRepresentation';
5286
+ function keyBuilder$g(luvio, config) {
5287
+ return keyPrefix + '::' + RepresentationType$a + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
5288
5288
  }
5289
- function keyBuilderFromType$3(luvio, object) {
5289
+ function keyBuilderFromType$6(luvio, object) {
5290
5290
  const keyParams = {
5291
5291
  catalogItemId: object.catalogItemId
5292
5292
  };
5293
- return keyBuilder$b(luvio, keyParams);
5293
+ return keyBuilder$g(luvio, keyParams);
5294
5294
  }
5295
- function normalize$6(input, existing, path, luvio, store, timestamp) {
5295
+ function normalize$a(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$p = function CatalogItemOutputRepresentationSelect() {
5299
+ const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$B();
5300
+ const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$A();
5301
+ const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$z();
5302
+ const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$y();
5303
+ const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$x();
5304
+ const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$w();
5305
+ const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$v();
5306
+ const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$t();
5307
+ const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$q();
5308
5308
  return {
5309
5309
  kind: 'Fragment',
5310
- version: VERSION$6,
5310
+ version: VERSION$c,
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$c(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$o(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$n(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$m(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$l(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$k(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$j(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$i(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$g(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$d(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$d(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$a = 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$h(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$6(luvio, input);
5746
+ const ttlToUse = TTL$9;
5747
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "ecm", VERSION$c, RepresentationType$a, equals$c);
5748
5748
  return createLink(key);
5749
5749
  };
5750
- function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
5750
+ function getTypeCacheKeys$a(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$6(luvio, input);
5753
5753
  rootKeySet.set(rootKey, {
5754
5754
  namespace: keyPrefix,
5755
- representationName: RepresentationType$6,
5755
+ representationName: RepresentationType$a,
5756
5756
  mergeable: false
5757
5757
  });
5758
5758
  }
5759
5759
 
5760
- function select$e(luvio, params) {
5761
- return select$f();
5760
+ function select$o(luvio, params) {
5761
+ return select$p();
5762
5762
  }
5763
- function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
5764
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
5763
+ function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
5764
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
5765
5765
  }
5766
- function ingestSuccess$8(luvio, resourceParams, response) {
5766
+ function ingestSuccess$c(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$6(luvio, body);
5769
+ luvio.storeIngest(key, ingest$a, body);
5770
5770
  const snapshot = luvio.storeLookup({
5771
5771
  recordId: key,
5772
- node: select$e(),
5772
+ node: select$o(),
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$c(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$c = '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$c, createCatalogItem_ConfigPropertyMetadata);
5818
+ const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createCatalogItem_ConfigPropertyMetadata);
5819
+ function typeCheckConfig$c(untrustedConfig) {
5820
5820
  const config = {};
5821
5821
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
5822
- const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
5822
+ const referenceAgentActionInputRepresentationValidationError = validate$E(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$D(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$B(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$A(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$z(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$y(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$x(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$w(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$v(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$u(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$c(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$c(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$c(luvio, config, options) {
6015
+ const resourceParams = createResourceParams$c(config);
6016
+ const request = createResourceRequest$c(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$c(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$c(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$c(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$c(luvio, config);
6040
6040
  };
6041
6041
  };
6042
6042
 
6043
- function select$d(luvio, params) {
6044
- return select$f();
6043
+ function select$n(luvio, params) {
6044
+ return select$p();
6045
6045
  }
6046
- function keyBuilder$a(luvio, params) {
6047
- return keyBuilder$b(luvio, {
6046
+ function keyBuilder$f(luvio, params) {
6047
+ return keyBuilder$g(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$b(storeKeyMap, luvio, resourceParams, response) {
6052
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
6053
6053
  }
6054
- function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
6054
+ function ingestSuccess$b(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$f(luvio, resourceParams);
6057
+ luvio.storeIngest(key, ingest$a, body);
6058
6058
  const snapshot = luvio.storeLookup({
6059
6059
  recordId: key,
6060
- node: select$d(),
6060
+ node: select$n(),
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$f(luvio, params);
6073
6073
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6074
6074
  const storeMetadataParams = {
6075
- ttl: TTL$5,
6075
+ ttl: TTL$9,
6076
6076
  namespace: keyPrefix,
6077
- version: VERSION$6,
6078
- representationName: RepresentationType$6
6077
+ version: VERSION$c,
6078
+ representationName: RepresentationType$a
6079
6079
  };
6080
6080
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6081
6081
  return errorSnapshot;
6082
6082
  }
6083
- function createResourceRequest$7(config) {
6083
+ function createResourceRequest$b(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$b = '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$b, getCatalogItem_ConfigPropertyMetadata);
6103
+ const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(getCatalogItem_ConfigPropertyMetadata);
6104
+ function keyBuilder$e(luvio, config) {
6105
+ const resourceParams = createResourceParams$b(config);
6106
+ return keyBuilder$f(luvio, resourceParams);
6107
6107
  }
6108
- function typeCheckConfig$7(untrustedConfig) {
6108
+ function typeCheckConfig$b(untrustedConfig) {
6109
6109
  const config = {};
6110
- typeCheckConfig$9(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
6110
+ typeCheckConfig$d(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
6111
6111
  return config;
6112
6112
  }
6113
- function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
6113
+ function validateAdapterConfig$b(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$b(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$b(config);
6128
+ return select$n();
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$b(luvio, resourceParams, response, {
6132
6132
  config,
6133
- resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
6133
+ resolve: () => buildNetworkSnapshot$b(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$b(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$b(luvio, config, options) {
6145
+ const resourceParams = createResourceParams$b(config);
6146
+ const request = createResourceRequest$b(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$b(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$b, 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$e(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$b(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$b(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$m(luvio, params) {
6185
+ return select$p();
6186
6186
  }
6187
- function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
6188
- getTypeCacheKeys$6(storeKeyMap, luvio, response);
6187
+ function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
6188
+ getTypeCacheKeys$a(storeKeyMap, luvio, response);
6189
6189
  }
6190
- function ingestSuccess$6(luvio, resourceParams, response) {
6190
+ function ingestSuccess$a(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$6(luvio, body);
6193
+ luvio.storeIngest(key, ingest$a, body);
6194
6194
  const snapshot = luvio.storeLookup({
6195
6195
  recordId: key,
6196
- node: select$c(),
6196
+ node: select$m(),
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$a(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$a = '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$a, updateCatalogItem_ConfigPropertyMetadata);
6244
+ const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(updateCatalogItem_ConfigPropertyMetadata);
6245
+ function typeCheckConfig$a(untrustedConfig) {
6246
6246
  const config = {};
6247
- typeCheckConfig$9(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
6247
+ typeCheckConfig$d(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
6248
6248
  const untrustedConfig_agentAction = untrustedConfig.agentAction;
6249
- const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
6249
+ const referenceAgentActionInputRepresentationValidationError = validate$E(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$D(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$B(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$A(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$z(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$y(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$x(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$w(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$v(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$u(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$a(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$a(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$a(luvio, config, options) {
6449
+ const resourceParams = createResourceParams$a(config);
6450
+ const request = createResourceRequest$a(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$a(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$a(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$a(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$a(luvio, config);
6474
6474
  };
6475
6475
  };
6476
6476
 
6477
- function validate$b(obj, path = 'CategoryInput') {
6477
+ function validate$g(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$f(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$8 = 6000;
6518
+ const VERSION$b = "fe841039450a703d6b90e94658dd230f";
6519
+ function validate$e(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$f(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$9 = 'CategoryAndParentOutputRepresentation';
6558
+ function keyBuilder$d(luvio, config) {
6559
+ return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
6560
6560
  }
6561
- function keyBuilderFromType$2(luvio, object) {
6561
+ function keyBuilderFromType$5(luvio, object) {
6562
6562
  const keyParams = {
6563
6563
  id: object.catalogId
6564
6564
  };
6565
- return keyBuilder$8(luvio, keyParams);
6565
+ return keyBuilder$d(luvio, keyParams);
6566
6566
  }
6567
- function normalize$5(input, existing, path, luvio, store, timestamp) {
6567
+ function normalize$9(input, existing, path, luvio, store, timestamp) {
6568
6568
  return input;
6569
6569
  }
6570
- const select$b = function CategoryAndParentOutputRepresentationSelect() {
6570
+ const select$l = function CategoryAndParentOutputRepresentationSelect() {
6571
6571
  return {
6572
6572
  kind: 'Fragment',
6573
- version: VERSION$5,
6573
+ version: VERSION$b,
6574
6574
  private: [],
6575
6575
  opaque: true
6576
6576
  };
6577
6577
  };
6578
- function equals$5(existing, incoming) {
6578
+ function equals$b(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$9 = 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$e(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$5(luvio, input);
6592
+ const ttlToUse = TTL$8;
6593
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "ecm", VERSION$b, RepresentationType$9, equals$b);
6594
6594
  return createLink(key);
6595
6595
  };
6596
- function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
6596
+ function getTypeCacheKeys$9(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$5(luvio, input);
6599
6599
  rootKeySet.set(rootKey, {
6600
6600
  namespace: keyPrefix,
6601
- representationName: RepresentationType$5,
6601
+ representationName: RepresentationType$9,
6602
6602
  mergeable: false
6603
6603
  });
6604
6604
  }
6605
6605
 
6606
- function select$a(luvio, params) {
6607
- return select$b();
6606
+ function select$k(luvio, params) {
6607
+ return select$l();
6608
6608
  }
6609
- function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
6610
- getTypeCacheKeys$5(storeKeyMap, luvio, response);
6609
+ function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
6610
+ getTypeCacheKeys$9(storeKeyMap, luvio, response);
6611
6611
  }
6612
- function ingestSuccess$5(luvio, resourceParams, response) {
6612
+ function ingestSuccess$9(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$5(luvio, body);
6615
+ luvio.storeIngest(key, ingest$9, body);
6616
6616
  const snapshot = luvio.storeLookup({
6617
6617
  recordId: key,
6618
- node: select$a(),
6618
+ node: select$k(),
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$9(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$9 = '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$9, updateEpcCategories_ConfigPropertyMetadata);
6649
+ const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(updateEpcCategories_ConfigPropertyMetadata);
6650
+ function typeCheckConfig$9(untrustedConfig) {
6651
6651
  const config = {};
6652
- typeCheckConfig$9(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
6652
+ typeCheckConfig$d(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$g(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$9(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$9(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$9(luvio, config, options) {
6681
+ const resourceParams = createResourceParams$9(config);
6682
+ const request = createResourceRequest$9(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$9(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$9(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$9(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$9(luvio, config);
6706
6706
  };
6707
6707
  };
6708
6708
 
6709
- function validate$8(obj, path = 'FilterInputRepresentation') {
6709
+ function validate$d(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$c(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$7 = 6000;
6757
+ const VERSION$a = "7860ae260a600243129acb4ea01e75be";
6758
+ function validate$b(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$c(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$8 = 'ServiceAutomationDepOutputRepresentation';
6787
+ function normalize$8(input, existing, path, luvio, store, timestamp) {
6788
6788
  return input;
6789
6789
  }
6790
- const select$9 = function ServiceAutomationDepOutputRepresentationSelect() {
6790
+ const select$j = function ServiceAutomationDepOutputRepresentationSelect() {
6791
6791
  return {
6792
6792
  kind: 'Fragment',
6793
- version: VERSION$4,
6793
+ version: VERSION$a,
6794
6794
  private: [],
6795
6795
  opaque: true
6796
6796
  };
6797
6797
  };
6798
- function equals$4(existing, incoming) {
6798
+ function equals$a(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$8 = 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$b(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$7;
6813
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "ecm", VERSION$a, RepresentationType$8, equals$a);
6814
6814
  return createLink(key);
6815
6815
  };
6816
- function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
6816
+ function getTypeCacheKeys$8(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$8,
6822
6822
  mergeable: false
6823
6823
  });
6824
6824
  }
6825
6825
 
6826
- function select$8(luvio, params) {
6827
- return select$9();
6826
+ function select$i(luvio, params) {
6827
+ return select$j();
6828
6828
  }
6829
- function keyBuilder$7(luvio, params) {
6829
+ function keyBuilder$c(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$8(storeKeyMap, luvio, resourceParams, response) {
6833
+ getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
6834
6834
  }
6835
- function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
6835
+ function ingestSuccess$8(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$c(luvio, resourceParams);
6838
+ luvio.storeIngest(key, ingest$8, body);
6839
6839
  const snapshot = luvio.storeLookup({
6840
6840
  recordId: key,
6841
- node: select$8(),
6841
+ node: select$i(),
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$c(luvio, params);
6854
6854
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
6855
6855
  const storeMetadataParams = {
6856
- ttl: TTL$3,
6856
+ ttl: TTL$7,
6857
6857
  namespace: keyPrefix,
6858
- version: VERSION$4,
6859
- representationName: RepresentationType$4
6858
+ version: VERSION$a,
6859
+ representationName: RepresentationType$8
6860
6860
  };
6861
6861
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
6862
6862
  return errorSnapshot;
6863
6863
  }
6864
- function createResourceRequest$4(config) {
6864
+ function createResourceRequest$8(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$8 = '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$8, getAllServiceAutomationDep_ConfigPropertyMetadata);
6886
+ const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getAllServiceAutomationDep_ConfigPropertyMetadata);
6887
+ function keyBuilder$b(luvio, config) {
6888
+ const resourceParams = createResourceParams$8(config);
6889
+ return keyBuilder$c(luvio, resourceParams);
6890
6890
  }
6891
- function typeCheckConfig$4(untrustedConfig) {
6891
+ function typeCheckConfig$8(untrustedConfig) {
6892
6892
  const config = {};
6893
- typeCheckConfig$9(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
6893
+ typeCheckConfig$d(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$d(untrustedConfig_filters_item);
6900
6900
  if (referenceFilterInputRepresentationValidationError === null) {
6901
6901
  untrustedConfig_filters_array.push(untrustedConfig_filters_item);
6902
6902
  }
@@ -6912,869 +6912,1388 @@ function typeCheckConfig$4(untrustedConfig) {
6912
6912
  }
6913
6913
  return config;
6914
6914
  }
6915
- function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
6915
+ function validateAdapterConfig$8(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$8(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$8(config);
6930
+ return select$i();
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$8(luvio, resourceParams, response, {
6934
6934
  config,
6935
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6935
+ resolve: () => buildNetworkSnapshot$8(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$8(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$8(luvio, config, options) {
6947
+ const resourceParams = createResourceParams$8(config);
6948
+ const request = createResourceRequest$8(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$8(cache, luvio, resourceParams, response.body);
6954
6954
  return cache;
6955
6955
  });
6956
6956
  }, (response) => {
6957
- return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
6957
+ return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
6958
6958
  });
6959
6959
  }
6960
- function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
6961
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
6960
+ function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
6961
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, 'get', false);
6962
6962
  }
6963
- function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
6963
+ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
6964
6964
  const { luvio, config } = context;
6965
6965
  const selector = {
6966
- recordId: keyBuilder$6(luvio, config),
6967
- node: adapterFragment$2(luvio, config),
6966
+ recordId: keyBuilder$b(luvio, config),
6967
+ node: adapterFragment$3(luvio, config),
6968
6968
  variables: {},
6969
6969
  };
6970
6970
  const cacheSnapshot = storeLookup(selector, {
6971
6971
  config,
6972
- resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
6972
+ resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
6973
6973
  });
6974
6974
  return cacheSnapshot;
6975
6975
  }
6976
6976
  const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
6977
- const config = validateAdapterConfig$4(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
6977
+ const config = validateAdapterConfig$8(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
6978
6978
  // Invalid or incomplete config
6979
6979
  if (config === null) {
6980
6980
  return null;
6981
6981
  }
6982
6982
  return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
6983
- buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
6983
+ buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
6984
6984
  };
6985
6985
 
6986
- function validate$5(obj, path = 'AgentActionAttributeOutputRepresentation') {
6986
+ function validate$a(obj, path = 'ServiceProcessTemplateOutputRepresentation') {
6987
6987
  const v_error = (() => {
6988
6988
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6989
6989
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6990
6990
  }
6991
- if (obj.dataType !== undefined) {
6992
- const obj_dataType = obj.dataType;
6993
- const path_dataType = path + '.dataType';
6994
- let obj_dataType_union0 = null;
6995
- const obj_dataType_union0_error = (() => {
6996
- if (typeof obj_dataType !== 'string') {
6997
- return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
6998
- }
6999
- })();
7000
- if (obj_dataType_union0_error != null) {
7001
- obj_dataType_union0 = obj_dataType_union0_error.message;
7002
- }
7003
- let obj_dataType_union1 = null;
7004
- const obj_dataType_union1_error = (() => {
7005
- if (obj_dataType !== null) {
7006
- return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
7007
- }
7008
- })();
7009
- if (obj_dataType_union1_error != null) {
7010
- obj_dataType_union1 = obj_dataType_union1_error.message;
7011
- }
7012
- if (obj_dataType_union0 && obj_dataType_union1) {
7013
- let message = 'Object doesn\'t match union (at "' + path_dataType + '")';
7014
- message += '\n' + obj_dataType_union0.split('\n').map((line) => '\t' + line).join('\n');
7015
- message += '\n' + obj_dataType_union1.split('\n').map((line) => '\t' + line).join('\n');
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$6 = 6000;
7026
+ const VERSION$9 = "1cae1bb3aeefe004ae9d9248ac15a1d5";
7027
+ function validate$9(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$a(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');
7016
7044
  return new TypeError(message);
7017
7045
  }
7018
7046
  }
7019
- if (obj.description !== undefined) {
7020
- const obj_description = obj.description;
7021
- const path_description = path + '.description';
7022
- let obj_description_union0 = null;
7023
- const obj_description_union0_error = (() => {
7024
- if (typeof obj_description !== 'string') {
7025
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7026
- }
7027
- })();
7028
- if (obj_description_union0_error != null) {
7029
- obj_description_union0 = obj_description_union0_error.message;
7030
- }
7031
- let obj_description_union1 = null;
7032
- const obj_description_union1_error = (() => {
7033
- if (obj_description !== null) {
7034
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7035
- }
7036
- })();
7037
- if (obj_description_union1_error != null) {
7038
- obj_description_union1 = obj_description_union1_error.message;
7039
- }
7040
- if (obj_description_union0 && obj_description_union1) {
7041
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
7042
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
7043
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
7044
- return new TypeError(message);
7045
- }
7047
+ })();
7048
+ return v_error === undefined ? null : v_error;
7049
+ }
7050
+ const RepresentationType$7 = 'ServiceProcessTemplatesOutputRepresentation';
7051
+ function normalize$7(input, existing, path, luvio, store, timestamp) {
7052
+ return input;
7053
+ }
7054
+ const select$h = function ServiceProcessTemplatesOutputRepresentationSelect() {
7055
+ return {
7056
+ kind: 'Fragment',
7057
+ version: VERSION$9,
7058
+ private: [],
7059
+ opaque: true
7060
+ };
7061
+ };
7062
+ function equals$9(existing, incoming) {
7063
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
7064
+ return false;
7065
+ }
7066
+ return true;
7067
+ }
7068
+ const ingest$7 = function ServiceProcessTemplatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7069
+ if (process.env.NODE_ENV !== 'production') {
7070
+ const validateError = validate$9(input);
7071
+ if (validateError !== null) {
7072
+ throw validateError;
7046
7073
  }
7047
- if (obj.developerName !== undefined) {
7048
- const obj_developerName = obj.developerName;
7049
- const path_developerName = path + '.developerName';
7050
- let obj_developerName_union0 = null;
7051
- const obj_developerName_union0_error = (() => {
7052
- if (typeof obj_developerName !== 'string') {
7053
- return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7054
- }
7055
- })();
7056
- if (obj_developerName_union0_error != null) {
7057
- obj_developerName_union0 = obj_developerName_union0_error.message;
7058
- }
7059
- let obj_developerName_union1 = null;
7060
- const obj_developerName_union1_error = (() => {
7061
- if (obj_developerName !== null) {
7062
- return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7063
- }
7064
- })();
7065
- if (obj_developerName_union1_error != null) {
7066
- obj_developerName_union1 = obj_developerName_union1_error.message;
7067
- }
7068
- if (obj_developerName_union0 && obj_developerName_union1) {
7069
- let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
7070
- message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
7071
- message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
7072
- return new TypeError(message);
7073
- }
7074
+ }
7075
+ const key = path.fullPath;
7076
+ const ttlToUse = TTL$6;
7077
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "ecm", VERSION$9, RepresentationType$7, equals$9);
7078
+ return createLink(key);
7079
+ };
7080
+ function getTypeCacheKeys$7(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$7,
7086
+ mergeable: false
7087
+ });
7088
+ }
7089
+
7090
+ function select$g(luvio, params) {
7091
+ return select$h();
7092
+ }
7093
+ function keyBuilder$a(luvio, params) {
7094
+ return keyPrefix + '::ServiceProcessTemplatesOutputRepresentation:(' + ')';
7095
+ }
7096
+ function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
7097
+ getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$a());
7098
+ }
7099
+ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
7100
+ const { body } = response;
7101
+ const key = keyBuilder$a();
7102
+ luvio.storeIngest(key, ingest$7, body);
7103
+ const snapshot = luvio.storeLookup({
7104
+ recordId: key,
7105
+ node: select$g(),
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$a();
7118
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7119
+ const storeMetadataParams = {
7120
+ ttl: TTL$6,
7121
+ namespace: keyPrefix,
7122
+ version: VERSION$9,
7123
+ representationName: RepresentationType$7
7124
+ };
7125
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7126
+ return errorSnapshot;
7127
+ }
7128
+ function createResourceRequest$7(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$7 = 'getAllServiceProcessTemplate';
7143
+ const getAllServiceProcessTemplate_ConfigPropertyMetadata = [];
7144
+ const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAllServiceProcessTemplate_ConfigPropertyMetadata);
7145
+ const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getAllServiceProcessTemplate_ConfigPropertyMetadata);
7146
+ function keyBuilder$9(luvio, config) {
7147
+ createResourceParams$7(config);
7148
+ return keyBuilder$a();
7149
+ }
7150
+ function typeCheckConfig$7(untrustedConfig) {
7151
+ const config = {};
7152
+ return config;
7153
+ }
7154
+ function validateAdapterConfig$7(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$7();
7162
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
7163
+ return null;
7164
+ }
7165
+ return config;
7166
+ }
7167
+ function adapterFragment$2(luvio, config) {
7168
+ createResourceParams$7(config);
7169
+ return select$g();
7170
+ }
7171
+ function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
7172
+ const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
7173
+ config,
7174
+ resolve: () => buildNetworkSnapshot$7(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$7(luvio, config, snapshotRefreshOptions)
7182
+ });
7183
+ return luvio.storeBroadcast().then(() => snapshot);
7184
+ }
7185
+ function buildNetworkSnapshot$7(luvio, config, options) {
7186
+ const resourceParams = createResourceParams$7(config);
7187
+ const request = createResourceRequest$7();
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$7(cache, luvio, resourceParams, response.body);
7193
+ return cache;
7194
+ });
7195
+ }, (response) => {
7196
+ return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
7197
+ });
7198
+ }
7199
+ function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
7200
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
7201
+ }
7202
+ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
7203
+ const { luvio, config } = context;
7204
+ const selector = {
7205
+ recordId: keyBuilder$9(luvio, config),
7206
+ node: adapterFragment$2(luvio, config),
7207
+ variables: {},
7208
+ };
7209
+ const cacheSnapshot = storeLookup(selector, {
7210
+ config,
7211
+ resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
7212
+ });
7213
+ return cacheSnapshot;
7214
+ }
7215
+ const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getAllServiceProcessTemplate(untrustedConfig, requestContext) {
7216
+ const config = validateAdapterConfig$7(untrustedConfig, getAllServiceProcessTemplate_ConfigPropertyNames);
7217
+ // Invalid or incomplete config
7218
+ if (config === null) {
7219
+ return null;
7220
+ }
7221
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
7222
+ buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
7223
+ };
7224
+
7225
+ const VERSION$8 = "5df1d4fd0e2e95371d19680f89716ea9";
7226
+ function validate$8(obj, path = 'AgentActionAttributeOutputRepresentation') {
7227
+ const v_error = (() => {
7228
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7229
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7230
+ }
7231
+ const obj_dataType = obj.dataType;
7232
+ const path_dataType = path + '.dataType';
7233
+ if (typeof obj_dataType !== 'string') {
7234
+ return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
7235
+ }
7236
+ const obj_description = obj.description;
7237
+ const path_description = path + '.description';
7238
+ if (typeof obj_description !== 'string') {
7239
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7240
+ }
7241
+ const obj_developerName = obj.developerName;
7242
+ const path_developerName = path + '.developerName';
7243
+ if (typeof obj_developerName !== 'string') {
7244
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7074
7245
  }
7075
7246
  if (obj.displayable !== undefined) {
7076
7247
  const obj_displayable = obj.displayable;
7077
7248
  const path_displayable = path + '.displayable';
7078
- let obj_displayable_union0 = null;
7079
- const obj_displayable_union0_error = (() => {
7080
- if (typeof obj_displayable !== 'boolean') {
7081
- return new TypeError('Expected "boolean" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
7082
- }
7083
- })();
7084
- if (obj_displayable_union0_error != null) {
7085
- obj_displayable_union0 = obj_displayable_union0_error.message;
7086
- }
7087
- let obj_displayable_union1 = null;
7088
- const obj_displayable_union1_error = (() => {
7089
- if (obj_displayable !== null) {
7090
- return new TypeError('Expected "null" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
7091
- }
7092
- })();
7093
- if (obj_displayable_union1_error != null) {
7094
- obj_displayable_union1 = obj_displayable_union1_error.message;
7095
- }
7096
- if (obj_displayable_union0 && obj_displayable_union1) {
7097
- let message = 'Object doesn\'t match union (at "' + path_displayable + '")';
7098
- message += '\n' + obj_displayable_union0.split('\n').map((line) => '\t' + line).join('\n');
7099
- message += '\n' + obj_displayable_union1.split('\n').map((line) => '\t' + line).join('\n');
7100
- return new TypeError(message);
7249
+ if (typeof obj_displayable !== 'boolean') {
7250
+ return new TypeError('Expected "boolean" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
7101
7251
  }
7102
7252
  }
7103
7253
  if (obj.excludedFromPlanner !== undefined) {
7104
7254
  const obj_excludedFromPlanner = obj.excludedFromPlanner;
7105
7255
  const path_excludedFromPlanner = path + '.excludedFromPlanner';
7106
- let obj_excludedFromPlanner_union0 = null;
7107
- const obj_excludedFromPlanner_union0_error = (() => {
7108
- if (typeof obj_excludedFromPlanner !== 'boolean') {
7109
- return new TypeError('Expected "boolean" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
7110
- }
7111
- })();
7112
- if (obj_excludedFromPlanner_union0_error != null) {
7113
- obj_excludedFromPlanner_union0 = obj_excludedFromPlanner_union0_error.message;
7114
- }
7115
- let obj_excludedFromPlanner_union1 = null;
7116
- const obj_excludedFromPlanner_union1_error = (() => {
7117
- if (obj_excludedFromPlanner !== null) {
7118
- return new TypeError('Expected "null" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
7119
- }
7120
- })();
7121
- if (obj_excludedFromPlanner_union1_error != null) {
7122
- obj_excludedFromPlanner_union1 = obj_excludedFromPlanner_union1_error.message;
7123
- }
7124
- if (obj_excludedFromPlanner_union0 && obj_excludedFromPlanner_union1) {
7125
- let message = 'Object doesn\'t match union (at "' + path_excludedFromPlanner + '")';
7126
- message += '\n' + obj_excludedFromPlanner_union0.split('\n').map((line) => '\t' + line).join('\n');
7127
- message += '\n' + obj_excludedFromPlanner_union1.split('\n').map((line) => '\t' + line).join('\n');
7128
- return new TypeError(message);
7256
+ if (typeof obj_excludedFromPlanner !== 'boolean') {
7257
+ return new TypeError('Expected "boolean" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
7129
7258
  }
7130
7259
  }
7131
7260
  if (obj.isPersIdentInfo !== undefined) {
7132
7261
  const obj_isPersIdentInfo = obj.isPersIdentInfo;
7133
7262
  const path_isPersIdentInfo = path + '.isPersIdentInfo';
7134
- let obj_isPersIdentInfo_union0 = null;
7135
- const obj_isPersIdentInfo_union0_error = (() => {
7136
- if (typeof obj_isPersIdentInfo !== 'boolean') {
7137
- return new TypeError('Expected "boolean" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
7138
- }
7139
- })();
7140
- if (obj_isPersIdentInfo_union0_error != null) {
7141
- obj_isPersIdentInfo_union0 = obj_isPersIdentInfo_union0_error.message;
7142
- }
7143
- let obj_isPersIdentInfo_union1 = null;
7144
- const obj_isPersIdentInfo_union1_error = (() => {
7145
- if (obj_isPersIdentInfo !== null) {
7146
- return new TypeError('Expected "null" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
7147
- }
7148
- })();
7149
- if (obj_isPersIdentInfo_union1_error != null) {
7150
- obj_isPersIdentInfo_union1 = obj_isPersIdentInfo_union1_error.message;
7151
- }
7152
- if (obj_isPersIdentInfo_union0 && obj_isPersIdentInfo_union1) {
7153
- let message = 'Object doesn\'t match union (at "' + path_isPersIdentInfo + '")';
7154
- message += '\n' + obj_isPersIdentInfo_union0.split('\n').map((line) => '\t' + line).join('\n');
7155
- message += '\n' + obj_isPersIdentInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
7156
- return new TypeError(message);
7263
+ if (typeof obj_isPersIdentInfo !== 'boolean') {
7264
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
7157
7265
  }
7158
7266
  }
7159
7267
  if (obj.itemsDataType !== undefined) {
7160
7268
  const obj_itemsDataType = obj.itemsDataType;
7161
7269
  const path_itemsDataType = path + '.itemsDataType';
7162
- let obj_itemsDataType_union0 = null;
7163
- const obj_itemsDataType_union0_error = (() => {
7164
- if (typeof obj_itemsDataType !== 'string') {
7165
- return new TypeError('Expected "string" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
7166
- }
7167
- })();
7168
- if (obj_itemsDataType_union0_error != null) {
7169
- obj_itemsDataType_union0 = obj_itemsDataType_union0_error.message;
7170
- }
7171
- let obj_itemsDataType_union1 = null;
7172
- const obj_itemsDataType_union1_error = (() => {
7173
- if (obj_itemsDataType !== null) {
7174
- return new TypeError('Expected "null" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
7175
- }
7176
- })();
7177
- if (obj_itemsDataType_union1_error != null) {
7178
- obj_itemsDataType_union1 = obj_itemsDataType_union1_error.message;
7179
- }
7180
- if (obj_itemsDataType_union0 && obj_itemsDataType_union1) {
7181
- let message = 'Object doesn\'t match union (at "' + path_itemsDataType + '")';
7182
- message += '\n' + obj_itemsDataType_union0.split('\n').map((line) => '\t' + line).join('\n');
7183
- message += '\n' + obj_itemsDataType_union1.split('\n').map((line) => '\t' + line).join('\n');
7184
- return new TypeError(message);
7270
+ if (typeof obj_itemsDataType !== 'string') {
7271
+ return new TypeError('Expected "string" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
7185
7272
  }
7186
7273
  }
7187
- if (obj.label !== undefined) {
7188
- const obj_label = obj.label;
7189
- const path_label = path + '.label';
7190
- let obj_label_union0 = null;
7191
- const obj_label_union0_error = (() => {
7192
- if (typeof obj_label !== 'string') {
7193
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7194
- }
7195
- })();
7196
- if (obj_label_union0_error != null) {
7197
- obj_label_union0 = obj_label_union0_error.message;
7198
- }
7199
- let obj_label_union1 = null;
7200
- const obj_label_union1_error = (() => {
7201
- if (obj_label !== null) {
7202
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7203
- }
7204
- })();
7205
- if (obj_label_union1_error != null) {
7206
- obj_label_union1 = obj_label_union1_error.message;
7207
- }
7208
- if (obj_label_union0 && obj_label_union1) {
7209
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
7210
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
7211
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
7212
- return new TypeError(message);
7213
- }
7274
+ const obj_label = obj.label;
7275
+ const path_label = path + '.label';
7276
+ if (typeof obj_label !== 'string') {
7277
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7214
7278
  }
7215
- if (obj.mappingType !== undefined) {
7216
- const obj_mappingType = obj.mappingType;
7217
- const path_mappingType = path + '.mappingType';
7218
- let obj_mappingType_union0 = null;
7219
- const obj_mappingType_union0_error = (() => {
7220
- if (typeof obj_mappingType !== 'string') {
7221
- return new TypeError('Expected "string" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
7222
- }
7223
- })();
7224
- if (obj_mappingType_union0_error != null) {
7225
- obj_mappingType_union0 = obj_mappingType_union0_error.message;
7226
- }
7227
- let obj_mappingType_union1 = null;
7228
- const obj_mappingType_union1_error = (() => {
7229
- if (obj_mappingType !== null) {
7230
- return new TypeError('Expected "null" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
7231
- }
7232
- })();
7233
- if (obj_mappingType_union1_error != null) {
7234
- obj_mappingType_union1 = obj_mappingType_union1_error.message;
7235
- }
7236
- if (obj_mappingType_union0 && obj_mappingType_union1) {
7237
- let message = 'Object doesn\'t match union (at "' + path_mappingType + '")';
7238
- message += '\n' + obj_mappingType_union0.split('\n').map((line) => '\t' + line).join('\n');
7239
- message += '\n' + obj_mappingType_union1.split('\n').map((line) => '\t' + line).join('\n');
7240
- return new TypeError(message);
7241
- }
7279
+ const obj_mappingType = obj.mappingType;
7280
+ const path_mappingType = path + '.mappingType';
7281
+ if (typeof obj_mappingType !== 'string') {
7282
+ return new TypeError('Expected "string" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
7242
7283
  }
7243
7284
  if (obj.maxItems !== undefined) {
7244
7285
  const obj_maxItems = obj.maxItems;
7245
7286
  const path_maxItems = path + '.maxItems';
7246
- let obj_maxItems_union0 = null;
7247
- const obj_maxItems_union0_error = (() => {
7248
- if (typeof obj_maxItems !== 'number' || (typeof obj_maxItems === 'number' && Math.floor(obj_maxItems) !== obj_maxItems)) {
7249
- return new TypeError('Expected "integer" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
7250
- }
7251
- })();
7252
- if (obj_maxItems_union0_error != null) {
7253
- obj_maxItems_union0 = obj_maxItems_union0_error.message;
7254
- }
7255
- let obj_maxItems_union1 = null;
7256
- const obj_maxItems_union1_error = (() => {
7257
- if (obj_maxItems !== null) {
7258
- return new TypeError('Expected "null" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
7259
- }
7260
- })();
7261
- if (obj_maxItems_union1_error != null) {
7262
- obj_maxItems_union1 = obj_maxItems_union1_error.message;
7263
- }
7264
- if (obj_maxItems_union0 && obj_maxItems_union1) {
7265
- let message = 'Object doesn\'t match union (at "' + path_maxItems + '")';
7266
- message += '\n' + obj_maxItems_union0.split('\n').map((line) => '\t' + line).join('\n');
7267
- message += '\n' + obj_maxItems_union1.split('\n').map((line) => '\t' + line).join('\n');
7268
- return new TypeError(message);
7287
+ if (typeof obj_maxItems !== 'number' || (typeof obj_maxItems === 'number' && Math.floor(obj_maxItems) !== obj_maxItems)) {
7288
+ return new TypeError('Expected "integer" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
7269
7289
  }
7270
7290
  }
7271
7291
  if (obj.required !== undefined) {
7272
7292
  const obj_required = obj.required;
7273
7293
  const path_required = path + '.required';
7274
- let obj_required_union0 = null;
7275
- const obj_required_union0_error = (() => {
7276
- if (typeof obj_required !== 'boolean') {
7277
- return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
7278
- }
7279
- })();
7280
- if (obj_required_union0_error != null) {
7281
- obj_required_union0 = obj_required_union0_error.message;
7282
- }
7283
- let obj_required_union1 = null;
7284
- const obj_required_union1_error = (() => {
7285
- if (obj_required !== null) {
7286
- return new TypeError('Expected "null" but received "' + typeof obj_required + '" (at "' + path_required + '")');
7287
- }
7288
- })();
7289
- if (obj_required_union1_error != null) {
7290
- obj_required_union1 = obj_required_union1_error.message;
7291
- }
7292
- if (obj_required_union0 && obj_required_union1) {
7293
- let message = 'Object doesn\'t match union (at "' + path_required + '")';
7294
- message += '\n' + obj_required_union0.split('\n').map((line) => '\t' + line).join('\n');
7295
- message += '\n' + obj_required_union1.split('\n').map((line) => '\t' + line).join('\n');
7296
- return new TypeError(message);
7294
+ if (typeof obj_required !== 'boolean') {
7295
+ return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
7297
7296
  }
7298
7297
  }
7299
- if (obj.title !== undefined) {
7300
- const obj_title = obj.title;
7301
- const path_title = path + '.title';
7302
- let obj_title_union0 = null;
7303
- const obj_title_union0_error = (() => {
7304
- if (typeof obj_title !== 'string') {
7305
- return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
7306
- }
7307
- })();
7308
- if (obj_title_union0_error != null) {
7309
- obj_title_union0 = obj_title_union0_error.message;
7310
- }
7311
- let obj_title_union1 = null;
7312
- const obj_title_union1_error = (() => {
7313
- if (obj_title !== null) {
7314
- return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
7315
- }
7316
- })();
7317
- if (obj_title_union1_error != null) {
7318
- obj_title_union1 = obj_title_union1_error.message;
7319
- }
7320
- if (obj_title_union0 && obj_title_union1) {
7321
- let message = 'Object doesn\'t match union (at "' + path_title + '")';
7322
- message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
7323
- message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
7324
- return new TypeError(message);
7325
- }
7326
- }
7327
- if (obj.userInput !== undefined) {
7328
- const obj_userInput = obj.userInput;
7329
- const path_userInput = path + '.userInput';
7330
- let obj_userInput_union0 = null;
7331
- const obj_userInput_union0_error = (() => {
7332
- if (typeof obj_userInput !== 'boolean') {
7333
- return new TypeError('Expected "boolean" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
7334
- }
7335
- })();
7336
- if (obj_userInput_union0_error != null) {
7337
- obj_userInput_union0 = obj_userInput_union0_error.message;
7338
- }
7339
- let obj_userInput_union1 = null;
7340
- const obj_userInput_union1_error = (() => {
7341
- if (obj_userInput !== null) {
7342
- return new TypeError('Expected "null" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
7343
- }
7344
- })();
7345
- if (obj_userInput_union1_error != null) {
7346
- obj_userInput_union1 = obj_userInput_union1_error.message;
7347
- }
7348
- if (obj_userInput_union0 && obj_userInput_union1) {
7349
- let message = 'Object doesn\'t match union (at "' + path_userInput + '")';
7350
- message += '\n' + obj_userInput_union0.split('\n').map((line) => '\t' + line).join('\n');
7351
- message += '\n' + obj_userInput_union1.split('\n').map((line) => '\t' + line).join('\n');
7352
- return new TypeError(message);
7298
+ const obj_title = obj.title;
7299
+ const path_title = path + '.title';
7300
+ if (typeof obj_title !== 'string') {
7301
+ return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
7302
+ }
7303
+ if (obj.userInput !== undefined) {
7304
+ const obj_userInput = obj.userInput;
7305
+ const path_userInput = path + '.userInput';
7306
+ if (typeof obj_userInput !== 'boolean') {
7307
+ return new TypeError('Expected "boolean" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
7353
7308
  }
7354
7309
  }
7355
7310
  })();
7356
7311
  return v_error === undefined ? null : v_error;
7357
7312
  }
7313
+ const select$f = function AgentActionAttributeOutputRepresentationSelect() {
7314
+ return {
7315
+ kind: 'Fragment',
7316
+ version: VERSION$8,
7317
+ private: [],
7318
+ selections: [
7319
+ {
7320
+ name: 'dataType',
7321
+ kind: 'Scalar'
7322
+ },
7323
+ {
7324
+ name: 'description',
7325
+ kind: 'Scalar'
7326
+ },
7327
+ {
7328
+ name: 'developerName',
7329
+ kind: 'Scalar'
7330
+ },
7331
+ {
7332
+ name: 'displayable',
7333
+ kind: 'Scalar',
7334
+ required: false
7335
+ },
7336
+ {
7337
+ name: 'excludedFromPlanner',
7338
+ kind: 'Scalar',
7339
+ required: false
7340
+ },
7341
+ {
7342
+ name: 'isPersIdentInfo',
7343
+ kind: 'Scalar',
7344
+ required: false
7345
+ },
7346
+ {
7347
+ name: 'itemsDataType',
7348
+ kind: 'Scalar',
7349
+ required: false
7350
+ },
7351
+ {
7352
+ name: 'label',
7353
+ kind: 'Scalar'
7354
+ },
7355
+ {
7356
+ name: 'mappingType',
7357
+ kind: 'Scalar'
7358
+ },
7359
+ {
7360
+ name: 'maxItems',
7361
+ kind: 'Scalar',
7362
+ required: false
7363
+ },
7364
+ {
7365
+ name: 'required',
7366
+ kind: 'Scalar',
7367
+ required: false
7368
+ },
7369
+ {
7370
+ name: 'title',
7371
+ kind: 'Scalar'
7372
+ },
7373
+ {
7374
+ name: 'userInput',
7375
+ kind: 'Scalar',
7376
+ required: false
7377
+ }
7378
+ ]
7379
+ };
7380
+ };
7381
+ function equals$8(existing, incoming) {
7382
+ const existing_displayable = existing.displayable;
7383
+ const incoming_displayable = incoming.displayable;
7384
+ // if at least one of these optionals is defined
7385
+ if (existing_displayable !== undefined || incoming_displayable !== undefined) {
7386
+ // if one of these is not defined we know the other is defined and therefore
7387
+ // not equal
7388
+ if (existing_displayable === undefined || incoming_displayable === undefined) {
7389
+ return false;
7390
+ }
7391
+ if (!(existing_displayable === incoming_displayable)) {
7392
+ return false;
7393
+ }
7394
+ }
7395
+ const existing_excludedFromPlanner = existing.excludedFromPlanner;
7396
+ const incoming_excludedFromPlanner = incoming.excludedFromPlanner;
7397
+ // if at least one of these optionals is defined
7398
+ if (existing_excludedFromPlanner !== undefined || incoming_excludedFromPlanner !== undefined) {
7399
+ // if one of these is not defined we know the other is defined and therefore
7400
+ // not equal
7401
+ if (existing_excludedFromPlanner === undefined || incoming_excludedFromPlanner === undefined) {
7402
+ return false;
7403
+ }
7404
+ if (!(existing_excludedFromPlanner === incoming_excludedFromPlanner)) {
7405
+ return false;
7406
+ }
7407
+ }
7408
+ const existing_isPersIdentInfo = existing.isPersIdentInfo;
7409
+ const incoming_isPersIdentInfo = incoming.isPersIdentInfo;
7410
+ // if at least one of these optionals is defined
7411
+ if (existing_isPersIdentInfo !== undefined || incoming_isPersIdentInfo !== undefined) {
7412
+ // if one of these is not defined we know the other is defined and therefore
7413
+ // not equal
7414
+ if (existing_isPersIdentInfo === undefined || incoming_isPersIdentInfo === undefined) {
7415
+ return false;
7416
+ }
7417
+ if (!(existing_isPersIdentInfo === incoming_isPersIdentInfo)) {
7418
+ return false;
7419
+ }
7420
+ }
7421
+ const existing_required = existing.required;
7422
+ const incoming_required = incoming.required;
7423
+ // if at least one of these optionals is defined
7424
+ if (existing_required !== undefined || incoming_required !== undefined) {
7425
+ // if one of these is not defined we know the other is defined and therefore
7426
+ // not equal
7427
+ if (existing_required === undefined || incoming_required === undefined) {
7428
+ return false;
7429
+ }
7430
+ if (!(existing_required === incoming_required)) {
7431
+ return false;
7432
+ }
7433
+ }
7434
+ const existing_userInput = existing.userInput;
7435
+ const incoming_userInput = incoming.userInput;
7436
+ // if at least one of these optionals is defined
7437
+ if (existing_userInput !== undefined || incoming_userInput !== undefined) {
7438
+ // if one of these is not defined we know the other is defined and therefore
7439
+ // not equal
7440
+ if (existing_userInput === undefined || incoming_userInput === undefined) {
7441
+ return false;
7442
+ }
7443
+ if (!(existing_userInput === incoming_userInput)) {
7444
+ return false;
7445
+ }
7446
+ }
7447
+ const existing_maxItems = existing.maxItems;
7448
+ const incoming_maxItems = incoming.maxItems;
7449
+ // if at least one of these optionals is defined
7450
+ if (existing_maxItems !== undefined || incoming_maxItems !== undefined) {
7451
+ // if one of these is not defined we know the other is defined and therefore
7452
+ // not equal
7453
+ if (existing_maxItems === undefined || incoming_maxItems === undefined) {
7454
+ return false;
7455
+ }
7456
+ if (!(existing_maxItems === incoming_maxItems)) {
7457
+ return false;
7458
+ }
7459
+ }
7460
+ const existing_dataType = existing.dataType;
7461
+ const incoming_dataType = incoming.dataType;
7462
+ if (!(existing_dataType === incoming_dataType)) {
7463
+ return false;
7464
+ }
7465
+ const existing_description = existing.description;
7466
+ const incoming_description = incoming.description;
7467
+ if (!(existing_description === incoming_description)) {
7468
+ return false;
7469
+ }
7470
+ const existing_developerName = existing.developerName;
7471
+ const incoming_developerName = incoming.developerName;
7472
+ if (!(existing_developerName === incoming_developerName)) {
7473
+ return false;
7474
+ }
7475
+ const existing_itemsDataType = existing.itemsDataType;
7476
+ const incoming_itemsDataType = incoming.itemsDataType;
7477
+ // if at least one of these optionals is defined
7478
+ if (existing_itemsDataType !== undefined || incoming_itemsDataType !== undefined) {
7479
+ // if one of these is not defined we know the other is defined and therefore
7480
+ // not equal
7481
+ if (existing_itemsDataType === undefined || incoming_itemsDataType === undefined) {
7482
+ return false;
7483
+ }
7484
+ if (!(existing_itemsDataType === incoming_itemsDataType)) {
7485
+ return false;
7486
+ }
7487
+ }
7488
+ const existing_label = existing.label;
7489
+ const incoming_label = incoming.label;
7490
+ if (!(existing_label === incoming_label)) {
7491
+ return false;
7492
+ }
7493
+ const existing_mappingType = existing.mappingType;
7494
+ const incoming_mappingType = incoming.mappingType;
7495
+ if (!(existing_mappingType === incoming_mappingType)) {
7496
+ return false;
7497
+ }
7498
+ const existing_title = existing.title;
7499
+ const incoming_title = incoming.title;
7500
+ if (!(existing_title === incoming_title)) {
7501
+ return false;
7502
+ }
7503
+ return true;
7504
+ }
7358
7505
 
7359
- function validate$4(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7506
+ const TTL$5 = 500;
7507
+ const VERSION$7 = "0a5a9a38d481c4e8bad16be490eacce9";
7508
+ function validate$7(obj, path = 'EinsteinAgentActionOutputRepresentation') {
7360
7509
  const v_error = (() => {
7361
7510
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7362
7511
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7363
7512
  }
7364
- if (obj.attributes !== undefined) {
7365
- const obj_attributes = obj.attributes;
7366
- const path_attributes = path + '.attributes';
7367
- if (!ArrayIsArray(obj_attributes)) {
7368
- return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
7369
- }
7370
- for (let i = 0; i < obj_attributes.length; i++) {
7371
- const obj_attributes_item = obj_attributes[i];
7372
- const path_attributes_item = path_attributes + '[' + i + ']';
7373
- const referencepath_attributes_itemValidationError = validate$5(obj_attributes_item, path_attributes_item);
7374
- if (referencepath_attributes_itemValidationError !== null) {
7375
- let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
7376
- message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7377
- return new TypeError(message);
7378
- }
7379
- }
7513
+ const obj_attributes = obj.attributes;
7514
+ const path_attributes = path + '.attributes';
7515
+ if (!ArrayIsArray(obj_attributes)) {
7516
+ return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
7380
7517
  }
7381
- if (obj.description !== undefined) {
7382
- const obj_description = obj.description;
7383
- const path_description = path + '.description';
7384
- let obj_description_union0 = null;
7385
- const obj_description_union0_error = (() => {
7386
- if (typeof obj_description !== 'string') {
7387
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7388
- }
7389
- })();
7390
- if (obj_description_union0_error != null) {
7391
- obj_description_union0 = obj_description_union0_error.message;
7392
- }
7393
- let obj_description_union1 = null;
7394
- const obj_description_union1_error = (() => {
7395
- if (obj_description !== null) {
7396
- return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7397
- }
7398
- })();
7399
- if (obj_description_union1_error != null) {
7400
- obj_description_union1 = obj_description_union1_error.message;
7401
- }
7402
- if (obj_description_union0 && obj_description_union1) {
7403
- let message = 'Object doesn\'t match union (at "' + path_description + '")';
7404
- message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
7405
- message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
7518
+ for (let i = 0; i < obj_attributes.length; i++) {
7519
+ const obj_attributes_item = obj_attributes[i];
7520
+ const path_attributes_item = path_attributes + '[' + i + ']';
7521
+ const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
7522
+ if (referencepath_attributes_itemValidationError !== null) {
7523
+ let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
7524
+ message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7406
7525
  return new TypeError(message);
7407
7526
  }
7408
7527
  }
7409
- if (obj.developerName !== undefined) {
7410
- const obj_developerName = obj.developerName;
7411
- const path_developerName = path + '.developerName';
7412
- let obj_developerName_union0 = null;
7413
- const obj_developerName_union0_error = (() => {
7414
- if (typeof obj_developerName !== 'string') {
7415
- return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7416
- }
7417
- })();
7418
- if (obj_developerName_union0_error != null) {
7419
- obj_developerName_union0 = obj_developerName_union0_error.message;
7420
- }
7421
- let obj_developerName_union1 = null;
7422
- const obj_developerName_union1_error = (() => {
7423
- if (obj_developerName !== null) {
7424
- return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7425
- }
7426
- })();
7427
- if (obj_developerName_union1_error != null) {
7428
- obj_developerName_union1 = obj_developerName_union1_error.message;
7429
- }
7430
- if (obj_developerName_union0 && obj_developerName_union1) {
7431
- let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
7432
- message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
7433
- message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
7434
- return new TypeError(message);
7435
- }
7528
+ const obj_description = obj.description;
7529
+ const path_description = path + '.description';
7530
+ if (typeof obj_description !== 'string') {
7531
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
7436
7532
  }
7437
- if (obj.id !== undefined) {
7438
- const obj_id = obj.id;
7439
- const path_id = path + '.id';
7440
- let obj_id_union0 = null;
7441
- const obj_id_union0_error = (() => {
7442
- if (typeof obj_id !== 'string') {
7443
- return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7444
- }
7445
- })();
7446
- if (obj_id_union0_error != null) {
7447
- obj_id_union0 = obj_id_union0_error.message;
7448
- }
7449
- let obj_id_union1 = null;
7450
- const obj_id_union1_error = (() => {
7451
- if (obj_id !== null) {
7452
- return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7453
- }
7454
- })();
7455
- if (obj_id_union1_error != null) {
7456
- obj_id_union1 = obj_id_union1_error.message;
7457
- }
7458
- if (obj_id_union0 && obj_id_union1) {
7459
- let message = 'Object doesn\'t match union (at "' + path_id + '")';
7460
- message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
7461
- message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
7462
- return new TypeError(message);
7463
- }
7533
+ const obj_developerName = obj.developerName;
7534
+ const path_developerName = path + '.developerName';
7535
+ if (typeof obj_developerName !== 'string') {
7536
+ return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
7537
+ }
7538
+ const obj_id = obj.id;
7539
+ const path_id = path + '.id';
7540
+ if (typeof obj_id !== 'string') {
7541
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
7464
7542
  }
7465
7543
  if (obj.includeInProgressIndicator !== undefined) {
7466
7544
  const obj_includeInProgressIndicator = obj.includeInProgressIndicator;
7467
7545
  const path_includeInProgressIndicator = path + '.includeInProgressIndicator';
7468
- let obj_includeInProgressIndicator_union0 = null;
7469
- const obj_includeInProgressIndicator_union0_error = (() => {
7470
- if (typeof obj_includeInProgressIndicator !== 'boolean') {
7471
- return new TypeError('Expected "boolean" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
7472
- }
7473
- })();
7474
- if (obj_includeInProgressIndicator_union0_error != null) {
7475
- obj_includeInProgressIndicator_union0 = obj_includeInProgressIndicator_union0_error.message;
7476
- }
7477
- let obj_includeInProgressIndicator_union1 = null;
7478
- const obj_includeInProgressIndicator_union1_error = (() => {
7479
- if (obj_includeInProgressIndicator !== null) {
7480
- return new TypeError('Expected "null" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
7481
- }
7482
- })();
7483
- if (obj_includeInProgressIndicator_union1_error != null) {
7484
- obj_includeInProgressIndicator_union1 = obj_includeInProgressIndicator_union1_error.message;
7485
- }
7486
- if (obj_includeInProgressIndicator_union0 && obj_includeInProgressIndicator_union1) {
7487
- let message = 'Object doesn\'t match union (at "' + path_includeInProgressIndicator + '")';
7488
- message += '\n' + obj_includeInProgressIndicator_union0.split('\n').map((line) => '\t' + line).join('\n');
7489
- message += '\n' + obj_includeInProgressIndicator_union1.split('\n').map((line) => '\t' + line).join('\n');
7490
- return new TypeError(message);
7546
+ if (typeof obj_includeInProgressIndicator !== 'boolean') {
7547
+ return new TypeError('Expected "boolean" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
7491
7548
  }
7492
7549
  }
7493
7550
  if (obj.invocationTarget !== undefined) {
7494
7551
  const obj_invocationTarget = obj.invocationTarget;
7495
7552
  const path_invocationTarget = path + '.invocationTarget';
7496
- let obj_invocationTarget_union0 = null;
7497
- const obj_invocationTarget_union0_error = (() => {
7498
- if (typeof obj_invocationTarget !== 'string') {
7499
- return new TypeError('Expected "string" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
7500
- }
7501
- })();
7502
- if (obj_invocationTarget_union0_error != null) {
7503
- obj_invocationTarget_union0 = obj_invocationTarget_union0_error.message;
7504
- }
7505
- let obj_invocationTarget_union1 = null;
7506
- const obj_invocationTarget_union1_error = (() => {
7507
- if (obj_invocationTarget !== null) {
7508
- return new TypeError('Expected "null" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
7509
- }
7510
- })();
7511
- if (obj_invocationTarget_union1_error != null) {
7512
- obj_invocationTarget_union1 = obj_invocationTarget_union1_error.message;
7513
- }
7514
- if (obj_invocationTarget_union0 && obj_invocationTarget_union1) {
7515
- let message = 'Object doesn\'t match union (at "' + path_invocationTarget + '")';
7516
- message += '\n' + obj_invocationTarget_union0.split('\n').map((line) => '\t' + line).join('\n');
7517
- message += '\n' + obj_invocationTarget_union1.split('\n').map((line) => '\t' + line).join('\n');
7518
- return new TypeError(message);
7553
+ if (typeof obj_invocationTarget !== 'string') {
7554
+ return new TypeError('Expected "string" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
7519
7555
  }
7520
7556
  }
7521
7557
  if (obj.invocationTargetId !== undefined) {
7522
7558
  const obj_invocationTargetId = obj.invocationTargetId;
7523
7559
  const path_invocationTargetId = path + '.invocationTargetId';
7524
- let obj_invocationTargetId_union0 = null;
7525
- const obj_invocationTargetId_union0_error = (() => {
7526
- if (typeof obj_invocationTargetId !== 'string') {
7527
- return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
7528
- }
7529
- })();
7530
- if (obj_invocationTargetId_union0_error != null) {
7531
- obj_invocationTargetId_union0 = obj_invocationTargetId_union0_error.message;
7532
- }
7533
- let obj_invocationTargetId_union1 = null;
7534
- const obj_invocationTargetId_union1_error = (() => {
7535
- if (obj_invocationTargetId !== null) {
7536
- return new TypeError('Expected "null" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
7537
- }
7538
- })();
7539
- if (obj_invocationTargetId_union1_error != null) {
7540
- obj_invocationTargetId_union1 = obj_invocationTargetId_union1_error.message;
7560
+ if (typeof obj_invocationTargetId !== 'string') {
7561
+ return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
7541
7562
  }
7542
- if (obj_invocationTargetId_union0 && obj_invocationTargetId_union1) {
7543
- let message = 'Object doesn\'t match union (at "' + path_invocationTargetId + '")';
7544
- message += '\n' + obj_invocationTargetId_union0.split('\n').map((line) => '\t' + line).join('\n');
7545
- message += '\n' + obj_invocationTargetId_union1.split('\n').map((line) => '\t' + line).join('\n');
7546
- return new TypeError(message);
7563
+ }
7564
+ const obj_invocationTargetType = obj.invocationTargetType;
7565
+ const path_invocationTargetType = path + '.invocationTargetType';
7566
+ if (typeof obj_invocationTargetType !== 'string') {
7567
+ return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
7568
+ }
7569
+ const obj_label = obj.label;
7570
+ const path_label = path + '.label';
7571
+ if (typeof obj_label !== 'string') {
7572
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7573
+ }
7574
+ if (obj.namespace !== undefined) {
7575
+ const obj_namespace = obj.namespace;
7576
+ const path_namespace = path + '.namespace';
7577
+ if (typeof obj_namespace !== 'string') {
7578
+ return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
7547
7579
  }
7548
7580
  }
7549
- if (obj.invocationTargetType !== undefined) {
7550
- const obj_invocationTargetType = obj.invocationTargetType;
7551
- const path_invocationTargetType = path + '.invocationTargetType';
7552
- let obj_invocationTargetType_union0 = null;
7553
- const obj_invocationTargetType_union0_error = (() => {
7554
- if (typeof obj_invocationTargetType !== 'string') {
7555
- return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
7556
- }
7557
- })();
7558
- if (obj_invocationTargetType_union0_error != null) {
7559
- obj_invocationTargetType_union0 = obj_invocationTargetType_union0_error.message;
7560
- }
7561
- let obj_invocationTargetType_union1 = null;
7562
- const obj_invocationTargetType_union1_error = (() => {
7563
- if (obj_invocationTargetType !== null) {
7564
- return new TypeError('Expected "null" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
7565
- }
7566
- })();
7567
- if (obj_invocationTargetType_union1_error != null) {
7568
- obj_invocationTargetType_union1 = obj_invocationTargetType_union1_error.message;
7569
- }
7570
- if (obj_invocationTargetType_union0 && obj_invocationTargetType_union1) {
7571
- let message = 'Object doesn\'t match union (at "' + path_invocationTargetType + '")';
7572
- message += '\n' + obj_invocationTargetType_union0.split('\n').map((line) => '\t' + line).join('\n');
7573
- message += '\n' + obj_invocationTargetType_union1.split('\n').map((line) => '\t' + line).join('\n');
7574
- return new TypeError(message);
7581
+ if (obj.progressIndicatorMessage !== undefined) {
7582
+ const obj_progressIndicatorMessage = obj.progressIndicatorMessage;
7583
+ const path_progressIndicatorMessage = path + '.progressIndicatorMessage';
7584
+ if (typeof obj_progressIndicatorMessage !== 'string') {
7585
+ return new TypeError('Expected "string" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
7575
7586
  }
7576
7587
  }
7577
- if (obj.label !== undefined) {
7578
- const obj_label = obj.label;
7579
- const path_label = path + '.label';
7580
- let obj_label_union0 = null;
7581
- const obj_label_union0_error = (() => {
7582
- if (typeof obj_label !== 'string') {
7583
- return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7584
- }
7585
- })();
7586
- if (obj_label_union0_error != null) {
7587
- obj_label_union0 = obj_label_union0_error.message;
7588
- }
7589
- let obj_label_union1 = null;
7590
- const obj_label_union1_error = (() => {
7591
- if (obj_label !== null) {
7592
- return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
7593
- }
7594
- })();
7595
- if (obj_label_union1_error != null) {
7596
- obj_label_union1 = obj_label_union1_error.message;
7597
- }
7598
- if (obj_label_union0 && obj_label_union1) {
7599
- let message = 'Object doesn\'t match union (at "' + path_label + '")';
7600
- message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
7601
- message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
7602
- return new TypeError(message);
7588
+ if (obj.userConfirmationRequired !== undefined) {
7589
+ const obj_userConfirmationRequired = obj.userConfirmationRequired;
7590
+ const path_userConfirmationRequired = path + '.userConfirmationRequired';
7591
+ if (typeof obj_userConfirmationRequired !== 'boolean') {
7592
+ return new TypeError('Expected "boolean" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
7603
7593
  }
7604
7594
  }
7605
- if (obj.namespace !== undefined) {
7606
- const obj_namespace = obj.namespace;
7607
- const path_namespace = path + '.namespace';
7608
- let obj_namespace_union0 = null;
7609
- const obj_namespace_union0_error = (() => {
7610
- if (typeof obj_namespace !== 'string') {
7611
- return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
7612
- }
7613
- })();
7614
- if (obj_namespace_union0_error != null) {
7615
- obj_namespace_union0 = obj_namespace_union0_error.message;
7616
- }
7617
- let obj_namespace_union1 = null;
7618
- const obj_namespace_union1_error = (() => {
7619
- if (obj_namespace !== null) {
7620
- return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
7621
- }
7622
- })();
7623
- if (obj_namespace_union1_error != null) {
7624
- obj_namespace_union1 = obj_namespace_union1_error.message;
7625
- }
7626
- if (obj_namespace_union0 && obj_namespace_union1) {
7627
- let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
7628
- message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
7629
- message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
7630
- return new TypeError(message);
7595
+ })();
7596
+ return v_error === undefined ? null : v_error;
7597
+ }
7598
+ const RepresentationType$6 = 'EinsteinAgentActionOutputRepresentation';
7599
+ function keyBuilder$8(luvio, config) {
7600
+ return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
7601
+ }
7602
+ function keyBuilderFromType$4(luvio, object) {
7603
+ const keyParams = {
7604
+ id: object.id
7605
+ };
7606
+ return keyBuilder$8(luvio, keyParams);
7607
+ }
7608
+ function normalize$6(input, existing, path, luvio, store, timestamp) {
7609
+ return input;
7610
+ }
7611
+ const select$e = function EinsteinAgentActionOutputRepresentationSelect() {
7612
+ const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$f();
7613
+ return {
7614
+ kind: 'Fragment',
7615
+ version: VERSION$7,
7616
+ private: [],
7617
+ selections: [
7618
+ {
7619
+ name: 'attributes',
7620
+ kind: 'Object',
7621
+ plural: true,
7622
+ selections: AgentActionAttributeOutputRepresentation__selections
7623
+ },
7624
+ {
7625
+ name: 'description',
7626
+ kind: 'Scalar'
7627
+ },
7628
+ {
7629
+ name: 'developerName',
7630
+ kind: 'Scalar'
7631
+ },
7632
+ {
7633
+ name: 'id',
7634
+ kind: 'Scalar'
7635
+ },
7636
+ {
7637
+ name: 'includeInProgressIndicator',
7638
+ kind: 'Scalar',
7639
+ required: false
7640
+ },
7641
+ {
7642
+ name: 'invocationTarget',
7643
+ kind: 'Scalar',
7644
+ required: false
7645
+ },
7646
+ {
7647
+ name: 'invocationTargetId',
7648
+ kind: 'Scalar',
7649
+ required: false
7650
+ },
7651
+ {
7652
+ name: 'invocationTargetType',
7653
+ kind: 'Scalar'
7654
+ },
7655
+ {
7656
+ name: 'label',
7657
+ kind: 'Scalar'
7658
+ },
7659
+ {
7660
+ name: 'namespace',
7661
+ kind: 'Scalar',
7662
+ required: false
7663
+ },
7664
+ {
7665
+ name: 'progressIndicatorMessage',
7666
+ kind: 'Scalar',
7667
+ required: false
7668
+ },
7669
+ {
7670
+ name: 'userConfirmationRequired',
7671
+ kind: 'Scalar',
7672
+ required: false
7631
7673
  }
7674
+ ]
7675
+ };
7676
+ };
7677
+ function equals$7(existing, incoming) {
7678
+ const existing_includeInProgressIndicator = existing.includeInProgressIndicator;
7679
+ const incoming_includeInProgressIndicator = incoming.includeInProgressIndicator;
7680
+ // if at least one of these optionals is defined
7681
+ if (existing_includeInProgressIndicator !== undefined || incoming_includeInProgressIndicator !== undefined) {
7682
+ // if one of these is not defined we know the other is defined and therefore
7683
+ // not equal
7684
+ if (existing_includeInProgressIndicator === undefined || incoming_includeInProgressIndicator === undefined) {
7685
+ return false;
7632
7686
  }
7633
- if (obj.progressIndicatorMessage !== undefined) {
7634
- const obj_progressIndicatorMessage = obj.progressIndicatorMessage;
7635
- const path_progressIndicatorMessage = path + '.progressIndicatorMessage';
7636
- let obj_progressIndicatorMessage_union0 = null;
7637
- const obj_progressIndicatorMessage_union0_error = (() => {
7638
- if (typeof obj_progressIndicatorMessage !== 'string') {
7639
- return new TypeError('Expected "string" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
7640
- }
7641
- })();
7642
- if (obj_progressIndicatorMessage_union0_error != null) {
7643
- obj_progressIndicatorMessage_union0 = obj_progressIndicatorMessage_union0_error.message;
7644
- }
7645
- let obj_progressIndicatorMessage_union1 = null;
7646
- const obj_progressIndicatorMessage_union1_error = (() => {
7647
- if (obj_progressIndicatorMessage !== null) {
7648
- return new TypeError('Expected "null" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
7649
- }
7650
- })();
7651
- if (obj_progressIndicatorMessage_union1_error != null) {
7652
- obj_progressIndicatorMessage_union1 = obj_progressIndicatorMessage_union1_error.message;
7653
- }
7654
- if (obj_progressIndicatorMessage_union0 && obj_progressIndicatorMessage_union1) {
7655
- let message = 'Object doesn\'t match union (at "' + path_progressIndicatorMessage + '")';
7656
- message += '\n' + obj_progressIndicatorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
7657
- message += '\n' + obj_progressIndicatorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
7687
+ if (!(existing_includeInProgressIndicator === incoming_includeInProgressIndicator)) {
7688
+ return false;
7689
+ }
7690
+ }
7691
+ const existing_userConfirmationRequired = existing.userConfirmationRequired;
7692
+ const incoming_userConfirmationRequired = incoming.userConfirmationRequired;
7693
+ // if at least one of these optionals is defined
7694
+ if (existing_userConfirmationRequired !== undefined || incoming_userConfirmationRequired !== undefined) {
7695
+ // if one of these is not defined we know the other is defined and therefore
7696
+ // not equal
7697
+ if (existing_userConfirmationRequired === undefined || incoming_userConfirmationRequired === undefined) {
7698
+ return false;
7699
+ }
7700
+ if (!(existing_userConfirmationRequired === incoming_userConfirmationRequired)) {
7701
+ return false;
7702
+ }
7703
+ }
7704
+ const existing_description = existing.description;
7705
+ const incoming_description = incoming.description;
7706
+ if (!(existing_description === incoming_description)) {
7707
+ return false;
7708
+ }
7709
+ const existing_developerName = existing.developerName;
7710
+ const incoming_developerName = incoming.developerName;
7711
+ if (!(existing_developerName === incoming_developerName)) {
7712
+ return false;
7713
+ }
7714
+ const existing_id = existing.id;
7715
+ const incoming_id = incoming.id;
7716
+ if (!(existing_id === incoming_id)) {
7717
+ return false;
7718
+ }
7719
+ const existing_invocationTarget = existing.invocationTarget;
7720
+ const incoming_invocationTarget = incoming.invocationTarget;
7721
+ // if at least one of these optionals is defined
7722
+ if (existing_invocationTarget !== undefined || incoming_invocationTarget !== undefined) {
7723
+ // if one of these is not defined we know the other is defined and therefore
7724
+ // not equal
7725
+ if (existing_invocationTarget === undefined || incoming_invocationTarget === undefined) {
7726
+ return false;
7727
+ }
7728
+ if (!(existing_invocationTarget === incoming_invocationTarget)) {
7729
+ return false;
7730
+ }
7731
+ }
7732
+ const existing_invocationTargetId = existing.invocationTargetId;
7733
+ const incoming_invocationTargetId = incoming.invocationTargetId;
7734
+ // if at least one of these optionals is defined
7735
+ if (existing_invocationTargetId !== undefined || incoming_invocationTargetId !== undefined) {
7736
+ // if one of these is not defined we know the other is defined and therefore
7737
+ // not equal
7738
+ if (existing_invocationTargetId === undefined || incoming_invocationTargetId === undefined) {
7739
+ return false;
7740
+ }
7741
+ if (!(existing_invocationTargetId === incoming_invocationTargetId)) {
7742
+ return false;
7743
+ }
7744
+ }
7745
+ const existing_invocationTargetType = existing.invocationTargetType;
7746
+ const incoming_invocationTargetType = incoming.invocationTargetType;
7747
+ if (!(existing_invocationTargetType === incoming_invocationTargetType)) {
7748
+ return false;
7749
+ }
7750
+ const existing_label = existing.label;
7751
+ const incoming_label = incoming.label;
7752
+ if (!(existing_label === incoming_label)) {
7753
+ return false;
7754
+ }
7755
+ const existing_namespace = existing.namespace;
7756
+ const incoming_namespace = incoming.namespace;
7757
+ // if at least one of these optionals is defined
7758
+ if (existing_namespace !== undefined || incoming_namespace !== undefined) {
7759
+ // if one of these is not defined we know the other is defined and therefore
7760
+ // not equal
7761
+ if (existing_namespace === undefined || incoming_namespace === undefined) {
7762
+ return false;
7763
+ }
7764
+ if (!(existing_namespace === incoming_namespace)) {
7765
+ return false;
7766
+ }
7767
+ }
7768
+ const existing_progressIndicatorMessage = existing.progressIndicatorMessage;
7769
+ const incoming_progressIndicatorMessage = incoming.progressIndicatorMessage;
7770
+ // if at least one of these optionals is defined
7771
+ if (existing_progressIndicatorMessage !== undefined || incoming_progressIndicatorMessage !== undefined) {
7772
+ // if one of these is not defined we know the other is defined and therefore
7773
+ // not equal
7774
+ if (existing_progressIndicatorMessage === undefined || incoming_progressIndicatorMessage === undefined) {
7775
+ return false;
7776
+ }
7777
+ if (!(existing_progressIndicatorMessage === incoming_progressIndicatorMessage)) {
7778
+ return false;
7779
+ }
7780
+ }
7781
+ const existing_attributes = existing.attributes;
7782
+ const incoming_attributes = incoming.attributes;
7783
+ const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
7784
+ if (!(equals$8(existing_attributes_item, incoming_attributes_item))) {
7785
+ return false;
7786
+ }
7787
+ });
7788
+ if (equals_attributes_items === false) {
7789
+ return false;
7790
+ }
7791
+ return true;
7792
+ }
7793
+ const ingest$6 = function EinsteinAgentActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7794
+ if (process.env.NODE_ENV !== 'production') {
7795
+ const validateError = validate$7(input);
7796
+ if (validateError !== null) {
7797
+ throw validateError;
7798
+ }
7799
+ }
7800
+ const key = keyBuilderFromType$4(luvio, input);
7801
+ const ttlToUse = TTL$5;
7802
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$7, RepresentationType$6, equals$7);
7803
+ return createLink(key);
7804
+ };
7805
+ function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
7806
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7807
+ const rootKey = keyBuilderFromType$4(luvio, input);
7808
+ rootKeySet.set(rootKey, {
7809
+ namespace: keyPrefix,
7810
+ representationName: RepresentationType$6,
7811
+ mergeable: false
7812
+ });
7813
+ }
7814
+
7815
+ const TTL$4 = 600000;
7816
+ const VERSION$6 = "1cea7e031c1a82331a586394e722ad24";
7817
+ function validate$6(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
7818
+ const v_error = (() => {
7819
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7820
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7821
+ }
7822
+ const obj_actions = obj.actions;
7823
+ const path_actions = path + '.actions';
7824
+ if (!ArrayIsArray(obj_actions)) {
7825
+ return new TypeError('Expected "array" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
7826
+ }
7827
+ for (let i = 0; i < obj_actions.length; i++) {
7828
+ const obj_actions_item = obj_actions[i];
7829
+ const path_actions_item = path_actions + '[' + i + ']';
7830
+ const referencepath_actions_itemValidationError = validate$7(obj_actions_item, path_actions_item);
7831
+ if (referencepath_actions_itemValidationError !== null) {
7832
+ let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
7833
+ message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7658
7834
  return new TypeError(message);
7659
7835
  }
7660
7836
  }
7661
- if (obj.userConfirmationRequired !== undefined) {
7662
- const obj_userConfirmationRequired = obj.userConfirmationRequired;
7663
- const path_userConfirmationRequired = path + '.userConfirmationRequired';
7664
- let obj_userConfirmationRequired_union0 = null;
7665
- const obj_userConfirmationRequired_union0_error = (() => {
7666
- if (typeof obj_userConfirmationRequired !== 'boolean') {
7667
- return new TypeError('Expected "boolean" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
7668
- }
7669
- })();
7670
- if (obj_userConfirmationRequired_union0_error != null) {
7671
- obj_userConfirmationRequired_union0 = obj_userConfirmationRequired_union0_error.message;
7672
- }
7673
- let obj_userConfirmationRequired_union1 = null;
7674
- const obj_userConfirmationRequired_union1_error = (() => {
7675
- if (obj_userConfirmationRequired !== null) {
7676
- return new TypeError('Expected "null" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
7677
- }
7678
- })();
7679
- if (obj_userConfirmationRequired_union1_error != null) {
7680
- obj_userConfirmationRequired_union1 = obj_userConfirmationRequired_union1_error.message;
7681
- }
7682
- if (obj_userConfirmationRequired_union0 && obj_userConfirmationRequired_union1) {
7683
- let message = 'Object doesn\'t match union (at "' + path_userConfirmationRequired + '")';
7684
- message += '\n' + obj_userConfirmationRequired_union0.split('\n').map((line) => '\t' + line).join('\n');
7685
- message += '\n' + obj_userConfirmationRequired_union1.split('\n').map((line) => '\t' + line).join('\n');
7686
- return new TypeError(message);
7687
- }
7837
+ })();
7838
+ return v_error === undefined ? null : v_error;
7839
+ }
7840
+ const RepresentationType$5 = 'EinsteinAgentActionsOutputRepresentation';
7841
+ function normalize$5(input, existing, path, luvio, store, timestamp) {
7842
+ return input;
7843
+ }
7844
+ const select$d = function EinsteinAgentActionsOutputRepresentationSelect() {
7845
+ return {
7846
+ kind: 'Fragment',
7847
+ version: VERSION$6,
7848
+ private: [],
7849
+ opaque: true
7850
+ };
7851
+ };
7852
+ function equals$6(existing, incoming) {
7853
+ if (JSONStringify(incoming) !== JSONStringify(existing)) {
7854
+ return false;
7855
+ }
7856
+ return true;
7857
+ }
7858
+ const ingest$5 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7859
+ if (process.env.NODE_ENV !== 'production') {
7860
+ const validateError = validate$6(input);
7861
+ if (validateError !== null) {
7862
+ throw validateError;
7863
+ }
7864
+ }
7865
+ const key = path.fullPath;
7866
+ const ttlToUse = TTL$4;
7867
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$6, RepresentationType$5, equals$6);
7868
+ return createLink(key);
7869
+ };
7870
+ function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
7871
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7872
+ const rootKey = fullPathFactory();
7873
+ rootKeySet.set(rootKey, {
7874
+ namespace: keyPrefix,
7875
+ representationName: RepresentationType$5,
7876
+ mergeable: false
7877
+ });
7878
+ }
7879
+
7880
+ function select$c(luvio, params) {
7881
+ return select$d();
7882
+ }
7883
+ function keyBuilder$7(luvio, params) {
7884
+ return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
7885
+ }
7886
+ function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
7887
+ getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
7888
+ }
7889
+ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
7890
+ const { body } = response;
7891
+ const key = keyBuilder$7(luvio, resourceParams);
7892
+ luvio.storeIngest(key, ingest$5, body);
7893
+ const snapshot = luvio.storeLookup({
7894
+ recordId: key,
7895
+ node: select$c(),
7896
+ variables: {},
7897
+ }, snapshotRefresh);
7898
+ if (process.env.NODE_ENV !== 'production') {
7899
+ if (snapshot.state !== 'Fulfilled') {
7900
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
7901
+ }
7902
+ }
7903
+ deepFreeze(snapshot.data);
7904
+ return snapshot;
7905
+ }
7906
+ function ingestError$1(luvio, params, error, snapshotRefresh) {
7907
+ const key = keyBuilder$7(luvio, params);
7908
+ const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7909
+ const storeMetadataParams = {
7910
+ ttl: TTL$4,
7911
+ namespace: keyPrefix,
7912
+ version: VERSION$6,
7913
+ representationName: RepresentationType$5
7914
+ };
7915
+ luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7916
+ return errorSnapshot;
7917
+ }
7918
+ function createResourceRequest$6(config) {
7919
+ const headers = {};
7920
+ return {
7921
+ baseUri: '/services/data/v65.0',
7922
+ basePath: '/connect/service-automation/gen-ai/actions',
7923
+ method: 'get',
7924
+ body: null,
7925
+ urlParams: {},
7926
+ queryParams: config.queryParams,
7927
+ headers,
7928
+ priority: 'normal',
7929
+ };
7930
+ }
7931
+
7932
+ const adapterName$6 = 'getAgentActions';
7933
+ const getAgentActions_ConfigPropertyMetadata = [
7934
+ generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
7935
+ generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
7936
+ ];
7937
+ const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAgentActions_ConfigPropertyMetadata);
7938
+ const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getAgentActions_ConfigPropertyMetadata);
7939
+ function keyBuilder$6(luvio, config) {
7940
+ const resourceParams = createResourceParams$6(config);
7941
+ return keyBuilder$7(luvio, resourceParams);
7942
+ }
7943
+ function typeCheckConfig$6(untrustedConfig) {
7944
+ const config = {};
7945
+ typeCheckConfig$d(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
7946
+ return config;
7947
+ }
7948
+ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
7949
+ if (!untrustedIsObject(untrustedConfig)) {
7950
+ return null;
7951
+ }
7952
+ if (process.env.NODE_ENV !== 'production') {
7953
+ validateConfig(untrustedConfig, configPropertyNames);
7954
+ }
7955
+ const config = typeCheckConfig$6(untrustedConfig);
7956
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
7957
+ return null;
7958
+ }
7959
+ return config;
7960
+ }
7961
+ function adapterFragment$1(luvio, config) {
7962
+ createResourceParams$6(config);
7963
+ return select$c();
7964
+ }
7965
+ function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
7966
+ const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
7967
+ config,
7968
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
7969
+ });
7970
+ return luvio.storeBroadcast().then(() => snapshot);
7971
+ }
7972
+ function onFetchResponseError$1(luvio, config, resourceParams, response) {
7973
+ const snapshot = ingestError$1(luvio, resourceParams, response, {
7974
+ config,
7975
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
7976
+ });
7977
+ return luvio.storeBroadcast().then(() => snapshot);
7978
+ }
7979
+ function buildNetworkSnapshot$6(luvio, config, options) {
7980
+ const resourceParams = createResourceParams$6(config);
7981
+ const request = createResourceRequest$6(resourceParams);
7982
+ return luvio.dispatchResourceRequest(request, options)
7983
+ .then((response) => {
7984
+ return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
7985
+ const cache = new StoreKeyMap();
7986
+ getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
7987
+ return cache;
7988
+ });
7989
+ }, (response) => {
7990
+ return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
7991
+ });
7992
+ }
7993
+ function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
7994
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
7995
+ }
7996
+ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
7997
+ const { luvio, config } = context;
7998
+ const selector = {
7999
+ recordId: keyBuilder$6(luvio, config),
8000
+ node: adapterFragment$1(luvio, config),
8001
+ variables: {},
8002
+ };
8003
+ const cacheSnapshot = storeLookup(selector, {
8004
+ config,
8005
+ resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
8006
+ });
8007
+ return cacheSnapshot;
8008
+ }
8009
+ const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
8010
+ const config = validateAdapterConfig$6(untrustedConfig, getAgentActions_ConfigPropertyNames);
8011
+ // Invalid or incomplete config
8012
+ if (config === null) {
8013
+ return null;
8014
+ }
8015
+ return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
8016
+ buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
8017
+ };
8018
+
8019
+ function select$b(luvio, params) {
8020
+ return select$e();
8021
+ }
8022
+ function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
8023
+ getTypeCacheKeys$6(storeKeyMap, luvio, response);
8024
+ }
8025
+ function ingestSuccess$5(luvio, resourceParams, response) {
8026
+ const { body } = response;
8027
+ const key = keyBuilderFromType$4(luvio, body);
8028
+ luvio.storeIngest(key, ingest$6, body);
8029
+ const snapshot = luvio.storeLookup({
8030
+ recordId: key,
8031
+ node: select$b(),
8032
+ variables: {},
8033
+ });
8034
+ if (process.env.NODE_ENV !== 'production') {
8035
+ if (snapshot.state !== 'Fulfilled') {
8036
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
8037
+ }
8038
+ }
8039
+ deepFreeze(snapshot.data);
8040
+ return snapshot;
8041
+ }
8042
+ function createResourceRequest$5(config) {
8043
+ const headers = {};
8044
+ return {
8045
+ baseUri: '/services/data/v65.0',
8046
+ basePath: '/connect/service-automation/gen-ai/actions',
8047
+ method: 'post',
8048
+ body: config.body,
8049
+ urlParams: {},
8050
+ queryParams: {},
8051
+ headers,
8052
+ priority: 'normal',
8053
+ };
8054
+ }
8055
+
8056
+ const adapterName$5 = 'createAgentAction';
8057
+ const createAgentAction_ConfigPropertyMetadata = [
8058
+ generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
8059
+ generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
8060
+ generateParamConfigMetadata('invocationTargetIdentifier', true, 2 /* Body */, 0 /* String */),
8061
+ generateParamConfigMetadata('invocationTargetType', true, 2 /* Body */, 0 /* String */),
8062
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
8063
+ generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
8064
+ ];
8065
+ const createAgentAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createAgentAction_ConfigPropertyMetadata);
8066
+ const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(createAgentAction_ConfigPropertyMetadata);
8067
+ function typeCheckConfig$5(untrustedConfig) {
8068
+ const config = {};
8069
+ typeCheckConfig$d(untrustedConfig, config, createAgentAction_ConfigPropertyMetadata);
8070
+ return config;
8071
+ }
8072
+ function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
8073
+ if (!untrustedIsObject(untrustedConfig)) {
8074
+ return null;
8075
+ }
8076
+ if (process.env.NODE_ENV !== 'production') {
8077
+ validateConfig(untrustedConfig, configPropertyNames);
8078
+ }
8079
+ const config = typeCheckConfig$5(untrustedConfig);
8080
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
8081
+ return null;
8082
+ }
8083
+ return config;
8084
+ }
8085
+ function buildNetworkSnapshot$5(luvio, config, options) {
8086
+ const resourceParams = createResourceParams$5(config);
8087
+ const request = createResourceRequest$5(resourceParams);
8088
+ return luvio.dispatchResourceRequest(request, options)
8089
+ .then((response) => {
8090
+ return luvio.handleSuccessResponse(() => {
8091
+ const snapshot = ingestSuccess$5(luvio, resourceParams, response);
8092
+ return luvio.storeBroadcast().then(() => snapshot);
8093
+ }, () => {
8094
+ const cache = new StoreKeyMap();
8095
+ getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
8096
+ return cache;
8097
+ });
8098
+ }, (response) => {
8099
+ deepFreeze(response);
8100
+ throw response;
8101
+ });
8102
+ }
8103
+ const createAgentActionAdapterFactory = (luvio) => {
8104
+ return function createAgentAction(untrustedConfig) {
8105
+ const config = validateAdapterConfig$5(untrustedConfig, createAgentAction_ConfigPropertyNames);
8106
+ // Invalid or incomplete config
8107
+ if (config === null) {
8108
+ throw new Error('Invalid config for "createAgentAction"');
8109
+ }
8110
+ return buildNetworkSnapshot$5(luvio, config);
8111
+ };
8112
+ };
8113
+
8114
+ const VERSION$5 = "c9311edc4dc08a9830891f1c8b6ec195";
8115
+ function validate$5(obj, path = 'AgentFlowStatusOutputRepresentation') {
8116
+ const v_error = (() => {
8117
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8118
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
8119
+ }
8120
+ const obj_code = obj.code;
8121
+ const path_code = path + '.code';
8122
+ if (typeof obj_code !== 'number' || (typeof obj_code === 'number' && Math.floor(obj_code) !== obj_code)) {
8123
+ return new TypeError('Expected "integer" but received "' + typeof obj_code + '" (at "' + path_code + '")');
8124
+ }
8125
+ const obj_message = obj.message;
8126
+ const path_message = path + '.message';
8127
+ if (typeof obj_message !== 'string') {
8128
+ return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
7688
8129
  }
7689
8130
  })();
7690
8131
  return v_error === undefined ? null : v_error;
7691
8132
  }
8133
+ const select$a = function AgentFlowStatusOutputRepresentationSelect() {
8134
+ return {
8135
+ kind: 'Fragment',
8136
+ version: VERSION$5,
8137
+ private: [],
8138
+ selections: [
8139
+ {
8140
+ name: 'code',
8141
+ kind: 'Scalar'
8142
+ },
8143
+ {
8144
+ name: 'message',
8145
+ kind: 'Scalar'
8146
+ }
8147
+ ]
8148
+ };
8149
+ };
8150
+ function equals$5(existing, incoming) {
8151
+ const existing_code = existing.code;
8152
+ const incoming_code = incoming.code;
8153
+ if (!(existing_code === incoming_code)) {
8154
+ return false;
8155
+ }
8156
+ const existing_message = existing.message;
8157
+ const incoming_message = incoming.message;
8158
+ if (!(existing_message === incoming_message)) {
8159
+ return false;
8160
+ }
8161
+ return true;
8162
+ }
7692
8163
 
7693
- const TTL$2 = 6000;
7694
- const VERSION$3 = "8d267876ea7c4f028aade73f06d0f634";
7695
- function validate$3(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
8164
+ const TTL$3 = 500;
8165
+ const VERSION$4 = "8339c78dc2e1e22eb9203102eba6a7e8";
8166
+ function validate$4(obj, path = 'AgentFlowOutputRepresentation') {
7696
8167
  const v_error = (() => {
7697
8168
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7698
8169
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7699
8170
  }
7700
- if (obj.actions !== undefined) {
7701
- const obj_actions = obj.actions;
7702
- const path_actions = path + '.actions';
7703
- if (!ArrayIsArray(obj_actions)) {
7704
- return new TypeError('Expected "array" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
7705
- }
7706
- for (let i = 0; i < obj_actions.length; i++) {
7707
- const obj_actions_item = obj_actions[i];
7708
- const path_actions_item = path_actions + '[' + i + ']';
7709
- const referencepath_actions_itemValidationError = validate$4(obj_actions_item, path_actions_item);
7710
- if (referencepath_actions_itemValidationError !== null) {
7711
- let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
7712
- message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
7713
- return new TypeError(message);
7714
- }
7715
- }
8171
+ const obj_flowDefinitionId = obj.flowDefinitionId;
8172
+ const path_flowDefinitionId = path + '.flowDefinitionId';
8173
+ if (typeof obj_flowDefinitionId !== 'string') {
8174
+ return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
8175
+ }
8176
+ const obj_flowLatestVersionId = obj.flowLatestVersionId;
8177
+ const path_flowLatestVersionId = path + '.flowLatestVersionId';
8178
+ if (typeof obj_flowLatestVersionId !== 'string') {
8179
+ return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
8180
+ }
8181
+ const obj_isActive = obj.isActive;
8182
+ const path_isActive = path + '.isActive';
8183
+ if (typeof obj_isActive !== 'boolean') {
8184
+ return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
8185
+ }
8186
+ const obj_status = obj.status;
8187
+ const path_status = path + '.status';
8188
+ const referencepath_statusValidationError = validate$5(obj_status, path_status);
8189
+ if (referencepath_statusValidationError !== null) {
8190
+ let message = 'Object doesn\'t match AgentFlowStatusOutputRepresentation (at "' + path_status + '")\n';
8191
+ message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
8192
+ return new TypeError(message);
7716
8193
  }
7717
8194
  })();
7718
8195
  return v_error === undefined ? null : v_error;
7719
8196
  }
7720
- const RepresentationType$3 = 'EinsteinAgentActionsOutputRepresentation';
7721
- function normalize$3(input, existing, path, luvio, store, timestamp) {
8197
+ const RepresentationType$4 = 'AgentFlowOutputRepresentation';
8198
+ function keyBuilder$5(luvio, config) {
8199
+ return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
8200
+ }
8201
+ function keyBuilderFromType$3(luvio, object) {
8202
+ const keyParams = {
8203
+ id: object.flowDefinitionId
8204
+ };
8205
+ return keyBuilder$5(luvio, keyParams);
8206
+ }
8207
+ function normalize$4(input, existing, path, luvio, store, timestamp) {
7722
8208
  return input;
7723
8209
  }
7724
- const select$7 = function EinsteinAgentActionsOutputRepresentationSelect() {
8210
+ const select$9 = function AgentFlowOutputRepresentationSelect() {
8211
+ const { selections: AgentFlowStatusOutputRepresentation__selections, opaque: AgentFlowStatusOutputRepresentation__opaque, } = select$a();
7725
8212
  return {
7726
8213
  kind: 'Fragment',
7727
- version: VERSION$3,
8214
+ version: VERSION$4,
7728
8215
  private: [],
7729
- opaque: true
8216
+ selections: [
8217
+ {
8218
+ name: 'flowDefinitionId',
8219
+ kind: 'Scalar'
8220
+ },
8221
+ {
8222
+ name: 'flowLatestVersionId',
8223
+ kind: 'Scalar'
8224
+ },
8225
+ {
8226
+ name: 'isActive',
8227
+ kind: 'Scalar'
8228
+ },
8229
+ {
8230
+ name: 'status',
8231
+ kind: 'Object',
8232
+ selections: AgentFlowStatusOutputRepresentation__selections
8233
+ }
8234
+ ]
7730
8235
  };
7731
8236
  };
7732
- function equals$3(existing, incoming) {
7733
- if (JSONStringify(incoming) !== JSONStringify(existing)) {
8237
+ function equals$4(existing, incoming) {
8238
+ const existing_isActive = existing.isActive;
8239
+ const incoming_isActive = incoming.isActive;
8240
+ if (!(existing_isActive === incoming_isActive)) {
8241
+ return false;
8242
+ }
8243
+ const existing_flowDefinitionId = existing.flowDefinitionId;
8244
+ const incoming_flowDefinitionId = incoming.flowDefinitionId;
8245
+ if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
8246
+ return false;
8247
+ }
8248
+ const existing_flowLatestVersionId = existing.flowLatestVersionId;
8249
+ const incoming_flowLatestVersionId = incoming.flowLatestVersionId;
8250
+ if (!(existing_flowLatestVersionId === incoming_flowLatestVersionId)) {
8251
+ return false;
8252
+ }
8253
+ const existing_status = existing.status;
8254
+ const incoming_status = incoming.status;
8255
+ if (!(equals$5(existing_status, incoming_status))) {
7734
8256
  return false;
7735
8257
  }
7736
8258
  return true;
7737
8259
  }
7738
- const ingest$3 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8260
+ const ingest$4 = function AgentFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
7739
8261
  if (process.env.NODE_ENV !== 'production') {
7740
- const validateError = validate$3(input);
8262
+ const validateError = validate$4(input);
7741
8263
  if (validateError !== null) {
7742
8264
  throw validateError;
7743
8265
  }
7744
8266
  }
7745
- 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);
8267
+ const key = keyBuilderFromType$3(luvio, input);
8268
+ const ttlToUse = TTL$3;
8269
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
7748
8270
  return createLink(key);
7749
8271
  };
7750
- function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
8272
+ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
7751
8273
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
7752
- const rootKey = fullPathFactory();
8274
+ const rootKey = keyBuilderFromType$3(luvio, input);
7753
8275
  rootKeySet.set(rootKey, {
7754
8276
  namespace: keyPrefix,
7755
- representationName: RepresentationType$3,
8277
+ representationName: RepresentationType$4,
7756
8278
  mergeable: false
7757
8279
  });
7758
8280
  }
7759
8281
 
7760
- function select$6(luvio, params) {
7761
- return select$7();
7762
- }
7763
- function keyBuilder$5(luvio, params) {
7764
- return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
8282
+ function select$8(luvio, params) {
8283
+ return select$9();
7765
8284
  }
7766
- function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
7767
- getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$5(luvio, resourceParams));
8285
+ function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
8286
+ getTypeCacheKeys$4(storeKeyMap, luvio, response);
7768
8287
  }
7769
- function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
8288
+ function ingestSuccess$4(luvio, resourceParams, response) {
7770
8289
  const { body } = response;
7771
- const key = keyBuilder$5(luvio, resourceParams);
7772
- luvio.storeIngest(key, ingest$3, body);
8290
+ const key = keyBuilderFromType$3(luvio, body);
8291
+ luvio.storeIngest(key, ingest$4, body);
7773
8292
  const snapshot = luvio.storeLookup({
7774
8293
  recordId: key,
7775
- node: select$6(),
8294
+ node: select$8(),
7776
8295
  variables: {},
7777
- }, snapshotRefresh);
8296
+ });
7778
8297
  if (process.env.NODE_ENV !== 'production') {
7779
8298
  if (snapshot.state !== 'Fulfilled') {
7780
8299
  throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
@@ -7783,122 +8302,79 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
7783
8302
  deepFreeze(snapshot.data);
7784
8303
  return snapshot;
7785
8304
  }
7786
- function ingestError$1(luvio, params, error, snapshotRefresh) {
7787
- const key = keyBuilder$5(luvio, params);
7788
- const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
7789
- const storeMetadataParams = {
7790
- ttl: TTL$2,
7791
- namespace: keyPrefix,
7792
- version: VERSION$3,
7793
- representationName: RepresentationType$3
7794
- };
7795
- luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
7796
- return errorSnapshot;
7797
- }
7798
- function createResourceRequest$3(config) {
8305
+ function createResourceRequest$4(config) {
7799
8306
  const headers = {};
7800
8307
  return {
7801
8308
  baseUri: '/services/data/v65.0',
7802
- basePath: '/connect/service-automation/gen-ai/actions',
7803
- method: 'get',
7804
- body: null,
8309
+ basePath: '/connect/service-automation/agent/flow/autolaunched',
8310
+ method: 'post',
8311
+ body: config.body,
7805
8312
  urlParams: {},
7806
- queryParams: config.queryParams,
8313
+ queryParams: {},
7807
8314
  headers,
7808
8315
  priority: 'normal',
7809
8316
  };
7810
8317
  }
7811
8318
 
7812
- const adapterName$3 = 'getAgentActions';
7813
- const getAgentActions_ConfigPropertyMetadata = [
7814
- generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
7815
- generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
8319
+ const adapterName$4 = 'createAgentFlow';
8320
+ const createAgentFlow_ConfigPropertyMetadata = [
8321
+ generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
8322
+ generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
8323
+ generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
8324
+ generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
7816
8325
  ];
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);
7822
- }
7823
- function typeCheckConfig$3(untrustedConfig) {
8326
+ const createAgentFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createAgentFlow_ConfigPropertyMetadata);
8327
+ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createAgentFlow_ConfigPropertyMetadata);
8328
+ function typeCheckConfig$4(untrustedConfig) {
7824
8329
  const config = {};
7825
- typeCheckConfig$9(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
8330
+ typeCheckConfig$d(untrustedConfig, config, createAgentFlow_ConfigPropertyMetadata);
7826
8331
  return config;
7827
8332
  }
7828
- function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8333
+ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
7829
8334
  if (!untrustedIsObject(untrustedConfig)) {
7830
8335
  return null;
7831
8336
  }
7832
8337
  if (process.env.NODE_ENV !== 'production') {
7833
8338
  validateConfig(untrustedConfig, configPropertyNames);
7834
8339
  }
7835
- const config = typeCheckConfig$3(untrustedConfig);
8340
+ const config = typeCheckConfig$4(untrustedConfig);
7836
8341
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
7837
8342
  return null;
7838
8343
  }
7839
8344
  return config;
7840
8345
  }
7841
- function adapterFragment$1(luvio, config) {
7842
- createResourceParams$3(config);
7843
- return select$6();
7844
- }
7845
- function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
7846
- const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
7847
- config,
7848
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
7849
- });
7850
- return luvio.storeBroadcast().then(() => snapshot);
7851
- }
7852
- function onFetchResponseError$1(luvio, config, resourceParams, response) {
7853
- const snapshot = ingestError$1(luvio, resourceParams, response, {
7854
- config,
7855
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
7856
- });
7857
- return luvio.storeBroadcast().then(() => snapshot);
7858
- }
7859
- function buildNetworkSnapshot$3(luvio, config, options) {
7860
- const resourceParams = createResourceParams$3(config);
7861
- const request = createResourceRequest$3(resourceParams);
8346
+ function buildNetworkSnapshot$4(luvio, config, options) {
8347
+ const resourceParams = createResourceParams$4(config);
8348
+ const request = createResourceRequest$4(resourceParams);
7862
8349
  return luvio.dispatchResourceRequest(request, options)
7863
8350
  .then((response) => {
7864
- return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
8351
+ return luvio.handleSuccessResponse(() => {
8352
+ const snapshot = ingestSuccess$4(luvio, resourceParams, response);
8353
+ return luvio.storeBroadcast().then(() => snapshot);
8354
+ }, () => {
7865
8355
  const cache = new StoreKeyMap();
7866
- getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8356
+ getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
7867
8357
  return cache;
7868
8358
  });
7869
8359
  }, (response) => {
7870
- return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
8360
+ deepFreeze(response);
8361
+ throw response;
7871
8362
  });
7872
8363
  }
7873
- function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
7874
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
7875
- }
7876
- function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
7877
- const { luvio, config } = context;
7878
- const selector = {
7879
- recordId: keyBuilder$4(luvio, config),
7880
- node: adapterFragment$1(luvio, config),
7881
- variables: {},
8364
+ const createAgentFlowAdapterFactory = (luvio) => {
8365
+ return function createAgentFlow(untrustedConfig) {
8366
+ const config = validateAdapterConfig$4(untrustedConfig, createAgentFlow_ConfigPropertyNames);
8367
+ // Invalid or incomplete config
8368
+ if (config === null) {
8369
+ throw new Error('Invalid config for "createAgentFlow"');
8370
+ }
8371
+ return buildNetworkSnapshot$4(luvio, config);
7882
8372
  };
7883
- const cacheSnapshot = storeLookup(selector, {
7884
- config,
7885
- resolve: () => buildNetworkSnapshot$3(luvio, config, snapshotRefreshOptions)
7886
- });
7887
- return cacheSnapshot;
7888
- }
7889
- const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
7890
- const config = validateAdapterConfig$3(untrustedConfig, getAgentActions_ConfigPropertyNames);
7891
- // Invalid or incomplete config
7892
- if (config === null) {
7893
- return null;
7894
- }
7895
- return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
7896
- buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
7897
8373
  };
7898
8374
 
7899
- const TTL$1 = 6000;
7900
- const VERSION$2 = "74ef82117094ebb002efc271969896bd";
7901
- function validate$2(obj, path = 'GenerateIntakeFormOutputRepresentation') {
8375
+ const TTL$2 = 6000;
8376
+ const VERSION$3 = "74ef82117094ebb002efc271969896bd";
8377
+ function validate$3(obj, path = 'GenerateIntakeFormOutputRepresentation') {
7902
8378
  const v_error = (() => {
7903
8379
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7904
8380
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -7932,23 +8408,23 @@ function validate$2(obj, path = 'GenerateIntakeFormOutputRepresentation') {
7932
8408
  })();
7933
8409
  return v_error === undefined ? null : v_error;
7934
8410
  }
7935
- const RepresentationType$2 = 'GenerateIntakeFormOutputRepresentation';
7936
- function keyBuilder$3(luvio, config) {
7937
- return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
8411
+ const RepresentationType$3 = 'GenerateIntakeFormOutputRepresentation';
8412
+ function keyBuilder$4(luvio, config) {
8413
+ return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
7938
8414
  }
7939
- function keyBuilderFromType$1(luvio, object) {
8415
+ function keyBuilderFromType$2(luvio, object) {
7940
8416
  const keyParams = {
7941
8417
  id: object.id
7942
8418
  };
7943
- return keyBuilder$3(luvio, keyParams);
8419
+ return keyBuilder$4(luvio, keyParams);
7944
8420
  }
7945
- function normalize$2(input, existing, path, luvio, store, timestamp) {
8421
+ function normalize$3(input, existing, path, luvio, store, timestamp) {
7946
8422
  return input;
7947
8423
  }
7948
- const select$5 = function GenerateIntakeFormOutputRepresentationSelect() {
8424
+ const select$7 = function GenerateIntakeFormOutputRepresentationSelect() {
7949
8425
  return {
7950
8426
  kind: 'Fragment',
7951
- version: VERSION$2,
8427
+ version: VERSION$3,
7952
8428
  private: [],
7953
8429
  selections: [
7954
8430
  {
@@ -7973,7 +8449,7 @@ const select$5 = function GenerateIntakeFormOutputRepresentationSelect() {
7973
8449
  ]
7974
8450
  };
7975
8451
  };
7976
- function equals$2(existing, incoming) {
8452
+ function equals$3(existing, incoming) {
7977
8453
  const existing_description = existing.description;
7978
8454
  const incoming_description = incoming.description;
7979
8455
  // if at least one of these optionals is defined
@@ -8020,41 +8496,41 @@ function equals$2(existing, incoming) {
8020
8496
  }
8021
8497
  return true;
8022
8498
  }
8023
- const ingest$2 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8499
+ const ingest$3 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8024
8500
  if (process.env.NODE_ENV !== 'production') {
8025
- const validateError = validate$2(input);
8501
+ const validateError = validate$3(input);
8026
8502
  if (validateError !== null) {
8027
8503
  throw validateError;
8028
8504
  }
8029
8505
  }
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);
8506
+ const key = keyBuilderFromType$2(luvio, input);
8507
+ const ttlToUse = TTL$2;
8508
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
8033
8509
  return createLink(key);
8034
8510
  };
8035
- function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
8511
+ function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
8036
8512
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8037
- const rootKey = keyBuilderFromType$1(luvio, input);
8513
+ const rootKey = keyBuilderFromType$2(luvio, input);
8038
8514
  rootKeySet.set(rootKey, {
8039
8515
  namespace: keyPrefix,
8040
- representationName: RepresentationType$2,
8516
+ representationName: RepresentationType$3,
8041
8517
  mergeable: false
8042
8518
  });
8043
8519
  }
8044
8520
 
8045
- function select$4(luvio, params) {
8046
- return select$5();
8521
+ function select$6(luvio, params) {
8522
+ return select$7();
8047
8523
  }
8048
- function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
8049
- getTypeCacheKeys$2(storeKeyMap, luvio, response);
8524
+ function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
8525
+ getTypeCacheKeys$3(storeKeyMap, luvio, response);
8050
8526
  }
8051
- function ingestSuccess$2(luvio, resourceParams, response) {
8527
+ function ingestSuccess$3(luvio, resourceParams, response) {
8052
8528
  const { body } = response;
8053
- const key = keyBuilderFromType$1(luvio, body);
8054
- luvio.storeIngest(key, ingest$2, body);
8529
+ const key = keyBuilderFromType$2(luvio, body);
8530
+ luvio.storeIngest(key, ingest$3, body);
8055
8531
  const snapshot = luvio.storeLookup({
8056
8532
  recordId: key,
8057
- node: select$4(),
8533
+ node: select$6(),
8058
8534
  variables: {},
8059
8535
  });
8060
8536
  if (process.env.NODE_ENV !== 'production') {
@@ -8065,7 +8541,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
8065
8541
  deepFreeze(snapshot.data);
8066
8542
  return snapshot;
8067
8543
  }
8068
- function createResourceRequest$2(config) {
8544
+ function createResourceRequest$3(config) {
8069
8545
  const headers = {};
8070
8546
  return {
8071
8547
  baseUri: '/services/data/v65.0',
@@ -8079,44 +8555,44 @@ function createResourceRequest$2(config) {
8079
8555
  };
8080
8556
  }
8081
8557
 
8082
- const adapterName$2 = 'generateIntakeForm';
8558
+ const adapterName$3 = 'generateIntakeForm';
8083
8559
  const generateIntakeForm_ConfigPropertyMetadata = [
8084
8560
  generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
8085
8561
  generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
8086
8562
  generateParamConfigMetadata('productId', false, 2 /* Body */, 0 /* String */),
8087
8563
  generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
8088
8564
  ];
8089
- const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateIntakeForm_ConfigPropertyMetadata);
8090
- const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(generateIntakeForm_ConfigPropertyMetadata);
8091
- function typeCheckConfig$2(untrustedConfig) {
8565
+ const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, generateIntakeForm_ConfigPropertyMetadata);
8566
+ const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(generateIntakeForm_ConfigPropertyMetadata);
8567
+ function typeCheckConfig$3(untrustedConfig) {
8092
8568
  const config = {};
8093
- typeCheckConfig$9(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
8569
+ typeCheckConfig$d(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
8094
8570
  return config;
8095
8571
  }
8096
- function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
8572
+ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
8097
8573
  if (!untrustedIsObject(untrustedConfig)) {
8098
8574
  return null;
8099
8575
  }
8100
8576
  if (process.env.NODE_ENV !== 'production') {
8101
8577
  validateConfig(untrustedConfig, configPropertyNames);
8102
8578
  }
8103
- const config = typeCheckConfig$2(untrustedConfig);
8579
+ const config = typeCheckConfig$3(untrustedConfig);
8104
8580
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8105
8581
  return null;
8106
8582
  }
8107
8583
  return config;
8108
8584
  }
8109
- function buildNetworkSnapshot$2(luvio, config, options) {
8110
- const resourceParams = createResourceParams$2(config);
8111
- const request = createResourceRequest$2(resourceParams);
8585
+ function buildNetworkSnapshot$3(luvio, config, options) {
8586
+ const resourceParams = createResourceParams$3(config);
8587
+ const request = createResourceRequest$3(resourceParams);
8112
8588
  return luvio.dispatchResourceRequest(request, options)
8113
8589
  .then((response) => {
8114
8590
  return luvio.handleSuccessResponse(() => {
8115
- const snapshot = ingestSuccess$2(luvio, resourceParams, response);
8591
+ const snapshot = ingestSuccess$3(luvio, resourceParams, response);
8116
8592
  return luvio.storeBroadcast().then(() => snapshot);
8117
8593
  }, () => {
8118
8594
  const cache = new StoreKeyMap();
8119
- getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
8595
+ getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
8120
8596
  return cache;
8121
8597
  });
8122
8598
  }, (response) => {
@@ -8126,18 +8602,18 @@ function buildNetworkSnapshot$2(luvio, config, options) {
8126
8602
  }
8127
8603
  const generateIntakeFormAdapterFactory = (luvio) => {
8128
8604
  return function generateIntakeForm(untrustedConfig) {
8129
- const config = validateAdapterConfig$2(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
8605
+ const config = validateAdapterConfig$3(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
8130
8606
  // Invalid or incomplete config
8131
8607
  if (config === null) {
8132
8608
  throw new Error('Invalid config for "generateIntakeForm"');
8133
8609
  }
8134
- return buildNetworkSnapshot$2(luvio, config);
8610
+ return buildNetworkSnapshot$3(luvio, config);
8135
8611
  };
8136
8612
  };
8137
8613
 
8138
- const TTL = 6000;
8139
- const VERSION$1 = "b593e197e57b5cb5b7531e71073daefa";
8140
- function validate$1(obj, path = 'OmniIntakeOutputRepresentation') {
8614
+ const TTL$1 = 6000;
8615
+ const VERSION$2 = "b593e197e57b5cb5b7531e71073daefa";
8616
+ function validate$2(obj, path = 'OmniIntakeOutputRepresentation') {
8141
8617
  const v_error = (() => {
8142
8618
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8143
8619
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8185,23 +8661,23 @@ function validate$1(obj, path = 'OmniIntakeOutputRepresentation') {
8185
8661
  })();
8186
8662
  return v_error === undefined ? null : v_error;
8187
8663
  }
8188
- const RepresentationType$1 = 'OmniIntakeOutputRepresentation';
8189
- function keyBuilder$2(luvio, config) {
8190
- return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
8664
+ const RepresentationType$2 = 'OmniIntakeOutputRepresentation';
8665
+ function keyBuilder$3(luvio, config) {
8666
+ return keyPrefix + '::' + RepresentationType$2 + ':' + config.id;
8191
8667
  }
8192
- function keyBuilderFromType(luvio, object) {
8668
+ function keyBuilderFromType$1(luvio, object) {
8193
8669
  const keyParams = {
8194
8670
  id: object.id
8195
8671
  };
8196
- return keyBuilder$2(luvio, keyParams);
8672
+ return keyBuilder$3(luvio, keyParams);
8197
8673
  }
8198
- function normalize$1(input, existing, path, luvio, store, timestamp) {
8674
+ function normalize$2(input, existing, path, luvio, store, timestamp) {
8199
8675
  return input;
8200
8676
  }
8201
- const select$3 = function OmniIntakeOutputRepresentationSelect() {
8677
+ const select$5 = function OmniIntakeOutputRepresentationSelect() {
8202
8678
  return {
8203
8679
  kind: 'Fragment',
8204
- version: VERSION$1,
8680
+ version: VERSION$2,
8205
8681
  private: [],
8206
8682
  selections: [
8207
8683
  {
@@ -8239,7 +8715,7 @@ const select$3 = function OmniIntakeOutputRepresentationSelect() {
8239
8715
  ]
8240
8716
  };
8241
8717
  };
8242
- function equals$1(existing, incoming) {
8718
+ function equals$2(existing, incoming) {
8243
8719
  const existing_description = existing.description;
8244
8720
  const incoming_description = incoming.description;
8245
8721
  if (!(existing_description === incoming_description)) {
@@ -8282,41 +8758,41 @@ function equals$1(existing, incoming) {
8282
8758
  }
8283
8759
  return true;
8284
8760
  }
8285
- const ingest$1 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8761
+ const ingest$2 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8286
8762
  if (process.env.NODE_ENV !== 'production') {
8287
- const validateError = validate$1(input);
8763
+ const validateError = validate$2(input);
8288
8764
  if (validateError !== null) {
8289
8765
  throw validateError;
8290
8766
  }
8291
8767
  }
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);
8768
+ const key = keyBuilderFromType$1(luvio, input);
8769
+ const ttlToUse = TTL$1;
8770
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
8295
8771
  return createLink(key);
8296
8772
  };
8297
- function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
8773
+ function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
8298
8774
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8299
- const rootKey = keyBuilderFromType(luvio, input);
8775
+ const rootKey = keyBuilderFromType$1(luvio, input);
8300
8776
  rootKeySet.set(rootKey, {
8301
8777
  namespace: keyPrefix,
8302
- representationName: RepresentationType$1,
8778
+ representationName: RepresentationType$2,
8303
8779
  mergeable: false
8304
8780
  });
8305
8781
  }
8306
8782
 
8307
- function select$2(luvio, params) {
8308
- return select$3();
8783
+ function select$4(luvio, params) {
8784
+ return select$5();
8309
8785
  }
8310
- function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
8311
- getTypeCacheKeys$1(storeKeyMap, luvio, response);
8786
+ function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
8787
+ getTypeCacheKeys$2(storeKeyMap, luvio, response);
8312
8788
  }
8313
- function ingestSuccess$1(luvio, resourceParams, response) {
8789
+ function ingestSuccess$2(luvio, resourceParams, response) {
8314
8790
  const { body } = response;
8315
- const key = keyBuilderFromType(luvio, body);
8316
- luvio.storeIngest(key, ingest$1, body);
8791
+ const key = keyBuilderFromType$1(luvio, body);
8792
+ luvio.storeIngest(key, ingest$2, body);
8317
8793
  const snapshot = luvio.storeLookup({
8318
8794
  recordId: key,
8319
- node: select$2(),
8795
+ node: select$4(),
8320
8796
  variables: {},
8321
8797
  });
8322
8798
  if (process.env.NODE_ENV !== 'production') {
@@ -8327,7 +8803,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
8327
8803
  deepFreeze(snapshot.data);
8328
8804
  return snapshot;
8329
8805
  }
8330
- function createResourceRequest$1(config) {
8806
+ function createResourceRequest$2(config) {
8331
8807
  const headers = {};
8332
8808
  return {
8333
8809
  baseUri: '/services/data/v65.0',
@@ -8341,43 +8817,43 @@ function createResourceRequest$1(config) {
8341
8817
  };
8342
8818
  }
8343
8819
 
8344
- const adapterName$1 = 'generateOmniScript';
8820
+ const adapterName$2 = 'generateOmniScript';
8345
8821
  const generateOmniScript_ConfigPropertyMetadata = [
8346
8822
  generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
8347
8823
  generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
8348
8824
  generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
8349
8825
  ];
8350
- const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, generateOmniScript_ConfigPropertyMetadata);
8351
- const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(generateOmniScript_ConfigPropertyMetadata);
8352
- function typeCheckConfig$1(untrustedConfig) {
8826
+ const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateOmniScript_ConfigPropertyMetadata);
8827
+ const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(generateOmniScript_ConfigPropertyMetadata);
8828
+ function typeCheckConfig$2(untrustedConfig) {
8353
8829
  const config = {};
8354
- typeCheckConfig$9(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
8830
+ typeCheckConfig$d(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
8355
8831
  return config;
8356
8832
  }
8357
- function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
8833
+ function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
8358
8834
  if (!untrustedIsObject(untrustedConfig)) {
8359
8835
  return null;
8360
8836
  }
8361
8837
  if (process.env.NODE_ENV !== 'production') {
8362
8838
  validateConfig(untrustedConfig, configPropertyNames);
8363
8839
  }
8364
- const config = typeCheckConfig$1(untrustedConfig);
8840
+ const config = typeCheckConfig$2(untrustedConfig);
8365
8841
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8366
8842
  return null;
8367
8843
  }
8368
8844
  return config;
8369
8845
  }
8370
- function buildNetworkSnapshot$1(luvio, config, options) {
8371
- const resourceParams = createResourceParams$1(config);
8372
- const request = createResourceRequest$1(resourceParams);
8846
+ function buildNetworkSnapshot$2(luvio, config, options) {
8847
+ const resourceParams = createResourceParams$2(config);
8848
+ const request = createResourceRequest$2(resourceParams);
8373
8849
  return luvio.dispatchResourceRequest(request, options)
8374
8850
  .then((response) => {
8375
8851
  return luvio.handleSuccessResponse(() => {
8376
- const snapshot = ingestSuccess$1(luvio, resourceParams, response);
8852
+ const snapshot = ingestSuccess$2(luvio, resourceParams, response);
8377
8853
  return luvio.storeBroadcast().then(() => snapshot);
8378
8854
  }, () => {
8379
8855
  const cache = new StoreKeyMap();
8380
- getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
8856
+ getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
8381
8857
  return cache;
8382
8858
  });
8383
8859
  }, (response) => {
@@ -8387,17 +8863,17 @@ function buildNetworkSnapshot$1(luvio, config, options) {
8387
8863
  }
8388
8864
  const generateOmniScriptAdapterFactory = (luvio) => {
8389
8865
  return function generateOmniScript(untrustedConfig) {
8390
- const config = validateAdapterConfig$1(untrustedConfig, generateOmniScript_ConfigPropertyNames);
8866
+ const config = validateAdapterConfig$2(untrustedConfig, generateOmniScript_ConfigPropertyNames);
8391
8867
  // Invalid or incomplete config
8392
8868
  if (config === null) {
8393
8869
  throw new Error('Invalid config for "generateOmniScript"');
8394
8870
  }
8395
- return buildNetworkSnapshot$1(luvio, config);
8871
+ return buildNetworkSnapshot$2(luvio, config);
8396
8872
  };
8397
8873
  };
8398
8874
 
8399
- const VERSION = "4f891f8b58d8bba310f23859c6c0bb4d";
8400
- function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
8875
+ const VERSION$1 = "4f891f8b58d8bba310f23859c6c0bb4d";
8876
+ function validate$1(obj, path = 'ServiceRequestGetOutputRepresentation') {
8401
8877
  const v_error = (() => {
8402
8878
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
8403
8879
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -8453,14 +8929,14 @@ function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
8453
8929
  })();
8454
8930
  return v_error === undefined ? null : v_error;
8455
8931
  }
8456
- const RepresentationType = 'ServiceRequestGetOutputRepresentation';
8457
- function normalize(input, existing, path, luvio, store, timestamp) {
8932
+ const RepresentationType$1 = 'ServiceRequestGetOutputRepresentation';
8933
+ function normalize$1(input, existing, path, luvio, store, timestamp) {
8458
8934
  return input;
8459
8935
  }
8460
- const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
8936
+ const select$3 = function ServiceRequestGetOutputRepresentationSelect() {
8461
8937
  return {
8462
8938
  kind: 'Fragment',
8463
- version: VERSION,
8939
+ version: VERSION$1,
8464
8940
  private: [],
8465
8941
  selections: [
8466
8942
  {
@@ -8481,7 +8957,7 @@ const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
8481
8957
  ]
8482
8958
  };
8483
8959
  };
8484
- function equals(existing, incoming) {
8960
+ function equals$1(existing, incoming) {
8485
8961
  const existing_anchor = existing.anchor;
8486
8962
  const incoming_anchor = incoming.anchor;
8487
8963
  // if at least one of these optionals is defined
@@ -8538,44 +9014,44 @@ function equals(existing, incoming) {
8538
9014
  }
8539
9015
  return true;
8540
9016
  }
8541
- const ingest = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9017
+ const ingest$1 = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
8542
9018
  if (process.env.NODE_ENV !== 'production') {
8543
- const validateError = validate(input);
9019
+ const validateError = validate$1(input);
8544
9020
  if (validateError !== null) {
8545
9021
  throw validateError;
8546
9022
  }
8547
9023
  }
8548
9024
  const key = path.fullPath;
8549
9025
  const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
8550
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
9026
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ecm", VERSION$1, RepresentationType$1, equals$1);
8551
9027
  return createLink(key);
8552
9028
  };
8553
- function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
9029
+ function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
8554
9030
  // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
8555
9031
  const rootKey = fullPathFactory();
8556
9032
  rootKeySet.set(rootKey, {
8557
9033
  namespace: keyPrefix,
8558
- representationName: RepresentationType,
9034
+ representationName: RepresentationType$1,
8559
9035
  mergeable: false
8560
9036
  });
8561
9037
  }
8562
9038
 
8563
- function select(luvio, params) {
8564
- return select$1();
9039
+ function select$2(luvio, params) {
9040
+ return select$3();
8565
9041
  }
8566
- function keyBuilder$1(luvio, params) {
9042
+ function keyBuilder$2(luvio, params) {
8567
9043
  return keyPrefix + '::ServiceRequestGetOutputRepresentation:(' + 'serviceRequestId:' + params.urlParams.serviceRequestId + ')';
8568
9044
  }
8569
- function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
8570
- getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
9045
+ function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
9046
+ getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
8571
9047
  }
8572
- function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
9048
+ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
8573
9049
  const { body } = response;
8574
- const key = keyBuilder$1(luvio, resourceParams);
8575
- luvio.storeIngest(key, ingest, body);
9050
+ const key = keyBuilder$2(luvio, resourceParams);
9051
+ luvio.storeIngest(key, ingest$1, body);
8576
9052
  const snapshot = luvio.storeLookup({
8577
9053
  recordId: key,
8578
- node: select(),
9054
+ node: select$2(),
8579
9055
  variables: {},
8580
9056
  }, snapshotRefresh);
8581
9057
  if (process.env.NODE_ENV !== 'production') {
@@ -8587,12 +9063,12 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
8587
9063
  return snapshot;
8588
9064
  }
8589
9065
  function ingestError(luvio, params, error, snapshotRefresh) {
8590
- const key = keyBuilder$1(luvio, params);
9066
+ const key = keyBuilder$2(luvio, params);
8591
9067
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
8592
9068
  luvio.storeIngestError(key, errorSnapshot);
8593
9069
  return errorSnapshot;
8594
9070
  }
8595
- function createResourceRequest(config) {
9071
+ function createResourceRequest$1(config) {
8596
9072
  const headers = {};
8597
9073
  return {
8598
9074
  baseUri: '/services/data/v65.0',
@@ -8606,60 +9082,60 @@ function createResourceRequest(config) {
8606
9082
  };
8607
9083
  }
8608
9084
 
8609
- const adapterName = 'getServiceRequest';
9085
+ const adapterName$1 = 'getServiceRequest';
8610
9086
  const getServiceRequest_ConfigPropertyMetadata = [
8611
9087
  generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
8612
9088
  ];
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);
9089
+ const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getServiceRequest_ConfigPropertyMetadata);
9090
+ const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(getServiceRequest_ConfigPropertyMetadata);
9091
+ function keyBuilder$1(luvio, config) {
9092
+ const resourceParams = createResourceParams$1(config);
9093
+ return keyBuilder$2(luvio, resourceParams);
8618
9094
  }
8619
- function typeCheckConfig(untrustedConfig) {
9095
+ function typeCheckConfig$1(untrustedConfig) {
8620
9096
  const config = {};
8621
- typeCheckConfig$9(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
9097
+ typeCheckConfig$d(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
8622
9098
  return config;
8623
9099
  }
8624
- function validateAdapterConfig(untrustedConfig, configPropertyNames) {
9100
+ function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
8625
9101
  if (!untrustedIsObject(untrustedConfig)) {
8626
9102
  return null;
8627
9103
  }
8628
9104
  if (process.env.NODE_ENV !== 'production') {
8629
9105
  validateConfig(untrustedConfig, configPropertyNames);
8630
9106
  }
8631
- const config = typeCheckConfig(untrustedConfig);
9107
+ const config = typeCheckConfig$1(untrustedConfig);
8632
9108
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
8633
9109
  return null;
8634
9110
  }
8635
9111
  return config;
8636
9112
  }
8637
9113
  function adapterFragment(luvio, config) {
8638
- createResourceParams(config);
8639
- return select();
9114
+ createResourceParams$1(config);
9115
+ return select$2();
8640
9116
  }
8641
9117
  function onFetchResponseSuccess(luvio, config, resourceParams, response) {
8642
- const snapshot = ingestSuccess(luvio, resourceParams, response, {
9118
+ const snapshot = ingestSuccess$1(luvio, resourceParams, response, {
8643
9119
  config,
8644
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
9120
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8645
9121
  });
8646
9122
  return luvio.storeBroadcast().then(() => snapshot);
8647
9123
  }
8648
9124
  function onFetchResponseError(luvio, config, resourceParams, response) {
8649
9125
  const snapshot = ingestError(luvio, resourceParams, response, {
8650
9126
  config,
8651
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
9127
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8652
9128
  });
8653
9129
  return luvio.storeBroadcast().then(() => snapshot);
8654
9130
  }
8655
- function buildNetworkSnapshot(luvio, config, options) {
8656
- const resourceParams = createResourceParams(config);
8657
- const request = createResourceRequest(resourceParams);
9131
+ function buildNetworkSnapshot$1(luvio, config, options) {
9132
+ const resourceParams = createResourceParams$1(config);
9133
+ const request = createResourceRequest$1(resourceParams);
8658
9134
  return luvio.dispatchResourceRequest(request, options)
8659
9135
  .then((response) => {
8660
9136
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
8661
9137
  const cache = new StoreKeyMap();
8662
- getResponseCacheKeys(cache, luvio, resourceParams, response.body);
9138
+ getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
8663
9139
  return cache;
8664
9140
  });
8665
9141
  }, (response) => {
@@ -8667,23 +9143,23 @@ function buildNetworkSnapshot(luvio, config, options) {
8667
9143
  });
8668
9144
  }
8669
9145
  function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
8670
- return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
9146
+ return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$1, undefined, false);
8671
9147
  }
8672
9148
  function buildCachedSnapshotCachePolicy(context, storeLookup) {
8673
9149
  const { luvio, config } = context;
8674
9150
  const selector = {
8675
- recordId: keyBuilder(luvio, config),
9151
+ recordId: keyBuilder$1(luvio, config),
8676
9152
  node: adapterFragment(luvio, config),
8677
9153
  variables: {},
8678
9154
  };
8679
9155
  const cacheSnapshot = storeLookup(selector, {
8680
9156
  config,
8681
- resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
9157
+ resolve: () => buildNetworkSnapshot$1(luvio, config, snapshotRefreshOptions)
8682
9158
  });
8683
9159
  return cacheSnapshot;
8684
9160
  }
8685
9161
  const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceRequest(untrustedConfig, requestContext) {
8686
- const config = validateAdapterConfig(untrustedConfig, getServiceRequest_ConfigPropertyNames);
9162
+ const config = validateAdapterConfig$1(untrustedConfig, getServiceRequest_ConfigPropertyNames);
8687
9163
  // Invalid or incomplete config
8688
9164
  if (config === null) {
8689
9165
  return null;
@@ -8692,4 +9168,193 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
8692
9168
  buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
8693
9169
  };
8694
9170
 
8695
- export { createCatalogItemAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };
9171
+ const TTL = 6000;
9172
+ const VERSION = "86e4694b8895fc704a6e48475634556a";
9173
+ function validate(obj, path = 'DeploymentOutputRepresentation') {
9174
+ const v_error = (() => {
9175
+ if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
9176
+ return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
9177
+ }
9178
+ const obj_deploymentResult = obj.deploymentResult;
9179
+ const path_deploymentResult = path + '.deploymentResult';
9180
+ if (typeof obj_deploymentResult !== 'string') {
9181
+ return new TypeError('Expected "string" but received "' + typeof obj_deploymentResult + '" (at "' + path_deploymentResult + '")');
9182
+ }
9183
+ const obj_status = obj.status;
9184
+ const path_status = path + '.status';
9185
+ if (typeof obj_status !== 'string') {
9186
+ return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
9187
+ }
9188
+ const obj_templateId = obj.templateId;
9189
+ const path_templateId = path + '.templateId';
9190
+ if (typeof obj_templateId !== 'string') {
9191
+ return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
9192
+ }
9193
+ })();
9194
+ return v_error === undefined ? null : v_error;
9195
+ }
9196
+ const RepresentationType = 'DeploymentOutputRepresentation';
9197
+ function keyBuilder(luvio, config) {
9198
+ return keyPrefix + '::' + RepresentationType + ':' + config.templateId;
9199
+ }
9200
+ function keyBuilderFromType(luvio, object) {
9201
+ const keyParams = {
9202
+ templateId: object.templateId
9203
+ };
9204
+ return keyBuilder(luvio, keyParams);
9205
+ }
9206
+ function normalize(input, existing, path, luvio, store, timestamp) {
9207
+ return input;
9208
+ }
9209
+ const select$1 = function DeploymentOutputRepresentationSelect() {
9210
+ return {
9211
+ kind: 'Fragment',
9212
+ version: VERSION,
9213
+ private: [],
9214
+ selections: [
9215
+ {
9216
+ name: 'deploymentResult',
9217
+ kind: 'Scalar'
9218
+ },
9219
+ {
9220
+ name: 'status',
9221
+ kind: 'Scalar'
9222
+ },
9223
+ {
9224
+ name: 'templateId',
9225
+ kind: 'Scalar'
9226
+ }
9227
+ ]
9228
+ };
9229
+ };
9230
+ function equals(existing, incoming) {
9231
+ const existing_deploymentResult = existing.deploymentResult;
9232
+ const incoming_deploymentResult = incoming.deploymentResult;
9233
+ if (!(existing_deploymentResult === incoming_deploymentResult)) {
9234
+ return false;
9235
+ }
9236
+ const existing_status = existing.status;
9237
+ const incoming_status = incoming.status;
9238
+ if (!(existing_status === incoming_status)) {
9239
+ return false;
9240
+ }
9241
+ const existing_templateId = existing.templateId;
9242
+ const incoming_templateId = incoming.templateId;
9243
+ if (!(existing_templateId === incoming_templateId)) {
9244
+ return false;
9245
+ }
9246
+ return true;
9247
+ }
9248
+ const ingest = function DeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
9249
+ if (process.env.NODE_ENV !== 'production') {
9250
+ const validateError = validate(input);
9251
+ if (validateError !== null) {
9252
+ throw validateError;
9253
+ }
9254
+ }
9255
+ const key = keyBuilderFromType(luvio, input);
9256
+ const ttlToUse = TTL;
9257
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
9258
+ return createLink(key);
9259
+ };
9260
+ function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
9261
+ // root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
9262
+ const rootKey = keyBuilderFromType(luvio, input);
9263
+ rootKeySet.set(rootKey, {
9264
+ namespace: keyPrefix,
9265
+ representationName: RepresentationType,
9266
+ mergeable: false
9267
+ });
9268
+ }
9269
+
9270
+ function select(luvio, params) {
9271
+ return select$1();
9272
+ }
9273
+ function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
9274
+ getTypeCacheKeys(storeKeyMap, luvio, response);
9275
+ }
9276
+ function ingestSuccess(luvio, resourceParams, response) {
9277
+ const { body } = response;
9278
+ const key = keyBuilderFromType(luvio, body);
9279
+ luvio.storeIngest(key, ingest, body);
9280
+ const snapshot = luvio.storeLookup({
9281
+ recordId: key,
9282
+ node: select(),
9283
+ variables: {},
9284
+ });
9285
+ if (process.env.NODE_ENV !== 'production') {
9286
+ if (snapshot.state !== 'Fulfilled') {
9287
+ throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
9288
+ }
9289
+ }
9290
+ deepFreeze(snapshot.data);
9291
+ return snapshot;
9292
+ }
9293
+ function createResourceRequest(config) {
9294
+ const headers = {};
9295
+ return {
9296
+ baseUri: '/services/data/v65.0',
9297
+ basePath: '/connect/service-automation/template/deploy/' + config.urlParams.templateId + '',
9298
+ method: 'post',
9299
+ body: null,
9300
+ urlParams: config.urlParams,
9301
+ queryParams: {},
9302
+ headers,
9303
+ priority: 'normal',
9304
+ };
9305
+ }
9306
+
9307
+ const adapterName = 'deployTemplate';
9308
+ const deployTemplate_ConfigPropertyMetadata = [
9309
+ generateParamConfigMetadata('templateId', true, 0 /* UrlParameter */, 0 /* String */),
9310
+ ];
9311
+ const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, deployTemplate_ConfigPropertyMetadata);
9312
+ const createResourceParams = /*#__PURE__*/ createResourceParams$d(deployTemplate_ConfigPropertyMetadata);
9313
+ function typeCheckConfig(untrustedConfig) {
9314
+ const config = {};
9315
+ typeCheckConfig$d(untrustedConfig, config, deployTemplate_ConfigPropertyMetadata);
9316
+ return config;
9317
+ }
9318
+ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
9319
+ if (!untrustedIsObject(untrustedConfig)) {
9320
+ return null;
9321
+ }
9322
+ if (process.env.NODE_ENV !== 'production') {
9323
+ validateConfig(untrustedConfig, configPropertyNames);
9324
+ }
9325
+ const config = typeCheckConfig(untrustedConfig);
9326
+ if (!areRequiredParametersPresent(config, configPropertyNames)) {
9327
+ return null;
9328
+ }
9329
+ return config;
9330
+ }
9331
+ function buildNetworkSnapshot(luvio, config, options) {
9332
+ const resourceParams = createResourceParams(config);
9333
+ const request = createResourceRequest(resourceParams);
9334
+ return luvio.dispatchResourceRequest(request, options)
9335
+ .then((response) => {
9336
+ return luvio.handleSuccessResponse(() => {
9337
+ const snapshot = ingestSuccess(luvio, resourceParams, response);
9338
+ return luvio.storeBroadcast().then(() => snapshot);
9339
+ }, () => {
9340
+ const cache = new StoreKeyMap();
9341
+ getResponseCacheKeys(cache, luvio, resourceParams, response.body);
9342
+ return cache;
9343
+ });
9344
+ }, (response) => {
9345
+ deepFreeze(response);
9346
+ throw response;
9347
+ });
9348
+ }
9349
+ const deployTemplateAdapterFactory = (luvio) => {
9350
+ return function deployTemplate(untrustedConfig) {
9351
+ const config = validateAdapterConfig(untrustedConfig, deployTemplate_ConfigPropertyNames);
9352
+ // Invalid or incomplete config
9353
+ if (config === null) {
9354
+ throw new Error('Invalid config for "deployTemplate"');
9355
+ }
9356
+ return buildNetworkSnapshot(luvio, config);
9357
+ };
9358
+ };
9359
+
9360
+ export { createAgentActionAdapterFactory, createAgentFlowAdapterFactory, createCatalogItemAdapterFactory, deployTemplateAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getAllServiceProcessTemplateAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };