@salesforce/lds-adapters-service-ecm 1.364.0 → 1.366.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-ecm.js +970 -542
- package/dist/es/es2018/types/src/generated/adapters/deployTemplate.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/adapters/getAllServiceProcessTemplate.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceProcessGetAllTemplates.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationTemplateDeployByTemplateId.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/types/DeploymentOutputRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplateOutputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplatesOutputRepresentation.d.ts +30 -0
- package/package.json +3 -3
- package/sfdc/index.js +829 -386
- package/src/raml/api.raml +73 -0
- package/src/raml/luvio.raml +15 -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$b, typeCheckConfig as typeCheckConfig$b, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5 } 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$C(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$z(obj, path = 'AgentActionInputRepresentation') {
|
|
|
243
243
|
return v_error === undefined ? null : v_error;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
|
-
function validate$
|
|
246
|
+
function validate$B(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$y(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
336
336
|
return v_error === undefined ? null : v_error;
|
|
337
337
|
}
|
|
338
338
|
|
|
339
|
-
function validate$
|
|
339
|
+
function validate$A(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$x(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
415
415
|
return v_error === undefined ? null : v_error;
|
|
416
416
|
}
|
|
417
417
|
|
|
418
|
-
function validate$
|
|
418
|
+
function validate$z(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$w(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$A(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$w(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
840
840
|
return v_error === undefined ? null : v_error;
|
|
841
841
|
}
|
|
842
842
|
|
|
843
|
-
function validate$
|
|
843
|
+
function validate$y(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$v(obj, path = 'SectionInputRepresentation') {
|
|
|
982
982
|
return v_error === undefined ? null : v_error;
|
|
983
983
|
}
|
|
984
984
|
|
|
985
|
-
function validate$
|
|
985
|
+
function validate$x(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$u(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
1047
1047
|
return v_error === undefined ? null : v_error;
|
|
1048
1048
|
}
|
|
1049
1049
|
|
|
1050
|
-
function validate$
|
|
1050
|
+
function validate$w(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$t(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1168
1168
|
return v_error === undefined ? null : v_error;
|
|
1169
1169
|
}
|
|
1170
1170
|
|
|
1171
|
-
function validate$
|
|
1171
|
+
function validate$v(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$s(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1289
1289
|
return v_error === undefined ? null : v_error;
|
|
1290
1290
|
}
|
|
1291
1291
|
|
|
1292
|
-
function validate$
|
|
1292
|
+
function validate$u(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$r(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1382
1382
|
return v_error === undefined ? null : v_error;
|
|
1383
1383
|
}
|
|
1384
1384
|
|
|
1385
|
-
function validate$
|
|
1385
|
+
function validate$t(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$q(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1475
1475
|
return v_error === undefined ? null : v_error;
|
|
1476
1476
|
}
|
|
1477
1477
|
|
|
1478
|
-
function validate$
|
|
1478
|
+
function validate$s(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$p(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$k = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1670
|
+
function validate$r(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$o(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1759
1759
|
})();
|
|
1760
1760
|
return v_error === undefined ? null : v_error;
|
|
1761
1761
|
}
|
|
1762
|
-
const select$
|
|
1762
|
+
const select$v = function AgentActionOutputRepresentationSelect() {
|
|
1763
1763
|
return {
|
|
1764
1764
|
kind: 'Fragment',
|
|
1765
|
-
version: VERSION$
|
|
1765
|
+
version: VERSION$k,
|
|
1766
1766
|
private: [],
|
|
1767
1767
|
selections: [
|
|
1768
1768
|
{
|
|
@@ -1783,7 +1783,7 @@ const select$r = function AgentActionOutputRepresentationSelect() {
|
|
|
1783
1783
|
]
|
|
1784
1784
|
};
|
|
1785
1785
|
};
|
|
1786
|
-
function equals$
|
|
1786
|
+
function equals$k(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$i(existing, incoming) {
|
|
|
1826
1826
|
return true;
|
|
1827
1827
|
}
|
|
1828
1828
|
|
|
1829
|
-
const VERSION$
|
|
1830
|
-
function validate$
|
|
1829
|
+
const VERSION$j = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1830
|
+
function validate$q(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$n(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1891
1891
|
})();
|
|
1892
1892
|
return v_error === undefined ? null : v_error;
|
|
1893
1893
|
}
|
|
1894
|
-
const select$
|
|
1894
|
+
const select$u = function AssociatedArticleOutputRepresentationSelect() {
|
|
1895
1895
|
return {
|
|
1896
1896
|
kind: 'Fragment',
|
|
1897
|
-
version: VERSION$
|
|
1897
|
+
version: VERSION$j,
|
|
1898
1898
|
private: [],
|
|
1899
1899
|
selections: [
|
|
1900
1900
|
{
|
|
@@ -1910,7 +1910,7 @@ const select$q = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1910
1910
|
]
|
|
1911
1911
|
};
|
|
1912
1912
|
};
|
|
1913
|
-
function equals$
|
|
1913
|
+
function equals$j(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$h(existing, incoming) {
|
|
|
1940
1940
|
return true;
|
|
1941
1941
|
}
|
|
1942
1942
|
|
|
1943
|
-
const VERSION$
|
|
1944
|
-
function validate$
|
|
1943
|
+
const VERSION$i = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1944
|
+
function validate$p(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$m(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
2005
2005
|
})();
|
|
2006
2006
|
return v_error === undefined ? null : v_error;
|
|
2007
2007
|
}
|
|
2008
|
-
const select$
|
|
2008
|
+
const select$t = function EligibilityRuleOutputRepresentationSelect() {
|
|
2009
2009
|
return {
|
|
2010
2010
|
kind: 'Fragment',
|
|
2011
|
-
version: VERSION$
|
|
2011
|
+
version: VERSION$i,
|
|
2012
2012
|
private: [],
|
|
2013
2013
|
selections: [
|
|
2014
2014
|
{
|
|
@@ -2024,7 +2024,7 @@ const select$p = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
2024
2024
|
]
|
|
2025
2025
|
};
|
|
2026
2026
|
};
|
|
2027
|
-
function equals$
|
|
2027
|
+
function equals$i(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$g(existing, incoming) {
|
|
|
2054
2054
|
return true;
|
|
2055
2055
|
}
|
|
2056
2056
|
|
|
2057
|
-
const VERSION$
|
|
2058
|
-
function validate$
|
|
2057
|
+
const VERSION$h = "b5216beece7c04763cff6924e6953f93";
|
|
2058
|
+
function validate$o(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$l(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2147
2147
|
})();
|
|
2148
2148
|
return v_error === undefined ? null : v_error;
|
|
2149
2149
|
}
|
|
2150
|
-
const select$
|
|
2150
|
+
const select$s = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2151
2151
|
return {
|
|
2152
2152
|
kind: 'Fragment',
|
|
2153
|
-
version: VERSION$
|
|
2153
|
+
version: VERSION$h,
|
|
2154
2154
|
private: [],
|
|
2155
2155
|
selections: [
|
|
2156
2156
|
{
|
|
@@ -2171,7 +2171,7 @@ const select$o = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2171
2171
|
]
|
|
2172
2172
|
};
|
|
2173
2173
|
};
|
|
2174
|
-
function equals$
|
|
2174
|
+
function equals$h(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$f(existing, incoming) {
|
|
|
2214
2214
|
return true;
|
|
2215
2215
|
}
|
|
2216
2216
|
|
|
2217
|
-
const VERSION$
|
|
2218
|
-
function validate$
|
|
2217
|
+
const VERSION$g = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2218
|
+
function validate$n(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$k(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2447
2447
|
})();
|
|
2448
2448
|
return v_error === undefined ? null : v_error;
|
|
2449
2449
|
}
|
|
2450
|
-
const select$
|
|
2450
|
+
const select$r = function IntakeFormOutputRepresentationSelect() {
|
|
2451
2451
|
return {
|
|
2452
2452
|
kind: 'Fragment',
|
|
2453
|
-
version: VERSION$
|
|
2453
|
+
version: VERSION$g,
|
|
2454
2454
|
private: [],
|
|
2455
2455
|
selections: [
|
|
2456
2456
|
{
|
|
@@ -2496,7 +2496,7 @@ const select$n = function IntakeFormOutputRepresentationSelect() {
|
|
|
2496
2496
|
]
|
|
2497
2497
|
};
|
|
2498
2498
|
};
|
|
2499
|
-
function equals$
|
|
2499
|
+
function equals$g(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$e(existing, incoming) {
|
|
|
2604
2604
|
return true;
|
|
2605
2605
|
}
|
|
2606
2606
|
|
|
2607
|
-
const VERSION$
|
|
2608
|
-
function validate$
|
|
2607
|
+
const VERSION$f = "1006a153c933b8bc4b1d44663893e206";
|
|
2608
|
+
function validate$m(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$j(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2669
2669
|
})();
|
|
2670
2670
|
return v_error === undefined ? null : v_error;
|
|
2671
2671
|
}
|
|
2672
|
-
const select$
|
|
2672
|
+
const select$q = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2673
2673
|
return {
|
|
2674
2674
|
kind: 'Fragment',
|
|
2675
|
-
version: VERSION$
|
|
2675
|
+
version: VERSION$f,
|
|
2676
2676
|
private: [],
|
|
2677
2677
|
selections: [
|
|
2678
2678
|
{
|
|
@@ -2688,7 +2688,7 @@ const select$m = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2688
2688
|
]
|
|
2689
2689
|
};
|
|
2690
2690
|
};
|
|
2691
|
-
function equals$
|
|
2691
|
+
function equals$f(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$d(existing, incoming) {
|
|
|
2718
2718
|
return true;
|
|
2719
2719
|
}
|
|
2720
2720
|
|
|
2721
|
-
const VERSION$
|
|
2722
|
-
function validate$
|
|
2721
|
+
const VERSION$e = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2722
|
+
function validate$l(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$i(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2783
2783
|
})();
|
|
2784
2784
|
return v_error === undefined ? null : v_error;
|
|
2785
2785
|
}
|
|
2786
|
-
const select$
|
|
2786
|
+
const select$p = function PreprocessorOutputRepresentationSelect() {
|
|
2787
2787
|
return {
|
|
2788
2788
|
kind: 'Fragment',
|
|
2789
|
-
version: VERSION$
|
|
2789
|
+
version: VERSION$e,
|
|
2790
2790
|
private: [],
|
|
2791
2791
|
selections: [
|
|
2792
2792
|
{
|
|
@@ -2802,7 +2802,7 @@ const select$l = function PreprocessorOutputRepresentationSelect() {
|
|
|
2802
2802
|
]
|
|
2803
2803
|
};
|
|
2804
2804
|
};
|
|
2805
|
-
function equals$
|
|
2805
|
+
function equals$e(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$c(existing, incoming) {
|
|
|
2832
2832
|
return true;
|
|
2833
2833
|
}
|
|
2834
2834
|
|
|
2835
|
-
const VERSION$
|
|
2836
|
-
function validate$
|
|
2835
|
+
const VERSION$d = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2836
|
+
function validate$k(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$h(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
3009
3009
|
})();
|
|
3010
3010
|
return v_error === undefined ? null : v_error;
|
|
3011
3011
|
}
|
|
3012
|
-
const select$
|
|
3012
|
+
const select$o = function ProductDetailsOutputRepresentationSelect() {
|
|
3013
3013
|
return {
|
|
3014
3014
|
kind: 'Fragment',
|
|
3015
|
-
version: VERSION$
|
|
3015
|
+
version: VERSION$d,
|
|
3016
3016
|
private: [],
|
|
3017
3017
|
selections: [
|
|
3018
3018
|
{
|
|
@@ -3048,7 +3048,7 @@ const select$k = function ProductDetailsOutputRepresentationSelect() {
|
|
|
3048
3048
|
]
|
|
3049
3049
|
};
|
|
3050
3050
|
};
|
|
3051
|
-
function equals$
|
|
3051
|
+
function equals$d(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$b(existing, incoming) {
|
|
|
3130
3130
|
return true;
|
|
3131
3131
|
}
|
|
3132
3132
|
|
|
3133
|
-
const VERSION$
|
|
3134
|
-
function validate$
|
|
3133
|
+
const VERSION$c = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3134
|
+
function validate$j(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$g(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$k(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$g(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$n = function ProductRequestOutputRepresentationSelect() {
|
|
3328
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$o();
|
|
3329
3329
|
return {
|
|
3330
3330
|
kind: 'Fragment',
|
|
3331
|
-
version: VERSION$
|
|
3331
|
+
version: VERSION$c,
|
|
3332
3332
|
private: [],
|
|
3333
3333
|
selections: [
|
|
3334
3334
|
{
|
|
@@ -3371,7 +3371,7 @@ const select$j = function ProductRequestOutputRepresentationSelect() {
|
|
|
3371
3371
|
]
|
|
3372
3372
|
};
|
|
3373
3373
|
};
|
|
3374
|
-
function equals$
|
|
3374
|
+
function equals$c(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$a(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$d(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3386
3386
|
return false;
|
|
3387
3387
|
}
|
|
3388
3388
|
});
|
|
@@ -3471,8 +3471,8 @@ function equals$a(existing, incoming) {
|
|
|
3471
3471
|
return true;
|
|
3472
3472
|
}
|
|
3473
3473
|
|
|
3474
|
-
const VERSION$
|
|
3475
|
-
function validate$
|
|
3474
|
+
const VERSION$b = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3475
|
+
function validate$i(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$f(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
3522
3522
|
})();
|
|
3523
3523
|
return v_error === undefined ? null : v_error;
|
|
3524
3524
|
}
|
|
3525
|
-
const select$
|
|
3525
|
+
const select$m = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3526
3526
|
return {
|
|
3527
3527
|
kind: 'Fragment',
|
|
3528
|
-
version: VERSION$
|
|
3528
|
+
version: VERSION$b,
|
|
3529
3529
|
private: [],
|
|
3530
3530
|
selections: [
|
|
3531
3531
|
{
|
|
@@ -3561,7 +3561,7 @@ const select$i = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
3561
3561
|
]
|
|
3562
3562
|
};
|
|
3563
3563
|
};
|
|
3564
|
-
function equals$
|
|
3564
|
+
function equals$b(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$9(existing, incoming) {
|
|
|
3643
3643
|
return true;
|
|
3644
3644
|
}
|
|
3645
3645
|
|
|
3646
|
-
const VERSION$
|
|
3647
|
-
function validate$
|
|
3646
|
+
const VERSION$a = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3647
|
+
function validate$h(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$e(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$i(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$e(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$l = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4100
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$m();
|
|
4101
4101
|
return {
|
|
4102
4102
|
kind: 'Fragment',
|
|
4103
|
-
version: VERSION$
|
|
4103
|
+
version: VERSION$a,
|
|
4104
4104
|
private: [],
|
|
4105
4105
|
selections: [
|
|
4106
4106
|
{
|
|
@@ -4194,7 +4194,7 @@ const select$h = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4194
4194
|
]
|
|
4195
4195
|
};
|
|
4196
4196
|
};
|
|
4197
|
-
function equals$
|
|
4197
|
+
function equals$a(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$8(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$b(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4407
4407
|
return false;
|
|
4408
4408
|
}
|
|
4409
4409
|
});
|
|
@@ -4427,8 +4427,8 @@ function equals$8(existing, incoming) {
|
|
|
4427
4427
|
return true;
|
|
4428
4428
|
}
|
|
4429
4429
|
|
|
4430
|
-
const VERSION$
|
|
4431
|
-
function validate$
|
|
4430
|
+
const VERSION$9 = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4431
|
+
function validate$g(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$d(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$h(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$d(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$k = function SectionOutputRepresentationSelect() {
|
|
4569
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$l();
|
|
4570
4570
|
return {
|
|
4571
4571
|
kind: 'Fragment',
|
|
4572
|
-
version: VERSION$
|
|
4572
|
+
version: VERSION$9,
|
|
4573
4573
|
private: [],
|
|
4574
4574
|
selections: [
|
|
4575
4575
|
{
|
|
@@ -4603,7 +4603,7 @@ const select$g = function SectionOutputRepresentationSelect() {
|
|
|
4603
4603
|
]
|
|
4604
4604
|
};
|
|
4605
4605
|
};
|
|
4606
|
-
function equals$
|
|
4606
|
+
function equals$9(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$7(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$a(existing_attributes_item, incoming_attributes_item)))) {
|
|
4634
4634
|
return false;
|
|
4635
4635
|
}
|
|
4636
4636
|
});
|
|
@@ -4680,9 +4680,9 @@ function equals$7(existing, incoming) {
|
|
|
4680
4680
|
return true;
|
|
4681
4681
|
}
|
|
4682
4682
|
|
|
4683
|
-
const TTL$
|
|
4684
|
-
const VERSION$
|
|
4685
|
-
function validate$
|
|
4683
|
+
const TTL$7 = 6000;
|
|
4684
|
+
const VERSION$8 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4685
|
+
function validate$f(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$c(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$r(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$c(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$q(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$c(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$p(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$c(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$o(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$c(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$n(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$c(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$m(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$c(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$l(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$c(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$j(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$c(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$g(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$c(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$g(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$c(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$8 = 'CatalogItemOutputRepresentation';
|
|
5296
|
+
function keyBuilder$e(luvio, config) {
|
|
5297
|
+
return keyPrefix + '::' + RepresentationType$8 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
5298
5298
|
}
|
|
5299
|
-
function keyBuilderFromType$
|
|
5299
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
5300
5300
|
const keyParams = {
|
|
5301
5301
|
catalogItemId: object.catalogItemId
|
|
5302
5302
|
};
|
|
5303
|
-
return keyBuilder$
|
|
5303
|
+
return keyBuilder$e(luvio, keyParams);
|
|
5304
5304
|
}
|
|
5305
|
-
function normalize$
|
|
5305
|
+
function normalize$8(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$j = function CatalogItemOutputRepresentationSelect() {
|
|
5309
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$v();
|
|
5310
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$u();
|
|
5311
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$t();
|
|
5312
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$s();
|
|
5313
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$r();
|
|
5314
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$q();
|
|
5315
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$p();
|
|
5316
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$n();
|
|
5317
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$k();
|
|
5318
5318
|
return {
|
|
5319
5319
|
kind: 'Fragment',
|
|
5320
|
-
version: VERSION$
|
|
5320
|
+
version: VERSION$8,
|
|
5321
5321
|
private: [],
|
|
5322
5322
|
selections: [
|
|
5323
5323
|
{
|
|
@@ -5443,7 +5443,7 @@ const select$f = function CatalogItemOutputRepresentationSelect() {
|
|
|
5443
5443
|
]
|
|
5444
5444
|
};
|
|
5445
5445
|
};
|
|
5446
|
-
function equals$
|
|
5446
|
+
function equals$8(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$6(existing, incoming) {
|
|
|
5456
5456
|
if (!(existing_agentAction === incoming_agentAction
|
|
5457
5457
|
|| (existing_agentAction != null &&
|
|
5458
5458
|
incoming_agentAction != null &&
|
|
5459
|
-
equals$
|
|
5459
|
+
equals$k(existing_agentAction, incoming_agentAction)))) {
|
|
5460
5460
|
return false;
|
|
5461
5461
|
}
|
|
5462
5462
|
}
|
|
@@ -5473,7 +5473,7 @@ function equals$6(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$j(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5477
5477
|
return false;
|
|
5478
5478
|
}
|
|
5479
5479
|
});
|
|
@@ -5538,7 +5538,7 @@ function equals$6(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$i(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5542
5542
|
return false;
|
|
5543
5543
|
}
|
|
5544
5544
|
});
|
|
@@ -5558,7 +5558,7 @@ function equals$6(existing, incoming) {
|
|
|
5558
5558
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5559
5559
|
|| (existing_fulfillmentFlow != null &&
|
|
5560
5560
|
incoming_fulfillmentFlow != null &&
|
|
5561
|
-
equals$
|
|
5561
|
+
equals$h(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5562
5562
|
return false;
|
|
5563
5563
|
}
|
|
5564
5564
|
}
|
|
@@ -5574,7 +5574,7 @@ function equals$6(existing, incoming) {
|
|
|
5574
5574
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5575
5575
|
|| (existing_intakeForm != null &&
|
|
5576
5576
|
incoming_intakeForm != null &&
|
|
5577
|
-
equals$
|
|
5577
|
+
equals$g(existing_intakeForm, incoming_intakeForm)))) {
|
|
5578
5578
|
return false;
|
|
5579
5579
|
}
|
|
5580
5580
|
}
|
|
@@ -5591,7 +5591,7 @@ function equals$6(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$f(existing_integrations_item, incoming_integrations_item)))) {
|
|
5595
5595
|
return false;
|
|
5596
5596
|
}
|
|
5597
5597
|
});
|
|
@@ -5638,7 +5638,7 @@ function equals$6(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$e(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5642
5642
|
return false;
|
|
5643
5643
|
}
|
|
5644
5644
|
});
|
|
@@ -5672,7 +5672,7 @@ function equals$6(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$c(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5676
5676
|
return false;
|
|
5677
5677
|
}
|
|
5678
5678
|
});
|
|
@@ -5692,7 +5692,7 @@ function equals$6(existing, incoming) {
|
|
|
5692
5692
|
if (!(existing_section === incoming_section
|
|
5693
5693
|
|| (existing_section != null &&
|
|
5694
5694
|
incoming_section != null &&
|
|
5695
|
-
equals$
|
|
5695
|
+
equals$9(existing_section, incoming_section)))) {
|
|
5696
5696
|
return false;
|
|
5697
5697
|
}
|
|
5698
5698
|
}
|
|
@@ -5709,7 +5709,7 @@ function equals$6(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$9(existing_sections_item, incoming_sections_item)))) {
|
|
5713
5713
|
return false;
|
|
5714
5714
|
}
|
|
5715
5715
|
});
|
|
@@ -5745,41 +5745,41 @@ function equals$6(existing, incoming) {
|
|
|
5745
5745
|
}
|
|
5746
5746
|
return true;
|
|
5747
5747
|
}
|
|
5748
|
-
const ingest$
|
|
5748
|
+
const ingest$8 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5749
5749
|
if (process.env.NODE_ENV !== 'production') {
|
|
5750
|
-
const validateError = validate$
|
|
5750
|
+
const validateError = validate$f(input);
|
|
5751
5751
|
if (validateError !== null) {
|
|
5752
5752
|
throw validateError;
|
|
5753
5753
|
}
|
|
5754
5754
|
}
|
|
5755
|
-
const key = keyBuilderFromType$
|
|
5756
|
-
const ttlToUse = TTL$
|
|
5757
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5755
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
5756
|
+
const ttlToUse = TTL$7;
|
|
5757
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "ecm", VERSION$8, RepresentationType$8, equals$8);
|
|
5758
5758
|
return createLink(key);
|
|
5759
5759
|
};
|
|
5760
|
-
function getTypeCacheKeys$
|
|
5760
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
5761
5761
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5762
|
-
const rootKey = keyBuilderFromType$
|
|
5762
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
5763
5763
|
rootKeySet.set(rootKey, {
|
|
5764
5764
|
namespace: keyPrefix,
|
|
5765
|
-
representationName: RepresentationType$
|
|
5765
|
+
representationName: RepresentationType$8,
|
|
5766
5766
|
mergeable: false
|
|
5767
5767
|
});
|
|
5768
5768
|
}
|
|
5769
5769
|
|
|
5770
|
-
function select$
|
|
5771
|
-
return select$
|
|
5770
|
+
function select$i(luvio, params) {
|
|
5771
|
+
return select$j();
|
|
5772
5772
|
}
|
|
5773
|
-
function getResponseCacheKeys$
|
|
5774
|
-
getTypeCacheKeys$
|
|
5773
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
5774
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
5775
5775
|
}
|
|
5776
|
-
function ingestSuccess$
|
|
5776
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
5777
5777
|
const { body } = response;
|
|
5778
|
-
const key = keyBuilderFromType$
|
|
5779
|
-
luvio.storeIngest(key, ingest$
|
|
5778
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
5779
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
5780
5780
|
const snapshot = luvio.storeLookup({
|
|
5781
5781
|
recordId: key,
|
|
5782
|
-
node: select$
|
|
5782
|
+
node: select$i(),
|
|
5783
5783
|
variables: {},
|
|
5784
5784
|
});
|
|
5785
5785
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5790,7 +5790,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
5790
5790
|
deepFreeze(snapshot.data);
|
|
5791
5791
|
return snapshot;
|
|
5792
5792
|
}
|
|
5793
|
-
function createResourceRequest$
|
|
5793
|
+
function createResourceRequest$a(config) {
|
|
5794
5794
|
const headers = {};
|
|
5795
5795
|
return {
|
|
5796
5796
|
baseUri: '/services/data/v65.0',
|
|
@@ -5804,7 +5804,7 @@ function createResourceRequest$8(config) {
|
|
|
5804
5804
|
};
|
|
5805
5805
|
}
|
|
5806
5806
|
|
|
5807
|
-
const adapterName$
|
|
5807
|
+
const adapterName$a = '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$a, createCatalogItem_ConfigPropertyMetadata);
|
|
5828
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$b(createCatalogItem_ConfigPropertyMetadata);
|
|
5829
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
5830
5830
|
const config = {};
|
|
5831
5831
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5832
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5832
|
+
const referenceAgentActionInputRepresentationValidationError = validate$C(untrustedConfig_agentAction);
|
|
5833
5833
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5834
5834
|
config.agentAction = untrustedConfig_agentAction;
|
|
5835
5835
|
}
|
|
@@ -5841,7 +5841,7 @@ function typeCheckConfig$8(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$B(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$8(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$z(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$8(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$y(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$8(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$x(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$8(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$w(untrustedConfig_fulfillmentFlow);
|
|
5922
5922
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5923
5923
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5924
5924
|
}
|
|
@@ -5926,7 +5926,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
5926
5926
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5927
5927
|
}
|
|
5928
5928
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5929
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5929
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$v(untrustedConfig_intakeForm);
|
|
5930
5930
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5931
5931
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5932
5932
|
}
|
|
@@ -5938,7 +5938,7 @@ function typeCheckConfig$8(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$u(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$8(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$t(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$8(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$s(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$8(untrustedConfig) {
|
|
|
6008
6008
|
}
|
|
6009
6009
|
return config;
|
|
6010
6010
|
}
|
|
6011
|
-
function validateAdapterConfig$
|
|
6011
|
+
function validateAdapterConfig$a(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$a(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$a(luvio, config, options) {
|
|
6025
|
+
const resourceParams = createResourceParams$a(config);
|
|
6026
|
+
const request = createResourceRequest$a(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$a(luvio, resourceParams, response);
|
|
6031
6031
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6032
6032
|
}, () => {
|
|
6033
6033
|
const cache = new StoreKeyMap();
|
|
6034
|
-
getResponseCacheKeys$
|
|
6034
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
6035
6035
|
return cache;
|
|
6036
6036
|
});
|
|
6037
6037
|
}, (response) => {
|
|
@@ -6041,18 +6041,207 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6041
6041
|
}
|
|
6042
6042
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
6043
6043
|
return function createCatalogItem(untrustedConfig) {
|
|
6044
|
-
const config = validateAdapterConfig$
|
|
6044
|
+
const config = validateAdapterConfig$a(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$a(luvio, config);
|
|
6050
6050
|
};
|
|
6051
6051
|
};
|
|
6052
6052
|
|
|
6053
|
-
const TTL$
|
|
6054
|
-
const VERSION$
|
|
6055
|
-
function validate$
|
|
6053
|
+
const TTL$6 = 6000;
|
|
6054
|
+
const VERSION$7 = "86e4694b8895fc704a6e48475634556a";
|
|
6055
|
+
function validate$e(obj, path = 'DeploymentOutputRepresentation') {
|
|
6056
|
+
const v_error = (() => {
|
|
6057
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6058
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6059
|
+
}
|
|
6060
|
+
const obj_deploymentResult = obj.deploymentResult;
|
|
6061
|
+
const path_deploymentResult = path + '.deploymentResult';
|
|
6062
|
+
if (typeof obj_deploymentResult !== 'string') {
|
|
6063
|
+
return new TypeError('Expected "string" but received "' + typeof obj_deploymentResult + '" (at "' + path_deploymentResult + '")');
|
|
6064
|
+
}
|
|
6065
|
+
const obj_status = obj.status;
|
|
6066
|
+
const path_status = path + '.status';
|
|
6067
|
+
if (typeof obj_status !== 'string') {
|
|
6068
|
+
return new TypeError('Expected "string" but received "' + typeof obj_status + '" (at "' + path_status + '")');
|
|
6069
|
+
}
|
|
6070
|
+
const obj_templateId = obj.templateId;
|
|
6071
|
+
const path_templateId = path + '.templateId';
|
|
6072
|
+
if (typeof obj_templateId !== 'string') {
|
|
6073
|
+
return new TypeError('Expected "string" but received "' + typeof obj_templateId + '" (at "' + path_templateId + '")');
|
|
6074
|
+
}
|
|
6075
|
+
})();
|
|
6076
|
+
return v_error === undefined ? null : v_error;
|
|
6077
|
+
}
|
|
6078
|
+
const RepresentationType$7 = 'DeploymentOutputRepresentation';
|
|
6079
|
+
function keyBuilder$d(luvio, config) {
|
|
6080
|
+
return keyPrefix + '::' + RepresentationType$7 + ':' + config.templateId;
|
|
6081
|
+
}
|
|
6082
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
6083
|
+
const keyParams = {
|
|
6084
|
+
templateId: object.templateId
|
|
6085
|
+
};
|
|
6086
|
+
return keyBuilder$d(luvio, keyParams);
|
|
6087
|
+
}
|
|
6088
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
6089
|
+
return input;
|
|
6090
|
+
}
|
|
6091
|
+
const select$h = function DeploymentOutputRepresentationSelect() {
|
|
6092
|
+
return {
|
|
6093
|
+
kind: 'Fragment',
|
|
6094
|
+
version: VERSION$7,
|
|
6095
|
+
private: [],
|
|
6096
|
+
selections: [
|
|
6097
|
+
{
|
|
6098
|
+
name: 'deploymentResult',
|
|
6099
|
+
kind: 'Scalar'
|
|
6100
|
+
},
|
|
6101
|
+
{
|
|
6102
|
+
name: 'status',
|
|
6103
|
+
kind: 'Scalar'
|
|
6104
|
+
},
|
|
6105
|
+
{
|
|
6106
|
+
name: 'templateId',
|
|
6107
|
+
kind: 'Scalar'
|
|
6108
|
+
}
|
|
6109
|
+
]
|
|
6110
|
+
};
|
|
6111
|
+
};
|
|
6112
|
+
function equals$7(existing, incoming) {
|
|
6113
|
+
const existing_deploymentResult = existing.deploymentResult;
|
|
6114
|
+
const incoming_deploymentResult = incoming.deploymentResult;
|
|
6115
|
+
if (!(existing_deploymentResult === incoming_deploymentResult)) {
|
|
6116
|
+
return false;
|
|
6117
|
+
}
|
|
6118
|
+
const existing_status = existing.status;
|
|
6119
|
+
const incoming_status = incoming.status;
|
|
6120
|
+
if (!(existing_status === incoming_status)) {
|
|
6121
|
+
return false;
|
|
6122
|
+
}
|
|
6123
|
+
const existing_templateId = existing.templateId;
|
|
6124
|
+
const incoming_templateId = incoming.templateId;
|
|
6125
|
+
if (!(existing_templateId === incoming_templateId)) {
|
|
6126
|
+
return false;
|
|
6127
|
+
}
|
|
6128
|
+
return true;
|
|
6129
|
+
}
|
|
6130
|
+
const ingest$7 = function DeploymentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6131
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6132
|
+
const validateError = validate$e(input);
|
|
6133
|
+
if (validateError !== null) {
|
|
6134
|
+
throw validateError;
|
|
6135
|
+
}
|
|
6136
|
+
}
|
|
6137
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
6138
|
+
const ttlToUse = TTL$6;
|
|
6139
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "ecm", VERSION$7, RepresentationType$7, equals$7);
|
|
6140
|
+
return createLink(key);
|
|
6141
|
+
};
|
|
6142
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
6143
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6144
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
6145
|
+
rootKeySet.set(rootKey, {
|
|
6146
|
+
namespace: keyPrefix,
|
|
6147
|
+
representationName: RepresentationType$7,
|
|
6148
|
+
mergeable: false
|
|
6149
|
+
});
|
|
6150
|
+
}
|
|
6151
|
+
|
|
6152
|
+
function select$g(luvio, params) {
|
|
6153
|
+
return select$h();
|
|
6154
|
+
}
|
|
6155
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6156
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response);
|
|
6157
|
+
}
|
|
6158
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
6159
|
+
const { body } = response;
|
|
6160
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
6161
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
6162
|
+
const snapshot = luvio.storeLookup({
|
|
6163
|
+
recordId: key,
|
|
6164
|
+
node: select$g(),
|
|
6165
|
+
variables: {},
|
|
6166
|
+
});
|
|
6167
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6168
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6169
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6170
|
+
}
|
|
6171
|
+
}
|
|
6172
|
+
deepFreeze(snapshot.data);
|
|
6173
|
+
return snapshot;
|
|
6174
|
+
}
|
|
6175
|
+
function createResourceRequest$9(config) {
|
|
6176
|
+
const headers = {};
|
|
6177
|
+
return {
|
|
6178
|
+
baseUri: '/services/data/v65.0',
|
|
6179
|
+
basePath: '/connect/service-automation/template/deploy/' + config.urlParams.templateId + '',
|
|
6180
|
+
method: 'post',
|
|
6181
|
+
body: null,
|
|
6182
|
+
urlParams: config.urlParams,
|
|
6183
|
+
queryParams: {},
|
|
6184
|
+
headers,
|
|
6185
|
+
priority: 'normal',
|
|
6186
|
+
};
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6189
|
+
const adapterName$9 = 'deployTemplate';
|
|
6190
|
+
const deployTemplate_ConfigPropertyMetadata = [
|
|
6191
|
+
generateParamConfigMetadata('templateId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6192
|
+
];
|
|
6193
|
+
const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, deployTemplate_ConfigPropertyMetadata);
|
|
6194
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$b(deployTemplate_ConfigPropertyMetadata);
|
|
6195
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
6196
|
+
const config = {};
|
|
6197
|
+
typeCheckConfig$b(untrustedConfig, config, deployTemplate_ConfigPropertyMetadata);
|
|
6198
|
+
return config;
|
|
6199
|
+
}
|
|
6200
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6201
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6202
|
+
return null;
|
|
6203
|
+
}
|
|
6204
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6205
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6206
|
+
}
|
|
6207
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6208
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6209
|
+
return null;
|
|
6210
|
+
}
|
|
6211
|
+
return config;
|
|
6212
|
+
}
|
|
6213
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6214
|
+
const resourceParams = createResourceParams$9(config);
|
|
6215
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6216
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6217
|
+
.then((response) => {
|
|
6218
|
+
return luvio.handleSuccessResponse(() => {
|
|
6219
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
6220
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6221
|
+
}, () => {
|
|
6222
|
+
const cache = new StoreKeyMap();
|
|
6223
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
6224
|
+
return cache;
|
|
6225
|
+
});
|
|
6226
|
+
}, (response) => {
|
|
6227
|
+
deepFreeze(response);
|
|
6228
|
+
throw response;
|
|
6229
|
+
});
|
|
6230
|
+
}
|
|
6231
|
+
const deployTemplateAdapterFactory = (luvio) => {
|
|
6232
|
+
return function deployTemplate(untrustedConfig) {
|
|
6233
|
+
const config = validateAdapterConfig$9(untrustedConfig, deployTemplate_ConfigPropertyNames);
|
|
6234
|
+
// Invalid or incomplete config
|
|
6235
|
+
if (config === null) {
|
|
6236
|
+
throw new Error('Invalid config for "deployTemplate"');
|
|
6237
|
+
}
|
|
6238
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
6239
|
+
};
|
|
6240
|
+
};
|
|
6241
|
+
|
|
6242
|
+
const TTL$5 = 6000;
|
|
6243
|
+
const VERSION$6 = "74ef82117094ebb002efc271969896bd";
|
|
6244
|
+
function validate$d(obj, path = 'GenerateIntakeFormOutputRepresentation') {
|
|
6056
6245
|
const v_error = (() => {
|
|
6057
6246
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6058
6247
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6086,23 +6275,23 @@ function validate$b(obj, path = 'GenerateIntakeFormOutputRepresentation') {
|
|
|
6086
6275
|
})();
|
|
6087
6276
|
return v_error === undefined ? null : v_error;
|
|
6088
6277
|
}
|
|
6089
|
-
const RepresentationType$
|
|
6090
|
-
function keyBuilder$
|
|
6091
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6278
|
+
const RepresentationType$6 = 'GenerateIntakeFormOutputRepresentation';
|
|
6279
|
+
function keyBuilder$c(luvio, config) {
|
|
6280
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
|
|
6092
6281
|
}
|
|
6093
6282
|
function keyBuilderFromType$2(luvio, object) {
|
|
6094
6283
|
const keyParams = {
|
|
6095
6284
|
id: object.id
|
|
6096
6285
|
};
|
|
6097
|
-
return keyBuilder$
|
|
6286
|
+
return keyBuilder$c(luvio, keyParams);
|
|
6098
6287
|
}
|
|
6099
|
-
function normalize$
|
|
6288
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
6100
6289
|
return input;
|
|
6101
6290
|
}
|
|
6102
|
-
const select$
|
|
6291
|
+
const select$f = function GenerateIntakeFormOutputRepresentationSelect() {
|
|
6103
6292
|
return {
|
|
6104
6293
|
kind: 'Fragment',
|
|
6105
|
-
version: VERSION$
|
|
6294
|
+
version: VERSION$6,
|
|
6106
6295
|
private: [],
|
|
6107
6296
|
selections: [
|
|
6108
6297
|
{
|
|
@@ -6127,7 +6316,7 @@ const select$d = function GenerateIntakeFormOutputRepresentationSelect() {
|
|
|
6127
6316
|
]
|
|
6128
6317
|
};
|
|
6129
6318
|
};
|
|
6130
|
-
function equals$
|
|
6319
|
+
function equals$6(existing, incoming) {
|
|
6131
6320
|
const existing_description = existing.description;
|
|
6132
6321
|
const incoming_description = incoming.description;
|
|
6133
6322
|
// if at least one of these optionals is defined
|
|
@@ -6174,41 +6363,41 @@ function equals$5(existing, incoming) {
|
|
|
6174
6363
|
}
|
|
6175
6364
|
return true;
|
|
6176
6365
|
}
|
|
6177
|
-
const ingest$
|
|
6366
|
+
const ingest$6 = function GenerateIntakeFormOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6178
6367
|
if (process.env.NODE_ENV !== 'production') {
|
|
6179
|
-
const validateError = validate$
|
|
6368
|
+
const validateError = validate$d(input);
|
|
6180
6369
|
if (validateError !== null) {
|
|
6181
6370
|
throw validateError;
|
|
6182
6371
|
}
|
|
6183
6372
|
}
|
|
6184
6373
|
const key = keyBuilderFromType$2(luvio, input);
|
|
6185
|
-
const ttlToUse = TTL$
|
|
6186
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6374
|
+
const ttlToUse = TTL$5;
|
|
6375
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$6, RepresentationType$6, equals$6);
|
|
6187
6376
|
return createLink(key);
|
|
6188
6377
|
};
|
|
6189
|
-
function getTypeCacheKeys$
|
|
6378
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
6190
6379
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6191
6380
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
6192
6381
|
rootKeySet.set(rootKey, {
|
|
6193
6382
|
namespace: keyPrefix,
|
|
6194
|
-
representationName: RepresentationType$
|
|
6383
|
+
representationName: RepresentationType$6,
|
|
6195
6384
|
mergeable: false
|
|
6196
6385
|
});
|
|
6197
6386
|
}
|
|
6198
6387
|
|
|
6199
|
-
function select$
|
|
6200
|
-
return select$
|
|
6388
|
+
function select$e(luvio, params) {
|
|
6389
|
+
return select$f();
|
|
6201
6390
|
}
|
|
6202
|
-
function getResponseCacheKeys$
|
|
6203
|
-
getTypeCacheKeys$
|
|
6391
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
6392
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
6204
6393
|
}
|
|
6205
|
-
function ingestSuccess$
|
|
6394
|
+
function ingestSuccess$8(luvio, resourceParams, response) {
|
|
6206
6395
|
const { body } = response;
|
|
6207
6396
|
const key = keyBuilderFromType$2(luvio, body);
|
|
6208
|
-
luvio.storeIngest(key, ingest$
|
|
6397
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
6209
6398
|
const snapshot = luvio.storeLookup({
|
|
6210
6399
|
recordId: key,
|
|
6211
|
-
node: select$
|
|
6400
|
+
node: select$e(),
|
|
6212
6401
|
variables: {},
|
|
6213
6402
|
});
|
|
6214
6403
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6219,7 +6408,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
6219
6408
|
deepFreeze(snapshot.data);
|
|
6220
6409
|
return snapshot;
|
|
6221
6410
|
}
|
|
6222
|
-
function createResourceRequest$
|
|
6411
|
+
function createResourceRequest$8(config) {
|
|
6223
6412
|
const headers = {};
|
|
6224
6413
|
return {
|
|
6225
6414
|
baseUri: '/services/data/v65.0',
|
|
@@ -6233,44 +6422,44 @@ function createResourceRequest$7(config) {
|
|
|
6233
6422
|
};
|
|
6234
6423
|
}
|
|
6235
6424
|
|
|
6236
|
-
const adapterName$
|
|
6425
|
+
const adapterName$8 = 'generateIntakeForm';
|
|
6237
6426
|
const generateIntakeForm_ConfigPropertyMetadata = [
|
|
6238
6427
|
generateParamConfigMetadata('description', false, 2 /* Body */, 0 /* String */),
|
|
6239
6428
|
generateParamConfigMetadata('name', false, 2 /* Body */, 0 /* String */),
|
|
6240
6429
|
generateParamConfigMetadata('productId', false, 2 /* Body */, 0 /* String */),
|
|
6241
6430
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
6242
6431
|
];
|
|
6243
|
-
const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6244
|
-
const createResourceParams$
|
|
6245
|
-
function typeCheckConfig$
|
|
6432
|
+
const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, generateIntakeForm_ConfigPropertyMetadata);
|
|
6433
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$b(generateIntakeForm_ConfigPropertyMetadata);
|
|
6434
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
6246
6435
|
const config = {};
|
|
6247
|
-
typeCheckConfig$
|
|
6436
|
+
typeCheckConfig$b(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
|
|
6248
6437
|
return config;
|
|
6249
6438
|
}
|
|
6250
|
-
function validateAdapterConfig$
|
|
6439
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6251
6440
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6252
6441
|
return null;
|
|
6253
6442
|
}
|
|
6254
6443
|
if (process.env.NODE_ENV !== 'production') {
|
|
6255
6444
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6256
6445
|
}
|
|
6257
|
-
const config = typeCheckConfig$
|
|
6446
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6258
6447
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6259
6448
|
return null;
|
|
6260
6449
|
}
|
|
6261
6450
|
return config;
|
|
6262
6451
|
}
|
|
6263
|
-
function buildNetworkSnapshot$
|
|
6264
|
-
const resourceParams = createResourceParams$
|
|
6265
|
-
const request = createResourceRequest$
|
|
6452
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6453
|
+
const resourceParams = createResourceParams$8(config);
|
|
6454
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6266
6455
|
return luvio.dispatchResourceRequest(request, options)
|
|
6267
6456
|
.then((response) => {
|
|
6268
6457
|
return luvio.handleSuccessResponse(() => {
|
|
6269
|
-
const snapshot = ingestSuccess$
|
|
6458
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response);
|
|
6270
6459
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6271
6460
|
}, () => {
|
|
6272
6461
|
const cache = new StoreKeyMap();
|
|
6273
|
-
getResponseCacheKeys$
|
|
6462
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6274
6463
|
return cache;
|
|
6275
6464
|
});
|
|
6276
6465
|
}, (response) => {
|
|
@@ -6280,18 +6469,18 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6280
6469
|
}
|
|
6281
6470
|
const generateIntakeFormAdapterFactory = (luvio) => {
|
|
6282
6471
|
return function generateIntakeForm(untrustedConfig) {
|
|
6283
|
-
const config = validateAdapterConfig$
|
|
6472
|
+
const config = validateAdapterConfig$8(untrustedConfig, generateIntakeForm_ConfigPropertyNames);
|
|
6284
6473
|
// Invalid or incomplete config
|
|
6285
6474
|
if (config === null) {
|
|
6286
6475
|
throw new Error('Invalid config for "generateIntakeForm"');
|
|
6287
6476
|
}
|
|
6288
|
-
return buildNetworkSnapshot$
|
|
6477
|
+
return buildNetworkSnapshot$8(luvio, config);
|
|
6289
6478
|
};
|
|
6290
6479
|
};
|
|
6291
6480
|
|
|
6292
|
-
const TTL$
|
|
6293
|
-
const VERSION$
|
|
6294
|
-
function validate$
|
|
6481
|
+
const TTL$4 = 6000;
|
|
6482
|
+
const VERSION$5 = "b593e197e57b5cb5b7531e71073daefa";
|
|
6483
|
+
function validate$c(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
6295
6484
|
const v_error = (() => {
|
|
6296
6485
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6297
6486
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6339,23 +6528,23 @@ function validate$a(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
|
6339
6528
|
})();
|
|
6340
6529
|
return v_error === undefined ? null : v_error;
|
|
6341
6530
|
}
|
|
6342
|
-
const RepresentationType$
|
|
6343
|
-
function keyBuilder$
|
|
6344
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6531
|
+
const RepresentationType$5 = 'OmniIntakeOutputRepresentation';
|
|
6532
|
+
function keyBuilder$b(luvio, config) {
|
|
6533
|
+
return keyPrefix + '::' + RepresentationType$5 + ':' + config.id;
|
|
6345
6534
|
}
|
|
6346
6535
|
function keyBuilderFromType$1(luvio, object) {
|
|
6347
6536
|
const keyParams = {
|
|
6348
6537
|
id: object.id
|
|
6349
6538
|
};
|
|
6350
|
-
return keyBuilder$
|
|
6539
|
+
return keyBuilder$b(luvio, keyParams);
|
|
6351
6540
|
}
|
|
6352
|
-
function normalize$
|
|
6541
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
6353
6542
|
return input;
|
|
6354
6543
|
}
|
|
6355
|
-
const select$
|
|
6544
|
+
const select$d = function OmniIntakeOutputRepresentationSelect() {
|
|
6356
6545
|
return {
|
|
6357
6546
|
kind: 'Fragment',
|
|
6358
|
-
version: VERSION$
|
|
6547
|
+
version: VERSION$5,
|
|
6359
6548
|
private: [],
|
|
6360
6549
|
selections: [
|
|
6361
6550
|
{
|
|
@@ -6393,7 +6582,7 @@ const select$b = function OmniIntakeOutputRepresentationSelect() {
|
|
|
6393
6582
|
]
|
|
6394
6583
|
};
|
|
6395
6584
|
};
|
|
6396
|
-
function equals$
|
|
6585
|
+
function equals$5(existing, incoming) {
|
|
6397
6586
|
const existing_description = existing.description;
|
|
6398
6587
|
const incoming_description = incoming.description;
|
|
6399
6588
|
if (!(existing_description === incoming_description)) {
|
|
@@ -6436,41 +6625,41 @@ function equals$4(existing, incoming) {
|
|
|
6436
6625
|
}
|
|
6437
6626
|
return true;
|
|
6438
6627
|
}
|
|
6439
|
-
const ingest$
|
|
6628
|
+
const ingest$5 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6440
6629
|
if (process.env.NODE_ENV !== 'production') {
|
|
6441
|
-
const validateError = validate$
|
|
6630
|
+
const validateError = validate$c(input);
|
|
6442
6631
|
if (validateError !== null) {
|
|
6443
6632
|
throw validateError;
|
|
6444
6633
|
}
|
|
6445
6634
|
}
|
|
6446
6635
|
const key = keyBuilderFromType$1(luvio, input);
|
|
6447
|
-
const ttlToUse = TTL$
|
|
6448
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6636
|
+
const ttlToUse = TTL$4;
|
|
6637
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$5, RepresentationType$5, equals$5);
|
|
6449
6638
|
return createLink(key);
|
|
6450
6639
|
};
|
|
6451
|
-
function getTypeCacheKeys$
|
|
6640
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
6452
6641
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6453
6642
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
6454
6643
|
rootKeySet.set(rootKey, {
|
|
6455
6644
|
namespace: keyPrefix,
|
|
6456
|
-
representationName: RepresentationType$
|
|
6645
|
+
representationName: RepresentationType$5,
|
|
6457
6646
|
mergeable: false
|
|
6458
6647
|
});
|
|
6459
6648
|
}
|
|
6460
6649
|
|
|
6461
|
-
function select$
|
|
6462
|
-
return select$
|
|
6650
|
+
function select$c(luvio, params) {
|
|
6651
|
+
return select$d();
|
|
6463
6652
|
}
|
|
6464
|
-
function getResponseCacheKeys$
|
|
6465
|
-
getTypeCacheKeys$
|
|
6653
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
6654
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
6466
6655
|
}
|
|
6467
|
-
function ingestSuccess$
|
|
6656
|
+
function ingestSuccess$7(luvio, resourceParams, response) {
|
|
6468
6657
|
const { body } = response;
|
|
6469
6658
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6470
|
-
luvio.storeIngest(key, ingest$
|
|
6659
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
6471
6660
|
const snapshot = luvio.storeLookup({
|
|
6472
6661
|
recordId: key,
|
|
6473
|
-
node: select$
|
|
6662
|
+
node: select$c(),
|
|
6474
6663
|
variables: {},
|
|
6475
6664
|
});
|
|
6476
6665
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6481,7 +6670,7 @@ function ingestSuccess$6(luvio, resourceParams, response) {
|
|
|
6481
6670
|
deepFreeze(snapshot.data);
|
|
6482
6671
|
return snapshot;
|
|
6483
6672
|
}
|
|
6484
|
-
function createResourceRequest$
|
|
6673
|
+
function createResourceRequest$7(config) {
|
|
6485
6674
|
const headers = {};
|
|
6486
6675
|
return {
|
|
6487
6676
|
baseUri: '/services/data/v65.0',
|
|
@@ -6495,43 +6684,43 @@ function createResourceRequest$6(config) {
|
|
|
6495
6684
|
};
|
|
6496
6685
|
}
|
|
6497
6686
|
|
|
6498
|
-
const adapterName$
|
|
6687
|
+
const adapterName$7 = 'generateOmniScript';
|
|
6499
6688
|
const generateOmniScript_ConfigPropertyMetadata = [
|
|
6500
6689
|
generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
|
|
6501
6690
|
generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
|
|
6502
6691
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
6503
6692
|
];
|
|
6504
|
-
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6505
|
-
const createResourceParams$
|
|
6506
|
-
function typeCheckConfig$
|
|
6693
|
+
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, generateOmniScript_ConfigPropertyMetadata);
|
|
6694
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$b(generateOmniScript_ConfigPropertyMetadata);
|
|
6695
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
6507
6696
|
const config = {};
|
|
6508
|
-
typeCheckConfig$
|
|
6697
|
+
typeCheckConfig$b(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
6509
6698
|
return config;
|
|
6510
6699
|
}
|
|
6511
|
-
function validateAdapterConfig$
|
|
6700
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
6512
6701
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6513
6702
|
return null;
|
|
6514
6703
|
}
|
|
6515
6704
|
if (process.env.NODE_ENV !== 'production') {
|
|
6516
6705
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6517
6706
|
}
|
|
6518
|
-
const config = typeCheckConfig$
|
|
6707
|
+
const config = typeCheckConfig$7(untrustedConfig);
|
|
6519
6708
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6520
6709
|
return null;
|
|
6521
6710
|
}
|
|
6522
6711
|
return config;
|
|
6523
6712
|
}
|
|
6524
|
-
function buildNetworkSnapshot$
|
|
6525
|
-
const resourceParams = createResourceParams$
|
|
6526
|
-
const request = createResourceRequest$
|
|
6713
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
6714
|
+
const resourceParams = createResourceParams$7(config);
|
|
6715
|
+
const request = createResourceRequest$7(resourceParams);
|
|
6527
6716
|
return luvio.dispatchResourceRequest(request, options)
|
|
6528
6717
|
.then((response) => {
|
|
6529
6718
|
return luvio.handleSuccessResponse(() => {
|
|
6530
|
-
const snapshot = ingestSuccess$
|
|
6719
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response);
|
|
6531
6720
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6532
6721
|
}, () => {
|
|
6533
6722
|
const cache = new StoreKeyMap();
|
|
6534
|
-
getResponseCacheKeys$
|
|
6723
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
6535
6724
|
return cache;
|
|
6536
6725
|
});
|
|
6537
6726
|
}, (response) => {
|
|
@@ -6541,16 +6730,16 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
6541
6730
|
}
|
|
6542
6731
|
const generateOmniScriptAdapterFactory = (luvio) => {
|
|
6543
6732
|
return function generateOmniScript(untrustedConfig) {
|
|
6544
|
-
const config = validateAdapterConfig$
|
|
6733
|
+
const config = validateAdapterConfig$7(untrustedConfig, generateOmniScript_ConfigPropertyNames);
|
|
6545
6734
|
// Invalid or incomplete config
|
|
6546
6735
|
if (config === null) {
|
|
6547
6736
|
throw new Error('Invalid config for "generateOmniScript"');
|
|
6548
6737
|
}
|
|
6549
|
-
return buildNetworkSnapshot$
|
|
6738
|
+
return buildNetworkSnapshot$7(luvio, config);
|
|
6550
6739
|
};
|
|
6551
6740
|
};
|
|
6552
6741
|
|
|
6553
|
-
function validate$
|
|
6742
|
+
function validate$b(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
6554
6743
|
const v_error = (() => {
|
|
6555
6744
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6556
6745
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6923,7 +7112,7 @@ function validate$9(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
|
6923
7112
|
return v_error === undefined ? null : v_error;
|
|
6924
7113
|
}
|
|
6925
7114
|
|
|
6926
|
-
function validate$
|
|
7115
|
+
function validate$a(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
6927
7116
|
const v_error = (() => {
|
|
6928
7117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6929
7118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6937,7 +7126,7 @@ function validate$8(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
|
6937
7126
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
6938
7127
|
const obj_attributes_item = obj_attributes[i];
|
|
6939
7128
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
6940
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
7129
|
+
const referencepath_attributes_itemValidationError = validate$b(obj_attributes_item, path_attributes_item);
|
|
6941
7130
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
6942
7131
|
let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
6943
7132
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7257,9 +7446,9 @@ function validate$8(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
|
7257
7446
|
return v_error === undefined ? null : v_error;
|
|
7258
7447
|
}
|
|
7259
7448
|
|
|
7260
|
-
const TTL$
|
|
7261
|
-
const VERSION$
|
|
7262
|
-
function validate$
|
|
7449
|
+
const TTL$3 = 6000;
|
|
7450
|
+
const VERSION$4 = "8d267876ea7c4f028aade73f06d0f634";
|
|
7451
|
+
function validate$9(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
7263
7452
|
const v_error = (() => {
|
|
7264
7453
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7265
7454
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7273,7 +7462,7 @@ function validate$7(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
|
7273
7462
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
7274
7463
|
const obj_actions_item = obj_actions[i];
|
|
7275
7464
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
7276
|
-
const referencepath_actions_itemValidationError = validate$
|
|
7465
|
+
const referencepath_actions_itemValidationError = validate$a(obj_actions_item, path_actions_item);
|
|
7277
7466
|
if (referencepath_actions_itemValidationError !== null) {
|
|
7278
7467
|
let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
|
|
7279
7468
|
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7284,62 +7473,62 @@ function validate$7(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
|
7284
7473
|
})();
|
|
7285
7474
|
return v_error === undefined ? null : v_error;
|
|
7286
7475
|
}
|
|
7287
|
-
const RepresentationType$
|
|
7288
|
-
function normalize$
|
|
7476
|
+
const RepresentationType$4 = 'EinsteinAgentActionsOutputRepresentation';
|
|
7477
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
7289
7478
|
return input;
|
|
7290
7479
|
}
|
|
7291
|
-
const select$
|
|
7480
|
+
const select$b = function EinsteinAgentActionsOutputRepresentationSelect() {
|
|
7292
7481
|
return {
|
|
7293
7482
|
kind: 'Fragment',
|
|
7294
|
-
version: VERSION$
|
|
7483
|
+
version: VERSION$4,
|
|
7295
7484
|
private: [],
|
|
7296
7485
|
opaque: true
|
|
7297
7486
|
};
|
|
7298
7487
|
};
|
|
7299
|
-
function equals$
|
|
7488
|
+
function equals$4(existing, incoming) {
|
|
7300
7489
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7301
7490
|
return false;
|
|
7302
7491
|
}
|
|
7303
7492
|
return true;
|
|
7304
7493
|
}
|
|
7305
|
-
const ingest$
|
|
7494
|
+
const ingest$4 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7306
7495
|
if (process.env.NODE_ENV !== 'production') {
|
|
7307
|
-
const validateError = validate$
|
|
7496
|
+
const validateError = validate$9(input);
|
|
7308
7497
|
if (validateError !== null) {
|
|
7309
7498
|
throw validateError;
|
|
7310
7499
|
}
|
|
7311
7500
|
}
|
|
7312
7501
|
const key = path.fullPath;
|
|
7313
|
-
const ttlToUse = TTL$
|
|
7314
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7502
|
+
const ttlToUse = TTL$3;
|
|
7503
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
|
|
7315
7504
|
return createLink(key);
|
|
7316
7505
|
};
|
|
7317
|
-
function getTypeCacheKeys$
|
|
7506
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
7318
7507
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7319
7508
|
const rootKey = fullPathFactory();
|
|
7320
7509
|
rootKeySet.set(rootKey, {
|
|
7321
7510
|
namespace: keyPrefix,
|
|
7322
|
-
representationName: RepresentationType$
|
|
7511
|
+
representationName: RepresentationType$4,
|
|
7323
7512
|
mergeable: false
|
|
7324
7513
|
});
|
|
7325
7514
|
}
|
|
7326
7515
|
|
|
7327
|
-
function select$
|
|
7328
|
-
return select$
|
|
7516
|
+
function select$a(luvio, params) {
|
|
7517
|
+
return select$b();
|
|
7329
7518
|
}
|
|
7330
|
-
function keyBuilder$
|
|
7519
|
+
function keyBuilder$a(luvio, params) {
|
|
7331
7520
|
return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
|
|
7332
7521
|
}
|
|
7333
|
-
function getResponseCacheKeys$
|
|
7334
|
-
getTypeCacheKeys$
|
|
7522
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
7523
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$a(luvio, resourceParams));
|
|
7335
7524
|
}
|
|
7336
|
-
function ingestSuccess$
|
|
7525
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
7337
7526
|
const { body } = response;
|
|
7338
|
-
const key = keyBuilder$
|
|
7339
|
-
luvio.storeIngest(key, ingest$
|
|
7527
|
+
const key = keyBuilder$a(luvio, resourceParams);
|
|
7528
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
7340
7529
|
const snapshot = luvio.storeLookup({
|
|
7341
7530
|
recordId: key,
|
|
7342
|
-
node: select$
|
|
7531
|
+
node: select$a(),
|
|
7343
7532
|
variables: {},
|
|
7344
7533
|
}, snapshotRefresh);
|
|
7345
7534
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7350,19 +7539,19 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
7350
7539
|
deepFreeze(snapshot.data);
|
|
7351
7540
|
return snapshot;
|
|
7352
7541
|
}
|
|
7353
|
-
function ingestError$
|
|
7354
|
-
const key = keyBuilder$
|
|
7542
|
+
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
7543
|
+
const key = keyBuilder$a(luvio, params);
|
|
7355
7544
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7356
7545
|
const storeMetadataParams = {
|
|
7357
|
-
ttl: TTL$
|
|
7546
|
+
ttl: TTL$3,
|
|
7358
7547
|
namespace: keyPrefix,
|
|
7359
|
-
version: VERSION$
|
|
7360
|
-
representationName: RepresentationType$
|
|
7548
|
+
version: VERSION$4,
|
|
7549
|
+
representationName: RepresentationType$4
|
|
7361
7550
|
};
|
|
7362
7551
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7363
7552
|
return errorSnapshot;
|
|
7364
7553
|
}
|
|
7365
|
-
function createResourceRequest$
|
|
7554
|
+
function createResourceRequest$6(config) {
|
|
7366
7555
|
const headers = {};
|
|
7367
7556
|
return {
|
|
7368
7557
|
baseUri: '/services/data/v65.0',
|
|
@@ -7376,94 +7565,94 @@ function createResourceRequest$5(config) {
|
|
|
7376
7565
|
};
|
|
7377
7566
|
}
|
|
7378
7567
|
|
|
7379
|
-
const adapterName$
|
|
7568
|
+
const adapterName$6 = 'getAgentActions';
|
|
7380
7569
|
const getAgentActions_ConfigPropertyMetadata = [
|
|
7381
7570
|
generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7382
7571
|
generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7383
7572
|
];
|
|
7384
|
-
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7385
|
-
const createResourceParams$
|
|
7386
|
-
function keyBuilder$
|
|
7387
|
-
const resourceParams = createResourceParams$
|
|
7388
|
-
return keyBuilder$
|
|
7573
|
+
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAgentActions_ConfigPropertyMetadata);
|
|
7574
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$b(getAgentActions_ConfigPropertyMetadata);
|
|
7575
|
+
function keyBuilder$9(luvio, config) {
|
|
7576
|
+
const resourceParams = createResourceParams$6(config);
|
|
7577
|
+
return keyBuilder$a(luvio, resourceParams);
|
|
7389
7578
|
}
|
|
7390
|
-
function typeCheckConfig$
|
|
7579
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
7391
7580
|
const config = {};
|
|
7392
|
-
typeCheckConfig$
|
|
7581
|
+
typeCheckConfig$b(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
|
|
7393
7582
|
return config;
|
|
7394
7583
|
}
|
|
7395
|
-
function validateAdapterConfig$
|
|
7584
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
7396
7585
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7397
7586
|
return null;
|
|
7398
7587
|
}
|
|
7399
7588
|
if (process.env.NODE_ENV !== 'production') {
|
|
7400
7589
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7401
7590
|
}
|
|
7402
|
-
const config = typeCheckConfig$
|
|
7591
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
7403
7592
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7404
7593
|
return null;
|
|
7405
7594
|
}
|
|
7406
7595
|
return config;
|
|
7407
7596
|
}
|
|
7408
|
-
function adapterFragment$
|
|
7409
|
-
createResourceParams$
|
|
7410
|
-
return select$
|
|
7597
|
+
function adapterFragment$4(luvio, config) {
|
|
7598
|
+
createResourceParams$6(config);
|
|
7599
|
+
return select$a();
|
|
7411
7600
|
}
|
|
7412
|
-
function onFetchResponseSuccess$
|
|
7413
|
-
const snapshot = ingestSuccess$
|
|
7601
|
+
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
7602
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
7414
7603
|
config,
|
|
7415
|
-
resolve: () => buildNetworkSnapshot$
|
|
7604
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7416
7605
|
});
|
|
7417
7606
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7418
7607
|
}
|
|
7419
|
-
function onFetchResponseError$
|
|
7420
|
-
const snapshot = ingestError$
|
|
7608
|
+
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
7609
|
+
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
7421
7610
|
config,
|
|
7422
|
-
resolve: () => buildNetworkSnapshot$
|
|
7611
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7423
7612
|
});
|
|
7424
7613
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7425
7614
|
}
|
|
7426
|
-
function buildNetworkSnapshot$
|
|
7427
|
-
const resourceParams = createResourceParams$
|
|
7428
|
-
const request = createResourceRequest$
|
|
7615
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
7616
|
+
const resourceParams = createResourceParams$6(config);
|
|
7617
|
+
const request = createResourceRequest$6(resourceParams);
|
|
7429
7618
|
return luvio.dispatchResourceRequest(request, options)
|
|
7430
7619
|
.then((response) => {
|
|
7431
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
7620
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
7432
7621
|
const cache = new StoreKeyMap();
|
|
7433
|
-
getResponseCacheKeys$
|
|
7622
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
7434
7623
|
return cache;
|
|
7435
7624
|
});
|
|
7436
7625
|
}, (response) => {
|
|
7437
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
7626
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
7438
7627
|
});
|
|
7439
7628
|
}
|
|
7440
|
-
function buildNetworkSnapshotCachePolicy$
|
|
7441
|
-
return buildNetworkSnapshotCachePolicy$
|
|
7629
|
+
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
7630
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7442
7631
|
}
|
|
7443
|
-
function buildCachedSnapshotCachePolicy$
|
|
7632
|
+
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
7444
7633
|
const { luvio, config } = context;
|
|
7445
7634
|
const selector = {
|
|
7446
|
-
recordId: keyBuilder$
|
|
7447
|
-
node: adapterFragment$
|
|
7635
|
+
recordId: keyBuilder$9(luvio, config),
|
|
7636
|
+
node: adapterFragment$4(luvio, config),
|
|
7448
7637
|
variables: {},
|
|
7449
7638
|
};
|
|
7450
7639
|
const cacheSnapshot = storeLookup(selector, {
|
|
7451
7640
|
config,
|
|
7452
|
-
resolve: () => buildNetworkSnapshot$
|
|
7641
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7453
7642
|
});
|
|
7454
7643
|
return cacheSnapshot;
|
|
7455
7644
|
}
|
|
7456
7645
|
const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
|
|
7457
|
-
const config = validateAdapterConfig$
|
|
7646
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAgentActions_ConfigPropertyNames);
|
|
7458
7647
|
// Invalid or incomplete config
|
|
7459
7648
|
if (config === null) {
|
|
7460
7649
|
return null;
|
|
7461
7650
|
}
|
|
7462
7651
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7463
|
-
buildCachedSnapshotCachePolicy$
|
|
7652
|
+
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
7464
7653
|
};
|
|
7465
7654
|
|
|
7466
|
-
function validate$
|
|
7655
|
+
function validate$8(obj, path = 'FilterInputRepresentation') {
|
|
7467
7656
|
const v_error = (() => {
|
|
7468
7657
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7469
7658
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7487,7 +7676,7 @@ function validate$6(obj, path = 'FilterInputRepresentation') {
|
|
|
7487
7676
|
return v_error === undefined ? null : v_error;
|
|
7488
7677
|
}
|
|
7489
7678
|
|
|
7490
|
-
function validate$
|
|
7679
|
+
function validate$7(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
7491
7680
|
const v_error = (() => {
|
|
7492
7681
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7493
7682
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7510,9 +7699,9 @@ function validate$5(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
7510
7699
|
return v_error === undefined ? null : v_error;
|
|
7511
7700
|
}
|
|
7512
7701
|
|
|
7513
|
-
const TTL$
|
|
7514
|
-
const VERSION$
|
|
7515
|
-
function validate$
|
|
7702
|
+
const TTL$2 = 6000;
|
|
7703
|
+
const VERSION$3 = "7860ae260a600243129acb4ea01e75be";
|
|
7704
|
+
function validate$6(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
7516
7705
|
const v_error = (() => {
|
|
7517
7706
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7518
7707
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7530,7 +7719,7 @@ function validate$4(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
7530
7719
|
for (let i = 0; i < obj_records.length; i++) {
|
|
7531
7720
|
const obj_records_item = obj_records[i];
|
|
7532
7721
|
const path_records_item = path_records + '[' + i + ']';
|
|
7533
|
-
const referencepath_records_itemValidationError = validate$
|
|
7722
|
+
const referencepath_records_itemValidationError = validate$7(obj_records_item, path_records_item);
|
|
7534
7723
|
if (referencepath_records_itemValidationError !== null) {
|
|
7535
7724
|
let message = 'Object doesn\'t match ServiceAutomationOutputRecordRepresentation (at "' + path_records_item + '")\n';
|
|
7536
7725
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7540,62 +7729,62 @@ function validate$4(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
7540
7729
|
})();
|
|
7541
7730
|
return v_error === undefined ? null : v_error;
|
|
7542
7731
|
}
|
|
7543
|
-
const RepresentationType$
|
|
7544
|
-
function normalize$
|
|
7732
|
+
const RepresentationType$3 = 'ServiceAutomationDepOutputRepresentation';
|
|
7733
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
7545
7734
|
return input;
|
|
7546
7735
|
}
|
|
7547
|
-
const select$
|
|
7736
|
+
const select$9 = function ServiceAutomationDepOutputRepresentationSelect() {
|
|
7548
7737
|
return {
|
|
7549
7738
|
kind: 'Fragment',
|
|
7550
|
-
version: VERSION$
|
|
7739
|
+
version: VERSION$3,
|
|
7551
7740
|
private: [],
|
|
7552
7741
|
opaque: true
|
|
7553
7742
|
};
|
|
7554
7743
|
};
|
|
7555
|
-
function equals$
|
|
7744
|
+
function equals$3(existing, incoming) {
|
|
7556
7745
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7557
7746
|
return false;
|
|
7558
7747
|
}
|
|
7559
7748
|
return true;
|
|
7560
7749
|
}
|
|
7561
|
-
const ingest$
|
|
7750
|
+
const ingest$3 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7562
7751
|
if (process.env.NODE_ENV !== 'production') {
|
|
7563
|
-
const validateError = validate$
|
|
7752
|
+
const validateError = validate$6(input);
|
|
7564
7753
|
if (validateError !== null) {
|
|
7565
7754
|
throw validateError;
|
|
7566
7755
|
}
|
|
7567
7756
|
}
|
|
7568
7757
|
const key = path.fullPath;
|
|
7569
|
-
const ttlToUse = TTL$
|
|
7570
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7758
|
+
const ttlToUse = TTL$2;
|
|
7759
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
|
|
7571
7760
|
return createLink(key);
|
|
7572
7761
|
};
|
|
7573
|
-
function getTypeCacheKeys$
|
|
7762
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
7574
7763
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7575
7764
|
const rootKey = fullPathFactory();
|
|
7576
7765
|
rootKeySet.set(rootKey, {
|
|
7577
7766
|
namespace: keyPrefix,
|
|
7578
|
-
representationName: RepresentationType$
|
|
7767
|
+
representationName: RepresentationType$3,
|
|
7579
7768
|
mergeable: false
|
|
7580
7769
|
});
|
|
7581
7770
|
}
|
|
7582
7771
|
|
|
7583
|
-
function select$
|
|
7584
|
-
return select$
|
|
7772
|
+
function select$8(luvio, params) {
|
|
7773
|
+
return select$9();
|
|
7585
7774
|
}
|
|
7586
|
-
function keyBuilder$
|
|
7775
|
+
function keyBuilder$8(luvio, params) {
|
|
7587
7776
|
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => 'filters.field:' + element.field + '::' + 'filters.operator:' + element.operator + '::' + 'filters.value:' + element.value).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
|
|
7588
7777
|
}
|
|
7589
|
-
function getResponseCacheKeys$
|
|
7590
|
-
getTypeCacheKeys$
|
|
7778
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
7779
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$8(luvio, resourceParams));
|
|
7591
7780
|
}
|
|
7592
|
-
function ingestSuccess$
|
|
7781
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
7593
7782
|
const { body } = response;
|
|
7594
|
-
const key = keyBuilder$
|
|
7595
|
-
luvio.storeIngest(key, ingest$
|
|
7783
|
+
const key = keyBuilder$8(luvio, resourceParams);
|
|
7784
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
7596
7785
|
const snapshot = luvio.storeLookup({
|
|
7597
7786
|
recordId: key,
|
|
7598
|
-
node: select$
|
|
7787
|
+
node: select$8(),
|
|
7599
7788
|
variables: {},
|
|
7600
7789
|
}, snapshotRefresh);
|
|
7601
7790
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7606,19 +7795,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
7606
7795
|
deepFreeze(snapshot.data);
|
|
7607
7796
|
return snapshot;
|
|
7608
7797
|
}
|
|
7609
|
-
function ingestError$
|
|
7610
|
-
const key = keyBuilder$
|
|
7798
|
+
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
7799
|
+
const key = keyBuilder$8(luvio, params);
|
|
7611
7800
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7612
7801
|
const storeMetadataParams = {
|
|
7613
|
-
ttl: TTL$
|
|
7802
|
+
ttl: TTL$2,
|
|
7614
7803
|
namespace: keyPrefix,
|
|
7615
|
-
version: VERSION$
|
|
7616
|
-
representationName: RepresentationType$
|
|
7804
|
+
version: VERSION$3,
|
|
7805
|
+
representationName: RepresentationType$3
|
|
7617
7806
|
};
|
|
7618
7807
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7619
7808
|
return errorSnapshot;
|
|
7620
7809
|
}
|
|
7621
|
-
function createResourceRequest$
|
|
7810
|
+
function createResourceRequest$5(config) {
|
|
7622
7811
|
const headers = {};
|
|
7623
7812
|
return {
|
|
7624
7813
|
baseUri: '/services/data/v65.0',
|
|
@@ -7632,28 +7821,28 @@ function createResourceRequest$4(config) {
|
|
|
7632
7821
|
};
|
|
7633
7822
|
}
|
|
7634
7823
|
|
|
7635
|
-
const adapterName$
|
|
7824
|
+
const adapterName$5 = 'getAllServiceAutomationDep';
|
|
7636
7825
|
const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
7637
7826
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
7638
7827
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
7639
7828
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7640
7829
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7641
7830
|
];
|
|
7642
|
-
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7643
|
-
const createResourceParams$
|
|
7644
|
-
function keyBuilder$
|
|
7645
|
-
const resourceParams = createResourceParams$
|
|
7646
|
-
return keyBuilder$
|
|
7831
|
+
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7832
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$b(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7833
|
+
function keyBuilder$7(luvio, config) {
|
|
7834
|
+
const resourceParams = createResourceParams$5(config);
|
|
7835
|
+
return keyBuilder$8(luvio, resourceParams);
|
|
7647
7836
|
}
|
|
7648
|
-
function typeCheckConfig$
|
|
7837
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
7649
7838
|
const config = {};
|
|
7650
|
-
typeCheckConfig$
|
|
7839
|
+
typeCheckConfig$b(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
7651
7840
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
7652
7841
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
7653
7842
|
const untrustedConfig_filters_array = [];
|
|
7654
7843
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
7655
7844
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
7656
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
7845
|
+
const referenceFilterInputRepresentationValidationError = validate$8(untrustedConfig_filters_item);
|
|
7657
7846
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
7658
7847
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
7659
7848
|
}
|
|
@@ -7669,6 +7858,245 @@ function typeCheckConfig$4(untrustedConfig) {
|
|
|
7669
7858
|
}
|
|
7670
7859
|
return config;
|
|
7671
7860
|
}
|
|
7861
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
7862
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7863
|
+
return null;
|
|
7864
|
+
}
|
|
7865
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7866
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7867
|
+
}
|
|
7868
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
7869
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7870
|
+
return null;
|
|
7871
|
+
}
|
|
7872
|
+
return config;
|
|
7873
|
+
}
|
|
7874
|
+
function adapterFragment$3(luvio, config) {
|
|
7875
|
+
createResourceParams$5(config);
|
|
7876
|
+
return select$8();
|
|
7877
|
+
}
|
|
7878
|
+
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
7879
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
7880
|
+
config,
|
|
7881
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7882
|
+
});
|
|
7883
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7884
|
+
}
|
|
7885
|
+
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
7886
|
+
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
7887
|
+
config,
|
|
7888
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7889
|
+
});
|
|
7890
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7891
|
+
}
|
|
7892
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
7893
|
+
const resourceParams = createResourceParams$5(config);
|
|
7894
|
+
const request = createResourceRequest$5(resourceParams);
|
|
7895
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7896
|
+
.then((response) => {
|
|
7897
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
7898
|
+
const cache = new StoreKeyMap();
|
|
7899
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
7900
|
+
return cache;
|
|
7901
|
+
});
|
|
7902
|
+
}, (response) => {
|
|
7903
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
7904
|
+
});
|
|
7905
|
+
}
|
|
7906
|
+
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
7907
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, 'get', false);
|
|
7908
|
+
}
|
|
7909
|
+
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
7910
|
+
const { luvio, config } = context;
|
|
7911
|
+
const selector = {
|
|
7912
|
+
recordId: keyBuilder$7(luvio, config),
|
|
7913
|
+
node: adapterFragment$3(luvio, config),
|
|
7914
|
+
variables: {},
|
|
7915
|
+
};
|
|
7916
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
7917
|
+
config,
|
|
7918
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
7919
|
+
});
|
|
7920
|
+
return cacheSnapshot;
|
|
7921
|
+
}
|
|
7922
|
+
const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
|
|
7923
|
+
const config = validateAdapterConfig$5(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
|
|
7924
|
+
// Invalid or incomplete config
|
|
7925
|
+
if (config === null) {
|
|
7926
|
+
return null;
|
|
7927
|
+
}
|
|
7928
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7929
|
+
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
7930
|
+
};
|
|
7931
|
+
|
|
7932
|
+
function validate$5(obj, path = 'ServiceProcessTemplateOutputRepresentation') {
|
|
7933
|
+
const v_error = (() => {
|
|
7934
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7935
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7936
|
+
}
|
|
7937
|
+
const obj_createdDate = obj.createdDate;
|
|
7938
|
+
const path_createdDate = path + '.createdDate';
|
|
7939
|
+
if (typeof obj_createdDate !== 'string') {
|
|
7940
|
+
return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
|
|
7941
|
+
}
|
|
7942
|
+
const obj_description = obj.description;
|
|
7943
|
+
const path_description = path + '.description';
|
|
7944
|
+
if (typeof obj_description !== 'string') {
|
|
7945
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7946
|
+
}
|
|
7947
|
+
const obj_id = obj.id;
|
|
7948
|
+
const path_id = path + '.id';
|
|
7949
|
+
if (typeof obj_id !== 'string') {
|
|
7950
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
7951
|
+
}
|
|
7952
|
+
const obj_imageUrl = obj.imageUrl;
|
|
7953
|
+
const path_imageUrl = path + '.imageUrl';
|
|
7954
|
+
if (typeof obj_imageUrl !== 'string') {
|
|
7955
|
+
return new TypeError('Expected "string" but received "' + typeof obj_imageUrl + '" (at "' + path_imageUrl + '")');
|
|
7956
|
+
}
|
|
7957
|
+
const obj_name = obj.name;
|
|
7958
|
+
const path_name = path + '.name';
|
|
7959
|
+
if (typeof obj_name !== 'string') {
|
|
7960
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
7961
|
+
}
|
|
7962
|
+
const obj_type = obj.type;
|
|
7963
|
+
const path_type = path + '.type';
|
|
7964
|
+
if (typeof obj_type !== 'string') {
|
|
7965
|
+
return new TypeError('Expected "string" but received "' + typeof obj_type + '" (at "' + path_type + '")');
|
|
7966
|
+
}
|
|
7967
|
+
})();
|
|
7968
|
+
return v_error === undefined ? null : v_error;
|
|
7969
|
+
}
|
|
7970
|
+
|
|
7971
|
+
const TTL$1 = 6000;
|
|
7972
|
+
const VERSION$2 = "1cae1bb3aeefe004ae9d9248ac15a1d5";
|
|
7973
|
+
function validate$4(obj, path = 'ServiceProcessTemplatesOutputRepresentation') {
|
|
7974
|
+
const v_error = (() => {
|
|
7975
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7976
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7977
|
+
}
|
|
7978
|
+
const obj_serviceProcessTemplateOutputRepresentation = obj.serviceProcessTemplateOutputRepresentation;
|
|
7979
|
+
const path_serviceProcessTemplateOutputRepresentation = path + '.serviceProcessTemplateOutputRepresentation';
|
|
7980
|
+
if (!ArrayIsArray(obj_serviceProcessTemplateOutputRepresentation)) {
|
|
7981
|
+
return new TypeError('Expected "array" but received "' + typeof obj_serviceProcessTemplateOutputRepresentation + '" (at "' + path_serviceProcessTemplateOutputRepresentation + '")');
|
|
7982
|
+
}
|
|
7983
|
+
for (let i = 0; i < obj_serviceProcessTemplateOutputRepresentation.length; i++) {
|
|
7984
|
+
const obj_serviceProcessTemplateOutputRepresentation_item = obj_serviceProcessTemplateOutputRepresentation[i];
|
|
7985
|
+
const path_serviceProcessTemplateOutputRepresentation_item = path_serviceProcessTemplateOutputRepresentation + '[' + i + ']';
|
|
7986
|
+
const referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError = validate$5(obj_serviceProcessTemplateOutputRepresentation_item, path_serviceProcessTemplateOutputRepresentation_item);
|
|
7987
|
+
if (referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError !== null) {
|
|
7988
|
+
let message = 'Object doesn\'t match ServiceProcessTemplateOutputRepresentation (at "' + path_serviceProcessTemplateOutputRepresentation_item + '")\n';
|
|
7989
|
+
message += referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7990
|
+
return new TypeError(message);
|
|
7991
|
+
}
|
|
7992
|
+
}
|
|
7993
|
+
})();
|
|
7994
|
+
return v_error === undefined ? null : v_error;
|
|
7995
|
+
}
|
|
7996
|
+
const RepresentationType$2 = 'ServiceProcessTemplatesOutputRepresentation';
|
|
7997
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
7998
|
+
return input;
|
|
7999
|
+
}
|
|
8000
|
+
const select$7 = function ServiceProcessTemplatesOutputRepresentationSelect() {
|
|
8001
|
+
return {
|
|
8002
|
+
kind: 'Fragment',
|
|
8003
|
+
version: VERSION$2,
|
|
8004
|
+
private: [],
|
|
8005
|
+
opaque: true
|
|
8006
|
+
};
|
|
8007
|
+
};
|
|
8008
|
+
function equals$2(existing, incoming) {
|
|
8009
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
8010
|
+
return false;
|
|
8011
|
+
}
|
|
8012
|
+
return true;
|
|
8013
|
+
}
|
|
8014
|
+
const ingest$2 = function ServiceProcessTemplatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
8015
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8016
|
+
const validateError = validate$4(input);
|
|
8017
|
+
if (validateError !== null) {
|
|
8018
|
+
throw validateError;
|
|
8019
|
+
}
|
|
8020
|
+
}
|
|
8021
|
+
const key = path.fullPath;
|
|
8022
|
+
const ttlToUse = TTL$1;
|
|
8023
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
|
|
8024
|
+
return createLink(key);
|
|
8025
|
+
};
|
|
8026
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
8027
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
8028
|
+
const rootKey = fullPathFactory();
|
|
8029
|
+
rootKeySet.set(rootKey, {
|
|
8030
|
+
namespace: keyPrefix,
|
|
8031
|
+
representationName: RepresentationType$2,
|
|
8032
|
+
mergeable: false
|
|
8033
|
+
});
|
|
8034
|
+
}
|
|
8035
|
+
|
|
8036
|
+
function select$6(luvio, params) {
|
|
8037
|
+
return select$7();
|
|
8038
|
+
}
|
|
8039
|
+
function keyBuilder$6(luvio, params) {
|
|
8040
|
+
return keyPrefix + '::ServiceProcessTemplatesOutputRepresentation:(' + ')';
|
|
8041
|
+
}
|
|
8042
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
8043
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6());
|
|
8044
|
+
}
|
|
8045
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
8046
|
+
const { body } = response;
|
|
8047
|
+
const key = keyBuilder$6();
|
|
8048
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
8049
|
+
const snapshot = luvio.storeLookup({
|
|
8050
|
+
recordId: key,
|
|
8051
|
+
node: select$6(),
|
|
8052
|
+
variables: {},
|
|
8053
|
+
}, snapshotRefresh);
|
|
8054
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8055
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
8056
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
8057
|
+
}
|
|
8058
|
+
}
|
|
8059
|
+
deepFreeze(snapshot.data);
|
|
8060
|
+
return snapshot;
|
|
8061
|
+
}
|
|
8062
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
8063
|
+
const key = keyBuilder$6();
|
|
8064
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8065
|
+
const storeMetadataParams = {
|
|
8066
|
+
ttl: TTL$1,
|
|
8067
|
+
namespace: keyPrefix,
|
|
8068
|
+
version: VERSION$2,
|
|
8069
|
+
representationName: RepresentationType$2
|
|
8070
|
+
};
|
|
8071
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
8072
|
+
return errorSnapshot;
|
|
8073
|
+
}
|
|
8074
|
+
function createResourceRequest$4(config) {
|
|
8075
|
+
const headers = {};
|
|
8076
|
+
return {
|
|
8077
|
+
baseUri: '/services/data/v65.0',
|
|
8078
|
+
basePath: '/connect/service-automation/service-process/get-all-templates',
|
|
8079
|
+
method: 'get',
|
|
8080
|
+
body: null,
|
|
8081
|
+
urlParams: {},
|
|
8082
|
+
queryParams: {},
|
|
8083
|
+
headers,
|
|
8084
|
+
priority: 'normal',
|
|
8085
|
+
};
|
|
8086
|
+
}
|
|
8087
|
+
|
|
8088
|
+
const adapterName$4 = 'getAllServiceProcessTemplate';
|
|
8089
|
+
const getAllServiceProcessTemplate_ConfigPropertyMetadata = [];
|
|
8090
|
+
const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
8091
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$b(getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
8092
|
+
function keyBuilder$5(luvio, config) {
|
|
8093
|
+
createResourceParams$4(config);
|
|
8094
|
+
return keyBuilder$6();
|
|
8095
|
+
}
|
|
8096
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
8097
|
+
const config = {};
|
|
8098
|
+
return config;
|
|
8099
|
+
}
|
|
7672
8100
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
7673
8101
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7674
8102
|
return null;
|
|
@@ -7676,7 +8104,7 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
7676
8104
|
if (process.env.NODE_ENV !== 'production') {
|
|
7677
8105
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7678
8106
|
}
|
|
7679
|
-
const config = typeCheckConfig$4(
|
|
8107
|
+
const config = typeCheckConfig$4();
|
|
7680
8108
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7681
8109
|
return null;
|
|
7682
8110
|
}
|
|
@@ -7702,7 +8130,7 @@ function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
|
7702
8130
|
}
|
|
7703
8131
|
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
7704
8132
|
const resourceParams = createResourceParams$4(config);
|
|
7705
|
-
const request = createResourceRequest$4(
|
|
8133
|
+
const request = createResourceRequest$4();
|
|
7706
8134
|
return luvio.dispatchResourceRequest(request, options)
|
|
7707
8135
|
.then((response) => {
|
|
7708
8136
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
@@ -7715,7 +8143,7 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
7715
8143
|
});
|
|
7716
8144
|
}
|
|
7717
8145
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7718
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8146
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, undefined, false);
|
|
7719
8147
|
}
|
|
7720
8148
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7721
8149
|
const { luvio, config } = context;
|
|
@@ -7730,8 +8158,8 @@ function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
|
7730
8158
|
});
|
|
7731
8159
|
return cacheSnapshot;
|
|
7732
8160
|
}
|
|
7733
|
-
const
|
|
7734
|
-
const config = validateAdapterConfig$4(untrustedConfig,
|
|
8161
|
+
const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getAllServiceProcessTemplate(untrustedConfig, requestContext) {
|
|
8162
|
+
const config = validateAdapterConfig$4(untrustedConfig, getAllServiceProcessTemplate_ConfigPropertyNames);
|
|
7735
8163
|
// Invalid or incomplete config
|
|
7736
8164
|
if (config === null) {
|
|
7737
8165
|
return null;
|
|
@@ -7741,20 +8169,20 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
|
|
|
7741
8169
|
};
|
|
7742
8170
|
|
|
7743
8171
|
function select$5(luvio, params) {
|
|
7744
|
-
return select$
|
|
8172
|
+
return select$j();
|
|
7745
8173
|
}
|
|
7746
8174
|
function keyBuilder$4(luvio, params) {
|
|
7747
|
-
return keyBuilder$
|
|
8175
|
+
return keyBuilder$e(luvio, {
|
|
7748
8176
|
catalogItemId: params.urlParams.catalogItemId
|
|
7749
8177
|
});
|
|
7750
8178
|
}
|
|
7751
8179
|
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
7752
|
-
getTypeCacheKeys$
|
|
8180
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
7753
8181
|
}
|
|
7754
8182
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
7755
8183
|
const { body } = response;
|
|
7756
8184
|
const key = keyBuilder$4(luvio, resourceParams);
|
|
7757
|
-
luvio.storeIngest(key, ingest$
|
|
8185
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
7758
8186
|
const snapshot = luvio.storeLookup({
|
|
7759
8187
|
recordId: key,
|
|
7760
8188
|
node: select$5(),
|
|
@@ -7772,10 +8200,10 @@ function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
|
7772
8200
|
const key = keyBuilder$4(luvio, params);
|
|
7773
8201
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7774
8202
|
const storeMetadataParams = {
|
|
7775
|
-
ttl: TTL$
|
|
8203
|
+
ttl: TTL$7,
|
|
7776
8204
|
namespace: keyPrefix,
|
|
7777
|
-
version: VERSION$
|
|
7778
|
-
representationName: RepresentationType$
|
|
8205
|
+
version: VERSION$8,
|
|
8206
|
+
representationName: RepresentationType$8
|
|
7779
8207
|
};
|
|
7780
8208
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7781
8209
|
return errorSnapshot;
|
|
@@ -7800,14 +8228,14 @@ const getCatalogItem_ConfigPropertyMetadata = [
|
|
|
7800
8228
|
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7801
8229
|
];
|
|
7802
8230
|
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCatalogItem_ConfigPropertyMetadata);
|
|
7803
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8231
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$b(getCatalogItem_ConfigPropertyMetadata);
|
|
7804
8232
|
function keyBuilder$3(luvio, config) {
|
|
7805
8233
|
const resourceParams = createResourceParams$3(config);
|
|
7806
8234
|
return keyBuilder$4(luvio, resourceParams);
|
|
7807
8235
|
}
|
|
7808
8236
|
function typeCheckConfig$3(untrustedConfig) {
|
|
7809
8237
|
const config = {};
|
|
7810
|
-
typeCheckConfig$
|
|
8238
|
+
typeCheckConfig$b(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
7811
8239
|
return config;
|
|
7812
8240
|
}
|
|
7813
8241
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -7856,7 +8284,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
7856
8284
|
});
|
|
7857
8285
|
}
|
|
7858
8286
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7859
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8287
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
7860
8288
|
}
|
|
7861
8289
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7862
8290
|
const { luvio, config } = context;
|
|
@@ -8096,14 +8524,14 @@ const getServiceRequest_ConfigPropertyMetadata = [
|
|
|
8096
8524
|
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8097
8525
|
];
|
|
8098
8526
|
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getServiceRequest_ConfigPropertyMetadata);
|
|
8099
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8527
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$b(getServiceRequest_ConfigPropertyMetadata);
|
|
8100
8528
|
function keyBuilder$1(luvio, config) {
|
|
8101
8529
|
const resourceParams = createResourceParams$2(config);
|
|
8102
8530
|
return keyBuilder$2(luvio, resourceParams);
|
|
8103
8531
|
}
|
|
8104
8532
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8105
8533
|
const config = {};
|
|
8106
|
-
typeCheckConfig$
|
|
8534
|
+
typeCheckConfig$b(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
8107
8535
|
return config;
|
|
8108
8536
|
}
|
|
8109
8537
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8152,7 +8580,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
8152
8580
|
});
|
|
8153
8581
|
}
|
|
8154
8582
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
8155
|
-
return buildNetworkSnapshotCachePolicy$
|
|
8583
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
8156
8584
|
}
|
|
8157
8585
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
8158
8586
|
const { luvio, config } = context;
|
|
@@ -8178,15 +8606,15 @@ const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceReque
|
|
|
8178
8606
|
};
|
|
8179
8607
|
|
|
8180
8608
|
function select$2(luvio, params) {
|
|
8181
|
-
return select$
|
|
8609
|
+
return select$j();
|
|
8182
8610
|
}
|
|
8183
8611
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
8184
|
-
getTypeCacheKeys$
|
|
8612
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response);
|
|
8185
8613
|
}
|
|
8186
8614
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
8187
8615
|
const { body } = response;
|
|
8188
|
-
const key = keyBuilderFromType$
|
|
8189
|
-
luvio.storeIngest(key, ingest$
|
|
8616
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
8617
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
8190
8618
|
const snapshot = luvio.storeLookup({
|
|
8191
8619
|
recordId: key,
|
|
8192
8620
|
node: select$2(),
|
|
@@ -8237,12 +8665,12 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
8237
8665
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
8238
8666
|
];
|
|
8239
8667
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
8240
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
8668
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$b(updateCatalogItem_ConfigPropertyMetadata);
|
|
8241
8669
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8242
8670
|
const config = {};
|
|
8243
|
-
typeCheckConfig$
|
|
8671
|
+
typeCheckConfig$b(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
8244
8672
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
8245
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
8673
|
+
const referenceAgentActionInputRepresentationValidationError = validate$C(untrustedConfig_agentAction);
|
|
8246
8674
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
8247
8675
|
config.agentAction = untrustedConfig_agentAction;
|
|
8248
8676
|
}
|
|
@@ -8261,7 +8689,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8261
8689
|
const untrustedConfig_associatedArticles_array = [];
|
|
8262
8690
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
8263
8691
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
8264
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
8692
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$B(untrustedConfig_associatedArticles_item);
|
|
8265
8693
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
8266
8694
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
8267
8695
|
}
|
|
@@ -8276,7 +8704,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8276
8704
|
const untrustedConfig_attributes_array = [];
|
|
8277
8705
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
8278
8706
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
8279
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
8707
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$z(untrustedConfig_attributes_item);
|
|
8280
8708
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
8281
8709
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
8282
8710
|
}
|
|
@@ -8291,7 +8719,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8291
8719
|
const untrustedConfig_sections_array = [];
|
|
8292
8720
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
8293
8721
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
8294
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
8722
|
+
const referenceSectionInputRepresentationValidationError = validate$y(untrustedConfig_sections_item);
|
|
8295
8723
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
8296
8724
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
8297
8725
|
}
|
|
@@ -8327,7 +8755,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8327
8755
|
const untrustedConfig_eligibilityRules_array = [];
|
|
8328
8756
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
8329
8757
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
8330
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
8758
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$x(untrustedConfig_eligibilityRules_item);
|
|
8331
8759
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
8332
8760
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
8333
8761
|
}
|
|
@@ -8338,7 +8766,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8338
8766
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
8339
8767
|
}
|
|
8340
8768
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
8341
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
8769
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$w(untrustedConfig_fulfillmentFlow);
|
|
8342
8770
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
8343
8771
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
8344
8772
|
}
|
|
@@ -8346,7 +8774,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8346
8774
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
8347
8775
|
}
|
|
8348
8776
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
8349
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
8777
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$v(untrustedConfig_intakeForm);
|
|
8350
8778
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
8351
8779
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
8352
8780
|
}
|
|
@@ -8358,7 +8786,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8358
8786
|
const untrustedConfig_integrations_array = [];
|
|
8359
8787
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
8360
8788
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
8361
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
8789
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$u(untrustedConfig_integrations_item);
|
|
8362
8790
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
8363
8791
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
8364
8792
|
}
|
|
@@ -8387,7 +8815,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8387
8815
|
const untrustedConfig_preProcessors_array = [];
|
|
8388
8816
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
8389
8817
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
8390
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
8818
|
+
const referencePreprocessorInputRepresentationValidationError = validate$t(untrustedConfig_preProcessors_item);
|
|
8391
8819
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
8392
8820
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
8393
8821
|
}
|
|
@@ -8402,7 +8830,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
8402
8830
|
const untrustedConfig_productRequests_array = [];
|
|
8403
8831
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
8404
8832
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
8405
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
8833
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$s(untrustedConfig_productRequests_item);
|
|
8406
8834
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
8407
8835
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
8408
8836
|
}
|
|
@@ -8642,10 +9070,10 @@ const updateEpcCategories_ConfigPropertyMetadata = [
|
|
|
8642
9070
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
8643
9071
|
];
|
|
8644
9072
|
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateEpcCategories_ConfigPropertyMetadata);
|
|
8645
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9073
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$b(updateEpcCategories_ConfigPropertyMetadata);
|
|
8646
9074
|
function typeCheckConfig(untrustedConfig) {
|
|
8647
9075
|
const config = {};
|
|
8648
|
-
typeCheckConfig$
|
|
9076
|
+
typeCheckConfig$b(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
8649
9077
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
8650
9078
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
8651
9079
|
const untrustedConfig_categories_array = [];
|
|
@@ -8703,10 +9131,12 @@ const updateEpcCategoriesAdapterFactory = (luvio) => {
|
|
|
8703
9131
|
};
|
|
8704
9132
|
|
|
8705
9133
|
let createCatalogItem;
|
|
9134
|
+
let deployTemplate;
|
|
8706
9135
|
let generateIntakeForm;
|
|
8707
9136
|
let generateOmniScript;
|
|
8708
9137
|
let getAgentActions;
|
|
8709
9138
|
let getAllServiceAutomationDep;
|
|
9139
|
+
let getAllServiceProcessTemplate;
|
|
8710
9140
|
let getCatalogItem;
|
|
8711
9141
|
let getServiceRequest;
|
|
8712
9142
|
let updateCatalogItem;
|
|
@@ -8714,6 +9144,7 @@ let updateEpcCategories;
|
|
|
8714
9144
|
// Imperative GET Adapters
|
|
8715
9145
|
let getAgentActions_imperative;
|
|
8716
9146
|
let getAllServiceAutomationDep_imperative;
|
|
9147
|
+
let getAllServiceProcessTemplate_imperative;
|
|
8717
9148
|
let getCatalogItem_imperative;
|
|
8718
9149
|
let getServiceRequest_imperative;
|
|
8719
9150
|
const getAgentActionsMetadata = { apiFamily: 'ecm', name: 'getAgentActions', ttl: 6000 };
|
|
@@ -8722,6 +9153,11 @@ const getAllServiceAutomationDepMetadata = {
|
|
|
8722
9153
|
name: 'getAllServiceAutomationDep',
|
|
8723
9154
|
ttl: 6000,
|
|
8724
9155
|
};
|
|
9156
|
+
const getAllServiceProcessTemplateMetadata = {
|
|
9157
|
+
apiFamily: 'ecm',
|
|
9158
|
+
name: 'getAllServiceProcessTemplate',
|
|
9159
|
+
ttl: 6000,
|
|
9160
|
+
};
|
|
8725
9161
|
const getCatalogItemMetadata = { apiFamily: 'ecm', name: 'getCatalogItem', ttl: 6000 };
|
|
8726
9162
|
const getServiceRequestMetadata = { apiFamily: 'ecm', name: 'getServiceRequest' };
|
|
8727
9163
|
// Notify Update Available
|
|
@@ -8729,6 +9165,7 @@ function bindExportsTo(luvio) {
|
|
|
8729
9165
|
// LDS Adapters
|
|
8730
9166
|
const getAgentActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAgentActions', getAgentActionsAdapterFactory), getAgentActionsMetadata);
|
|
8731
9167
|
const getAllServiceAutomationDep_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceAutomationDep', getAllServiceAutomationDepAdapterFactory), getAllServiceAutomationDepMetadata);
|
|
9168
|
+
const getAllServiceProcessTemplate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceProcessTemplate', getAllServiceProcessTemplateAdapterFactory), getAllServiceProcessTemplateMetadata);
|
|
8732
9169
|
const getCatalogItem_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCatalogItem', getCatalogItemAdapterFactory), getCatalogItemMetadata);
|
|
8733
9170
|
const getServiceRequest_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getServiceRequest', getServiceRequestAdapterFactory), getServiceRequestMetadata);
|
|
8734
9171
|
function unwrapSnapshotData(factory) {
|
|
@@ -8737,10 +9174,12 @@ function bindExportsTo(luvio) {
|
|
|
8737
9174
|
}
|
|
8738
9175
|
return {
|
|
8739
9176
|
createCatalogItem: unwrapSnapshotData(createCatalogItemAdapterFactory),
|
|
9177
|
+
deployTemplate: unwrapSnapshotData(deployTemplateAdapterFactory),
|
|
8740
9178
|
generateIntakeForm: unwrapSnapshotData(generateIntakeFormAdapterFactory),
|
|
8741
9179
|
generateOmniScript: unwrapSnapshotData(generateOmniScriptAdapterFactory),
|
|
8742
9180
|
getAgentActions: createWireAdapterConstructor(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
8743
9181
|
getAllServiceAutomationDep: createWireAdapterConstructor(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
9182
|
+
getAllServiceProcessTemplate: createWireAdapterConstructor(luvio, getAllServiceProcessTemplate_ldsAdapter, getAllServiceProcessTemplateMetadata),
|
|
8744
9183
|
getCatalogItem: createWireAdapterConstructor(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
8745
9184
|
getServiceRequest: createWireAdapterConstructor(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
8746
9185
|
updateCatalogItem: unwrapSnapshotData(updateCatalogItemAdapterFactory),
|
|
@@ -8748,6 +9187,7 @@ function bindExportsTo(luvio) {
|
|
|
8748
9187
|
// Imperative GET Adapters
|
|
8749
9188
|
getAgentActions_imperative: createImperativeAdapter(luvio, getAgentActions_ldsAdapter, getAgentActionsMetadata),
|
|
8750
9189
|
getAllServiceAutomationDep_imperative: createImperativeAdapter(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
9190
|
+
getAllServiceProcessTemplate_imperative: createImperativeAdapter(luvio, getAllServiceProcessTemplate_ldsAdapter, getAllServiceProcessTemplateMetadata),
|
|
8751
9191
|
getCatalogItem_imperative: createImperativeAdapter(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
8752
9192
|
getServiceRequest_imperative: createImperativeAdapter(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
8753
9193
|
// Notify Update Availables
|
|
@@ -8756,20 +9196,23 @@ function bindExportsTo(luvio) {
|
|
|
8756
9196
|
withDefaultLuvio((luvio) => {
|
|
8757
9197
|
({
|
|
8758
9198
|
createCatalogItem,
|
|
9199
|
+
deployTemplate,
|
|
8759
9200
|
generateIntakeForm,
|
|
8760
9201
|
generateOmniScript,
|
|
8761
9202
|
getAgentActions,
|
|
8762
9203
|
getAllServiceAutomationDep,
|
|
9204
|
+
getAllServiceProcessTemplate,
|
|
8763
9205
|
getCatalogItem,
|
|
8764
9206
|
getServiceRequest,
|
|
8765
9207
|
updateCatalogItem,
|
|
8766
9208
|
updateEpcCategories,
|
|
8767
9209
|
getAgentActions_imperative,
|
|
8768
9210
|
getAllServiceAutomationDep_imperative,
|
|
9211
|
+
getAllServiceProcessTemplate_imperative,
|
|
8769
9212
|
getCatalogItem_imperative,
|
|
8770
9213
|
getServiceRequest_imperative,
|
|
8771
9214
|
} = bindExportsTo(luvio));
|
|
8772
9215
|
});
|
|
8773
9216
|
|
|
8774
|
-
export { createCatalogItem, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
8775
|
-
// version: 1.
|
|
9217
|
+
export { createCatalogItem, deployTemplate, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
9218
|
+
// version: 1.366.0-bf15f04cce
|