@salesforce/lds-adapters-service-ecm 1.347.1 → 1.348.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/service-ecm.js +1131 -549
- package/dist/es/es2018/types/src/generated/adapters/getCatalogItem.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/getServiceRequest.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationCatalogCatalogItemByCatalogItemId.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceRequestServiceCatalogRequestByServiceRequestId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeInputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/CatalogItemAttributeOutputRepresentation.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/types/PicklistAttributeTypeInputRepresentation.d.ts +16 -13
- package/dist/es/es2018/types/src/generated/types/PicklistAttributeTypeOutputRepresentation.d.ts +13 -13
- package/dist/es/es2018/types/src/generated/types/ProductDetailsOutputRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/SectionInputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/SectionOutputRepresentation.d.ts +3 -3
- package/dist/es/es2018/types/src/generated/types/ServiceRequestGetOutputRepresentation.d.ts +39 -0
- package/package.json +3 -3
- package/sfdc/index.js +1037 -447
- package/src/raml/api.raml +79 -0
- package/src/raml/luvio.raml +4 -0
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
7
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3, typeCheckConfig as typeCheckConfig$7 } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -87,13 +87,32 @@ function equalsArray(a, b, equalsItem) {
|
|
|
87
87
|
}
|
|
88
88
|
return true;
|
|
89
89
|
}
|
|
90
|
+
function equalsObject(a, b, equalsProp) {
|
|
91
|
+
const aKeys = ObjectKeys(a).sort();
|
|
92
|
+
const bKeys = ObjectKeys(b).sort();
|
|
93
|
+
const aKeysLength = aKeys.length;
|
|
94
|
+
const bKeysLength = bKeys.length;
|
|
95
|
+
if (aKeysLength !== bKeysLength) {
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
99
|
+
const key = aKeys[i];
|
|
100
|
+
if (key !== bKeys[i]) {
|
|
101
|
+
return false;
|
|
102
|
+
}
|
|
103
|
+
if (equalsProp(a[key], b[key]) === false) {
|
|
104
|
+
return false;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
return true;
|
|
108
|
+
}
|
|
90
109
|
function createLink(ref) {
|
|
91
110
|
return {
|
|
92
111
|
__ref: serializeStructuredKey(ref),
|
|
93
112
|
};
|
|
94
113
|
}
|
|
95
114
|
|
|
96
|
-
function validate$
|
|
115
|
+
function validate$v(obj, path = 'AgentActionInputRepresentation') {
|
|
97
116
|
const v_error = (() => {
|
|
98
117
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
99
118
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -214,7 +233,7 @@ function validate$u(obj, path = 'AgentActionInputRepresentation') {
|
|
|
214
233
|
return v_error === undefined ? null : v_error;
|
|
215
234
|
}
|
|
216
235
|
|
|
217
|
-
function validate$
|
|
236
|
+
function validate$u(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
218
237
|
const v_error = (() => {
|
|
219
238
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
220
239
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -307,46 +326,86 @@ function validate$t(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
307
326
|
return v_error === undefined ? null : v_error;
|
|
308
327
|
}
|
|
309
328
|
|
|
310
|
-
function validate$
|
|
329
|
+
function validate$t(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
311
330
|
const v_error = (() => {
|
|
312
331
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
313
332
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
314
333
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
334
|
+
if (obj.displayName !== undefined) {
|
|
335
|
+
const obj_displayName = obj.displayName;
|
|
336
|
+
const path_displayName = path + '.displayName';
|
|
337
|
+
if (typeof obj_displayName !== 'string') {
|
|
338
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
339
|
+
}
|
|
319
340
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
341
|
+
if (obj.id !== undefined) {
|
|
342
|
+
const obj_id = obj.id;
|
|
343
|
+
const path_id = path + '.id';
|
|
344
|
+
if (typeof obj_id !== 'string') {
|
|
345
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
346
|
+
}
|
|
324
347
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
348
|
+
if (obj.isDefault !== undefined) {
|
|
349
|
+
const obj_isDefault = obj.isDefault;
|
|
350
|
+
const path_isDefault = path + '.isDefault';
|
|
351
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
352
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
353
|
+
}
|
|
329
354
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
355
|
+
if (obj.isVisible !== undefined) {
|
|
356
|
+
const obj_isVisible = obj.isVisible;
|
|
357
|
+
const path_isVisible = path + '.isVisible';
|
|
358
|
+
if (typeof obj_isVisible !== 'boolean') {
|
|
359
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVisible + '" (at "' + path_isVisible + '")');
|
|
360
|
+
}
|
|
334
361
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
362
|
+
if (obj.name !== undefined) {
|
|
363
|
+
const obj_name = obj.name;
|
|
364
|
+
const path_name = path + '.name';
|
|
365
|
+
if (typeof obj_name !== 'string') {
|
|
366
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
if (obj.operationType !== undefined) {
|
|
370
|
+
const obj_operationType = obj.operationType;
|
|
371
|
+
const path_operationType = path + '.operationType';
|
|
372
|
+
let obj_operationType_union0 = null;
|
|
373
|
+
const obj_operationType_union0_error = (() => {
|
|
374
|
+
if (typeof obj_operationType !== 'string') {
|
|
375
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
376
|
+
}
|
|
377
|
+
})();
|
|
378
|
+
if (obj_operationType_union0_error != null) {
|
|
379
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
380
|
+
}
|
|
381
|
+
let obj_operationType_union1 = null;
|
|
382
|
+
const obj_operationType_union1_error = (() => {
|
|
383
|
+
if (obj_operationType !== null) {
|
|
384
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
385
|
+
}
|
|
386
|
+
})();
|
|
387
|
+
if (obj_operationType_union1_error != null) {
|
|
388
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
389
|
+
}
|
|
390
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
391
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
392
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
393
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
394
|
+
return new TypeError(message);
|
|
395
|
+
}
|
|
339
396
|
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
397
|
+
if (obj.sequenceNumber !== undefined) {
|
|
398
|
+
const obj_sequenceNumber = obj.sequenceNumber;
|
|
399
|
+
const path_sequenceNumber = path + '.sequenceNumber';
|
|
400
|
+
if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
|
|
401
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
402
|
+
}
|
|
344
403
|
}
|
|
345
404
|
})();
|
|
346
405
|
return v_error === undefined ? null : v_error;
|
|
347
406
|
}
|
|
348
407
|
|
|
349
|
-
function validate$
|
|
408
|
+
function validate$s(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
350
409
|
const v_error = (() => {
|
|
351
410
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
352
411
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -519,10 +578,12 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
519
578
|
return new TypeError(message);
|
|
520
579
|
}
|
|
521
580
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
581
|
+
if (obj.isEditable !== undefined) {
|
|
582
|
+
const obj_isEditable = obj.isEditable;
|
|
583
|
+
const path_isEditable = path + '.isEditable';
|
|
584
|
+
if (typeof obj_isEditable !== 'boolean') {
|
|
585
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEditable + '" (at "' + path_isEditable + '")');
|
|
586
|
+
}
|
|
526
587
|
}
|
|
527
588
|
if (obj.isHidden !== undefined) {
|
|
528
589
|
const obj_isHidden = obj.isHidden;
|
|
@@ -580,10 +641,12 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
580
641
|
return new TypeError(message);
|
|
581
642
|
}
|
|
582
643
|
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
644
|
+
if (obj.isMappedAnchorField !== undefined) {
|
|
645
|
+
const obj_isMappedAnchorField = obj.isMappedAnchorField;
|
|
646
|
+
const path_isMappedAnchorField = path + '.isMappedAnchorField';
|
|
647
|
+
if (typeof obj_isMappedAnchorField !== 'boolean') {
|
|
648
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMappedAnchorField + '" (at "' + path_isMappedAnchorField + '")');
|
|
649
|
+
}
|
|
587
650
|
}
|
|
588
651
|
if (obj.isReadOnly !== undefined) {
|
|
589
652
|
const obj_isReadOnly = obj.isReadOnly;
|
|
@@ -697,40 +760,42 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
697
760
|
return new TypeError(message);
|
|
698
761
|
}
|
|
699
762
|
}
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
const
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
763
|
+
if (obj.picklistOptions !== undefined) {
|
|
764
|
+
const obj_picklistOptions = obj.picklistOptions;
|
|
765
|
+
const path_picklistOptions = path + '.picklistOptions';
|
|
766
|
+
if (!ArrayIsArray(obj_picklistOptions)) {
|
|
767
|
+
return new TypeError('Expected "array" but received "' + typeof obj_picklistOptions + '" (at "' + path_picklistOptions + '")');
|
|
768
|
+
}
|
|
769
|
+
for (let i = 0; i < obj_picklistOptions.length; i++) {
|
|
770
|
+
const obj_picklistOptions_item = obj_picklistOptions[i];
|
|
771
|
+
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
772
|
+
let obj_picklistOptions_item_union0 = null;
|
|
773
|
+
const obj_picklistOptions_item_union0_error = (() => {
|
|
774
|
+
const referencepath_picklistOptions_itemValidationError = validate$t(obj_picklistOptions_item, path_picklistOptions_item);
|
|
775
|
+
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
776
|
+
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
777
|
+
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
778
|
+
return new TypeError(message);
|
|
779
|
+
}
|
|
780
|
+
})();
|
|
781
|
+
if (obj_picklistOptions_item_union0_error != null) {
|
|
782
|
+
obj_picklistOptions_item_union0 = obj_picklistOptions_item_union0_error.message;
|
|
715
783
|
}
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
if (
|
|
723
|
-
|
|
784
|
+
let obj_picklistOptions_item_union1 = null;
|
|
785
|
+
const obj_picklistOptions_item_union1_error = (() => {
|
|
786
|
+
if (obj_picklistOptions_item !== null) {
|
|
787
|
+
return new TypeError('Expected "null" but received "' + typeof obj_picklistOptions_item + '" (at "' + path_picklistOptions_item + '")');
|
|
788
|
+
}
|
|
789
|
+
})();
|
|
790
|
+
if (obj_picklistOptions_item_union1_error != null) {
|
|
791
|
+
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
792
|
+
}
|
|
793
|
+
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
794
|
+
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
795
|
+
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
796
|
+
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
797
|
+
return new TypeError(message);
|
|
724
798
|
}
|
|
725
|
-
})();
|
|
726
|
-
if (obj_picklistOptions_item_union1_error != null) {
|
|
727
|
-
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
728
|
-
}
|
|
729
|
-
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
730
|
-
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
731
|
-
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
732
|
-
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
733
|
-
return new TypeError(message);
|
|
734
799
|
}
|
|
735
800
|
}
|
|
736
801
|
if (obj.sequence !== undefined) {
|
|
@@ -765,7 +830,7 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
765
830
|
return v_error === undefined ? null : v_error;
|
|
766
831
|
}
|
|
767
832
|
|
|
768
|
-
function validate$
|
|
833
|
+
function validate$r(obj, path = 'SectionInputRepresentation') {
|
|
769
834
|
const v_error = (() => {
|
|
770
835
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
771
836
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -896,16 +961,18 @@ function validate$q(obj, path = 'SectionInputRepresentation') {
|
|
|
896
961
|
return new TypeError(message);
|
|
897
962
|
}
|
|
898
963
|
}
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
964
|
+
if (obj.sequence !== undefined) {
|
|
965
|
+
const obj_sequence = obj.sequence;
|
|
966
|
+
const path_sequence = path + '.sequence';
|
|
967
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
968
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
969
|
+
}
|
|
903
970
|
}
|
|
904
971
|
})();
|
|
905
972
|
return v_error === undefined ? null : v_error;
|
|
906
973
|
}
|
|
907
974
|
|
|
908
|
-
function validate$
|
|
975
|
+
function validate$q(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
909
976
|
const v_error = (() => {
|
|
910
977
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
911
978
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -970,7 +1037,7 @@ function validate$p(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
970
1037
|
return v_error === undefined ? null : v_error;
|
|
971
1038
|
}
|
|
972
1039
|
|
|
973
|
-
function validate$
|
|
1040
|
+
function validate$p(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
974
1041
|
const v_error = (() => {
|
|
975
1042
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
976
1043
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1091,7 +1158,7 @@ function validate$o(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1091
1158
|
return v_error === undefined ? null : v_error;
|
|
1092
1159
|
}
|
|
1093
1160
|
|
|
1094
|
-
function validate$
|
|
1161
|
+
function validate$o(obj, path = 'IntakeFormInputRepresentation') {
|
|
1095
1162
|
const v_error = (() => {
|
|
1096
1163
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1097
1164
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1212,7 +1279,7 @@ function validate$n(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1212
1279
|
return v_error === undefined ? null : v_error;
|
|
1213
1280
|
}
|
|
1214
1281
|
|
|
1215
|
-
function validate$
|
|
1282
|
+
function validate$n(obj, path = 'IntegrationDefInputRepresentation') {
|
|
1216
1283
|
const v_error = (() => {
|
|
1217
1284
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1218
1285
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1305,7 +1372,7 @@ function validate$m(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1305
1372
|
return v_error === undefined ? null : v_error;
|
|
1306
1373
|
}
|
|
1307
1374
|
|
|
1308
|
-
function validate$
|
|
1375
|
+
function validate$m(obj, path = 'PreprocessorInputRepresentation') {
|
|
1309
1376
|
const v_error = (() => {
|
|
1310
1377
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1311
1378
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1398,7 +1465,7 @@ function validate$l(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1398
1465
|
return v_error === undefined ? null : v_error;
|
|
1399
1466
|
}
|
|
1400
1467
|
|
|
1401
|
-
function validate$
|
|
1468
|
+
function validate$l(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1402
1469
|
const v_error = (() => {
|
|
1403
1470
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1404
1471
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1589,8 +1656,8 @@ function validate$k(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
1589
1656
|
return v_error === undefined ? null : v_error;
|
|
1590
1657
|
}
|
|
1591
1658
|
|
|
1592
|
-
const VERSION$
|
|
1593
|
-
function validate$
|
|
1659
|
+
const VERSION$g = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1660
|
+
function validate$k(obj, path = 'AgentActionOutputRepresentation') {
|
|
1594
1661
|
const v_error = (() => {
|
|
1595
1662
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1596
1663
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1682,10 +1749,10 @@ function validate$j(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1682
1749
|
})();
|
|
1683
1750
|
return v_error === undefined ? null : v_error;
|
|
1684
1751
|
}
|
|
1685
|
-
const select$
|
|
1752
|
+
const select$n = function AgentActionOutputRepresentationSelect() {
|
|
1686
1753
|
return {
|
|
1687
1754
|
kind: 'Fragment',
|
|
1688
|
-
version: VERSION$
|
|
1755
|
+
version: VERSION$g,
|
|
1689
1756
|
private: [],
|
|
1690
1757
|
selections: [
|
|
1691
1758
|
{
|
|
@@ -1706,7 +1773,7 @@ const select$l = function AgentActionOutputRepresentationSelect() {
|
|
|
1706
1773
|
]
|
|
1707
1774
|
};
|
|
1708
1775
|
};
|
|
1709
|
-
function equals$
|
|
1776
|
+
function equals$g(existing, incoming) {
|
|
1710
1777
|
const existing_agentActionId = existing.agentActionId;
|
|
1711
1778
|
const incoming_agentActionId = incoming.agentActionId;
|
|
1712
1779
|
// if at least one of these optionals is defined
|
|
@@ -1749,8 +1816,8 @@ function equals$f(existing, incoming) {
|
|
|
1749
1816
|
return true;
|
|
1750
1817
|
}
|
|
1751
1818
|
|
|
1752
|
-
const VERSION$
|
|
1753
|
-
function validate$
|
|
1819
|
+
const VERSION$f = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1820
|
+
function validate$j(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1754
1821
|
const v_error = (() => {
|
|
1755
1822
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1756
1823
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1814,10 +1881,10 @@ function validate$i(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1814
1881
|
})();
|
|
1815
1882
|
return v_error === undefined ? null : v_error;
|
|
1816
1883
|
}
|
|
1817
|
-
const select$
|
|
1884
|
+
const select$m = function AssociatedArticleOutputRepresentationSelect() {
|
|
1818
1885
|
return {
|
|
1819
1886
|
kind: 'Fragment',
|
|
1820
|
-
version: VERSION$
|
|
1887
|
+
version: VERSION$f,
|
|
1821
1888
|
private: [],
|
|
1822
1889
|
selections: [
|
|
1823
1890
|
{
|
|
@@ -1833,7 +1900,7 @@ const select$k = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1833
1900
|
]
|
|
1834
1901
|
};
|
|
1835
1902
|
};
|
|
1836
|
-
function equals$
|
|
1903
|
+
function equals$f(existing, incoming) {
|
|
1837
1904
|
const existing_id = existing.id;
|
|
1838
1905
|
const incoming_id = incoming.id;
|
|
1839
1906
|
// if at least one of these optionals is defined
|
|
@@ -1863,8 +1930,8 @@ function equals$e(existing, incoming) {
|
|
|
1863
1930
|
return true;
|
|
1864
1931
|
}
|
|
1865
1932
|
|
|
1866
|
-
const VERSION$
|
|
1867
|
-
function validate$
|
|
1933
|
+
const VERSION$e = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1934
|
+
function validate$i(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1868
1935
|
const v_error = (() => {
|
|
1869
1936
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1870
1937
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1928,10 +1995,10 @@ function validate$h(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
1928
1995
|
})();
|
|
1929
1996
|
return v_error === undefined ? null : v_error;
|
|
1930
1997
|
}
|
|
1931
|
-
const select$
|
|
1998
|
+
const select$l = function EligibilityRuleOutputRepresentationSelect() {
|
|
1932
1999
|
return {
|
|
1933
2000
|
kind: 'Fragment',
|
|
1934
|
-
version: VERSION$
|
|
2001
|
+
version: VERSION$e,
|
|
1935
2002
|
private: [],
|
|
1936
2003
|
selections: [
|
|
1937
2004
|
{
|
|
@@ -1947,7 +2014,7 @@ const select$j = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
1947
2014
|
]
|
|
1948
2015
|
};
|
|
1949
2016
|
};
|
|
1950
|
-
function equals$
|
|
2017
|
+
function equals$e(existing, incoming) {
|
|
1951
2018
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
1952
2019
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
1953
2020
|
// if at least one of these optionals is defined
|
|
@@ -1977,8 +2044,8 @@ function equals$d(existing, incoming) {
|
|
|
1977
2044
|
return true;
|
|
1978
2045
|
}
|
|
1979
2046
|
|
|
1980
|
-
const VERSION$
|
|
1981
|
-
function validate$
|
|
2047
|
+
const VERSION$d = "b5216beece7c04763cff6924e6953f93";
|
|
2048
|
+
function validate$h(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
1982
2049
|
const v_error = (() => {
|
|
1983
2050
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1984
2051
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2070,10 +2137,10 @@ function validate$g(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2070
2137
|
})();
|
|
2071
2138
|
return v_error === undefined ? null : v_error;
|
|
2072
2139
|
}
|
|
2073
|
-
const select$
|
|
2140
|
+
const select$k = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2074
2141
|
return {
|
|
2075
2142
|
kind: 'Fragment',
|
|
2076
|
-
version: VERSION$
|
|
2143
|
+
version: VERSION$d,
|
|
2077
2144
|
private: [],
|
|
2078
2145
|
selections: [
|
|
2079
2146
|
{
|
|
@@ -2094,7 +2161,7 @@ const select$i = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2094
2161
|
]
|
|
2095
2162
|
};
|
|
2096
2163
|
};
|
|
2097
|
-
function equals$
|
|
2164
|
+
function equals$d(existing, incoming) {
|
|
2098
2165
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
2099
2166
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
2100
2167
|
// if at least one of these optionals is defined
|
|
@@ -2137,8 +2204,8 @@ function equals$c(existing, incoming) {
|
|
|
2137
2204
|
return true;
|
|
2138
2205
|
}
|
|
2139
2206
|
|
|
2140
|
-
const VERSION$
|
|
2141
|
-
function validate$
|
|
2207
|
+
const VERSION$c = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2208
|
+
function validate$g(obj, path = 'IntakeFormOutputRepresentation') {
|
|
2142
2209
|
const v_error = (() => {
|
|
2143
2210
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2144
2211
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2370,10 +2437,10 @@ function validate$f(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2370
2437
|
})();
|
|
2371
2438
|
return v_error === undefined ? null : v_error;
|
|
2372
2439
|
}
|
|
2373
|
-
const select$
|
|
2440
|
+
const select$j = function IntakeFormOutputRepresentationSelect() {
|
|
2374
2441
|
return {
|
|
2375
2442
|
kind: 'Fragment',
|
|
2376
|
-
version: VERSION$
|
|
2443
|
+
version: VERSION$c,
|
|
2377
2444
|
private: [],
|
|
2378
2445
|
selections: [
|
|
2379
2446
|
{
|
|
@@ -2419,7 +2486,7 @@ const select$h = function IntakeFormOutputRepresentationSelect() {
|
|
|
2419
2486
|
]
|
|
2420
2487
|
};
|
|
2421
2488
|
};
|
|
2422
|
-
function equals$
|
|
2489
|
+
function equals$c(existing, incoming) {
|
|
2423
2490
|
const existing_id = existing.id;
|
|
2424
2491
|
const incoming_id = incoming.id;
|
|
2425
2492
|
// if at least one of these optionals is defined
|
|
@@ -2527,8 +2594,8 @@ function equals$b(existing, incoming) {
|
|
|
2527
2594
|
return true;
|
|
2528
2595
|
}
|
|
2529
2596
|
|
|
2530
|
-
const VERSION$
|
|
2531
|
-
function validate$
|
|
2597
|
+
const VERSION$b = "1006a153c933b8bc4b1d44663893e206";
|
|
2598
|
+
function validate$f(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
2532
2599
|
const v_error = (() => {
|
|
2533
2600
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2534
2601
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2592,10 +2659,10 @@ function validate$e(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2592
2659
|
})();
|
|
2593
2660
|
return v_error === undefined ? null : v_error;
|
|
2594
2661
|
}
|
|
2595
|
-
const select$
|
|
2662
|
+
const select$i = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2596
2663
|
return {
|
|
2597
2664
|
kind: 'Fragment',
|
|
2598
|
-
version: VERSION$
|
|
2665
|
+
version: VERSION$b,
|
|
2599
2666
|
private: [],
|
|
2600
2667
|
selections: [
|
|
2601
2668
|
{
|
|
@@ -2611,7 +2678,7 @@ const select$g = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2611
2678
|
]
|
|
2612
2679
|
};
|
|
2613
2680
|
};
|
|
2614
|
-
function equals$
|
|
2681
|
+
function equals$b(existing, incoming) {
|
|
2615
2682
|
const existing_id = existing.id;
|
|
2616
2683
|
const incoming_id = incoming.id;
|
|
2617
2684
|
// if at least one of these optionals is defined
|
|
@@ -2641,8 +2708,8 @@ function equals$a(existing, incoming) {
|
|
|
2641
2708
|
return true;
|
|
2642
2709
|
}
|
|
2643
2710
|
|
|
2644
|
-
const VERSION$
|
|
2645
|
-
function validate$
|
|
2711
|
+
const VERSION$a = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2712
|
+
function validate$e(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2646
2713
|
const v_error = (() => {
|
|
2647
2714
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2648
2715
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2706,10 +2773,10 @@ function validate$d(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2706
2773
|
})();
|
|
2707
2774
|
return v_error === undefined ? null : v_error;
|
|
2708
2775
|
}
|
|
2709
|
-
const select$
|
|
2776
|
+
const select$h = function PreprocessorOutputRepresentationSelect() {
|
|
2710
2777
|
return {
|
|
2711
2778
|
kind: 'Fragment',
|
|
2712
|
-
version: VERSION$
|
|
2779
|
+
version: VERSION$a,
|
|
2713
2780
|
private: [],
|
|
2714
2781
|
selections: [
|
|
2715
2782
|
{
|
|
@@ -2725,7 +2792,7 @@ const select$f = function PreprocessorOutputRepresentationSelect() {
|
|
|
2725
2792
|
]
|
|
2726
2793
|
};
|
|
2727
2794
|
};
|
|
2728
|
-
function equals$
|
|
2795
|
+
function equals$a(existing, incoming) {
|
|
2729
2796
|
const existing_id = existing.id;
|
|
2730
2797
|
const incoming_id = incoming.id;
|
|
2731
2798
|
// if at least one of these optionals is defined
|
|
@@ -2755,12 +2822,68 @@ function equals$9(existing, incoming) {
|
|
|
2755
2822
|
return true;
|
|
2756
2823
|
}
|
|
2757
2824
|
|
|
2758
|
-
const VERSION$
|
|
2759
|
-
function validate$
|
|
2825
|
+
const VERSION$9 = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2826
|
+
function validate$d(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
2760
2827
|
const v_error = (() => {
|
|
2761
2828
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2762
2829
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2763
2830
|
}
|
|
2831
|
+
if (obj.description !== undefined) {
|
|
2832
|
+
const obj_description = obj.description;
|
|
2833
|
+
const path_description = path + '.description';
|
|
2834
|
+
let obj_description_union0 = null;
|
|
2835
|
+
const obj_description_union0_error = (() => {
|
|
2836
|
+
if (typeof obj_description !== 'string') {
|
|
2837
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2838
|
+
}
|
|
2839
|
+
})();
|
|
2840
|
+
if (obj_description_union0_error != null) {
|
|
2841
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2842
|
+
}
|
|
2843
|
+
let obj_description_union1 = null;
|
|
2844
|
+
const obj_description_union1_error = (() => {
|
|
2845
|
+
if (obj_description !== null) {
|
|
2846
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2847
|
+
}
|
|
2848
|
+
})();
|
|
2849
|
+
if (obj_description_union1_error != null) {
|
|
2850
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2851
|
+
}
|
|
2852
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2853
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2854
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2855
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2856
|
+
return new TypeError(message);
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2859
|
+
if (obj.displayUrl !== undefined) {
|
|
2860
|
+
const obj_displayUrl = obj.displayUrl;
|
|
2861
|
+
const path_displayUrl = path + '.displayUrl';
|
|
2862
|
+
let obj_displayUrl_union0 = null;
|
|
2863
|
+
const obj_displayUrl_union0_error = (() => {
|
|
2864
|
+
if (typeof obj_displayUrl !== 'string') {
|
|
2865
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
2866
|
+
}
|
|
2867
|
+
})();
|
|
2868
|
+
if (obj_displayUrl_union0_error != null) {
|
|
2869
|
+
obj_displayUrl_union0 = obj_displayUrl_union0_error.message;
|
|
2870
|
+
}
|
|
2871
|
+
let obj_displayUrl_union1 = null;
|
|
2872
|
+
const obj_displayUrl_union1_error = (() => {
|
|
2873
|
+
if (obj_displayUrl !== null) {
|
|
2874
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
2875
|
+
}
|
|
2876
|
+
})();
|
|
2877
|
+
if (obj_displayUrl_union1_error != null) {
|
|
2878
|
+
obj_displayUrl_union1 = obj_displayUrl_union1_error.message;
|
|
2879
|
+
}
|
|
2880
|
+
if (obj_displayUrl_union0 && obj_displayUrl_union1) {
|
|
2881
|
+
let message = 'Object doesn\'t match union (at "' + path_displayUrl + '")';
|
|
2882
|
+
message += '\n' + obj_displayUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2883
|
+
message += '\n' + obj_displayUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2884
|
+
return new TypeError(message);
|
|
2885
|
+
}
|
|
2886
|
+
}
|
|
2764
2887
|
if (obj.id !== undefined) {
|
|
2765
2888
|
const obj_id = obj.id;
|
|
2766
2889
|
const path_id = path + '.id';
|
|
@@ -2817,15 +2940,81 @@ function validate$c(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
2817
2940
|
return new TypeError(message);
|
|
2818
2941
|
}
|
|
2819
2942
|
}
|
|
2943
|
+
if (obj.productName !== undefined) {
|
|
2944
|
+
const obj_productName = obj.productName;
|
|
2945
|
+
const path_productName = path + '.productName';
|
|
2946
|
+
let obj_productName_union0 = null;
|
|
2947
|
+
const obj_productName_union0_error = (() => {
|
|
2948
|
+
if (typeof obj_productName !== 'string') {
|
|
2949
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productName + '" (at "' + path_productName + '")');
|
|
2950
|
+
}
|
|
2951
|
+
})();
|
|
2952
|
+
if (obj_productName_union0_error != null) {
|
|
2953
|
+
obj_productName_union0 = obj_productName_union0_error.message;
|
|
2954
|
+
}
|
|
2955
|
+
let obj_productName_union1 = null;
|
|
2956
|
+
const obj_productName_union1_error = (() => {
|
|
2957
|
+
if (obj_productName !== null) {
|
|
2958
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productName + '" (at "' + path_productName + '")');
|
|
2959
|
+
}
|
|
2960
|
+
})();
|
|
2961
|
+
if (obj_productName_union1_error != null) {
|
|
2962
|
+
obj_productName_union1 = obj_productName_union1_error.message;
|
|
2963
|
+
}
|
|
2964
|
+
if (obj_productName_union0 && obj_productName_union1) {
|
|
2965
|
+
let message = 'Object doesn\'t match union (at "' + path_productName + '")';
|
|
2966
|
+
message += '\n' + obj_productName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2967
|
+
message += '\n' + obj_productName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2968
|
+
return new TypeError(message);
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
if (obj.productPrice !== undefined) {
|
|
2972
|
+
const obj_productPrice = obj.productPrice;
|
|
2973
|
+
const path_productPrice = path + '.productPrice';
|
|
2974
|
+
let obj_productPrice_union0 = null;
|
|
2975
|
+
const obj_productPrice_union0_error = (() => {
|
|
2976
|
+
if (typeof obj_productPrice !== 'string') {
|
|
2977
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productPrice + '" (at "' + path_productPrice + '")');
|
|
2978
|
+
}
|
|
2979
|
+
})();
|
|
2980
|
+
if (obj_productPrice_union0_error != null) {
|
|
2981
|
+
obj_productPrice_union0 = obj_productPrice_union0_error.message;
|
|
2982
|
+
}
|
|
2983
|
+
let obj_productPrice_union1 = null;
|
|
2984
|
+
const obj_productPrice_union1_error = (() => {
|
|
2985
|
+
if (obj_productPrice !== null) {
|
|
2986
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productPrice + '" (at "' + path_productPrice + '")');
|
|
2987
|
+
}
|
|
2988
|
+
})();
|
|
2989
|
+
if (obj_productPrice_union1_error != null) {
|
|
2990
|
+
obj_productPrice_union1 = obj_productPrice_union1_error.message;
|
|
2991
|
+
}
|
|
2992
|
+
if (obj_productPrice_union0 && obj_productPrice_union1) {
|
|
2993
|
+
let message = 'Object doesn\'t match union (at "' + path_productPrice + '")';
|
|
2994
|
+
message += '\n' + obj_productPrice_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2995
|
+
message += '\n' + obj_productPrice_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2996
|
+
return new TypeError(message);
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2820
2999
|
})();
|
|
2821
3000
|
return v_error === undefined ? null : v_error;
|
|
2822
3001
|
}
|
|
2823
|
-
const select$
|
|
3002
|
+
const select$g = function ProductDetailsOutputRepresentationSelect() {
|
|
2824
3003
|
return {
|
|
2825
3004
|
kind: 'Fragment',
|
|
2826
|
-
version: VERSION$
|
|
3005
|
+
version: VERSION$9,
|
|
2827
3006
|
private: [],
|
|
2828
3007
|
selections: [
|
|
3008
|
+
{
|
|
3009
|
+
name: 'description',
|
|
3010
|
+
kind: 'Scalar',
|
|
3011
|
+
required: false
|
|
3012
|
+
},
|
|
3013
|
+
{
|
|
3014
|
+
name: 'displayUrl',
|
|
3015
|
+
kind: 'Scalar',
|
|
3016
|
+
required: false
|
|
3017
|
+
},
|
|
2829
3018
|
{
|
|
2830
3019
|
name: 'id',
|
|
2831
3020
|
kind: 'Scalar',
|
|
@@ -2835,11 +3024,47 @@ const select$e = function ProductDetailsOutputRepresentationSelect() {
|
|
|
2835
3024
|
name: 'productId',
|
|
2836
3025
|
kind: 'Scalar',
|
|
2837
3026
|
required: false
|
|
3027
|
+
},
|
|
3028
|
+
{
|
|
3029
|
+
name: 'productName',
|
|
3030
|
+
kind: 'Scalar',
|
|
3031
|
+
required: false
|
|
3032
|
+
},
|
|
3033
|
+
{
|
|
3034
|
+
name: 'productPrice',
|
|
3035
|
+
kind: 'Scalar',
|
|
3036
|
+
required: false
|
|
2838
3037
|
}
|
|
2839
3038
|
]
|
|
2840
3039
|
};
|
|
2841
3040
|
};
|
|
2842
|
-
function equals$
|
|
3041
|
+
function equals$9(existing, incoming) {
|
|
3042
|
+
const existing_description = existing.description;
|
|
3043
|
+
const incoming_description = incoming.description;
|
|
3044
|
+
// if at least one of these optionals is defined
|
|
3045
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
3046
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3047
|
+
// not equal
|
|
3048
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
3049
|
+
return false;
|
|
3050
|
+
}
|
|
3051
|
+
if (!(existing_description === incoming_description)) {
|
|
3052
|
+
return false;
|
|
3053
|
+
}
|
|
3054
|
+
}
|
|
3055
|
+
const existing_displayUrl = existing.displayUrl;
|
|
3056
|
+
const incoming_displayUrl = incoming.displayUrl;
|
|
3057
|
+
// if at least one of these optionals is defined
|
|
3058
|
+
if (existing_displayUrl !== undefined || incoming_displayUrl !== undefined) {
|
|
3059
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3060
|
+
// not equal
|
|
3061
|
+
if (existing_displayUrl === undefined || incoming_displayUrl === undefined) {
|
|
3062
|
+
return false;
|
|
3063
|
+
}
|
|
3064
|
+
if (!(existing_displayUrl === incoming_displayUrl)) {
|
|
3065
|
+
return false;
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
2843
3068
|
const existing_id = existing.id;
|
|
2844
3069
|
const incoming_id = incoming.id;
|
|
2845
3070
|
// if at least one of these optionals is defined
|
|
@@ -2866,11 +3091,37 @@ function equals$8(existing, incoming) {
|
|
|
2866
3091
|
return false;
|
|
2867
3092
|
}
|
|
2868
3093
|
}
|
|
3094
|
+
const existing_productName = existing.productName;
|
|
3095
|
+
const incoming_productName = incoming.productName;
|
|
3096
|
+
// if at least one of these optionals is defined
|
|
3097
|
+
if (existing_productName !== undefined || incoming_productName !== undefined) {
|
|
3098
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3099
|
+
// not equal
|
|
3100
|
+
if (existing_productName === undefined || incoming_productName === undefined) {
|
|
3101
|
+
return false;
|
|
3102
|
+
}
|
|
3103
|
+
if (!(existing_productName === incoming_productName)) {
|
|
3104
|
+
return false;
|
|
3105
|
+
}
|
|
3106
|
+
}
|
|
3107
|
+
const existing_productPrice = existing.productPrice;
|
|
3108
|
+
const incoming_productPrice = incoming.productPrice;
|
|
3109
|
+
// if at least one of these optionals is defined
|
|
3110
|
+
if (existing_productPrice !== undefined || incoming_productPrice !== undefined) {
|
|
3111
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3112
|
+
// not equal
|
|
3113
|
+
if (existing_productPrice === undefined || incoming_productPrice === undefined) {
|
|
3114
|
+
return false;
|
|
3115
|
+
}
|
|
3116
|
+
if (!(existing_productPrice === incoming_productPrice)) {
|
|
3117
|
+
return false;
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
2869
3120
|
return true;
|
|
2870
3121
|
}
|
|
2871
3122
|
|
|
2872
|
-
const VERSION$
|
|
2873
|
-
function validate$
|
|
3123
|
+
const VERSION$8 = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3124
|
+
function validate$c(obj, path = 'ProductRequestOutputRepresentation') {
|
|
2874
3125
|
const v_error = (() => {
|
|
2875
3126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2876
3127
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2884,7 +3135,7 @@ function validate$b(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
2884
3135
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
2885
3136
|
const obj_productDetails_item = obj_productDetails[i];
|
|
2886
3137
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
2887
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
3138
|
+
const referencepath_productDetails_itemValidationError = validate$d(obj_productDetails_item, path_productDetails_item);
|
|
2888
3139
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
2889
3140
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
2890
3141
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3063,11 +3314,11 @@ function validate$b(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3063
3314
|
})();
|
|
3064
3315
|
return v_error === undefined ? null : v_error;
|
|
3065
3316
|
}
|
|
3066
|
-
const select$
|
|
3067
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
3317
|
+
const select$f = function ProductRequestOutputRepresentationSelect() {
|
|
3318
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$g();
|
|
3068
3319
|
return {
|
|
3069
3320
|
kind: 'Fragment',
|
|
3070
|
-
version: VERSION$
|
|
3321
|
+
version: VERSION$8,
|
|
3071
3322
|
private: [],
|
|
3072
3323
|
selections: [
|
|
3073
3324
|
{
|
|
@@ -3110,7 +3361,7 @@ const select$d = function ProductRequestOutputRepresentationSelect() {
|
|
|
3110
3361
|
]
|
|
3111
3362
|
};
|
|
3112
3363
|
};
|
|
3113
|
-
function equals$
|
|
3364
|
+
function equals$8(existing, incoming) {
|
|
3114
3365
|
const existing_productDetails = existing.productDetails;
|
|
3115
3366
|
const incoming_productDetails = incoming.productDetails;
|
|
3116
3367
|
// if at least one of these optionals is defined
|
|
@@ -3121,7 +3372,7 @@ function equals$7(existing, incoming) {
|
|
|
3121
3372
|
return false;
|
|
3122
3373
|
}
|
|
3123
3374
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
3124
|
-
if (!(equals$
|
|
3375
|
+
if (!(equals$9(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3125
3376
|
return false;
|
|
3126
3377
|
}
|
|
3127
3378
|
});
|
|
@@ -3210,114 +3461,180 @@ function equals$7(existing, incoming) {
|
|
|
3210
3461
|
return true;
|
|
3211
3462
|
}
|
|
3212
3463
|
|
|
3213
|
-
const VERSION$
|
|
3214
|
-
function validate$
|
|
3464
|
+
const VERSION$7 = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3465
|
+
function validate$b(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
3215
3466
|
const v_error = (() => {
|
|
3216
3467
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3217
3468
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3218
3469
|
}
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3470
|
+
if (obj.displayName !== undefined) {
|
|
3471
|
+
const obj_displayName = obj.displayName;
|
|
3472
|
+
const path_displayName = path + '.displayName';
|
|
3473
|
+
if (typeof obj_displayName !== 'string') {
|
|
3474
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
3475
|
+
}
|
|
3223
3476
|
}
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3477
|
+
if (obj.id !== undefined) {
|
|
3478
|
+
const obj_id = obj.id;
|
|
3479
|
+
const path_id = path + '.id';
|
|
3480
|
+
if (typeof obj_id !== 'string') {
|
|
3481
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3482
|
+
}
|
|
3228
3483
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3484
|
+
if (obj.isDefault !== undefined) {
|
|
3485
|
+
const obj_isDefault = obj.isDefault;
|
|
3486
|
+
const path_isDefault = path + '.isDefault';
|
|
3487
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
3488
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
3489
|
+
}
|
|
3233
3490
|
}
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3491
|
+
if (obj.isVisible !== undefined) {
|
|
3492
|
+
const obj_isVisible = obj.isVisible;
|
|
3493
|
+
const path_isVisible = path + '.isVisible';
|
|
3494
|
+
if (typeof obj_isVisible !== 'boolean') {
|
|
3495
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVisible + '" (at "' + path_isVisible + '")');
|
|
3496
|
+
}
|
|
3238
3497
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3498
|
+
if (obj.name !== undefined) {
|
|
3499
|
+
const obj_name = obj.name;
|
|
3500
|
+
const path_name = path + '.name';
|
|
3501
|
+
if (typeof obj_name !== 'string') {
|
|
3502
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3503
|
+
}
|
|
3243
3504
|
}
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3505
|
+
if (obj.sequenceNumber !== undefined) {
|
|
3506
|
+
const obj_sequenceNumber = obj.sequenceNumber;
|
|
3507
|
+
const path_sequenceNumber = path + '.sequenceNumber';
|
|
3508
|
+
if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
|
|
3509
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
3510
|
+
}
|
|
3248
3511
|
}
|
|
3249
3512
|
})();
|
|
3250
3513
|
return v_error === undefined ? null : v_error;
|
|
3251
3514
|
}
|
|
3252
|
-
const select$
|
|
3515
|
+
const select$e = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3253
3516
|
return {
|
|
3254
3517
|
kind: 'Fragment',
|
|
3255
|
-
version: VERSION$
|
|
3518
|
+
version: VERSION$7,
|
|
3256
3519
|
private: [],
|
|
3257
3520
|
selections: [
|
|
3258
3521
|
{
|
|
3259
3522
|
name: 'displayName',
|
|
3260
|
-
kind: 'Scalar'
|
|
3523
|
+
kind: 'Scalar',
|
|
3524
|
+
required: false
|
|
3261
3525
|
},
|
|
3262
3526
|
{
|
|
3263
3527
|
name: 'id',
|
|
3264
|
-
kind: 'Scalar'
|
|
3528
|
+
kind: 'Scalar',
|
|
3529
|
+
required: false
|
|
3265
3530
|
},
|
|
3266
3531
|
{
|
|
3267
3532
|
name: 'isDefault',
|
|
3268
|
-
kind: 'Scalar'
|
|
3533
|
+
kind: 'Scalar',
|
|
3534
|
+
required: false
|
|
3269
3535
|
},
|
|
3270
3536
|
{
|
|
3271
3537
|
name: 'isVisible',
|
|
3272
|
-
kind: 'Scalar'
|
|
3538
|
+
kind: 'Scalar',
|
|
3539
|
+
required: false
|
|
3273
3540
|
},
|
|
3274
3541
|
{
|
|
3275
3542
|
name: 'name',
|
|
3276
|
-
kind: 'Scalar'
|
|
3543
|
+
kind: 'Scalar',
|
|
3544
|
+
required: false
|
|
3277
3545
|
},
|
|
3278
3546
|
{
|
|
3279
3547
|
name: 'sequenceNumber',
|
|
3280
|
-
kind: 'Scalar'
|
|
3548
|
+
kind: 'Scalar',
|
|
3549
|
+
required: false
|
|
3281
3550
|
}
|
|
3282
3551
|
]
|
|
3283
3552
|
};
|
|
3284
3553
|
};
|
|
3285
|
-
function equals$
|
|
3554
|
+
function equals$7(existing, incoming) {
|
|
3286
3555
|
const existing_isDefault = existing.isDefault;
|
|
3287
3556
|
const incoming_isDefault = incoming.isDefault;
|
|
3288
|
-
if
|
|
3289
|
-
|
|
3557
|
+
// if at least one of these optionals is defined
|
|
3558
|
+
if (existing_isDefault !== undefined || incoming_isDefault !== undefined) {
|
|
3559
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3560
|
+
// not equal
|
|
3561
|
+
if (existing_isDefault === undefined || incoming_isDefault === undefined) {
|
|
3562
|
+
return false;
|
|
3563
|
+
}
|
|
3564
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
3565
|
+
return false;
|
|
3566
|
+
}
|
|
3290
3567
|
}
|
|
3291
3568
|
const existing_isVisible = existing.isVisible;
|
|
3292
3569
|
const incoming_isVisible = incoming.isVisible;
|
|
3293
|
-
if
|
|
3294
|
-
|
|
3570
|
+
// if at least one of these optionals is defined
|
|
3571
|
+
if (existing_isVisible !== undefined || incoming_isVisible !== undefined) {
|
|
3572
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3573
|
+
// not equal
|
|
3574
|
+
if (existing_isVisible === undefined || incoming_isVisible === undefined) {
|
|
3575
|
+
return false;
|
|
3576
|
+
}
|
|
3577
|
+
if (!(existing_isVisible === incoming_isVisible)) {
|
|
3578
|
+
return false;
|
|
3579
|
+
}
|
|
3295
3580
|
}
|
|
3296
3581
|
const existing_sequenceNumber = existing.sequenceNumber;
|
|
3297
3582
|
const incoming_sequenceNumber = incoming.sequenceNumber;
|
|
3298
|
-
if
|
|
3299
|
-
|
|
3583
|
+
// if at least one of these optionals is defined
|
|
3584
|
+
if (existing_sequenceNumber !== undefined || incoming_sequenceNumber !== undefined) {
|
|
3585
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3586
|
+
// not equal
|
|
3587
|
+
if (existing_sequenceNumber === undefined || incoming_sequenceNumber === undefined) {
|
|
3588
|
+
return false;
|
|
3589
|
+
}
|
|
3590
|
+
if (!(existing_sequenceNumber === incoming_sequenceNumber)) {
|
|
3591
|
+
return false;
|
|
3592
|
+
}
|
|
3300
3593
|
}
|
|
3301
3594
|
const existing_displayName = existing.displayName;
|
|
3302
3595
|
const incoming_displayName = incoming.displayName;
|
|
3303
|
-
if
|
|
3304
|
-
|
|
3596
|
+
// if at least one of these optionals is defined
|
|
3597
|
+
if (existing_displayName !== undefined || incoming_displayName !== undefined) {
|
|
3598
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3599
|
+
// not equal
|
|
3600
|
+
if (existing_displayName === undefined || incoming_displayName === undefined) {
|
|
3601
|
+
return false;
|
|
3602
|
+
}
|
|
3603
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
3604
|
+
return false;
|
|
3605
|
+
}
|
|
3305
3606
|
}
|
|
3306
3607
|
const existing_id = existing.id;
|
|
3307
3608
|
const incoming_id = incoming.id;
|
|
3308
|
-
if
|
|
3309
|
-
|
|
3609
|
+
// if at least one of these optionals is defined
|
|
3610
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
3611
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3612
|
+
// not equal
|
|
3613
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
3614
|
+
return false;
|
|
3615
|
+
}
|
|
3616
|
+
if (!(existing_id === incoming_id)) {
|
|
3617
|
+
return false;
|
|
3618
|
+
}
|
|
3310
3619
|
}
|
|
3311
3620
|
const existing_name = existing.name;
|
|
3312
3621
|
const incoming_name = incoming.name;
|
|
3313
|
-
if
|
|
3314
|
-
|
|
3622
|
+
// if at least one of these optionals is defined
|
|
3623
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
3624
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3625
|
+
// not equal
|
|
3626
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
3627
|
+
return false;
|
|
3628
|
+
}
|
|
3629
|
+
if (!(existing_name === incoming_name)) {
|
|
3630
|
+
return false;
|
|
3631
|
+
}
|
|
3315
3632
|
}
|
|
3316
3633
|
return true;
|
|
3317
3634
|
}
|
|
3318
3635
|
|
|
3319
|
-
const VERSION$
|
|
3320
|
-
function validate$
|
|
3636
|
+
const VERSION$6 = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3637
|
+
function validate$a(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3321
3638
|
const v_error = (() => {
|
|
3322
3639
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3323
3640
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3518,10 +3835,12 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3518
3835
|
return new TypeError(message);
|
|
3519
3836
|
}
|
|
3520
3837
|
}
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3838
|
+
if (obj.isEditable !== undefined) {
|
|
3839
|
+
const obj_isEditable = obj.isEditable;
|
|
3840
|
+
const path_isEditable = path + '.isEditable';
|
|
3841
|
+
if (typeof obj_isEditable !== 'boolean') {
|
|
3842
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEditable + '" (at "' + path_isEditable + '")');
|
|
3843
|
+
}
|
|
3525
3844
|
}
|
|
3526
3845
|
if (obj.isHidden !== undefined) {
|
|
3527
3846
|
const obj_isHidden = obj.isHidden;
|
|
@@ -3579,10 +3898,12 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3579
3898
|
return new TypeError(message);
|
|
3580
3899
|
}
|
|
3581
3900
|
}
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3901
|
+
if (obj.isMappedAnchorField !== undefined) {
|
|
3902
|
+
const obj_isMappedAnchorField = obj.isMappedAnchorField;
|
|
3903
|
+
const path_isMappedAnchorField = path + '.isMappedAnchorField';
|
|
3904
|
+
if (typeof obj_isMappedAnchorField !== 'boolean') {
|
|
3905
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMappedAnchorField + '" (at "' + path_isMappedAnchorField + '")');
|
|
3906
|
+
}
|
|
3586
3907
|
}
|
|
3587
3908
|
if (obj.isReadOnly !== undefined) {
|
|
3588
3909
|
const obj_isReadOnly = obj.isReadOnly;
|
|
@@ -3696,40 +4017,42 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3696
4017
|
return new TypeError(message);
|
|
3697
4018
|
}
|
|
3698
4019
|
}
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
const
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
4020
|
+
if (obj.picklistOptions !== undefined) {
|
|
4021
|
+
const obj_picklistOptions = obj.picklistOptions;
|
|
4022
|
+
const path_picklistOptions = path + '.picklistOptions';
|
|
4023
|
+
if (!ArrayIsArray(obj_picklistOptions)) {
|
|
4024
|
+
return new TypeError('Expected "array" but received "' + typeof obj_picklistOptions + '" (at "' + path_picklistOptions + '")');
|
|
4025
|
+
}
|
|
4026
|
+
for (let i = 0; i < obj_picklistOptions.length; i++) {
|
|
4027
|
+
const obj_picklistOptions_item = obj_picklistOptions[i];
|
|
4028
|
+
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
4029
|
+
let obj_picklistOptions_item_union0 = null;
|
|
4030
|
+
const obj_picklistOptions_item_union0_error = (() => {
|
|
4031
|
+
const referencepath_picklistOptions_itemValidationError = validate$b(obj_picklistOptions_item, path_picklistOptions_item);
|
|
4032
|
+
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
4033
|
+
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
4034
|
+
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4035
|
+
return new TypeError(message);
|
|
4036
|
+
}
|
|
4037
|
+
})();
|
|
4038
|
+
if (obj_picklistOptions_item_union0_error != null) {
|
|
4039
|
+
obj_picklistOptions_item_union0 = obj_picklistOptions_item_union0_error.message;
|
|
3714
4040
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
if (
|
|
3722
|
-
|
|
4041
|
+
let obj_picklistOptions_item_union1 = null;
|
|
4042
|
+
const obj_picklistOptions_item_union1_error = (() => {
|
|
4043
|
+
if (obj_picklistOptions_item !== null) {
|
|
4044
|
+
return new TypeError('Expected "null" but received "' + typeof obj_picklistOptions_item + '" (at "' + path_picklistOptions_item + '")');
|
|
4045
|
+
}
|
|
4046
|
+
})();
|
|
4047
|
+
if (obj_picklistOptions_item_union1_error != null) {
|
|
4048
|
+
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
4049
|
+
}
|
|
4050
|
+
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
4051
|
+
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
4052
|
+
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4053
|
+
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4054
|
+
return new TypeError(message);
|
|
3723
4055
|
}
|
|
3724
|
-
})();
|
|
3725
|
-
if (obj_picklistOptions_item_union1_error != null) {
|
|
3726
|
-
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
3727
|
-
}
|
|
3728
|
-
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
3729
|
-
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
3730
|
-
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3731
|
-
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3732
|
-
return new TypeError(message);
|
|
3733
4056
|
}
|
|
3734
4057
|
}
|
|
3735
4058
|
if (obj.sequence !== undefined) {
|
|
@@ -3763,11 +4086,11 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3763
4086
|
})();
|
|
3764
4087
|
return v_error === undefined ? null : v_error;
|
|
3765
4088
|
}
|
|
3766
|
-
const select$
|
|
3767
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
4089
|
+
const select$d = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4090
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$e();
|
|
3768
4091
|
return {
|
|
3769
4092
|
kind: 'Fragment',
|
|
3770
|
-
version: VERSION$
|
|
4093
|
+
version: VERSION$6,
|
|
3771
4094
|
private: [],
|
|
3772
4095
|
selections: [
|
|
3773
4096
|
{
|
|
@@ -3807,7 +4130,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3807
4130
|
},
|
|
3808
4131
|
{
|
|
3809
4132
|
name: 'isEditable',
|
|
3810
|
-
kind: 'Scalar'
|
|
4133
|
+
kind: 'Scalar',
|
|
4134
|
+
required: false
|
|
3811
4135
|
},
|
|
3812
4136
|
{
|
|
3813
4137
|
name: 'isHidden',
|
|
@@ -3821,7 +4145,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3821
4145
|
},
|
|
3822
4146
|
{
|
|
3823
4147
|
name: 'isMappedAnchorField',
|
|
3824
|
-
kind: 'Scalar'
|
|
4148
|
+
kind: 'Scalar',
|
|
4149
|
+
required: false
|
|
3825
4150
|
},
|
|
3826
4151
|
{
|
|
3827
4152
|
name: 'isReadOnly',
|
|
@@ -3848,7 +4173,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3848
4173
|
kind: 'Object',
|
|
3849
4174
|
nullable: true,
|
|
3850
4175
|
plural: true,
|
|
3851
|
-
selections: PicklistAttributeTypeOutputRepresentation__selections
|
|
4176
|
+
selections: PicklistAttributeTypeOutputRepresentation__selections,
|
|
4177
|
+
required: false
|
|
3852
4178
|
},
|
|
3853
4179
|
{
|
|
3854
4180
|
name: 'sequence',
|
|
@@ -3858,16 +4184,32 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3858
4184
|
]
|
|
3859
4185
|
};
|
|
3860
4186
|
};
|
|
3861
|
-
function equals$
|
|
4187
|
+
function equals$6(existing, incoming) {
|
|
3862
4188
|
const existing_isEditable = existing.isEditable;
|
|
3863
4189
|
const incoming_isEditable = incoming.isEditable;
|
|
3864
|
-
if
|
|
3865
|
-
|
|
4190
|
+
// if at least one of these optionals is defined
|
|
4191
|
+
if (existing_isEditable !== undefined || incoming_isEditable !== undefined) {
|
|
4192
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4193
|
+
// not equal
|
|
4194
|
+
if (existing_isEditable === undefined || incoming_isEditable === undefined) {
|
|
4195
|
+
return false;
|
|
4196
|
+
}
|
|
4197
|
+
if (!(existing_isEditable === incoming_isEditable)) {
|
|
4198
|
+
return false;
|
|
4199
|
+
}
|
|
3866
4200
|
}
|
|
3867
4201
|
const existing_isMappedAnchorField = existing.isMappedAnchorField;
|
|
3868
4202
|
const incoming_isMappedAnchorField = incoming.isMappedAnchorField;
|
|
3869
|
-
if
|
|
3870
|
-
|
|
4203
|
+
// if at least one of these optionals is defined
|
|
4204
|
+
if (existing_isMappedAnchorField !== undefined || incoming_isMappedAnchorField !== undefined) {
|
|
4205
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4206
|
+
// not equal
|
|
4207
|
+
if (existing_isMappedAnchorField === undefined || incoming_isMappedAnchorField === undefined) {
|
|
4208
|
+
return false;
|
|
4209
|
+
}
|
|
4210
|
+
if (!(existing_isMappedAnchorField === incoming_isMappedAnchorField)) {
|
|
4211
|
+
return false;
|
|
4212
|
+
}
|
|
3871
4213
|
}
|
|
3872
4214
|
const existing_apiName = existing.apiName;
|
|
3873
4215
|
const incoming_apiName = incoming.apiName;
|
|
@@ -4040,16 +4382,24 @@ function equals$5(existing, incoming) {
|
|
|
4040
4382
|
}
|
|
4041
4383
|
const existing_picklistOptions = existing.picklistOptions;
|
|
4042
4384
|
const incoming_picklistOptions = incoming.picklistOptions;
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4385
|
+
// if at least one of these optionals is defined
|
|
4386
|
+
if (existing_picklistOptions !== undefined || incoming_picklistOptions !== undefined) {
|
|
4387
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4388
|
+
// not equal
|
|
4389
|
+
if (existing_picklistOptions === undefined || incoming_picklistOptions === undefined) {
|
|
4390
|
+
return false;
|
|
4391
|
+
}
|
|
4392
|
+
const equals_picklistOptions_items = equalsArray(existing_picklistOptions, incoming_picklistOptions, (existing_picklistOptions_item, incoming_picklistOptions_item) => {
|
|
4393
|
+
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
4394
|
+
|| (existing_picklistOptions_item != null &&
|
|
4395
|
+
incoming_picklistOptions_item != null &&
|
|
4396
|
+
equals$7(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4397
|
+
return false;
|
|
4398
|
+
}
|
|
4399
|
+
});
|
|
4400
|
+
if (equals_picklistOptions_items === false) {
|
|
4048
4401
|
return false;
|
|
4049
4402
|
}
|
|
4050
|
-
});
|
|
4051
|
-
if (equals_picklistOptions_items === false) {
|
|
4052
|
-
return false;
|
|
4053
4403
|
}
|
|
4054
4404
|
const existing_sequence = existing.sequence;
|
|
4055
4405
|
const incoming_sequence = incoming.sequence;
|
|
@@ -4067,8 +4417,8 @@ function equals$5(existing, incoming) {
|
|
|
4067
4417
|
return true;
|
|
4068
4418
|
}
|
|
4069
4419
|
|
|
4070
|
-
const VERSION$
|
|
4071
|
-
function validate$
|
|
4420
|
+
const VERSION$5 = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4421
|
+
function validate$9(obj, path = 'SectionOutputRepresentation') {
|
|
4072
4422
|
const v_error = (() => {
|
|
4073
4423
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4074
4424
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4084,7 +4434,7 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
4084
4434
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4085
4435
|
let obj_attributes_item_union0 = null;
|
|
4086
4436
|
const obj_attributes_item_union0_error = (() => {
|
|
4087
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
4437
|
+
const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
|
|
4088
4438
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4089
4439
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4090
4440
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4195,19 +4545,21 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
4195
4545
|
return new TypeError(message);
|
|
4196
4546
|
}
|
|
4197
4547
|
}
|
|
4198
|
-
|
|
4199
|
-
|
|
4200
|
-
|
|
4201
|
-
|
|
4548
|
+
if (obj.sequence !== undefined) {
|
|
4549
|
+
const obj_sequence = obj.sequence;
|
|
4550
|
+
const path_sequence = path + '.sequence';
|
|
4551
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
4552
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
4553
|
+
}
|
|
4202
4554
|
}
|
|
4203
4555
|
})();
|
|
4204
4556
|
return v_error === undefined ? null : v_error;
|
|
4205
4557
|
}
|
|
4206
|
-
const select$
|
|
4207
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
4558
|
+
const select$c = function SectionOutputRepresentationSelect() {
|
|
4559
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$d();
|
|
4208
4560
|
return {
|
|
4209
4561
|
kind: 'Fragment',
|
|
4210
|
-
version: VERSION$
|
|
4562
|
+
version: VERSION$5,
|
|
4211
4563
|
private: [],
|
|
4212
4564
|
selections: [
|
|
4213
4565
|
{
|
|
@@ -4235,16 +4587,25 @@ const select$a = function SectionOutputRepresentationSelect() {
|
|
|
4235
4587
|
},
|
|
4236
4588
|
{
|
|
4237
4589
|
name: 'sequence',
|
|
4238
|
-
kind: 'Scalar'
|
|
4590
|
+
kind: 'Scalar',
|
|
4591
|
+
required: false
|
|
4239
4592
|
}
|
|
4240
4593
|
]
|
|
4241
4594
|
};
|
|
4242
4595
|
};
|
|
4243
|
-
function equals$
|
|
4596
|
+
function equals$5(existing, incoming) {
|
|
4244
4597
|
const existing_sequence = existing.sequence;
|
|
4245
4598
|
const incoming_sequence = incoming.sequence;
|
|
4246
|
-
if
|
|
4247
|
-
|
|
4599
|
+
// if at least one of these optionals is defined
|
|
4600
|
+
if (existing_sequence !== undefined || incoming_sequence !== undefined) {
|
|
4601
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4602
|
+
// not equal
|
|
4603
|
+
if (existing_sequence === undefined || incoming_sequence === undefined) {
|
|
4604
|
+
return false;
|
|
4605
|
+
}
|
|
4606
|
+
if (!(existing_sequence === incoming_sequence)) {
|
|
4607
|
+
return false;
|
|
4608
|
+
}
|
|
4248
4609
|
}
|
|
4249
4610
|
const existing_attributes = existing.attributes;
|
|
4250
4611
|
const incoming_attributes = incoming.attributes;
|
|
@@ -4259,7 +4620,7 @@ function equals$4(existing, incoming) {
|
|
|
4259
4620
|
if (!(existing_attributes_item === incoming_attributes_item
|
|
4260
4621
|
|| (existing_attributes_item != null &&
|
|
4261
4622
|
incoming_attributes_item != null &&
|
|
4262
|
-
equals$
|
|
4623
|
+
equals$6(existing_attributes_item, incoming_attributes_item)))) {
|
|
4263
4624
|
return false;
|
|
4264
4625
|
}
|
|
4265
4626
|
});
|
|
@@ -4310,8 +4671,8 @@ function equals$4(existing, incoming) {
|
|
|
4310
4671
|
}
|
|
4311
4672
|
|
|
4312
4673
|
const TTL$3 = 6000;
|
|
4313
|
-
const VERSION$
|
|
4314
|
-
function validate$
|
|
4674
|
+
const VERSION$4 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4675
|
+
function validate$8(obj, path = 'CatalogItemOutputRepresentation') {
|
|
4315
4676
|
const v_error = (() => {
|
|
4316
4677
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4317
4678
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4321,7 +4682,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4321
4682
|
const path_agentAction = path + '.agentAction';
|
|
4322
4683
|
let obj_agentAction_union0 = null;
|
|
4323
4684
|
const obj_agentAction_union0_error = (() => {
|
|
4324
|
-
const referencepath_agentActionValidationError = validate$
|
|
4685
|
+
const referencepath_agentActionValidationError = validate$k(obj_agentAction, path_agentAction);
|
|
4325
4686
|
if (referencepath_agentActionValidationError !== null) {
|
|
4326
4687
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
4327
4688
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4358,7 +4719,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4358
4719
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
4359
4720
|
let obj_associatedArticles_item_union0 = null;
|
|
4360
4721
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
4361
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
4722
|
+
const referencepath_associatedArticles_itemValidationError = validate$j(obj_associatedArticles_item, path_associatedArticles_item);
|
|
4362
4723
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
4363
4724
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
4364
4725
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4506,7 +4867,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4506
4867
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
4507
4868
|
let obj_eligibilityRules_item_union0 = null;
|
|
4508
4869
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
4509
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4870
|
+
const referencepath_eligibilityRules_itemValidationError = validate$i(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
4510
4871
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
4511
4872
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
4512
4873
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4538,7 +4899,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4538
4899
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
4539
4900
|
let obj_fulfillmentFlow_union0 = null;
|
|
4540
4901
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
4541
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4902
|
+
const referencepath_fulfillmentFlowValidationError = validate$h(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
4542
4903
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
4543
4904
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
4544
4905
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4569,7 +4930,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4569
4930
|
const path_intakeForm = path + '.intakeForm';
|
|
4570
4931
|
let obj_intakeForm_union0 = null;
|
|
4571
4932
|
const obj_intakeForm_union0_error = (() => {
|
|
4572
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4933
|
+
const referencepath_intakeFormValidationError = validate$g(obj_intakeForm, path_intakeForm);
|
|
4573
4934
|
if (referencepath_intakeFormValidationError !== null) {
|
|
4574
4935
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
4575
4936
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4606,7 +4967,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4606
4967
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
4607
4968
|
let obj_integrations_item_union0 = null;
|
|
4608
4969
|
const obj_integrations_item_union0_error = (() => {
|
|
4609
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4970
|
+
const referencepath_integrations_itemValidationError = validate$f(obj_integrations_item, path_integrations_item);
|
|
4610
4971
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
4611
4972
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
4612
4973
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4700,7 +5061,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4700
5061
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
4701
5062
|
let obj_preProcessors_item_union0 = null;
|
|
4702
5063
|
const obj_preProcessors_item_union0_error = (() => {
|
|
4703
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
5064
|
+
const referencepath_preProcessors_itemValidationError = validate$e(obj_preProcessors_item, path_preProcessors_item);
|
|
4704
5065
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
4705
5066
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
4706
5067
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4766,7 +5127,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4766
5127
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
4767
5128
|
let obj_productRequests_item_union0 = null;
|
|
4768
5129
|
const obj_productRequests_item_union0_error = (() => {
|
|
4769
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
5130
|
+
const referencepath_productRequests_itemValidationError = validate$c(obj_productRequests_item, path_productRequests_item);
|
|
4770
5131
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
4771
5132
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
4772
5133
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4798,7 +5159,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4798
5159
|
const path_section = path + '.section';
|
|
4799
5160
|
let obj_section_union0 = null;
|
|
4800
5161
|
const obj_section_union0_error = (() => {
|
|
4801
|
-
const referencepath_sectionValidationError = validate$
|
|
5162
|
+
const referencepath_sectionValidationError = validate$9(obj_section, path_section);
|
|
4802
5163
|
if (referencepath_sectionValidationError !== null) {
|
|
4803
5164
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
|
|
4804
5165
|
message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4835,7 +5196,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4835
5196
|
const path_sections_item = path_sections + '[' + i + ']';
|
|
4836
5197
|
let obj_sections_item_union0 = null;
|
|
4837
5198
|
const obj_sections_item_union0_error = (() => {
|
|
4838
|
-
const referencepath_sections_itemValidationError = validate$
|
|
5199
|
+
const referencepath_sections_itemValidationError = validate$9(obj_sections_item, path_sections_item);
|
|
4839
5200
|
if (referencepath_sections_itemValidationError !== null) {
|
|
4840
5201
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
4841
5202
|
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4921,32 +5282,32 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4921
5282
|
})();
|
|
4922
5283
|
return v_error === undefined ? null : v_error;
|
|
4923
5284
|
}
|
|
4924
|
-
const RepresentationType$
|
|
4925
|
-
function keyBuilder$
|
|
4926
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5285
|
+
const RepresentationType$4 = 'CatalogItemOutputRepresentation';
|
|
5286
|
+
function keyBuilder$8(luvio, config) {
|
|
5287
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
4927
5288
|
}
|
|
4928
5289
|
function keyBuilderFromType$2(luvio, object) {
|
|
4929
5290
|
const keyParams = {
|
|
4930
5291
|
catalogItemId: object.catalogItemId
|
|
4931
5292
|
};
|
|
4932
|
-
return keyBuilder$
|
|
5293
|
+
return keyBuilder$8(luvio, keyParams);
|
|
4933
5294
|
}
|
|
4934
|
-
function normalize$
|
|
5295
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4935
5296
|
return input;
|
|
4936
5297
|
}
|
|
4937
|
-
const select$
|
|
4938
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
4939
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
4940
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
4941
|
-
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$
|
|
4942
|
-
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$
|
|
4943
|
-
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$
|
|
4944
|
-
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$
|
|
4945
|
-
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$
|
|
4946
|
-
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$
|
|
5298
|
+
const select$b = function CatalogItemOutputRepresentationSelect() {
|
|
5299
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$n();
|
|
5300
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$m();
|
|
5301
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$l();
|
|
5302
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$k();
|
|
5303
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$j();
|
|
5304
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$i();
|
|
5305
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$h();
|
|
5306
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$f();
|
|
5307
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$c();
|
|
4947
5308
|
return {
|
|
4948
5309
|
kind: 'Fragment',
|
|
4949
|
-
version: VERSION$
|
|
5310
|
+
version: VERSION$4,
|
|
4950
5311
|
private: [],
|
|
4951
5312
|
selections: [
|
|
4952
5313
|
{
|
|
@@ -5072,7 +5433,7 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
5072
5433
|
]
|
|
5073
5434
|
};
|
|
5074
5435
|
};
|
|
5075
|
-
function equals$
|
|
5436
|
+
function equals$4(existing, incoming) {
|
|
5076
5437
|
const existing_agentAction = existing.agentAction;
|
|
5077
5438
|
const incoming_agentAction = incoming.agentAction;
|
|
5078
5439
|
// if at least one of these optionals is defined
|
|
@@ -5085,7 +5446,7 @@ function equals$3(existing, incoming) {
|
|
|
5085
5446
|
if (!(existing_agentAction === incoming_agentAction
|
|
5086
5447
|
|| (existing_agentAction != null &&
|
|
5087
5448
|
incoming_agentAction != null &&
|
|
5088
|
-
equals$
|
|
5449
|
+
equals$g(existing_agentAction, incoming_agentAction)))) {
|
|
5089
5450
|
return false;
|
|
5090
5451
|
}
|
|
5091
5452
|
}
|
|
@@ -5102,7 +5463,7 @@ function equals$3(existing, incoming) {
|
|
|
5102
5463
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
5103
5464
|
|| (existing_associatedArticles_item != null &&
|
|
5104
5465
|
incoming_associatedArticles_item != null &&
|
|
5105
|
-
equals$
|
|
5466
|
+
equals$f(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5106
5467
|
return false;
|
|
5107
5468
|
}
|
|
5108
5469
|
});
|
|
@@ -5167,7 +5528,7 @@ function equals$3(existing, incoming) {
|
|
|
5167
5528
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
5168
5529
|
|| (existing_eligibilityRules_item != null &&
|
|
5169
5530
|
incoming_eligibilityRules_item != null &&
|
|
5170
|
-
equals$
|
|
5531
|
+
equals$e(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5171
5532
|
return false;
|
|
5172
5533
|
}
|
|
5173
5534
|
});
|
|
@@ -5187,7 +5548,7 @@ function equals$3(existing, incoming) {
|
|
|
5187
5548
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5188
5549
|
|| (existing_fulfillmentFlow != null &&
|
|
5189
5550
|
incoming_fulfillmentFlow != null &&
|
|
5190
|
-
equals$
|
|
5551
|
+
equals$d(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5191
5552
|
return false;
|
|
5192
5553
|
}
|
|
5193
5554
|
}
|
|
@@ -5203,7 +5564,7 @@ function equals$3(existing, incoming) {
|
|
|
5203
5564
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5204
5565
|
|| (existing_intakeForm != null &&
|
|
5205
5566
|
incoming_intakeForm != null &&
|
|
5206
|
-
equals$
|
|
5567
|
+
equals$c(existing_intakeForm, incoming_intakeForm)))) {
|
|
5207
5568
|
return false;
|
|
5208
5569
|
}
|
|
5209
5570
|
}
|
|
@@ -5220,7 +5581,7 @@ function equals$3(existing, incoming) {
|
|
|
5220
5581
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
5221
5582
|
|| (existing_integrations_item != null &&
|
|
5222
5583
|
incoming_integrations_item != null &&
|
|
5223
|
-
equals$
|
|
5584
|
+
equals$b(existing_integrations_item, incoming_integrations_item)))) {
|
|
5224
5585
|
return false;
|
|
5225
5586
|
}
|
|
5226
5587
|
});
|
|
@@ -5267,7 +5628,7 @@ function equals$3(existing, incoming) {
|
|
|
5267
5628
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
5268
5629
|
|| (existing_preProcessors_item != null &&
|
|
5269
5630
|
incoming_preProcessors_item != null &&
|
|
5270
|
-
equals$
|
|
5631
|
+
equals$a(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5271
5632
|
return false;
|
|
5272
5633
|
}
|
|
5273
5634
|
});
|
|
@@ -5301,7 +5662,7 @@ function equals$3(existing, incoming) {
|
|
|
5301
5662
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
5302
5663
|
|| (existing_productRequests_item != null &&
|
|
5303
5664
|
incoming_productRequests_item != null &&
|
|
5304
|
-
equals$
|
|
5665
|
+
equals$8(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5305
5666
|
return false;
|
|
5306
5667
|
}
|
|
5307
5668
|
});
|
|
@@ -5321,7 +5682,7 @@ function equals$3(existing, incoming) {
|
|
|
5321
5682
|
if (!(existing_section === incoming_section
|
|
5322
5683
|
|| (existing_section != null &&
|
|
5323
5684
|
incoming_section != null &&
|
|
5324
|
-
equals$
|
|
5685
|
+
equals$5(existing_section, incoming_section)))) {
|
|
5325
5686
|
return false;
|
|
5326
5687
|
}
|
|
5327
5688
|
}
|
|
@@ -5338,7 +5699,7 @@ function equals$3(existing, incoming) {
|
|
|
5338
5699
|
if (!(existing_sections_item === incoming_sections_item
|
|
5339
5700
|
|| (existing_sections_item != null &&
|
|
5340
5701
|
incoming_sections_item != null &&
|
|
5341
|
-
equals$
|
|
5702
|
+
equals$5(existing_sections_item, incoming_sections_item)))) {
|
|
5342
5703
|
return false;
|
|
5343
5704
|
}
|
|
5344
5705
|
});
|
|
@@ -5374,41 +5735,41 @@ function equals$3(existing, incoming) {
|
|
|
5374
5735
|
}
|
|
5375
5736
|
return true;
|
|
5376
5737
|
}
|
|
5377
|
-
const ingest$
|
|
5738
|
+
const ingest$4 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5378
5739
|
if (process.env.NODE_ENV !== 'production') {
|
|
5379
|
-
const validateError = validate$
|
|
5740
|
+
const validateError = validate$8(input);
|
|
5380
5741
|
if (validateError !== null) {
|
|
5381
5742
|
throw validateError;
|
|
5382
5743
|
}
|
|
5383
5744
|
}
|
|
5384
5745
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5385
5746
|
const ttlToUse = TTL$3;
|
|
5386
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5747
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
|
|
5387
5748
|
return createLink(key);
|
|
5388
5749
|
};
|
|
5389
|
-
function getTypeCacheKeys$
|
|
5750
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5390
5751
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5391
5752
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5392
5753
|
rootKeySet.set(rootKey, {
|
|
5393
5754
|
namespace: keyPrefix,
|
|
5394
|
-
representationName: RepresentationType$
|
|
5755
|
+
representationName: RepresentationType$4,
|
|
5395
5756
|
mergeable: false
|
|
5396
5757
|
});
|
|
5397
5758
|
}
|
|
5398
5759
|
|
|
5399
|
-
function select$
|
|
5400
|
-
return select$
|
|
5760
|
+
function select$a(luvio, params) {
|
|
5761
|
+
return select$b();
|
|
5401
5762
|
}
|
|
5402
|
-
function getResponseCacheKeys$
|
|
5403
|
-
getTypeCacheKeys$
|
|
5763
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
5764
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5404
5765
|
}
|
|
5405
|
-
function ingestSuccess$
|
|
5766
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
5406
5767
|
const { body } = response;
|
|
5407
5768
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5408
|
-
luvio.storeIngest(key, ingest$
|
|
5769
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5409
5770
|
const snapshot = luvio.storeLookup({
|
|
5410
5771
|
recordId: key,
|
|
5411
|
-
node: select$
|
|
5772
|
+
node: select$a(),
|
|
5412
5773
|
variables: {},
|
|
5413
5774
|
});
|
|
5414
5775
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5419,7 +5780,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
5419
5780
|
deepFreeze(snapshot.data);
|
|
5420
5781
|
return snapshot;
|
|
5421
5782
|
}
|
|
5422
|
-
function createResourceRequest$
|
|
5783
|
+
function createResourceRequest$6(config) {
|
|
5423
5784
|
const headers = {};
|
|
5424
5785
|
return {
|
|
5425
5786
|
baseUri: '/services/data/v64.0',
|
|
@@ -5433,7 +5794,7 @@ function createResourceRequest$5(config) {
|
|
|
5433
5794
|
};
|
|
5434
5795
|
}
|
|
5435
5796
|
|
|
5436
|
-
const adapterName$
|
|
5797
|
+
const adapterName$6 = 'createCatalogItem';
|
|
5437
5798
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
5438
5799
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5439
5800
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -5453,12 +5814,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
5453
5814
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5454
5815
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5455
5816
|
];
|
|
5456
|
-
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5457
|
-
const createResourceParams$
|
|
5458
|
-
function typeCheckConfig$
|
|
5817
|
+
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createCatalogItem_ConfigPropertyMetadata);
|
|
5818
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createCatalogItem_ConfigPropertyMetadata);
|
|
5819
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
5459
5820
|
const config = {};
|
|
5460
5821
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5461
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5822
|
+
const referenceAgentActionInputRepresentationValidationError = validate$v(untrustedConfig_agentAction);
|
|
5462
5823
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5463
5824
|
config.agentAction = untrustedConfig_agentAction;
|
|
5464
5825
|
}
|
|
@@ -5470,7 +5831,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5470
5831
|
const untrustedConfig_associatedArticles_array = [];
|
|
5471
5832
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5472
5833
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5473
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5834
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$u(untrustedConfig_associatedArticles_item);
|
|
5474
5835
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5475
5836
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5476
5837
|
}
|
|
@@ -5485,7 +5846,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5485
5846
|
const untrustedConfig_attributes_array = [];
|
|
5486
5847
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5487
5848
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5488
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5849
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$s(untrustedConfig_attributes_item);
|
|
5489
5850
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5490
5851
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5491
5852
|
}
|
|
@@ -5500,7 +5861,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5500
5861
|
const untrustedConfig_sections_array = [];
|
|
5501
5862
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5502
5863
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5503
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
5864
|
+
const referenceSectionInputRepresentationValidationError = validate$r(untrustedConfig_sections_item);
|
|
5504
5865
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5505
5866
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5506
5867
|
}
|
|
@@ -5536,7 +5897,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5536
5897
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5537
5898
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5538
5899
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5539
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5900
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$q(untrustedConfig_eligibilityRules_item);
|
|
5540
5901
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5541
5902
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5542
5903
|
}
|
|
@@ -5547,7 +5908,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5547
5908
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5548
5909
|
}
|
|
5549
5910
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5550
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5911
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$p(untrustedConfig_fulfillmentFlow);
|
|
5551
5912
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5552
5913
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5553
5914
|
}
|
|
@@ -5555,7 +5916,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5555
5916
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5556
5917
|
}
|
|
5557
5918
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5558
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5919
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$o(untrustedConfig_intakeForm);
|
|
5559
5920
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5560
5921
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5561
5922
|
}
|
|
@@ -5567,7 +5928,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5567
5928
|
const untrustedConfig_integrations_array = [];
|
|
5568
5929
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
5569
5930
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
5570
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5931
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$n(untrustedConfig_integrations_item);
|
|
5571
5932
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
5572
5933
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
5573
5934
|
}
|
|
@@ -5596,7 +5957,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5596
5957
|
const untrustedConfig_preProcessors_array = [];
|
|
5597
5958
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
5598
5959
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
5599
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5960
|
+
const referencePreprocessorInputRepresentationValidationError = validate$m(untrustedConfig_preProcessors_item);
|
|
5600
5961
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
5601
5962
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
5602
5963
|
}
|
|
@@ -5611,7 +5972,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5611
5972
|
const untrustedConfig_productRequests_array = [];
|
|
5612
5973
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5613
5974
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5614
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5975
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$l(untrustedConfig_productRequests_item);
|
|
5615
5976
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5616
5977
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5617
5978
|
}
|
|
@@ -5637,30 +5998,30 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5637
5998
|
}
|
|
5638
5999
|
return config;
|
|
5639
6000
|
}
|
|
5640
|
-
function validateAdapterConfig$
|
|
6001
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
5641
6002
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5642
6003
|
return null;
|
|
5643
6004
|
}
|
|
5644
6005
|
if (process.env.NODE_ENV !== 'production') {
|
|
5645
6006
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5646
6007
|
}
|
|
5647
|
-
const config = typeCheckConfig$
|
|
6008
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
5648
6009
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5649
6010
|
return null;
|
|
5650
6011
|
}
|
|
5651
6012
|
return config;
|
|
5652
6013
|
}
|
|
5653
|
-
function buildNetworkSnapshot$
|
|
5654
|
-
const resourceParams = createResourceParams$
|
|
5655
|
-
const request = createResourceRequest$
|
|
6014
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6015
|
+
const resourceParams = createResourceParams$6(config);
|
|
6016
|
+
const request = createResourceRequest$6(resourceParams);
|
|
5656
6017
|
return luvio.dispatchResourceRequest(request, options)
|
|
5657
6018
|
.then((response) => {
|
|
5658
6019
|
return luvio.handleSuccessResponse(() => {
|
|
5659
|
-
const snapshot = ingestSuccess$
|
|
6020
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
5660
6021
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5661
6022
|
}, () => {
|
|
5662
6023
|
const cache = new StoreKeyMap();
|
|
5663
|
-
getResponseCacheKeys$
|
|
6024
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
5664
6025
|
return cache;
|
|
5665
6026
|
});
|
|
5666
6027
|
}, (response) => {
|
|
@@ -5670,33 +6031,33 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
5670
6031
|
}
|
|
5671
6032
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
5672
6033
|
return function createCatalogItem(untrustedConfig) {
|
|
5673
|
-
const config = validateAdapterConfig$
|
|
6034
|
+
const config = validateAdapterConfig$6(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
5674
6035
|
// Invalid or incomplete config
|
|
5675
6036
|
if (config === null) {
|
|
5676
6037
|
throw new Error('Invalid config for "createCatalogItem"');
|
|
5677
6038
|
}
|
|
5678
|
-
return buildNetworkSnapshot$
|
|
6039
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
5679
6040
|
};
|
|
5680
6041
|
};
|
|
5681
6042
|
|
|
5682
|
-
function select$
|
|
5683
|
-
return select$
|
|
6043
|
+
function select$9(luvio, params) {
|
|
6044
|
+
return select$b();
|
|
5684
6045
|
}
|
|
5685
|
-
function keyBuilder$
|
|
5686
|
-
return keyBuilder$
|
|
6046
|
+
function keyBuilder$7(luvio, params) {
|
|
6047
|
+
return keyBuilder$8(luvio, {
|
|
5687
6048
|
catalogItemId: params.urlParams.catalogItemId
|
|
5688
6049
|
});
|
|
5689
6050
|
}
|
|
5690
|
-
function getResponseCacheKeys$
|
|
5691
|
-
getTypeCacheKeys$
|
|
6051
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6052
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5692
6053
|
}
|
|
5693
|
-
function ingestSuccess$
|
|
6054
|
+
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
5694
6055
|
const { body } = response;
|
|
5695
|
-
const key = keyBuilder$
|
|
5696
|
-
luvio.storeIngest(key, ingest$
|
|
6056
|
+
const key = keyBuilder$7(luvio, resourceParams);
|
|
6057
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5697
6058
|
const snapshot = luvio.storeLookup({
|
|
5698
6059
|
recordId: key,
|
|
5699
|
-
node: select$
|
|
6060
|
+
node: select$9(),
|
|
5700
6061
|
variables: {},
|
|
5701
6062
|
}, snapshotRefresh);
|
|
5702
6063
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5707,19 +6068,19 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5707
6068
|
deepFreeze(snapshot.data);
|
|
5708
6069
|
return snapshot;
|
|
5709
6070
|
}
|
|
5710
|
-
function ingestError$
|
|
5711
|
-
const key = keyBuilder$
|
|
6071
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
6072
|
+
const key = keyBuilder$7(luvio, params);
|
|
5712
6073
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5713
6074
|
const storeMetadataParams = {
|
|
5714
6075
|
ttl: TTL$3,
|
|
5715
6076
|
namespace: keyPrefix,
|
|
5716
|
-
version: VERSION$
|
|
5717
|
-
representationName: RepresentationType$
|
|
6077
|
+
version: VERSION$4,
|
|
6078
|
+
representationName: RepresentationType$4
|
|
5718
6079
|
};
|
|
5719
6080
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
5720
6081
|
return errorSnapshot;
|
|
5721
6082
|
}
|
|
5722
|
-
function createResourceRequest$
|
|
6083
|
+
function createResourceRequest$5(config) {
|
|
5723
6084
|
const headers = {};
|
|
5724
6085
|
return {
|
|
5725
6086
|
baseUri: '/services/data/v64.0',
|
|
@@ -5727,111 +6088,112 @@ function createResourceRequest$4(config) {
|
|
|
5727
6088
|
method: 'get',
|
|
5728
6089
|
body: null,
|
|
5729
6090
|
urlParams: config.urlParams,
|
|
5730
|
-
queryParams:
|
|
6091
|
+
queryParams: config.queryParams,
|
|
5731
6092
|
headers,
|
|
5732
6093
|
priority: 'normal',
|
|
5733
6094
|
};
|
|
5734
6095
|
}
|
|
5735
6096
|
|
|
5736
|
-
const adapterName$
|
|
6097
|
+
const adapterName$5 = 'getCatalogItem';
|
|
5737
6098
|
const getCatalogItem_ConfigPropertyMetadata = [
|
|
5738
6099
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6100
|
+
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
5739
6101
|
];
|
|
5740
|
-
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5741
|
-
const createResourceParams$
|
|
5742
|
-
function keyBuilder$
|
|
5743
|
-
const resourceParams = createResourceParams$
|
|
5744
|
-
return keyBuilder$
|
|
6102
|
+
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, getCatalogItem_ConfigPropertyMetadata);
|
|
6103
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(getCatalogItem_ConfigPropertyMetadata);
|
|
6104
|
+
function keyBuilder$6(luvio, config) {
|
|
6105
|
+
const resourceParams = createResourceParams$5(config);
|
|
6106
|
+
return keyBuilder$7(luvio, resourceParams);
|
|
5745
6107
|
}
|
|
5746
|
-
function typeCheckConfig$
|
|
6108
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
5747
6109
|
const config = {};
|
|
5748
|
-
typeCheckConfig$
|
|
6110
|
+
typeCheckConfig$7(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
5749
6111
|
return config;
|
|
5750
6112
|
}
|
|
5751
|
-
function validateAdapterConfig$
|
|
6113
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
5752
6114
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5753
6115
|
return null;
|
|
5754
6116
|
}
|
|
5755
6117
|
if (process.env.NODE_ENV !== 'production') {
|
|
5756
6118
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5757
6119
|
}
|
|
5758
|
-
const config = typeCheckConfig$
|
|
6120
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
5759
6121
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5760
6122
|
return null;
|
|
5761
6123
|
}
|
|
5762
6124
|
return config;
|
|
5763
6125
|
}
|
|
5764
|
-
function adapterFragment$
|
|
5765
|
-
createResourceParams$
|
|
5766
|
-
return select$
|
|
6126
|
+
function adapterFragment$2(luvio, config) {
|
|
6127
|
+
createResourceParams$5(config);
|
|
6128
|
+
return select$9();
|
|
5767
6129
|
}
|
|
5768
|
-
function onFetchResponseSuccess$
|
|
5769
|
-
const snapshot = ingestSuccess$
|
|
6130
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
6131
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response, {
|
|
5770
6132
|
config,
|
|
5771
|
-
resolve: () => buildNetworkSnapshot$
|
|
6133
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5772
6134
|
});
|
|
5773
6135
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5774
6136
|
}
|
|
5775
|
-
function onFetchResponseError$
|
|
5776
|
-
const snapshot = ingestError$
|
|
6137
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
6138
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
5777
6139
|
config,
|
|
5778
|
-
resolve: () => buildNetworkSnapshot$
|
|
6140
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5779
6141
|
});
|
|
5780
6142
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5781
6143
|
}
|
|
5782
|
-
function buildNetworkSnapshot$
|
|
5783
|
-
const resourceParams = createResourceParams$
|
|
5784
|
-
const request = createResourceRequest$
|
|
6144
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
6145
|
+
const resourceParams = createResourceParams$5(config);
|
|
6146
|
+
const request = createResourceRequest$5(resourceParams);
|
|
5785
6147
|
return luvio.dispatchResourceRequest(request, options)
|
|
5786
6148
|
.then((response) => {
|
|
5787
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
6149
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
5788
6150
|
const cache = new StoreKeyMap();
|
|
5789
|
-
getResponseCacheKeys$
|
|
6151
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
5790
6152
|
return cache;
|
|
5791
6153
|
});
|
|
5792
6154
|
}, (response) => {
|
|
5793
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
6155
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
5794
6156
|
});
|
|
5795
6157
|
}
|
|
5796
|
-
function buildNetworkSnapshotCachePolicy$
|
|
5797
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6158
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6159
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$5, undefined, false);
|
|
5798
6160
|
}
|
|
5799
|
-
function buildCachedSnapshotCachePolicy$
|
|
6161
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
5800
6162
|
const { luvio, config } = context;
|
|
5801
6163
|
const selector = {
|
|
5802
|
-
recordId: keyBuilder$
|
|
5803
|
-
node: adapterFragment$
|
|
6164
|
+
recordId: keyBuilder$6(luvio, config),
|
|
6165
|
+
node: adapterFragment$2(luvio, config),
|
|
5804
6166
|
variables: {},
|
|
5805
6167
|
};
|
|
5806
6168
|
const cacheSnapshot = storeLookup(selector, {
|
|
5807
6169
|
config,
|
|
5808
|
-
resolve: () => buildNetworkSnapshot$
|
|
6170
|
+
resolve: () => buildNetworkSnapshot$5(luvio, config, snapshotRefreshOptions)
|
|
5809
6171
|
});
|
|
5810
6172
|
return cacheSnapshot;
|
|
5811
6173
|
}
|
|
5812
6174
|
const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(untrustedConfig, requestContext) {
|
|
5813
|
-
const config = validateAdapterConfig$
|
|
6175
|
+
const config = validateAdapterConfig$5(untrustedConfig, getCatalogItem_ConfigPropertyNames);
|
|
5814
6176
|
// Invalid or incomplete config
|
|
5815
6177
|
if (config === null) {
|
|
5816
6178
|
return null;
|
|
5817
6179
|
}
|
|
5818
6180
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
5819
|
-
buildCachedSnapshotCachePolicy$
|
|
6181
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
5820
6182
|
};
|
|
5821
6183
|
|
|
5822
|
-
function select$
|
|
5823
|
-
return select$
|
|
6184
|
+
function select$8(luvio, params) {
|
|
6185
|
+
return select$b();
|
|
5824
6186
|
}
|
|
5825
|
-
function getResponseCacheKeys$
|
|
5826
|
-
getTypeCacheKeys$
|
|
6187
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
6188
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5827
6189
|
}
|
|
5828
|
-
function ingestSuccess$
|
|
6190
|
+
function ingestSuccess$4(luvio, resourceParams, response) {
|
|
5829
6191
|
const { body } = response;
|
|
5830
6192
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5831
|
-
luvio.storeIngest(key, ingest$
|
|
6193
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5832
6194
|
const snapshot = luvio.storeLookup({
|
|
5833
6195
|
recordId: key,
|
|
5834
|
-
node: select$
|
|
6196
|
+
node: select$8(),
|
|
5835
6197
|
variables: {},
|
|
5836
6198
|
});
|
|
5837
6199
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5842,7 +6204,7 @@ function ingestSuccess$3(luvio, resourceParams, response) {
|
|
|
5842
6204
|
deepFreeze(snapshot.data);
|
|
5843
6205
|
return snapshot;
|
|
5844
6206
|
}
|
|
5845
|
-
function createResourceRequest$
|
|
6207
|
+
function createResourceRequest$4(config) {
|
|
5846
6208
|
const headers = {};
|
|
5847
6209
|
return {
|
|
5848
6210
|
baseUri: '/services/data/v64.0',
|
|
@@ -5856,7 +6218,7 @@ function createResourceRequest$3(config) {
|
|
|
5856
6218
|
};
|
|
5857
6219
|
}
|
|
5858
6220
|
|
|
5859
|
-
const adapterName$
|
|
6221
|
+
const adapterName$4 = 'updateCatalogItem';
|
|
5860
6222
|
const updateCatalogItem_ConfigPropertyMetadata = [
|
|
5861
6223
|
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
5862
6224
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
@@ -5878,13 +6240,13 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
5878
6240
|
generateParamConfigMetadata('targetObject', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5879
6241
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5880
6242
|
];
|
|
5881
|
-
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5882
|
-
const createResourceParams$
|
|
5883
|
-
function typeCheckConfig$
|
|
6243
|
+
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, updateCatalogItem_ConfigPropertyMetadata);
|
|
6244
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(updateCatalogItem_ConfigPropertyMetadata);
|
|
6245
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
5884
6246
|
const config = {};
|
|
5885
|
-
typeCheckConfig$
|
|
6247
|
+
typeCheckConfig$7(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
5886
6248
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5887
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
6249
|
+
const referenceAgentActionInputRepresentationValidationError = validate$v(untrustedConfig_agentAction);
|
|
5888
6250
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5889
6251
|
config.agentAction = untrustedConfig_agentAction;
|
|
5890
6252
|
}
|
|
@@ -5903,7 +6265,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5903
6265
|
const untrustedConfig_associatedArticles_array = [];
|
|
5904
6266
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5905
6267
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5906
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
6268
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$u(untrustedConfig_associatedArticles_item);
|
|
5907
6269
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5908
6270
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5909
6271
|
}
|
|
@@ -5918,7 +6280,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5918
6280
|
const untrustedConfig_attributes_array = [];
|
|
5919
6281
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5920
6282
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5921
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
6283
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$s(untrustedConfig_attributes_item);
|
|
5922
6284
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5923
6285
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5924
6286
|
}
|
|
@@ -5933,7 +6295,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5933
6295
|
const untrustedConfig_sections_array = [];
|
|
5934
6296
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5935
6297
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5936
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
6298
|
+
const referenceSectionInputRepresentationValidationError = validate$r(untrustedConfig_sections_item);
|
|
5937
6299
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5938
6300
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5939
6301
|
}
|
|
@@ -5969,7 +6331,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5969
6331
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5970
6332
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5971
6333
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5972
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
6334
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$q(untrustedConfig_eligibilityRules_item);
|
|
5973
6335
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5974
6336
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5975
6337
|
}
|
|
@@ -5980,7 +6342,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5980
6342
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5981
6343
|
}
|
|
5982
6344
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5983
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
6345
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$p(untrustedConfig_fulfillmentFlow);
|
|
5984
6346
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5985
6347
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5986
6348
|
}
|
|
@@ -5988,7 +6350,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
5988
6350
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5989
6351
|
}
|
|
5990
6352
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5991
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
6353
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$o(untrustedConfig_intakeForm);
|
|
5992
6354
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5993
6355
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5994
6356
|
}
|
|
@@ -6000,7 +6362,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
6000
6362
|
const untrustedConfig_integrations_array = [];
|
|
6001
6363
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
6002
6364
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
6003
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
6365
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$n(untrustedConfig_integrations_item);
|
|
6004
6366
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
6005
6367
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
6006
6368
|
}
|
|
@@ -6029,7 +6391,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
6029
6391
|
const untrustedConfig_preProcessors_array = [];
|
|
6030
6392
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
6031
6393
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
6032
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
6394
|
+
const referencePreprocessorInputRepresentationValidationError = validate$m(untrustedConfig_preProcessors_item);
|
|
6033
6395
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
6034
6396
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
6035
6397
|
}
|
|
@@ -6044,7 +6406,7 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
6044
6406
|
const untrustedConfig_productRequests_array = [];
|
|
6045
6407
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
6046
6408
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
6047
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
6409
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$l(untrustedConfig_productRequests_item);
|
|
6048
6410
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
6049
6411
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6050
6412
|
}
|
|
@@ -6070,30 +6432,30 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
6070
6432
|
}
|
|
6071
6433
|
return config;
|
|
6072
6434
|
}
|
|
6073
|
-
function validateAdapterConfig$
|
|
6435
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
6074
6436
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6075
6437
|
return null;
|
|
6076
6438
|
}
|
|
6077
6439
|
if (process.env.NODE_ENV !== 'production') {
|
|
6078
6440
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6079
6441
|
}
|
|
6080
|
-
const config = typeCheckConfig$
|
|
6442
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
6081
6443
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6082
6444
|
return null;
|
|
6083
6445
|
}
|
|
6084
6446
|
return config;
|
|
6085
6447
|
}
|
|
6086
|
-
function buildNetworkSnapshot$
|
|
6087
|
-
const resourceParams = createResourceParams$
|
|
6088
|
-
const request = createResourceRequest$
|
|
6448
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
6449
|
+
const resourceParams = createResourceParams$4(config);
|
|
6450
|
+
const request = createResourceRequest$4(resourceParams);
|
|
6089
6451
|
return luvio.dispatchResourceRequest(request, options)
|
|
6090
6452
|
.then((response) => {
|
|
6091
6453
|
return luvio.handleSuccessResponse(() => {
|
|
6092
|
-
const snapshot = ingestSuccess$
|
|
6454
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response);
|
|
6093
6455
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6094
6456
|
}, () => {
|
|
6095
6457
|
const cache = new StoreKeyMap();
|
|
6096
|
-
getResponseCacheKeys$
|
|
6458
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
6097
6459
|
return cache;
|
|
6098
6460
|
});
|
|
6099
6461
|
}, (response) => {
|
|
@@ -6103,16 +6465,16 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6103
6465
|
}
|
|
6104
6466
|
const updateCatalogItemAdapterFactory = (luvio) => {
|
|
6105
6467
|
return function updateCatalogItem(untrustedConfig) {
|
|
6106
|
-
const config = validateAdapterConfig$
|
|
6468
|
+
const config = validateAdapterConfig$4(untrustedConfig, updateCatalogItem_ConfigPropertyNames);
|
|
6107
6469
|
// Invalid or incomplete config
|
|
6108
6470
|
if (config === null) {
|
|
6109
6471
|
throw new Error('Invalid config for "updateCatalogItem"');
|
|
6110
6472
|
}
|
|
6111
|
-
return buildNetworkSnapshot$
|
|
6473
|
+
return buildNetworkSnapshot$4(luvio, config);
|
|
6112
6474
|
};
|
|
6113
6475
|
};
|
|
6114
6476
|
|
|
6115
|
-
function validate$
|
|
6477
|
+
function validate$7(obj, path = 'CategoryInput') {
|
|
6116
6478
|
const v_error = (() => {
|
|
6117
6479
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6118
6480
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6131,7 +6493,7 @@ function validate$6(obj, path = 'CategoryInput') {
|
|
|
6131
6493
|
return v_error === undefined ? null : v_error;
|
|
6132
6494
|
}
|
|
6133
6495
|
|
|
6134
|
-
function validate$
|
|
6496
|
+
function validate$6(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
|
|
6135
6497
|
const v_error = (() => {
|
|
6136
6498
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6137
6499
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6153,8 +6515,8 @@ function validate$5(obj, path = 'CategoryAndParentErrorOutputRepresentation') {
|
|
|
6153
6515
|
}
|
|
6154
6516
|
|
|
6155
6517
|
const TTL$2 = 6000;
|
|
6156
|
-
const VERSION$
|
|
6157
|
-
function validate$
|
|
6518
|
+
const VERSION$3 = "fe841039450a703d6b90e94658dd230f";
|
|
6519
|
+
function validate$5(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
6158
6520
|
const v_error = (() => {
|
|
6159
6521
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6160
6522
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6172,7 +6534,7 @@ function validate$4(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
|
6172
6534
|
for (let i = 0; i < obj_errors.length; i++) {
|
|
6173
6535
|
const obj_errors_item = obj_errors[i];
|
|
6174
6536
|
const path_errors_item = path_errors + '[' + i + ']';
|
|
6175
|
-
const referencepath_errors_itemValidationError = validate$
|
|
6537
|
+
const referencepath_errors_itemValidationError = validate$6(obj_errors_item, path_errors_item);
|
|
6176
6538
|
if (referencepath_errors_itemValidationError !== null) {
|
|
6177
6539
|
let message = 'Object doesn\'t match CategoryAndParentErrorOutputRepresentation (at "' + path_errors_item + '")\n';
|
|
6178
6540
|
message += referencepath_errors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6192,68 +6554,68 @@ function validate$4(obj, path = 'CategoryAndParentOutputRepresentation') {
|
|
|
6192
6554
|
})();
|
|
6193
6555
|
return v_error === undefined ? null : v_error;
|
|
6194
6556
|
}
|
|
6195
|
-
const RepresentationType$
|
|
6196
|
-
function keyBuilder$
|
|
6197
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6557
|
+
const RepresentationType$3 = 'CategoryAndParentOutputRepresentation';
|
|
6558
|
+
function keyBuilder$5(luvio, config) {
|
|
6559
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
6198
6560
|
}
|
|
6199
6561
|
function keyBuilderFromType$1(luvio, object) {
|
|
6200
6562
|
const keyParams = {
|
|
6201
6563
|
id: object.catalogId
|
|
6202
6564
|
};
|
|
6203
|
-
return keyBuilder$
|
|
6565
|
+
return keyBuilder$5(luvio, keyParams);
|
|
6204
6566
|
}
|
|
6205
|
-
function normalize$
|
|
6567
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
6206
6568
|
return input;
|
|
6207
6569
|
}
|
|
6208
|
-
const select$
|
|
6570
|
+
const select$7 = function CategoryAndParentOutputRepresentationSelect() {
|
|
6209
6571
|
return {
|
|
6210
6572
|
kind: 'Fragment',
|
|
6211
|
-
version: VERSION$
|
|
6573
|
+
version: VERSION$3,
|
|
6212
6574
|
private: [],
|
|
6213
6575
|
opaque: true
|
|
6214
6576
|
};
|
|
6215
6577
|
};
|
|
6216
|
-
function equals$
|
|
6578
|
+
function equals$3(existing, incoming) {
|
|
6217
6579
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6218
6580
|
return false;
|
|
6219
6581
|
}
|
|
6220
6582
|
return true;
|
|
6221
6583
|
}
|
|
6222
|
-
const ingest$
|
|
6584
|
+
const ingest$3 = function CategoryAndParentOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6223
6585
|
if (process.env.NODE_ENV !== 'production') {
|
|
6224
|
-
const validateError = validate$
|
|
6586
|
+
const validateError = validate$5(input);
|
|
6225
6587
|
if (validateError !== null) {
|
|
6226
6588
|
throw validateError;
|
|
6227
6589
|
}
|
|
6228
6590
|
}
|
|
6229
6591
|
const key = keyBuilderFromType$1(luvio, input);
|
|
6230
6592
|
const ttlToUse = TTL$2;
|
|
6231
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6593
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
|
|
6232
6594
|
return createLink(key);
|
|
6233
6595
|
};
|
|
6234
|
-
function getTypeCacheKeys$
|
|
6596
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
6235
6597
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6236
6598
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
6237
6599
|
rootKeySet.set(rootKey, {
|
|
6238
6600
|
namespace: keyPrefix,
|
|
6239
|
-
representationName: RepresentationType$
|
|
6601
|
+
representationName: RepresentationType$3,
|
|
6240
6602
|
mergeable: false
|
|
6241
6603
|
});
|
|
6242
6604
|
}
|
|
6243
6605
|
|
|
6244
|
-
function select$
|
|
6245
|
-
return select$
|
|
6606
|
+
function select$6(luvio, params) {
|
|
6607
|
+
return select$7();
|
|
6246
6608
|
}
|
|
6247
|
-
function getResponseCacheKeys$
|
|
6248
|
-
getTypeCacheKeys$
|
|
6609
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6610
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
6249
6611
|
}
|
|
6250
|
-
function ingestSuccess$
|
|
6612
|
+
function ingestSuccess$3(luvio, resourceParams, response) {
|
|
6251
6613
|
const { body } = response;
|
|
6252
6614
|
const key = keyBuilderFromType$1(luvio, body);
|
|
6253
|
-
luvio.storeIngest(key, ingest$
|
|
6615
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
6254
6616
|
const snapshot = luvio.storeLookup({
|
|
6255
6617
|
recordId: key,
|
|
6256
|
-
node: select$
|
|
6618
|
+
node: select$6(),
|
|
6257
6619
|
variables: {},
|
|
6258
6620
|
});
|
|
6259
6621
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6264,7 +6626,7 @@ function ingestSuccess$2(luvio, resourceParams, response) {
|
|
|
6264
6626
|
deepFreeze(snapshot.data);
|
|
6265
6627
|
return snapshot;
|
|
6266
6628
|
}
|
|
6267
|
-
function createResourceRequest$
|
|
6629
|
+
function createResourceRequest$3(config) {
|
|
6268
6630
|
const headers = {};
|
|
6269
6631
|
return {
|
|
6270
6632
|
baseUri: '/services/data/v64.0',
|
|
@@ -6278,22 +6640,22 @@ function createResourceRequest$2(config) {
|
|
|
6278
6640
|
};
|
|
6279
6641
|
}
|
|
6280
6642
|
|
|
6281
|
-
const adapterName$
|
|
6643
|
+
const adapterName$3 = 'updateEpcCategories';
|
|
6282
6644
|
const updateEpcCategories_ConfigPropertyMetadata = [
|
|
6283
6645
|
generateParamConfigMetadata('catalogId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6284
6646
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6285
6647
|
];
|
|
6286
|
-
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6287
|
-
const createResourceParams$
|
|
6288
|
-
function typeCheckConfig$
|
|
6648
|
+
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, updateEpcCategories_ConfigPropertyMetadata);
|
|
6649
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(updateEpcCategories_ConfigPropertyMetadata);
|
|
6650
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
6289
6651
|
const config = {};
|
|
6290
|
-
typeCheckConfig$
|
|
6652
|
+
typeCheckConfig$7(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
6291
6653
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
6292
6654
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
6293
6655
|
const untrustedConfig_categories_array = [];
|
|
6294
6656
|
for (let i = 0, arrayLength = untrustedConfig_categories.length; i < arrayLength; i++) {
|
|
6295
6657
|
const untrustedConfig_categories_item = untrustedConfig_categories[i];
|
|
6296
|
-
const referenceCategoryInputValidationError = validate$
|
|
6658
|
+
const referenceCategoryInputValidationError = validate$7(untrustedConfig_categories_item);
|
|
6297
6659
|
if (referenceCategoryInputValidationError === null) {
|
|
6298
6660
|
untrustedConfig_categories_array.push(untrustedConfig_categories_item);
|
|
6299
6661
|
}
|
|
@@ -6302,30 +6664,30 @@ function typeCheckConfig$2(untrustedConfig) {
|
|
|
6302
6664
|
}
|
|
6303
6665
|
return config;
|
|
6304
6666
|
}
|
|
6305
|
-
function validateAdapterConfig$
|
|
6667
|
+
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
6306
6668
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6307
6669
|
return null;
|
|
6308
6670
|
}
|
|
6309
6671
|
if (process.env.NODE_ENV !== 'production') {
|
|
6310
6672
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6311
6673
|
}
|
|
6312
|
-
const config = typeCheckConfig$
|
|
6674
|
+
const config = typeCheckConfig$3(untrustedConfig);
|
|
6313
6675
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6314
6676
|
return null;
|
|
6315
6677
|
}
|
|
6316
6678
|
return config;
|
|
6317
6679
|
}
|
|
6318
|
-
function buildNetworkSnapshot$
|
|
6319
|
-
const resourceParams = createResourceParams$
|
|
6320
|
-
const request = createResourceRequest$
|
|
6680
|
+
function buildNetworkSnapshot$3(luvio, config, options) {
|
|
6681
|
+
const resourceParams = createResourceParams$3(config);
|
|
6682
|
+
const request = createResourceRequest$3(resourceParams);
|
|
6321
6683
|
return luvio.dispatchResourceRequest(request, options)
|
|
6322
6684
|
.then((response) => {
|
|
6323
6685
|
return luvio.handleSuccessResponse(() => {
|
|
6324
|
-
const snapshot = ingestSuccess$
|
|
6686
|
+
const snapshot = ingestSuccess$3(luvio, resourceParams, response);
|
|
6325
6687
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6326
6688
|
}, () => {
|
|
6327
6689
|
const cache = new StoreKeyMap();
|
|
6328
|
-
getResponseCacheKeys$
|
|
6690
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
6329
6691
|
return cache;
|
|
6330
6692
|
});
|
|
6331
6693
|
}, (response) => {
|
|
@@ -6335,16 +6697,16 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6335
6697
|
}
|
|
6336
6698
|
const updateEpcCategoriesAdapterFactory = (luvio) => {
|
|
6337
6699
|
return function updateEpcCategories(untrustedConfig) {
|
|
6338
|
-
const config = validateAdapterConfig$
|
|
6700
|
+
const config = validateAdapterConfig$3(untrustedConfig, updateEpcCategories_ConfigPropertyNames);
|
|
6339
6701
|
// Invalid or incomplete config
|
|
6340
6702
|
if (config === null) {
|
|
6341
6703
|
throw new Error('Invalid config for "updateEpcCategories"');
|
|
6342
6704
|
}
|
|
6343
|
-
return buildNetworkSnapshot$
|
|
6705
|
+
return buildNetworkSnapshot$3(luvio, config);
|
|
6344
6706
|
};
|
|
6345
6707
|
};
|
|
6346
6708
|
|
|
6347
|
-
function validate$
|
|
6709
|
+
function validate$4(obj, path = 'FilterInputRepresentation') {
|
|
6348
6710
|
const v_error = (() => {
|
|
6349
6711
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6350
6712
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6368,7 +6730,7 @@ function validate$3(obj, path = 'FilterInputRepresentation') {
|
|
|
6368
6730
|
return v_error === undefined ? null : v_error;
|
|
6369
6731
|
}
|
|
6370
6732
|
|
|
6371
|
-
function validate$
|
|
6733
|
+
function validate$3(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
6372
6734
|
const v_error = (() => {
|
|
6373
6735
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6374
6736
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6392,8 +6754,8 @@ function validate$2(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
6392
6754
|
}
|
|
6393
6755
|
|
|
6394
6756
|
const TTL$1 = 6000;
|
|
6395
|
-
const VERSION$
|
|
6396
|
-
function validate$
|
|
6757
|
+
const VERSION$2 = "7860ae260a600243129acb4ea01e75be";
|
|
6758
|
+
function validate$2(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
6397
6759
|
const v_error = (() => {
|
|
6398
6760
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6399
6761
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6411,7 +6773,7 @@ function validate$1(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6411
6773
|
for (let i = 0; i < obj_records.length; i++) {
|
|
6412
6774
|
const obj_records_item = obj_records[i];
|
|
6413
6775
|
const path_records_item = path_records + '[' + i + ']';
|
|
6414
|
-
const referencepath_records_itemValidationError = validate$
|
|
6776
|
+
const referencepath_records_itemValidationError = validate$3(obj_records_item, path_records_item);
|
|
6415
6777
|
if (referencepath_records_itemValidationError !== null) {
|
|
6416
6778
|
let message = 'Object doesn\'t match ServiceAutomationOutputRecordRepresentation (at "' + path_records_item + '")\n';
|
|
6417
6779
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6421,62 +6783,62 @@ function validate$1(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6421
6783
|
})();
|
|
6422
6784
|
return v_error === undefined ? null : v_error;
|
|
6423
6785
|
}
|
|
6424
|
-
const RepresentationType$
|
|
6425
|
-
function normalize$
|
|
6786
|
+
const RepresentationType$2 = 'ServiceAutomationDepOutputRepresentation';
|
|
6787
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6426
6788
|
return input;
|
|
6427
6789
|
}
|
|
6428
|
-
const select$
|
|
6790
|
+
const select$5 = function ServiceAutomationDepOutputRepresentationSelect() {
|
|
6429
6791
|
return {
|
|
6430
6792
|
kind: 'Fragment',
|
|
6431
|
-
version: VERSION$
|
|
6793
|
+
version: VERSION$2,
|
|
6432
6794
|
private: [],
|
|
6433
6795
|
opaque: true
|
|
6434
6796
|
};
|
|
6435
6797
|
};
|
|
6436
|
-
function equals$
|
|
6798
|
+
function equals$2(existing, incoming) {
|
|
6437
6799
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6438
6800
|
return false;
|
|
6439
6801
|
}
|
|
6440
6802
|
return true;
|
|
6441
6803
|
}
|
|
6442
|
-
const ingest$
|
|
6804
|
+
const ingest$2 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6443
6805
|
if (process.env.NODE_ENV !== 'production') {
|
|
6444
|
-
const validateError = validate$
|
|
6806
|
+
const validateError = validate$2(input);
|
|
6445
6807
|
if (validateError !== null) {
|
|
6446
6808
|
throw validateError;
|
|
6447
6809
|
}
|
|
6448
6810
|
}
|
|
6449
6811
|
const key = path.fullPath;
|
|
6450
6812
|
const ttlToUse = TTL$1;
|
|
6451
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6813
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
|
|
6452
6814
|
return createLink(key);
|
|
6453
6815
|
};
|
|
6454
|
-
function getTypeCacheKeys$
|
|
6816
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
6455
6817
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6456
6818
|
const rootKey = fullPathFactory();
|
|
6457
6819
|
rootKeySet.set(rootKey, {
|
|
6458
6820
|
namespace: keyPrefix,
|
|
6459
|
-
representationName: RepresentationType$
|
|
6821
|
+
representationName: RepresentationType$2,
|
|
6460
6822
|
mergeable: false
|
|
6461
6823
|
});
|
|
6462
6824
|
}
|
|
6463
6825
|
|
|
6464
|
-
function select$
|
|
6465
|
-
return select$
|
|
6826
|
+
function select$4(luvio, params) {
|
|
6827
|
+
return select$5();
|
|
6466
6828
|
}
|
|
6467
|
-
function keyBuilder$
|
|
6829
|
+
function keyBuilder$4(luvio, params) {
|
|
6468
6830
|
return keyPrefix + '::ServiceAutomationDepOutputRepresentation:(' + 'entityName:' + params.body.entityName + '::' + 'fields:' + params.body.fields + '::' + '[' + params.body.filters.map(element => 'filters.field:' + element.field + '::' + 'filters.operator:' + element.operator + '::' + 'filters.value:' + element.value).join(',') + ']' + '::' + (params.body.limit === undefined ? 'limit' : 'limit:' + params.body.limit) + ')';
|
|
6469
6831
|
}
|
|
6470
|
-
function getResponseCacheKeys$
|
|
6471
|
-
getTypeCacheKeys$
|
|
6832
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
6833
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$4(luvio, resourceParams));
|
|
6472
6834
|
}
|
|
6473
|
-
function ingestSuccess$
|
|
6835
|
+
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
6474
6836
|
const { body } = response;
|
|
6475
|
-
const key = keyBuilder$
|
|
6476
|
-
luvio.storeIngest(key, ingest$
|
|
6837
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
6838
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6477
6839
|
const snapshot = luvio.storeLookup({
|
|
6478
6840
|
recordId: key,
|
|
6479
|
-
node: select$
|
|
6841
|
+
node: select$4(),
|
|
6480
6842
|
variables: {},
|
|
6481
6843
|
}, snapshotRefresh);
|
|
6482
6844
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6487,19 +6849,19 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6487
6849
|
deepFreeze(snapshot.data);
|
|
6488
6850
|
return snapshot;
|
|
6489
6851
|
}
|
|
6490
|
-
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
6491
|
-
const key = keyBuilder$
|
|
6852
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
6853
|
+
const key = keyBuilder$4(luvio, params);
|
|
6492
6854
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6493
6855
|
const storeMetadataParams = {
|
|
6494
6856
|
ttl: TTL$1,
|
|
6495
6857
|
namespace: keyPrefix,
|
|
6496
|
-
version: VERSION$
|
|
6497
|
-
representationName: RepresentationType$
|
|
6858
|
+
version: VERSION$2,
|
|
6859
|
+
representationName: RepresentationType$2
|
|
6498
6860
|
};
|
|
6499
6861
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6500
6862
|
return errorSnapshot;
|
|
6501
6863
|
}
|
|
6502
|
-
function createResourceRequest$
|
|
6864
|
+
function createResourceRequest$2(config) {
|
|
6503
6865
|
const headers = {};
|
|
6504
6866
|
return {
|
|
6505
6867
|
baseUri: '/services/data/v64.0',
|
|
@@ -6513,28 +6875,28 @@ function createResourceRequest$1(config) {
|
|
|
6513
6875
|
};
|
|
6514
6876
|
}
|
|
6515
6877
|
|
|
6516
|
-
const adapterName$
|
|
6878
|
+
const adapterName$2 = 'getAllServiceAutomationDep';
|
|
6517
6879
|
const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
6518
6880
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
6519
6881
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
6520
6882
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6521
6883
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6522
6884
|
];
|
|
6523
|
-
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6524
|
-
const createResourceParams$
|
|
6525
|
-
function keyBuilder$
|
|
6526
|
-
const resourceParams = createResourceParams$
|
|
6527
|
-
return keyBuilder$
|
|
6885
|
+
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6886
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6887
|
+
function keyBuilder$3(luvio, config) {
|
|
6888
|
+
const resourceParams = createResourceParams$2(config);
|
|
6889
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
6528
6890
|
}
|
|
6529
|
-
function typeCheckConfig$
|
|
6891
|
+
function typeCheckConfig$2(untrustedConfig) {
|
|
6530
6892
|
const config = {};
|
|
6531
|
-
typeCheckConfig$
|
|
6893
|
+
typeCheckConfig$7(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6532
6894
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
6533
6895
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
6534
6896
|
const untrustedConfig_filters_array = [];
|
|
6535
6897
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
6536
6898
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
6537
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
6899
|
+
const referenceFilterInputRepresentationValidationError = validate$4(untrustedConfig_filters_item);
|
|
6538
6900
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
6539
6901
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
6540
6902
|
}
|
|
@@ -6550,80 +6912,80 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6550
6912
|
}
|
|
6551
6913
|
return config;
|
|
6552
6914
|
}
|
|
6553
|
-
function validateAdapterConfig$
|
|
6915
|
+
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
6554
6916
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6555
6917
|
return null;
|
|
6556
6918
|
}
|
|
6557
6919
|
if (process.env.NODE_ENV !== 'production') {
|
|
6558
6920
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6559
6921
|
}
|
|
6560
|
-
const config = typeCheckConfig$
|
|
6922
|
+
const config = typeCheckConfig$2(untrustedConfig);
|
|
6561
6923
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6562
6924
|
return null;
|
|
6563
6925
|
}
|
|
6564
6926
|
return config;
|
|
6565
6927
|
}
|
|
6566
|
-
function adapterFragment(luvio, config) {
|
|
6567
|
-
createResourceParams$
|
|
6568
|
-
return select$
|
|
6928
|
+
function adapterFragment$1(luvio, config) {
|
|
6929
|
+
createResourceParams$2(config);
|
|
6930
|
+
return select$4();
|
|
6569
6931
|
}
|
|
6570
|
-
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
6571
|
-
const snapshot = ingestSuccess$
|
|
6932
|
+
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
6933
|
+
const snapshot = ingestSuccess$2(luvio, resourceParams, response, {
|
|
6572
6934
|
config,
|
|
6573
|
-
resolve: () => buildNetworkSnapshot$
|
|
6935
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
6574
6936
|
});
|
|
6575
6937
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6576
6938
|
}
|
|
6577
|
-
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
6578
|
-
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
6939
|
+
function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
6940
|
+
const snapshot = ingestError$1(luvio, resourceParams, response, {
|
|
6579
6941
|
config,
|
|
6580
|
-
resolve: () => buildNetworkSnapshot$
|
|
6942
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
6581
6943
|
});
|
|
6582
6944
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6583
6945
|
}
|
|
6584
|
-
function buildNetworkSnapshot$
|
|
6585
|
-
const resourceParams = createResourceParams$
|
|
6586
|
-
const request = createResourceRequest$
|
|
6946
|
+
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
6947
|
+
const resourceParams = createResourceParams$2(config);
|
|
6948
|
+
const request = createResourceRequest$2(resourceParams);
|
|
6587
6949
|
return luvio.dispatchResourceRequest(request, options)
|
|
6588
6950
|
.then((response) => {
|
|
6589
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
6951
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
6590
6952
|
const cache = new StoreKeyMap();
|
|
6591
|
-
getResponseCacheKeys$
|
|
6953
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
6592
6954
|
return cache;
|
|
6593
6955
|
});
|
|
6594
6956
|
}, (response) => {
|
|
6595
|
-
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
6957
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
6596
6958
|
});
|
|
6597
6959
|
}
|
|
6598
|
-
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6599
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6960
|
+
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6961
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, 'get', false);
|
|
6600
6962
|
}
|
|
6601
|
-
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6963
|
+
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6602
6964
|
const { luvio, config } = context;
|
|
6603
6965
|
const selector = {
|
|
6604
|
-
recordId: keyBuilder$
|
|
6605
|
-
node: adapterFragment(luvio, config),
|
|
6966
|
+
recordId: keyBuilder$3(luvio, config),
|
|
6967
|
+
node: adapterFragment$1(luvio, config),
|
|
6606
6968
|
variables: {},
|
|
6607
6969
|
};
|
|
6608
6970
|
const cacheSnapshot = storeLookup(selector, {
|
|
6609
6971
|
config,
|
|
6610
|
-
resolve: () => buildNetworkSnapshot$
|
|
6972
|
+
resolve: () => buildNetworkSnapshot$2(luvio, config, snapshotRefreshOptions)
|
|
6611
6973
|
});
|
|
6612
6974
|
return cacheSnapshot;
|
|
6613
6975
|
}
|
|
6614
6976
|
const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
|
|
6615
|
-
const config = validateAdapterConfig$
|
|
6977
|
+
const config = validateAdapterConfig$2(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
|
|
6616
6978
|
// Invalid or incomplete config
|
|
6617
6979
|
if (config === null) {
|
|
6618
6980
|
return null;
|
|
6619
6981
|
}
|
|
6620
6982
|
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6621
|
-
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
6983
|
+
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
6622
6984
|
};
|
|
6623
6985
|
|
|
6624
6986
|
const TTL = 6000;
|
|
6625
|
-
const VERSION = "b593e197e57b5cb5b7531e71073daefa";
|
|
6626
|
-
function validate(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
6987
|
+
const VERSION$1 = "b593e197e57b5cb5b7531e71073daefa";
|
|
6988
|
+
function validate$1(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
6627
6989
|
const v_error = (() => {
|
|
6628
6990
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6629
6991
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6671,23 +7033,23 @@ function validate(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
|
6671
7033
|
})();
|
|
6672
7034
|
return v_error === undefined ? null : v_error;
|
|
6673
7035
|
}
|
|
6674
|
-
const RepresentationType = 'OmniIntakeOutputRepresentation';
|
|
6675
|
-
function keyBuilder(luvio, config) {
|
|
6676
|
-
return keyPrefix + '::' + RepresentationType + ':' + config.id;
|
|
7036
|
+
const RepresentationType$1 = 'OmniIntakeOutputRepresentation';
|
|
7037
|
+
function keyBuilder$2(luvio, config) {
|
|
7038
|
+
return keyPrefix + '::' + RepresentationType$1 + ':' + config.id;
|
|
6677
7039
|
}
|
|
6678
7040
|
function keyBuilderFromType(luvio, object) {
|
|
6679
7041
|
const keyParams = {
|
|
6680
7042
|
id: object.id
|
|
6681
7043
|
};
|
|
6682
|
-
return keyBuilder(luvio, keyParams);
|
|
7044
|
+
return keyBuilder$2(luvio, keyParams);
|
|
6683
7045
|
}
|
|
6684
|
-
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
7046
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6685
7047
|
return input;
|
|
6686
7048
|
}
|
|
6687
|
-
const select$
|
|
7049
|
+
const select$3 = function OmniIntakeOutputRepresentationSelect() {
|
|
6688
7050
|
return {
|
|
6689
7051
|
kind: 'Fragment',
|
|
6690
|
-
version: VERSION,
|
|
7052
|
+
version: VERSION$1,
|
|
6691
7053
|
private: [],
|
|
6692
7054
|
selections: [
|
|
6693
7055
|
{
|
|
@@ -6725,7 +7087,7 @@ const select$1 = function OmniIntakeOutputRepresentationSelect() {
|
|
|
6725
7087
|
]
|
|
6726
7088
|
};
|
|
6727
7089
|
};
|
|
6728
|
-
function equals(existing, incoming) {
|
|
7090
|
+
function equals$1(existing, incoming) {
|
|
6729
7091
|
const existing_description = existing.description;
|
|
6730
7092
|
const incoming_description = incoming.description;
|
|
6731
7093
|
if (!(existing_description === incoming_description)) {
|
|
@@ -6768,41 +7130,41 @@ function equals(existing, incoming) {
|
|
|
6768
7130
|
}
|
|
6769
7131
|
return true;
|
|
6770
7132
|
}
|
|
6771
|
-
const ingest = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7133
|
+
const ingest$1 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6772
7134
|
if (process.env.NODE_ENV !== 'production') {
|
|
6773
|
-
const validateError = validate(input);
|
|
7135
|
+
const validateError = validate$1(input);
|
|
6774
7136
|
if (validateError !== null) {
|
|
6775
7137
|
throw validateError;
|
|
6776
7138
|
}
|
|
6777
7139
|
}
|
|
6778
7140
|
const key = keyBuilderFromType(luvio, input);
|
|
6779
7141
|
const ttlToUse = TTL;
|
|
6780
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
|
|
7142
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ecm", VERSION$1, RepresentationType$1, equals$1);
|
|
6781
7143
|
return createLink(key);
|
|
6782
7144
|
};
|
|
6783
|
-
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
7145
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6784
7146
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6785
7147
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
6786
7148
|
rootKeySet.set(rootKey, {
|
|
6787
7149
|
namespace: keyPrefix,
|
|
6788
|
-
representationName: RepresentationType,
|
|
7150
|
+
representationName: RepresentationType$1,
|
|
6789
7151
|
mergeable: false
|
|
6790
7152
|
});
|
|
6791
7153
|
}
|
|
6792
7154
|
|
|
6793
|
-
function select(luvio, params) {
|
|
6794
|
-
return select$
|
|
7155
|
+
function select$2(luvio, params) {
|
|
7156
|
+
return select$3();
|
|
6795
7157
|
}
|
|
6796
|
-
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
6797
|
-
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
7158
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
7159
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
6798
7160
|
}
|
|
6799
|
-
function ingestSuccess(luvio, resourceParams, response) {
|
|
7161
|
+
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6800
7162
|
const { body } = response;
|
|
6801
7163
|
const key = keyBuilderFromType(luvio, body);
|
|
6802
|
-
luvio.storeIngest(key, ingest, body);
|
|
7164
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6803
7165
|
const snapshot = luvio.storeLookup({
|
|
6804
7166
|
recordId: key,
|
|
6805
|
-
node: select(),
|
|
7167
|
+
node: select$2(),
|
|
6806
7168
|
variables: {},
|
|
6807
7169
|
});
|
|
6808
7170
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6813,7 +7175,7 @@ function ingestSuccess(luvio, resourceParams, response) {
|
|
|
6813
7175
|
deepFreeze(snapshot.data);
|
|
6814
7176
|
return snapshot;
|
|
6815
7177
|
}
|
|
6816
|
-
function createResourceRequest(config) {
|
|
7178
|
+
function createResourceRequest$1(config) {
|
|
6817
7179
|
const headers = {};
|
|
6818
7180
|
return {
|
|
6819
7181
|
baseUri: '/services/data/v64.0',
|
|
@@ -6827,43 +7189,43 @@ function createResourceRequest(config) {
|
|
|
6827
7189
|
};
|
|
6828
7190
|
}
|
|
6829
7191
|
|
|
6830
|
-
const adapterName = 'generateOmniScript';
|
|
7192
|
+
const adapterName$1 = 'generateOmniScript';
|
|
6831
7193
|
const generateOmniScript_ConfigPropertyMetadata = [
|
|
6832
7194
|
generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
|
|
6833
7195
|
generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
|
|
6834
7196
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
6835
7197
|
];
|
|
6836
|
-
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, generateOmniScript_ConfigPropertyMetadata);
|
|
6837
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
6838
|
-
function typeCheckConfig(untrustedConfig) {
|
|
7198
|
+
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, generateOmniScript_ConfigPropertyMetadata);
|
|
7199
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(generateOmniScript_ConfigPropertyMetadata);
|
|
7200
|
+
function typeCheckConfig$1(untrustedConfig) {
|
|
6839
7201
|
const config = {};
|
|
6840
|
-
typeCheckConfig$
|
|
7202
|
+
typeCheckConfig$7(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
6841
7203
|
return config;
|
|
6842
7204
|
}
|
|
6843
|
-
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
7205
|
+
function validateAdapterConfig$1(untrustedConfig, configPropertyNames) {
|
|
6844
7206
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6845
7207
|
return null;
|
|
6846
7208
|
}
|
|
6847
7209
|
if (process.env.NODE_ENV !== 'production') {
|
|
6848
7210
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
6849
7211
|
}
|
|
6850
|
-
const config = typeCheckConfig(untrustedConfig);
|
|
7212
|
+
const config = typeCheckConfig$1(untrustedConfig);
|
|
6851
7213
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6852
7214
|
return null;
|
|
6853
7215
|
}
|
|
6854
7216
|
return config;
|
|
6855
7217
|
}
|
|
6856
|
-
function buildNetworkSnapshot(luvio, config, options) {
|
|
6857
|
-
const resourceParams = createResourceParams(config);
|
|
6858
|
-
const request = createResourceRequest(resourceParams);
|
|
7218
|
+
function buildNetworkSnapshot$1(luvio, config, options) {
|
|
7219
|
+
const resourceParams = createResourceParams$1(config);
|
|
7220
|
+
const request = createResourceRequest$1(resourceParams);
|
|
6859
7221
|
return luvio.dispatchResourceRequest(request, options)
|
|
6860
7222
|
.then((response) => {
|
|
6861
7223
|
return luvio.handleSuccessResponse(() => {
|
|
6862
|
-
const snapshot = ingestSuccess(luvio, resourceParams, response);
|
|
7224
|
+
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
6863
7225
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
6864
7226
|
}, () => {
|
|
6865
7227
|
const cache = new StoreKeyMap();
|
|
6866
|
-
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
7228
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
6867
7229
|
return cache;
|
|
6868
7230
|
});
|
|
6869
7231
|
}, (response) => {
|
|
@@ -6873,13 +7235,233 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
6873
7235
|
}
|
|
6874
7236
|
const generateOmniScriptAdapterFactory = (luvio) => {
|
|
6875
7237
|
return function generateOmniScript(untrustedConfig) {
|
|
6876
|
-
const config = validateAdapterConfig(untrustedConfig, generateOmniScript_ConfigPropertyNames);
|
|
7238
|
+
const config = validateAdapterConfig$1(untrustedConfig, generateOmniScript_ConfigPropertyNames);
|
|
6877
7239
|
// Invalid or incomplete config
|
|
6878
7240
|
if (config === null) {
|
|
6879
7241
|
throw new Error('Invalid config for "generateOmniScript"');
|
|
6880
7242
|
}
|
|
6881
|
-
return buildNetworkSnapshot(luvio, config);
|
|
7243
|
+
return buildNetworkSnapshot$1(luvio, config);
|
|
6882
7244
|
};
|
|
6883
7245
|
};
|
|
6884
7246
|
|
|
6885
|
-
|
|
7247
|
+
const VERSION = "47abfed1abd8cb040e28d76ea3b6a1ec";
|
|
7248
|
+
function validate(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
7249
|
+
const v_error = (() => {
|
|
7250
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
7251
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
7252
|
+
}
|
|
7253
|
+
const obj_anchor = obj.anchor;
|
|
7254
|
+
const path_anchor = path + '.anchor';
|
|
7255
|
+
if (typeof obj_anchor !== 'object' || ArrayIsArray(obj_anchor) || obj_anchor === null) {
|
|
7256
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor + '" (at "' + path_anchor + '")');
|
|
7257
|
+
}
|
|
7258
|
+
const obj_anchor_keys = ObjectKeys(obj_anchor);
|
|
7259
|
+
for (let i = 0; i < obj_anchor_keys.length; i++) {
|
|
7260
|
+
const key = obj_anchor_keys[i];
|
|
7261
|
+
const obj_anchor_prop = obj_anchor[key];
|
|
7262
|
+
const path_anchor_prop = path_anchor + '["' + key + '"]';
|
|
7263
|
+
if (typeof obj_anchor_prop !== 'object' || ArrayIsArray(obj_anchor_prop) || obj_anchor_prop === null) {
|
|
7264
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor_prop + '" (at "' + path_anchor_prop + '")');
|
|
7265
|
+
}
|
|
7266
|
+
}
|
|
7267
|
+
const obj_customAttributes = obj.customAttributes;
|
|
7268
|
+
const path_customAttributes = path + '.customAttributes';
|
|
7269
|
+
if (typeof obj_customAttributes !== 'object' || ArrayIsArray(obj_customAttributes) || obj_customAttributes === null) {
|
|
7270
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
7271
|
+
}
|
|
7272
|
+
const obj_customAttributes_keys = ObjectKeys(obj_customAttributes);
|
|
7273
|
+
for (let i = 0; i < obj_customAttributes_keys.length; i++) {
|
|
7274
|
+
const key = obj_customAttributes_keys[i];
|
|
7275
|
+
const obj_customAttributes_prop = obj_customAttributes[key];
|
|
7276
|
+
const path_customAttributes_prop = path_customAttributes + '["' + key + '"]';
|
|
7277
|
+
if (typeof obj_customAttributes_prop !== 'object' || ArrayIsArray(obj_customAttributes_prop) || obj_customAttributes_prop === null) {
|
|
7278
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes_prop + '" (at "' + path_customAttributes_prop + '")');
|
|
7279
|
+
}
|
|
7280
|
+
}
|
|
7281
|
+
})();
|
|
7282
|
+
return v_error === undefined ? null : v_error;
|
|
7283
|
+
}
|
|
7284
|
+
const RepresentationType = 'ServiceRequestGetOutputRepresentation';
|
|
7285
|
+
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
7286
|
+
return input;
|
|
7287
|
+
}
|
|
7288
|
+
const select$1 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
7289
|
+
return {
|
|
7290
|
+
kind: 'Fragment',
|
|
7291
|
+
version: VERSION,
|
|
7292
|
+
private: [],
|
|
7293
|
+
selections: []
|
|
7294
|
+
};
|
|
7295
|
+
};
|
|
7296
|
+
function equals(existing, incoming) {
|
|
7297
|
+
const existing_anchor = existing.anchor;
|
|
7298
|
+
const incoming_anchor = incoming.anchor;
|
|
7299
|
+
const equals_anchor_props = equalsObject(existing_anchor, incoming_anchor, (existing_anchor_prop, incoming_anchor_prop) => {
|
|
7300
|
+
});
|
|
7301
|
+
if (equals_anchor_props === false) {
|
|
7302
|
+
return false;
|
|
7303
|
+
}
|
|
7304
|
+
const existing_customAttributes = existing.customAttributes;
|
|
7305
|
+
const incoming_customAttributes = incoming.customAttributes;
|
|
7306
|
+
const equals_customAttributes_props = equalsObject(existing_customAttributes, incoming_customAttributes, (existing_customAttributes_prop, incoming_customAttributes_prop) => {
|
|
7307
|
+
});
|
|
7308
|
+
if (equals_customAttributes_props === false) {
|
|
7309
|
+
return false;
|
|
7310
|
+
}
|
|
7311
|
+
return true;
|
|
7312
|
+
}
|
|
7313
|
+
const ingest = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
7314
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7315
|
+
const validateError = validate(input);
|
|
7316
|
+
if (validateError !== null) {
|
|
7317
|
+
throw validateError;
|
|
7318
|
+
}
|
|
7319
|
+
}
|
|
7320
|
+
const key = path.fullPath;
|
|
7321
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
7322
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "ecm", VERSION, RepresentationType, equals);
|
|
7323
|
+
return createLink(key);
|
|
7324
|
+
};
|
|
7325
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
7326
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
7327
|
+
const rootKey = fullPathFactory();
|
|
7328
|
+
rootKeySet.set(rootKey, {
|
|
7329
|
+
namespace: keyPrefix,
|
|
7330
|
+
representationName: RepresentationType,
|
|
7331
|
+
mergeable: false
|
|
7332
|
+
});
|
|
7333
|
+
}
|
|
7334
|
+
|
|
7335
|
+
function select(luvio, params) {
|
|
7336
|
+
return select$1();
|
|
7337
|
+
}
|
|
7338
|
+
function keyBuilder$1(luvio, params) {
|
|
7339
|
+
return keyPrefix + '::ServiceRequestGetOutputRepresentation:(' + 'serviceRequestId:' + params.urlParams.serviceRequestId + ')';
|
|
7340
|
+
}
|
|
7341
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
7342
|
+
getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
|
|
7343
|
+
}
|
|
7344
|
+
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
7345
|
+
const { body } = response;
|
|
7346
|
+
const key = keyBuilder$1(luvio, resourceParams);
|
|
7347
|
+
luvio.storeIngest(key, ingest, body);
|
|
7348
|
+
const snapshot = luvio.storeLookup({
|
|
7349
|
+
recordId: key,
|
|
7350
|
+
node: select(),
|
|
7351
|
+
variables: {},
|
|
7352
|
+
}, snapshotRefresh);
|
|
7353
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7354
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
7355
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
7356
|
+
}
|
|
7357
|
+
}
|
|
7358
|
+
deepFreeze(snapshot.data);
|
|
7359
|
+
return snapshot;
|
|
7360
|
+
}
|
|
7361
|
+
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
7362
|
+
const key = keyBuilder$1(luvio, params);
|
|
7363
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7364
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
7365
|
+
return errorSnapshot;
|
|
7366
|
+
}
|
|
7367
|
+
function createResourceRequest(config) {
|
|
7368
|
+
const headers = {};
|
|
7369
|
+
return {
|
|
7370
|
+
baseUri: '/services/data/v64.0',
|
|
7371
|
+
basePath: '/connect/service-automation/service-request/service-catalog-request/' + config.urlParams.serviceRequestId + '',
|
|
7372
|
+
method: 'get',
|
|
7373
|
+
body: null,
|
|
7374
|
+
urlParams: config.urlParams,
|
|
7375
|
+
queryParams: {},
|
|
7376
|
+
headers,
|
|
7377
|
+
priority: 'normal',
|
|
7378
|
+
};
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7381
|
+
const adapterName = 'getServiceRequest';
|
|
7382
|
+
const getServiceRequest_ConfigPropertyMetadata = [
|
|
7383
|
+
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7384
|
+
];
|
|
7385
|
+
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getServiceRequest_ConfigPropertyMetadata);
|
|
7386
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(getServiceRequest_ConfigPropertyMetadata);
|
|
7387
|
+
function keyBuilder(luvio, config) {
|
|
7388
|
+
const resourceParams = createResourceParams(config);
|
|
7389
|
+
return keyBuilder$1(luvio, resourceParams);
|
|
7390
|
+
}
|
|
7391
|
+
function typeCheckConfig(untrustedConfig) {
|
|
7392
|
+
const config = {};
|
|
7393
|
+
typeCheckConfig$7(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
7394
|
+
return config;
|
|
7395
|
+
}
|
|
7396
|
+
function validateAdapterConfig(untrustedConfig, configPropertyNames) {
|
|
7397
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
7398
|
+
return null;
|
|
7399
|
+
}
|
|
7400
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7401
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
7402
|
+
}
|
|
7403
|
+
const config = typeCheckConfig(untrustedConfig);
|
|
7404
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
7405
|
+
return null;
|
|
7406
|
+
}
|
|
7407
|
+
return config;
|
|
7408
|
+
}
|
|
7409
|
+
function adapterFragment(luvio, config) {
|
|
7410
|
+
createResourceParams(config);
|
|
7411
|
+
return select();
|
|
7412
|
+
}
|
|
7413
|
+
function onFetchResponseSuccess(luvio, config, resourceParams, response) {
|
|
7414
|
+
const snapshot = ingestSuccess(luvio, resourceParams, response, {
|
|
7415
|
+
config,
|
|
7416
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
7417
|
+
});
|
|
7418
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7419
|
+
}
|
|
7420
|
+
function onFetchResponseError(luvio, config, resourceParams, response) {
|
|
7421
|
+
const snapshot = ingestError(luvio, resourceParams, response, {
|
|
7422
|
+
config,
|
|
7423
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
7424
|
+
});
|
|
7425
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
7426
|
+
}
|
|
7427
|
+
function buildNetworkSnapshot(luvio, config, options) {
|
|
7428
|
+
const resourceParams = createResourceParams(config);
|
|
7429
|
+
const request = createResourceRequest(resourceParams);
|
|
7430
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
7431
|
+
.then((response) => {
|
|
7432
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
7433
|
+
const cache = new StoreKeyMap();
|
|
7434
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
7435
|
+
return cache;
|
|
7436
|
+
});
|
|
7437
|
+
}, (response) => {
|
|
7438
|
+
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
7439
|
+
});
|
|
7440
|
+
}
|
|
7441
|
+
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
7442
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot, undefined, false);
|
|
7443
|
+
}
|
|
7444
|
+
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
7445
|
+
const { luvio, config } = context;
|
|
7446
|
+
const selector = {
|
|
7447
|
+
recordId: keyBuilder(luvio, config),
|
|
7448
|
+
node: adapterFragment(luvio, config),
|
|
7449
|
+
variables: {},
|
|
7450
|
+
};
|
|
7451
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
7452
|
+
config,
|
|
7453
|
+
resolve: () => buildNetworkSnapshot(luvio, config, snapshotRefreshOptions)
|
|
7454
|
+
});
|
|
7455
|
+
return cacheSnapshot;
|
|
7456
|
+
}
|
|
7457
|
+
const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceRequest(untrustedConfig, requestContext) {
|
|
7458
|
+
const config = validateAdapterConfig(untrustedConfig, getServiceRequest_ConfigPropertyNames);
|
|
7459
|
+
// Invalid or incomplete config
|
|
7460
|
+
if (config === null) {
|
|
7461
|
+
return null;
|
|
7462
|
+
}
|
|
7463
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
7464
|
+
buildCachedSnapshotCachePolicy, buildNetworkSnapshotCachePolicy);
|
|
7465
|
+
};
|
|
7466
|
+
|
|
7467
|
+
export { createCatalogItemAdapterFactory, generateOmniScriptAdapterFactory, getAllServiceAutomationDepAdapterFactory, getCatalogItemAdapterFactory, getServiceRequestAdapterFactory, updateCatalogItemAdapterFactory, updateEpcCategoriesAdapterFactory };
|