@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
package/sfdc/index.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$
|
|
17
|
+
import { serializeStructuredKey, ingestShape, deepFreeze, StoreKeyMap, createResourceParams as createResourceParams$7, typeCheckConfig as typeCheckConfig$7, buildNetworkSnapshotCachePolicy as buildNetworkSnapshotCachePolicy$3 } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
20
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -97,13 +97,32 @@ function equalsArray(a, b, equalsItem) {
|
|
|
97
97
|
}
|
|
98
98
|
return true;
|
|
99
99
|
}
|
|
100
|
+
function equalsObject(a, b, equalsProp) {
|
|
101
|
+
const aKeys = ObjectKeys(a).sort();
|
|
102
|
+
const bKeys = ObjectKeys(b).sort();
|
|
103
|
+
const aKeysLength = aKeys.length;
|
|
104
|
+
const bKeysLength = bKeys.length;
|
|
105
|
+
if (aKeysLength !== bKeysLength) {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
for (let i = 0; i < aKeys.length; i++) {
|
|
109
|
+
const key = aKeys[i];
|
|
110
|
+
if (key !== bKeys[i]) {
|
|
111
|
+
return false;
|
|
112
|
+
}
|
|
113
|
+
if (equalsProp(a[key], b[key]) === false) {
|
|
114
|
+
return false;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
return true;
|
|
118
|
+
}
|
|
100
119
|
function createLink(ref) {
|
|
101
120
|
return {
|
|
102
121
|
__ref: serializeStructuredKey(ref),
|
|
103
122
|
};
|
|
104
123
|
}
|
|
105
124
|
|
|
106
|
-
function validate$
|
|
125
|
+
function validate$v(obj, path = 'AgentActionInputRepresentation') {
|
|
107
126
|
const v_error = (() => {
|
|
108
127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
109
128
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -224,7 +243,7 @@ function validate$u(obj, path = 'AgentActionInputRepresentation') {
|
|
|
224
243
|
return v_error === undefined ? null : v_error;
|
|
225
244
|
}
|
|
226
245
|
|
|
227
|
-
function validate$
|
|
246
|
+
function validate$u(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
228
247
|
const v_error = (() => {
|
|
229
248
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
230
249
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -317,46 +336,86 @@ function validate$t(obj, path = 'KnowledgeArticleInputRepresentation') {
|
|
|
317
336
|
return v_error === undefined ? null : v_error;
|
|
318
337
|
}
|
|
319
338
|
|
|
320
|
-
function validate$
|
|
339
|
+
function validate$t(obj, path = 'PicklistAttributeTypeInputRepresentation') {
|
|
321
340
|
const v_error = (() => {
|
|
322
341
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
323
342
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
324
343
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
344
|
+
if (obj.displayName !== undefined) {
|
|
345
|
+
const obj_displayName = obj.displayName;
|
|
346
|
+
const path_displayName = path + '.displayName';
|
|
347
|
+
if (typeof obj_displayName !== 'string') {
|
|
348
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
349
|
+
}
|
|
329
350
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
351
|
+
if (obj.id !== undefined) {
|
|
352
|
+
const obj_id = obj.id;
|
|
353
|
+
const path_id = path + '.id';
|
|
354
|
+
if (typeof obj_id !== 'string') {
|
|
355
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
356
|
+
}
|
|
334
357
|
}
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
358
|
+
if (obj.isDefault !== undefined) {
|
|
359
|
+
const obj_isDefault = obj.isDefault;
|
|
360
|
+
const path_isDefault = path + '.isDefault';
|
|
361
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
362
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
363
|
+
}
|
|
339
364
|
}
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
365
|
+
if (obj.isVisible !== undefined) {
|
|
366
|
+
const obj_isVisible = obj.isVisible;
|
|
367
|
+
const path_isVisible = path + '.isVisible';
|
|
368
|
+
if (typeof obj_isVisible !== 'boolean') {
|
|
369
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVisible + '" (at "' + path_isVisible + '")');
|
|
370
|
+
}
|
|
344
371
|
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
372
|
+
if (obj.name !== undefined) {
|
|
373
|
+
const obj_name = obj.name;
|
|
374
|
+
const path_name = path + '.name';
|
|
375
|
+
if (typeof obj_name !== 'string') {
|
|
376
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
if (obj.operationType !== undefined) {
|
|
380
|
+
const obj_operationType = obj.operationType;
|
|
381
|
+
const path_operationType = path + '.operationType';
|
|
382
|
+
let obj_operationType_union0 = null;
|
|
383
|
+
const obj_operationType_union0_error = (() => {
|
|
384
|
+
if (typeof obj_operationType !== 'string') {
|
|
385
|
+
return new TypeError('Expected "string" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
386
|
+
}
|
|
387
|
+
})();
|
|
388
|
+
if (obj_operationType_union0_error != null) {
|
|
389
|
+
obj_operationType_union0 = obj_operationType_union0_error.message;
|
|
390
|
+
}
|
|
391
|
+
let obj_operationType_union1 = null;
|
|
392
|
+
const obj_operationType_union1_error = (() => {
|
|
393
|
+
if (obj_operationType !== null) {
|
|
394
|
+
return new TypeError('Expected "null" but received "' + typeof obj_operationType + '" (at "' + path_operationType + '")');
|
|
395
|
+
}
|
|
396
|
+
})();
|
|
397
|
+
if (obj_operationType_union1_error != null) {
|
|
398
|
+
obj_operationType_union1 = obj_operationType_union1_error.message;
|
|
399
|
+
}
|
|
400
|
+
if (obj_operationType_union0 && obj_operationType_union1) {
|
|
401
|
+
let message = 'Object doesn\'t match union (at "' + path_operationType + '")';
|
|
402
|
+
message += '\n' + obj_operationType_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
403
|
+
message += '\n' + obj_operationType_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
404
|
+
return new TypeError(message);
|
|
405
|
+
}
|
|
349
406
|
}
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
407
|
+
if (obj.sequenceNumber !== undefined) {
|
|
408
|
+
const obj_sequenceNumber = obj.sequenceNumber;
|
|
409
|
+
const path_sequenceNumber = path + '.sequenceNumber';
|
|
410
|
+
if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
|
|
411
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
412
|
+
}
|
|
354
413
|
}
|
|
355
414
|
})();
|
|
356
415
|
return v_error === undefined ? null : v_error;
|
|
357
416
|
}
|
|
358
417
|
|
|
359
|
-
function validate$
|
|
418
|
+
function validate$s(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
360
419
|
const v_error = (() => {
|
|
361
420
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
362
421
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -529,10 +588,12 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
529
588
|
return new TypeError(message);
|
|
530
589
|
}
|
|
531
590
|
}
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
591
|
+
if (obj.isEditable !== undefined) {
|
|
592
|
+
const obj_isEditable = obj.isEditable;
|
|
593
|
+
const path_isEditable = path + '.isEditable';
|
|
594
|
+
if (typeof obj_isEditable !== 'boolean') {
|
|
595
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEditable + '" (at "' + path_isEditable + '")');
|
|
596
|
+
}
|
|
536
597
|
}
|
|
537
598
|
if (obj.isHidden !== undefined) {
|
|
538
599
|
const obj_isHidden = obj.isHidden;
|
|
@@ -590,10 +651,12 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
590
651
|
return new TypeError(message);
|
|
591
652
|
}
|
|
592
653
|
}
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
654
|
+
if (obj.isMappedAnchorField !== undefined) {
|
|
655
|
+
const obj_isMappedAnchorField = obj.isMappedAnchorField;
|
|
656
|
+
const path_isMappedAnchorField = path + '.isMappedAnchorField';
|
|
657
|
+
if (typeof obj_isMappedAnchorField !== 'boolean') {
|
|
658
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMappedAnchorField + '" (at "' + path_isMappedAnchorField + '")');
|
|
659
|
+
}
|
|
597
660
|
}
|
|
598
661
|
if (obj.isReadOnly !== undefined) {
|
|
599
662
|
const obj_isReadOnly = obj.isReadOnly;
|
|
@@ -707,40 +770,42 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
707
770
|
return new TypeError(message);
|
|
708
771
|
}
|
|
709
772
|
}
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
const
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
773
|
+
if (obj.picklistOptions !== undefined) {
|
|
774
|
+
const obj_picklistOptions = obj.picklistOptions;
|
|
775
|
+
const path_picklistOptions = path + '.picklistOptions';
|
|
776
|
+
if (!ArrayIsArray(obj_picklistOptions)) {
|
|
777
|
+
return new TypeError('Expected "array" but received "' + typeof obj_picklistOptions + '" (at "' + path_picklistOptions + '")');
|
|
778
|
+
}
|
|
779
|
+
for (let i = 0; i < obj_picklistOptions.length; i++) {
|
|
780
|
+
const obj_picklistOptions_item = obj_picklistOptions[i];
|
|
781
|
+
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
782
|
+
let obj_picklistOptions_item_union0 = null;
|
|
783
|
+
const obj_picklistOptions_item_union0_error = (() => {
|
|
784
|
+
const referencepath_picklistOptions_itemValidationError = validate$t(obj_picklistOptions_item, path_picklistOptions_item);
|
|
785
|
+
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
786
|
+
let message = 'Object doesn\'t match PicklistAttributeTypeInputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
787
|
+
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
788
|
+
return new TypeError(message);
|
|
789
|
+
}
|
|
790
|
+
})();
|
|
791
|
+
if (obj_picklistOptions_item_union0_error != null) {
|
|
792
|
+
obj_picklistOptions_item_union0 = obj_picklistOptions_item_union0_error.message;
|
|
725
793
|
}
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
if (
|
|
733
|
-
|
|
794
|
+
let obj_picklistOptions_item_union1 = null;
|
|
795
|
+
const obj_picklistOptions_item_union1_error = (() => {
|
|
796
|
+
if (obj_picklistOptions_item !== null) {
|
|
797
|
+
return new TypeError('Expected "null" but received "' + typeof obj_picklistOptions_item + '" (at "' + path_picklistOptions_item + '")');
|
|
798
|
+
}
|
|
799
|
+
})();
|
|
800
|
+
if (obj_picklistOptions_item_union1_error != null) {
|
|
801
|
+
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
802
|
+
}
|
|
803
|
+
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
804
|
+
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
805
|
+
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
806
|
+
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
807
|
+
return new TypeError(message);
|
|
734
808
|
}
|
|
735
|
-
})();
|
|
736
|
-
if (obj_picklistOptions_item_union1_error != null) {
|
|
737
|
-
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
738
|
-
}
|
|
739
|
-
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
740
|
-
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
741
|
-
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
742
|
-
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
743
|
-
return new TypeError(message);
|
|
744
809
|
}
|
|
745
810
|
}
|
|
746
811
|
if (obj.sequence !== undefined) {
|
|
@@ -775,7 +840,7 @@ function validate$r(obj, path = 'CatalogItemAttributeInputRepresentation') {
|
|
|
775
840
|
return v_error === undefined ? null : v_error;
|
|
776
841
|
}
|
|
777
842
|
|
|
778
|
-
function validate$
|
|
843
|
+
function validate$r(obj, path = 'SectionInputRepresentation') {
|
|
779
844
|
const v_error = (() => {
|
|
780
845
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
781
846
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -906,16 +971,18 @@ function validate$q(obj, path = 'SectionInputRepresentation') {
|
|
|
906
971
|
return new TypeError(message);
|
|
907
972
|
}
|
|
908
973
|
}
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
974
|
+
if (obj.sequence !== undefined) {
|
|
975
|
+
const obj_sequence = obj.sequence;
|
|
976
|
+
const path_sequence = path + '.sequence';
|
|
977
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
978
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
979
|
+
}
|
|
913
980
|
}
|
|
914
981
|
})();
|
|
915
982
|
return v_error === undefined ? null : v_error;
|
|
916
983
|
}
|
|
917
984
|
|
|
918
|
-
function validate$
|
|
985
|
+
function validate$q(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
919
986
|
const v_error = (() => {
|
|
920
987
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
921
988
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -980,7 +1047,7 @@ function validate$p(obj, path = 'EligibilityRulesInputRepresentation') {
|
|
|
980
1047
|
return v_error === undefined ? null : v_error;
|
|
981
1048
|
}
|
|
982
1049
|
|
|
983
|
-
function validate$
|
|
1050
|
+
function validate$p(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
984
1051
|
const v_error = (() => {
|
|
985
1052
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
986
1053
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1101,7 +1168,7 @@ function validate$o(obj, path = 'FulfillmentFlowInputRepresentation') {
|
|
|
1101
1168
|
return v_error === undefined ? null : v_error;
|
|
1102
1169
|
}
|
|
1103
1170
|
|
|
1104
|
-
function validate$
|
|
1171
|
+
function validate$o(obj, path = 'IntakeFormInputRepresentation') {
|
|
1105
1172
|
const v_error = (() => {
|
|
1106
1173
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1107
1174
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1222,7 +1289,7 @@ function validate$n(obj, path = 'IntakeFormInputRepresentation') {
|
|
|
1222
1289
|
return v_error === undefined ? null : v_error;
|
|
1223
1290
|
}
|
|
1224
1291
|
|
|
1225
|
-
function validate$
|
|
1292
|
+
function validate$n(obj, path = 'IntegrationDefInputRepresentation') {
|
|
1226
1293
|
const v_error = (() => {
|
|
1227
1294
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1228
1295
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1315,7 +1382,7 @@ function validate$m(obj, path = 'IntegrationDefInputRepresentation') {
|
|
|
1315
1382
|
return v_error === undefined ? null : v_error;
|
|
1316
1383
|
}
|
|
1317
1384
|
|
|
1318
|
-
function validate$
|
|
1385
|
+
function validate$m(obj, path = 'PreprocessorInputRepresentation') {
|
|
1319
1386
|
const v_error = (() => {
|
|
1320
1387
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1321
1388
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1408,7 +1475,7 @@ function validate$l(obj, path = 'PreprocessorInputRepresentation') {
|
|
|
1408
1475
|
return v_error === undefined ? null : v_error;
|
|
1409
1476
|
}
|
|
1410
1477
|
|
|
1411
|
-
function validate$
|
|
1478
|
+
function validate$l(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
1412
1479
|
const v_error = (() => {
|
|
1413
1480
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1414
1481
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1599,8 +1666,8 @@ function validate$k(obj, path = 'ProductRequestCreateInputRepresentation') {
|
|
|
1599
1666
|
return v_error === undefined ? null : v_error;
|
|
1600
1667
|
}
|
|
1601
1668
|
|
|
1602
|
-
const VERSION$
|
|
1603
|
-
function validate$
|
|
1669
|
+
const VERSION$g = "ac94c0c52190d3f2f063659052e5b46e";
|
|
1670
|
+
function validate$k(obj, path = 'AgentActionOutputRepresentation') {
|
|
1604
1671
|
const v_error = (() => {
|
|
1605
1672
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1606
1673
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1692,10 +1759,10 @@ function validate$j(obj, path = 'AgentActionOutputRepresentation') {
|
|
|
1692
1759
|
})();
|
|
1693
1760
|
return v_error === undefined ? null : v_error;
|
|
1694
1761
|
}
|
|
1695
|
-
const select$
|
|
1762
|
+
const select$n = function AgentActionOutputRepresentationSelect() {
|
|
1696
1763
|
return {
|
|
1697
1764
|
kind: 'Fragment',
|
|
1698
|
-
version: VERSION$
|
|
1765
|
+
version: VERSION$g,
|
|
1699
1766
|
private: [],
|
|
1700
1767
|
selections: [
|
|
1701
1768
|
{
|
|
@@ -1716,7 +1783,7 @@ const select$l = function AgentActionOutputRepresentationSelect() {
|
|
|
1716
1783
|
]
|
|
1717
1784
|
};
|
|
1718
1785
|
};
|
|
1719
|
-
function equals$
|
|
1786
|
+
function equals$g(existing, incoming) {
|
|
1720
1787
|
const existing_agentActionId = existing.agentActionId;
|
|
1721
1788
|
const incoming_agentActionId = incoming.agentActionId;
|
|
1722
1789
|
// if at least one of these optionals is defined
|
|
@@ -1759,8 +1826,8 @@ function equals$f(existing, incoming) {
|
|
|
1759
1826
|
return true;
|
|
1760
1827
|
}
|
|
1761
1828
|
|
|
1762
|
-
const VERSION$
|
|
1763
|
-
function validate$
|
|
1829
|
+
const VERSION$f = "0b2080174fe6d4ee4f4a0de27011fc7d";
|
|
1830
|
+
function validate$j(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
1764
1831
|
const v_error = (() => {
|
|
1765
1832
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1766
1833
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1824,10 +1891,10 @@ function validate$i(obj, path = 'AssociatedArticleOutputRepresentation') {
|
|
|
1824
1891
|
})();
|
|
1825
1892
|
return v_error === undefined ? null : v_error;
|
|
1826
1893
|
}
|
|
1827
|
-
const select$
|
|
1894
|
+
const select$m = function AssociatedArticleOutputRepresentationSelect() {
|
|
1828
1895
|
return {
|
|
1829
1896
|
kind: 'Fragment',
|
|
1830
|
-
version: VERSION$
|
|
1897
|
+
version: VERSION$f,
|
|
1831
1898
|
private: [],
|
|
1832
1899
|
selections: [
|
|
1833
1900
|
{
|
|
@@ -1843,7 +1910,7 @@ const select$k = function AssociatedArticleOutputRepresentationSelect() {
|
|
|
1843
1910
|
]
|
|
1844
1911
|
};
|
|
1845
1912
|
};
|
|
1846
|
-
function equals$
|
|
1913
|
+
function equals$f(existing, incoming) {
|
|
1847
1914
|
const existing_id = existing.id;
|
|
1848
1915
|
const incoming_id = incoming.id;
|
|
1849
1916
|
// if at least one of these optionals is defined
|
|
@@ -1873,8 +1940,8 @@ function equals$e(existing, incoming) {
|
|
|
1873
1940
|
return true;
|
|
1874
1941
|
}
|
|
1875
1942
|
|
|
1876
|
-
const VERSION$
|
|
1877
|
-
function validate$
|
|
1943
|
+
const VERSION$e = "6859d872ce6d03f8f07819eb40c43fe6";
|
|
1944
|
+
function validate$i(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
1878
1945
|
const v_error = (() => {
|
|
1879
1946
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1880
1947
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -1938,10 +2005,10 @@ function validate$h(obj, path = 'EligibilityRuleOutputRepresentation') {
|
|
|
1938
2005
|
})();
|
|
1939
2006
|
return v_error === undefined ? null : v_error;
|
|
1940
2007
|
}
|
|
1941
|
-
const select$
|
|
2008
|
+
const select$l = function EligibilityRuleOutputRepresentationSelect() {
|
|
1942
2009
|
return {
|
|
1943
2010
|
kind: 'Fragment',
|
|
1944
|
-
version: VERSION$
|
|
2011
|
+
version: VERSION$e,
|
|
1945
2012
|
private: [],
|
|
1946
2013
|
selections: [
|
|
1947
2014
|
{
|
|
@@ -1957,7 +2024,7 @@ const select$j = function EligibilityRuleOutputRepresentationSelect() {
|
|
|
1957
2024
|
]
|
|
1958
2025
|
};
|
|
1959
2026
|
};
|
|
1960
|
-
function equals$
|
|
2027
|
+
function equals$e(existing, incoming) {
|
|
1961
2028
|
const existing_eligibilityRuleId = existing.eligibilityRuleId;
|
|
1962
2029
|
const incoming_eligibilityRuleId = incoming.eligibilityRuleId;
|
|
1963
2030
|
// if at least one of these optionals is defined
|
|
@@ -1987,8 +2054,8 @@ function equals$d(existing, incoming) {
|
|
|
1987
2054
|
return true;
|
|
1988
2055
|
}
|
|
1989
2056
|
|
|
1990
|
-
const VERSION$
|
|
1991
|
-
function validate$
|
|
2057
|
+
const VERSION$d = "b5216beece7c04763cff6924e6953f93";
|
|
2058
|
+
function validate$h(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
1992
2059
|
const v_error = (() => {
|
|
1993
2060
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1994
2061
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2080,10 +2147,10 @@ function validate$g(obj, path = 'FulfillmentFlowOutputRepresentation') {
|
|
|
2080
2147
|
})();
|
|
2081
2148
|
return v_error === undefined ? null : v_error;
|
|
2082
2149
|
}
|
|
2083
|
-
const select$
|
|
2150
|
+
const select$k = function FulfillmentFlowOutputRepresentationSelect() {
|
|
2084
2151
|
return {
|
|
2085
2152
|
kind: 'Fragment',
|
|
2086
|
-
version: VERSION$
|
|
2153
|
+
version: VERSION$d,
|
|
2087
2154
|
private: [],
|
|
2088
2155
|
selections: [
|
|
2089
2156
|
{
|
|
@@ -2104,7 +2171,7 @@ const select$i = function FulfillmentFlowOutputRepresentationSelect() {
|
|
|
2104
2171
|
]
|
|
2105
2172
|
};
|
|
2106
2173
|
};
|
|
2107
|
-
function equals$
|
|
2174
|
+
function equals$d(existing, incoming) {
|
|
2108
2175
|
const existing_fulFillmentFlowId = existing.fulFillmentFlowId;
|
|
2109
2176
|
const incoming_fulFillmentFlowId = incoming.fulFillmentFlowId;
|
|
2110
2177
|
// if at least one of these optionals is defined
|
|
@@ -2147,8 +2214,8 @@ function equals$c(existing, incoming) {
|
|
|
2147
2214
|
return true;
|
|
2148
2215
|
}
|
|
2149
2216
|
|
|
2150
|
-
const VERSION$
|
|
2151
|
-
function validate$
|
|
2217
|
+
const VERSION$c = "dc8ba723ca754951db42f9d0e6891a06";
|
|
2218
|
+
function validate$g(obj, path = 'IntakeFormOutputRepresentation') {
|
|
2152
2219
|
const v_error = (() => {
|
|
2153
2220
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2154
2221
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2380,10 +2447,10 @@ function validate$f(obj, path = 'IntakeFormOutputRepresentation') {
|
|
|
2380
2447
|
})();
|
|
2381
2448
|
return v_error === undefined ? null : v_error;
|
|
2382
2449
|
}
|
|
2383
|
-
const select$
|
|
2450
|
+
const select$j = function IntakeFormOutputRepresentationSelect() {
|
|
2384
2451
|
return {
|
|
2385
2452
|
kind: 'Fragment',
|
|
2386
|
-
version: VERSION$
|
|
2453
|
+
version: VERSION$c,
|
|
2387
2454
|
private: [],
|
|
2388
2455
|
selections: [
|
|
2389
2456
|
{
|
|
@@ -2429,7 +2496,7 @@ const select$h = function IntakeFormOutputRepresentationSelect() {
|
|
|
2429
2496
|
]
|
|
2430
2497
|
};
|
|
2431
2498
|
};
|
|
2432
|
-
function equals$
|
|
2499
|
+
function equals$c(existing, incoming) {
|
|
2433
2500
|
const existing_id = existing.id;
|
|
2434
2501
|
const incoming_id = incoming.id;
|
|
2435
2502
|
// if at least one of these optionals is defined
|
|
@@ -2537,8 +2604,8 @@ function equals$b(existing, incoming) {
|
|
|
2537
2604
|
return true;
|
|
2538
2605
|
}
|
|
2539
2606
|
|
|
2540
|
-
const VERSION$
|
|
2541
|
-
function validate$
|
|
2607
|
+
const VERSION$b = "1006a153c933b8bc4b1d44663893e206";
|
|
2608
|
+
function validate$f(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
2542
2609
|
const v_error = (() => {
|
|
2543
2610
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2544
2611
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2602,10 +2669,10 @@ function validate$e(obj, path = 'IntegrationDefinitionOutputPresentation') {
|
|
|
2602
2669
|
})();
|
|
2603
2670
|
return v_error === undefined ? null : v_error;
|
|
2604
2671
|
}
|
|
2605
|
-
const select$
|
|
2672
|
+
const select$i = function IntegrationDefinitionOutputPresentationSelect() {
|
|
2606
2673
|
return {
|
|
2607
2674
|
kind: 'Fragment',
|
|
2608
|
-
version: VERSION$
|
|
2675
|
+
version: VERSION$b,
|
|
2609
2676
|
private: [],
|
|
2610
2677
|
selections: [
|
|
2611
2678
|
{
|
|
@@ -2621,7 +2688,7 @@ const select$g = function IntegrationDefinitionOutputPresentationSelect() {
|
|
|
2621
2688
|
]
|
|
2622
2689
|
};
|
|
2623
2690
|
};
|
|
2624
|
-
function equals$
|
|
2691
|
+
function equals$b(existing, incoming) {
|
|
2625
2692
|
const existing_id = existing.id;
|
|
2626
2693
|
const incoming_id = incoming.id;
|
|
2627
2694
|
// if at least one of these optionals is defined
|
|
@@ -2651,8 +2718,8 @@ function equals$a(existing, incoming) {
|
|
|
2651
2718
|
return true;
|
|
2652
2719
|
}
|
|
2653
2720
|
|
|
2654
|
-
const VERSION$
|
|
2655
|
-
function validate$
|
|
2721
|
+
const VERSION$a = "2d685b1e467eb8d61276e834ea3b74a3";
|
|
2722
|
+
function validate$e(obj, path = 'PreprocessorOutputRepresentation') {
|
|
2656
2723
|
const v_error = (() => {
|
|
2657
2724
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2658
2725
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2716,10 +2783,10 @@ function validate$d(obj, path = 'PreprocessorOutputRepresentation') {
|
|
|
2716
2783
|
})();
|
|
2717
2784
|
return v_error === undefined ? null : v_error;
|
|
2718
2785
|
}
|
|
2719
|
-
const select$
|
|
2786
|
+
const select$h = function PreprocessorOutputRepresentationSelect() {
|
|
2720
2787
|
return {
|
|
2721
2788
|
kind: 'Fragment',
|
|
2722
|
-
version: VERSION$
|
|
2789
|
+
version: VERSION$a,
|
|
2723
2790
|
private: [],
|
|
2724
2791
|
selections: [
|
|
2725
2792
|
{
|
|
@@ -2735,7 +2802,7 @@ const select$f = function PreprocessorOutputRepresentationSelect() {
|
|
|
2735
2802
|
]
|
|
2736
2803
|
};
|
|
2737
2804
|
};
|
|
2738
|
-
function equals$
|
|
2805
|
+
function equals$a(existing, incoming) {
|
|
2739
2806
|
const existing_id = existing.id;
|
|
2740
2807
|
const incoming_id = incoming.id;
|
|
2741
2808
|
// if at least one of these optionals is defined
|
|
@@ -2765,12 +2832,68 @@ function equals$9(existing, incoming) {
|
|
|
2765
2832
|
return true;
|
|
2766
2833
|
}
|
|
2767
2834
|
|
|
2768
|
-
const VERSION$
|
|
2769
|
-
function validate$
|
|
2835
|
+
const VERSION$9 = "bb9dde3a26e01fbcb2b943119fcb279a";
|
|
2836
|
+
function validate$d(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
2770
2837
|
const v_error = (() => {
|
|
2771
2838
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2772
2839
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2773
2840
|
}
|
|
2841
|
+
if (obj.description !== undefined) {
|
|
2842
|
+
const obj_description = obj.description;
|
|
2843
|
+
const path_description = path + '.description';
|
|
2844
|
+
let obj_description_union0 = null;
|
|
2845
|
+
const obj_description_union0_error = (() => {
|
|
2846
|
+
if (typeof obj_description !== 'string') {
|
|
2847
|
+
return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2848
|
+
}
|
|
2849
|
+
})();
|
|
2850
|
+
if (obj_description_union0_error != null) {
|
|
2851
|
+
obj_description_union0 = obj_description_union0_error.message;
|
|
2852
|
+
}
|
|
2853
|
+
let obj_description_union1 = null;
|
|
2854
|
+
const obj_description_union1_error = (() => {
|
|
2855
|
+
if (obj_description !== null) {
|
|
2856
|
+
return new TypeError('Expected "null" but received "' + typeof obj_description + '" (at "' + path_description + '")');
|
|
2857
|
+
}
|
|
2858
|
+
})();
|
|
2859
|
+
if (obj_description_union1_error != null) {
|
|
2860
|
+
obj_description_union1 = obj_description_union1_error.message;
|
|
2861
|
+
}
|
|
2862
|
+
if (obj_description_union0 && obj_description_union1) {
|
|
2863
|
+
let message = 'Object doesn\'t match union (at "' + path_description + '")';
|
|
2864
|
+
message += '\n' + obj_description_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2865
|
+
message += '\n' + obj_description_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2866
|
+
return new TypeError(message);
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
if (obj.displayUrl !== undefined) {
|
|
2870
|
+
const obj_displayUrl = obj.displayUrl;
|
|
2871
|
+
const path_displayUrl = path + '.displayUrl';
|
|
2872
|
+
let obj_displayUrl_union0 = null;
|
|
2873
|
+
const obj_displayUrl_union0_error = (() => {
|
|
2874
|
+
if (typeof obj_displayUrl !== 'string') {
|
|
2875
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
2876
|
+
}
|
|
2877
|
+
})();
|
|
2878
|
+
if (obj_displayUrl_union0_error != null) {
|
|
2879
|
+
obj_displayUrl_union0 = obj_displayUrl_union0_error.message;
|
|
2880
|
+
}
|
|
2881
|
+
let obj_displayUrl_union1 = null;
|
|
2882
|
+
const obj_displayUrl_union1_error = (() => {
|
|
2883
|
+
if (obj_displayUrl !== null) {
|
|
2884
|
+
return new TypeError('Expected "null" but received "' + typeof obj_displayUrl + '" (at "' + path_displayUrl + '")');
|
|
2885
|
+
}
|
|
2886
|
+
})();
|
|
2887
|
+
if (obj_displayUrl_union1_error != null) {
|
|
2888
|
+
obj_displayUrl_union1 = obj_displayUrl_union1_error.message;
|
|
2889
|
+
}
|
|
2890
|
+
if (obj_displayUrl_union0 && obj_displayUrl_union1) {
|
|
2891
|
+
let message = 'Object doesn\'t match union (at "' + path_displayUrl + '")';
|
|
2892
|
+
message += '\n' + obj_displayUrl_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2893
|
+
message += '\n' + obj_displayUrl_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2894
|
+
return new TypeError(message);
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2774
2897
|
if (obj.id !== undefined) {
|
|
2775
2898
|
const obj_id = obj.id;
|
|
2776
2899
|
const path_id = path + '.id';
|
|
@@ -2827,15 +2950,81 @@ function validate$c(obj, path = 'ProductDetailsOutputRepresentation') {
|
|
|
2827
2950
|
return new TypeError(message);
|
|
2828
2951
|
}
|
|
2829
2952
|
}
|
|
2953
|
+
if (obj.productName !== undefined) {
|
|
2954
|
+
const obj_productName = obj.productName;
|
|
2955
|
+
const path_productName = path + '.productName';
|
|
2956
|
+
let obj_productName_union0 = null;
|
|
2957
|
+
const obj_productName_union0_error = (() => {
|
|
2958
|
+
if (typeof obj_productName !== 'string') {
|
|
2959
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productName + '" (at "' + path_productName + '")');
|
|
2960
|
+
}
|
|
2961
|
+
})();
|
|
2962
|
+
if (obj_productName_union0_error != null) {
|
|
2963
|
+
obj_productName_union0 = obj_productName_union0_error.message;
|
|
2964
|
+
}
|
|
2965
|
+
let obj_productName_union1 = null;
|
|
2966
|
+
const obj_productName_union1_error = (() => {
|
|
2967
|
+
if (obj_productName !== null) {
|
|
2968
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productName + '" (at "' + path_productName + '")');
|
|
2969
|
+
}
|
|
2970
|
+
})();
|
|
2971
|
+
if (obj_productName_union1_error != null) {
|
|
2972
|
+
obj_productName_union1 = obj_productName_union1_error.message;
|
|
2973
|
+
}
|
|
2974
|
+
if (obj_productName_union0 && obj_productName_union1) {
|
|
2975
|
+
let message = 'Object doesn\'t match union (at "' + path_productName + '")';
|
|
2976
|
+
message += '\n' + obj_productName_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
2977
|
+
message += '\n' + obj_productName_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
2978
|
+
return new TypeError(message);
|
|
2979
|
+
}
|
|
2980
|
+
}
|
|
2981
|
+
if (obj.productPrice !== undefined) {
|
|
2982
|
+
const obj_productPrice = obj.productPrice;
|
|
2983
|
+
const path_productPrice = path + '.productPrice';
|
|
2984
|
+
let obj_productPrice_union0 = null;
|
|
2985
|
+
const obj_productPrice_union0_error = (() => {
|
|
2986
|
+
if (typeof obj_productPrice !== 'string') {
|
|
2987
|
+
return new TypeError('Expected "string" but received "' + typeof obj_productPrice + '" (at "' + path_productPrice + '")');
|
|
2988
|
+
}
|
|
2989
|
+
})();
|
|
2990
|
+
if (obj_productPrice_union0_error != null) {
|
|
2991
|
+
obj_productPrice_union0 = obj_productPrice_union0_error.message;
|
|
2992
|
+
}
|
|
2993
|
+
let obj_productPrice_union1 = null;
|
|
2994
|
+
const obj_productPrice_union1_error = (() => {
|
|
2995
|
+
if (obj_productPrice !== null) {
|
|
2996
|
+
return new TypeError('Expected "null" but received "' + typeof obj_productPrice + '" (at "' + path_productPrice + '")');
|
|
2997
|
+
}
|
|
2998
|
+
})();
|
|
2999
|
+
if (obj_productPrice_union1_error != null) {
|
|
3000
|
+
obj_productPrice_union1 = obj_productPrice_union1_error.message;
|
|
3001
|
+
}
|
|
3002
|
+
if (obj_productPrice_union0 && obj_productPrice_union1) {
|
|
3003
|
+
let message = 'Object doesn\'t match union (at "' + path_productPrice + '")';
|
|
3004
|
+
message += '\n' + obj_productPrice_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3005
|
+
message += '\n' + obj_productPrice_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3006
|
+
return new TypeError(message);
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
2830
3009
|
})();
|
|
2831
3010
|
return v_error === undefined ? null : v_error;
|
|
2832
3011
|
}
|
|
2833
|
-
const select$
|
|
3012
|
+
const select$g = function ProductDetailsOutputRepresentationSelect() {
|
|
2834
3013
|
return {
|
|
2835
3014
|
kind: 'Fragment',
|
|
2836
|
-
version: VERSION$
|
|
3015
|
+
version: VERSION$9,
|
|
2837
3016
|
private: [],
|
|
2838
3017
|
selections: [
|
|
3018
|
+
{
|
|
3019
|
+
name: 'description',
|
|
3020
|
+
kind: 'Scalar',
|
|
3021
|
+
required: false
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
name: 'displayUrl',
|
|
3025
|
+
kind: 'Scalar',
|
|
3026
|
+
required: false
|
|
3027
|
+
},
|
|
2839
3028
|
{
|
|
2840
3029
|
name: 'id',
|
|
2841
3030
|
kind: 'Scalar',
|
|
@@ -2845,11 +3034,47 @@ const select$e = function ProductDetailsOutputRepresentationSelect() {
|
|
|
2845
3034
|
name: 'productId',
|
|
2846
3035
|
kind: 'Scalar',
|
|
2847
3036
|
required: false
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
name: 'productName',
|
|
3040
|
+
kind: 'Scalar',
|
|
3041
|
+
required: false
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
name: 'productPrice',
|
|
3045
|
+
kind: 'Scalar',
|
|
3046
|
+
required: false
|
|
2848
3047
|
}
|
|
2849
3048
|
]
|
|
2850
3049
|
};
|
|
2851
3050
|
};
|
|
2852
|
-
function equals$
|
|
3051
|
+
function equals$9(existing, incoming) {
|
|
3052
|
+
const existing_description = existing.description;
|
|
3053
|
+
const incoming_description = incoming.description;
|
|
3054
|
+
// if at least one of these optionals is defined
|
|
3055
|
+
if (existing_description !== undefined || incoming_description !== undefined) {
|
|
3056
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3057
|
+
// not equal
|
|
3058
|
+
if (existing_description === undefined || incoming_description === undefined) {
|
|
3059
|
+
return false;
|
|
3060
|
+
}
|
|
3061
|
+
if (!(existing_description === incoming_description)) {
|
|
3062
|
+
return false;
|
|
3063
|
+
}
|
|
3064
|
+
}
|
|
3065
|
+
const existing_displayUrl = existing.displayUrl;
|
|
3066
|
+
const incoming_displayUrl = incoming.displayUrl;
|
|
3067
|
+
// if at least one of these optionals is defined
|
|
3068
|
+
if (existing_displayUrl !== undefined || incoming_displayUrl !== undefined) {
|
|
3069
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3070
|
+
// not equal
|
|
3071
|
+
if (existing_displayUrl === undefined || incoming_displayUrl === undefined) {
|
|
3072
|
+
return false;
|
|
3073
|
+
}
|
|
3074
|
+
if (!(existing_displayUrl === incoming_displayUrl)) {
|
|
3075
|
+
return false;
|
|
3076
|
+
}
|
|
3077
|
+
}
|
|
2853
3078
|
const existing_id = existing.id;
|
|
2854
3079
|
const incoming_id = incoming.id;
|
|
2855
3080
|
// if at least one of these optionals is defined
|
|
@@ -2876,11 +3101,37 @@ function equals$8(existing, incoming) {
|
|
|
2876
3101
|
return false;
|
|
2877
3102
|
}
|
|
2878
3103
|
}
|
|
3104
|
+
const existing_productName = existing.productName;
|
|
3105
|
+
const incoming_productName = incoming.productName;
|
|
3106
|
+
// if at least one of these optionals is defined
|
|
3107
|
+
if (existing_productName !== undefined || incoming_productName !== undefined) {
|
|
3108
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3109
|
+
// not equal
|
|
3110
|
+
if (existing_productName === undefined || incoming_productName === undefined) {
|
|
3111
|
+
return false;
|
|
3112
|
+
}
|
|
3113
|
+
if (!(existing_productName === incoming_productName)) {
|
|
3114
|
+
return false;
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
const existing_productPrice = existing.productPrice;
|
|
3118
|
+
const incoming_productPrice = incoming.productPrice;
|
|
3119
|
+
// if at least one of these optionals is defined
|
|
3120
|
+
if (existing_productPrice !== undefined || incoming_productPrice !== undefined) {
|
|
3121
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3122
|
+
// not equal
|
|
3123
|
+
if (existing_productPrice === undefined || incoming_productPrice === undefined) {
|
|
3124
|
+
return false;
|
|
3125
|
+
}
|
|
3126
|
+
if (!(existing_productPrice === incoming_productPrice)) {
|
|
3127
|
+
return false;
|
|
3128
|
+
}
|
|
3129
|
+
}
|
|
2879
3130
|
return true;
|
|
2880
3131
|
}
|
|
2881
3132
|
|
|
2882
|
-
const VERSION$
|
|
2883
|
-
function validate$
|
|
3133
|
+
const VERSION$8 = "dc18ee4b99b0510d2c89ddf9261ea1e7";
|
|
3134
|
+
function validate$c(obj, path = 'ProductRequestOutputRepresentation') {
|
|
2884
3135
|
const v_error = (() => {
|
|
2885
3136
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2886
3137
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -2894,7 +3145,7 @@ function validate$b(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
2894
3145
|
for (let i = 0; i < obj_productDetails.length; i++) {
|
|
2895
3146
|
const obj_productDetails_item = obj_productDetails[i];
|
|
2896
3147
|
const path_productDetails_item = path_productDetails + '[' + i + ']';
|
|
2897
|
-
const referencepath_productDetails_itemValidationError = validate$
|
|
3148
|
+
const referencepath_productDetails_itemValidationError = validate$d(obj_productDetails_item, path_productDetails_item);
|
|
2898
3149
|
if (referencepath_productDetails_itemValidationError !== null) {
|
|
2899
3150
|
let message = 'Object doesn\'t match ProductDetailsOutputRepresentation (at "' + path_productDetails_item + '")\n';
|
|
2900
3151
|
message += referencepath_productDetails_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -3073,11 +3324,11 @@ function validate$b(obj, path = 'ProductRequestOutputRepresentation') {
|
|
|
3073
3324
|
})();
|
|
3074
3325
|
return v_error === undefined ? null : v_error;
|
|
3075
3326
|
}
|
|
3076
|
-
const select$
|
|
3077
|
-
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$
|
|
3327
|
+
const select$f = function ProductRequestOutputRepresentationSelect() {
|
|
3328
|
+
const { selections: ProductDetailsOutputRepresentation__selections, opaque: ProductDetailsOutputRepresentation__opaque, } = select$g();
|
|
3078
3329
|
return {
|
|
3079
3330
|
kind: 'Fragment',
|
|
3080
|
-
version: VERSION$
|
|
3331
|
+
version: VERSION$8,
|
|
3081
3332
|
private: [],
|
|
3082
3333
|
selections: [
|
|
3083
3334
|
{
|
|
@@ -3120,7 +3371,7 @@ const select$d = function ProductRequestOutputRepresentationSelect() {
|
|
|
3120
3371
|
]
|
|
3121
3372
|
};
|
|
3122
3373
|
};
|
|
3123
|
-
function equals$
|
|
3374
|
+
function equals$8(existing, incoming) {
|
|
3124
3375
|
const existing_productDetails = existing.productDetails;
|
|
3125
3376
|
const incoming_productDetails = incoming.productDetails;
|
|
3126
3377
|
// if at least one of these optionals is defined
|
|
@@ -3131,7 +3382,7 @@ function equals$7(existing, incoming) {
|
|
|
3131
3382
|
return false;
|
|
3132
3383
|
}
|
|
3133
3384
|
const equals_productDetails_items = equalsArray(existing_productDetails, incoming_productDetails, (existing_productDetails_item, incoming_productDetails_item) => {
|
|
3134
|
-
if (!(equals$
|
|
3385
|
+
if (!(equals$9(existing_productDetails_item, incoming_productDetails_item))) {
|
|
3135
3386
|
return false;
|
|
3136
3387
|
}
|
|
3137
3388
|
});
|
|
@@ -3220,114 +3471,180 @@ function equals$7(existing, incoming) {
|
|
|
3220
3471
|
return true;
|
|
3221
3472
|
}
|
|
3222
3473
|
|
|
3223
|
-
const VERSION$
|
|
3224
|
-
function validate$
|
|
3474
|
+
const VERSION$7 = "96012ee7981543ddc90b7a4d3e505ffb";
|
|
3475
|
+
function validate$b(obj, path = 'PicklistAttributeTypeOutputRepresentation') {
|
|
3225
3476
|
const v_error = (() => {
|
|
3226
3477
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3227
3478
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
3228
3479
|
}
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3480
|
+
if (obj.displayName !== undefined) {
|
|
3481
|
+
const obj_displayName = obj.displayName;
|
|
3482
|
+
const path_displayName = path + '.displayName';
|
|
3483
|
+
if (typeof obj_displayName !== 'string') {
|
|
3484
|
+
return new TypeError('Expected "string" but received "' + typeof obj_displayName + '" (at "' + path_displayName + '")');
|
|
3485
|
+
}
|
|
3233
3486
|
}
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3487
|
+
if (obj.id !== undefined) {
|
|
3488
|
+
const obj_id = obj.id;
|
|
3489
|
+
const path_id = path + '.id';
|
|
3490
|
+
if (typeof obj_id !== 'string') {
|
|
3491
|
+
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
3492
|
+
}
|
|
3238
3493
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3494
|
+
if (obj.isDefault !== undefined) {
|
|
3495
|
+
const obj_isDefault = obj.isDefault;
|
|
3496
|
+
const path_isDefault = path + '.isDefault';
|
|
3497
|
+
if (typeof obj_isDefault !== 'boolean') {
|
|
3498
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isDefault + '" (at "' + path_isDefault + '")');
|
|
3499
|
+
}
|
|
3243
3500
|
}
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3501
|
+
if (obj.isVisible !== undefined) {
|
|
3502
|
+
const obj_isVisible = obj.isVisible;
|
|
3503
|
+
const path_isVisible = path + '.isVisible';
|
|
3504
|
+
if (typeof obj_isVisible !== 'boolean') {
|
|
3505
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isVisible + '" (at "' + path_isVisible + '")');
|
|
3506
|
+
}
|
|
3248
3507
|
}
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3508
|
+
if (obj.name !== undefined) {
|
|
3509
|
+
const obj_name = obj.name;
|
|
3510
|
+
const path_name = path + '.name';
|
|
3511
|
+
if (typeof obj_name !== 'string') {
|
|
3512
|
+
return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
|
|
3513
|
+
}
|
|
3253
3514
|
}
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3515
|
+
if (obj.sequenceNumber !== undefined) {
|
|
3516
|
+
const obj_sequenceNumber = obj.sequenceNumber;
|
|
3517
|
+
const path_sequenceNumber = path + '.sequenceNumber';
|
|
3518
|
+
if (typeof obj_sequenceNumber !== 'number' || (typeof obj_sequenceNumber === 'number' && Math.floor(obj_sequenceNumber) !== obj_sequenceNumber)) {
|
|
3519
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequenceNumber + '" (at "' + path_sequenceNumber + '")');
|
|
3520
|
+
}
|
|
3258
3521
|
}
|
|
3259
3522
|
})();
|
|
3260
3523
|
return v_error === undefined ? null : v_error;
|
|
3261
3524
|
}
|
|
3262
|
-
const select$
|
|
3525
|
+
const select$e = function PicklistAttributeTypeOutputRepresentationSelect() {
|
|
3263
3526
|
return {
|
|
3264
3527
|
kind: 'Fragment',
|
|
3265
|
-
version: VERSION$
|
|
3528
|
+
version: VERSION$7,
|
|
3266
3529
|
private: [],
|
|
3267
3530
|
selections: [
|
|
3268
3531
|
{
|
|
3269
3532
|
name: 'displayName',
|
|
3270
|
-
kind: 'Scalar'
|
|
3533
|
+
kind: 'Scalar',
|
|
3534
|
+
required: false
|
|
3271
3535
|
},
|
|
3272
3536
|
{
|
|
3273
3537
|
name: 'id',
|
|
3274
|
-
kind: 'Scalar'
|
|
3538
|
+
kind: 'Scalar',
|
|
3539
|
+
required: false
|
|
3275
3540
|
},
|
|
3276
3541
|
{
|
|
3277
3542
|
name: 'isDefault',
|
|
3278
|
-
kind: 'Scalar'
|
|
3543
|
+
kind: 'Scalar',
|
|
3544
|
+
required: false
|
|
3279
3545
|
},
|
|
3280
3546
|
{
|
|
3281
3547
|
name: 'isVisible',
|
|
3282
|
-
kind: 'Scalar'
|
|
3548
|
+
kind: 'Scalar',
|
|
3549
|
+
required: false
|
|
3283
3550
|
},
|
|
3284
3551
|
{
|
|
3285
3552
|
name: 'name',
|
|
3286
|
-
kind: 'Scalar'
|
|
3553
|
+
kind: 'Scalar',
|
|
3554
|
+
required: false
|
|
3287
3555
|
},
|
|
3288
3556
|
{
|
|
3289
3557
|
name: 'sequenceNumber',
|
|
3290
|
-
kind: 'Scalar'
|
|
3558
|
+
kind: 'Scalar',
|
|
3559
|
+
required: false
|
|
3291
3560
|
}
|
|
3292
3561
|
]
|
|
3293
3562
|
};
|
|
3294
3563
|
};
|
|
3295
|
-
function equals$
|
|
3564
|
+
function equals$7(existing, incoming) {
|
|
3296
3565
|
const existing_isDefault = existing.isDefault;
|
|
3297
3566
|
const incoming_isDefault = incoming.isDefault;
|
|
3298
|
-
if
|
|
3299
|
-
|
|
3567
|
+
// if at least one of these optionals is defined
|
|
3568
|
+
if (existing_isDefault !== undefined || incoming_isDefault !== undefined) {
|
|
3569
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3570
|
+
// not equal
|
|
3571
|
+
if (existing_isDefault === undefined || incoming_isDefault === undefined) {
|
|
3572
|
+
return false;
|
|
3573
|
+
}
|
|
3574
|
+
if (!(existing_isDefault === incoming_isDefault)) {
|
|
3575
|
+
return false;
|
|
3576
|
+
}
|
|
3300
3577
|
}
|
|
3301
3578
|
const existing_isVisible = existing.isVisible;
|
|
3302
3579
|
const incoming_isVisible = incoming.isVisible;
|
|
3303
|
-
if
|
|
3304
|
-
|
|
3580
|
+
// if at least one of these optionals is defined
|
|
3581
|
+
if (existing_isVisible !== undefined || incoming_isVisible !== undefined) {
|
|
3582
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3583
|
+
// not equal
|
|
3584
|
+
if (existing_isVisible === undefined || incoming_isVisible === undefined) {
|
|
3585
|
+
return false;
|
|
3586
|
+
}
|
|
3587
|
+
if (!(existing_isVisible === incoming_isVisible)) {
|
|
3588
|
+
return false;
|
|
3589
|
+
}
|
|
3305
3590
|
}
|
|
3306
3591
|
const existing_sequenceNumber = existing.sequenceNumber;
|
|
3307
3592
|
const incoming_sequenceNumber = incoming.sequenceNumber;
|
|
3308
|
-
if
|
|
3309
|
-
|
|
3593
|
+
// if at least one of these optionals is defined
|
|
3594
|
+
if (existing_sequenceNumber !== undefined || incoming_sequenceNumber !== undefined) {
|
|
3595
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3596
|
+
// not equal
|
|
3597
|
+
if (existing_sequenceNumber === undefined || incoming_sequenceNumber === undefined) {
|
|
3598
|
+
return false;
|
|
3599
|
+
}
|
|
3600
|
+
if (!(existing_sequenceNumber === incoming_sequenceNumber)) {
|
|
3601
|
+
return false;
|
|
3602
|
+
}
|
|
3310
3603
|
}
|
|
3311
3604
|
const existing_displayName = existing.displayName;
|
|
3312
3605
|
const incoming_displayName = incoming.displayName;
|
|
3313
|
-
if
|
|
3314
|
-
|
|
3606
|
+
// if at least one of these optionals is defined
|
|
3607
|
+
if (existing_displayName !== undefined || incoming_displayName !== undefined) {
|
|
3608
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3609
|
+
// not equal
|
|
3610
|
+
if (existing_displayName === undefined || incoming_displayName === undefined) {
|
|
3611
|
+
return false;
|
|
3612
|
+
}
|
|
3613
|
+
if (!(existing_displayName === incoming_displayName)) {
|
|
3614
|
+
return false;
|
|
3615
|
+
}
|
|
3315
3616
|
}
|
|
3316
3617
|
const existing_id = existing.id;
|
|
3317
3618
|
const incoming_id = incoming.id;
|
|
3318
|
-
if
|
|
3319
|
-
|
|
3619
|
+
// if at least one of these optionals is defined
|
|
3620
|
+
if (existing_id !== undefined || incoming_id !== undefined) {
|
|
3621
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3622
|
+
// not equal
|
|
3623
|
+
if (existing_id === undefined || incoming_id === undefined) {
|
|
3624
|
+
return false;
|
|
3625
|
+
}
|
|
3626
|
+
if (!(existing_id === incoming_id)) {
|
|
3627
|
+
return false;
|
|
3628
|
+
}
|
|
3320
3629
|
}
|
|
3321
3630
|
const existing_name = existing.name;
|
|
3322
3631
|
const incoming_name = incoming.name;
|
|
3323
|
-
if
|
|
3324
|
-
|
|
3632
|
+
// if at least one of these optionals is defined
|
|
3633
|
+
if (existing_name !== undefined || incoming_name !== undefined) {
|
|
3634
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
3635
|
+
// not equal
|
|
3636
|
+
if (existing_name === undefined || incoming_name === undefined) {
|
|
3637
|
+
return false;
|
|
3638
|
+
}
|
|
3639
|
+
if (!(existing_name === incoming_name)) {
|
|
3640
|
+
return false;
|
|
3641
|
+
}
|
|
3325
3642
|
}
|
|
3326
3643
|
return true;
|
|
3327
3644
|
}
|
|
3328
3645
|
|
|
3329
|
-
const VERSION$
|
|
3330
|
-
function validate$
|
|
3646
|
+
const VERSION$6 = "564fd7f64d997ab6ecc936f5787a27f9";
|
|
3647
|
+
function validate$a(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
3331
3648
|
const v_error = (() => {
|
|
3332
3649
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
3333
3650
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -3528,10 +3845,12 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3528
3845
|
return new TypeError(message);
|
|
3529
3846
|
}
|
|
3530
3847
|
}
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3848
|
+
if (obj.isEditable !== undefined) {
|
|
3849
|
+
const obj_isEditable = obj.isEditable;
|
|
3850
|
+
const path_isEditable = path + '.isEditable';
|
|
3851
|
+
if (typeof obj_isEditable !== 'boolean') {
|
|
3852
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isEditable + '" (at "' + path_isEditable + '")');
|
|
3853
|
+
}
|
|
3535
3854
|
}
|
|
3536
3855
|
if (obj.isHidden !== undefined) {
|
|
3537
3856
|
const obj_isHidden = obj.isHidden;
|
|
@@ -3589,10 +3908,12 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3589
3908
|
return new TypeError(message);
|
|
3590
3909
|
}
|
|
3591
3910
|
}
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3911
|
+
if (obj.isMappedAnchorField !== undefined) {
|
|
3912
|
+
const obj_isMappedAnchorField = obj.isMappedAnchorField;
|
|
3913
|
+
const path_isMappedAnchorField = path + '.isMappedAnchorField';
|
|
3914
|
+
if (typeof obj_isMappedAnchorField !== 'boolean') {
|
|
3915
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isMappedAnchorField + '" (at "' + path_isMappedAnchorField + '")');
|
|
3916
|
+
}
|
|
3596
3917
|
}
|
|
3597
3918
|
if (obj.isReadOnly !== undefined) {
|
|
3598
3919
|
const obj_isReadOnly = obj.isReadOnly;
|
|
@@ -3706,40 +4027,42 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3706
4027
|
return new TypeError(message);
|
|
3707
4028
|
}
|
|
3708
4029
|
}
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
const
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
4030
|
+
if (obj.picklistOptions !== undefined) {
|
|
4031
|
+
const obj_picklistOptions = obj.picklistOptions;
|
|
4032
|
+
const path_picklistOptions = path + '.picklistOptions';
|
|
4033
|
+
if (!ArrayIsArray(obj_picklistOptions)) {
|
|
4034
|
+
return new TypeError('Expected "array" but received "' + typeof obj_picklistOptions + '" (at "' + path_picklistOptions + '")');
|
|
4035
|
+
}
|
|
4036
|
+
for (let i = 0; i < obj_picklistOptions.length; i++) {
|
|
4037
|
+
const obj_picklistOptions_item = obj_picklistOptions[i];
|
|
4038
|
+
const path_picklistOptions_item = path_picklistOptions + '[' + i + ']';
|
|
4039
|
+
let obj_picklistOptions_item_union0 = null;
|
|
4040
|
+
const obj_picklistOptions_item_union0_error = (() => {
|
|
4041
|
+
const referencepath_picklistOptions_itemValidationError = validate$b(obj_picklistOptions_item, path_picklistOptions_item);
|
|
4042
|
+
if (referencepath_picklistOptions_itemValidationError !== null) {
|
|
4043
|
+
let message = 'Object doesn\'t match PicklistAttributeTypeOutputRepresentation (at "' + path_picklistOptions_item + '")\n';
|
|
4044
|
+
message += referencepath_picklistOptions_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
4045
|
+
return new TypeError(message);
|
|
4046
|
+
}
|
|
4047
|
+
})();
|
|
4048
|
+
if (obj_picklistOptions_item_union0_error != null) {
|
|
4049
|
+
obj_picklistOptions_item_union0 = obj_picklistOptions_item_union0_error.message;
|
|
3724
4050
|
}
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
if (
|
|
3732
|
-
|
|
4051
|
+
let obj_picklistOptions_item_union1 = null;
|
|
4052
|
+
const obj_picklistOptions_item_union1_error = (() => {
|
|
4053
|
+
if (obj_picklistOptions_item !== null) {
|
|
4054
|
+
return new TypeError('Expected "null" but received "' + typeof obj_picklistOptions_item + '" (at "' + path_picklistOptions_item + '")');
|
|
4055
|
+
}
|
|
4056
|
+
})();
|
|
4057
|
+
if (obj_picklistOptions_item_union1_error != null) {
|
|
4058
|
+
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
4059
|
+
}
|
|
4060
|
+
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
4061
|
+
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
4062
|
+
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
4063
|
+
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
4064
|
+
return new TypeError(message);
|
|
3733
4065
|
}
|
|
3734
|
-
})();
|
|
3735
|
-
if (obj_picklistOptions_item_union1_error != null) {
|
|
3736
|
-
obj_picklistOptions_item_union1 = obj_picklistOptions_item_union1_error.message;
|
|
3737
|
-
}
|
|
3738
|
-
if (obj_picklistOptions_item_union0 && obj_picklistOptions_item_union1) {
|
|
3739
|
-
let message = 'Object doesn\'t match union (at "' + path_picklistOptions_item + '")';
|
|
3740
|
-
message += '\n' + obj_picklistOptions_item_union0.split('\n').map((line) => '\t' + line).join('\n');
|
|
3741
|
-
message += '\n' + obj_picklistOptions_item_union1.split('\n').map((line) => '\t' + line).join('\n');
|
|
3742
|
-
return new TypeError(message);
|
|
3743
4066
|
}
|
|
3744
4067
|
}
|
|
3745
4068
|
if (obj.sequence !== undefined) {
|
|
@@ -3773,11 +4096,11 @@ function validate$9(obj, path = 'CatalogItemAttributeOutputRepresentation') {
|
|
|
3773
4096
|
})();
|
|
3774
4097
|
return v_error === undefined ? null : v_error;
|
|
3775
4098
|
}
|
|
3776
|
-
const select$
|
|
3777
|
-
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$
|
|
4099
|
+
const select$d = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
4100
|
+
const { selections: PicklistAttributeTypeOutputRepresentation__selections, opaque: PicklistAttributeTypeOutputRepresentation__opaque, } = select$e();
|
|
3778
4101
|
return {
|
|
3779
4102
|
kind: 'Fragment',
|
|
3780
|
-
version: VERSION$
|
|
4103
|
+
version: VERSION$6,
|
|
3781
4104
|
private: [],
|
|
3782
4105
|
selections: [
|
|
3783
4106
|
{
|
|
@@ -3817,7 +4140,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3817
4140
|
},
|
|
3818
4141
|
{
|
|
3819
4142
|
name: 'isEditable',
|
|
3820
|
-
kind: 'Scalar'
|
|
4143
|
+
kind: 'Scalar',
|
|
4144
|
+
required: false
|
|
3821
4145
|
},
|
|
3822
4146
|
{
|
|
3823
4147
|
name: 'isHidden',
|
|
@@ -3831,7 +4155,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3831
4155
|
},
|
|
3832
4156
|
{
|
|
3833
4157
|
name: 'isMappedAnchorField',
|
|
3834
|
-
kind: 'Scalar'
|
|
4158
|
+
kind: 'Scalar',
|
|
4159
|
+
required: false
|
|
3835
4160
|
},
|
|
3836
4161
|
{
|
|
3837
4162
|
name: 'isReadOnly',
|
|
@@ -3858,7 +4183,8 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3858
4183
|
kind: 'Object',
|
|
3859
4184
|
nullable: true,
|
|
3860
4185
|
plural: true,
|
|
3861
|
-
selections: PicklistAttributeTypeOutputRepresentation__selections
|
|
4186
|
+
selections: PicklistAttributeTypeOutputRepresentation__selections,
|
|
4187
|
+
required: false
|
|
3862
4188
|
},
|
|
3863
4189
|
{
|
|
3864
4190
|
name: 'sequence',
|
|
@@ -3868,16 +4194,32 @@ const select$b = function CatalogItemAttributeOutputRepresentationSelect() {
|
|
|
3868
4194
|
]
|
|
3869
4195
|
};
|
|
3870
4196
|
};
|
|
3871
|
-
function equals$
|
|
4197
|
+
function equals$6(existing, incoming) {
|
|
3872
4198
|
const existing_isEditable = existing.isEditable;
|
|
3873
4199
|
const incoming_isEditable = incoming.isEditable;
|
|
3874
|
-
if
|
|
3875
|
-
|
|
4200
|
+
// if at least one of these optionals is defined
|
|
4201
|
+
if (existing_isEditable !== undefined || incoming_isEditable !== undefined) {
|
|
4202
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4203
|
+
// not equal
|
|
4204
|
+
if (existing_isEditable === undefined || incoming_isEditable === undefined) {
|
|
4205
|
+
return false;
|
|
4206
|
+
}
|
|
4207
|
+
if (!(existing_isEditable === incoming_isEditable)) {
|
|
4208
|
+
return false;
|
|
4209
|
+
}
|
|
3876
4210
|
}
|
|
3877
4211
|
const existing_isMappedAnchorField = existing.isMappedAnchorField;
|
|
3878
4212
|
const incoming_isMappedAnchorField = incoming.isMappedAnchorField;
|
|
3879
|
-
if
|
|
3880
|
-
|
|
4213
|
+
// if at least one of these optionals is defined
|
|
4214
|
+
if (existing_isMappedAnchorField !== undefined || incoming_isMappedAnchorField !== undefined) {
|
|
4215
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4216
|
+
// not equal
|
|
4217
|
+
if (existing_isMappedAnchorField === undefined || incoming_isMappedAnchorField === undefined) {
|
|
4218
|
+
return false;
|
|
4219
|
+
}
|
|
4220
|
+
if (!(existing_isMappedAnchorField === incoming_isMappedAnchorField)) {
|
|
4221
|
+
return false;
|
|
4222
|
+
}
|
|
3881
4223
|
}
|
|
3882
4224
|
const existing_apiName = existing.apiName;
|
|
3883
4225
|
const incoming_apiName = incoming.apiName;
|
|
@@ -4050,16 +4392,24 @@ function equals$5(existing, incoming) {
|
|
|
4050
4392
|
}
|
|
4051
4393
|
const existing_picklistOptions = existing.picklistOptions;
|
|
4052
4394
|
const incoming_picklistOptions = incoming.picklistOptions;
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4395
|
+
// if at least one of these optionals is defined
|
|
4396
|
+
if (existing_picklistOptions !== undefined || incoming_picklistOptions !== undefined) {
|
|
4397
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4398
|
+
// not equal
|
|
4399
|
+
if (existing_picklistOptions === undefined || incoming_picklistOptions === undefined) {
|
|
4400
|
+
return false;
|
|
4401
|
+
}
|
|
4402
|
+
const equals_picklistOptions_items = equalsArray(existing_picklistOptions, incoming_picklistOptions, (existing_picklistOptions_item, incoming_picklistOptions_item) => {
|
|
4403
|
+
if (!(existing_picklistOptions_item === incoming_picklistOptions_item
|
|
4404
|
+
|| (existing_picklistOptions_item != null &&
|
|
4405
|
+
incoming_picklistOptions_item != null &&
|
|
4406
|
+
equals$7(existing_picklistOptions_item, incoming_picklistOptions_item)))) {
|
|
4407
|
+
return false;
|
|
4408
|
+
}
|
|
4409
|
+
});
|
|
4410
|
+
if (equals_picklistOptions_items === false) {
|
|
4058
4411
|
return false;
|
|
4059
4412
|
}
|
|
4060
|
-
});
|
|
4061
|
-
if (equals_picklistOptions_items === false) {
|
|
4062
|
-
return false;
|
|
4063
4413
|
}
|
|
4064
4414
|
const existing_sequence = existing.sequence;
|
|
4065
4415
|
const incoming_sequence = incoming.sequence;
|
|
@@ -4077,8 +4427,8 @@ function equals$5(existing, incoming) {
|
|
|
4077
4427
|
return true;
|
|
4078
4428
|
}
|
|
4079
4429
|
|
|
4080
|
-
const VERSION$
|
|
4081
|
-
function validate$
|
|
4430
|
+
const VERSION$5 = "eed5c7a2ef3082b1059e48f5742cd44f";
|
|
4431
|
+
function validate$9(obj, path = 'SectionOutputRepresentation') {
|
|
4082
4432
|
const v_error = (() => {
|
|
4083
4433
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4084
4434
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4094,7 +4444,7 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
4094
4444
|
const path_attributes_item = path_attributes + '[' + i + ']';
|
|
4095
4445
|
let obj_attributes_item_union0 = null;
|
|
4096
4446
|
const obj_attributes_item_union0_error = (() => {
|
|
4097
|
-
const referencepath_attributes_itemValidationError = validate$
|
|
4447
|
+
const referencepath_attributes_itemValidationError = validate$a(obj_attributes_item, path_attributes_item);
|
|
4098
4448
|
if (referencepath_attributes_itemValidationError !== null) {
|
|
4099
4449
|
let message = 'Object doesn\'t match CatalogItemAttributeOutputRepresentation (at "' + path_attributes_item + '")\n';
|
|
4100
4450
|
message += referencepath_attributes_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4205,19 +4555,21 @@ function validate$8(obj, path = 'SectionOutputRepresentation') {
|
|
|
4205
4555
|
return new TypeError(message);
|
|
4206
4556
|
}
|
|
4207
4557
|
}
|
|
4208
|
-
|
|
4209
|
-
|
|
4210
|
-
|
|
4211
|
-
|
|
4558
|
+
if (obj.sequence !== undefined) {
|
|
4559
|
+
const obj_sequence = obj.sequence;
|
|
4560
|
+
const path_sequence = path + '.sequence';
|
|
4561
|
+
if (typeof obj_sequence !== 'number' || (typeof obj_sequence === 'number' && Math.floor(obj_sequence) !== obj_sequence)) {
|
|
4562
|
+
return new TypeError('Expected "integer" but received "' + typeof obj_sequence + '" (at "' + path_sequence + '")');
|
|
4563
|
+
}
|
|
4212
4564
|
}
|
|
4213
4565
|
})();
|
|
4214
4566
|
return v_error === undefined ? null : v_error;
|
|
4215
4567
|
}
|
|
4216
|
-
const select$
|
|
4217
|
-
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$
|
|
4568
|
+
const select$c = function SectionOutputRepresentationSelect() {
|
|
4569
|
+
const { selections: CatalogItemAttributeOutputRepresentation__selections, opaque: CatalogItemAttributeOutputRepresentation__opaque, } = select$d();
|
|
4218
4570
|
return {
|
|
4219
4571
|
kind: 'Fragment',
|
|
4220
|
-
version: VERSION$
|
|
4572
|
+
version: VERSION$5,
|
|
4221
4573
|
private: [],
|
|
4222
4574
|
selections: [
|
|
4223
4575
|
{
|
|
@@ -4245,16 +4597,25 @@ const select$a = function SectionOutputRepresentationSelect() {
|
|
|
4245
4597
|
},
|
|
4246
4598
|
{
|
|
4247
4599
|
name: 'sequence',
|
|
4248
|
-
kind: 'Scalar'
|
|
4600
|
+
kind: 'Scalar',
|
|
4601
|
+
required: false
|
|
4249
4602
|
}
|
|
4250
4603
|
]
|
|
4251
4604
|
};
|
|
4252
4605
|
};
|
|
4253
|
-
function equals$
|
|
4606
|
+
function equals$5(existing, incoming) {
|
|
4254
4607
|
const existing_sequence = existing.sequence;
|
|
4255
4608
|
const incoming_sequence = incoming.sequence;
|
|
4256
|
-
if
|
|
4257
|
-
|
|
4609
|
+
// if at least one of these optionals is defined
|
|
4610
|
+
if (existing_sequence !== undefined || incoming_sequence !== undefined) {
|
|
4611
|
+
// if one of these is not defined we know the other is defined and therefore
|
|
4612
|
+
// not equal
|
|
4613
|
+
if (existing_sequence === undefined || incoming_sequence === undefined) {
|
|
4614
|
+
return false;
|
|
4615
|
+
}
|
|
4616
|
+
if (!(existing_sequence === incoming_sequence)) {
|
|
4617
|
+
return false;
|
|
4618
|
+
}
|
|
4258
4619
|
}
|
|
4259
4620
|
const existing_attributes = existing.attributes;
|
|
4260
4621
|
const incoming_attributes = incoming.attributes;
|
|
@@ -4269,7 +4630,7 @@ function equals$4(existing, incoming) {
|
|
|
4269
4630
|
if (!(existing_attributes_item === incoming_attributes_item
|
|
4270
4631
|
|| (existing_attributes_item != null &&
|
|
4271
4632
|
incoming_attributes_item != null &&
|
|
4272
|
-
equals$
|
|
4633
|
+
equals$6(existing_attributes_item, incoming_attributes_item)))) {
|
|
4273
4634
|
return false;
|
|
4274
4635
|
}
|
|
4275
4636
|
});
|
|
@@ -4320,8 +4681,8 @@ function equals$4(existing, incoming) {
|
|
|
4320
4681
|
}
|
|
4321
4682
|
|
|
4322
4683
|
const TTL$3 = 6000;
|
|
4323
|
-
const VERSION$
|
|
4324
|
-
function validate$
|
|
4684
|
+
const VERSION$4 = "9cce3c8a5131820b99e02e05c1d95d43";
|
|
4685
|
+
function validate$8(obj, path = 'CatalogItemOutputRepresentation') {
|
|
4325
4686
|
const v_error = (() => {
|
|
4326
4687
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4327
4688
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4331,7 +4692,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4331
4692
|
const path_agentAction = path + '.agentAction';
|
|
4332
4693
|
let obj_agentAction_union0 = null;
|
|
4333
4694
|
const obj_agentAction_union0_error = (() => {
|
|
4334
|
-
const referencepath_agentActionValidationError = validate$
|
|
4695
|
+
const referencepath_agentActionValidationError = validate$k(obj_agentAction, path_agentAction);
|
|
4335
4696
|
if (referencepath_agentActionValidationError !== null) {
|
|
4336
4697
|
let message = 'Object doesn\'t match AgentActionOutputRepresentation (at "' + path_agentAction + '")\n';
|
|
4337
4698
|
message += referencepath_agentActionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4368,7 +4729,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4368
4729
|
const path_associatedArticles_item = path_associatedArticles + '[' + i + ']';
|
|
4369
4730
|
let obj_associatedArticles_item_union0 = null;
|
|
4370
4731
|
const obj_associatedArticles_item_union0_error = (() => {
|
|
4371
|
-
const referencepath_associatedArticles_itemValidationError = validate$
|
|
4732
|
+
const referencepath_associatedArticles_itemValidationError = validate$j(obj_associatedArticles_item, path_associatedArticles_item);
|
|
4372
4733
|
if (referencepath_associatedArticles_itemValidationError !== null) {
|
|
4373
4734
|
let message = 'Object doesn\'t match AssociatedArticleOutputRepresentation (at "' + path_associatedArticles_item + '")\n';
|
|
4374
4735
|
message += referencepath_associatedArticles_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4516,7 +4877,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4516
4877
|
const path_eligibilityRules_item = path_eligibilityRules + '[' + i + ']';
|
|
4517
4878
|
let obj_eligibilityRules_item_union0 = null;
|
|
4518
4879
|
const obj_eligibilityRules_item_union0_error = (() => {
|
|
4519
|
-
const referencepath_eligibilityRules_itemValidationError = validate$
|
|
4880
|
+
const referencepath_eligibilityRules_itemValidationError = validate$i(obj_eligibilityRules_item, path_eligibilityRules_item);
|
|
4520
4881
|
if (referencepath_eligibilityRules_itemValidationError !== null) {
|
|
4521
4882
|
let message = 'Object doesn\'t match EligibilityRuleOutputRepresentation (at "' + path_eligibilityRules_item + '")\n';
|
|
4522
4883
|
message += referencepath_eligibilityRules_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4548,7 +4909,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4548
4909
|
const path_fulfillmentFlow = path + '.fulfillmentFlow';
|
|
4549
4910
|
let obj_fulfillmentFlow_union0 = null;
|
|
4550
4911
|
const obj_fulfillmentFlow_union0_error = (() => {
|
|
4551
|
-
const referencepath_fulfillmentFlowValidationError = validate$
|
|
4912
|
+
const referencepath_fulfillmentFlowValidationError = validate$h(obj_fulfillmentFlow, path_fulfillmentFlow);
|
|
4552
4913
|
if (referencepath_fulfillmentFlowValidationError !== null) {
|
|
4553
4914
|
let message = 'Object doesn\'t match FulfillmentFlowOutputRepresentation (at "' + path_fulfillmentFlow + '")\n';
|
|
4554
4915
|
message += referencepath_fulfillmentFlowValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4579,7 +4940,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4579
4940
|
const path_intakeForm = path + '.intakeForm';
|
|
4580
4941
|
let obj_intakeForm_union0 = null;
|
|
4581
4942
|
const obj_intakeForm_union0_error = (() => {
|
|
4582
|
-
const referencepath_intakeFormValidationError = validate$
|
|
4943
|
+
const referencepath_intakeFormValidationError = validate$g(obj_intakeForm, path_intakeForm);
|
|
4583
4944
|
if (referencepath_intakeFormValidationError !== null) {
|
|
4584
4945
|
let message = 'Object doesn\'t match IntakeFormOutputRepresentation (at "' + path_intakeForm + '")\n';
|
|
4585
4946
|
message += referencepath_intakeFormValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4616,7 +4977,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4616
4977
|
const path_integrations_item = path_integrations + '[' + i + ']';
|
|
4617
4978
|
let obj_integrations_item_union0 = null;
|
|
4618
4979
|
const obj_integrations_item_union0_error = (() => {
|
|
4619
|
-
const referencepath_integrations_itemValidationError = validate$
|
|
4980
|
+
const referencepath_integrations_itemValidationError = validate$f(obj_integrations_item, path_integrations_item);
|
|
4620
4981
|
if (referencepath_integrations_itemValidationError !== null) {
|
|
4621
4982
|
let message = 'Object doesn\'t match IntegrationDefinitionOutputPresentation (at "' + path_integrations_item + '")\n';
|
|
4622
4983
|
message += referencepath_integrations_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4710,7 +5071,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4710
5071
|
const path_preProcessors_item = path_preProcessors + '[' + i + ']';
|
|
4711
5072
|
let obj_preProcessors_item_union0 = null;
|
|
4712
5073
|
const obj_preProcessors_item_union0_error = (() => {
|
|
4713
|
-
const referencepath_preProcessors_itemValidationError = validate$
|
|
5074
|
+
const referencepath_preProcessors_itemValidationError = validate$e(obj_preProcessors_item, path_preProcessors_item);
|
|
4714
5075
|
if (referencepath_preProcessors_itemValidationError !== null) {
|
|
4715
5076
|
let message = 'Object doesn\'t match PreprocessorOutputRepresentation (at "' + path_preProcessors_item + '")\n';
|
|
4716
5077
|
message += referencepath_preProcessors_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4776,7 +5137,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4776
5137
|
const path_productRequests_item = path_productRequests + '[' + i + ']';
|
|
4777
5138
|
let obj_productRequests_item_union0 = null;
|
|
4778
5139
|
const obj_productRequests_item_union0_error = (() => {
|
|
4779
|
-
const referencepath_productRequests_itemValidationError = validate$
|
|
5140
|
+
const referencepath_productRequests_itemValidationError = validate$c(obj_productRequests_item, path_productRequests_item);
|
|
4780
5141
|
if (referencepath_productRequests_itemValidationError !== null) {
|
|
4781
5142
|
let message = 'Object doesn\'t match ProductRequestOutputRepresentation (at "' + path_productRequests_item + '")\n';
|
|
4782
5143
|
message += referencepath_productRequests_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4808,7 +5169,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4808
5169
|
const path_section = path + '.section';
|
|
4809
5170
|
let obj_section_union0 = null;
|
|
4810
5171
|
const obj_section_union0_error = (() => {
|
|
4811
|
-
const referencepath_sectionValidationError = validate$
|
|
5172
|
+
const referencepath_sectionValidationError = validate$9(obj_section, path_section);
|
|
4812
5173
|
if (referencepath_sectionValidationError !== null) {
|
|
4813
5174
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_section + '")\n';
|
|
4814
5175
|
message += referencepath_sectionValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4845,7 +5206,7 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4845
5206
|
const path_sections_item = path_sections + '[' + i + ']';
|
|
4846
5207
|
let obj_sections_item_union0 = null;
|
|
4847
5208
|
const obj_sections_item_union0_error = (() => {
|
|
4848
|
-
const referencepath_sections_itemValidationError = validate$
|
|
5209
|
+
const referencepath_sections_itemValidationError = validate$9(obj_sections_item, path_sections_item);
|
|
4849
5210
|
if (referencepath_sections_itemValidationError !== null) {
|
|
4850
5211
|
let message = 'Object doesn\'t match SectionOutputRepresentation (at "' + path_sections_item + '")\n';
|
|
4851
5212
|
message += referencepath_sections_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -4931,32 +5292,32 @@ function validate$7(obj, path = 'CatalogItemOutputRepresentation') {
|
|
|
4931
5292
|
})();
|
|
4932
5293
|
return v_error === undefined ? null : v_error;
|
|
4933
5294
|
}
|
|
4934
|
-
const RepresentationType$
|
|
4935
|
-
function keyBuilder$
|
|
4936
|
-
return keyPrefix + '::' + RepresentationType$
|
|
5295
|
+
const RepresentationType$4 = 'CatalogItemOutputRepresentation';
|
|
5296
|
+
function keyBuilder$8(luvio, config) {
|
|
5297
|
+
return keyPrefix + '::' + RepresentationType$4 + ':' + (config.catalogItemId === null ? '' : config.catalogItemId);
|
|
4937
5298
|
}
|
|
4938
5299
|
function keyBuilderFromType$2(luvio, object) {
|
|
4939
5300
|
const keyParams = {
|
|
4940
5301
|
catalogItemId: object.catalogItemId
|
|
4941
5302
|
};
|
|
4942
|
-
return keyBuilder$
|
|
5303
|
+
return keyBuilder$8(luvio, keyParams);
|
|
4943
5304
|
}
|
|
4944
|
-
function normalize$
|
|
5305
|
+
function normalize$4(input, existing, path, luvio, store, timestamp) {
|
|
4945
5306
|
return input;
|
|
4946
5307
|
}
|
|
4947
|
-
const select$
|
|
4948
|
-
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$
|
|
4949
|
-
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$
|
|
4950
|
-
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$
|
|
4951
|
-
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$
|
|
4952
|
-
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$
|
|
4953
|
-
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$
|
|
4954
|
-
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$
|
|
4955
|
-
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$
|
|
4956
|
-
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$
|
|
5308
|
+
const select$b = function CatalogItemOutputRepresentationSelect() {
|
|
5309
|
+
const { selections: AgentActionOutputRepresentation__selections, opaque: AgentActionOutputRepresentation__opaque, } = select$n();
|
|
5310
|
+
const { selections: AssociatedArticleOutputRepresentation__selections, opaque: AssociatedArticleOutputRepresentation__opaque, } = select$m();
|
|
5311
|
+
const { selections: EligibilityRuleOutputRepresentation__selections, opaque: EligibilityRuleOutputRepresentation__opaque, } = select$l();
|
|
5312
|
+
const { selections: FulfillmentFlowOutputRepresentation__selections, opaque: FulfillmentFlowOutputRepresentation__opaque, } = select$k();
|
|
5313
|
+
const { selections: IntakeFormOutputRepresentation__selections, opaque: IntakeFormOutputRepresentation__opaque, } = select$j();
|
|
5314
|
+
const { selections: IntegrationDefinitionOutputPresentation__selections, opaque: IntegrationDefinitionOutputPresentation__opaque, } = select$i();
|
|
5315
|
+
const { selections: PreprocessorOutputRepresentation__selections, opaque: PreprocessorOutputRepresentation__opaque, } = select$h();
|
|
5316
|
+
const { selections: ProductRequestOutputRepresentation__selections, opaque: ProductRequestOutputRepresentation__opaque, } = select$f();
|
|
5317
|
+
const { selections: SectionOutputRepresentation__selections, opaque: SectionOutputRepresentation__opaque, } = select$c();
|
|
4957
5318
|
return {
|
|
4958
5319
|
kind: 'Fragment',
|
|
4959
|
-
version: VERSION$
|
|
5320
|
+
version: VERSION$4,
|
|
4960
5321
|
private: [],
|
|
4961
5322
|
selections: [
|
|
4962
5323
|
{
|
|
@@ -5082,7 +5443,7 @@ const select$9 = function CatalogItemOutputRepresentationSelect() {
|
|
|
5082
5443
|
]
|
|
5083
5444
|
};
|
|
5084
5445
|
};
|
|
5085
|
-
function equals$
|
|
5446
|
+
function equals$4(existing, incoming) {
|
|
5086
5447
|
const existing_agentAction = existing.agentAction;
|
|
5087
5448
|
const incoming_agentAction = incoming.agentAction;
|
|
5088
5449
|
// if at least one of these optionals is defined
|
|
@@ -5095,7 +5456,7 @@ function equals$3(existing, incoming) {
|
|
|
5095
5456
|
if (!(existing_agentAction === incoming_agentAction
|
|
5096
5457
|
|| (existing_agentAction != null &&
|
|
5097
5458
|
incoming_agentAction != null &&
|
|
5098
|
-
equals$
|
|
5459
|
+
equals$g(existing_agentAction, incoming_agentAction)))) {
|
|
5099
5460
|
return false;
|
|
5100
5461
|
}
|
|
5101
5462
|
}
|
|
@@ -5112,7 +5473,7 @@ function equals$3(existing, incoming) {
|
|
|
5112
5473
|
if (!(existing_associatedArticles_item === incoming_associatedArticles_item
|
|
5113
5474
|
|| (existing_associatedArticles_item != null &&
|
|
5114
5475
|
incoming_associatedArticles_item != null &&
|
|
5115
|
-
equals$
|
|
5476
|
+
equals$f(existing_associatedArticles_item, incoming_associatedArticles_item)))) {
|
|
5116
5477
|
return false;
|
|
5117
5478
|
}
|
|
5118
5479
|
});
|
|
@@ -5177,7 +5538,7 @@ function equals$3(existing, incoming) {
|
|
|
5177
5538
|
if (!(existing_eligibilityRules_item === incoming_eligibilityRules_item
|
|
5178
5539
|
|| (existing_eligibilityRules_item != null &&
|
|
5179
5540
|
incoming_eligibilityRules_item != null &&
|
|
5180
|
-
equals$
|
|
5541
|
+
equals$e(existing_eligibilityRules_item, incoming_eligibilityRules_item)))) {
|
|
5181
5542
|
return false;
|
|
5182
5543
|
}
|
|
5183
5544
|
});
|
|
@@ -5197,7 +5558,7 @@ function equals$3(existing, incoming) {
|
|
|
5197
5558
|
if (!(existing_fulfillmentFlow === incoming_fulfillmentFlow
|
|
5198
5559
|
|| (existing_fulfillmentFlow != null &&
|
|
5199
5560
|
incoming_fulfillmentFlow != null &&
|
|
5200
|
-
equals$
|
|
5561
|
+
equals$d(existing_fulfillmentFlow, incoming_fulfillmentFlow)))) {
|
|
5201
5562
|
return false;
|
|
5202
5563
|
}
|
|
5203
5564
|
}
|
|
@@ -5213,7 +5574,7 @@ function equals$3(existing, incoming) {
|
|
|
5213
5574
|
if (!(existing_intakeForm === incoming_intakeForm
|
|
5214
5575
|
|| (existing_intakeForm != null &&
|
|
5215
5576
|
incoming_intakeForm != null &&
|
|
5216
|
-
equals$
|
|
5577
|
+
equals$c(existing_intakeForm, incoming_intakeForm)))) {
|
|
5217
5578
|
return false;
|
|
5218
5579
|
}
|
|
5219
5580
|
}
|
|
@@ -5230,7 +5591,7 @@ function equals$3(existing, incoming) {
|
|
|
5230
5591
|
if (!(existing_integrations_item === incoming_integrations_item
|
|
5231
5592
|
|| (existing_integrations_item != null &&
|
|
5232
5593
|
incoming_integrations_item != null &&
|
|
5233
|
-
equals$
|
|
5594
|
+
equals$b(existing_integrations_item, incoming_integrations_item)))) {
|
|
5234
5595
|
return false;
|
|
5235
5596
|
}
|
|
5236
5597
|
});
|
|
@@ -5277,7 +5638,7 @@ function equals$3(existing, incoming) {
|
|
|
5277
5638
|
if (!(existing_preProcessors_item === incoming_preProcessors_item
|
|
5278
5639
|
|| (existing_preProcessors_item != null &&
|
|
5279
5640
|
incoming_preProcessors_item != null &&
|
|
5280
|
-
equals$
|
|
5641
|
+
equals$a(existing_preProcessors_item, incoming_preProcessors_item)))) {
|
|
5281
5642
|
return false;
|
|
5282
5643
|
}
|
|
5283
5644
|
});
|
|
@@ -5311,7 +5672,7 @@ function equals$3(existing, incoming) {
|
|
|
5311
5672
|
if (!(existing_productRequests_item === incoming_productRequests_item
|
|
5312
5673
|
|| (existing_productRequests_item != null &&
|
|
5313
5674
|
incoming_productRequests_item != null &&
|
|
5314
|
-
equals$
|
|
5675
|
+
equals$8(existing_productRequests_item, incoming_productRequests_item)))) {
|
|
5315
5676
|
return false;
|
|
5316
5677
|
}
|
|
5317
5678
|
});
|
|
@@ -5331,7 +5692,7 @@ function equals$3(existing, incoming) {
|
|
|
5331
5692
|
if (!(existing_section === incoming_section
|
|
5332
5693
|
|| (existing_section != null &&
|
|
5333
5694
|
incoming_section != null &&
|
|
5334
|
-
equals$
|
|
5695
|
+
equals$5(existing_section, incoming_section)))) {
|
|
5335
5696
|
return false;
|
|
5336
5697
|
}
|
|
5337
5698
|
}
|
|
@@ -5348,7 +5709,7 @@ function equals$3(existing, incoming) {
|
|
|
5348
5709
|
if (!(existing_sections_item === incoming_sections_item
|
|
5349
5710
|
|| (existing_sections_item != null &&
|
|
5350
5711
|
incoming_sections_item != null &&
|
|
5351
|
-
equals$
|
|
5712
|
+
equals$5(existing_sections_item, incoming_sections_item)))) {
|
|
5352
5713
|
return false;
|
|
5353
5714
|
}
|
|
5354
5715
|
});
|
|
@@ -5384,41 +5745,41 @@ function equals$3(existing, incoming) {
|
|
|
5384
5745
|
}
|
|
5385
5746
|
return true;
|
|
5386
5747
|
}
|
|
5387
|
-
const ingest$
|
|
5748
|
+
const ingest$4 = function CatalogItemOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5388
5749
|
if (process.env.NODE_ENV !== 'production') {
|
|
5389
|
-
const validateError = validate$
|
|
5750
|
+
const validateError = validate$8(input);
|
|
5390
5751
|
if (validateError !== null) {
|
|
5391
5752
|
throw validateError;
|
|
5392
5753
|
}
|
|
5393
5754
|
}
|
|
5394
5755
|
const key = keyBuilderFromType$2(luvio, input);
|
|
5395
5756
|
const ttlToUse = TTL$3;
|
|
5396
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5757
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$4, "ecm", VERSION$4, RepresentationType$4, equals$4);
|
|
5397
5758
|
return createLink(key);
|
|
5398
5759
|
};
|
|
5399
|
-
function getTypeCacheKeys$
|
|
5760
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
5400
5761
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5401
5762
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
5402
5763
|
rootKeySet.set(rootKey, {
|
|
5403
5764
|
namespace: keyPrefix,
|
|
5404
|
-
representationName: RepresentationType$
|
|
5765
|
+
representationName: RepresentationType$4,
|
|
5405
5766
|
mergeable: false
|
|
5406
5767
|
});
|
|
5407
5768
|
}
|
|
5408
5769
|
|
|
5409
|
-
function select$
|
|
5410
|
-
return select$
|
|
5770
|
+
function select$a(luvio, params) {
|
|
5771
|
+
return select$b();
|
|
5411
5772
|
}
|
|
5412
|
-
function getResponseCacheKeys$
|
|
5413
|
-
getTypeCacheKeys$
|
|
5773
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
5774
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
5414
5775
|
}
|
|
5415
|
-
function ingestSuccess$
|
|
5776
|
+
function ingestSuccess$6(luvio, resourceParams, response) {
|
|
5416
5777
|
const { body } = response;
|
|
5417
5778
|
const key = keyBuilderFromType$2(luvio, body);
|
|
5418
|
-
luvio.storeIngest(key, ingest$
|
|
5779
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
5419
5780
|
const snapshot = luvio.storeLookup({
|
|
5420
5781
|
recordId: key,
|
|
5421
|
-
node: select$
|
|
5782
|
+
node: select$a(),
|
|
5422
5783
|
variables: {},
|
|
5423
5784
|
});
|
|
5424
5785
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5429,7 +5790,7 @@ function ingestSuccess$5(luvio, resourceParams, response) {
|
|
|
5429
5790
|
deepFreeze(snapshot.data);
|
|
5430
5791
|
return snapshot;
|
|
5431
5792
|
}
|
|
5432
|
-
function createResourceRequest$
|
|
5793
|
+
function createResourceRequest$6(config) {
|
|
5433
5794
|
const headers = {};
|
|
5434
5795
|
return {
|
|
5435
5796
|
baseUri: '/services/data/v64.0',
|
|
@@ -5443,7 +5804,7 @@ function createResourceRequest$5(config) {
|
|
|
5443
5804
|
};
|
|
5444
5805
|
}
|
|
5445
5806
|
|
|
5446
|
-
const adapterName$
|
|
5807
|
+
const adapterName$6 = 'createCatalogItem';
|
|
5447
5808
|
const createCatalogItem_ConfigPropertyMetadata = [
|
|
5448
5809
|
generateParamConfigMetadata('agentAction', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5449
5810
|
generateParamConfigMetadata('associatedArticles', false, 2 /* Body */, 4 /* Unsupported */, true),
|
|
@@ -5463,12 +5824,12 @@ const createCatalogItem_ConfigPropertyMetadata = [
|
|
|
5463
5824
|
generateParamConfigMetadata('targetObject', true, 2 /* Body */, 4 /* Unsupported */),
|
|
5464
5825
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
5465
5826
|
];
|
|
5466
|
-
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5467
|
-
const createResourceParams$
|
|
5468
|
-
function typeCheckConfig$
|
|
5827
|
+
const createCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, createCatalogItem_ConfigPropertyMetadata);
|
|
5828
|
+
const createResourceParams$6 = /*#__PURE__*/ createResourceParams$7(createCatalogItem_ConfigPropertyMetadata);
|
|
5829
|
+
function typeCheckConfig$6(untrustedConfig) {
|
|
5469
5830
|
const config = {};
|
|
5470
5831
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
5471
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
5832
|
+
const referenceAgentActionInputRepresentationValidationError = validate$v(untrustedConfig_agentAction);
|
|
5472
5833
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
5473
5834
|
config.agentAction = untrustedConfig_agentAction;
|
|
5474
5835
|
}
|
|
@@ -5480,7 +5841,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5480
5841
|
const untrustedConfig_associatedArticles_array = [];
|
|
5481
5842
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
5482
5843
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
5483
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
5844
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$u(untrustedConfig_associatedArticles_item);
|
|
5484
5845
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
5485
5846
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
5486
5847
|
}
|
|
@@ -5495,7 +5856,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5495
5856
|
const untrustedConfig_attributes_array = [];
|
|
5496
5857
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
5497
5858
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
5498
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
5859
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$s(untrustedConfig_attributes_item);
|
|
5499
5860
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
5500
5861
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
5501
5862
|
}
|
|
@@ -5510,7 +5871,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5510
5871
|
const untrustedConfig_sections_array = [];
|
|
5511
5872
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
5512
5873
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
5513
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
5874
|
+
const referenceSectionInputRepresentationValidationError = validate$r(untrustedConfig_sections_item);
|
|
5514
5875
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
5515
5876
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
5516
5877
|
}
|
|
@@ -5546,7 +5907,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5546
5907
|
const untrustedConfig_eligibilityRules_array = [];
|
|
5547
5908
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
5548
5909
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
5549
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
5910
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$q(untrustedConfig_eligibilityRules_item);
|
|
5550
5911
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
5551
5912
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
5552
5913
|
}
|
|
@@ -5557,7 +5918,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5557
5918
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
5558
5919
|
}
|
|
5559
5920
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
5560
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
5921
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$p(untrustedConfig_fulfillmentFlow);
|
|
5561
5922
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
5562
5923
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5563
5924
|
}
|
|
@@ -5565,7 +5926,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5565
5926
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
5566
5927
|
}
|
|
5567
5928
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
5568
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
5929
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$o(untrustedConfig_intakeForm);
|
|
5569
5930
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
5570
5931
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
5571
5932
|
}
|
|
@@ -5577,7 +5938,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5577
5938
|
const untrustedConfig_integrations_array = [];
|
|
5578
5939
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
5579
5940
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
5580
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
5941
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$n(untrustedConfig_integrations_item);
|
|
5581
5942
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
5582
5943
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
5583
5944
|
}
|
|
@@ -5606,7 +5967,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5606
5967
|
const untrustedConfig_preProcessors_array = [];
|
|
5607
5968
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
5608
5969
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
5609
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
5970
|
+
const referencePreprocessorInputRepresentationValidationError = validate$m(untrustedConfig_preProcessors_item);
|
|
5610
5971
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
5611
5972
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
5612
5973
|
}
|
|
@@ -5621,7 +5982,7 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5621
5982
|
const untrustedConfig_productRequests_array = [];
|
|
5622
5983
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
5623
5984
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
5624
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
5985
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$l(untrustedConfig_productRequests_item);
|
|
5625
5986
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
5626
5987
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
5627
5988
|
}
|
|
@@ -5647,30 +6008,30 @@ function typeCheckConfig$5(untrustedConfig) {
|
|
|
5647
6008
|
}
|
|
5648
6009
|
return config;
|
|
5649
6010
|
}
|
|
5650
|
-
function validateAdapterConfig$
|
|
6011
|
+
function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
5651
6012
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5652
6013
|
return null;
|
|
5653
6014
|
}
|
|
5654
6015
|
if (process.env.NODE_ENV !== 'production') {
|
|
5655
6016
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5656
6017
|
}
|
|
5657
|
-
const config = typeCheckConfig$
|
|
6018
|
+
const config = typeCheckConfig$6(untrustedConfig);
|
|
5658
6019
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5659
6020
|
return null;
|
|
5660
6021
|
}
|
|
5661
6022
|
return config;
|
|
5662
6023
|
}
|
|
5663
|
-
function buildNetworkSnapshot$
|
|
5664
|
-
const resourceParams = createResourceParams$
|
|
5665
|
-
const request = createResourceRequest$
|
|
6024
|
+
function buildNetworkSnapshot$6(luvio, config, options) {
|
|
6025
|
+
const resourceParams = createResourceParams$6(config);
|
|
6026
|
+
const request = createResourceRequest$6(resourceParams);
|
|
5666
6027
|
return luvio.dispatchResourceRequest(request, options)
|
|
5667
6028
|
.then((response) => {
|
|
5668
6029
|
return luvio.handleSuccessResponse(() => {
|
|
5669
|
-
const snapshot = ingestSuccess$
|
|
6030
|
+
const snapshot = ingestSuccess$6(luvio, resourceParams, response);
|
|
5670
6031
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5671
6032
|
}, () => {
|
|
5672
6033
|
const cache = new StoreKeyMap();
|
|
5673
|
-
getResponseCacheKeys$
|
|
6034
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
5674
6035
|
return cache;
|
|
5675
6036
|
});
|
|
5676
6037
|
}, (response) => {
|
|
@@ -5680,18 +6041,18 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
5680
6041
|
}
|
|
5681
6042
|
const createCatalogItemAdapterFactory = (luvio) => {
|
|
5682
6043
|
return function createCatalogItem(untrustedConfig) {
|
|
5683
|
-
const config = validateAdapterConfig$
|
|
6044
|
+
const config = validateAdapterConfig$6(untrustedConfig, createCatalogItem_ConfigPropertyNames);
|
|
5684
6045
|
// Invalid or incomplete config
|
|
5685
6046
|
if (config === null) {
|
|
5686
6047
|
throw new Error('Invalid config for "createCatalogItem"');
|
|
5687
6048
|
}
|
|
5688
|
-
return buildNetworkSnapshot$
|
|
6049
|
+
return buildNetworkSnapshot$6(luvio, config);
|
|
5689
6050
|
};
|
|
5690
6051
|
};
|
|
5691
6052
|
|
|
5692
6053
|
const TTL$2 = 6000;
|
|
5693
|
-
const VERSION$
|
|
5694
|
-
function validate$
|
|
6054
|
+
const VERSION$3 = "b593e197e57b5cb5b7531e71073daefa";
|
|
6055
|
+
function validate$7(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
5695
6056
|
const v_error = (() => {
|
|
5696
6057
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5697
6058
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5739,23 +6100,23 @@ function validate$6(obj, path = 'OmniIntakeOutputRepresentation') {
|
|
|
5739
6100
|
})();
|
|
5740
6101
|
return v_error === undefined ? null : v_error;
|
|
5741
6102
|
}
|
|
5742
|
-
const RepresentationType$
|
|
5743
|
-
function keyBuilder$
|
|
5744
|
-
return keyPrefix + '::' + RepresentationType$
|
|
6103
|
+
const RepresentationType$3 = 'OmniIntakeOutputRepresentation';
|
|
6104
|
+
function keyBuilder$7(luvio, config) {
|
|
6105
|
+
return keyPrefix + '::' + RepresentationType$3 + ':' + config.id;
|
|
5745
6106
|
}
|
|
5746
6107
|
function keyBuilderFromType$1(luvio, object) {
|
|
5747
6108
|
const keyParams = {
|
|
5748
6109
|
id: object.id
|
|
5749
6110
|
};
|
|
5750
|
-
return keyBuilder$
|
|
6111
|
+
return keyBuilder$7(luvio, keyParams);
|
|
5751
6112
|
}
|
|
5752
|
-
function normalize$
|
|
6113
|
+
function normalize$3(input, existing, path, luvio, store, timestamp) {
|
|
5753
6114
|
return input;
|
|
5754
6115
|
}
|
|
5755
|
-
const select$
|
|
6116
|
+
const select$9 = function OmniIntakeOutputRepresentationSelect() {
|
|
5756
6117
|
return {
|
|
5757
6118
|
kind: 'Fragment',
|
|
5758
|
-
version: VERSION$
|
|
6119
|
+
version: VERSION$3,
|
|
5759
6120
|
private: [],
|
|
5760
6121
|
selections: [
|
|
5761
6122
|
{
|
|
@@ -5793,7 +6154,7 @@ const select$7 = function OmniIntakeOutputRepresentationSelect() {
|
|
|
5793
6154
|
]
|
|
5794
6155
|
};
|
|
5795
6156
|
};
|
|
5796
|
-
function equals$
|
|
6157
|
+
function equals$3(existing, incoming) {
|
|
5797
6158
|
const existing_description = existing.description;
|
|
5798
6159
|
const incoming_description = incoming.description;
|
|
5799
6160
|
if (!(existing_description === incoming_description)) {
|
|
@@ -5836,41 +6197,41 @@ function equals$2(existing, incoming) {
|
|
|
5836
6197
|
}
|
|
5837
6198
|
return true;
|
|
5838
6199
|
}
|
|
5839
|
-
const ingest$
|
|
6200
|
+
const ingest$3 = function OmniIntakeOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5840
6201
|
if (process.env.NODE_ENV !== 'production') {
|
|
5841
|
-
const validateError = validate$
|
|
6202
|
+
const validateError = validate$7(input);
|
|
5842
6203
|
if (validateError !== null) {
|
|
5843
6204
|
throw validateError;
|
|
5844
6205
|
}
|
|
5845
6206
|
}
|
|
5846
6207
|
const key = keyBuilderFromType$1(luvio, input);
|
|
5847
6208
|
const ttlToUse = TTL$2;
|
|
5848
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6209
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$3, "ecm", VERSION$3, RepresentationType$3, equals$3);
|
|
5849
6210
|
return createLink(key);
|
|
5850
6211
|
};
|
|
5851
|
-
function getTypeCacheKeys$
|
|
6212
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
5852
6213
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5853
6214
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
5854
6215
|
rootKeySet.set(rootKey, {
|
|
5855
6216
|
namespace: keyPrefix,
|
|
5856
|
-
representationName: RepresentationType$
|
|
6217
|
+
representationName: RepresentationType$3,
|
|
5857
6218
|
mergeable: false
|
|
5858
6219
|
});
|
|
5859
6220
|
}
|
|
5860
6221
|
|
|
5861
|
-
function select$
|
|
5862
|
-
return select$
|
|
6222
|
+
function select$8(luvio, params) {
|
|
6223
|
+
return select$9();
|
|
5863
6224
|
}
|
|
5864
|
-
function getResponseCacheKeys$
|
|
5865
|
-
getTypeCacheKeys$
|
|
6225
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
6226
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
5866
6227
|
}
|
|
5867
|
-
function ingestSuccess$
|
|
6228
|
+
function ingestSuccess$5(luvio, resourceParams, response) {
|
|
5868
6229
|
const { body } = response;
|
|
5869
6230
|
const key = keyBuilderFromType$1(luvio, body);
|
|
5870
|
-
luvio.storeIngest(key, ingest$
|
|
6231
|
+
luvio.storeIngest(key, ingest$3, body);
|
|
5871
6232
|
const snapshot = luvio.storeLookup({
|
|
5872
6233
|
recordId: key,
|
|
5873
|
-
node: select$
|
|
6234
|
+
node: select$8(),
|
|
5874
6235
|
variables: {},
|
|
5875
6236
|
});
|
|
5876
6237
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -5881,7 +6242,7 @@ function ingestSuccess$4(luvio, resourceParams, response) {
|
|
|
5881
6242
|
deepFreeze(snapshot.data);
|
|
5882
6243
|
return snapshot;
|
|
5883
6244
|
}
|
|
5884
|
-
function createResourceRequest$
|
|
6245
|
+
function createResourceRequest$5(config) {
|
|
5885
6246
|
const headers = {};
|
|
5886
6247
|
return {
|
|
5887
6248
|
baseUri: '/services/data/v64.0',
|
|
@@ -5895,43 +6256,43 @@ function createResourceRequest$4(config) {
|
|
|
5895
6256
|
};
|
|
5896
6257
|
}
|
|
5897
6258
|
|
|
5898
|
-
const adapterName$
|
|
6259
|
+
const adapterName$5 = 'generateOmniScript';
|
|
5899
6260
|
const generateOmniScript_ConfigPropertyMetadata = [
|
|
5900
6261
|
generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
|
|
5901
6262
|
generateParamConfigMetadata('scriptDescription', true, 2 /* Body */, 0 /* String */),
|
|
5902
6263
|
generateParamConfigMetadata('scriptName', true, 2 /* Body */, 0 /* String */),
|
|
5903
6264
|
];
|
|
5904
|
-
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
5905
|
-
const createResourceParams$
|
|
5906
|
-
function typeCheckConfig$
|
|
6265
|
+
const generateOmniScript_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$5, generateOmniScript_ConfigPropertyMetadata);
|
|
6266
|
+
const createResourceParams$5 = /*#__PURE__*/ createResourceParams$7(generateOmniScript_ConfigPropertyMetadata);
|
|
6267
|
+
function typeCheckConfig$5(untrustedConfig) {
|
|
5907
6268
|
const config = {};
|
|
5908
|
-
typeCheckConfig$
|
|
6269
|
+
typeCheckConfig$7(untrustedConfig, config, generateOmniScript_ConfigPropertyMetadata);
|
|
5909
6270
|
return config;
|
|
5910
6271
|
}
|
|
5911
|
-
function validateAdapterConfig$
|
|
6272
|
+
function validateAdapterConfig$5(untrustedConfig, configPropertyNames) {
|
|
5912
6273
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
5913
6274
|
return null;
|
|
5914
6275
|
}
|
|
5915
6276
|
if (process.env.NODE_ENV !== 'production') {
|
|
5916
6277
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
5917
6278
|
}
|
|
5918
|
-
const config = typeCheckConfig$
|
|
6279
|
+
const config = typeCheckConfig$5(untrustedConfig);
|
|
5919
6280
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
5920
6281
|
return null;
|
|
5921
6282
|
}
|
|
5922
6283
|
return config;
|
|
5923
6284
|
}
|
|
5924
|
-
function buildNetworkSnapshot$
|
|
5925
|
-
const resourceParams = createResourceParams$
|
|
5926
|
-
const request = createResourceRequest$
|
|
6285
|
+
function buildNetworkSnapshot$5(luvio, config, options) {
|
|
6286
|
+
const resourceParams = createResourceParams$5(config);
|
|
6287
|
+
const request = createResourceRequest$5(resourceParams);
|
|
5927
6288
|
return luvio.dispatchResourceRequest(request, options)
|
|
5928
6289
|
.then((response) => {
|
|
5929
6290
|
return luvio.handleSuccessResponse(() => {
|
|
5930
|
-
const snapshot = ingestSuccess$
|
|
6291
|
+
const snapshot = ingestSuccess$5(luvio, resourceParams, response);
|
|
5931
6292
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
5932
6293
|
}, () => {
|
|
5933
6294
|
const cache = new StoreKeyMap();
|
|
5934
|
-
getResponseCacheKeys$
|
|
6295
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
5935
6296
|
return cache;
|
|
5936
6297
|
});
|
|
5937
6298
|
}, (response) => {
|
|
@@ -5941,16 +6302,16 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
5941
6302
|
}
|
|
5942
6303
|
const generateOmniScriptAdapterFactory = (luvio) => {
|
|
5943
6304
|
return function generateOmniScript(untrustedConfig) {
|
|
5944
|
-
const config = validateAdapterConfig$
|
|
6305
|
+
const config = validateAdapterConfig$5(untrustedConfig, generateOmniScript_ConfigPropertyNames);
|
|
5945
6306
|
// Invalid or incomplete config
|
|
5946
6307
|
if (config === null) {
|
|
5947
6308
|
throw new Error('Invalid config for "generateOmniScript"');
|
|
5948
6309
|
}
|
|
5949
|
-
return buildNetworkSnapshot$
|
|
6310
|
+
return buildNetworkSnapshot$5(luvio, config);
|
|
5950
6311
|
};
|
|
5951
6312
|
};
|
|
5952
6313
|
|
|
5953
|
-
function validate$
|
|
6314
|
+
function validate$6(obj, path = 'FilterInputRepresentation') {
|
|
5954
6315
|
const v_error = (() => {
|
|
5955
6316
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5956
6317
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5974,7 +6335,7 @@ function validate$5(obj, path = 'FilterInputRepresentation') {
|
|
|
5974
6335
|
return v_error === undefined ? null : v_error;
|
|
5975
6336
|
}
|
|
5976
6337
|
|
|
5977
|
-
function validate$
|
|
6338
|
+
function validate$5(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
5978
6339
|
const v_error = (() => {
|
|
5979
6340
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5980
6341
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5998,8 +6359,8 @@ function validate$4(obj, path = 'ServiceAutomationOutputRecordRepresentation') {
|
|
|
5998
6359
|
}
|
|
5999
6360
|
|
|
6000
6361
|
const TTL$1 = 6000;
|
|
6001
|
-
const VERSION$
|
|
6002
|
-
function validate$
|
|
6362
|
+
const VERSION$2 = "7860ae260a600243129acb4ea01e75be";
|
|
6363
|
+
function validate$4(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
6003
6364
|
const v_error = (() => {
|
|
6004
6365
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6005
6366
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6017,7 +6378,7 @@ function validate$3(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6017
6378
|
for (let i = 0; i < obj_records.length; i++) {
|
|
6018
6379
|
const obj_records_item = obj_records[i];
|
|
6019
6380
|
const path_records_item = path_records + '[' + i + ']';
|
|
6020
|
-
const referencepath_records_itemValidationError = validate$
|
|
6381
|
+
const referencepath_records_itemValidationError = validate$5(obj_records_item, path_records_item);
|
|
6021
6382
|
if (referencepath_records_itemValidationError !== null) {
|
|
6022
6383
|
let message = 'Object doesn\'t match ServiceAutomationOutputRecordRepresentation (at "' + path_records_item + '")\n';
|
|
6023
6384
|
message += referencepath_records_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6027,62 +6388,62 @@ function validate$3(obj, path = 'ServiceAutomationDepOutputRepresentation') {
|
|
|
6027
6388
|
})();
|
|
6028
6389
|
return v_error === undefined ? null : v_error;
|
|
6029
6390
|
}
|
|
6030
|
-
const RepresentationType$
|
|
6031
|
-
function normalize$
|
|
6391
|
+
const RepresentationType$2 = 'ServiceAutomationDepOutputRepresentation';
|
|
6392
|
+
function normalize$2(input, existing, path, luvio, store, timestamp) {
|
|
6032
6393
|
return input;
|
|
6033
6394
|
}
|
|
6034
|
-
const select$
|
|
6395
|
+
const select$7 = function ServiceAutomationDepOutputRepresentationSelect() {
|
|
6035
6396
|
return {
|
|
6036
6397
|
kind: 'Fragment',
|
|
6037
|
-
version: VERSION$
|
|
6398
|
+
version: VERSION$2,
|
|
6038
6399
|
private: [],
|
|
6039
6400
|
opaque: true
|
|
6040
6401
|
};
|
|
6041
6402
|
};
|
|
6042
|
-
function equals$
|
|
6403
|
+
function equals$2(existing, incoming) {
|
|
6043
6404
|
if (JSONStringify(incoming) !== JSONStringify(existing)) {
|
|
6044
6405
|
return false;
|
|
6045
6406
|
}
|
|
6046
6407
|
return true;
|
|
6047
6408
|
}
|
|
6048
|
-
const ingest$
|
|
6409
|
+
const ingest$2 = function ServiceAutomationDepOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6049
6410
|
if (process.env.NODE_ENV !== 'production') {
|
|
6050
|
-
const validateError = validate$
|
|
6411
|
+
const validateError = validate$4(input);
|
|
6051
6412
|
if (validateError !== null) {
|
|
6052
6413
|
throw validateError;
|
|
6053
6414
|
}
|
|
6054
6415
|
}
|
|
6055
6416
|
const key = path.fullPath;
|
|
6056
6417
|
const ttlToUse = TTL$1;
|
|
6057
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6418
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$2, "ecm", VERSION$2, RepresentationType$2, equals$2);
|
|
6058
6419
|
return createLink(key);
|
|
6059
6420
|
};
|
|
6060
|
-
function getTypeCacheKeys$
|
|
6421
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
6061
6422
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6062
6423
|
const rootKey = fullPathFactory();
|
|
6063
6424
|
rootKeySet.set(rootKey, {
|
|
6064
6425
|
namespace: keyPrefix,
|
|
6065
|
-
representationName: RepresentationType$
|
|
6426
|
+
representationName: RepresentationType$2,
|
|
6066
6427
|
mergeable: false
|
|
6067
6428
|
});
|
|
6068
6429
|
}
|
|
6069
6430
|
|
|
6070
|
-
function select$
|
|
6071
|
-
return select$
|
|
6431
|
+
function select$6(luvio, params) {
|
|
6432
|
+
return select$7();
|
|
6072
6433
|
}
|
|
6073
|
-
function keyBuilder$
|
|
6434
|
+
function keyBuilder$6(luvio, params) {
|
|
6074
6435
|
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) + ')';
|
|
6075
6436
|
}
|
|
6076
|
-
function getResponseCacheKeys$
|
|
6077
|
-
getTypeCacheKeys$
|
|
6437
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
6438
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response, () => keyBuilder$6(luvio, resourceParams));
|
|
6078
6439
|
}
|
|
6079
|
-
function ingestSuccess$
|
|
6440
|
+
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
6080
6441
|
const { body } = response;
|
|
6081
|
-
const key = keyBuilder$
|
|
6082
|
-
luvio.storeIngest(key, ingest$
|
|
6442
|
+
const key = keyBuilder$6(luvio, resourceParams);
|
|
6443
|
+
luvio.storeIngest(key, ingest$2, body);
|
|
6083
6444
|
const snapshot = luvio.storeLookup({
|
|
6084
6445
|
recordId: key,
|
|
6085
|
-
node: select$
|
|
6446
|
+
node: select$6(),
|
|
6086
6447
|
variables: {},
|
|
6087
6448
|
}, snapshotRefresh);
|
|
6088
6449
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -6093,19 +6454,19 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6093
6454
|
deepFreeze(snapshot.data);
|
|
6094
6455
|
return snapshot;
|
|
6095
6456
|
}
|
|
6096
|
-
function ingestError$
|
|
6097
|
-
const key = keyBuilder$
|
|
6457
|
+
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
6458
|
+
const key = keyBuilder$6(luvio, params);
|
|
6098
6459
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6099
6460
|
const storeMetadataParams = {
|
|
6100
6461
|
ttl: TTL$1,
|
|
6101
6462
|
namespace: keyPrefix,
|
|
6102
|
-
version: VERSION$
|
|
6103
|
-
representationName: RepresentationType$
|
|
6463
|
+
version: VERSION$2,
|
|
6464
|
+
representationName: RepresentationType$2
|
|
6104
6465
|
};
|
|
6105
6466
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6106
6467
|
return errorSnapshot;
|
|
6107
6468
|
}
|
|
6108
|
-
function createResourceRequest$
|
|
6469
|
+
function createResourceRequest$4(config) {
|
|
6109
6470
|
const headers = {};
|
|
6110
6471
|
return {
|
|
6111
6472
|
baseUri: '/services/data/v64.0',
|
|
@@ -6119,28 +6480,28 @@ function createResourceRequest$3(config) {
|
|
|
6119
6480
|
};
|
|
6120
6481
|
}
|
|
6121
6482
|
|
|
6122
|
-
const adapterName$
|
|
6483
|
+
const adapterName$4 = 'getAllServiceAutomationDep';
|
|
6123
6484
|
const getAllServiceAutomationDep_ConfigPropertyMetadata = [
|
|
6124
6485
|
generateParamConfigMetadata('entityName', true, 2 /* Body */, 0 /* String */),
|
|
6125
6486
|
generateParamConfigMetadata('fields', true, 2 /* Body */, 0 /* String */, true),
|
|
6126
6487
|
generateParamConfigMetadata('filters', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6127
6488
|
generateParamConfigMetadata('limit', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6128
6489
|
];
|
|
6129
|
-
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
6130
|
-
const createResourceParams$
|
|
6131
|
-
function keyBuilder$
|
|
6132
|
-
const resourceParams = createResourceParams$
|
|
6133
|
-
return keyBuilder$
|
|
6490
|
+
const getAllServiceAutomationDep_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$4, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6491
|
+
const createResourceParams$4 = /*#__PURE__*/ createResourceParams$7(getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6492
|
+
function keyBuilder$5(luvio, config) {
|
|
6493
|
+
const resourceParams = createResourceParams$4(config);
|
|
6494
|
+
return keyBuilder$6(luvio, resourceParams);
|
|
6134
6495
|
}
|
|
6135
|
-
function typeCheckConfig$
|
|
6496
|
+
function typeCheckConfig$4(untrustedConfig) {
|
|
6136
6497
|
const config = {};
|
|
6137
|
-
typeCheckConfig$
|
|
6498
|
+
typeCheckConfig$7(untrustedConfig, config, getAllServiceAutomationDep_ConfigPropertyMetadata);
|
|
6138
6499
|
const untrustedConfig_filters = untrustedConfig.filters;
|
|
6139
6500
|
if (ArrayIsArray$1(untrustedConfig_filters)) {
|
|
6140
6501
|
const untrustedConfig_filters_array = [];
|
|
6141
6502
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
6142
6503
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
6143
|
-
const referenceFilterInputRepresentationValidationError = validate$
|
|
6504
|
+
const referenceFilterInputRepresentationValidationError = validate$6(untrustedConfig_filters_item);
|
|
6144
6505
|
if (referenceFilterInputRepresentationValidationError === null) {
|
|
6145
6506
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
6146
6507
|
}
|
|
@@ -6156,6 +6517,147 @@ function typeCheckConfig$3(untrustedConfig) {
|
|
|
6156
6517
|
}
|
|
6157
6518
|
return config;
|
|
6158
6519
|
}
|
|
6520
|
+
function validateAdapterConfig$4(untrustedConfig, configPropertyNames) {
|
|
6521
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
6522
|
+
return null;
|
|
6523
|
+
}
|
|
6524
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6525
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
6526
|
+
}
|
|
6527
|
+
const config = typeCheckConfig$4(untrustedConfig);
|
|
6528
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
6529
|
+
return null;
|
|
6530
|
+
}
|
|
6531
|
+
return config;
|
|
6532
|
+
}
|
|
6533
|
+
function adapterFragment$2(luvio, config) {
|
|
6534
|
+
createResourceParams$4(config);
|
|
6535
|
+
return select$6();
|
|
6536
|
+
}
|
|
6537
|
+
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
6538
|
+
const snapshot = ingestSuccess$4(luvio, resourceParams, response, {
|
|
6539
|
+
config,
|
|
6540
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6541
|
+
});
|
|
6542
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6543
|
+
}
|
|
6544
|
+
function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
6545
|
+
const snapshot = ingestError$2(luvio, resourceParams, response, {
|
|
6546
|
+
config,
|
|
6547
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6548
|
+
});
|
|
6549
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
6550
|
+
}
|
|
6551
|
+
function buildNetworkSnapshot$4(luvio, config, options) {
|
|
6552
|
+
const resourceParams = createResourceParams$4(config);
|
|
6553
|
+
const request = createResourceRequest$4(resourceParams);
|
|
6554
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
6555
|
+
.then((response) => {
|
|
6556
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
6557
|
+
const cache = new StoreKeyMap();
|
|
6558
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
6559
|
+
return cache;
|
|
6560
|
+
});
|
|
6561
|
+
}, (response) => {
|
|
6562
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
6563
|
+
});
|
|
6564
|
+
}
|
|
6565
|
+
function buildNetworkSnapshotCachePolicy$2(context, coercedAdapterRequestContext) {
|
|
6566
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$4, 'get', false);
|
|
6567
|
+
}
|
|
6568
|
+
function buildCachedSnapshotCachePolicy$2(context, storeLookup) {
|
|
6569
|
+
const { luvio, config } = context;
|
|
6570
|
+
const selector = {
|
|
6571
|
+
recordId: keyBuilder$5(luvio, config),
|
|
6572
|
+
node: adapterFragment$2(luvio, config),
|
|
6573
|
+
variables: {},
|
|
6574
|
+
};
|
|
6575
|
+
const cacheSnapshot = storeLookup(selector, {
|
|
6576
|
+
config,
|
|
6577
|
+
resolve: () => buildNetworkSnapshot$4(luvio, config, snapshotRefreshOptions)
|
|
6578
|
+
});
|
|
6579
|
+
return cacheSnapshot;
|
|
6580
|
+
}
|
|
6581
|
+
const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAllServiceAutomationDep(untrustedConfig, requestContext) {
|
|
6582
|
+
const config = validateAdapterConfig$4(untrustedConfig, getAllServiceAutomationDep_ConfigPropertyNames);
|
|
6583
|
+
// Invalid or incomplete config
|
|
6584
|
+
if (config === null) {
|
|
6585
|
+
return null;
|
|
6586
|
+
}
|
|
6587
|
+
return luvio.applyCachePolicy((requestContext || {}), { config, luvio }, // BuildSnapshotContext
|
|
6588
|
+
buildCachedSnapshotCachePolicy$2, buildNetworkSnapshotCachePolicy$2);
|
|
6589
|
+
};
|
|
6590
|
+
|
|
6591
|
+
function select$5(luvio, params) {
|
|
6592
|
+
return select$b();
|
|
6593
|
+
}
|
|
6594
|
+
function keyBuilder$4(luvio, params) {
|
|
6595
|
+
return keyBuilder$8(luvio, {
|
|
6596
|
+
catalogItemId: params.urlParams.catalogItemId
|
|
6597
|
+
});
|
|
6598
|
+
}
|
|
6599
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
6600
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6601
|
+
}
|
|
6602
|
+
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
6603
|
+
const { body } = response;
|
|
6604
|
+
const key = keyBuilder$4(luvio, resourceParams);
|
|
6605
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6606
|
+
const snapshot = luvio.storeLookup({
|
|
6607
|
+
recordId: key,
|
|
6608
|
+
node: select$5(),
|
|
6609
|
+
variables: {},
|
|
6610
|
+
}, snapshotRefresh);
|
|
6611
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6612
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
6613
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6616
|
+
deepFreeze(snapshot.data);
|
|
6617
|
+
return snapshot;
|
|
6618
|
+
}
|
|
6619
|
+
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
6620
|
+
const key = keyBuilder$4(luvio, params);
|
|
6621
|
+
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6622
|
+
const storeMetadataParams = {
|
|
6623
|
+
ttl: TTL$3,
|
|
6624
|
+
namespace: keyPrefix,
|
|
6625
|
+
version: VERSION$4,
|
|
6626
|
+
representationName: RepresentationType$4
|
|
6627
|
+
};
|
|
6628
|
+
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6629
|
+
return errorSnapshot;
|
|
6630
|
+
}
|
|
6631
|
+
function createResourceRequest$3(config) {
|
|
6632
|
+
const headers = {};
|
|
6633
|
+
return {
|
|
6634
|
+
baseUri: '/services/data/v64.0',
|
|
6635
|
+
basePath: '/connect/service-automation/catalog/catalog-item/' + config.urlParams.catalogItemId + '',
|
|
6636
|
+
method: 'get',
|
|
6637
|
+
body: null,
|
|
6638
|
+
urlParams: config.urlParams,
|
|
6639
|
+
queryParams: config.queryParams,
|
|
6640
|
+
headers,
|
|
6641
|
+
priority: 'normal',
|
|
6642
|
+
};
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
const adapterName$3 = 'getCatalogItem';
|
|
6646
|
+
const getCatalogItem_ConfigPropertyMetadata = [
|
|
6647
|
+
generateParamConfigMetadata('catalogItemId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6648
|
+
generateParamConfigMetadata('isRuntime', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
6649
|
+
];
|
|
6650
|
+
const getCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getCatalogItem_ConfigPropertyMetadata);
|
|
6651
|
+
const createResourceParams$3 = /*#__PURE__*/ createResourceParams$7(getCatalogItem_ConfigPropertyMetadata);
|
|
6652
|
+
function keyBuilder$3(luvio, config) {
|
|
6653
|
+
const resourceParams = createResourceParams$3(config);
|
|
6654
|
+
return keyBuilder$4(luvio, resourceParams);
|
|
6655
|
+
}
|
|
6656
|
+
function typeCheckConfig$3(untrustedConfig) {
|
|
6657
|
+
const config = {};
|
|
6658
|
+
typeCheckConfig$7(untrustedConfig, config, getCatalogItem_ConfigPropertyMetadata);
|
|
6659
|
+
return config;
|
|
6660
|
+
}
|
|
6159
6661
|
function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
6160
6662
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
6161
6663
|
return null;
|
|
@@ -6171,7 +6673,7 @@ function validateAdapterConfig$3(untrustedConfig, configPropertyNames) {
|
|
|
6171
6673
|
}
|
|
6172
6674
|
function adapterFragment$1(luvio, config) {
|
|
6173
6675
|
createResourceParams$3(config);
|
|
6174
|
-
return select$
|
|
6676
|
+
return select$5();
|
|
6175
6677
|
}
|
|
6176
6678
|
function onFetchResponseSuccess$1(luvio, config, resourceParams, response) {
|
|
6177
6679
|
const snapshot = ingestSuccess$3(luvio, resourceParams, response, {
|
|
@@ -6202,7 +6704,7 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
6202
6704
|
});
|
|
6203
6705
|
}
|
|
6204
6706
|
function buildNetworkSnapshotCachePolicy$1(context, coercedAdapterRequestContext) {
|
|
6205
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6707
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$3, undefined, false);
|
|
6206
6708
|
}
|
|
6207
6709
|
function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
6208
6710
|
const { luvio, config } = context;
|
|
@@ -6217,8 +6719,8 @@ function buildCachedSnapshotCachePolicy$1(context, storeLookup) {
|
|
|
6217
6719
|
});
|
|
6218
6720
|
return cacheSnapshot;
|
|
6219
6721
|
}
|
|
6220
|
-
const
|
|
6221
|
-
const config = validateAdapterConfig$3(untrustedConfig,
|
|
6722
|
+
const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(untrustedConfig, requestContext) {
|
|
6723
|
+
const config = validateAdapterConfig$3(untrustedConfig, getCatalogItem_ConfigPropertyNames);
|
|
6222
6724
|
// Invalid or incomplete config
|
|
6223
6725
|
if (config === null) {
|
|
6224
6726
|
return null;
|
|
@@ -6227,21 +6729,107 @@ const getAllServiceAutomationDepAdapterFactory = (luvio) => function ecm__getAll
|
|
|
6227
6729
|
buildCachedSnapshotCachePolicy$1, buildNetworkSnapshotCachePolicy$1);
|
|
6228
6730
|
};
|
|
6229
6731
|
|
|
6732
|
+
const VERSION$1 = "47abfed1abd8cb040e28d76ea3b6a1ec";
|
|
6733
|
+
function validate$3(obj, path = 'ServiceRequestGetOutputRepresentation') {
|
|
6734
|
+
const v_error = (() => {
|
|
6735
|
+
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6736
|
+
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
6737
|
+
}
|
|
6738
|
+
const obj_anchor = obj.anchor;
|
|
6739
|
+
const path_anchor = path + '.anchor';
|
|
6740
|
+
if (typeof obj_anchor !== 'object' || ArrayIsArray(obj_anchor) || obj_anchor === null) {
|
|
6741
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor + '" (at "' + path_anchor + '")');
|
|
6742
|
+
}
|
|
6743
|
+
const obj_anchor_keys = ObjectKeys(obj_anchor);
|
|
6744
|
+
for (let i = 0; i < obj_anchor_keys.length; i++) {
|
|
6745
|
+
const key = obj_anchor_keys[i];
|
|
6746
|
+
const obj_anchor_prop = obj_anchor[key];
|
|
6747
|
+
const path_anchor_prop = path_anchor + '["' + key + '"]';
|
|
6748
|
+
if (typeof obj_anchor_prop !== 'object' || ArrayIsArray(obj_anchor_prop) || obj_anchor_prop === null) {
|
|
6749
|
+
return new TypeError('Expected "object" but received "' + typeof obj_anchor_prop + '" (at "' + path_anchor_prop + '")');
|
|
6750
|
+
}
|
|
6751
|
+
}
|
|
6752
|
+
const obj_customAttributes = obj.customAttributes;
|
|
6753
|
+
const path_customAttributes = path + '.customAttributes';
|
|
6754
|
+
if (typeof obj_customAttributes !== 'object' || ArrayIsArray(obj_customAttributes) || obj_customAttributes === null) {
|
|
6755
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes + '" (at "' + path_customAttributes + '")');
|
|
6756
|
+
}
|
|
6757
|
+
const obj_customAttributes_keys = ObjectKeys(obj_customAttributes);
|
|
6758
|
+
for (let i = 0; i < obj_customAttributes_keys.length; i++) {
|
|
6759
|
+
const key = obj_customAttributes_keys[i];
|
|
6760
|
+
const obj_customAttributes_prop = obj_customAttributes[key];
|
|
6761
|
+
const path_customAttributes_prop = path_customAttributes + '["' + key + '"]';
|
|
6762
|
+
if (typeof obj_customAttributes_prop !== 'object' || ArrayIsArray(obj_customAttributes_prop) || obj_customAttributes_prop === null) {
|
|
6763
|
+
return new TypeError('Expected "object" but received "' + typeof obj_customAttributes_prop + '" (at "' + path_customAttributes_prop + '")');
|
|
6764
|
+
}
|
|
6765
|
+
}
|
|
6766
|
+
})();
|
|
6767
|
+
return v_error === undefined ? null : v_error;
|
|
6768
|
+
}
|
|
6769
|
+
const RepresentationType$1 = 'ServiceRequestGetOutputRepresentation';
|
|
6770
|
+
function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
6771
|
+
return input;
|
|
6772
|
+
}
|
|
6773
|
+
const select$4 = function ServiceRequestGetOutputRepresentationSelect() {
|
|
6774
|
+
return {
|
|
6775
|
+
kind: 'Fragment',
|
|
6776
|
+
version: VERSION$1,
|
|
6777
|
+
private: [],
|
|
6778
|
+
selections: []
|
|
6779
|
+
};
|
|
6780
|
+
};
|
|
6781
|
+
function equals$1(existing, incoming) {
|
|
6782
|
+
const existing_anchor = existing.anchor;
|
|
6783
|
+
const incoming_anchor = incoming.anchor;
|
|
6784
|
+
const equals_anchor_props = equalsObject(existing_anchor, incoming_anchor, (existing_anchor_prop, incoming_anchor_prop) => {
|
|
6785
|
+
});
|
|
6786
|
+
if (equals_anchor_props === false) {
|
|
6787
|
+
return false;
|
|
6788
|
+
}
|
|
6789
|
+
const existing_customAttributes = existing.customAttributes;
|
|
6790
|
+
const incoming_customAttributes = incoming.customAttributes;
|
|
6791
|
+
const equals_customAttributes_props = equalsObject(existing_customAttributes, incoming_customAttributes, (existing_customAttributes_prop, incoming_customAttributes_prop) => {
|
|
6792
|
+
});
|
|
6793
|
+
if (equals_customAttributes_props === false) {
|
|
6794
|
+
return false;
|
|
6795
|
+
}
|
|
6796
|
+
return true;
|
|
6797
|
+
}
|
|
6798
|
+
const ingest$1 = function ServiceRequestGetOutputRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6799
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
6800
|
+
const validateError = validate$3(input);
|
|
6801
|
+
if (validateError !== null) {
|
|
6802
|
+
throw validateError;
|
|
6803
|
+
}
|
|
6804
|
+
}
|
|
6805
|
+
const key = path.fullPath;
|
|
6806
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 360000;
|
|
6807
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$1, "ecm", VERSION$1, RepresentationType$1, equals$1);
|
|
6808
|
+
return createLink(key);
|
|
6809
|
+
};
|
|
6810
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
6811
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6812
|
+
const rootKey = fullPathFactory();
|
|
6813
|
+
rootKeySet.set(rootKey, {
|
|
6814
|
+
namespace: keyPrefix,
|
|
6815
|
+
representationName: RepresentationType$1,
|
|
6816
|
+
mergeable: false
|
|
6817
|
+
});
|
|
6818
|
+
}
|
|
6819
|
+
|
|
6230
6820
|
function select$3(luvio, params) {
|
|
6231
|
-
return select$
|
|
6821
|
+
return select$4();
|
|
6232
6822
|
}
|
|
6233
6823
|
function keyBuilder$2(luvio, params) {
|
|
6234
|
-
return
|
|
6235
|
-
catalogItemId: params.urlParams.catalogItemId
|
|
6236
|
-
});
|
|
6824
|
+
return keyPrefix + '::ServiceRequestGetOutputRepresentation:(' + 'serviceRequestId:' + params.urlParams.serviceRequestId + ')';
|
|
6237
6825
|
}
|
|
6238
6826
|
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
6239
|
-
getTypeCacheKeys$
|
|
6827
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
6240
6828
|
}
|
|
6241
6829
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
6242
6830
|
const { body } = response;
|
|
6243
6831
|
const key = keyBuilder$2(luvio, resourceParams);
|
|
6244
|
-
luvio.storeIngest(key, ingest$
|
|
6832
|
+
luvio.storeIngest(key, ingest$1, body);
|
|
6245
6833
|
const snapshot = luvio.storeLookup({
|
|
6246
6834
|
recordId: key,
|
|
6247
6835
|
node: select$3(),
|
|
@@ -6258,20 +6846,14 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6258
6846
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
6259
6847
|
const key = keyBuilder$2(luvio, params);
|
|
6260
6848
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6261
|
-
|
|
6262
|
-
ttl: TTL$3,
|
|
6263
|
-
namespace: keyPrefix,
|
|
6264
|
-
version: VERSION$3,
|
|
6265
|
-
representationName: RepresentationType$3
|
|
6266
|
-
};
|
|
6267
|
-
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
6849
|
+
luvio.storeIngestError(key, errorSnapshot);
|
|
6268
6850
|
return errorSnapshot;
|
|
6269
6851
|
}
|
|
6270
6852
|
function createResourceRequest$2(config) {
|
|
6271
6853
|
const headers = {};
|
|
6272
6854
|
return {
|
|
6273
6855
|
baseUri: '/services/data/v64.0',
|
|
6274
|
-
basePath: '/connect/service-automation/
|
|
6856
|
+
basePath: '/connect/service-automation/service-request/service-catalog-request/' + config.urlParams.serviceRequestId + '',
|
|
6275
6857
|
method: 'get',
|
|
6276
6858
|
body: null,
|
|
6277
6859
|
urlParams: config.urlParams,
|
|
@@ -6281,19 +6863,19 @@ function createResourceRequest$2(config) {
|
|
|
6281
6863
|
};
|
|
6282
6864
|
}
|
|
6283
6865
|
|
|
6284
|
-
const adapterName$2 = '
|
|
6285
|
-
const
|
|
6286
|
-
generateParamConfigMetadata('
|
|
6866
|
+
const adapterName$2 = 'getServiceRequest';
|
|
6867
|
+
const getServiceRequest_ConfigPropertyMetadata = [
|
|
6868
|
+
generateParamConfigMetadata('serviceRequestId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
6287
6869
|
];
|
|
6288
|
-
const
|
|
6289
|
-
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$
|
|
6870
|
+
const getServiceRequest_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$2, getServiceRequest_ConfigPropertyMetadata);
|
|
6871
|
+
const createResourceParams$2 = /*#__PURE__*/ createResourceParams$7(getServiceRequest_ConfigPropertyMetadata);
|
|
6290
6872
|
function keyBuilder$1(luvio, config) {
|
|
6291
6873
|
const resourceParams = createResourceParams$2(config);
|
|
6292
6874
|
return keyBuilder$2(luvio, resourceParams);
|
|
6293
6875
|
}
|
|
6294
6876
|
function typeCheckConfig$2(untrustedConfig) {
|
|
6295
6877
|
const config = {};
|
|
6296
|
-
typeCheckConfig$
|
|
6878
|
+
typeCheckConfig$7(untrustedConfig, config, getServiceRequest_ConfigPropertyMetadata);
|
|
6297
6879
|
return config;
|
|
6298
6880
|
}
|
|
6299
6881
|
function validateAdapterConfig$2(untrustedConfig, configPropertyNames) {
|
|
@@ -6342,7 +6924,7 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
6342
6924
|
});
|
|
6343
6925
|
}
|
|
6344
6926
|
function buildNetworkSnapshotCachePolicy(context, coercedAdapterRequestContext) {
|
|
6345
|
-
return buildNetworkSnapshotCachePolicy$
|
|
6927
|
+
return buildNetworkSnapshotCachePolicy$3(context, coercedAdapterRequestContext, buildNetworkSnapshot$2, undefined, false);
|
|
6346
6928
|
}
|
|
6347
6929
|
function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
6348
6930
|
const { luvio, config } = context;
|
|
@@ -6357,8 +6939,8 @@ function buildCachedSnapshotCachePolicy(context, storeLookup) {
|
|
|
6357
6939
|
});
|
|
6358
6940
|
return cacheSnapshot;
|
|
6359
6941
|
}
|
|
6360
|
-
const
|
|
6361
|
-
const config = validateAdapterConfig$2(untrustedConfig,
|
|
6942
|
+
const getServiceRequestAdapterFactory = (luvio) => function ecm__getServiceRequest(untrustedConfig, requestContext) {
|
|
6943
|
+
const config = validateAdapterConfig$2(untrustedConfig, getServiceRequest_ConfigPropertyNames);
|
|
6362
6944
|
// Invalid or incomplete config
|
|
6363
6945
|
if (config === null) {
|
|
6364
6946
|
return null;
|
|
@@ -6368,15 +6950,15 @@ const getCatalogItemAdapterFactory = (luvio) => function ecm__getCatalogItem(unt
|
|
|
6368
6950
|
};
|
|
6369
6951
|
|
|
6370
6952
|
function select$2(luvio, params) {
|
|
6371
|
-
return select$
|
|
6953
|
+
return select$b();
|
|
6372
6954
|
}
|
|
6373
6955
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
6374
|
-
getTypeCacheKeys$
|
|
6956
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response);
|
|
6375
6957
|
}
|
|
6376
6958
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
6377
6959
|
const { body } = response;
|
|
6378
6960
|
const key = keyBuilderFromType$2(luvio, body);
|
|
6379
|
-
luvio.storeIngest(key, ingest$
|
|
6961
|
+
luvio.storeIngest(key, ingest$4, body);
|
|
6380
6962
|
const snapshot = luvio.storeLookup({
|
|
6381
6963
|
recordId: key,
|
|
6382
6964
|
node: select$2(),
|
|
@@ -6427,12 +7009,12 @@ const updateCatalogItem_ConfigPropertyMetadata = [
|
|
|
6427
7009
|
generateParamConfigMetadata('usedFor', false, 2 /* Body */, 4 /* Unsupported */),
|
|
6428
7010
|
];
|
|
6429
7011
|
const updateCatalogItem_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateCatalogItem_ConfigPropertyMetadata);
|
|
6430
|
-
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$
|
|
7012
|
+
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$7(updateCatalogItem_ConfigPropertyMetadata);
|
|
6431
7013
|
function typeCheckConfig$1(untrustedConfig) {
|
|
6432
7014
|
const config = {};
|
|
6433
|
-
typeCheckConfig$
|
|
7015
|
+
typeCheckConfig$7(untrustedConfig, config, updateCatalogItem_ConfigPropertyMetadata);
|
|
6434
7016
|
const untrustedConfig_agentAction = untrustedConfig.agentAction;
|
|
6435
|
-
const referenceAgentActionInputRepresentationValidationError = validate$
|
|
7017
|
+
const referenceAgentActionInputRepresentationValidationError = validate$v(untrustedConfig_agentAction);
|
|
6436
7018
|
if (referenceAgentActionInputRepresentationValidationError === null) {
|
|
6437
7019
|
config.agentAction = untrustedConfig_agentAction;
|
|
6438
7020
|
}
|
|
@@ -6451,7 +7033,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6451
7033
|
const untrustedConfig_associatedArticles_array = [];
|
|
6452
7034
|
for (let i = 0, arrayLength = untrustedConfig_associatedArticles.length; i < arrayLength; i++) {
|
|
6453
7035
|
const untrustedConfig_associatedArticles_item = untrustedConfig_associatedArticles[i];
|
|
6454
|
-
const referenceKnowledgeArticleInputRepresentationValidationError = validate$
|
|
7036
|
+
const referenceKnowledgeArticleInputRepresentationValidationError = validate$u(untrustedConfig_associatedArticles_item);
|
|
6455
7037
|
if (referenceKnowledgeArticleInputRepresentationValidationError === null) {
|
|
6456
7038
|
untrustedConfig_associatedArticles_array.push(untrustedConfig_associatedArticles_item);
|
|
6457
7039
|
}
|
|
@@ -6466,7 +7048,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6466
7048
|
const untrustedConfig_attributes_array = [];
|
|
6467
7049
|
for (let i = 0, arrayLength = untrustedConfig_attributes.length; i < arrayLength; i++) {
|
|
6468
7050
|
const untrustedConfig_attributes_item = untrustedConfig_attributes[i];
|
|
6469
|
-
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$
|
|
7051
|
+
const referenceCatalogItemAttributeInputRepresentationValidationError = validate$s(untrustedConfig_attributes_item);
|
|
6470
7052
|
if (referenceCatalogItemAttributeInputRepresentationValidationError === null) {
|
|
6471
7053
|
untrustedConfig_attributes_array.push(untrustedConfig_attributes_item);
|
|
6472
7054
|
}
|
|
@@ -6481,7 +7063,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6481
7063
|
const untrustedConfig_sections_array = [];
|
|
6482
7064
|
for (let i = 0, arrayLength = untrustedConfig_sections.length; i < arrayLength; i++) {
|
|
6483
7065
|
const untrustedConfig_sections_item = untrustedConfig_sections[i];
|
|
6484
|
-
const referenceSectionInputRepresentationValidationError = validate$
|
|
7066
|
+
const referenceSectionInputRepresentationValidationError = validate$r(untrustedConfig_sections_item);
|
|
6485
7067
|
if (referenceSectionInputRepresentationValidationError === null) {
|
|
6486
7068
|
untrustedConfig_sections_array.push(untrustedConfig_sections_item);
|
|
6487
7069
|
}
|
|
@@ -6517,7 +7099,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6517
7099
|
const untrustedConfig_eligibilityRules_array = [];
|
|
6518
7100
|
for (let i = 0, arrayLength = untrustedConfig_eligibilityRules.length; i < arrayLength; i++) {
|
|
6519
7101
|
const untrustedConfig_eligibilityRules_item = untrustedConfig_eligibilityRules[i];
|
|
6520
|
-
const referenceEligibilityRulesInputRepresentationValidationError = validate$
|
|
7102
|
+
const referenceEligibilityRulesInputRepresentationValidationError = validate$q(untrustedConfig_eligibilityRules_item);
|
|
6521
7103
|
if (referenceEligibilityRulesInputRepresentationValidationError === null) {
|
|
6522
7104
|
untrustedConfig_eligibilityRules_array.push(untrustedConfig_eligibilityRules_item);
|
|
6523
7105
|
}
|
|
@@ -6528,7 +7110,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6528
7110
|
config.eligibilityRules = untrustedConfig_eligibilityRules_array;
|
|
6529
7111
|
}
|
|
6530
7112
|
const untrustedConfig_fulfillmentFlow = untrustedConfig.fulfillmentFlow;
|
|
6531
|
-
const referenceFulfillmentFlowInputRepresentationValidationError = validate$
|
|
7113
|
+
const referenceFulfillmentFlowInputRepresentationValidationError = validate$p(untrustedConfig_fulfillmentFlow);
|
|
6532
7114
|
if (referenceFulfillmentFlowInputRepresentationValidationError === null) {
|
|
6533
7115
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6534
7116
|
}
|
|
@@ -6536,7 +7118,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6536
7118
|
config.fulfillmentFlow = untrustedConfig_fulfillmentFlow;
|
|
6537
7119
|
}
|
|
6538
7120
|
const untrustedConfig_intakeForm = untrustedConfig.intakeForm;
|
|
6539
|
-
const referenceIntakeFormInputRepresentationValidationError = validate$
|
|
7121
|
+
const referenceIntakeFormInputRepresentationValidationError = validate$o(untrustedConfig_intakeForm);
|
|
6540
7122
|
if (referenceIntakeFormInputRepresentationValidationError === null) {
|
|
6541
7123
|
config.intakeForm = untrustedConfig_intakeForm;
|
|
6542
7124
|
}
|
|
@@ -6548,7 +7130,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6548
7130
|
const untrustedConfig_integrations_array = [];
|
|
6549
7131
|
for (let i = 0, arrayLength = untrustedConfig_integrations.length; i < arrayLength; i++) {
|
|
6550
7132
|
const untrustedConfig_integrations_item = untrustedConfig_integrations[i];
|
|
6551
|
-
const referenceIntegrationDefInputRepresentationValidationError = validate$
|
|
7133
|
+
const referenceIntegrationDefInputRepresentationValidationError = validate$n(untrustedConfig_integrations_item);
|
|
6552
7134
|
if (referenceIntegrationDefInputRepresentationValidationError === null) {
|
|
6553
7135
|
untrustedConfig_integrations_array.push(untrustedConfig_integrations_item);
|
|
6554
7136
|
}
|
|
@@ -6577,7 +7159,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6577
7159
|
const untrustedConfig_preProcessors_array = [];
|
|
6578
7160
|
for (let i = 0, arrayLength = untrustedConfig_preProcessors.length; i < arrayLength; i++) {
|
|
6579
7161
|
const untrustedConfig_preProcessors_item = untrustedConfig_preProcessors[i];
|
|
6580
|
-
const referencePreprocessorInputRepresentationValidationError = validate$
|
|
7162
|
+
const referencePreprocessorInputRepresentationValidationError = validate$m(untrustedConfig_preProcessors_item);
|
|
6581
7163
|
if (referencePreprocessorInputRepresentationValidationError === null) {
|
|
6582
7164
|
untrustedConfig_preProcessors_array.push(untrustedConfig_preProcessors_item);
|
|
6583
7165
|
}
|
|
@@ -6592,7 +7174,7 @@ function typeCheckConfig$1(untrustedConfig) {
|
|
|
6592
7174
|
const untrustedConfig_productRequests_array = [];
|
|
6593
7175
|
for (let i = 0, arrayLength = untrustedConfig_productRequests.length; i < arrayLength; i++) {
|
|
6594
7176
|
const untrustedConfig_productRequests_item = untrustedConfig_productRequests[i];
|
|
6595
|
-
const referenceProductRequestCreateInputRepresentationValidationError = validate$
|
|
7177
|
+
const referenceProductRequestCreateInputRepresentationValidationError = validate$l(untrustedConfig_productRequests_item);
|
|
6596
7178
|
if (referenceProductRequestCreateInputRepresentationValidationError === null) {
|
|
6597
7179
|
untrustedConfig_productRequests_array.push(untrustedConfig_productRequests_item);
|
|
6598
7180
|
}
|
|
@@ -6832,10 +7414,10 @@ const updateEpcCategories_ConfigPropertyMetadata = [
|
|
|
6832
7414
|
generateParamConfigMetadata('categories', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
6833
7415
|
];
|
|
6834
7416
|
const updateEpcCategories_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, updateEpcCategories_ConfigPropertyMetadata);
|
|
6835
|
-
const createResourceParams = /*#__PURE__*/ createResourceParams$
|
|
7417
|
+
const createResourceParams = /*#__PURE__*/ createResourceParams$7(updateEpcCategories_ConfigPropertyMetadata);
|
|
6836
7418
|
function typeCheckConfig(untrustedConfig) {
|
|
6837
7419
|
const config = {};
|
|
6838
|
-
typeCheckConfig$
|
|
7420
|
+
typeCheckConfig$7(untrustedConfig, config, updateEpcCategories_ConfigPropertyMetadata);
|
|
6839
7421
|
const untrustedConfig_categories = untrustedConfig.categories;
|
|
6840
7422
|
if (ArrayIsArray$1(untrustedConfig_categories)) {
|
|
6841
7423
|
const untrustedConfig_categories_array = [];
|
|
@@ -6896,22 +7478,26 @@ let createCatalogItem;
|
|
|
6896
7478
|
let generateOmniScript;
|
|
6897
7479
|
let getAllServiceAutomationDep;
|
|
6898
7480
|
let getCatalogItem;
|
|
7481
|
+
let getServiceRequest;
|
|
6899
7482
|
let updateCatalogItem;
|
|
6900
7483
|
let updateEpcCategories;
|
|
6901
7484
|
// Imperative GET Adapters
|
|
6902
7485
|
let getAllServiceAutomationDep_imperative;
|
|
6903
7486
|
let getCatalogItem_imperative;
|
|
7487
|
+
let getServiceRequest_imperative;
|
|
6904
7488
|
const getAllServiceAutomationDepMetadata = {
|
|
6905
7489
|
apiFamily: 'ecm',
|
|
6906
7490
|
name: 'getAllServiceAutomationDep',
|
|
6907
7491
|
ttl: 6000,
|
|
6908
7492
|
};
|
|
6909
7493
|
const getCatalogItemMetadata = { apiFamily: 'ecm', name: 'getCatalogItem', ttl: 6000 };
|
|
7494
|
+
const getServiceRequestMetadata = { apiFamily: 'ecm', name: 'getServiceRequest' };
|
|
6910
7495
|
// Notify Update Available
|
|
6911
7496
|
function bindExportsTo(luvio) {
|
|
6912
7497
|
// LDS Adapters
|
|
6913
7498
|
const getAllServiceAutomationDep_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getAllServiceAutomationDep', getAllServiceAutomationDepAdapterFactory), getAllServiceAutomationDepMetadata);
|
|
6914
7499
|
const getCatalogItem_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getCatalogItem', getCatalogItemAdapterFactory), getCatalogItemMetadata);
|
|
7500
|
+
const getServiceRequest_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getServiceRequest', getServiceRequestAdapterFactory), getServiceRequestMetadata);
|
|
6915
7501
|
function unwrapSnapshotData(factory) {
|
|
6916
7502
|
const adapter = factory(luvio);
|
|
6917
7503
|
return (config) => adapter(config).then((snapshot) => snapshot.data);
|
|
@@ -6921,11 +7507,13 @@ function bindExportsTo(luvio) {
|
|
|
6921
7507
|
generateOmniScript: unwrapSnapshotData(generateOmniScriptAdapterFactory),
|
|
6922
7508
|
getAllServiceAutomationDep: createWireAdapterConstructor(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
6923
7509
|
getCatalogItem: createWireAdapterConstructor(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
7510
|
+
getServiceRequest: createWireAdapterConstructor(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
6924
7511
|
updateCatalogItem: unwrapSnapshotData(updateCatalogItemAdapterFactory),
|
|
6925
7512
|
updateEpcCategories: unwrapSnapshotData(updateEpcCategoriesAdapterFactory),
|
|
6926
7513
|
// Imperative GET Adapters
|
|
6927
7514
|
getAllServiceAutomationDep_imperative: createImperativeAdapter(luvio, getAllServiceAutomationDep_ldsAdapter, getAllServiceAutomationDepMetadata),
|
|
6928
7515
|
getCatalogItem_imperative: createImperativeAdapter(luvio, getCatalogItem_ldsAdapter, getCatalogItemMetadata),
|
|
7516
|
+
getServiceRequest_imperative: createImperativeAdapter(luvio, getServiceRequest_ldsAdapter, getServiceRequestMetadata),
|
|
6929
7517
|
// Notify Update Availables
|
|
6930
7518
|
};
|
|
6931
7519
|
}
|
|
@@ -6935,12 +7523,14 @@ withDefaultLuvio((luvio) => {
|
|
|
6935
7523
|
generateOmniScript,
|
|
6936
7524
|
getAllServiceAutomationDep,
|
|
6937
7525
|
getCatalogItem,
|
|
7526
|
+
getServiceRequest,
|
|
6938
7527
|
updateCatalogItem,
|
|
6939
7528
|
updateEpcCategories,
|
|
6940
7529
|
getAllServiceAutomationDep_imperative,
|
|
6941
7530
|
getCatalogItem_imperative,
|
|
7531
|
+
getServiceRequest_imperative,
|
|
6942
7532
|
} = bindExportsTo(luvio));
|
|
6943
7533
|
});
|
|
6944
7534
|
|
|
6945
|
-
export { createCatalogItem, generateOmniScript, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, updateCatalogItem, updateEpcCategories };
|
|
6946
|
-
// version: 1.
|
|
7535
|
+
export { createCatalogItem, generateOmniScript, getAllServiceAutomationDep, getAllServiceAutomationDep_imperative, getCatalogItem, getCatalogItem_imperative, getServiceRequest, getServiceRequest_imperative, updateCatalogItem, updateEpcCategories };
|
|
7536
|
+
// version: 1.348.0-4aa8c0c0cb
|