@salesforce/lds-adapters-service-ecm 1.366.0 → 1.367.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-ecm.js +1359 -1122
- package/dist/es/es2018/types/src/generated/adapters/createAgentAction.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/adapters/createAgentFlow.d.ts +18 -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 +3 -1
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationAgentFlowAutolaunched.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationGenAiActions.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/types/AgentActionAttributeOutputRepresentation.d.ts +27 -27
- package/dist/es/es2018/types/src/generated/types/AgentFlowInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/AgentFlowOutputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/AgentFlowStatusOutputRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionInputRepresentation.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionOutputRepresentation.d.ts +38 -28
- package/dist/es/es2018/types/src/generated/types/EinsteinAgentActionsOutputRepresentation.d.ts +5 -5
- package/package.json +3 -3
- package/sfdc/index.js +5598 -5355
- package/src/raml/api.raml +117 -37
- package/src/raml/luvio.raml +16 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$d, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$5, typeCheckConfig as typeCheckConfig$d } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -112,7 +112,7 @@ function createLink(ref) {
|
|
|
112
112
|
};
|
|
113
113
|
}
|
|
114
114
|
|
|
115
|
-
function validate$
|
|
115
|
+
function validate$E(obj, path = 'AgentActionInputRepresentation') {
|
|
116
116
|
const v_error = (() => {
|
|
117
117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
118
118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -233,7 +233,7 @@ function validate$C(obj, path = 'AgentActionInputRepresentation') {
|
|
|
233
233
|
return v_error === undefined ? null : v_error;
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
function validate$
|
|
236
|
+
function validate$D(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
237
237
|
const v_error = (() => {
|
|
238
238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
239
239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -326,7 +326,7 @@ function validate$B(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
326
326
|
return v_error === undefined ? null : v_error;
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
function validate$
|
|
329
|
+
function validate$C(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
330
330
|
const v_error = (() => {
|
|
331
331
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
332
332
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -405,7 +405,7 @@ function validate$A(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
405
405
|
return v_error === undefined ? null : v_error;
|
|
406
406
|
}
|
|
407
407
|
|
|
408
|
-
function validate$
|
|
408
|
+
function validate$B(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
409
409
|
const v_error = (() => {
|
|
410
410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
411
411
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -771,7 +771,7 @@ function validate$z(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
771
771
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
772
772
|
let obj_picklistOptions_item_union0 = null;
|
|
773
773
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
774
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
774
|
+
const referencepath_picklistOptions_itemValidationError = validate$C(obj_picklistOptions_item, path_picklistOptions_item);
|
|
775
775
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
776
776
|
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
777
777
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -830,7 +830,7 @@ function validate$z(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
830
830
|
return v_error === undefined ? null : v_error;
|
|
831
831
|
}
|
|
832
832
|
|
|
833
|
-
function validate$
|
|
833
|
+
function validate$A(obj, path = 'SectionInputRepresentation') {
|
|
834
834
|
const v_error = (() => {
|
|
835
835
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
836
836
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -972,7 +972,7 @@ function validate$y(obj, path = 'SectionInputRepresentation') {
|
|
|
972
972
|
return v_error === undefined ? null : v_error;
|
|
973
973
|
}
|
|
974
974
|
|
|
975
|
-
function validate$
|
|
975
|
+
function validate$z(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
976
976
|
const v_error = (() => {
|
|
977
977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
978
978
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1037,7 +1037,7 @@ function validate$x(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
1037
1037
|
return v_error === undefined ? null : v_error;
|
|
1038
1038
|
}
|
|
1039
1039
|
|
|
1040
|
-
function validate$
|
|
1040
|
+
function validate$y(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
1041
1041
|
const v_error = (() => {
|
|
1042
1042
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1043
1043
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1158,7 +1158,7 @@ function validate$w(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1158
1158
|
return v_error === undefined ? null : v_error;
|
|
1159
1159
|
}
|
|
1160
1160
|
|
|
1161
|
-
function validate$
|
|
1161
|
+
function validate$x(obj, path = 'IntakeFormInputRepresentation') {
|
|
1162
1162
|
const v_error = (() => {
|
|
1163
1163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1164
1164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1279,7 +1279,7 @@ function validate$v(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1279
1279
|
return v_error === undefined ? null : v_error;
|
|
1280
1280
|
}
|
|
1281
1281
|
|
|
1282
|
-
function validate$
|
|
1282
|
+
function validate$w(obj, path = 'IntegrationDefInputRepresentation') {
|
|
1283
1283
|
const v_error = (() => {
|
|
1284
1284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1285
1285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1372,7 +1372,7 @@ function validate$u(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1372
1372
|
return v_error === undefined ? null : v_error;
|
|
1373
1373
|
}
|
|
1374
1374
|
|
|
1375
|
-
function validate$
|
|
1375
|
+
function validate$v(obj, path = 'PreprocessorInputRepresentation') {
|
|
1376
1376
|
const v_error = (() => {
|
|
1377
1377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1378
1378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1465,7 +1465,7 @@ function validate$t(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1465
1465
|
return v_error === undefined ? null : v_error;
|
|
1466
1466
|
}
|
|
1467
1467
|
|
|
1468
|
-
function validate$
|
|
1468
|
+
function validate$u(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1469
1469
|
const v_error = (() => {
|
|
1470
1470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1471
1471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1656,8 +1656,8 @@ function validate$s(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
1656
1656
|
return v_error === undefined ? null : v_error;
|
|
1657
1657
|
}
|
|
1658
1658
|
|
|
1659
|
-
const VERSION$
|
|
1660
|
-
function validate$
|
|
1659
|
+
const VERSION$o = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1660
|
+
function validate$t(obj, path = 'AgentActionOutputRepresentation') {
|
|
1661
1661
|
const v_error = (() => {
|
|
1662
1662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1663
1663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1749,10 +1749,10 @@ function validate$r(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1749
1749
|
})();
|
|
1750
1750
|
return v_error === undefined ? null : v_error;
|
|
1751
1751
|
}
|
|
1752
|
-
const select$
|
|
1752
|
+
const select$B = function AgentActionOutputRepresentationSelect() {
|
|
1753
1753
|
return {
|
|
1754
1754
|
kind: 'Fragment',
|
|
1755
|
-
version: VERSION$
|
|
1755
|
+
version: VERSION$o,
|
|
1756
1756
|
private: [],
|
|
1757
1757
|
selections: [
|
|
1758
1758
|
{
|
|
@@ -1773,7 +1773,7 @@ const select$v = function AgentActionOutputRepresentationSelect() {
|
|
|
1773
1773
|
]
|
|
1774
1774
|
};
|
|
1775
1775
|
};
|
|
1776
|
-
function equals$
|
|
1776
|
+
function equals$o(existing, incoming) {
|
|
1777
1777
|
const existing_agentActionId = existing.agentActionId;
|
|
1778
1778
|
const incoming_agentActionId = incoming.agentActionId;
|
|
1779
1779
|
// if at least one of these optionals is defined
|
|
@@ -1816,8 +1816,8 @@ function equals$k(existing, incoming) {
|
|
|
1816
1816
|
return true;
|
|
1817
1817
|
}
|
|
1818
1818
|
|
|
1819
|
-
const VERSION$
|
|
1820
|
-
function validate$
|
|
1819
|
+
const VERSION$n = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1820
|
+
function validate$s(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1821
1821
|
const v_error = (() => {
|
|
1822
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1823
1823
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1881,10 +1881,10 @@ function validate$q(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1881
1881
|
})();
|
|
1882
1882
|
return v_error === undefined ? null : v_error;
|
|
1883
1883
|
}
|
|
1884
|
-
const select$
|
|
1884
|
+
const select$A = function AssociatedArticleOutputRepresentationSelect() {
|
|
1885
1885
|
return {
|
|
1886
1886
|
kind: 'Fragment',
|
|
1887
|
-
version: VERSION$
|
|
1887
|
+
version: VERSION$n,
|
|
1888
1888
|
private: [],
|
|
1889
1889
|
selections: [
|
|
1890
1890
|
{
|
|
@@ -1900,7 +1900,7 @@ const select$u = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1900
1900
|
]
|
|
1901
1901
|
};
|
|
1902
1902
|
};
|
|
1903
|
-
function equals$
|
|
1903
|
+
function equals$n(existing, incoming) {
|
|
1904
1904
|
const existing_id = existing.id;
|
|
1905
1905
|
const incoming_id = incoming.id;
|
|
1906
1906
|
// if at least one of these optionals is defined
|
|
@@ -1930,8 +1930,8 @@ function equals$j(existing, incoming) {
|
|
|
1930
1930
|
return true;
|
|
1931
1931
|
}
|
|
1932
1932
|
|
|
1933
|
-
const VERSION$
|
|
1934
|
-
function validate$
|
|
1933
|
+
const VERSION$m = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1934
|
+
function validate$r(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1935
1935
|
const v_error = (() => {
|
|
1936
1936
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1937
1937
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1995,10 +1995,10 @@ function validate$p(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
1995
1995
|
})();
|
|
1996
1996
|
return v_error === undefined ? null : v_error;
|
|
1997
1997
|
}
|
|
1998
|
-
const select$
|
|
1998
|
+
const select$z = function EligibilityRuleOutputRepresentationSelect() {
|
|
1999
1999
|
return {
|
|
2000
2000
|
kind: 'Fragment',
|
|
2001
|
-
version: VERSION$
|
|
2001
|
+
version: VERSION$m,
|
|
2002
2002
|
private: [],
|
|
2003
2003
|
selections: [
|
|
2004
2004
|
{
|
|
@@ -2014,7 +2014,7 @@ const select$t = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
2014
2014
|
]
|
|
2015
2015
|
};
|
|
2016
2016
|
};
|
|
2017
|
-
function equals$
|
|
2017
|
+
function equals$m(existing, incoming) {
|
|
2018
2018
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
2019
2019
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
2020
2020
|
// if at least one of these optionals is defined
|
|
@@ -2044,8 +2044,8 @@ function equals$i(existing, incoming) {
|
|
|
2044
2044
|
return true;
|
|
2045
2045
|
}
|
|
2046
2046
|
|
|
2047
|
-
const VERSION$
|
|
2048
|
-
function validate$
|
|
2047
|
+
const VERSION$l = "b5216beece7c04763cff6924e6953f93";
|
|
2048
|
+
function validate$q(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
2049
2049
|
const v_error = (() => {
|
|
2050
2050
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2051
2051
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2137,10 +2137,10 @@ function validate$o(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2137
2137
|
})();
|
|
2138
2138
|
return v_error === undefined ? null : v_error;
|
|
2139
2139
|
}
|
|
2140
|
-
const select$
|
|
2140
|
+
const select$y = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2141
2141
|
return {
|
|
2142
2142
|
kind: 'Fragment',
|
|
2143
|
-
version: VERSION$
|
|
2143
|
+
version: VERSION$l,
|
|
2144
2144
|
private: [],
|
|
2145
2145
|
selections: [
|
|
2146
2146
|
{
|
|
@@ -2161,7 +2161,7 @@ const select$s = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2161
2161
|
]
|
|
2162
2162
|
};
|
|
2163
2163
|
};
|
|
2164
|
-
function equals$
|
|
2164
|
+
function equals$l(existing, incoming) {
|
|
2165
2165
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
2166
2166
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
2167
2167
|
// if at least one of these optionals is defined
|
|
@@ -2204,8 +2204,8 @@ function equals$h(existing, incoming) {
|
|
|
2204
2204
|
return true;
|
|
2205
2205
|
}
|
|
2206
2206
|
|
|
2207
|
-
const VERSION$
|
|
2208
|
-
function validate$
|
|
2207
|
+
const VERSION$k = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2208
|
+
function validate$p(obj, path = 'IntakeFormOutputRepresentation') {
|
|
2209
2209
|
const v_error = (() => {
|
|
2210
2210
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2211
2211
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2437,10 +2437,10 @@ function validate$n(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2437
2437
|
})();
|
|
2438
2438
|
return v_error === undefined ? null : v_error;
|
|
2439
2439
|
}
|
|
2440
|
-
const select$
|
|
2440
|
+
const select$x = function IntakeFormOutputRepresentationSelect() {
|
|
2441
2441
|
return {
|
|
2442
2442
|
kind: 'Fragment',
|
|
2443
|
-
version: VERSION$
|
|
2443
|
+
version: VERSION$k,
|
|
2444
2444
|
private: [],
|
|
2445
2445
|
selections: [
|
|
2446
2446
|
{
|
|
@@ -2486,7 +2486,7 @@ const select$r = function IntakeFormOutputRepresentationSelect() {
|
|
|
2486
2486
|
]
|
|
2487
2487
|
};
|
|
2488
2488
|
};
|
|
2489
|
-
function equals$
|
|
2489
|
+
function equals$k(existing, incoming) {
|
|
2490
2490
|
const existing_id = existing.id;
|
|
2491
2491
|
const incoming_id = incoming.id;
|
|
2492
2492
|
// if at least one of these optionals is defined
|
|
@@ -2594,8 +2594,8 @@ function equals$g(existing, incoming) {
|
|
|
2594
2594
|
return true;
|
|
2595
2595
|
}
|
|
2596
2596
|
|
|
2597
|
-
const VERSION$
|
|
2598
|
-
function validate$
|
|
2597
|
+
const VERSION$j = "1006a153c933b8bc4b1d44663893e206";
|
|
2598
|
+
function validate$o(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
2599
2599
|
const v_error = (() => {
|
|
2600
2600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2601
2601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2659,10 +2659,10 @@ function validate$m(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2659
2659
|
})();
|
|
2660
2660
|
return v_error === undefined ? null : v_error;
|
|
2661
2661
|
}
|
|
2662
|
-
const select$
|
|
2662
|
+
const select$w = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2663
2663
|
return {
|
|
2664
2664
|
kind: 'Fragment',
|
|
2665
|
-
version: VERSION$
|
|
2665
|
+
version: VERSION$j,
|
|
2666
2666
|
private: [],
|
|
2667
2667
|
selections: [
|
|
2668
2668
|
{
|
|
@@ -2678,7 +2678,7 @@ const select$q = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2678
2678
|
]
|
|
2679
2679
|
};
|
|
2680
2680
|
};
|
|
2681
|
-
function equals$
|
|
2681
|
+
function equals$j(existing, incoming) {
|
|
2682
2682
|
const existing_id = existing.id;
|
|
2683
2683
|
const incoming_id = incoming.id;
|
|
2684
2684
|
// if at least one of these optionals is defined
|
|
@@ -2708,8 +2708,8 @@ function equals$f(existing, incoming) {
|
|
|
2708
2708
|
return true;
|
|
2709
2709
|
}
|
|
2710
2710
|
|
|
2711
|
-
const VERSION$
|
|
2712
|
-
function validate$
|
|
2711
|
+
const VERSION$i = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2712
|
+
function validate$n(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2713
2713
|
const v_error = (() => {
|
|
2714
2714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2715
2715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2773,10 +2773,10 @@ function validate$l(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2773
2773
|
})();
|
|
2774
2774
|
return v_error === undefined ? null : v_error;
|
|
2775
2775
|
}
|
|
2776
|
-
const select$
|
|
2776
|
+
const select$v = function PreprocessorOutputRepresentationSelect() {
|
|
2777
2777
|
return {
|
|
2778
2778
|
kind: 'Fragment',
|
|
2779
|
-
version: VERSION$
|
|
2779
|
+
version: VERSION$i,
|
|
2780
2780
|
private: [],
|
|
2781
2781
|
selections: [
|
|
2782
2782
|
{
|
|
@@ -2792,7 +2792,7 @@ const select$p = function PreprocessorOutputRepresentationSelect() {
|
|
|
2792
2792
|
]
|
|
2793
2793
|
};
|
|
2794
2794
|
};
|
|
2795
|
-
function equals$
|
|
2795
|
+
function equals$i(existing, incoming) {
|
|
2796
2796
|
const existing_id = existing.id;
|
|
2797
2797
|
const incoming_id = incoming.id;
|
|
2798
2798
|
// if at least one of these optionals is defined
|
|
@@ -2822,8 +2822,8 @@ function equals$e(existing, incoming) {
|
|
|
2822
2822
|
return true;
|
|
2823
2823
|
}
|
|
2824
2824
|
|
|
2825
|
-
const VERSION$
|
|
2826
|
-
function validate$
|
|
2825
|
+
const VERSION$h = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2826
|
+
function validate$m(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
2827
2827
|
const v_error = (() => {
|
|
2828
2828
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2829
2829
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2999,10 +2999,10 @@ function validate$k(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
2999
2999
|
})();
|
|
3000
3000
|
return v_error === undefined ? null : v_error;
|
|
3001
3001
|
}
|
|
3002
|
-
const select$
|
|
3002
|
+
const select$u = function ProductDetailsOutputRepresentationSelect() {
|
|
3003
3003
|
return {
|
|
3004
3004
|
kind: 'Fragment',
|
|
3005
|
-
version: VERSION$
|
|
3005
|
+
version: VERSION$h,
|
|
3006
3006
|
private: [],
|
|
3007
3007
|
selections: [
|
|
3008
3008
|
{
|
|
@@ -3038,7 +3038,7 @@ const select$o = function ProductDetailsOutputRepresentationSelect() {
|
|
|
3038
3038
|
]
|
|
3039
3039
|
};
|
|
3040
3040
|
};
|
|
3041
|
-
function equals$
|
|
3041
|
+
function equals$h(existing, incoming) {
|
|
3042
3042
|
const existing_description = existing.description;
|
|
3043
3043
|
const incoming_description = incoming.description;
|
|
3044
3044
|
// if at least one of these optionals is defined
|
|
@@ -3120,8 +3120,8 @@ function equals$d(existing, incoming) {
|
|
|
3120
3120
|
return true;
|
|
3121
3121
|
}
|
|
3122
3122
|
|
|
3123
|
-
const VERSION$
|
|
3124
|
-
function validate$
|
|
3123
|
+
const VERSION$g = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3124
|
+
function validate$l(obj, path = 'ProductRequestOutputRepresentation') {
|
|
3125
3125
|
const v_error = (() => {
|
|
3126
3126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3127
3127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3135,7 +3135,7 @@ function validate$j(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3135
3135
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
3136
3136
|
const obj_productDetails_item = obj_productDetails[i];
|
|
3137
3137
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
3138
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
3138
|
+
const referencepath_productDetails_itemValidationError = validate$m(obj_productDetails_item, path_productDetails_item);
|
|
3139
3139
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
3140
3140
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
3141
3141
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3314,11 +3314,11 @@ function validate$j(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3314
3314
|
})();
|
|
3315
3315
|
return v_error === undefined ? null : v_error;
|
|
3316
3316
|
}
|
|
3317
|
-
const select$
|
|
3318
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
3317
|
+
const select$t = function ProductRequestOutputRepresentationSelect() {
|
|
3318
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$u();
|
|
3319
3319
|
return {
|
|
3320
3320
|
kind: 'Fragment',
|
|
3321
|
-
version: VERSION$
|
|
3321
|
+
version: VERSION$g,
|
|
3322
3322
|
private: [],
|
|
3323
3323
|
selections: [
|
|
3324
3324
|
{
|
|
@@ -3361,7 +3361,7 @@ const select$n = function ProductRequestOutputRepresentationSelect() {
|
|
|
3361
3361
|
]
|
|
3362
3362
|
};
|
|
3363
3363
|
};
|
|
3364
|
-
function equals$
|
|
3364
|
+
function equals$g(existing, incoming) {
|
|
3365
3365
|
const existing_productDetails = existing.productDetails;
|
|
3366
3366
|
const incoming_productDetails = incoming.productDetails;
|
|
3367
3367
|
// if at least one of these optionals is defined
|
|
@@ -3372,7 +3372,7 @@ function equals$c(existing, incoming) {
|
|
|
3372
3372
|
return false;
|
|
3373
3373
|
}
|
|
3374
3374
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
3375
|
-
if (!(equals$
|
|
3375
|
+
if (!(equals$h(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3376
3376
|
return false;
|
|
3377
3377
|
}
|
|
3378
3378
|
});
|
|
@@ -3461,8 +3461,8 @@ function equals$c(existing, incoming) {
|
|
|
3461
3461
|
return true;
|
|
3462
3462
|
}
|
|
3463
3463
|
|
|
3464
|
-
const VERSION$
|
|
3465
|
-
function validate$
|
|
3464
|
+
const VERSION$f = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3465
|
+
function validate$k(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
3466
3466
|
const v_error = (() => {
|
|
3467
3467
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3468
3468
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3512,10 +3512,10 @@ function validate$i(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
3512
3512
|
})();
|
|
3513
3513
|
return v_error === undefined ? null : v_error;
|
|
3514
3514
|
}
|
|
3515
|
-
const select$
|
|
3515
|
+
const select$s = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3516
3516
|
return {
|
|
3517
3517
|
kind: 'Fragment',
|
|
3518
|
-
version: VERSION$
|
|
3518
|
+
version: VERSION$f,
|
|
3519
3519
|
private: [],
|
|
3520
3520
|
selections: [
|
|
3521
3521
|
{
|
|
@@ -3551,7 +3551,7 @@ const select$m = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
3551
3551
|
]
|
|
3552
3552
|
};
|
|
3553
3553
|
};
|
|
3554
|
-
function equals$
|
|
3554
|
+
function equals$f(existing, incoming) {
|
|
3555
3555
|
const existing_isDefault = existing.isDefault;
|
|
3556
3556
|
const incoming_isDefault = incoming.isDefault;
|
|
3557
3557
|
// if at least one of these optionals is defined
|
|
@@ -3633,8 +3633,8 @@ function equals$b(existing, incoming) {
|
|
|
3633
3633
|
return true;
|
|
3634
3634
|
}
|
|
3635
3635
|
|
|
3636
|
-
const VERSION$
|
|
3637
|
-
function validate$
|
|
3636
|
+
const VERSION$e = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3637
|
+
function validate$j(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3638
3638
|
const v_error = (() => {
|
|
3639
3639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3640
3640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4028,7 +4028,7 @@ function validate$h(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4028
4028
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
4029
4029
|
let obj_picklistOptions_item_union0 = null;
|
|
4030
4030
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
4031
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
4031
|
+
const referencepath_picklistOptions_itemValidationError = validate$k(obj_picklistOptions_item, path_picklistOptions_item);
|
|
4032
4032
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
4033
4033
|
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
4034
4034
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4086,11 +4086,11 @@ function validate$h(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
4086
4086
|
})();
|
|
4087
4087
|
return v_error === undefined ? null : v_error;
|
|
4088
4088
|
}
|
|
4089
|
-
const select$
|
|
4090
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
4089
|
+
const select$r = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4090
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$s();
|
|
4091
4091
|
return {
|
|
4092
4092
|
kind: 'Fragment',
|
|
4093
|
-
version: VERSION$
|
|
4093
|
+
version: VERSION$e,
|
|
4094
4094
|
private: [],
|
|
4095
4095
|
selections: [
|
|
4096
4096
|
{
|
|
@@ -4184,7 +4184,7 @@ const select$l = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
4184
4184
|
]
|
|
4185
4185
|
};
|
|
4186
4186
|
};
|
|
4187
|
-
function equals$
|
|
4187
|
+
function equals$e(existing, incoming) {
|
|
4188
4188
|
const existing_isEditable = existing.isEditable;
|
|
4189
4189
|
const incoming_isEditable = incoming.isEditable;
|
|
4190
4190
|
// if at least one of these optionals is defined
|
|
@@ -4393,7 +4393,7 @@ function equals$a(existing, incoming) {
|
|
|
4393
4393
|
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
4394
4394
|
|| (existing_picklistOptions_item != null &&
|
|
4395
4395
|
incoming_picklistOptions_item != null &&
|
|
4396
|
-
equals$
|
|
4396
|
+
equals$f(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4397
4397
|
return false;
|
|
4398
4398
|
}
|
|
4399
4399
|
});
|
|
@@ -4417,8 +4417,8 @@ function equals$a(existing, incoming) {
|
|
|
4417
4417
|
return true;
|
|
4418
4418
|
}
|
|
4419
4419
|
|
|
4420
|
-
const VERSION$
|
|
4421
|
-
function validate$
|
|
4420
|
+
const VERSION$d = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4421
|
+
function validate$i(obj, path = 'SectionOutputRepresentation') {
|
|
4422
4422
|
const v_error = (() => {
|
|
4423
4423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4424
4424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4434,7 +4434,7 @@ function validate$g(obj, path = 'SectionOutputRepresentation') {
|
|
|
4434
4434
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4435
4435
|
let obj_attributes_item_union0 = null;
|
|
4436
4436
|
const obj_attributes_item_union0_error = (() => {
|
|
4437
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
4437
|
+
const referencepath_attributes_itemValidationError = validate$j(obj_attributes_item, path_attributes_item);
|
|
4438
4438
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4439
4439
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4440
4440
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4555,11 +4555,11 @@ function validate$g(obj, path = 'SectionOutputRepresentation') {
|
|
|
4555
4555
|
})();
|
|
4556
4556
|
return v_error === undefined ? null : v_error;
|
|
4557
4557
|
}
|
|
4558
|
-
const select$
|
|
4559
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
4558
|
+
const select$q = function SectionOutputRepresentationSelect() {
|
|
4559
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$r();
|
|
4560
4560
|
return {
|
|
4561
4561
|
kind: 'Fragment',
|
|
4562
|
-
version: VERSION$
|
|
4562
|
+
version: VERSION$d,
|
|
4563
4563
|
private: [],
|
|
4564
4564
|
selections: [
|
|
4565
4565
|
{
|
|
@@ -4593,7 +4593,7 @@ const select$k = function SectionOutputRepresentationSelect() {
|
|
|
4593
4593
|
]
|
|
4594
4594
|
};
|
|
4595
4595
|
};
|
|
4596
|
-
function equals$
|
|
4596
|
+
function equals$d(existing, incoming) {
|
|
4597
4597
|
const existing_sequence = existing.sequence;
|
|
4598
4598
|
const incoming_sequence = incoming.sequence;
|
|
4599
4599
|
// if at least one of these optionals is defined
|
|
@@ -4620,7 +4620,7 @@ function equals$9(existing, incoming) {
|
|
|
4620
4620
|
if (!(existing_attributes_item === incoming_attributes_item
|
|
4621
4621
|
|| (existing_attributes_item != null &&
|
|
4622
4622
|
incoming_attributes_item != null &&
|
|
4623
|
-
equals$
|
|
4623
|
+
equals$e(existing_attributes_item, incoming_attributes_item)))) {
|
|
4624
4624
|
return false;
|
|
4625
4625
|
}
|
|
4626
4626
|
});
|
|
@@ -4670,9 +4670,9 @@ function equals$9(existing, incoming) {
|
|
|
4670
4670
|
return true;
|
|
4671
4671
|
}
|
|
4672
4672
|
|
|
4673
|
-
const TTL$
|
|
4674
|
-
const VERSION$
|
|
4675
|
-
function validate$
|
|
4673
|
+
const TTL$9 = 6000;
|
|
4674
|
+
const VERSION$c = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4675
|
+
function validate$h(obj, path = 'CatalogItemOutputRepresentation') {
|
|
4676
4676
|
const v_error = (() => {
|
|
4677
4677
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4678
4678
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4682,7 +4682,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4682
4682
|
const path_agentAction = path + '.agentAction';
|
|
4683
4683
|
let obj_agentAction_union0 = null;
|
|
4684
4684
|
const obj_agentAction_union0_error = (() => {
|
|
4685
|
-
const referencepath_agentActionValidationError = validate$
|
|
4685
|
+
const referencepath_agentActionValidationError = validate$t(obj_agentAction, path_agentAction);
|
|
4686
4686
|
if (referencepath_agentActionValidationError !== null) {
|
|
4687
4687
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
4688
4688
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4719,7 +4719,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4719
4719
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
4720
4720
|
let obj_associatedArticles_item_union0 = null;
|
|
4721
4721
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
4722
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
4722
|
+
const referencepath_associatedArticles_itemValidationError = validate$s(obj_associatedArticles_item, path_associatedArticles_item);
|
|
4723
4723
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
4724
4724
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
4725
4725
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4867,7 +4867,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4867
4867
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
4868
4868
|
let obj_eligibilityRules_item_union0 = null;
|
|
4869
4869
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
4870
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4870
|
+
const referencepath_eligibilityRules_itemValidationError = validate$r(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
4871
4871
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
4872
4872
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
4873
4873
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4899,7 +4899,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4899
4899
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
4900
4900
|
let obj_fulfillmentFlow_union0 = null;
|
|
4901
4901
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
4902
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4902
|
+
const referencepath_fulfillmentFlowValidationError = validate$q(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
4903
4903
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
4904
4904
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
4905
4905
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4930,7 +4930,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4930
4930
|
const path_intakeForm = path + '.intakeForm';
|
|
4931
4931
|
let obj_intakeForm_union0 = null;
|
|
4932
4932
|
const obj_intakeForm_union0_error = (() => {
|
|
4933
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4933
|
+
const referencepath_intakeFormValidationError = validate$p(obj_intakeForm, path_intakeForm);
|
|
4934
4934
|
if (referencepath_intakeFormValidationError !== null) {
|
|
4935
4935
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
4936
4936
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4967,7 +4967,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4967
4967
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
4968
4968
|
let obj_integrations_item_union0 = null;
|
|
4969
4969
|
const obj_integrations_item_union0_error = (() => {
|
|
4970
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4970
|
+
const referencepath_integrations_itemValidationError = validate$o(obj_integrations_item, path_integrations_item);
|
|
4971
4971
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
4972
4972
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
4973
4973
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5061,7 +5061,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5061
5061
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
5062
5062
|
let obj_preProcessors_item_union0 = null;
|
|
5063
5063
|
const obj_preProcessors_item_union0_error = (() => {
|
|
5064
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
5064
|
+
const referencepath_preProcessors_itemValidationError = validate$n(obj_preProcessors_item, path_preProcessors_item);
|
|
5065
5065
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
5066
5066
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
5067
5067
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5127,7 +5127,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5127
5127
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
5128
5128
|
let obj_productRequests_item_union0 = null;
|
|
5129
5129
|
const obj_productRequests_item_union0_error = (() => {
|
|
5130
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
5130
|
+
const referencepath_productRequests_itemValidationError = validate$l(obj_productRequests_item, path_productRequests_item);
|
|
5131
5131
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
5132
5132
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
5133
5133
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5159,7 +5159,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5159
5159
|
const path_section = path + '.section';
|
|
5160
5160
|
let obj_section_union0 = null;
|
|
5161
5161
|
const obj_section_union0_error = (() => {
|
|
5162
|
-
const referencepath_sectionValidationError = validate$
|
|
5162
|
+
const referencepath_sectionValidationError = validate$i(obj_section, path_section);
|
|
5163
5163
|
if (referencepath_sectionValidationError !== null) {
|
|
5164
5164
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
|
|
5165
5165
|
message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5196,7 +5196,7 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5196
5196
|
const path_sections_item = path_sections + '[' + i + ']';
|
|
5197
5197
|
let obj_sections_item_union0 = null;
|
|
5198
5198
|
const obj_sections_item_union0_error = (() => {
|
|
5199
|
-
const referencepath_sections_itemValidationError = validate$
|
|
5199
|
+
const referencepath_sections_itemValidationError = validate$i(obj_sections_item, path_sections_item);
|
|
5200
5200
|
if (referencepath_sections_itemValidationError !== null) {
|
|
5201
5201
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
5202
5202
|
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5282,32 +5282,32 @@ function validate$f(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
5282
5282
|
})();
|
|
5283
5283
|
return v_error === undefined ? null : v_error;
|
|
5284
5284
|
}
|
|
5285
|
-
const RepresentationType$
|
|
5286
|
-
function keyBuilder$
|
|
5287
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5285
|
+
const RepresentationType$a = 'CatalogItemOutputRepresentation';
|
|
5286
|
+
function keyBuilder$g(luvio, config) {
|
|
5287
|
+
return keyPrefix + '::' + RepresentationType$a + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
5288
5288
|
}
|
|
5289
|
-
function keyBuilderFromType$
|
|
5289
|
+
function keyBuilderFromType$6(luvio, object) {
|
|
5290
5290
|
const keyParams = {
|
|
5291
5291
|
catalogItemId: object.catalogItemId
|
|
5292
5292
|
};
|
|
5293
|
-
return keyBuilder$
|
|
5293
|
+
return keyBuilder$g(luvio, keyParams);
|
|
5294
5294
|
}
|
|
5295
|
-
function normalize$
|
|
5295
|
+
function normalize$a(input, existing, path, luvio, store, timestamp) {
|
|
5296
5296
|
return input;
|
|
5297
5297
|
}
|
|
5298
|
-
const select$
|
|
5299
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
5300
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
5301
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
5302
|
-
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$
|
|
5303
|
-
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$
|
|
5304
|
-
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$
|
|
5305
|
-
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$
|
|
5306
|
-
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$
|
|
5307
|
-
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$
|
|
5298
|
+
const select$p = function CatalogItemOutputRepresentationSelect() {
|
|
5299
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$B();
|
|
5300
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$A();
|
|
5301
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$z();
|
|
5302
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$y();
|
|
5303
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$x();
|
|
5304
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$w();
|
|
5305
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$v();
|
|
5306
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$t();
|
|
5307
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$q();
|
|
5308
5308
|
return {
|
|
5309
5309
|
kind: 'Fragment',
|
|
5310
|
-
version: VERSION$
|
|
5310
|
+
version: VERSION$c,
|
|
5311
5311
|
private: [],
|
|
5312
5312
|
selections: [
|
|
5313
5313
|
{
|
|
@@ -5433,7 +5433,7 @@ const select$j = function CatalogItemOutputRepresentationSelect() {
|
|
|
5433
5433
|
]
|
|
5434
5434
|
};
|
|
5435
5435
|
};
|
|
5436
|
-
function equals$
|
|
5436
|
+
function equals$c(existing, incoming) {
|
|
5437
5437
|
const existing_agentAction = existing.agentAction;
|
|
5438
5438
|
const incoming_agentAction = incoming.agentAction;
|
|
5439
5439
|
// if at least one of these optionals is defined
|
|
@@ -5446,7 +5446,7 @@ function equals$8(existing, incoming) {
|
|
|
5446
5446
|
if (!(existing_agentAction === incoming_agentAction
|
|
5447
5447
|
|| (existing_agentAction != null &&
|
|
5448
5448
|
incoming_agentAction != null &&
|
|
5449
|
-
equals$
|
|
5449
|
+
equals$o(existing_agentAction, incoming_agentAction)))) {
|
|
5450
5450
|
return false;
|
|
5451
5451
|
}
|
|
5452
5452
|
}
|
|
@@ -5463,7 +5463,7 @@ function equals$8(existing, incoming) {
|
|
|
5463
5463
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
5464
5464
|
|| (existing_associatedArticles_item != null &&
|
|
5465
5465
|
incoming_associatedArticles_item != null &&
|
|
5466
|
-
equals$
|
|
5466
|
+
equals$n(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5467
5467
|
return false;
|
|
5468
5468
|
}
|
|
5469
5469
|
});
|
|
@@ -5528,7 +5528,7 @@ function equals$8(existing, incoming) {
|
|
|
5528
5528
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
5529
5529
|
|| (existing_eligibilityRules_item != null &&
|
|
5530
5530
|
incoming_eligibilityRules_item != null &&
|
|
5531
|
-
equals$
|
|
5531
|
+
equals$m(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5532
5532
|
return false;
|
|
5533
5533
|
}
|
|
5534
5534
|
});
|
|
@@ -5548,7 +5548,7 @@ function equals$8(existing, incoming) {
|
|
|
5548
5548
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5549
5549
|
|| (existing_fulfillmentFlow != null &&
|
|
5550
5550
|
incoming_fulfillmentFlow != null &&
|
|
5551
|
-
equals$
|
|
5551
|
+
equals$l(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5552
5552
|
return false;
|
|
5553
5553
|
}
|
|
5554
5554
|
}
|
|
@@ -5564,7 +5564,7 @@ function equals$8(existing, incoming) {
|
|
|
5564
5564
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5565
5565
|
|| (existing_intakeForm != null &&
|
|
5566
5566
|
incoming_intakeForm != null &&
|
|
5567
|
-
equals$
|
|
5567
|
+
equals$k(existing_intakeForm, incoming_intakeForm)))) {
|
|
5568
5568
|
return false;
|
|
5569
5569
|
}
|
|
5570
5570
|
}
|
|
@@ -5581,7 +5581,7 @@ function equals$8(existing, incoming) {
|
|
|
5581
5581
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
5582
5582
|
|| (existing_integrations_item != null &&
|
|
5583
5583
|
incoming_integrations_item != null &&
|
|
5584
|
-
equals$
|
|
5584
|
+
equals$j(existing_integrations_item, incoming_integrations_item)))) {
|
|
5585
5585
|
return false;
|
|
5586
5586
|
}
|
|
5587
5587
|
});
|
|
@@ -5628,7 +5628,7 @@ function equals$8(existing, incoming) {
|
|
|
5628
5628
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
5629
5629
|
|| (existing_preProcessors_item != null &&
|
|
5630
5630
|
incoming_preProcessors_item != null &&
|
|
5631
|
-
equals$
|
|
5631
|
+
equals$i(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5632
5632
|
return false;
|
|
5633
5633
|
}
|
|
5634
5634
|
});
|
|
@@ -5662,7 +5662,7 @@ function equals$8(existing, incoming) {
|
|
|
5662
5662
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
5663
5663
|
|| (existing_productRequests_item != null &&
|
|
5664
5664
|
incoming_productRequests_item != null &&
|
|
5665
|
-
equals$
|
|
5665
|
+
equals$g(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5666
5666
|
return false;
|
|
5667
5667
|
}
|
|
5668
5668
|
});
|
|
@@ -5682,7 +5682,7 @@ function equals$8(existing, incoming) {
|
|
|
5682
5682
|
if (!(existing_section === incoming_section
|
|
5683
5683
|
|| (existing_section != null &&
|
|
5684
5684
|
incoming_section != null &&
|
|
5685
|
-
equals$
|
|
5685
|
+
equals$d(existing_section, incoming_section)))) {
|
|
5686
5686
|
return false;
|
|
5687
5687
|
}
|
|
5688
5688
|
}
|
|
@@ -5699,7 +5699,7 @@ function equals$8(existing, incoming) {
|
|
|
5699
5699
|
if (!(existing_sections_item === incoming_sections_item
|
|
5700
5700
|
|| (existing_sections_item != null &&
|
|
5701
5701
|
incoming_sections_item != null &&
|
|
5702
|
-
equals$
|
|
5702
|
+
equals$d(existing_sections_item, incoming_sections_item)))) {
|
|
5703
5703
|
return false;
|
|
5704
5704
|
}
|
|
5705
5705
|
});
|
|
@@ -5735,41 +5735,41 @@ function equals$8(existing, incoming) {
|
|
|
5735
5735
|
}
|
|
5736
5736
|
return true;
|
|
5737
5737
|
}
|
|
5738
|
-
const ingest$
|
|
5738
|
+
const ingest$a = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5739
5739
|
if (process.env.NODE_ENV !== 'production') {
|
|
5740
|
-
const validateError = validate$
|
|
5740
|
+
const validateError = validate$h(input);
|
|
5741
5741
|
if (validateError !== null) {
|
|
5742
5742
|
throw validateError;
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
|
-
const key = keyBuilderFromType$
|
|
5746
|
-
const ttlToUse = TTL$
|
|
5747
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5745
|
+
const key = keyBuilderFromType$6(luvio, input);
|
|
5746
|
+
const ttlToUse = TTL$9;
|
|
5747
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$a, "ecm", VERSION$c, RepresentationType$a, equals$c);
|
|
5748
5748
|
return createLink(key);
|
|
5749
5749
|
};
|
|
5750
|
-
function getTypeCacheKeys$
|
|
5750
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
5751
5751
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5752
|
-
const rootKey = keyBuilderFromType$
|
|
5752
|
+
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
5753
5753
|
rootKeySet.set(rootKey, {
|
|
5754
5754
|
namespace: keyPrefix,
|
|
5755
|
-
representationName: RepresentationType$
|
|
5755
|
+
representationName: RepresentationType$a,
|
|
5756
5756
|
mergeable: false
|
|
5757
5757
|
});
|
|
5758
5758
|
}
|
|
5759
5759
|
|
|
5760
|
-
function select$
|
|
5761
|
-
return select$
|
|
5760
|
+
function select$o(luvio, params) {
|
|
5761
|
+
return select$p();
|
|
5762
5762
|
}
|
|
5763
|
-
function getResponseCacheKeys$
|
|
5764
|
-
getTypeCacheKeys$
|
|
5763
|
+
function getResponseCacheKeys$c(storeKeyMap, luvio, resourceParams, response) {
|
|
5764
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
5765
5765
|
}
|
|
5766
|
-
function ingestSuccess$
|
|
5766
|
+
function ingestSuccess$c(luvio, resourceParams, response) {
|
|
5767
5767
|
const { body } = response;
|
|
5768
|
-
const key = keyBuilderFromType$
|
|
5769
|
-
luvio.storeIngest(key, ingest$
|
|
5768
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
5769
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
5770
5770
|
const snapshot = luvio.storeLookup({
|
|
5771
5771
|
recordId: key,
|
|
5772
|
-
node: select$
|
|
5772
|
+
node: select$o(),
|
|
5773
5773
|
variables: {},
|
|
5774
5774
|
});
|
|
5775
5775
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5780,7 +5780,7 @@ function ingestSuccess$a(luvio, resourceParams, response) {
|
|
|
5780
5780
|
deepFreeze(snapshot.data);
|
|
5781
5781
|
return snapshot;
|
|
5782
5782
|
}
|
|
5783
|
-
function createResourceRequest$
|
|
5783
|
+
function createResourceRequest$c(config) {
|
|
5784
5784
|
const headers = {};
|
|
5785
5785
|
return {
|
|
5786
5786
|
baseUri: '/services/data/v65.0',
|
|
@@ -5794,7 +5794,7 @@ function createResourceRequest$a(config) {
|
|
|
5794
5794
|
};
|
|
5795
5795
|
}
|
|
5796
5796
|
|
|
5797
|
-
const adapterName$
|
|
5797
|
+
const adapterName$c = 'createCatalogItem';
|
|
5798
5798
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
5799
5799
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5800
5800
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -5814,12 +5814,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
5814
5814
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5815
5815
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5816
5816
|
];
|
|
5817
|
-
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5818
|
-
const createResourceParams$
|
|
5819
|
-
function typeCheckConfig$
|
|
5817
|
+
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$c, createCatalogItem_ConfigPropertyMetadata);
|
|
5818
|
+
const createResourceParams$c = /*#__PURE__*/ createResourceParams$d(createCatalogItem_ConfigPropertyMetadata);
|
|
5819
|
+
function typeCheckConfig$c(untrustedConfig) {
|
|
5820
5820
|
const config = {};
|
|
5821
5821
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5822
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5822
|
+
const referenceAgentActionInputRepresentationValidationError = validate$E(untrustedConfig_agentAction);
|
|
5823
5823
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5824
5824
|
config.agentAction = untrustedConfig_agentAction;
|
|
5825
5825
|
}
|
|
@@ -5831,7 +5831,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5831
5831
|
const untrustedConfig_associatedArticles_array = [];
|
|
5832
5832
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5833
5833
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5834
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5834
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$D(untrustedConfig_associatedArticles_item);
|
|
5835
5835
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5836
5836
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5837
5837
|
}
|
|
@@ -5846,7 +5846,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5846
5846
|
const untrustedConfig_attributes_array = [];
|
|
5847
5847
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5848
5848
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5849
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5849
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$B(untrustedConfig_attributes_item);
|
|
5850
5850
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5851
5851
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5852
5852
|
}
|
|
@@ -5861,7 +5861,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5861
5861
|
const untrustedConfig_sections_array = [];
|
|
5862
5862
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5863
5863
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5864
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
5864
|
+
const referenceSectionInputRepresentationValidationError = validate$A(untrustedConfig_sections_item);
|
|
5865
5865
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5866
5866
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5867
5867
|
}
|
|
@@ -5897,7 +5897,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5897
5897
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5898
5898
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5899
5899
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5900
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5900
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$z(untrustedConfig_eligibilityRules_item);
|
|
5901
5901
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5902
5902
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5903
5903
|
}
|
|
@@ -5908,7 +5908,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5908
5908
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5909
5909
|
}
|
|
5910
5910
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5911
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5911
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$y(untrustedConfig_fulfillmentFlow);
|
|
5912
5912
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5913
5913
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5914
5914
|
}
|
|
@@ -5916,7 +5916,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5916
5916
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5917
5917
|
}
|
|
5918
5918
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5919
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5919
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$x(untrustedConfig_intakeForm);
|
|
5920
5920
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5921
5921
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5922
5922
|
}
|
|
@@ -5928,7 +5928,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5928
5928
|
const untrustedConfig_integrations_array = [];
|
|
5929
5929
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
5930
5930
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
5931
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5931
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$w(untrustedConfig_integrations_item);
|
|
5932
5932
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
5933
5933
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
5934
5934
|
}
|
|
@@ -5957,7 +5957,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5957
5957
|
const untrustedConfig_preProcessors_array = [];
|
|
5958
5958
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
5959
5959
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
5960
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5960
|
+
const referencePreprocessorInputRepresentationValidationError = validate$v(untrustedConfig_preProcessors_item);
|
|
5961
5961
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
5962
5962
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
5963
5963
|
}
|
|
@@ -5972,7 +5972,7 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5972
5972
|
const untrustedConfig_productRequests_array = [];
|
|
5973
5973
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5974
5974
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5975
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5975
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$u(untrustedConfig_productRequests_item);
|
|
5976
5976
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5977
5977
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5978
5978
|
}
|
|
@@ -5998,30 +5998,30 @@ function typeCheckConfig$a(untrustedConfig) {
|
|
|
5998
5998
|
}
|
|
5999
5999
|
return config;
|
|
6000
6000
|
}
|
|
6001
|
-
function validateAdapterConfig$
|
|
6001
|
+
function validateAdapterConfig$c(untrustedConfig, configPropertyNames) {
|
|
6002
6002
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6003
6003
|
return null;
|
|
6004
6004
|
}
|
|
6005
6005
|
if (process.env.NODE_ENV !== 'production') {
|
|
6006
6006
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6007
6007
|
}
|
|
6008
|
-
const config = typeCheckConfig$
|
|
6008
|
+
const config = typeCheckConfig$c(untrustedConfig);
|
|
6009
6009
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6010
6010
|
return null;
|
|
6011
6011
|
}
|
|
6012
6012
|
return config;
|
|
6013
6013
|
}
|
|
6014
|
-
function buildNetworkSnapshot$
|
|
6015
|
-
const resourceParams = createResourceParams$
|
|
6016
|
-
const request = createResourceRequest$
|
|
6014
|
+
function buildNetworkSnapshot$c(luvio, config, options) {
|
|
6015
|
+
const resourceParams = createResourceParams$c(config);
|
|
6016
|
+
const request = createResourceRequest$c(resourceParams);
|
|
6017
6017
|
return luvio.dispatchResourceRequest(request, options)
|
|
6018
6018
|
.then((response) => {
|
|
6019
6019
|
return luvio.handleSuccessResponse(() => {
|
|
6020
|
-
const snapshot = ingestSuccess$
|
|
6020
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response);
|
|
6021
6021
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6022
6022
|
}, () => {
|
|
6023
6023
|
const cache = new StoreKeyMap();
|
|
6024
|
-
getResponseCacheKeys$
|
|
6024
|
+
getResponseCacheKeys$c(cache, luvio, resourceParams, response.body);
|
|
6025
6025
|
return cache;
|
|
6026
6026
|
});
|
|
6027
6027
|
}, (response) => {
|
|
@@ -6031,33 +6031,33 @@ function buildNetworkSnapshot$a(luvio, config, options) {
|
|
|
6031
6031
|
}
|
|
6032
6032
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
6033
6033
|
return function createCatalogItem(untrustedConfig) {
|
|
6034
|
-
const config = validateAdapterConfig$
|
|
6034
|
+
const config = validateAdapterConfig$c(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
6035
6035
|
// Invalid or incomplete config
|
|
6036
6036
|
if (config === null) {
|
|
6037
6037
|
throw new Error('Invalid config for "createCatalogItem"');
|
|
6038
6038
|
}
|
|
6039
|
-
return buildNetworkSnapshot$
|
|
6039
|
+
return buildNetworkSnapshot$c(luvio, config);
|
|
6040
6040
|
};
|
|
6041
6041
|
};
|
|
6042
6042
|
|
|
6043
|
-
function select$
|
|
6044
|
-
return select$
|
|
6043
|
+
function select$n(luvio, params) {
|
|
6044
|
+
return select$p();
|
|
6045
6045
|
}
|
|
6046
|
-
function keyBuilder$
|
|
6047
|
-
return keyBuilder$
|
|
6046
|
+
function keyBuilder$f(luvio, params) {
|
|
6047
|
+
return keyBuilder$g(luvio, {
|
|
6048
6048
|
catalogItemId: params.urlParams.catalogItemId
|
|
6049
6049
|
});
|
|
6050
6050
|
}
|
|
6051
|
-
function getResponseCacheKeys$
|
|
6052
|
-
getTypeCacheKeys$
|
|
6051
|
+
function getResponseCacheKeys$b(storeKeyMap, luvio, resourceParams, response) {
|
|
6052
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6053
6053
|
}
|
|
6054
|
-
function ingestSuccess$
|
|
6054
|
+
function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
6055
6055
|
const { body } = response;
|
|
6056
|
-
const key = keyBuilder$
|
|
6057
|
-
luvio.storeIngest(key, ingest$
|
|
6056
|
+
const key = keyBuilder$f(luvio, resourceParams);
|
|
6057
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
6058
6058
|
const snapshot = luvio.storeLookup({
|
|
6059
6059
|
recordId: key,
|
|
6060
|
-
node: select$
|
|
6060
|
+
node: select$n(),
|
|
6061
6061
|
variables: {},
|
|
6062
6062
|
}, snapshotRefresh);
|
|
6063
6063
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6069,18 +6069,18 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6069
6069
|
return snapshot;
|
|
6070
6070
|
}
|
|
6071
6071
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
6072
|
-
const key = keyBuilder$
|
|
6072
|
+
const key = keyBuilder$f(luvio, params);
|
|
6073
6073
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6074
6074
|
const storeMetadataParams = {
|
|
6075
|
-
ttl: TTL$
|
|
6075
|
+
ttl: TTL$9,
|
|
6076
6076
|
namespace: keyPrefix,
|
|
6077
|
-
version: VERSION$
|
|
6078
|
-
representationName: RepresentationType$
|
|
6077
|
+
version: VERSION$c,
|
|
6078
|
+
representationName: RepresentationType$a
|
|
6079
6079
|
};
|
|
6080
6080
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6081
6081
|
return errorSnapshot;
|
|
6082
6082
|
}
|
|
6083
|
-
function createResourceRequest$
|
|
6083
|
+
function createResourceRequest$b(config) {
|
|
6084
6084
|
const headers = {};
|
|
6085
6085
|
return {
|
|
6086
6086
|
baseUri: '/services/data/v65.0',
|
|
@@ -6094,61 +6094,61 @@ function createResourceRequest$9(config) {
|
|
|
6094
6094
|
};
|
|
6095
6095
|
}
|
|
6096
6096
|
|
|
6097
|
-
const adapterName$
|
|
6097
|
+
const adapterName$b = 'getCatalogItem';
|
|
6098
6098
|
const getCatalogItem_ConfigPropertyMetadata = [
|
|
6099
6099
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6100
6100
|
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6101
6101
|
];
|
|
6102
|
-
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6103
|
-
const createResourceParams$
|
|
6104
|
-
function keyBuilder$
|
|
6105
|
-
const resourceParams = createResourceParams$
|
|
6106
|
-
return keyBuilder$
|
|
6102
|
+
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$b, getCatalogItem_ConfigPropertyMetadata);
|
|
6103
|
+
const createResourceParams$b = /*#__PURE__*/ createResourceParams$d(getCatalogItem_ConfigPropertyMetadata);
|
|
6104
|
+
function keyBuilder$e(luvio, config) {
|
|
6105
|
+
const resourceParams = createResourceParams$b(config);
|
|
6106
|
+
return keyBuilder$f(luvio, resourceParams);
|
|
6107
6107
|
}
|
|
6108
|
-
function typeCheckConfig$
|
|
6108
|
+
function typeCheckConfig$b(untrustedConfig) {
|
|
6109
6109
|
const config = {};
|
|
6110
|
-
typeCheckConfig$
|
|
6110
|
+
typeCheckConfig$d(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
6111
6111
|
return config;
|
|
6112
6112
|
}
|
|
6113
|
-
function validateAdapterConfig$
|
|
6113
|
+
function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
6114
6114
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6115
6115
|
return null;
|
|
6116
6116
|
}
|
|
6117
6117
|
if (process.env.NODE_ENV !== 'production') {
|
|
6118
6118
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6119
6119
|
}
|
|
6120
|
-
const config = typeCheckConfig$
|
|
6120
|
+
const config = typeCheckConfig$b(untrustedConfig);
|
|
6121
6121
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6122
6122
|
return null;
|
|
6123
6123
|
}
|
|
6124
6124
|
return config;
|
|
6125
6125
|
}
|
|
6126
6126
|
function adapterFragment$4(luvio, config) {
|
|
6127
|
-
createResourceParams$
|
|
6128
|
-
return select$
|
|
6127
|
+
createResourceParams$b(config);
|
|
6128
|
+
return select$n();
|
|
6129
6129
|
}
|
|
6130
6130
|
function onFetchResponseSuccess$4(luvio, config, resourceParams, response) {
|
|
6131
|
-
const snapshot = ingestSuccess$
|
|
6131
|
+
const snapshot = ingestSuccess$b(luvio, resourceParams, response, {
|
|
6132
6132
|
config,
|
|
6133
|
-
resolve: () => buildNetworkSnapshot$
|
|
6133
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6134
6134
|
});
|
|
6135
6135
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6136
6136
|
}
|
|
6137
6137
|
function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
6138
6138
|
const snapshot = ingestError$4(luvio, resourceParams, response, {
|
|
6139
6139
|
config,
|
|
6140
|
-
resolve: () => buildNetworkSnapshot$
|
|
6140
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6141
6141
|
});
|
|
6142
6142
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6143
6143
|
}
|
|
6144
|
-
function buildNetworkSnapshot$
|
|
6145
|
-
const resourceParams = createResourceParams$
|
|
6146
|
-
const request = createResourceRequest$
|
|
6144
|
+
function buildNetworkSnapshot$b(luvio, config, options) {
|
|
6145
|
+
const resourceParams = createResourceParams$b(config);
|
|
6146
|
+
const request = createResourceRequest$b(resourceParams);
|
|
6147
6147
|
return luvio.dispatchResourceRequest(request, options)
|
|
6148
6148
|
.then((response) => {
|
|
6149
6149
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
6150
6150
|
const cache = new StoreKeyMap();
|
|
6151
|
-
getResponseCacheKeys$
|
|
6151
|
+
getResponseCacheKeys$b(cache, luvio, resourceParams, response.body);
|
|
6152
6152
|
return cache;
|
|
6153
6153
|
});
|
|
6154
6154
|
}, (response) => {
|
|
@@ -6156,23 +6156,23 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
6156
6156
|
});
|
|
6157
6157
|
}
|
|
6158
6158
|
function buildNetworkSnapshotCachePolicy$4(context, coercedAdapterRequestContext) {
|
|
6159
|
-
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
6159
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$b, undefined, false);
|
|
6160
6160
|
}
|
|
6161
6161
|
function buildCachedSnapshotCachePolicy$4(context, storeLookup) {
|
|
6162
6162
|
const { luvio, config } = context;
|
|
6163
6163
|
const selector = {
|
|
6164
|
-
recordId: keyBuilder$
|
|
6164
|
+
recordId: keyBuilder$e(luvio, config),
|
|
6165
6165
|
node: adapterFragment$4(luvio, config),
|
|
6166
6166
|
variables: {},
|
|
6167
6167
|
};
|
|
6168
6168
|
const cacheSnapshot = storeLookup(selector, {
|
|
6169
6169
|
config,
|
|
6170
|
-
resolve: () => buildNetworkSnapshot$
|
|
6170
|
+
resolve: () => buildNetworkSnapshot$b(luvio, config, snapshotRefreshOptions)
|
|
6171
6171
|
});
|
|
6172
6172
|
return cacheSnapshot;
|
|
6173
6173
|
}
|
|
6174
6174
|
const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(untrustedConfig, requestContext) {
|
|
6175
|
-
const config = validateAdapterConfig$
|
|
6175
|
+
const config = validateAdapterConfig$b(untrustedConfig, getCatalogItem_ConfigPropertyNames);
|
|
6176
6176
|
// Invalid or incomplete config
|
|
6177
6177
|
if (config === null) {
|
|
6178
6178
|
return null;
|
|
@@ -6181,19 +6181,19 @@ const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(unt
|
|
|
6181
6181
|
buildCachedSnapshotCachePolicy$4, buildNetworkSnapshotCachePolicy$4);
|
|
6182
6182
|
};
|
|
6183
6183
|
|
|
6184
|
-
function select$
|
|
6185
|
-
return select$
|
|
6184
|
+
function select$m(luvio, params) {
|
|
6185
|
+
return select$p();
|
|
6186
6186
|
}
|
|
6187
|
-
function getResponseCacheKeys$
|
|
6188
|
-
getTypeCacheKeys$
|
|
6187
|
+
function getResponseCacheKeys$a(storeKeyMap, luvio, resourceParams, response) {
|
|
6188
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response);
|
|
6189
6189
|
}
|
|
6190
|
-
function ingestSuccess$
|
|
6190
|
+
function ingestSuccess$a(luvio, resourceParams, response) {
|
|
6191
6191
|
const { body } = response;
|
|
6192
|
-
const key = keyBuilderFromType$
|
|
6193
|
-
luvio.storeIngest(key, ingest$
|
|
6192
|
+
const key = keyBuilderFromType$6(luvio, body);
|
|
6193
|
+
luvio.storeIngest(key, ingest$a, body);
|
|
6194
6194
|
const snapshot = luvio.storeLookup({
|
|
6195
6195
|
recordId: key,
|
|
6196
|
-
node: select$
|
|
6196
|
+
node: select$m(),
|
|
6197
6197
|
variables: {},
|
|
6198
6198
|
});
|
|
6199
6199
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6204,7 +6204,7 @@ function ingestSuccess$8(luvio, resourceParams, response) {
|
|
|
6204
6204
|
deepFreeze(snapshot.data);
|
|
6205
6205
|
return snapshot;
|
|
6206
6206
|
}
|
|
6207
|
-
function createResourceRequest$
|
|
6207
|
+
function createResourceRequest$a(config) {
|
|
6208
6208
|
const headers = {};
|
|
6209
6209
|
return {
|
|
6210
6210
|
baseUri: '/services/data/v65.0',
|
|
@@ -6218,7 +6218,7 @@ function createResourceRequest$8(config) {
|
|
|
6218
6218
|
};
|
|
6219
6219
|
}
|
|
6220
6220
|
|
|
6221
|
-
const adapterName$
|
|
6221
|
+
const adapterName$a = 'updateCatalogItem';
|
|
6222
6222
|
const updateCatalogItem_ConfigPropertyMetadata = [
|
|
6223
6223
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6224
6224
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -6240,13 +6240,13 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
6240
6240
|
generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6241
6241
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6242
6242
|
];
|
|
6243
|
-
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6244
|
-
const createResourceParams$
|
|
6245
|
-
function typeCheckConfig$
|
|
6243
|
+
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$a, updateCatalogItem_ConfigPropertyMetadata);
|
|
6244
|
+
const createResourceParams$a = /*#__PURE__*/ createResourceParams$d(updateCatalogItem_ConfigPropertyMetadata);
|
|
6245
|
+
function typeCheckConfig$a(untrustedConfig) {
|
|
6246
6246
|
const config = {};
|
|
6247
|
-
typeCheckConfig$
|
|
6247
|
+
typeCheckConfig$d(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
6248
6248
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
6249
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
6249
|
+
const referenceAgentActionInputRepresentationValidationError = validate$E(untrustedConfig_agentAction);
|
|
6250
6250
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
6251
6251
|
config.agentAction = untrustedConfig_agentAction;
|
|
6252
6252
|
}
|
|
@@ -6265,7 +6265,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6265
6265
|
const untrustedConfig_associatedArticles_array = [];
|
|
6266
6266
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
6267
6267
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
6268
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
6268
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$D(untrustedConfig_associatedArticles_item);
|
|
6269
6269
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
6270
6270
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
6271
6271
|
}
|
|
@@ -6280,7 +6280,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6280
6280
|
const untrustedConfig_attributes_array = [];
|
|
6281
6281
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
6282
6282
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
6283
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
6283
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$B(untrustedConfig_attributes_item);
|
|
6284
6284
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
6285
6285
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
6286
6286
|
}
|
|
@@ -6295,7 +6295,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6295
6295
|
const untrustedConfig_sections_array = [];
|
|
6296
6296
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
6297
6297
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
6298
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
6298
|
+
const referenceSectionInputRepresentationValidationError = validate$A(untrustedConfig_sections_item);
|
|
6299
6299
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
6300
6300
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
6301
6301
|
}
|
|
@@ -6331,7 +6331,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6331
6331
|
const untrustedConfig_eligibilityRules_array = [];
|
|
6332
6332
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
6333
6333
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
6334
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
6334
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$z(untrustedConfig_eligibilityRules_item);
|
|
6335
6335
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
6336
6336
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
6337
6337
|
}
|
|
@@ -6342,7 +6342,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6342
6342
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
6343
6343
|
}
|
|
6344
6344
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
6345
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
6345
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$y(untrustedConfig_fulfillmentFlow);
|
|
6346
6346
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
6347
6347
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6348
6348
|
}
|
|
@@ -6350,7 +6350,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6350
6350
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6351
6351
|
}
|
|
6352
6352
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
6353
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
6353
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$x(untrustedConfig_intakeForm);
|
|
6354
6354
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
6355
6355
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
6356
6356
|
}
|
|
@@ -6362,7 +6362,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6362
6362
|
const untrustedConfig_integrations_array = [];
|
|
6363
6363
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
6364
6364
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
6365
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
6365
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$w(untrustedConfig_integrations_item);
|
|
6366
6366
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
6367
6367
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
6368
6368
|
}
|
|
@@ -6391,7 +6391,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6391
6391
|
const untrustedConfig_preProcessors_array = [];
|
|
6392
6392
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
6393
6393
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
6394
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
6394
|
+
const referencePreprocessorInputRepresentationValidationError = validate$v(untrustedConfig_preProcessors_item);
|
|
6395
6395
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
6396
6396
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
6397
6397
|
}
|
|
@@ -6406,7 +6406,7 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6406
6406
|
const untrustedConfig_productRequests_array = [];
|
|
6407
6407
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
6408
6408
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
6409
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
6409
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$u(untrustedConfig_productRequests_item);
|
|
6410
6410
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
6411
6411
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6412
6412
|
}
|
|
@@ -6432,30 +6432,30 @@ function typeCheckConfig$8(untrustedConfig) {
|
|
|
6432
6432
|
}
|
|
6433
6433
|
return config;
|
|
6434
6434
|
}
|
|
6435
|
-
function validateAdapterConfig$
|
|
6435
|
+
function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
6436
6436
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6437
6437
|
return null;
|
|
6438
6438
|
}
|
|
6439
6439
|
if (process.env.NODE_ENV !== 'production') {
|
|
6440
6440
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6441
6441
|
}
|
|
6442
|
-
const config = typeCheckConfig$
|
|
6442
|
+
const config = typeCheckConfig$a(untrustedConfig);
|
|
6443
6443
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6444
6444
|
return null;
|
|
6445
6445
|
}
|
|
6446
6446
|
return config;
|
|
6447
6447
|
}
|
|
6448
|
-
function buildNetworkSnapshot$
|
|
6449
|
-
const resourceParams = createResourceParams$
|
|
6450
|
-
const request = createResourceRequest$
|
|
6448
|
+
function buildNetworkSnapshot$a(luvio, config, options) {
|
|
6449
|
+
const resourceParams = createResourceParams$a(config);
|
|
6450
|
+
const request = createResourceRequest$a(resourceParams);
|
|
6451
6451
|
return luvio.dispatchResourceRequest(request, options)
|
|
6452
6452
|
.then((response) => {
|
|
6453
6453
|
return luvio.handleSuccessResponse(() => {
|
|
6454
|
-
const snapshot = ingestSuccess$
|
|
6454
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response);
|
|
6455
6455
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6456
6456
|
}, () => {
|
|
6457
6457
|
const cache = new StoreKeyMap();
|
|
6458
|
-
getResponseCacheKeys$
|
|
6458
|
+
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
6459
6459
|
return cache;
|
|
6460
6460
|
});
|
|
6461
6461
|
}, (response) => {
|
|
@@ -6465,16 +6465,16 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
const updateCatalogItemAdapterFactory = (luvio) => {
|
|
6467
6467
|
return function updateCatalogItem(untrustedConfig) {
|
|
6468
|
-
const config = validateAdapterConfig$
|
|
6468
|
+
const config = validateAdapterConfig$a(untrustedConfig, updateCatalogItem_ConfigPropertyNames);
|
|
6469
6469
|
// Invalid or incomplete config
|
|
6470
6470
|
if (config === null) {
|
|
6471
6471
|
throw new Error('Invalid config for "updateCatalogItem"');
|
|
6472
6472
|
}
|
|
6473
|
-
return buildNetworkSnapshot$
|
|
6473
|
+
return buildNetworkSnapshot$a(luvio, config);
|
|
6474
6474
|
};
|
|
6475
6475
|
};
|
|
6476
6476
|
|
|
6477
|
-
function validate$
|
|
6477
|
+
function validate$g(obj, path = 'CategoryInput') {
|
|
6478
6478
|
const v_error = (() => {
|
|
6479
6479
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6480
6480
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6493,7 +6493,7 @@ function validate$e(obj, path = 'CategoryInput') {
|
|
|
6493
6493
|
return v_error === undefined ? null : v_error;
|
|
6494
6494
|
}
|
|
6495
6495
|
|
|
6496
|
-
function validate$
|
|
6496
|
+
function validate$f(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
|
|
6497
6497
|
const v_error = (() => {
|
|
6498
6498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6499
6499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6514,9 +6514,9 @@ function validate$d(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
|
|
|
6514
6514
|
return v_error === undefined ? null : v_error;
|
|
6515
6515
|
}
|
|
6516
6516
|
|
|
6517
|
-
const TTL$
|
|
6518
|
-
const VERSION$
|
|
6519
|
-
function validate$
|
|
6517
|
+
const TTL$8 = 6000;
|
|
6518
|
+
const VERSION$b = "fe841039450a703d6b90e94658dd230f";
|
|
6519
|
+
function validate$e(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
6520
6520
|
const v_error = (() => {
|
|
6521
6521
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6522
6522
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6534,7 +6534,7 @@ function validate$c(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
|
6534
6534
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
6535
6535
|
const obj_errors_item = obj_errors[i];
|
|
6536
6536
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
6537
|
-
const referencepath_errors_itemValidationError = validate$
|
|
6537
|
+
const referencepath_errors_itemValidationError = validate$f(obj_errors_item, path_errors_item);
|
|
6538
6538
|
if (referencepath_errors_itemValidationError !== null) {
|
|
6539
6539
|
let message = 'Object doesn\'t match CategoryAndParentErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
6540
6540
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6554,68 +6554,68 @@ function validate$c(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
|
6554
6554
|
})();
|
|
6555
6555
|
return v_error === undefined ? null : v_error;
|
|
6556
6556
|
}
|
|
6557
|
-
const RepresentationType$
|
|
6558
|
-
function keyBuilder$
|
|
6559
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6557
|
+
const RepresentationType$9 = 'CategoryAndParentOutputRepresentation';
|
|
6558
|
+
function keyBuilder$d(luvio, config) {
|
|
6559
|
+
return keyPrefix + '::' + RepresentationType$9 + ':' + config.id;
|
|
6560
6560
|
}
|
|
6561
|
-
function keyBuilderFromType$
|
|
6561
|
+
function keyBuilderFromType$5(luvio, object) {
|
|
6562
6562
|
const keyParams = {
|
|
6563
6563
|
id: object.catalogId
|
|
6564
6564
|
};
|
|
6565
|
-
return keyBuilder$
|
|
6565
|
+
return keyBuilder$d(luvio, keyParams);
|
|
6566
6566
|
}
|
|
6567
|
-
function normalize$
|
|
6567
|
+
function normalize$9(input, existing, path, luvio, store, timestamp) {
|
|
6568
6568
|
return input;
|
|
6569
6569
|
}
|
|
6570
|
-
const select$
|
|
6570
|
+
const select$l = function CategoryAndParentOutputRepresentationSelect() {
|
|
6571
6571
|
return {
|
|
6572
6572
|
kind: 'Fragment',
|
|
6573
|
-
version: VERSION$
|
|
6573
|
+
version: VERSION$b,
|
|
6574
6574
|
private: [],
|
|
6575
6575
|
opaque: true
|
|
6576
6576
|
};
|
|
6577
6577
|
};
|
|
6578
|
-
function equals$
|
|
6578
|
+
function equals$b(existing, incoming) {
|
|
6579
6579
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6580
6580
|
return false;
|
|
6581
6581
|
}
|
|
6582
6582
|
return true;
|
|
6583
6583
|
}
|
|
6584
|
-
const ingest$
|
|
6584
|
+
const ingest$9 = function CategoryAndParentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6585
6585
|
if (process.env.NODE_ENV !== 'production') {
|
|
6586
|
-
const validateError = validate$
|
|
6586
|
+
const validateError = validate$e(input);
|
|
6587
6587
|
if (validateError !== null) {
|
|
6588
6588
|
throw validateError;
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
6591
|
-
const key = keyBuilderFromType$
|
|
6592
|
-
const ttlToUse = TTL$
|
|
6593
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6591
|
+
const key = keyBuilderFromType$5(luvio, input);
|
|
6592
|
+
const ttlToUse = TTL$8;
|
|
6593
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$9, "ecm", VERSION$b, RepresentationType$9, equals$b);
|
|
6594
6594
|
return createLink(key);
|
|
6595
6595
|
};
|
|
6596
|
-
function getTypeCacheKeys$
|
|
6596
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
6597
6597
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6598
|
-
const rootKey = keyBuilderFromType$
|
|
6598
|
+
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
6599
6599
|
rootKeySet.set(rootKey, {
|
|
6600
6600
|
namespace: keyPrefix,
|
|
6601
|
-
representationName: RepresentationType$
|
|
6601
|
+
representationName: RepresentationType$9,
|
|
6602
6602
|
mergeable: false
|
|
6603
6603
|
});
|
|
6604
6604
|
}
|
|
6605
6605
|
|
|
6606
|
-
function select$
|
|
6607
|
-
return select$
|
|
6606
|
+
function select$k(luvio, params) {
|
|
6607
|
+
return select$l();
|
|
6608
6608
|
}
|
|
6609
|
-
function getResponseCacheKeys$
|
|
6610
|
-
getTypeCacheKeys$
|
|
6609
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
6610
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response);
|
|
6611
6611
|
}
|
|
6612
|
-
function ingestSuccess$
|
|
6612
|
+
function ingestSuccess$9(luvio, resourceParams, response) {
|
|
6613
6613
|
const { body } = response;
|
|
6614
|
-
const key = keyBuilderFromType$
|
|
6615
|
-
luvio.storeIngest(key, ingest$
|
|
6614
|
+
const key = keyBuilderFromType$5(luvio, body);
|
|
6615
|
+
luvio.storeIngest(key, ingest$9, body);
|
|
6616
6616
|
const snapshot = luvio.storeLookup({
|
|
6617
6617
|
recordId: key,
|
|
6618
|
-
node: select$
|
|
6618
|
+
node: select$k(),
|
|
6619
6619
|
variables: {},
|
|
6620
6620
|
});
|
|
6621
6621
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6626,7 +6626,7 @@ function ingestSuccess$7(luvio, resourceParams, response) {
|
|
|
6626
6626
|
deepFreeze(snapshot.data);
|
|
6627
6627
|
return snapshot;
|
|
6628
6628
|
}
|
|
6629
|
-
function createResourceRequest$
|
|
6629
|
+
function createResourceRequest$9(config) {
|
|
6630
6630
|
const headers = {};
|
|
6631
6631
|
return {
|
|
6632
6632
|
baseUri: '/services/data/v65.0',
|
|
@@ -6640,22 +6640,22 @@ function createResourceRequest$7(config) {
|
|
|
6640
6640
|
};
|
|
6641
6641
|
}
|
|
6642
6642
|
|
|
6643
|
-
const adapterName$
|
|
6643
|
+
const adapterName$9 = 'updateEpcCategories';
|
|
6644
6644
|
const updateEpcCategories_ConfigPropertyMetadata = [
|
|
6645
6645
|
generateParamConfigMetadata('catalogId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6646
6646
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6647
6647
|
];
|
|
6648
|
-
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6649
|
-
const createResourceParams$
|
|
6650
|
-
function typeCheckConfig$
|
|
6648
|
+
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$9, updateEpcCategories_ConfigPropertyMetadata);
|
|
6649
|
+
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$d(updateEpcCategories_ConfigPropertyMetadata);
|
|
6650
|
+
function typeCheckConfig$9(untrustedConfig) {
|
|
6651
6651
|
const config = {};
|
|
6652
|
-
typeCheckConfig$
|
|
6652
|
+
typeCheckConfig$d(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
6653
6653
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
6654
6654
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
6655
6655
|
const untrustedConfig_categories_array = [];
|
|
6656
6656
|
for (let i = 0, arrayLength = untrustedConfig_categories.length; i < arrayLength; i++) {
|
|
6657
6657
|
const untrustedConfig_categories_item = untrustedConfig_categories[i];
|
|
6658
|
-
const referenceCategoryInputValidationError = validate$
|
|
6658
|
+
const referenceCategoryInputValidationError = validate$g(untrustedConfig_categories_item);
|
|
6659
6659
|
if (referenceCategoryInputValidationError === null) {
|
|
6660
6660
|
untrustedConfig_categories_array.push(untrustedConfig_categories_item);
|
|
6661
6661
|
}
|
|
@@ -6664,30 +6664,30 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
6664
6664
|
}
|
|
6665
6665
|
return config;
|
|
6666
6666
|
}
|
|
6667
|
-
function validateAdapterConfig$
|
|
6667
|
+
function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
6668
6668
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6669
6669
|
return null;
|
|
6670
6670
|
}
|
|
6671
6671
|
if (process.env.NODE_ENV !== 'production') {
|
|
6672
6672
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6673
6673
|
}
|
|
6674
|
-
const config = typeCheckConfig$
|
|
6674
|
+
const config = typeCheckConfig$9(untrustedConfig);
|
|
6675
6675
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6676
6676
|
return null;
|
|
6677
6677
|
}
|
|
6678
6678
|
return config;
|
|
6679
6679
|
}
|
|
6680
|
-
function buildNetworkSnapshot$
|
|
6681
|
-
const resourceParams = createResourceParams$
|
|
6682
|
-
const request = createResourceRequest$
|
|
6680
|
+
function buildNetworkSnapshot$9(luvio, config, options) {
|
|
6681
|
+
const resourceParams = createResourceParams$9(config);
|
|
6682
|
+
const request = createResourceRequest$9(resourceParams);
|
|
6683
6683
|
return luvio.dispatchResourceRequest(request, options)
|
|
6684
6684
|
.then((response) => {
|
|
6685
6685
|
return luvio.handleSuccessResponse(() => {
|
|
6686
|
-
const snapshot = ingestSuccess$
|
|
6686
|
+
const snapshot = ingestSuccess$9(luvio, resourceParams, response);
|
|
6687
6687
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6688
6688
|
}, () => {
|
|
6689
6689
|
const cache = new StoreKeyMap();
|
|
6690
|
-
getResponseCacheKeys$
|
|
6690
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
6691
6691
|
return cache;
|
|
6692
6692
|
});
|
|
6693
6693
|
}, (response) => {
|
|
@@ -6697,16 +6697,16 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
6697
6697
|
}
|
|
6698
6698
|
const updateEpcCategoriesAdapterFactory = (luvio) => {
|
|
6699
6699
|
return function updateEpcCategories(untrustedConfig) {
|
|
6700
|
-
const config = validateAdapterConfig$
|
|
6700
|
+
const config = validateAdapterConfig$9(untrustedConfig, updateEpcCategories_ConfigPropertyNames);
|
|
6701
6701
|
// Invalid or incomplete config
|
|
6702
6702
|
if (config === null) {
|
|
6703
6703
|
throw new Error('Invalid config for "updateEpcCategories"');
|
|
6704
6704
|
}
|
|
6705
|
-
return buildNetworkSnapshot$
|
|
6705
|
+
return buildNetworkSnapshot$9(luvio, config);
|
|
6706
6706
|
};
|
|
6707
6707
|
};
|
|
6708
6708
|
|
|
6709
|
-
function validate$
|
|
6709
|
+
function validate$d(obj, path = 'FilterInputRepresentation') {
|
|
6710
6710
|
const v_error = (() => {
|
|
6711
6711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6712
6712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6730,7 +6730,7 @@ function validate$b(obj, path = 'FilterInputRepresentation') {
|
|
|
6730
6730
|
return v_error === undefined ? null : v_error;
|
|
6731
6731
|
}
|
|
6732
6732
|
|
|
6733
|
-
function validate$
|
|
6733
|
+
function validate$c(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
6734
6734
|
const v_error = (() => {
|
|
6735
6735
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6736
6736
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6753,9 +6753,9 @@ function validate$a(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
6753
6753
|
return v_error === undefined ? null : v_error;
|
|
6754
6754
|
}
|
|
6755
6755
|
|
|
6756
|
-
const TTL$
|
|
6757
|
-
const VERSION$
|
|
6758
|
-
function validate$
|
|
6756
|
+
const TTL$7 = 6000;
|
|
6757
|
+
const VERSION$a = "7860ae260a600243129acb4ea01e75be";
|
|
6758
|
+
function validate$b(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
6759
6759
|
const v_error = (() => {
|
|
6760
6760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6761
6761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6773,7 +6773,7 @@ function validate$9(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6773
6773
|
for (let i = 0; i < obj_records.length; i++) {
|
|
6774
6774
|
const obj_records_item = obj_records[i];
|
|
6775
6775
|
const path_records_item = path_records + '[' + i + ']';
|
|
6776
|
-
const referencepath_records_itemValidationError = validate$
|
|
6776
|
+
const referencepath_records_itemValidationError = validate$c(obj_records_item, path_records_item);
|
|
6777
6777
|
if (referencepath_records_itemValidationError !== null) {
|
|
6778
6778
|
let message = 'Object doesn\'t match ServiceAutomationOutputRecordRepresentation (at "' + path_records_item + '")\n';
|
|
6779
6779
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6783,62 +6783,62 @@ function validate$9(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6783
6783
|
})();
|
|
6784
6784
|
return v_error === undefined ? null : v_error;
|
|
6785
6785
|
}
|
|
6786
|
-
const RepresentationType$
|
|
6787
|
-
function normalize$
|
|
6786
|
+
const RepresentationType$8 = 'ServiceAutomationDepOutputRepresentation';
|
|
6787
|
+
function normalize$8(input, existing, path, luvio, store, timestamp) {
|
|
6788
6788
|
return input;
|
|
6789
6789
|
}
|
|
6790
|
-
const select$
|
|
6790
|
+
const select$j = function ServiceAutomationDepOutputRepresentationSelect() {
|
|
6791
6791
|
return {
|
|
6792
6792
|
kind: 'Fragment',
|
|
6793
|
-
version: VERSION$
|
|
6793
|
+
version: VERSION$a,
|
|
6794
6794
|
private: [],
|
|
6795
6795
|
opaque: true
|
|
6796
6796
|
};
|
|
6797
6797
|
};
|
|
6798
|
-
function equals$
|
|
6798
|
+
function equals$a(existing, incoming) {
|
|
6799
6799
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6800
6800
|
return false;
|
|
6801
6801
|
}
|
|
6802
6802
|
return true;
|
|
6803
6803
|
}
|
|
6804
|
-
const ingest$
|
|
6804
|
+
const ingest$8 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6805
6805
|
if (process.env.NODE_ENV !== 'production') {
|
|
6806
|
-
const validateError = validate$
|
|
6806
|
+
const validateError = validate$b(input);
|
|
6807
6807
|
if (validateError !== null) {
|
|
6808
6808
|
throw validateError;
|
|
6809
6809
|
}
|
|
6810
6810
|
}
|
|
6811
6811
|
const key = path.fullPath;
|
|
6812
|
-
const ttlToUse = TTL$
|
|
6813
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6812
|
+
const ttlToUse = TTL$7;
|
|
6813
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$8, "ecm", VERSION$a, RepresentationType$8, equals$a);
|
|
6814
6814
|
return createLink(key);
|
|
6815
6815
|
};
|
|
6816
|
-
function getTypeCacheKeys$
|
|
6816
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
6817
6817
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6818
6818
|
const rootKey = fullPathFactory();
|
|
6819
6819
|
rootKeySet.set(rootKey, {
|
|
6820
6820
|
namespace: keyPrefix,
|
|
6821
|
-
representationName: RepresentationType$
|
|
6821
|
+
representationName: RepresentationType$8,
|
|
6822
6822
|
mergeable: false
|
|
6823
6823
|
});
|
|
6824
6824
|
}
|
|
6825
6825
|
|
|
6826
|
-
function select$
|
|
6827
|
-
return select$
|
|
6826
|
+
function select$i(luvio, params) {
|
|
6827
|
+
return select$j();
|
|
6828
6828
|
}
|
|
6829
|
-
function keyBuilder$
|
|
6829
|
+
function keyBuilder$c(luvio, params) {
|
|
6830
6830
|
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => 'filters.field:' + element.field + '::' + 'filters.operator:' + element.operator + '::' + 'filters.value:' + element.value).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
|
|
6831
6831
|
}
|
|
6832
|
-
function getResponseCacheKeys$
|
|
6833
|
-
getTypeCacheKeys$
|
|
6832
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
6833
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$c(luvio, resourceParams));
|
|
6834
6834
|
}
|
|
6835
|
-
function ingestSuccess$
|
|
6835
|
+
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
6836
6836
|
const { body } = response;
|
|
6837
|
-
const key = keyBuilder$
|
|
6838
|
-
luvio.storeIngest(key, ingest$
|
|
6837
|
+
const key = keyBuilder$c(luvio, resourceParams);
|
|
6838
|
+
luvio.storeIngest(key, ingest$8, body);
|
|
6839
6839
|
const snapshot = luvio.storeLookup({
|
|
6840
6840
|
recordId: key,
|
|
6841
|
-
node: select$
|
|
6841
|
+
node: select$i(),
|
|
6842
6842
|
variables: {},
|
|
6843
6843
|
}, snapshotRefresh);
|
|
6844
6844
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6850,18 +6850,18 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6850
6850
|
return snapshot;
|
|
6851
6851
|
}
|
|
6852
6852
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
6853
|
-
const key = keyBuilder$
|
|
6853
|
+
const key = keyBuilder$c(luvio, params);
|
|
6854
6854
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6855
6855
|
const storeMetadataParams = {
|
|
6856
|
-
ttl: TTL$
|
|
6856
|
+
ttl: TTL$7,
|
|
6857
6857
|
namespace: keyPrefix,
|
|
6858
|
-
version: VERSION$
|
|
6859
|
-
representationName: RepresentationType$
|
|
6858
|
+
version: VERSION$a,
|
|
6859
|
+
representationName: RepresentationType$8
|
|
6860
6860
|
};
|
|
6861
6861
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6862
6862
|
return errorSnapshot;
|
|
6863
6863
|
}
|
|
6864
|
-
function createResourceRequest$
|
|
6864
|
+
function createResourceRequest$8(config) {
|
|
6865
6865
|
const headers = {};
|
|
6866
6866
|
return {
|
|
6867
6867
|
baseUri: '/services/data/v65.0',
|
|
@@ -6875,28 +6875,28 @@ function createResourceRequest$6(config) {
|
|
|
6875
6875
|
};
|
|
6876
6876
|
}
|
|
6877
6877
|
|
|
6878
|
-
const adapterName$
|
|
6878
|
+
const adapterName$8 = 'getAllServiceAutomationDep';
|
|
6879
6879
|
const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
6880
6880
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
6881
6881
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
6882
6882
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6883
6883
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6884
6884
|
];
|
|
6885
|
-
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6886
|
-
const createResourceParams$
|
|
6887
|
-
function keyBuilder$
|
|
6888
|
-
const resourceParams = createResourceParams$
|
|
6889
|
-
return keyBuilder$
|
|
6885
|
+
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$8, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6886
|
+
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$d(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6887
|
+
function keyBuilder$b(luvio, config) {
|
|
6888
|
+
const resourceParams = createResourceParams$8(config);
|
|
6889
|
+
return keyBuilder$c(luvio, resourceParams);
|
|
6890
6890
|
}
|
|
6891
|
-
function typeCheckConfig$
|
|
6891
|
+
function typeCheckConfig$8(untrustedConfig) {
|
|
6892
6892
|
const config = {};
|
|
6893
|
-
typeCheckConfig$
|
|
6893
|
+
typeCheckConfig$d(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6894
6894
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
6895
6895
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
6896
6896
|
const untrustedConfig_filters_array = [];
|
|
6897
6897
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
6898
6898
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
6899
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
6899
|
+
const referenceFilterInputRepresentationValidationError = validate$d(untrustedConfig_filters_item);
|
|
6900
6900
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
6901
6901
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
6902
6902
|
}
|
|
@@ -6912,45 +6912,45 @@ function typeCheckConfig$6(untrustedConfig) {
|
|
|
6912
6912
|
}
|
|
6913
6913
|
return config;
|
|
6914
6914
|
}
|
|
6915
|
-
function validateAdapterConfig$
|
|
6915
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
6916
6916
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6917
6917
|
return null;
|
|
6918
6918
|
}
|
|
6919
6919
|
if (process.env.NODE_ENV !== 'production') {
|
|
6920
6920
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6921
6921
|
}
|
|
6922
|
-
const config = typeCheckConfig$
|
|
6922
|
+
const config = typeCheckConfig$8(untrustedConfig);
|
|
6923
6923
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6924
6924
|
return null;
|
|
6925
6925
|
}
|
|
6926
6926
|
return config;
|
|
6927
6927
|
}
|
|
6928
6928
|
function adapterFragment$3(luvio, config) {
|
|
6929
|
-
createResourceParams$
|
|
6930
|
-
return select$
|
|
6929
|
+
createResourceParams$8(config);
|
|
6930
|
+
return select$i();
|
|
6931
6931
|
}
|
|
6932
6932
|
function onFetchResponseSuccess$3(luvio, config, resourceParams, response) {
|
|
6933
|
-
const snapshot = ingestSuccess$
|
|
6933
|
+
const snapshot = ingestSuccess$8(luvio, resourceParams, response, {
|
|
6934
6934
|
config,
|
|
6935
|
-
resolve: () => buildNetworkSnapshot$
|
|
6935
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
6936
6936
|
});
|
|
6937
6937
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6938
6938
|
}
|
|
6939
6939
|
function onFetchResponseError$3(luvio, config, resourceParams, response) {
|
|
6940
6940
|
const snapshot = ingestError$3(luvio, resourceParams, response, {
|
|
6941
6941
|
config,
|
|
6942
|
-
resolve: () => buildNetworkSnapshot$
|
|
6942
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
6943
6943
|
});
|
|
6944
6944
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6945
6945
|
}
|
|
6946
|
-
function buildNetworkSnapshot$
|
|
6947
|
-
const resourceParams = createResourceParams$
|
|
6948
|
-
const request = createResourceRequest$
|
|
6946
|
+
function buildNetworkSnapshot$8(luvio, config, options) {
|
|
6947
|
+
const resourceParams = createResourceParams$8(config);
|
|
6948
|
+
const request = createResourceRequest$8(resourceParams);
|
|
6949
6949
|
return luvio.dispatchResourceRequest(request, options)
|
|
6950
6950
|
.then((response) => {
|
|
6951
6951
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
6952
6952
|
const cache = new StoreKeyMap();
|
|
6953
|
-
getResponseCacheKeys$
|
|
6953
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
6954
6954
|
return cache;
|
|
6955
6955
|
});
|
|
6956
6956
|
}, (response) => {
|
|
@@ -6958,23 +6958,23 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
6958
6958
|
});
|
|
6959
6959
|
}
|
|
6960
6960
|
function buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext) {
|
|
6961
|
-
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
6961
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$8, 'get', false);
|
|
6962
6962
|
}
|
|
6963
6963
|
function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
6964
6964
|
const { luvio, config } = context;
|
|
6965
6965
|
const selector = {
|
|
6966
|
-
recordId: keyBuilder$
|
|
6966
|
+
recordId: keyBuilder$b(luvio, config),
|
|
6967
6967
|
node: adapterFragment$3(luvio, config),
|
|
6968
6968
|
variables: {},
|
|
6969
6969
|
};
|
|
6970
6970
|
const cacheSnapshot = storeLookup(selector, {
|
|
6971
6971
|
config,
|
|
6972
|
-
resolve: () => buildNetworkSnapshot$
|
|
6972
|
+
resolve: () => buildNetworkSnapshot$8(luvio, config, snapshotRefreshOptions)
|
|
6973
6973
|
});
|
|
6974
6974
|
return cacheSnapshot;
|
|
6975
6975
|
}
|
|
6976
6976
|
const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
|
|
6977
|
-
const config = validateAdapterConfig$
|
|
6977
|
+
const config = validateAdapterConfig$8(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
|
|
6978
6978
|
// Invalid or incomplete config
|
|
6979
6979
|
if (config === null) {
|
|
6980
6980
|
return null;
|
|
@@ -6983,7 +6983,7 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
|
|
|
6983
6983
|
buildCachedSnapshotCachePolicy$3, buildNetworkSnapshotCachePolicy$3);
|
|
6984
6984
|
};
|
|
6985
6985
|
|
|
6986
|
-
function validate$
|
|
6986
|
+
function validate$a(obj, path = 'ServiceProcessTemplateOutputRepresentation') {
|
|
6987
6987
|
const v_error = (() => {
|
|
6988
6988
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6989
6989
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7022,9 +7022,9 @@ function validate$8(obj, path = 'ServiceProcessTemplateOutputRepresentation') {
|
|
|
7022
7022
|
return v_error === undefined ? null : v_error;
|
|
7023
7023
|
}
|
|
7024
7024
|
|
|
7025
|
-
const TTL$
|
|
7026
|
-
const VERSION$
|
|
7027
|
-
function validate$
|
|
7025
|
+
const TTL$6 = 6000;
|
|
7026
|
+
const VERSION$9 = "1cae1bb3aeefe004ae9d9248ac15a1d5";
|
|
7027
|
+
function validate$9(obj, path = 'ServiceProcessTemplatesOutputRepresentation') {
|
|
7028
7028
|
const v_error = (() => {
|
|
7029
7029
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7030
7030
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -7037,7 +7037,7 @@ function validate$7(obj, path = 'ServiceProcessTemplatesOutputRepresentation') {
|
|
|
7037
7037
|
for (let i = 0; i < obj_serviceProcessTemplateOutputRepresentation.length; i++) {
|
|
7038
7038
|
const obj_serviceProcessTemplateOutputRepresentation_item = obj_serviceProcessTemplateOutputRepresentation[i];
|
|
7039
7039
|
const path_serviceProcessTemplateOutputRepresentation_item = path_serviceProcessTemplateOutputRepresentation + '[' + i + ']';
|
|
7040
|
-
const referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError = validate$
|
|
7040
|
+
const referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError = validate$a(obj_serviceProcessTemplateOutputRepresentation_item, path_serviceProcessTemplateOutputRepresentation_item);
|
|
7041
7041
|
if (referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError !== null) {
|
|
7042
7042
|
let message = 'Object doesn\'t match ServiceProcessTemplateOutputRepresentation (at "' + path_serviceProcessTemplateOutputRepresentation_item + '")\n';
|
|
7043
7043
|
message += referencepath_serviceProcessTemplateOutputRepresentation_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -7047,62 +7047,62 @@ function validate$7(obj, path = 'ServiceProcessTemplatesOutputRepresentation') {
|
|
|
7047
7047
|
})();
|
|
7048
7048
|
return v_error === undefined ? null : v_error;
|
|
7049
7049
|
}
|
|
7050
|
-
const RepresentationType$
|
|
7051
|
-
function normalize$
|
|
7050
|
+
const RepresentationType$7 = 'ServiceProcessTemplatesOutputRepresentation';
|
|
7051
|
+
function normalize$7(input, existing, path, luvio, store, timestamp) {
|
|
7052
7052
|
return input;
|
|
7053
7053
|
}
|
|
7054
|
-
const select$
|
|
7054
|
+
const select$h = function ServiceProcessTemplatesOutputRepresentationSelect() {
|
|
7055
7055
|
return {
|
|
7056
7056
|
kind: 'Fragment',
|
|
7057
|
-
version: VERSION$
|
|
7057
|
+
version: VERSION$9,
|
|
7058
7058
|
private: [],
|
|
7059
7059
|
opaque: true
|
|
7060
7060
|
};
|
|
7061
7061
|
};
|
|
7062
|
-
function equals$
|
|
7062
|
+
function equals$9(existing, incoming) {
|
|
7063
7063
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7064
7064
|
return false;
|
|
7065
7065
|
}
|
|
7066
7066
|
return true;
|
|
7067
7067
|
}
|
|
7068
|
-
const ingest$
|
|
7068
|
+
const ingest$7 = function ServiceProcessTemplatesOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7069
7069
|
if (process.env.NODE_ENV !== 'production') {
|
|
7070
|
-
const validateError = validate$
|
|
7070
|
+
const validateError = validate$9(input);
|
|
7071
7071
|
if (validateError !== null) {
|
|
7072
7072
|
throw validateError;
|
|
7073
7073
|
}
|
|
7074
7074
|
}
|
|
7075
7075
|
const key = path.fullPath;
|
|
7076
|
-
const ttlToUse = TTL$
|
|
7077
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
7076
|
+
const ttlToUse = TTL$6;
|
|
7077
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$7, "ecm", VERSION$9, RepresentationType$7, equals$9);
|
|
7078
7078
|
return createLink(key);
|
|
7079
7079
|
};
|
|
7080
|
-
function getTypeCacheKeys$
|
|
7080
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
7081
7081
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7082
7082
|
const rootKey = fullPathFactory();
|
|
7083
7083
|
rootKeySet.set(rootKey, {
|
|
7084
7084
|
namespace: keyPrefix,
|
|
7085
|
-
representationName: RepresentationType$
|
|
7085
|
+
representationName: RepresentationType$7,
|
|
7086
7086
|
mergeable: false
|
|
7087
7087
|
});
|
|
7088
7088
|
}
|
|
7089
7089
|
|
|
7090
|
-
function select$
|
|
7091
|
-
return select$
|
|
7090
|
+
function select$g(luvio, params) {
|
|
7091
|
+
return select$h();
|
|
7092
7092
|
}
|
|
7093
|
-
function keyBuilder$
|
|
7093
|
+
function keyBuilder$a(luvio, params) {
|
|
7094
7094
|
return keyPrefix + '::ServiceProcessTemplatesOutputRepresentation:(' + ')';
|
|
7095
7095
|
}
|
|
7096
|
-
function getResponseCacheKeys$
|
|
7097
|
-
getTypeCacheKeys$
|
|
7096
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
7097
|
+
getTypeCacheKeys$7(storeKeyMap, luvio, response, () => keyBuilder$a());
|
|
7098
7098
|
}
|
|
7099
|
-
function ingestSuccess$
|
|
7099
|
+
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
7100
7100
|
const { body } = response;
|
|
7101
|
-
const key = keyBuilder$
|
|
7102
|
-
luvio.storeIngest(key, ingest$
|
|
7101
|
+
const key = keyBuilder$a();
|
|
7102
|
+
luvio.storeIngest(key, ingest$7, body);
|
|
7103
7103
|
const snapshot = luvio.storeLookup({
|
|
7104
7104
|
recordId: key,
|
|
7105
|
-
node: select$
|
|
7105
|
+
node: select$g(),
|
|
7106
7106
|
variables: {},
|
|
7107
7107
|
}, snapshotRefresh);
|
|
7108
7108
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -7114,18 +7114,18 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
7114
7114
|
return snapshot;
|
|
7115
7115
|
}
|
|
7116
7116
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
7117
|
-
const key = keyBuilder$
|
|
7117
|
+
const key = keyBuilder$a();
|
|
7118
7118
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7119
7119
|
const storeMetadataParams = {
|
|
7120
|
-
ttl: TTL$
|
|
7120
|
+
ttl: TTL$6,
|
|
7121
7121
|
namespace: keyPrefix,
|
|
7122
|
-
version: VERSION$
|
|
7123
|
-
representationName: RepresentationType$
|
|
7122
|
+
version: VERSION$9,
|
|
7123
|
+
representationName: RepresentationType$7
|
|
7124
7124
|
};
|
|
7125
7125
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7126
7126
|
return errorSnapshot;
|
|
7127
7127
|
}
|
|
7128
|
-
function createResourceRequest$
|
|
7128
|
+
function createResourceRequest$7(config) {
|
|
7129
7129
|
const headers = {};
|
|
7130
7130
|
return {
|
|
7131
7131
|
baseUri: '/services/data/v65.0',
|
|
@@ -7139,57 +7139,57 @@ function createResourceRequest$5(config) {
|
|
|
7139
7139
|
};
|
|
7140
7140
|
}
|
|
7141
7141
|
|
|
7142
|
-
const adapterName$
|
|
7142
|
+
const adapterName$7 = 'getAllServiceProcessTemplate';
|
|
7143
7143
|
const getAllServiceProcessTemplate_ConfigPropertyMetadata = [];
|
|
7144
|
-
const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
7145
|
-
const createResourceParams$
|
|
7146
|
-
function keyBuilder$
|
|
7147
|
-
createResourceParams$
|
|
7148
|
-
return keyBuilder$
|
|
7144
|
+
const getAllServiceProcessTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
7145
|
+
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$d(getAllServiceProcessTemplate_ConfigPropertyMetadata);
|
|
7146
|
+
function keyBuilder$9(luvio, config) {
|
|
7147
|
+
createResourceParams$7(config);
|
|
7148
|
+
return keyBuilder$a();
|
|
7149
7149
|
}
|
|
7150
|
-
function typeCheckConfig$
|
|
7150
|
+
function typeCheckConfig$7(untrustedConfig) {
|
|
7151
7151
|
const config = {};
|
|
7152
7152
|
return config;
|
|
7153
7153
|
}
|
|
7154
|
-
function validateAdapterConfig$
|
|
7154
|
+
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
7155
7155
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
7156
7156
|
return null;
|
|
7157
7157
|
}
|
|
7158
7158
|
if (process.env.NODE_ENV !== 'production') {
|
|
7159
7159
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
7160
7160
|
}
|
|
7161
|
-
const config = typeCheckConfig$
|
|
7161
|
+
const config = typeCheckConfig$7();
|
|
7162
7162
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7163
7163
|
return null;
|
|
7164
7164
|
}
|
|
7165
7165
|
return config;
|
|
7166
7166
|
}
|
|
7167
7167
|
function adapterFragment$2(luvio, config) {
|
|
7168
|
-
createResourceParams$
|
|
7169
|
-
return select$
|
|
7168
|
+
createResourceParams$7(config);
|
|
7169
|
+
return select$g();
|
|
7170
7170
|
}
|
|
7171
7171
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
7172
|
-
const snapshot = ingestSuccess$
|
|
7172
|
+
const snapshot = ingestSuccess$7(luvio, resourceParams, response, {
|
|
7173
7173
|
config,
|
|
7174
|
-
resolve: () => buildNetworkSnapshot$
|
|
7174
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
7175
7175
|
});
|
|
7176
7176
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7177
7177
|
}
|
|
7178
7178
|
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
7179
7179
|
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
7180
7180
|
config,
|
|
7181
|
-
resolve: () => buildNetworkSnapshot$
|
|
7181
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
7182
7182
|
});
|
|
7183
7183
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
7184
7184
|
}
|
|
7185
|
-
function buildNetworkSnapshot$
|
|
7186
|
-
const resourceParams = createResourceParams$
|
|
7187
|
-
const request = createResourceRequest$
|
|
7185
|
+
function buildNetworkSnapshot$7(luvio, config, options) {
|
|
7186
|
+
const resourceParams = createResourceParams$7(config);
|
|
7187
|
+
const request = createResourceRequest$7();
|
|
7188
7188
|
return luvio.dispatchResourceRequest(request, options)
|
|
7189
7189
|
.then((response) => {
|
|
7190
7190
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
7191
7191
|
const cache = new StoreKeyMap();
|
|
7192
|
-
getResponseCacheKeys$
|
|
7192
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
7193
7193
|
return cache;
|
|
7194
7194
|
});
|
|
7195
7195
|
}, (response) => {
|
|
@@ -7197,23 +7197,23 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
7197
7197
|
});
|
|
7198
7198
|
}
|
|
7199
7199
|
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
7200
|
-
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$
|
|
7200
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$7, undefined, false);
|
|
7201
7201
|
}
|
|
7202
7202
|
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
7203
7203
|
const { luvio, config } = context;
|
|
7204
7204
|
const selector = {
|
|
7205
|
-
recordId: keyBuilder$
|
|
7205
|
+
recordId: keyBuilder$9(luvio, config),
|
|
7206
7206
|
node: adapterFragment$2(luvio, config),
|
|
7207
7207
|
variables: {},
|
|
7208
7208
|
};
|
|
7209
7209
|
const cacheSnapshot = storeLookup(selector, {
|
|
7210
7210
|
config,
|
|
7211
|
-
resolve: () => buildNetworkSnapshot$
|
|
7211
|
+
resolve: () => buildNetworkSnapshot$7(luvio, config, snapshotRefreshOptions)
|
|
7212
7212
|
});
|
|
7213
7213
|
return cacheSnapshot;
|
|
7214
7214
|
}
|
|
7215
7215
|
const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getAllServiceProcessTemplate(untrustedConfig, requestContext) {
|
|
7216
|
-
const config = validateAdapterConfig$
|
|
7216
|
+
const config = validateAdapterConfig$7(untrustedConfig, getAllServiceProcessTemplate_ConfigPropertyNames);
|
|
7217
7217
|
// Invalid or incomplete config
|
|
7218
7218
|
if (config === null) {
|
|
7219
7219
|
return null;
|
|
@@ -7222,773 +7222,1056 @@ const getAllServiceProcessTemplateAdapterFactory = (luvio) => function ecm__getA
|
|
|
7222
7222
|
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
7223
7223
|
};
|
|
7224
7224
|
|
|
7225
|
-
|
|
7225
|
+
const VERSION$8 = "5df1d4fd0e2e95371d19680f89716ea9";
|
|
7226
|
+
function validate$8(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
7226
7227
|
const v_error = (() => {
|
|
7227
7228
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7228
7229
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7229
7230
|
}
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
const obj_dataType_union0_error = (() => {
|
|
7235
|
-
if (typeof obj_dataType !== 'string') {
|
|
7236
|
-
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
7237
|
-
}
|
|
7238
|
-
})();
|
|
7239
|
-
if (obj_dataType_union0_error != null) {
|
|
7240
|
-
obj_dataType_union0 = obj_dataType_union0_error.message;
|
|
7241
|
-
}
|
|
7242
|
-
let obj_dataType_union1 = null;
|
|
7243
|
-
const obj_dataType_union1_error = (() => {
|
|
7244
|
-
if (obj_dataType !== null) {
|
|
7245
|
-
return new TypeError('Expected "null" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
7246
|
-
}
|
|
7247
|
-
})();
|
|
7248
|
-
if (obj_dataType_union1_error != null) {
|
|
7249
|
-
obj_dataType_union1 = obj_dataType_union1_error.message;
|
|
7250
|
-
}
|
|
7251
|
-
if (obj_dataType_union0 && obj_dataType_union1) {
|
|
7252
|
-
let message = 'Object doesn\'t match union (at "' + path_dataType + '")';
|
|
7253
|
-
message += '\n' + obj_dataType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7254
|
-
message += '\n' + obj_dataType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7255
|
-
return new TypeError(message);
|
|
7256
|
-
}
|
|
7231
|
+
const obj_dataType = obj.dataType;
|
|
7232
|
+
const path_dataType = path + '.dataType';
|
|
7233
|
+
if (typeof obj_dataType !== 'string') {
|
|
7234
|
+
return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
|
|
7257
7235
|
}
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
const obj_description_union0_error = (() => {
|
|
7263
|
-
if (typeof obj_description !== 'string') {
|
|
7264
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7265
|
-
}
|
|
7266
|
-
})();
|
|
7267
|
-
if (obj_description_union0_error != null) {
|
|
7268
|
-
obj_description_union0 = obj_description_union0_error.message;
|
|
7269
|
-
}
|
|
7270
|
-
let obj_description_union1 = null;
|
|
7271
|
-
const obj_description_union1_error = (() => {
|
|
7272
|
-
if (obj_description !== null) {
|
|
7273
|
-
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7274
|
-
}
|
|
7275
|
-
})();
|
|
7276
|
-
if (obj_description_union1_error != null) {
|
|
7277
|
-
obj_description_union1 = obj_description_union1_error.message;
|
|
7278
|
-
}
|
|
7279
|
-
if (obj_description_union0 && obj_description_union1) {
|
|
7280
|
-
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
7281
|
-
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7282
|
-
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7283
|
-
return new TypeError(message);
|
|
7284
|
-
}
|
|
7236
|
+
const obj_description = obj.description;
|
|
7237
|
+
const path_description = path + '.description';
|
|
7238
|
+
if (typeof obj_description !== 'string') {
|
|
7239
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7285
7240
|
}
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
const obj_developerName_union0_error = (() => {
|
|
7291
|
-
if (typeof obj_developerName !== 'string') {
|
|
7292
|
-
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
7293
|
-
}
|
|
7294
|
-
})();
|
|
7295
|
-
if (obj_developerName_union0_error != null) {
|
|
7296
|
-
obj_developerName_union0 = obj_developerName_union0_error.message;
|
|
7297
|
-
}
|
|
7298
|
-
let obj_developerName_union1 = null;
|
|
7299
|
-
const obj_developerName_union1_error = (() => {
|
|
7300
|
-
if (obj_developerName !== null) {
|
|
7301
|
-
return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
7302
|
-
}
|
|
7303
|
-
})();
|
|
7304
|
-
if (obj_developerName_union1_error != null) {
|
|
7305
|
-
obj_developerName_union1 = obj_developerName_union1_error.message;
|
|
7306
|
-
}
|
|
7307
|
-
if (obj_developerName_union0 && obj_developerName_union1) {
|
|
7308
|
-
let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
|
|
7309
|
-
message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7310
|
-
message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7311
|
-
return new TypeError(message);
|
|
7312
|
-
}
|
|
7241
|
+
const obj_developerName = obj.developerName;
|
|
7242
|
+
const path_developerName = path + '.developerName';
|
|
7243
|
+
if (typeof obj_developerName !== 'string') {
|
|
7244
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
7313
7245
|
}
|
|
7314
7246
|
if (obj.displayable !== undefined) {
|
|
7315
7247
|
const obj_displayable = obj.displayable;
|
|
7316
7248
|
const path_displayable = path + '.displayable';
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
if (typeof obj_displayable !== 'boolean') {
|
|
7320
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
|
|
7321
|
-
}
|
|
7322
|
-
})();
|
|
7323
|
-
if (obj_displayable_union0_error != null) {
|
|
7324
|
-
obj_displayable_union0 = obj_displayable_union0_error.message;
|
|
7325
|
-
}
|
|
7326
|
-
let obj_displayable_union1 = null;
|
|
7327
|
-
const obj_displayable_union1_error = (() => {
|
|
7328
|
-
if (obj_displayable !== null) {
|
|
7329
|
-
return new TypeError('Expected "null" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
|
|
7330
|
-
}
|
|
7331
|
-
})();
|
|
7332
|
-
if (obj_displayable_union1_error != null) {
|
|
7333
|
-
obj_displayable_union1 = obj_displayable_union1_error.message;
|
|
7334
|
-
}
|
|
7335
|
-
if (obj_displayable_union0 && obj_displayable_union1) {
|
|
7336
|
-
let message = 'Object doesn\'t match union (at "' + path_displayable + '")';
|
|
7337
|
-
message += '\n' + obj_displayable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7338
|
-
message += '\n' + obj_displayable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7339
|
-
return new TypeError(message);
|
|
7249
|
+
if (typeof obj_displayable !== 'boolean') {
|
|
7250
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_displayable + '" (at "' + path_displayable + '")');
|
|
7340
7251
|
}
|
|
7341
7252
|
}
|
|
7342
7253
|
if (obj.excludedFromPlanner !== undefined) {
|
|
7343
7254
|
const obj_excludedFromPlanner = obj.excludedFromPlanner;
|
|
7344
7255
|
const path_excludedFromPlanner = path + '.excludedFromPlanner';
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
if (typeof obj_excludedFromPlanner !== 'boolean') {
|
|
7348
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
|
|
7349
|
-
}
|
|
7350
|
-
})();
|
|
7351
|
-
if (obj_excludedFromPlanner_union0_error != null) {
|
|
7352
|
-
obj_excludedFromPlanner_union0 = obj_excludedFromPlanner_union0_error.message;
|
|
7353
|
-
}
|
|
7354
|
-
let obj_excludedFromPlanner_union1 = null;
|
|
7355
|
-
const obj_excludedFromPlanner_union1_error = (() => {
|
|
7356
|
-
if (obj_excludedFromPlanner !== null) {
|
|
7357
|
-
return new TypeError('Expected "null" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
|
|
7358
|
-
}
|
|
7359
|
-
})();
|
|
7360
|
-
if (obj_excludedFromPlanner_union1_error != null) {
|
|
7361
|
-
obj_excludedFromPlanner_union1 = obj_excludedFromPlanner_union1_error.message;
|
|
7362
|
-
}
|
|
7363
|
-
if (obj_excludedFromPlanner_union0 && obj_excludedFromPlanner_union1) {
|
|
7364
|
-
let message = 'Object doesn\'t match union (at "' + path_excludedFromPlanner + '")';
|
|
7365
|
-
message += '\n' + obj_excludedFromPlanner_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7366
|
-
message += '\n' + obj_excludedFromPlanner_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7367
|
-
return new TypeError(message);
|
|
7256
|
+
if (typeof obj_excludedFromPlanner !== 'boolean') {
|
|
7257
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_excludedFromPlanner + '" (at "' + path_excludedFromPlanner + '")');
|
|
7368
7258
|
}
|
|
7369
7259
|
}
|
|
7370
7260
|
if (obj.isPersIdentInfo !== undefined) {
|
|
7371
7261
|
const obj_isPersIdentInfo = obj.isPersIdentInfo;
|
|
7372
7262
|
const path_isPersIdentInfo = path + '.isPersIdentInfo';
|
|
7373
|
-
|
|
7374
|
-
|
|
7375
|
-
if (typeof obj_isPersIdentInfo !== 'boolean') {
|
|
7376
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
|
|
7377
|
-
}
|
|
7378
|
-
})();
|
|
7379
|
-
if (obj_isPersIdentInfo_union0_error != null) {
|
|
7380
|
-
obj_isPersIdentInfo_union0 = obj_isPersIdentInfo_union0_error.message;
|
|
7381
|
-
}
|
|
7382
|
-
let obj_isPersIdentInfo_union1 = null;
|
|
7383
|
-
const obj_isPersIdentInfo_union1_error = (() => {
|
|
7384
|
-
if (obj_isPersIdentInfo !== null) {
|
|
7385
|
-
return new TypeError('Expected "null" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
|
|
7386
|
-
}
|
|
7387
|
-
})();
|
|
7388
|
-
if (obj_isPersIdentInfo_union1_error != null) {
|
|
7389
|
-
obj_isPersIdentInfo_union1 = obj_isPersIdentInfo_union1_error.message;
|
|
7390
|
-
}
|
|
7391
|
-
if (obj_isPersIdentInfo_union0 && obj_isPersIdentInfo_union1) {
|
|
7392
|
-
let message = 'Object doesn\'t match union (at "' + path_isPersIdentInfo + '")';
|
|
7393
|
-
message += '\n' + obj_isPersIdentInfo_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7394
|
-
message += '\n' + obj_isPersIdentInfo_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7395
|
-
return new TypeError(message);
|
|
7263
|
+
if (typeof obj_isPersIdentInfo !== 'boolean') {
|
|
7264
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPersIdentInfo + '" (at "' + path_isPersIdentInfo + '")');
|
|
7396
7265
|
}
|
|
7397
7266
|
}
|
|
7398
7267
|
if (obj.itemsDataType !== undefined) {
|
|
7399
7268
|
const obj_itemsDataType = obj.itemsDataType;
|
|
7400
7269
|
const path_itemsDataType = path + '.itemsDataType';
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
if (typeof obj_itemsDataType !== 'string') {
|
|
7404
|
-
return new TypeError('Expected "string" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
|
|
7405
|
-
}
|
|
7406
|
-
})();
|
|
7407
|
-
if (obj_itemsDataType_union0_error != null) {
|
|
7408
|
-
obj_itemsDataType_union0 = obj_itemsDataType_union0_error.message;
|
|
7409
|
-
}
|
|
7410
|
-
let obj_itemsDataType_union1 = null;
|
|
7411
|
-
const obj_itemsDataType_union1_error = (() => {
|
|
7412
|
-
if (obj_itemsDataType !== null) {
|
|
7413
|
-
return new TypeError('Expected "null" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
|
|
7414
|
-
}
|
|
7415
|
-
})();
|
|
7416
|
-
if (obj_itemsDataType_union1_error != null) {
|
|
7417
|
-
obj_itemsDataType_union1 = obj_itemsDataType_union1_error.message;
|
|
7418
|
-
}
|
|
7419
|
-
if (obj_itemsDataType_union0 && obj_itemsDataType_union1) {
|
|
7420
|
-
let message = 'Object doesn\'t match union (at "' + path_itemsDataType + '")';
|
|
7421
|
-
message += '\n' + obj_itemsDataType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7422
|
-
message += '\n' + obj_itemsDataType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7423
|
-
return new TypeError(message);
|
|
7270
|
+
if (typeof obj_itemsDataType !== 'string') {
|
|
7271
|
+
return new TypeError('Expected "string" but received "' + typeof obj_itemsDataType + '" (at "' + path_itemsDataType + '")');
|
|
7424
7272
|
}
|
|
7425
7273
|
}
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
const obj_label_union0_error = (() => {
|
|
7431
|
-
if (typeof obj_label !== 'string') {
|
|
7432
|
-
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
7433
|
-
}
|
|
7434
|
-
})();
|
|
7435
|
-
if (obj_label_union0_error != null) {
|
|
7436
|
-
obj_label_union0 = obj_label_union0_error.message;
|
|
7437
|
-
}
|
|
7438
|
-
let obj_label_union1 = null;
|
|
7439
|
-
const obj_label_union1_error = (() => {
|
|
7440
|
-
if (obj_label !== null) {
|
|
7441
|
-
return new TypeError('Expected "null" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
7442
|
-
}
|
|
7443
|
-
})();
|
|
7444
|
-
if (obj_label_union1_error != null) {
|
|
7445
|
-
obj_label_union1 = obj_label_union1_error.message;
|
|
7446
|
-
}
|
|
7447
|
-
if (obj_label_union0 && obj_label_union1) {
|
|
7448
|
-
let message = 'Object doesn\'t match union (at "' + path_label + '")';
|
|
7449
|
-
message += '\n' + obj_label_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7450
|
-
message += '\n' + obj_label_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7451
|
-
return new TypeError(message);
|
|
7452
|
-
}
|
|
7274
|
+
const obj_label = obj.label;
|
|
7275
|
+
const path_label = path + '.label';
|
|
7276
|
+
if (typeof obj_label !== 'string') {
|
|
7277
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
7453
7278
|
}
|
|
7454
|
-
|
|
7455
|
-
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
const obj_mappingType_union0_error = (() => {
|
|
7459
|
-
if (typeof obj_mappingType !== 'string') {
|
|
7460
|
-
return new TypeError('Expected "string" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
|
|
7461
|
-
}
|
|
7462
|
-
})();
|
|
7463
|
-
if (obj_mappingType_union0_error != null) {
|
|
7464
|
-
obj_mappingType_union0 = obj_mappingType_union0_error.message;
|
|
7465
|
-
}
|
|
7466
|
-
let obj_mappingType_union1 = null;
|
|
7467
|
-
const obj_mappingType_union1_error = (() => {
|
|
7468
|
-
if (obj_mappingType !== null) {
|
|
7469
|
-
return new TypeError('Expected "null" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
|
|
7470
|
-
}
|
|
7471
|
-
})();
|
|
7472
|
-
if (obj_mappingType_union1_error != null) {
|
|
7473
|
-
obj_mappingType_union1 = obj_mappingType_union1_error.message;
|
|
7474
|
-
}
|
|
7475
|
-
if (obj_mappingType_union0 && obj_mappingType_union1) {
|
|
7476
|
-
let message = 'Object doesn\'t match union (at "' + path_mappingType + '")';
|
|
7477
|
-
message += '\n' + obj_mappingType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7478
|
-
message += '\n' + obj_mappingType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7479
|
-
return new TypeError(message);
|
|
7480
|
-
}
|
|
7279
|
+
const obj_mappingType = obj.mappingType;
|
|
7280
|
+
const path_mappingType = path + '.mappingType';
|
|
7281
|
+
if (typeof obj_mappingType !== 'string') {
|
|
7282
|
+
return new TypeError('Expected "string" but received "' + typeof obj_mappingType + '" (at "' + path_mappingType + '")');
|
|
7481
7283
|
}
|
|
7482
7284
|
if (obj.maxItems !== undefined) {
|
|
7483
7285
|
const obj_maxItems = obj.maxItems;
|
|
7484
7286
|
const path_maxItems = path + '.maxItems';
|
|
7485
|
-
|
|
7486
|
-
|
|
7487
|
-
if (typeof obj_maxItems !== 'number' || (typeof obj_maxItems === 'number' && Math.floor(obj_maxItems) !== obj_maxItems)) {
|
|
7488
|
-
return new TypeError('Expected "integer" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
|
|
7489
|
-
}
|
|
7490
|
-
})();
|
|
7491
|
-
if (obj_maxItems_union0_error != null) {
|
|
7492
|
-
obj_maxItems_union0 = obj_maxItems_union0_error.message;
|
|
7493
|
-
}
|
|
7494
|
-
let obj_maxItems_union1 = null;
|
|
7495
|
-
const obj_maxItems_union1_error = (() => {
|
|
7496
|
-
if (obj_maxItems !== null) {
|
|
7497
|
-
return new TypeError('Expected "null" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
|
|
7498
|
-
}
|
|
7499
|
-
})();
|
|
7500
|
-
if (obj_maxItems_union1_error != null) {
|
|
7501
|
-
obj_maxItems_union1 = obj_maxItems_union1_error.message;
|
|
7502
|
-
}
|
|
7503
|
-
if (obj_maxItems_union0 && obj_maxItems_union1) {
|
|
7504
|
-
let message = 'Object doesn\'t match union (at "' + path_maxItems + '")';
|
|
7505
|
-
message += '\n' + obj_maxItems_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7506
|
-
message += '\n' + obj_maxItems_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7507
|
-
return new TypeError(message);
|
|
7287
|
+
if (typeof obj_maxItems !== 'number' || (typeof obj_maxItems === 'number' && Math.floor(obj_maxItems) !== obj_maxItems)) {
|
|
7288
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_maxItems + '" (at "' + path_maxItems + '")');
|
|
7508
7289
|
}
|
|
7509
7290
|
}
|
|
7510
7291
|
if (obj.required !== undefined) {
|
|
7511
7292
|
const obj_required = obj.required;
|
|
7512
7293
|
const path_required = path + '.required';
|
|
7513
|
-
|
|
7514
|
-
|
|
7515
|
-
if (typeof obj_required !== 'boolean') {
|
|
7516
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
7517
|
-
}
|
|
7518
|
-
})();
|
|
7519
|
-
if (obj_required_union0_error != null) {
|
|
7520
|
-
obj_required_union0 = obj_required_union0_error.message;
|
|
7521
|
-
}
|
|
7522
|
-
let obj_required_union1 = null;
|
|
7523
|
-
const obj_required_union1_error = (() => {
|
|
7524
|
-
if (obj_required !== null) {
|
|
7525
|
-
return new TypeError('Expected "null" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
7526
|
-
}
|
|
7527
|
-
})();
|
|
7528
|
-
if (obj_required_union1_error != null) {
|
|
7529
|
-
obj_required_union1 = obj_required_union1_error.message;
|
|
7530
|
-
}
|
|
7531
|
-
if (obj_required_union0 && obj_required_union1) {
|
|
7532
|
-
let message = 'Object doesn\'t match union (at "' + path_required + '")';
|
|
7533
|
-
message += '\n' + obj_required_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7534
|
-
message += '\n' + obj_required_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7535
|
-
return new TypeError(message);
|
|
7294
|
+
if (typeof obj_required !== 'boolean') {
|
|
7295
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_required + '" (at "' + path_required + '")');
|
|
7536
7296
|
}
|
|
7537
7297
|
}
|
|
7538
|
-
|
|
7539
|
-
|
|
7540
|
-
|
|
7541
|
-
|
|
7542
|
-
const obj_title_union0_error = (() => {
|
|
7543
|
-
if (typeof obj_title !== 'string') {
|
|
7544
|
-
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
7545
|
-
}
|
|
7546
|
-
})();
|
|
7547
|
-
if (obj_title_union0_error != null) {
|
|
7548
|
-
obj_title_union0 = obj_title_union0_error.message;
|
|
7549
|
-
}
|
|
7550
|
-
let obj_title_union1 = null;
|
|
7551
|
-
const obj_title_union1_error = (() => {
|
|
7552
|
-
if (obj_title !== null) {
|
|
7553
|
-
return new TypeError('Expected "null" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
7554
|
-
}
|
|
7555
|
-
})();
|
|
7556
|
-
if (obj_title_union1_error != null) {
|
|
7557
|
-
obj_title_union1 = obj_title_union1_error.message;
|
|
7558
|
-
}
|
|
7559
|
-
if (obj_title_union0 && obj_title_union1) {
|
|
7560
|
-
let message = 'Object doesn\'t match union (at "' + path_title + '")';
|
|
7561
|
-
message += '\n' + obj_title_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7562
|
-
message += '\n' + obj_title_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7563
|
-
return new TypeError(message);
|
|
7564
|
-
}
|
|
7298
|
+
const obj_title = obj.title;
|
|
7299
|
+
const path_title = path + '.title';
|
|
7300
|
+
if (typeof obj_title !== 'string') {
|
|
7301
|
+
return new TypeError('Expected "string" but received "' + typeof obj_title + '" (at "' + path_title + '")');
|
|
7565
7302
|
}
|
|
7566
7303
|
if (obj.userInput !== undefined) {
|
|
7567
7304
|
const obj_userInput = obj.userInput;
|
|
7568
7305
|
const path_userInput = path + '.userInput';
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
if (typeof obj_userInput !== 'boolean') {
|
|
7572
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
|
|
7573
|
-
}
|
|
7574
|
-
})();
|
|
7575
|
-
if (obj_userInput_union0_error != null) {
|
|
7576
|
-
obj_userInput_union0 = obj_userInput_union0_error.message;
|
|
7577
|
-
}
|
|
7578
|
-
let obj_userInput_union1 = null;
|
|
7579
|
-
const obj_userInput_union1_error = (() => {
|
|
7580
|
-
if (obj_userInput !== null) {
|
|
7581
|
-
return new TypeError('Expected "null" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
|
|
7582
|
-
}
|
|
7583
|
-
})();
|
|
7584
|
-
if (obj_userInput_union1_error != null) {
|
|
7585
|
-
obj_userInput_union1 = obj_userInput_union1_error.message;
|
|
7586
|
-
}
|
|
7587
|
-
if (obj_userInput_union0 && obj_userInput_union1) {
|
|
7588
|
-
let message = 'Object doesn\'t match union (at "' + path_userInput + '")';
|
|
7589
|
-
message += '\n' + obj_userInput_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7590
|
-
message += '\n' + obj_userInput_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7591
|
-
return new TypeError(message);
|
|
7306
|
+
if (typeof obj_userInput !== 'boolean') {
|
|
7307
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_userInput + '" (at "' + path_userInput + '")');
|
|
7592
7308
|
}
|
|
7593
7309
|
}
|
|
7594
7310
|
})();
|
|
7595
7311
|
return v_error === undefined ? null : v_error;
|
|
7596
7312
|
}
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7313
|
+
const select$f = function AgentActionAttributeOutputRepresentationSelect() {
|
|
7314
|
+
return {
|
|
7315
|
+
kind: 'Fragment',
|
|
7316
|
+
version: VERSION$8,
|
|
7317
|
+
private: [],
|
|
7318
|
+
selections: [
|
|
7319
|
+
{
|
|
7320
|
+
name: 'dataType',
|
|
7321
|
+
kind: 'Scalar'
|
|
7322
|
+
},
|
|
7323
|
+
{
|
|
7324
|
+
name: 'description',
|
|
7325
|
+
kind: 'Scalar'
|
|
7326
|
+
},
|
|
7327
|
+
{
|
|
7328
|
+
name: 'developerName',
|
|
7329
|
+
kind: 'Scalar'
|
|
7330
|
+
},
|
|
7331
|
+
{
|
|
7332
|
+
name: 'displayable',
|
|
7333
|
+
kind: 'Scalar',
|
|
7334
|
+
required: false
|
|
7335
|
+
},
|
|
7336
|
+
{
|
|
7337
|
+
name: 'excludedFromPlanner',
|
|
7338
|
+
kind: 'Scalar',
|
|
7339
|
+
required: false
|
|
7340
|
+
},
|
|
7341
|
+
{
|
|
7342
|
+
name: 'isPersIdentInfo',
|
|
7343
|
+
kind: 'Scalar',
|
|
7344
|
+
required: false
|
|
7345
|
+
},
|
|
7346
|
+
{
|
|
7347
|
+
name: 'itemsDataType',
|
|
7348
|
+
kind: 'Scalar',
|
|
7349
|
+
required: false
|
|
7350
|
+
},
|
|
7351
|
+
{
|
|
7352
|
+
name: 'label',
|
|
7353
|
+
kind: 'Scalar'
|
|
7354
|
+
},
|
|
7355
|
+
{
|
|
7356
|
+
name: 'mappingType',
|
|
7357
|
+
kind: 'Scalar'
|
|
7358
|
+
},
|
|
7359
|
+
{
|
|
7360
|
+
name: 'maxItems',
|
|
7361
|
+
kind: 'Scalar',
|
|
7362
|
+
required: false
|
|
7363
|
+
},
|
|
7364
|
+
{
|
|
7365
|
+
name: 'required',
|
|
7366
|
+
kind: 'Scalar',
|
|
7367
|
+
required: false
|
|
7368
|
+
},
|
|
7369
|
+
{
|
|
7370
|
+
name: 'title',
|
|
7371
|
+
kind: 'Scalar'
|
|
7372
|
+
},
|
|
7373
|
+
{
|
|
7374
|
+
name: 'userInput',
|
|
7375
|
+
kind: 'Scalar',
|
|
7376
|
+
required: false
|
|
7618
7377
|
}
|
|
7378
|
+
]
|
|
7379
|
+
};
|
|
7380
|
+
};
|
|
7381
|
+
function equals$8(existing, incoming) {
|
|
7382
|
+
const existing_displayable = existing.displayable;
|
|
7383
|
+
const incoming_displayable = incoming.displayable;
|
|
7384
|
+
// if at least one of these optionals is defined
|
|
7385
|
+
if (existing_displayable !== undefined || incoming_displayable !== undefined) {
|
|
7386
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7387
|
+
// not equal
|
|
7388
|
+
if (existing_displayable === undefined || incoming_displayable === undefined) {
|
|
7389
|
+
return false;
|
|
7619
7390
|
}
|
|
7620
|
-
if (
|
|
7621
|
-
|
|
7622
|
-
const path_description = path + '.description';
|
|
7623
|
-
let obj_description_union0 = null;
|
|
7624
|
-
const obj_description_union0_error = (() => {
|
|
7625
|
-
if (typeof obj_description !== 'string') {
|
|
7626
|
-
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7627
|
-
}
|
|
7628
|
-
})();
|
|
7629
|
-
if (obj_description_union0_error != null) {
|
|
7630
|
-
obj_description_union0 = obj_description_union0_error.message;
|
|
7631
|
-
}
|
|
7632
|
-
let obj_description_union1 = null;
|
|
7633
|
-
const obj_description_union1_error = (() => {
|
|
7634
|
-
if (obj_description !== null) {
|
|
7635
|
-
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7636
|
-
}
|
|
7637
|
-
})();
|
|
7638
|
-
if (obj_description_union1_error != null) {
|
|
7639
|
-
obj_description_union1 = obj_description_union1_error.message;
|
|
7640
|
-
}
|
|
7641
|
-
if (obj_description_union0 && obj_description_union1) {
|
|
7642
|
-
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
7643
|
-
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7644
|
-
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7645
|
-
return new TypeError(message);
|
|
7646
|
-
}
|
|
7391
|
+
if (!(existing_displayable === incoming_displayable)) {
|
|
7392
|
+
return false;
|
|
7647
7393
|
}
|
|
7648
|
-
|
|
7649
|
-
|
|
7650
|
-
|
|
7651
|
-
|
|
7652
|
-
|
|
7653
|
-
|
|
7654
|
-
|
|
7655
|
-
|
|
7656
|
-
|
|
7657
|
-
if (obj_developerName_union0_error != null) {
|
|
7658
|
-
obj_developerName_union0 = obj_developerName_union0_error.message;
|
|
7659
|
-
}
|
|
7660
|
-
let obj_developerName_union1 = null;
|
|
7661
|
-
const obj_developerName_union1_error = (() => {
|
|
7662
|
-
if (obj_developerName !== null) {
|
|
7663
|
-
return new TypeError('Expected "null" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
7664
|
-
}
|
|
7665
|
-
})();
|
|
7666
|
-
if (obj_developerName_union1_error != null) {
|
|
7667
|
-
obj_developerName_union1 = obj_developerName_union1_error.message;
|
|
7668
|
-
}
|
|
7669
|
-
if (obj_developerName_union0 && obj_developerName_union1) {
|
|
7670
|
-
let message = 'Object doesn\'t match union (at "' + path_developerName + '")';
|
|
7671
|
-
message += '\n' + obj_developerName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7672
|
-
message += '\n' + obj_developerName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7673
|
-
return new TypeError(message);
|
|
7674
|
-
}
|
|
7394
|
+
}
|
|
7395
|
+
const existing_excludedFromPlanner = existing.excludedFromPlanner;
|
|
7396
|
+
const incoming_excludedFromPlanner = incoming.excludedFromPlanner;
|
|
7397
|
+
// if at least one of these optionals is defined
|
|
7398
|
+
if (existing_excludedFromPlanner !== undefined || incoming_excludedFromPlanner !== undefined) {
|
|
7399
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7400
|
+
// not equal
|
|
7401
|
+
if (existing_excludedFromPlanner === undefined || incoming_excludedFromPlanner === undefined) {
|
|
7402
|
+
return false;
|
|
7675
7403
|
}
|
|
7676
|
-
if (
|
|
7677
|
-
|
|
7678
|
-
|
|
7679
|
-
|
|
7680
|
-
|
|
7681
|
-
|
|
7682
|
-
|
|
7683
|
-
|
|
7684
|
-
|
|
7685
|
-
|
|
7686
|
-
|
|
7687
|
-
|
|
7688
|
-
|
|
7689
|
-
|
|
7690
|
-
|
|
7691
|
-
|
|
7692
|
-
|
|
7693
|
-
|
|
7694
|
-
|
|
7695
|
-
|
|
7696
|
-
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7404
|
+
if (!(existing_excludedFromPlanner === incoming_excludedFromPlanner)) {
|
|
7405
|
+
return false;
|
|
7406
|
+
}
|
|
7407
|
+
}
|
|
7408
|
+
const existing_isPersIdentInfo = existing.isPersIdentInfo;
|
|
7409
|
+
const incoming_isPersIdentInfo = incoming.isPersIdentInfo;
|
|
7410
|
+
// if at least one of these optionals is defined
|
|
7411
|
+
if (existing_isPersIdentInfo !== undefined || incoming_isPersIdentInfo !== undefined) {
|
|
7412
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7413
|
+
// not equal
|
|
7414
|
+
if (existing_isPersIdentInfo === undefined || incoming_isPersIdentInfo === undefined) {
|
|
7415
|
+
return false;
|
|
7416
|
+
}
|
|
7417
|
+
if (!(existing_isPersIdentInfo === incoming_isPersIdentInfo)) {
|
|
7418
|
+
return false;
|
|
7419
|
+
}
|
|
7420
|
+
}
|
|
7421
|
+
const existing_required = existing.required;
|
|
7422
|
+
const incoming_required = incoming.required;
|
|
7423
|
+
// if at least one of these optionals is defined
|
|
7424
|
+
if (existing_required !== undefined || incoming_required !== undefined) {
|
|
7425
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7426
|
+
// not equal
|
|
7427
|
+
if (existing_required === undefined || incoming_required === undefined) {
|
|
7428
|
+
return false;
|
|
7429
|
+
}
|
|
7430
|
+
if (!(existing_required === incoming_required)) {
|
|
7431
|
+
return false;
|
|
7432
|
+
}
|
|
7433
|
+
}
|
|
7434
|
+
const existing_userInput = existing.userInput;
|
|
7435
|
+
const incoming_userInput = incoming.userInput;
|
|
7436
|
+
// if at least one of these optionals is defined
|
|
7437
|
+
if (existing_userInput !== undefined || incoming_userInput !== undefined) {
|
|
7438
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7439
|
+
// not equal
|
|
7440
|
+
if (existing_userInput === undefined || incoming_userInput === undefined) {
|
|
7441
|
+
return false;
|
|
7442
|
+
}
|
|
7443
|
+
if (!(existing_userInput === incoming_userInput)) {
|
|
7444
|
+
return false;
|
|
7445
|
+
}
|
|
7446
|
+
}
|
|
7447
|
+
const existing_maxItems = existing.maxItems;
|
|
7448
|
+
const incoming_maxItems = incoming.maxItems;
|
|
7449
|
+
// if at least one of these optionals is defined
|
|
7450
|
+
if (existing_maxItems !== undefined || incoming_maxItems !== undefined) {
|
|
7451
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7452
|
+
// not equal
|
|
7453
|
+
if (existing_maxItems === undefined || incoming_maxItems === undefined) {
|
|
7454
|
+
return false;
|
|
7455
|
+
}
|
|
7456
|
+
if (!(existing_maxItems === incoming_maxItems)) {
|
|
7457
|
+
return false;
|
|
7458
|
+
}
|
|
7459
|
+
}
|
|
7460
|
+
const existing_dataType = existing.dataType;
|
|
7461
|
+
const incoming_dataType = incoming.dataType;
|
|
7462
|
+
if (!(existing_dataType === incoming_dataType)) {
|
|
7463
|
+
return false;
|
|
7464
|
+
}
|
|
7465
|
+
const existing_description = existing.description;
|
|
7466
|
+
const incoming_description = incoming.description;
|
|
7467
|
+
if (!(existing_description === incoming_description)) {
|
|
7468
|
+
return false;
|
|
7469
|
+
}
|
|
7470
|
+
const existing_developerName = existing.developerName;
|
|
7471
|
+
const incoming_developerName = incoming.developerName;
|
|
7472
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
7473
|
+
return false;
|
|
7474
|
+
}
|
|
7475
|
+
const existing_itemsDataType = existing.itemsDataType;
|
|
7476
|
+
const incoming_itemsDataType = incoming.itemsDataType;
|
|
7477
|
+
// if at least one of these optionals is defined
|
|
7478
|
+
if (existing_itemsDataType !== undefined || incoming_itemsDataType !== undefined) {
|
|
7479
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7480
|
+
// not equal
|
|
7481
|
+
if (existing_itemsDataType === undefined || incoming_itemsDataType === undefined) {
|
|
7482
|
+
return false;
|
|
7483
|
+
}
|
|
7484
|
+
if (!(existing_itemsDataType === incoming_itemsDataType)) {
|
|
7485
|
+
return false;
|
|
7486
|
+
}
|
|
7487
|
+
}
|
|
7488
|
+
const existing_label = existing.label;
|
|
7489
|
+
const incoming_label = incoming.label;
|
|
7490
|
+
if (!(existing_label === incoming_label)) {
|
|
7491
|
+
return false;
|
|
7492
|
+
}
|
|
7493
|
+
const existing_mappingType = existing.mappingType;
|
|
7494
|
+
const incoming_mappingType = incoming.mappingType;
|
|
7495
|
+
if (!(existing_mappingType === incoming_mappingType)) {
|
|
7496
|
+
return false;
|
|
7497
|
+
}
|
|
7498
|
+
const existing_title = existing.title;
|
|
7499
|
+
const incoming_title = incoming.title;
|
|
7500
|
+
if (!(existing_title === incoming_title)) {
|
|
7501
|
+
return false;
|
|
7502
|
+
}
|
|
7503
|
+
return true;
|
|
7504
|
+
}
|
|
7505
|
+
|
|
7506
|
+
const TTL$5 = 500;
|
|
7507
|
+
const VERSION$7 = "0a5a9a38d481c4e8bad16be490eacce9";
|
|
7508
|
+
function validate$7(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
7509
|
+
const v_error = (() => {
|
|
7510
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7511
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7512
|
+
}
|
|
7513
|
+
const obj_attributes = obj.attributes;
|
|
7514
|
+
const path_attributes = path + '.attributes';
|
|
7515
|
+
if (!ArrayIsArray(obj_attributes)) {
|
|
7516
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributes + '" (at "' + path_attributes + '")');
|
|
7517
|
+
}
|
|
7518
|
+
for (let i = 0; i < obj_attributes.length; i++) {
|
|
7519
|
+
const obj_attributes_item = obj_attributes[i];
|
|
7520
|
+
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
7521
|
+
const referencepath_attributes_itemValidationError = validate$8(obj_attributes_item, path_attributes_item);
|
|
7522
|
+
if (referencepath_attributes_itemValidationError !== null) {
|
|
7523
|
+
let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
7524
|
+
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7701
7525
|
return new TypeError(message);
|
|
7702
7526
|
}
|
|
7703
7527
|
}
|
|
7528
|
+
const obj_description = obj.description;
|
|
7529
|
+
const path_description = path + '.description';
|
|
7530
|
+
if (typeof obj_description !== 'string') {
|
|
7531
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
7532
|
+
}
|
|
7533
|
+
const obj_developerName = obj.developerName;
|
|
7534
|
+
const path_developerName = path + '.developerName';
|
|
7535
|
+
if (typeof obj_developerName !== 'string') {
|
|
7536
|
+
return new TypeError('Expected "string" but received "' + typeof obj_developerName + '" (at "' + path_developerName + '")');
|
|
7537
|
+
}
|
|
7538
|
+
const obj_id = obj.id;
|
|
7539
|
+
const path_id = path + '.id';
|
|
7540
|
+
if (typeof obj_id !== 'string') {
|
|
7541
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
7542
|
+
}
|
|
7704
7543
|
if (obj.includeInProgressIndicator !== undefined) {
|
|
7705
7544
|
const obj_includeInProgressIndicator = obj.includeInProgressIndicator;
|
|
7706
7545
|
const path_includeInProgressIndicator = path + '.includeInProgressIndicator';
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
if (typeof obj_includeInProgressIndicator !== 'boolean') {
|
|
7710
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
|
|
7711
|
-
}
|
|
7712
|
-
})();
|
|
7713
|
-
if (obj_includeInProgressIndicator_union0_error != null) {
|
|
7714
|
-
obj_includeInProgressIndicator_union0 = obj_includeInProgressIndicator_union0_error.message;
|
|
7715
|
-
}
|
|
7716
|
-
let obj_includeInProgressIndicator_union1 = null;
|
|
7717
|
-
const obj_includeInProgressIndicator_union1_error = (() => {
|
|
7718
|
-
if (obj_includeInProgressIndicator !== null) {
|
|
7719
|
-
return new TypeError('Expected "null" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
|
|
7720
|
-
}
|
|
7721
|
-
})();
|
|
7722
|
-
if (obj_includeInProgressIndicator_union1_error != null) {
|
|
7723
|
-
obj_includeInProgressIndicator_union1 = obj_includeInProgressIndicator_union1_error.message;
|
|
7724
|
-
}
|
|
7725
|
-
if (obj_includeInProgressIndicator_union0 && obj_includeInProgressIndicator_union1) {
|
|
7726
|
-
let message = 'Object doesn\'t match union (at "' + path_includeInProgressIndicator + '")';
|
|
7727
|
-
message += '\n' + obj_includeInProgressIndicator_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7728
|
-
message += '\n' + obj_includeInProgressIndicator_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7729
|
-
return new TypeError(message);
|
|
7546
|
+
if (typeof obj_includeInProgressIndicator !== 'boolean') {
|
|
7547
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_includeInProgressIndicator + '" (at "' + path_includeInProgressIndicator + '")');
|
|
7730
7548
|
}
|
|
7731
7549
|
}
|
|
7732
7550
|
if (obj.invocationTarget !== undefined) {
|
|
7733
7551
|
const obj_invocationTarget = obj.invocationTarget;
|
|
7734
7552
|
const path_invocationTarget = path + '.invocationTarget';
|
|
7735
|
-
|
|
7736
|
-
|
|
7737
|
-
if (typeof obj_invocationTarget !== 'string') {
|
|
7738
|
-
return new TypeError('Expected "string" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
|
|
7739
|
-
}
|
|
7740
|
-
})();
|
|
7741
|
-
if (obj_invocationTarget_union0_error != null) {
|
|
7742
|
-
obj_invocationTarget_union0 = obj_invocationTarget_union0_error.message;
|
|
7743
|
-
}
|
|
7744
|
-
let obj_invocationTarget_union1 = null;
|
|
7745
|
-
const obj_invocationTarget_union1_error = (() => {
|
|
7746
|
-
if (obj_invocationTarget !== null) {
|
|
7747
|
-
return new TypeError('Expected "null" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
|
|
7748
|
-
}
|
|
7749
|
-
})();
|
|
7750
|
-
if (obj_invocationTarget_union1_error != null) {
|
|
7751
|
-
obj_invocationTarget_union1 = obj_invocationTarget_union1_error.message;
|
|
7752
|
-
}
|
|
7753
|
-
if (obj_invocationTarget_union0 && obj_invocationTarget_union1) {
|
|
7754
|
-
let message = 'Object doesn\'t match union (at "' + path_invocationTarget + '")';
|
|
7755
|
-
message += '\n' + obj_invocationTarget_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7756
|
-
message += '\n' + obj_invocationTarget_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7757
|
-
return new TypeError(message);
|
|
7553
|
+
if (typeof obj_invocationTarget !== 'string') {
|
|
7554
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTarget + '" (at "' + path_invocationTarget + '")');
|
|
7758
7555
|
}
|
|
7759
7556
|
}
|
|
7760
7557
|
if (obj.invocationTargetId !== undefined) {
|
|
7761
7558
|
const obj_invocationTargetId = obj.invocationTargetId;
|
|
7762
7559
|
const path_invocationTargetId = path + '.invocationTargetId';
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
if (typeof obj_invocationTargetId !== 'string') {
|
|
7766
|
-
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
|
|
7767
|
-
}
|
|
7768
|
-
})();
|
|
7769
|
-
if (obj_invocationTargetId_union0_error != null) {
|
|
7770
|
-
obj_invocationTargetId_union0 = obj_invocationTargetId_union0_error.message;
|
|
7560
|
+
if (typeof obj_invocationTargetId !== 'string') {
|
|
7561
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetId + '" (at "' + path_invocationTargetId + '")');
|
|
7771
7562
|
}
|
|
7772
|
-
|
|
7773
|
-
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7779
|
-
|
|
7563
|
+
}
|
|
7564
|
+
const obj_invocationTargetType = obj.invocationTargetType;
|
|
7565
|
+
const path_invocationTargetType = path + '.invocationTargetType';
|
|
7566
|
+
if (typeof obj_invocationTargetType !== 'string') {
|
|
7567
|
+
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
|
|
7568
|
+
}
|
|
7569
|
+
const obj_label = obj.label;
|
|
7570
|
+
const path_label = path + '.label';
|
|
7571
|
+
if (typeof obj_label !== 'string') {
|
|
7572
|
+
return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
|
|
7573
|
+
}
|
|
7574
|
+
if (obj.namespace !== undefined) {
|
|
7575
|
+
const obj_namespace = obj.namespace;
|
|
7576
|
+
const path_namespace = path + '.namespace';
|
|
7577
|
+
if (typeof obj_namespace !== 'string') {
|
|
7578
|
+
return new TypeError('Expected "string" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
7780
7579
|
}
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7580
|
+
}
|
|
7581
|
+
if (obj.progressIndicatorMessage !== undefined) {
|
|
7582
|
+
const obj_progressIndicatorMessage = obj.progressIndicatorMessage;
|
|
7583
|
+
const path_progressIndicatorMessage = path + '.progressIndicatorMessage';
|
|
7584
|
+
if (typeof obj_progressIndicatorMessage !== 'string') {
|
|
7585
|
+
return new TypeError('Expected "string" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
|
|
7786
7586
|
}
|
|
7787
7587
|
}
|
|
7788
|
-
if (obj.
|
|
7789
|
-
const
|
|
7790
|
-
const
|
|
7791
|
-
|
|
7792
|
-
|
|
7793
|
-
if (typeof obj_invocationTargetType !== 'string') {
|
|
7794
|
-
return new TypeError('Expected "string" but received "' + typeof obj_invocationTargetType + '" (at "' + path_invocationTargetType + '")');
|
|
7795
|
-
}
|
|
7796
|
-
})();
|
|
7797
|
-
if (obj_invocationTargetType_union0_error != null) {
|
|
7798
|
-
obj_invocationTargetType_union0 = obj_invocationTargetType_union0_error.message;
|
|
7588
|
+
if (obj.userConfirmationRequired !== undefined) {
|
|
7589
|
+
const obj_userConfirmationRequired = obj.userConfirmationRequired;
|
|
7590
|
+
const path_userConfirmationRequired = path + '.userConfirmationRequired';
|
|
7591
|
+
if (typeof obj_userConfirmationRequired !== 'boolean') {
|
|
7592
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
|
|
7799
7593
|
}
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7803
|
-
|
|
7804
|
-
|
|
7805
|
-
|
|
7806
|
-
|
|
7807
|
-
|
|
7594
|
+
}
|
|
7595
|
+
})();
|
|
7596
|
+
return v_error === undefined ? null : v_error;
|
|
7597
|
+
}
|
|
7598
|
+
const RepresentationType$6 = 'EinsteinAgentActionOutputRepresentation';
|
|
7599
|
+
function keyBuilder$8(luvio, config) {
|
|
7600
|
+
return keyPrefix + '::' + RepresentationType$6 + ':' + config.id;
|
|
7601
|
+
}
|
|
7602
|
+
function keyBuilderFromType$4(luvio, object) {
|
|
7603
|
+
const keyParams = {
|
|
7604
|
+
id: object.id
|
|
7605
|
+
};
|
|
7606
|
+
return keyBuilder$8(luvio, keyParams);
|
|
7607
|
+
}
|
|
7608
|
+
function normalize$6(input, existing, path, luvio, store, timestamp) {
|
|
7609
|
+
return input;
|
|
7610
|
+
}
|
|
7611
|
+
const select$e = function EinsteinAgentActionOutputRepresentationSelect() {
|
|
7612
|
+
const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$f();
|
|
7613
|
+
return {
|
|
7614
|
+
kind: 'Fragment',
|
|
7615
|
+
version: VERSION$7,
|
|
7616
|
+
private: [],
|
|
7617
|
+
selections: [
|
|
7618
|
+
{
|
|
7619
|
+
name: 'attributes',
|
|
7620
|
+
kind: 'Object',
|
|
7621
|
+
plural: true,
|
|
7622
|
+
selections: AgentActionAttributeOutputRepresentation__selections
|
|
7623
|
+
},
|
|
7624
|
+
{
|
|
7625
|
+
name: 'description',
|
|
7626
|
+
kind: 'Scalar'
|
|
7627
|
+
},
|
|
7628
|
+
{
|
|
7629
|
+
name: 'developerName',
|
|
7630
|
+
kind: 'Scalar'
|
|
7631
|
+
},
|
|
7632
|
+
{
|
|
7633
|
+
name: 'id',
|
|
7634
|
+
kind: 'Scalar'
|
|
7635
|
+
},
|
|
7636
|
+
{
|
|
7637
|
+
name: 'includeInProgressIndicator',
|
|
7638
|
+
kind: 'Scalar',
|
|
7639
|
+
required: false
|
|
7640
|
+
},
|
|
7641
|
+
{
|
|
7642
|
+
name: 'invocationTarget',
|
|
7643
|
+
kind: 'Scalar',
|
|
7644
|
+
required: false
|
|
7645
|
+
},
|
|
7646
|
+
{
|
|
7647
|
+
name: 'invocationTargetId',
|
|
7648
|
+
kind: 'Scalar',
|
|
7649
|
+
required: false
|
|
7650
|
+
},
|
|
7651
|
+
{
|
|
7652
|
+
name: 'invocationTargetType',
|
|
7653
|
+
kind: 'Scalar'
|
|
7654
|
+
},
|
|
7655
|
+
{
|
|
7656
|
+
name: 'label',
|
|
7657
|
+
kind: 'Scalar'
|
|
7658
|
+
},
|
|
7659
|
+
{
|
|
7660
|
+
name: 'namespace',
|
|
7661
|
+
kind: 'Scalar',
|
|
7662
|
+
required: false
|
|
7663
|
+
},
|
|
7664
|
+
{
|
|
7665
|
+
name: 'progressIndicatorMessage',
|
|
7666
|
+
kind: 'Scalar',
|
|
7667
|
+
required: false
|
|
7668
|
+
},
|
|
7669
|
+
{
|
|
7670
|
+
name: 'userConfirmationRequired',
|
|
7671
|
+
kind: 'Scalar',
|
|
7672
|
+
required: false
|
|
7808
7673
|
}
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
|
|
7674
|
+
]
|
|
7675
|
+
};
|
|
7676
|
+
};
|
|
7677
|
+
function equals$7(existing, incoming) {
|
|
7678
|
+
const existing_includeInProgressIndicator = existing.includeInProgressIndicator;
|
|
7679
|
+
const incoming_includeInProgressIndicator = incoming.includeInProgressIndicator;
|
|
7680
|
+
// if at least one of these optionals is defined
|
|
7681
|
+
if (existing_includeInProgressIndicator !== undefined || incoming_includeInProgressIndicator !== undefined) {
|
|
7682
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7683
|
+
// not equal
|
|
7684
|
+
if (existing_includeInProgressIndicator === undefined || incoming_includeInProgressIndicator === undefined) {
|
|
7685
|
+
return false;
|
|
7686
|
+
}
|
|
7687
|
+
if (!(existing_includeInProgressIndicator === incoming_includeInProgressIndicator)) {
|
|
7688
|
+
return false;
|
|
7689
|
+
}
|
|
7690
|
+
}
|
|
7691
|
+
const existing_userConfirmationRequired = existing.userConfirmationRequired;
|
|
7692
|
+
const incoming_userConfirmationRequired = incoming.userConfirmationRequired;
|
|
7693
|
+
// if at least one of these optionals is defined
|
|
7694
|
+
if (existing_userConfirmationRequired !== undefined || incoming_userConfirmationRequired !== undefined) {
|
|
7695
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7696
|
+
// not equal
|
|
7697
|
+
if (existing_userConfirmationRequired === undefined || incoming_userConfirmationRequired === undefined) {
|
|
7698
|
+
return false;
|
|
7699
|
+
}
|
|
7700
|
+
if (!(existing_userConfirmationRequired === incoming_userConfirmationRequired)) {
|
|
7701
|
+
return false;
|
|
7702
|
+
}
|
|
7703
|
+
}
|
|
7704
|
+
const existing_description = existing.description;
|
|
7705
|
+
const incoming_description = incoming.description;
|
|
7706
|
+
if (!(existing_description === incoming_description)) {
|
|
7707
|
+
return false;
|
|
7708
|
+
}
|
|
7709
|
+
const existing_developerName = existing.developerName;
|
|
7710
|
+
const incoming_developerName = incoming.developerName;
|
|
7711
|
+
if (!(existing_developerName === incoming_developerName)) {
|
|
7712
|
+
return false;
|
|
7713
|
+
}
|
|
7714
|
+
const existing_id = existing.id;
|
|
7715
|
+
const incoming_id = incoming.id;
|
|
7716
|
+
if (!(existing_id === incoming_id)) {
|
|
7717
|
+
return false;
|
|
7718
|
+
}
|
|
7719
|
+
const existing_invocationTarget = existing.invocationTarget;
|
|
7720
|
+
const incoming_invocationTarget = incoming.invocationTarget;
|
|
7721
|
+
// if at least one of these optionals is defined
|
|
7722
|
+
if (existing_invocationTarget !== undefined || incoming_invocationTarget !== undefined) {
|
|
7723
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7724
|
+
// not equal
|
|
7725
|
+
if (existing_invocationTarget === undefined || incoming_invocationTarget === undefined) {
|
|
7726
|
+
return false;
|
|
7727
|
+
}
|
|
7728
|
+
if (!(existing_invocationTarget === incoming_invocationTarget)) {
|
|
7729
|
+
return false;
|
|
7730
|
+
}
|
|
7731
|
+
}
|
|
7732
|
+
const existing_invocationTargetId = existing.invocationTargetId;
|
|
7733
|
+
const incoming_invocationTargetId = incoming.invocationTargetId;
|
|
7734
|
+
// if at least one of these optionals is defined
|
|
7735
|
+
if (existing_invocationTargetId !== undefined || incoming_invocationTargetId !== undefined) {
|
|
7736
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7737
|
+
// not equal
|
|
7738
|
+
if (existing_invocationTargetId === undefined || incoming_invocationTargetId === undefined) {
|
|
7739
|
+
return false;
|
|
7740
|
+
}
|
|
7741
|
+
if (!(existing_invocationTargetId === incoming_invocationTargetId)) {
|
|
7742
|
+
return false;
|
|
7743
|
+
}
|
|
7744
|
+
}
|
|
7745
|
+
const existing_invocationTargetType = existing.invocationTargetType;
|
|
7746
|
+
const incoming_invocationTargetType = incoming.invocationTargetType;
|
|
7747
|
+
if (!(existing_invocationTargetType === incoming_invocationTargetType)) {
|
|
7748
|
+
return false;
|
|
7749
|
+
}
|
|
7750
|
+
const existing_label = existing.label;
|
|
7751
|
+
const incoming_label = incoming.label;
|
|
7752
|
+
if (!(existing_label === incoming_label)) {
|
|
7753
|
+
return false;
|
|
7754
|
+
}
|
|
7755
|
+
const existing_namespace = existing.namespace;
|
|
7756
|
+
const incoming_namespace = incoming.namespace;
|
|
7757
|
+
// if at least one of these optionals is defined
|
|
7758
|
+
if (existing_namespace !== undefined || incoming_namespace !== undefined) {
|
|
7759
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7760
|
+
// not equal
|
|
7761
|
+
if (existing_namespace === undefined || incoming_namespace === undefined) {
|
|
7762
|
+
return false;
|
|
7763
|
+
}
|
|
7764
|
+
if (!(existing_namespace === incoming_namespace)) {
|
|
7765
|
+
return false;
|
|
7766
|
+
}
|
|
7767
|
+
}
|
|
7768
|
+
const existing_progressIndicatorMessage = existing.progressIndicatorMessage;
|
|
7769
|
+
const incoming_progressIndicatorMessage = incoming.progressIndicatorMessage;
|
|
7770
|
+
// if at least one of these optionals is defined
|
|
7771
|
+
if (existing_progressIndicatorMessage !== undefined || incoming_progressIndicatorMessage !== undefined) {
|
|
7772
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7773
|
+
// not equal
|
|
7774
|
+
if (existing_progressIndicatorMessage === undefined || incoming_progressIndicatorMessage === undefined) {
|
|
7775
|
+
return false;
|
|
7776
|
+
}
|
|
7777
|
+
if (!(existing_progressIndicatorMessage === incoming_progressIndicatorMessage)) {
|
|
7778
|
+
return false;
|
|
7779
|
+
}
|
|
7780
|
+
}
|
|
7781
|
+
const existing_attributes = existing.attributes;
|
|
7782
|
+
const incoming_attributes = incoming.attributes;
|
|
7783
|
+
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
7784
|
+
if (!(equals$8(existing_attributes_item, incoming_attributes_item))) {
|
|
7785
|
+
return false;
|
|
7786
|
+
}
|
|
7787
|
+
});
|
|
7788
|
+
if (equals_attributes_items === false) {
|
|
7789
|
+
return false;
|
|
7790
|
+
}
|
|
7791
|
+
return true;
|
|
7792
|
+
}
|
|
7793
|
+
const ingest$6 = function EinsteinAgentActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7794
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7795
|
+
const validateError = validate$7(input);
|
|
7796
|
+
if (validateError !== null) {
|
|
7797
|
+
throw validateError;
|
|
7798
|
+
}
|
|
7799
|
+
}
|
|
7800
|
+
const key = keyBuilderFromType$4(luvio, input);
|
|
7801
|
+
const ttlToUse = TTL$5;
|
|
7802
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$6, "ecm", VERSION$7, RepresentationType$6, equals$7);
|
|
7803
|
+
return createLink(key);
|
|
7804
|
+
};
|
|
7805
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
7806
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7807
|
+
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
7808
|
+
rootKeySet.set(rootKey, {
|
|
7809
|
+
namespace: keyPrefix,
|
|
7810
|
+
representationName: RepresentationType$6,
|
|
7811
|
+
mergeable: false
|
|
7812
|
+
});
|
|
7813
|
+
}
|
|
7814
|
+
|
|
7815
|
+
const TTL$4 = 600000;
|
|
7816
|
+
const VERSION$6 = "1cea7e031c1a82331a586394e722ad24";
|
|
7817
|
+
function validate$6(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
7818
|
+
const v_error = (() => {
|
|
7819
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7820
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7821
|
+
}
|
|
7822
|
+
const obj_actions = obj.actions;
|
|
7823
|
+
const path_actions = path + '.actions';
|
|
7824
|
+
if (!ArrayIsArray(obj_actions)) {
|
|
7825
|
+
return new TypeError('Expected "array" but received "' + typeof obj_actions + '" (at "' + path_actions + '")');
|
|
7826
|
+
}
|
|
7827
|
+
for (let i = 0; i < obj_actions.length; i++) {
|
|
7828
|
+
const obj_actions_item = obj_actions[i];
|
|
7829
|
+
const path_actions_item = path_actions + '[' + i + ']';
|
|
7830
|
+
const referencepath_actions_itemValidationError = validate$7(obj_actions_item, path_actions_item);
|
|
7831
|
+
if (referencepath_actions_itemValidationError !== null) {
|
|
7832
|
+
let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
|
|
7833
|
+
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
7813
7834
|
return new TypeError(message);
|
|
7814
7835
|
}
|
|
7815
7836
|
}
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
|
|
7823
|
-
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7834
|
-
|
|
7835
|
-
|
|
7836
|
-
|
|
7837
|
-
|
|
7838
|
-
|
|
7839
|
-
|
|
7840
|
-
|
|
7841
|
-
|
|
7842
|
-
|
|
7837
|
+
})();
|
|
7838
|
+
return v_error === undefined ? null : v_error;
|
|
7839
|
+
}
|
|
7840
|
+
const RepresentationType$5 = 'EinsteinAgentActionsOutputRepresentation';
|
|
7841
|
+
function normalize$5(input, existing, path, luvio, store, timestamp) {
|
|
7842
|
+
return input;
|
|
7843
|
+
}
|
|
7844
|
+
const select$d = function EinsteinAgentActionsOutputRepresentationSelect() {
|
|
7845
|
+
return {
|
|
7846
|
+
kind: 'Fragment',
|
|
7847
|
+
version: VERSION$6,
|
|
7848
|
+
private: [],
|
|
7849
|
+
opaque: true
|
|
7850
|
+
};
|
|
7851
|
+
};
|
|
7852
|
+
function equals$6(existing, incoming) {
|
|
7853
|
+
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
7854
|
+
return false;
|
|
7855
|
+
}
|
|
7856
|
+
return true;
|
|
7857
|
+
}
|
|
7858
|
+
const ingest$5 = function EinsteinAgentActionsOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7859
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7860
|
+
const validateError = validate$6(input);
|
|
7861
|
+
if (validateError !== null) {
|
|
7862
|
+
throw validateError;
|
|
7863
|
+
}
|
|
7864
|
+
}
|
|
7865
|
+
const key = path.fullPath;
|
|
7866
|
+
const ttlToUse = TTL$4;
|
|
7867
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$5, "ecm", VERSION$6, RepresentationType$5, equals$6);
|
|
7868
|
+
return createLink(key);
|
|
7869
|
+
};
|
|
7870
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
7871
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7872
|
+
const rootKey = fullPathFactory();
|
|
7873
|
+
rootKeySet.set(rootKey, {
|
|
7874
|
+
namespace: keyPrefix,
|
|
7875
|
+
representationName: RepresentationType$5,
|
|
7876
|
+
mergeable: false
|
|
7877
|
+
});
|
|
7878
|
+
}
|
|
7879
|
+
|
|
7880
|
+
function select$c(luvio, params) {
|
|
7881
|
+
return select$d();
|
|
7882
|
+
}
|
|
7883
|
+
function keyBuilder$7(luvio, params) {
|
|
7884
|
+
return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
|
|
7885
|
+
}
|
|
7886
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
7887
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
|
|
7888
|
+
}
|
|
7889
|
+
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
7890
|
+
const { body } = response;
|
|
7891
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
7892
|
+
luvio.storeIngest(key, ingest$5, body);
|
|
7893
|
+
const snapshot = luvio.storeLookup({
|
|
7894
|
+
recordId: key,
|
|
7895
|
+
node: select$c(),
|
|
7896
|
+
variables: {},
|
|
7897
|
+
}, snapshotRefresh);
|
|
7898
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7899
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
7900
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
7901
|
+
}
|
|
7902
|
+
}
|
|
7903
|
+
deepFreeze(snapshot.data);
|
|
7904
|
+
return snapshot;
|
|
7905
|
+
}
|
|
7906
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
7907
|
+
const key = keyBuilder$7(luvio, params);
|
|
7908
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7909
|
+
const storeMetadataParams = {
|
|
7910
|
+
ttl: TTL$4,
|
|
7911
|
+
namespace: keyPrefix,
|
|
7912
|
+
version: VERSION$6,
|
|
7913
|
+
representationName: RepresentationType$5
|
|
7914
|
+
};
|
|
7915
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
7916
|
+
return errorSnapshot;
|
|
7917
|
+
}
|
|
7918
|
+
function createResourceRequest$6(config) {
|
|
7919
|
+
const headers = {};
|
|
7920
|
+
return {
|
|
7921
|
+
baseUri: '/services/data/v65.0',
|
|
7922
|
+
basePath: '/connect/service-automation/gen-ai/actions',
|
|
7923
|
+
method: 'get',
|
|
7924
|
+
body: null,
|
|
7925
|
+
urlParams: {},
|
|
7926
|
+
queryParams: config.queryParams,
|
|
7927
|
+
headers,
|
|
7928
|
+
priority: 'normal',
|
|
7929
|
+
};
|
|
7930
|
+
}
|
|
7931
|
+
|
|
7932
|
+
const adapterName$6 = 'getAgentActions';
|
|
7933
|
+
const getAgentActions_ConfigPropertyMetadata = [
|
|
7934
|
+
generateParamConfigMetadata('actionDevName', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7935
|
+
generateParamConfigMetadata('resourceType', false, 1 /* QueryParameter */, 0 /* String */),
|
|
7936
|
+
];
|
|
7937
|
+
const getAgentActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, getAgentActions_ConfigPropertyMetadata);
|
|
7938
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$d(getAgentActions_ConfigPropertyMetadata);
|
|
7939
|
+
function keyBuilder$6(luvio, config) {
|
|
7940
|
+
const resourceParams = createResourceParams$6(config);
|
|
7941
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
7942
|
+
}
|
|
7943
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
7944
|
+
const config = {};
|
|
7945
|
+
typeCheckConfig$d(untrustedConfig, config, getAgentActions_ConfigPropertyMetadata);
|
|
7946
|
+
return config;
|
|
7947
|
+
}
|
|
7948
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
7949
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7950
|
+
return null;
|
|
7951
|
+
}
|
|
7952
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7953
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7954
|
+
}
|
|
7955
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
7956
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7957
|
+
return null;
|
|
7958
|
+
}
|
|
7959
|
+
return config;
|
|
7960
|
+
}
|
|
7961
|
+
function adapterFragment$1(luvio, config) {
|
|
7962
|
+
createResourceParams$6(config);
|
|
7963
|
+
return select$c();
|
|
7964
|
+
}
|
|
7965
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
7966
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response, {
|
|
7967
|
+
config,
|
|
7968
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7969
|
+
});
|
|
7970
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7971
|
+
}
|
|
7972
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
7973
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
7974
|
+
config,
|
|
7975
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
7976
|
+
});
|
|
7977
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7978
|
+
}
|
|
7979
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
7980
|
+
const resourceParams = createResourceParams$6(config);
|
|
7981
|
+
const request = createResourceRequest$6(resourceParams);
|
|
7982
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7983
|
+
.then((response) => {
|
|
7984
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
7985
|
+
const cache = new StoreKeyMap();
|
|
7986
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
7987
|
+
return cache;
|
|
7988
|
+
});
|
|
7989
|
+
}, (response) => {
|
|
7990
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
7991
|
+
});
|
|
7992
|
+
}
|
|
7993
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
7994
|
+
return buildNetworkSnapshotCachePolicy$5(context, coercedAdapterRequestContext, buildNetworkSnapshot$6, undefined, false);
|
|
7995
|
+
}
|
|
7996
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
7997
|
+
const { luvio, config } = context;
|
|
7998
|
+
const selector = {
|
|
7999
|
+
recordId: keyBuilder$6(luvio, config),
|
|
8000
|
+
node: adapterFragment$1(luvio, config),
|
|
8001
|
+
variables: {},
|
|
8002
|
+
};
|
|
8003
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
8004
|
+
config,
|
|
8005
|
+
resolve: () => buildNetworkSnapshot$6(luvio, config, snapshotRefreshOptions)
|
|
8006
|
+
});
|
|
8007
|
+
return cacheSnapshot;
|
|
8008
|
+
}
|
|
8009
|
+
const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
|
|
8010
|
+
const config = validateAdapterConfig$6(untrustedConfig, getAgentActions_ConfigPropertyNames);
|
|
8011
|
+
// Invalid or incomplete config
|
|
8012
|
+
if (config === null) {
|
|
8013
|
+
return null;
|
|
8014
|
+
}
|
|
8015
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
8016
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
8017
|
+
};
|
|
8018
|
+
|
|
8019
|
+
function select$b(luvio, params) {
|
|
8020
|
+
return select$e();
|
|
8021
|
+
}
|
|
8022
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
8023
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response);
|
|
8024
|
+
}
|
|
8025
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
8026
|
+
const { body } = response;
|
|
8027
|
+
const key = keyBuilderFromType$4(luvio, body);
|
|
8028
|
+
luvio.storeIngest(key, ingest$6, body);
|
|
8029
|
+
const snapshot = luvio.storeLookup({
|
|
8030
|
+
recordId: key,
|
|
8031
|
+
node: select$b(),
|
|
8032
|
+
variables: {},
|
|
8033
|
+
});
|
|
8034
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8035
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
8036
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
8037
|
+
}
|
|
8038
|
+
}
|
|
8039
|
+
deepFreeze(snapshot.data);
|
|
8040
|
+
return snapshot;
|
|
8041
|
+
}
|
|
8042
|
+
function createResourceRequest$5(config) {
|
|
8043
|
+
const headers = {};
|
|
8044
|
+
return {
|
|
8045
|
+
baseUri: '/services/data/v65.0',
|
|
8046
|
+
basePath: '/connect/service-automation/gen-ai/actions',
|
|
8047
|
+
method: 'post',
|
|
8048
|
+
body: config.body,
|
|
8049
|
+
urlParams: {},
|
|
8050
|
+
queryParams: {},
|
|
8051
|
+
headers,
|
|
8052
|
+
priority: 'normal',
|
|
8053
|
+
};
|
|
8054
|
+
}
|
|
8055
|
+
|
|
8056
|
+
const adapterName$5 = 'createAgentAction';
|
|
8057
|
+
const createAgentAction_ConfigPropertyMetadata = [
|
|
8058
|
+
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
8059
|
+
generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
|
|
8060
|
+
generateParamConfigMetadata('invocationTargetIdentifier', true, 2 /* Body */, 0 /* String */),
|
|
8061
|
+
generateParamConfigMetadata('invocationTargetType', true, 2 /* Body */, 0 /* String */),
|
|
8062
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
8063
|
+
generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
|
|
8064
|
+
];
|
|
8065
|
+
const createAgentAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, createAgentAction_ConfigPropertyMetadata);
|
|
8066
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$d(createAgentAction_ConfigPropertyMetadata);
|
|
8067
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
8068
|
+
const config = {};
|
|
8069
|
+
typeCheckConfig$d(untrustedConfig, config, createAgentAction_ConfigPropertyMetadata);
|
|
8070
|
+
return config;
|
|
8071
|
+
}
|
|
8072
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
8073
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
8074
|
+
return null;
|
|
8075
|
+
}
|
|
8076
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
8077
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
8078
|
+
}
|
|
8079
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
8080
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
8081
|
+
return null;
|
|
8082
|
+
}
|
|
8083
|
+
return config;
|
|
8084
|
+
}
|
|
8085
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
8086
|
+
const resourceParams = createResourceParams$5(config);
|
|
8087
|
+
const request = createResourceRequest$5(resourceParams);
|
|
8088
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
8089
|
+
.then((response) => {
|
|
8090
|
+
return luvio.handleSuccessResponse(() => {
|
|
8091
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
8092
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
8093
|
+
}, () => {
|
|
8094
|
+
const cache = new StoreKeyMap();
|
|
8095
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
8096
|
+
return cache;
|
|
8097
|
+
});
|
|
8098
|
+
}, (response) => {
|
|
8099
|
+
deepFreeze(response);
|
|
8100
|
+
throw response;
|
|
8101
|
+
});
|
|
8102
|
+
}
|
|
8103
|
+
const createAgentActionAdapterFactory = (luvio) => {
|
|
8104
|
+
return function createAgentAction(untrustedConfig) {
|
|
8105
|
+
const config = validateAdapterConfig$5(untrustedConfig, createAgentAction_ConfigPropertyNames);
|
|
8106
|
+
// Invalid or incomplete config
|
|
8107
|
+
if (config === null) {
|
|
8108
|
+
throw new Error('Invalid config for "createAgentAction"');
|
|
7843
8109
|
}
|
|
7844
|
-
|
|
7845
|
-
|
|
7846
|
-
|
|
7847
|
-
|
|
7848
|
-
|
|
7849
|
-
|
|
7850
|
-
|
|
7851
|
-
|
|
7852
|
-
|
|
7853
|
-
if (obj_namespace_union0_error != null) {
|
|
7854
|
-
obj_namespace_union0 = obj_namespace_union0_error.message;
|
|
7855
|
-
}
|
|
7856
|
-
let obj_namespace_union1 = null;
|
|
7857
|
-
const obj_namespace_union1_error = (() => {
|
|
7858
|
-
if (obj_namespace !== null) {
|
|
7859
|
-
return new TypeError('Expected "null" but received "' + typeof obj_namespace + '" (at "' + path_namespace + '")');
|
|
7860
|
-
}
|
|
7861
|
-
})();
|
|
7862
|
-
if (obj_namespace_union1_error != null) {
|
|
7863
|
-
obj_namespace_union1 = obj_namespace_union1_error.message;
|
|
7864
|
-
}
|
|
7865
|
-
if (obj_namespace_union0 && obj_namespace_union1) {
|
|
7866
|
-
let message = 'Object doesn\'t match union (at "' + path_namespace + '")';
|
|
7867
|
-
message += '\n' + obj_namespace_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7868
|
-
message += '\n' + obj_namespace_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7869
|
-
return new TypeError(message);
|
|
7870
|
-
}
|
|
8110
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
8111
|
+
};
|
|
8112
|
+
};
|
|
8113
|
+
|
|
8114
|
+
const VERSION$5 = "c9311edc4dc08a9830891f1c8b6ec195";
|
|
8115
|
+
function validate$5(obj, path = 'AgentFlowStatusOutputRepresentation') {
|
|
8116
|
+
const v_error = (() => {
|
|
8117
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
8118
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7871
8119
|
}
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
const obj_progressIndicatorMessage_union0_error = (() => {
|
|
7877
|
-
if (typeof obj_progressIndicatorMessage !== 'string') {
|
|
7878
|
-
return new TypeError('Expected "string" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
|
|
7879
|
-
}
|
|
7880
|
-
})();
|
|
7881
|
-
if (obj_progressIndicatorMessage_union0_error != null) {
|
|
7882
|
-
obj_progressIndicatorMessage_union0 = obj_progressIndicatorMessage_union0_error.message;
|
|
7883
|
-
}
|
|
7884
|
-
let obj_progressIndicatorMessage_union1 = null;
|
|
7885
|
-
const obj_progressIndicatorMessage_union1_error = (() => {
|
|
7886
|
-
if (obj_progressIndicatorMessage !== null) {
|
|
7887
|
-
return new TypeError('Expected "null" but received "' + typeof obj_progressIndicatorMessage + '" (at "' + path_progressIndicatorMessage + '")');
|
|
7888
|
-
}
|
|
7889
|
-
})();
|
|
7890
|
-
if (obj_progressIndicatorMessage_union1_error != null) {
|
|
7891
|
-
obj_progressIndicatorMessage_union1 = obj_progressIndicatorMessage_union1_error.message;
|
|
7892
|
-
}
|
|
7893
|
-
if (obj_progressIndicatorMessage_union0 && obj_progressIndicatorMessage_union1) {
|
|
7894
|
-
let message = 'Object doesn\'t match union (at "' + path_progressIndicatorMessage + '")';
|
|
7895
|
-
message += '\n' + obj_progressIndicatorMessage_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7896
|
-
message += '\n' + obj_progressIndicatorMessage_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7897
|
-
return new TypeError(message);
|
|
7898
|
-
}
|
|
8120
|
+
const obj_code = obj.code;
|
|
8121
|
+
const path_code = path + '.code';
|
|
8122
|
+
if (typeof obj_code !== 'number' || (typeof obj_code === 'number' && Math.floor(obj_code) !== obj_code)) {
|
|
8123
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_code + '" (at "' + path_code + '")');
|
|
7899
8124
|
}
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7904
|
-
const obj_userConfirmationRequired_union0_error = (() => {
|
|
7905
|
-
if (typeof obj_userConfirmationRequired !== 'boolean') {
|
|
7906
|
-
return new TypeError('Expected "boolean" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
|
|
7907
|
-
}
|
|
7908
|
-
})();
|
|
7909
|
-
if (obj_userConfirmationRequired_union0_error != null) {
|
|
7910
|
-
obj_userConfirmationRequired_union0 = obj_userConfirmationRequired_union0_error.message;
|
|
7911
|
-
}
|
|
7912
|
-
let obj_userConfirmationRequired_union1 = null;
|
|
7913
|
-
const obj_userConfirmationRequired_union1_error = (() => {
|
|
7914
|
-
if (obj_userConfirmationRequired !== null) {
|
|
7915
|
-
return new TypeError('Expected "null" but received "' + typeof obj_userConfirmationRequired + '" (at "' + path_userConfirmationRequired + '")');
|
|
7916
|
-
}
|
|
7917
|
-
})();
|
|
7918
|
-
if (obj_userConfirmationRequired_union1_error != null) {
|
|
7919
|
-
obj_userConfirmationRequired_union1 = obj_userConfirmationRequired_union1_error.message;
|
|
7920
|
-
}
|
|
7921
|
-
if (obj_userConfirmationRequired_union0 && obj_userConfirmationRequired_union1) {
|
|
7922
|
-
let message = 'Object doesn\'t match union (at "' + path_userConfirmationRequired + '")';
|
|
7923
|
-
message += '\n' + obj_userConfirmationRequired_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
7924
|
-
message += '\n' + obj_userConfirmationRequired_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
7925
|
-
return new TypeError(message);
|
|
7926
|
-
}
|
|
8125
|
+
const obj_message = obj.message;
|
|
8126
|
+
const path_message = path + '.message';
|
|
8127
|
+
if (typeof obj_message !== 'string') {
|
|
8128
|
+
return new TypeError('Expected "string" but received "' + typeof obj_message + '" (at "' + path_message + '")');
|
|
7927
8129
|
}
|
|
7928
8130
|
})();
|
|
7929
8131
|
return v_error === undefined ? null : v_error;
|
|
7930
8132
|
}
|
|
8133
|
+
const select$a = function AgentFlowStatusOutputRepresentationSelect() {
|
|
8134
|
+
return {
|
|
8135
|
+
kind: 'Fragment',
|
|
8136
|
+
version: VERSION$5,
|
|
8137
|
+
private: [],
|
|
8138
|
+
selections: [
|
|
8139
|
+
{
|
|
8140
|
+
name: 'code',
|
|
8141
|
+
kind: 'Scalar'
|
|
8142
|
+
},
|
|
8143
|
+
{
|
|
8144
|
+
name: 'message',
|
|
8145
|
+
kind: 'Scalar'
|
|
8146
|
+
}
|
|
8147
|
+
]
|
|
8148
|
+
};
|
|
8149
|
+
};
|
|
8150
|
+
function equals$5(existing, incoming) {
|
|
8151
|
+
const existing_code = existing.code;
|
|
8152
|
+
const incoming_code = incoming.code;
|
|
8153
|
+
if (!(existing_code === incoming_code)) {
|
|
8154
|
+
return false;
|
|
8155
|
+
}
|
|
8156
|
+
const existing_message = existing.message;
|
|
8157
|
+
const incoming_message = incoming.message;
|
|
8158
|
+
if (!(existing_message === incoming_message)) {
|
|
8159
|
+
return false;
|
|
8160
|
+
}
|
|
8161
|
+
return true;
|
|
8162
|
+
}
|
|
7931
8163
|
|
|
7932
|
-
const TTL$3 =
|
|
7933
|
-
const VERSION$4 = "
|
|
7934
|
-
function validate$4(obj, path = '
|
|
8164
|
+
const TTL$3 = 500;
|
|
8165
|
+
const VERSION$4 = "8339c78dc2e1e22eb9203102eba6a7e8";
|
|
8166
|
+
function validate$4(obj, path = 'AgentFlowOutputRepresentation') {
|
|
7935
8167
|
const v_error = (() => {
|
|
7936
8168
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7937
8169
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7938
8170
|
}
|
|
7939
|
-
|
|
7940
|
-
|
|
7941
|
-
|
|
7942
|
-
|
|
7943
|
-
|
|
7944
|
-
|
|
7945
|
-
|
|
7946
|
-
|
|
7947
|
-
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
|
|
7952
|
-
|
|
7953
|
-
|
|
7954
|
-
|
|
8171
|
+
const obj_flowDefinitionId = obj.flowDefinitionId;
|
|
8172
|
+
const path_flowDefinitionId = path + '.flowDefinitionId';
|
|
8173
|
+
if (typeof obj_flowDefinitionId !== 'string') {
|
|
8174
|
+
return new TypeError('Expected "string" but received "' + typeof obj_flowDefinitionId + '" (at "' + path_flowDefinitionId + '")');
|
|
8175
|
+
}
|
|
8176
|
+
const obj_flowLatestVersionId = obj.flowLatestVersionId;
|
|
8177
|
+
const path_flowLatestVersionId = path + '.flowLatestVersionId';
|
|
8178
|
+
if (typeof obj_flowLatestVersionId !== 'string') {
|
|
8179
|
+
return new TypeError('Expected "string" but received "' + typeof obj_flowLatestVersionId + '" (at "' + path_flowLatestVersionId + '")');
|
|
8180
|
+
}
|
|
8181
|
+
const obj_isActive = obj.isActive;
|
|
8182
|
+
const path_isActive = path + '.isActive';
|
|
8183
|
+
if (typeof obj_isActive !== 'boolean') {
|
|
8184
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isActive + '" (at "' + path_isActive + '")');
|
|
8185
|
+
}
|
|
8186
|
+
const obj_status = obj.status;
|
|
8187
|
+
const path_status = path + '.status';
|
|
8188
|
+
const referencepath_statusValidationError = validate$5(obj_status, path_status);
|
|
8189
|
+
if (referencepath_statusValidationError !== null) {
|
|
8190
|
+
let message = 'Object doesn\'t match AgentFlowStatusOutputRepresentation (at "' + path_status + '")\n';
|
|
8191
|
+
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
8192
|
+
return new TypeError(message);
|
|
7955
8193
|
}
|
|
7956
8194
|
})();
|
|
7957
8195
|
return v_error === undefined ? null : v_error;
|
|
7958
8196
|
}
|
|
7959
|
-
const RepresentationType$4 = '
|
|
8197
|
+
const RepresentationType$4 = 'AgentFlowOutputRepresentation';
|
|
8198
|
+
function keyBuilder$5(luvio, config) {
|
|
8199
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + config.id;
|
|
8200
|
+
}
|
|
8201
|
+
function keyBuilderFromType$3(luvio, object) {
|
|
8202
|
+
const keyParams = {
|
|
8203
|
+
id: object.flowDefinitionId
|
|
8204
|
+
};
|
|
8205
|
+
return keyBuilder$5(luvio, keyParams);
|
|
8206
|
+
}
|
|
7960
8207
|
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
7961
8208
|
return input;
|
|
7962
8209
|
}
|
|
7963
|
-
const select$9 = function
|
|
8210
|
+
const select$9 = function AgentFlowOutputRepresentationSelect() {
|
|
8211
|
+
const { selections: AgentFlowStatusOutputRepresentation__selections, opaque: AgentFlowStatusOutputRepresentation__opaque, } = select$a();
|
|
7964
8212
|
return {
|
|
7965
8213
|
kind: 'Fragment',
|
|
7966
8214
|
version: VERSION$4,
|
|
7967
8215
|
private: [],
|
|
7968
|
-
|
|
8216
|
+
selections: [
|
|
8217
|
+
{
|
|
8218
|
+
name: 'flowDefinitionId',
|
|
8219
|
+
kind: 'Scalar'
|
|
8220
|
+
},
|
|
8221
|
+
{
|
|
8222
|
+
name: 'flowLatestVersionId',
|
|
8223
|
+
kind: 'Scalar'
|
|
8224
|
+
},
|
|
8225
|
+
{
|
|
8226
|
+
name: 'isActive',
|
|
8227
|
+
kind: 'Scalar'
|
|
8228
|
+
},
|
|
8229
|
+
{
|
|
8230
|
+
name: 'status',
|
|
8231
|
+
kind: 'Object',
|
|
8232
|
+
selections: AgentFlowStatusOutputRepresentation__selections
|
|
8233
|
+
}
|
|
8234
|
+
]
|
|
7969
8235
|
};
|
|
7970
8236
|
};
|
|
7971
8237
|
function equals$4(existing, incoming) {
|
|
7972
|
-
|
|
8238
|
+
const existing_isActive = existing.isActive;
|
|
8239
|
+
const incoming_isActive = incoming.isActive;
|
|
8240
|
+
if (!(existing_isActive === incoming_isActive)) {
|
|
8241
|
+
return false;
|
|
8242
|
+
}
|
|
8243
|
+
const existing_flowDefinitionId = existing.flowDefinitionId;
|
|
8244
|
+
const incoming_flowDefinitionId = incoming.flowDefinitionId;
|
|
8245
|
+
if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
|
|
8246
|
+
return false;
|
|
8247
|
+
}
|
|
8248
|
+
const existing_flowLatestVersionId = existing.flowLatestVersionId;
|
|
8249
|
+
const incoming_flowLatestVersionId = incoming.flowLatestVersionId;
|
|
8250
|
+
if (!(existing_flowLatestVersionId === incoming_flowLatestVersionId)) {
|
|
8251
|
+
return false;
|
|
8252
|
+
}
|
|
8253
|
+
const existing_status = existing.status;
|
|
8254
|
+
const incoming_status = incoming.status;
|
|
8255
|
+
if (!(equals$5(existing_status, incoming_status))) {
|
|
7973
8256
|
return false;
|
|
7974
8257
|
}
|
|
7975
8258
|
return true;
|
|
7976
8259
|
}
|
|
7977
|
-
const ingest$4 = function
|
|
8260
|
+
const ingest$4 = function AgentFlowOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7978
8261
|
if (process.env.NODE_ENV !== 'production') {
|
|
7979
8262
|
const validateError = validate$4(input);
|
|
7980
8263
|
if (validateError !== null) {
|
|
7981
8264
|
throw validateError;
|
|
7982
8265
|
}
|
|
7983
8266
|
}
|
|
7984
|
-
const key =
|
|
8267
|
+
const key = keyBuilderFromType$3(luvio, input);
|
|
7985
8268
|
const ttlToUse = TTL$3;
|
|
7986
8269
|
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
|
|
7987
8270
|
return createLink(key);
|
|
7988
8271
|
};
|
|
7989
8272
|
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
7990
8273
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7991
|
-
const rootKey =
|
|
8274
|
+
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
7992
8275
|
rootKeySet.set(rootKey, {
|
|
7993
8276
|
namespace: keyPrefix,
|
|
7994
8277
|
representationName: RepresentationType$4,
|
|
@@ -7999,21 +8282,18 @@ function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7999
8282
|
function select$8(luvio, params) {
|
|
8000
8283
|
return select$9();
|
|
8001
8284
|
}
|
|
8002
|
-
function keyBuilder$6(luvio, params) {
|
|
8003
|
-
return keyPrefix + '::EinsteinAgentActionsOutputRepresentation:(' + 'actionDevName:' + params.queryParams.actionDevName + ',' + 'resourceType:' + params.queryParams.resourceType + ')';
|
|
8004
|
-
}
|
|
8005
8285
|
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
8006
|
-
getTypeCacheKeys$4(storeKeyMap, luvio, response
|
|
8286
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
8007
8287
|
}
|
|
8008
|
-
function ingestSuccess$4(luvio, resourceParams, response
|
|
8288
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
8009
8289
|
const { body } = response;
|
|
8010
|
-
const key =
|
|
8290
|
+
const key = keyBuilderFromType$3(luvio, body);
|
|
8011
8291
|
luvio.storeIngest(key, ingest$4, body);
|
|
8012
8292
|
const snapshot = luvio.storeLookup({
|
|
8013
8293
|
recordId: key,
|
|
8014
8294
|
node: select$8(),
|
|
8015
8295
|
variables: {},
|
|
8016
|
-
}
|
|
8296
|
+
});
|
|
8017
8297
|
if (process.env.NODE_ENV !== 'production') {
|
|
8018
8298
|
if (snapshot.state !== 'Fulfilled') {
|
|
8019
8299
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
@@ -8022,46 +8302,32 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
8022
8302
|
deepFreeze(snapshot.data);
|
|
8023
8303
|
return snapshot;
|
|
8024
8304
|
}
|
|
8025
|
-
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
8026
|
-
const key = keyBuilder$6(luvio, params);
|
|
8027
|
-
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8028
|
-
const storeMetadataParams = {
|
|
8029
|
-
ttl: TTL$3,
|
|
8030
|
-
namespace: keyPrefix,
|
|
8031
|
-
version: VERSION$4,
|
|
8032
|
-
representationName: RepresentationType$4
|
|
8033
|
-
};
|
|
8034
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
8035
|
-
return errorSnapshot;
|
|
8036
|
-
}
|
|
8037
8305
|
function createResourceRequest$4(config) {
|
|
8038
8306
|
const headers = {};
|
|
8039
8307
|
return {
|
|
8040
8308
|
baseUri: '/services/data/v65.0',
|
|
8041
|
-
basePath: '/connect/service-automation/
|
|
8042
|
-
method: '
|
|
8043
|
-
body:
|
|
8309
|
+
basePath: '/connect/service-automation/agent/flow/autolaunched',
|
|
8310
|
+
method: 'post',
|
|
8311
|
+
body: config.body,
|
|
8044
8312
|
urlParams: {},
|
|
8045
|
-
queryParams:
|
|
8313
|
+
queryParams: {},
|
|
8046
8314
|
headers,
|
|
8047
8315
|
priority: 'normal',
|
|
8048
8316
|
};
|
|
8049
8317
|
}
|
|
8050
8318
|
|
|
8051
|
-
const adapterName$4 = '
|
|
8052
|
-
const
|
|
8053
|
-
generateParamConfigMetadata('
|
|
8054
|
-
generateParamConfigMetadata('
|
|
8319
|
+
const adapterName$4 = 'createAgentFlow';
|
|
8320
|
+
const createAgentFlow_ConfigPropertyMetadata = [
|
|
8321
|
+
generateParamConfigMetadata('description', true, 2 /* Body */, 0 /* String */),
|
|
8322
|
+
generateParamConfigMetadata('developerName', true, 2 /* Body */, 0 /* String */),
|
|
8323
|
+
generateParamConfigMetadata('label', true, 2 /* Body */, 0 /* String */),
|
|
8324
|
+
generateParamConfigMetadata('serviceProcessId', true, 2 /* Body */, 0 /* String */),
|
|
8055
8325
|
];
|
|
8056
|
-
const
|
|
8057
|
-
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$
|
|
8058
|
-
function keyBuilder$5(luvio, config) {
|
|
8059
|
-
const resourceParams = createResourceParams$4(config);
|
|
8060
|
-
return keyBuilder$6(luvio, resourceParams);
|
|
8061
|
-
}
|
|
8326
|
+
const createAgentFlow_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, createAgentFlow_ConfigPropertyMetadata);
|
|
8327
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$d(createAgentFlow_ConfigPropertyMetadata);
|
|
8062
8328
|
function typeCheckConfig$4(untrustedConfig) {
|
|
8063
8329
|
const config = {};
|
|
8064
|
-
typeCheckConfig$
|
|
8330
|
+
typeCheckConfig$d(untrustedConfig, config, createAgentFlow_ConfigPropertyMetadata);
|
|
8065
8331
|
return config;
|
|
8066
8332
|
}
|
|
8067
8333
|
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
@@ -8077,62 +8343,33 @@ function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
|
8077
8343
|
}
|
|
8078
8344
|
return config;
|
|
8079
8345
|
}
|
|
8080
|
-
function adapterFragment$1(luvio, config) {
|
|
8081
|
-
createResourceParams$4(config);
|
|
8082
|
-
return select$8();
|
|
8083
|
-
}
|
|
8084
|
-
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
8085
|
-
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
8086
|
-
config,
|
|
8087
|
-
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
8088
|
-
});
|
|
8089
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
8090
|
-
}
|
|
8091
|
-
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
8092
|
-
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
8093
|
-
config,
|
|
8094
|
-
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
8095
|
-
});
|
|
8096
|
-
return luvio.storeBroadcast().then(() => snapshot);
|
|
8097
|
-
}
|
|
8098
8346
|
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
8099
8347
|
const resourceParams = createResourceParams$4(config);
|
|
8100
8348
|
const request = createResourceRequest$4(resourceParams);
|
|
8101
8349
|
return luvio.dispatchResourceRequest(request, options)
|
|
8102
8350
|
.then((response) => {
|
|
8103
|
-
return luvio.handleSuccessResponse(() =>
|
|
8351
|
+
return luvio.handleSuccessResponse(() => {
|
|
8352
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
8353
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
8354
|
+
}, () => {
|
|
8104
8355
|
const cache = new StoreKeyMap();
|
|
8105
8356
|
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
8106
8357
|
return cache;
|
|
8107
8358
|
});
|
|
8108
8359
|
}, (response) => {
|
|
8109
|
-
|
|
8360
|
+
deepFreeze(response);
|
|
8361
|
+
throw response;
|
|
8110
8362
|
});
|
|
8111
8363
|
}
|
|
8112
|
-
|
|
8113
|
-
return
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
8120
|
-
variables: {},
|
|
8364
|
+
const createAgentFlowAdapterFactory = (luvio) => {
|
|
8365
|
+
return function createAgentFlow(untrustedConfig) {
|
|
8366
|
+
const config = validateAdapterConfig$4(untrustedConfig, createAgentFlow_ConfigPropertyNames);
|
|
8367
|
+
// Invalid or incomplete config
|
|
8368
|
+
if (config === null) {
|
|
8369
|
+
throw new Error('Invalid config for "createAgentFlow"');
|
|
8370
|
+
}
|
|
8371
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
8121
8372
|
};
|
|
8122
|
-
const cacheSnapshot = storeLookup(selector, {
|
|
8123
|
-
config,
|
|
8124
|
-
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
8125
|
-
});
|
|
8126
|
-
return cacheSnapshot;
|
|
8127
|
-
}
|
|
8128
|
-
const getAgentActionsAdapterFactory = (luvio) => function ecm__getAgentActions(untrustedConfig, requestContext) {
|
|
8129
|
-
const config = validateAdapterConfig$4(untrustedConfig, getAgentActions_ConfigPropertyNames);
|
|
8130
|
-
// Invalid or incomplete config
|
|
8131
|
-
if (config === null) {
|
|
8132
|
-
return null;
|
|
8133
|
-
}
|
|
8134
|
-
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
8135
|
-
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
8136
8373
|
};
|
|
8137
8374
|
|
|
8138
8375
|
const TTL$2 = 6000;
|
|
@@ -8326,10 +8563,10 @@ const generateIntakeForm_ConfigPropertyMetadata = [
|
|
|
8326
8563
|
generateParamConfigMetadata('type', false, 2 /* Body */, 0 /* String */),
|
|
8327
8564
|
];
|
|
8328
8565
|
const generateIntakeForm_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, generateIntakeForm_ConfigPropertyMetadata);
|
|
8329
|
-
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$
|
|
8566
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$d(generateIntakeForm_ConfigPropertyMetadata);
|
|
8330
8567
|
function typeCheckConfig$3(untrustedConfig) {
|
|
8331
8568
|
const config = {};
|
|
8332
|
-
typeCheckConfig$
|
|
8569
|
+
typeCheckConfig$d(untrustedConfig, config, generateIntakeForm_ConfigPropertyMetadata);
|
|
8333
8570
|
return config;
|
|
8334
8571
|
}
|
|
8335
8572
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
@@ -8587,10 +8824,10 @@ const generateOmniScript_ConfigPropertyMetadata = [
|
|
|
8587
8824
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
8588
8825
|
];
|
|
8589
8826
|
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, generateOmniScript_ConfigPropertyMetadata);
|
|
8590
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
8827
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$d(generateOmniScript_ConfigPropertyMetadata);
|
|
8591
8828
|
function typeCheckConfig$2(untrustedConfig) {
|
|
8592
8829
|
const config = {};
|
|
8593
|
-
typeCheckConfig$
|
|
8830
|
+
typeCheckConfig$d(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
8594
8831
|
return config;
|
|
8595
8832
|
}
|
|
8596
8833
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -8850,14 +9087,14 @@ const getServiceRequest_ConfigPropertyMetadata = [
|
|
|
8850
9087
|
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8851
9088
|
];
|
|
8852
9089
|
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getServiceRequest_ConfigPropertyMetadata);
|
|
8853
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
9090
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$d(getServiceRequest_ConfigPropertyMetadata);
|
|
8854
9091
|
function keyBuilder$1(luvio, config) {
|
|
8855
9092
|
const resourceParams = createResourceParams$1(config);
|
|
8856
9093
|
return keyBuilder$2(luvio, resourceParams);
|
|
8857
9094
|
}
|
|
8858
9095
|
function typeCheckConfig$1(untrustedConfig) {
|
|
8859
9096
|
const config = {};
|
|
8860
|
-
typeCheckConfig$
|
|
9097
|
+
typeCheckConfig$d(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
8861
9098
|
return config;
|
|
8862
9099
|
}
|
|
8863
9100
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -9072,10 +9309,10 @@ const deployTemplate_ConfigPropertyMetadata = [
|
|
|
9072
9309
|
generateParamConfigMetadata('templateId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9073
9310
|
];
|
|
9074
9311
|
const deployTemplate_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, deployTemplate_ConfigPropertyMetadata);
|
|
9075
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
9312
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$d(deployTemplate_ConfigPropertyMetadata);
|
|
9076
9313
|
function typeCheckConfig(untrustedConfig) {
|
|
9077
9314
|
const config = {};
|
|
9078
|
-
typeCheckConfig$
|
|
9315
|
+
typeCheckConfig$d(untrustedConfig, config, deployTemplate_ConfigPropertyMetadata);
|
|
9079
9316
|
return config;
|
|
9080
9317
|
}
|
|
9081
9318
|
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
@@ -9120,4 +9357,4 @@ const deployTemplateAdapterFactory = (luvio) => {
|
|
|
9120
9357
|
};
|
|
9121
9358
|
};
|
|
9122
9359
|
|
|
9123
|
-
export { createCatalogItemAdapterFactory, deployTemplateAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getAllServiceProcessTemplateAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };
|
|
9360
|
+
export { createAgentActionAdapterFactory, createAgentFlowAdapterFactory, createCatalogItemAdapterFactory, deployTemplateAdapterFactory, generateIntakeFormAdapterFactory, generateOmniScriptAdapterFactory, getAgentActionsAdapterFactory, getAllServiceAutomationDepAdapterFactory, getAllServiceProcessTemplateAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };
|