@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 UserApplicationValidator = require("./UserApplicationValidator");
|
|
@@ -158,10 +161,14 @@ class User {
|
|
|
158
161
|
});
|
|
159
162
|
|
|
160
163
|
if (res_error) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
165
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
166
|
+
} else {
|
|
167
|
+
Logger({
|
|
168
|
+
level: "WARN",
|
|
169
|
+
message: `Response Validation Warnings for application > User > addEmail \n ${res_error}`,
|
|
170
|
+
});
|
|
171
|
+
}
|
|
165
172
|
}
|
|
166
173
|
|
|
167
174
|
return response;
|
|
@@ -233,10 +240,14 @@ class User {
|
|
|
233
240
|
});
|
|
234
241
|
|
|
235
242
|
if (res_error) {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
243
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
244
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
245
|
+
} else {
|
|
246
|
+
Logger({
|
|
247
|
+
level: "WARN",
|
|
248
|
+
message: `Response Validation Warnings for application > User > addMobileNumber \n ${res_error}`,
|
|
249
|
+
});
|
|
250
|
+
}
|
|
240
251
|
}
|
|
241
252
|
|
|
242
253
|
return response;
|
|
@@ -312,10 +323,14 @@ class User {
|
|
|
312
323
|
});
|
|
313
324
|
|
|
314
325
|
if (res_error) {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
326
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
327
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
328
|
+
} else {
|
|
329
|
+
Logger({
|
|
330
|
+
level: "WARN",
|
|
331
|
+
message: `Response Validation Warnings for application > User > deleteEmail \n ${res_error}`,
|
|
332
|
+
});
|
|
333
|
+
}
|
|
319
334
|
}
|
|
320
335
|
|
|
321
336
|
return response;
|
|
@@ -400,10 +415,14 @@ class User {
|
|
|
400
415
|
});
|
|
401
416
|
|
|
402
417
|
if (res_error) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
418
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
419
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
420
|
+
} else {
|
|
421
|
+
Logger({
|
|
422
|
+
level: "WARN",
|
|
423
|
+
message: `Response Validation Warnings for application > User > deleteMobileNumber \n ${res_error}`,
|
|
424
|
+
});
|
|
425
|
+
}
|
|
407
426
|
}
|
|
408
427
|
|
|
409
428
|
return response;
|
|
@@ -472,10 +491,14 @@ class User {
|
|
|
472
491
|
});
|
|
473
492
|
|
|
474
493
|
if (res_error) {
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
494
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
495
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
496
|
+
} else {
|
|
497
|
+
Logger({
|
|
498
|
+
level: "WARN",
|
|
499
|
+
message: `Response Validation Warnings for application > User > deleteUser \n ${res_error}`,
|
|
500
|
+
});
|
|
501
|
+
}
|
|
479
502
|
}
|
|
480
503
|
|
|
481
504
|
return response;
|
|
@@ -546,10 +569,14 @@ class User {
|
|
|
546
569
|
});
|
|
547
570
|
|
|
548
571
|
if (res_error) {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
572
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
573
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
574
|
+
} else {
|
|
575
|
+
Logger({
|
|
576
|
+
level: "WARN",
|
|
577
|
+
message: `Response Validation Warnings for application > User > forgotPassword \n ${res_error}`,
|
|
578
|
+
});
|
|
579
|
+
}
|
|
553
580
|
}
|
|
554
581
|
|
|
555
582
|
return response;
|
|
@@ -622,10 +649,14 @@ class User {
|
|
|
622
649
|
});
|
|
623
650
|
|
|
624
651
|
if (res_error) {
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
652
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
653
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
654
|
+
} else {
|
|
655
|
+
Logger({
|
|
656
|
+
level: "WARN",
|
|
657
|
+
message: `Response Validation Warnings for application > User > getListOfActiveSessions \n ${res_error}`,
|
|
658
|
+
});
|
|
659
|
+
}
|
|
629
660
|
}
|
|
630
661
|
|
|
631
662
|
return response;
|
|
@@ -696,10 +727,14 @@ class User {
|
|
|
696
727
|
});
|
|
697
728
|
|
|
698
729
|
if (res_error) {
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
730
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
731
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
732
|
+
} else {
|
|
733
|
+
Logger({
|
|
734
|
+
level: "WARN",
|
|
735
|
+
message: `Response Validation Warnings for application > User > getLoggedInUser \n ${res_error}`,
|
|
736
|
+
});
|
|
737
|
+
}
|
|
703
738
|
}
|
|
704
739
|
|
|
705
740
|
return response;
|
|
@@ -771,10 +806,14 @@ class User {
|
|
|
771
806
|
});
|
|
772
807
|
|
|
773
808
|
if (res_error) {
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
809
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
810
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
811
|
+
} else {
|
|
812
|
+
Logger({
|
|
813
|
+
level: "WARN",
|
|
814
|
+
message: `Response Validation Warnings for application > User > getPlatformConfig \n ${res_error}`,
|
|
815
|
+
});
|
|
816
|
+
}
|
|
778
817
|
}
|
|
779
818
|
|
|
780
819
|
return response;
|
|
@@ -843,10 +882,14 @@ class User {
|
|
|
843
882
|
});
|
|
844
883
|
|
|
845
884
|
if (res_error) {
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
885
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
886
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
887
|
+
} else {
|
|
888
|
+
Logger({
|
|
889
|
+
level: "WARN",
|
|
890
|
+
message: `Response Validation Warnings for application > User > hasPassword \n ${res_error}`,
|
|
891
|
+
});
|
|
892
|
+
}
|
|
850
893
|
}
|
|
851
894
|
|
|
852
895
|
return response;
|
|
@@ -918,10 +961,14 @@ class User {
|
|
|
918
961
|
});
|
|
919
962
|
|
|
920
963
|
if (res_error) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
964
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
965
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
966
|
+
} else {
|
|
967
|
+
Logger({
|
|
968
|
+
level: "WARN",
|
|
969
|
+
message: `Response Validation Warnings for application > User > loginWithAppleIOS \n ${res_error}`,
|
|
970
|
+
});
|
|
971
|
+
}
|
|
925
972
|
}
|
|
926
973
|
|
|
927
974
|
return response;
|
|
@@ -994,10 +1041,14 @@ class User {
|
|
|
994
1041
|
});
|
|
995
1042
|
|
|
996
1043
|
if (res_error) {
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1044
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1045
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1046
|
+
} else {
|
|
1047
|
+
Logger({
|
|
1048
|
+
level: "WARN",
|
|
1049
|
+
message: `Response Validation Warnings for application > User > loginWithEmailAndPassword \n ${res_error}`,
|
|
1050
|
+
});
|
|
1051
|
+
}
|
|
1001
1052
|
}
|
|
1002
1053
|
|
|
1003
1054
|
return response;
|
|
@@ -1069,10 +1120,14 @@ class User {
|
|
|
1069
1120
|
});
|
|
1070
1121
|
|
|
1071
1122
|
if (res_error) {
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1123
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1124
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1125
|
+
} else {
|
|
1126
|
+
Logger({
|
|
1127
|
+
level: "WARN",
|
|
1128
|
+
message: `Response Validation Warnings for application > User > loginWithFacebook \n ${res_error}`,
|
|
1129
|
+
});
|
|
1130
|
+
}
|
|
1076
1131
|
}
|
|
1077
1132
|
|
|
1078
1133
|
return response;
|
|
@@ -1144,10 +1199,14 @@ class User {
|
|
|
1144
1199
|
});
|
|
1145
1200
|
|
|
1146
1201
|
if (res_error) {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1202
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1203
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1204
|
+
} else {
|
|
1205
|
+
Logger({
|
|
1206
|
+
level: "WARN",
|
|
1207
|
+
message: `Response Validation Warnings for application > User > loginWithGoogle \n ${res_error}`,
|
|
1208
|
+
});
|
|
1209
|
+
}
|
|
1151
1210
|
}
|
|
1152
1211
|
|
|
1153
1212
|
return response;
|
|
@@ -1221,10 +1280,14 @@ class User {
|
|
|
1221
1280
|
});
|
|
1222
1281
|
|
|
1223
1282
|
if (res_error) {
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1283
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1284
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1285
|
+
} else {
|
|
1286
|
+
Logger({
|
|
1287
|
+
level: "WARN",
|
|
1288
|
+
message: `Response Validation Warnings for application > User > loginWithGoogleAndroid \n ${res_error}`,
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1228
1291
|
}
|
|
1229
1292
|
|
|
1230
1293
|
return response;
|
|
@@ -1296,10 +1359,14 @@ class User {
|
|
|
1296
1359
|
});
|
|
1297
1360
|
|
|
1298
1361
|
if (res_error) {
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1362
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1363
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1364
|
+
} else {
|
|
1365
|
+
Logger({
|
|
1366
|
+
level: "WARN",
|
|
1367
|
+
message: `Response Validation Warnings for application > User > loginWithGoogleIOS \n ${res_error}`,
|
|
1368
|
+
});
|
|
1369
|
+
}
|
|
1303
1370
|
}
|
|
1304
1371
|
|
|
1305
1372
|
return response;
|
|
@@ -1371,10 +1438,14 @@ class User {
|
|
|
1371
1438
|
});
|
|
1372
1439
|
|
|
1373
1440
|
if (res_error) {
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1441
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1442
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1443
|
+
} else {
|
|
1444
|
+
Logger({
|
|
1445
|
+
level: "WARN",
|
|
1446
|
+
message: `Response Validation Warnings for application > User > loginWithOTP \n ${res_error}`,
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1378
1449
|
}
|
|
1379
1450
|
|
|
1380
1451
|
return response;
|
|
@@ -1445,10 +1516,14 @@ class User {
|
|
|
1445
1516
|
});
|
|
1446
1517
|
|
|
1447
1518
|
if (res_error) {
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1519
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1520
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1521
|
+
} else {
|
|
1522
|
+
Logger({
|
|
1523
|
+
level: "WARN",
|
|
1524
|
+
message: `Response Validation Warnings for application > User > loginWithToken \n ${res_error}`,
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1452
1527
|
}
|
|
1453
1528
|
|
|
1454
1529
|
return response;
|
|
@@ -1517,10 +1592,14 @@ class User {
|
|
|
1517
1592
|
});
|
|
1518
1593
|
|
|
1519
1594
|
if (res_error) {
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1595
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1596
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1597
|
+
} else {
|
|
1598
|
+
Logger({
|
|
1599
|
+
level: "WARN",
|
|
1600
|
+
message: `Response Validation Warnings for application > User > logout \n ${res_error}`,
|
|
1601
|
+
});
|
|
1602
|
+
}
|
|
1524
1603
|
}
|
|
1525
1604
|
|
|
1526
1605
|
return response;
|
|
@@ -1592,10 +1671,14 @@ class User {
|
|
|
1592
1671
|
});
|
|
1593
1672
|
|
|
1594
1673
|
if (res_error) {
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1674
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1675
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1676
|
+
} else {
|
|
1677
|
+
Logger({
|
|
1678
|
+
level: "WARN",
|
|
1679
|
+
message: `Response Validation Warnings for application > User > registerWithForm \n ${res_error}`,
|
|
1680
|
+
});
|
|
1681
|
+
}
|
|
1599
1682
|
}
|
|
1600
1683
|
|
|
1601
1684
|
return response;
|
|
@@ -1667,10 +1750,14 @@ class User {
|
|
|
1667
1750
|
);
|
|
1668
1751
|
|
|
1669
1752
|
if (res_error) {
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1753
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1754
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1755
|
+
} else {
|
|
1756
|
+
Logger({
|
|
1757
|
+
level: "WARN",
|
|
1758
|
+
message: `Response Validation Warnings for application > User > resetForgotPassword \n ${res_error}`,
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1674
1761
|
}
|
|
1675
1762
|
|
|
1676
1763
|
return response;
|
|
@@ -1742,10 +1829,14 @@ class User {
|
|
|
1742
1829
|
});
|
|
1743
1830
|
|
|
1744
1831
|
if (res_error) {
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1832
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1833
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1834
|
+
} else {
|
|
1835
|
+
Logger({
|
|
1836
|
+
level: "WARN",
|
|
1837
|
+
message: `Response Validation Warnings for application > User > sendForgotOTPOnEmail \n ${res_error}`,
|
|
1838
|
+
});
|
|
1839
|
+
}
|
|
1749
1840
|
}
|
|
1750
1841
|
|
|
1751
1842
|
return response;
|
|
@@ -1817,10 +1908,14 @@ class User {
|
|
|
1817
1908
|
});
|
|
1818
1909
|
|
|
1819
1910
|
if (res_error) {
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1911
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1912
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1913
|
+
} else {
|
|
1914
|
+
Logger({
|
|
1915
|
+
level: "WARN",
|
|
1916
|
+
message: `Response Validation Warnings for application > User > sendForgotOTPOnMobile \n ${res_error}`,
|
|
1917
|
+
});
|
|
1918
|
+
}
|
|
1824
1919
|
}
|
|
1825
1920
|
|
|
1826
1921
|
return response;
|
|
@@ -1892,10 +1987,14 @@ class User {
|
|
|
1892
1987
|
});
|
|
1893
1988
|
|
|
1894
1989
|
if (res_error) {
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1990
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
1991
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
1992
|
+
} else {
|
|
1993
|
+
Logger({
|
|
1994
|
+
level: "WARN",
|
|
1995
|
+
message: `Response Validation Warnings for application > User > sendOTPOnEmail \n ${res_error}`,
|
|
1996
|
+
});
|
|
1997
|
+
}
|
|
1899
1998
|
}
|
|
1900
1999
|
|
|
1901
2000
|
return response;
|
|
@@ -1967,10 +2066,14 @@ class User {
|
|
|
1967
2066
|
});
|
|
1968
2067
|
|
|
1969
2068
|
if (res_error) {
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
2069
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2070
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2071
|
+
} else {
|
|
2072
|
+
Logger({
|
|
2073
|
+
level: "WARN",
|
|
2074
|
+
message: `Response Validation Warnings for application > User > sendOTPOnMobile \n ${res_error}`,
|
|
2075
|
+
});
|
|
2076
|
+
}
|
|
1974
2077
|
}
|
|
1975
2078
|
|
|
1976
2079
|
return response;
|
|
@@ -2044,10 +2147,14 @@ class User {
|
|
|
2044
2147
|
});
|
|
2045
2148
|
|
|
2046
2149
|
if (res_error) {
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2150
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2151
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2152
|
+
} else {
|
|
2153
|
+
Logger({
|
|
2154
|
+
level: "WARN",
|
|
2155
|
+
message: `Response Validation Warnings for application > User > sendResetPasswordEmail \n ${res_error}`,
|
|
2156
|
+
});
|
|
2157
|
+
}
|
|
2051
2158
|
}
|
|
2052
2159
|
|
|
2053
2160
|
return response;
|
|
@@ -2121,10 +2228,14 @@ class User {
|
|
|
2121
2228
|
});
|
|
2122
2229
|
|
|
2123
2230
|
if (res_error) {
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2231
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2232
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2233
|
+
} else {
|
|
2234
|
+
Logger({
|
|
2235
|
+
level: "WARN",
|
|
2236
|
+
message: `Response Validation Warnings for application > User > sendResetPasswordMobile \n ${res_error}`,
|
|
2237
|
+
});
|
|
2238
|
+
}
|
|
2128
2239
|
}
|
|
2129
2240
|
|
|
2130
2241
|
return response;
|
|
@@ -2195,10 +2306,14 @@ class User {
|
|
|
2195
2306
|
});
|
|
2196
2307
|
|
|
2197
2308
|
if (res_error) {
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2309
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2310
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2311
|
+
} else {
|
|
2312
|
+
Logger({
|
|
2313
|
+
level: "WARN",
|
|
2314
|
+
message: `Response Validation Warnings for application > User > sendResetToken \n ${res_error}`,
|
|
2315
|
+
});
|
|
2316
|
+
}
|
|
2202
2317
|
}
|
|
2203
2318
|
|
|
2204
2319
|
return response;
|
|
@@ -2274,10 +2389,14 @@ class User {
|
|
|
2274
2389
|
);
|
|
2275
2390
|
|
|
2276
2391
|
if (res_error) {
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2392
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2393
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2394
|
+
} else {
|
|
2395
|
+
Logger({
|
|
2396
|
+
level: "WARN",
|
|
2397
|
+
message: `Response Validation Warnings for application > User > sendVerificationLinkToEmail \n ${res_error}`,
|
|
2398
|
+
});
|
|
2399
|
+
}
|
|
2281
2400
|
}
|
|
2282
2401
|
|
|
2283
2402
|
return response;
|
|
@@ -2354,10 +2473,14 @@ class User {
|
|
|
2354
2473
|
);
|
|
2355
2474
|
|
|
2356
2475
|
if (res_error) {
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2476
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2477
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2478
|
+
} else {
|
|
2479
|
+
Logger({
|
|
2480
|
+
level: "WARN",
|
|
2481
|
+
message: `Response Validation Warnings for application > User > sendVerificationLinkToMobile \n ${res_error}`,
|
|
2482
|
+
});
|
|
2483
|
+
}
|
|
2361
2484
|
}
|
|
2362
2485
|
|
|
2363
2486
|
return response;
|
|
@@ -2428,10 +2551,14 @@ class User {
|
|
|
2428
2551
|
});
|
|
2429
2552
|
|
|
2430
2553
|
if (res_error) {
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
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 > User > setEmailAsPrimary \n ${res_error}`,
|
|
2560
|
+
});
|
|
2561
|
+
}
|
|
2435
2562
|
}
|
|
2436
2563
|
|
|
2437
2564
|
return response;
|
|
@@ -2504,10 +2631,14 @@ class User {
|
|
|
2504
2631
|
});
|
|
2505
2632
|
|
|
2506
2633
|
if (res_error) {
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2634
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2635
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2636
|
+
} else {
|
|
2637
|
+
Logger({
|
|
2638
|
+
level: "WARN",
|
|
2639
|
+
message: `Response Validation Warnings for application > User > setMobileNumberAsPrimary \n ${res_error}`,
|
|
2640
|
+
});
|
|
2641
|
+
}
|
|
2511
2642
|
}
|
|
2512
2643
|
|
|
2513
2644
|
return response;
|
|
@@ -2578,10 +2709,14 @@ class User {
|
|
|
2578
2709
|
});
|
|
2579
2710
|
|
|
2580
2711
|
if (res_error) {
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2712
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2713
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2714
|
+
} else {
|
|
2715
|
+
Logger({
|
|
2716
|
+
level: "WARN",
|
|
2717
|
+
message: `Response Validation Warnings for application > User > updatePassword \n ${res_error}`,
|
|
2718
|
+
});
|
|
2719
|
+
}
|
|
2585
2720
|
}
|
|
2586
2721
|
|
|
2587
2722
|
return response;
|
|
@@ -2653,10 +2788,14 @@ class User {
|
|
|
2653
2788
|
});
|
|
2654
2789
|
|
|
2655
2790
|
if (res_error) {
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2791
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2792
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2793
|
+
} else {
|
|
2794
|
+
Logger({
|
|
2795
|
+
level: "WARN",
|
|
2796
|
+
message: `Response Validation Warnings for application > User > updateProfile \n ${res_error}`,
|
|
2797
|
+
});
|
|
2798
|
+
}
|
|
2660
2799
|
}
|
|
2661
2800
|
|
|
2662
2801
|
return response;
|
|
@@ -2725,10 +2864,14 @@ class User {
|
|
|
2725
2864
|
});
|
|
2726
2865
|
|
|
2727
2866
|
if (res_error) {
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2867
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2868
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2869
|
+
} else {
|
|
2870
|
+
Logger({
|
|
2871
|
+
level: "WARN",
|
|
2872
|
+
message: `Response Validation Warnings for application > User > verifyEmail \n ${res_error}`,
|
|
2873
|
+
});
|
|
2874
|
+
}
|
|
2732
2875
|
}
|
|
2733
2876
|
|
|
2734
2877
|
return response;
|
|
@@ -2800,10 +2943,14 @@ class User {
|
|
|
2800
2943
|
});
|
|
2801
2944
|
|
|
2802
2945
|
if (res_error) {
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2946
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
2947
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
2948
|
+
} else {
|
|
2949
|
+
Logger({
|
|
2950
|
+
level: "WARN",
|
|
2951
|
+
message: `Response Validation Warnings for application > User > verifyEmailForgotOTP \n ${res_error}`,
|
|
2952
|
+
});
|
|
2953
|
+
}
|
|
2807
2954
|
}
|
|
2808
2955
|
|
|
2809
2956
|
return response;
|
|
@@ -2875,10 +3022,14 @@ class User {
|
|
|
2875
3022
|
});
|
|
2876
3023
|
|
|
2877
3024
|
if (res_error) {
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
3025
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3026
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3027
|
+
} else {
|
|
3028
|
+
Logger({
|
|
3029
|
+
level: "WARN",
|
|
3030
|
+
message: `Response Validation Warnings for application > User > verifyEmailOTP \n ${res_error}`,
|
|
3031
|
+
});
|
|
3032
|
+
}
|
|
2882
3033
|
}
|
|
2883
3034
|
|
|
2884
3035
|
return response;
|
|
@@ -2949,10 +3100,14 @@ class User {
|
|
|
2949
3100
|
});
|
|
2950
3101
|
|
|
2951
3102
|
if (res_error) {
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
3103
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3104
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3105
|
+
} else {
|
|
3106
|
+
Logger({
|
|
3107
|
+
level: "WARN",
|
|
3108
|
+
message: `Response Validation Warnings for application > User > verifyMobile \n ${res_error}`,
|
|
3109
|
+
});
|
|
3110
|
+
}
|
|
2956
3111
|
}
|
|
2957
3112
|
|
|
2958
3113
|
return response;
|
|
@@ -3024,10 +3179,14 @@ class User {
|
|
|
3024
3179
|
});
|
|
3025
3180
|
|
|
3026
3181
|
if (res_error) {
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3182
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3183
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3184
|
+
} else {
|
|
3185
|
+
Logger({
|
|
3186
|
+
level: "WARN",
|
|
3187
|
+
message: `Response Validation Warnings for application > User > verifyMobileForgotOTP \n ${res_error}`,
|
|
3188
|
+
});
|
|
3189
|
+
}
|
|
3031
3190
|
}
|
|
3032
3191
|
|
|
3033
3192
|
return response;
|
|
@@ -3099,10 +3258,14 @@ class User {
|
|
|
3099
3258
|
});
|
|
3100
3259
|
|
|
3101
3260
|
if (res_error) {
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3261
|
+
if (this._conf.options.strictResponseCheck === true) {
|
|
3262
|
+
return Promise.reject(new FDKResponseValidationError(res_error));
|
|
3263
|
+
} else {
|
|
3264
|
+
Logger({
|
|
3265
|
+
level: "WARN",
|
|
3266
|
+
message: `Response Validation Warnings for application > User > verifyMobileOTP \n ${res_error}`,
|
|
3267
|
+
});
|
|
3268
|
+
}
|
|
3106
3269
|
}
|
|
3107
3270
|
|
|
3108
3271
|
return response;
|