@gofynd/fdk-client-javascript 1.3.6-beta.2 → 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 +1 -1
- 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/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.d.ts +0 -10
- package/sdk/platform/Order/OrderPlatformClient.js +356 -254
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +1 -20
- package/sdk/platform/Order/OrderPlatformValidator.js +0 -15
- 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
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const PlatformAPIClient = require("../PlatformAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const Paginator = require("../../common/Paginator");
|
|
4
7
|
const CatalogPlatformValidator = require("./CatalogPlatformValidator");
|
|
5
8
|
const CatalogPlatformModel = require("./CatalogPlatformModel");
|
|
@@ -81,10 +84,14 @@ class Catalog {
|
|
|
81
84
|
});
|
|
82
85
|
|
|
83
86
|
if (res_error) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
88
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
89
|
+
} else {
|
|
90
|
+
Logger({
|
|
91
|
+
level: "WARN",
|
|
92
|
+
message: `Response Validation Warnings for platform > Catalog > addInventory \n ${res_error}`,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
88
95
|
}
|
|
89
96
|
|
|
90
97
|
return response;
|
|
@@ -154,10 +161,14 @@ class Catalog {
|
|
|
154
161
|
});
|
|
155
162
|
|
|
156
163
|
if (res_error) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
164
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
165
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
166
|
+
} else {
|
|
167
|
+
Logger({
|
|
168
|
+
level: "WARN",
|
|
169
|
+
message: `Response Validation Warnings for platform > Catalog > allSizes \n ${res_error}`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
161
172
|
}
|
|
162
173
|
|
|
163
174
|
return response;
|
|
@@ -227,10 +238,14 @@ class Catalog {
|
|
|
227
238
|
});
|
|
228
239
|
|
|
229
240
|
if (res_error) {
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
241
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
242
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
243
|
+
} else {
|
|
244
|
+
Logger({
|
|
245
|
+
level: "WARN",
|
|
246
|
+
message: `Response Validation Warnings for platform > Catalog > bulkHsnCode \n ${res_error}`,
|
|
247
|
+
});
|
|
248
|
+
}
|
|
234
249
|
}
|
|
235
250
|
|
|
236
251
|
return response;
|
|
@@ -304,10 +319,14 @@ class Catalog {
|
|
|
304
319
|
});
|
|
305
320
|
|
|
306
321
|
if (res_error) {
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
322
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
323
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
324
|
+
} else {
|
|
325
|
+
Logger({
|
|
326
|
+
level: "WARN",
|
|
327
|
+
message: `Response Validation Warnings for platform > Catalog > createBulkInventory \n ${res_error}`,
|
|
328
|
+
});
|
|
329
|
+
}
|
|
311
330
|
}
|
|
312
331
|
|
|
313
332
|
return response;
|
|
@@ -381,10 +400,14 @@ class Catalog {
|
|
|
381
400
|
});
|
|
382
401
|
|
|
383
402
|
if (res_error) {
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
403
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
404
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
405
|
+
} else {
|
|
406
|
+
Logger({
|
|
407
|
+
level: "WARN",
|
|
408
|
+
message: `Response Validation Warnings for platform > Catalog > createBulkInventoryJob \n ${res_error}`,
|
|
409
|
+
});
|
|
410
|
+
}
|
|
388
411
|
}
|
|
389
412
|
|
|
390
413
|
return response;
|
|
@@ -458,10 +481,14 @@ class Catalog {
|
|
|
458
481
|
});
|
|
459
482
|
|
|
460
483
|
if (res_error) {
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
484
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
485
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
486
|
+
} else {
|
|
487
|
+
Logger({
|
|
488
|
+
level: "WARN",
|
|
489
|
+
message: `Response Validation Warnings for platform > Catalog > createBulkProductUploadJob \n ${res_error}`,
|
|
490
|
+
});
|
|
491
|
+
}
|
|
465
492
|
}
|
|
466
493
|
|
|
467
494
|
return response;
|
|
@@ -533,10 +560,14 @@ class Catalog {
|
|
|
533
560
|
});
|
|
534
561
|
|
|
535
562
|
if (res_error) {
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
563
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
564
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
565
|
+
} else {
|
|
566
|
+
Logger({
|
|
567
|
+
level: "WARN",
|
|
568
|
+
message: `Response Validation Warnings for platform > Catalog > createCategories \n ${res_error}`,
|
|
569
|
+
});
|
|
570
|
+
}
|
|
540
571
|
}
|
|
541
572
|
|
|
542
573
|
return response;
|
|
@@ -609,10 +640,14 @@ class Catalog {
|
|
|
609
640
|
});
|
|
610
641
|
|
|
611
642
|
if (res_error) {
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
643
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
644
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
645
|
+
} else {
|
|
646
|
+
Logger({
|
|
647
|
+
level: "WARN",
|
|
648
|
+
message: `Response Validation Warnings for platform > Catalog > createDepartments \n ${res_error}`,
|
|
649
|
+
});
|
|
650
|
+
}
|
|
616
651
|
}
|
|
617
652
|
|
|
618
653
|
return response;
|
|
@@ -684,10 +719,14 @@ class Catalog {
|
|
|
684
719
|
});
|
|
685
720
|
|
|
686
721
|
if (res_error) {
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
722
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
723
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
724
|
+
} else {
|
|
725
|
+
Logger({
|
|
726
|
+
level: "WARN",
|
|
727
|
+
message: `Response Validation Warnings for platform > Catalog > createInventoryExport \n ${res_error}`,
|
|
728
|
+
});
|
|
729
|
+
}
|
|
691
730
|
}
|
|
692
731
|
|
|
693
732
|
return response;
|
|
@@ -761,10 +800,14 @@ class Catalog {
|
|
|
761
800
|
});
|
|
762
801
|
|
|
763
802
|
if (res_error) {
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
803
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
804
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
805
|
+
} else {
|
|
806
|
+
Logger({
|
|
807
|
+
level: "WARN",
|
|
808
|
+
message: `Response Validation Warnings for platform > Catalog > createInventoryExportJob \n ${res_error}`,
|
|
809
|
+
});
|
|
810
|
+
}
|
|
768
811
|
}
|
|
769
812
|
|
|
770
813
|
return response;
|
|
@@ -840,10 +883,14 @@ class Catalog {
|
|
|
840
883
|
});
|
|
841
884
|
|
|
842
885
|
if (res_error) {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
886
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
887
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
888
|
+
} else {
|
|
889
|
+
Logger({
|
|
890
|
+
level: "WARN",
|
|
891
|
+
message: `Response Validation Warnings for platform > Catalog > createMarketplaceOptin \n ${res_error}`,
|
|
892
|
+
});
|
|
893
|
+
}
|
|
847
894
|
}
|
|
848
895
|
|
|
849
896
|
return response;
|
|
@@ -915,10 +962,14 @@ class Catalog {
|
|
|
915
962
|
});
|
|
916
963
|
|
|
917
964
|
if (res_error) {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
965
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
966
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
967
|
+
} else {
|
|
968
|
+
Logger({
|
|
969
|
+
level: "WARN",
|
|
970
|
+
message: `Response Validation Warnings for platform > Catalog > createProduct \n ${res_error}`,
|
|
971
|
+
});
|
|
972
|
+
}
|
|
922
973
|
}
|
|
923
974
|
|
|
924
975
|
return response;
|
|
@@ -992,10 +1043,14 @@ class Catalog {
|
|
|
992
1043
|
});
|
|
993
1044
|
|
|
994
1045
|
if (res_error) {
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1046
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1047
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1048
|
+
} else {
|
|
1049
|
+
Logger({
|
|
1050
|
+
level: "WARN",
|
|
1051
|
+
message: `Response Validation Warnings for platform > Catalog > createProductAssetsInBulk \n ${res_error}`,
|
|
1052
|
+
});
|
|
1053
|
+
}
|
|
999
1054
|
}
|
|
1000
1055
|
|
|
1001
1056
|
return response;
|
|
@@ -1069,10 +1124,14 @@ class Catalog {
|
|
|
1069
1124
|
);
|
|
1070
1125
|
|
|
1071
1126
|
if (res_error) {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1127
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1128
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1129
|
+
} else {
|
|
1130
|
+
Logger({
|
|
1131
|
+
level: "WARN",
|
|
1132
|
+
message: `Response Validation Warnings for platform > Catalog > createProductBundle \n ${res_error}`,
|
|
1133
|
+
});
|
|
1134
|
+
}
|
|
1076
1135
|
}
|
|
1077
1136
|
|
|
1078
1137
|
return response;
|
|
@@ -1147,10 +1206,14 @@ class Catalog {
|
|
|
1147
1206
|
});
|
|
1148
1207
|
|
|
1149
1208
|
if (res_error) {
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1209
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1210
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1211
|
+
} else {
|
|
1212
|
+
Logger({
|
|
1213
|
+
level: "WARN",
|
|
1214
|
+
message: `Response Validation Warnings for platform > Catalog > createProductExportJob \n ${res_error}`,
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1154
1217
|
}
|
|
1155
1218
|
|
|
1156
1219
|
return response;
|
|
@@ -1224,10 +1287,14 @@ class Catalog {
|
|
|
1224
1287
|
});
|
|
1225
1288
|
|
|
1226
1289
|
if (res_error) {
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1290
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1291
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1292
|
+
} else {
|
|
1293
|
+
Logger({
|
|
1294
|
+
level: "WARN",
|
|
1295
|
+
message: `Response Validation Warnings for platform > Catalog > createProductsInBulk \n ${res_error}`,
|
|
1296
|
+
});
|
|
1297
|
+
}
|
|
1231
1298
|
}
|
|
1232
1299
|
|
|
1233
1300
|
return response;
|
|
@@ -1299,10 +1366,14 @@ class Catalog {
|
|
|
1299
1366
|
});
|
|
1300
1367
|
|
|
1301
1368
|
if (res_error) {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1369
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1370
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1371
|
+
} else {
|
|
1372
|
+
Logger({
|
|
1373
|
+
level: "WARN",
|
|
1374
|
+
message: `Response Validation Warnings for platform > Catalog > createSizeGuide \n ${res_error}`,
|
|
1375
|
+
});
|
|
1376
|
+
}
|
|
1306
1377
|
}
|
|
1307
1378
|
|
|
1308
1379
|
return response;
|
|
@@ -1376,10 +1447,14 @@ class Catalog {
|
|
|
1376
1447
|
});
|
|
1377
1448
|
|
|
1378
1449
|
if (res_error) {
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1450
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1451
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1452
|
+
} else {
|
|
1453
|
+
Logger({
|
|
1454
|
+
level: "WARN",
|
|
1455
|
+
message: `Response Validation Warnings for platform > Catalog > deleteBulkInventoryJob \n ${res_error}`,
|
|
1456
|
+
});
|
|
1457
|
+
}
|
|
1383
1458
|
}
|
|
1384
1459
|
|
|
1385
1460
|
return response;
|
|
@@ -1455,10 +1530,14 @@ class Catalog {
|
|
|
1455
1530
|
});
|
|
1456
1531
|
|
|
1457
1532
|
if (res_error) {
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1533
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1534
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1535
|
+
} else {
|
|
1536
|
+
Logger({
|
|
1537
|
+
level: "WARN",
|
|
1538
|
+
message: `Response Validation Warnings for platform > Catalog > deleteInventory \n ${res_error}`,
|
|
1539
|
+
});
|
|
1540
|
+
}
|
|
1462
1541
|
}
|
|
1463
1542
|
|
|
1464
1543
|
return response;
|
|
@@ -1530,10 +1609,14 @@ class Catalog {
|
|
|
1530
1609
|
});
|
|
1531
1610
|
|
|
1532
1611
|
if (res_error) {
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1612
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1613
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1614
|
+
} else {
|
|
1615
|
+
Logger({
|
|
1616
|
+
level: "WARN",
|
|
1617
|
+
message: `Response Validation Warnings for platform > Catalog > deleteProduct \n ${res_error}`,
|
|
1618
|
+
});
|
|
1619
|
+
}
|
|
1537
1620
|
}
|
|
1538
1621
|
|
|
1539
1622
|
return response;
|
|
@@ -1605,10 +1688,14 @@ class Catalog {
|
|
|
1605
1688
|
});
|
|
1606
1689
|
|
|
1607
1690
|
if (res_error) {
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1691
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1692
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1693
|
+
} else {
|
|
1694
|
+
Logger({
|
|
1695
|
+
level: "WARN",
|
|
1696
|
+
message: `Response Validation Warnings for platform > Catalog > deleteProductBulkJob \n ${res_error}`,
|
|
1697
|
+
});
|
|
1698
|
+
}
|
|
1612
1699
|
}
|
|
1613
1700
|
|
|
1614
1701
|
return response;
|
|
@@ -1686,10 +1773,14 @@ class Catalog {
|
|
|
1686
1773
|
});
|
|
1687
1774
|
|
|
1688
1775
|
if (res_error) {
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1776
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1777
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1778
|
+
} else {
|
|
1779
|
+
Logger({
|
|
1780
|
+
level: "WARN",
|
|
1781
|
+
message: `Response Validation Warnings for platform > Catalog > deleteRealtimeInventory \n ${res_error}`,
|
|
1782
|
+
});
|
|
1783
|
+
}
|
|
1693
1784
|
}
|
|
1694
1785
|
|
|
1695
1786
|
return response;
|
|
@@ -1762,10 +1853,14 @@ class Catalog {
|
|
|
1762
1853
|
);
|
|
1763
1854
|
|
|
1764
1855
|
if (res_error) {
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1856
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1857
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1858
|
+
} else {
|
|
1859
|
+
Logger({
|
|
1860
|
+
level: "WARN",
|
|
1861
|
+
message: `Response Validation Warnings for platform > Catalog > deleteSize \n ${res_error}`,
|
|
1862
|
+
});
|
|
1863
|
+
}
|
|
1769
1864
|
}
|
|
1770
1865
|
|
|
1771
1866
|
return response;
|
|
@@ -1839,10 +1934,14 @@ class Catalog {
|
|
|
1839
1934
|
.validate(responseData, { abortEarly: false, allowUnknown: false });
|
|
1840
1935
|
|
|
1841
1936
|
if (res_error) {
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1937
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1938
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1939
|
+
} else {
|
|
1940
|
+
Logger({
|
|
1941
|
+
level: "WARN",
|
|
1942
|
+
message: `Response Validation Warnings for platform > Catalog > downloadInventoryTemplateView \n ${res_error}`,
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1846
1945
|
}
|
|
1847
1946
|
|
|
1848
1947
|
return response;
|
|
@@ -1921,10 +2020,14 @@ class Catalog {
|
|
|
1921
2020
|
.validate(responseData, { abortEarly: false, allowUnknown: false });
|
|
1922
2021
|
|
|
1923
2022
|
if (res_error) {
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
2023
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2024
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2025
|
+
} else {
|
|
2026
|
+
Logger({
|
|
2027
|
+
level: "WARN",
|
|
2028
|
+
message: `Response Validation Warnings for platform > Catalog > downloadProductTemplateViews \n ${res_error}`,
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
1928
2031
|
}
|
|
1929
2032
|
|
|
1930
2033
|
return response;
|
|
@@ -1996,10 +2099,14 @@ class Catalog {
|
|
|
1996
2099
|
});
|
|
1997
2100
|
|
|
1998
2101
|
if (res_error) {
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2102
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2103
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2104
|
+
} else {
|
|
2105
|
+
Logger({
|
|
2106
|
+
level: "WARN",
|
|
2107
|
+
message: `Response Validation Warnings for platform > Catalog > editProduct \n ${res_error}`,
|
|
2108
|
+
});
|
|
2109
|
+
}
|
|
2003
2110
|
}
|
|
2004
2111
|
|
|
2005
2112
|
return response;
|
|
@@ -2072,10 +2179,14 @@ class Catalog {
|
|
|
2072
2179
|
});
|
|
2073
2180
|
|
|
2074
2181
|
if (res_error) {
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2182
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2183
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2184
|
+
} else {
|
|
2185
|
+
Logger({
|
|
2186
|
+
level: "WARN",
|
|
2187
|
+
message: `Response Validation Warnings for platform > Catalog > exportInventoryConfig \n ${res_error}`,
|
|
2188
|
+
});
|
|
2189
|
+
}
|
|
2079
2190
|
}
|
|
2080
2191
|
|
|
2081
2192
|
return response;
|
|
@@ -2159,10 +2270,14 @@ class Catalog {
|
|
|
2159
2270
|
);
|
|
2160
2271
|
|
|
2161
2272
|
if (res_error) {
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2273
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2274
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2275
|
+
} else {
|
|
2276
|
+
Logger({
|
|
2277
|
+
level: "WARN",
|
|
2278
|
+
message: `Response Validation Warnings for platform > Catalog > getAllProductHsnCodes \n ${res_error}`,
|
|
2279
|
+
});
|
|
2280
|
+
}
|
|
2166
2281
|
}
|
|
2167
2282
|
|
|
2168
2283
|
return response;
|
|
@@ -2234,10 +2349,14 @@ class Catalog {
|
|
|
2234
2349
|
});
|
|
2235
2350
|
|
|
2236
2351
|
if (res_error) {
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2352
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2353
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2354
|
+
} else {
|
|
2355
|
+
Logger({
|
|
2356
|
+
level: "WARN",
|
|
2357
|
+
message: `Response Validation Warnings for platform > Catalog > getCategoryData \n ${res_error}`,
|
|
2358
|
+
});
|
|
2359
|
+
}
|
|
2241
2360
|
}
|
|
2242
2361
|
|
|
2243
2362
|
return response;
|
|
@@ -2325,10 +2444,14 @@ class Catalog {
|
|
|
2325
2444
|
);
|
|
2326
2445
|
|
|
2327
2446
|
if (res_error) {
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2447
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2448
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2449
|
+
} else {
|
|
2450
|
+
Logger({
|
|
2451
|
+
level: "WARN",
|
|
2452
|
+
message: `Response Validation Warnings for platform > Catalog > getCompanyBrandDetail \n ${res_error}`,
|
|
2453
|
+
});
|
|
2454
|
+
}
|
|
2332
2455
|
}
|
|
2333
2456
|
|
|
2334
2457
|
return response;
|
|
@@ -2396,10 +2519,14 @@ class Catalog {
|
|
|
2396
2519
|
});
|
|
2397
2520
|
|
|
2398
2521
|
if (res_error) {
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2522
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2523
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2524
|
+
} else {
|
|
2525
|
+
Logger({
|
|
2526
|
+
level: "WARN",
|
|
2527
|
+
message: `Response Validation Warnings for platform > Catalog > getCompanyDetail \n ${res_error}`,
|
|
2528
|
+
});
|
|
2529
|
+
}
|
|
2403
2530
|
}
|
|
2404
2531
|
|
|
2405
2532
|
return response;
|
|
@@ -2467,10 +2594,14 @@ class Catalog {
|
|
|
2467
2594
|
});
|
|
2468
2595
|
|
|
2469
2596
|
if (res_error) {
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2597
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2598
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2599
|
+
} else {
|
|
2600
|
+
Logger({
|
|
2601
|
+
level: "WARN",
|
|
2602
|
+
message: `Response Validation Warnings for platform > Catalog > getCompanyMetrics \n ${res_error}`,
|
|
2603
|
+
});
|
|
2604
|
+
}
|
|
2474
2605
|
}
|
|
2475
2606
|
|
|
2476
2607
|
return response;
|
|
@@ -2542,10 +2673,14 @@ class Catalog {
|
|
|
2542
2673
|
});
|
|
2543
2674
|
|
|
2544
2675
|
if (res_error) {
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2676
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2677
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2678
|
+
} else {
|
|
2679
|
+
Logger({
|
|
2680
|
+
level: "WARN",
|
|
2681
|
+
message: `Response Validation Warnings for platform > Catalog > getDepartmentData \n ${res_error}`,
|
|
2682
|
+
});
|
|
2683
|
+
}
|
|
2549
2684
|
}
|
|
2550
2685
|
|
|
2551
2686
|
return response;
|
|
@@ -2617,10 +2752,14 @@ class Catalog {
|
|
|
2617
2752
|
});
|
|
2618
2753
|
|
|
2619
2754
|
if (res_error) {
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2755
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2756
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2757
|
+
} else {
|
|
2758
|
+
Logger({
|
|
2759
|
+
level: "WARN",
|
|
2760
|
+
message: `Response Validation Warnings for platform > Catalog > getGenderAttribute \n ${res_error}`,
|
|
2761
|
+
});
|
|
2762
|
+
}
|
|
2624
2763
|
}
|
|
2625
2764
|
|
|
2626
2765
|
return response;
|
|
@@ -2690,10 +2829,14 @@ class Catalog {
|
|
|
2690
2829
|
});
|
|
2691
2830
|
|
|
2692
2831
|
if (res_error) {
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2832
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2833
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2834
|
+
} else {
|
|
2835
|
+
Logger({
|
|
2836
|
+
level: "WARN",
|
|
2837
|
+
message: `Response Validation Warnings for platform > Catalog > getHsnCode \n ${res_error}`,
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2697
2840
|
}
|
|
2698
2841
|
|
|
2699
2842
|
return response;
|
|
@@ -2797,10 +2940,14 @@ class Catalog {
|
|
|
2797
2940
|
});
|
|
2798
2941
|
|
|
2799
2942
|
if (res_error) {
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2943
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
2944
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2945
|
+
} else {
|
|
2946
|
+
Logger({
|
|
2947
|
+
level: "WARN",
|
|
2948
|
+
message: `Response Validation Warnings for platform > Catalog > getInventories \n ${res_error}`,
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2804
2951
|
}
|
|
2805
2952
|
|
|
2806
2953
|
return response;
|
|
@@ -2880,10 +3027,14 @@ class Catalog {
|
|
|
2880
3027
|
});
|
|
2881
3028
|
|
|
2882
3029
|
if (res_error) {
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
3030
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3031
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3032
|
+
} else {
|
|
3033
|
+
Logger({
|
|
3034
|
+
level: "WARN",
|
|
3035
|
+
message: `Response Validation Warnings for platform > Catalog > getInventoryBulkUploadHistory \n ${res_error}`,
|
|
3036
|
+
});
|
|
3037
|
+
}
|
|
2887
3038
|
}
|
|
2888
3039
|
|
|
2889
3040
|
return response;
|
|
@@ -2972,10 +3123,14 @@ class Catalog {
|
|
|
2972
3123
|
);
|
|
2973
3124
|
|
|
2974
3125
|
if (res_error) {
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
3126
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3127
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3128
|
+
} else {
|
|
3129
|
+
Logger({
|
|
3130
|
+
level: "WARN",
|
|
3131
|
+
message: `Response Validation Warnings for platform > Catalog > getInventoryBySize \n ${res_error}`,
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
2979
3134
|
}
|
|
2980
3135
|
|
|
2981
3136
|
return response;
|
|
@@ -3075,10 +3230,14 @@ class Catalog {
|
|
|
3075
3230
|
);
|
|
3076
3231
|
|
|
3077
3232
|
if (res_error) {
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3233
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3234
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3235
|
+
} else {
|
|
3236
|
+
Logger({
|
|
3237
|
+
level: "WARN",
|
|
3238
|
+
message: `Response Validation Warnings for platform > Catalog > getInventoryBySizeIdentifier \n ${res_error}`,
|
|
3239
|
+
});
|
|
3240
|
+
}
|
|
3082
3241
|
}
|
|
3083
3242
|
|
|
3084
3243
|
return response;
|
|
@@ -3146,10 +3305,14 @@ class Catalog {
|
|
|
3146
3305
|
});
|
|
3147
3306
|
|
|
3148
3307
|
if (res_error) {
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3308
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3309
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3310
|
+
} else {
|
|
3311
|
+
Logger({
|
|
3312
|
+
level: "WARN",
|
|
3313
|
+
message: `Response Validation Warnings for platform > Catalog > getInventoryExport \n ${res_error}`,
|
|
3314
|
+
});
|
|
3315
|
+
}
|
|
3153
3316
|
}
|
|
3154
3317
|
|
|
3155
3318
|
return response;
|
|
@@ -3219,10 +3382,14 @@ class Catalog {
|
|
|
3219
3382
|
});
|
|
3220
3383
|
|
|
3221
3384
|
if (res_error) {
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3385
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3386
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3387
|
+
} else {
|
|
3388
|
+
Logger({
|
|
3389
|
+
level: "WARN",
|
|
3390
|
+
message: `Response Validation Warnings for platform > Catalog > getMarketplaceOptinDetail \n ${res_error}`,
|
|
3391
|
+
});
|
|
3392
|
+
}
|
|
3226
3393
|
}
|
|
3227
3394
|
|
|
3228
3395
|
return response;
|
|
@@ -3294,10 +3461,14 @@ class Catalog {
|
|
|
3294
3461
|
});
|
|
3295
3462
|
|
|
3296
3463
|
if (res_error) {
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3464
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3465
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3466
|
+
} else {
|
|
3467
|
+
Logger({
|
|
3468
|
+
level: "WARN",
|
|
3469
|
+
message: `Response Validation Warnings for platform > Catalog > getOptimalLocations \n ${res_error}`,
|
|
3470
|
+
});
|
|
3471
|
+
}
|
|
3301
3472
|
}
|
|
3302
3473
|
|
|
3303
3474
|
return response;
|
|
@@ -3373,10 +3544,14 @@ class Catalog {
|
|
|
3373
3544
|
});
|
|
3374
3545
|
|
|
3375
3546
|
if (res_error) {
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3547
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3548
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3549
|
+
} else {
|
|
3550
|
+
Logger({
|
|
3551
|
+
level: "WARN",
|
|
3552
|
+
message: `Response Validation Warnings for platform > Catalog > getProduct \n ${res_error}`,
|
|
3553
|
+
});
|
|
3554
|
+
}
|
|
3380
3555
|
}
|
|
3381
3556
|
|
|
3382
3557
|
return response;
|
|
@@ -3454,10 +3629,14 @@ class Catalog {
|
|
|
3454
3629
|
});
|
|
3455
3630
|
|
|
3456
3631
|
if (res_error) {
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3632
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3633
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3634
|
+
} else {
|
|
3635
|
+
Logger({
|
|
3636
|
+
level: "WARN",
|
|
3637
|
+
message: `Response Validation Warnings for platform > Catalog > getProductAssetsInBulk \n ${res_error}`,
|
|
3638
|
+
});
|
|
3639
|
+
}
|
|
3461
3640
|
}
|
|
3462
3641
|
|
|
3463
3642
|
return response;
|
|
@@ -3534,10 +3713,14 @@ class Catalog {
|
|
|
3534
3713
|
);
|
|
3535
3714
|
|
|
3536
3715
|
if (res_error) {
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3716
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3717
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3718
|
+
} else {
|
|
3719
|
+
Logger({
|
|
3720
|
+
level: "WARN",
|
|
3721
|
+
message: `Response Validation Warnings for platform > Catalog > getProductAttributes \n ${res_error}`,
|
|
3722
|
+
});
|
|
3723
|
+
}
|
|
3541
3724
|
}
|
|
3542
3725
|
|
|
3543
3726
|
return response;
|
|
@@ -3618,10 +3801,14 @@ class Catalog {
|
|
|
3618
3801
|
});
|
|
3619
3802
|
|
|
3620
3803
|
if (res_error) {
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3804
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3805
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3806
|
+
} else {
|
|
3807
|
+
Logger({
|
|
3808
|
+
level: "WARN",
|
|
3809
|
+
message: `Response Validation Warnings for platform > Catalog > getProductBulkUploadHistory \n ${res_error}`,
|
|
3810
|
+
});
|
|
3811
|
+
}
|
|
3625
3812
|
}
|
|
3626
3813
|
|
|
3627
3814
|
return response;
|
|
@@ -3699,10 +3886,14 @@ class Catalog {
|
|
|
3699
3886
|
);
|
|
3700
3887
|
|
|
3701
3888
|
if (res_error) {
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3889
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3890
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3891
|
+
} else {
|
|
3892
|
+
Logger({
|
|
3893
|
+
level: "WARN",
|
|
3894
|
+
message: `Response Validation Warnings for platform > Catalog > getProductBundle \n ${res_error}`,
|
|
3895
|
+
});
|
|
3896
|
+
}
|
|
3706
3897
|
}
|
|
3707
3898
|
|
|
3708
3899
|
return response;
|
|
@@ -3777,10 +3968,14 @@ class Catalog {
|
|
|
3777
3968
|
});
|
|
3778
3969
|
|
|
3779
3970
|
if (res_error) {
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3971
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
3972
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3973
|
+
} else {
|
|
3974
|
+
Logger({
|
|
3975
|
+
level: "WARN",
|
|
3976
|
+
message: `Response Validation Warnings for platform > Catalog > getProductBundleDetail \n ${res_error}`,
|
|
3977
|
+
});
|
|
3978
|
+
}
|
|
3784
3979
|
}
|
|
3785
3980
|
|
|
3786
3981
|
return response;
|
|
@@ -3863,10 +4058,14 @@ class Catalog {
|
|
|
3863
4058
|
});
|
|
3864
4059
|
|
|
3865
4060
|
if (res_error) {
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
4061
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4062
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4063
|
+
} else {
|
|
4064
|
+
Logger({
|
|
4065
|
+
level: "WARN",
|
|
4066
|
+
message: `Response Validation Warnings for platform > Catalog > getProductExportJobs \n ${res_error}`,
|
|
4067
|
+
});
|
|
4068
|
+
}
|
|
3870
4069
|
}
|
|
3871
4070
|
|
|
3872
4071
|
return response;
|
|
@@ -3949,10 +4148,14 @@ class Catalog {
|
|
|
3949
4148
|
});
|
|
3950
4149
|
|
|
3951
4150
|
if (res_error) {
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
4151
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4152
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4153
|
+
} else {
|
|
4154
|
+
Logger({
|
|
4155
|
+
level: "WARN",
|
|
4156
|
+
message: `Response Validation Warnings for platform > Catalog > getProductSize \n ${res_error}`,
|
|
4157
|
+
});
|
|
4158
|
+
}
|
|
3956
4159
|
}
|
|
3957
4160
|
|
|
3958
4161
|
return response;
|
|
@@ -4020,10 +4223,14 @@ class Catalog {
|
|
|
4020
4223
|
});
|
|
4021
4224
|
|
|
4022
4225
|
if (res_error) {
|
|
4023
|
-
|
|
4024
|
-
|
|
4025
|
-
|
|
4026
|
-
|
|
4226
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4227
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4228
|
+
} else {
|
|
4229
|
+
Logger({
|
|
4230
|
+
level: "WARN",
|
|
4231
|
+
message: `Response Validation Warnings for platform > Catalog > getProductTags \n ${res_error}`,
|
|
4232
|
+
});
|
|
4233
|
+
}
|
|
4027
4234
|
}
|
|
4028
4235
|
|
|
4029
4236
|
return response;
|
|
@@ -4091,10 +4298,14 @@ class Catalog {
|
|
|
4091
4298
|
});
|
|
4092
4299
|
|
|
4093
4300
|
if (res_error) {
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4301
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4302
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4303
|
+
} else {
|
|
4304
|
+
Logger({
|
|
4305
|
+
level: "WARN",
|
|
4306
|
+
message: `Response Validation Warnings for platform > Catalog > getProductValidation \n ${res_error}`,
|
|
4307
|
+
});
|
|
4308
|
+
}
|
|
4098
4309
|
}
|
|
4099
4310
|
|
|
4100
4311
|
return response;
|
|
@@ -4201,10 +4412,14 @@ class Catalog {
|
|
|
4201
4412
|
});
|
|
4202
4413
|
|
|
4203
4414
|
if (res_error) {
|
|
4204
|
-
|
|
4205
|
-
|
|
4206
|
-
|
|
4207
|
-
|
|
4415
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4416
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4417
|
+
} else {
|
|
4418
|
+
Logger({
|
|
4419
|
+
level: "WARN",
|
|
4420
|
+
message: `Response Validation Warnings for platform > Catalog > getProducts \n ${res_error}`,
|
|
4421
|
+
});
|
|
4422
|
+
}
|
|
4208
4423
|
}
|
|
4209
4424
|
|
|
4210
4425
|
return response;
|
|
@@ -4276,10 +4491,14 @@ class Catalog {
|
|
|
4276
4491
|
});
|
|
4277
4492
|
|
|
4278
4493
|
if (res_error) {
|
|
4279
|
-
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4494
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4495
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4496
|
+
} else {
|
|
4497
|
+
Logger({
|
|
4498
|
+
level: "WARN",
|
|
4499
|
+
message: `Response Validation Warnings for platform > Catalog > getSellerInsights \n ${res_error}`,
|
|
4500
|
+
});
|
|
4501
|
+
}
|
|
4283
4502
|
}
|
|
4284
4503
|
|
|
4285
4504
|
return response;
|
|
@@ -4349,10 +4568,14 @@ class Catalog {
|
|
|
4349
4568
|
});
|
|
4350
4569
|
|
|
4351
4570
|
if (res_error) {
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4571
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4572
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4573
|
+
} else {
|
|
4574
|
+
Logger({
|
|
4575
|
+
level: "WARN",
|
|
4576
|
+
message: `Response Validation Warnings for platform > Catalog > getSingleProductHSNCode \n ${res_error}`,
|
|
4577
|
+
});
|
|
4578
|
+
}
|
|
4356
4579
|
}
|
|
4357
4580
|
|
|
4358
4581
|
return response;
|
|
@@ -4424,10 +4647,14 @@ class Catalog {
|
|
|
4424
4647
|
});
|
|
4425
4648
|
|
|
4426
4649
|
if (res_error) {
|
|
4427
|
-
|
|
4428
|
-
|
|
4429
|
-
|
|
4430
|
-
|
|
4650
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4651
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4652
|
+
} else {
|
|
4653
|
+
Logger({
|
|
4654
|
+
level: "WARN",
|
|
4655
|
+
message: `Response Validation Warnings for platform > Catalog > getSizeGuide \n ${res_error}`,
|
|
4656
|
+
});
|
|
4657
|
+
}
|
|
4431
4658
|
}
|
|
4432
4659
|
|
|
4433
4660
|
return response;
|
|
@@ -4514,10 +4741,14 @@ class Catalog {
|
|
|
4514
4741
|
});
|
|
4515
4742
|
|
|
4516
4743
|
if (res_error) {
|
|
4517
|
-
|
|
4518
|
-
|
|
4519
|
-
|
|
4520
|
-
|
|
4744
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4745
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4746
|
+
} else {
|
|
4747
|
+
Logger({
|
|
4748
|
+
level: "WARN",
|
|
4749
|
+
message: `Response Validation Warnings for platform > Catalog > getSizeGuides \n ${res_error}`,
|
|
4750
|
+
});
|
|
4751
|
+
}
|
|
4521
4752
|
}
|
|
4522
4753
|
|
|
4523
4754
|
return response;
|
|
@@ -4596,10 +4827,14 @@ class Catalog {
|
|
|
4596
4827
|
});
|
|
4597
4828
|
|
|
4598
4829
|
if (res_error) {
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4830
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4831
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4832
|
+
} else {
|
|
4833
|
+
Logger({
|
|
4834
|
+
level: "WARN",
|
|
4835
|
+
message: `Response Validation Warnings for platform > Catalog > getStoreDetail \n ${res_error}`,
|
|
4836
|
+
});
|
|
4837
|
+
}
|
|
4603
4838
|
}
|
|
4604
4839
|
|
|
4605
4840
|
return response;
|
|
@@ -4681,10 +4916,14 @@ class Catalog {
|
|
|
4681
4916
|
});
|
|
4682
4917
|
|
|
4683
4918
|
if (res_error) {
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4919
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
4920
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
4921
|
+
} else {
|
|
4922
|
+
Logger({
|
|
4923
|
+
level: "WARN",
|
|
4924
|
+
message: `Response Validation Warnings for platform > Catalog > getVariantsOfProducts \n ${res_error}`,
|
|
4925
|
+
});
|
|
4926
|
+
}
|
|
4688
4927
|
}
|
|
4689
4928
|
|
|
4690
4929
|
return response;
|
|
@@ -4771,10 +5010,14 @@ class Catalog {
|
|
|
4771
5010
|
});
|
|
4772
5011
|
|
|
4773
5012
|
if (res_error) {
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
|
|
5013
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5014
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5015
|
+
} else {
|
|
5016
|
+
Logger({
|
|
5017
|
+
level: "WARN",
|
|
5018
|
+
message: `Response Validation Warnings for platform > Catalog > listCategories \n ${res_error}`,
|
|
5019
|
+
});
|
|
5020
|
+
}
|
|
4778
5021
|
}
|
|
4779
5022
|
|
|
4780
5023
|
return response;
|
|
@@ -4864,10 +5107,14 @@ class Catalog {
|
|
|
4864
5107
|
});
|
|
4865
5108
|
|
|
4866
5109
|
if (res_error) {
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
5110
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5111
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5112
|
+
} else {
|
|
5113
|
+
Logger({
|
|
5114
|
+
level: "WARN",
|
|
5115
|
+
message: `Response Validation Warnings for platform > Catalog > listDepartmentsData \n ${res_error}`,
|
|
5116
|
+
});
|
|
5117
|
+
}
|
|
4871
5118
|
}
|
|
4872
5119
|
|
|
4873
5120
|
return response;
|
|
@@ -4935,10 +5182,14 @@ class Catalog {
|
|
|
4935
5182
|
});
|
|
4936
5183
|
|
|
4937
5184
|
if (res_error) {
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
5185
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5186
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5187
|
+
} else {
|
|
5188
|
+
Logger({
|
|
5189
|
+
level: "WARN",
|
|
5190
|
+
message: `Response Validation Warnings for platform > Catalog > listHSNCodes \n ${res_error}`,
|
|
5191
|
+
});
|
|
5192
|
+
}
|
|
4942
5193
|
}
|
|
4943
5194
|
|
|
4944
5195
|
return response;
|
|
@@ -5022,10 +5273,14 @@ class Catalog {
|
|
|
5022
5273
|
);
|
|
5023
5274
|
|
|
5024
5275
|
if (res_error) {
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5276
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5277
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5278
|
+
} else {
|
|
5279
|
+
Logger({
|
|
5280
|
+
level: "WARN",
|
|
5281
|
+
message: `Response Validation Warnings for platform > Catalog > listInventoryExport \n ${res_error}`,
|
|
5282
|
+
});
|
|
5283
|
+
}
|
|
5029
5284
|
}
|
|
5030
5285
|
|
|
5031
5286
|
return response;
|
|
@@ -5098,10 +5353,14 @@ class Catalog {
|
|
|
5098
5353
|
});
|
|
5099
5354
|
|
|
5100
5355
|
if (res_error) {
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5356
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5357
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5358
|
+
} else {
|
|
5359
|
+
Logger({
|
|
5360
|
+
level: "WARN",
|
|
5361
|
+
message: `Response Validation Warnings for platform > Catalog > listProductTemplate \n ${res_error}`,
|
|
5362
|
+
});
|
|
5363
|
+
}
|
|
5105
5364
|
}
|
|
5106
5365
|
|
|
5107
5366
|
return response;
|
|
@@ -5183,10 +5442,14 @@ class Catalog {
|
|
|
5183
5442
|
);
|
|
5184
5443
|
|
|
5185
5444
|
if (res_error) {
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5445
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5446
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5447
|
+
} else {
|
|
5448
|
+
Logger({
|
|
5449
|
+
level: "WARN",
|
|
5450
|
+
message: `Response Validation Warnings for platform > Catalog > listProductTemplateCategories \n ${res_error}`,
|
|
5451
|
+
});
|
|
5452
|
+
}
|
|
5190
5453
|
}
|
|
5191
5454
|
|
|
5192
5455
|
return response;
|
|
@@ -5259,10 +5522,14 @@ class Catalog {
|
|
|
5259
5522
|
});
|
|
5260
5523
|
|
|
5261
5524
|
if (res_error) {
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5525
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5526
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5527
|
+
} else {
|
|
5528
|
+
Logger({
|
|
5529
|
+
level: "WARN",
|
|
5530
|
+
message: `Response Validation Warnings for platform > Catalog > listProductTemplateExportDetails \n ${res_error}`,
|
|
5531
|
+
});
|
|
5532
|
+
}
|
|
5266
5533
|
}
|
|
5267
5534
|
|
|
5268
5535
|
return response;
|
|
@@ -5344,10 +5611,14 @@ class Catalog {
|
|
|
5344
5611
|
);
|
|
5345
5612
|
|
|
5346
5613
|
if (res_error) {
|
|
5347
|
-
|
|
5348
|
-
|
|
5349
|
-
|
|
5350
|
-
|
|
5614
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5615
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5616
|
+
} else {
|
|
5617
|
+
Logger({
|
|
5618
|
+
level: "WARN",
|
|
5619
|
+
message: `Response Validation Warnings for platform > Catalog > listTemplateBrandTypeValues \n ${res_error}`,
|
|
5620
|
+
});
|
|
5621
|
+
}
|
|
5351
5622
|
}
|
|
5352
5623
|
|
|
5353
5624
|
return response;
|
|
@@ -5421,10 +5692,14 @@ class Catalog {
|
|
|
5421
5692
|
});
|
|
5422
5693
|
|
|
5423
5694
|
if (res_error) {
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5695
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5696
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5697
|
+
} else {
|
|
5698
|
+
Logger({
|
|
5699
|
+
level: "WARN",
|
|
5700
|
+
message: `Response Validation Warnings for platform > Catalog > updateCategory \n ${res_error}`,
|
|
5701
|
+
});
|
|
5702
|
+
}
|
|
5428
5703
|
}
|
|
5429
5704
|
|
|
5430
5705
|
return response;
|
|
@@ -5498,10 +5773,14 @@ class Catalog {
|
|
|
5498
5773
|
});
|
|
5499
5774
|
|
|
5500
5775
|
if (res_error) {
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5776
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5777
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5778
|
+
} else {
|
|
5779
|
+
Logger({
|
|
5780
|
+
level: "WARN",
|
|
5781
|
+
message: `Response Validation Warnings for platform > Catalog > updateDepartment \n ${res_error}`,
|
|
5782
|
+
});
|
|
5783
|
+
}
|
|
5505
5784
|
}
|
|
5506
5785
|
|
|
5507
5786
|
return response;
|
|
@@ -5575,10 +5854,14 @@ class Catalog {
|
|
|
5575
5854
|
});
|
|
5576
5855
|
|
|
5577
5856
|
if (res_error) {
|
|
5578
|
-
|
|
5579
|
-
|
|
5580
|
-
|
|
5581
|
-
|
|
5857
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5858
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5859
|
+
} else {
|
|
5860
|
+
Logger({
|
|
5861
|
+
level: "WARN",
|
|
5862
|
+
message: `Response Validation Warnings for platform > Catalog > updateHsnCode \n ${res_error}`,
|
|
5863
|
+
});
|
|
5864
|
+
}
|
|
5582
5865
|
}
|
|
5583
5866
|
|
|
5584
5867
|
return response;
|
|
@@ -5650,10 +5933,14 @@ class Catalog {
|
|
|
5650
5933
|
});
|
|
5651
5934
|
|
|
5652
5935
|
if (res_error) {
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5936
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
5937
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
5938
|
+
} else {
|
|
5939
|
+
Logger({
|
|
5940
|
+
level: "WARN",
|
|
5941
|
+
message: `Response Validation Warnings for platform > Catalog > updateInventories \n ${res_error}`,
|
|
5942
|
+
});
|
|
5943
|
+
}
|
|
5657
5944
|
}
|
|
5658
5945
|
|
|
5659
5946
|
return response;
|
|
@@ -5729,10 +6016,14 @@ class Catalog {
|
|
|
5729
6016
|
);
|
|
5730
6017
|
|
|
5731
6018
|
if (res_error) {
|
|
5732
|
-
|
|
5733
|
-
|
|
5734
|
-
|
|
5735
|
-
|
|
6019
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6020
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6021
|
+
} else {
|
|
6022
|
+
Logger({
|
|
6023
|
+
level: "WARN",
|
|
6024
|
+
message: `Response Validation Warnings for platform > Catalog > updateProductBundle \n ${res_error}`,
|
|
6025
|
+
});
|
|
6026
|
+
}
|
|
5736
6027
|
}
|
|
5737
6028
|
|
|
5738
6029
|
return response;
|
|
@@ -5810,10 +6101,14 @@ class Catalog {
|
|
|
5810
6101
|
});
|
|
5811
6102
|
|
|
5812
6103
|
if (res_error) {
|
|
5813
|
-
|
|
5814
|
-
|
|
5815
|
-
|
|
5816
|
-
|
|
6104
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6105
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6106
|
+
} else {
|
|
6107
|
+
Logger({
|
|
6108
|
+
level: "WARN",
|
|
6109
|
+
message: `Response Validation Warnings for platform > Catalog > updateRealtimeInventory \n ${res_error}`,
|
|
6110
|
+
});
|
|
6111
|
+
}
|
|
5817
6112
|
}
|
|
5818
6113
|
|
|
5819
6114
|
return response;
|
|
@@ -5887,10 +6182,14 @@ class Catalog {
|
|
|
5887
6182
|
});
|
|
5888
6183
|
|
|
5889
6184
|
if (res_error) {
|
|
5890
|
-
|
|
5891
|
-
|
|
5892
|
-
|
|
5893
|
-
|
|
6185
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6186
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6187
|
+
} else {
|
|
6188
|
+
Logger({
|
|
6189
|
+
level: "WARN",
|
|
6190
|
+
message: `Response Validation Warnings for platform > Catalog > updateSizeGuide \n ${res_error}`,
|
|
6191
|
+
});
|
|
6192
|
+
}
|
|
5894
6193
|
}
|
|
5895
6194
|
|
|
5896
6195
|
return response;
|
|
@@ -5968,10 +6267,14 @@ class Catalog {
|
|
|
5968
6267
|
});
|
|
5969
6268
|
|
|
5970
6269
|
if (res_error) {
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
6270
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6271
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6272
|
+
} else {
|
|
6273
|
+
Logger({
|
|
6274
|
+
level: "WARN",
|
|
6275
|
+
message: `Response Validation Warnings for platform > Catalog > uploadBulkProducts \n ${res_error}`,
|
|
6276
|
+
});
|
|
6277
|
+
}
|
|
5975
6278
|
}
|
|
5976
6279
|
|
|
5977
6280
|
return response;
|
|
@@ -6052,10 +6355,14 @@ class Catalog {
|
|
|
6052
6355
|
);
|
|
6053
6356
|
|
|
6054
6357
|
if (res_error) {
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6358
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6359
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6360
|
+
} else {
|
|
6361
|
+
Logger({
|
|
6362
|
+
level: "WARN",
|
|
6363
|
+
message: `Response Validation Warnings for platform > Catalog > validateProductTemplate \n ${res_error}`,
|
|
6364
|
+
});
|
|
6365
|
+
}
|
|
6059
6366
|
}
|
|
6060
6367
|
|
|
6061
6368
|
return response;
|
|
@@ -6133,10 +6440,14 @@ class Catalog {
|
|
|
6133
6440
|
);
|
|
6134
6441
|
|
|
6135
6442
|
if (res_error) {
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6443
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
6444
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
6445
|
+
} else {
|
|
6446
|
+
Logger({
|
|
6447
|
+
level: "WARN",
|
|
6448
|
+
message: `Response Validation Warnings for platform > Catalog > validateProductTemplateSchema \n ${res_error}`,
|
|
6449
|
+
});
|
|
6450
|
+
}
|
|
6140
6451
|
}
|
|
6141
6452
|
|
|
6142
6453
|
return response;
|