@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
|
@@ -76,10 +76,14 @@ class User {
|
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
if (res_error) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
79
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
80
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
81
|
+
} else {
|
|
82
|
+
Logger({
|
|
83
|
+
level: "WARN",
|
|
84
|
+
message: `Response Validation Warnings for platform > User > archiveUser \n ${res_error}`,
|
|
85
|
+
});
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
|
|
85
89
|
return response;
|
|
@@ -151,10 +155,14 @@ class User {
|
|
|
151
155
|
});
|
|
152
156
|
|
|
153
157
|
if (res_error) {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
159
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
160
|
+
} else {
|
|
161
|
+
Logger({
|
|
162
|
+
level: "WARN",
|
|
163
|
+
message: `Response Validation Warnings for platform > User > blockOrUnblockUsers \n ${res_error}`,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
158
166
|
}
|
|
159
167
|
|
|
160
168
|
return response;
|
|
@@ -224,10 +232,14 @@ class User {
|
|
|
224
232
|
});
|
|
225
233
|
|
|
226
234
|
if (res_error) {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
235
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
236
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
237
|
+
} else {
|
|
238
|
+
Logger({
|
|
239
|
+
level: "WARN",
|
|
240
|
+
message: `Response Validation Warnings for platform > User > createUser \n ${res_error}`,
|
|
241
|
+
});
|
|
242
|
+
}
|
|
231
243
|
}
|
|
232
244
|
|
|
233
245
|
return response;
|
|
@@ -299,10 +311,14 @@ class User {
|
|
|
299
311
|
});
|
|
300
312
|
|
|
301
313
|
if (res_error) {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
314
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
315
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
316
|
+
} else {
|
|
317
|
+
Logger({
|
|
318
|
+
level: "WARN",
|
|
319
|
+
message: `Response Validation Warnings for platform > User > createUserGroup \n ${res_error}`,
|
|
320
|
+
});
|
|
321
|
+
}
|
|
306
322
|
}
|
|
307
323
|
|
|
308
324
|
return response;
|
|
@@ -375,10 +391,14 @@ class User {
|
|
|
375
391
|
);
|
|
376
392
|
|
|
377
393
|
if (res_error) {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
394
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
395
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
396
|
+
} else {
|
|
397
|
+
Logger({
|
|
398
|
+
level: "WARN",
|
|
399
|
+
message: `Response Validation Warnings for platform > User > createUserSession \n ${res_error}`,
|
|
400
|
+
});
|
|
401
|
+
}
|
|
382
402
|
}
|
|
383
403
|
|
|
384
404
|
return response;
|
|
@@ -457,10 +477,14 @@ class User {
|
|
|
457
477
|
);
|
|
458
478
|
|
|
459
479
|
if (res_error) {
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
480
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
481
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
482
|
+
} else {
|
|
483
|
+
Logger({
|
|
484
|
+
level: "WARN",
|
|
485
|
+
message: `Response Validation Warnings for platform > User > deleteActiveSessions \n ${res_error}`,
|
|
486
|
+
});
|
|
487
|
+
}
|
|
464
488
|
}
|
|
465
489
|
|
|
466
490
|
return response;
|
|
@@ -538,10 +562,14 @@ class User {
|
|
|
538
562
|
});
|
|
539
563
|
|
|
540
564
|
if (res_error) {
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
565
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
566
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
567
|
+
} else {
|
|
568
|
+
Logger({
|
|
569
|
+
level: "WARN",
|
|
570
|
+
message: `Response Validation Warnings for platform > User > deleteSession \n ${res_error}`,
|
|
571
|
+
});
|
|
572
|
+
}
|
|
545
573
|
}
|
|
546
574
|
|
|
547
575
|
return response;
|
|
@@ -614,10 +642,14 @@ class User {
|
|
|
614
642
|
});
|
|
615
643
|
|
|
616
644
|
if (res_error) {
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
645
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
646
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
647
|
+
} else {
|
|
648
|
+
Logger({
|
|
649
|
+
level: "WARN",
|
|
650
|
+
message: `Response Validation Warnings for platform > User > getActiveSessions \n ${res_error}`,
|
|
651
|
+
});
|
|
652
|
+
}
|
|
621
653
|
}
|
|
622
654
|
|
|
623
655
|
return response;
|
|
@@ -694,10 +726,14 @@ class User {
|
|
|
694
726
|
});
|
|
695
727
|
|
|
696
728
|
if (res_error) {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
729
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
730
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
731
|
+
} else {
|
|
732
|
+
Logger({
|
|
733
|
+
level: "WARN",
|
|
734
|
+
message: `Response Validation Warnings for platform > User > getCustomers \n ${res_error}`,
|
|
735
|
+
});
|
|
736
|
+
}
|
|
701
737
|
}
|
|
702
738
|
|
|
703
739
|
return response;
|
|
@@ -765,10 +801,14 @@ class User {
|
|
|
765
801
|
});
|
|
766
802
|
|
|
767
803
|
if (res_error) {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
804
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
805
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
806
|
+
} else {
|
|
807
|
+
Logger({
|
|
808
|
+
level: "WARN",
|
|
809
|
+
message: `Response Validation Warnings for platform > User > getPlatformConfig \n ${res_error}`,
|
|
810
|
+
});
|
|
811
|
+
}
|
|
772
812
|
}
|
|
773
813
|
|
|
774
814
|
return response;
|
|
@@ -840,10 +880,14 @@ class User {
|
|
|
840
880
|
});
|
|
841
881
|
|
|
842
882
|
if (res_error) {
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
883
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
884
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
885
|
+
} else {
|
|
886
|
+
Logger({
|
|
887
|
+
level: "WARN",
|
|
888
|
+
message: `Response Validation Warnings for platform > User > getUserGroupById \n ${res_error}`,
|
|
889
|
+
});
|
|
890
|
+
}
|
|
847
891
|
}
|
|
848
892
|
|
|
849
893
|
return response;
|
|
@@ -929,10 +973,14 @@ class User {
|
|
|
929
973
|
});
|
|
930
974
|
|
|
931
975
|
if (res_error) {
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
976
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
977
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
978
|
+
} else {
|
|
979
|
+
Logger({
|
|
980
|
+
level: "WARN",
|
|
981
|
+
message: `Response Validation Warnings for platform > User > getUserGroups \n ${res_error}`,
|
|
982
|
+
});
|
|
983
|
+
}
|
|
936
984
|
}
|
|
937
985
|
|
|
938
986
|
return response;
|
|
@@ -1006,10 +1054,14 @@ class User {
|
|
|
1006
1054
|
});
|
|
1007
1055
|
|
|
1008
1056
|
if (res_error) {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1057
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1058
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1059
|
+
} else {
|
|
1060
|
+
Logger({
|
|
1061
|
+
level: "WARN",
|
|
1062
|
+
message: `Response Validation Warnings for platform > User > searchUsers \n ${res_error}`,
|
|
1063
|
+
});
|
|
1064
|
+
}
|
|
1013
1065
|
}
|
|
1014
1066
|
|
|
1015
1067
|
return response;
|
|
@@ -1079,10 +1131,14 @@ class User {
|
|
|
1079
1131
|
});
|
|
1080
1132
|
|
|
1081
1133
|
if (res_error) {
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1134
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1135
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1136
|
+
} else {
|
|
1137
|
+
Logger({
|
|
1138
|
+
level: "WARN",
|
|
1139
|
+
message: `Response Validation Warnings for platform > User > unDeleteUser \n ${res_error}`,
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1086
1142
|
}
|
|
1087
1143
|
|
|
1088
1144
|
return response;
|
|
@@ -1156,10 +1212,14 @@ class User {
|
|
|
1156
1212
|
});
|
|
1157
1213
|
|
|
1158
1214
|
if (res_error) {
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1215
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1216
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1217
|
+
} else {
|
|
1218
|
+
Logger({
|
|
1219
|
+
level: "WARN",
|
|
1220
|
+
message: `Response Validation Warnings for platform > User > updatePlatformConfig \n ${res_error}`,
|
|
1221
|
+
});
|
|
1222
|
+
}
|
|
1163
1223
|
}
|
|
1164
1224
|
|
|
1165
1225
|
return response;
|
|
@@ -1231,10 +1291,14 @@ class User {
|
|
|
1231
1291
|
});
|
|
1232
1292
|
|
|
1233
1293
|
if (res_error) {
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1294
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1295
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1296
|
+
} else {
|
|
1297
|
+
Logger({
|
|
1298
|
+
level: "WARN",
|
|
1299
|
+
message: `Response Validation Warnings for platform > User > updateUser \n ${res_error}`,
|
|
1300
|
+
});
|
|
1301
|
+
}
|
|
1238
1302
|
}
|
|
1239
1303
|
|
|
1240
1304
|
return response;
|
|
@@ -1308,10 +1372,14 @@ class User {
|
|
|
1308
1372
|
});
|
|
1309
1373
|
|
|
1310
1374
|
if (res_error) {
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1375
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1376
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1377
|
+
} else {
|
|
1378
|
+
Logger({
|
|
1379
|
+
level: "WARN",
|
|
1380
|
+
message: `Response Validation Warnings for platform > User > updateUserGroup \n ${res_error}`,
|
|
1381
|
+
});
|
|
1382
|
+
}
|
|
1315
1383
|
}
|
|
1316
1384
|
|
|
1317
1385
|
return response;
|
|
@@ -1387,10 +1455,14 @@ class User {
|
|
|
1387
1455
|
});
|
|
1388
1456
|
|
|
1389
1457
|
if (res_error) {
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1458
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1459
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1460
|
+
} else {
|
|
1461
|
+
Logger({
|
|
1462
|
+
level: "WARN",
|
|
1463
|
+
message: `Response Validation Warnings for platform > User > updateUserGroupPartially \n ${res_error}`,
|
|
1464
|
+
});
|
|
1465
|
+
}
|
|
1394
1466
|
}
|
|
1395
1467
|
|
|
1396
1468
|
return response;
|
|
@@ -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 WebhookPlatformValidator = require("./WebhookPlatformValidator");
|
|
5
8
|
const WebhookPlatformModel = require("./WebhookPlatformModel");
|
|
@@ -77,10 +80,14 @@ class Webhook {
|
|
|
77
80
|
});
|
|
78
81
|
|
|
79
82
|
if (res_error) {
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
83
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
84
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
85
|
+
} else {
|
|
86
|
+
Logger({
|
|
87
|
+
level: "WARN",
|
|
88
|
+
message: `Response Validation Warnings for platform > Webhook > cancelJobByName \n ${res_error}`,
|
|
89
|
+
});
|
|
90
|
+
}
|
|
84
91
|
}
|
|
85
92
|
|
|
86
93
|
return response;
|
|
@@ -152,10 +159,14 @@ class Webhook {
|
|
|
152
159
|
});
|
|
153
160
|
|
|
154
161
|
if (res_error) {
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
162
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
163
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
164
|
+
} else {
|
|
165
|
+
Logger({
|
|
166
|
+
level: "WARN",
|
|
167
|
+
message: `Response Validation Warnings for platform > Webhook > downloadDeliveryReport \n ${res_error}`,
|
|
168
|
+
});
|
|
169
|
+
}
|
|
159
170
|
}
|
|
160
171
|
|
|
161
172
|
return response;
|
|
@@ -225,10 +236,14 @@ class Webhook {
|
|
|
225
236
|
});
|
|
226
237
|
|
|
227
238
|
if (res_error) {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
239
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
240
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
241
|
+
} else {
|
|
242
|
+
Logger({
|
|
243
|
+
level: "WARN",
|
|
244
|
+
message: `Response Validation Warnings for platform > Webhook > fetchAllEventConfigurations \n ${res_error}`,
|
|
245
|
+
});
|
|
246
|
+
}
|
|
232
247
|
}
|
|
233
248
|
|
|
234
249
|
return response;
|
|
@@ -300,10 +315,14 @@ class Webhook {
|
|
|
300
315
|
});
|
|
301
316
|
|
|
302
317
|
if (res_error) {
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
318
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
319
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
320
|
+
} else {
|
|
321
|
+
Logger({
|
|
322
|
+
level: "WARN",
|
|
323
|
+
message: `Response Validation Warnings for platform > Webhook > getDeliveryReports \n ${res_error}`,
|
|
324
|
+
});
|
|
325
|
+
}
|
|
307
326
|
}
|
|
308
327
|
|
|
309
328
|
return response;
|
|
@@ -378,10 +397,14 @@ class Webhook {
|
|
|
378
397
|
);
|
|
379
398
|
|
|
380
399
|
if (res_error) {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
400
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
401
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
402
|
+
} else {
|
|
403
|
+
Logger({
|
|
404
|
+
level: "WARN",
|
|
405
|
+
message: `Response Validation Warnings for platform > Webhook > getEventCounts \n ${res_error}`,
|
|
406
|
+
});
|
|
407
|
+
}
|
|
385
408
|
}
|
|
386
409
|
|
|
387
410
|
return response;
|
|
@@ -453,10 +476,14 @@ class Webhook {
|
|
|
453
476
|
});
|
|
454
477
|
|
|
455
478
|
if (res_error) {
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
479
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
480
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
481
|
+
} else {
|
|
482
|
+
Logger({
|
|
483
|
+
level: "WARN",
|
|
484
|
+
message: `Response Validation Warnings for platform > Webhook > getHistoricalReports \n ${res_error}`,
|
|
485
|
+
});
|
|
486
|
+
}
|
|
460
487
|
}
|
|
461
488
|
|
|
462
489
|
return response;
|
|
@@ -525,10 +552,14 @@ class Webhook {
|
|
|
525
552
|
});
|
|
526
553
|
|
|
527
554
|
if (res_error) {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
555
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
556
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
557
|
+
} else {
|
|
558
|
+
Logger({
|
|
559
|
+
level: "WARN",
|
|
560
|
+
message: `Response Validation Warnings for platform > Webhook > getManualRetryStatus \n ${res_error}`,
|
|
561
|
+
});
|
|
562
|
+
}
|
|
532
563
|
}
|
|
533
564
|
|
|
534
565
|
return response;
|
|
@@ -600,10 +631,14 @@ class Webhook {
|
|
|
600
631
|
});
|
|
601
632
|
|
|
602
633
|
if (res_error) {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
634
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
635
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
636
|
+
} else {
|
|
637
|
+
Logger({
|
|
638
|
+
level: "WARN",
|
|
639
|
+
message: `Response Validation Warnings for platform > Webhook > getReportFilters \n ${res_error}`,
|
|
640
|
+
});
|
|
641
|
+
}
|
|
607
642
|
}
|
|
608
643
|
|
|
609
644
|
return response;
|
|
@@ -675,10 +710,14 @@ class Webhook {
|
|
|
675
710
|
});
|
|
676
711
|
|
|
677
712
|
if (res_error) {
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
713
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
714
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
715
|
+
} else {
|
|
716
|
+
Logger({
|
|
717
|
+
level: "WARN",
|
|
718
|
+
message: `Response Validation Warnings for platform > Webhook > getSubscriberById \n ${res_error}`,
|
|
719
|
+
});
|
|
720
|
+
}
|
|
682
721
|
}
|
|
683
722
|
|
|
684
723
|
return response;
|
|
@@ -759,10 +798,14 @@ class Webhook {
|
|
|
759
798
|
});
|
|
760
799
|
|
|
761
800
|
if (res_error) {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
801
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
802
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
803
|
+
} else {
|
|
804
|
+
Logger({
|
|
805
|
+
level: "WARN",
|
|
806
|
+
message: `Response Validation Warnings for platform > Webhook > getSubscribersByCompany \n ${res_error}`,
|
|
807
|
+
});
|
|
808
|
+
}
|
|
766
809
|
}
|
|
767
810
|
|
|
768
811
|
return response;
|
|
@@ -842,10 +885,14 @@ class Webhook {
|
|
|
842
885
|
});
|
|
843
886
|
|
|
844
887
|
if (res_error) {
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
888
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
889
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
890
|
+
} else {
|
|
891
|
+
Logger({
|
|
892
|
+
level: "WARN",
|
|
893
|
+
message: `Response Validation Warnings for platform > Webhook > getSubscribersByExtensionId \n ${res_error}`,
|
|
894
|
+
});
|
|
895
|
+
}
|
|
849
896
|
}
|
|
850
897
|
|
|
851
898
|
return response;
|
|
@@ -914,10 +961,14 @@ class Webhook {
|
|
|
914
961
|
});
|
|
915
962
|
|
|
916
963
|
if (res_error) {
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
964
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
965
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
966
|
+
} else {
|
|
967
|
+
Logger({
|
|
968
|
+
level: "WARN",
|
|
969
|
+
message: `Response Validation Warnings for platform > Webhook > manualRetryCancel \n ${res_error}`,
|
|
970
|
+
});
|
|
971
|
+
}
|
|
921
972
|
}
|
|
922
973
|
|
|
923
974
|
return response;
|
|
@@ -993,10 +1044,14 @@ class Webhook {
|
|
|
993
1044
|
);
|
|
994
1045
|
|
|
995
1046
|
if (res_error) {
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1047
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1048
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1049
|
+
} else {
|
|
1050
|
+
Logger({
|
|
1051
|
+
level: "WARN",
|
|
1052
|
+
message: `Response Validation Warnings for platform > Webhook > manualRetryOfFailedEvent \n ${res_error}`,
|
|
1053
|
+
});
|
|
1054
|
+
}
|
|
1000
1055
|
}
|
|
1001
1056
|
|
|
1002
1057
|
return response;
|
|
@@ -1066,10 +1121,14 @@ class Webhook {
|
|
|
1066
1121
|
});
|
|
1067
1122
|
|
|
1068
1123
|
if (res_error) {
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1124
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1125
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1126
|
+
} else {
|
|
1127
|
+
Logger({
|
|
1128
|
+
level: "WARN",
|
|
1129
|
+
message: `Response Validation Warnings for platform > Webhook > pingWebhook \n ${res_error}`,
|
|
1130
|
+
});
|
|
1131
|
+
}
|
|
1073
1132
|
}
|
|
1074
1133
|
|
|
1075
1134
|
return response;
|
|
@@ -1143,10 +1202,14 @@ class Webhook {
|
|
|
1143
1202
|
});
|
|
1144
1203
|
|
|
1145
1204
|
if (res_error) {
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1205
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1206
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1207
|
+
} else {
|
|
1208
|
+
Logger({
|
|
1209
|
+
level: "WARN",
|
|
1210
|
+
message: `Response Validation Warnings for platform > Webhook > registerSubscriberToEvent \n ${res_error}`,
|
|
1211
|
+
});
|
|
1212
|
+
}
|
|
1150
1213
|
}
|
|
1151
1214
|
|
|
1152
1215
|
return response;
|
|
@@ -1220,10 +1283,14 @@ class Webhook {
|
|
|
1220
1283
|
});
|
|
1221
1284
|
|
|
1222
1285
|
if (res_error) {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1286
|
+
if (this.config.options.strictResponseCheck === true) {
|
|
1287
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1288
|
+
} else {
|
|
1289
|
+
Logger({
|
|
1290
|
+
level: "WARN",
|
|
1291
|
+
message: `Response Validation Warnings for platform > Webhook > updateSubscriberConfig \n ${res_error}`,
|
|
1292
|
+
});
|
|
1293
|
+
}
|
|
1227
1294
|
}
|
|
1228
1295
|
|
|
1229
1296
|
return response;
|