@gofynd/fdk-client-javascript 3.17.2 → 3.19.0
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 +6 -2
- package/sdk/application/Order/OrderApplicationClient.d.ts +11 -0
- package/sdk/application/Order/OrderApplicationClient.js +49 -0
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +1 -1
- package/sdk/application/Payment/PaymentApplicationClient.js +2 -0
- package/sdk/common/AxiosHelper.js +10 -3
- package/sdk/common/utils.d.ts +10 -0
- package/sdk/common/utils.js +18 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +46 -0
- package/sdk/partner/Webhook/WebhookPartnerClient.js +334 -0
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +222 -1
- package/sdk/partner/Webhook/WebhookPartnerModel.js +165 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +4 -0
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +30 -0
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +0 -7
- package/sdk/platform/Communication/CommunicationPlatformModel.js +0 -3
- package/sdk/platform/Order/OrderPlatformClient.d.ts +1 -1
- package/sdk/platform/Order/OrderPlatformClient.js +1 -1
- package/sdk/platform/Order/OrderPlatformModel.d.ts +9 -9
- package/sdk/platform/Order/OrderPlatformModel.js +7 -7
- package/sdk/platform/User/UserPlatformModel.d.ts +26 -2
- package/sdk/platform/User/UserPlatformModel.js +10 -2
|
@@ -421,6 +421,8 @@ export = UserPlatformModel;
|
|
|
421
421
|
* @property {Object} [meta]
|
|
422
422
|
* @property {string} [external_id]
|
|
423
423
|
* @property {string} [rr_id]
|
|
424
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
425
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
424
426
|
*/
|
|
425
427
|
/**
|
|
426
428
|
* @typedef CreateUserResponseSchema
|
|
@@ -608,6 +610,8 @@ export = UserPlatformModel;
|
|
|
608
610
|
* @typedef UpdateUserRequestSchema
|
|
609
611
|
* @property {string} [first_name]
|
|
610
612
|
* @property {string} [last_name]
|
|
613
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
614
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
611
615
|
* @property {string} [gender]
|
|
612
616
|
* @property {string} [external_id]
|
|
613
617
|
* @property {string} [rr_id]
|
|
@@ -640,7 +644,8 @@ export = UserPlatformModel;
|
|
|
640
644
|
* @property {PhoneNumber[]} [phone_numbers]
|
|
641
645
|
* @property {Email[]} [emails]
|
|
642
646
|
* @property {string} [gender]
|
|
643
|
-
* @property {string} [dob]
|
|
647
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
648
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
644
649
|
* @property {boolean} [active]
|
|
645
650
|
* @property {string} [profile_pic_url]
|
|
646
651
|
* @property {string} [username]
|
|
@@ -662,7 +667,8 @@ export = UserPlatformModel;
|
|
|
662
667
|
* @property {PhoneNumber[]} [phone_numbers]
|
|
663
668
|
* @property {Email[]} [emails]
|
|
664
669
|
* @property {string} [gender]
|
|
665
|
-
* @property {string} [dob]
|
|
670
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
671
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
666
672
|
* @property {boolean} [active]
|
|
667
673
|
* @property {string} [profile_pic_url]
|
|
668
674
|
* @property {string} [username]
|
|
@@ -1550,6 +1556,11 @@ type CreateUserRequestSchema = {
|
|
|
1550
1556
|
meta?: any;
|
|
1551
1557
|
external_id?: string;
|
|
1552
1558
|
rr_id?: string;
|
|
1559
|
+
/**
|
|
1560
|
+
* - User's date of birth in ISO date
|
|
1561
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
1562
|
+
*/
|
|
1563
|
+
dob?: string;
|
|
1553
1564
|
};
|
|
1554
1565
|
/** @returns {CreateUserResponseSchema} */
|
|
1555
1566
|
declare function CreateUserResponseSchema(): CreateUserResponseSchema;
|
|
@@ -1804,6 +1815,11 @@ declare function UpdateUserRequestSchema(): UpdateUserRequestSchema;
|
|
|
1804
1815
|
type UpdateUserRequestSchema = {
|
|
1805
1816
|
first_name?: string;
|
|
1806
1817
|
last_name?: string;
|
|
1818
|
+
/**
|
|
1819
|
+
* - User's date of birth in ISO date
|
|
1820
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
1821
|
+
*/
|
|
1822
|
+
dob?: string;
|
|
1807
1823
|
gender?: string;
|
|
1808
1824
|
external_id?: string;
|
|
1809
1825
|
rr_id?: string;
|
|
@@ -1839,6 +1855,10 @@ type UserSchema = {
|
|
|
1839
1855
|
phone_numbers?: PhoneNumber[];
|
|
1840
1856
|
emails?: Email[];
|
|
1841
1857
|
gender?: string;
|
|
1858
|
+
/**
|
|
1859
|
+
* - User's date of birth in ISO date
|
|
1860
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
1861
|
+
*/
|
|
1842
1862
|
dob?: string;
|
|
1843
1863
|
active?: boolean;
|
|
1844
1864
|
profile_pic_url?: string;
|
|
@@ -1862,6 +1882,10 @@ type UserSearchSchema = {
|
|
|
1862
1882
|
phone_numbers?: PhoneNumber[];
|
|
1863
1883
|
emails?: Email[];
|
|
1864
1884
|
gender?: string;
|
|
1885
|
+
/**
|
|
1886
|
+
* - User's date of birth in ISO date
|
|
1887
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
1888
|
+
*/
|
|
1865
1889
|
dob?: string;
|
|
1866
1890
|
active?: boolean;
|
|
1867
1891
|
profile_pic_url?: string;
|
|
@@ -469,6 +469,8 @@ const Joi = require("joi");
|
|
|
469
469
|
* @property {Object} [meta]
|
|
470
470
|
* @property {string} [external_id]
|
|
471
471
|
* @property {string} [rr_id]
|
|
472
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
473
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
472
474
|
*/
|
|
473
475
|
|
|
474
476
|
/**
|
|
@@ -684,6 +686,8 @@ const Joi = require("joi");
|
|
|
684
686
|
* @typedef UpdateUserRequestSchema
|
|
685
687
|
* @property {string} [first_name]
|
|
686
688
|
* @property {string} [last_name]
|
|
689
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
690
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
687
691
|
* @property {string} [gender]
|
|
688
692
|
* @property {string} [external_id]
|
|
689
693
|
* @property {string} [rr_id]
|
|
@@ -719,7 +723,8 @@ const Joi = require("joi");
|
|
|
719
723
|
* @property {PhoneNumber[]} [phone_numbers]
|
|
720
724
|
* @property {Email[]} [emails]
|
|
721
725
|
* @property {string} [gender]
|
|
722
|
-
* @property {string} [dob]
|
|
726
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
727
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
723
728
|
* @property {boolean} [active]
|
|
724
729
|
* @property {string} [profile_pic_url]
|
|
725
730
|
* @property {string} [username]
|
|
@@ -742,7 +747,8 @@ const Joi = require("joi");
|
|
|
742
747
|
* @property {PhoneNumber[]} [phone_numbers]
|
|
743
748
|
* @property {Email[]} [emails]
|
|
744
749
|
* @property {string} [gender]
|
|
745
|
-
* @property {string} [dob]
|
|
750
|
+
* @property {string} [dob] - User's date of birth in ISO date
|
|
751
|
+
* format("1990-01-01T00:00:00.000Z").
|
|
746
752
|
* @property {boolean} [active]
|
|
747
753
|
* @property {string} [profile_pic_url]
|
|
748
754
|
* @property {string} [username]
|
|
@@ -1307,6 +1313,7 @@ class UserPlatformModel {
|
|
|
1307
1313
|
meta: Joi.object().pattern(/\S/, Joi.any()),
|
|
1308
1314
|
external_id: Joi.string().allow(""),
|
|
1309
1315
|
rr_id: Joi.string().allow(""),
|
|
1316
|
+
dob: Joi.string().allow(""),
|
|
1310
1317
|
});
|
|
1311
1318
|
}
|
|
1312
1319
|
|
|
@@ -1574,6 +1581,7 @@ class UserPlatformModel {
|
|
|
1574
1581
|
return Joi.object({
|
|
1575
1582
|
first_name: Joi.string().allow(""),
|
|
1576
1583
|
last_name: Joi.string().allow(""),
|
|
1584
|
+
dob: Joi.string().allow(""),
|
|
1577
1585
|
gender: Joi.string().allow(""),
|
|
1578
1586
|
external_id: Joi.string().allow(""),
|
|
1579
1587
|
rr_id: Joi.string().allow(""),
|