@salesforce/lds-adapters-service-ecm 1.360.1 → 1.362.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.
- package/dist/es/es2018/service-ecm.js +635 -396
- package/dist/es/es2018/types/src/generated/adapters/generateIntakeForm.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +2 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationIntakeFormGenerateIntakeForm.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/GenerateIntakeFormInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/GenerateIntakeFormOutputRepresentation.d.ts +47 -0
- package/package.json +3 -3
- package/sfdc/index.js +437 -195
- package/src/raml/api.raml +59 -0
- package/src/raml/luvio.raml +8 -0
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$9, typeCheckConfig as typeCheckConfig$9, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$4 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -122,7 +122,7 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
function validate$
|
|
125
|
+
function validate$z(obj, path = 'AgentActionInputRepresentation') {
|
|
126
126
|
const v_error = (() => {
|
|
127
127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
128
128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -243,7 +243,7 @@ function validate$y(obj, path = 'AgentActionInputRepresentation') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$y(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
247
247
|
const v_error = (() => {
|
|
248
248
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
249
249
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -336,7 +336,7 @@ function validate$x(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
336
336
|
return v_error === undefined ? null : v_error;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
function validate$
|
|
339
|
+
function validate$x(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
340
340
|
const v_error = (() => {
|
|
341
341
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
342
342
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -415,7 +415,7 @@ function validate$w(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
415
415
|
return v_error === undefined ? null : v_error;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function validate$
|
|
418
|
+
function validate$w(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
419
419
|
const v_error = (() => {
|
|
420
420
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
421
421
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -781,7 +781,7 @@ function validate$v(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
781
781
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
782
782
|
let obj_picklistOptions_item_union0 = null;
|
|
783
783
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
784
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
784
|
+
const referencepath_picklistOptions_itemValidationError = validate$x(obj_picklistOptions_item, path_picklistOptions_item);
|
|
785
785
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
786
786
|
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
787
787
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -840,7 +840,7 @@ function validate$v(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
840
840
|
return v_error === undefined ? null : v_error;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
function validate$
|
|
843
|
+
function validate$v(obj, path = 'SectionInputRepresentation') {
|
|
844
844
|
const v_error = (() => {
|
|
845
845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
846
846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -982,7 +982,7 @@ function validate$u(obj, path = 'SectionInputRepresentation') {
|
|
|
982
982
|
return v_error === undefined ? null : v_error;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
function validate$
|
|
985
|
+
function validate$u(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
986
986
|
const v_error = (() => {
|
|
987
987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
988
988
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1047,7 +1047,7 @@ function validate$t(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
1047
1047
|
return v_error === undefined ? null : v_error;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
function validate$
|
|
1050
|
+
function validate$t(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
1051
1051
|
const v_error = (() => {
|
|
1052
1052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1053
1053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1168,7 +1168,7 @@ function validate$s(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1168
1168
|
return v_error === undefined ? null : v_error;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
-
function validate$
|
|
1171
|
+
function validate$s(obj, path = 'IntakeFormInputRepresentation') {
|
|
1172
1172
|
const v_error = (() => {
|
|
1173
1173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1174
1174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1289,7 +1289,7 @@ function validate$r(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1289
1289
|
return v_error === undefined ? null : v_error;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
function validate$
|
|
1292
|
+
function validate$r(obj, path = 'IntegrationDefInputRepresentation') {
|
|
1293
1293
|
const v_error = (() => {
|
|
1294
1294
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1295
1295
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1382,7 +1382,7 @@ function validate$q(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1382
1382
|
return v_error === undefined ? null : v_error;
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
-
function validate$
|
|
1385
|
+
function validate$q(obj, path = 'PreprocessorInputRepresentation') {
|
|
1386
1386
|
const v_error = (() => {
|
|
1387
1387
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1388
1388
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1475,7 +1475,7 @@ function validate$p(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1475
1475
|
return v_error === undefined ? null : v_error;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
function validate$
|
|
1478
|
+
function validate$p(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1479
1479
|
const v_error = (() => {
|
|
1480
1480
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1481
1481
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1666,8 +1666,8 @@ function validate$o(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
1666
1666
|
return v_error === undefined ? null : v_error;
|
|
1667
1667
|
}
|
|
1668
1668
|
|
|
1669
|
-
const VERSION$
|
|
1670
|
-
function validate$
|
|
1669
|
+
const VERSION$i = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1670
|
+
function validate$o(obj, path = 'AgentActionOutputRepresentation') {
|
|
1671
1671
|
const v_error = (() => {
|
|
1672
1672
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1673
1673
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1759,10 +1759,10 @@ function validate$n(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1759
1759
|
})();
|
|
1760
1760
|
return v_error === undefined ? null : v_error;
|
|
1761
1761
|
}
|
|
1762
|
-
const select$
|
|
1762
|
+
const select$r = function AgentActionOutputRepresentationSelect() {
|
|
1763
1763
|
return {
|
|
1764
1764
|
kind: 'Fragment',
|
|
1765
|
-
version: VERSION$
|
|
1765
|
+
version: VERSION$i,
|
|
1766
1766
|
private: [],
|
|
1767
1767
|
selections: [
|
|
1768
1768
|
{
|
|
@@ -1783,7 +1783,7 @@ const select$p = function AgentActionOutputRepresentationSelect() {
|
|
|
1783
1783
|
]
|
|
1784
1784
|
};
|
|
1785
1785
|
};
|
|
1786
|
-
function equals$
|
|
1786
|
+
function equals$i(existing, incoming) {
|
|
1787
1787
|
const existing_agentActionId = existing.agentActionId;
|
|
1788
1788
|
const incoming_agentActionId = incoming.agentActionId;
|
|
1789
1789
|
// if at least one of these optionals is defined
|
|
@@ -1826,8 +1826,8 @@ function equals$h(existing, incoming) {
|
|
|
1826
1826
|
return true;
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
|
-
const VERSION$
|
|
1830
|
-
function validate$
|
|
1829
|
+
const VERSION$h = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1830
|
+
function validate$n(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1831
1831
|
const v_error = (() => {
|
|
1832
1832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1833
1833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1891,10 +1891,10 @@ function validate$m(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1891
1891
|
})();
|
|
1892
1892
|
return v_error === undefined ? null : v_error;
|
|
1893
1893
|
}
|
|
1894
|
-
const select$
|
|
1894
|
+
const select$q = function AssociatedArticleOutputRepresentationSelect() {
|
|
1895
1895
|
return {
|
|
1896
1896
|
kind: 'Fragment',
|
|
1897
|
-
version: VERSION$
|
|
1897
|
+
version: VERSION$h,
|
|
1898
1898
|
private: [],
|
|
1899
1899
|
selections: [
|
|
1900
1900
|
{
|
|
@@ -1910,7 +1910,7 @@ const select$o = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1910
1910
|
]
|
|
1911
1911
|
};
|
|
1912
1912
|
};
|
|
1913
|
-
function equals$
|
|
1913
|
+
function equals$h(existing, incoming) {
|
|
1914
1914
|
const existing_id = existing.id;
|
|
1915
1915
|
const incoming_id = incoming.id;
|
|
1916
1916
|
// if at least one of these optionals is defined
|
|
@@ -1940,8 +1940,8 @@ function equals$g(existing, incoming) {
|
|
|
1940
1940
|
return true;
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
1943
|
-
const VERSION$
|
|
1944
|
-
function validate$
|
|
1943
|
+
const VERSION$g = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1944
|
+
function validate$m(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1945
1945
|
const v_error = (() => {
|
|
1946
1946
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1947
1947
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2005,10 +2005,10 @@ function validate$l(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
2005
2005
|
})();
|
|
2006
2006
|
return v_error === undefined ? null : v_error;
|
|
2007
2007
|
}
|
|
2008
|
-
const select$
|
|
2008
|
+
const select$p = function EligibilityRuleOutputRepresentationSelect() {
|
|
2009
2009
|
return {
|
|
2010
2010
|
kind: 'Fragment',
|
|
2011
|
-
version: VERSION$
|
|
2011
|
+
version: VERSION$g,
|
|
2012
2012
|
private: [],
|
|
2013
2013
|
selections: [
|
|
2014
2014
|
{
|
|
@@ -2024,7 +2024,7 @@ const select$n = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
2024
2024
|
]
|
|
2025
2025
|
};
|
|
2026
2026
|
};
|
|
2027
|
-
function equals$
|
|
2027
|
+
function equals$g(existing, incoming) {
|
|
2028
2028
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
2029
2029
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
2030
2030
|
// if at least one of these optionals is defined
|
|
@@ -2054,8 +2054,8 @@ function equals$f(existing, incoming) {
|
|
|
2054
2054
|
return true;
|
|
2055
2055
|
}
|
|
2056
2056
|
|
|
2057
|
-
const VERSION$
|
|
2058
|
-
function validate$
|
|
2057
|
+
const VERSION$f = "b5216beece7c04763cff6924e6953f93";
|
|
2058
|
+
function validate$l(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
2059
2059
|
const v_error = (() => {
|
|
2060
2060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2061
2061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2147,10 +2147,10 @@ function validate$k(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2147
2147
|
})();
|
|
2148
2148
|
return v_error === undefined ? null : v_error;
|
|
2149
2149
|
}
|
|
2150
|
-
const select$
|
|
2150
|
+
const select$o = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2151
2151
|
return {
|
|
2152
2152
|
kind: 'Fragment',
|
|
2153
|
-
version: VERSION$
|
|
2153
|
+
version: VERSION$f,
|
|
2154
2154
|
private: [],
|
|
2155
2155
|
selections: [
|
|
2156
2156
|
{
|
|
@@ -2171,7 +2171,7 @@ const select$m = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2171
2171
|
]
|
|
2172
2172
|
};
|
|
2173
2173
|
};
|
|
2174
|
-
function equals$
|
|
2174
|
+
function equals$f(existing, incoming) {
|
|
2175
2175
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
2176
2176
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
2177
2177
|
// if at least one of these optionals is defined
|
|
@@ -2214,8 +2214,8 @@ function equals$e(existing, incoming) {
|
|
|
2214
2214
|
return true;
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
|
-
const VERSION$
|
|
2218
|
-
function validate$
|
|
2217
|
+
const VERSION$e = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2218
|
+
function validate$k(obj, path = 'IntakeFormOutputRepresentation') {
|
|
2219
2219
|
const v_error = (() => {
|
|
2220
2220
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2221
2221
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2447,10 +2447,10 @@ function validate$j(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2447
2447
|
})();
|
|
2448
2448
|
return v_error === undefined ? null : v_error;
|
|
2449
2449
|
}
|
|
2450
|
-
const select$
|
|
2450
|
+
const select$n = function IntakeFormOutputRepresentationSelect() {
|
|
2451
2451
|
return {
|
|
2452
2452
|
kind: 'Fragment',
|
|
2453
|
-
version: VERSION$
|
|
2453
|
+
version: VERSION$e,
|
|
2454
2454
|
private: [],
|
|
2455
2455
|
selections: [
|
|
2456
2456
|
{
|
|
@@ -2496,7 +2496,7 @@ const select$l = function IntakeFormOutputRepresentationSelect() {
|
|
|
2496
2496
|
]
|
|
2497
2497
|
};
|
|
2498
2498
|
};
|
|
2499
|
-
function equals$
|
|
2499
|
+
function equals$e(existing, incoming) {
|
|
2500
2500
|
const existing_id = existing.id;
|
|
2501
2501
|
const incoming_id = incoming.id;
|
|
2502
2502
|
// if at least one of these optionals is defined
|
|
@@ -2604,8 +2604,8 @@ function equals$d(existing, incoming) {
|
|
|
2604
2604
|
return true;
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
|
-
const VERSION$
|
|
2608
|
-
function validate$
|
|
2607
|
+
const VERSION$d = "1006a153c933b8bc4b1d44663893e206";
|
|
2608
|
+
function validate$j(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
2609
2609
|
const v_error = (() => {
|
|
2610
2610
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2611
2611
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2669,10 +2669,10 @@ function validate$i(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2669
2669
|
})();
|
|
2670
2670
|
return v_error === undefined ? null : v_error;
|
|
2671
2671
|
}
|
|
2672
|
-
const select$
|
|
2672
|
+
const select$m = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2673
2673
|
return {
|
|
2674
2674
|
kind: 'Fragment',
|
|
2675
|
-
version: VERSION$
|
|
2675
|
+
version: VERSION$d,
|
|
2676
2676
|
private: [],
|
|
2677
2677
|
selections: [
|
|
2678
2678
|
{
|
|
@@ -2688,7 +2688,7 @@ const select$k = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2688
2688
|
]
|
|
2689
2689
|
};
|
|
2690
2690
|
};
|
|
2691
|
-
function equals$
|
|
2691
|
+
function equals$d(existing, incoming) {
|
|
2692
2692
|
const existing_id = existing.id;
|
|
2693
2693
|
const incoming_id = incoming.id;
|
|
2694
2694
|
// if at least one of these optionals is defined
|
|
@@ -2718,8 +2718,8 @@ function equals$c(existing, incoming) {
|
|
|
2718
2718
|
return true;
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
|
-
const VERSION$
|
|
2722
|
-
function validate$
|
|
2721
|
+
const VERSION$c = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2722
|
+
function validate$i(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2723
2723
|
const v_error = (() => {
|
|
2724
2724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2725
2725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2783,10 +2783,10 @@ function validate$h(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2783
2783
|
})();
|
|
2784
2784
|
return v_error === undefined ? null : v_error;
|
|
2785
2785
|
}
|
|
2786
|
-
const select$
|
|
2786
|
+
const select$l = function PreprocessorOutputRepresentationSelect() {
|
|
2787
2787
|
return {
|
|
2788
2788
|
kind: 'Fragment',
|
|
2789
|
-
version: VERSION$
|
|
2789
|
+
version: VERSION$c,
|
|
2790
2790
|
private: [],
|
|
2791
2791
|
selections: [
|
|
2792
2792
|
{
|
|
@@ -2802,7 +2802,7 @@ const select$j = function PreprocessorOutputRepresentationSelect() {
|
|
|
2802
2802
|
]
|
|
2803
2803
|
};
|
|
2804
2804
|
};
|
|
2805
|
-
function equals$
|
|
2805
|
+
function equals$c(existing, incoming) {
|
|
2806
2806
|
const existing_id = existing.id;
|
|
2807
2807
|
const incoming_id = incoming.id;
|
|
2808
2808
|
// if at least one of these optionals is defined
|
|
@@ -2832,8 +2832,8 @@ function equals$b(existing, incoming) {
|
|
|
2832
2832
|
return true;
|
|
2833
2833
|
}
|
|
2834
2834
|
|
|
2835
|
-
const VERSION$
|
|
2836
|
-
function validate$
|
|
2835
|
+
const VERSION$b = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2836
|
+
function validate$h(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
2837
2837
|
const v_error = (() => {
|
|
2838
2838
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2839
2839
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3009,10 +3009,10 @@ function validate$g(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
3009
3009
|
})();
|
|
3010
3010
|
return v_error === undefined ? null : v_error;
|
|
3011
3011
|
}
|
|
3012
|
-
const select$
|
|
3012
|
+
const select$k = function ProductDetailsOutputRepresentationSelect() {
|
|
3013
3013
|
return {
|
|
3014
3014
|
kind: 'Fragment',
|
|
3015
|
-
version: VERSION$
|
|
3015
|
+
version: VERSION$b,
|
|
3016
3016
|
private: [],
|
|
3017
3017
|
selections: [
|
|
3018
3018
|
{
|
|
@@ -3048,7 +3048,7 @@ const select$i = function ProductDetailsOutputRepresentationSelect() {
|
|
|
3048
3048
|
]
|
|
3049
3049
|
};
|
|
3050
3050
|
};
|
|
3051
|
-
function equals$
|
|
3051
|
+
function equals$b(existing, incoming) {
|
|
3052
3052
|
const existing_description = existing.description;
|
|
3053
3053
|
const incoming_description = incoming.description;
|
|
3054
3054
|
// if at least one of these optionals is defined
|
|
@@ -3130,8 +3130,8 @@ function equals$a(existing, incoming) {
|
|
|
3130
3130
|
return true;
|
|
3131
3131
|
}
|
|
3132
3132
|
|
|
3133
|
-
const VERSION$
|
|
3134
|
-
function validate$
|
|
3133
|
+
const VERSION$a = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3134
|
+
function validate$g(obj, path = 'ProductRequestOutputRepresentation') {
|
|
3135
3135
|
const v_error = (() => {
|
|
3136
3136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3137
3137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3145,7 +3145,7 @@ function validate$f(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3145
3145
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
3146
3146
|
const obj_productDetails_item = obj_productDetails[i];
|
|
3147
3147
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
3148
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
3148
|
+
const referencepath_productDetails_itemValidationError = validate$h(obj_productDetails_item, path_productDetails_item);
|
|
3149
3149
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
3150
3150
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
3151
3151
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3324,11 +3324,11 @@ function validate$f(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3324
3324
|
})();
|
|
3325
3325
|
return v_error === undefined ? null : v_error;
|
|
3326
3326
|
}
|
|
3327
|
-
const select$
|
|
3328
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
3327
|
+
const select$j = function ProductRequestOutputRepresentationSelect() {
|
|
3328
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$k();
|
|
3329
3329
|
return {
|
|
3330
3330
|
kind: 'Fragment',
|
|
3331
|
-
version: VERSION$
|
|
3331
|
+
version: VERSION$a,
|
|
3332
3332
|
private: [],
|
|
3333
3333
|
selections: [
|
|
3334
3334
|
{
|
|
@@ -3371,7 +3371,7 @@ const select$h = function ProductRequestOutputRepresentationSelect() {
|
|
|
3371
3371
|
]
|
|
3372
3372
|
};
|
|
3373
3373
|
};
|
|
3374
|
-
function equals$
|
|
3374
|
+
function equals$a(existing, incoming) {
|
|
3375
3375
|
const existing_productDetails = existing.productDetails;
|
|
3376
3376
|
const incoming_productDetails = incoming.productDetails;
|
|
3377
3377
|
// if at least one of these optionals is defined
|
|
@@ -3382,7 +3382,7 @@ function equals$9(existing, incoming) {
|
|
|
3382
3382
|
return false;
|
|
3383
3383
|
}
|
|
3384
3384
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
3385
|
-
if (!(equals$
|
|
3385
|
+
if (!(equals$b(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3386
3386
|
return false;
|
|
3387
3387
|
}
|
|
3388
3388
|
});
|
|
@@ -3471,8 +3471,8 @@ function equals$9(existing, incoming) {
|
|
|
3471
3471
|
return true;
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
|
-
const VERSION$
|
|
3475
|
-
function validate$
|
|
3474
|
+
const VERSION$9 = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3475
|
+
function validate$f(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
3476
3476
|
const v_error = (() => {
|
|
3477
3477
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3478
3478
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3522,10 +3522,10 @@ function validate$e(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
3522
3522
|
})();
|
|
3523
3523
|
return v_error === undefined ? null : v_error;
|
|
3524
3524
|
}
|
|
3525
|
-
const select$
|
|
3525
|
+
const select$i = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3526
3526
|
return {
|
|
3527
3527
|
kind: 'Fragment',
|
|
3528
|
-
version: VERSION$
|
|
3528
|
+
version: VERSION$9,
|
|
3529
3529
|
private: [],
|
|
3530
3530
|
selections: [
|
|
3531
3531
|
{
|
|
@@ -3561,7 +3561,7 @@ const select$g = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
3561
3561
|
]
|
|
3562
3562
|
};
|
|
3563
3563
|
};
|
|
3564
|
-
function equals$
|
|
3564
|
+
function equals$9(existing, incoming) {
|
|
3565
3565
|
const existing_isDefault = existing.isDefault;
|
|
3566
3566
|
const incoming_isDefault = incoming.isDefault;
|
|
3567
3567
|
// if at least one of these optionals is defined
|
|
@@ -3643,8 +3643,8 @@ function equals$8(existing, incoming) {
|
|
|
3643
3643
|
return true;
|
|
3644
3644
|
}
|
|
3645
3645
|
|
|
3646
|
-
const VERSION$
|
|
3647
|
-
function validate$
|
|
3646
|
+
const VERSION$8 = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3647
|
+
function validate$e(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3648
3648
|
const v_error = (() => {
|
|
3649
3649
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3650
3650
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4038,7 +4038,7 @@ function validate$d(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4038
4038
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
4039
4039
|
let obj_picklistOptions_item_union0 = null;
|
|
4040
4040
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
4041
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
4041
|
+
const referencepath_picklistOptions_itemValidationError = validate$f(obj_picklistOptions_item, path_picklistOptions_item);
|
|
4042
4042
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
4043
4043
|
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
4044
4044
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4096,11 +4096,11 @@ function validate$d(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4096
4096
|
})();
|
|
4097
4097
|
return v_error === undefined ? null : v_error;
|
|
4098
4098
|
}
|
|
4099
|
-
const select$
|
|
4100
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
4099
|
+
const select$h = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4100
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$i();
|
|
4101
4101
|
return {
|
|
4102
4102
|
kind: 'Fragment',
|
|
4103
|
-
version: VERSION$
|
|
4103
|
+
version: VERSION$8,
|
|
4104
4104
|
private: [],
|
|
4105
4105
|
selections: [
|
|
4106
4106
|
{
|
|
@@ -4194,7 +4194,7 @@ const select$f = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4194
4194
|
]
|
|
4195
4195
|
};
|
|
4196
4196
|
};
|
|
4197
|
-
function equals$
|
|
4197
|
+
function equals$8(existing, incoming) {
|
|
4198
4198
|
const existing_isEditable = existing.isEditable;
|
|
4199
4199
|
const incoming_isEditable = incoming.isEditable;
|
|
4200
4200
|
// if at least one of these optionals is defined
|
|
@@ -4403,7 +4403,7 @@ function equals$7(existing, incoming) {
|
|
|
4403
4403
|
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
4404
4404
|
|| (existing_picklistOptions_item != null &&
|
|
4405
4405
|
incoming_picklistOptions_item != null &&
|
|
4406
|
-
equals$
|
|
4406
|
+
equals$9(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
});
|
|
@@ -4427,8 +4427,8 @@ function equals$7(existing, incoming) {
|
|
|
4427
4427
|
return true;
|
|
4428
4428
|
}
|
|
4429
4429
|
|
|
4430
|
-
const VERSION$
|
|
4431
|
-
function validate$
|
|
4430
|
+
const VERSION$7 = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4431
|
+
function validate$d(obj, path = 'SectionOutputRepresentation') {
|
|
4432
4432
|
const v_error = (() => {
|
|
4433
4433
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4434
4434
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4444,7 +4444,7 @@ function validate$c(obj, path = 'SectionOutputRepresentation') {
|
|
|
4444
4444
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4445
4445
|
let obj_attributes_item_union0 = null;
|
|
4446
4446
|
const obj_attributes_item_union0_error = (() => {
|
|
4447
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
4447
|
+
const referencepath_attributes_itemValidationError = validate$e(obj_attributes_item, path_attributes_item);
|
|
4448
4448
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4449
4449
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4450
4450
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4565,11 +4565,11 @@ function validate$c(obj, path = 'SectionOutputRepresentation') {
|
|
|
4565
4565
|
})();
|
|
4566
4566
|
return v_error === undefined ? null : v_error;
|
|
4567
4567
|
}
|
|
4568
|
-
const select$
|
|
4569
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
4568
|
+
const select$g = function SectionOutputRepresentationSelect() {
|
|
4569
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$h();
|
|
4570
4570
|
return {
|
|
4571
4571
|
kind: 'Fragment',
|
|
4572
|
-
version: VERSION$
|
|
4572
|
+
version: VERSION$7,
|
|
4573
4573
|
private: [],
|
|
4574
4574
|
selections: [
|
|
4575
4575
|
{
|
|
@@ -4603,7 +4603,7 @@ const select$e = function SectionOutputRepresentationSelect() {
|
|
|
4603
4603
|
]
|
|
4604
4604
|
};
|
|
4605
4605
|
};
|
|
4606
|
-
function equals$
|
|
4606
|
+
function equals$7(existing, incoming) {
|
|
4607
4607
|
const existing_sequence = existing.sequence;
|
|
4608
4608
|
const incoming_sequence = incoming.sequence;
|
|
4609
4609
|
// if at least one of these optionals is defined
|
|
@@ -4630,7 +4630,7 @@ function equals$6(existing, incoming) {
|
|
|
4630
4630
|
if (!(existing_attributes_item === incoming_attributes_item
|
|
4631
4631
|
|| (existing_attributes_item != null &&
|
|
4632
4632
|
incoming_attributes_item != null &&
|
|
4633
|
-
equals$
|
|
4633
|
+
equals$8(existing_attributes_item, incoming_attributes_item)))) {
|
|
4634
4634
|
return false;
|
|
4635
4635
|
}
|
|
4636
4636
|
});
|
|
@@ -4680,9 +4680,9 @@ function equals$6(existing, incoming) {
|
|
|
4680
4680
|
return true;
|
|
4681
4681
|
}
|
|
4682
4682
|
|
|
4683
|
-
const TTL$
|
|
4684
|
-
const VERSION$
|
|
4685
|
-
function validate$
|
|
4683
|
+
const TTL$5 = 6000;
|
|
4684
|
+
const VERSION$6 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4685
|
+
function validate$c(obj, path = 'CatalogItemOutputRepresentation') {
|
|
4686
4686
|
const v_error = (() => {
|
|
4687
4687
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4688
4688
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4692,7 +4692,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4692
4692
|
const path_agentAction = path + '.agentAction';
|
|
4693
4693
|
let obj_agentAction_union0 = null;
|
|
4694
4694
|
const obj_agentAction_union0_error = (() => {
|
|
4695
|
-
const referencepath_agentActionValidationError = validate$
|
|
4695
|
+
const referencepath_agentActionValidationError = validate$o(obj_agentAction, path_agentAction);
|
|
4696
4696
|
if (referencepath_agentActionValidationError !== null) {
|
|
4697
4697
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
4698
4698
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4729,7 +4729,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4729
4729
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
4730
4730
|
let obj_associatedArticles_item_union0 = null;
|
|
4731
4731
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
4732
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
4732
|
+
const referencepath_associatedArticles_itemValidationError = validate$n(obj_associatedArticles_item, path_associatedArticles_item);
|
|
4733
4733
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
4734
4734
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
4735
4735
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4877,7 +4877,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4877
4877
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
4878
4878
|
let obj_eligibilityRules_item_union0 = null;
|
|
4879
4879
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
4880
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4880
|
+
const referencepath_eligibilityRules_itemValidationError = validate$m(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
4881
4881
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
4882
4882
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
4883
4883
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4909,7 +4909,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4909
4909
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
4910
4910
|
let obj_fulfillmentFlow_union0 = null;
|
|
4911
4911
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
4912
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4912
|
+
const referencepath_fulfillmentFlowValidationError = validate$l(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
4913
4913
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
4914
4914
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
4915
4915
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4940,7 +4940,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4940
4940
|
const path_intakeForm = path + '.intakeForm';
|
|
4941
4941
|
let obj_intakeForm_union0 = null;
|
|
4942
4942
|
const obj_intakeForm_union0_error = (() => {
|
|
4943
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4943
|
+
const referencepath_intakeFormValidationError = validate$k(obj_intakeForm, path_intakeForm);
|
|
4944
4944
|
if (referencepath_intakeFormValidationError !== null) {
|
|
4945
4945
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
4946
4946
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4977,7 +4977,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4977
4977
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
4978
4978
|
let obj_integrations_item_union0 = null;
|
|
4979
4979
|
const obj_integrations_item_union0_error = (() => {
|
|
4980
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4980
|
+
const referencepath_integrations_itemValidationError = validate$j(obj_integrations_item, path_integrations_item);
|
|
4981
4981
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
4982
4982
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
4983
4983
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5071,7 +5071,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5071
5071
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
5072
5072
|
let obj_preProcessors_item_union0 = null;
|
|
5073
5073
|
const obj_preProcessors_item_union0_error = (() => {
|
|
5074
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
5074
|
+
const referencepath_preProcessors_itemValidationError = validate$i(obj_preProcessors_item, path_preProcessors_item);
|
|
5075
5075
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
5076
5076
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
5077
5077
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5137,7 +5137,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5137
5137
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
5138
5138
|
let obj_productRequests_item_union0 = null;
|
|
5139
5139
|
const obj_productRequests_item_union0_error = (() => {
|
|
5140
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
5140
|
+
const referencepath_productRequests_itemValidationError = validate$g(obj_productRequests_item, path_productRequests_item);
|
|
5141
5141
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
5142
5142
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
5143
5143
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5169,7 +5169,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5169
5169
|
const path_section = path + '.section';
|
|
5170
5170
|
let obj_section_union0 = null;
|
|
5171
5171
|
const obj_section_union0_error = (() => {
|
|
5172
|
-
const referencepath_sectionValidationError = validate$
|
|
5172
|
+
const referencepath_sectionValidationError = validate$d(obj_section, path_section);
|
|
5173
5173
|
if (referencepath_sectionValidationError !== null) {
|
|
5174
5174
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
|
|
5175
5175
|
message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5206,7 +5206,7 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5206
5206
|
const path_sections_item = path_sections + '[' + i + ']';
|
|
5207
5207
|
let obj_sections_item_union0 = null;
|
|
5208
5208
|
const obj_sections_item_union0_error = (() => {
|
|
5209
|
-
const referencepath_sections_itemValidationError = validate$
|
|
5209
|
+
const referencepath_sections_itemValidationError = validate$d(obj_sections_item, path_sections_item);
|
|
5210
5210
|
if (referencepath_sections_itemValidationError !== null) {
|
|
5211
5211
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
5212
5212
|
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5292,32 +5292,32 @@ function validate$b(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5292
5292
|
})();
|
|
5293
5293
|
return v_error === undefined ? null : v_error;
|
|
5294
5294
|
}
|
|
5295
|
-
const RepresentationType$
|
|
5296
|
-
function keyBuilder$
|
|
5297
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5295
|
+
const RepresentationType$6 = 'CatalogItemOutputRepresentation';
|
|
5296
|
+
function keyBuilder$b(luvio, config) {
|
|
5297
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
5298
5298
|
}
|
|
5299
|
-
function keyBuilderFromType$
|
|
5299
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
5300
5300
|
const keyParams = {
|
|
5301
5301
|
catalogItemId: object.catalogItemId
|
|
5302
5302
|
};
|
|
5303
|
-
return keyBuilder$
|
|
5303
|
+
return keyBuilder$b(luvio, keyParams);
|
|
5304
5304
|
}
|
|
5305
|
-
function normalize$
|
|
5305
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
5306
5306
|
return input;
|
|
5307
5307
|
}
|
|
5308
|
-
const select$
|
|
5309
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
5310
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
5311
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
5312
|
-
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$
|
|
5313
|
-
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$
|
|
5314
|
-
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$
|
|
5315
|
-
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$
|
|
5316
|
-
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$
|
|
5317
|
-
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$
|
|
5308
|
+
const select$f = function CatalogItemOutputRepresentationSelect() {
|
|
5309
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$r();
|
|
5310
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$q();
|
|
5311
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$p();
|
|
5312
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$o();
|
|
5313
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$n();
|
|
5314
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$m();
|
|
5315
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$l();
|
|
5316
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$j();
|
|
5317
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$g();
|
|
5318
5318
|
return {
|
|
5319
5319
|
kind: 'Fragment',
|
|
5320
|
-
version: VERSION$
|
|
5320
|
+
version: VERSION$6,
|
|
5321
5321
|
private: [],
|
|
5322
5322
|
selections: [
|
|
5323
5323
|
{
|
|
@@ -5443,7 +5443,7 @@ const select$d = function CatalogItemOutputRepresentationSelect() {
|
|
|
5443
5443
|
]
|
|
5444
5444
|
};
|
|
5445
5445
|
};
|
|
5446
|
-
function equals$
|
|
5446
|
+
function equals$6(existing, incoming) {
|
|
5447
5447
|
const existing_agentAction = existing.agentAction;
|
|
5448
5448
|
const incoming_agentAction = incoming.agentAction;
|
|
5449
5449
|
// if at least one of these optionals is defined
|
|
@@ -5456,7 +5456,7 @@ function equals$5(existing, incoming) {
|
|
|
5456
5456
|
if (!(existing_agentAction === incoming_agentAction
|
|
5457
5457
|
|| (existing_agentAction != null &&
|
|
5458
5458
|
incoming_agentAction != null &&
|
|
5459
|
-
equals$
|
|
5459
|
+
equals$i(existing_agentAction, incoming_agentAction)))) {
|
|
5460
5460
|
return false;
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5473,7 +5473,7 @@ function equals$5(existing, incoming) {
|
|
|
5473
5473
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
5474
5474
|
|| (existing_associatedArticles_item != null &&
|
|
5475
5475
|
incoming_associatedArticles_item != null &&
|
|
5476
|
-
equals$
|
|
5476
|
+
equals$h(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5477
5477
|
return false;
|
|
5478
5478
|
}
|
|
5479
5479
|
});
|
|
@@ -5538,7 +5538,7 @@ function equals$5(existing, incoming) {
|
|
|
5538
5538
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
5539
5539
|
|| (existing_eligibilityRules_item != null &&
|
|
5540
5540
|
incoming_eligibilityRules_item != null &&
|
|
5541
|
-
equals$
|
|
5541
|
+
equals$g(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5542
5542
|
return false;
|
|
5543
5543
|
}
|
|
5544
5544
|
});
|
|
@@ -5558,7 +5558,7 @@ function equals$5(existing, incoming) {
|
|
|
5558
5558
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5559
5559
|
|| (existing_fulfillmentFlow != null &&
|
|
5560
5560
|
incoming_fulfillmentFlow != null &&
|
|
5561
|
-
equals$
|
|
5561
|
+
equals$f(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5562
5562
|
return false;
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
@@ -5574,7 +5574,7 @@ function equals$5(existing, incoming) {
|
|
|
5574
5574
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5575
5575
|
|| (existing_intakeForm != null &&
|
|
5576
5576
|
incoming_intakeForm != null &&
|
|
5577
|
-
equals$
|
|
5577
|
+
equals$e(existing_intakeForm, incoming_intakeForm)))) {
|
|
5578
5578
|
return false;
|
|
5579
5579
|
}
|
|
5580
5580
|
}
|
|
@@ -5591,7 +5591,7 @@ function equals$5(existing, incoming) {
|
|
|
5591
5591
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
5592
5592
|
|| (existing_integrations_item != null &&
|
|
5593
5593
|
incoming_integrations_item != null &&
|
|
5594
|
-
equals$
|
|
5594
|
+
equals$d(existing_integrations_item, incoming_integrations_item)))) {
|
|
5595
5595
|
return false;
|
|
5596
5596
|
}
|
|
5597
5597
|
});
|
|
@@ -5638,7 +5638,7 @@ function equals$5(existing, incoming) {
|
|
|
5638
5638
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
5639
5639
|
|| (existing_preProcessors_item != null &&
|
|
5640
5640
|
incoming_preProcessors_item != null &&
|
|
5641
|
-
equals$
|
|
5641
|
+
equals$c(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5642
5642
|
return false;
|
|
5643
5643
|
}
|
|
5644
5644
|
});
|
|
@@ -5672,7 +5672,7 @@ function equals$5(existing, incoming) {
|
|
|
5672
5672
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
5673
5673
|
|| (existing_productRequests_item != null &&
|
|
5674
5674
|
incoming_productRequests_item != null &&
|
|
5675
|
-
equals$
|
|
5675
|
+
equals$a(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5676
5676
|
return false;
|
|
5677
5677
|
}
|
|
5678
5678
|
});
|
|
@@ -5692,7 +5692,7 @@ function equals$5(existing, incoming) {
|
|
|
5692
5692
|
if (!(existing_section === incoming_section
|
|
5693
5693
|
|| (existing_section != null &&
|
|
5694
5694
|
incoming_section != null &&
|
|
5695
|
-
equals$
|
|
5695
|
+
equals$7(existing_section, incoming_section)))) {
|
|
5696
5696
|
return false;
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
@@ -5709,7 +5709,7 @@ function equals$5(existing, incoming) {
|
|
|
5709
5709
|
if (!(existing_sections_item === incoming_sections_item
|
|
5710
5710
|
|| (existing_sections_item != null &&
|
|
5711
5711
|
incoming_sections_item != null &&
|
|
5712
|
-
equals$
|
|
5712
|
+
equals$7(existing_sections_item, incoming_sections_item)))) {
|
|
5713
5713
|
return false;
|
|
5714
5714
|
}
|
|
5715
5715
|
});
|
|
@@ -5745,41 +5745,41 @@ function equals$5(existing, incoming) {
|
|
|
5745
5745
|
}
|
|
5746
5746
|
return true;
|
|
5747
5747
|
}
|
|
5748
|
-
const ingest$
|
|
5748
|
+
const ingest$6 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5749
5749
|
if (process.env.NODE_ENV !== 'production') {
|
|
5750
|
-
const validateError = validate$
|
|
5750
|
+
const validateError = validate$c(input);
|
|
5751
5751
|
if (validateError !== null) {
|
|
5752
5752
|
throw validateError;
|
|
5753
5753
|
}
|
|
5754
5754
|
}
|
|
5755
|
-
const key = keyBuilderFromType$
|
|
5756
|
-
const ttlToUse = TTL$
|
|
5757
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5755
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
5756
|
+
const ttlToUse = TTL$5;
|
|
5757
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$6, RepresentationType$6, equals$6);
|
|
5758
5758
|
return createLink(key);
|
|
5759
5759
|
};
|
|
5760
|
-
function getTypeCacheKeys$
|
|
5760
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
5761
5761
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5762
|
-
const rootKey = keyBuilderFromType$
|
|
5762
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
5763
5763
|
rootKeySet.set(rootKey, {
|
|
5764
5764
|
namespace: keyPrefix,
|
|
5765
|
-
representationName: RepresentationType$
|
|
5765
|
+
representationName: RepresentationType$6,
|
|
5766
5766
|
mergeable: false
|
|
5767
5767
|
});
|
|
5768
5768
|
}
|
|
5769
5769
|
|
|
5770
|
-
function select$
|
|
5771
|
-
return select$
|
|
5770
|
+
function select$e(luvio, params) {
|
|
5771
|
+
return select$f();
|
|
5772
5772
|
}
|
|
5773
|
-
function getResponseCacheKeys$
|
|
5774
|
-
getTypeCacheKeys$
|
|
5773
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
5774
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
5775
5775
|
}
|
|
5776
|
-
function ingestSuccess$
|
|
5776
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
5777
5777
|
const { body } = response;
|
|
5778
|
-
const key = keyBuilderFromType$
|
|
5779
|
-
luvio.storeIngest(key, ingest$
|
|
5778
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
5779
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
5780
5780
|
const snapshot = luvio.storeLookup({
|
|
5781
5781
|
recordId: key,
|
|
5782
|
-
node: select$
|
|
5782
|
+
node: select$e(),
|
|
5783
5783
|
variables: {},
|
|
5784
5784
|
});
|
|
5785
5785
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5790,7 +5790,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
5790
5790
|
deepFreeze(snapshot.data);
|
|
5791
5791
|
return snapshot;
|
|
5792
5792
|
}
|
|
5793
|
-
function createResourceRequest$
|
|
5793
|
+
function createResourceRequest$8(config) {
|
|
5794
5794
|
const headers = {};
|
|
5795
5795
|
return {
|
|
5796
5796
|
baseUri: '/services/data/v65.0',
|
|
@@ -5804,7 +5804,7 @@ function createResourceRequest$7(config) {
|
|
|
5804
5804
|
};
|
|
5805
5805
|
}
|
|
5806
5806
|
|
|
5807
|
-
const adapterName$
|
|
5807
|
+
const adapterName$8 = 'createCatalogItem';
|
|
5808
5808
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
5809
5809
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5810
5810
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -5824,12 +5824,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
5824
5824
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5825
5825
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5826
5826
|
];
|
|
5827
|
-
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5828
|
-
const createResourceParams$
|
|
5829
|
-
function typeCheckConfig$
|
|
5827
|
+
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, createCatalogItem_ConfigPropertyMetadata);
|
|
5828
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$9(createCatalogItem_ConfigPropertyMetadata);
|
|
5829
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
5830
5830
|
const config = {};
|
|
5831
5831
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5832
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5832
|
+
const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
|
|
5833
5833
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5834
5834
|
config.agentAction = untrustedConfig_agentAction;
|
|
5835
5835
|
}
|
|
@@ -5841,7 +5841,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5841
5841
|
const untrustedConfig_associatedArticles_array = [];
|
|
5842
5842
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5843
5843
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5844
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5844
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$y(untrustedConfig_associatedArticles_item);
|
|
5845
5845
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5846
5846
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5847
5847
|
}
|
|
@@ -5856,7 +5856,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5856
5856
|
const untrustedConfig_attributes_array = [];
|
|
5857
5857
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5858
5858
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5859
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5859
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$w(untrustedConfig_attributes_item);
|
|
5860
5860
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5861
5861
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5862
5862
|
}
|
|
@@ -5871,7 +5871,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5871
5871
|
const untrustedConfig_sections_array = [];
|
|
5872
5872
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5873
5873
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5874
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
5874
|
+
const referenceSectionInputRepresentationValidationError = validate$v(untrustedConfig_sections_item);
|
|
5875
5875
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5876
5876
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5877
5877
|
}
|
|
@@ -5907,7 +5907,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5907
5907
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5908
5908
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5909
5909
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5910
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5910
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$u(untrustedConfig_eligibilityRules_item);
|
|
5911
5911
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5912
5912
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5913
5913
|
}
|
|
@@ -5918,7 +5918,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5918
5918
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5919
5919
|
}
|
|
5920
5920
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5921
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5921
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$t(untrustedConfig_fulfillmentFlow);
|
|
5922
5922
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5923
5923
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5924
5924
|
}
|
|
@@ -5926,7 +5926,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5926
5926
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5927
5927
|
}
|
|
5928
5928
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5929
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5929
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$s(untrustedConfig_intakeForm);
|
|
5930
5930
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5931
5931
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5932
5932
|
}
|
|
@@ -5938,7 +5938,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5938
5938
|
const untrustedConfig_integrations_array = [];
|
|
5939
5939
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
5940
5940
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
5941
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5941
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$r(untrustedConfig_integrations_item);
|
|
5942
5942
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
5943
5943
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
5944
5944
|
}
|
|
@@ -5967,7 +5967,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5967
5967
|
const untrustedConfig_preProcessors_array = [];
|
|
5968
5968
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
5969
5969
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
5970
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5970
|
+
const referencePreprocessorInputRepresentationValidationError = validate$q(untrustedConfig_preProcessors_item);
|
|
5971
5971
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
5972
5972
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
5973
5973
|
}
|
|
@@ -5982,7 +5982,7 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
5982
5982
|
const untrustedConfig_productRequests_array = [];
|
|
5983
5983
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5984
5984
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5985
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5985
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$p(untrustedConfig_productRequests_item);
|
|
5986
5986
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5987
5987
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5988
5988
|
}
|
|
@@ -6008,6 +6008,245 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
return config;
|
|
6010
6010
|
}
|
|
6011
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6012
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6013
|
+
return null;
|
|
6014
|
+
}
|
|
6015
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6016
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6017
|
+
}
|
|
6018
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6019
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6020
|
+
return null;
|
|
6021
|
+
}
|
|
6022
|
+
return config;
|
|
6023
|
+
}
|
|
6024
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6025
|
+
const resourceParams = createResourceParams$8(config);
|
|
6026
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6027
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6028
|
+
.then((response) => {
|
|
6029
|
+
return luvio.handleSuccessResponse(() => {
|
|
6030
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
6031
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6032
|
+
}, () => {
|
|
6033
|
+
const cache = new StoreKeyMap();
|
|
6034
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6035
|
+
return cache;
|
|
6036
|
+
});
|
|
6037
|
+
}, (response) => {
|
|
6038
|
+
deepFreeze(response);
|
|
6039
|
+
throw response;
|
|
6040
|
+
});
|
|
6041
|
+
}
|
|
6042
|
+
const createCatalogItemAdapterFactory = (luvio) => {
|
|
6043
|
+
return function createCatalogItem(untrustedConfig) {
|
|
6044
|
+
const config = validateAdapterConfig$8(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
6045
|
+
// Invalid or incomplete config
|
|
6046
|
+
if (config === null) {
|
|
6047
|
+
throw new Error('Invalid config for "createCatalogItem"');
|
|
6048
|
+
}
|
|
6049
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
6050
|
+
};
|
|
6051
|
+
};
|
|
6052
|
+
|
|
6053
|
+
const TTL$4 = 6000;
|
|
6054
|
+
const VERSION$5 = "74ef82117094ebb002efc271969896bd";
|
|
6055
|
+
function validate$b(obj, path = 'GenerateIntakeFormOutputRepresentation') {
|
|
6056
|
+
const v_error = (() => {
|
|
6057
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6058
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6059
|
+
}
|
|
6060
|
+
if (obj.description !== undefined) {
|
|
6061
|
+
const obj_description = obj.description;
|
|
6062
|
+
const path_description = path + '.description';
|
|
6063
|
+
if (typeof obj_description !== 'string') {
|
|
6064
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6065
|
+
}
|
|
6066
|
+
}
|
|
6067
|
+
const obj_id = obj.id;
|
|
6068
|
+
const path_id = path + '.id';
|
|
6069
|
+
if (typeof obj_id !== 'string') {
|
|
6070
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6071
|
+
}
|
|
6072
|
+
if (obj.name !== undefined) {
|
|
6073
|
+
const obj_name = obj.name;
|
|
6074
|
+
const path_name = path + '.name';
|
|
6075
|
+
if (typeof obj_name !== 'string') {
|
|
6076
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
6077
|
+
}
|
|
6078
|
+
}
|
|
6079
|
+
if (obj.type !== undefined) {
|
|
6080
|
+
const obj_type = obj.type;
|
|
6081
|
+
const path_type = path + '.type';
|
|
6082
|
+
if (typeof obj_type !== 'string') {
|
|
6083
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
6084
|
+
}
|
|
6085
|
+
}
|
|
6086
|
+
})();
|
|
6087
|
+
return v_error === undefined ? null : v_error;
|
|
6088
|
+
}
|
|
6089
|
+
const RepresentationType$5 = 'GenerateIntakeFormOutputRepresentation';
|
|
6090
|
+
function keyBuilder$a(luvio, config) {
|
|
6091
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
|
|
6092
|
+
}
|
|
6093
|
+
function keyBuilderFromType$2(luvio, object) {
|
|
6094
|
+
const keyParams = {
|
|
6095
|
+
id: object.id
|
|
6096
|
+
};
|
|
6097
|
+
return keyBuilder$a(luvio, keyParams);
|
|
6098
|
+
}
|
|
6099
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
6100
|
+
return input;
|
|
6101
|
+
}
|
|
6102
|
+
const select$d = function GenerateIntakeFormOutputRepresentationSelect() {
|
|
6103
|
+
return {
|
|
6104
|
+
kind: 'Fragment',
|
|
6105
|
+
version: VERSION$5,
|
|
6106
|
+
private: [],
|
|
6107
|
+
selections: [
|
|
6108
|
+
{
|
|
6109
|
+
name: 'description',
|
|
6110
|
+
kind: 'Scalar',
|
|
6111
|
+
required: false
|
|
6112
|
+
},
|
|
6113
|
+
{
|
|
6114
|
+
name: 'id',
|
|
6115
|
+
kind: 'Scalar'
|
|
6116
|
+
},
|
|
6117
|
+
{
|
|
6118
|
+
name: 'name',
|
|
6119
|
+
kind: 'Scalar',
|
|
6120
|
+
required: false
|
|
6121
|
+
},
|
|
6122
|
+
{
|
|
6123
|
+
name: 'type',
|
|
6124
|
+
kind: 'Scalar',
|
|
6125
|
+
required: false
|
|
6126
|
+
}
|
|
6127
|
+
]
|
|
6128
|
+
};
|
|
6129
|
+
};
|
|
6130
|
+
function equals$5(existing, incoming) {
|
|
6131
|
+
const existing_description = existing.description;
|
|
6132
|
+
const incoming_description = incoming.description;
|
|
6133
|
+
// if at least one of these optionals is defined
|
|
6134
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
6135
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6136
|
+
// not equal
|
|
6137
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
6138
|
+
return false;
|
|
6139
|
+
}
|
|
6140
|
+
if (!(existing_description === incoming_description)) {
|
|
6141
|
+
return false;
|
|
6142
|
+
}
|
|
6143
|
+
}
|
|
6144
|
+
const existing_id = existing.id;
|
|
6145
|
+
const incoming_id = incoming.id;
|
|
6146
|
+
if (!(existing_id === incoming_id)) {
|
|
6147
|
+
return false;
|
|
6148
|
+
}
|
|
6149
|
+
const existing_name = existing.name;
|
|
6150
|
+
const incoming_name = incoming.name;
|
|
6151
|
+
// if at least one of these optionals is defined
|
|
6152
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
6153
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6154
|
+
// not equal
|
|
6155
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
6156
|
+
return false;
|
|
6157
|
+
}
|
|
6158
|
+
if (!(existing_name === incoming_name)) {
|
|
6159
|
+
return false;
|
|
6160
|
+
}
|
|
6161
|
+
}
|
|
6162
|
+
const existing_type = existing.type;
|
|
6163
|
+
const incoming_type = incoming.type;
|
|
6164
|
+
// if at least one of these optionals is defined
|
|
6165
|
+
if (existing_type !== undefined || incoming_type !== undefined) {
|
|
6166
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6167
|
+
// not equal
|
|
6168
|
+
if (existing_type === undefined || incoming_type === undefined) {
|
|
6169
|
+
return false;
|
|
6170
|
+
}
|
|
6171
|
+
if (!(existing_type === incoming_type)) {
|
|
6172
|
+
return false;
|
|
6173
|
+
}
|
|
6174
|
+
}
|
|
6175
|
+
return true;
|
|
6176
|
+
}
|
|
6177
|
+
const ingest$5 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6178
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6179
|
+
const validateError = validate$b(input);
|
|
6180
|
+
if (validateError !== null) {
|
|
6181
|
+
throw validateError;
|
|
6182
|
+
}
|
|
6183
|
+
}
|
|
6184
|
+
const key = keyBuilderFromType$2(luvio, input);
|
|
6185
|
+
const ttlToUse = TTL$4;
|
|
6186
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$5, RepresentationType$5, equals$5);
|
|
6187
|
+
return createLink(key);
|
|
6188
|
+
};
|
|
6189
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
6190
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6191
|
+
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
6192
|
+
rootKeySet.set(rootKey, {
|
|
6193
|
+
namespace: keyPrefix,
|
|
6194
|
+
representationName: RepresentationType$5,
|
|
6195
|
+
mergeable: false
|
|
6196
|
+
});
|
|
6197
|
+
}
|
|
6198
|
+
|
|
6199
|
+
function select$c(luvio, params) {
|
|
6200
|
+
return select$d();
|
|
6201
|
+
}
|
|
6202
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6203
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
6204
|
+
}
|
|
6205
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
6206
|
+
const { body } = response;
|
|
6207
|
+
const key = keyBuilderFromType$2(luvio, body);
|
|
6208
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
6209
|
+
const snapshot = luvio.storeLookup({
|
|
6210
|
+
recordId: key,
|
|
6211
|
+
node: select$c(),
|
|
6212
|
+
variables: {},
|
|
6213
|
+
});
|
|
6214
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6215
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6216
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6217
|
+
}
|
|
6218
|
+
}
|
|
6219
|
+
deepFreeze(snapshot.data);
|
|
6220
|
+
return snapshot;
|
|
6221
|
+
}
|
|
6222
|
+
function createResourceRequest$7(config) {
|
|
6223
|
+
const headers = {};
|
|
6224
|
+
return {
|
|
6225
|
+
baseUri: '/services/data/v65.0',
|
|
6226
|
+
basePath: '/connect/service-automation/intake-form/generate-intake-form',
|
|
6227
|
+
method: 'post',
|
|
6228
|
+
body: config.body,
|
|
6229
|
+
urlParams: {},
|
|
6230
|
+
queryParams: {},
|
|
6231
|
+
headers,
|
|
6232
|
+
priority: 'normal',
|
|
6233
|
+
};
|
|
6234
|
+
}
|
|
6235
|
+
|
|
6236
|
+
const adapterName$7 = 'generateIntakeForm';
|
|
6237
|
+
const generateIntakeForm_ConfigPropertyMetadata = [
|
|
6238
|
+
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
6239
|
+
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6240
|
+
generateParamConfigMetadata('productId', false, 2 /* Body */, 0 /* String */),
|
|
6241
|
+
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
6242
|
+
];
|
|
6243
|
+
const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, generateIntakeForm_ConfigPropertyMetadata);
|
|
6244
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$9(generateIntakeForm_ConfigPropertyMetadata);
|
|
6245
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
6246
|
+
const config = {};
|
|
6247
|
+
typeCheckConfig$9(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
|
|
6248
|
+
return config;
|
|
6249
|
+
}
|
|
6011
6250
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6012
6251
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6013
6252
|
return null;
|
|
@@ -6039,12 +6278,12 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6039
6278
|
throw response;
|
|
6040
6279
|
});
|
|
6041
6280
|
}
|
|
6042
|
-
const
|
|
6043
|
-
return function
|
|
6044
|
-
const config = validateAdapterConfig$7(untrustedConfig,
|
|
6281
|
+
const generateIntakeFormAdapterFactory = (luvio) => {
|
|
6282
|
+
return function generateIntakeForm(untrustedConfig) {
|
|
6283
|
+
const config = validateAdapterConfig$7(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
|
|
6045
6284
|
// Invalid or incomplete config
|
|
6046
6285
|
if (config === null) {
|
|
6047
|
-
throw new Error('Invalid config for "
|
|
6286
|
+
throw new Error('Invalid config for "generateIntakeForm"');
|
|
6048
6287
|
}
|
|
6049
6288
|
return buildNetworkSnapshot$7(luvio, config);
|
|
6050
6289
|
};
|
|
@@ -6263,10 +6502,10 @@ const generateOmniScript_ConfigPropertyMetadata = [
|
|
|
6263
6502
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
6264
6503
|
];
|
|
6265
6504
|
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, generateOmniScript_ConfigPropertyMetadata);
|
|
6266
|
-
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$
|
|
6505
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$9(generateOmniScript_ConfigPropertyMetadata);
|
|
6267
6506
|
function typeCheckConfig$6(untrustedConfig) {
|
|
6268
6507
|
const config = {};
|
|
6269
|
-
typeCheckConfig$
|
|
6508
|
+
typeCheckConfig$9(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
6270
6509
|
return config;
|
|
6271
6510
|
}
|
|
6272
6511
|
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
@@ -7143,14 +7382,14 @@ const getAgentActions_ConfigPropertyMetadata = [
|
|
|
7143
7382
|
generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7144
7383
|
];
|
|
7145
7384
|
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAgentActions_ConfigPropertyMetadata);
|
|
7146
|
-
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$
|
|
7385
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$9(getAgentActions_ConfigPropertyMetadata);
|
|
7147
7386
|
function keyBuilder$7(luvio, config) {
|
|
7148
7387
|
const resourceParams = createResourceParams$5(config);
|
|
7149
7388
|
return keyBuilder$8(luvio, resourceParams);
|
|
7150
7389
|
}
|
|
7151
7390
|
function typeCheckConfig$5(untrustedConfig) {
|
|
7152
7391
|
const config = {};
|
|
7153
|
-
typeCheckConfig$
|
|
7392
|
+
typeCheckConfig$9(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
|
|
7154
7393
|
return config;
|
|
7155
7394
|
}
|
|
7156
7395
|
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
@@ -7401,14 +7640,14 @@ const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
|
7401
7640
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7402
7641
|
];
|
|
7403
7642
|
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7404
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7643
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$9(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7405
7644
|
function keyBuilder$5(luvio, config) {
|
|
7406
7645
|
const resourceParams = createResourceParams$4(config);
|
|
7407
7646
|
return keyBuilder$6(luvio, resourceParams);
|
|
7408
7647
|
}
|
|
7409
7648
|
function typeCheckConfig$4(untrustedConfig) {
|
|
7410
7649
|
const config = {};
|
|
7411
|
-
typeCheckConfig$
|
|
7650
|
+
typeCheckConfig$9(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7412
7651
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
7413
7652
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
7414
7653
|
const untrustedConfig_filters_array = [];
|
|
@@ -7502,20 +7741,20 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
|
|
|
7502
7741
|
};
|
|
7503
7742
|
|
|
7504
7743
|
function select$5(luvio, params) {
|
|
7505
|
-
return select$
|
|
7744
|
+
return select$f();
|
|
7506
7745
|
}
|
|
7507
7746
|
function keyBuilder$4(luvio, params) {
|
|
7508
|
-
return keyBuilder$
|
|
7747
|
+
return keyBuilder$b(luvio, {
|
|
7509
7748
|
catalogItemId: params.urlParams.catalogItemId
|
|
7510
7749
|
});
|
|
7511
7750
|
}
|
|
7512
7751
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7513
|
-
getTypeCacheKeys$
|
|
7752
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
7514
7753
|
}
|
|
7515
7754
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
7516
7755
|
const { body } = response;
|
|
7517
7756
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
7518
|
-
luvio.storeIngest(key, ingest$
|
|
7757
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
7519
7758
|
const snapshot = luvio.storeLookup({
|
|
7520
7759
|
recordId: key,
|
|
7521
7760
|
node: select$5(),
|
|
@@ -7533,10 +7772,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
7533
7772
|
const key = keyBuilder$4(luvio, params);
|
|
7534
7773
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7535
7774
|
const storeMetadataParams = {
|
|
7536
|
-
ttl: TTL$
|
|
7775
|
+
ttl: TTL$5,
|
|
7537
7776
|
namespace: keyPrefix,
|
|
7538
|
-
version: VERSION$
|
|
7539
|
-
representationName: RepresentationType$
|
|
7777
|
+
version: VERSION$6,
|
|
7778
|
+
representationName: RepresentationType$6
|
|
7540
7779
|
};
|
|
7541
7780
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7542
7781
|
return errorSnapshot;
|
|
@@ -7561,14 +7800,14 @@ const getCatalogItem_ConfigPropertyMetadata = [
|
|
|
7561
7800
|
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7562
7801
|
];
|
|
7563
7802
|
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCatalogItem_ConfigPropertyMetadata);
|
|
7564
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7803
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$9(getCatalogItem_ConfigPropertyMetadata);
|
|
7565
7804
|
function keyBuilder$3(luvio, config) {
|
|
7566
7805
|
const resourceParams = createResourceParams$3(config);
|
|
7567
7806
|
return keyBuilder$4(luvio, resourceParams);
|
|
7568
7807
|
}
|
|
7569
7808
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7570
7809
|
const config = {};
|
|
7571
|
-
typeCheckConfig$
|
|
7810
|
+
typeCheckConfig$9(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
7572
7811
|
return config;
|
|
7573
7812
|
}
|
|
7574
7813
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7857,14 +8096,14 @@ const getServiceRequest_ConfigPropertyMetadata = [
|
|
|
7857
8096
|
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7858
8097
|
];
|
|
7859
8098
|
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getServiceRequest_ConfigPropertyMetadata);
|
|
7860
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8099
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$9(getServiceRequest_ConfigPropertyMetadata);
|
|
7861
8100
|
function keyBuilder$1(luvio, config) {
|
|
7862
8101
|
const resourceParams = createResourceParams$2(config);
|
|
7863
8102
|
return keyBuilder$2(luvio, resourceParams);
|
|
7864
8103
|
}
|
|
7865
8104
|
function typeCheckConfig$2(untrustedConfig) {
|
|
7866
8105
|
const config = {};
|
|
7867
|
-
typeCheckConfig$
|
|
8106
|
+
typeCheckConfig$9(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
7868
8107
|
return config;
|
|
7869
8108
|
}
|
|
7870
8109
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -7939,15 +8178,15 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
|
|
|
7939
8178
|
};
|
|
7940
8179
|
|
|
7941
8180
|
function select$2(luvio, params) {
|
|
7942
|
-
return select$
|
|
8181
|
+
return select$f();
|
|
7943
8182
|
}
|
|
7944
8183
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7945
|
-
getTypeCacheKeys$
|
|
8184
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
7946
8185
|
}
|
|
7947
8186
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
7948
8187
|
const { body } = response;
|
|
7949
|
-
const key = keyBuilderFromType$
|
|
7950
|
-
luvio.storeIngest(key, ingest$
|
|
8188
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
8189
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
7951
8190
|
const snapshot = luvio.storeLookup({
|
|
7952
8191
|
recordId: key,
|
|
7953
8192
|
node: select$2(),
|
|
@@ -7998,12 +8237,12 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
7998
8237
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7999
8238
|
];
|
|
8000
8239
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
8001
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8240
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$9(updateCatalogItem_ConfigPropertyMetadata);
|
|
8002
8241
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8003
8242
|
const config = {};
|
|
8004
|
-
typeCheckConfig$
|
|
8243
|
+
typeCheckConfig$9(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
8005
8244
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
8006
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
8245
|
+
const referenceAgentActionInputRepresentationValidationError = validate$z(untrustedConfig_agentAction);
|
|
8007
8246
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
8008
8247
|
config.agentAction = untrustedConfig_agentAction;
|
|
8009
8248
|
}
|
|
@@ -8022,7 +8261,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8022
8261
|
const untrustedConfig_associatedArticles_array = [];
|
|
8023
8262
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
8024
8263
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
8025
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
8264
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$y(untrustedConfig_associatedArticles_item);
|
|
8026
8265
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
8027
8266
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
8028
8267
|
}
|
|
@@ -8037,7 +8276,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8037
8276
|
const untrustedConfig_attributes_array = [];
|
|
8038
8277
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
8039
8278
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
8040
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
8279
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$w(untrustedConfig_attributes_item);
|
|
8041
8280
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
8042
8281
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
8043
8282
|
}
|
|
@@ -8052,7 +8291,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8052
8291
|
const untrustedConfig_sections_array = [];
|
|
8053
8292
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
8054
8293
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
8055
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
8294
|
+
const referenceSectionInputRepresentationValidationError = validate$v(untrustedConfig_sections_item);
|
|
8056
8295
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
8057
8296
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
8058
8297
|
}
|
|
@@ -8088,7 +8327,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8088
8327
|
const untrustedConfig_eligibilityRules_array = [];
|
|
8089
8328
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
8090
8329
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
8091
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
8330
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$u(untrustedConfig_eligibilityRules_item);
|
|
8092
8331
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
8093
8332
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
8094
8333
|
}
|
|
@@ -8099,7 +8338,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8099
8338
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
8100
8339
|
}
|
|
8101
8340
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
8102
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
8341
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$t(untrustedConfig_fulfillmentFlow);
|
|
8103
8342
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
8104
8343
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
8105
8344
|
}
|
|
@@ -8107,7 +8346,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8107
8346
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
8108
8347
|
}
|
|
8109
8348
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
8110
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
8349
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$s(untrustedConfig_intakeForm);
|
|
8111
8350
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
8112
8351
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
8113
8352
|
}
|
|
@@ -8119,7 +8358,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8119
8358
|
const untrustedConfig_integrations_array = [];
|
|
8120
8359
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
8121
8360
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
8122
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
8361
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$r(untrustedConfig_integrations_item);
|
|
8123
8362
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
8124
8363
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
8125
8364
|
}
|
|
@@ -8148,7 +8387,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8148
8387
|
const untrustedConfig_preProcessors_array = [];
|
|
8149
8388
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
8150
8389
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
8151
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
8390
|
+
const referencePreprocessorInputRepresentationValidationError = validate$q(untrustedConfig_preProcessors_item);
|
|
8152
8391
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
8153
8392
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
8154
8393
|
}
|
|
@@ -8163,7 +8402,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8163
8402
|
const untrustedConfig_productRequests_array = [];
|
|
8164
8403
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
8165
8404
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
8166
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
8405
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$p(untrustedConfig_productRequests_item);
|
|
8167
8406
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
8168
8407
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
8169
8408
|
}
|
|
@@ -8403,10 +8642,10 @@ const updateEpcCategories_ConfigPropertyMetadata = [
|
|
|
8403
8642
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8404
8643
|
];
|
|
8405
8644
|
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateEpcCategories_ConfigPropertyMetadata);
|
|
8406
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8645
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$9(updateEpcCategories_ConfigPropertyMetadata);
|
|
8407
8646
|
function typeCheckConfig(untrustedConfig) {
|
|
8408
8647
|
const config = {};
|
|
8409
|
-
typeCheckConfig$
|
|
8648
|
+
typeCheckConfig$9(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
8410
8649
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
8411
8650
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
8412
8651
|
const untrustedConfig_categories_array = [];
|
|
@@ -8464,6 +8703,7 @@ const updateEpcCategoriesAdapterFactory = (luvio) => {
|
|
|
8464
8703
|
};
|
|
8465
8704
|
|
|
8466
8705
|
let createCatalogItem;
|
|
8706
|
+
let generateIntakeForm;
|
|
8467
8707
|
let generateOmniScript;
|
|
8468
8708
|
let getAgentActions;
|
|
8469
8709
|
let getAllServiceAutomationDep;
|
|
@@ -8497,6 +8737,7 @@ function bindExportsTo(luvio) {
|
|
|
8497
8737
|
}
|
|
8498
8738
|
return {
|
|
8499
8739
|
createCatalogItem: unwrapSnapshotData(createCatalogItemAdapterFactory),
|
|
8740
|
+
generateIntakeForm: unwrapSnapshotData(generateIntakeFormAdapterFactory),
|
|
8500
8741
|
generateOmniScript: unwrapSnapshotData(generateOmniScriptAdapterFactory),
|
|
8501
8742
|
getAgentActions: createWireAdapterConstructor(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
8502
8743
|
getAllServiceAutomationDep: createWireAdapterConstructor(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
@@ -8515,6 +8756,7 @@ function bindExportsTo(luvio) {
|
|
|
8515
8756
|
withDefaultLuvio((luvio) => {
|
|
8516
8757
|
({
|
|
8517
8758
|
createCatalogItem,
|
|
8759
|
+
generateIntakeForm,
|
|
8518
8760
|
generateOmniScript,
|
|
8519
8761
|
getAgentActions,
|
|
8520
8762
|
getAllServiceAutomationDep,
|
|
@@ -8529,5 +8771,5 @@ withDefaultLuvio((luvio) => {
|
|
|
8529
8771
|
} = bindExportsTo(luvio));
|
|
8530
8772
|
});
|
|
8531
8773
|
|
|
8532
|
-
export { createCatalogItem, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8533
|
-
// version: 1.
|
|
8774
|
+
export { createCatalogItem, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8775
|
+
// version: 1.362.0-d2e818ae61
|