@salesforce/lds-adapters-service-ecm 1.449.0 → 1.451.0-dev1
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 +758 -114
- package/dist/es/es2018/types/src/generated/adapters/createCatalogItem.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/adapters/updateCatalogItem.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/patchConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServiceAutomationCatalogCatalogItem.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts +5 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeUpdateSettingInputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeUpdateSettingOutputRepresentation.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemCreateInputRepresentation.d.ts +15 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemOutputRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/CatalogItemUpdateInputRepresentation.d.ts +15 -1
- package/dist/es/es2018/types/src/generated/types/EligibilityRulesSourceObjectToFieldsMapOutputRepresentation.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +796 -152
- package/src/raml/api.raml +114 -0
package/sfdc/index.js
CHANGED
|
@@ -122,8 +122,8 @@ function createLink(ref) {
|
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
const VERSION$
|
|
126
|
-
function validate$
|
|
125
|
+
const VERSION$w = "5df1d4fd0e2e95371d19680f89716ea9";
|
|
126
|
+
function validate$Q(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
127
127
|
const v_error = (() => {
|
|
128
128
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
129
129
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -210,10 +210,10 @@ function validate$N(obj, path = 'AgentActionAttributeOutputRepresentation') {
|
|
|
210
210
|
})();
|
|
211
211
|
return v_error === undefined ? null : v_error;
|
|
212
212
|
}
|
|
213
|
-
const select$
|
|
213
|
+
const select$M = function AgentActionAttributeOutputRepresentationSelect() {
|
|
214
214
|
return {
|
|
215
215
|
kind: 'Fragment',
|
|
216
|
-
version: VERSION$
|
|
216
|
+
version: VERSION$w,
|
|
217
217
|
private: [],
|
|
218
218
|
selections: [
|
|
219
219
|
{
|
|
@@ -278,7 +278,7 @@ const select$K = function AgentActionAttributeOutputRepresentationSelect() {
|
|
|
278
278
|
]
|
|
279
279
|
};
|
|
280
280
|
};
|
|
281
|
-
function equals$
|
|
281
|
+
function equals$w(existing, incoming) {
|
|
282
282
|
const existing_displayable = existing.displayable;
|
|
283
283
|
const incoming_displayable = incoming.displayable;
|
|
284
284
|
// if at least one of these optionals is defined
|
|
@@ -404,8 +404,8 @@ function equals$u(existing, incoming) {
|
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
const TTL$b = 500;
|
|
407
|
-
const VERSION$
|
|
408
|
-
function validate$
|
|
407
|
+
const VERSION$v = "0a5a9a38d481c4e8bad16be490eacce9";
|
|
408
|
+
function validate$P(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
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 + '")');
|
|
@@ -418,7 +418,7 @@ function validate$M(obj, path = 'EinsteinAgentActionOutputRepresentation') {
|
|
|
418
418
|
for (let i = 0; i < obj_attributes.length; i++) {
|
|
419
419
|
const obj_attributes_item = obj_attributes[i];
|
|
420
420
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
421
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
421
|
+
const referencepath_attributes_itemValidationError = validate$Q(obj_attributes_item, path_attributes_item);
|
|
422
422
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
423
423
|
let message = 'Object doesn\'t match AgentActionAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
424
424
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -508,11 +508,11 @@ function keyBuilderFromType$7(luvio, object) {
|
|
|
508
508
|
function normalize$d(input, existing, path, luvio, store, timestamp) {
|
|
509
509
|
return input;
|
|
510
510
|
}
|
|
511
|
-
const select$
|
|
512
|
-
const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$
|
|
511
|
+
const select$L = function EinsteinAgentActionOutputRepresentationSelect() {
|
|
512
|
+
const { selections: AgentActionAttributeOutputRepresentation__selections, opaque: AgentActionAttributeOutputRepresentation__opaque, } = select$M();
|
|
513
513
|
return {
|
|
514
514
|
kind: 'Fragment',
|
|
515
|
-
version: VERSION$
|
|
515
|
+
version: VERSION$v,
|
|
516
516
|
private: [],
|
|
517
517
|
selections: [
|
|
518
518
|
{
|
|
@@ -574,7 +574,7 @@ const select$J = function EinsteinAgentActionOutputRepresentationSelect() {
|
|
|
574
574
|
]
|
|
575
575
|
};
|
|
576
576
|
};
|
|
577
|
-
function equals$
|
|
577
|
+
function equals$v(existing, incoming) {
|
|
578
578
|
const existing_includeInProgressIndicator = existing.includeInProgressIndicator;
|
|
579
579
|
const incoming_includeInProgressIndicator = incoming.includeInProgressIndicator;
|
|
580
580
|
// if at least one of these optionals is defined
|
|
@@ -681,7 +681,7 @@ function equals$t(existing, incoming) {
|
|
|
681
681
|
const existing_attributes = existing.attributes;
|
|
682
682
|
const incoming_attributes = incoming.attributes;
|
|
683
683
|
const equals_attributes_items = equalsArray(existing_attributes, incoming_attributes, (existing_attributes_item, incoming_attributes_item) => {
|
|
684
|
-
if (!(equals$
|
|
684
|
+
if (!(equals$w(existing_attributes_item, incoming_attributes_item))) {
|
|
685
685
|
return false;
|
|
686
686
|
}
|
|
687
687
|
});
|
|
@@ -692,14 +692,14 @@ function equals$t(existing, incoming) {
|
|
|
692
692
|
}
|
|
693
693
|
const ingest$d = function EinsteinAgentActionOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
694
694
|
if (process.env.NODE_ENV !== 'production') {
|
|
695
|
-
const validateError = validate$
|
|
695
|
+
const validateError = validate$P(input);
|
|
696
696
|
if (validateError !== null) {
|
|
697
697
|
throw validateError;
|
|
698
698
|
}
|
|
699
699
|
}
|
|
700
700
|
const key = keyBuilderFromType$7(luvio, input);
|
|
701
701
|
const ttlToUse = TTL$b;
|
|
702
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "ecm", VERSION$
|
|
702
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$d, "ecm", VERSION$v, RepresentationType$d, equals$v);
|
|
703
703
|
return createLink(key);
|
|
704
704
|
};
|
|
705
705
|
function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -712,8 +712,8 @@ function getTypeCacheKeys$d(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
712
712
|
});
|
|
713
713
|
}
|
|
714
714
|
|
|
715
|
-
function select$
|
|
716
|
-
return select$
|
|
715
|
+
function select$K(luvio, params) {
|
|
716
|
+
return select$L();
|
|
717
717
|
}
|
|
718
718
|
function getResponseCacheKeys$f(storeKeyMap, luvio, resourceParams, response) {
|
|
719
719
|
getTypeCacheKeys$d(storeKeyMap, luvio, response);
|
|
@@ -724,7 +724,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
|
|
|
724
724
|
luvio.storeIngest(key, ingest$d, body);
|
|
725
725
|
const snapshot = luvio.storeLookup({
|
|
726
726
|
recordId: key,
|
|
727
|
-
node: select$
|
|
727
|
+
node: select$K(),
|
|
728
728
|
variables: {},
|
|
729
729
|
});
|
|
730
730
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -807,8 +807,8 @@ const createAgentActionAdapterFactory = (luvio) => {
|
|
|
807
807
|
};
|
|
808
808
|
};
|
|
809
809
|
|
|
810
|
-
const VERSION$
|
|
811
|
-
function validate$
|
|
810
|
+
const VERSION$u = "18356685b1dcb3cf1226dcc54a7465de";
|
|
811
|
+
function validate$O(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
|
|
812
812
|
const v_error = (() => {
|
|
813
813
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
814
814
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -826,10 +826,10 @@ function validate$L(obj, path = 'AgentAutolaunchedFlowStatusRepresentation') {
|
|
|
826
826
|
})();
|
|
827
827
|
return v_error === undefined ? null : v_error;
|
|
828
828
|
}
|
|
829
|
-
const select$
|
|
829
|
+
const select$J = function AgentAutolaunchedFlowStatusRepresentationSelect() {
|
|
830
830
|
return {
|
|
831
831
|
kind: 'Fragment',
|
|
832
|
-
version: VERSION$
|
|
832
|
+
version: VERSION$u,
|
|
833
833
|
private: [],
|
|
834
834
|
selections: [
|
|
835
835
|
{
|
|
@@ -843,7 +843,7 @@ const select$H = function AgentAutolaunchedFlowStatusRepresentationSelect() {
|
|
|
843
843
|
]
|
|
844
844
|
};
|
|
845
845
|
};
|
|
846
|
-
function equals$
|
|
846
|
+
function equals$u(existing, incoming) {
|
|
847
847
|
const existing_code = existing.code;
|
|
848
848
|
const incoming_code = incoming.code;
|
|
849
849
|
if (!(existing_code === incoming_code)) {
|
|
@@ -858,8 +858,8 @@ function equals$s(existing, incoming) {
|
|
|
858
858
|
}
|
|
859
859
|
|
|
860
860
|
const TTL$a = 500;
|
|
861
|
-
const VERSION$
|
|
862
|
-
function validate$
|
|
861
|
+
const VERSION$t = "9a585247768eba0bf6edb1791e738701";
|
|
862
|
+
function validate$N(obj, path = 'AgentAutolaunchedFlowRepresentation') {
|
|
863
863
|
const v_error = (() => {
|
|
864
864
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
865
865
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -944,7 +944,7 @@ function validate$K(obj, path = 'AgentAutolaunchedFlowRepresentation') {
|
|
|
944
944
|
}
|
|
945
945
|
const obj_status = obj.status;
|
|
946
946
|
const path_status = path + '.status';
|
|
947
|
-
const referencepath_statusValidationError = validate$
|
|
947
|
+
const referencepath_statusValidationError = validate$O(obj_status, path_status);
|
|
948
948
|
if (referencepath_statusValidationError !== null) {
|
|
949
949
|
let message = 'Object doesn\'t match AgentAutolaunchedFlowStatusRepresentation (at "' + path_status + '")\n';
|
|
950
950
|
message += referencepath_statusValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -966,11 +966,11 @@ function keyBuilderFromType$6(luvio, object) {
|
|
|
966
966
|
function normalize$c(input, existing, path, luvio, store, timestamp) {
|
|
967
967
|
return input;
|
|
968
968
|
}
|
|
969
|
-
const select$
|
|
970
|
-
const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$
|
|
969
|
+
const select$I = function AgentAutolaunchedFlowRepresentationSelect() {
|
|
970
|
+
const { selections: AgentAutolaunchedFlowStatusRepresentation__selections, opaque: AgentAutolaunchedFlowStatusRepresentation__opaque, } = select$J();
|
|
971
971
|
return {
|
|
972
972
|
kind: 'Fragment',
|
|
973
|
-
version: VERSION$
|
|
973
|
+
version: VERSION$t,
|
|
974
974
|
private: [],
|
|
975
975
|
selections: [
|
|
976
976
|
{
|
|
@@ -993,7 +993,7 @@ const select$G = function AgentAutolaunchedFlowRepresentationSelect() {
|
|
|
993
993
|
]
|
|
994
994
|
};
|
|
995
995
|
};
|
|
996
|
-
function equals$
|
|
996
|
+
function equals$t(existing, incoming) {
|
|
997
997
|
const existing_flowDefinitionId = existing.flowDefinitionId;
|
|
998
998
|
const incoming_flowDefinitionId = incoming.flowDefinitionId;
|
|
999
999
|
if (!(existing_flowDefinitionId === incoming_flowDefinitionId)) {
|
|
@@ -1011,21 +1011,21 @@ function equals$r(existing, incoming) {
|
|
|
1011
1011
|
}
|
|
1012
1012
|
const existing_status = existing.status;
|
|
1013
1013
|
const incoming_status = incoming.status;
|
|
1014
|
-
if (!(equals$
|
|
1014
|
+
if (!(equals$u(existing_status, incoming_status))) {
|
|
1015
1015
|
return false;
|
|
1016
1016
|
}
|
|
1017
1017
|
return true;
|
|
1018
1018
|
}
|
|
1019
1019
|
const ingest$c = function AgentAutolaunchedFlowRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
1020
1020
|
if (process.env.NODE_ENV !== 'production') {
|
|
1021
|
-
const validateError = validate$
|
|
1021
|
+
const validateError = validate$N(input);
|
|
1022
1022
|
if (validateError !== null) {
|
|
1023
1023
|
throw validateError;
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
1026
|
const key = keyBuilderFromType$6(luvio, input);
|
|
1027
1027
|
const ttlToUse = TTL$a;
|
|
1028
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "ecm", VERSION$
|
|
1028
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$c, "ecm", VERSION$t, RepresentationType$c, equals$t);
|
|
1029
1029
|
return createLink(key);
|
|
1030
1030
|
};
|
|
1031
1031
|
function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1038,8 +1038,8 @@ function getTypeCacheKeys$c(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
|
|
1041
|
-
function select$
|
|
1042
|
-
return select$
|
|
1041
|
+
function select$H(luvio, params) {
|
|
1042
|
+
return select$I();
|
|
1043
1043
|
}
|
|
1044
1044
|
function getResponseCacheKeys$e(storeKeyMap, luvio, resourceParams, response) {
|
|
1045
1045
|
getTypeCacheKeys$c(storeKeyMap, luvio, response);
|
|
@@ -1050,7 +1050,7 @@ function ingestSuccess$e(luvio, resourceParams, response) {
|
|
|
1050
1050
|
luvio.storeIngest(key, ingest$c, body);
|
|
1051
1051
|
const snapshot = luvio.storeLookup({
|
|
1052
1052
|
recordId: key,
|
|
1053
|
-
node: select$
|
|
1053
|
+
node: select$H(),
|
|
1054
1054
|
variables: {},
|
|
1055
1055
|
});
|
|
1056
1056
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -1131,7 +1131,7 @@ const createAgentFlowAdapterFactory = (luvio) => {
|
|
|
1131
1131
|
};
|
|
1132
1132
|
};
|
|
1133
1133
|
|
|
1134
|
-
function validate$
|
|
1134
|
+
function validate$M(obj, path = 'AgentActionInputRepresentation') {
|
|
1135
1135
|
const v_error = (() => {
|
|
1136
1136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1137
1137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1252,7 +1252,7 @@ function validate$J(obj, path = 'AgentActionInputRepresentation') {
|
|
|
1252
1252
|
return v_error === undefined ? null : v_error;
|
|
1253
1253
|
}
|
|
1254
1254
|
|
|
1255
|
-
function validate$
|
|
1255
|
+
function validate$L(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
1256
1256
|
const v_error = (() => {
|
|
1257
1257
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1258
1258
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1345,7 +1345,7 @@ function validate$I(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
1345
1345
|
return v_error === undefined ? null : v_error;
|
|
1346
1346
|
}
|
|
1347
1347
|
|
|
1348
|
-
function validate$
|
|
1348
|
+
function validate$K(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
1349
1349
|
const v_error = (() => {
|
|
1350
1350
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1351
1351
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1424,7 +1424,114 @@ function validate$H(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
|
1424
1424
|
return v_error === undefined ? null : v_error;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
function validate$
|
|
1427
|
+
function validate$J(obj, path = 'CatalogItemAttributeUpdateSettingInputRepresentation') {
|
|
1428
|
+
const v_error = (() => {
|
|
1429
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1430
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1431
|
+
}
|
|
1432
|
+
if (obj.attributeEditableStatuses !== undefined) {
|
|
1433
|
+
const obj_attributeEditableStatuses = obj.attributeEditableStatuses;
|
|
1434
|
+
const path_attributeEditableStatuses = path + '.attributeEditableStatuses';
|
|
1435
|
+
if (!ArrayIsArray(obj_attributeEditableStatuses)) {
|
|
1436
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributeEditableStatuses + '" (at "' + path_attributeEditableStatuses + '")');
|
|
1437
|
+
}
|
|
1438
|
+
for (let i = 0; i < obj_attributeEditableStatuses.length; i++) {
|
|
1439
|
+
const obj_attributeEditableStatuses_item = obj_attributeEditableStatuses[i];
|
|
1440
|
+
const path_attributeEditableStatuses_item = path_attributeEditableStatuses + '[' + i + ']';
|
|
1441
|
+
if (typeof obj_attributeEditableStatuses_item !== 'string') {
|
|
1442
|
+
return new TypeError('Expected "string" but received "' + typeof obj_attributeEditableStatuses_item + '" (at "' + path_attributeEditableStatuses_item + '")');
|
|
1443
|
+
}
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
if (obj.isAttributeEditable !== undefined) {
|
|
1447
|
+
const obj_isAttributeEditable = obj.isAttributeEditable;
|
|
1448
|
+
const path_isAttributeEditable = path + '.isAttributeEditable';
|
|
1449
|
+
let obj_isAttributeEditable_union0 = null;
|
|
1450
|
+
const obj_isAttributeEditable_union0_error = (() => {
|
|
1451
|
+
if (typeof obj_isAttributeEditable !== 'boolean') {
|
|
1452
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAttributeEditable + '" (at "' + path_isAttributeEditable + '")');
|
|
1453
|
+
}
|
|
1454
|
+
})();
|
|
1455
|
+
if (obj_isAttributeEditable_union0_error != null) {
|
|
1456
|
+
obj_isAttributeEditable_union0 = obj_isAttributeEditable_union0_error.message;
|
|
1457
|
+
}
|
|
1458
|
+
let obj_isAttributeEditable_union1 = null;
|
|
1459
|
+
const obj_isAttributeEditable_union1_error = (() => {
|
|
1460
|
+
if (obj_isAttributeEditable !== null) {
|
|
1461
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAttributeEditable + '" (at "' + path_isAttributeEditable + '")');
|
|
1462
|
+
}
|
|
1463
|
+
})();
|
|
1464
|
+
if (obj_isAttributeEditable_union1_error != null) {
|
|
1465
|
+
obj_isAttributeEditable_union1 = obj_isAttributeEditable_union1_error.message;
|
|
1466
|
+
}
|
|
1467
|
+
if (obj_isAttributeEditable_union0 && obj_isAttributeEditable_union1) {
|
|
1468
|
+
let message = 'Object doesn\'t match union (at "' + path_isAttributeEditable + '")';
|
|
1469
|
+
message += '\n' + obj_isAttributeEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1470
|
+
message += '\n' + obj_isAttributeEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1471
|
+
return new TypeError(message);
|
|
1472
|
+
}
|
|
1473
|
+
}
|
|
1474
|
+
if (obj.isFulfillerEditable !== undefined) {
|
|
1475
|
+
const obj_isFulfillerEditable = obj.isFulfillerEditable;
|
|
1476
|
+
const path_isFulfillerEditable = path + '.isFulfillerEditable';
|
|
1477
|
+
let obj_isFulfillerEditable_union0 = null;
|
|
1478
|
+
const obj_isFulfillerEditable_union0_error = (() => {
|
|
1479
|
+
if (typeof obj_isFulfillerEditable !== 'boolean') {
|
|
1480
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFulfillerEditable + '" (at "' + path_isFulfillerEditable + '")');
|
|
1481
|
+
}
|
|
1482
|
+
})();
|
|
1483
|
+
if (obj_isFulfillerEditable_union0_error != null) {
|
|
1484
|
+
obj_isFulfillerEditable_union0 = obj_isFulfillerEditable_union0_error.message;
|
|
1485
|
+
}
|
|
1486
|
+
let obj_isFulfillerEditable_union1 = null;
|
|
1487
|
+
const obj_isFulfillerEditable_union1_error = (() => {
|
|
1488
|
+
if (obj_isFulfillerEditable !== null) {
|
|
1489
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isFulfillerEditable + '" (at "' + path_isFulfillerEditable + '")');
|
|
1490
|
+
}
|
|
1491
|
+
})();
|
|
1492
|
+
if (obj_isFulfillerEditable_union1_error != null) {
|
|
1493
|
+
obj_isFulfillerEditable_union1 = obj_isFulfillerEditable_union1_error.message;
|
|
1494
|
+
}
|
|
1495
|
+
if (obj_isFulfillerEditable_union0 && obj_isFulfillerEditable_union1) {
|
|
1496
|
+
let message = 'Object doesn\'t match union (at "' + path_isFulfillerEditable + '")';
|
|
1497
|
+
message += '\n' + obj_isFulfillerEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1498
|
+
message += '\n' + obj_isFulfillerEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1499
|
+
return new TypeError(message);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
if (obj.isRequestorEditable !== undefined) {
|
|
1503
|
+
const obj_isRequestorEditable = obj.isRequestorEditable;
|
|
1504
|
+
const path_isRequestorEditable = path + '.isRequestorEditable';
|
|
1505
|
+
let obj_isRequestorEditable_union0 = null;
|
|
1506
|
+
const obj_isRequestorEditable_union0_error = (() => {
|
|
1507
|
+
if (typeof obj_isRequestorEditable !== 'boolean') {
|
|
1508
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequestorEditable + '" (at "' + path_isRequestorEditable + '")');
|
|
1509
|
+
}
|
|
1510
|
+
})();
|
|
1511
|
+
if (obj_isRequestorEditable_union0_error != null) {
|
|
1512
|
+
obj_isRequestorEditable_union0 = obj_isRequestorEditable_union0_error.message;
|
|
1513
|
+
}
|
|
1514
|
+
let obj_isRequestorEditable_union1 = null;
|
|
1515
|
+
const obj_isRequestorEditable_union1_error = (() => {
|
|
1516
|
+
if (obj_isRequestorEditable !== null) {
|
|
1517
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isRequestorEditable + '" (at "' + path_isRequestorEditable + '")');
|
|
1518
|
+
}
|
|
1519
|
+
})();
|
|
1520
|
+
if (obj_isRequestorEditable_union1_error != null) {
|
|
1521
|
+
obj_isRequestorEditable_union1 = obj_isRequestorEditable_union1_error.message;
|
|
1522
|
+
}
|
|
1523
|
+
if (obj_isRequestorEditable_union0 && obj_isRequestorEditable_union1) {
|
|
1524
|
+
let message = 'Object doesn\'t match union (at "' + path_isRequestorEditable + '")';
|
|
1525
|
+
message += '\n' + obj_isRequestorEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
1526
|
+
message += '\n' + obj_isRequestorEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
1527
|
+
return new TypeError(message);
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
})();
|
|
1531
|
+
return v_error === undefined ? null : v_error;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
function validate$I(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
1428
1535
|
const v_error = (() => {
|
|
1429
1536
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1430
1537
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1846,7 +1953,7 @@ function validate$G(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
1846
1953
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
1847
1954
|
let obj_picklistOptions_item_union0 = null;
|
|
1848
1955
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
1849
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
1956
|
+
const referencepath_picklistOptions_itemValidationError = validate$K(obj_picklistOptions_item, path_picklistOptions_item);
|
|
1850
1957
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
1851
1958
|
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
1852
1959
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -1957,11 +2064,42 @@ function validate$G(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
1957
2064
|
return new TypeError(message);
|
|
1958
2065
|
}
|
|
1959
2066
|
}
|
|
2067
|
+
if (obj.updateSettings !== undefined) {
|
|
2068
|
+
const obj_updateSettings = obj.updateSettings;
|
|
2069
|
+
const path_updateSettings = path + '.updateSettings';
|
|
2070
|
+
let obj_updateSettings_union0 = null;
|
|
2071
|
+
const obj_updateSettings_union0_error = (() => {
|
|
2072
|
+
const referencepath_updateSettingsValidationError = validate$J(obj_updateSettings, path_updateSettings);
|
|
2073
|
+
if (referencepath_updateSettingsValidationError !== null) {
|
|
2074
|
+
let message = 'Object doesn\'t match CatalogItemAttributeUpdateSettingInputRepresentation (at "' + path_updateSettings + '")\n';
|
|
2075
|
+
message += referencepath_updateSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
2076
|
+
return new TypeError(message);
|
|
2077
|
+
}
|
|
2078
|
+
})();
|
|
2079
|
+
if (obj_updateSettings_union0_error != null) {
|
|
2080
|
+
obj_updateSettings_union0 = obj_updateSettings_union0_error.message;
|
|
2081
|
+
}
|
|
2082
|
+
let obj_updateSettings_union1 = null;
|
|
2083
|
+
const obj_updateSettings_union1_error = (() => {
|
|
2084
|
+
if (obj_updateSettings !== null) {
|
|
2085
|
+
return new TypeError('Expected "null" but received "' + typeof obj_updateSettings + '" (at "' + path_updateSettings + '")');
|
|
2086
|
+
}
|
|
2087
|
+
})();
|
|
2088
|
+
if (obj_updateSettings_union1_error != null) {
|
|
2089
|
+
obj_updateSettings_union1 = obj_updateSettings_union1_error.message;
|
|
2090
|
+
}
|
|
2091
|
+
if (obj_updateSettings_union0 && obj_updateSettings_union1) {
|
|
2092
|
+
let message = 'Object doesn\'t match union (at "' + path_updateSettings + '")';
|
|
2093
|
+
message += '\n' + obj_updateSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2094
|
+
message += '\n' + obj_updateSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2095
|
+
return new TypeError(message);
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
1960
2098
|
})();
|
|
1961
2099
|
return v_error === undefined ? null : v_error;
|
|
1962
2100
|
}
|
|
1963
2101
|
|
|
1964
|
-
function validate$
|
|
2102
|
+
function validate$H(obj, path = 'SectionInputRepresentation') {
|
|
1965
2103
|
const v_error = (() => {
|
|
1966
2104
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1967
2105
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2131,7 +2269,7 @@ function validate$F(obj, path = 'SectionInputRepresentation') {
|
|
|
2131
2269
|
return v_error === undefined ? null : v_error;
|
|
2132
2270
|
}
|
|
2133
2271
|
|
|
2134
|
-
function validate$
|
|
2272
|
+
function validate$G(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
2135
2273
|
const v_error = (() => {
|
|
2136
2274
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2137
2275
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2196,7 +2334,7 @@ function validate$E(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
2196
2334
|
return v_error === undefined ? null : v_error;
|
|
2197
2335
|
}
|
|
2198
2336
|
|
|
2199
|
-
function validate$
|
|
2337
|
+
function validate$F(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
2200
2338
|
const v_error = (() => {
|
|
2201
2339
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2202
2340
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2317,7 +2455,7 @@ function validate$D(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
2317
2455
|
return v_error === undefined ? null : v_error;
|
|
2318
2456
|
}
|
|
2319
2457
|
|
|
2320
|
-
function validate$
|
|
2458
|
+
function validate$E(obj, path = 'IntakeFormInputRepresentation') {
|
|
2321
2459
|
const v_error = (() => {
|
|
2322
2460
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2323
2461
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2438,7 +2576,7 @@ function validate$C(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
2438
2576
|
return v_error === undefined ? null : v_error;
|
|
2439
2577
|
}
|
|
2440
2578
|
|
|
2441
|
-
function validate$
|
|
2579
|
+
function validate$D(obj, path = 'IntegrationDefInputRepresentation') {
|
|
2442
2580
|
const v_error = (() => {
|
|
2443
2581
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2444
2582
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2531,7 +2669,7 @@ function validate$B(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
2531
2669
|
return v_error === undefined ? null : v_error;
|
|
2532
2670
|
}
|
|
2533
2671
|
|
|
2534
|
-
function validate$
|
|
2672
|
+
function validate$C(obj, path = 'PreprocessorInputRepresentation') {
|
|
2535
2673
|
const v_error = (() => {
|
|
2536
2674
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2537
2675
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2624,7 +2762,7 @@ function validate$A(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
2624
2762
|
return v_error === undefined ? null : v_error;
|
|
2625
2763
|
}
|
|
2626
2764
|
|
|
2627
|
-
function validate$
|
|
2765
|
+
function validate$B(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
2628
2766
|
const v_error = (() => {
|
|
2629
2767
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2630
2768
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2815,8 +2953,8 @@ function validate$z(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
2815
2953
|
return v_error === undefined ? null : v_error;
|
|
2816
2954
|
}
|
|
2817
2955
|
|
|
2818
|
-
const VERSION$
|
|
2819
|
-
function validate$
|
|
2956
|
+
const VERSION$s = "ac94c0c52190d3f2f063659052e5b46e";
|
|
2957
|
+
function validate$A(obj, path = 'AgentActionOutputRepresentation') {
|
|
2820
2958
|
const v_error = (() => {
|
|
2821
2959
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2822
2960
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2908,10 +3046,10 @@ function validate$y(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
2908
3046
|
})();
|
|
2909
3047
|
return v_error === undefined ? null : v_error;
|
|
2910
3048
|
}
|
|
2911
|
-
const select$
|
|
3049
|
+
const select$G = function AgentActionOutputRepresentationSelect() {
|
|
2912
3050
|
return {
|
|
2913
3051
|
kind: 'Fragment',
|
|
2914
|
-
version: VERSION$
|
|
3052
|
+
version: VERSION$s,
|
|
2915
3053
|
private: [],
|
|
2916
3054
|
selections: [
|
|
2917
3055
|
{
|
|
@@ -2932,7 +3070,7 @@ const select$E = function AgentActionOutputRepresentationSelect() {
|
|
|
2932
3070
|
]
|
|
2933
3071
|
};
|
|
2934
3072
|
};
|
|
2935
|
-
function equals$
|
|
3073
|
+
function equals$s(existing, incoming) {
|
|
2936
3074
|
const existing_agentActionId = existing.agentActionId;
|
|
2937
3075
|
const incoming_agentActionId = incoming.agentActionId;
|
|
2938
3076
|
// if at least one of these optionals is defined
|
|
@@ -2975,8 +3113,8 @@ function equals$q(existing, incoming) {
|
|
|
2975
3113
|
return true;
|
|
2976
3114
|
}
|
|
2977
3115
|
|
|
2978
|
-
const VERSION$
|
|
2979
|
-
function validate$
|
|
3116
|
+
const VERSION$r = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
3117
|
+
function validate$z(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
2980
3118
|
const v_error = (() => {
|
|
2981
3119
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2982
3120
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3040,10 +3178,10 @@ function validate$x(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
3040
3178
|
})();
|
|
3041
3179
|
return v_error === undefined ? null : v_error;
|
|
3042
3180
|
}
|
|
3043
|
-
const select$
|
|
3181
|
+
const select$F = function AssociatedArticleOutputRepresentationSelect() {
|
|
3044
3182
|
return {
|
|
3045
3183
|
kind: 'Fragment',
|
|
3046
|
-
version: VERSION$
|
|
3184
|
+
version: VERSION$r,
|
|
3047
3185
|
private: [],
|
|
3048
3186
|
selections: [
|
|
3049
3187
|
{
|
|
@@ -3059,7 +3197,7 @@ const select$D = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
3059
3197
|
]
|
|
3060
3198
|
};
|
|
3061
3199
|
};
|
|
3062
|
-
function equals$
|
|
3200
|
+
function equals$r(existing, incoming) {
|
|
3063
3201
|
const existing_id = existing.id;
|
|
3064
3202
|
const incoming_id = incoming.id;
|
|
3065
3203
|
// if at least one of these optionals is defined
|
|
@@ -3089,8 +3227,8 @@ function equals$p(existing, incoming) {
|
|
|
3089
3227
|
return true;
|
|
3090
3228
|
}
|
|
3091
3229
|
|
|
3092
|
-
const VERSION$
|
|
3093
|
-
function validate$
|
|
3230
|
+
const VERSION$q = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
3231
|
+
function validate$y(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
3094
3232
|
const v_error = (() => {
|
|
3095
3233
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3096
3234
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3154,10 +3292,10 @@ function validate$w(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
3154
3292
|
})();
|
|
3155
3293
|
return v_error === undefined ? null : v_error;
|
|
3156
3294
|
}
|
|
3157
|
-
const select$
|
|
3295
|
+
const select$E = function EligibilityRuleOutputRepresentationSelect() {
|
|
3158
3296
|
return {
|
|
3159
3297
|
kind: 'Fragment',
|
|
3160
|
-
version: VERSION$
|
|
3298
|
+
version: VERSION$q,
|
|
3161
3299
|
private: [],
|
|
3162
3300
|
selections: [
|
|
3163
3301
|
{
|
|
@@ -3173,7 +3311,7 @@ const select$C = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
3173
3311
|
]
|
|
3174
3312
|
};
|
|
3175
3313
|
};
|
|
3176
|
-
function equals$
|
|
3314
|
+
function equals$q(existing, incoming) {
|
|
3177
3315
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
3178
3316
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
3179
3317
|
// if at least one of these optionals is defined
|
|
@@ -3203,8 +3341,72 @@ function equals$o(existing, incoming) {
|
|
|
3203
3341
|
return true;
|
|
3204
3342
|
}
|
|
3205
3343
|
|
|
3206
|
-
const VERSION$
|
|
3207
|
-
function validate$
|
|
3344
|
+
const VERSION$p = "f7607d66b57a2d767204c3fb31dcef99";
|
|
3345
|
+
function validate$x(obj, path = 'EligibilityRulesSourceObjectToFieldsMapOutputRepresentation') {
|
|
3346
|
+
const v_error = (() => {
|
|
3347
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3348
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3349
|
+
}
|
|
3350
|
+
const obj_keys = ObjectKeys(obj);
|
|
3351
|
+
for (let i = 0; i < obj_keys.length; i++) {
|
|
3352
|
+
const key = obj_keys[i];
|
|
3353
|
+
const obj_prop = obj[key];
|
|
3354
|
+
const path_prop = path + '["' + key + '"]';
|
|
3355
|
+
if (!ArrayIsArray(obj_prop)) {
|
|
3356
|
+
return new TypeError('Expected "array" but received "' + typeof obj_prop + '" (at "' + path_prop + '")');
|
|
3357
|
+
}
|
|
3358
|
+
for (let i = 0; i < obj_prop.length; i++) {
|
|
3359
|
+
const obj_prop_item = obj_prop[i];
|
|
3360
|
+
const path_prop_item = path_prop + '[' + i + ']';
|
|
3361
|
+
if (typeof obj_prop_item !== 'object' || ArrayIsArray(obj_prop_item) || obj_prop_item === null) {
|
|
3362
|
+
return new TypeError('Expected "object" but received "' + typeof obj_prop_item + '" (at "' + path_prop_item + '")');
|
|
3363
|
+
}
|
|
3364
|
+
const obj_prop_item_keys = ObjectKeys(obj_prop_item);
|
|
3365
|
+
for (let i = 0; i < obj_prop_item_keys.length; i++) {
|
|
3366
|
+
const key = obj_prop_item_keys[i];
|
|
3367
|
+
const obj_prop_item_prop = obj_prop_item[key];
|
|
3368
|
+
const path_prop_item_prop = path_prop_item + '["' + key + '"]';
|
|
3369
|
+
if (obj_prop_item_prop === undefined) {
|
|
3370
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_prop_item_prop + '" (at "' + path_prop_item_prop + '")');
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
}
|
|
3374
|
+
}
|
|
3375
|
+
})();
|
|
3376
|
+
return v_error === undefined ? null : v_error;
|
|
3377
|
+
}
|
|
3378
|
+
const select$D = function EligibilityRulesSourceObjectToFieldsMapOutputRepresentationSelect() {
|
|
3379
|
+
return {
|
|
3380
|
+
kind: 'Fragment',
|
|
3381
|
+
version: VERSION$p,
|
|
3382
|
+
private: [],
|
|
3383
|
+
selections: []
|
|
3384
|
+
};
|
|
3385
|
+
};
|
|
3386
|
+
function equals$p(existing, incoming) {
|
|
3387
|
+
const equals_props = equalsObject(existing, incoming, (existing_prop, incoming_prop) => {
|
|
3388
|
+
const equals_items = equalsArray(existing_prop, incoming_prop, (existing_prop_item, incoming_prop_item) => {
|
|
3389
|
+
const equals_items_props = equalsObject(existing_prop_item, incoming_prop_item, (existing_prop_item_prop, incoming_prop_item_prop) => {
|
|
3390
|
+
if (JSONStringify(incoming_prop_item_prop) !== JSONStringify(existing_prop_item_prop)) {
|
|
3391
|
+
return false;
|
|
3392
|
+
}
|
|
3393
|
+
});
|
|
3394
|
+
if (equals_items_props === false) {
|
|
3395
|
+
return false;
|
|
3396
|
+
}
|
|
3397
|
+
});
|
|
3398
|
+
if (equals_items === false) {
|
|
3399
|
+
return false;
|
|
3400
|
+
}
|
|
3401
|
+
});
|
|
3402
|
+
if (equals_props === false) {
|
|
3403
|
+
return false;
|
|
3404
|
+
}
|
|
3405
|
+
return true;
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
const VERSION$o = "b5216beece7c04763cff6924e6953f93";
|
|
3409
|
+
function validate$w(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
3208
3410
|
const v_error = (() => {
|
|
3209
3411
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3210
3412
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3296,10 +3498,10 @@ function validate$v(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
3296
3498
|
})();
|
|
3297
3499
|
return v_error === undefined ? null : v_error;
|
|
3298
3500
|
}
|
|
3299
|
-
const select$
|
|
3501
|
+
const select$C = function FulfillmentFlowOutputRepresentationSelect() {
|
|
3300
3502
|
return {
|
|
3301
3503
|
kind: 'Fragment',
|
|
3302
|
-
version: VERSION$
|
|
3504
|
+
version: VERSION$o,
|
|
3303
3505
|
private: [],
|
|
3304
3506
|
selections: [
|
|
3305
3507
|
{
|
|
@@ -3320,7 +3522,7 @@ const select$B = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
3320
3522
|
]
|
|
3321
3523
|
};
|
|
3322
3524
|
};
|
|
3323
|
-
function equals$
|
|
3525
|
+
function equals$o(existing, incoming) {
|
|
3324
3526
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
3325
3527
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
3326
3528
|
// if at least one of these optionals is defined
|
|
@@ -3363,8 +3565,8 @@ function equals$n(existing, incoming) {
|
|
|
3363
3565
|
return true;
|
|
3364
3566
|
}
|
|
3365
3567
|
|
|
3366
|
-
const VERSION$
|
|
3367
|
-
function validate$
|
|
3568
|
+
const VERSION$n = "dc8ba723ca754951db42f9d0e6891a06";
|
|
3569
|
+
function validate$v(obj, path = 'IntakeFormOutputRepresentation') {
|
|
3368
3570
|
const v_error = (() => {
|
|
3369
3571
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3370
3572
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3596,10 +3798,10 @@ function validate$u(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
3596
3798
|
})();
|
|
3597
3799
|
return v_error === undefined ? null : v_error;
|
|
3598
3800
|
}
|
|
3599
|
-
const select$
|
|
3801
|
+
const select$B = function IntakeFormOutputRepresentationSelect() {
|
|
3600
3802
|
return {
|
|
3601
3803
|
kind: 'Fragment',
|
|
3602
|
-
version: VERSION$
|
|
3804
|
+
version: VERSION$n,
|
|
3603
3805
|
private: [],
|
|
3604
3806
|
selections: [
|
|
3605
3807
|
{
|
|
@@ -3645,7 +3847,7 @@ const select$A = function IntakeFormOutputRepresentationSelect() {
|
|
|
3645
3847
|
]
|
|
3646
3848
|
};
|
|
3647
3849
|
};
|
|
3648
|
-
function equals$
|
|
3850
|
+
function equals$n(existing, incoming) {
|
|
3649
3851
|
const existing_id = existing.id;
|
|
3650
3852
|
const incoming_id = incoming.id;
|
|
3651
3853
|
// if at least one of these optionals is defined
|
|
@@ -3753,8 +3955,8 @@ function equals$m(existing, incoming) {
|
|
|
3753
3955
|
return true;
|
|
3754
3956
|
}
|
|
3755
3957
|
|
|
3756
|
-
const VERSION$
|
|
3757
|
-
function validate$
|
|
3958
|
+
const VERSION$m = "1006a153c933b8bc4b1d44663893e206";
|
|
3959
|
+
function validate$u(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
3758
3960
|
const v_error = (() => {
|
|
3759
3961
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3760
3962
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3818,10 +4020,10 @@ function validate$t(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
3818
4020
|
})();
|
|
3819
4021
|
return v_error === undefined ? null : v_error;
|
|
3820
4022
|
}
|
|
3821
|
-
const select$
|
|
4023
|
+
const select$A = function IntegrationDefinitionOutputPresentationSelect() {
|
|
3822
4024
|
return {
|
|
3823
4025
|
kind: 'Fragment',
|
|
3824
|
-
version: VERSION$
|
|
4026
|
+
version: VERSION$m,
|
|
3825
4027
|
private: [],
|
|
3826
4028
|
selections: [
|
|
3827
4029
|
{
|
|
@@ -3837,7 +4039,7 @@ const select$z = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
3837
4039
|
]
|
|
3838
4040
|
};
|
|
3839
4041
|
};
|
|
3840
|
-
function equals$
|
|
4042
|
+
function equals$m(existing, incoming) {
|
|
3841
4043
|
const existing_id = existing.id;
|
|
3842
4044
|
const incoming_id = incoming.id;
|
|
3843
4045
|
// if at least one of these optionals is defined
|
|
@@ -3867,8 +4069,8 @@ function equals$l(existing, incoming) {
|
|
|
3867
4069
|
return true;
|
|
3868
4070
|
}
|
|
3869
4071
|
|
|
3870
|
-
const VERSION$
|
|
3871
|
-
function validate$
|
|
4072
|
+
const VERSION$l = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
4073
|
+
function validate$t(obj, path = 'PreprocessorOutputRepresentation') {
|
|
3872
4074
|
const v_error = (() => {
|
|
3873
4075
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3874
4076
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3932,10 +4134,10 @@ function validate$s(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
3932
4134
|
})();
|
|
3933
4135
|
return v_error === undefined ? null : v_error;
|
|
3934
4136
|
}
|
|
3935
|
-
const select$
|
|
4137
|
+
const select$z = function PreprocessorOutputRepresentationSelect() {
|
|
3936
4138
|
return {
|
|
3937
4139
|
kind: 'Fragment',
|
|
3938
|
-
version: VERSION$
|
|
4140
|
+
version: VERSION$l,
|
|
3939
4141
|
private: [],
|
|
3940
4142
|
selections: [
|
|
3941
4143
|
{
|
|
@@ -3951,7 +4153,7 @@ const select$y = function PreprocessorOutputRepresentationSelect() {
|
|
|
3951
4153
|
]
|
|
3952
4154
|
};
|
|
3953
4155
|
};
|
|
3954
|
-
function equals$
|
|
4156
|
+
function equals$l(existing, incoming) {
|
|
3955
4157
|
const existing_id = existing.id;
|
|
3956
4158
|
const incoming_id = incoming.id;
|
|
3957
4159
|
// if at least one of these optionals is defined
|
|
@@ -3981,8 +4183,8 @@ function equals$k(existing, incoming) {
|
|
|
3981
4183
|
return true;
|
|
3982
4184
|
}
|
|
3983
4185
|
|
|
3984
|
-
const VERSION$
|
|
3985
|
-
function validate$
|
|
4186
|
+
const VERSION$k = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
4187
|
+
function validate$s(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
3986
4188
|
const v_error = (() => {
|
|
3987
4189
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3988
4190
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4158,10 +4360,10 @@ function validate$r(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
4158
4360
|
})();
|
|
4159
4361
|
return v_error === undefined ? null : v_error;
|
|
4160
4362
|
}
|
|
4161
|
-
const select$
|
|
4363
|
+
const select$y = function ProductDetailsOutputRepresentationSelect() {
|
|
4162
4364
|
return {
|
|
4163
4365
|
kind: 'Fragment',
|
|
4164
|
-
version: VERSION$
|
|
4366
|
+
version: VERSION$k,
|
|
4165
4367
|
private: [],
|
|
4166
4368
|
selections: [
|
|
4167
4369
|
{
|
|
@@ -4197,7 +4399,7 @@ const select$x = function ProductDetailsOutputRepresentationSelect() {
|
|
|
4197
4399
|
]
|
|
4198
4400
|
};
|
|
4199
4401
|
};
|
|
4200
|
-
function equals$
|
|
4402
|
+
function equals$k(existing, incoming) {
|
|
4201
4403
|
const existing_description = existing.description;
|
|
4202
4404
|
const incoming_description = incoming.description;
|
|
4203
4405
|
// if at least one of these optionals is defined
|
|
@@ -4279,8 +4481,8 @@ function equals$j(existing, incoming) {
|
|
|
4279
4481
|
return true;
|
|
4280
4482
|
}
|
|
4281
4483
|
|
|
4282
|
-
const VERSION$
|
|
4283
|
-
function validate$
|
|
4484
|
+
const VERSION$j = "a2dd4f323f5e0ea65e9932d59d8527b0";
|
|
4485
|
+
function validate$r(obj, path = 'ProductRequestOutputRepresentation') {
|
|
4284
4486
|
const v_error = (() => {
|
|
4285
4487
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4286
4488
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4294,7 +4496,7 @@ function validate$q(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
4294
4496
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
4295
4497
|
const obj_productDetails_item = obj_productDetails[i];
|
|
4296
4498
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
4297
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
4499
|
+
const referencepath_productDetails_itemValidationError = validate$s(obj_productDetails_item, path_productDetails_item);
|
|
4298
4500
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
4299
4501
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
4300
4502
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4501,11 +4703,11 @@ function validate$q(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
4501
4703
|
})();
|
|
4502
4704
|
return v_error === undefined ? null : v_error;
|
|
4503
4705
|
}
|
|
4504
|
-
const select$
|
|
4505
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
4706
|
+
const select$x = function ProductRequestOutputRepresentationSelect() {
|
|
4707
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$y();
|
|
4506
4708
|
return {
|
|
4507
4709
|
kind: 'Fragment',
|
|
4508
|
-
version: VERSION$
|
|
4710
|
+
version: VERSION$j,
|
|
4509
4711
|
private: [],
|
|
4510
4712
|
selections: [
|
|
4511
4713
|
{
|
|
@@ -4553,7 +4755,7 @@ const select$w = function ProductRequestOutputRepresentationSelect() {
|
|
|
4553
4755
|
]
|
|
4554
4756
|
};
|
|
4555
4757
|
};
|
|
4556
|
-
function equals$
|
|
4758
|
+
function equals$j(existing, incoming) {
|
|
4557
4759
|
const existing_productDetails = existing.productDetails;
|
|
4558
4760
|
const incoming_productDetails = incoming.productDetails;
|
|
4559
4761
|
// if at least one of these optionals is defined
|
|
@@ -4564,7 +4766,7 @@ function equals$i(existing, incoming) {
|
|
|
4564
4766
|
return false;
|
|
4565
4767
|
}
|
|
4566
4768
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
4567
|
-
if (!(equals$
|
|
4769
|
+
if (!(equals$k(existing_productDetails_item, incoming_productDetails_item))) {
|
|
4568
4770
|
return false;
|
|
4569
4771
|
}
|
|
4570
4772
|
});
|
|
@@ -4666,8 +4868,8 @@ function equals$i(existing, incoming) {
|
|
|
4666
4868
|
return true;
|
|
4667
4869
|
}
|
|
4668
4870
|
|
|
4669
|
-
const VERSION$
|
|
4670
|
-
function validate$
|
|
4871
|
+
const VERSION$i = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
4872
|
+
function validate$q(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
4671
4873
|
const v_error = (() => {
|
|
4672
4874
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4673
4875
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4717,10 +4919,10 @@ function validate$p(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
|
4717
4919
|
})();
|
|
4718
4920
|
return v_error === undefined ? null : v_error;
|
|
4719
4921
|
}
|
|
4720
|
-
const select$
|
|
4922
|
+
const select$w = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
4721
4923
|
return {
|
|
4722
4924
|
kind: 'Fragment',
|
|
4723
|
-
version: VERSION$
|
|
4925
|
+
version: VERSION$i,
|
|
4724
4926
|
private: [],
|
|
4725
4927
|
selections: [
|
|
4726
4928
|
{
|
|
@@ -4756,7 +4958,7 @@ const select$v = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
|
4756
4958
|
]
|
|
4757
4959
|
};
|
|
4758
4960
|
};
|
|
4759
|
-
function equals$
|
|
4961
|
+
function equals$i(existing, incoming) {
|
|
4760
4962
|
const existing_isDefault = existing.isDefault;
|
|
4761
4963
|
const incoming_isDefault = incoming.isDefault;
|
|
4762
4964
|
// if at least one of these optionals is defined
|
|
@@ -4838,7 +5040,205 @@ function equals$h(existing, incoming) {
|
|
|
4838
5040
|
return true;
|
|
4839
5041
|
}
|
|
4840
5042
|
|
|
4841
|
-
const VERSION$
|
|
5043
|
+
const VERSION$h = "6757313f2b4f9ef27398ee8677572500";
|
|
5044
|
+
function validate$p(obj, path = 'CatalogItemAttributeUpdateSettingOutputRepresentation') {
|
|
5045
|
+
const v_error = (() => {
|
|
5046
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5047
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
5048
|
+
}
|
|
5049
|
+
if (obj.attributeEditableStatuses !== undefined) {
|
|
5050
|
+
const obj_attributeEditableStatuses = obj.attributeEditableStatuses;
|
|
5051
|
+
const path_attributeEditableStatuses = path + '.attributeEditableStatuses';
|
|
5052
|
+
if (!ArrayIsArray(obj_attributeEditableStatuses)) {
|
|
5053
|
+
return new TypeError('Expected "array" but received "' + typeof obj_attributeEditableStatuses + '" (at "' + path_attributeEditableStatuses + '")');
|
|
5054
|
+
}
|
|
5055
|
+
for (let i = 0; i < obj_attributeEditableStatuses.length; i++) {
|
|
5056
|
+
const obj_attributeEditableStatuses_item = obj_attributeEditableStatuses[i];
|
|
5057
|
+
const path_attributeEditableStatuses_item = path_attributeEditableStatuses + '[' + i + ']';
|
|
5058
|
+
if (typeof obj_attributeEditableStatuses_item !== 'string') {
|
|
5059
|
+
return new TypeError('Expected "string" but received "' + typeof obj_attributeEditableStatuses_item + '" (at "' + path_attributeEditableStatuses_item + '")');
|
|
5060
|
+
}
|
|
5061
|
+
}
|
|
5062
|
+
}
|
|
5063
|
+
if (obj.isAttributeEditable !== undefined) {
|
|
5064
|
+
const obj_isAttributeEditable = obj.isAttributeEditable;
|
|
5065
|
+
const path_isAttributeEditable = path + '.isAttributeEditable';
|
|
5066
|
+
let obj_isAttributeEditable_union0 = null;
|
|
5067
|
+
const obj_isAttributeEditable_union0_error = (() => {
|
|
5068
|
+
if (typeof obj_isAttributeEditable !== 'boolean') {
|
|
5069
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isAttributeEditable + '" (at "' + path_isAttributeEditable + '")');
|
|
5070
|
+
}
|
|
5071
|
+
})();
|
|
5072
|
+
if (obj_isAttributeEditable_union0_error != null) {
|
|
5073
|
+
obj_isAttributeEditable_union0 = obj_isAttributeEditable_union0_error.message;
|
|
5074
|
+
}
|
|
5075
|
+
let obj_isAttributeEditable_union1 = null;
|
|
5076
|
+
const obj_isAttributeEditable_union1_error = (() => {
|
|
5077
|
+
if (obj_isAttributeEditable !== null) {
|
|
5078
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isAttributeEditable + '" (at "' + path_isAttributeEditable + '")');
|
|
5079
|
+
}
|
|
5080
|
+
})();
|
|
5081
|
+
if (obj_isAttributeEditable_union1_error != null) {
|
|
5082
|
+
obj_isAttributeEditable_union1 = obj_isAttributeEditable_union1_error.message;
|
|
5083
|
+
}
|
|
5084
|
+
if (obj_isAttributeEditable_union0 && obj_isAttributeEditable_union1) {
|
|
5085
|
+
let message = 'Object doesn\'t match union (at "' + path_isAttributeEditable + '")';
|
|
5086
|
+
message += '\n' + obj_isAttributeEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5087
|
+
message += '\n' + obj_isAttributeEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5088
|
+
return new TypeError(message);
|
|
5089
|
+
}
|
|
5090
|
+
}
|
|
5091
|
+
if (obj.isFulfillerEditable !== undefined) {
|
|
5092
|
+
const obj_isFulfillerEditable = obj.isFulfillerEditable;
|
|
5093
|
+
const path_isFulfillerEditable = path + '.isFulfillerEditable';
|
|
5094
|
+
let obj_isFulfillerEditable_union0 = null;
|
|
5095
|
+
const obj_isFulfillerEditable_union0_error = (() => {
|
|
5096
|
+
if (typeof obj_isFulfillerEditable !== 'boolean') {
|
|
5097
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isFulfillerEditable + '" (at "' + path_isFulfillerEditable + '")');
|
|
5098
|
+
}
|
|
5099
|
+
})();
|
|
5100
|
+
if (obj_isFulfillerEditable_union0_error != null) {
|
|
5101
|
+
obj_isFulfillerEditable_union0 = obj_isFulfillerEditable_union0_error.message;
|
|
5102
|
+
}
|
|
5103
|
+
let obj_isFulfillerEditable_union1 = null;
|
|
5104
|
+
const obj_isFulfillerEditable_union1_error = (() => {
|
|
5105
|
+
if (obj_isFulfillerEditable !== null) {
|
|
5106
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isFulfillerEditable + '" (at "' + path_isFulfillerEditable + '")');
|
|
5107
|
+
}
|
|
5108
|
+
})();
|
|
5109
|
+
if (obj_isFulfillerEditable_union1_error != null) {
|
|
5110
|
+
obj_isFulfillerEditable_union1 = obj_isFulfillerEditable_union1_error.message;
|
|
5111
|
+
}
|
|
5112
|
+
if (obj_isFulfillerEditable_union0 && obj_isFulfillerEditable_union1) {
|
|
5113
|
+
let message = 'Object doesn\'t match union (at "' + path_isFulfillerEditable + '")';
|
|
5114
|
+
message += '\n' + obj_isFulfillerEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5115
|
+
message += '\n' + obj_isFulfillerEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5116
|
+
return new TypeError(message);
|
|
5117
|
+
}
|
|
5118
|
+
}
|
|
5119
|
+
if (obj.isRequestorEditable !== undefined) {
|
|
5120
|
+
const obj_isRequestorEditable = obj.isRequestorEditable;
|
|
5121
|
+
const path_isRequestorEditable = path + '.isRequestorEditable';
|
|
5122
|
+
let obj_isRequestorEditable_union0 = null;
|
|
5123
|
+
const obj_isRequestorEditable_union0_error = (() => {
|
|
5124
|
+
if (typeof obj_isRequestorEditable !== 'boolean') {
|
|
5125
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isRequestorEditable + '" (at "' + path_isRequestorEditable + '")');
|
|
5126
|
+
}
|
|
5127
|
+
})();
|
|
5128
|
+
if (obj_isRequestorEditable_union0_error != null) {
|
|
5129
|
+
obj_isRequestorEditable_union0 = obj_isRequestorEditable_union0_error.message;
|
|
5130
|
+
}
|
|
5131
|
+
let obj_isRequestorEditable_union1 = null;
|
|
5132
|
+
const obj_isRequestorEditable_union1_error = (() => {
|
|
5133
|
+
if (obj_isRequestorEditable !== null) {
|
|
5134
|
+
return new TypeError('Expected "null" but received "' + typeof obj_isRequestorEditable + '" (at "' + path_isRequestorEditable + '")');
|
|
5135
|
+
}
|
|
5136
|
+
})();
|
|
5137
|
+
if (obj_isRequestorEditable_union1_error != null) {
|
|
5138
|
+
obj_isRequestorEditable_union1 = obj_isRequestorEditable_union1_error.message;
|
|
5139
|
+
}
|
|
5140
|
+
if (obj_isRequestorEditable_union0 && obj_isRequestorEditable_union1) {
|
|
5141
|
+
let message = 'Object doesn\'t match union (at "' + path_isRequestorEditable + '")';
|
|
5142
|
+
message += '\n' + obj_isRequestorEditable_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5143
|
+
message += '\n' + obj_isRequestorEditable_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5144
|
+
return new TypeError(message);
|
|
5145
|
+
}
|
|
5146
|
+
}
|
|
5147
|
+
})();
|
|
5148
|
+
return v_error === undefined ? null : v_error;
|
|
5149
|
+
}
|
|
5150
|
+
const select$v = function CatalogItemAttributeUpdateSettingOutputRepresentationSelect() {
|
|
5151
|
+
return {
|
|
5152
|
+
kind: 'Fragment',
|
|
5153
|
+
version: VERSION$h,
|
|
5154
|
+
private: [],
|
|
5155
|
+
selections: [
|
|
5156
|
+
{
|
|
5157
|
+
name: 'attributeEditableStatuses',
|
|
5158
|
+
kind: 'Scalar',
|
|
5159
|
+
plural: true,
|
|
5160
|
+
required: false
|
|
5161
|
+
},
|
|
5162
|
+
{
|
|
5163
|
+
name: 'isAttributeEditable',
|
|
5164
|
+
kind: 'Scalar',
|
|
5165
|
+
required: false
|
|
5166
|
+
},
|
|
5167
|
+
{
|
|
5168
|
+
name: 'isFulfillerEditable',
|
|
5169
|
+
kind: 'Scalar',
|
|
5170
|
+
required: false
|
|
5171
|
+
},
|
|
5172
|
+
{
|
|
5173
|
+
name: 'isRequestorEditable',
|
|
5174
|
+
kind: 'Scalar',
|
|
5175
|
+
required: false
|
|
5176
|
+
}
|
|
5177
|
+
]
|
|
5178
|
+
};
|
|
5179
|
+
};
|
|
5180
|
+
function equals$h(existing, incoming) {
|
|
5181
|
+
const existing_attributeEditableStatuses = existing.attributeEditableStatuses;
|
|
5182
|
+
const incoming_attributeEditableStatuses = incoming.attributeEditableStatuses;
|
|
5183
|
+
// if at least one of these optionals is defined
|
|
5184
|
+
if (existing_attributeEditableStatuses !== undefined || incoming_attributeEditableStatuses !== undefined) {
|
|
5185
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5186
|
+
// not equal
|
|
5187
|
+
if (existing_attributeEditableStatuses === undefined || incoming_attributeEditableStatuses === undefined) {
|
|
5188
|
+
return false;
|
|
5189
|
+
}
|
|
5190
|
+
const equals_attributeEditableStatuses_items = equalsArray(existing_attributeEditableStatuses, incoming_attributeEditableStatuses, (existing_attributeEditableStatuses_item, incoming_attributeEditableStatuses_item) => {
|
|
5191
|
+
if (!(existing_attributeEditableStatuses_item === incoming_attributeEditableStatuses_item)) {
|
|
5192
|
+
return false;
|
|
5193
|
+
}
|
|
5194
|
+
});
|
|
5195
|
+
if (equals_attributeEditableStatuses_items === false) {
|
|
5196
|
+
return false;
|
|
5197
|
+
}
|
|
5198
|
+
}
|
|
5199
|
+
const existing_isAttributeEditable = existing.isAttributeEditable;
|
|
5200
|
+
const incoming_isAttributeEditable = incoming.isAttributeEditable;
|
|
5201
|
+
// if at least one of these optionals is defined
|
|
5202
|
+
if (existing_isAttributeEditable !== undefined || incoming_isAttributeEditable !== undefined) {
|
|
5203
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5204
|
+
// not equal
|
|
5205
|
+
if (existing_isAttributeEditable === undefined || incoming_isAttributeEditable === undefined) {
|
|
5206
|
+
return false;
|
|
5207
|
+
}
|
|
5208
|
+
if (!(existing_isAttributeEditable === incoming_isAttributeEditable)) {
|
|
5209
|
+
return false;
|
|
5210
|
+
}
|
|
5211
|
+
}
|
|
5212
|
+
const existing_isFulfillerEditable = existing.isFulfillerEditable;
|
|
5213
|
+
const incoming_isFulfillerEditable = incoming.isFulfillerEditable;
|
|
5214
|
+
// if at least one of these optionals is defined
|
|
5215
|
+
if (existing_isFulfillerEditable !== undefined || incoming_isFulfillerEditable !== undefined) {
|
|
5216
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5217
|
+
// not equal
|
|
5218
|
+
if (existing_isFulfillerEditable === undefined || incoming_isFulfillerEditable === undefined) {
|
|
5219
|
+
return false;
|
|
5220
|
+
}
|
|
5221
|
+
if (!(existing_isFulfillerEditable === incoming_isFulfillerEditable)) {
|
|
5222
|
+
return false;
|
|
5223
|
+
}
|
|
5224
|
+
}
|
|
5225
|
+
const existing_isRequestorEditable = existing.isRequestorEditable;
|
|
5226
|
+
const incoming_isRequestorEditable = incoming.isRequestorEditable;
|
|
5227
|
+
// if at least one of these optionals is defined
|
|
5228
|
+
if (existing_isRequestorEditable !== undefined || incoming_isRequestorEditable !== undefined) {
|
|
5229
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
5230
|
+
// not equal
|
|
5231
|
+
if (existing_isRequestorEditable === undefined || incoming_isRequestorEditable === undefined) {
|
|
5232
|
+
return false;
|
|
5233
|
+
}
|
|
5234
|
+
if (!(existing_isRequestorEditable === incoming_isRequestorEditable)) {
|
|
5235
|
+
return false;
|
|
5236
|
+
}
|
|
5237
|
+
}
|
|
5238
|
+
return true;
|
|
5239
|
+
}
|
|
5240
|
+
|
|
5241
|
+
const VERSION$g = "fff48711ca4234170f5d8bdb7e21a72a";
|
|
4842
5242
|
function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
4843
5243
|
const v_error = (() => {
|
|
4844
5244
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5317,7 +5717,7 @@ function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
5317
5717
|
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
5318
5718
|
let obj_picklistOptions_item_union0 = null;
|
|
5319
5719
|
const obj_picklistOptions_item_union0_error = (() => {
|
|
5320
|
-
const referencepath_picklistOptions_itemValidationError = validate$
|
|
5720
|
+
const referencepath_picklistOptions_itemValidationError = validate$q(obj_picklistOptions_item, path_picklistOptions_item);
|
|
5321
5721
|
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
5322
5722
|
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
5323
5723
|
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5428,11 +5828,43 @@ function validate$o(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
5428
5828
|
return new TypeError(message);
|
|
5429
5829
|
}
|
|
5430
5830
|
}
|
|
5831
|
+
if (obj.updateSettings !== undefined) {
|
|
5832
|
+
const obj_updateSettings = obj.updateSettings;
|
|
5833
|
+
const path_updateSettings = path + '.updateSettings';
|
|
5834
|
+
let obj_updateSettings_union0 = null;
|
|
5835
|
+
const obj_updateSettings_union0_error = (() => {
|
|
5836
|
+
const referencepath_updateSettingsValidationError = validate$p(obj_updateSettings, path_updateSettings);
|
|
5837
|
+
if (referencepath_updateSettingsValidationError !== null) {
|
|
5838
|
+
let message = 'Object doesn\'t match CatalogItemAttributeUpdateSettingOutputRepresentation (at "' + path_updateSettings + '")\n';
|
|
5839
|
+
message += referencepath_updateSettingsValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
5840
|
+
return new TypeError(message);
|
|
5841
|
+
}
|
|
5842
|
+
})();
|
|
5843
|
+
if (obj_updateSettings_union0_error != null) {
|
|
5844
|
+
obj_updateSettings_union0 = obj_updateSettings_union0_error.message;
|
|
5845
|
+
}
|
|
5846
|
+
let obj_updateSettings_union1 = null;
|
|
5847
|
+
const obj_updateSettings_union1_error = (() => {
|
|
5848
|
+
if (obj_updateSettings !== null) {
|
|
5849
|
+
return new TypeError('Expected "null" but received "' + typeof obj_updateSettings + '" (at "' + path_updateSettings + '")');
|
|
5850
|
+
}
|
|
5851
|
+
})();
|
|
5852
|
+
if (obj_updateSettings_union1_error != null) {
|
|
5853
|
+
obj_updateSettings_union1 = obj_updateSettings_union1_error.message;
|
|
5854
|
+
}
|
|
5855
|
+
if (obj_updateSettings_union0 && obj_updateSettings_union1) {
|
|
5856
|
+
let message = 'Object doesn\'t match union (at "' + path_updateSettings + '")';
|
|
5857
|
+
message += '\n' + obj_updateSettings_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
5858
|
+
message += '\n' + obj_updateSettings_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
5859
|
+
return new TypeError(message);
|
|
5860
|
+
}
|
|
5861
|
+
}
|
|
5431
5862
|
})();
|
|
5432
5863
|
return v_error === undefined ? null : v_error;
|
|
5433
5864
|
}
|
|
5434
5865
|
const select$u = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
5435
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
5866
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$w();
|
|
5867
|
+
const { selections: CatalogItemAttributeUpdateSettingOutputRepresentation__selections, opaque: CatalogItemAttributeUpdateSettingOutputRepresentation__opaque, } = select$v();
|
|
5436
5868
|
return {
|
|
5437
5869
|
kind: 'Fragment',
|
|
5438
5870
|
version: VERSION$g,
|
|
@@ -5550,6 +5982,13 @@ const select$u = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
5550
5982
|
name: 'sequence',
|
|
5551
5983
|
kind: 'Scalar',
|
|
5552
5984
|
required: false
|
|
5985
|
+
},
|
|
5986
|
+
{
|
|
5987
|
+
name: 'updateSettings',
|
|
5988
|
+
kind: 'Object',
|
|
5989
|
+
nullable: true,
|
|
5990
|
+
selections: CatalogItemAttributeUpdateSettingOutputRepresentation__selections,
|
|
5991
|
+
required: false
|
|
5553
5992
|
}
|
|
5554
5993
|
]
|
|
5555
5994
|
};
|
|
@@ -5802,7 +6241,7 @@ function equals$g(existing, incoming) {
|
|
|
5802
6241
|
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
5803
6242
|
|| (existing_picklistOptions_item != null &&
|
|
5804
6243
|
incoming_picklistOptions_item != null &&
|
|
5805
|
-
equals$
|
|
6244
|
+
equals$i(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
5806
6245
|
return false;
|
|
5807
6246
|
}
|
|
5808
6247
|
});
|
|
@@ -5849,6 +6288,22 @@ function equals$g(existing, incoming) {
|
|
|
5849
6288
|
return false;
|
|
5850
6289
|
}
|
|
5851
6290
|
}
|
|
6291
|
+
const existing_updateSettings = existing.updateSettings;
|
|
6292
|
+
const incoming_updateSettings = incoming.updateSettings;
|
|
6293
|
+
// if at least one of these optionals is defined
|
|
6294
|
+
if (existing_updateSettings !== undefined || incoming_updateSettings !== undefined) {
|
|
6295
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
6296
|
+
// not equal
|
|
6297
|
+
if (existing_updateSettings === undefined || incoming_updateSettings === undefined) {
|
|
6298
|
+
return false;
|
|
6299
|
+
}
|
|
6300
|
+
if (!(existing_updateSettings === incoming_updateSettings
|
|
6301
|
+
|| (existing_updateSettings != null &&
|
|
6302
|
+
incoming_updateSettings != null &&
|
|
6303
|
+
equals$h(existing_updateSettings, incoming_updateSettings)))) {
|
|
6304
|
+
return false;
|
|
6305
|
+
}
|
|
6306
|
+
}
|
|
5852
6307
|
return true;
|
|
5853
6308
|
}
|
|
5854
6309
|
|
|
@@ -6106,7 +6561,7 @@ function equals$f(existing, incoming) {
|
|
|
6106
6561
|
}
|
|
6107
6562
|
|
|
6108
6563
|
const TTL$9 = 6000;
|
|
6109
|
-
const VERSION$e = "
|
|
6564
|
+
const VERSION$e = "f2699205be88d180c65ed9273c3eec67";
|
|
6110
6565
|
function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
6111
6566
|
const v_error = (() => {
|
|
6112
6567
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6117,7 +6572,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6117
6572
|
const path_agentAction = path + '.agentAction';
|
|
6118
6573
|
let obj_agentAction_union0 = null;
|
|
6119
6574
|
const obj_agentAction_union0_error = (() => {
|
|
6120
|
-
const referencepath_agentActionValidationError = validate$
|
|
6575
|
+
const referencepath_agentActionValidationError = validate$A(obj_agentAction, path_agentAction);
|
|
6121
6576
|
if (referencepath_agentActionValidationError !== null) {
|
|
6122
6577
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
6123
6578
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6143,6 +6598,34 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6143
6598
|
return new TypeError(message);
|
|
6144
6599
|
}
|
|
6145
6600
|
}
|
|
6601
|
+
if (obj.allowsUpdate !== undefined) {
|
|
6602
|
+
const obj_allowsUpdate = obj.allowsUpdate;
|
|
6603
|
+
const path_allowsUpdate = path + '.allowsUpdate';
|
|
6604
|
+
let obj_allowsUpdate_union0 = null;
|
|
6605
|
+
const obj_allowsUpdate_union0_error = (() => {
|
|
6606
|
+
if (typeof obj_allowsUpdate !== 'boolean') {
|
|
6607
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_allowsUpdate + '" (at "' + path_allowsUpdate + '")');
|
|
6608
|
+
}
|
|
6609
|
+
})();
|
|
6610
|
+
if (obj_allowsUpdate_union0_error != null) {
|
|
6611
|
+
obj_allowsUpdate_union0 = obj_allowsUpdate_union0_error.message;
|
|
6612
|
+
}
|
|
6613
|
+
let obj_allowsUpdate_union1 = null;
|
|
6614
|
+
const obj_allowsUpdate_union1_error = (() => {
|
|
6615
|
+
if (obj_allowsUpdate !== null) {
|
|
6616
|
+
return new TypeError('Expected "null" but received "' + typeof obj_allowsUpdate + '" (at "' + path_allowsUpdate + '")');
|
|
6617
|
+
}
|
|
6618
|
+
})();
|
|
6619
|
+
if (obj_allowsUpdate_union1_error != null) {
|
|
6620
|
+
obj_allowsUpdate_union1 = obj_allowsUpdate_union1_error.message;
|
|
6621
|
+
}
|
|
6622
|
+
if (obj_allowsUpdate_union0 && obj_allowsUpdate_union1) {
|
|
6623
|
+
let message = 'Object doesn\'t match union (at "' + path_allowsUpdate + '")';
|
|
6624
|
+
message += '\n' + obj_allowsUpdate_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6625
|
+
message += '\n' + obj_allowsUpdate_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6626
|
+
return new TypeError(message);
|
|
6627
|
+
}
|
|
6628
|
+
}
|
|
6146
6629
|
if (obj.associatedArticles !== undefined) {
|
|
6147
6630
|
const obj_associatedArticles = obj.associatedArticles;
|
|
6148
6631
|
const path_associatedArticles = path + '.associatedArticles';
|
|
@@ -6154,7 +6637,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6154
6637
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
6155
6638
|
let obj_associatedArticles_item_union0 = null;
|
|
6156
6639
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
6157
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
6640
|
+
const referencepath_associatedArticles_itemValidationError = validate$z(obj_associatedArticles_item, path_associatedArticles_item);
|
|
6158
6641
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
6159
6642
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
6160
6643
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6302,7 +6785,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6302
6785
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
6303
6786
|
let obj_eligibilityRules_item_union0 = null;
|
|
6304
6787
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
6305
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
6788
|
+
const referencepath_eligibilityRules_itemValidationError = validate$y(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
6306
6789
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
6307
6790
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
6308
6791
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6329,12 +6812,43 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6329
6812
|
}
|
|
6330
6813
|
}
|
|
6331
6814
|
}
|
|
6815
|
+
if (obj.eligibilityRulesSourceObjectToFieldsMap !== undefined) {
|
|
6816
|
+
const obj_eligibilityRulesSourceObjectToFieldsMap = obj.eligibilityRulesSourceObjectToFieldsMap;
|
|
6817
|
+
const path_eligibilityRulesSourceObjectToFieldsMap = path + '.eligibilityRulesSourceObjectToFieldsMap';
|
|
6818
|
+
let obj_eligibilityRulesSourceObjectToFieldsMap_union0 = null;
|
|
6819
|
+
const obj_eligibilityRulesSourceObjectToFieldsMap_union0_error = (() => {
|
|
6820
|
+
const referencepath_eligibilityRulesSourceObjectToFieldsMapValidationError = validate$x(obj_eligibilityRulesSourceObjectToFieldsMap, path_eligibilityRulesSourceObjectToFieldsMap);
|
|
6821
|
+
if (referencepath_eligibilityRulesSourceObjectToFieldsMapValidationError !== null) {
|
|
6822
|
+
let message = 'Object doesn\'t match EligibilityRulesSourceObjectToFieldsMapOutputRepresentation (at "' + path_eligibilityRulesSourceObjectToFieldsMap + '")\n';
|
|
6823
|
+
message += referencepath_eligibilityRulesSourceObjectToFieldsMapValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
6824
|
+
return new TypeError(message);
|
|
6825
|
+
}
|
|
6826
|
+
})();
|
|
6827
|
+
if (obj_eligibilityRulesSourceObjectToFieldsMap_union0_error != null) {
|
|
6828
|
+
obj_eligibilityRulesSourceObjectToFieldsMap_union0 = obj_eligibilityRulesSourceObjectToFieldsMap_union0_error.message;
|
|
6829
|
+
}
|
|
6830
|
+
let obj_eligibilityRulesSourceObjectToFieldsMap_union1 = null;
|
|
6831
|
+
const obj_eligibilityRulesSourceObjectToFieldsMap_union1_error = (() => {
|
|
6832
|
+
if (obj_eligibilityRulesSourceObjectToFieldsMap !== null) {
|
|
6833
|
+
return new TypeError('Expected "null" but received "' + typeof obj_eligibilityRulesSourceObjectToFieldsMap + '" (at "' + path_eligibilityRulesSourceObjectToFieldsMap + '")');
|
|
6834
|
+
}
|
|
6835
|
+
})();
|
|
6836
|
+
if (obj_eligibilityRulesSourceObjectToFieldsMap_union1_error != null) {
|
|
6837
|
+
obj_eligibilityRulesSourceObjectToFieldsMap_union1 = obj_eligibilityRulesSourceObjectToFieldsMap_union1_error.message;
|
|
6838
|
+
}
|
|
6839
|
+
if (obj_eligibilityRulesSourceObjectToFieldsMap_union0 && obj_eligibilityRulesSourceObjectToFieldsMap_union1) {
|
|
6840
|
+
let message = 'Object doesn\'t match union (at "' + path_eligibilityRulesSourceObjectToFieldsMap + '")';
|
|
6841
|
+
message += '\n' + obj_eligibilityRulesSourceObjectToFieldsMap_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
6842
|
+
message += '\n' + obj_eligibilityRulesSourceObjectToFieldsMap_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
6843
|
+
return new TypeError(message);
|
|
6844
|
+
}
|
|
6845
|
+
}
|
|
6332
6846
|
if (obj.fulfillmentFlow !== undefined) {
|
|
6333
6847
|
const obj_fulfillmentFlow = obj.fulfillmentFlow;
|
|
6334
6848
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
6335
6849
|
let obj_fulfillmentFlow_union0 = null;
|
|
6336
6850
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
6337
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
6851
|
+
const referencepath_fulfillmentFlowValidationError = validate$w(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
6338
6852
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
6339
6853
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
6340
6854
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6365,7 +6879,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6365
6879
|
const path_intakeForm = path + '.intakeForm';
|
|
6366
6880
|
let obj_intakeForm_union0 = null;
|
|
6367
6881
|
const obj_intakeForm_union0_error = (() => {
|
|
6368
|
-
const referencepath_intakeFormValidationError = validate$
|
|
6882
|
+
const referencepath_intakeFormValidationError = validate$v(obj_intakeForm, path_intakeForm);
|
|
6369
6883
|
if (referencepath_intakeFormValidationError !== null) {
|
|
6370
6884
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
6371
6885
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6402,7 +6916,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6402
6916
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
6403
6917
|
let obj_integrations_item_union0 = null;
|
|
6404
6918
|
const obj_integrations_item_union0_error = (() => {
|
|
6405
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
6919
|
+
const referencepath_integrations_itemValidationError = validate$u(obj_integrations_item, path_integrations_item);
|
|
6406
6920
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
6407
6921
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
6408
6922
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6496,7 +7010,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6496
7010
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
6497
7011
|
let obj_preProcessors_item_union0 = null;
|
|
6498
7012
|
const obj_preProcessors_item_union0_error = (() => {
|
|
6499
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
7013
|
+
const referencepath_preProcessors_itemValidationError = validate$t(obj_preProcessors_item, path_preProcessors_item);
|
|
6500
7014
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
6501
7015
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
6502
7016
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6562,7 +7076,7 @@ function validate$m(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
6562
7076
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
6563
7077
|
let obj_productRequests_item_union0 = null;
|
|
6564
7078
|
const obj_productRequests_item_union0_error = (() => {
|
|
6565
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
7079
|
+
const referencepath_productRequests_itemValidationError = validate$r(obj_productRequests_item, path_productRequests_item);
|
|
6566
7080
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
6567
7081
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
6568
7082
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6731,14 +7245,15 @@ function normalize$b(input, existing, path, luvio, store, timestamp) {
|
|
|
6731
7245
|
return input;
|
|
6732
7246
|
}
|
|
6733
7247
|
const select$s = function CatalogItemOutputRepresentationSelect() {
|
|
6734
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
6735
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
6736
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
6737
|
-
const { selections:
|
|
6738
|
-
const { selections:
|
|
6739
|
-
const { selections:
|
|
6740
|
-
const { selections:
|
|
6741
|
-
const { selections:
|
|
7248
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$G();
|
|
7249
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$F();
|
|
7250
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$E();
|
|
7251
|
+
const { selections: EligibilityRulesSourceObjectToFieldsMapOutputRepresentation__selections, opaque: EligibilityRulesSourceObjectToFieldsMapOutputRepresentation__opaque, } = select$D();
|
|
7252
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$C();
|
|
7253
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$B();
|
|
7254
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$A();
|
|
7255
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$z();
|
|
7256
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$x();
|
|
6742
7257
|
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$t();
|
|
6743
7258
|
return {
|
|
6744
7259
|
kind: 'Fragment',
|
|
@@ -6752,6 +7267,11 @@ const select$s = function CatalogItemOutputRepresentationSelect() {
|
|
|
6752
7267
|
selections: AgentActionOutputRepresentation__selections,
|
|
6753
7268
|
required: false
|
|
6754
7269
|
},
|
|
7270
|
+
{
|
|
7271
|
+
name: 'allowsUpdate',
|
|
7272
|
+
kind: 'Scalar',
|
|
7273
|
+
required: false
|
|
7274
|
+
},
|
|
6755
7275
|
{
|
|
6756
7276
|
name: 'associatedArticles',
|
|
6757
7277
|
kind: 'Object',
|
|
@@ -6787,6 +7307,13 @@ const select$s = function CatalogItemOutputRepresentationSelect() {
|
|
|
6787
7307
|
selections: EligibilityRuleOutputRepresentation__selections,
|
|
6788
7308
|
required: false
|
|
6789
7309
|
},
|
|
7310
|
+
{
|
|
7311
|
+
name: 'eligibilityRulesSourceObjectToFieldsMap',
|
|
7312
|
+
kind: 'Object',
|
|
7313
|
+
nullable: true,
|
|
7314
|
+
selections: EligibilityRulesSourceObjectToFieldsMapOutputRepresentation__selections,
|
|
7315
|
+
required: false
|
|
7316
|
+
},
|
|
6790
7317
|
{
|
|
6791
7318
|
name: 'fulfillmentFlow',
|
|
6792
7319
|
kind: 'Object',
|
|
@@ -6881,7 +7408,20 @@ function equals$e(existing, incoming) {
|
|
|
6881
7408
|
if (!(existing_agentAction === incoming_agentAction
|
|
6882
7409
|
|| (existing_agentAction != null &&
|
|
6883
7410
|
incoming_agentAction != null &&
|
|
6884
|
-
equals$
|
|
7411
|
+
equals$s(existing_agentAction, incoming_agentAction)))) {
|
|
7412
|
+
return false;
|
|
7413
|
+
}
|
|
7414
|
+
}
|
|
7415
|
+
const existing_allowsUpdate = existing.allowsUpdate;
|
|
7416
|
+
const incoming_allowsUpdate = incoming.allowsUpdate;
|
|
7417
|
+
// if at least one of these optionals is defined
|
|
7418
|
+
if (existing_allowsUpdate !== undefined || incoming_allowsUpdate !== undefined) {
|
|
7419
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7420
|
+
// not equal
|
|
7421
|
+
if (existing_allowsUpdate === undefined || incoming_allowsUpdate === undefined) {
|
|
7422
|
+
return false;
|
|
7423
|
+
}
|
|
7424
|
+
if (!(existing_allowsUpdate === incoming_allowsUpdate)) {
|
|
6885
7425
|
return false;
|
|
6886
7426
|
}
|
|
6887
7427
|
}
|
|
@@ -6898,7 +7438,7 @@ function equals$e(existing, incoming) {
|
|
|
6898
7438
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
6899
7439
|
|| (existing_associatedArticles_item != null &&
|
|
6900
7440
|
incoming_associatedArticles_item != null &&
|
|
6901
|
-
equals$
|
|
7441
|
+
equals$r(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
6902
7442
|
return false;
|
|
6903
7443
|
}
|
|
6904
7444
|
});
|
|
@@ -6963,7 +7503,7 @@ function equals$e(existing, incoming) {
|
|
|
6963
7503
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
6964
7504
|
|| (existing_eligibilityRules_item != null &&
|
|
6965
7505
|
incoming_eligibilityRules_item != null &&
|
|
6966
|
-
equals$
|
|
7506
|
+
equals$q(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
6967
7507
|
return false;
|
|
6968
7508
|
}
|
|
6969
7509
|
});
|
|
@@ -6971,6 +7511,22 @@ function equals$e(existing, incoming) {
|
|
|
6971
7511
|
return false;
|
|
6972
7512
|
}
|
|
6973
7513
|
}
|
|
7514
|
+
const existing_eligibilityRulesSourceObjectToFieldsMap = existing.eligibilityRulesSourceObjectToFieldsMap;
|
|
7515
|
+
const incoming_eligibilityRulesSourceObjectToFieldsMap = incoming.eligibilityRulesSourceObjectToFieldsMap;
|
|
7516
|
+
// if at least one of these optionals is defined
|
|
7517
|
+
if (existing_eligibilityRulesSourceObjectToFieldsMap !== undefined || incoming_eligibilityRulesSourceObjectToFieldsMap !== undefined) {
|
|
7518
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
7519
|
+
// not equal
|
|
7520
|
+
if (existing_eligibilityRulesSourceObjectToFieldsMap === undefined || incoming_eligibilityRulesSourceObjectToFieldsMap === undefined) {
|
|
7521
|
+
return false;
|
|
7522
|
+
}
|
|
7523
|
+
if (!(existing_eligibilityRulesSourceObjectToFieldsMap === incoming_eligibilityRulesSourceObjectToFieldsMap
|
|
7524
|
+
|| (existing_eligibilityRulesSourceObjectToFieldsMap != null &&
|
|
7525
|
+
incoming_eligibilityRulesSourceObjectToFieldsMap != null &&
|
|
7526
|
+
equals$p(existing_eligibilityRulesSourceObjectToFieldsMap, incoming_eligibilityRulesSourceObjectToFieldsMap)))) {
|
|
7527
|
+
return false;
|
|
7528
|
+
}
|
|
7529
|
+
}
|
|
6974
7530
|
const existing_fulfillmentFlow = existing.fulfillmentFlow;
|
|
6975
7531
|
const incoming_fulfillmentFlow = incoming.fulfillmentFlow;
|
|
6976
7532
|
// if at least one of these optionals is defined
|
|
@@ -6983,7 +7539,7 @@ function equals$e(existing, incoming) {
|
|
|
6983
7539
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
6984
7540
|
|| (existing_fulfillmentFlow != null &&
|
|
6985
7541
|
incoming_fulfillmentFlow != null &&
|
|
6986
|
-
equals$
|
|
7542
|
+
equals$o(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
6987
7543
|
return false;
|
|
6988
7544
|
}
|
|
6989
7545
|
}
|
|
@@ -6999,7 +7555,7 @@ function equals$e(existing, incoming) {
|
|
|
6999
7555
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
7000
7556
|
|| (existing_intakeForm != null &&
|
|
7001
7557
|
incoming_intakeForm != null &&
|
|
7002
|
-
equals$
|
|
7558
|
+
equals$n(existing_intakeForm, incoming_intakeForm)))) {
|
|
7003
7559
|
return false;
|
|
7004
7560
|
}
|
|
7005
7561
|
}
|
|
@@ -7016,7 +7572,7 @@ function equals$e(existing, incoming) {
|
|
|
7016
7572
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
7017
7573
|
|| (existing_integrations_item != null &&
|
|
7018
7574
|
incoming_integrations_item != null &&
|
|
7019
|
-
equals$
|
|
7575
|
+
equals$m(existing_integrations_item, incoming_integrations_item)))) {
|
|
7020
7576
|
return false;
|
|
7021
7577
|
}
|
|
7022
7578
|
});
|
|
@@ -7063,7 +7619,7 @@ function equals$e(existing, incoming) {
|
|
|
7063
7619
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
7064
7620
|
|| (existing_preProcessors_item != null &&
|
|
7065
7621
|
incoming_preProcessors_item != null &&
|
|
7066
|
-
equals$
|
|
7622
|
+
equals$l(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
7067
7623
|
return false;
|
|
7068
7624
|
}
|
|
7069
7625
|
});
|
|
@@ -7097,7 +7653,7 @@ function equals$e(existing, incoming) {
|
|
|
7097
7653
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
7098
7654
|
|| (existing_productRequests_item != null &&
|
|
7099
7655
|
incoming_productRequests_item != null &&
|
|
7100
|
-
equals$
|
|
7656
|
+
equals$j(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
7101
7657
|
return false;
|
|
7102
7658
|
}
|
|
7103
7659
|
});
|
|
@@ -7248,13 +7804,15 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
7248
7804
|
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
7249
7805
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
7250
7806
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7807
|
+
generateParamConfigMetadata('eligibilityRulesSourceObjectToFieldsMap', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7808
|
+
generateParamConfigMetadata('allowsUpdate', false, 2 /* Body */, 4 /* Unsupported */),
|
|
7251
7809
|
];
|
|
7252
7810
|
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, createCatalogItem_ConfigPropertyMetadata);
|
|
7253
7811
|
const createResourceParams$d = /*#__PURE__*/ createResourceParams$g(createCatalogItem_ConfigPropertyMetadata);
|
|
7254
7812
|
function typeCheckConfig$d(untrustedConfig) {
|
|
7255
7813
|
const config = {};
|
|
7256
7814
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
7257
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
7815
|
+
const referenceAgentActionInputRepresentationValidationError = validate$M(untrustedConfig_agentAction);
|
|
7258
7816
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
7259
7817
|
config.agentAction = untrustedConfig_agentAction;
|
|
7260
7818
|
}
|
|
@@ -7266,7 +7824,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7266
7824
|
const untrustedConfig_associatedArticles_array = [];
|
|
7267
7825
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
7268
7826
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
7269
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
7827
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$L(untrustedConfig_associatedArticles_item);
|
|
7270
7828
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
7271
7829
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
7272
7830
|
}
|
|
@@ -7281,7 +7839,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7281
7839
|
const untrustedConfig_attributes_array = [];
|
|
7282
7840
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
7283
7841
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
7284
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
7842
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$I(untrustedConfig_attributes_item);
|
|
7285
7843
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
7286
7844
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
7287
7845
|
}
|
|
@@ -7296,7 +7854,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7296
7854
|
const untrustedConfig_sections_array = [];
|
|
7297
7855
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
7298
7856
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
7299
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
7857
|
+
const referenceSectionInputRepresentationValidationError = validate$H(untrustedConfig_sections_item);
|
|
7300
7858
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
7301
7859
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
7302
7860
|
}
|
|
@@ -7332,7 +7890,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7332
7890
|
const untrustedConfig_eligibilityRules_array = [];
|
|
7333
7891
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
7334
7892
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
7335
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
7893
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$G(untrustedConfig_eligibilityRules_item);
|
|
7336
7894
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
7337
7895
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
7338
7896
|
}
|
|
@@ -7343,7 +7901,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7343
7901
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
7344
7902
|
}
|
|
7345
7903
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
7346
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
7904
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$F(untrustedConfig_fulfillmentFlow);
|
|
7347
7905
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
7348
7906
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
7349
7907
|
}
|
|
@@ -7351,7 +7909,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7351
7909
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
7352
7910
|
}
|
|
7353
7911
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
7354
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
7912
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$E(untrustedConfig_intakeForm);
|
|
7355
7913
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
7356
7914
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
7357
7915
|
}
|
|
@@ -7363,7 +7921,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7363
7921
|
const untrustedConfig_integrations_array = [];
|
|
7364
7922
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
7365
7923
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
7366
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
7924
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$D(untrustedConfig_integrations_item);
|
|
7367
7925
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
7368
7926
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
7369
7927
|
}
|
|
@@ -7392,7 +7950,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7392
7950
|
const untrustedConfig_preProcessors_array = [];
|
|
7393
7951
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
7394
7952
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
7395
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
7953
|
+
const referencePreprocessorInputRepresentationValidationError = validate$C(untrustedConfig_preProcessors_item);
|
|
7396
7954
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
7397
7955
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
7398
7956
|
}
|
|
@@ -7407,7 +7965,7 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7407
7965
|
const untrustedConfig_productRequests_array = [];
|
|
7408
7966
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
7409
7967
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
7410
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
7968
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$B(untrustedConfig_productRequests_item);
|
|
7411
7969
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
7412
7970
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
7413
7971
|
}
|
|
@@ -7431,6 +7989,48 @@ function typeCheckConfig$d(untrustedConfig) {
|
|
|
7431
7989
|
if (untrustedConfig_usedFor === null) {
|
|
7432
7990
|
config.usedFor = untrustedConfig_usedFor;
|
|
7433
7991
|
}
|
|
7992
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap = untrustedConfig.eligibilityRulesSourceObjectToFieldsMap;
|
|
7993
|
+
if (untrustedIsObject(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap)) {
|
|
7994
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object = {};
|
|
7995
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys = Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap);
|
|
7996
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys.length; i < arrayLength; i++) {
|
|
7997
|
+
const key = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys[i];
|
|
7998
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap[key];
|
|
7999
|
+
if (ArrayIsArray$1(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop)) {
|
|
8000
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array = [];
|
|
8001
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop.length; i < arrayLength; i++) {
|
|
8002
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop[i];
|
|
8003
|
+
if (untrustedIsObject(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item)) {
|
|
8004
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object = {};
|
|
8005
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys = Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item);
|
|
8006
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys.length; i < arrayLength; i++) {
|
|
8007
|
+
const key = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys[i];
|
|
8008
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_prop = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item[key];
|
|
8009
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object !== undefined) {
|
|
8010
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object[key] = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_prop;
|
|
8011
|
+
}
|
|
8012
|
+
}
|
|
8013
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object !== undefined && Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object).length >= 0) {
|
|
8014
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array.push(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object);
|
|
8015
|
+
}
|
|
8016
|
+
}
|
|
8017
|
+
}
|
|
8018
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object !== undefined) {
|
|
8019
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object[key] = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array;
|
|
8020
|
+
}
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object !== undefined && Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object).length >= 0) {
|
|
8024
|
+
config.eligibilityRulesSourceObjectToFieldsMap = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object;
|
|
8025
|
+
}
|
|
8026
|
+
}
|
|
8027
|
+
const untrustedConfig_allowsUpdate = untrustedConfig.allowsUpdate;
|
|
8028
|
+
if (typeof untrustedConfig_allowsUpdate === 'boolean') {
|
|
8029
|
+
config.allowsUpdate = untrustedConfig_allowsUpdate;
|
|
8030
|
+
}
|
|
8031
|
+
if (untrustedConfig_allowsUpdate === null) {
|
|
8032
|
+
config.allowsUpdate = untrustedConfig_allowsUpdate;
|
|
8033
|
+
}
|
|
7434
8034
|
return config;
|
|
7435
8035
|
}
|
|
7436
8036
|
function validateAdapterConfig$d(untrustedConfig, configPropertyNames) {
|
|
@@ -8448,7 +9048,7 @@ function validate$g(obj, path = 'EinsteinAgentActionsOutputRepresentation') {
|
|
|
8448
9048
|
for (let i = 0; i < obj_actions.length; i++) {
|
|
8449
9049
|
const obj_actions_item = obj_actions[i];
|
|
8450
9050
|
const path_actions_item = path_actions + '[' + i + ']';
|
|
8451
|
-
const referencepath_actions_itemValidationError = validate$
|
|
9051
|
+
const referencepath_actions_itemValidationError = validate$P(obj_actions_item, path_actions_item);
|
|
8452
9052
|
if (referencepath_actions_itemValidationError !== null) {
|
|
8453
9053
|
let message = 'Object doesn\'t match EinsteinAgentActionOutputRepresentation (at "' + path_actions_item + '")\n';
|
|
8454
9054
|
message += referencepath_actions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -11347,6 +11947,8 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
11347
11947
|
generateParamConfigMetadata('productRequests', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
11348
11948
|
generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11349
11949
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11950
|
+
generateParamConfigMetadata('eligibilityRulesSourceObjectToFieldsMap', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11951
|
+
generateParamConfigMetadata('allowsUpdate', false, 2 /* Body */, 4 /* Unsupported */),
|
|
11350
11952
|
];
|
|
11351
11953
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
11352
11954
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$g(updateCatalogItem_ConfigPropertyMetadata);
|
|
@@ -11354,7 +11956,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11354
11956
|
const config = {};
|
|
11355
11957
|
typeCheckConfig$g(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
11356
11958
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
11357
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
11959
|
+
const referenceAgentActionInputRepresentationValidationError = validate$M(untrustedConfig_agentAction);
|
|
11358
11960
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
11359
11961
|
config.agentAction = untrustedConfig_agentAction;
|
|
11360
11962
|
}
|
|
@@ -11373,7 +11975,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11373
11975
|
const untrustedConfig_associatedArticles_array = [];
|
|
11374
11976
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
11375
11977
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
11376
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
11978
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$L(untrustedConfig_associatedArticles_item);
|
|
11377
11979
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
11378
11980
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
11379
11981
|
}
|
|
@@ -11388,7 +11990,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11388
11990
|
const untrustedConfig_attributes_array = [];
|
|
11389
11991
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
11390
11992
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
11391
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
11993
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$I(untrustedConfig_attributes_item);
|
|
11392
11994
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
11393
11995
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
11394
11996
|
}
|
|
@@ -11403,7 +12005,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11403
12005
|
const untrustedConfig_sections_array = [];
|
|
11404
12006
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
11405
12007
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
11406
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
12008
|
+
const referenceSectionInputRepresentationValidationError = validate$H(untrustedConfig_sections_item);
|
|
11407
12009
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
11408
12010
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
11409
12011
|
}
|
|
@@ -11439,7 +12041,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11439
12041
|
const untrustedConfig_eligibilityRules_array = [];
|
|
11440
12042
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
11441
12043
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
11442
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
12044
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$G(untrustedConfig_eligibilityRules_item);
|
|
11443
12045
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
11444
12046
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
11445
12047
|
}
|
|
@@ -11450,7 +12052,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11450
12052
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
11451
12053
|
}
|
|
11452
12054
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
11453
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
12055
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$F(untrustedConfig_fulfillmentFlow);
|
|
11454
12056
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
11455
12057
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
11456
12058
|
}
|
|
@@ -11458,7 +12060,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11458
12060
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
11459
12061
|
}
|
|
11460
12062
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
11461
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
12063
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$E(untrustedConfig_intakeForm);
|
|
11462
12064
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
11463
12065
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
11464
12066
|
}
|
|
@@ -11470,7 +12072,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11470
12072
|
const untrustedConfig_integrations_array = [];
|
|
11471
12073
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
11472
12074
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
11473
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
12075
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$D(untrustedConfig_integrations_item);
|
|
11474
12076
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
11475
12077
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
11476
12078
|
}
|
|
@@ -11499,7 +12101,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11499
12101
|
const untrustedConfig_preProcessors_array = [];
|
|
11500
12102
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
11501
12103
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
11502
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
12104
|
+
const referencePreprocessorInputRepresentationValidationError = validate$C(untrustedConfig_preProcessors_item);
|
|
11503
12105
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
11504
12106
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
11505
12107
|
}
|
|
@@ -11514,7 +12116,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11514
12116
|
const untrustedConfig_productRequests_array = [];
|
|
11515
12117
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
11516
12118
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
11517
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
12119
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$B(untrustedConfig_productRequests_item);
|
|
11518
12120
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
11519
12121
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
11520
12122
|
}
|
|
@@ -11538,6 +12140,48 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
11538
12140
|
if (untrustedConfig_usedFor === null) {
|
|
11539
12141
|
config.usedFor = untrustedConfig_usedFor;
|
|
11540
12142
|
}
|
|
12143
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap = untrustedConfig.eligibilityRulesSourceObjectToFieldsMap;
|
|
12144
|
+
if (untrustedIsObject(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap)) {
|
|
12145
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object = {};
|
|
12146
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys = Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap);
|
|
12147
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys.length; i < arrayLength; i++) {
|
|
12148
|
+
const key = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_keys[i];
|
|
12149
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap[key];
|
|
12150
|
+
if (ArrayIsArray$1(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop)) {
|
|
12151
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array = [];
|
|
12152
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop.length; i < arrayLength; i++) {
|
|
12153
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop[i];
|
|
12154
|
+
if (untrustedIsObject(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item)) {
|
|
12155
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object = {};
|
|
12156
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys = Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item);
|
|
12157
|
+
for (let i = 0, arrayLength = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys.length; i < arrayLength; i++) {
|
|
12158
|
+
const key = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_keys[i];
|
|
12159
|
+
const untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_prop = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item[key];
|
|
12160
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object !== undefined) {
|
|
12161
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object[key] = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_prop;
|
|
12162
|
+
}
|
|
12163
|
+
}
|
|
12164
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object !== undefined && Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object).length >= 0) {
|
|
12165
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array.push(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_item_object);
|
|
12166
|
+
}
|
|
12167
|
+
}
|
|
12168
|
+
}
|
|
12169
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object !== undefined) {
|
|
12170
|
+
untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object[key] = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_prop_array;
|
|
12171
|
+
}
|
|
12172
|
+
}
|
|
12173
|
+
}
|
|
12174
|
+
if (untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object !== undefined && Object.keys(untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object).length >= 0) {
|
|
12175
|
+
config.eligibilityRulesSourceObjectToFieldsMap = untrustedConfig_eligibilityRulesSourceObjectToFieldsMap_object;
|
|
12176
|
+
}
|
|
12177
|
+
}
|
|
12178
|
+
const untrustedConfig_allowsUpdate = untrustedConfig.allowsUpdate;
|
|
12179
|
+
if (typeof untrustedConfig_allowsUpdate === 'boolean') {
|
|
12180
|
+
config.allowsUpdate = untrustedConfig_allowsUpdate;
|
|
12181
|
+
}
|
|
12182
|
+
if (untrustedConfig_allowsUpdate === null) {
|
|
12183
|
+
config.allowsUpdate = untrustedConfig_allowsUpdate;
|
|
12184
|
+
}
|
|
11541
12185
|
return config;
|
|
11542
12186
|
}
|
|
11543
12187
|
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
@@ -11928,4 +12572,4 @@ withDefaultLuvio((luvio) => {
|
|
|
11928
12572
|
});
|
|
11929
12573
|
|
|
11930
12574
|
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, downloadServiceProcessTemplate_imperative, generateIntakeForm, generateOmniScript, getAgentActions, getAgentActions_imperative, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate, getAllServiceProcessTemplate_imperative, getCatalogItem, getCatalogItem_imperative, getEligibilityRuleMetadata, getEligibilityRuleMetadata_imperative, getServiceRequest, getServiceRequest_imperative, saveEligibilityRule, updateCatalogItem, updateEpcCategories };
|
|
11931
|
-
// version: 1.
|
|
12575
|
+
// version: 1.451.0-dev1-70d3966695
|