@salesforce/lds-adapters-service-ecm 1.348.0 → 1.349.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 +1260 -347
- package/dist/es/es2018/types/src/generated/adapters/getAgentActions.d.ts +28 -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 +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationGenAiActions.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/AgentActionAttributeOutputRepresentation.d.ts +64 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionOutputRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionsOutputRepresentation.d.ts +30 -0
- package/package.json +3 -3
- package/sfdc/index.js +1196 -275
- package/src/raml/api.raml +137 -0
- package/src/raml/luvio.raml +7 -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$8, typeCheckConfig as typeCheckConfig$8, 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$y(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$v(obj, path = 'AgentActionInputRepresentation') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$x(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$u(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
336
336
|
return v_error === undefined ? null : v_error;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
function validate$
|
|
339
|
+
function validate$w(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$t(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
415
415
|
return v_error === undefined ? null : v_error;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function validate$
|
|
418
|
+
function validate$v(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$s(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$w(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$s(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
840
840
|
return v_error === undefined ? null : v_error;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
function validate$
|
|
843
|
+
function validate$u(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$r(obj, path = 'SectionInputRepresentation') {
|
|
|
982
982
|
return v_error === undefined ? null : v_error;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
function validate$
|
|
985
|
+
function validate$t(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$q(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
1047
1047
|
return v_error === undefined ? null : v_error;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
function validate$
|
|
1050
|
+
function validate$s(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$p(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1168
1168
|
return v_error === undefined ? null : v_error;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
-
function validate$
|
|
1171
|
+
function validate$r(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$o(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1289
1289
|
return v_error === undefined ? null : v_error;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
function validate$
|
|
1292
|
+
function validate$q(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$n(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1382
1382
|
return v_error === undefined ? null : v_error;
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
-
function validate$
|
|
1385
|
+
function validate$p(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$m(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1475
1475
|
return v_error === undefined ? null : v_error;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
function validate$
|
|
1478
|
+
function validate$o(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$l(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$h = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1670
|
+
function validate$n(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$k(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1759
1759
|
})();
|
|
1760
1760
|
return v_error === undefined ? null : v_error;
|
|
1761
1761
|
}
|
|
1762
|
-
const select$
|
|
1762
|
+
const select$p = function AgentActionOutputRepresentationSelect() {
|
|
1763
1763
|
return {
|
|
1764
1764
|
kind: 'Fragment',
|
|
1765
|
-
version: VERSION$
|
|
1765
|
+
version: VERSION$h,
|
|
1766
1766
|
private: [],
|
|
1767
1767
|
selections: [
|
|
1768
1768
|
{
|
|
@@ -1783,7 +1783,7 @@ const select$n = function AgentActionOutputRepresentationSelect() {
|
|
|
1783
1783
|
]
|
|
1784
1784
|
};
|
|
1785
1785
|
};
|
|
1786
|
-
function equals$
|
|
1786
|
+
function equals$h(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$g(existing, incoming) {
|
|
|
1826
1826
|
return true;
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
|
-
const VERSION$
|
|
1830
|
-
function validate$
|
|
1829
|
+
const VERSION$g = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1830
|
+
function validate$m(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$j(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1891
1891
|
})();
|
|
1892
1892
|
return v_error === undefined ? null : v_error;
|
|
1893
1893
|
}
|
|
1894
|
-
const select$
|
|
1894
|
+
const select$o = function AssociatedArticleOutputRepresentationSelect() {
|
|
1895
1895
|
return {
|
|
1896
1896
|
kind: 'Fragment',
|
|
1897
|
-
version: VERSION$
|
|
1897
|
+
version: VERSION$g,
|
|
1898
1898
|
private: [],
|
|
1899
1899
|
selections: [
|
|
1900
1900
|
{
|
|
@@ -1910,7 +1910,7 @@ const select$m = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1910
1910
|
]
|
|
1911
1911
|
};
|
|
1912
1912
|
};
|
|
1913
|
-
function equals$
|
|
1913
|
+
function equals$g(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$f(existing, incoming) {
|
|
|
1940
1940
|
return true;
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
1943
|
-
const VERSION$
|
|
1944
|
-
function validate$
|
|
1943
|
+
const VERSION$f = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1944
|
+
function validate$l(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$i(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
2005
2005
|
})();
|
|
2006
2006
|
return v_error === undefined ? null : v_error;
|
|
2007
2007
|
}
|
|
2008
|
-
const select$
|
|
2008
|
+
const select$n = function EligibilityRuleOutputRepresentationSelect() {
|
|
2009
2009
|
return {
|
|
2010
2010
|
kind: 'Fragment',
|
|
2011
|
-
version: VERSION$
|
|
2011
|
+
version: VERSION$f,
|
|
2012
2012
|
private: [],
|
|
2013
2013
|
selections: [
|
|
2014
2014
|
{
|
|
@@ -2024,7 +2024,7 @@ const select$l = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
2024
2024
|
]
|
|
2025
2025
|
};
|
|
2026
2026
|
};
|
|
2027
|
-
function equals$
|
|
2027
|
+
function equals$f(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$e(existing, incoming) {
|
|
|
2054
2054
|
return true;
|
|
2055
2055
|
}
|
|
2056
2056
|
|
|
2057
|
-
const VERSION$
|
|
2058
|
-
function validate$
|
|
2057
|
+
const VERSION$e = "b5216beece7c04763cff6924e6953f93";
|
|
2058
|
+
function validate$k(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$h(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2147
2147
|
})();
|
|
2148
2148
|
return v_error === undefined ? null : v_error;
|
|
2149
2149
|
}
|
|
2150
|
-
const select$
|
|
2150
|
+
const select$m = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2151
2151
|
return {
|
|
2152
2152
|
kind: 'Fragment',
|
|
2153
|
-
version: VERSION$
|
|
2153
|
+
version: VERSION$e,
|
|
2154
2154
|
private: [],
|
|
2155
2155
|
selections: [
|
|
2156
2156
|
{
|
|
@@ -2171,7 +2171,7 @@ const select$k = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2171
2171
|
]
|
|
2172
2172
|
};
|
|
2173
2173
|
};
|
|
2174
|
-
function equals$
|
|
2174
|
+
function equals$e(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$d(existing, incoming) {
|
|
|
2214
2214
|
return true;
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
|
-
const VERSION$
|
|
2218
|
-
function validate$
|
|
2217
|
+
const VERSION$d = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2218
|
+
function validate$j(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$g(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2447
2447
|
})();
|
|
2448
2448
|
return v_error === undefined ? null : v_error;
|
|
2449
2449
|
}
|
|
2450
|
-
const select$
|
|
2450
|
+
const select$l = function IntakeFormOutputRepresentationSelect() {
|
|
2451
2451
|
return {
|
|
2452
2452
|
kind: 'Fragment',
|
|
2453
|
-
version: VERSION$
|
|
2453
|
+
version: VERSION$d,
|
|
2454
2454
|
private: [],
|
|
2455
2455
|
selections: [
|
|
2456
2456
|
{
|
|
@@ -2496,7 +2496,7 @@ const select$j = function IntakeFormOutputRepresentationSelect() {
|
|
|
2496
2496
|
]
|
|
2497
2497
|
};
|
|
2498
2498
|
};
|
|
2499
|
-
function equals$
|
|
2499
|
+
function equals$d(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$c(existing, incoming) {
|
|
|
2604
2604
|
return true;
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
|
-
const VERSION$
|
|
2608
|
-
function validate$
|
|
2607
|
+
const VERSION$c = "1006a153c933b8bc4b1d44663893e206";
|
|
2608
|
+
function validate$i(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$f(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2669
2669
|
})();
|
|
2670
2670
|
return v_error === undefined ? null : v_error;
|
|
2671
2671
|
}
|
|
2672
|
-
const select$
|
|
2672
|
+
const select$k = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2673
2673
|
return {
|
|
2674
2674
|
kind: 'Fragment',
|
|
2675
|
-
version: VERSION$
|
|
2675
|
+
version: VERSION$c,
|
|
2676
2676
|
private: [],
|
|
2677
2677
|
selections: [
|
|
2678
2678
|
{
|
|
@@ -2688,7 +2688,7 @@ const select$i = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2688
2688
|
]
|
|
2689
2689
|
};
|
|
2690
2690
|
};
|
|
2691
|
-
function equals$
|
|
2691
|
+
function equals$c(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$b(existing, incoming) {
|
|
|
2718
2718
|
return true;
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
|
-
const VERSION$
|
|
2722
|
-
function validate$
|
|
2721
|
+
const VERSION$b = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2722
|
+
function validate$h(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$e(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2783
2783
|
})();
|
|
2784
2784
|
return v_error === undefined ? null : v_error;
|
|
2785
2785
|
}
|
|
2786
|
-
const select$
|
|
2786
|
+
const select$j = function PreprocessorOutputRepresentationSelect() {
|
|
2787
2787
|
return {
|
|
2788
2788
|
kind: 'Fragment',
|
|
2789
|
-
version: VERSION$
|
|
2789
|
+
version: VERSION$b,
|
|
2790
2790
|
private: [],
|
|
2791
2791
|
selections: [
|
|
2792
2792
|
{
|
|
@@ -2802,7 +2802,7 @@ const select$h = function PreprocessorOutputRepresentationSelect() {
|
|
|
2802
2802
|
]
|
|
2803
2803
|
};
|
|
2804
2804
|
};
|
|
2805
|
-
function equals$
|
|
2805
|
+
function equals$b(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$a(existing, incoming) {
|
|
|
2832
2832
|
return true;
|
|
2833
2833
|
}
|
|
2834
2834
|
|
|
2835
|
-
const VERSION$
|
|
2836
|
-
function validate$
|
|
2835
|
+
const VERSION$a = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2836
|
+
function validate$g(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$d(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
3009
3009
|
})();
|
|
3010
3010
|
return v_error === undefined ? null : v_error;
|
|
3011
3011
|
}
|
|
3012
|
-
const select$
|
|
3012
|
+
const select$i = function ProductDetailsOutputRepresentationSelect() {
|
|
3013
3013
|
return {
|
|
3014
3014
|
kind: 'Fragment',
|
|
3015
|
-
version: VERSION$
|
|
3015
|
+
version: VERSION$a,
|
|
3016
3016
|
private: [],
|
|
3017
3017
|
selections: [
|
|
3018
3018
|
{
|
|
@@ -3048,7 +3048,7 @@ const select$g = function ProductDetailsOutputRepresentationSelect() {
|
|
|
3048
3048
|
]
|
|
3049
3049
|
};
|
|
3050
3050
|
};
|
|
3051
|
-
function equals$
|
|
3051
|
+
function equals$a(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$9(existing, incoming) {
|
|
|
3130
3130
|
return true;
|
|
3131
3131
|
}
|
|
3132
3132
|
|
|
3133
|
-
const VERSION$
|
|
3134
|
-
function validate$
|
|
3133
|
+
const VERSION$9 = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3134
|
+
function validate$f(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$c(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$g(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$c(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$h = function ProductRequestOutputRepresentationSelect() {
|
|
3328
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$i();
|
|
3329
3329
|
return {
|
|
3330
3330
|
kind: 'Fragment',
|
|
3331
|
-
version: VERSION$
|
|
3331
|
+
version: VERSION$9,
|
|
3332
3332
|
private: [],
|
|
3333
3333
|
selections: [
|
|
3334
3334
|
{
|
|
@@ -3371,7 +3371,7 @@ const select$f = function ProductRequestOutputRepresentationSelect() {
|
|
|
3371
3371
|
]
|
|
3372
3372
|
};
|
|
3373
3373
|
};
|
|
3374
|
-
function equals$
|
|
3374
|
+
function equals$9(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$8(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$a(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3386
3386
|
return false;
|
|
3387
3387
|
}
|
|
3388
3388
|
});
|
|
@@ -3471,8 +3471,8 @@ function equals$8(existing, incoming) {
|
|
|
3471
3471
|
return true;
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
|
-
const VERSION$
|
|
3475
|
-
function validate$
|
|
3474
|
+
const VERSION$8 = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3475
|
+
function validate$e(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$b(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
3522
3522
|
})();
|
|
3523
3523
|
return v_error === undefined ? null : v_error;
|
|
3524
3524
|
}
|
|
3525
|
-
const select$
|
|
3525
|
+
const select$g = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3526
3526
|
return {
|
|
3527
3527
|
kind: 'Fragment',
|
|
3528
|
-
version: VERSION$
|
|
3528
|
+
version: VERSION$8,
|
|
3529
3529
|
private: [],
|
|
3530
3530
|
selections: [
|
|
3531
3531
|
{
|
|
@@ -3561,7 +3561,7 @@ const select$e = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
3561
3561
|
]
|
|
3562
3562
|
};
|
|
3563
3563
|
};
|
|
3564
|
-
function equals$
|
|
3564
|
+
function equals$8(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$7(existing, incoming) {
|
|
|
3643
3643
|
return true;
|
|
3644
3644
|
}
|
|
3645
3645
|
|
|
3646
|
-
const VERSION$
|
|
3647
|
-
function validate$
|
|
3646
|
+
const VERSION$7 = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3647
|
+
function validate$d(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$a(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$e(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$a(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$f = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4100
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$g();
|
|
4101
4101
|
return {
|
|
4102
4102
|
kind: 'Fragment',
|
|
4103
|
-
version: VERSION$
|
|
4103
|
+
version: VERSION$7,
|
|
4104
4104
|
private: [],
|
|
4105
4105
|
selections: [
|
|
4106
4106
|
{
|
|
@@ -4194,7 +4194,7 @@ const select$d = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4194
4194
|
]
|
|
4195
4195
|
};
|
|
4196
4196
|
};
|
|
4197
|
-
function equals$
|
|
4197
|
+
function equals$7(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$6(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$8(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
});
|
|
@@ -4427,8 +4427,8 @@ function equals$6(existing, incoming) {
|
|
|
4427
4427
|
return true;
|
|
4428
4428
|
}
|
|
4429
4429
|
|
|
4430
|
-
const VERSION$
|
|
4431
|
-
function validate$
|
|
4430
|
+
const VERSION$6 = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4431
|
+
function validate$c(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$9(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$d(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$9(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$e = function SectionOutputRepresentationSelect() {
|
|
4569
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$f();
|
|
4570
4570
|
return {
|
|
4571
4571
|
kind: 'Fragment',
|
|
4572
|
-
version: VERSION$
|
|
4572
|
+
version: VERSION$6,
|
|
4573
4573
|
private: [],
|
|
4574
4574
|
selections: [
|
|
4575
4575
|
{
|
|
@@ -4603,7 +4603,7 @@ const select$c = function SectionOutputRepresentationSelect() {
|
|
|
4603
4603
|
]
|
|
4604
4604
|
};
|
|
4605
4605
|
};
|
|
4606
|
-
function equals$
|
|
4606
|
+
function equals$6(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$5(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$7(existing_attributes_item, incoming_attributes_item)))) {
|
|
4634
4634
|
return false;
|
|
4635
4635
|
}
|
|
4636
4636
|
});
|
|
@@ -4680,9 +4680,9 @@ function equals$5(existing, incoming) {
|
|
|
4680
4680
|
return true;
|
|
4681
4681
|
}
|
|
4682
4682
|
|
|
4683
|
-
const TTL$
|
|
4684
|
-
const VERSION$
|
|
4685
|
-
function validate$
|
|
4683
|
+
const TTL$4 = 6000;
|
|
4684
|
+
const VERSION$5 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4685
|
+
function validate$b(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$8(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$n(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$8(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$m(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$8(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$l(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$8(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$k(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$8(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$j(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$8(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$i(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$8(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$h(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$8(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$f(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$8(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$c(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$8(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$c(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$8(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$5 = 'CatalogItemOutputRepresentation';
|
|
5296
|
+
function keyBuilder$a(luvio, config) {
|
|
5297
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
5298
5298
|
}
|
|
5299
5299
|
function keyBuilderFromType$2(luvio, object) {
|
|
5300
5300
|
const keyParams = {
|
|
5301
5301
|
catalogItemId: object.catalogItemId
|
|
5302
5302
|
};
|
|
5303
|
-
return keyBuilder$
|
|
5303
|
+
return keyBuilder$a(luvio, keyParams);
|
|
5304
5304
|
}
|
|
5305
|
-
function normalize$
|
|
5305
|
+
function normalize$5(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$d = function CatalogItemOutputRepresentationSelect() {
|
|
5309
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$p();
|
|
5310
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$o();
|
|
5311
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$n();
|
|
5312
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$m();
|
|
5313
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$l();
|
|
5314
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$k();
|
|
5315
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$j();
|
|
5316
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$h();
|
|
5317
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$e();
|
|
5318
5318
|
return {
|
|
5319
5319
|
kind: 'Fragment',
|
|
5320
|
-
version: VERSION$
|
|
5320
|
+
version: VERSION$5,
|
|
5321
5321
|
private: [],
|
|
5322
5322
|
selections: [
|
|
5323
5323
|
{
|
|
@@ -5443,7 +5443,7 @@ const select$b = function CatalogItemOutputRepresentationSelect() {
|
|
|
5443
5443
|
]
|
|
5444
5444
|
};
|
|
5445
5445
|
};
|
|
5446
|
-
function equals$
|
|
5446
|
+
function equals$5(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$4(existing, incoming) {
|
|
|
5456
5456
|
if (!(existing_agentAction === incoming_agentAction
|
|
5457
5457
|
|| (existing_agentAction != null &&
|
|
5458
5458
|
incoming_agentAction != null &&
|
|
5459
|
-
equals$
|
|
5459
|
+
equals$h(existing_agentAction, incoming_agentAction)))) {
|
|
5460
5460
|
return false;
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5473,7 +5473,7 @@ function equals$4(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$g(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5477
5477
|
return false;
|
|
5478
5478
|
}
|
|
5479
5479
|
});
|
|
@@ -5538,7 +5538,7 @@ function equals$4(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$f(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5542
5542
|
return false;
|
|
5543
5543
|
}
|
|
5544
5544
|
});
|
|
@@ -5558,7 +5558,7 @@ function equals$4(existing, incoming) {
|
|
|
5558
5558
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5559
5559
|
|| (existing_fulfillmentFlow != null &&
|
|
5560
5560
|
incoming_fulfillmentFlow != null &&
|
|
5561
|
-
equals$
|
|
5561
|
+
equals$e(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5562
5562
|
return false;
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
@@ -5574,7 +5574,7 @@ function equals$4(existing, incoming) {
|
|
|
5574
5574
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5575
5575
|
|| (existing_intakeForm != null &&
|
|
5576
5576
|
incoming_intakeForm != null &&
|
|
5577
|
-
equals$
|
|
5577
|
+
equals$d(existing_intakeForm, incoming_intakeForm)))) {
|
|
5578
5578
|
return false;
|
|
5579
5579
|
}
|
|
5580
5580
|
}
|
|
@@ -5591,7 +5591,7 @@ function equals$4(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$c(existing_integrations_item, incoming_integrations_item)))) {
|
|
5595
5595
|
return false;
|
|
5596
5596
|
}
|
|
5597
5597
|
});
|
|
@@ -5638,7 +5638,7 @@ function equals$4(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$b(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5642
5642
|
return false;
|
|
5643
5643
|
}
|
|
5644
5644
|
});
|
|
@@ -5672,7 +5672,7 @@ function equals$4(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$9(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5676
5676
|
return false;
|
|
5677
5677
|
}
|
|
5678
5678
|
});
|
|
@@ -5692,7 +5692,7 @@ function equals$4(existing, incoming) {
|
|
|
5692
5692
|
if (!(existing_section === incoming_section
|
|
5693
5693
|
|| (existing_section != null &&
|
|
5694
5694
|
incoming_section != null &&
|
|
5695
|
-
equals$
|
|
5695
|
+
equals$6(existing_section, incoming_section)))) {
|
|
5696
5696
|
return false;
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
@@ -5709,7 +5709,7 @@ function equals$4(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$6(existing_sections_item, incoming_sections_item)))) {
|
|
5713
5713
|
return false;
|
|
5714
5714
|
}
|
|
5715
5715
|
});
|
|
@@ -5745,41 +5745,41 @@ function equals$4(existing, incoming) {
|
|
|
5745
5745
|
}
|
|
5746
5746
|
return true;
|
|
5747
5747
|
}
|
|
5748
|
-
const ingest$
|
|
5748
|
+
const ingest$5 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5749
5749
|
if (process.env.NODE_ENV !== 'production') {
|
|
5750
|
-
const validateError = validate$
|
|
5750
|
+
const validateError = validate$b(input);
|
|
5751
5751
|
if (validateError !== null) {
|
|
5752
5752
|
throw validateError;
|
|
5753
5753
|
}
|
|
5754
5754
|
}
|
|
5755
5755
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5756
|
-
const ttlToUse = TTL$
|
|
5757
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5756
|
+
const ttlToUse = TTL$4;
|
|
5757
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$5, RepresentationType$5, equals$5);
|
|
5758
5758
|
return createLink(key);
|
|
5759
5759
|
};
|
|
5760
|
-
function getTypeCacheKeys$
|
|
5760
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
5761
5761
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5762
5762
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5763
5763
|
rootKeySet.set(rootKey, {
|
|
5764
5764
|
namespace: keyPrefix,
|
|
5765
|
-
representationName: RepresentationType$
|
|
5765
|
+
representationName: RepresentationType$5,
|
|
5766
5766
|
mergeable: false
|
|
5767
5767
|
});
|
|
5768
5768
|
}
|
|
5769
5769
|
|
|
5770
|
-
function select$
|
|
5771
|
-
return select$
|
|
5770
|
+
function select$c(luvio, params) {
|
|
5771
|
+
return select$d();
|
|
5772
5772
|
}
|
|
5773
|
-
function getResponseCacheKeys$
|
|
5774
|
-
getTypeCacheKeys$
|
|
5773
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
5774
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
5775
5775
|
}
|
|
5776
|
-
function ingestSuccess$
|
|
5776
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
5777
5777
|
const { body } = response;
|
|
5778
5778
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5779
|
-
luvio.storeIngest(key, ingest$
|
|
5779
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
5780
5780
|
const snapshot = luvio.storeLookup({
|
|
5781
5781
|
recordId: key,
|
|
5782
|
-
node: select$
|
|
5782
|
+
node: select$c(),
|
|
5783
5783
|
variables: {},
|
|
5784
5784
|
});
|
|
5785
5785
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5790,7 +5790,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
5790
5790
|
deepFreeze(snapshot.data);
|
|
5791
5791
|
return snapshot;
|
|
5792
5792
|
}
|
|
5793
|
-
function createResourceRequest$
|
|
5793
|
+
function createResourceRequest$7(config) {
|
|
5794
5794
|
const headers = {};
|
|
5795
5795
|
return {
|
|
5796
5796
|
baseUri: '/services/data/v64.0',
|
|
@@ -5804,7 +5804,7 @@ function createResourceRequest$6(config) {
|
|
|
5804
5804
|
};
|
|
5805
5805
|
}
|
|
5806
5806
|
|
|
5807
|
-
const adapterName$
|
|
5807
|
+
const adapterName$7 = '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$7, createCatalogItem_ConfigPropertyMetadata);
|
|
5828
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$8(createCatalogItem_ConfigPropertyMetadata);
|
|
5829
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
5830
5830
|
const config = {};
|
|
5831
5831
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5832
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5832
|
+
const referenceAgentActionInputRepresentationValidationError = validate$y(untrustedConfig_agentAction);
|
|
5833
5833
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5834
5834
|
config.agentAction = untrustedConfig_agentAction;
|
|
5835
5835
|
}
|
|
@@ -5841,7 +5841,7 @@ function typeCheckConfig$6(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$x(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$6(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$v(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$6(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$u(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$6(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$t(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$6(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$s(untrustedConfig_fulfillmentFlow);
|
|
5922
5922
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5923
5923
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5924
5924
|
}
|
|
@@ -5926,7 +5926,7 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
5926
5926
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5927
5927
|
}
|
|
5928
5928
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5929
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5929
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$r(untrustedConfig_intakeForm);
|
|
5930
5930
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5931
5931
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5932
5932
|
}
|
|
@@ -5938,7 +5938,7 @@ function typeCheckConfig$6(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$q(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$6(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$p(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$6(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$o(untrustedConfig_productRequests_item);
|
|
5986
5986
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5987
5987
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5988
5988
|
}
|
|
@@ -6008,30 +6008,30 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
return config;
|
|
6010
6010
|
}
|
|
6011
|
-
function validateAdapterConfig$
|
|
6011
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6012
6012
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6013
6013
|
return null;
|
|
6014
6014
|
}
|
|
6015
6015
|
if (process.env.NODE_ENV !== 'production') {
|
|
6016
6016
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6017
6017
|
}
|
|
6018
|
-
const config = typeCheckConfig$
|
|
6018
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
6019
6019
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6020
6020
|
return null;
|
|
6021
6021
|
}
|
|
6022
6022
|
return config;
|
|
6023
6023
|
}
|
|
6024
|
-
function buildNetworkSnapshot$
|
|
6025
|
-
const resourceParams = createResourceParams$
|
|
6026
|
-
const request = createResourceRequest$
|
|
6024
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
6025
|
+
const resourceParams = createResourceParams$7(config);
|
|
6026
|
+
const request = createResourceRequest$7(resourceParams);
|
|
6027
6027
|
return luvio.dispatchResourceRequest(request, options)
|
|
6028
6028
|
.then((response) => {
|
|
6029
6029
|
return luvio.handleSuccessResponse(() => {
|
|
6030
|
-
const snapshot = ingestSuccess$
|
|
6030
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
6031
6031
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6032
6032
|
}, () => {
|
|
6033
6033
|
const cache = new StoreKeyMap();
|
|
6034
|
-
getResponseCacheKeys$
|
|
6034
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
6035
6035
|
return cache;
|
|
6036
6036
|
});
|
|
6037
6037
|
}, (response) => {
|
|
@@ -6041,18 +6041,18 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
6043
6043
|
return function createCatalogItem(untrustedConfig) {
|
|
6044
|
-
const config = validateAdapterConfig$
|
|
6044
|
+
const config = validateAdapterConfig$7(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
6045
6045
|
// Invalid or incomplete config
|
|
6046
6046
|
if (config === null) {
|
|
6047
6047
|
throw new Error('Invalid config for "createCatalogItem"');
|
|
6048
6048
|
}
|
|
6049
|
-
return buildNetworkSnapshot$
|
|
6049
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
6050
6050
|
};
|
|
6051
6051
|
};
|
|
6052
6052
|
|
|
6053
|
-
const TTL$
|
|
6054
|
-
const VERSION$
|
|
6055
|
-
function validate$
|
|
6053
|
+
const TTL$3 = 6000;
|
|
6054
|
+
const VERSION$4 = "b593e197e57b5cb5b7531e71073daefa";
|
|
6055
|
+
function validate$a(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
6056
6056
|
const v_error = (() => {
|
|
6057
6057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6058
6058
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6100,23 +6100,23 @@ function validate$7(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
|
6100
6100
|
})();
|
|
6101
6101
|
return v_error === undefined ? null : v_error;
|
|
6102
6102
|
}
|
|
6103
|
-
const RepresentationType$
|
|
6104
|
-
function keyBuilder$
|
|
6105
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6103
|
+
const RepresentationType$4 = 'OmniIntakeOutputRepresentation';
|
|
6104
|
+
function keyBuilder$9(luvio, config) {
|
|
6105
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
6106
6106
|
}
|
|
6107
6107
|
function keyBuilderFromType$1(luvio, object) {
|
|
6108
6108
|
const keyParams = {
|
|
6109
6109
|
id: object.id
|
|
6110
6110
|
};
|
|
6111
|
-
return keyBuilder$
|
|
6111
|
+
return keyBuilder$9(luvio, keyParams);
|
|
6112
6112
|
}
|
|
6113
|
-
function normalize$
|
|
6113
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
6114
6114
|
return input;
|
|
6115
6115
|
}
|
|
6116
|
-
const select$
|
|
6116
|
+
const select$b = function OmniIntakeOutputRepresentationSelect() {
|
|
6117
6117
|
return {
|
|
6118
6118
|
kind: 'Fragment',
|
|
6119
|
-
version: VERSION$
|
|
6119
|
+
version: VERSION$4,
|
|
6120
6120
|
private: [],
|
|
6121
6121
|
selections: [
|
|
6122
6122
|
{
|
|
@@ -6154,7 +6154,7 @@ const select$9 = function OmniIntakeOutputRepresentationSelect() {
|
|
|
6154
6154
|
]
|
|
6155
6155
|
};
|
|
6156
6156
|
};
|
|
6157
|
-
function equals$
|
|
6157
|
+
function equals$4(existing, incoming) {
|
|
6158
6158
|
const existing_description = existing.description;
|
|
6159
6159
|
const incoming_description = incoming.description;
|
|
6160
6160
|
if (!(existing_description === incoming_description)) {
|
|
@@ -6197,41 +6197,41 @@ function equals$3(existing, incoming) {
|
|
|
6197
6197
|
}
|
|
6198
6198
|
return true;
|
|
6199
6199
|
}
|
|
6200
|
-
const ingest$
|
|
6200
|
+
const ingest$4 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6201
6201
|
if (process.env.NODE_ENV !== 'production') {
|
|
6202
|
-
const validateError = validate$
|
|
6202
|
+
const validateError = validate$a(input);
|
|
6203
6203
|
if (validateError !== null) {
|
|
6204
6204
|
throw validateError;
|
|
6205
6205
|
}
|
|
6206
6206
|
}
|
|
6207
6207
|
const key = keyBuilderFromType$1(luvio, input);
|
|
6208
|
-
const ttlToUse = TTL$
|
|
6209
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6208
|
+
const ttlToUse = TTL$3;
|
|
6209
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
|
|
6210
6210
|
return createLink(key);
|
|
6211
6211
|
};
|
|
6212
|
-
function getTypeCacheKeys$
|
|
6212
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
6213
6213
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6214
6214
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
6215
6215
|
rootKeySet.set(rootKey, {
|
|
6216
6216
|
namespace: keyPrefix,
|
|
6217
|
-
representationName: RepresentationType$
|
|
6217
|
+
representationName: RepresentationType$4,
|
|
6218
6218
|
mergeable: false
|
|
6219
6219
|
});
|
|
6220
6220
|
}
|
|
6221
6221
|
|
|
6222
|
-
function select$
|
|
6223
|
-
return select$
|
|
6222
|
+
function select$a(luvio, params) {
|
|
6223
|
+
return select$b();
|
|
6224
6224
|
}
|
|
6225
|
-
function getResponseCacheKeys$
|
|
6226
|
-
getTypeCacheKeys$
|
|
6225
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
6226
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6227
6227
|
}
|
|
6228
|
-
function ingestSuccess$
|
|
6228
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
6229
6229
|
const { body } = response;
|
|
6230
6230
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6231
|
-
luvio.storeIngest(key, ingest$
|
|
6231
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6232
6232
|
const snapshot = luvio.storeLookup({
|
|
6233
6233
|
recordId: key,
|
|
6234
|
-
node: select$
|
|
6234
|
+
node: select$a(),
|
|
6235
6235
|
variables: {},
|
|
6236
6236
|
});
|
|
6237
6237
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6242,7 +6242,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
6242
6242
|
deepFreeze(snapshot.data);
|
|
6243
6243
|
return snapshot;
|
|
6244
6244
|
}
|
|
6245
|
-
function createResourceRequest$
|
|
6245
|
+
function createResourceRequest$6(config) {
|
|
6246
6246
|
const headers = {};
|
|
6247
6247
|
return {
|
|
6248
6248
|
baseUri: '/services/data/v64.0',
|
|
@@ -6256,43 +6256,43 @@ function createResourceRequest$5(config) {
|
|
|
6256
6256
|
};
|
|
6257
6257
|
}
|
|
6258
6258
|
|
|
6259
|
-
const adapterName$
|
|
6259
|
+
const adapterName$6 = 'generateOmniScript';
|
|
6260
6260
|
const generateOmniScript_ConfigPropertyMetadata = [
|
|
6261
6261
|
generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
|
|
6262
6262
|
generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
|
|
6263
6263
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
6264
6264
|
];
|
|
6265
|
-
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6266
|
-
const createResourceParams$
|
|
6267
|
-
function typeCheckConfig$
|
|
6265
|
+
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, generateOmniScript_ConfigPropertyMetadata);
|
|
6266
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$8(generateOmniScript_ConfigPropertyMetadata);
|
|
6267
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
6268
6268
|
const config = {};
|
|
6269
|
-
typeCheckConfig$
|
|
6269
|
+
typeCheckConfig$8(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
6270
6270
|
return config;
|
|
6271
6271
|
}
|
|
6272
|
-
function validateAdapterConfig$
|
|
6272
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
6273
6273
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6274
6274
|
return null;
|
|
6275
6275
|
}
|
|
6276
6276
|
if (process.env.NODE_ENV !== 'production') {
|
|
6277
6277
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6278
6278
|
}
|
|
6279
|
-
const config = typeCheckConfig$
|
|
6279
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
6280
6280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6281
6281
|
return null;
|
|
6282
6282
|
}
|
|
6283
6283
|
return config;
|
|
6284
6284
|
}
|
|
6285
|
-
function buildNetworkSnapshot$
|
|
6286
|
-
const resourceParams = createResourceParams$
|
|
6287
|
-
const request = createResourceRequest$
|
|
6285
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6286
|
+
const resourceParams = createResourceParams$6(config);
|
|
6287
|
+
const request = createResourceRequest$6(resourceParams);
|
|
6288
6288
|
return luvio.dispatchResourceRequest(request, options)
|
|
6289
6289
|
.then((response) => {
|
|
6290
6290
|
return luvio.handleSuccessResponse(() => {
|
|
6291
|
-
const snapshot = ingestSuccess$
|
|
6291
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
6292
6292
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6293
6293
|
}, () => {
|
|
6294
6294
|
const cache = new StoreKeyMap();
|
|
6295
|
-
getResponseCacheKeys$
|
|
6295
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
6296
6296
|
return cache;
|
|
6297
6297
|
});
|
|
6298
6298
|
}, (response) => {
|
|
@@ -6302,68 +6302,981 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
6302
6302
|
}
|
|
6303
6303
|
const generateOmniScriptAdapterFactory = (luvio) => {
|
|
6304
6304
|
return function generateOmniScript(untrustedConfig) {
|
|
6305
|
-
const config = validateAdapterConfig$
|
|
6305
|
+
const config = validateAdapterConfig$6(untrustedConfig, generateOmniScript_ConfigPropertyNames);
|
|
6306
6306
|
// Invalid or incomplete config
|
|
6307
6307
|
if (config === null) {
|
|
6308
6308
|
throw new Error('Invalid config for "generateOmniScript"');
|
|
6309
6309
|
}
|
|
6310
|
-
return buildNetworkSnapshot$
|
|
6310
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
6311
6311
|
};
|
|
6312
6312
|
};
|
|
6313
6313
|
|
|
6314
|
-
function validate$
|
|
6314
|
+
function validate$9(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
6315
6315
|
const v_error = (() => {
|
|
6316
6316
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6317
6317
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6318
6318
|
}
|
|
6319
|
-
|
|
6320
|
-
|
|
6321
|
-
|
|
6322
|
-
|
|
6319
|
+
if (obj.dataType !== undefined) {
|
|
6320
|
+
const obj_dataType = obj.dataType;
|
|
6321
|
+
const path_dataType = path + '.dataType';
|
|
6322
|
+
let obj_dataType_union0 = null;
|
|
6323
|
+
const obj_dataType_union0_error = (() => {
|
|
6324
|
+
if (typeof obj_dataType !== 'string') {
|
|
6325
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
6326
|
+
}
|
|
6327
|
+
})();
|
|
6328
|
+
if (obj_dataType_union0_error != null) {
|
|
6329
|
+
obj_dataType_union0 = obj_dataType_union0_error.message;
|
|
6330
|
+
}
|
|
6331
|
+
let obj_dataType_union1 = null;
|
|
6332
|
+
const obj_dataType_union1_error = (() => {
|
|
6333
|
+
if (obj_dataType !== null) {
|
|
6334
|
+
return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
6335
|
+
}
|
|
6336
|
+
})();
|
|
6337
|
+
if (obj_dataType_union1_error != null) {
|
|
6338
|
+
obj_dataType_union1 = obj_dataType_union1_error.message;
|
|
6339
|
+
}
|
|
6340
|
+
if (obj_dataType_union0 && obj_dataType_union1) {
|
|
6341
|
+
let message = 'Object doesn\'t match union (at "' + path_dataType + '")';
|
|
6342
|
+
message += '\n' + obj_dataType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6343
|
+
message += '\n' + obj_dataType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6344
|
+
return new TypeError(message);
|
|
6345
|
+
}
|
|
6323
6346
|
}
|
|
6324
|
-
|
|
6325
|
-
|
|
6326
|
-
|
|
6327
|
-
|
|
6347
|
+
if (obj.description !== undefined) {
|
|
6348
|
+
const obj_description = obj.description;
|
|
6349
|
+
const path_description = path + '.description';
|
|
6350
|
+
let obj_description_union0 = null;
|
|
6351
|
+
const obj_description_union0_error = (() => {
|
|
6352
|
+
if (typeof obj_description !== 'string') {
|
|
6353
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6354
|
+
}
|
|
6355
|
+
})();
|
|
6356
|
+
if (obj_description_union0_error != null) {
|
|
6357
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
6358
|
+
}
|
|
6359
|
+
let obj_description_union1 = null;
|
|
6360
|
+
const obj_description_union1_error = (() => {
|
|
6361
|
+
if (obj_description !== null) {
|
|
6362
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6363
|
+
}
|
|
6364
|
+
})();
|
|
6365
|
+
if (obj_description_union1_error != null) {
|
|
6366
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
6367
|
+
}
|
|
6368
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
6369
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
6370
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6371
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6372
|
+
return new TypeError(message);
|
|
6373
|
+
}
|
|
6328
6374
|
}
|
|
6329
|
-
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6375
|
+
if (obj.developerName !== undefined) {
|
|
6376
|
+
const obj_developerName = obj.developerName;
|
|
6377
|
+
const path_developerName = path + '.developerName';
|
|
6378
|
+
let obj_developerName_union0 = null;
|
|
6379
|
+
const obj_developerName_union0_error = (() => {
|
|
6380
|
+
if (typeof obj_developerName !== 'string') {
|
|
6381
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
6382
|
+
}
|
|
6383
|
+
})();
|
|
6384
|
+
if (obj_developerName_union0_error != null) {
|
|
6385
|
+
obj_developerName_union0 = obj_developerName_union0_error.message;
|
|
6386
|
+
}
|
|
6387
|
+
let obj_developerName_union1 = null;
|
|
6388
|
+
const obj_developerName_union1_error = (() => {
|
|
6389
|
+
if (obj_developerName !== null) {
|
|
6390
|
+
return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
6391
|
+
}
|
|
6392
|
+
})();
|
|
6393
|
+
if (obj_developerName_union1_error != null) {
|
|
6394
|
+
obj_developerName_union1 = obj_developerName_union1_error.message;
|
|
6395
|
+
}
|
|
6396
|
+
if (obj_developerName_union0 && obj_developerName_union1) {
|
|
6397
|
+
let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
|
|
6398
|
+
message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6399
|
+
message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6400
|
+
return new TypeError(message);
|
|
6401
|
+
}
|
|
6333
6402
|
}
|
|
6334
|
-
|
|
6335
|
-
|
|
6336
|
-
|
|
6337
|
-
|
|
6338
|
-
|
|
6339
|
-
|
|
6340
|
-
|
|
6341
|
-
|
|
6403
|
+
if (obj.displayable !== undefined) {
|
|
6404
|
+
const obj_displayable = obj.displayable;
|
|
6405
|
+
const path_displayable = path + '.displayable';
|
|
6406
|
+
let obj_displayable_union0 = null;
|
|
6407
|
+
const obj_displayable_union0_error = (() => {
|
|
6408
|
+
if (typeof obj_displayable !== 'boolean') {
|
|
6409
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
|
|
6410
|
+
}
|
|
6411
|
+
})();
|
|
6412
|
+
if (obj_displayable_union0_error != null) {
|
|
6413
|
+
obj_displayable_union0 = obj_displayable_union0_error.message;
|
|
6414
|
+
}
|
|
6415
|
+
let obj_displayable_union1 = null;
|
|
6416
|
+
const obj_displayable_union1_error = (() => {
|
|
6417
|
+
if (obj_displayable !== null) {
|
|
6418
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
|
|
6419
|
+
}
|
|
6420
|
+
})();
|
|
6421
|
+
if (obj_displayable_union1_error != null) {
|
|
6422
|
+
obj_displayable_union1 = obj_displayable_union1_error.message;
|
|
6423
|
+
}
|
|
6424
|
+
if (obj_displayable_union0 && obj_displayable_union1) {
|
|
6425
|
+
let message = 'Object doesn\'t match union (at "' + path_displayable + '")';
|
|
6426
|
+
message += '\n' + obj_displayable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6427
|
+
message += '\n' + obj_displayable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6428
|
+
return new TypeError(message);
|
|
6429
|
+
}
|
|
6342
6430
|
}
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6346
|
-
|
|
6431
|
+
if (obj.excludedFromPlanner !== undefined) {
|
|
6432
|
+
const obj_excludedFromPlanner = obj.excludedFromPlanner;
|
|
6433
|
+
const path_excludedFromPlanner = path + '.excludedFromPlanner';
|
|
6434
|
+
let obj_excludedFromPlanner_union0 = null;
|
|
6435
|
+
const obj_excludedFromPlanner_union0_error = (() => {
|
|
6436
|
+
if (typeof obj_excludedFromPlanner !== 'boolean') {
|
|
6437
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
|
|
6438
|
+
}
|
|
6439
|
+
})();
|
|
6440
|
+
if (obj_excludedFromPlanner_union0_error != null) {
|
|
6441
|
+
obj_excludedFromPlanner_union0 = obj_excludedFromPlanner_union0_error.message;
|
|
6442
|
+
}
|
|
6443
|
+
let obj_excludedFromPlanner_union1 = null;
|
|
6444
|
+
const obj_excludedFromPlanner_union1_error = (() => {
|
|
6445
|
+
if (obj_excludedFromPlanner !== null) {
|
|
6446
|
+
return new TypeError('Expected "null" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
|
|
6447
|
+
}
|
|
6448
|
+
})();
|
|
6449
|
+
if (obj_excludedFromPlanner_union1_error != null) {
|
|
6450
|
+
obj_excludedFromPlanner_union1 = obj_excludedFromPlanner_union1_error.message;
|
|
6451
|
+
}
|
|
6452
|
+
if (obj_excludedFromPlanner_union0 && obj_excludedFromPlanner_union1) {
|
|
6453
|
+
let message = 'Object doesn\'t match union (at "' + path_excludedFromPlanner + '")';
|
|
6454
|
+
message += '\n' + obj_excludedFromPlanner_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6455
|
+
message += '\n' + obj_excludedFromPlanner_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6456
|
+
return new TypeError(message);
|
|
6457
|
+
}
|
|
6347
6458
|
}
|
|
6348
|
-
|
|
6349
|
-
|
|
6350
|
-
const
|
|
6351
|
-
|
|
6352
|
-
const
|
|
6353
|
-
|
|
6354
|
-
|
|
6459
|
+
if (obj.isPersIdentInfo !== undefined) {
|
|
6460
|
+
const obj_isPersIdentInfo = obj.isPersIdentInfo;
|
|
6461
|
+
const path_isPersIdentInfo = path + '.isPersIdentInfo';
|
|
6462
|
+
let obj_isPersIdentInfo_union0 = null;
|
|
6463
|
+
const obj_isPersIdentInfo_union0_error = (() => {
|
|
6464
|
+
if (typeof obj_isPersIdentInfo !== 'boolean') {
|
|
6465
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
|
|
6466
|
+
}
|
|
6467
|
+
})();
|
|
6468
|
+
if (obj_isPersIdentInfo_union0_error != null) {
|
|
6469
|
+
obj_isPersIdentInfo_union0 = obj_isPersIdentInfo_union0_error.message;
|
|
6470
|
+
}
|
|
6471
|
+
let obj_isPersIdentInfo_union1 = null;
|
|
6472
|
+
const obj_isPersIdentInfo_union1_error = (() => {
|
|
6473
|
+
if (obj_isPersIdentInfo !== null) {
|
|
6474
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
|
|
6475
|
+
}
|
|
6476
|
+
})();
|
|
6477
|
+
if (obj_isPersIdentInfo_union1_error != null) {
|
|
6478
|
+
obj_isPersIdentInfo_union1 = obj_isPersIdentInfo_union1_error.message;
|
|
6479
|
+
}
|
|
6480
|
+
if (obj_isPersIdentInfo_union0 && obj_isPersIdentInfo_union1) {
|
|
6481
|
+
let message = 'Object doesn\'t match union (at "' + path_isPersIdentInfo + '")';
|
|
6482
|
+
message += '\n' + obj_isPersIdentInfo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6483
|
+
message += '\n' + obj_isPersIdentInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6484
|
+
return new TypeError(message);
|
|
6355
6485
|
}
|
|
6356
6486
|
}
|
|
6357
|
-
|
|
6358
|
-
|
|
6359
|
-
|
|
6360
|
-
|
|
6361
|
-
const
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6487
|
+
if (obj.itemsDataType !== undefined) {
|
|
6488
|
+
const obj_itemsDataType = obj.itemsDataType;
|
|
6489
|
+
const path_itemsDataType = path + '.itemsDataType';
|
|
6490
|
+
let obj_itemsDataType_union0 = null;
|
|
6491
|
+
const obj_itemsDataType_union0_error = (() => {
|
|
6492
|
+
if (typeof obj_itemsDataType !== 'string') {
|
|
6493
|
+
return new TypeError('Expected "string" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
|
|
6494
|
+
}
|
|
6495
|
+
})();
|
|
6496
|
+
if (obj_itemsDataType_union0_error != null) {
|
|
6497
|
+
obj_itemsDataType_union0 = obj_itemsDataType_union0_error.message;
|
|
6498
|
+
}
|
|
6499
|
+
let obj_itemsDataType_union1 = null;
|
|
6500
|
+
const obj_itemsDataType_union1_error = (() => {
|
|
6501
|
+
if (obj_itemsDataType !== null) {
|
|
6502
|
+
return new TypeError('Expected "null" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
|
|
6503
|
+
}
|
|
6504
|
+
})();
|
|
6505
|
+
if (obj_itemsDataType_union1_error != null) {
|
|
6506
|
+
obj_itemsDataType_union1 = obj_itemsDataType_union1_error.message;
|
|
6507
|
+
}
|
|
6508
|
+
if (obj_itemsDataType_union0 && obj_itemsDataType_union1) {
|
|
6509
|
+
let message = 'Object doesn\'t match union (at "' + path_itemsDataType + '")';
|
|
6510
|
+
message += '\n' + obj_itemsDataType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6511
|
+
message += '\n' + obj_itemsDataType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6512
|
+
return new TypeError(message);
|
|
6513
|
+
}
|
|
6514
|
+
}
|
|
6515
|
+
if (obj.label !== undefined) {
|
|
6516
|
+
const obj_label = obj.label;
|
|
6517
|
+
const path_label = path + '.label';
|
|
6518
|
+
let obj_label_union0 = null;
|
|
6519
|
+
const obj_label_union0_error = (() => {
|
|
6520
|
+
if (typeof obj_label !== 'string') {
|
|
6521
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
6522
|
+
}
|
|
6523
|
+
})();
|
|
6524
|
+
if (obj_label_union0_error != null) {
|
|
6525
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
6526
|
+
}
|
|
6527
|
+
let obj_label_union1 = null;
|
|
6528
|
+
const obj_label_union1_error = (() => {
|
|
6529
|
+
if (obj_label !== null) {
|
|
6530
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
6531
|
+
}
|
|
6532
|
+
})();
|
|
6533
|
+
if (obj_label_union1_error != null) {
|
|
6534
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
6535
|
+
}
|
|
6536
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
6537
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
6538
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6539
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6540
|
+
return new TypeError(message);
|
|
6541
|
+
}
|
|
6542
|
+
}
|
|
6543
|
+
if (obj.mappingType !== undefined) {
|
|
6544
|
+
const obj_mappingType = obj.mappingType;
|
|
6545
|
+
const path_mappingType = path + '.mappingType';
|
|
6546
|
+
let obj_mappingType_union0 = null;
|
|
6547
|
+
const obj_mappingType_union0_error = (() => {
|
|
6548
|
+
if (typeof obj_mappingType !== 'string') {
|
|
6549
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
|
|
6550
|
+
}
|
|
6551
|
+
})();
|
|
6552
|
+
if (obj_mappingType_union0_error != null) {
|
|
6553
|
+
obj_mappingType_union0 = obj_mappingType_union0_error.message;
|
|
6554
|
+
}
|
|
6555
|
+
let obj_mappingType_union1 = null;
|
|
6556
|
+
const obj_mappingType_union1_error = (() => {
|
|
6557
|
+
if (obj_mappingType !== null) {
|
|
6558
|
+
return new TypeError('Expected "null" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
|
|
6559
|
+
}
|
|
6560
|
+
})();
|
|
6561
|
+
if (obj_mappingType_union1_error != null) {
|
|
6562
|
+
obj_mappingType_union1 = obj_mappingType_union1_error.message;
|
|
6563
|
+
}
|
|
6564
|
+
if (obj_mappingType_union0 && obj_mappingType_union1) {
|
|
6565
|
+
let message = 'Object doesn\'t match union (at "' + path_mappingType + '")';
|
|
6566
|
+
message += '\n' + obj_mappingType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6567
|
+
message += '\n' + obj_mappingType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6568
|
+
return new TypeError(message);
|
|
6569
|
+
}
|
|
6570
|
+
}
|
|
6571
|
+
if (obj.maxItems !== undefined) {
|
|
6572
|
+
const obj_maxItems = obj.maxItems;
|
|
6573
|
+
const path_maxItems = path + '.maxItems';
|
|
6574
|
+
let obj_maxItems_union0 = null;
|
|
6575
|
+
const obj_maxItems_union0_error = (() => {
|
|
6576
|
+
if (typeof obj_maxItems !== 'number' || (typeof obj_maxItems === 'number' && Math.floor(obj_maxItems) !== obj_maxItems)) {
|
|
6577
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
|
|
6578
|
+
}
|
|
6579
|
+
})();
|
|
6580
|
+
if (obj_maxItems_union0_error != null) {
|
|
6581
|
+
obj_maxItems_union0 = obj_maxItems_union0_error.message;
|
|
6582
|
+
}
|
|
6583
|
+
let obj_maxItems_union1 = null;
|
|
6584
|
+
const obj_maxItems_union1_error = (() => {
|
|
6585
|
+
if (obj_maxItems !== null) {
|
|
6586
|
+
return new TypeError('Expected "null" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
|
|
6587
|
+
}
|
|
6588
|
+
})();
|
|
6589
|
+
if (obj_maxItems_union1_error != null) {
|
|
6590
|
+
obj_maxItems_union1 = obj_maxItems_union1_error.message;
|
|
6591
|
+
}
|
|
6592
|
+
if (obj_maxItems_union0 && obj_maxItems_union1) {
|
|
6593
|
+
let message = 'Object doesn\'t match union (at "' + path_maxItems + '")';
|
|
6594
|
+
message += '\n' + obj_maxItems_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6595
|
+
message += '\n' + obj_maxItems_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6596
|
+
return new TypeError(message);
|
|
6597
|
+
}
|
|
6598
|
+
}
|
|
6599
|
+
if (obj.required !== undefined) {
|
|
6600
|
+
const obj_required = obj.required;
|
|
6601
|
+
const path_required = path + '.required';
|
|
6602
|
+
let obj_required_union0 = null;
|
|
6603
|
+
const obj_required_union0_error = (() => {
|
|
6604
|
+
if (typeof obj_required !== 'boolean') {
|
|
6605
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
6606
|
+
}
|
|
6607
|
+
})();
|
|
6608
|
+
if (obj_required_union0_error != null) {
|
|
6609
|
+
obj_required_union0 = obj_required_union0_error.message;
|
|
6610
|
+
}
|
|
6611
|
+
let obj_required_union1 = null;
|
|
6612
|
+
const obj_required_union1_error = (() => {
|
|
6613
|
+
if (obj_required !== null) {
|
|
6614
|
+
return new TypeError('Expected "null" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
6615
|
+
}
|
|
6616
|
+
})();
|
|
6617
|
+
if (obj_required_union1_error != null) {
|
|
6618
|
+
obj_required_union1 = obj_required_union1_error.message;
|
|
6619
|
+
}
|
|
6620
|
+
if (obj_required_union0 && obj_required_union1) {
|
|
6621
|
+
let message = 'Object doesn\'t match union (at "' + path_required + '")';
|
|
6622
|
+
message += '\n' + obj_required_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6623
|
+
message += '\n' + obj_required_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6624
|
+
return new TypeError(message);
|
|
6625
|
+
}
|
|
6626
|
+
}
|
|
6627
|
+
if (obj.title !== undefined) {
|
|
6628
|
+
const obj_title = obj.title;
|
|
6629
|
+
const path_title = path + '.title';
|
|
6630
|
+
let obj_title_union0 = null;
|
|
6631
|
+
const obj_title_union0_error = (() => {
|
|
6632
|
+
if (typeof obj_title !== 'string') {
|
|
6633
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
6634
|
+
}
|
|
6635
|
+
})();
|
|
6636
|
+
if (obj_title_union0_error != null) {
|
|
6637
|
+
obj_title_union0 = obj_title_union0_error.message;
|
|
6638
|
+
}
|
|
6639
|
+
let obj_title_union1 = null;
|
|
6640
|
+
const obj_title_union1_error = (() => {
|
|
6641
|
+
if (obj_title !== null) {
|
|
6642
|
+
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
6643
|
+
}
|
|
6644
|
+
})();
|
|
6645
|
+
if (obj_title_union1_error != null) {
|
|
6646
|
+
obj_title_union1 = obj_title_union1_error.message;
|
|
6647
|
+
}
|
|
6648
|
+
if (obj_title_union0 && obj_title_union1) {
|
|
6649
|
+
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
6650
|
+
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6651
|
+
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6652
|
+
return new TypeError(message);
|
|
6653
|
+
}
|
|
6654
|
+
}
|
|
6655
|
+
if (obj.userInput !== undefined) {
|
|
6656
|
+
const obj_userInput = obj.userInput;
|
|
6657
|
+
const path_userInput = path + '.userInput';
|
|
6658
|
+
let obj_userInput_union0 = null;
|
|
6659
|
+
const obj_userInput_union0_error = (() => {
|
|
6660
|
+
if (typeof obj_userInput !== 'boolean') {
|
|
6661
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
|
|
6662
|
+
}
|
|
6663
|
+
})();
|
|
6664
|
+
if (obj_userInput_union0_error != null) {
|
|
6665
|
+
obj_userInput_union0 = obj_userInput_union0_error.message;
|
|
6666
|
+
}
|
|
6667
|
+
let obj_userInput_union1 = null;
|
|
6668
|
+
const obj_userInput_union1_error = (() => {
|
|
6669
|
+
if (obj_userInput !== null) {
|
|
6670
|
+
return new TypeError('Expected "null" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
|
|
6671
|
+
}
|
|
6672
|
+
})();
|
|
6673
|
+
if (obj_userInput_union1_error != null) {
|
|
6674
|
+
obj_userInput_union1 = obj_userInput_union1_error.message;
|
|
6675
|
+
}
|
|
6676
|
+
if (obj_userInput_union0 && obj_userInput_union1) {
|
|
6677
|
+
let message = 'Object doesn\'t match union (at "' + path_userInput + '")';
|
|
6678
|
+
message += '\n' + obj_userInput_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6679
|
+
message += '\n' + obj_userInput_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6680
|
+
return new TypeError(message);
|
|
6681
|
+
}
|
|
6682
|
+
}
|
|
6683
|
+
})();
|
|
6684
|
+
return v_error === undefined ? null : v_error;
|
|
6685
|
+
}
|
|
6686
|
+
|
|
6687
|
+
function validate$8(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
6688
|
+
const v_error = (() => {
|
|
6689
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6690
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6691
|
+
}
|
|
6692
|
+
if (obj.attributes !== undefined) {
|
|
6693
|
+
const obj_attributes = obj.attributes;
|
|
6694
|
+
const path_attributes = path + '.attributes';
|
|
6695
|
+
if (!ArrayIsArray(obj_attributes)) {
|
|
6696
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
6697
|
+
}
|
|
6698
|
+
for (let i = 0; i < obj_attributes.length; i++) {
|
|
6699
|
+
const obj_attributes_item = obj_attributes[i];
|
|
6700
|
+
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
6701
|
+
const referencepath_attributes_itemValidationError = validate$9(obj_attributes_item, path_attributes_item);
|
|
6702
|
+
if (referencepath_attributes_itemValidationError !== null) {
|
|
6703
|
+
let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
6704
|
+
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6705
|
+
return new TypeError(message);
|
|
6706
|
+
}
|
|
6707
|
+
}
|
|
6708
|
+
}
|
|
6709
|
+
if (obj.description !== undefined) {
|
|
6710
|
+
const obj_description = obj.description;
|
|
6711
|
+
const path_description = path + '.description';
|
|
6712
|
+
let obj_description_union0 = null;
|
|
6713
|
+
const obj_description_union0_error = (() => {
|
|
6714
|
+
if (typeof obj_description !== 'string') {
|
|
6715
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6716
|
+
}
|
|
6717
|
+
})();
|
|
6718
|
+
if (obj_description_union0_error != null) {
|
|
6719
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
6720
|
+
}
|
|
6721
|
+
let obj_description_union1 = null;
|
|
6722
|
+
const obj_description_union1_error = (() => {
|
|
6723
|
+
if (obj_description !== null) {
|
|
6724
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
6725
|
+
}
|
|
6726
|
+
})();
|
|
6727
|
+
if (obj_description_union1_error != null) {
|
|
6728
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
6729
|
+
}
|
|
6730
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
6731
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
6732
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6733
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6734
|
+
return new TypeError(message);
|
|
6735
|
+
}
|
|
6736
|
+
}
|
|
6737
|
+
if (obj.developerName !== undefined) {
|
|
6738
|
+
const obj_developerName = obj.developerName;
|
|
6739
|
+
const path_developerName = path + '.developerName';
|
|
6740
|
+
let obj_developerName_union0 = null;
|
|
6741
|
+
const obj_developerName_union0_error = (() => {
|
|
6742
|
+
if (typeof obj_developerName !== 'string') {
|
|
6743
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
6744
|
+
}
|
|
6745
|
+
})();
|
|
6746
|
+
if (obj_developerName_union0_error != null) {
|
|
6747
|
+
obj_developerName_union0 = obj_developerName_union0_error.message;
|
|
6748
|
+
}
|
|
6749
|
+
let obj_developerName_union1 = null;
|
|
6750
|
+
const obj_developerName_union1_error = (() => {
|
|
6751
|
+
if (obj_developerName !== null) {
|
|
6752
|
+
return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
6753
|
+
}
|
|
6754
|
+
})();
|
|
6755
|
+
if (obj_developerName_union1_error != null) {
|
|
6756
|
+
obj_developerName_union1 = obj_developerName_union1_error.message;
|
|
6757
|
+
}
|
|
6758
|
+
if (obj_developerName_union0 && obj_developerName_union1) {
|
|
6759
|
+
let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
|
|
6760
|
+
message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6761
|
+
message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6762
|
+
return new TypeError(message);
|
|
6763
|
+
}
|
|
6764
|
+
}
|
|
6765
|
+
if (obj.id !== undefined) {
|
|
6766
|
+
const obj_id = obj.id;
|
|
6767
|
+
const path_id = path + '.id';
|
|
6768
|
+
let obj_id_union0 = null;
|
|
6769
|
+
const obj_id_union0_error = (() => {
|
|
6770
|
+
if (typeof obj_id !== 'string') {
|
|
6771
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6772
|
+
}
|
|
6773
|
+
})();
|
|
6774
|
+
if (obj_id_union0_error != null) {
|
|
6775
|
+
obj_id_union0 = obj_id_union0_error.message;
|
|
6776
|
+
}
|
|
6777
|
+
let obj_id_union1 = null;
|
|
6778
|
+
const obj_id_union1_error = (() => {
|
|
6779
|
+
if (obj_id !== null) {
|
|
6780
|
+
return new TypeError('Expected "null" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6781
|
+
}
|
|
6782
|
+
})();
|
|
6783
|
+
if (obj_id_union1_error != null) {
|
|
6784
|
+
obj_id_union1 = obj_id_union1_error.message;
|
|
6785
|
+
}
|
|
6786
|
+
if (obj_id_union0 && obj_id_union1) {
|
|
6787
|
+
let message = 'Object doesn\'t match union (at "' + path_id + '")';
|
|
6788
|
+
message += '\n' + obj_id_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6789
|
+
message += '\n' + obj_id_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6790
|
+
return new TypeError(message);
|
|
6791
|
+
}
|
|
6792
|
+
}
|
|
6793
|
+
if (obj.includeInProgressIndicator !== undefined) {
|
|
6794
|
+
const obj_includeInProgressIndicator = obj.includeInProgressIndicator;
|
|
6795
|
+
const path_includeInProgressIndicator = path + '.includeInProgressIndicator';
|
|
6796
|
+
let obj_includeInProgressIndicator_union0 = null;
|
|
6797
|
+
const obj_includeInProgressIndicator_union0_error = (() => {
|
|
6798
|
+
if (typeof obj_includeInProgressIndicator !== 'boolean') {
|
|
6799
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
|
|
6800
|
+
}
|
|
6801
|
+
})();
|
|
6802
|
+
if (obj_includeInProgressIndicator_union0_error != null) {
|
|
6803
|
+
obj_includeInProgressIndicator_union0 = obj_includeInProgressIndicator_union0_error.message;
|
|
6804
|
+
}
|
|
6805
|
+
let obj_includeInProgressIndicator_union1 = null;
|
|
6806
|
+
const obj_includeInProgressIndicator_union1_error = (() => {
|
|
6807
|
+
if (obj_includeInProgressIndicator !== null) {
|
|
6808
|
+
return new TypeError('Expected "null" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
|
|
6809
|
+
}
|
|
6810
|
+
})();
|
|
6811
|
+
if (obj_includeInProgressIndicator_union1_error != null) {
|
|
6812
|
+
obj_includeInProgressIndicator_union1 = obj_includeInProgressIndicator_union1_error.message;
|
|
6813
|
+
}
|
|
6814
|
+
if (obj_includeInProgressIndicator_union0 && obj_includeInProgressIndicator_union1) {
|
|
6815
|
+
let message = 'Object doesn\'t match union (at "' + path_includeInProgressIndicator + '")';
|
|
6816
|
+
message += '\n' + obj_includeInProgressIndicator_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6817
|
+
message += '\n' + obj_includeInProgressIndicator_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6818
|
+
return new TypeError(message);
|
|
6819
|
+
}
|
|
6820
|
+
}
|
|
6821
|
+
if (obj.invocationTarget !== undefined) {
|
|
6822
|
+
const obj_invocationTarget = obj.invocationTarget;
|
|
6823
|
+
const path_invocationTarget = path + '.invocationTarget';
|
|
6824
|
+
let obj_invocationTarget_union0 = null;
|
|
6825
|
+
const obj_invocationTarget_union0_error = (() => {
|
|
6826
|
+
if (typeof obj_invocationTarget !== 'string') {
|
|
6827
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
|
|
6828
|
+
}
|
|
6829
|
+
})();
|
|
6830
|
+
if (obj_invocationTarget_union0_error != null) {
|
|
6831
|
+
obj_invocationTarget_union0 = obj_invocationTarget_union0_error.message;
|
|
6832
|
+
}
|
|
6833
|
+
let obj_invocationTarget_union1 = null;
|
|
6834
|
+
const obj_invocationTarget_union1_error = (() => {
|
|
6835
|
+
if (obj_invocationTarget !== null) {
|
|
6836
|
+
return new TypeError('Expected "null" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
|
|
6837
|
+
}
|
|
6838
|
+
})();
|
|
6839
|
+
if (obj_invocationTarget_union1_error != null) {
|
|
6840
|
+
obj_invocationTarget_union1 = obj_invocationTarget_union1_error.message;
|
|
6841
|
+
}
|
|
6842
|
+
if (obj_invocationTarget_union0 && obj_invocationTarget_union1) {
|
|
6843
|
+
let message = 'Object doesn\'t match union (at "' + path_invocationTarget + '")';
|
|
6844
|
+
message += '\n' + obj_invocationTarget_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6845
|
+
message += '\n' + obj_invocationTarget_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6846
|
+
return new TypeError(message);
|
|
6847
|
+
}
|
|
6848
|
+
}
|
|
6849
|
+
if (obj.invocationTargetId !== undefined) {
|
|
6850
|
+
const obj_invocationTargetId = obj.invocationTargetId;
|
|
6851
|
+
const path_invocationTargetId = path + '.invocationTargetId';
|
|
6852
|
+
let obj_invocationTargetId_union0 = null;
|
|
6853
|
+
const obj_invocationTargetId_union0_error = (() => {
|
|
6854
|
+
if (typeof obj_invocationTargetId !== 'string') {
|
|
6855
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
|
|
6856
|
+
}
|
|
6857
|
+
})();
|
|
6858
|
+
if (obj_invocationTargetId_union0_error != null) {
|
|
6859
|
+
obj_invocationTargetId_union0 = obj_invocationTargetId_union0_error.message;
|
|
6860
|
+
}
|
|
6861
|
+
let obj_invocationTargetId_union1 = null;
|
|
6862
|
+
const obj_invocationTargetId_union1_error = (() => {
|
|
6863
|
+
if (obj_invocationTargetId !== null) {
|
|
6864
|
+
return new TypeError('Expected "null" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
|
|
6865
|
+
}
|
|
6866
|
+
})();
|
|
6867
|
+
if (obj_invocationTargetId_union1_error != null) {
|
|
6868
|
+
obj_invocationTargetId_union1 = obj_invocationTargetId_union1_error.message;
|
|
6869
|
+
}
|
|
6870
|
+
if (obj_invocationTargetId_union0 && obj_invocationTargetId_union1) {
|
|
6871
|
+
let message = 'Object doesn\'t match union (at "' + path_invocationTargetId + '")';
|
|
6872
|
+
message += '\n' + obj_invocationTargetId_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6873
|
+
message += '\n' + obj_invocationTargetId_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6874
|
+
return new TypeError(message);
|
|
6875
|
+
}
|
|
6876
|
+
}
|
|
6877
|
+
if (obj.invocationTargetType !== undefined) {
|
|
6878
|
+
const obj_invocationTargetType = obj.invocationTargetType;
|
|
6879
|
+
const path_invocationTargetType = path + '.invocationTargetType';
|
|
6880
|
+
let obj_invocationTargetType_union0 = null;
|
|
6881
|
+
const obj_invocationTargetType_union0_error = (() => {
|
|
6882
|
+
if (typeof obj_invocationTargetType !== 'string') {
|
|
6883
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
|
|
6884
|
+
}
|
|
6885
|
+
})();
|
|
6886
|
+
if (obj_invocationTargetType_union0_error != null) {
|
|
6887
|
+
obj_invocationTargetType_union0 = obj_invocationTargetType_union0_error.message;
|
|
6888
|
+
}
|
|
6889
|
+
let obj_invocationTargetType_union1 = null;
|
|
6890
|
+
const obj_invocationTargetType_union1_error = (() => {
|
|
6891
|
+
if (obj_invocationTargetType !== null) {
|
|
6892
|
+
return new TypeError('Expected "null" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
|
|
6893
|
+
}
|
|
6894
|
+
})();
|
|
6895
|
+
if (obj_invocationTargetType_union1_error != null) {
|
|
6896
|
+
obj_invocationTargetType_union1 = obj_invocationTargetType_union1_error.message;
|
|
6897
|
+
}
|
|
6898
|
+
if (obj_invocationTargetType_union0 && obj_invocationTargetType_union1) {
|
|
6899
|
+
let message = 'Object doesn\'t match union (at "' + path_invocationTargetType + '")';
|
|
6900
|
+
message += '\n' + obj_invocationTargetType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6901
|
+
message += '\n' + obj_invocationTargetType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6902
|
+
return new TypeError(message);
|
|
6903
|
+
}
|
|
6904
|
+
}
|
|
6905
|
+
if (obj.label !== undefined) {
|
|
6906
|
+
const obj_label = obj.label;
|
|
6907
|
+
const path_label = path + '.label';
|
|
6908
|
+
let obj_label_union0 = null;
|
|
6909
|
+
const obj_label_union0_error = (() => {
|
|
6910
|
+
if (typeof obj_label !== 'string') {
|
|
6911
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
6912
|
+
}
|
|
6913
|
+
})();
|
|
6914
|
+
if (obj_label_union0_error != null) {
|
|
6915
|
+
obj_label_union0 = obj_label_union0_error.message;
|
|
6916
|
+
}
|
|
6917
|
+
let obj_label_union1 = null;
|
|
6918
|
+
const obj_label_union1_error = (() => {
|
|
6919
|
+
if (obj_label !== null) {
|
|
6920
|
+
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
6921
|
+
}
|
|
6922
|
+
})();
|
|
6923
|
+
if (obj_label_union1_error != null) {
|
|
6924
|
+
obj_label_union1 = obj_label_union1_error.message;
|
|
6925
|
+
}
|
|
6926
|
+
if (obj_label_union0 && obj_label_union1) {
|
|
6927
|
+
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
6928
|
+
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6929
|
+
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6930
|
+
return new TypeError(message);
|
|
6931
|
+
}
|
|
6932
|
+
}
|
|
6933
|
+
if (obj.namespace !== undefined) {
|
|
6934
|
+
const obj_namespace = obj.namespace;
|
|
6935
|
+
const path_namespace = path + '.namespace';
|
|
6936
|
+
let obj_namespace_union0 = null;
|
|
6937
|
+
const obj_namespace_union0_error = (() => {
|
|
6938
|
+
if (typeof obj_namespace !== 'string') {
|
|
6939
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
6940
|
+
}
|
|
6941
|
+
})();
|
|
6942
|
+
if (obj_namespace_union0_error != null) {
|
|
6943
|
+
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
6944
|
+
}
|
|
6945
|
+
let obj_namespace_union1 = null;
|
|
6946
|
+
const obj_namespace_union1_error = (() => {
|
|
6947
|
+
if (obj_namespace !== null) {
|
|
6948
|
+
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
6949
|
+
}
|
|
6950
|
+
})();
|
|
6951
|
+
if (obj_namespace_union1_error != null) {
|
|
6952
|
+
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
6953
|
+
}
|
|
6954
|
+
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
6955
|
+
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
6956
|
+
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6957
|
+
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6958
|
+
return new TypeError(message);
|
|
6959
|
+
}
|
|
6960
|
+
}
|
|
6961
|
+
if (obj.progressIndicatorMessage !== undefined) {
|
|
6962
|
+
const obj_progressIndicatorMessage = obj.progressIndicatorMessage;
|
|
6963
|
+
const path_progressIndicatorMessage = path + '.progressIndicatorMessage';
|
|
6964
|
+
let obj_progressIndicatorMessage_union0 = null;
|
|
6965
|
+
const obj_progressIndicatorMessage_union0_error = (() => {
|
|
6966
|
+
if (typeof obj_progressIndicatorMessage !== 'string') {
|
|
6967
|
+
return new TypeError('Expected "string" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
|
|
6968
|
+
}
|
|
6969
|
+
})();
|
|
6970
|
+
if (obj_progressIndicatorMessage_union0_error != null) {
|
|
6971
|
+
obj_progressIndicatorMessage_union0 = obj_progressIndicatorMessage_union0_error.message;
|
|
6972
|
+
}
|
|
6973
|
+
let obj_progressIndicatorMessage_union1 = null;
|
|
6974
|
+
const obj_progressIndicatorMessage_union1_error = (() => {
|
|
6975
|
+
if (obj_progressIndicatorMessage !== null) {
|
|
6976
|
+
return new TypeError('Expected "null" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
|
|
6977
|
+
}
|
|
6978
|
+
})();
|
|
6979
|
+
if (obj_progressIndicatorMessage_union1_error != null) {
|
|
6980
|
+
obj_progressIndicatorMessage_union1 = obj_progressIndicatorMessage_union1_error.message;
|
|
6981
|
+
}
|
|
6982
|
+
if (obj_progressIndicatorMessage_union0 && obj_progressIndicatorMessage_union1) {
|
|
6983
|
+
let message = 'Object doesn\'t match union (at "' + path_progressIndicatorMessage + '")';
|
|
6984
|
+
message += '\n' + obj_progressIndicatorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6985
|
+
message += '\n' + obj_progressIndicatorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6986
|
+
return new TypeError(message);
|
|
6987
|
+
}
|
|
6988
|
+
}
|
|
6989
|
+
if (obj.userConfirmationRequired !== undefined) {
|
|
6990
|
+
const obj_userConfirmationRequired = obj.userConfirmationRequired;
|
|
6991
|
+
const path_userConfirmationRequired = path + '.userConfirmationRequired';
|
|
6992
|
+
let obj_userConfirmationRequired_union0 = null;
|
|
6993
|
+
const obj_userConfirmationRequired_union0_error = (() => {
|
|
6994
|
+
if (typeof obj_userConfirmationRequired !== 'boolean') {
|
|
6995
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
|
|
6996
|
+
}
|
|
6997
|
+
})();
|
|
6998
|
+
if (obj_userConfirmationRequired_union0_error != null) {
|
|
6999
|
+
obj_userConfirmationRequired_union0 = obj_userConfirmationRequired_union0_error.message;
|
|
7000
|
+
}
|
|
7001
|
+
let obj_userConfirmationRequired_union1 = null;
|
|
7002
|
+
const obj_userConfirmationRequired_union1_error = (() => {
|
|
7003
|
+
if (obj_userConfirmationRequired !== null) {
|
|
7004
|
+
return new TypeError('Expected "null" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
|
|
7005
|
+
}
|
|
7006
|
+
})();
|
|
7007
|
+
if (obj_userConfirmationRequired_union1_error != null) {
|
|
7008
|
+
obj_userConfirmationRequired_union1 = obj_userConfirmationRequired_union1_error.message;
|
|
7009
|
+
}
|
|
7010
|
+
if (obj_userConfirmationRequired_union0 && obj_userConfirmationRequired_union1) {
|
|
7011
|
+
let message = 'Object doesn\'t match union (at "' + path_userConfirmationRequired + '")';
|
|
7012
|
+
message += '\n' + obj_userConfirmationRequired_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7013
|
+
message += '\n' + obj_userConfirmationRequired_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7014
|
+
return new TypeError(message);
|
|
7015
|
+
}
|
|
7016
|
+
}
|
|
7017
|
+
})();
|
|
7018
|
+
return v_error === undefined ? null : v_error;
|
|
7019
|
+
}
|
|
7020
|
+
|
|
7021
|
+
const TTL$2 = 6000;
|
|
7022
|
+
const VERSION$3 = "8d267876ea7c4f028aade73f06d0f634";
|
|
7023
|
+
function validate$7(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
7024
|
+
const v_error = (() => {
|
|
7025
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7026
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7027
|
+
}
|
|
7028
|
+
if (obj.actions !== undefined) {
|
|
7029
|
+
const obj_actions = obj.actions;
|
|
7030
|
+
const path_actions = path + '.actions';
|
|
7031
|
+
if (!ArrayIsArray(obj_actions)) {
|
|
7032
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
|
|
7033
|
+
}
|
|
7034
|
+
for (let i = 0; i < obj_actions.length; i++) {
|
|
7035
|
+
const obj_actions_item = obj_actions[i];
|
|
7036
|
+
const path_actions_item = path_actions + '[' + i + ']';
|
|
7037
|
+
const referencepath_actions_itemValidationError = validate$8(obj_actions_item, path_actions_item);
|
|
7038
|
+
if (referencepath_actions_itemValidationError !== null) {
|
|
7039
|
+
let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
|
|
7040
|
+
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7041
|
+
return new TypeError(message);
|
|
7042
|
+
}
|
|
7043
|
+
}
|
|
7044
|
+
}
|
|
7045
|
+
})();
|
|
7046
|
+
return v_error === undefined ? null : v_error;
|
|
7047
|
+
}
|
|
7048
|
+
const RepresentationType$3 = 'EinsteinAgentActionsOutputRepresentation';
|
|
7049
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
7050
|
+
return input;
|
|
7051
|
+
}
|
|
7052
|
+
const select$9 = function EinsteinAgentActionsOutputRepresentationSelect() {
|
|
7053
|
+
return {
|
|
7054
|
+
kind: 'Fragment',
|
|
7055
|
+
version: VERSION$3,
|
|
7056
|
+
private: [],
|
|
7057
|
+
opaque: true
|
|
7058
|
+
};
|
|
7059
|
+
};
|
|
7060
|
+
function equals$3(existing, incoming) {
|
|
7061
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7062
|
+
return false;
|
|
7063
|
+
}
|
|
7064
|
+
return true;
|
|
7065
|
+
}
|
|
7066
|
+
const ingest$3 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7067
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7068
|
+
const validateError = validate$7(input);
|
|
7069
|
+
if (validateError !== null) {
|
|
7070
|
+
throw validateError;
|
|
7071
|
+
}
|
|
7072
|
+
}
|
|
7073
|
+
const key = path.fullPath;
|
|
7074
|
+
const ttlToUse = TTL$2;
|
|
7075
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
|
|
7076
|
+
return createLink(key);
|
|
7077
|
+
};
|
|
7078
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
7079
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7080
|
+
const rootKey = fullPathFactory();
|
|
7081
|
+
rootKeySet.set(rootKey, {
|
|
7082
|
+
namespace: keyPrefix,
|
|
7083
|
+
representationName: RepresentationType$3,
|
|
7084
|
+
mergeable: false
|
|
7085
|
+
});
|
|
7086
|
+
}
|
|
7087
|
+
|
|
7088
|
+
function select$8(luvio, params) {
|
|
7089
|
+
return select$9();
|
|
7090
|
+
}
|
|
7091
|
+
function keyBuilder$8(luvio, params) {
|
|
7092
|
+
return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
|
|
7093
|
+
}
|
|
7094
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
7095
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
7096
|
+
}
|
|
7097
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
7098
|
+
const { body } = response;
|
|
7099
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
7100
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7101
|
+
const snapshot = luvio.storeLookup({
|
|
7102
|
+
recordId: key,
|
|
7103
|
+
node: select$8(),
|
|
7104
|
+
variables: {},
|
|
7105
|
+
}, snapshotRefresh);
|
|
7106
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7107
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
7108
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
7109
|
+
}
|
|
7110
|
+
}
|
|
7111
|
+
deepFreeze(snapshot.data);
|
|
7112
|
+
return snapshot;
|
|
7113
|
+
}
|
|
7114
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
7115
|
+
const key = keyBuilder$8(luvio, params);
|
|
7116
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7117
|
+
const storeMetadataParams = {
|
|
7118
|
+
ttl: TTL$2,
|
|
7119
|
+
namespace: keyPrefix,
|
|
7120
|
+
version: VERSION$3,
|
|
7121
|
+
representationName: RepresentationType$3
|
|
7122
|
+
};
|
|
7123
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7124
|
+
return errorSnapshot;
|
|
7125
|
+
}
|
|
7126
|
+
function createResourceRequest$5(config) {
|
|
7127
|
+
const headers = {};
|
|
7128
|
+
return {
|
|
7129
|
+
baseUri: '/services/data/v64.0',
|
|
7130
|
+
basePath: '/connect/service-automation/gen-ai/actions',
|
|
7131
|
+
method: 'get',
|
|
7132
|
+
body: null,
|
|
7133
|
+
urlParams: {},
|
|
7134
|
+
queryParams: config.queryParams,
|
|
7135
|
+
headers,
|
|
7136
|
+
priority: 'normal',
|
|
7137
|
+
};
|
|
7138
|
+
}
|
|
7139
|
+
|
|
7140
|
+
const adapterName$5 = 'getAgentActions';
|
|
7141
|
+
const getAgentActions_ConfigPropertyMetadata = [
|
|
7142
|
+
generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7143
|
+
generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7144
|
+
];
|
|
7145
|
+
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAgentActions_ConfigPropertyMetadata);
|
|
7146
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$8(getAgentActions_ConfigPropertyMetadata);
|
|
7147
|
+
function keyBuilder$7(luvio, config) {
|
|
7148
|
+
const resourceParams = createResourceParams$5(config);
|
|
7149
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
7150
|
+
}
|
|
7151
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
7152
|
+
const config = {};
|
|
7153
|
+
typeCheckConfig$8(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
|
|
7154
|
+
return config;
|
|
7155
|
+
}
|
|
7156
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
7157
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7158
|
+
return null;
|
|
7159
|
+
}
|
|
7160
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7161
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7162
|
+
}
|
|
7163
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
7164
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7165
|
+
return null;
|
|
7166
|
+
}
|
|
7167
|
+
return config;
|
|
7168
|
+
}
|
|
7169
|
+
function adapterFragment$3(luvio, config) {
|
|
7170
|
+
createResourceParams$5(config);
|
|
7171
|
+
return select$8();
|
|
7172
|
+
}
|
|
7173
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
7174
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
7175
|
+
config,
|
|
7176
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7177
|
+
});
|
|
7178
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7179
|
+
}
|
|
7180
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
7181
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
7182
|
+
config,
|
|
7183
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7184
|
+
});
|
|
7185
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7186
|
+
}
|
|
7187
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
7188
|
+
const resourceParams = createResourceParams$5(config);
|
|
7189
|
+
const request = createResourceRequest$5(resourceParams);
|
|
7190
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7191
|
+
.then((response) => {
|
|
7192
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
7193
|
+
const cache = new StoreKeyMap();
|
|
7194
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
7195
|
+
return cache;
|
|
7196
|
+
});
|
|
7197
|
+
}, (response) => {
|
|
7198
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
7199
|
+
});
|
|
7200
|
+
}
|
|
7201
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7202
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
7203
|
+
}
|
|
7204
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7205
|
+
const { luvio, config } = context;
|
|
7206
|
+
const selector = {
|
|
7207
|
+
recordId: keyBuilder$7(luvio, config),
|
|
7208
|
+
node: adapterFragment$3(luvio, config),
|
|
7209
|
+
variables: {},
|
|
7210
|
+
};
|
|
7211
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
7212
|
+
config,
|
|
7213
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7214
|
+
});
|
|
7215
|
+
return cacheSnapshot;
|
|
7216
|
+
}
|
|
7217
|
+
const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
|
|
7218
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAgentActions_ConfigPropertyNames);
|
|
7219
|
+
// Invalid or incomplete config
|
|
7220
|
+
if (config === null) {
|
|
7221
|
+
return null;
|
|
7222
|
+
}
|
|
7223
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7224
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
7225
|
+
};
|
|
7226
|
+
|
|
7227
|
+
function validate$6(obj, path = 'FilterInputRepresentation') {
|
|
7228
|
+
const v_error = (() => {
|
|
7229
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7230
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7231
|
+
}
|
|
7232
|
+
const obj_field = obj.field;
|
|
7233
|
+
const path_field = path + '.field';
|
|
7234
|
+
if (typeof obj_field !== 'string') {
|
|
7235
|
+
return new TypeError('Expected "string" but received "' + typeof obj_field + '" (at "' + path_field + '")');
|
|
7236
|
+
}
|
|
7237
|
+
const obj_operator = obj.operator;
|
|
7238
|
+
const path_operator = path + '.operator';
|
|
7239
|
+
if (typeof obj_operator !== 'string') {
|
|
7240
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operator + '" (at "' + path_operator + '")');
|
|
7241
|
+
}
|
|
7242
|
+
const obj_value = obj.value;
|
|
7243
|
+
const path_value = path + '.value';
|
|
7244
|
+
if (obj_value === undefined) {
|
|
7245
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_value + '" (at "' + path_value + '")');
|
|
7246
|
+
}
|
|
7247
|
+
})();
|
|
7248
|
+
return v_error === undefined ? null : v_error;
|
|
7249
|
+
}
|
|
7250
|
+
|
|
7251
|
+
function validate$5(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
7252
|
+
const v_error = (() => {
|
|
7253
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7254
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7255
|
+
}
|
|
7256
|
+
const obj_fields = obj.fields;
|
|
7257
|
+
const path_fields = path + '.fields';
|
|
7258
|
+
if (typeof obj_fields !== 'object' || ArrayIsArray(obj_fields) || obj_fields === null) {
|
|
7259
|
+
return new TypeError('Expected "object" but received "' + typeof obj_fields + '" (at "' + path_fields + '")');
|
|
7260
|
+
}
|
|
7261
|
+
const obj_fields_keys = ObjectKeys(obj_fields);
|
|
7262
|
+
for (let i = 0; i < obj_fields_keys.length; i++) {
|
|
7263
|
+
const key = obj_fields_keys[i];
|
|
7264
|
+
const obj_fields_prop = obj_fields[key];
|
|
7265
|
+
const path_fields_prop = path_fields + '["' + key + '"]';
|
|
7266
|
+
if (obj_fields_prop === undefined) {
|
|
7267
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
|
|
7268
|
+
}
|
|
7269
|
+
}
|
|
7270
|
+
})();
|
|
7271
|
+
return v_error === undefined ? null : v_error;
|
|
7272
|
+
}
|
|
7273
|
+
|
|
7274
|
+
const TTL$1 = 6000;
|
|
7275
|
+
const VERSION$2 = "7860ae260a600243129acb4ea01e75be";
|
|
7276
|
+
function validate$4(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
7277
|
+
const v_error = (() => {
|
|
7278
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7279
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6367
7280
|
}
|
|
6368
7281
|
const obj_entityApiName = obj.entityApiName;
|
|
6369
7282
|
const path_entityApiName = path + '.entityApiName';
|
|
@@ -6488,14 +7401,14 @@ const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
|
6488
7401
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6489
7402
|
];
|
|
6490
7403
|
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6491
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
7404
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$8(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6492
7405
|
function keyBuilder$5(luvio, config) {
|
|
6493
7406
|
const resourceParams = createResourceParams$4(config);
|
|
6494
7407
|
return keyBuilder$6(luvio, resourceParams);
|
|
6495
7408
|
}
|
|
6496
7409
|
function typeCheckConfig$4(untrustedConfig) {
|
|
6497
7410
|
const config = {};
|
|
6498
|
-
typeCheckConfig$
|
|
7411
|
+
typeCheckConfig$8(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6499
7412
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
6500
7413
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
6501
7414
|
const untrustedConfig_filters_array = [];
|
|
@@ -6563,7 +7476,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
6563
7476
|
});
|
|
6564
7477
|
}
|
|
6565
7478
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6566
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7479
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
6567
7480
|
}
|
|
6568
7481
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6569
7482
|
const { luvio, config } = context;
|
|
@@ -6589,20 +7502,20 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
|
|
|
6589
7502
|
};
|
|
6590
7503
|
|
|
6591
7504
|
function select$5(luvio, params) {
|
|
6592
|
-
return select$
|
|
7505
|
+
return select$d();
|
|
6593
7506
|
}
|
|
6594
7507
|
function keyBuilder$4(luvio, params) {
|
|
6595
|
-
return keyBuilder$
|
|
7508
|
+
return keyBuilder$a(luvio, {
|
|
6596
7509
|
catalogItemId: params.urlParams.catalogItemId
|
|
6597
7510
|
});
|
|
6598
7511
|
}
|
|
6599
7512
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6600
|
-
getTypeCacheKeys$
|
|
7513
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
6601
7514
|
}
|
|
6602
7515
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6603
7516
|
const { body } = response;
|
|
6604
7517
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
6605
|
-
luvio.storeIngest(key, ingest$
|
|
7518
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
6606
7519
|
const snapshot = luvio.storeLookup({
|
|
6607
7520
|
recordId: key,
|
|
6608
7521
|
node: select$5(),
|
|
@@ -6620,10 +7533,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
6620
7533
|
const key = keyBuilder$4(luvio, params);
|
|
6621
7534
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6622
7535
|
const storeMetadataParams = {
|
|
6623
|
-
ttl: TTL$
|
|
7536
|
+
ttl: TTL$4,
|
|
6624
7537
|
namespace: keyPrefix,
|
|
6625
|
-
version: VERSION$
|
|
6626
|
-
representationName: RepresentationType$
|
|
7538
|
+
version: VERSION$5,
|
|
7539
|
+
representationName: RepresentationType$5
|
|
6627
7540
|
};
|
|
6628
7541
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6629
7542
|
return errorSnapshot;
|
|
@@ -6648,14 +7561,14 @@ const getCatalogItem_ConfigPropertyMetadata = [
|
|
|
6648
7561
|
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6649
7562
|
];
|
|
6650
7563
|
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCatalogItem_ConfigPropertyMetadata);
|
|
6651
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
7564
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$8(getCatalogItem_ConfigPropertyMetadata);
|
|
6652
7565
|
function keyBuilder$3(luvio, config) {
|
|
6653
7566
|
const resourceParams = createResourceParams$3(config);
|
|
6654
7567
|
return keyBuilder$4(luvio, resourceParams);
|
|
6655
7568
|
}
|
|
6656
7569
|
function typeCheckConfig$3(untrustedConfig) {
|
|
6657
7570
|
const config = {};
|
|
6658
|
-
typeCheckConfig$
|
|
7571
|
+
typeCheckConfig$8(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
6659
7572
|
return config;
|
|
6660
7573
|
}
|
|
6661
7574
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -6704,7 +7617,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6704
7617
|
});
|
|
6705
7618
|
}
|
|
6706
7619
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6707
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7620
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6708
7621
|
}
|
|
6709
7622
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6710
7623
|
const { luvio, config } = context;
|
|
@@ -6868,14 +7781,14 @@ const getServiceRequest_ConfigPropertyMetadata = [
|
|
|
6868
7781
|
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6869
7782
|
];
|
|
6870
7783
|
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getServiceRequest_ConfigPropertyMetadata);
|
|
6871
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
7784
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$8(getServiceRequest_ConfigPropertyMetadata);
|
|
6872
7785
|
function keyBuilder$1(luvio, config) {
|
|
6873
7786
|
const resourceParams = createResourceParams$2(config);
|
|
6874
7787
|
return keyBuilder$2(luvio, resourceParams);
|
|
6875
7788
|
}
|
|
6876
7789
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6877
7790
|
const config = {};
|
|
6878
|
-
typeCheckConfig$
|
|
7791
|
+
typeCheckConfig$8(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
6879
7792
|
return config;
|
|
6880
7793
|
}
|
|
6881
7794
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6924,7 +7837,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6924
7837
|
});
|
|
6925
7838
|
}
|
|
6926
7839
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6927
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7840
|
+
return buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
6928
7841
|
}
|
|
6929
7842
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6930
7843
|
const { luvio, config } = context;
|
|
@@ -6950,15 +7863,15 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
|
|
|
6950
7863
|
};
|
|
6951
7864
|
|
|
6952
7865
|
function select$2(luvio, params) {
|
|
6953
|
-
return select$
|
|
7866
|
+
return select$d();
|
|
6954
7867
|
}
|
|
6955
7868
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
6956
|
-
getTypeCacheKeys$
|
|
7869
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
6957
7870
|
}
|
|
6958
7871
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6959
7872
|
const { body } = response;
|
|
6960
7873
|
const key = keyBuilderFromType$2(luvio, body);
|
|
6961
|
-
luvio.storeIngest(key, ingest$
|
|
7874
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
6962
7875
|
const snapshot = luvio.storeLookup({
|
|
6963
7876
|
recordId: key,
|
|
6964
7877
|
node: select$2(),
|
|
@@ -7009,12 +7922,12 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
7009
7922
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7010
7923
|
];
|
|
7011
7924
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
7012
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7925
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$8(updateCatalogItem_ConfigPropertyMetadata);
|
|
7013
7926
|
function typeCheckConfig$1(untrustedConfig) {
|
|
7014
7927
|
const config = {};
|
|
7015
|
-
typeCheckConfig$
|
|
7928
|
+
typeCheckConfig$8(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
7016
7929
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
7017
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
7930
|
+
const referenceAgentActionInputRepresentationValidationError = validate$y(untrustedConfig_agentAction);
|
|
7018
7931
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
7019
7932
|
config.agentAction = untrustedConfig_agentAction;
|
|
7020
7933
|
}
|
|
@@ -7033,7 +7946,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7033
7946
|
const untrustedConfig_associatedArticles_array = [];
|
|
7034
7947
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
7035
7948
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
7036
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
7949
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$x(untrustedConfig_associatedArticles_item);
|
|
7037
7950
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
7038
7951
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
7039
7952
|
}
|
|
@@ -7048,7 +7961,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7048
7961
|
const untrustedConfig_attributes_array = [];
|
|
7049
7962
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
7050
7963
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
7051
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
7964
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$v(untrustedConfig_attributes_item);
|
|
7052
7965
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
7053
7966
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
7054
7967
|
}
|
|
@@ -7063,7 +7976,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7063
7976
|
const untrustedConfig_sections_array = [];
|
|
7064
7977
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
7065
7978
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
7066
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
7979
|
+
const referenceSectionInputRepresentationValidationError = validate$u(untrustedConfig_sections_item);
|
|
7067
7980
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
7068
7981
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
7069
7982
|
}
|
|
@@ -7099,7 +8012,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7099
8012
|
const untrustedConfig_eligibilityRules_array = [];
|
|
7100
8013
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
7101
8014
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
7102
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
8015
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$t(untrustedConfig_eligibilityRules_item);
|
|
7103
8016
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
7104
8017
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
7105
8018
|
}
|
|
@@ -7110,7 +8023,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7110
8023
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
7111
8024
|
}
|
|
7112
8025
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
7113
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
8026
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$s(untrustedConfig_fulfillmentFlow);
|
|
7114
8027
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
7115
8028
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
7116
8029
|
}
|
|
@@ -7118,7 +8031,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7118
8031
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
7119
8032
|
}
|
|
7120
8033
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
7121
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
8034
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$r(untrustedConfig_intakeForm);
|
|
7122
8035
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
7123
8036
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
7124
8037
|
}
|
|
@@ -7130,7 +8043,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7130
8043
|
const untrustedConfig_integrations_array = [];
|
|
7131
8044
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
7132
8045
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
7133
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
8046
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$q(untrustedConfig_integrations_item);
|
|
7134
8047
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
7135
8048
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
7136
8049
|
}
|
|
@@ -7159,7 +8072,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7159
8072
|
const untrustedConfig_preProcessors_array = [];
|
|
7160
8073
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
7161
8074
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
7162
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
8075
|
+
const referencePreprocessorInputRepresentationValidationError = validate$p(untrustedConfig_preProcessors_item);
|
|
7163
8076
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
7164
8077
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
7165
8078
|
}
|
|
@@ -7174,7 +8087,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
7174
8087
|
const untrustedConfig_productRequests_array = [];
|
|
7175
8088
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
7176
8089
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
7177
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
8090
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$o(untrustedConfig_productRequests_item);
|
|
7178
8091
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
7179
8092
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
7180
8093
|
}
|
|
@@ -7414,10 +8327,10 @@ const updateEpcCategories_ConfigPropertyMetadata = [
|
|
|
7414
8327
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7415
8328
|
];
|
|
7416
8329
|
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateEpcCategories_ConfigPropertyMetadata);
|
|
7417
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
8330
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$8(updateEpcCategories_ConfigPropertyMetadata);
|
|
7418
8331
|
function typeCheckConfig(untrustedConfig) {
|
|
7419
8332
|
const config = {};
|
|
7420
|
-
typeCheckConfig$
|
|
8333
|
+
typeCheckConfig$8(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
7421
8334
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
7422
8335
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
7423
8336
|
const untrustedConfig_categories_array = [];
|
|
@@ -7476,15 +8389,18 @@ const updateEpcCategoriesAdapterFactory = (luvio) => {
|
|
|
7476
8389
|
|
|
7477
8390
|
let createCatalogItem;
|
|
7478
8391
|
let generateOmniScript;
|
|
8392
|
+
let getAgentActions;
|
|
7479
8393
|
let getAllServiceAutomationDep;
|
|
7480
8394
|
let getCatalogItem;
|
|
7481
8395
|
let getServiceRequest;
|
|
7482
8396
|
let updateCatalogItem;
|
|
7483
8397
|
let updateEpcCategories;
|
|
7484
8398
|
// Imperative GET Adapters
|
|
8399
|
+
let getAgentActions_imperative;
|
|
7485
8400
|
let getAllServiceAutomationDep_imperative;
|
|
7486
8401
|
let getCatalogItem_imperative;
|
|
7487
8402
|
let getServiceRequest_imperative;
|
|
8403
|
+
const getAgentActionsMetadata = { apiFamily: 'ecm', name: 'getAgentActions', ttl: 6000 };
|
|
7488
8404
|
const getAllServiceAutomationDepMetadata = {
|
|
7489
8405
|
apiFamily: 'ecm',
|
|
7490
8406
|
name: 'getAllServiceAutomationDep',
|
|
@@ -7495,6 +8411,7 @@ const getServiceRequestMetadata = { apiFamily: 'ecm', name: 'getServiceRequest'
|
|
|
7495
8411
|
// Notify Update Available
|
|
7496
8412
|
function bindExportsTo(luvio) {
|
|
7497
8413
|
// LDS Adapters
|
|
8414
|
+
const getAgentActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAgentActions', getAgentActionsAdapterFactory), getAgentActionsMetadata);
|
|
7498
8415
|
const getAllServiceAutomationDep_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceAutomationDep', getAllServiceAutomationDepAdapterFactory), getAllServiceAutomationDepMetadata);
|
|
7499
8416
|
const getCatalogItem_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCatalogItem', getCatalogItemAdapterFactory), getCatalogItemMetadata);
|
|
7500
8417
|
const getServiceRequest_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getServiceRequest', getServiceRequestAdapterFactory), getServiceRequestMetadata);
|
|
@@ -7505,12 +8422,14 @@ function bindExportsTo(luvio) {
|
|
|
7505
8422
|
return {
|
|
7506
8423
|
createCatalogItem: unwrapSnapshotData(createCatalogItemAdapterFactory),
|
|
7507
8424
|
generateOmniScript: unwrapSnapshotData(generateOmniScriptAdapterFactory),
|
|
8425
|
+
getAgentActions: createWireAdapterConstructor(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
7508
8426
|
getAllServiceAutomationDep: createWireAdapterConstructor(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
7509
8427
|
getCatalogItem: createWireAdapterConstructor(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
7510
8428
|
getServiceRequest: createWireAdapterConstructor(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
7511
8429
|
updateCatalogItem: unwrapSnapshotData(updateCatalogItemAdapterFactory),
|
|
7512
8430
|
updateEpcCategories: unwrapSnapshotData(updateEpcCategoriesAdapterFactory),
|
|
7513
8431
|
// Imperative GET Adapters
|
|
8432
|
+
getAgentActions_imperative: createImperativeAdapter(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
7514
8433
|
getAllServiceAutomationDep_imperative: createImperativeAdapter(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
7515
8434
|
getCatalogItem_imperative: createImperativeAdapter(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
7516
8435
|
getServiceRequest_imperative: createImperativeAdapter(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
@@ -7521,16 +8440,18 @@ withDefaultLuvio((luvio) => {
|
|
|
7521
8440
|
({
|
|
7522
8441
|
createCatalogItem,
|
|
7523
8442
|
generateOmniScript,
|
|
8443
|
+
getAgentActions,
|
|
7524
8444
|
getAllServiceAutomationDep,
|
|
7525
8445
|
getCatalogItem,
|
|
7526
8446
|
getServiceRequest,
|
|
7527
8447
|
updateCatalogItem,
|
|
7528
8448
|
updateEpcCategories,
|
|
8449
|
+
getAgentActions_imperative,
|
|
7529
8450
|
getAllServiceAutomationDep_imperative,
|
|
7530
8451
|
getCatalogItem_imperative,
|
|
7531
8452
|
getServiceRequest_imperative,
|
|
7532
8453
|
} = bindExportsTo(luvio));
|
|
7533
8454
|
});
|
|
7534
8455
|
|
|
7535
|
-
export { createCatalogItem, generateOmniScript, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
7536
|
-
// version: 1.
|
|
8456
|
+
export { createCatalogItem, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8457
|
+
// version: 1.349.0-2008e7132b
|