@gofynd/fdk-client-javascript 1.3.6-beta.1 → 1.3.6
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/README.md +1 -1
- package/package.json +2 -2
- package/sdk/application/ApplicationConfig.d.ts +11 -3
- package/sdk/application/ApplicationConfig.js +21 -3
- package/sdk/application/Cart/CartApplicationClient.js +228 -113
- package/sdk/application/Catalog/CatalogApplicationClient.js +244 -121
- package/sdk/application/Common/CommonApplicationClient.js +20 -9
- package/sdk/application/Communication/CommunicationApplicationClient.js +28 -13
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +132 -65
- package/sdk/application/Content/ContentApplicationClient.js +156 -77
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +28 -13
- package/sdk/application/Lead/LeadApplicationClient.js +60 -29
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -21
- package/sdk/application/Order/OrderApplicationClient.js +100 -49
- package/sdk/application/Payment/PaymentApplicationClient.js +340 -169
- package/sdk/application/PosCart/PosCartApplicationClient.js +220 -109
- package/sdk/application/Rewards/RewardsApplicationClient.js +60 -29
- package/sdk/application/Share/ShareApplicationClient.js +60 -29
- package/sdk/application/Theme/ThemeApplicationClient.js +36 -17
- package/sdk/application/User/UserApplicationClient.js +324 -161
- package/sdk/common/AxiosHelper.js +3 -3
- package/sdk/common/FDKError.d.ts +4 -0
- package/sdk/common/FDKError.js +9 -0
- package/sdk/partner/FileStorage/FileStoragePartnerClient.d.ts +16 -40
- package/sdk/partner/FileStorage/FileStoragePartnerClient.js +160 -38
- package/sdk/partner/PartnerConfig.d.ts +10 -0
- package/sdk/partner/PartnerConfig.js +10 -1
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +96 -199
- package/sdk/partner/Theme/ThemePartnerClient.js +935 -170
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +36 -17
- package/sdk/platform/Billing/BillingPlatformClient.js +140 -69
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +456 -228
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +512 -256
- package/sdk/platform/Catalog/CatalogPlatformClient.js +620 -309
- package/sdk/platform/Common/CommonPlatformClient.js +20 -9
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +472 -236
- package/sdk/platform/Communication/CommunicationPlatformClient.js +12 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +14 -1
- package/sdk/platform/Communication/CommunicationPlatformModel.js +16 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +116 -57
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +256 -128
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +148 -73
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +552 -276
- package/sdk/platform/Discount/DiscountPlatformClient.js +92 -45
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +88 -44
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +52 -25
- package/sdk/platform/Finance/FinancePlatformClient.js +196 -97
- package/sdk/platform/Inventory/InventoryPlatformClient.js +100 -49
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +104 -52
- package/sdk/platform/Lead/LeadPlatformClient.js +92 -45
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +239 -5
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +57 -1
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.js +356 -177
- package/sdk/platform/Order/OrderPlatformModel.d.ts +44 -5
- package/sdk/platform/Order/OrderPlatformModel.js +52 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +16 -8
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +336 -168
- package/sdk/platform/Payment/PaymentPlatformClient.js +84 -41
- package/sdk/platform/PlatformConfig.d.ts +10 -0
- package/sdk/platform/PlatformConfig.js +10 -1
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +96 -48
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +112 -56
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +148 -73
- package/sdk/platform/Share/SharePlatformApplicationClient.js +40 -20
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +224 -112
- package/sdk/platform/Theme/ThemePlatformClient.js +28 -13
- package/sdk/platform/User/UserPlatformApplicationClient.js +144 -72
- package/sdk/platform/Webhook/WebhookPlatformClient.js +132 -65
- package/sdk/public/Configuration/ConfigurationPublicClient.js +20 -9
- package/sdk/public/Inventory/InventoryPublicClient.js +52 -25
- package/sdk/public/Partner/PartnerPublicClient.js +12 -5
- package/sdk/public/PublicConfig.d.ts +11 -1
- package/sdk/public/PublicConfig.js +10 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +20 -9
|
@@ -78,10 +78,14 @@ class Configuration {
|
|
|
78
78
|
});
|
|
79
79
|
|
|
80
80
|
if (res_error) {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
81
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
82
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
83
|
+
} else {
|
|
84
|
+
Logger({
|
|
85
|
+
level: "WARN",
|
|
86
|
+
message: `Response Validation Warnings for platform > Configuration > addDomain \n ${res_error}`,
|
|
87
|
+
});
|
|
88
|
+
}
|
|
85
89
|
}
|
|
86
90
|
|
|
87
91
|
return response;
|
|
@@ -155,10 +159,14 @@ class Configuration {
|
|
|
155
159
|
});
|
|
156
160
|
|
|
157
161
|
if (res_error) {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
163
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
164
|
+
} else {
|
|
165
|
+
Logger({
|
|
166
|
+
level: "WARN",
|
|
167
|
+
message: `Response Validation Warnings for platform > Configuration > changeDomainType \n ${res_error}`,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
162
170
|
}
|
|
163
171
|
|
|
164
172
|
return response;
|
|
@@ -228,10 +236,14 @@ class Configuration {
|
|
|
228
236
|
});
|
|
229
237
|
|
|
230
238
|
if (res_error) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
239
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
240
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
241
|
+
} else {
|
|
242
|
+
Logger({
|
|
243
|
+
level: "WARN",
|
|
244
|
+
message: `Response Validation Warnings for platform > Configuration > getAppApiTokens \n ${res_error}`,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
235
247
|
}
|
|
236
248
|
|
|
237
249
|
return response;
|
|
@@ -301,10 +313,14 @@ class Configuration {
|
|
|
301
313
|
});
|
|
302
314
|
|
|
303
315
|
if (res_error) {
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
316
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
317
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
318
|
+
} else {
|
|
319
|
+
Logger({
|
|
320
|
+
level: "WARN",
|
|
321
|
+
message: `Response Validation Warnings for platform > Configuration > getAppBasicDetails \n ${res_error}`,
|
|
322
|
+
});
|
|
323
|
+
}
|
|
308
324
|
}
|
|
309
325
|
|
|
310
326
|
return response;
|
|
@@ -385,10 +401,14 @@ class Configuration {
|
|
|
385
401
|
});
|
|
386
402
|
|
|
387
403
|
if (res_error) {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
404
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
405
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
406
|
+
} else {
|
|
407
|
+
Logger({
|
|
408
|
+
level: "WARN",
|
|
409
|
+
message: `Response Validation Warnings for platform > Configuration > getAppCompanies \n ${res_error}`,
|
|
410
|
+
});
|
|
411
|
+
}
|
|
392
412
|
}
|
|
393
413
|
|
|
394
414
|
return response;
|
|
@@ -495,10 +515,14 @@ class Configuration {
|
|
|
495
515
|
);
|
|
496
516
|
|
|
497
517
|
if (res_error) {
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
518
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
519
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
520
|
+
} else {
|
|
521
|
+
Logger({
|
|
522
|
+
level: "WARN",
|
|
523
|
+
message: `Response Validation Warnings for platform > Configuration > getAppContactInfo \n ${res_error}`,
|
|
524
|
+
});
|
|
525
|
+
}
|
|
502
526
|
}
|
|
503
527
|
|
|
504
528
|
return response;
|
|
@@ -569,10 +593,14 @@ class Configuration {
|
|
|
569
593
|
);
|
|
570
594
|
|
|
571
595
|
if (res_error) {
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
596
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
597
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
598
|
+
} else {
|
|
599
|
+
Logger({
|
|
600
|
+
level: "WARN",
|
|
601
|
+
message: `Response Validation Warnings for platform > Configuration > getAppCurrencyConfig \n ${res_error}`,
|
|
602
|
+
});
|
|
603
|
+
}
|
|
576
604
|
}
|
|
577
605
|
|
|
578
606
|
return response;
|
|
@@ -643,10 +671,14 @@ class Configuration {
|
|
|
643
671
|
});
|
|
644
672
|
|
|
645
673
|
if (res_error) {
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
674
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
675
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
676
|
+
} else {
|
|
677
|
+
Logger({
|
|
678
|
+
level: "WARN",
|
|
679
|
+
message: `Response Validation Warnings for platform > Configuration > getAppFeatures \n ${res_error}`,
|
|
680
|
+
});
|
|
681
|
+
}
|
|
650
682
|
}
|
|
651
683
|
|
|
652
684
|
return response;
|
|
@@ -724,10 +756,14 @@ class Configuration {
|
|
|
724
756
|
});
|
|
725
757
|
|
|
726
758
|
if (res_error) {
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
759
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
760
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
761
|
+
} else {
|
|
762
|
+
Logger({
|
|
763
|
+
level: "WARN",
|
|
764
|
+
message: `Response Validation Warnings for platform > Configuration > getAppStores \n ${res_error}`,
|
|
765
|
+
});
|
|
766
|
+
}
|
|
731
767
|
}
|
|
732
768
|
|
|
733
769
|
return response;
|
|
@@ -832,10 +868,14 @@ class Configuration {
|
|
|
832
868
|
);
|
|
833
869
|
|
|
834
870
|
if (res_error) {
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
871
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
872
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
873
|
+
} else {
|
|
874
|
+
Logger({
|
|
875
|
+
level: "WARN",
|
|
876
|
+
message: `Response Validation Warnings for platform > Configuration > getAppSupportedCurrency \n ${res_error}`,
|
|
877
|
+
});
|
|
878
|
+
}
|
|
839
879
|
}
|
|
840
880
|
|
|
841
881
|
return response;
|
|
@@ -905,10 +945,14 @@ class Configuration {
|
|
|
905
945
|
});
|
|
906
946
|
|
|
907
947
|
if (res_error) {
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
948
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
949
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
950
|
+
} else {
|
|
951
|
+
Logger({
|
|
952
|
+
level: "WARN",
|
|
953
|
+
message: `Response Validation Warnings for platform > Configuration > getApplicationById \n ${res_error}`,
|
|
954
|
+
});
|
|
955
|
+
}
|
|
912
956
|
}
|
|
913
957
|
|
|
914
958
|
return response;
|
|
@@ -983,10 +1027,14 @@ class Configuration {
|
|
|
983
1027
|
);
|
|
984
1028
|
|
|
985
1029
|
if (res_error) {
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
1030
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1031
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1032
|
+
} else {
|
|
1033
|
+
Logger({
|
|
1034
|
+
level: "WARN",
|
|
1035
|
+
message: `Response Validation Warnings for platform > Configuration > getBuildConfig \n ${res_error}`,
|
|
1036
|
+
});
|
|
1037
|
+
}
|
|
990
1038
|
}
|
|
991
1039
|
|
|
992
1040
|
return response;
|
|
@@ -1061,10 +1109,14 @@ class Configuration {
|
|
|
1061
1109
|
);
|
|
1062
1110
|
|
|
1063
1111
|
if (res_error) {
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1112
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1113
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1114
|
+
} else {
|
|
1115
|
+
Logger({
|
|
1116
|
+
level: "WARN",
|
|
1117
|
+
message: `Response Validation Warnings for platform > Configuration > getDomainStatus \n ${res_error}`,
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1068
1120
|
}
|
|
1069
1121
|
|
|
1070
1122
|
return response;
|
|
@@ -1132,10 +1184,14 @@ class Configuration {
|
|
|
1132
1184
|
});
|
|
1133
1185
|
|
|
1134
1186
|
if (res_error) {
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1187
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1188
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1189
|
+
} else {
|
|
1190
|
+
Logger({
|
|
1191
|
+
level: "WARN",
|
|
1192
|
+
message: `Response Validation Warnings for platform > Configuration > getDomains \n ${res_error}`,
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1139
1195
|
}
|
|
1140
1196
|
|
|
1141
1197
|
return response;
|
|
@@ -1206,10 +1262,14 @@ class Configuration {
|
|
|
1206
1262
|
);
|
|
1207
1263
|
|
|
1208
1264
|
if (res_error) {
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1265
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1266
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1267
|
+
} else {
|
|
1268
|
+
Logger({
|
|
1269
|
+
level: "WARN",
|
|
1270
|
+
message: `Response Validation Warnings for platform > Configuration > getInventoryConfig \n ${res_error}`,
|
|
1271
|
+
});
|
|
1272
|
+
}
|
|
1213
1273
|
}
|
|
1214
1274
|
|
|
1215
1275
|
return response;
|
|
@@ -1280,10 +1340,14 @@ class Configuration {
|
|
|
1280
1340
|
);
|
|
1281
1341
|
|
|
1282
1342
|
if (res_error) {
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1343
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1344
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1345
|
+
} else {
|
|
1346
|
+
Logger({
|
|
1347
|
+
level: "WARN",
|
|
1348
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreConfig \n ${res_error}`,
|
|
1349
|
+
});
|
|
1350
|
+
}
|
|
1287
1351
|
}
|
|
1288
1352
|
|
|
1289
1353
|
return response;
|
|
@@ -1358,10 +1422,14 @@ class Configuration {
|
|
|
1358
1422
|
);
|
|
1359
1423
|
|
|
1360
1424
|
if (res_error) {
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1425
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1426
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1427
|
+
} else {
|
|
1428
|
+
Logger({
|
|
1429
|
+
level: "WARN",
|
|
1430
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoreCookie \n ${res_error}`,
|
|
1431
|
+
});
|
|
1432
|
+
}
|
|
1365
1433
|
}
|
|
1366
1434
|
|
|
1367
1435
|
return response;
|
|
@@ -1441,10 +1509,14 @@ class Configuration {
|
|
|
1441
1509
|
});
|
|
1442
1510
|
|
|
1443
1511
|
if (res_error) {
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1512
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1513
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1514
|
+
} else {
|
|
1515
|
+
Logger({
|
|
1516
|
+
level: "WARN",
|
|
1517
|
+
message: `Response Validation Warnings for platform > Configuration > getOrderingStoresByFilter \n ${res_error}`,
|
|
1518
|
+
});
|
|
1519
|
+
}
|
|
1448
1520
|
}
|
|
1449
1521
|
|
|
1450
1522
|
return response;
|
|
@@ -1560,10 +1632,14 @@ class Configuration {
|
|
|
1560
1632
|
);
|
|
1561
1633
|
|
|
1562
1634
|
if (res_error) {
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1635
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1636
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1637
|
+
} else {
|
|
1638
|
+
Logger({
|
|
1639
|
+
level: "WARN",
|
|
1640
|
+
message: `Response Validation Warnings for platform > Configuration > getPreviousVersions \n ${res_error}`,
|
|
1641
|
+
});
|
|
1642
|
+
}
|
|
1567
1643
|
}
|
|
1568
1644
|
|
|
1569
1645
|
return response;
|
|
@@ -1645,10 +1721,14 @@ class Configuration {
|
|
|
1645
1721
|
);
|
|
1646
1722
|
|
|
1647
1723
|
if (res_error) {
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1724
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1725
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1726
|
+
} else {
|
|
1727
|
+
Logger({
|
|
1728
|
+
level: "WARN",
|
|
1729
|
+
message: `Response Validation Warnings for platform > Configuration > getStaffOrderingStores \n ${res_error}`,
|
|
1730
|
+
});
|
|
1731
|
+
}
|
|
1652
1732
|
}
|
|
1653
1733
|
|
|
1654
1734
|
return response;
|
|
@@ -1763,10 +1843,14 @@ class Configuration {
|
|
|
1763
1843
|
});
|
|
1764
1844
|
|
|
1765
1845
|
if (res_error) {
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1846
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1847
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1848
|
+
} else {
|
|
1849
|
+
Logger({
|
|
1850
|
+
level: "WARN",
|
|
1851
|
+
message: `Response Validation Warnings for platform > Configuration > modifyAppFeatures \n ${res_error}`,
|
|
1852
|
+
});
|
|
1853
|
+
}
|
|
1770
1854
|
}
|
|
1771
1855
|
|
|
1772
1856
|
return response;
|
|
@@ -1841,10 +1925,14 @@ class Configuration {
|
|
|
1841
1925
|
);
|
|
1842
1926
|
|
|
1843
1927
|
if (res_error) {
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1928
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1929
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1930
|
+
} else {
|
|
1931
|
+
Logger({
|
|
1932
|
+
level: "WARN",
|
|
1933
|
+
message: `Response Validation Warnings for platform > Configuration > partiallyUpdateInventoryConfig \n ${res_error}`,
|
|
1934
|
+
});
|
|
1935
|
+
}
|
|
1848
1936
|
}
|
|
1849
1937
|
|
|
1850
1938
|
return response;
|
|
@@ -1919,10 +2007,14 @@ class Configuration {
|
|
|
1919
2007
|
);
|
|
1920
2008
|
|
|
1921
2009
|
if (res_error) {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
2010
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2011
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2012
|
+
} else {
|
|
2013
|
+
Logger({
|
|
2014
|
+
level: "WARN",
|
|
2015
|
+
message: `Response Validation Warnings for platform > Configuration > removeDomainById \n ${res_error}`,
|
|
2016
|
+
});
|
|
2017
|
+
}
|
|
1926
2018
|
}
|
|
1927
2019
|
|
|
1928
2020
|
return response;
|
|
@@ -1993,10 +2085,14 @@ class Configuration {
|
|
|
1993
2085
|
);
|
|
1994
2086
|
|
|
1995
2087
|
if (res_error) {
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2088
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2089
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2090
|
+
} else {
|
|
2091
|
+
Logger({
|
|
2092
|
+
level: "WARN",
|
|
2093
|
+
message: `Response Validation Warnings for platform > Configuration > removeOrderingStoreCookie \n ${res_error}`,
|
|
2094
|
+
});
|
|
2095
|
+
}
|
|
2000
2096
|
}
|
|
2001
2097
|
|
|
2002
2098
|
return response;
|
|
@@ -2070,10 +2166,14 @@ class Configuration {
|
|
|
2070
2166
|
});
|
|
2071
2167
|
|
|
2072
2168
|
if (res_error) {
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2169
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2170
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2171
|
+
} else {
|
|
2172
|
+
Logger({
|
|
2173
|
+
level: "WARN",
|
|
2174
|
+
message: `Response Validation Warnings for platform > Configuration > updateAppApiTokens \n ${res_error}`,
|
|
2175
|
+
});
|
|
2176
|
+
}
|
|
2077
2177
|
}
|
|
2078
2178
|
|
|
2079
2179
|
return response;
|
|
@@ -2147,10 +2247,14 @@ class Configuration {
|
|
|
2147
2247
|
});
|
|
2148
2248
|
|
|
2149
2249
|
if (res_error) {
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2250
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2251
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2252
|
+
} else {
|
|
2253
|
+
Logger({
|
|
2254
|
+
level: "WARN",
|
|
2255
|
+
message: `Response Validation Warnings for platform > Configuration > updateAppBasicDetails \n ${res_error}`,
|
|
2256
|
+
});
|
|
2257
|
+
}
|
|
2154
2258
|
}
|
|
2155
2259
|
|
|
2156
2260
|
return response;
|
|
@@ -2225,10 +2329,14 @@ class Configuration {
|
|
|
2225
2329
|
);
|
|
2226
2330
|
|
|
2227
2331
|
if (res_error) {
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2332
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2333
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2334
|
+
} else {
|
|
2335
|
+
Logger({
|
|
2336
|
+
level: "WARN",
|
|
2337
|
+
message: `Response Validation Warnings for platform > Configuration > updateAppContactInfo \n ${res_error}`,
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2232
2340
|
}
|
|
2233
2341
|
|
|
2234
2342
|
return response;
|
|
@@ -2303,10 +2411,14 @@ class Configuration {
|
|
|
2303
2411
|
);
|
|
2304
2412
|
|
|
2305
2413
|
if (res_error) {
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2414
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2415
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2416
|
+
} else {
|
|
2417
|
+
Logger({
|
|
2418
|
+
level: "WARN",
|
|
2419
|
+
message: `Response Validation Warnings for platform > Configuration > updateAppCurrencyConfig \n ${res_error}`,
|
|
2420
|
+
});
|
|
2421
|
+
}
|
|
2310
2422
|
}
|
|
2311
2423
|
|
|
2312
2424
|
return response;
|
|
@@ -2380,10 +2492,14 @@ class Configuration {
|
|
|
2380
2492
|
});
|
|
2381
2493
|
|
|
2382
2494
|
if (res_error) {
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2495
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2496
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2497
|
+
} else {
|
|
2498
|
+
Logger({
|
|
2499
|
+
level: "WARN",
|
|
2500
|
+
message: `Response Validation Warnings for platform > Configuration > updateAppFeatures \n ${res_error}`,
|
|
2501
|
+
});
|
|
2502
|
+
}
|
|
2387
2503
|
}
|
|
2388
2504
|
|
|
2389
2505
|
return response;
|
|
@@ -2460,10 +2576,14 @@ class Configuration {
|
|
|
2460
2576
|
);
|
|
2461
2577
|
|
|
2462
2578
|
if (res_error) {
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2579
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2580
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2581
|
+
} else {
|
|
2582
|
+
Logger({
|
|
2583
|
+
level: "WARN",
|
|
2584
|
+
message: `Response Validation Warnings for platform > Configuration > updateBuildConfig \n ${res_error}`,
|
|
2585
|
+
});
|
|
2586
|
+
}
|
|
2467
2587
|
}
|
|
2468
2588
|
|
|
2469
2589
|
return response;
|
|
@@ -2538,10 +2658,14 @@ class Configuration {
|
|
|
2538
2658
|
);
|
|
2539
2659
|
|
|
2540
2660
|
if (res_error) {
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2661
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2662
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2663
|
+
} else {
|
|
2664
|
+
Logger({
|
|
2665
|
+
level: "WARN",
|
|
2666
|
+
message: `Response Validation Warnings for platform > Configuration > updateInventoryConfig \n ${res_error}`,
|
|
2667
|
+
});
|
|
2668
|
+
}
|
|
2545
2669
|
}
|
|
2546
2670
|
|
|
2547
2671
|
return response;
|
|
@@ -2615,10 +2739,14 @@ class Configuration {
|
|
|
2615
2739
|
});
|
|
2616
2740
|
|
|
2617
2741
|
if (res_error) {
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2742
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2743
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2744
|
+
} else {
|
|
2745
|
+
Logger({
|
|
2746
|
+
level: "WARN",
|
|
2747
|
+
message: `Response Validation Warnings for platform > Configuration > updateOrderingStoreConfig \n ${res_error}`,
|
|
2748
|
+
});
|
|
2749
|
+
}
|
|
2622
2750
|
}
|
|
2623
2751
|
|
|
2624
2752
|
return response;
|