@gofynd/fdk-client-javascript 1.4.1 → 1.4.2-beta.10
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 +3 -2
- package/sdk/application/ApplicationClient.js +20 -0
- package/sdk/application/Cart/CartApplicationClient.d.ts +1 -1
- package/sdk/application/Cart/CartApplicationClient.js +3 -5
- package/sdk/application/Cart/CartApplicationModel.d.ts +1634 -1742
- package/sdk/application/Cart/CartApplicationModel.js +1388 -1464
- package/sdk/application/Cart/CartApplicationValidator.d.ts +0 -4
- package/sdk/application/Cart/CartApplicationValidator.js +0 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +6 -3
- package/sdk/application/Catalog/CatalogApplicationClient.js +20 -7
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1613 -1613
- package/sdk/application/Catalog/CatalogApplicationValidator.d.ts +14 -0
- package/sdk/application/Catalog/CatalogApplicationValidator.js +6 -0
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1492 -1626
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1038 -1180
- package/sdk/application/Content/ContentApplicationClient.d.ts +0 -36
- package/sdk/application/Content/ContentApplicationClient.js +0 -246
- package/sdk/application/Content/ContentApplicationModel.d.ts +546 -753
- package/sdk/application/Content/ContentApplicationModel.js +565 -817
- package/sdk/application/Content/ContentApplicationValidator.d.ts +1 -40
- package/sdk/application/Content/ContentApplicationValidator.js +0 -41
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +0 -67
- package/sdk/application/Logistic/LogisticApplicationClient.js +0 -547
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +257 -712
- package/sdk/application/Logistic/LogisticApplicationModel.js +267 -755
- package/sdk/application/Logistic/LogisticApplicationValidator.d.ts +1 -211
- package/sdk/application/Logistic/LogisticApplicationValidator.js +0 -131
- package/sdk/application/Order/OrderApplicationClient.d.ts +3 -3
- package/sdk/application/Order/OrderApplicationClient.js +8 -32
- package/sdk/application/Order/OrderApplicationModel.d.ts +845 -853
- package/sdk/application/Order/OrderApplicationModel.js +816 -824
- package/sdk/application/Order/OrderApplicationValidator.d.ts +0 -20
- package/sdk/application/Order/OrderApplicationValidator.js +0 -8
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +2 -46
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -341
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +1892 -2199
- package/sdk/application/Payment/PaymentApplicationModel.js +1235 -1506
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +14 -59
- package/sdk/application/Payment/PaymentApplicationValidator.js +10 -64
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1396 -1429
- package/sdk/application/PosCart/PosCartApplicationModel.js +1233 -1257
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +1 -1
- package/sdk/application/Theme/ThemeApplicationClient.js +3 -7
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +783 -969
- package/sdk/application/Theme/ThemeApplicationModel.js +571 -867
- package/sdk/application/Theme/ThemeApplicationValidator.d.ts +0 -10
- package/sdk/application/Theme/ThemeApplicationValidator.js +0 -4
- package/sdk/application/User/UserApplicationClient.d.ts +0 -33
- package/sdk/application/User/UserApplicationClient.js +0 -239
- package/sdk/application/User/UserApplicationModel.d.ts +753 -768
- package/sdk/application/User/UserApplicationModel.js +731 -755
- package/sdk/application/User/UserApplicationValidator.d.ts +1 -34
- package/sdk/application/User/UserApplicationValidator.js +0 -36
- package/sdk/common/Clickstream.d.ts +1 -0
- package/sdk/common/Clickstream.js +254 -0
- package/sdk/common/Utility.js +1 -4
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +72 -60
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +70 -58
- package/sdk/partner/PartnerClient.d.ts +0 -6
- package/sdk/partner/PartnerClient.js +0 -9
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +0 -10
- package/sdk/partner/Theme/ThemePartnerClient.js +0 -80
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1178 -1153
- package/sdk/partner/Theme/ThemePartnerModel.js +830 -974
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +0 -1
- package/sdk/partner/Theme/ThemePartnerValidator.js +0 -9
- package/sdk/partner/index.d.ts +0 -3
- package/sdk/partner/index.js +0 -6
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +2 -2
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +1 -11
- package/sdk/platform/Billing/BillingPlatformClient.js +3 -110
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +734 -800
- package/sdk/platform/Billing/BillingPlatformModel.js +732 -810
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +4 -43
- package/sdk/platform/Billing/BillingPlatformValidator.js +2 -29
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +11 -1
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +81 -7
- package/sdk/platform/Cart/CartPlatformApplicationValidator.d.ts +13 -5
- package/sdk/platform/Cart/CartPlatformApplicationValidator.js +12 -4
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3223 -3328
- package/sdk/platform/Cart/CartPlatformModel.js +2875 -2946
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +11 -15
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +21 -52
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +0 -27
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +0 -11
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +15 -27
- package/sdk/platform/Catalog/CatalogPlatformClient.js +93 -189
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +617 -920
- package/sdk/platform/Catalog/CatalogPlatformModel.js +584 -919
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +27 -41
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +19 -31
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +37 -139
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +52 -737
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +3 -133
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +1 -113
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1079 -1228
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1090 -1262
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +2 -8
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +4 -32
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +629 -658
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +641 -675
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +0 -14
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +0 -6
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +8 -8
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +4 -4
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +2992 -3231
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2092 -2303
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.d.ts +2 -2
- package/sdk/platform/Configuration/ConfigurationPlatformValidator.js +2 -2
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +0 -391
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +1074 -3656
- package/sdk/platform/Content/ContentPlatformApplicationValidator.d.ts +1 -351
- package/sdk/platform/Content/ContentPlatformApplicationValidator.js +0 -410
- package/sdk/platform/Content/ContentPlatformModel.d.ts +972 -2071
- package/sdk/platform/Content/ContentPlatformModel.js +1039 -2355
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +2 -2
- package/sdk/platform/Discount/DiscountPlatformClient.js +2 -2
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +174 -259
- package/sdk/platform/Discount/DiscountPlatformModel.js +163 -257
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +6 -16
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +8 -117
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +4 -55
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -39
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +821 -892
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +833 -901
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +0 -33
- package/sdk/platform/Finance/FinancePlatformClient.js +0 -240
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +910 -1056
- package/sdk/platform/Finance/FinancePlatformModel.js +884 -1070
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +1 -38
- package/sdk/platform/Finance/FinancePlatformValidator.js +0 -38
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +28 -38
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +56 -137
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.d.ts +29 -41
- package/sdk/platform/Lead/LeadPlatformApplicationValidator.js +21 -33
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +601 -610
- package/sdk/platform/Lead/LeadPlatformModel.js +457 -471
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +1 -11
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +1 -93
- package/sdk/platform/Order/OrderPlatformApplicationValidator.d.ts +1 -28
- package/sdk/platform/Order/OrderPlatformApplicationValidator.js +0 -18
- package/sdk/platform/Order/OrderPlatformClient.d.ts +22 -143
- package/sdk/platform/Order/OrderPlatformClient.js +160 -1190
- package/sdk/platform/Order/OrderPlatformModel.d.ts +4451 -5275
- package/sdk/platform/Order/OrderPlatformModel.js +4039 -4994
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +21 -257
- package/sdk/platform/Order/OrderPlatformValidator.js +15 -216
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +13 -119
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +40 -750
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +7 -143
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +6 -133
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +1 -1
- package/sdk/platform/Payment/PaymentPlatformClient.js +1 -1
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2067 -2929
- package/sdk/platform/Payment/PaymentPlatformModel.js +1427 -2090
- package/sdk/platform/PlatformApplicationClient.d.ts +2 -2
- package/sdk/platform/PlatformApplicationClient.js +4 -4
- package/sdk/platform/PlatformClient.d.ts +2 -4
- package/sdk/platform/PlatformClient.js +4 -8
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +66 -142
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +147 -645
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +63 -131
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +47 -126
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +105 -217
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +349 -1138
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +990 -1589
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +986 -1702
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +133 -382
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +102 -266
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +1 -11
- package/sdk/platform/Theme/ThemePlatformClient.js +3 -87
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +765 -1133
- package/sdk/platform/Theme/ThemePlatformModel.js +561 -1009
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +4 -28
- package/sdk/platform/Theme/ThemePlatformValidator.js +2 -21
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +1 -116
- package/sdk/platform/User/UserPlatformApplicationClient.js +86 -932
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -224
- package/sdk/platform/User/UserPlatformApplicationValidator.js +5 -173
- package/sdk/platform/User/UserPlatformModel.d.ts +428 -765
- package/sdk/platform/User/UserPlatformModel.js +428 -679
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +37 -45
- package/sdk/platform/Webhook/WebhookPlatformClient.js +57 -61
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +403 -448
- package/sdk/platform/Webhook/WebhookPlatformModel.js +309 -369
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +10 -7
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +6 -6
- package/sdk/platform/index.d.ts +1 -1
- package/sdk/platform/index.js +2 -2
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/PublicClient.d.ts +0 -4
- package/sdk/public/PublicClient.js +0 -8
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +0 -33
- package/sdk/public/Webhook/WebhookPublicClient.js +0 -242
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +15 -161
- package/sdk/public/Webhook/WebhookPublicModel.js +13 -189
- package/sdk/public/Webhook/WebhookPublicValidator.d.ts +1 -23
- package/sdk/public/Webhook/WebhookPublicValidator.js +0 -31
- package/sdk/public/index.d.ts +0 -2
- package/sdk/public/index.js +0 -4
- package/sdk/partner/Lead/LeadPartnerClient.d.ts +0 -125
- package/sdk/partner/Lead/LeadPartnerClient.js +0 -785
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +0 -1127
- package/sdk/partner/Lead/LeadPartnerModel.js +0 -896
- package/sdk/partner/Lead/LeadPartnerValidator.d.ts +0 -12
- package/sdk/partner/Lead/LeadPartnerValidator.js +0 -67
- package/sdk/partner/Logistics/LogisticsPartnerClient.d.ts +0 -155
- package/sdk/partner/Logistics/LogisticsPartnerClient.js +0 -1195
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +0 -372
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +0 -442
- package/sdk/partner/Logistics/LogisticsPartnerValidator.d.ts +0 -16
- package/sdk/partner/Logistics/LogisticsPartnerValidator.js +0 -123
- package/sdk/partner/Webhook/WebhookPartnerClient.d.ts +0 -99
- package/sdk/partner/Webhook/WebhookPartnerClient.js +0 -753
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +0 -566
- package/sdk/partner/Webhook/WebhookPartnerModel.js +0 -583
- package/sdk/partner/Webhook/WebhookPartnerValidator.d.ts +0 -12
- package/sdk/partner/Webhook/WebhookPartnerValidator.js +0 -74
- package/sdk/platform/Content/ContentPlatformClient.d.ts +0 -277
- package/sdk/platform/Content/ContentPlatformClient.js +0 -2011
- package/sdk/platform/Content/ContentPlatformValidator.d.ts +0 -247
- package/sdk/platform/Content/ContentPlatformValidator.js +0 -319
- package/sdk/public/Billing/BillingPublicClient.d.ts +0 -23
- package/sdk/public/Billing/BillingPublicClient.js +0 -116
- package/sdk/public/Billing/BillingPublicModel.d.ts +0 -92
- package/sdk/public/Billing/BillingPublicModel.js +0 -96
- package/sdk/public/Billing/BillingPublicValidator.d.ts +0 -18
- package/sdk/public/Billing/BillingPublicValidator.js +0 -19
- package/sdk/public/Content/ContentPublicClient.d.ts +0 -22
- package/sdk/public/Content/ContentPublicClient.js +0 -114
- package/sdk/public/Content/ContentPublicModel.d.ts +0 -53
- package/sdk/public/Content/ContentPublicModel.js +0 -60
- package/sdk/public/Content/ContentPublicValidator.d.ts +0 -18
- package/sdk/public/Content/ContentPublicValidator.js +0 -19
|
@@ -1,670 +1,590 @@
|
|
|
1
1
|
const Joi = require("joi");
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @typedef
|
|
5
|
-
* @property {string} [
|
|
4
|
+
* @typedef DeleteApplicationUserRequestSchema
|
|
5
|
+
* @property {string} [user_id]
|
|
6
|
+
* @property {string} [reason]
|
|
7
|
+
* @property {string} [reason_id]
|
|
8
|
+
* @property {string} [request_id]
|
|
9
|
+
* @property {string} [otp]
|
|
6
10
|
*/
|
|
7
11
|
|
|
8
12
|
/**
|
|
9
|
-
* @typedef
|
|
10
|
-
* @property {string} [
|
|
11
|
-
* @property {string} [info] - Error code description link
|
|
12
|
-
* @property {string} [message]
|
|
13
|
-
* @property {Object} [meta]
|
|
14
|
-
* @property {string} [request_id]
|
|
13
|
+
* @typedef EditEmailRequestSchema
|
|
14
|
+
* @property {string} [email]
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* @typedef
|
|
19
|
-
* @property {
|
|
18
|
+
* @typedef SendVerificationLinkMobileRequestSchema
|
|
19
|
+
* @property {boolean} [verified]
|
|
20
|
+
* @property {boolean} [active]
|
|
21
|
+
* @property {string} [country_code]
|
|
22
|
+
* @property {string} [phone]
|
|
23
|
+
* @property {boolean} [primary]
|
|
20
24
|
*/
|
|
21
25
|
|
|
22
26
|
/**
|
|
23
|
-
* @typedef
|
|
24
|
-
* @property {string} [
|
|
27
|
+
* @typedef EditMobileRequestSchema
|
|
28
|
+
* @property {string} [country_code]
|
|
29
|
+
* @property {string} [phone]
|
|
25
30
|
*/
|
|
26
31
|
|
|
27
32
|
/**
|
|
28
|
-
* @typedef
|
|
33
|
+
* @typedef EditProfileRequestSchema
|
|
34
|
+
* @property {string} [first_name]
|
|
35
|
+
* @property {string} [last_name]
|
|
36
|
+
* @property {EditProfileMobileSchema} [mobile]
|
|
37
|
+
* @property {string} [country_code]
|
|
38
|
+
* @property {string} [email]
|
|
39
|
+
* @property {string} [gender]
|
|
40
|
+
* @property {string} [dob]
|
|
41
|
+
* @property {string} [profile_pic_url]
|
|
42
|
+
* @property {string} [android_hash]
|
|
43
|
+
* @property {string} [sender]
|
|
29
44
|
* @property {string} [register_token]
|
|
30
|
-
* @property {UserSchema} [user]
|
|
31
|
-
* @property {boolean} [user_exists]
|
|
32
45
|
*/
|
|
33
46
|
|
|
34
47
|
/**
|
|
35
|
-
* @typedef
|
|
36
|
-
* @property {string} [
|
|
48
|
+
* @typedef EditProfileMobileSchema
|
|
49
|
+
* @property {string} [phone]
|
|
50
|
+
* @property {string} [country_code]
|
|
37
51
|
*/
|
|
38
52
|
|
|
39
53
|
/**
|
|
40
|
-
* @typedef
|
|
41
|
-
* @property {string} [
|
|
54
|
+
* @typedef SendEmailOtpRequestSchema
|
|
55
|
+
* @property {string} [email]
|
|
56
|
+
* @property {string} [action]
|
|
57
|
+
* @property {string} [token]
|
|
58
|
+
* @property {string} [register_token]
|
|
59
|
+
* @property {string} [captcha_code]
|
|
42
60
|
*/
|
|
43
61
|
|
|
44
62
|
/**
|
|
45
|
-
* @typedef
|
|
46
|
-
* @property {string} [
|
|
47
|
-
* @property {string} [
|
|
48
|
-
* @property {
|
|
63
|
+
* @typedef SendEmailForgotOtpRequestSchema
|
|
64
|
+
* @property {string} [email]
|
|
65
|
+
* @property {string} [action]
|
|
66
|
+
* @property {string} [token]
|
|
49
67
|
*/
|
|
50
68
|
|
|
51
69
|
/**
|
|
52
|
-
* @typedef
|
|
70
|
+
* @typedef VerifyEmailOtpRequestSchema
|
|
71
|
+
* @property {string} [email]
|
|
72
|
+
* @property {string} [action]
|
|
73
|
+
* @property {string} [register_token]
|
|
53
74
|
* @property {string} [otp]
|
|
54
|
-
* @property {string} [reason]
|
|
55
|
-
* @property {string} [reason_id]
|
|
56
|
-
* @property {string} [request_id]
|
|
57
|
-
* @property {string} [user_id]
|
|
58
75
|
*/
|
|
59
76
|
|
|
60
77
|
/**
|
|
61
|
-
* @typedef
|
|
62
|
-
* @property {
|
|
78
|
+
* @typedef VerifyEmailForgotOtpRequestSchema
|
|
79
|
+
* @property {string} [email]
|
|
80
|
+
* @property {string} [otp]
|
|
63
81
|
*/
|
|
64
82
|
|
|
65
83
|
/**
|
|
66
|
-
* @typedef
|
|
67
|
-
* @property {string} [
|
|
84
|
+
* @typedef VerifyOtpRequestSchema
|
|
85
|
+
* @property {string} [request_id]
|
|
86
|
+
* @property {string} [register_token]
|
|
87
|
+
* @property {string} [otp]
|
|
68
88
|
*/
|
|
69
89
|
|
|
70
90
|
/**
|
|
71
|
-
* @typedef
|
|
72
|
-
* @property {string} [
|
|
73
|
-
* @property {string} [
|
|
91
|
+
* @typedef VerifyMobileForgotOtpRequestSchema
|
|
92
|
+
* @property {string} [request_id]
|
|
93
|
+
* @property {string} [otp]
|
|
74
94
|
*/
|
|
75
95
|
|
|
76
96
|
/**
|
|
77
|
-
* @typedef
|
|
97
|
+
* @typedef SendMobileOtpRequestSchema
|
|
98
|
+
* @property {string} [mobile]
|
|
78
99
|
* @property {string} [country_code]
|
|
79
|
-
* @property {string} [
|
|
100
|
+
* @property {string} [action]
|
|
101
|
+
* @property {string} [token]
|
|
102
|
+
* @property {string} [android_hash]
|
|
103
|
+
* @property {string} [force]
|
|
104
|
+
* @property {string} [captcha_code]
|
|
80
105
|
*/
|
|
81
106
|
|
|
82
107
|
/**
|
|
83
|
-
* @typedef
|
|
84
|
-
* @property {string} [
|
|
108
|
+
* @typedef SendMobileForgotOtpRequestSchema
|
|
109
|
+
* @property {string} [mobile]
|
|
85
110
|
* @property {string} [country_code]
|
|
86
|
-
* @property {string} [
|
|
87
|
-
* @property {string} [
|
|
111
|
+
* @property {string} [action]
|
|
112
|
+
* @property {string} [token]
|
|
113
|
+
* @property {string} [android_hash]
|
|
114
|
+
*/
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* @typedef UpdatePasswordRequestSchema
|
|
118
|
+
* @property {string} [old_password]
|
|
119
|
+
* @property {string} [new_password]
|
|
120
|
+
*/
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @typedef FormRegisterRequestSchema
|
|
88
124
|
* @property {string} [first_name]
|
|
89
|
-
* @property {string} [gender]
|
|
90
125
|
* @property {string} [last_name]
|
|
91
|
-
* @property {
|
|
92
|
-
* @property {string} [
|
|
126
|
+
* @property {string} [gender]
|
|
127
|
+
* @property {string} [email]
|
|
128
|
+
* @property {string} [password]
|
|
129
|
+
* @property {FormRegisterRequestSchemaPhone} [phone]
|
|
93
130
|
* @property {string} [register_token]
|
|
94
|
-
* @property {string} [sender]
|
|
95
131
|
*/
|
|
96
132
|
|
|
97
133
|
/**
|
|
98
|
-
* @typedef
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {string} [email]
|
|
101
|
-
* @property {boolean} [primary]
|
|
102
|
-
* @property {boolean} [verified]
|
|
134
|
+
* @typedef TokenRequestBodySchema
|
|
135
|
+
* @property {string} [token]
|
|
103
136
|
*/
|
|
104
137
|
|
|
105
138
|
/**
|
|
106
|
-
* @typedef
|
|
107
|
-
* @property {
|
|
139
|
+
* @typedef ForgotPasswordRequestSchema
|
|
140
|
+
* @property {string} [code]
|
|
141
|
+
* @property {string} [password]
|
|
108
142
|
*/
|
|
109
143
|
|
|
110
144
|
/**
|
|
111
|
-
* @typedef
|
|
112
|
-
* @property {string} [
|
|
145
|
+
* @typedef CodeRequestBodySchema
|
|
146
|
+
* @property {string} [code]
|
|
113
147
|
*/
|
|
114
148
|
|
|
115
149
|
/**
|
|
116
|
-
* @typedef
|
|
117
|
-
* @property {string} [
|
|
118
|
-
* @property {string} [
|
|
119
|
-
* @property {string} [text_color]
|
|
150
|
+
* @typedef SendResetPasswordEmailRequestSchema
|
|
151
|
+
* @property {string} [email]
|
|
152
|
+
* @property {string} [captcha_code]
|
|
120
153
|
*/
|
|
121
154
|
|
|
122
155
|
/**
|
|
123
|
-
* @typedef
|
|
124
|
-
* @property {string} [
|
|
125
|
-
* @property {string} [
|
|
156
|
+
* @typedef SendResetPasswordMobileRequestSchema
|
|
157
|
+
* @property {string} [country_code]
|
|
158
|
+
* @property {string} [mobile]
|
|
159
|
+
* @property {string} [captcha_code]
|
|
126
160
|
*/
|
|
127
161
|
|
|
128
162
|
/**
|
|
129
|
-
* @typedef
|
|
130
|
-
* @property {string} [
|
|
131
|
-
* @property {string} [first_name]
|
|
132
|
-
* @property {string} [gender]
|
|
133
|
-
* @property {string} [last_name]
|
|
163
|
+
* @typedef PasswordLoginRequestSchema
|
|
164
|
+
* @property {string} [captcha_code]
|
|
134
165
|
* @property {string} [password]
|
|
135
|
-
* @property {
|
|
136
|
-
* @property {string} [register_token]
|
|
166
|
+
* @property {string} [username]
|
|
137
167
|
*/
|
|
138
168
|
|
|
139
169
|
/**
|
|
140
|
-
* @typedef
|
|
170
|
+
* @typedef SendOtpRequestSchema
|
|
141
171
|
* @property {string} [country_code]
|
|
172
|
+
* @property {string} [captcha_code]
|
|
142
173
|
* @property {string} [mobile]
|
|
174
|
+
* @property {string} [android_hash]
|
|
143
175
|
*/
|
|
144
176
|
|
|
145
177
|
/**
|
|
146
|
-
* @typedef
|
|
147
|
-
* @property {
|
|
178
|
+
* @typedef OAuthRequestSchema
|
|
179
|
+
* @property {boolean} [is_signed_in]
|
|
180
|
+
* @property {OAuthRequestSchemaOauth2} [oauth2]
|
|
181
|
+
* @property {OAuthRequestSchemaProfile} [profile]
|
|
148
182
|
*/
|
|
149
183
|
|
|
150
184
|
/**
|
|
151
|
-
* @typedef
|
|
152
|
-
* @property {
|
|
185
|
+
* @typedef OAuthRequestAppleSchema
|
|
186
|
+
* @property {string} [user_identifier]
|
|
187
|
+
* @property {OAuthRequestAppleSchemaOauth} [oauth]
|
|
188
|
+
* @property {OAuthRequestAppleSchemaProfile} [profile]
|
|
153
189
|
*/
|
|
154
190
|
|
|
155
191
|
/**
|
|
156
|
-
* @typedef
|
|
157
|
-
* @property {
|
|
158
|
-
* @property {boolean} [password]
|
|
192
|
+
* @typedef UserObjectSchema
|
|
193
|
+
* @property {UserSchema} [user]
|
|
159
194
|
*/
|
|
160
195
|
|
|
161
196
|
/**
|
|
162
|
-
* @typedef
|
|
197
|
+
* @typedef AuthSuccess
|
|
163
198
|
* @property {string} [register_token]
|
|
164
|
-
* @property {
|
|
199
|
+
* @property {boolean} [user_exists]
|
|
165
200
|
* @property {UserSchema} [user]
|
|
166
201
|
*/
|
|
167
202
|
|
|
168
203
|
/**
|
|
169
|
-
* @typedef
|
|
170
|
-
* @property {
|
|
204
|
+
* @typedef SendOtpResponse
|
|
205
|
+
* @property {number} [resend_timer]
|
|
206
|
+
* @property {string} [resend_token]
|
|
207
|
+
* @property {boolean} [success]
|
|
208
|
+
* @property {string} [request_id]
|
|
209
|
+
* @property {string} [message]
|
|
210
|
+
* @property {string} [mobile]
|
|
211
|
+
* @property {string} [country_code]
|
|
212
|
+
* @property {string} [email]
|
|
213
|
+
* @property {string} [resend_email_token]
|
|
214
|
+
* @property {string} [register_token]
|
|
215
|
+
* @property {boolean} [verify_email_otp]
|
|
216
|
+
* @property {boolean} [verify_mobile_otp]
|
|
217
|
+
* @property {boolean} [user_exists]
|
|
171
218
|
*/
|
|
172
219
|
|
|
173
220
|
/**
|
|
174
|
-
* @typedef
|
|
175
|
-
* @property {
|
|
176
|
-
* @property {string} [
|
|
221
|
+
* @typedef ProfileEditSuccess
|
|
222
|
+
* @property {UserSchema} [user]
|
|
223
|
+
* @property {string} [register_token]
|
|
224
|
+
* @property {string} [resend_email_token]
|
|
225
|
+
* @property {boolean} [user_exists]
|
|
226
|
+
* @property {boolean} [verify_email_link]
|
|
227
|
+
* @property {boolean} [verify_email_otp]
|
|
228
|
+
* @property {boolean} [verify_mobile_otp]
|
|
229
|
+
* @property {string} [email]
|
|
230
|
+
* @property {string} [request_id]
|
|
231
|
+
* @property {string} [country_code]
|
|
232
|
+
* @property {string} [mobile]
|
|
233
|
+
* @property {boolean} [success]
|
|
234
|
+
* @property {string} [message]
|
|
235
|
+
* @property {number} [resend_timer]
|
|
236
|
+
* @property {string} [resend_token]
|
|
177
237
|
*/
|
|
178
238
|
|
|
179
239
|
/**
|
|
180
|
-
* @typedef
|
|
181
|
-
* @property {
|
|
240
|
+
* @typedef LoginSuccess
|
|
241
|
+
* @property {UserSchema} [user]
|
|
242
|
+
* @property {string} [request_id]
|
|
243
|
+
* @property {string} [register_token]
|
|
182
244
|
*/
|
|
183
245
|
|
|
184
246
|
/**
|
|
185
|
-
* @typedef
|
|
186
|
-
* @property {
|
|
187
|
-
* @property {OAuthRequestAppleSchemaProfile} [profile]
|
|
188
|
-
* @property {string} [user_identifier]
|
|
247
|
+
* @typedef ResetForgotPasswordSuccess
|
|
248
|
+
* @property {boolean} [success]
|
|
189
249
|
*/
|
|
190
250
|
|
|
191
251
|
/**
|
|
192
|
-
* @typedef
|
|
193
|
-
* @property {
|
|
252
|
+
* @typedef VerifyOtpSuccess
|
|
253
|
+
* @property {UserSchema} [user]
|
|
254
|
+
* @property {boolean} [user_exists]
|
|
255
|
+
* @property {string} [register_token]
|
|
194
256
|
*/
|
|
195
257
|
|
|
196
258
|
/**
|
|
197
|
-
* @typedef
|
|
198
|
-
* @property {
|
|
199
|
-
* @property {string} [
|
|
200
|
-
* @property {string} [last_name]
|
|
259
|
+
* @typedef VerifyForgotOtpSuccess
|
|
260
|
+
* @property {boolean} [success]
|
|
261
|
+
* @property {string} [forgot_token]
|
|
201
262
|
*/
|
|
202
263
|
|
|
203
264
|
/**
|
|
204
|
-
* @typedef
|
|
205
|
-
* @property {
|
|
206
|
-
* @property {OAuthRequestSchemaOauth2} [oauth2]
|
|
207
|
-
* @property {OAuthRequestSchemaProfile} [profile]
|
|
265
|
+
* @typedef ResetPasswordSuccess
|
|
266
|
+
* @property {string} [status]
|
|
208
267
|
*/
|
|
209
268
|
|
|
210
269
|
/**
|
|
211
|
-
* @typedef
|
|
212
|
-
* @property {string} [access_token]
|
|
213
|
-
* @property {number} [expiry]
|
|
214
|
-
* @property {string} [refresh_token]
|
|
215
|
-
*/
|
|
216
|
-
|
|
217
|
-
/**
|
|
218
|
-
* @typedef OAuthRequestSchemaProfile
|
|
270
|
+
* @typedef RegisterFormSuccess
|
|
219
271
|
* @property {string} [email]
|
|
220
|
-
* @property {string} [first_name]
|
|
221
|
-
* @property {string} [full_name]
|
|
222
|
-
* @property {string} [id]
|
|
223
|
-
* @property {string} [image]
|
|
224
|
-
* @property {string} [last_name]
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
|
-
/**
|
|
228
|
-
* @typedef OtpSuccess
|
|
229
|
-
* @property {string} [country_code]
|
|
230
|
-
* @property {string} [message]
|
|
231
|
-
* @property {string} [mobile]
|
|
232
|
-
* @property {string} [register_token]
|
|
233
|
-
* @property {string} [request_id]
|
|
234
272
|
* @property {number} [resend_timer]
|
|
235
273
|
* @property {string} [resend_token]
|
|
274
|
+
* @property {string} [resend_email_token]
|
|
275
|
+
* @property {string} [register_token]
|
|
236
276
|
* @property {boolean} [success]
|
|
277
|
+
* @property {string} [request_id]
|
|
278
|
+
* @property {string} [message]
|
|
279
|
+
* @property {string} [mobile]
|
|
280
|
+
* @property {string} [country_code]
|
|
281
|
+
* @property {boolean} [verify_email_otp]
|
|
282
|
+
* @property {boolean} [verify_mobile_otp]
|
|
283
|
+
* @property {boolean} [user_exists]
|
|
237
284
|
*/
|
|
238
285
|
|
|
239
286
|
/**
|
|
240
|
-
* @typedef
|
|
241
|
-
* @property {string} [
|
|
242
|
-
* @property {string} [username]
|
|
243
|
-
*/
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* @typedef PhoneNumber
|
|
247
|
-
* @property {boolean} [active]
|
|
248
|
-
* @property {number} [country_code]
|
|
249
|
-
* @property {string} [phone]
|
|
250
|
-
* @property {boolean} [primary]
|
|
251
|
-
* @property {boolean} [verified]
|
|
287
|
+
* @typedef VerifyEmailSuccess
|
|
288
|
+
* @property {string} [message]
|
|
252
289
|
*/
|
|
253
290
|
|
|
254
291
|
/**
|
|
255
|
-
* @typedef
|
|
256
|
-
* @property {boolean} [
|
|
257
|
-
* @property {string} [level]
|
|
292
|
+
* @typedef HasPasswordSuccess
|
|
293
|
+
* @property {boolean} [result]
|
|
258
294
|
*/
|
|
259
295
|
|
|
260
296
|
/**
|
|
261
|
-
* @typedef
|
|
262
|
-
* @property {boolean} [
|
|
263
|
-
* @property {string} [level]
|
|
297
|
+
* @typedef LogoutSuccess
|
|
298
|
+
* @property {boolean} [logout]
|
|
264
299
|
*/
|
|
265
300
|
|
|
266
301
|
/**
|
|
267
|
-
* @typedef
|
|
268
|
-
* @property {
|
|
269
|
-
* @property {boolean} [active]
|
|
270
|
-
* @property {string} [created_at]
|
|
271
|
-
* @property {Object} [delete_account_consent]
|
|
272
|
-
* @property {number} [delete_account_day]
|
|
273
|
-
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
274
|
-
* @property {string} [desktop_image]
|
|
275
|
-
* @property {string} [display]
|
|
276
|
-
* @property {FlashCard} [flash_card]
|
|
277
|
-
* @property {boolean} [forgot_password]
|
|
278
|
-
* @property {Login} [login]
|
|
279
|
-
* @property {LookAndFeel} [look_and_feel]
|
|
280
|
-
* @property {MetaSchema} [meta]
|
|
281
|
-
* @property {string} [mobile_image]
|
|
282
|
-
* @property {string} [name]
|
|
283
|
-
* @property {boolean} [register]
|
|
284
|
-
* @property {RegisterRequiredFields} [register_required_fields]
|
|
285
|
-
* @property {RequiredFields} [required_fields]
|
|
286
|
-
* @property {Object} [session_config]
|
|
287
|
-
* @property {boolean} [skip_captcha]
|
|
288
|
-
* @property {boolean} [skip_login]
|
|
289
|
-
* @property {Social} [social]
|
|
290
|
-
* @property {SocialTokens} [social_tokens]
|
|
291
|
-
* @property {string} [subtext]
|
|
292
|
-
* @property {string} [updated_at]
|
|
302
|
+
* @typedef DeleteUserSuccess
|
|
303
|
+
* @property {boolean} [success]
|
|
293
304
|
*/
|
|
294
305
|
|
|
295
306
|
/**
|
|
296
|
-
* @typedef
|
|
297
|
-
* @property {string} [country_code]
|
|
298
|
-
* @property {string} [email]
|
|
299
|
-
* @property {string} [message]
|
|
300
|
-
* @property {string} [mobile]
|
|
301
|
-
* @property {string} [register_token]
|
|
302
|
-
* @property {string} [request_id]
|
|
303
|
-
* @property {string} [resend_email_token]
|
|
307
|
+
* @typedef OtpSuccess
|
|
304
308
|
* @property {number} [resend_timer]
|
|
305
309
|
* @property {string} [resend_token]
|
|
310
|
+
* @property {string} [register_token]
|
|
306
311
|
* @property {boolean} [success]
|
|
307
|
-
* @property {
|
|
308
|
-
* @property {boolean} [user_exists]
|
|
309
|
-
* @property {boolean} [verify_email_link]
|
|
310
|
-
* @property {boolean} [verify_email_otp]
|
|
311
|
-
* @property {boolean} [verify_mobile_otp]
|
|
312
|
-
*/
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* @typedef RegisterFormSuccess
|
|
316
|
-
* @property {string} [country_code]
|
|
317
|
-
* @property {string} [email]
|
|
312
|
+
* @property {string} [request_id]
|
|
318
313
|
* @property {string} [message]
|
|
319
314
|
* @property {string} [mobile]
|
|
320
|
-
* @property {string} [
|
|
321
|
-
* @property {string} [request_id]
|
|
322
|
-
* @property {string} [resend_email_token]
|
|
323
|
-
* @property {number} [resend_timer]
|
|
324
|
-
* @property {string} [resend_token]
|
|
325
|
-
* @property {boolean} [success]
|
|
326
|
-
* @property {boolean} [user_exists]
|
|
327
|
-
* @property {boolean} [verify_email_otp]
|
|
328
|
-
* @property {boolean} [verify_mobile_otp]
|
|
329
|
-
*/
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* @typedef RegisterRequiredFields
|
|
333
|
-
* @property {RegisterRequiredFieldsEmail} [email]
|
|
334
|
-
* @property {RegisterRequiredFieldsMobile} [mobile]
|
|
315
|
+
* @property {string} [country_code]
|
|
335
316
|
*/
|
|
336
317
|
|
|
337
318
|
/**
|
|
338
|
-
* @typedef
|
|
339
|
-
* @property {boolean} [
|
|
340
|
-
* @property {string} [level]
|
|
319
|
+
* @typedef EmailOtpSuccess
|
|
320
|
+
* @property {boolean} [success]
|
|
341
321
|
*/
|
|
342
322
|
|
|
343
323
|
/**
|
|
344
|
-
* @typedef
|
|
345
|
-
* @property {
|
|
346
|
-
* @property {string} [level]
|
|
324
|
+
* @typedef SessionListSuccess
|
|
325
|
+
* @property {string[]} [sessions]
|
|
347
326
|
*/
|
|
348
327
|
|
|
349
328
|
/**
|
|
350
|
-
* @typedef
|
|
351
|
-
* @property {
|
|
352
|
-
* @property {
|
|
329
|
+
* @typedef VerifyMobileOTPSuccess
|
|
330
|
+
* @property {UserSchema} [user]
|
|
331
|
+
* @property {boolean} [verify_mobile_link]
|
|
353
332
|
*/
|
|
354
333
|
|
|
355
334
|
/**
|
|
356
|
-
* @typedef
|
|
357
|
-
* @property {
|
|
335
|
+
* @typedef VerifyEmailOTPSuccess
|
|
336
|
+
* @property {UserSchema} [user]
|
|
337
|
+
* @property {boolean} [verify_email_link]
|
|
358
338
|
*/
|
|
359
339
|
|
|
360
340
|
/**
|
|
361
|
-
* @typedef
|
|
362
|
-
* @property {
|
|
341
|
+
* @typedef SendMobileVerifyLinkSuccess
|
|
342
|
+
* @property {boolean} [verify_mobile_link]
|
|
363
343
|
*/
|
|
364
344
|
|
|
365
345
|
/**
|
|
366
|
-
* @typedef
|
|
367
|
-
* @property {
|
|
368
|
-
* @property {string} [email]
|
|
369
|
-
* @property {string} [token]
|
|
346
|
+
* @typedef SendEmailVerifyLinkSuccess
|
|
347
|
+
* @property {boolean} [verify_email_link]
|
|
370
348
|
*/
|
|
371
349
|
|
|
372
350
|
/**
|
|
373
|
-
* @typedef
|
|
374
|
-
* @property {string} [
|
|
375
|
-
* @property {string} [email]
|
|
376
|
-
* @property {string} [register_token]
|
|
377
|
-
* @property {string} [token]
|
|
351
|
+
* @typedef AuthenticationInternalServerErrorSchema
|
|
352
|
+
* @property {string} [message]
|
|
378
353
|
*/
|
|
379
354
|
|
|
380
355
|
/**
|
|
381
|
-
* @typedef
|
|
382
|
-
* @property {
|
|
356
|
+
* @typedef AuthenticationApiErrorSchema
|
|
357
|
+
* @property {string} [message]
|
|
383
358
|
*/
|
|
384
359
|
|
|
385
360
|
/**
|
|
386
|
-
* @typedef
|
|
387
|
-
* @property {string} [
|
|
388
|
-
* @property {string} [
|
|
389
|
-
* @property {string} [
|
|
390
|
-
* @property {string} [
|
|
391
|
-
* @property {
|
|
361
|
+
* @typedef APIError
|
|
362
|
+
* @property {string} [code]
|
|
363
|
+
* @property {string} [message]
|
|
364
|
+
* @property {string} [info] - Error code description link
|
|
365
|
+
* @property {string} [request_id]
|
|
366
|
+
* @property {Object} [meta]
|
|
392
367
|
*/
|
|
393
368
|
|
|
394
369
|
/**
|
|
395
|
-
* @typedef
|
|
396
|
-
* @property {string} [action]
|
|
397
|
-
* @property {string} [android_hash]
|
|
370
|
+
* @typedef FormRegisterRequestSchemaPhone
|
|
398
371
|
* @property {string} [country_code]
|
|
399
|
-
* @property {string} [force]
|
|
400
372
|
* @property {string} [mobile]
|
|
401
|
-
* @property {string} [token]
|
|
402
373
|
*/
|
|
403
374
|
|
|
404
375
|
/**
|
|
405
|
-
* @typedef
|
|
406
|
-
* @property {
|
|
376
|
+
* @typedef OAuthRequestSchemaOauth2
|
|
377
|
+
* @property {string} [access_token]
|
|
378
|
+
* @property {number} [expiry]
|
|
379
|
+
* @property {string} [refresh_token]
|
|
407
380
|
*/
|
|
408
381
|
|
|
409
382
|
/**
|
|
410
|
-
* @typedef
|
|
411
|
-
* @property {string} [
|
|
412
|
-
* @property {string} [
|
|
413
|
-
* @property {string} [
|
|
383
|
+
* @typedef OAuthRequestSchemaProfile
|
|
384
|
+
* @property {string} [last_name]
|
|
385
|
+
* @property {string} [image]
|
|
386
|
+
* @property {string} [id]
|
|
387
|
+
* @property {string} [email]
|
|
388
|
+
* @property {string} [full_name]
|
|
389
|
+
* @property {string} [first_name]
|
|
414
390
|
*/
|
|
415
391
|
|
|
416
392
|
/**
|
|
417
|
-
* @typedef
|
|
418
|
-
* @property {string} [
|
|
419
|
-
* @property {string} [email]
|
|
420
|
-
* @property {string} [message]
|
|
421
|
-
* @property {string} [mobile]
|
|
422
|
-
* @property {string} [register_token]
|
|
423
|
-
* @property {string} [request_id]
|
|
424
|
-
* @property {string} [resend_email_token]
|
|
425
|
-
* @property {number} [resend_timer]
|
|
426
|
-
* @property {string} [resend_token]
|
|
427
|
-
* @property {boolean} [success]
|
|
428
|
-
* @property {boolean} [user_exists]
|
|
429
|
-
* @property {boolean} [verify_email_otp]
|
|
430
|
-
* @property {boolean} [verify_mobile_otp]
|
|
393
|
+
* @typedef OAuthRequestAppleSchemaOauth
|
|
394
|
+
* @property {string} [identity_token]
|
|
431
395
|
*/
|
|
432
396
|
|
|
433
397
|
/**
|
|
434
|
-
* @typedef
|
|
435
|
-
* @property {string} [
|
|
398
|
+
* @typedef OAuthRequestAppleSchemaProfile
|
|
399
|
+
* @property {string} [last_name]
|
|
400
|
+
* @property {string} [full_name]
|
|
401
|
+
* @property {string} [first_name]
|
|
436
402
|
*/
|
|
437
403
|
|
|
438
404
|
/**
|
|
439
|
-
* @typedef
|
|
440
|
-
* @property {string} [
|
|
441
|
-
* @property {
|
|
405
|
+
* @typedef PlatformSchema
|
|
406
|
+
* @property {string} [display]
|
|
407
|
+
* @property {LookAndFeel} [look_and_feel]
|
|
408
|
+
* @property {string} [updated_at]
|
|
409
|
+
* @property {boolean} [active]
|
|
410
|
+
* @property {boolean} [forgot_password]
|
|
411
|
+
* @property {Login} [login]
|
|
412
|
+
* @property {boolean} [skip_captcha]
|
|
413
|
+
* @property {string} [name]
|
|
414
|
+
* @property {MetaSchema} [meta]
|
|
415
|
+
* @property {string} [_id]
|
|
416
|
+
* @property {Social} [social]
|
|
417
|
+
* @property {RequiredFields} [required_fields]
|
|
418
|
+
* @property {RegisterRequiredFields} [register_required_fields]
|
|
419
|
+
* @property {boolean} [skip_login]
|
|
420
|
+
* @property {FlashCard} [flash_card]
|
|
421
|
+
* @property {string} [subtext]
|
|
422
|
+
* @property {SocialTokens} [social_tokens]
|
|
423
|
+
* @property {string} [created_at]
|
|
424
|
+
* @property {boolean} [register]
|
|
425
|
+
* @property {string} [mobile_image]
|
|
426
|
+
* @property {string} [desktop_image]
|
|
427
|
+
* @property {number} [delete_account_day]
|
|
428
|
+
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
429
|
+
* @property {Object} [delete_account_consent]
|
|
430
|
+
* @property {Object} [session_config]
|
|
442
431
|
*/
|
|
443
432
|
|
|
444
433
|
/**
|
|
445
|
-
* @typedef
|
|
446
|
-
* @property {
|
|
447
|
-
* @property {string} [
|
|
448
|
-
* @property {string} [phone]
|
|
449
|
-
* @property {boolean} [primary]
|
|
450
|
-
* @property {boolean} [verified]
|
|
434
|
+
* @typedef LookAndFeel
|
|
435
|
+
* @property {string} [card_position]
|
|
436
|
+
* @property {string} [background_color]
|
|
451
437
|
*/
|
|
452
438
|
|
|
453
439
|
/**
|
|
454
|
-
* @typedef
|
|
455
|
-
* @property {
|
|
456
|
-
* @property {boolean} [
|
|
457
|
-
* @property {string} [type]
|
|
440
|
+
* @typedef Login
|
|
441
|
+
* @property {boolean} [password]
|
|
442
|
+
* @property {boolean} [otp]
|
|
458
443
|
*/
|
|
459
444
|
|
|
460
445
|
/**
|
|
461
|
-
* @typedef
|
|
462
|
-
* @property {
|
|
446
|
+
* @typedef MetaSchema
|
|
447
|
+
* @property {boolean} [fynd_default]
|
|
463
448
|
*/
|
|
464
449
|
|
|
465
450
|
/**
|
|
466
451
|
* @typedef Social
|
|
467
452
|
* @property {boolean} [account_kit]
|
|
468
|
-
* @property {boolean} [apple]
|
|
469
453
|
* @property {boolean} [facebook]
|
|
470
454
|
* @property {boolean} [google]
|
|
455
|
+
* @property {boolean} [apple]
|
|
471
456
|
*/
|
|
472
457
|
|
|
473
458
|
/**
|
|
474
|
-
* @typedef
|
|
475
|
-
* @property {
|
|
476
|
-
* @property {
|
|
477
|
-
* @property {Google} [google]
|
|
478
|
-
*/
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* @typedef TokenRequestBodySchema
|
|
482
|
-
* @property {string} [token]
|
|
483
|
-
*/
|
|
484
|
-
|
|
485
|
-
/**
|
|
486
|
-
* @typedef UpdatePasswordRequestSchema
|
|
487
|
-
* @property {string} [new_password]
|
|
488
|
-
* @property {string} [old_password]
|
|
459
|
+
* @typedef RequiredFields
|
|
460
|
+
* @property {PlatformEmail} [email]
|
|
461
|
+
* @property {PlatformMobile} [mobile]
|
|
489
462
|
*/
|
|
490
463
|
|
|
491
464
|
/**
|
|
492
|
-
* @typedef
|
|
493
|
-
* @property {
|
|
465
|
+
* @typedef PlatformEmail
|
|
466
|
+
* @property {boolean} [is_required]
|
|
467
|
+
* @property {string} [level]
|
|
494
468
|
*/
|
|
495
469
|
|
|
496
470
|
/**
|
|
497
|
-
* @typedef
|
|
498
|
-
* @property {
|
|
471
|
+
* @typedef PlatformMobile
|
|
472
|
+
* @property {boolean} [is_required]
|
|
473
|
+
* @property {string} [level]
|
|
499
474
|
*/
|
|
500
475
|
|
|
501
476
|
/**
|
|
502
|
-
* @typedef
|
|
503
|
-
* @property {
|
|
477
|
+
* @typedef RegisterRequiredFields
|
|
478
|
+
* @property {RegisterRequiredFieldsEmail} [email]
|
|
479
|
+
* @property {RegisterRequiredFieldsMobile} [mobile]
|
|
504
480
|
*/
|
|
505
481
|
|
|
506
482
|
/**
|
|
507
|
-
* @typedef
|
|
508
|
-
* @property {
|
|
483
|
+
* @typedef RegisterRequiredFieldsEmail
|
|
484
|
+
* @property {boolean} [is_required]
|
|
485
|
+
* @property {string} [level]
|
|
509
486
|
*/
|
|
510
487
|
|
|
511
488
|
/**
|
|
512
|
-
* @typedef
|
|
513
|
-
* @property {
|
|
514
|
-
* @property {string} [
|
|
515
|
-
* @property {boolean} [active]
|
|
516
|
-
* @property {string} [application_id]
|
|
517
|
-
* @property {string} [created_at]
|
|
518
|
-
* @property {string} [dob]
|
|
519
|
-
* @property {Email[]} [emails]
|
|
520
|
-
* @property {string} [first_name]
|
|
521
|
-
* @property {string} [gender]
|
|
522
|
-
* @property {string} [last_name]
|
|
523
|
-
* @property {Object} [meta]
|
|
524
|
-
* @property {PhoneNumber[]} [phone_numbers]
|
|
525
|
-
* @property {string} [profile_pic_url]
|
|
526
|
-
* @property {string} [updated_at]
|
|
527
|
-
* @property {string} [user_id]
|
|
528
|
-
* @property {string} [username]
|
|
489
|
+
* @typedef RegisterRequiredFieldsMobile
|
|
490
|
+
* @property {boolean} [is_required]
|
|
491
|
+
* @property {string} [level]
|
|
529
492
|
*/
|
|
530
493
|
|
|
531
494
|
/**
|
|
532
|
-
* @typedef
|
|
533
|
-
* @property {string} [
|
|
534
|
-
* @property {string} [
|
|
495
|
+
* @typedef FlashCard
|
|
496
|
+
* @property {string} [text]
|
|
497
|
+
* @property {string} [text_color]
|
|
498
|
+
* @property {string} [background_color]
|
|
535
499
|
*/
|
|
536
500
|
|
|
537
501
|
/**
|
|
538
|
-
* @typedef
|
|
539
|
-
* @property {
|
|
540
|
-
* @property {
|
|
541
|
-
* @property {
|
|
542
|
-
* @property {string} [register_token]
|
|
502
|
+
* @typedef SocialTokens
|
|
503
|
+
* @property {Facebook} [facebook]
|
|
504
|
+
* @property {Accountkit} [account_kit]
|
|
505
|
+
* @property {Google} [google]
|
|
543
506
|
*/
|
|
544
507
|
|
|
545
508
|
/**
|
|
546
|
-
* @typedef
|
|
547
|
-
* @property {
|
|
548
|
-
* @property {
|
|
509
|
+
* @typedef DeleteAccountReasons
|
|
510
|
+
* @property {string} [reason_text]
|
|
511
|
+
* @property {string} [reason_id]
|
|
512
|
+
* @property {boolean} [show_text_area]
|
|
549
513
|
*/
|
|
550
514
|
|
|
551
515
|
/**
|
|
552
|
-
* @typedef
|
|
553
|
-
* @property {string} [
|
|
516
|
+
* @typedef DeleteAccountConsent
|
|
517
|
+
* @property {string} [consent_text]
|
|
554
518
|
*/
|
|
555
519
|
|
|
556
520
|
/**
|
|
557
|
-
* @typedef
|
|
558
|
-
* @property {string} [
|
|
559
|
-
* @property {boolean} [success]
|
|
521
|
+
* @typedef Facebook
|
|
522
|
+
* @property {string} [app_id]
|
|
560
523
|
*/
|
|
561
524
|
|
|
562
525
|
/**
|
|
563
|
-
* @typedef
|
|
564
|
-
* @property {string} [
|
|
565
|
-
* @property {string} [request_id]
|
|
526
|
+
* @typedef Accountkit
|
|
527
|
+
* @property {string} [app_id]
|
|
566
528
|
*/
|
|
567
529
|
|
|
568
530
|
/**
|
|
569
|
-
* @typedef
|
|
570
|
-
* @property {
|
|
571
|
-
* @property {boolean} [verify_mobile_link]
|
|
531
|
+
* @typedef Google
|
|
532
|
+
* @property {string} [app_id]
|
|
572
533
|
*/
|
|
573
534
|
|
|
574
535
|
/**
|
|
575
|
-
* @typedef
|
|
576
|
-
* @property {
|
|
577
|
-
* @property {string} [
|
|
578
|
-
* @property {
|
|
536
|
+
* @typedef SessionExpiry
|
|
537
|
+
* @property {number} [duration]
|
|
538
|
+
* @property {string} [type]
|
|
539
|
+
* @property {boolean} [is_rolling]
|
|
579
540
|
*/
|
|
580
541
|
|
|
581
542
|
/**
|
|
582
|
-
* @typedef
|
|
583
|
-
* @property {string} [
|
|
584
|
-
* @property {
|
|
585
|
-
* @property {
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
info: Joi.string().allow(""),
|
|
601
|
-
message: Joi.string().allow(""),
|
|
602
|
-
meta: Joi.any(),
|
|
603
|
-
request_id: Joi.string().allow(""),
|
|
604
|
-
});
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
/** @returns {AuthenticationApiErrorSchema} */
|
|
608
|
-
static AuthenticationApiErrorSchema() {
|
|
609
|
-
return Joi.object({
|
|
610
|
-
message: Joi.string().allow(""),
|
|
611
|
-
});
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
/** @returns {AuthenticationInternalServerErrorSchema} */
|
|
615
|
-
static AuthenticationInternalServerErrorSchema() {
|
|
616
|
-
return Joi.object({
|
|
617
|
-
message: Joi.string().allow(""),
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
|
|
621
|
-
/** @returns {AuthSuccess} */
|
|
622
|
-
static AuthSuccess() {
|
|
623
|
-
return Joi.object({
|
|
624
|
-
register_token: Joi.string().allow(""),
|
|
625
|
-
user: UserApplicationModel.UserSchema(),
|
|
626
|
-
user_exists: Joi.boolean(),
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
|
|
630
|
-
/** @returns {CodeRequestBodySchema} */
|
|
631
|
-
static CodeRequestBodySchema() {
|
|
632
|
-
return Joi.object({
|
|
633
|
-
code: Joi.string().allow(""),
|
|
634
|
-
});
|
|
635
|
-
}
|
|
543
|
+
* @typedef UserSchema
|
|
544
|
+
* @property {string} [application_id]
|
|
545
|
+
* @property {string} [user_id]
|
|
546
|
+
* @property {string} [first_name]
|
|
547
|
+
* @property {Object} [meta]
|
|
548
|
+
* @property {string} [last_name]
|
|
549
|
+
* @property {PhoneNumber[]} [phone_numbers]
|
|
550
|
+
* @property {Email[]} [emails]
|
|
551
|
+
* @property {string} [gender]
|
|
552
|
+
* @property {string} [dob]
|
|
553
|
+
* @property {boolean} [active]
|
|
554
|
+
* @property {string} [profile_pic_url]
|
|
555
|
+
* @property {string} [username]
|
|
556
|
+
* @property {string} [account_type]
|
|
557
|
+
* @property {string} [_id]
|
|
558
|
+
* @property {string} [created_at]
|
|
559
|
+
* @property {string} [updated_at]
|
|
560
|
+
*/
|
|
636
561
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
562
|
+
/**
|
|
563
|
+
* @typedef PhoneNumber
|
|
564
|
+
* @property {boolean} [active]
|
|
565
|
+
* @property {boolean} [primary]
|
|
566
|
+
* @property {boolean} [verified]
|
|
567
|
+
* @property {string} [phone]
|
|
568
|
+
* @property {number} [country_code]
|
|
569
|
+
*/
|
|
643
570
|
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
}
|
|
571
|
+
/**
|
|
572
|
+
* @typedef Email
|
|
573
|
+
* @property {boolean} [primary]
|
|
574
|
+
* @property {boolean} [verified]
|
|
575
|
+
* @property {string} [email]
|
|
576
|
+
* @property {boolean} [active]
|
|
577
|
+
*/
|
|
652
578
|
|
|
579
|
+
class UserApplicationModel {
|
|
653
580
|
/** @returns {DeleteApplicationUserRequestSchema} */
|
|
654
581
|
static DeleteApplicationUserRequestSchema() {
|
|
655
582
|
return Joi.object({
|
|
656
|
-
|
|
583
|
+
user_id: Joi.string().allow(""),
|
|
657
584
|
reason: Joi.string().allow(""),
|
|
658
585
|
reason_id: Joi.string().allow(""),
|
|
659
586
|
request_id: Joi.string().allow(""),
|
|
660
|
-
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
|
|
664
|
-
/** @returns {DeleteUserSuccess} */
|
|
665
|
-
static DeleteUserSuccess() {
|
|
666
|
-
return Joi.object({
|
|
667
|
-
success: Joi.boolean(),
|
|
587
|
+
otp: Joi.string().allow(""),
|
|
668
588
|
});
|
|
669
589
|
}
|
|
670
590
|
|
|
@@ -675,16 +595,19 @@ class UserApplicationModel {
|
|
|
675
595
|
});
|
|
676
596
|
}
|
|
677
597
|
|
|
678
|
-
/** @returns {
|
|
679
|
-
static
|
|
598
|
+
/** @returns {SendVerificationLinkMobileRequestSchema} */
|
|
599
|
+
static SendVerificationLinkMobileRequestSchema() {
|
|
680
600
|
return Joi.object({
|
|
601
|
+
verified: Joi.boolean(),
|
|
602
|
+
active: Joi.boolean(),
|
|
681
603
|
country_code: Joi.string().allow(""),
|
|
682
604
|
phone: Joi.string().allow(""),
|
|
605
|
+
primary: Joi.boolean(),
|
|
683
606
|
});
|
|
684
607
|
}
|
|
685
608
|
|
|
686
|
-
/** @returns {
|
|
687
|
-
static
|
|
609
|
+
/** @returns {EditMobileRequestSchema} */
|
|
610
|
+
static EditMobileRequestSchema() {
|
|
688
611
|
return Joi.object({
|
|
689
612
|
country_code: Joi.string().allow(""),
|
|
690
613
|
phone: Joi.string().allow(""),
|
|
@@ -694,157 +617,183 @@ class UserApplicationModel {
|
|
|
694
617
|
/** @returns {EditProfileRequestSchema} */
|
|
695
618
|
static EditProfileRequestSchema() {
|
|
696
619
|
return Joi.object({
|
|
697
|
-
android_hash: Joi.string().allow(""),
|
|
698
|
-
country_code: Joi.string().allow(""),
|
|
699
|
-
dob: Joi.string().allow(""),
|
|
700
|
-
email: Joi.string().allow(""),
|
|
701
620
|
first_name: Joi.string().allow(""),
|
|
702
|
-
gender: Joi.string().allow(""),
|
|
703
621
|
last_name: Joi.string().allow(""),
|
|
704
622
|
mobile: UserApplicationModel.EditProfileMobileSchema(),
|
|
623
|
+
country_code: Joi.string().allow(""),
|
|
624
|
+
email: Joi.string().allow(""),
|
|
625
|
+
gender: Joi.string().allow(""),
|
|
626
|
+
dob: Joi.string().allow(""),
|
|
705
627
|
profile_pic_url: Joi.string().allow(""),
|
|
706
|
-
|
|
628
|
+
android_hash: Joi.string().allow(""),
|
|
707
629
|
sender: Joi.string().allow(""),
|
|
630
|
+
register_token: Joi.string().allow(""),
|
|
708
631
|
});
|
|
709
632
|
}
|
|
710
633
|
|
|
711
|
-
/** @returns {
|
|
712
|
-
static
|
|
634
|
+
/** @returns {EditProfileMobileSchema} */
|
|
635
|
+
static EditProfileMobileSchema() {
|
|
713
636
|
return Joi.object({
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
primary: Joi.boolean(),
|
|
717
|
-
verified: Joi.boolean(),
|
|
637
|
+
phone: Joi.string().allow(""),
|
|
638
|
+
country_code: Joi.string().allow(""),
|
|
718
639
|
});
|
|
719
640
|
}
|
|
720
641
|
|
|
721
|
-
/** @returns {
|
|
722
|
-
static
|
|
642
|
+
/** @returns {SendEmailOtpRequestSchema} */
|
|
643
|
+
static SendEmailOtpRequestSchema() {
|
|
723
644
|
return Joi.object({
|
|
724
|
-
|
|
645
|
+
email: Joi.string().allow(""),
|
|
646
|
+
action: Joi.string().allow(""),
|
|
647
|
+
token: Joi.string().allow(""),
|
|
648
|
+
register_token: Joi.string().allow(""),
|
|
649
|
+
captcha_code: Joi.string().allow(""),
|
|
725
650
|
});
|
|
726
651
|
}
|
|
727
652
|
|
|
728
|
-
/** @returns {
|
|
729
|
-
static
|
|
653
|
+
/** @returns {SendEmailForgotOtpRequestSchema} */
|
|
654
|
+
static SendEmailForgotOtpRequestSchema() {
|
|
730
655
|
return Joi.object({
|
|
731
|
-
|
|
656
|
+
email: Joi.string().allow(""),
|
|
657
|
+
action: Joi.string().allow(""),
|
|
658
|
+
token: Joi.string().allow(""),
|
|
732
659
|
});
|
|
733
660
|
}
|
|
734
661
|
|
|
735
|
-
/** @returns {
|
|
736
|
-
static
|
|
662
|
+
/** @returns {VerifyEmailOtpRequestSchema} */
|
|
663
|
+
static VerifyEmailOtpRequestSchema() {
|
|
737
664
|
return Joi.object({
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
665
|
+
email: Joi.string().allow(""),
|
|
666
|
+
action: Joi.string().allow(""),
|
|
667
|
+
register_token: Joi.string().allow(""),
|
|
668
|
+
otp: Joi.string().allow(""),
|
|
741
669
|
});
|
|
742
670
|
}
|
|
743
671
|
|
|
744
|
-
/** @returns {
|
|
745
|
-
static
|
|
672
|
+
/** @returns {VerifyEmailForgotOtpRequestSchema} */
|
|
673
|
+
static VerifyEmailForgotOtpRequestSchema() {
|
|
746
674
|
return Joi.object({
|
|
747
|
-
|
|
748
|
-
|
|
675
|
+
email: Joi.string().allow(""),
|
|
676
|
+
otp: Joi.string().allow(""),
|
|
749
677
|
});
|
|
750
678
|
}
|
|
751
679
|
|
|
752
|
-
/** @returns {
|
|
753
|
-
static
|
|
680
|
+
/** @returns {VerifyOtpRequestSchema} */
|
|
681
|
+
static VerifyOtpRequestSchema() {
|
|
754
682
|
return Joi.object({
|
|
755
|
-
|
|
756
|
-
first_name: Joi.string().allow(""),
|
|
757
|
-
gender: Joi.string().allow(""),
|
|
758
|
-
last_name: Joi.string().allow(""),
|
|
759
|
-
password: Joi.string().allow(""),
|
|
760
|
-
phone: UserApplicationModel.FormRegisterRequestSchemaPhone(),
|
|
683
|
+
request_id: Joi.string().allow(""),
|
|
761
684
|
register_token: Joi.string().allow(""),
|
|
685
|
+
otp: Joi.string().allow(""),
|
|
762
686
|
});
|
|
763
687
|
}
|
|
764
688
|
|
|
765
|
-
/** @returns {
|
|
766
|
-
static
|
|
689
|
+
/** @returns {VerifyMobileForgotOtpRequestSchema} */
|
|
690
|
+
static VerifyMobileForgotOtpRequestSchema() {
|
|
767
691
|
return Joi.object({
|
|
768
|
-
|
|
769
|
-
|
|
692
|
+
request_id: Joi.string().allow(""),
|
|
693
|
+
otp: Joi.string().allow(""),
|
|
770
694
|
});
|
|
771
695
|
}
|
|
772
696
|
|
|
773
|
-
/** @returns {
|
|
774
|
-
static
|
|
697
|
+
/** @returns {SendMobileOtpRequestSchema} */
|
|
698
|
+
static SendMobileOtpRequestSchema() {
|
|
775
699
|
return Joi.object({
|
|
776
|
-
|
|
700
|
+
mobile: Joi.string().allow(""),
|
|
701
|
+
country_code: Joi.string().allow(""),
|
|
702
|
+
action: Joi.string().allow(""),
|
|
703
|
+
token: Joi.string().allow(""),
|
|
704
|
+
android_hash: Joi.string().allow(""),
|
|
705
|
+
force: Joi.string().allow(""),
|
|
706
|
+
captcha_code: Joi.string().allow(""),
|
|
777
707
|
});
|
|
778
708
|
}
|
|
779
709
|
|
|
780
|
-
/** @returns {
|
|
781
|
-
static
|
|
710
|
+
/** @returns {SendMobileForgotOtpRequestSchema} */
|
|
711
|
+
static SendMobileForgotOtpRequestSchema() {
|
|
782
712
|
return Joi.object({
|
|
783
|
-
|
|
713
|
+
mobile: Joi.string().allow(""),
|
|
714
|
+
country_code: Joi.string().allow(""),
|
|
715
|
+
action: Joi.string().allow(""),
|
|
716
|
+
token: Joi.string().allow(""),
|
|
717
|
+
android_hash: Joi.string().allow(""),
|
|
784
718
|
});
|
|
785
719
|
}
|
|
786
720
|
|
|
787
|
-
/** @returns {
|
|
788
|
-
static
|
|
721
|
+
/** @returns {UpdatePasswordRequestSchema} */
|
|
722
|
+
static UpdatePasswordRequestSchema() {
|
|
789
723
|
return Joi.object({
|
|
790
|
-
|
|
791
|
-
|
|
724
|
+
old_password: Joi.string().allow(""),
|
|
725
|
+
new_password: Joi.string().allow(""),
|
|
792
726
|
});
|
|
793
727
|
}
|
|
794
728
|
|
|
795
|
-
/** @returns {
|
|
796
|
-
static
|
|
729
|
+
/** @returns {FormRegisterRequestSchema} */
|
|
730
|
+
static FormRegisterRequestSchema() {
|
|
797
731
|
return Joi.object({
|
|
732
|
+
first_name: Joi.string().allow(""),
|
|
733
|
+
last_name: Joi.string().allow(""),
|
|
734
|
+
gender: Joi.string().allow(""),
|
|
735
|
+
email: Joi.string().allow(""),
|
|
736
|
+
password: Joi.string().allow(""),
|
|
737
|
+
phone: UserApplicationModel.FormRegisterRequestSchemaPhone(),
|
|
798
738
|
register_token: Joi.string().allow(""),
|
|
799
|
-
request_id: Joi.string().allow(""),
|
|
800
|
-
user: UserApplicationModel.UserSchema(),
|
|
801
739
|
});
|
|
802
740
|
}
|
|
803
741
|
|
|
804
|
-
/** @returns {
|
|
805
|
-
static
|
|
742
|
+
/** @returns {TokenRequestBodySchema} */
|
|
743
|
+
static TokenRequestBodySchema() {
|
|
806
744
|
return Joi.object({
|
|
807
|
-
|
|
745
|
+
token: Joi.string().allow(""),
|
|
808
746
|
});
|
|
809
747
|
}
|
|
810
748
|
|
|
811
|
-
/** @returns {
|
|
812
|
-
static
|
|
749
|
+
/** @returns {ForgotPasswordRequestSchema} */
|
|
750
|
+
static ForgotPasswordRequestSchema() {
|
|
813
751
|
return Joi.object({
|
|
814
|
-
|
|
815
|
-
|
|
752
|
+
code: Joi.string().allow(""),
|
|
753
|
+
password: Joi.string().allow(""),
|
|
816
754
|
});
|
|
817
755
|
}
|
|
818
756
|
|
|
819
|
-
/** @returns {
|
|
820
|
-
static
|
|
757
|
+
/** @returns {CodeRequestBodySchema} */
|
|
758
|
+
static CodeRequestBodySchema() {
|
|
821
759
|
return Joi.object({
|
|
822
|
-
|
|
760
|
+
code: Joi.string().allow(""),
|
|
823
761
|
});
|
|
824
762
|
}
|
|
825
763
|
|
|
826
|
-
/** @returns {
|
|
827
|
-
static
|
|
764
|
+
/** @returns {SendResetPasswordEmailRequestSchema} */
|
|
765
|
+
static SendResetPasswordEmailRequestSchema() {
|
|
828
766
|
return Joi.object({
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
user_identifier: Joi.string().allow(""),
|
|
767
|
+
email: Joi.string().allow(""),
|
|
768
|
+
captcha_code: Joi.string().allow(""),
|
|
832
769
|
});
|
|
833
770
|
}
|
|
834
771
|
|
|
835
|
-
/** @returns {
|
|
836
|
-
static
|
|
772
|
+
/** @returns {SendResetPasswordMobileRequestSchema} */
|
|
773
|
+
static SendResetPasswordMobileRequestSchema() {
|
|
837
774
|
return Joi.object({
|
|
838
|
-
|
|
775
|
+
country_code: Joi.string().allow(""),
|
|
776
|
+
mobile: Joi.string().allow(""),
|
|
777
|
+
captcha_code: Joi.string().allow(""),
|
|
839
778
|
});
|
|
840
779
|
}
|
|
841
780
|
|
|
842
|
-
/** @returns {
|
|
843
|
-
static
|
|
781
|
+
/** @returns {PasswordLoginRequestSchema} */
|
|
782
|
+
static PasswordLoginRequestSchema() {
|
|
844
783
|
return Joi.object({
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
784
|
+
captcha_code: Joi.string().allow(""),
|
|
785
|
+
password: Joi.string().allow(""),
|
|
786
|
+
username: Joi.string().allow(""),
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** @returns {SendOtpRequestSchema} */
|
|
791
|
+
static SendOtpRequestSchema() {
|
|
792
|
+
return Joi.object({
|
|
793
|
+
country_code: Joi.string().allow(""),
|
|
794
|
+
captcha_code: Joi.string().allow(""),
|
|
795
|
+
mobile: Joi.string().allow(""),
|
|
796
|
+
android_hash: Joi.string().allow(""),
|
|
848
797
|
});
|
|
849
798
|
}
|
|
850
799
|
|
|
@@ -857,211 +806,206 @@ class UserApplicationModel {
|
|
|
857
806
|
});
|
|
858
807
|
}
|
|
859
808
|
|
|
860
|
-
/** @returns {
|
|
861
|
-
static
|
|
809
|
+
/** @returns {OAuthRequestAppleSchema} */
|
|
810
|
+
static OAuthRequestAppleSchema() {
|
|
862
811
|
return Joi.object({
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
812
|
+
user_identifier: Joi.string().allow(""),
|
|
813
|
+
oauth: UserApplicationModel.OAuthRequestAppleSchemaOauth(),
|
|
814
|
+
profile: UserApplicationModel.OAuthRequestAppleSchemaProfile(),
|
|
866
815
|
});
|
|
867
816
|
}
|
|
868
817
|
|
|
869
|
-
/** @returns {
|
|
870
|
-
static
|
|
818
|
+
/** @returns {UserObjectSchema} */
|
|
819
|
+
static UserObjectSchema() {
|
|
871
820
|
return Joi.object({
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
821
|
+
user: UserApplicationModel.UserSchema(),
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
/** @returns {AuthSuccess} */
|
|
826
|
+
static AuthSuccess() {
|
|
827
|
+
return Joi.object({
|
|
828
|
+
register_token: Joi.string().allow(""),
|
|
829
|
+
user_exists: Joi.boolean(),
|
|
830
|
+
user: UserApplicationModel.UserSchema(),
|
|
878
831
|
});
|
|
879
832
|
}
|
|
880
833
|
|
|
881
|
-
/** @returns {
|
|
882
|
-
static
|
|
834
|
+
/** @returns {SendOtpResponse} */
|
|
835
|
+
static SendOtpResponse() {
|
|
883
836
|
return Joi.object({
|
|
884
|
-
|
|
837
|
+
resend_timer: Joi.number(),
|
|
838
|
+
resend_token: Joi.string().allow(""),
|
|
839
|
+
success: Joi.boolean(),
|
|
840
|
+
request_id: Joi.string().allow(""),
|
|
885
841
|
message: Joi.string().allow(""),
|
|
886
842
|
mobile: Joi.string().allow(""),
|
|
843
|
+
country_code: Joi.string().allow(""),
|
|
844
|
+
email: Joi.string().allow(""),
|
|
845
|
+
resend_email_token: Joi.string().allow(""),
|
|
846
|
+
register_token: Joi.string().allow(""),
|
|
847
|
+
verify_email_otp: Joi.boolean(),
|
|
848
|
+
verify_mobile_otp: Joi.boolean(),
|
|
849
|
+
user_exists: Joi.boolean(),
|
|
850
|
+
});
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/** @returns {ProfileEditSuccess} */
|
|
854
|
+
static ProfileEditSuccess() {
|
|
855
|
+
return Joi.object({
|
|
856
|
+
user: UserApplicationModel.UserSchema(),
|
|
887
857
|
register_token: Joi.string().allow(""),
|
|
858
|
+
resend_email_token: Joi.string().allow(""),
|
|
859
|
+
user_exists: Joi.boolean(),
|
|
860
|
+
verify_email_link: Joi.boolean(),
|
|
861
|
+
verify_email_otp: Joi.boolean(),
|
|
862
|
+
verify_mobile_otp: Joi.boolean(),
|
|
863
|
+
email: Joi.string().allow(""),
|
|
888
864
|
request_id: Joi.string().allow(""),
|
|
865
|
+
country_code: Joi.string().allow(""),
|
|
866
|
+
mobile: Joi.string().allow(""),
|
|
867
|
+
success: Joi.boolean(),
|
|
868
|
+
message: Joi.string().allow(""),
|
|
889
869
|
resend_timer: Joi.number(),
|
|
890
870
|
resend_token: Joi.string().allow(""),
|
|
891
|
-
success: Joi.boolean(),
|
|
892
871
|
});
|
|
893
872
|
}
|
|
894
873
|
|
|
895
|
-
/** @returns {
|
|
896
|
-
static
|
|
874
|
+
/** @returns {LoginSuccess} */
|
|
875
|
+
static LoginSuccess() {
|
|
897
876
|
return Joi.object({
|
|
898
|
-
|
|
899
|
-
|
|
877
|
+
user: UserApplicationModel.UserSchema(),
|
|
878
|
+
request_id: Joi.string().allow(""),
|
|
879
|
+
register_token: Joi.string().allow(""),
|
|
900
880
|
});
|
|
901
881
|
}
|
|
902
882
|
|
|
903
|
-
/** @returns {
|
|
904
|
-
static
|
|
883
|
+
/** @returns {ResetForgotPasswordSuccess} */
|
|
884
|
+
static ResetForgotPasswordSuccess() {
|
|
905
885
|
return Joi.object({
|
|
906
|
-
|
|
907
|
-
country_code: Joi.number(),
|
|
908
|
-
phone: Joi.string().allow(""),
|
|
909
|
-
primary: Joi.boolean(),
|
|
910
|
-
verified: Joi.boolean(),
|
|
886
|
+
success: Joi.boolean(),
|
|
911
887
|
});
|
|
912
888
|
}
|
|
913
889
|
|
|
914
|
-
/** @returns {
|
|
915
|
-
static
|
|
890
|
+
/** @returns {VerifyOtpSuccess} */
|
|
891
|
+
static VerifyOtpSuccess() {
|
|
916
892
|
return Joi.object({
|
|
917
|
-
|
|
918
|
-
|
|
893
|
+
user: UserApplicationModel.UserSchema(),
|
|
894
|
+
user_exists: Joi.boolean(),
|
|
895
|
+
register_token: Joi.string().allow(""),
|
|
919
896
|
});
|
|
920
897
|
}
|
|
921
898
|
|
|
922
|
-
/** @returns {
|
|
923
|
-
static
|
|
899
|
+
/** @returns {VerifyForgotOtpSuccess} */
|
|
900
|
+
static VerifyForgotOtpSuccess() {
|
|
924
901
|
return Joi.object({
|
|
925
|
-
|
|
926
|
-
|
|
902
|
+
success: Joi.boolean(),
|
|
903
|
+
forgot_token: Joi.string().allow(""),
|
|
927
904
|
});
|
|
928
905
|
}
|
|
929
906
|
|
|
930
|
-
/** @returns {
|
|
931
|
-
static
|
|
907
|
+
/** @returns {ResetPasswordSuccess} */
|
|
908
|
+
static ResetPasswordSuccess() {
|
|
932
909
|
return Joi.object({
|
|
933
|
-
|
|
934
|
-
active: Joi.boolean(),
|
|
935
|
-
created_at: Joi.string().allow(""),
|
|
936
|
-
delete_account_consent: Joi.any(),
|
|
937
|
-
delete_account_day: Joi.number(),
|
|
938
|
-
delete_account_reasons: Joi.array().items(
|
|
939
|
-
UserApplicationModel.DeleteAccountReasons()
|
|
940
|
-
),
|
|
941
|
-
desktop_image: Joi.string().allow(""),
|
|
942
|
-
display: Joi.string().allow(""),
|
|
943
|
-
flash_card: UserApplicationModel.FlashCard(),
|
|
944
|
-
forgot_password: Joi.boolean(),
|
|
945
|
-
login: UserApplicationModel.Login(),
|
|
946
|
-
look_and_feel: UserApplicationModel.LookAndFeel(),
|
|
947
|
-
meta: UserApplicationModel.MetaSchema(),
|
|
948
|
-
mobile_image: Joi.string().allow(""),
|
|
949
|
-
name: Joi.string().allow(""),
|
|
950
|
-
register: Joi.boolean(),
|
|
951
|
-
register_required_fields: UserApplicationModel.RegisterRequiredFields(),
|
|
952
|
-
required_fields: UserApplicationModel.RequiredFields(),
|
|
953
|
-
session_config: Joi.any(),
|
|
954
|
-
skip_captcha: Joi.boolean(),
|
|
955
|
-
skip_login: Joi.boolean(),
|
|
956
|
-
social: UserApplicationModel.Social(),
|
|
957
|
-
social_tokens: UserApplicationModel.SocialTokens(),
|
|
958
|
-
subtext: Joi.string().allow(""),
|
|
959
|
-
updated_at: Joi.string().allow(""),
|
|
910
|
+
status: Joi.string().allow(""),
|
|
960
911
|
});
|
|
961
912
|
}
|
|
962
913
|
|
|
963
|
-
/** @returns {
|
|
964
|
-
static
|
|
914
|
+
/** @returns {RegisterFormSuccess} */
|
|
915
|
+
static RegisterFormSuccess() {
|
|
965
916
|
return Joi.object({
|
|
966
|
-
country_code: Joi.string().allow(""),
|
|
967
917
|
email: Joi.string().allow(""),
|
|
968
|
-
message: Joi.string().allow(""),
|
|
969
|
-
mobile: Joi.string().allow(""),
|
|
970
|
-
register_token: Joi.string().allow(""),
|
|
971
|
-
request_id: Joi.string().allow(""),
|
|
972
|
-
resend_email_token: Joi.string().allow(""),
|
|
973
918
|
resend_timer: Joi.number(),
|
|
974
919
|
resend_token: Joi.string().allow(""),
|
|
920
|
+
resend_email_token: Joi.string().allow(""),
|
|
921
|
+
register_token: Joi.string().allow(""),
|
|
975
922
|
success: Joi.boolean(),
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
923
|
+
request_id: Joi.string().allow(""),
|
|
924
|
+
message: Joi.string().allow(""),
|
|
925
|
+
mobile: Joi.string().allow(""),
|
|
926
|
+
country_code: Joi.string().allow(""),
|
|
979
927
|
verify_email_otp: Joi.boolean(),
|
|
980
928
|
verify_mobile_otp: Joi.boolean(),
|
|
929
|
+
user_exists: Joi.boolean(),
|
|
981
930
|
});
|
|
982
931
|
}
|
|
983
932
|
|
|
984
|
-
/** @returns {
|
|
985
|
-
static
|
|
933
|
+
/** @returns {VerifyEmailSuccess} */
|
|
934
|
+
static VerifyEmailSuccess() {
|
|
986
935
|
return Joi.object({
|
|
987
|
-
country_code: Joi.string().allow(""),
|
|
988
|
-
email: Joi.string().allow(""),
|
|
989
936
|
message: Joi.string().allow(""),
|
|
990
|
-
mobile: Joi.string().allow(""),
|
|
991
|
-
register_token: Joi.string().allow(""),
|
|
992
|
-
request_id: Joi.string().allow(""),
|
|
993
|
-
resend_email_token: Joi.string().allow(""),
|
|
994
|
-
resend_timer: Joi.number(),
|
|
995
|
-
resend_token: Joi.string().allow(""),
|
|
996
|
-
success: Joi.boolean(),
|
|
997
|
-
user_exists: Joi.boolean(),
|
|
998
|
-
verify_email_otp: Joi.boolean(),
|
|
999
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1000
937
|
});
|
|
1001
938
|
}
|
|
1002
939
|
|
|
1003
|
-
/** @returns {
|
|
1004
|
-
static
|
|
940
|
+
/** @returns {HasPasswordSuccess} */
|
|
941
|
+
static HasPasswordSuccess() {
|
|
1005
942
|
return Joi.object({
|
|
1006
|
-
|
|
1007
|
-
mobile: UserApplicationModel.RegisterRequiredFieldsMobile(),
|
|
943
|
+
result: Joi.boolean(),
|
|
1008
944
|
});
|
|
1009
945
|
}
|
|
1010
946
|
|
|
1011
|
-
/** @returns {
|
|
1012
|
-
static
|
|
947
|
+
/** @returns {LogoutSuccess} */
|
|
948
|
+
static LogoutSuccess() {
|
|
1013
949
|
return Joi.object({
|
|
1014
|
-
|
|
1015
|
-
level: Joi.string().allow(""),
|
|
950
|
+
logout: Joi.boolean(),
|
|
1016
951
|
});
|
|
1017
952
|
}
|
|
1018
953
|
|
|
1019
|
-
/** @returns {
|
|
1020
|
-
static
|
|
954
|
+
/** @returns {DeleteUserSuccess} */
|
|
955
|
+
static DeleteUserSuccess() {
|
|
1021
956
|
return Joi.object({
|
|
1022
|
-
|
|
1023
|
-
level: Joi.string().allow(""),
|
|
957
|
+
success: Joi.boolean(),
|
|
1024
958
|
});
|
|
1025
959
|
}
|
|
1026
960
|
|
|
1027
|
-
/** @returns {
|
|
1028
|
-
static
|
|
961
|
+
/** @returns {OtpSuccess} */
|
|
962
|
+
static OtpSuccess() {
|
|
1029
963
|
return Joi.object({
|
|
1030
|
-
|
|
1031
|
-
|
|
964
|
+
resend_timer: Joi.number(),
|
|
965
|
+
resend_token: Joi.string().allow(""),
|
|
966
|
+
register_token: Joi.string().allow(""),
|
|
967
|
+
success: Joi.boolean(),
|
|
968
|
+
request_id: Joi.string().allow(""),
|
|
969
|
+
message: Joi.string().allow(""),
|
|
970
|
+
mobile: Joi.string().allow(""),
|
|
971
|
+
country_code: Joi.string().allow(""),
|
|
1032
972
|
});
|
|
1033
973
|
}
|
|
1034
974
|
|
|
1035
|
-
/** @returns {
|
|
1036
|
-
static
|
|
975
|
+
/** @returns {EmailOtpSuccess} */
|
|
976
|
+
static EmailOtpSuccess() {
|
|
1037
977
|
return Joi.object({
|
|
1038
978
|
success: Joi.boolean(),
|
|
1039
979
|
});
|
|
1040
980
|
}
|
|
1041
981
|
|
|
1042
|
-
/** @returns {
|
|
1043
|
-
static
|
|
982
|
+
/** @returns {SessionListSuccess} */
|
|
983
|
+
static SessionListSuccess() {
|
|
1044
984
|
return Joi.object({
|
|
1045
|
-
|
|
985
|
+
sessions: Joi.array().items(Joi.string().allow("")),
|
|
1046
986
|
});
|
|
1047
987
|
}
|
|
1048
988
|
|
|
1049
|
-
/** @returns {
|
|
1050
|
-
static
|
|
989
|
+
/** @returns {VerifyMobileOTPSuccess} */
|
|
990
|
+
static VerifyMobileOTPSuccess() {
|
|
1051
991
|
return Joi.object({
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
token: Joi.string().allow(""),
|
|
992
|
+
user: UserApplicationModel.UserSchema(),
|
|
993
|
+
verify_mobile_link: Joi.boolean(),
|
|
1055
994
|
});
|
|
1056
995
|
}
|
|
1057
996
|
|
|
1058
|
-
/** @returns {
|
|
1059
|
-
static
|
|
997
|
+
/** @returns {VerifyEmailOTPSuccess} */
|
|
998
|
+
static VerifyEmailOTPSuccess() {
|
|
1060
999
|
return Joi.object({
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1000
|
+
user: UserApplicationModel.UserSchema(),
|
|
1001
|
+
verify_email_link: Joi.boolean(),
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
/** @returns {SendMobileVerifyLinkSuccess} */
|
|
1006
|
+
static SendMobileVerifyLinkSuccess() {
|
|
1007
|
+
return Joi.object({
|
|
1008
|
+
verify_mobile_link: Joi.boolean(),
|
|
1065
1009
|
});
|
|
1066
1010
|
}
|
|
1067
1011
|
|
|
@@ -1072,103 +1016,129 @@ class UserApplicationModel {
|
|
|
1072
1016
|
});
|
|
1073
1017
|
}
|
|
1074
1018
|
|
|
1075
|
-
/** @returns {
|
|
1076
|
-
static
|
|
1019
|
+
/** @returns {AuthenticationInternalServerErrorSchema} */
|
|
1020
|
+
static AuthenticationInternalServerErrorSchema() {
|
|
1077
1021
|
return Joi.object({
|
|
1078
|
-
|
|
1079
|
-
android_hash: Joi.string().allow(""),
|
|
1080
|
-
country_code: Joi.string().allow(""),
|
|
1081
|
-
mobile: Joi.string().allow(""),
|
|
1082
|
-
token: Joi.string().allow(""),
|
|
1022
|
+
message: Joi.string().allow(""),
|
|
1083
1023
|
});
|
|
1084
1024
|
}
|
|
1085
1025
|
|
|
1086
|
-
/** @returns {
|
|
1087
|
-
static
|
|
1026
|
+
/** @returns {AuthenticationApiErrorSchema} */
|
|
1027
|
+
static AuthenticationApiErrorSchema() {
|
|
1088
1028
|
return Joi.object({
|
|
1089
|
-
|
|
1090
|
-
android_hash: Joi.string().allow(""),
|
|
1091
|
-
country_code: Joi.string().allow(""),
|
|
1092
|
-
force: Joi.string().allow(""),
|
|
1093
|
-
mobile: Joi.string().allow(""),
|
|
1094
|
-
token: Joi.string().allow(""),
|
|
1029
|
+
message: Joi.string().allow(""),
|
|
1095
1030
|
});
|
|
1096
1031
|
}
|
|
1097
1032
|
|
|
1098
|
-
/** @returns {
|
|
1099
|
-
static
|
|
1033
|
+
/** @returns {APIError} */
|
|
1034
|
+
static APIError() {
|
|
1100
1035
|
return Joi.object({
|
|
1101
|
-
|
|
1036
|
+
code: Joi.string().allow(""),
|
|
1037
|
+
message: Joi.string().allow(""),
|
|
1038
|
+
info: Joi.string().allow(""),
|
|
1039
|
+
request_id: Joi.string().allow(""),
|
|
1040
|
+
meta: Joi.any(),
|
|
1102
1041
|
});
|
|
1103
1042
|
}
|
|
1104
1043
|
|
|
1105
|
-
/** @returns {
|
|
1106
|
-
static
|
|
1044
|
+
/** @returns {FormRegisterRequestSchemaPhone} */
|
|
1045
|
+
static FormRegisterRequestSchemaPhone() {
|
|
1107
1046
|
return Joi.object({
|
|
1108
|
-
android_hash: Joi.string().allow(""),
|
|
1109
1047
|
country_code: Joi.string().allow(""),
|
|
1110
1048
|
mobile: Joi.string().allow(""),
|
|
1111
1049
|
});
|
|
1112
1050
|
}
|
|
1113
1051
|
|
|
1114
|
-
/** @returns {
|
|
1115
|
-
static
|
|
1052
|
+
/** @returns {OAuthRequestSchemaOauth2} */
|
|
1053
|
+
static OAuthRequestSchemaOauth2() {
|
|
1054
|
+
return Joi.object({
|
|
1055
|
+
access_token: Joi.string().allow(""),
|
|
1056
|
+
expiry: Joi.number(),
|
|
1057
|
+
refresh_token: Joi.string().allow(""),
|
|
1058
|
+
});
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
/** @returns {OAuthRequestSchemaProfile} */
|
|
1062
|
+
static OAuthRequestSchemaProfile() {
|
|
1116
1063
|
return Joi.object({
|
|
1117
|
-
|
|
1064
|
+
last_name: Joi.string().allow(""),
|
|
1065
|
+
image: Joi.string().allow(""),
|
|
1066
|
+
id: Joi.string().allow(""),
|
|
1118
1067
|
email: Joi.string().allow(""),
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
register_token: Joi.string().allow(""),
|
|
1122
|
-
request_id: Joi.string().allow(""),
|
|
1123
|
-
resend_email_token: Joi.string().allow(""),
|
|
1124
|
-
resend_timer: Joi.number(),
|
|
1125
|
-
resend_token: Joi.string().allow(""),
|
|
1126
|
-
success: Joi.boolean(),
|
|
1127
|
-
user_exists: Joi.boolean(),
|
|
1128
|
-
verify_email_otp: Joi.boolean(),
|
|
1129
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1068
|
+
full_name: Joi.string().allow(""),
|
|
1069
|
+
first_name: Joi.string().allow(""),
|
|
1130
1070
|
});
|
|
1131
1071
|
}
|
|
1132
1072
|
|
|
1133
|
-
/** @returns {
|
|
1134
|
-
static
|
|
1073
|
+
/** @returns {OAuthRequestAppleSchemaOauth} */
|
|
1074
|
+
static OAuthRequestAppleSchemaOauth() {
|
|
1135
1075
|
return Joi.object({
|
|
1136
|
-
|
|
1076
|
+
identity_token: Joi.string().allow(""),
|
|
1137
1077
|
});
|
|
1138
1078
|
}
|
|
1139
1079
|
|
|
1140
|
-
/** @returns {
|
|
1141
|
-
static
|
|
1080
|
+
/** @returns {OAuthRequestAppleSchemaProfile} */
|
|
1081
|
+
static OAuthRequestAppleSchemaProfile() {
|
|
1142
1082
|
return Joi.object({
|
|
1143
|
-
|
|
1144
|
-
|
|
1083
|
+
last_name: Joi.string().allow(""),
|
|
1084
|
+
full_name: Joi.string().allow(""),
|
|
1085
|
+
first_name: Joi.string().allow(""),
|
|
1145
1086
|
});
|
|
1146
1087
|
}
|
|
1147
1088
|
|
|
1148
|
-
/** @returns {
|
|
1149
|
-
static
|
|
1089
|
+
/** @returns {PlatformSchema} */
|
|
1090
|
+
static PlatformSchema() {
|
|
1150
1091
|
return Joi.object({
|
|
1092
|
+
display: Joi.string().allow(""),
|
|
1093
|
+
look_and_feel: UserApplicationModel.LookAndFeel(),
|
|
1094
|
+
updated_at: Joi.string().allow(""),
|
|
1151
1095
|
active: Joi.boolean(),
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1096
|
+
forgot_password: Joi.boolean(),
|
|
1097
|
+
login: UserApplicationModel.Login(),
|
|
1098
|
+
skip_captcha: Joi.boolean(),
|
|
1099
|
+
name: Joi.string().allow(""),
|
|
1100
|
+
meta: UserApplicationModel.MetaSchema(),
|
|
1101
|
+
_id: Joi.string().allow(""),
|
|
1102
|
+
social: UserApplicationModel.Social(),
|
|
1103
|
+
required_fields: UserApplicationModel.RequiredFields(),
|
|
1104
|
+
register_required_fields: UserApplicationModel.RegisterRequiredFields(),
|
|
1105
|
+
skip_login: Joi.boolean(),
|
|
1106
|
+
flash_card: UserApplicationModel.FlashCard(),
|
|
1107
|
+
subtext: Joi.string().allow(""),
|
|
1108
|
+
social_tokens: UserApplicationModel.SocialTokens(),
|
|
1109
|
+
created_at: Joi.string().allow(""),
|
|
1110
|
+
register: Joi.boolean(),
|
|
1111
|
+
mobile_image: Joi.string().allow(""),
|
|
1112
|
+
desktop_image: Joi.string().allow(""),
|
|
1113
|
+
delete_account_day: Joi.number(),
|
|
1114
|
+
delete_account_reasons: Joi.array().items(
|
|
1115
|
+
UserApplicationModel.DeleteAccountReasons()
|
|
1116
|
+
),
|
|
1117
|
+
delete_account_consent: Joi.any(),
|
|
1118
|
+
session_config: Joi.any(),
|
|
1156
1119
|
});
|
|
1157
1120
|
}
|
|
1158
1121
|
|
|
1159
|
-
/** @returns {
|
|
1160
|
-
static
|
|
1122
|
+
/** @returns {LookAndFeel} */
|
|
1123
|
+
static LookAndFeel() {
|
|
1161
1124
|
return Joi.object({
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
type: Joi.string().allow(""),
|
|
1125
|
+
card_position: Joi.string().allow(""),
|
|
1126
|
+
background_color: Joi.string().allow(""),
|
|
1165
1127
|
});
|
|
1166
1128
|
}
|
|
1167
1129
|
|
|
1168
|
-
/** @returns {
|
|
1169
|
-
static
|
|
1130
|
+
/** @returns {Login} */
|
|
1131
|
+
static Login() {
|
|
1170
1132
|
return Joi.object({
|
|
1171
|
-
|
|
1133
|
+
password: Joi.boolean(),
|
|
1134
|
+
otp: Joi.boolean(),
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
/** @returns {MetaSchema} */
|
|
1139
|
+
static MetaSchema() {
|
|
1140
|
+
return Joi.object({
|
|
1141
|
+
fynd_default: Joi.boolean(),
|
|
1172
1142
|
});
|
|
1173
1143
|
}
|
|
1174
1144
|
|
|
@@ -1176,158 +1146,164 @@ class UserApplicationModel {
|
|
|
1176
1146
|
static Social() {
|
|
1177
1147
|
return Joi.object({
|
|
1178
1148
|
account_kit: Joi.boolean(),
|
|
1179
|
-
apple: Joi.boolean(),
|
|
1180
1149
|
facebook: Joi.boolean(),
|
|
1181
1150
|
google: Joi.boolean(),
|
|
1151
|
+
apple: Joi.boolean(),
|
|
1182
1152
|
});
|
|
1183
1153
|
}
|
|
1184
1154
|
|
|
1185
|
-
/** @returns {
|
|
1186
|
-
static
|
|
1155
|
+
/** @returns {RequiredFields} */
|
|
1156
|
+
static RequiredFields() {
|
|
1187
1157
|
return Joi.object({
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
google: UserApplicationModel.Google(),
|
|
1158
|
+
email: UserApplicationModel.PlatformEmail(),
|
|
1159
|
+
mobile: UserApplicationModel.PlatformMobile(),
|
|
1191
1160
|
});
|
|
1192
1161
|
}
|
|
1193
1162
|
|
|
1194
|
-
/** @returns {
|
|
1195
|
-
static
|
|
1163
|
+
/** @returns {PlatformEmail} */
|
|
1164
|
+
static PlatformEmail() {
|
|
1196
1165
|
return Joi.object({
|
|
1197
|
-
|
|
1166
|
+
is_required: Joi.boolean(),
|
|
1167
|
+
level: Joi.string().allow(""),
|
|
1198
1168
|
});
|
|
1199
1169
|
}
|
|
1200
1170
|
|
|
1201
|
-
/** @returns {
|
|
1202
|
-
static
|
|
1171
|
+
/** @returns {PlatformMobile} */
|
|
1172
|
+
static PlatformMobile() {
|
|
1203
1173
|
return Joi.object({
|
|
1204
|
-
|
|
1205
|
-
|
|
1174
|
+
is_required: Joi.boolean(),
|
|
1175
|
+
level: Joi.string().allow(""),
|
|
1206
1176
|
});
|
|
1207
1177
|
}
|
|
1208
1178
|
|
|
1209
|
-
/** @returns {
|
|
1210
|
-
static
|
|
1179
|
+
/** @returns {RegisterRequiredFields} */
|
|
1180
|
+
static RegisterRequiredFields() {
|
|
1211
1181
|
return Joi.object({
|
|
1212
|
-
|
|
1182
|
+
email: UserApplicationModel.RegisterRequiredFieldsEmail(),
|
|
1183
|
+
mobile: UserApplicationModel.RegisterRequiredFieldsMobile(),
|
|
1213
1184
|
});
|
|
1214
1185
|
}
|
|
1215
1186
|
|
|
1216
|
-
/** @returns {
|
|
1217
|
-
static
|
|
1187
|
+
/** @returns {RegisterRequiredFieldsEmail} */
|
|
1188
|
+
static RegisterRequiredFieldsEmail() {
|
|
1218
1189
|
return Joi.object({
|
|
1219
|
-
|
|
1190
|
+
is_required: Joi.boolean(),
|
|
1191
|
+
level: Joi.string().allow(""),
|
|
1220
1192
|
});
|
|
1221
1193
|
}
|
|
1222
1194
|
|
|
1223
|
-
/** @returns {
|
|
1224
|
-
static
|
|
1195
|
+
/** @returns {RegisterRequiredFieldsMobile} */
|
|
1196
|
+
static RegisterRequiredFieldsMobile() {
|
|
1225
1197
|
return Joi.object({
|
|
1226
|
-
|
|
1198
|
+
is_required: Joi.boolean(),
|
|
1199
|
+
level: Joi.string().allow(""),
|
|
1227
1200
|
});
|
|
1228
1201
|
}
|
|
1229
1202
|
|
|
1230
|
-
/** @returns {
|
|
1231
|
-
static
|
|
1203
|
+
/** @returns {FlashCard} */
|
|
1204
|
+
static FlashCard() {
|
|
1232
1205
|
return Joi.object({
|
|
1233
|
-
|
|
1206
|
+
text: Joi.string().allow(""),
|
|
1207
|
+
text_color: Joi.string().allow(""),
|
|
1208
|
+
background_color: Joi.string().allow(""),
|
|
1234
1209
|
});
|
|
1235
1210
|
}
|
|
1236
1211
|
|
|
1237
|
-
/** @returns {
|
|
1238
|
-
static
|
|
1212
|
+
/** @returns {SocialTokens} */
|
|
1213
|
+
static SocialTokens() {
|
|
1239
1214
|
return Joi.object({
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
application_id: Joi.string().allow(""),
|
|
1244
|
-
created_at: Joi.string().allow(""),
|
|
1245
|
-
dob: Joi.string().allow(""),
|
|
1246
|
-
emails: Joi.array().items(UserApplicationModel.Email()),
|
|
1247
|
-
first_name: Joi.string().allow(""),
|
|
1248
|
-
gender: Joi.string().allow(""),
|
|
1249
|
-
last_name: Joi.string().allow(""),
|
|
1250
|
-
meta: Joi.any(),
|
|
1251
|
-
phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
|
|
1252
|
-
profile_pic_url: Joi.string().allow(""),
|
|
1253
|
-
updated_at: Joi.string().allow(""),
|
|
1254
|
-
user_id: Joi.string().allow(""),
|
|
1255
|
-
username: Joi.string().allow(""),
|
|
1215
|
+
facebook: UserApplicationModel.Facebook(),
|
|
1216
|
+
account_kit: UserApplicationModel.Accountkit(),
|
|
1217
|
+
google: UserApplicationModel.Google(),
|
|
1256
1218
|
});
|
|
1257
1219
|
}
|
|
1258
1220
|
|
|
1259
|
-
/** @returns {
|
|
1260
|
-
static
|
|
1221
|
+
/** @returns {DeleteAccountReasons} */
|
|
1222
|
+
static DeleteAccountReasons() {
|
|
1261
1223
|
return Joi.object({
|
|
1262
|
-
|
|
1263
|
-
|
|
1224
|
+
reason_text: Joi.string().allow(""),
|
|
1225
|
+
reason_id: Joi.string().allow(""),
|
|
1226
|
+
show_text_area: Joi.boolean(),
|
|
1264
1227
|
});
|
|
1265
1228
|
}
|
|
1266
1229
|
|
|
1267
|
-
/** @returns {
|
|
1268
|
-
static
|
|
1230
|
+
/** @returns {DeleteAccountConsent} */
|
|
1231
|
+
static DeleteAccountConsent() {
|
|
1269
1232
|
return Joi.object({
|
|
1270
|
-
|
|
1271
|
-
email: Joi.string().allow(""),
|
|
1272
|
-
otp: Joi.string().allow(""),
|
|
1273
|
-
register_token: Joi.string().allow(""),
|
|
1233
|
+
consent_text: Joi.string().allow(""),
|
|
1274
1234
|
});
|
|
1275
1235
|
}
|
|
1276
1236
|
|
|
1277
|
-
/** @returns {
|
|
1278
|
-
static
|
|
1237
|
+
/** @returns {Facebook} */
|
|
1238
|
+
static Facebook() {
|
|
1279
1239
|
return Joi.object({
|
|
1280
|
-
|
|
1281
|
-
verify_email_link: Joi.boolean(),
|
|
1240
|
+
app_id: Joi.string().allow(""),
|
|
1282
1241
|
});
|
|
1283
1242
|
}
|
|
1284
1243
|
|
|
1285
|
-
/** @returns {
|
|
1286
|
-
static
|
|
1244
|
+
/** @returns {Accountkit} */
|
|
1245
|
+
static Accountkit() {
|
|
1287
1246
|
return Joi.object({
|
|
1288
|
-
|
|
1247
|
+
app_id: Joi.string().allow(""),
|
|
1289
1248
|
});
|
|
1290
1249
|
}
|
|
1291
1250
|
|
|
1292
|
-
/** @returns {
|
|
1293
|
-
static
|
|
1251
|
+
/** @returns {Google} */
|
|
1252
|
+
static Google() {
|
|
1294
1253
|
return Joi.object({
|
|
1295
|
-
|
|
1296
|
-
success: Joi.boolean(),
|
|
1254
|
+
app_id: Joi.string().allow(""),
|
|
1297
1255
|
});
|
|
1298
1256
|
}
|
|
1299
1257
|
|
|
1300
|
-
/** @returns {
|
|
1301
|
-
static
|
|
1258
|
+
/** @returns {SessionExpiry} */
|
|
1259
|
+
static SessionExpiry() {
|
|
1302
1260
|
return Joi.object({
|
|
1303
|
-
|
|
1304
|
-
|
|
1261
|
+
duration: Joi.number(),
|
|
1262
|
+
type: Joi.string().allow(""),
|
|
1263
|
+
is_rolling: Joi.boolean(),
|
|
1305
1264
|
});
|
|
1306
1265
|
}
|
|
1307
1266
|
|
|
1308
|
-
/** @returns {
|
|
1309
|
-
static
|
|
1267
|
+
/** @returns {UserSchema} */
|
|
1268
|
+
static UserSchema() {
|
|
1310
1269
|
return Joi.object({
|
|
1311
|
-
|
|
1312
|
-
|
|
1270
|
+
application_id: Joi.string().allow(""),
|
|
1271
|
+
user_id: Joi.string().allow(""),
|
|
1272
|
+
first_name: Joi.string().allow(""),
|
|
1273
|
+
meta: Joi.any(),
|
|
1274
|
+
last_name: Joi.string().allow(""),
|
|
1275
|
+
phone_numbers: Joi.array().items(UserApplicationModel.PhoneNumber()),
|
|
1276
|
+
emails: Joi.array().items(UserApplicationModel.Email()),
|
|
1277
|
+
gender: Joi.string().allow(""),
|
|
1278
|
+
dob: Joi.string().allow(""),
|
|
1279
|
+
active: Joi.boolean(),
|
|
1280
|
+
profile_pic_url: Joi.string().allow(""),
|
|
1281
|
+
username: Joi.string().allow(""),
|
|
1282
|
+
account_type: Joi.string().allow(""),
|
|
1283
|
+
_id: Joi.string().allow(""),
|
|
1284
|
+
created_at: Joi.string().allow(""),
|
|
1285
|
+
updated_at: Joi.string().allow(""),
|
|
1313
1286
|
});
|
|
1314
1287
|
}
|
|
1315
1288
|
|
|
1316
|
-
/** @returns {
|
|
1317
|
-
static
|
|
1289
|
+
/** @returns {PhoneNumber} */
|
|
1290
|
+
static PhoneNumber() {
|
|
1318
1291
|
return Joi.object({
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1292
|
+
active: Joi.boolean(),
|
|
1293
|
+
primary: Joi.boolean(),
|
|
1294
|
+
verified: Joi.boolean(),
|
|
1295
|
+
phone: Joi.string().allow(""),
|
|
1296
|
+
country_code: Joi.number(),
|
|
1322
1297
|
});
|
|
1323
1298
|
}
|
|
1324
1299
|
|
|
1325
|
-
/** @returns {
|
|
1326
|
-
static
|
|
1300
|
+
/** @returns {Email} */
|
|
1301
|
+
static Email() {
|
|
1327
1302
|
return Joi.object({
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1303
|
+
primary: Joi.boolean(),
|
|
1304
|
+
verified: Joi.boolean(),
|
|
1305
|
+
email: Joi.string().allow(""),
|
|
1306
|
+
active: Joi.boolean(),
|
|
1331
1307
|
});
|
|
1332
1308
|
}
|
|
1333
1309
|
}
|