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