@gofynd/fdk-client-javascript 1.0.0 → 1.0.1
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/documentation/application/CATALOG.md +371 -371
- package/documentation/application/ORDER.md +272 -272
- package/documentation/application/PAYMENT.md +269 -269
- package/documentation/platform/CATALOG.md +1678 -1664
- package/documentation/platform/COMPANYPROFILE.md +201 -201
- package/documentation/platform/ORDER.md +1442 -1323
- package/documentation/platform/PAYMENT.md +88 -88
- package/index.js +7 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +302 -0
- package/sdk/application/Cart/CartApplicationValidator.js +1 -0
- package/sdk/application/Catalog/CatalogApplicationClient.js +378 -0
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +17 -17
- package/sdk/application/Catalog/CatalogApplicationModel.js +500 -500
- package/sdk/application/Catalog/CatalogApplicationValidator.js +1 -0
- package/sdk/application/Common/CommonApplicationClient.js +22 -0
- package/sdk/application/Common/CommonApplicationValidator.js +1 -0
- package/sdk/application/Communication/CommunicationApplicationClient.js +41 -0
- package/sdk/application/Communication/CommunicationApplicationValidator.js +1 -0
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +200 -0
- package/sdk/application/Configuration/ConfigurationApplicationValidator.js +1 -0
- package/sdk/application/Content/ContentApplicationClient.js +215 -0
- package/sdk/application/Content/ContentApplicationValidator.js +1 -0
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +33 -0
- package/sdk/application/FileStorage/FileStorageApplicationValidator.js +1 -0
- package/sdk/application/Lead/LeadApplicationClient.js +81 -0
- package/sdk/application/Lead/LeadApplicationValidator.js +1 -0
- package/sdk/application/Logistic/LogisticApplicationClient.js +44 -0
- package/sdk/application/Logistic/LogisticApplicationValidator.js +1 -0
- package/sdk/application/Order/OrderApplicationClient.js +146 -0
- package/sdk/application/Order/OrderApplicationModel.d.ts +20 -20
- package/sdk/application/Order/OrderApplicationModel.js +329 -329
- package/sdk/application/Order/OrderApplicationValidator.js +1 -0
- package/sdk/application/Payment/PaymentApplicationClient.js +528 -0
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationModel.js +391 -391
- package/sdk/application/Payment/PaymentApplicationValidator.js +1 -0
- package/sdk/application/PosCart/PosCartApplicationClient.js +329 -0
- package/sdk/application/PosCart/PosCartApplicationValidator.js +1 -0
- package/sdk/application/Rewards/RewardsApplicationClient.js +81 -0
- package/sdk/application/Rewards/RewardsApplicationValidator.js +1 -0
- package/sdk/application/Share/ShareApplicationClient.js +87 -0
- package/sdk/application/Share/ShareApplicationValidator.js +1 -0
- package/sdk/application/Theme/ThemeApplicationClient.js +44 -0
- package/sdk/application/Theme/ThemeApplicationValidator.js +1 -0
- package/sdk/application/User/UserApplicationClient.js +405 -0
- package/sdk/application/User/UserApplicationValidator.js +1 -0
- package/sdk/common/AxiosHelper.js +1 -1
- package/sdk/platform/Analytics/AnalyticsPlatformApplicationClient.js +114 -0
- package/sdk/platform/Analytics/AnalyticsPlatformClient.js +58 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +46 -0
- package/sdk/platform/Billing/BillingPlatformClient.js +160 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +246 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +29 -29
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +839 -48
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +3 -3
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +9 -9
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +54 -54
- package/sdk/platform/Catalog/CatalogPlatformClient.js +1149 -96
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +58 -57
- package/sdk/platform/Catalog/CatalogPlatformModel.js +1626 -1614
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +6 -6
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +20 -20
- package/sdk/platform/Common/CommonPlatformClient.js +26 -0
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +587 -0
- package/sdk/platform/Communication/CommunicationPlatformClient.js +15 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +179 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +11 -11
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +269 -269
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +382 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +282 -0
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +866 -0
- package/sdk/platform/Discount/DiscountPlatformClient.js +152 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +54 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +76 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.js +161 -0
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +162 -0
- package/sdk/platform/Lead/LeadPlatformClient.js +140 -0
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +55 -0
- package/sdk/platform/Order/OrderPlatformClient.d.ts +15 -6
- package/sdk/platform/Order/OrderPlatformClient.js +674 -15
- package/sdk/platform/Order/OrderPlatformModel.d.ts +67 -60
- package/sdk/platform/Order/OrderPlatformModel.js +1559 -1623
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +2 -1
- package/sdk/platform/Order/OrderPlatformValidator.js +10 -4
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +26 -0
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +165 -0
- package/sdk/platform/Payment/PaymentPlatformClient.js +139 -0
- package/sdk/platform/Payment/PaymentPlatformModel.js +137 -137
- package/sdk/platform/PlatformApplicationClient.d.ts +2217 -2243
- package/sdk/platform/PlatformApplicationClient.js +2514 -2524
- package/sdk/platform/PlatformClient.d.ts +2217 -2243
- package/sdk/platform/PlatformClient.js +2514 -2524
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +169 -0
- package/sdk/platform/Share/SharePlatformApplicationClient.js +53 -0
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +293 -0
- package/sdk/platform/User/UserPlatformApplicationClient.js +145 -0
- package/sdk/platform/Webhook/WebhookPlatformClient.js +90 -0
- package/sdk/public/Configuration/ConfigurationPublicClient.js +25 -0
- package/sdk/public/Configuration/ConfigurationPublicValidator.js +3 -1
- package/sdk/public/Inventory/InventoryPublicClient.js +75 -0
- package/sdk/public/Inventory/InventoryPublicValidator.js +3 -1
- package/sdk/public/Webhook/WebhookPublicClient.js +29 -0
- package/sdk/public/Webhook/WebhookPublicValidator.js +3 -1
|
@@ -97,6 +97,17 @@ class User {
|
|
|
97
97
|
if (error) {
|
|
98
98
|
return Promise.reject(new FDKClientValidationError(error));
|
|
99
99
|
}
|
|
100
|
+
|
|
101
|
+
// Showing warrnings if extra unknown parameters are found
|
|
102
|
+
const { error: warrning } = UserValidator.loginWithFacebook().validate(
|
|
103
|
+
{ body, platform },
|
|
104
|
+
{ abortEarly: false, allowUnknown: false }
|
|
105
|
+
);
|
|
106
|
+
if (warrning) {
|
|
107
|
+
console.log("Parameter Validation warrnings for loginWithFacebook");
|
|
108
|
+
console.log(warrning);
|
|
109
|
+
}
|
|
110
|
+
|
|
100
111
|
const query_params = {};
|
|
101
112
|
query_params["platform"] = platform;
|
|
102
113
|
|
|
@@ -131,6 +142,17 @@ class User {
|
|
|
131
142
|
if (error) {
|
|
132
143
|
return Promise.reject(new FDKClientValidationError(error));
|
|
133
144
|
}
|
|
145
|
+
|
|
146
|
+
// Showing warrnings if extra unknown parameters are found
|
|
147
|
+
const { error: warrning } = UserValidator.loginWithGoogle().validate(
|
|
148
|
+
{ body, platform },
|
|
149
|
+
{ abortEarly: false, allowUnknown: false }
|
|
150
|
+
);
|
|
151
|
+
if (warrning) {
|
|
152
|
+
console.log("Parameter Validation warrnings for loginWithGoogle");
|
|
153
|
+
console.log(warrning);
|
|
154
|
+
}
|
|
155
|
+
|
|
134
156
|
const query_params = {};
|
|
135
157
|
query_params["platform"] = platform;
|
|
136
158
|
|
|
@@ -165,6 +187,17 @@ class User {
|
|
|
165
187
|
if (error) {
|
|
166
188
|
return Promise.reject(new FDKClientValidationError(error));
|
|
167
189
|
}
|
|
190
|
+
|
|
191
|
+
// Showing warrnings if extra unknown parameters are found
|
|
192
|
+
const { error: warrning } = UserValidator.loginWithGoogleAndroid().validate(
|
|
193
|
+
{ body, platform },
|
|
194
|
+
{ abortEarly: false, allowUnknown: false }
|
|
195
|
+
);
|
|
196
|
+
if (warrning) {
|
|
197
|
+
console.log("Parameter Validation warrnings for loginWithGoogleAndroid");
|
|
198
|
+
console.log(warrning);
|
|
199
|
+
}
|
|
200
|
+
|
|
168
201
|
const query_params = {};
|
|
169
202
|
query_params["platform"] = platform;
|
|
170
203
|
|
|
@@ -199,6 +232,17 @@ class User {
|
|
|
199
232
|
if (error) {
|
|
200
233
|
return Promise.reject(new FDKClientValidationError(error));
|
|
201
234
|
}
|
|
235
|
+
|
|
236
|
+
// Showing warrnings if extra unknown parameters are found
|
|
237
|
+
const { error: warrning } = UserValidator.loginWithGoogleIOS().validate(
|
|
238
|
+
{ body, platform },
|
|
239
|
+
{ abortEarly: false, allowUnknown: false }
|
|
240
|
+
);
|
|
241
|
+
if (warrning) {
|
|
242
|
+
console.log("Parameter Validation warrnings for loginWithGoogleIOS");
|
|
243
|
+
console.log(warrning);
|
|
244
|
+
}
|
|
245
|
+
|
|
202
246
|
const query_params = {};
|
|
203
247
|
query_params["platform"] = platform;
|
|
204
248
|
|
|
@@ -233,6 +277,17 @@ class User {
|
|
|
233
277
|
if (error) {
|
|
234
278
|
return Promise.reject(new FDKClientValidationError(error));
|
|
235
279
|
}
|
|
280
|
+
|
|
281
|
+
// Showing warrnings if extra unknown parameters are found
|
|
282
|
+
const { error: warrning } = UserValidator.loginWithAppleIOS().validate(
|
|
283
|
+
{ body, platform },
|
|
284
|
+
{ abortEarly: false, allowUnknown: false }
|
|
285
|
+
);
|
|
286
|
+
if (warrning) {
|
|
287
|
+
console.log("Parameter Validation warrnings for loginWithAppleIOS");
|
|
288
|
+
console.log(warrning);
|
|
289
|
+
}
|
|
290
|
+
|
|
236
291
|
const query_params = {};
|
|
237
292
|
query_params["platform"] = platform;
|
|
238
293
|
|
|
@@ -267,6 +322,17 @@ class User {
|
|
|
267
322
|
if (error) {
|
|
268
323
|
return Promise.reject(new FDKClientValidationError(error));
|
|
269
324
|
}
|
|
325
|
+
|
|
326
|
+
// Showing warrnings if extra unknown parameters are found
|
|
327
|
+
const { error: warrning } = UserValidator.loginWithOTP().validate(
|
|
328
|
+
{ body, platform },
|
|
329
|
+
{ abortEarly: false, allowUnknown: false }
|
|
330
|
+
);
|
|
331
|
+
if (warrning) {
|
|
332
|
+
console.log("Parameter Validation warrnings for loginWithOTP");
|
|
333
|
+
console.log(warrning);
|
|
334
|
+
}
|
|
335
|
+
|
|
270
336
|
const query_params = {};
|
|
271
337
|
query_params["platform"] = platform;
|
|
272
338
|
|
|
@@ -300,6 +366,21 @@ class User {
|
|
|
300
366
|
if (error) {
|
|
301
367
|
return Promise.reject(new FDKClientValidationError(error));
|
|
302
368
|
}
|
|
369
|
+
|
|
370
|
+
// Showing warrnings if extra unknown parameters are found
|
|
371
|
+
const {
|
|
372
|
+
error: warrning,
|
|
373
|
+
} = UserValidator.loginWithEmailAndPassword().validate(
|
|
374
|
+
{ body },
|
|
375
|
+
{ abortEarly: false, allowUnknown: false }
|
|
376
|
+
);
|
|
377
|
+
if (warrning) {
|
|
378
|
+
console.log(
|
|
379
|
+
"Parameter Validation warrnings for loginWithEmailAndPassword"
|
|
380
|
+
);
|
|
381
|
+
console.log(warrning);
|
|
382
|
+
}
|
|
383
|
+
|
|
303
384
|
const query_params = {};
|
|
304
385
|
|
|
305
386
|
const xHeaders = {};
|
|
@@ -333,6 +414,17 @@ class User {
|
|
|
333
414
|
if (error) {
|
|
334
415
|
return Promise.reject(new FDKClientValidationError(error));
|
|
335
416
|
}
|
|
417
|
+
|
|
418
|
+
// Showing warrnings if extra unknown parameters are found
|
|
419
|
+
const { error: warrning } = UserValidator.sendResetPasswordEmail().validate(
|
|
420
|
+
{ body, platform },
|
|
421
|
+
{ abortEarly: false, allowUnknown: false }
|
|
422
|
+
);
|
|
423
|
+
if (warrning) {
|
|
424
|
+
console.log("Parameter Validation warrnings for sendResetPasswordEmail");
|
|
425
|
+
console.log(warrning);
|
|
426
|
+
}
|
|
427
|
+
|
|
336
428
|
const query_params = {};
|
|
337
429
|
query_params["platform"] = platform;
|
|
338
430
|
|
|
@@ -367,6 +459,19 @@ class User {
|
|
|
367
459
|
if (error) {
|
|
368
460
|
return Promise.reject(new FDKClientValidationError(error));
|
|
369
461
|
}
|
|
462
|
+
|
|
463
|
+
// Showing warrnings if extra unknown parameters are found
|
|
464
|
+
const {
|
|
465
|
+
error: warrning,
|
|
466
|
+
} = UserValidator.sendResetPasswordMobile().validate(
|
|
467
|
+
{ body, platform },
|
|
468
|
+
{ abortEarly: false, allowUnknown: false }
|
|
469
|
+
);
|
|
470
|
+
if (warrning) {
|
|
471
|
+
console.log("Parameter Validation warrnings for sendResetPasswordMobile");
|
|
472
|
+
console.log(warrning);
|
|
473
|
+
}
|
|
474
|
+
|
|
370
475
|
const query_params = {};
|
|
371
476
|
query_params["platform"] = platform;
|
|
372
477
|
|
|
@@ -400,6 +505,17 @@ class User {
|
|
|
400
505
|
if (error) {
|
|
401
506
|
return Promise.reject(new FDKClientValidationError(error));
|
|
402
507
|
}
|
|
508
|
+
|
|
509
|
+
// Showing warrnings if extra unknown parameters are found
|
|
510
|
+
const { error: warrning } = UserValidator.forgotPassword().validate(
|
|
511
|
+
{ body },
|
|
512
|
+
{ abortEarly: false, allowUnknown: false }
|
|
513
|
+
);
|
|
514
|
+
if (warrning) {
|
|
515
|
+
console.log("Parameter Validation warrnings for forgotPassword");
|
|
516
|
+
console.log(warrning);
|
|
517
|
+
}
|
|
518
|
+
|
|
403
519
|
const query_params = {};
|
|
404
520
|
|
|
405
521
|
const xHeaders = {};
|
|
@@ -432,6 +548,17 @@ class User {
|
|
|
432
548
|
if (error) {
|
|
433
549
|
return Promise.reject(new FDKClientValidationError(error));
|
|
434
550
|
}
|
|
551
|
+
|
|
552
|
+
// Showing warrnings if extra unknown parameters are found
|
|
553
|
+
const { error: warrning } = UserValidator.sendResetToken().validate(
|
|
554
|
+
{ body },
|
|
555
|
+
{ abortEarly: false, allowUnknown: false }
|
|
556
|
+
);
|
|
557
|
+
if (warrning) {
|
|
558
|
+
console.log("Parameter Validation warrnings for sendResetToken");
|
|
559
|
+
console.log(warrning);
|
|
560
|
+
}
|
|
561
|
+
|
|
435
562
|
const query_params = {};
|
|
436
563
|
|
|
437
564
|
const xHeaders = {};
|
|
@@ -464,6 +591,17 @@ class User {
|
|
|
464
591
|
if (error) {
|
|
465
592
|
return Promise.reject(new FDKClientValidationError(error));
|
|
466
593
|
}
|
|
594
|
+
|
|
595
|
+
// Showing warrnings if extra unknown parameters are found
|
|
596
|
+
const { error: warrning } = UserValidator.loginWithToken().validate(
|
|
597
|
+
{ body },
|
|
598
|
+
{ abortEarly: false, allowUnknown: false }
|
|
599
|
+
);
|
|
600
|
+
if (warrning) {
|
|
601
|
+
console.log("Parameter Validation warrnings for loginWithToken");
|
|
602
|
+
console.log(warrning);
|
|
603
|
+
}
|
|
604
|
+
|
|
467
605
|
const query_params = {};
|
|
468
606
|
|
|
469
607
|
const xHeaders = {};
|
|
@@ -497,6 +635,17 @@ class User {
|
|
|
497
635
|
if (error) {
|
|
498
636
|
return Promise.reject(new FDKClientValidationError(error));
|
|
499
637
|
}
|
|
638
|
+
|
|
639
|
+
// Showing warrnings if extra unknown parameters are found
|
|
640
|
+
const { error: warrning } = UserValidator.registerWithForm().validate(
|
|
641
|
+
{ body, platform },
|
|
642
|
+
{ abortEarly: false, allowUnknown: false }
|
|
643
|
+
);
|
|
644
|
+
if (warrning) {
|
|
645
|
+
console.log("Parameter Validation warrnings for registerWithForm");
|
|
646
|
+
console.log(warrning);
|
|
647
|
+
}
|
|
648
|
+
|
|
500
649
|
const query_params = {};
|
|
501
650
|
query_params["platform"] = platform;
|
|
502
651
|
|
|
@@ -530,6 +679,17 @@ class User {
|
|
|
530
679
|
if (error) {
|
|
531
680
|
return Promise.reject(new FDKClientValidationError(error));
|
|
532
681
|
}
|
|
682
|
+
|
|
683
|
+
// Showing warrnings if extra unknown parameters are found
|
|
684
|
+
const { error: warrning } = UserValidator.verifyEmail().validate(
|
|
685
|
+
{ body },
|
|
686
|
+
{ abortEarly: false, allowUnknown: false }
|
|
687
|
+
);
|
|
688
|
+
if (warrning) {
|
|
689
|
+
console.log("Parameter Validation warrnings for verifyEmail");
|
|
690
|
+
console.log(warrning);
|
|
691
|
+
}
|
|
692
|
+
|
|
533
693
|
const query_params = {};
|
|
534
694
|
|
|
535
695
|
const xHeaders = {};
|
|
@@ -562,6 +722,17 @@ class User {
|
|
|
562
722
|
if (error) {
|
|
563
723
|
return Promise.reject(new FDKClientValidationError(error));
|
|
564
724
|
}
|
|
725
|
+
|
|
726
|
+
// Showing warrnings if extra unknown parameters are found
|
|
727
|
+
const { error: warrning } = UserValidator.verifyMobile().validate(
|
|
728
|
+
{ body },
|
|
729
|
+
{ abortEarly: false, allowUnknown: false }
|
|
730
|
+
);
|
|
731
|
+
if (warrning) {
|
|
732
|
+
console.log("Parameter Validation warrnings for verifyMobile");
|
|
733
|
+
console.log(warrning);
|
|
734
|
+
}
|
|
735
|
+
|
|
565
736
|
const query_params = {};
|
|
566
737
|
|
|
567
738
|
const xHeaders = {};
|
|
@@ -593,6 +764,17 @@ class User {
|
|
|
593
764
|
if (error) {
|
|
594
765
|
return Promise.reject(new FDKClientValidationError(error));
|
|
595
766
|
}
|
|
767
|
+
|
|
768
|
+
// Showing warrnings if extra unknown parameters are found
|
|
769
|
+
const { error: warrning } = UserValidator.hasPassword().validate(
|
|
770
|
+
{},
|
|
771
|
+
{ abortEarly: false, allowUnknown: false }
|
|
772
|
+
);
|
|
773
|
+
if (warrning) {
|
|
774
|
+
console.log("Parameter Validation warrnings for hasPassword");
|
|
775
|
+
console.log(warrning);
|
|
776
|
+
}
|
|
777
|
+
|
|
596
778
|
const query_params = {};
|
|
597
779
|
|
|
598
780
|
const xHeaders = {};
|
|
@@ -625,6 +807,17 @@ class User {
|
|
|
625
807
|
if (error) {
|
|
626
808
|
return Promise.reject(new FDKClientValidationError(error));
|
|
627
809
|
}
|
|
810
|
+
|
|
811
|
+
// Showing warrnings if extra unknown parameters are found
|
|
812
|
+
const { error: warrning } = UserValidator.updatePassword().validate(
|
|
813
|
+
{ body },
|
|
814
|
+
{ abortEarly: false, allowUnknown: false }
|
|
815
|
+
);
|
|
816
|
+
if (warrning) {
|
|
817
|
+
console.log("Parameter Validation warrnings for updatePassword");
|
|
818
|
+
console.log(warrning);
|
|
819
|
+
}
|
|
820
|
+
|
|
628
821
|
const query_params = {};
|
|
629
822
|
|
|
630
823
|
const xHeaders = {};
|
|
@@ -657,6 +850,17 @@ class User {
|
|
|
657
850
|
if (error) {
|
|
658
851
|
return Promise.reject(new FDKClientValidationError(error));
|
|
659
852
|
}
|
|
853
|
+
|
|
854
|
+
// Showing warrnings if extra unknown parameters are found
|
|
855
|
+
const { error: warrning } = UserValidator.deleteUser().validate(
|
|
856
|
+
{ body },
|
|
857
|
+
{ abortEarly: false, allowUnknown: false }
|
|
858
|
+
);
|
|
859
|
+
if (warrning) {
|
|
860
|
+
console.log("Parameter Validation warrnings for deleteUser");
|
|
861
|
+
console.log(warrning);
|
|
862
|
+
}
|
|
863
|
+
|
|
660
864
|
const query_params = {};
|
|
661
865
|
|
|
662
866
|
const xHeaders = {};
|
|
@@ -688,6 +892,17 @@ class User {
|
|
|
688
892
|
if (error) {
|
|
689
893
|
return Promise.reject(new FDKClientValidationError(error));
|
|
690
894
|
}
|
|
895
|
+
|
|
896
|
+
// Showing warrnings if extra unknown parameters are found
|
|
897
|
+
const { error: warrning } = UserValidator.logout().validate(
|
|
898
|
+
{},
|
|
899
|
+
{ abortEarly: false, allowUnknown: false }
|
|
900
|
+
);
|
|
901
|
+
if (warrning) {
|
|
902
|
+
console.log("Parameter Validation warrnings for logout");
|
|
903
|
+
console.log(warrning);
|
|
904
|
+
}
|
|
905
|
+
|
|
691
906
|
const query_params = {};
|
|
692
907
|
|
|
693
908
|
const xHeaders = {};
|
|
@@ -721,6 +936,17 @@ class User {
|
|
|
721
936
|
if (error) {
|
|
722
937
|
return Promise.reject(new FDKClientValidationError(error));
|
|
723
938
|
}
|
|
939
|
+
|
|
940
|
+
// Showing warrnings if extra unknown parameters are found
|
|
941
|
+
const { error: warrning } = UserValidator.sendOTPOnMobile().validate(
|
|
942
|
+
{ body, platform },
|
|
943
|
+
{ abortEarly: false, allowUnknown: false }
|
|
944
|
+
);
|
|
945
|
+
if (warrning) {
|
|
946
|
+
console.log("Parameter Validation warrnings for sendOTPOnMobile");
|
|
947
|
+
console.log(warrning);
|
|
948
|
+
}
|
|
949
|
+
|
|
724
950
|
const query_params = {};
|
|
725
951
|
query_params["platform"] = platform;
|
|
726
952
|
|
|
@@ -755,6 +981,17 @@ class User {
|
|
|
755
981
|
if (error) {
|
|
756
982
|
return Promise.reject(new FDKClientValidationError(error));
|
|
757
983
|
}
|
|
984
|
+
|
|
985
|
+
// Showing warrnings if extra unknown parameters are found
|
|
986
|
+
const { error: warrning } = UserValidator.verifyMobileOTP().validate(
|
|
987
|
+
{ body, platform },
|
|
988
|
+
{ abortEarly: false, allowUnknown: false }
|
|
989
|
+
);
|
|
990
|
+
if (warrning) {
|
|
991
|
+
console.log("Parameter Validation warrnings for verifyMobileOTP");
|
|
992
|
+
console.log(warrning);
|
|
993
|
+
}
|
|
994
|
+
|
|
758
995
|
const query_params = {};
|
|
759
996
|
query_params["platform"] = platform;
|
|
760
997
|
|
|
@@ -789,6 +1026,17 @@ class User {
|
|
|
789
1026
|
if (error) {
|
|
790
1027
|
return Promise.reject(new FDKClientValidationError(error));
|
|
791
1028
|
}
|
|
1029
|
+
|
|
1030
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1031
|
+
const { error: warrning } = UserValidator.sendOTPOnEmail().validate(
|
|
1032
|
+
{ body, platform },
|
|
1033
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1034
|
+
);
|
|
1035
|
+
if (warrning) {
|
|
1036
|
+
console.log("Parameter Validation warrnings for sendOTPOnEmail");
|
|
1037
|
+
console.log(warrning);
|
|
1038
|
+
}
|
|
1039
|
+
|
|
792
1040
|
const query_params = {};
|
|
793
1041
|
query_params["platform"] = platform;
|
|
794
1042
|
|
|
@@ -823,6 +1071,17 @@ class User {
|
|
|
823
1071
|
if (error) {
|
|
824
1072
|
return Promise.reject(new FDKClientValidationError(error));
|
|
825
1073
|
}
|
|
1074
|
+
|
|
1075
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1076
|
+
const { error: warrning } = UserValidator.verifyEmailOTP().validate(
|
|
1077
|
+
{ body, platform },
|
|
1078
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1079
|
+
);
|
|
1080
|
+
if (warrning) {
|
|
1081
|
+
console.log("Parameter Validation warrnings for verifyEmailOTP");
|
|
1082
|
+
console.log(warrning);
|
|
1083
|
+
}
|
|
1084
|
+
|
|
826
1085
|
const query_params = {};
|
|
827
1086
|
query_params["platform"] = platform;
|
|
828
1087
|
|
|
@@ -855,6 +1114,17 @@ class User {
|
|
|
855
1114
|
if (error) {
|
|
856
1115
|
return Promise.reject(new FDKClientValidationError(error));
|
|
857
1116
|
}
|
|
1117
|
+
|
|
1118
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1119
|
+
const { error: warrning } = UserValidator.getLoggedInUser().validate(
|
|
1120
|
+
{},
|
|
1121
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1122
|
+
);
|
|
1123
|
+
if (warrning) {
|
|
1124
|
+
console.log("Parameter Validation warrnings for getLoggedInUser");
|
|
1125
|
+
console.log(warrning);
|
|
1126
|
+
}
|
|
1127
|
+
|
|
858
1128
|
const query_params = {};
|
|
859
1129
|
|
|
860
1130
|
const xHeaders = {};
|
|
@@ -886,6 +1156,19 @@ class User {
|
|
|
886
1156
|
if (error) {
|
|
887
1157
|
return Promise.reject(new FDKClientValidationError(error));
|
|
888
1158
|
}
|
|
1159
|
+
|
|
1160
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1161
|
+
const {
|
|
1162
|
+
error: warrning,
|
|
1163
|
+
} = UserValidator.getListOfActiveSessions().validate(
|
|
1164
|
+
{},
|
|
1165
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1166
|
+
);
|
|
1167
|
+
if (warrning) {
|
|
1168
|
+
console.log("Parameter Validation warrnings for getListOfActiveSessions");
|
|
1169
|
+
console.log(warrning);
|
|
1170
|
+
}
|
|
1171
|
+
|
|
889
1172
|
const query_params = {};
|
|
890
1173
|
|
|
891
1174
|
const xHeaders = {};
|
|
@@ -918,6 +1201,17 @@ class User {
|
|
|
918
1201
|
if (error) {
|
|
919
1202
|
return Promise.reject(new FDKClientValidationError(error));
|
|
920
1203
|
}
|
|
1204
|
+
|
|
1205
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1206
|
+
const { error: warrning } = UserValidator.getPlatformConfig().validate(
|
|
1207
|
+
{ name },
|
|
1208
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1209
|
+
);
|
|
1210
|
+
if (warrning) {
|
|
1211
|
+
console.log("Parameter Validation warrnings for getPlatformConfig");
|
|
1212
|
+
console.log(warrning);
|
|
1213
|
+
}
|
|
1214
|
+
|
|
921
1215
|
const query_params = {};
|
|
922
1216
|
query_params["name"] = name;
|
|
923
1217
|
|
|
@@ -952,6 +1246,17 @@ class User {
|
|
|
952
1246
|
if (error) {
|
|
953
1247
|
return Promise.reject(new FDKClientValidationError(error));
|
|
954
1248
|
}
|
|
1249
|
+
|
|
1250
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1251
|
+
const { error: warrning } = UserValidator.updateProfile().validate(
|
|
1252
|
+
{ body, platform },
|
|
1253
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1254
|
+
);
|
|
1255
|
+
if (warrning) {
|
|
1256
|
+
console.log("Parameter Validation warrnings for updateProfile");
|
|
1257
|
+
console.log(warrning);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
955
1260
|
const query_params = {};
|
|
956
1261
|
query_params["platform"] = platform;
|
|
957
1262
|
|
|
@@ -986,6 +1291,17 @@ class User {
|
|
|
986
1291
|
if (error) {
|
|
987
1292
|
return Promise.reject(new FDKClientValidationError(error));
|
|
988
1293
|
}
|
|
1294
|
+
|
|
1295
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1296
|
+
const { error: warrning } = UserValidator.addMobileNumber().validate(
|
|
1297
|
+
{ body, platform },
|
|
1298
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1299
|
+
);
|
|
1300
|
+
if (warrning) {
|
|
1301
|
+
console.log("Parameter Validation warrnings for addMobileNumber");
|
|
1302
|
+
console.log(warrning);
|
|
1303
|
+
}
|
|
1304
|
+
|
|
989
1305
|
const query_params = {};
|
|
990
1306
|
query_params["platform"] = platform;
|
|
991
1307
|
|
|
@@ -1036,6 +1352,17 @@ class User {
|
|
|
1036
1352
|
if (error) {
|
|
1037
1353
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1038
1354
|
}
|
|
1355
|
+
|
|
1356
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1357
|
+
const { error: warrning } = UserValidator.deleteMobileNumber().validate(
|
|
1358
|
+
{ active, primary, verified, countryCode, phone, platform },
|
|
1359
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1360
|
+
);
|
|
1361
|
+
if (warrning) {
|
|
1362
|
+
console.log("Parameter Validation warrnings for deleteMobileNumber");
|
|
1363
|
+
console.log(warrning);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1039
1366
|
const query_params = {};
|
|
1040
1367
|
query_params["platform"] = platform;
|
|
1041
1368
|
query_params["active"] = active;
|
|
@@ -1074,6 +1401,21 @@ class User {
|
|
|
1074
1401
|
if (error) {
|
|
1075
1402
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1076
1403
|
}
|
|
1404
|
+
|
|
1405
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1406
|
+
const {
|
|
1407
|
+
error: warrning,
|
|
1408
|
+
} = UserValidator.setMobileNumberAsPrimary().validate(
|
|
1409
|
+
{ body },
|
|
1410
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1411
|
+
);
|
|
1412
|
+
if (warrning) {
|
|
1413
|
+
console.log(
|
|
1414
|
+
"Parameter Validation warrnings for setMobileNumberAsPrimary"
|
|
1415
|
+
);
|
|
1416
|
+
console.log(warrning);
|
|
1417
|
+
}
|
|
1418
|
+
|
|
1077
1419
|
const query_params = {};
|
|
1078
1420
|
|
|
1079
1421
|
const xHeaders = {};
|
|
@@ -1107,6 +1449,21 @@ class User {
|
|
|
1107
1449
|
if (error) {
|
|
1108
1450
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1109
1451
|
}
|
|
1452
|
+
|
|
1453
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1454
|
+
const {
|
|
1455
|
+
error: warrning,
|
|
1456
|
+
} = UserValidator.sendVerificationLinkToMobile().validate(
|
|
1457
|
+
{ body, platform },
|
|
1458
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1459
|
+
);
|
|
1460
|
+
if (warrning) {
|
|
1461
|
+
console.log(
|
|
1462
|
+
"Parameter Validation warrnings for sendVerificationLinkToMobile"
|
|
1463
|
+
);
|
|
1464
|
+
console.log(warrning);
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1110
1467
|
const query_params = {};
|
|
1111
1468
|
query_params["platform"] = platform;
|
|
1112
1469
|
|
|
@@ -1141,6 +1498,17 @@ class User {
|
|
|
1141
1498
|
if (error) {
|
|
1142
1499
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1143
1500
|
}
|
|
1501
|
+
|
|
1502
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1503
|
+
const { error: warrning } = UserValidator.addEmail().validate(
|
|
1504
|
+
{ body, platform },
|
|
1505
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1506
|
+
);
|
|
1507
|
+
if (warrning) {
|
|
1508
|
+
console.log("Parameter Validation warrnings for addEmail");
|
|
1509
|
+
console.log(warrning);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1144
1512
|
const query_params = {};
|
|
1145
1513
|
query_params["platform"] = platform;
|
|
1146
1514
|
|
|
@@ -1183,6 +1551,17 @@ class User {
|
|
|
1183
1551
|
if (error) {
|
|
1184
1552
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1185
1553
|
}
|
|
1554
|
+
|
|
1555
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1556
|
+
const { error: warrning } = UserValidator.deleteEmail().validate(
|
|
1557
|
+
{ active, primary, verified, email, platform },
|
|
1558
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1559
|
+
);
|
|
1560
|
+
if (warrning) {
|
|
1561
|
+
console.log("Parameter Validation warrnings for deleteEmail");
|
|
1562
|
+
console.log(warrning);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1186
1565
|
const query_params = {};
|
|
1187
1566
|
query_params["platform"] = platform;
|
|
1188
1567
|
query_params["active"] = active;
|
|
@@ -1220,6 +1599,17 @@ class User {
|
|
|
1220
1599
|
if (error) {
|
|
1221
1600
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1222
1601
|
}
|
|
1602
|
+
|
|
1603
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1604
|
+
const { error: warrning } = UserValidator.setEmailAsPrimary().validate(
|
|
1605
|
+
{ body },
|
|
1606
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1607
|
+
);
|
|
1608
|
+
if (warrning) {
|
|
1609
|
+
console.log("Parameter Validation warrnings for setEmailAsPrimary");
|
|
1610
|
+
console.log(warrning);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1223
1613
|
const query_params = {};
|
|
1224
1614
|
|
|
1225
1615
|
const xHeaders = {};
|
|
@@ -1253,6 +1643,21 @@ class User {
|
|
|
1253
1643
|
if (error) {
|
|
1254
1644
|
return Promise.reject(new FDKClientValidationError(error));
|
|
1255
1645
|
}
|
|
1646
|
+
|
|
1647
|
+
// Showing warrnings if extra unknown parameters are found
|
|
1648
|
+
const {
|
|
1649
|
+
error: warrning,
|
|
1650
|
+
} = UserValidator.sendVerificationLinkToEmail().validate(
|
|
1651
|
+
{ body, platform },
|
|
1652
|
+
{ abortEarly: false, allowUnknown: false }
|
|
1653
|
+
);
|
|
1654
|
+
if (warrning) {
|
|
1655
|
+
console.log(
|
|
1656
|
+
"Parameter Validation warrnings for sendVerificationLinkToEmail"
|
|
1657
|
+
);
|
|
1658
|
+
console.log(warrning);
|
|
1659
|
+
}
|
|
1660
|
+
|
|
1256
1661
|
const query_params = {};
|
|
1257
1662
|
query_params["platform"] = platform;
|
|
1258
1663
|
|
|
@@ -38,7 +38,7 @@ function requestInterceptorFn() {
|
|
|
38
38
|
}
|
|
39
39
|
const { host, pathname, search } = new URL(url);
|
|
40
40
|
const { data, headers, method, params } = config;
|
|
41
|
-
headers["x-fp-sdk-version"] = "1.0.
|
|
41
|
+
headers["x-fp-sdk-version"] = "1.0.1";
|
|
42
42
|
let querySearchObj = querystring.parse(search);
|
|
43
43
|
querySearchObj = { ...querySearchObj, ...params };
|
|
44
44
|
let queryParam = "";
|