@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
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const CatalogApplicationValidator = require("./CatalogApplicationValidator");
|
|
@@ -143,10 +146,14 @@ class Catalog {
|
|
|
143
146
|
});
|
|
144
147
|
|
|
145
148
|
if (res_error) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
149
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
150
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
151
|
+
} else {
|
|
152
|
+
Logger({
|
|
153
|
+
level: "WARN",
|
|
154
|
+
message: `Response Validation Warnings for application > Catalog > followById \n ${res_error}`,
|
|
155
|
+
});
|
|
156
|
+
}
|
|
150
157
|
}
|
|
151
158
|
|
|
152
159
|
return response;
|
|
@@ -219,10 +226,14 @@ class Catalog {
|
|
|
219
226
|
});
|
|
220
227
|
|
|
221
228
|
if (res_error) {
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
229
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
230
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
231
|
+
} else {
|
|
232
|
+
Logger({
|
|
233
|
+
level: "WARN",
|
|
234
|
+
message: `Response Validation Warnings for application > Catalog > getBrandDetailBySlug \n ${res_error}`,
|
|
235
|
+
});
|
|
236
|
+
}
|
|
226
237
|
}
|
|
227
238
|
|
|
228
239
|
return response;
|
|
@@ -296,10 +307,14 @@ class Catalog {
|
|
|
296
307
|
});
|
|
297
308
|
|
|
298
309
|
if (res_error) {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
310
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
311
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
312
|
+
} else {
|
|
313
|
+
Logger({
|
|
314
|
+
level: "WARN",
|
|
315
|
+
message: `Response Validation Warnings for application > Catalog > getBrands \n ${res_error}`,
|
|
316
|
+
});
|
|
317
|
+
}
|
|
303
318
|
}
|
|
304
319
|
|
|
305
320
|
return response;
|
|
@@ -404,10 +419,14 @@ class Catalog {
|
|
|
404
419
|
);
|
|
405
420
|
|
|
406
421
|
if (res_error) {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
422
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
423
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
424
|
+
} else {
|
|
425
|
+
Logger({
|
|
426
|
+
level: "WARN",
|
|
427
|
+
message: `Response Validation Warnings for application > Catalog > getCategories \n ${res_error}`,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
411
430
|
}
|
|
412
431
|
|
|
413
432
|
return response;
|
|
@@ -480,10 +499,14 @@ class Catalog {
|
|
|
480
499
|
});
|
|
481
500
|
|
|
482
501
|
if (res_error) {
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
502
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
503
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
504
|
+
} else {
|
|
505
|
+
Logger({
|
|
506
|
+
level: "WARN",
|
|
507
|
+
message: `Response Validation Warnings for application > Catalog > getCategoryDetailBySlug \n ${res_error}`,
|
|
508
|
+
});
|
|
509
|
+
}
|
|
487
510
|
}
|
|
488
511
|
|
|
489
512
|
return response;
|
|
@@ -559,10 +582,14 @@ class Catalog {
|
|
|
559
582
|
);
|
|
560
583
|
|
|
561
584
|
if (res_error) {
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
585
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
586
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
587
|
+
} else {
|
|
588
|
+
Logger({
|
|
589
|
+
level: "WARN",
|
|
590
|
+
message: `Response Validation Warnings for application > Catalog > getCollectionDetailBySlug \n ${res_error}`,
|
|
591
|
+
});
|
|
592
|
+
}
|
|
566
593
|
}
|
|
567
594
|
|
|
568
595
|
return response;
|
|
@@ -656,10 +683,14 @@ class Catalog {
|
|
|
656
683
|
);
|
|
657
684
|
|
|
658
685
|
if (res_error) {
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
686
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
687
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
688
|
+
} else {
|
|
689
|
+
Logger({
|
|
690
|
+
level: "WARN",
|
|
691
|
+
message: `Response Validation Warnings for application > Catalog > getCollectionItemsBySlug \n ${res_error}`,
|
|
692
|
+
});
|
|
693
|
+
}
|
|
663
694
|
}
|
|
664
695
|
|
|
665
696
|
return response;
|
|
@@ -791,10 +822,14 @@ class Catalog {
|
|
|
791
822
|
);
|
|
792
823
|
|
|
793
824
|
if (res_error) {
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
825
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
826
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
827
|
+
} else {
|
|
828
|
+
Logger({
|
|
829
|
+
level: "WARN",
|
|
830
|
+
message: `Response Validation Warnings for application > Catalog > getCollections \n ${res_error}`,
|
|
831
|
+
});
|
|
832
|
+
}
|
|
798
833
|
}
|
|
799
834
|
|
|
800
835
|
return response;
|
|
@@ -902,10 +937,14 @@ class Catalog {
|
|
|
902
937
|
);
|
|
903
938
|
|
|
904
939
|
if (res_error) {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
940
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
941
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
942
|
+
} else {
|
|
943
|
+
Logger({
|
|
944
|
+
level: "WARN",
|
|
945
|
+
message: `Response Validation Warnings for application > Catalog > getComparedFrequentlyProductBySlug \n ${res_error}`,
|
|
946
|
+
});
|
|
947
|
+
}
|
|
909
948
|
}
|
|
910
949
|
|
|
911
950
|
return response;
|
|
@@ -976,10 +1015,14 @@ class Catalog {
|
|
|
976
1015
|
});
|
|
977
1016
|
|
|
978
1017
|
if (res_error) {
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1018
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1019
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1020
|
+
} else {
|
|
1021
|
+
Logger({
|
|
1022
|
+
level: "WARN",
|
|
1023
|
+
message: `Response Validation Warnings for application > Catalog > getDepartments \n ${res_error}`,
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
983
1026
|
}
|
|
984
1027
|
|
|
985
1028
|
return response;
|
|
@@ -1051,10 +1094,14 @@ class Catalog {
|
|
|
1051
1094
|
});
|
|
1052
1095
|
|
|
1053
1096
|
if (res_error) {
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1097
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1098
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1099
|
+
} else {
|
|
1100
|
+
Logger({
|
|
1101
|
+
level: "WARN",
|
|
1102
|
+
message: `Response Validation Warnings for application > Catalog > getFollowIds \n ${res_error}`,
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1058
1105
|
}
|
|
1059
1106
|
|
|
1060
1107
|
return response;
|
|
@@ -1130,10 +1177,14 @@ class Catalog {
|
|
|
1130
1177
|
);
|
|
1131
1178
|
|
|
1132
1179
|
if (res_error) {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1180
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1181
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1182
|
+
} else {
|
|
1183
|
+
Logger({
|
|
1184
|
+
level: "WARN",
|
|
1185
|
+
message: `Response Validation Warnings for application > Catalog > getFollowedListing \n ${res_error}`,
|
|
1186
|
+
});
|
|
1187
|
+
}
|
|
1137
1188
|
}
|
|
1138
1189
|
|
|
1139
1190
|
return response;
|
|
@@ -1237,10 +1288,14 @@ class Catalog {
|
|
|
1237
1288
|
});
|
|
1238
1289
|
|
|
1239
1290
|
if (res_error) {
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1291
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1292
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1293
|
+
} else {
|
|
1294
|
+
Logger({
|
|
1295
|
+
level: "WARN",
|
|
1296
|
+
message: `Response Validation Warnings for application > Catalog > getFollowerCountById \n ${res_error}`,
|
|
1297
|
+
});
|
|
1298
|
+
}
|
|
1244
1299
|
}
|
|
1245
1300
|
|
|
1246
1301
|
return response;
|
|
@@ -1314,10 +1369,14 @@ class Catalog {
|
|
|
1314
1369
|
});
|
|
1315
1370
|
|
|
1316
1371
|
if (res_error) {
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1372
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1373
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1374
|
+
} else {
|
|
1375
|
+
Logger({
|
|
1376
|
+
level: "WARN",
|
|
1377
|
+
message: `Response Validation Warnings for application > Catalog > getHomeProducts \n ${res_error}`,
|
|
1378
|
+
});
|
|
1379
|
+
}
|
|
1321
1380
|
}
|
|
1322
1381
|
|
|
1323
1382
|
return response;
|
|
@@ -1438,10 +1497,14 @@ class Catalog {
|
|
|
1438
1497
|
);
|
|
1439
1498
|
|
|
1440
1499
|
if (res_error) {
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1500
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1501
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1502
|
+
} else {
|
|
1503
|
+
Logger({
|
|
1504
|
+
level: "WARN",
|
|
1505
|
+
message: `Response Validation Warnings for application > Catalog > getInStockLocations \n ${res_error}`,
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1445
1508
|
}
|
|
1446
1509
|
|
|
1447
1510
|
return response;
|
|
@@ -1561,10 +1624,14 @@ class Catalog {
|
|
|
1561
1624
|
});
|
|
1562
1625
|
|
|
1563
1626
|
if (res_error) {
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1627
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1628
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1629
|
+
} else {
|
|
1630
|
+
Logger({
|
|
1631
|
+
level: "WARN",
|
|
1632
|
+
message: `Response Validation Warnings for application > Catalog > getLocationDetailsById \n ${res_error}`,
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1568
1635
|
}
|
|
1569
1636
|
|
|
1570
1637
|
return response;
|
|
@@ -1639,10 +1706,14 @@ class Catalog {
|
|
|
1639
1706
|
});
|
|
1640
1707
|
|
|
1641
1708
|
if (res_error) {
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1709
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1710
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1711
|
+
} else {
|
|
1712
|
+
Logger({
|
|
1713
|
+
level: "WARN",
|
|
1714
|
+
message: `Response Validation Warnings for application > Catalog > getProductBundlesBySlug \n ${res_error}`,
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1646
1717
|
}
|
|
1647
1718
|
|
|
1648
1719
|
return response;
|
|
@@ -1719,10 +1790,14 @@ class Catalog {
|
|
|
1719
1790
|
);
|
|
1720
1791
|
|
|
1721
1792
|
if (res_error) {
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1793
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1794
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1795
|
+
} else {
|
|
1796
|
+
Logger({
|
|
1797
|
+
level: "WARN",
|
|
1798
|
+
message: `Response Validation Warnings for application > Catalog > getProductComparisonBySlugs \n ${res_error}`,
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1726
1801
|
}
|
|
1727
1802
|
|
|
1728
1803
|
return response;
|
|
@@ -1795,10 +1870,14 @@ class Catalog {
|
|
|
1795
1870
|
});
|
|
1796
1871
|
|
|
1797
1872
|
if (res_error) {
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1873
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1874
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1875
|
+
} else {
|
|
1876
|
+
Logger({
|
|
1877
|
+
level: "WARN",
|
|
1878
|
+
message: `Response Validation Warnings for application > Catalog > getProductDetailBySlug \n ${res_error}`,
|
|
1879
|
+
});
|
|
1880
|
+
}
|
|
1802
1881
|
}
|
|
1803
1882
|
|
|
1804
1883
|
return response;
|
|
@@ -1877,10 +1956,14 @@ class Catalog {
|
|
|
1877
1956
|
);
|
|
1878
1957
|
|
|
1879
1958
|
if (res_error) {
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1959
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1960
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1961
|
+
} else {
|
|
1962
|
+
Logger({
|
|
1963
|
+
level: "WARN",
|
|
1964
|
+
message: `Response Validation Warnings for application > Catalog > getProductPriceBySlug \n ${res_error}`,
|
|
1965
|
+
});
|
|
1966
|
+
}
|
|
1884
1967
|
}
|
|
1885
1968
|
|
|
1886
1969
|
return response;
|
|
@@ -1961,10 +2044,14 @@ class Catalog {
|
|
|
1961
2044
|
);
|
|
1962
2045
|
|
|
1963
2046
|
if (res_error) {
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
2047
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2048
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2049
|
+
} else {
|
|
2050
|
+
Logger({
|
|
2051
|
+
level: "WARN",
|
|
2052
|
+
message: `Response Validation Warnings for application > Catalog > getProductSellersBySlug \n ${res_error}`,
|
|
2053
|
+
});
|
|
2054
|
+
}
|
|
1968
2055
|
}
|
|
1969
2056
|
|
|
1970
2057
|
return response;
|
|
@@ -2085,10 +2172,14 @@ class Catalog {
|
|
|
2085
2172
|
});
|
|
2086
2173
|
|
|
2087
2174
|
if (res_error) {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2175
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2176
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2177
|
+
} else {
|
|
2178
|
+
Logger({
|
|
2179
|
+
level: "WARN",
|
|
2180
|
+
message: `Response Validation Warnings for application > Catalog > getProductSizesBySlug \n ${res_error}`,
|
|
2181
|
+
});
|
|
2182
|
+
}
|
|
2092
2183
|
}
|
|
2093
2184
|
|
|
2094
2185
|
return response;
|
|
@@ -2167,10 +2258,14 @@ class Catalog {
|
|
|
2167
2258
|
);
|
|
2168
2259
|
|
|
2169
2260
|
if (res_error) {
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2261
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2262
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2263
|
+
} else {
|
|
2264
|
+
Logger({
|
|
2265
|
+
level: "WARN",
|
|
2266
|
+
message: `Response Validation Warnings for application > Catalog > getProductStockByIds \n ${res_error}`,
|
|
2267
|
+
});
|
|
2268
|
+
}
|
|
2174
2269
|
}
|
|
2175
2270
|
|
|
2176
2271
|
return response;
|
|
@@ -2248,10 +2343,14 @@ class Catalog {
|
|
|
2248
2343
|
});
|
|
2249
2344
|
|
|
2250
2345
|
if (res_error) {
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2346
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2347
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2348
|
+
} else {
|
|
2349
|
+
Logger({
|
|
2350
|
+
level: "WARN",
|
|
2351
|
+
message: `Response Validation Warnings for application > Catalog > getProductStockForTimeByIds \n ${res_error}`,
|
|
2352
|
+
});
|
|
2353
|
+
}
|
|
2255
2354
|
}
|
|
2256
2355
|
|
|
2257
2356
|
return response;
|
|
@@ -2355,10 +2454,14 @@ class Catalog {
|
|
|
2355
2454
|
);
|
|
2356
2455
|
|
|
2357
2456
|
if (res_error) {
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2457
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2458
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2459
|
+
} else {
|
|
2460
|
+
Logger({
|
|
2461
|
+
level: "WARN",
|
|
2462
|
+
message: `Response Validation Warnings for application > Catalog > getProductVariantsBySlug \n ${res_error}`,
|
|
2463
|
+
});
|
|
2464
|
+
}
|
|
2362
2465
|
}
|
|
2363
2466
|
|
|
2364
2467
|
return response;
|
|
@@ -2448,10 +2551,14 @@ class Catalog {
|
|
|
2448
2551
|
);
|
|
2449
2552
|
|
|
2450
2553
|
if (res_error) {
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2554
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2555
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2556
|
+
} else {
|
|
2557
|
+
Logger({
|
|
2558
|
+
level: "WARN",
|
|
2559
|
+
message: `Response Validation Warnings for application > Catalog > getProducts \n ${res_error}`,
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2455
2562
|
}
|
|
2456
2563
|
|
|
2457
2564
|
return response;
|
|
@@ -2567,10 +2674,14 @@ class Catalog {
|
|
|
2567
2674
|
});
|
|
2568
2675
|
|
|
2569
2676
|
if (res_error) {
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2677
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2678
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2679
|
+
} else {
|
|
2680
|
+
Logger({
|
|
2681
|
+
level: "WARN",
|
|
2682
|
+
message: `Response Validation Warnings for application > Catalog > getSearchResults \n ${res_error}`,
|
|
2683
|
+
});
|
|
2684
|
+
}
|
|
2574
2685
|
}
|
|
2575
2686
|
|
|
2576
2687
|
return response;
|
|
@@ -2646,10 +2757,14 @@ class Catalog {
|
|
|
2646
2757
|
);
|
|
2647
2758
|
|
|
2648
2759
|
if (res_error) {
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2760
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2761
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2762
|
+
} else {
|
|
2763
|
+
Logger({
|
|
2764
|
+
level: "WARN",
|
|
2765
|
+
message: `Response Validation Warnings for application > Catalog > getSimilarComparisonProductBySlug \n ${res_error}`,
|
|
2766
|
+
});
|
|
2767
|
+
}
|
|
2653
2768
|
}
|
|
2654
2769
|
|
|
2655
2770
|
return response;
|
|
@@ -2736,10 +2851,14 @@ class Catalog {
|
|
|
2736
2851
|
});
|
|
2737
2852
|
|
|
2738
2853
|
if (res_error) {
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2854
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2855
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2856
|
+
} else {
|
|
2857
|
+
Logger({
|
|
2858
|
+
level: "WARN",
|
|
2859
|
+
message: `Response Validation Warnings for application > Catalog > getStores \n ${res_error}`,
|
|
2860
|
+
});
|
|
2861
|
+
}
|
|
2743
2862
|
}
|
|
2744
2863
|
|
|
2745
2864
|
return response;
|
|
@@ -2850,10 +2969,14 @@ class Catalog {
|
|
|
2850
2969
|
});
|
|
2851
2970
|
|
|
2852
2971
|
if (res_error) {
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2972
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2973
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2974
|
+
} else {
|
|
2975
|
+
Logger({
|
|
2976
|
+
level: "WARN",
|
|
2977
|
+
message: `Response Validation Warnings for application > Catalog > unfollowById \n ${res_error}`,
|
|
2978
|
+
});
|
|
2979
|
+
}
|
|
2857
2980
|
}
|
|
2858
2981
|
|
|
2859
2982
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const CommonApplicationValidator = require("./CommonApplicationValidator");
|
|
@@ -98,10 +101,14 @@ class Common {
|
|
|
98
101
|
});
|
|
99
102
|
|
|
100
103
|
if (res_error) {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
104
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
105
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
106
|
+
} else {
|
|
107
|
+
Logger({
|
|
108
|
+
level: "WARN",
|
|
109
|
+
message: `Response Validation Warnings for application > Common > getLocations \n ${res_error}`,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
105
112
|
}
|
|
106
113
|
|
|
107
114
|
return response;
|
|
@@ -174,10 +181,14 @@ class Common {
|
|
|
174
181
|
});
|
|
175
182
|
|
|
176
183
|
if (res_error) {
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
185
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
186
|
+
} else {
|
|
187
|
+
Logger({
|
|
188
|
+
level: "WARN",
|
|
189
|
+
message: `Response Validation Warnings for application > Common > searchApplication \n ${res_error}`,
|
|
190
|
+
});
|
|
191
|
+
}
|
|
181
192
|
}
|
|
182
193
|
|
|
183
194
|
return response;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
const ApplicationAPIClient = require("../ApplicationAPIClient");
|
|
2
|
-
const {
|
|
2
|
+
const {
|
|
3
|
+
FDKClientValidationError,
|
|
4
|
+
FDKResponseValidationError,
|
|
5
|
+
} = require("../../common/FDKError");
|
|
3
6
|
const constructUrl = require("../constructUrl");
|
|
4
7
|
const Paginator = require("../../common/Paginator");
|
|
5
8
|
const CommunicationApplicationValidator = require("./CommunicationApplicationValidator");
|
|
@@ -103,10 +106,14 @@ class Communication {
|
|
|
103
106
|
);
|
|
104
107
|
|
|
105
108
|
if (res_error) {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
109
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
110
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
111
|
+
} else {
|
|
112
|
+
Logger({
|
|
113
|
+
level: "WARN",
|
|
114
|
+
message: `Response Validation Warnings for application > Communication > getCommunicationConsent \n ${res_error}`,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
110
117
|
}
|
|
111
118
|
|
|
112
119
|
return response;
|
|
@@ -180,10 +187,14 @@ class Communication {
|
|
|
180
187
|
});
|
|
181
188
|
|
|
182
189
|
if (res_error) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
190
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
191
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
192
|
+
} else {
|
|
193
|
+
Logger({
|
|
194
|
+
level: "WARN",
|
|
195
|
+
message: `Response Validation Warnings for application > Communication > upsertAppPushtoken \n ${res_error}`,
|
|
196
|
+
});
|
|
197
|
+
}
|
|
187
198
|
}
|
|
188
199
|
|
|
189
200
|
return response;
|
|
@@ -260,10 +271,14 @@ class Communication {
|
|
|
260
271
|
);
|
|
261
272
|
|
|
262
273
|
if (res_error) {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
274
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
275
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
276
|
+
} else {
|
|
277
|
+
Logger({
|
|
278
|
+
level: "WARN",
|
|
279
|
+
message: `Response Validation Warnings for application > Communication > upsertCommunicationConsent \n ${res_error}`,
|
|
280
|
+
});
|
|
281
|
+
}
|
|
267
282
|
}
|
|
268
283
|
|
|
269
284
|
return response;
|