@gofynd/fdk-client-javascript 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -7
- package/package.json +1 -2
- package/sdk/application/ApplicationAPIClient.d.ts +3 -3
- package/sdk/application/ApplicationAPIClient.js +6 -4
- package/sdk/application/ApplicationClient.d.ts +2 -3
- package/sdk/application/ApplicationClient.js +1 -45
- package/sdk/application/ApplicationConfig.d.ts +46 -6
- package/sdk/application/ApplicationConfig.js +15 -16
- package/sdk/application/Cart/CartApplicationClient.d.ts +61 -33
- package/sdk/application/Cart/CartApplicationClient.js +225 -134
- package/sdk/application/Cart/CartApplicationModel.d.ts +4 -4
- package/sdk/application/Cart/CartApplicationModel.js +4 -4
- package/sdk/application/Catalog/CatalogApplicationClient.d.ts +61 -30
- package/sdk/application/Catalog/CatalogApplicationClient.js +234 -146
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +115 -13
- package/sdk/application/Catalog/CatalogApplicationModel.js +77 -12
- package/sdk/application/Common/CommonApplicationClient.d.ts +5 -3
- package/sdk/application/Common/CommonApplicationClient.js +13 -11
- package/sdk/application/Common/CommonApplicationModel.d.ts +3 -83
- package/sdk/application/Common/CommonApplicationModel.js +2 -58
- package/sdk/application/Communication/CommunicationApplicationClient.d.ts +9 -3
- package/sdk/application/Communication/CommunicationApplicationClient.js +25 -13
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +1 -34
- package/sdk/application/Communication/CommunicationApplicationModel.js +0 -36
- package/sdk/application/Configuration/ConfigurationApplicationClient.d.ts +46 -16
- package/sdk/application/Configuration/ConfigurationApplicationClient.js +144 -68
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1 -219
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +0 -226
- package/sdk/application/Content/ContentApplicationClient.d.ts +49 -21
- package/sdk/application/Content/ContentApplicationClient.js +159 -80
- package/sdk/application/Content/ContentApplicationModel.d.ts +5 -622
- package/sdk/application/Content/ContentApplicationModel.js +11 -763
- package/sdk/application/FileStorage/FileStorageApplicationClient.d.ts +6 -3
- package/sdk/application/FileStorage/FileStorageApplicationClient.js +20 -14
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +1 -152
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +0 -180
- package/sdk/application/Lead/LeadApplicationClient.d.ts +14 -7
- package/sdk/application/Lead/LeadApplicationClient.js +50 -31
- package/sdk/application/Lead/LeadApplicationModel.d.ts +22 -741
- package/sdk/application/Lead/LeadApplicationModel.js +21 -481
- package/sdk/application/Logistic/LogisticApplicationClient.d.ts +11 -5
- package/sdk/application/Logistic/LogisticApplicationClient.js +41 -20
- package/sdk/application/Order/OrderApplicationClient.d.ts +24 -12
- package/sdk/application/Order/OrderApplicationClient.js +88 -56
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +91 -42
- package/sdk/application/Payment/PaymentApplicationClient.js +293 -194
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +36 -36
- package/sdk/application/Payment/PaymentApplicationModel.js +36 -36
- package/sdk/application/PosCart/PosCartApplicationClient.d.ts +59 -32
- package/sdk/application/PosCart/PosCartApplicationClient.js +214 -130
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +2 -2
- package/sdk/application/PosCart/PosCartApplicationModel.js +2 -2
- package/sdk/application/Rewards/RewardsApplicationClient.d.ts +16 -7
- package/sdk/application/Rewards/RewardsApplicationClient.js +56 -29
- package/sdk/application/Share/ShareApplicationClient.d.ts +15 -7
- package/sdk/application/Share/ShareApplicationClient.js +51 -31
- package/sdk/application/Share/ShareApplicationModel.d.ts +1 -33
- package/sdk/application/Share/ShareApplicationModel.js +0 -38
- package/sdk/application/Theme/ThemeApplicationClient.d.ts +9 -4
- package/sdk/application/Theme/ThemeApplicationClient.js +35 -18
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +982 -312
- package/sdk/application/Theme/ThemeApplicationModel.js +621 -284
- package/sdk/application/User/UserApplicationClient.d.ts +74 -35
- package/sdk/application/User/UserApplicationClient.js +252 -161
- package/sdk/application/User/UserApplicationModel.d.ts +3 -401
- package/sdk/application/User/UserApplicationModel.js +2 -490
- package/sdk/common/AxiosHelper.js +1 -2
- package/sdk/common/FDKError.d.ts +3 -0
- package/sdk/common/FDKError.js +8 -0
- package/sdk/common/utils.d.ts +3 -0
- package/sdk/common/utils.js +29 -0
- package/sdk/partner/PartnerAPIClient.d.ts +5 -4
- package/sdk/partner/PartnerAPIClient.js +7 -4
- package/sdk/partner/PartnerClient.d.ts +2 -0
- package/sdk/partner/PartnerClient.js +3 -0
- package/sdk/partner/Theme/ThemePartnerClient.d.ts +299 -0
- package/sdk/partner/Theme/ThemePartnerClient.js +768 -0
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1706 -0
- package/sdk/partner/Theme/ThemePartnerModel.js +1409 -0
- package/sdk/partner/Theme/ThemePartnerValidator.d.ts +22 -0
- package/sdk/partner/Theme/ThemePartnerValidator.js +157 -0
- package/sdk/partner/index.d.ts +3 -1
- package/sdk/partner/index.js +3 -1
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.d.ts +8 -4
- package/sdk/platform/AuditTrail/AuditTrailPlatformClient.js +38 -16
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +1 -13
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +0 -12
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.d.ts +10 -0
- package/sdk/platform/AuditTrail/AuditTrailPlatformValidator.js +4 -0
- package/sdk/platform/Billing/BillingPlatformClient.d.ts +59 -14
- package/sdk/platform/Billing/BillingPlatformClient.js +315 -64
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +56 -196
- package/sdk/platform/Billing/BillingPlatformModel.js +63 -217
- package/sdk/platform/Billing/BillingPlatformValidator.d.ts +23 -1
- package/sdk/platform/Billing/BillingPlatformValidator.js +31 -0
- package/sdk/platform/Cart/CartPlatformApplicationClient.d.ts +124 -63
- package/sdk/platform/Cart/CartPlatformApplicationClient.js +431 -265
- package/sdk/platform/Cart/CartPlatformModel.d.ts +253 -53
- package/sdk/platform/Cart/CartPlatformModel.js +104 -54
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +120 -53
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +398 -247
- package/sdk/platform/Catalog/CatalogPlatformClient.d.ts +155 -78
- package/sdk/platform/Catalog/CatalogPlatformClient.js +561 -355
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +10 -12
- package/sdk/platform/Catalog/CatalogPlatformModel.js +10 -12
- package/sdk/platform/Catalog/CatalogPlatformValidator.d.ts +30 -0
- package/sdk/platform/Catalog/CatalogPlatformValidator.js +13 -0
- package/sdk/platform/Common/CommonPlatformClient.d.ts +5 -3
- package/sdk/platform/Common/CommonPlatformClient.js +13 -11
- package/sdk/platform/Common/CommonPlatformModel.d.ts +39 -64
- package/sdk/platform/Common/CommonPlatformModel.js +23 -57
- package/sdk/platform/Common/CommonPlatformValidator.d.ts +5 -10
- package/sdk/platform/Common/CommonPlatformValidator.js +3 -4
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.d.ts +370 -120
- package/sdk/platform/Communication/CommunicationPlatformApplicationClient.js +2328 -888
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.d.ts +143 -24
- package/sdk/platform/Communication/CommunicationPlatformApplicationValidator.js +179 -15
- package/sdk/platform/Communication/CommunicationPlatformClient.d.ts +2 -1
- package/sdk/platform/Communication/CommunicationPlatformClient.js +6 -5
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +386 -308
- package/sdk/platform/Communication/CommunicationPlatformModel.js +415 -355
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.d.ts +38 -13
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformClient.js +171 -57
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +53 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +54 -0
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.d.ts +5 -1
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.d.ts +96 -29
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationClient.js +311 -126
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.d.ts +5 -1
- package/sdk/platform/Configuration/ConfigurationPlatformApplicationValidator.js +7 -0
- package/sdk/platform/Configuration/ConfigurationPlatformClient.d.ts +36 -18
- package/sdk/platform/Configuration/ConfigurationPlatformClient.js +121 -86
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +13 -180
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +5 -113
- package/sdk/platform/Content/ContentPlatformApplicationClient.d.ts +162 -70
- package/sdk/platform/Content/ContentPlatformApplicationClient.js +528 -309
- package/sdk/platform/Content/ContentPlatformModel.d.ts +9 -198
- package/sdk/platform/Content/ContentPlatformModel.js +8 -231
- package/sdk/platform/Discount/DiscountPlatformClient.d.ts +48 -11
- package/sdk/platform/Discount/DiscountPlatformClient.js +142 -48
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +40 -1
- package/sdk/platform/Discount/DiscountPlatformModel.js +27 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +84 -18
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +486 -53
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +71 -7
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +81 -5
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +13 -18
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +58 -65
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +198 -71
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +212 -64
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.d.ts +18 -10
- package/sdk/platform/FileStorage/FileStoragePlatformValidator.js +11 -6
- package/sdk/platform/Finance/FinancePlatformClient.d.ts +177 -40
- package/sdk/platform/Finance/FinancePlatformClient.js +1028 -132
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +670 -22
- package/sdk/platform/Finance/FinancePlatformModel.js +809 -23
- package/sdk/platform/Finance/FinancePlatformValidator.d.ts +111 -1
- package/sdk/platform/Finance/FinancePlatformValidator.js +134 -0
- package/sdk/platform/Inventory/InventoryPlatformClient.d.ts +24 -12
- package/sdk/platform/Inventory/InventoryPlatformClient.js +94 -52
- package/sdk/platform/Lead/LeadPlatformApplicationClient.d.ts +27 -13
- package/sdk/platform/Lead/LeadPlatformApplicationClient.js +101 -55
- package/sdk/platform/Lead/LeadPlatformClient.d.ts +50 -39
- package/sdk/platform/Lead/LeadPlatformClient.js +171 -112
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +32 -390
- package/sdk/platform/Lead/LeadPlatformModel.js +31 -214
- package/sdk/platform/Lead/LeadPlatformValidator.d.ts +33 -33
- package/sdk/platform/Lead/LeadPlatformValidator.js +23 -23
- package/sdk/platform/OAuthClient.js +6 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.d.ts +4 -2
- package/sdk/platform/Order/OrderPlatformApplicationClient.js +12 -10
- package/sdk/platform/Order/OrderPlatformClient.d.ts +165 -71
- package/sdk/platform/Order/OrderPlatformClient.js +738 -205
- package/sdk/platform/Order/OrderPlatformModel.d.ts +261 -3
- package/sdk/platform/Order/OrderPlatformModel.js +225 -2
- package/sdk/platform/Order/OrderPlatformValidator.d.ts +104 -3
- package/sdk/platform/Order/OrderPlatformValidator.js +85 -2
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.d.ts +4 -22
- package/sdk/platform/Partner/PartnerPlatformApplicationClient.js +12 -159
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.d.ts +1 -30
- package/sdk/platform/Partner/PartnerPlatformApplicationValidator.js +0 -26
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +1 -690
- package/sdk/platform/Partner/PartnerPlatformModel.js +0 -809
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.d.ts +167 -32
- package/sdk/platform/Payment/PaymentPlatformApplicationClient.js +793 -145
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.d.ts +91 -1
- package/sdk/platform/Payment/PaymentPlatformApplicationValidator.js +91 -0
- package/sdk/platform/Payment/PaymentPlatformClient.d.ts +20 -10
- package/sdk/platform/Payment/PaymentPlatformClient.js +68 -47
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +549 -7
- package/sdk/platform/Payment/PaymentPlatformModel.js +305 -6
- package/sdk/platform/PlatformAPIClient.d.ts +3 -3
- package/sdk/platform/PlatformAPIClient.js +2 -2
- package/sdk/platform/PlatformClient.d.ts +2 -2
- package/sdk/platform/PlatformClient.js +4 -4
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.d.ts +28 -12
- package/sdk/platform/Rewards/RewardsPlatformApplicationClient.js +90 -53
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +1 -12
- package/sdk/platform/Rewards/RewardsPlatformModel.js +0 -14
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.d.ts +62 -26
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationClient.js +210 -93
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.d.ts +20 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformApplicationValidator.js +23 -11
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +36 -18
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +142 -78
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +12 -3
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +14 -2
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +10 -26
- package/sdk/platform/Share/SharePlatformApplicationClient.js +36 -67
- package/sdk/platform/Share/SharePlatformModel.d.ts +4 -4
- package/sdk/platform/Share/SharePlatformModel.js +4 -4
- package/sdk/platform/Theme/ThemePlatformApplicationClient.d.ts +127 -57
- package/sdk/platform/Theme/ThemePlatformApplicationClient.js +564 -189
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.d.ts +63 -26
- package/sdk/platform/Theme/ThemePlatformApplicationValidator.js +62 -22
- package/sdk/platform/Theme/ThemePlatformClient.d.ts +37 -0
- package/sdk/platform/Theme/ThemePlatformClient.js +235 -0
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1167 -261
- package/sdk/platform/Theme/ThemePlatformModel.js +801 -244
- package/sdk/platform/Theme/ThemePlatformValidator.d.ts +32 -0
- package/sdk/platform/Theme/ThemePlatformValidator.js +38 -0
- package/sdk/platform/User/UserPlatformApplicationClient.d.ts +35 -17
- package/sdk/platform/User/UserPlatformApplicationClient.js +132 -73
- package/sdk/platform/User/UserPlatformApplicationValidator.d.ts +7 -0
- package/sdk/platform/User/UserPlatformApplicationValidator.js +3 -0
- package/sdk/platform/User/UserPlatformModel.d.ts +1 -738
- package/sdk/platform/User/UserPlatformModel.js +3 -899
- package/sdk/platform/Webhook/WebhookPlatformClient.d.ts +120 -7
- package/sdk/platform/Webhook/WebhookPlatformClient.js +799 -41
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +476 -86
- package/sdk/platform/Webhook/WebhookPlatformModel.js +388 -89
- package/sdk/platform/Webhook/WebhookPlatformValidator.d.ts +96 -9
- package/sdk/platform/Webhook/WebhookPlatformValidator.js +117 -5
- package/sdk/public/Configuration/ConfigurationPublicClient.d.ts +5 -3
- package/sdk/public/Configuration/ConfigurationPublicClient.js +13 -11
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +3 -106
- package/sdk/public/Configuration/ConfigurationPublicModel.js +2 -59
- package/sdk/public/Inventory/InventoryPublicClient.d.ts +12 -6
- package/sdk/public/Inventory/InventoryPublicClient.js +42 -27
- package/sdk/public/Partner/PartnerPublicClient.d.ts +22 -0
- package/sdk/public/Partner/PartnerPublicClient.js +110 -0
- package/sdk/public/Partner/PartnerPublicModel.d.ts +240 -0
- package/sdk/public/Partner/PartnerPublicModel.js +280 -0
- package/sdk/public/Partner/PartnerPublicValidator.d.ts +18 -0
- package/sdk/public/Partner/PartnerPublicValidator.js +19 -0
- package/sdk/public/PublicAPIClient.d.ts +14 -1
- package/sdk/public/PublicAPIClient.js +7 -1
- package/sdk/public/PublicClient.d.ts +2 -0
- package/sdk/public/PublicClient.js +4 -0
- package/sdk/public/Webhook/WebhookPublicClient.d.ts +5 -2
- package/sdk/public/Webhook/WebhookPublicClient.js +15 -9
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +1 -191
- package/sdk/public/Webhook/WebhookPublicModel.js +0 -229
- package/sdk/public/index.d.ts +1 -0
- package/sdk/public/index.js +2 -0
- package/sdk/application/ApplicationModels.d.ts +0 -48
- package/sdk/application/ApplicationModels.js +0 -38
- package/sdk/platform/Partner/PartnerPlatformClient.d.ts +0 -106
- package/sdk/platform/Partner/PartnerPlatformClient.js +0 -878
- package/sdk/platform/Partner/PartnerPlatformValidator.d.ts +0 -208
- package/sdk/platform/Partner/PartnerPlatformValidator.js +0 -169
|
@@ -20,40 +20,6 @@ const Joi = require("joi");
|
|
|
20
20
|
* @property {string} [message]
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* @typedef AuthenticationInternalServerErrorSchema
|
|
25
|
-
* @property {string} [message]
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* @typedef AuthSuccess
|
|
30
|
-
* @property {string} [register_token]
|
|
31
|
-
* @property {UserSchema} [user]
|
|
32
|
-
* @property {boolean} [user_exists]
|
|
33
|
-
*/
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @typedef AuthSuccessUser
|
|
37
|
-
* @property {boolean} [active]
|
|
38
|
-
* @property {AuthSuccessUserDebug} [debug]
|
|
39
|
-
* @property {AuthSuccessUserEmails} [emails]
|
|
40
|
-
* @property {string} [first_name]
|
|
41
|
-
* @property {string} [last_name]
|
|
42
|
-
*/
|
|
43
|
-
|
|
44
|
-
/**
|
|
45
|
-
* @typedef AuthSuccessUserDebug
|
|
46
|
-
* @property {string} [platform]
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @typedef AuthSuccessUserEmails
|
|
51
|
-
* @property {boolean} [active]
|
|
52
|
-
* @property {string} [email]
|
|
53
|
-
* @property {boolean} [primary]
|
|
54
|
-
* @property {boolean} [verified]
|
|
55
|
-
*/
|
|
56
|
-
|
|
57
23
|
/**
|
|
58
24
|
* @typedef BlockUserRequestSchema
|
|
59
25
|
* @property {string} [reason]
|
|
@@ -66,11 +32,6 @@ const Joi = require("joi");
|
|
|
66
32
|
* @property {boolean} [success]
|
|
67
33
|
*/
|
|
68
34
|
|
|
69
|
-
/**
|
|
70
|
-
* @typedef CodeRequestBodySchema
|
|
71
|
-
* @property {string} [code]
|
|
72
|
-
*/
|
|
73
|
-
|
|
74
35
|
/**
|
|
75
36
|
* @typedef CreateUserGroupSchema
|
|
76
37
|
* @property {string} description
|
|
@@ -128,52 +89,6 @@ const Joi = require("joi");
|
|
|
128
89
|
* @property {boolean} [show_text_area]
|
|
129
90
|
*/
|
|
130
91
|
|
|
131
|
-
/**
|
|
132
|
-
* @typedef DeleteApplicationUserRequestSchema
|
|
133
|
-
* @property {string} [otp]
|
|
134
|
-
* @property {string} [reason]
|
|
135
|
-
* @property {string} [reason_id]
|
|
136
|
-
* @property {string} [request_id]
|
|
137
|
-
* @property {string} [user_id]
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* @typedef DeleteUserSuccess
|
|
142
|
-
* @property {boolean} [success]
|
|
143
|
-
*/
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @typedef EditEmailRequestSchema
|
|
147
|
-
* @property {string} [email]
|
|
148
|
-
*/
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @typedef EditMobileRequestSchema
|
|
152
|
-
* @property {string} [country_code]
|
|
153
|
-
* @property {string} [phone]
|
|
154
|
-
*/
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @typedef EditProfileMobileSchema
|
|
158
|
-
* @property {string} [country_code]
|
|
159
|
-
* @property {string} [phone]
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
* @typedef EditProfileRequestSchema
|
|
164
|
-
* @property {string} [android_hash]
|
|
165
|
-
* @property {string} [country_code]
|
|
166
|
-
* @property {string} [dob]
|
|
167
|
-
* @property {string} [email]
|
|
168
|
-
* @property {string} [first_name]
|
|
169
|
-
* @property {string} [gender]
|
|
170
|
-
* @property {string} [last_name]
|
|
171
|
-
* @property {EditProfileMobileSchema} [mobile]
|
|
172
|
-
* @property {string} [profile_pic_url]
|
|
173
|
-
* @property {string} [register_token]
|
|
174
|
-
* @property {string} [sender]
|
|
175
|
-
*/
|
|
176
|
-
|
|
177
92
|
/**
|
|
178
93
|
* @typedef Email
|
|
179
94
|
* @property {boolean} [active]
|
|
@@ -182,11 +97,6 @@ const Joi = require("joi");
|
|
|
182
97
|
* @property {boolean} [verified]
|
|
183
98
|
*/
|
|
184
99
|
|
|
185
|
-
/**
|
|
186
|
-
* @typedef EmailOtpSuccess
|
|
187
|
-
* @property {boolean} [success]
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
100
|
/**
|
|
191
101
|
* @typedef Facebook
|
|
192
102
|
* @property {string} [app_id]
|
|
@@ -199,57 +109,17 @@ const Joi = require("joi");
|
|
|
199
109
|
* @property {string} [text_color]
|
|
200
110
|
*/
|
|
201
111
|
|
|
202
|
-
/**
|
|
203
|
-
* @typedef ForgotPasswordRequestSchema
|
|
204
|
-
* @property {string} [code]
|
|
205
|
-
* @property {string} [password]
|
|
206
|
-
*/
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* @typedef FormRegisterRequestSchema
|
|
210
|
-
* @property {string} [email]
|
|
211
|
-
* @property {string} [first_name]
|
|
212
|
-
* @property {string} [gender]
|
|
213
|
-
* @property {string} [last_name]
|
|
214
|
-
* @property {string} [password]
|
|
215
|
-
* @property {FormRegisterRequestSchemaPhone} [phone]
|
|
216
|
-
* @property {string} [register_token]
|
|
217
|
-
*/
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* @typedef FormRegisterRequestSchemaPhone
|
|
221
|
-
* @property {string} [country_code]
|
|
222
|
-
* @property {string} [mobile]
|
|
223
|
-
*/
|
|
224
|
-
|
|
225
112
|
/**
|
|
226
113
|
* @typedef Google
|
|
227
114
|
* @property {string} [app_id]
|
|
228
115
|
*/
|
|
229
116
|
|
|
230
|
-
/**
|
|
231
|
-
* @typedef HasPasswordSuccess
|
|
232
|
-
* @property {boolean} [result]
|
|
233
|
-
*/
|
|
234
|
-
|
|
235
117
|
/**
|
|
236
118
|
* @typedef Login
|
|
237
119
|
* @property {boolean} [otp]
|
|
238
120
|
* @property {boolean} [password]
|
|
239
121
|
*/
|
|
240
122
|
|
|
241
|
-
/**
|
|
242
|
-
* @typedef LoginSuccess
|
|
243
|
-
* @property {string} [register_token]
|
|
244
|
-
* @property {string} [request_id]
|
|
245
|
-
* @property {UserSchema} [user]
|
|
246
|
-
*/
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* @typedef LogoutSuccess
|
|
250
|
-
* @property {boolean} [logout]
|
|
251
|
-
*/
|
|
252
|
-
|
|
253
123
|
/**
|
|
254
124
|
* @typedef LookAndFeel
|
|
255
125
|
* @property {string} [background_color]
|
|
@@ -261,66 +131,6 @@ const Joi = require("joi");
|
|
|
261
131
|
* @property {boolean} [fynd_default]
|
|
262
132
|
*/
|
|
263
133
|
|
|
264
|
-
/**
|
|
265
|
-
* @typedef NotFoundSchema
|
|
266
|
-
* @property {string} [message]
|
|
267
|
-
*/
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @typedef OAuthRequestAppleSchema
|
|
271
|
-
* @property {OAuthRequestAppleSchemaOauth} [oauth]
|
|
272
|
-
* @property {OAuthRequestAppleSchemaProfile} [profile]
|
|
273
|
-
* @property {string} [user_identifier]
|
|
274
|
-
*/
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* @typedef OAuthRequestAppleSchemaOauth
|
|
278
|
-
* @property {string} [identity_token]
|
|
279
|
-
*/
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* @typedef OAuthRequestAppleSchemaProfile
|
|
283
|
-
* @property {string} [first_name]
|
|
284
|
-
* @property {string} [full_name]
|
|
285
|
-
* @property {string} [last_name]
|
|
286
|
-
*/
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* @typedef OAuthRequestSchema
|
|
290
|
-
* @property {boolean} [is_signed_in]
|
|
291
|
-
* @property {OAuthRequestSchemaOauth2} [oauth2]
|
|
292
|
-
* @property {OAuthRequestSchemaProfile} [profile]
|
|
293
|
-
*/
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* @typedef OAuthRequestSchemaOauth2
|
|
297
|
-
* @property {string} [access_token]
|
|
298
|
-
* @property {number} [expiry]
|
|
299
|
-
* @property {string} [refresh_token]
|
|
300
|
-
*/
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* @typedef OAuthRequestSchemaProfile
|
|
304
|
-
* @property {string} [email]
|
|
305
|
-
* @property {string} [first_name]
|
|
306
|
-
* @property {string} [full_name]
|
|
307
|
-
* @property {string} [id]
|
|
308
|
-
* @property {string} [image]
|
|
309
|
-
* @property {string} [last_name]
|
|
310
|
-
*/
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @typedef OtpSuccess
|
|
314
|
-
* @property {string} [country_code]
|
|
315
|
-
* @property {string} [message]
|
|
316
|
-
* @property {string} [mobile]
|
|
317
|
-
* @property {string} [register_token]
|
|
318
|
-
* @property {string} [request_id]
|
|
319
|
-
* @property {number} [resend_timer]
|
|
320
|
-
* @property {string} [resend_token]
|
|
321
|
-
* @property {boolean} [success]
|
|
322
|
-
*/
|
|
323
|
-
|
|
324
134
|
/**
|
|
325
135
|
* @typedef PaginationSchema
|
|
326
136
|
* @property {number} [current]
|
|
@@ -330,13 +140,6 @@ const Joi = require("joi");
|
|
|
330
140
|
* @property {string} [type]
|
|
331
141
|
*/
|
|
332
142
|
|
|
333
|
-
/**
|
|
334
|
-
* @typedef PasswordLoginRequestSchema
|
|
335
|
-
* @property {string} [captcha_code]
|
|
336
|
-
* @property {string} [password]
|
|
337
|
-
* @property {string} [username]
|
|
338
|
-
*/
|
|
339
|
-
|
|
340
143
|
/**
|
|
341
144
|
* @typedef PhoneNumber
|
|
342
145
|
* @property {boolean} [active]
|
|
@@ -387,53 +190,6 @@ const Joi = require("joi");
|
|
|
387
190
|
* @property {string} [updated_at]
|
|
388
191
|
*/
|
|
389
192
|
|
|
390
|
-
/**
|
|
391
|
-
* @typedef ProfileEditSuccess
|
|
392
|
-
* @property {string} [country_code]
|
|
393
|
-
* @property {string} [email]
|
|
394
|
-
* @property {string} [message]
|
|
395
|
-
* @property {string} [mobile]
|
|
396
|
-
* @property {string} [register_token]
|
|
397
|
-
* @property {string} [request_id]
|
|
398
|
-
* @property {string} [resend_email_token]
|
|
399
|
-
* @property {number} [resend_timer]
|
|
400
|
-
* @property {string} [resend_token]
|
|
401
|
-
* @property {boolean} [success]
|
|
402
|
-
* @property {UserSchema} [user]
|
|
403
|
-
* @property {boolean} [user_exists]
|
|
404
|
-
* @property {boolean} [verify_email_link]
|
|
405
|
-
* @property {boolean} [verify_email_otp]
|
|
406
|
-
* @property {boolean} [verify_mobile_otp]
|
|
407
|
-
*/
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* @typedef ProfileEditSuccessSchema
|
|
411
|
-
* @property {string} [email]
|
|
412
|
-
* @property {string} [register_token]
|
|
413
|
-
* @property {string} [user]
|
|
414
|
-
* @property {boolean} [user_exists]
|
|
415
|
-
* @property {boolean} [verify_email_link]
|
|
416
|
-
* @property {boolean} [verify_email_otp]
|
|
417
|
-
* @property {boolean} [verify_mobile_otp]
|
|
418
|
-
*/
|
|
419
|
-
|
|
420
|
-
/**
|
|
421
|
-
* @typedef RegisterFormSuccess
|
|
422
|
-
* @property {string} [country_code]
|
|
423
|
-
* @property {string} [email]
|
|
424
|
-
* @property {string} [message]
|
|
425
|
-
* @property {string} [mobile]
|
|
426
|
-
* @property {string} [register_token]
|
|
427
|
-
* @property {string} [request_id]
|
|
428
|
-
* @property {string} [resend_email_token]
|
|
429
|
-
* @property {number} [resend_timer]
|
|
430
|
-
* @property {string} [resend_token]
|
|
431
|
-
* @property {boolean} [success]
|
|
432
|
-
* @property {boolean} [user_exists]
|
|
433
|
-
* @property {boolean} [verify_email_otp]
|
|
434
|
-
* @property {boolean} [verify_mobile_otp]
|
|
435
|
-
*/
|
|
436
|
-
|
|
437
193
|
/**
|
|
438
194
|
* @typedef RegisterRequiredFields
|
|
439
195
|
* @property {RegisterRequiredFieldsEmail} [email]
|
|
@@ -458,87 +214,6 @@ const Joi = require("joi");
|
|
|
458
214
|
* @property {PlatformMobile} [mobile]
|
|
459
215
|
*/
|
|
460
216
|
|
|
461
|
-
/**
|
|
462
|
-
* @typedef ResetPasswordSuccess
|
|
463
|
-
* @property {string} [status]
|
|
464
|
-
*/
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* @typedef SendEmailOtpRequestSchema
|
|
468
|
-
* @property {string} [action]
|
|
469
|
-
* @property {string} [email]
|
|
470
|
-
* @property {string} [register_token]
|
|
471
|
-
* @property {string} [token]
|
|
472
|
-
*/
|
|
473
|
-
|
|
474
|
-
/**
|
|
475
|
-
* @typedef SendEmailVerifyLinkSuccess
|
|
476
|
-
* @property {boolean} [verify_email_link]
|
|
477
|
-
*/
|
|
478
|
-
|
|
479
|
-
/**
|
|
480
|
-
* @typedef SendMobileOtpRequestSchema
|
|
481
|
-
* @property {string} [action]
|
|
482
|
-
* @property {string} [android_hash]
|
|
483
|
-
* @property {string} [captcha_code]
|
|
484
|
-
* @property {string} [country_code]
|
|
485
|
-
* @property {string} [force]
|
|
486
|
-
* @property {string} [mobile]
|
|
487
|
-
* @property {string} [token]
|
|
488
|
-
*/
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* @typedef SendMobileVerifyLinkSuccess
|
|
492
|
-
* @property {boolean} [verify_mobile_link]
|
|
493
|
-
*/
|
|
494
|
-
|
|
495
|
-
/**
|
|
496
|
-
* @typedef SendOtpRequestSchema
|
|
497
|
-
* @property {string} [android_hash]
|
|
498
|
-
* @property {string} [captcha_code]
|
|
499
|
-
* @property {string} [country_code]
|
|
500
|
-
* @property {string} [mobile]
|
|
501
|
-
*/
|
|
502
|
-
|
|
503
|
-
/**
|
|
504
|
-
* @typedef SendOtpResponse
|
|
505
|
-
* @property {string} [country_code]
|
|
506
|
-
* @property {string} [email]
|
|
507
|
-
* @property {string} [message]
|
|
508
|
-
* @property {string} [mobile]
|
|
509
|
-
* @property {string} [register_token]
|
|
510
|
-
* @property {string} [request_id]
|
|
511
|
-
* @property {string} [resend_email_token]
|
|
512
|
-
* @property {number} [resend_timer]
|
|
513
|
-
* @property {string} [resend_token]
|
|
514
|
-
* @property {boolean} [success]
|
|
515
|
-
* @property {boolean} [user_exists]
|
|
516
|
-
* @property {boolean} [verify_email_otp]
|
|
517
|
-
* @property {boolean} [verify_mobile_otp]
|
|
518
|
-
*/
|
|
519
|
-
|
|
520
|
-
/**
|
|
521
|
-
* @typedef SendResetPasswordEmailRequestSchema
|
|
522
|
-
* @property {string} [captcha_code]
|
|
523
|
-
* @property {string} [email]
|
|
524
|
-
*/
|
|
525
|
-
|
|
526
|
-
/**
|
|
527
|
-
* @typedef SendResetPasswordMobileRequestSchema
|
|
528
|
-
* @property {string} [captcha_code]
|
|
529
|
-
* @property {string} [country_code]
|
|
530
|
-
* @property {string} [mobile]
|
|
531
|
-
*/
|
|
532
|
-
|
|
533
|
-
/**
|
|
534
|
-
* @typedef SendVerificationLinkMobileRequestSchema
|
|
535
|
-
* @property {boolean} [active]
|
|
536
|
-
* @property {string} [country_code]
|
|
537
|
-
* @property {string} [phone]
|
|
538
|
-
* @property {boolean} [primary]
|
|
539
|
-
* @property {boolean} [verified]
|
|
540
|
-
*/
|
|
541
|
-
|
|
542
217
|
/**
|
|
543
218
|
* @typedef SessionDeleteResponseSchema
|
|
544
219
|
* @property {string[]} [items]
|
|
@@ -565,11 +240,6 @@ const Joi = require("joi");
|
|
|
565
240
|
* @property {SessionListResponseInfo[]} [items]
|
|
566
241
|
*/
|
|
567
242
|
|
|
568
|
-
/**
|
|
569
|
-
* @typedef SessionListSuccess
|
|
570
|
-
* @property {string[]} [sessions]
|
|
571
|
-
*/
|
|
572
|
-
|
|
573
243
|
/**
|
|
574
244
|
* @typedef Social
|
|
575
245
|
* @property {boolean} [account_kit]
|
|
@@ -585,21 +255,6 @@ const Joi = require("joi");
|
|
|
585
255
|
* @property {Google} [google]
|
|
586
256
|
*/
|
|
587
257
|
|
|
588
|
-
/**
|
|
589
|
-
* @typedef TokenRequestBodySchema
|
|
590
|
-
* @property {string} [token]
|
|
591
|
-
*/
|
|
592
|
-
|
|
593
|
-
/**
|
|
594
|
-
* @typedef UnauthenticatedSchema
|
|
595
|
-
* @property {boolean} [authenticated]
|
|
596
|
-
*/
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* @typedef UnauthorizedSchema
|
|
600
|
-
* @property {string} [message]
|
|
601
|
-
*/
|
|
602
|
-
|
|
603
258
|
/**
|
|
604
259
|
* @typedef UnDeleteUserRequestSchema
|
|
605
260
|
* @property {string} [reason]
|
|
@@ -612,12 +267,6 @@ const Joi = require("joi");
|
|
|
612
267
|
* @property {boolean} [success]
|
|
613
268
|
*/
|
|
614
269
|
|
|
615
|
-
/**
|
|
616
|
-
* @typedef UpdatePasswordRequestSchema
|
|
617
|
-
* @property {string} [new_password]
|
|
618
|
-
* @property {string} [old_password]
|
|
619
|
-
*/
|
|
620
|
-
|
|
621
270
|
/**
|
|
622
271
|
* @typedef UpdateUserGroupSchema
|
|
623
272
|
* @property {string} [description]
|
|
@@ -664,11 +313,6 @@ const Joi = require("joi");
|
|
|
664
313
|
* @property {number} [uid]
|
|
665
314
|
*/
|
|
666
315
|
|
|
667
|
-
/**
|
|
668
|
-
* @typedef UserObjectSchema
|
|
669
|
-
* @property {UserSchema} [user]
|
|
670
|
-
*/
|
|
671
|
-
|
|
672
316
|
/**
|
|
673
317
|
* @typedef UserPhoneNumbers
|
|
674
318
|
* @property {boolean} [active]
|
|
@@ -703,45 +347,6 @@ const Joi = require("joi");
|
|
|
703
347
|
* @property {UserSchema[]} [users]
|
|
704
348
|
*/
|
|
705
349
|
|
|
706
|
-
/**
|
|
707
|
-
* @typedef VerifyEmailOtpRequestSchema
|
|
708
|
-
* @property {string} [action]
|
|
709
|
-
* @property {string} [email]
|
|
710
|
-
* @property {string} [otp]
|
|
711
|
-
* @property {string} [register_token]
|
|
712
|
-
*/
|
|
713
|
-
|
|
714
|
-
/**
|
|
715
|
-
* @typedef VerifyEmailOTPSuccess
|
|
716
|
-
* @property {UserSchema} [user]
|
|
717
|
-
* @property {boolean} [verify_email_link]
|
|
718
|
-
*/
|
|
719
|
-
|
|
720
|
-
/**
|
|
721
|
-
* @typedef VerifyEmailSuccess
|
|
722
|
-
* @property {string} [message]
|
|
723
|
-
*/
|
|
724
|
-
|
|
725
|
-
/**
|
|
726
|
-
* @typedef VerifyMobileOTPSuccess
|
|
727
|
-
* @property {UserSchema} [user]
|
|
728
|
-
* @property {boolean} [verify_mobile_link]
|
|
729
|
-
*/
|
|
730
|
-
|
|
731
|
-
/**
|
|
732
|
-
* @typedef VerifyOtpRequestSchema
|
|
733
|
-
* @property {string} [otp]
|
|
734
|
-
* @property {string} [register_token]
|
|
735
|
-
* @property {string} [request_id]
|
|
736
|
-
*/
|
|
737
|
-
|
|
738
|
-
/**
|
|
739
|
-
* @typedef VerifyOtpSuccess
|
|
740
|
-
* @property {string} [register_token]
|
|
741
|
-
* @property {UserSchema} [user]
|
|
742
|
-
* @property {boolean} [user_exists]
|
|
743
|
-
*/
|
|
744
|
-
|
|
745
350
|
class UserPlatformModel {
|
|
746
351
|
/** @returns {Accountkit} */
|
|
747
352
|
static Accountkit() {
|
|
@@ -771,50 +376,6 @@ class UserPlatformModel {
|
|
|
771
376
|
});
|
|
772
377
|
}
|
|
773
378
|
|
|
774
|
-
/** @returns {AuthenticationInternalServerErrorSchema} */
|
|
775
|
-
static AuthenticationInternalServerErrorSchema() {
|
|
776
|
-
return Joi.object({
|
|
777
|
-
message: Joi.string().allow(""),
|
|
778
|
-
});
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
/** @returns {AuthSuccess} */
|
|
782
|
-
static AuthSuccess() {
|
|
783
|
-
return Joi.object({
|
|
784
|
-
register_token: Joi.string().allow(""),
|
|
785
|
-
user: UserPlatformModel.UserSchema(),
|
|
786
|
-
user_exists: Joi.boolean(),
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
/** @returns {AuthSuccessUser} */
|
|
791
|
-
static AuthSuccessUser() {
|
|
792
|
-
return Joi.object({
|
|
793
|
-
active: Joi.boolean(),
|
|
794
|
-
debug: UserPlatformModel.AuthSuccessUserDebug(),
|
|
795
|
-
emails: UserPlatformModel.AuthSuccessUserEmails(),
|
|
796
|
-
first_name: Joi.string().allow(""),
|
|
797
|
-
last_name: Joi.string().allow(""),
|
|
798
|
-
});
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
/** @returns {AuthSuccessUserDebug} */
|
|
802
|
-
static AuthSuccessUserDebug() {
|
|
803
|
-
return Joi.object({
|
|
804
|
-
platform: Joi.string().allow(""),
|
|
805
|
-
});
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
/** @returns {AuthSuccessUserEmails} */
|
|
809
|
-
static AuthSuccessUserEmails() {
|
|
810
|
-
return Joi.object({
|
|
811
|
-
active: Joi.boolean(),
|
|
812
|
-
email: Joi.string().allow(""),
|
|
813
|
-
primary: Joi.boolean(),
|
|
814
|
-
verified: Joi.boolean(),
|
|
815
|
-
});
|
|
816
|
-
}
|
|
817
|
-
|
|
818
379
|
/** @returns {BlockUserRequestSchema} */
|
|
819
380
|
static BlockUserRequestSchema() {
|
|
820
381
|
return Joi.object({
|
|
@@ -824,17 +385,10 @@ class UserPlatformModel {
|
|
|
824
385
|
});
|
|
825
386
|
}
|
|
826
387
|
|
|
827
|
-
/** @returns {BlockUserSuccess} */
|
|
828
|
-
static BlockUserSuccess() {
|
|
829
|
-
return Joi.object({
|
|
830
|
-
success: Joi.boolean(),
|
|
831
|
-
});
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/** @returns {CodeRequestBodySchema} */
|
|
835
|
-
static CodeRequestBodySchema() {
|
|
388
|
+
/** @returns {BlockUserSuccess} */
|
|
389
|
+
static BlockUserSuccess() {
|
|
836
390
|
return Joi.object({
|
|
837
|
-
|
|
391
|
+
success: Joi.boolean(),
|
|
838
392
|
});
|
|
839
393
|
}
|
|
840
394
|
|
|
@@ -911,64 +465,6 @@ class UserPlatformModel {
|
|
|
911
465
|
});
|
|
912
466
|
}
|
|
913
467
|
|
|
914
|
-
/** @returns {DeleteApplicationUserRequestSchema} */
|
|
915
|
-
static DeleteApplicationUserRequestSchema() {
|
|
916
|
-
return Joi.object({
|
|
917
|
-
otp: Joi.string().allow(""),
|
|
918
|
-
reason: Joi.string().allow(""),
|
|
919
|
-
reason_id: Joi.string().allow(""),
|
|
920
|
-
request_id: Joi.string().allow(""),
|
|
921
|
-
user_id: Joi.string().allow(""),
|
|
922
|
-
});
|
|
923
|
-
}
|
|
924
|
-
|
|
925
|
-
/** @returns {DeleteUserSuccess} */
|
|
926
|
-
static DeleteUserSuccess() {
|
|
927
|
-
return Joi.object({
|
|
928
|
-
success: Joi.boolean(),
|
|
929
|
-
});
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
/** @returns {EditEmailRequestSchema} */
|
|
933
|
-
static EditEmailRequestSchema() {
|
|
934
|
-
return Joi.object({
|
|
935
|
-
email: Joi.string().allow(""),
|
|
936
|
-
});
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
/** @returns {EditMobileRequestSchema} */
|
|
940
|
-
static EditMobileRequestSchema() {
|
|
941
|
-
return Joi.object({
|
|
942
|
-
country_code: Joi.string().allow(""),
|
|
943
|
-
phone: Joi.string().allow(""),
|
|
944
|
-
});
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
/** @returns {EditProfileMobileSchema} */
|
|
948
|
-
static EditProfileMobileSchema() {
|
|
949
|
-
return Joi.object({
|
|
950
|
-
country_code: Joi.string().allow(""),
|
|
951
|
-
phone: Joi.string().allow(""),
|
|
952
|
-
});
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
/** @returns {EditProfileRequestSchema} */
|
|
956
|
-
static EditProfileRequestSchema() {
|
|
957
|
-
return Joi.object({
|
|
958
|
-
android_hash: Joi.string().allow(""),
|
|
959
|
-
country_code: Joi.string().allow(""),
|
|
960
|
-
dob: Joi.string().allow(""),
|
|
961
|
-
email: Joi.string().allow(""),
|
|
962
|
-
first_name: Joi.string().allow(""),
|
|
963
|
-
gender: Joi.string().allow(""),
|
|
964
|
-
last_name: Joi.string().allow(""),
|
|
965
|
-
mobile: UserPlatformModel.EditProfileMobileSchema(),
|
|
966
|
-
profile_pic_url: Joi.string().allow(""),
|
|
967
|
-
register_token: Joi.string().allow(""),
|
|
968
|
-
sender: Joi.string().allow(""),
|
|
969
|
-
});
|
|
970
|
-
}
|
|
971
|
-
|
|
972
468
|
/** @returns {Email} */
|
|
973
469
|
static Email() {
|
|
974
470
|
return Joi.object({
|
|
@@ -979,13 +475,6 @@ class UserPlatformModel {
|
|
|
979
475
|
});
|
|
980
476
|
}
|
|
981
477
|
|
|
982
|
-
/** @returns {EmailOtpSuccess} */
|
|
983
|
-
static EmailOtpSuccess() {
|
|
984
|
-
return Joi.object({
|
|
985
|
-
success: Joi.boolean(),
|
|
986
|
-
});
|
|
987
|
-
}
|
|
988
|
-
|
|
989
478
|
/** @returns {Facebook} */
|
|
990
479
|
static Facebook() {
|
|
991
480
|
return Joi.object({
|
|
@@ -1002,35 +491,6 @@ class UserPlatformModel {
|
|
|
1002
491
|
});
|
|
1003
492
|
}
|
|
1004
493
|
|
|
1005
|
-
/** @returns {ForgotPasswordRequestSchema} */
|
|
1006
|
-
static ForgotPasswordRequestSchema() {
|
|
1007
|
-
return Joi.object({
|
|
1008
|
-
code: Joi.string().allow(""),
|
|
1009
|
-
password: Joi.string().allow(""),
|
|
1010
|
-
});
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
/** @returns {FormRegisterRequestSchema} */
|
|
1014
|
-
static FormRegisterRequestSchema() {
|
|
1015
|
-
return Joi.object({
|
|
1016
|
-
email: Joi.string().allow(""),
|
|
1017
|
-
first_name: Joi.string().allow(""),
|
|
1018
|
-
gender: Joi.string().allow(""),
|
|
1019
|
-
last_name: Joi.string().allow(""),
|
|
1020
|
-
password: Joi.string().allow(""),
|
|
1021
|
-
phone: UserPlatformModel.FormRegisterRequestSchemaPhone(),
|
|
1022
|
-
register_token: Joi.string().allow(""),
|
|
1023
|
-
});
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
/** @returns {FormRegisterRequestSchemaPhone} */
|
|
1027
|
-
static FormRegisterRequestSchemaPhone() {
|
|
1028
|
-
return Joi.object({
|
|
1029
|
-
country_code: Joi.string().allow(""),
|
|
1030
|
-
mobile: Joi.string().allow(""),
|
|
1031
|
-
});
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
494
|
/** @returns {Google} */
|
|
1035
495
|
static Google() {
|
|
1036
496
|
return Joi.object({
|
|
@@ -1038,13 +498,6 @@ class UserPlatformModel {
|
|
|
1038
498
|
});
|
|
1039
499
|
}
|
|
1040
500
|
|
|
1041
|
-
/** @returns {HasPasswordSuccess} */
|
|
1042
|
-
static HasPasswordSuccess() {
|
|
1043
|
-
return Joi.object({
|
|
1044
|
-
result: Joi.boolean(),
|
|
1045
|
-
});
|
|
1046
|
-
}
|
|
1047
|
-
|
|
1048
501
|
/** @returns {Login} */
|
|
1049
502
|
static Login() {
|
|
1050
503
|
return Joi.object({
|
|
@@ -1053,22 +506,6 @@ class UserPlatformModel {
|
|
|
1053
506
|
});
|
|
1054
507
|
}
|
|
1055
508
|
|
|
1056
|
-
/** @returns {LoginSuccess} */
|
|
1057
|
-
static LoginSuccess() {
|
|
1058
|
-
return Joi.object({
|
|
1059
|
-
register_token: Joi.string().allow(""),
|
|
1060
|
-
request_id: Joi.string().allow(""),
|
|
1061
|
-
user: UserPlatformModel.UserSchema(),
|
|
1062
|
-
});
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
/** @returns {LogoutSuccess} */
|
|
1066
|
-
static LogoutSuccess() {
|
|
1067
|
-
return Joi.object({
|
|
1068
|
-
logout: Joi.boolean(),
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
1071
|
-
|
|
1072
509
|
/** @returns {LookAndFeel} */
|
|
1073
510
|
static LookAndFeel() {
|
|
1074
511
|
return Joi.object({
|
|
@@ -1084,82 +521,6 @@ class UserPlatformModel {
|
|
|
1084
521
|
});
|
|
1085
522
|
}
|
|
1086
523
|
|
|
1087
|
-
/** @returns {NotFoundSchema} */
|
|
1088
|
-
static NotFoundSchema() {
|
|
1089
|
-
return Joi.object({
|
|
1090
|
-
message: Joi.string().allow(""),
|
|
1091
|
-
});
|
|
1092
|
-
}
|
|
1093
|
-
|
|
1094
|
-
/** @returns {OAuthRequestAppleSchema} */
|
|
1095
|
-
static OAuthRequestAppleSchema() {
|
|
1096
|
-
return Joi.object({
|
|
1097
|
-
oauth: UserPlatformModel.OAuthRequestAppleSchemaOauth(),
|
|
1098
|
-
profile: UserPlatformModel.OAuthRequestAppleSchemaProfile(),
|
|
1099
|
-
user_identifier: Joi.string().allow(""),
|
|
1100
|
-
});
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
/** @returns {OAuthRequestAppleSchemaOauth} */
|
|
1104
|
-
static OAuthRequestAppleSchemaOauth() {
|
|
1105
|
-
return Joi.object({
|
|
1106
|
-
identity_token: Joi.string().allow(""),
|
|
1107
|
-
});
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
/** @returns {OAuthRequestAppleSchemaProfile} */
|
|
1111
|
-
static OAuthRequestAppleSchemaProfile() {
|
|
1112
|
-
return Joi.object({
|
|
1113
|
-
first_name: Joi.string().allow(""),
|
|
1114
|
-
full_name: Joi.string().allow(""),
|
|
1115
|
-
last_name: Joi.string().allow(""),
|
|
1116
|
-
});
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
/** @returns {OAuthRequestSchema} */
|
|
1120
|
-
static OAuthRequestSchema() {
|
|
1121
|
-
return Joi.object({
|
|
1122
|
-
is_signed_in: Joi.boolean(),
|
|
1123
|
-
oauth2: UserPlatformModel.OAuthRequestSchemaOauth2(),
|
|
1124
|
-
profile: UserPlatformModel.OAuthRequestSchemaProfile(),
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
|
|
1128
|
-
/** @returns {OAuthRequestSchemaOauth2} */
|
|
1129
|
-
static OAuthRequestSchemaOauth2() {
|
|
1130
|
-
return Joi.object({
|
|
1131
|
-
access_token: Joi.string().allow(""),
|
|
1132
|
-
expiry: Joi.number(),
|
|
1133
|
-
refresh_token: Joi.string().allow(""),
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
/** @returns {OAuthRequestSchemaProfile} */
|
|
1138
|
-
static OAuthRequestSchemaProfile() {
|
|
1139
|
-
return Joi.object({
|
|
1140
|
-
email: Joi.string().allow(""),
|
|
1141
|
-
first_name: Joi.string().allow(""),
|
|
1142
|
-
full_name: Joi.string().allow(""),
|
|
1143
|
-
id: Joi.string().allow(""),
|
|
1144
|
-
image: Joi.string().allow(""),
|
|
1145
|
-
last_name: Joi.string().allow(""),
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
|
|
1149
|
-
/** @returns {OtpSuccess} */
|
|
1150
|
-
static OtpSuccess() {
|
|
1151
|
-
return Joi.object({
|
|
1152
|
-
country_code: Joi.string().allow(""),
|
|
1153
|
-
message: Joi.string().allow(""),
|
|
1154
|
-
mobile: Joi.string().allow(""),
|
|
1155
|
-
register_token: Joi.string().allow(""),
|
|
1156
|
-
request_id: Joi.string().allow(""),
|
|
1157
|
-
resend_timer: Joi.number(),
|
|
1158
|
-
resend_token: Joi.string().allow(""),
|
|
1159
|
-
success: Joi.boolean(),
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
524
|
/** @returns {PaginationSchema} */
|
|
1164
525
|
static PaginationSchema() {
|
|
1165
526
|
return Joi.object({
|
|
@@ -1171,15 +532,6 @@ class UserPlatformModel {
|
|
|
1171
532
|
});
|
|
1172
533
|
}
|
|
1173
534
|
|
|
1174
|
-
/** @returns {PasswordLoginRequestSchema} */
|
|
1175
|
-
static PasswordLoginRequestSchema() {
|
|
1176
|
-
return Joi.object({
|
|
1177
|
-
captcha_code: Joi.string().allow(""),
|
|
1178
|
-
password: Joi.string().allow(""),
|
|
1179
|
-
username: Joi.string().allow(""),
|
|
1180
|
-
});
|
|
1181
|
-
}
|
|
1182
|
-
|
|
1183
535
|
/** @returns {PhoneNumber} */
|
|
1184
536
|
static PhoneNumber() {
|
|
1185
537
|
return Joi.object({
|
|
@@ -1240,59 +592,6 @@ class UserPlatformModel {
|
|
|
1240
592
|
});
|
|
1241
593
|
}
|
|
1242
594
|
|
|
1243
|
-
/** @returns {ProfileEditSuccess} */
|
|
1244
|
-
static ProfileEditSuccess() {
|
|
1245
|
-
return Joi.object({
|
|
1246
|
-
country_code: Joi.string().allow(""),
|
|
1247
|
-
email: Joi.string().allow(""),
|
|
1248
|
-
message: Joi.string().allow(""),
|
|
1249
|
-
mobile: Joi.string().allow(""),
|
|
1250
|
-
register_token: Joi.string().allow(""),
|
|
1251
|
-
request_id: Joi.string().allow(""),
|
|
1252
|
-
resend_email_token: Joi.string().allow(""),
|
|
1253
|
-
resend_timer: Joi.number(),
|
|
1254
|
-
resend_token: Joi.string().allow(""),
|
|
1255
|
-
success: Joi.boolean(),
|
|
1256
|
-
user: UserPlatformModel.UserSchema(),
|
|
1257
|
-
user_exists: Joi.boolean(),
|
|
1258
|
-
verify_email_link: Joi.boolean(),
|
|
1259
|
-
verify_email_otp: Joi.boolean(),
|
|
1260
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1261
|
-
});
|
|
1262
|
-
}
|
|
1263
|
-
|
|
1264
|
-
/** @returns {ProfileEditSuccessSchema} */
|
|
1265
|
-
static ProfileEditSuccessSchema() {
|
|
1266
|
-
return Joi.object({
|
|
1267
|
-
email: Joi.string().allow(""),
|
|
1268
|
-
register_token: Joi.string().allow(""),
|
|
1269
|
-
user: Joi.string().allow(""),
|
|
1270
|
-
user_exists: Joi.boolean(),
|
|
1271
|
-
verify_email_link: Joi.boolean(),
|
|
1272
|
-
verify_email_otp: Joi.boolean(),
|
|
1273
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1274
|
-
});
|
|
1275
|
-
}
|
|
1276
|
-
|
|
1277
|
-
/** @returns {RegisterFormSuccess} */
|
|
1278
|
-
static RegisterFormSuccess() {
|
|
1279
|
-
return Joi.object({
|
|
1280
|
-
country_code: Joi.string().allow(""),
|
|
1281
|
-
email: Joi.string().allow(""),
|
|
1282
|
-
message: Joi.string().allow(""),
|
|
1283
|
-
mobile: Joi.string().allow(""),
|
|
1284
|
-
register_token: Joi.string().allow(""),
|
|
1285
|
-
request_id: Joi.string().allow(""),
|
|
1286
|
-
resend_email_token: Joi.string().allow(""),
|
|
1287
|
-
resend_timer: Joi.number(),
|
|
1288
|
-
resend_token: Joi.string().allow(""),
|
|
1289
|
-
success: Joi.boolean(),
|
|
1290
|
-
user_exists: Joi.boolean(),
|
|
1291
|
-
verify_email_otp: Joi.boolean(),
|
|
1292
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1293
|
-
});
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
595
|
/** @returns {RegisterRequiredFields} */
|
|
1297
596
|
static RegisterRequiredFields() {
|
|
1298
597
|
return Joi.object({
|
|
@@ -1325,107 +624,6 @@ class UserPlatformModel {
|
|
|
1325
624
|
});
|
|
1326
625
|
}
|
|
1327
626
|
|
|
1328
|
-
/** @returns {ResetPasswordSuccess} */
|
|
1329
|
-
static ResetPasswordSuccess() {
|
|
1330
|
-
return Joi.object({
|
|
1331
|
-
status: Joi.string().allow(""),
|
|
1332
|
-
});
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
/** @returns {SendEmailOtpRequestSchema} */
|
|
1336
|
-
static SendEmailOtpRequestSchema() {
|
|
1337
|
-
return Joi.object({
|
|
1338
|
-
action: Joi.string().allow(""),
|
|
1339
|
-
email: Joi.string().allow(""),
|
|
1340
|
-
register_token: Joi.string().allow(""),
|
|
1341
|
-
token: Joi.string().allow(""),
|
|
1342
|
-
});
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
/** @returns {SendEmailVerifyLinkSuccess} */
|
|
1346
|
-
static SendEmailVerifyLinkSuccess() {
|
|
1347
|
-
return Joi.object({
|
|
1348
|
-
verify_email_link: Joi.boolean(),
|
|
1349
|
-
});
|
|
1350
|
-
}
|
|
1351
|
-
|
|
1352
|
-
/** @returns {SendMobileOtpRequestSchema} */
|
|
1353
|
-
static SendMobileOtpRequestSchema() {
|
|
1354
|
-
return Joi.object({
|
|
1355
|
-
action: Joi.string().allow(""),
|
|
1356
|
-
android_hash: Joi.string().allow(""),
|
|
1357
|
-
captcha_code: Joi.string().allow(""),
|
|
1358
|
-
country_code: Joi.string().allow(""),
|
|
1359
|
-
force: Joi.string().allow(""),
|
|
1360
|
-
mobile: Joi.string().allow(""),
|
|
1361
|
-
token: Joi.string().allow(""),
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
|
|
1365
|
-
/** @returns {SendMobileVerifyLinkSuccess} */
|
|
1366
|
-
static SendMobileVerifyLinkSuccess() {
|
|
1367
|
-
return Joi.object({
|
|
1368
|
-
verify_mobile_link: Joi.boolean(),
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
|
|
1372
|
-
/** @returns {SendOtpRequestSchema} */
|
|
1373
|
-
static SendOtpRequestSchema() {
|
|
1374
|
-
return Joi.object({
|
|
1375
|
-
android_hash: Joi.string().allow(""),
|
|
1376
|
-
captcha_code: Joi.string().allow(""),
|
|
1377
|
-
country_code: Joi.string().allow(""),
|
|
1378
|
-
mobile: Joi.string().allow(""),
|
|
1379
|
-
});
|
|
1380
|
-
}
|
|
1381
|
-
|
|
1382
|
-
/** @returns {SendOtpResponse} */
|
|
1383
|
-
static SendOtpResponse() {
|
|
1384
|
-
return Joi.object({
|
|
1385
|
-
country_code: Joi.string().allow(""),
|
|
1386
|
-
email: Joi.string().allow(""),
|
|
1387
|
-
message: Joi.string().allow(""),
|
|
1388
|
-
mobile: Joi.string().allow(""),
|
|
1389
|
-
register_token: Joi.string().allow(""),
|
|
1390
|
-
request_id: Joi.string().allow(""),
|
|
1391
|
-
resend_email_token: Joi.string().allow(""),
|
|
1392
|
-
resend_timer: Joi.number(),
|
|
1393
|
-
resend_token: Joi.string().allow(""),
|
|
1394
|
-
success: Joi.boolean(),
|
|
1395
|
-
user_exists: Joi.boolean(),
|
|
1396
|
-
verify_email_otp: Joi.boolean(),
|
|
1397
|
-
verify_mobile_otp: Joi.boolean(),
|
|
1398
|
-
});
|
|
1399
|
-
}
|
|
1400
|
-
|
|
1401
|
-
/** @returns {SendResetPasswordEmailRequestSchema} */
|
|
1402
|
-
static SendResetPasswordEmailRequestSchema() {
|
|
1403
|
-
return Joi.object({
|
|
1404
|
-
captcha_code: Joi.string().allow(""),
|
|
1405
|
-
email: Joi.string().allow(""),
|
|
1406
|
-
});
|
|
1407
|
-
}
|
|
1408
|
-
|
|
1409
|
-
/** @returns {SendResetPasswordMobileRequestSchema} */
|
|
1410
|
-
static SendResetPasswordMobileRequestSchema() {
|
|
1411
|
-
return Joi.object({
|
|
1412
|
-
captcha_code: Joi.string().allow(""),
|
|
1413
|
-
country_code: Joi.string().allow(""),
|
|
1414
|
-
mobile: Joi.string().allow(""),
|
|
1415
|
-
});
|
|
1416
|
-
}
|
|
1417
|
-
|
|
1418
|
-
/** @returns {SendVerificationLinkMobileRequestSchema} */
|
|
1419
|
-
static SendVerificationLinkMobileRequestSchema() {
|
|
1420
|
-
return Joi.object({
|
|
1421
|
-
active: Joi.boolean(),
|
|
1422
|
-
country_code: Joi.string().allow(""),
|
|
1423
|
-
phone: Joi.string().allow(""),
|
|
1424
|
-
primary: Joi.boolean(),
|
|
1425
|
-
verified: Joi.boolean(),
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
|
|
1429
627
|
/** @returns {SessionDeleteResponseSchema} */
|
|
1430
628
|
static SessionDeleteResponseSchema() {
|
|
1431
629
|
return Joi.object({
|
|
@@ -1460,13 +658,6 @@ class UserPlatformModel {
|
|
|
1460
658
|
});
|
|
1461
659
|
}
|
|
1462
660
|
|
|
1463
|
-
/** @returns {SessionListSuccess} */
|
|
1464
|
-
static SessionListSuccess() {
|
|
1465
|
-
return Joi.object({
|
|
1466
|
-
sessions: Joi.array().items(Joi.string().allow("")),
|
|
1467
|
-
});
|
|
1468
|
-
}
|
|
1469
|
-
|
|
1470
661
|
/** @returns {Social} */
|
|
1471
662
|
static Social() {
|
|
1472
663
|
return Joi.object({
|
|
@@ -1486,27 +677,6 @@ class UserPlatformModel {
|
|
|
1486
677
|
});
|
|
1487
678
|
}
|
|
1488
679
|
|
|
1489
|
-
/** @returns {TokenRequestBodySchema} */
|
|
1490
|
-
static TokenRequestBodySchema() {
|
|
1491
|
-
return Joi.object({
|
|
1492
|
-
token: Joi.string().allow(""),
|
|
1493
|
-
});
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
/** @returns {UnauthenticatedSchema} */
|
|
1497
|
-
static UnauthenticatedSchema() {
|
|
1498
|
-
return Joi.object({
|
|
1499
|
-
authenticated: Joi.boolean(),
|
|
1500
|
-
});
|
|
1501
|
-
}
|
|
1502
|
-
|
|
1503
|
-
/** @returns {UnauthorizedSchema} */
|
|
1504
|
-
static UnauthorizedSchema() {
|
|
1505
|
-
return Joi.object({
|
|
1506
|
-
message: Joi.string().allow(""),
|
|
1507
|
-
});
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
680
|
/** @returns {UnDeleteUserRequestSchema} */
|
|
1511
681
|
static UnDeleteUserRequestSchema() {
|
|
1512
682
|
return Joi.object({
|
|
@@ -1523,14 +693,6 @@ class UserPlatformModel {
|
|
|
1523
693
|
});
|
|
1524
694
|
}
|
|
1525
695
|
|
|
1526
|
-
/** @returns {UpdatePasswordRequestSchema} */
|
|
1527
|
-
static UpdatePasswordRequestSchema() {
|
|
1528
|
-
return Joi.object({
|
|
1529
|
-
new_password: Joi.string().allow(""),
|
|
1530
|
-
old_password: Joi.string().allow(""),
|
|
1531
|
-
});
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
696
|
/** @returns {UpdateUserGroupSchema} */
|
|
1535
697
|
static UpdateUserGroupSchema() {
|
|
1536
698
|
return Joi.object({
|
|
@@ -1587,13 +749,6 @@ class UserPlatformModel {
|
|
|
1587
749
|
});
|
|
1588
750
|
}
|
|
1589
751
|
|
|
1590
|
-
/** @returns {UserObjectSchema} */
|
|
1591
|
-
static UserObjectSchema() {
|
|
1592
|
-
return Joi.object({
|
|
1593
|
-
user: UserPlatformModel.UserSchema(),
|
|
1594
|
-
});
|
|
1595
|
-
}
|
|
1596
|
-
|
|
1597
752
|
/** @returns {UserPhoneNumbers} */
|
|
1598
753
|
static UserPhoneNumbers() {
|
|
1599
754
|
return Joi.object({
|
|
@@ -1633,56 +788,5 @@ class UserPlatformModel {
|
|
|
1633
788
|
users: Joi.array().items(UserPlatformModel.UserSchema()),
|
|
1634
789
|
});
|
|
1635
790
|
}
|
|
1636
|
-
|
|
1637
|
-
/** @returns {VerifyEmailOtpRequestSchema} */
|
|
1638
|
-
static VerifyEmailOtpRequestSchema() {
|
|
1639
|
-
return Joi.object({
|
|
1640
|
-
action: Joi.string().allow(""),
|
|
1641
|
-
email: Joi.string().allow(""),
|
|
1642
|
-
otp: Joi.string().allow(""),
|
|
1643
|
-
register_token: Joi.string().allow(""),
|
|
1644
|
-
});
|
|
1645
|
-
}
|
|
1646
|
-
|
|
1647
|
-
/** @returns {VerifyEmailOTPSuccess} */
|
|
1648
|
-
static VerifyEmailOTPSuccess() {
|
|
1649
|
-
return Joi.object({
|
|
1650
|
-
user: UserPlatformModel.UserSchema(),
|
|
1651
|
-
verify_email_link: Joi.boolean(),
|
|
1652
|
-
});
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
/** @returns {VerifyEmailSuccess} */
|
|
1656
|
-
static VerifyEmailSuccess() {
|
|
1657
|
-
return Joi.object({
|
|
1658
|
-
message: Joi.string().allow(""),
|
|
1659
|
-
});
|
|
1660
|
-
}
|
|
1661
|
-
|
|
1662
|
-
/** @returns {VerifyMobileOTPSuccess} */
|
|
1663
|
-
static VerifyMobileOTPSuccess() {
|
|
1664
|
-
return Joi.object({
|
|
1665
|
-
user: UserPlatformModel.UserSchema(),
|
|
1666
|
-
verify_mobile_link: Joi.boolean(),
|
|
1667
|
-
});
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
/** @returns {VerifyOtpRequestSchema} */
|
|
1671
|
-
static VerifyOtpRequestSchema() {
|
|
1672
|
-
return Joi.object({
|
|
1673
|
-
otp: Joi.string().allow(""),
|
|
1674
|
-
register_token: Joi.string().allow(""),
|
|
1675
|
-
request_id: Joi.string().allow(""),
|
|
1676
|
-
});
|
|
1677
|
-
}
|
|
1678
|
-
|
|
1679
|
-
/** @returns {VerifyOtpSuccess} */
|
|
1680
|
-
static VerifyOtpSuccess() {
|
|
1681
|
-
return Joi.object({
|
|
1682
|
-
register_token: Joi.string().allow(""),
|
|
1683
|
-
user: UserPlatformModel.UserSchema(),
|
|
1684
|
-
user_exists: Joi.boolean(),
|
|
1685
|
-
});
|
|
1686
|
-
}
|
|
1687
791
|
}
|
|
1688
792
|
module.exports = UserPlatformModel;
|