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