@gofynd/fdk-client-javascript 1.3.6-beta.2 → 1.3.7
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.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +232 -116
- package/sdk/application/Cart/CartApplicationValidator.d.ts +2 -0
- package/sdk/application/Cart/CartApplicationValidator.js +2 -0
- 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.d.ts +1 -1
- package/sdk/application/PosCart/PosCartApplicationClient.js +224 -112
- package/sdk/application/PosCart/PosCartApplicationValidator.d.ts +2 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +2 -0
- 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.d.ts +1 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +460 -229
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +2 -0
- 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 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 ContentApplicationValidator = require("./ContentApplicationValidator");
|
|
@@ -116,10 +119,14 @@ class Content {
|
|
|
116
119
|
);
|
|
117
120
|
|
|
118
121
|
if (res_error) {
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
123
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
124
|
+
} else {
|
|
125
|
+
Logger({
|
|
126
|
+
level: "WARN",
|
|
127
|
+
message: `Response Validation Warnings for application > Content > getAnnouncements \n ${res_error}`,
|
|
128
|
+
});
|
|
129
|
+
}
|
|
123
130
|
}
|
|
124
131
|
|
|
125
132
|
return response;
|
|
@@ -189,10 +196,14 @@ class Content {
|
|
|
189
196
|
});
|
|
190
197
|
|
|
191
198
|
if (res_error) {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
199
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
200
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
201
|
+
} else {
|
|
202
|
+
Logger({
|
|
203
|
+
level: "WARN",
|
|
204
|
+
message: `Response Validation Warnings for application > Content > getBlog \n ${res_error}`,
|
|
205
|
+
});
|
|
206
|
+
}
|
|
196
207
|
}
|
|
197
208
|
|
|
198
209
|
return response;
|
|
@@ -263,10 +274,14 @@ class Content {
|
|
|
263
274
|
});
|
|
264
275
|
|
|
265
276
|
if (res_error) {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
277
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
278
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
279
|
+
} else {
|
|
280
|
+
Logger({
|
|
281
|
+
level: "WARN",
|
|
282
|
+
message: `Response Validation Warnings for application > Content > getBlogs \n ${res_error}`,
|
|
283
|
+
});
|
|
284
|
+
}
|
|
270
285
|
}
|
|
271
286
|
|
|
272
287
|
return response;
|
|
@@ -364,10 +379,14 @@ class Content {
|
|
|
364
379
|
});
|
|
365
380
|
|
|
366
381
|
if (res_error) {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
382
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
383
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
384
|
+
} else {
|
|
385
|
+
Logger({
|
|
386
|
+
level: "WARN",
|
|
387
|
+
message: `Response Validation Warnings for application > Content > getDataLoaders \n ${res_error}`,
|
|
388
|
+
});
|
|
389
|
+
}
|
|
371
390
|
}
|
|
372
391
|
|
|
373
392
|
return response;
|
|
@@ -438,10 +457,14 @@ class Content {
|
|
|
438
457
|
});
|
|
439
458
|
|
|
440
459
|
if (res_error) {
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
460
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
461
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
462
|
+
} else {
|
|
463
|
+
Logger({
|
|
464
|
+
level: "WARN",
|
|
465
|
+
message: `Response Validation Warnings for application > Content > getFaqBySlug \n ${res_error}`,
|
|
466
|
+
});
|
|
467
|
+
}
|
|
445
468
|
}
|
|
446
469
|
|
|
447
470
|
return response;
|
|
@@ -513,10 +536,14 @@ class Content {
|
|
|
513
536
|
);
|
|
514
537
|
|
|
515
538
|
if (res_error) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
539
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
540
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
541
|
+
} else {
|
|
542
|
+
Logger({
|
|
543
|
+
level: "WARN",
|
|
544
|
+
message: `Response Validation Warnings for application > Content > getFaqCategories \n ${res_error}`,
|
|
545
|
+
});
|
|
546
|
+
}
|
|
520
547
|
}
|
|
521
548
|
|
|
522
549
|
return response;
|
|
@@ -590,10 +617,14 @@ class Content {
|
|
|
590
617
|
);
|
|
591
618
|
|
|
592
619
|
if (res_error) {
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
620
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
621
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
622
|
+
} else {
|
|
623
|
+
Logger({
|
|
624
|
+
level: "WARN",
|
|
625
|
+
message: `Response Validation Warnings for application > Content > getFaqCategoryBySlug \n ${res_error}`,
|
|
626
|
+
});
|
|
627
|
+
}
|
|
597
628
|
}
|
|
598
629
|
|
|
599
630
|
return response;
|
|
@@ -662,10 +693,14 @@ class Content {
|
|
|
662
693
|
});
|
|
663
694
|
|
|
664
695
|
if (res_error) {
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
696
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
697
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
698
|
+
} else {
|
|
699
|
+
Logger({
|
|
700
|
+
level: "WARN",
|
|
701
|
+
message: `Response Validation Warnings for application > Content > getFaqs \n ${res_error}`,
|
|
702
|
+
});
|
|
703
|
+
}
|
|
669
704
|
}
|
|
670
705
|
|
|
671
706
|
return response;
|
|
@@ -738,10 +773,14 @@ class Content {
|
|
|
738
773
|
});
|
|
739
774
|
|
|
740
775
|
if (res_error) {
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
776
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
777
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
778
|
+
} else {
|
|
779
|
+
Logger({
|
|
780
|
+
level: "WARN",
|
|
781
|
+
message: `Response Validation Warnings for application > Content > getFaqsByCategorySlug \n ${res_error}`,
|
|
782
|
+
});
|
|
783
|
+
}
|
|
745
784
|
}
|
|
746
785
|
|
|
747
786
|
return response;
|
|
@@ -812,10 +851,14 @@ class Content {
|
|
|
812
851
|
});
|
|
813
852
|
|
|
814
853
|
if (res_error) {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
854
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
855
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
856
|
+
} else {
|
|
857
|
+
Logger({
|
|
858
|
+
level: "WARN",
|
|
859
|
+
message: `Response Validation Warnings for application > Content > getLandingPage \n ${res_error}`,
|
|
860
|
+
});
|
|
861
|
+
}
|
|
819
862
|
}
|
|
820
863
|
|
|
821
864
|
return response;
|
|
@@ -888,10 +931,14 @@ class Content {
|
|
|
888
931
|
});
|
|
889
932
|
|
|
890
933
|
if (res_error) {
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
934
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
935
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
936
|
+
} else {
|
|
937
|
+
Logger({
|
|
938
|
+
level: "WARN",
|
|
939
|
+
message: `Response Validation Warnings for application > Content > getLegalInformation \n ${res_error}`,
|
|
940
|
+
});
|
|
941
|
+
}
|
|
895
942
|
}
|
|
896
943
|
|
|
897
944
|
return response;
|
|
@@ -965,10 +1012,14 @@ class Content {
|
|
|
965
1012
|
});
|
|
966
1013
|
|
|
967
1014
|
if (res_error) {
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
1015
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1016
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1017
|
+
} else {
|
|
1018
|
+
Logger({
|
|
1019
|
+
level: "WARN",
|
|
1020
|
+
message: `Response Validation Warnings for application > Content > getNavigations \n ${res_error}`,
|
|
1021
|
+
});
|
|
1022
|
+
}
|
|
972
1023
|
}
|
|
973
1024
|
|
|
974
1025
|
return response;
|
|
@@ -1065,10 +1116,14 @@ class Content {
|
|
|
1065
1116
|
});
|
|
1066
1117
|
|
|
1067
1118
|
if (res_error) {
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1119
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1120
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1121
|
+
} else {
|
|
1122
|
+
Logger({
|
|
1123
|
+
level: "WARN",
|
|
1124
|
+
message: `Response Validation Warnings for application > Content > getPage \n ${res_error}`,
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1072
1127
|
}
|
|
1073
1128
|
|
|
1074
1129
|
return response;
|
|
@@ -1139,10 +1194,14 @@ class Content {
|
|
|
1139
1194
|
});
|
|
1140
1195
|
|
|
1141
1196
|
if (res_error) {
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1197
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1198
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1199
|
+
} else {
|
|
1200
|
+
Logger({
|
|
1201
|
+
level: "WARN",
|
|
1202
|
+
message: `Response Validation Warnings for application > Content > getPages \n ${res_error}`,
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1146
1205
|
}
|
|
1147
1206
|
|
|
1148
1207
|
return response;
|
|
@@ -1242,10 +1301,14 @@ class Content {
|
|
|
1242
1301
|
});
|
|
1243
1302
|
|
|
1244
1303
|
if (res_error) {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1304
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1305
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1306
|
+
} else {
|
|
1307
|
+
Logger({
|
|
1308
|
+
level: "WARN",
|
|
1309
|
+
message: `Response Validation Warnings for application > Content > getSEOConfiguration \n ${res_error}`,
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1249
1312
|
}
|
|
1250
1313
|
|
|
1251
1314
|
return response;
|
|
@@ -1316,10 +1379,14 @@ class Content {
|
|
|
1316
1379
|
});
|
|
1317
1380
|
|
|
1318
1381
|
if (res_error) {
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1382
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1383
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1384
|
+
} else {
|
|
1385
|
+
Logger({
|
|
1386
|
+
level: "WARN",
|
|
1387
|
+
message: `Response Validation Warnings for application > Content > getSlideshow \n ${res_error}`,
|
|
1388
|
+
});
|
|
1389
|
+
}
|
|
1323
1390
|
}
|
|
1324
1391
|
|
|
1325
1392
|
return response;
|
|
@@ -1392,10 +1459,14 @@ class Content {
|
|
|
1392
1459
|
});
|
|
1393
1460
|
|
|
1394
1461
|
if (res_error) {
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1462
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1463
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1464
|
+
} else {
|
|
1465
|
+
Logger({
|
|
1466
|
+
level: "WARN",
|
|
1467
|
+
message: `Response Validation Warnings for application > Content > getSlideshows \n ${res_error}`,
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1399
1470
|
}
|
|
1400
1471
|
|
|
1401
1472
|
return response;
|
|
@@ -1495,10 +1566,14 @@ class Content {
|
|
|
1495
1566
|
});
|
|
1496
1567
|
|
|
1497
1568
|
if (res_error) {
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1569
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1570
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1571
|
+
} else {
|
|
1572
|
+
Logger({
|
|
1573
|
+
level: "WARN",
|
|
1574
|
+
message: `Response Validation Warnings for application > Content > getSupportInformation \n ${res_error}`,
|
|
1575
|
+
});
|
|
1576
|
+
}
|
|
1502
1577
|
}
|
|
1503
1578
|
|
|
1504
1579
|
return response;
|
|
@@ -1567,10 +1642,14 @@ class Content {
|
|
|
1567
1642
|
});
|
|
1568
1643
|
|
|
1569
1644
|
if (res_error) {
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1645
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1646
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1647
|
+
} else {
|
|
1648
|
+
Logger({
|
|
1649
|
+
level: "WARN",
|
|
1650
|
+
message: `Response Validation Warnings for application > Content > getTags \n ${res_error}`,
|
|
1651
|
+
});
|
|
1652
|
+
}
|
|
1574
1653
|
}
|
|
1575
1654
|
|
|
1576
1655
|
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 FileStorageApplicationValidator = require("./FileStorageApplicationValidator");
|
|
@@ -117,10 +120,14 @@ class FileStorage {
|
|
|
117
120
|
});
|
|
118
121
|
|
|
119
122
|
if (res_error) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
123
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
124
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
125
|
+
} else {
|
|
126
|
+
Logger({
|
|
127
|
+
level: "WARN",
|
|
128
|
+
message: `Response Validation Warnings for application > FileStorage > completeUpload \n ${res_error}`,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
124
131
|
}
|
|
125
132
|
|
|
126
133
|
return response;
|
|
@@ -191,10 +198,14 @@ class FileStorage {
|
|
|
191
198
|
});
|
|
192
199
|
|
|
193
200
|
if (res_error) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
201
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
202
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
203
|
+
} else {
|
|
204
|
+
Logger({
|
|
205
|
+
level: "WARN",
|
|
206
|
+
message: `Response Validation Warnings for application > FileStorage > signUrls \n ${res_error}`,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
198
209
|
}
|
|
199
210
|
|
|
200
211
|
return response;
|
|
@@ -283,10 +294,14 @@ class FileStorage {
|
|
|
283
294
|
});
|
|
284
295
|
|
|
285
296
|
if (res_error) {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
297
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
298
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
299
|
+
} else {
|
|
300
|
+
Logger({
|
|
301
|
+
level: "WARN",
|
|
302
|
+
message: `Response Validation Warnings for application > FileStorage > startUpload \n ${res_error}`,
|
|
303
|
+
});
|
|
304
|
+
}
|
|
290
305
|
}
|
|
291
306
|
|
|
292
307
|
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 LeadApplicationValidator = require("./LeadApplicationValidator");
|
|
@@ -102,10 +105,14 @@ class Lead {
|
|
|
102
105
|
});
|
|
103
106
|
|
|
104
107
|
if (res_error) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
109
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
110
|
+
} else {
|
|
111
|
+
Logger({
|
|
112
|
+
level: "WARN",
|
|
113
|
+
message: `Response Validation Warnings for application > Lead > createHistory \n ${res_error}`,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
109
116
|
}
|
|
110
117
|
|
|
111
118
|
return response;
|
|
@@ -176,10 +183,14 @@ class Lead {
|
|
|
176
183
|
});
|
|
177
184
|
|
|
178
185
|
if (res_error) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
187
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
188
|
+
} else {
|
|
189
|
+
Logger({
|
|
190
|
+
level: "WARN",
|
|
191
|
+
message: `Response Validation Warnings for application > Lead > createTicket \n ${res_error}`,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
return response;
|
|
@@ -250,10 +261,14 @@ class Lead {
|
|
|
250
261
|
});
|
|
251
262
|
|
|
252
263
|
if (res_error) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
265
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
266
|
+
} else {
|
|
267
|
+
Logger({
|
|
268
|
+
level: "WARN",
|
|
269
|
+
message: `Response Validation Warnings for application > Lead > getCustomForm \n ${res_error}`,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
257
272
|
}
|
|
258
273
|
|
|
259
274
|
return response;
|
|
@@ -330,10 +345,14 @@ class Lead {
|
|
|
330
345
|
);
|
|
331
346
|
|
|
332
347
|
if (res_error) {
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
348
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
349
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
350
|
+
} else {
|
|
351
|
+
Logger({
|
|
352
|
+
level: "WARN",
|
|
353
|
+
message: `Response Validation Warnings for application > Lead > getParticipantsInsideVideoRoom \n ${res_error}`,
|
|
354
|
+
});
|
|
355
|
+
}
|
|
337
356
|
}
|
|
338
357
|
|
|
339
358
|
return response;
|
|
@@ -402,10 +421,14 @@ class Lead {
|
|
|
402
421
|
});
|
|
403
422
|
|
|
404
423
|
if (res_error) {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
424
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
425
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
426
|
+
} else {
|
|
427
|
+
Logger({
|
|
428
|
+
level: "WARN",
|
|
429
|
+
message: `Response Validation Warnings for application > Lead > getTicket \n ${res_error}`,
|
|
430
|
+
});
|
|
431
|
+
}
|
|
409
432
|
}
|
|
410
433
|
|
|
411
434
|
return response;
|
|
@@ -477,10 +500,14 @@ class Lead {
|
|
|
477
500
|
);
|
|
478
501
|
|
|
479
502
|
if (res_error) {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
503
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
504
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
505
|
+
} else {
|
|
506
|
+
Logger({
|
|
507
|
+
level: "WARN",
|
|
508
|
+
message: `Response Validation Warnings for application > Lead > getTokenForVideoRoom \n ${res_error}`,
|
|
509
|
+
});
|
|
510
|
+
}
|
|
484
511
|
}
|
|
485
512
|
|
|
486
513
|
return response;
|
|
@@ -552,10 +579,14 @@ class Lead {
|
|
|
552
579
|
});
|
|
553
580
|
|
|
554
581
|
if (res_error) {
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
582
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
583
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
584
|
+
} else {
|
|
585
|
+
Logger({
|
|
586
|
+
level: "WARN",
|
|
587
|
+
message: `Response Validation Warnings for application > Lead > submitCustomForm \n ${res_error}`,
|
|
588
|
+
});
|
|
589
|
+
}
|
|
559
590
|
}
|
|
560
591
|
|
|
561
592
|
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 LogisticApplicationValidator = require("./LogisticApplicationValidator");
|
|
@@ -99,10 +102,14 @@ class Logistic {
|
|
|
99
102
|
});
|
|
100
103
|
|
|
101
104
|
if (res_error) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
105
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
106
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
107
|
+
} else {
|
|
108
|
+
Logger({
|
|
109
|
+
level: "WARN",
|
|
110
|
+
message: `Response Validation Warnings for application > Logistic > getAllCountries \n ${res_error}`,
|
|
111
|
+
});
|
|
112
|
+
}
|
|
106
113
|
}
|
|
107
114
|
|
|
108
115
|
return response;
|
|
@@ -176,10 +183,14 @@ class Logistic {
|
|
|
176
183
|
);
|
|
177
184
|
|
|
178
185
|
if (res_error) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
187
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
188
|
+
} else {
|
|
189
|
+
Logger({
|
|
190
|
+
level: "WARN",
|
|
191
|
+
message: `Response Validation Warnings for application > Logistic > getOptimalLocations \n ${res_error}`,
|
|
192
|
+
});
|
|
193
|
+
}
|
|
183
194
|
}
|
|
184
195
|
|
|
185
196
|
return response;
|
|
@@ -250,10 +261,14 @@ class Logistic {
|
|
|
250
261
|
});
|
|
251
262
|
|
|
252
263
|
if (res_error) {
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
264
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
265
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
266
|
+
} else {
|
|
267
|
+
Logger({
|
|
268
|
+
level: "WARN",
|
|
269
|
+
message: `Response Validation Warnings for application > Logistic > getPincodeCity \n ${res_error}`,
|
|
270
|
+
});
|
|
271
|
+
}
|
|
257
272
|
}
|
|
258
273
|
|
|
259
274
|
return response;
|
|
@@ -326,10 +341,14 @@ class Logistic {
|
|
|
326
341
|
);
|
|
327
342
|
|
|
328
343
|
if (res_error) {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
344
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
345
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
346
|
+
} else {
|
|
347
|
+
Logger({
|
|
348
|
+
level: "WARN",
|
|
349
|
+
message: `Response Validation Warnings for application > Logistic > getPincodeZones \n ${res_error}`,
|
|
350
|
+
});
|
|
351
|
+
}
|
|
333
352
|
}
|
|
334
353
|
|
|
335
354
|
return response;
|
|
@@ -400,10 +419,14 @@ class Logistic {
|
|
|
400
419
|
});
|
|
401
420
|
|
|
402
421
|
if (res_error) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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 > Logistic > getTatProduct \n ${res_error}`,
|
|
428
|
+
});
|
|
429
|
+
}
|
|
407
430
|
}
|
|
408
431
|
|
|
409
432
|
return response;
|