@gofynd/fdk-client-javascript 1.4.2-beta.2 → 1.4.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/package.json +1 -1
- package/sdk/application/Cart/CartApplicationModel.d.ts +1742 -1726
- package/sdk/application/Cart/CartApplicationModel.js +1497 -1481
- package/sdk/application/Catalog/CatalogApplicationModel.d.ts +1917 -1917
- package/sdk/application/Catalog/CatalogApplicationModel.js +1611 -1611
- package/sdk/application/Common/CommonApplicationModel.d.ts +235 -235
- package/sdk/application/Common/CommonApplicationModel.js +172 -172
- package/sdk/application/Communication/CommunicationApplicationModel.d.ts +72 -72
- package/sdk/application/Communication/CommunicationApplicationModel.js +64 -64
- package/sdk/application/Configuration/ConfigurationApplicationModel.d.ts +1614 -1614
- package/sdk/application/Configuration/ConfigurationApplicationModel.js +1151 -1151
- package/sdk/application/Content/ContentApplicationModel.d.ts +797 -797
- package/sdk/application/Content/ContentApplicationModel.js +757 -757
- package/sdk/application/FileStorage/FileStorageApplicationModel.d.ts +79 -79
- package/sdk/application/FileStorage/FileStorageApplicationModel.js +84 -84
- package/sdk/application/Lead/LeadApplicationModel.d.ts +417 -417
- package/sdk/application/Lead/LeadApplicationModel.js +301 -301
- package/sdk/application/Logistic/LogisticApplicationModel.d.ts +666 -666
- package/sdk/application/Logistic/LogisticApplicationModel.js +601 -601
- package/sdk/application/Order/OrderApplicationModel.d.ts +852 -846
- package/sdk/application/Order/OrderApplicationModel.js +828 -822
- package/sdk/application/Payment/PaymentApplicationClient.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationClient.js +10 -10
- package/sdk/application/Payment/PaymentApplicationModel.d.ts +2176 -2145
- package/sdk/application/Payment/PaymentApplicationModel.js +1474 -1453
- package/sdk/application/Payment/PaymentApplicationValidator.d.ts +5 -5
- package/sdk/application/Payment/PaymentApplicationValidator.js +3 -3
- package/sdk/application/PosCart/PosCartApplicationModel.d.ts +1462 -1462
- package/sdk/application/PosCart/PosCartApplicationModel.js +1260 -1260
- package/sdk/application/Rewards/RewardsApplicationModel.d.ts +214 -214
- package/sdk/application/Rewards/RewardsApplicationModel.js +211 -211
- package/sdk/application/Share/ShareApplicationModel.d.ts +114 -114
- package/sdk/application/Share/ShareApplicationModel.js +121 -121
- package/sdk/application/Theme/ThemeApplicationModel.d.ts +895 -895
- package/sdk/application/Theme/ThemeApplicationModel.js +684 -684
- package/sdk/application/User/UserApplicationClient.d.ts +2 -2
- package/sdk/application/User/UserApplicationClient.js +4 -7
- package/sdk/application/User/UserApplicationModel.d.ts +769 -764
- package/sdk/application/User/UserApplicationModel.js +731 -741
- package/sdk/partner/FileStorage/FileStoragePartnerModel.d.ts +63 -63
- package/sdk/partner/FileStorage/FileStoragePartnerModel.js +65 -65
- package/sdk/partner/Lead/LeadPartnerModel.d.ts +661 -661
- package/sdk/partner/Lead/LeadPartnerModel.js +491 -491
- package/sdk/partner/Logistics/LogisticsPartnerModel.d.ts +223 -223
- package/sdk/partner/Logistics/LogisticsPartnerModel.js +235 -235
- package/sdk/partner/Theme/ThemePartnerModel.d.ts +1087 -1087
- package/sdk/partner/Theme/ThemePartnerModel.js +819 -819
- package/sdk/partner/Webhook/WebhookPartnerModel.d.ts +386 -386
- package/sdk/partner/Webhook/WebhookPartnerModel.js +342 -342
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.d.ts +123 -123
- package/sdk/platform/AuditTrail/AuditTrailPlatformModel.js +109 -109
- package/sdk/platform/Billing/BillingPlatformModel.d.ts +801 -801
- package/sdk/platform/Billing/BillingPlatformModel.js +783 -783
- package/sdk/platform/Cart/CartPlatformModel.d.ts +3333 -3317
- package/sdk/platform/Cart/CartPlatformModel.js +2936 -2920
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.d.ts +26 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationClient.js +182 -0
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.d.ts +70 -1
- package/sdk/platform/Catalog/CatalogPlatformApplicationValidator.js +44 -0
- package/sdk/platform/Catalog/CatalogPlatformModel.d.ts +1013 -980
- package/sdk/platform/Catalog/CatalogPlatformModel.js +977 -933
- package/sdk/platform/Common/CommonPlatformModel.d.ts +255 -255
- package/sdk/platform/Common/CommonPlatformModel.js +187 -187
- package/sdk/platform/Communication/CommunicationPlatformModel.d.ts +1238 -1238
- package/sdk/platform/Communication/CommunicationPlatformModel.js +1273 -1273
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.d.ts +661 -661
- package/sdk/platform/CompanyProfile/CompanyProfilePlatformModel.js +692 -692
- package/sdk/platform/Configuration/ConfigurationPlatformModel.d.ts +3198 -3198
- package/sdk/platform/Configuration/ConfigurationPlatformModel.js +2247 -2247
- package/sdk/platform/Content/ContentPlatformModel.d.ts +1842 -1825
- package/sdk/platform/Content/ContentPlatformModel.js +1868 -1848
- package/sdk/platform/Discount/DiscountPlatformModel.d.ts +245 -245
- package/sdk/platform/Discount/DiscountPlatformModel.js +248 -248
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationClient.js +4 -1
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.d.ts +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformApplicationValidator.js +2 -0
- package/sdk/platform/FileStorage/FileStoragePlatformClient.d.ts +2 -2
- package/sdk/platform/FileStorage/FileStoragePlatformClient.js +7 -4
- package/sdk/platform/FileStorage/FileStoragePlatformModel.d.ts +882 -869
- package/sdk/platform/FileStorage/FileStoragePlatformModel.js +894 -878
- package/sdk/platform/Finance/FinancePlatformModel.d.ts +1044 -1044
- package/sdk/platform/Finance/FinancePlatformModel.js +974 -974
- package/sdk/platform/Inventory/InventoryPlatformModel.d.ts +942 -942
- package/sdk/platform/Inventory/InventoryPlatformModel.js +1003 -1003
- package/sdk/platform/Lead/LeadPlatformModel.d.ts +608 -608
- package/sdk/platform/Lead/LeadPlatformModel.js +465 -465
- package/sdk/platform/Order/OrderPlatformModel.d.ts +5192 -5176
- package/sdk/platform/Order/OrderPlatformModel.js +4752 -4736
- package/sdk/platform/Partner/PartnerPlatformModel.d.ts +22 -22
- package/sdk/platform/Partner/PartnerPlatformModel.js +22 -22
- package/sdk/platform/Payment/PaymentPlatformModel.d.ts +2693 -2657
- package/sdk/platform/Payment/PaymentPlatformModel.js +1842 -1819
- package/sdk/platform/Rewards/RewardsPlatformModel.d.ts +204 -204
- package/sdk/platform/Rewards/RewardsPlatformModel.js +199 -199
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.d.ts +7 -6
- package/sdk/platform/Serviceability/ServiceabilityPlatformClient.js +11 -10
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.d.ts +1674 -1539
- package/sdk/platform/Serviceability/ServiceabilityPlatformModel.js +1663 -1534
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.d.ts +4 -4
- package/sdk/platform/Serviceability/ServiceabilityPlatformValidator.js +4 -4
- package/sdk/platform/Share/SharePlatformApplicationClient.d.ts +1 -1
- package/sdk/platform/Share/SharePlatformApplicationClient.js +19 -6
- package/sdk/platform/Share/SharePlatformApplicationValidator.d.ts +13 -3
- package/sdk/platform/Share/SharePlatformApplicationValidator.js +6 -2
- package/sdk/platform/Share/SharePlatformModel.d.ts +147 -147
- package/sdk/platform/Share/SharePlatformModel.js +139 -139
- package/sdk/platform/Theme/ThemePlatformModel.d.ts +1046 -1046
- package/sdk/platform/Theme/ThemePlatformModel.js +789 -789
- package/sdk/platform/User/UserPlatformModel.d.ts +823 -753
- package/sdk/platform/User/UserPlatformModel.js +731 -661
- package/sdk/platform/Webhook/WebhookPlatformModel.d.ts +439 -439
- package/sdk/platform/Webhook/WebhookPlatformModel.js +364 -364
- package/sdk/public/Billing/BillingPublicModel.d.ts +55 -55
- package/sdk/public/Billing/BillingPublicModel.js +51 -51
- package/sdk/public/Configuration/ConfigurationPublicModel.d.ts +237 -237
- package/sdk/public/Configuration/ConfigurationPublicModel.js +174 -174
- package/sdk/public/Content/ContentPublicModel.d.ts +26 -26
- package/sdk/public/Content/ContentPublicModel.js +28 -28
- package/sdk/public/Inventory/InventoryPublicModel.d.ts +237 -237
- package/sdk/public/Inventory/InventoryPublicModel.js +257 -257
- package/sdk/public/Partner/PartnerPublicModel.d.ts +104 -104
- package/sdk/public/Partner/PartnerPublicModel.js +113 -113
- package/sdk/public/Webhook/WebhookPublicModel.d.ts +87 -87
- package/sdk/public/Webhook/WebhookPublicModel.js +93 -93
|
@@ -1,80 +1,219 @@
|
|
|
1
1
|
export = UserPlatformModel;
|
|
2
2
|
/**
|
|
3
|
-
* @typedef
|
|
4
|
-
* @property {string} [
|
|
3
|
+
* @typedef SuccessMessageResponse
|
|
4
|
+
* @property {string} [success]
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* @typedef
|
|
8
|
-
* @property {string} [
|
|
7
|
+
* @typedef UserAttributeDefinition
|
|
8
|
+
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
9
|
+
* @property {string} [name] - The attribute name.
|
|
10
|
+
* @property {string} [slug] - The attribute key.
|
|
11
|
+
* @property {string} [description] - The description of the attribute.
|
|
12
|
+
* @property {string} [application_id] - The application ID.
|
|
13
|
+
* @property {string} [type] - The attribute type.
|
|
14
|
+
* @property {boolean} [multi_value] - Whether the attribute supports multiple values.
|
|
15
|
+
* @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
|
|
16
|
+
* @property {boolean} [encrypted] - Whether the attribute is encrypted.
|
|
17
|
+
* @property {boolean} [pinned] - Whether the attribute is pinned.
|
|
18
|
+
* @property {number} [pin_order] - The order in which the attribute is pinned.
|
|
19
|
+
* @property {Object[]} [validations]
|
|
20
|
+
* @property {boolean} [is_locked] - Whether the attribute is locked.
|
|
21
|
+
* @property {string} [created_at] - The creation date of the attribute.
|
|
22
|
+
* @property {string} [modified_at] - The modification date of the attribute.
|
|
23
|
+
* @property {number} [__v] - The version number of the attribute.
|
|
9
24
|
*/
|
|
10
25
|
/**
|
|
11
|
-
* @typedef
|
|
12
|
-
* @property {
|
|
26
|
+
* @typedef UserAttributeDefinitionResponse
|
|
27
|
+
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
28
|
+
* @property {string} [name] - The attribute name.
|
|
29
|
+
* @property {string} [slug] - The attribute key.
|
|
30
|
+
* @property {string} [description] - The description of the attribute.
|
|
31
|
+
* @property {string} [application_id] - The application ID.
|
|
32
|
+
* @property {string} [type] - The attribute type.
|
|
33
|
+
* @property {boolean} [multi_value] - Whether the attribute supports multiple values.
|
|
34
|
+
* @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
|
|
35
|
+
* @property {boolean} [encrypted] - Whether the attribute is encrypted.
|
|
36
|
+
* @property {boolean} [pinned] - Whether the attribute is pinned.
|
|
37
|
+
* @property {number} [pin_order] - The order in which the attribute is pinned.
|
|
38
|
+
* @property {UserAttributeDefinitionValidation[]} [validations]
|
|
39
|
+
* @property {boolean} [is_locked] - Whether the attribute is locked.
|
|
40
|
+
* @property {string} [created_by] - The user who created the attribute.
|
|
41
|
+
* @property {string} [updated_by] - The user who last updated the attribute.
|
|
42
|
+
* @property {string} [created_at] - The creation date of the attribute definition.
|
|
43
|
+
* @property {string} [modified_at] - The last modification date of the
|
|
44
|
+
* attribute definition.
|
|
13
45
|
*/
|
|
14
46
|
/**
|
|
15
|
-
* @typedef
|
|
16
|
-
* @property {string} [
|
|
47
|
+
* @typedef UserAttributeDefinitionValidation
|
|
48
|
+
* @property {string} [type] - The type of validation.
|
|
49
|
+
* @property {Object} [value] - The validation value.
|
|
50
|
+
*/
|
|
51
|
+
/**
|
|
52
|
+
* @typedef UserAttributeResponse
|
|
53
|
+
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
54
|
+
* @property {string} [name] - The name of user attribute definition.
|
|
55
|
+
* @property {string} [user_id] - The unique identifier for the user.
|
|
56
|
+
* @property {string} [application_id] - The application ID.
|
|
57
|
+
* @property {string} [type] - The attribute type.
|
|
58
|
+
* @property {boolean} [customer_overriden] - Whether the attribute is customer-editable.
|
|
59
|
+
* @property {Object} [attribute]
|
|
60
|
+
* @property {string} [updated_by]
|
|
61
|
+
*/
|
|
62
|
+
/**
|
|
63
|
+
* @typedef CreateUserAttributeRequest
|
|
64
|
+
* @property {boolean} [customer_overriden]
|
|
65
|
+
* @property {Object} [attribute]
|
|
66
|
+
*/
|
|
67
|
+
/**
|
|
68
|
+
* @typedef CreateUserAttributeDefinition
|
|
69
|
+
* @property {string} [name]
|
|
70
|
+
* @property {string} [slug]
|
|
71
|
+
* @property {string} [description]
|
|
72
|
+
* @property {string} [type]
|
|
73
|
+
* @property {boolean} [multi_value]
|
|
74
|
+
* @property {boolean} [customer_editable]
|
|
75
|
+
* @property {boolean} [encrypted]
|
|
76
|
+
* @property {boolean} [pinned]
|
|
77
|
+
* @property {number} [pin_order]
|
|
78
|
+
* @property {string} [default_value]
|
|
79
|
+
* @property {Object[]} [validations]
|
|
17
80
|
*/
|
|
18
81
|
/**
|
|
19
82
|
* @typedef BlockUserRequestSchema
|
|
20
|
-
* @property {string} [reason]
|
|
21
83
|
* @property {boolean} [status]
|
|
22
84
|
* @property {string[]} [user_id]
|
|
85
|
+
* @property {string} [reason]
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* @typedef ArchiveUserRequestSchema
|
|
89
|
+
* @property {string} [user_id]
|
|
90
|
+
*/
|
|
91
|
+
/**
|
|
92
|
+
* @typedef UnDeleteUserRequestSchema
|
|
93
|
+
* @property {string} [user_id]
|
|
94
|
+
* @property {string} [reason]
|
|
95
|
+
* @property {string} [reason_id]
|
|
23
96
|
*/
|
|
24
97
|
/**
|
|
25
98
|
* @typedef BlockUserSuccess
|
|
26
99
|
* @property {boolean} [success]
|
|
27
100
|
*/
|
|
28
101
|
/**
|
|
29
|
-
* @typedef
|
|
30
|
-
* @property {
|
|
31
|
-
* @property {string} [type]
|
|
32
|
-
* @property {string} [user_attribute_definition_id]
|
|
33
|
-
* @property {string} [value]
|
|
102
|
+
* @typedef ArchiveUserSuccess
|
|
103
|
+
* @property {boolean} [success]
|
|
34
104
|
*/
|
|
35
105
|
/**
|
|
36
|
-
* @typedef
|
|
106
|
+
* @typedef UnDeleteUserSuccess
|
|
107
|
+
* @property {boolean} [success]
|
|
108
|
+
*/
|
|
109
|
+
/**
|
|
110
|
+
* @typedef UserSearchResponseSchema
|
|
111
|
+
* @property {UserSearchSchema[]} [users]
|
|
112
|
+
*/
|
|
113
|
+
/**
|
|
114
|
+
* @typedef CustomerListResponseSchema
|
|
115
|
+
* @property {UserSchema[]} [items]
|
|
116
|
+
* @property {PaginationSchema} [page]
|
|
117
|
+
*/
|
|
118
|
+
/**
|
|
119
|
+
* @typedef PaginationSchema
|
|
120
|
+
* @property {number} [size]
|
|
121
|
+
* @property {number} [item_total]
|
|
122
|
+
* @property {boolean} [has_next]
|
|
37
123
|
* @property {string} [type]
|
|
124
|
+
* @property {number} [current]
|
|
125
|
+
*/
|
|
126
|
+
/**
|
|
127
|
+
* @typedef SessionListResponseSchema
|
|
128
|
+
* @property {SessionListResponseInfo[]} [items]
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* @typedef SessionDeleteResponseSchema
|
|
132
|
+
* @property {string} [user_id]
|
|
133
|
+
* @property {string} [session_id]
|
|
134
|
+
*/
|
|
135
|
+
/**
|
|
136
|
+
* @typedef SessionsDeleteResponseSchema
|
|
137
|
+
* @property {string} [user_id]
|
|
138
|
+
* @property {string[]} [session_ids]
|
|
139
|
+
*/
|
|
140
|
+
/**
|
|
141
|
+
* @typedef APIError
|
|
142
|
+
* @property {string} [code]
|
|
143
|
+
* @property {string} [message]
|
|
144
|
+
* @property {string} [info] - Error code description link
|
|
145
|
+
* @property {string} [request_id]
|
|
146
|
+
* @property {string} [error]
|
|
147
|
+
* @property {Object} [meta]
|
|
148
|
+
* @property {boolean} [authenticated]
|
|
149
|
+
*/
|
|
150
|
+
/**
|
|
151
|
+
* @typedef SessionListResponseInfo
|
|
152
|
+
* @property {string} [session_id]
|
|
153
|
+
* @property {string} [user_agent]
|
|
154
|
+
* @property {string} [ip]
|
|
155
|
+
* @property {string} [domain]
|
|
156
|
+
* @property {string} [expire_in]
|
|
157
|
+
* @property {string} [location]
|
|
158
|
+
*/
|
|
159
|
+
/**
|
|
160
|
+
* @typedef Conditions
|
|
38
161
|
* @property {string} [user_attribute_definition_id]
|
|
162
|
+
* @property {string} [type]
|
|
39
163
|
* @property {string} [value]
|
|
164
|
+
* @property {string} [key]
|
|
40
165
|
*/
|
|
41
166
|
/**
|
|
42
|
-
* @typedef
|
|
43
|
-
* @property {
|
|
44
|
-
* @property {string} [
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
* @
|
|
167
|
+
* @typedef UserResponseErrorSchema
|
|
168
|
+
* @property {number} [count]
|
|
169
|
+
* @property {string} [file_url]
|
|
170
|
+
*/
|
|
171
|
+
/**
|
|
172
|
+
* @typedef UserGroupResponseSchema
|
|
173
|
+
* @property {Conditions[]} [conditions]
|
|
174
|
+
* @property {UserResponseErrorSchema} [error]
|
|
48
175
|
* @property {string} [name]
|
|
49
|
-
* @property {
|
|
50
|
-
* @property {
|
|
51
|
-
* @property {string} [
|
|
176
|
+
* @property {string} [description]
|
|
177
|
+
* @property {string} [file_url]
|
|
178
|
+
* @property {string} [_id]
|
|
179
|
+
* @property {string} [status]
|
|
180
|
+
* @property {boolean} [is_active]
|
|
52
181
|
* @property {string} [type]
|
|
53
|
-
* @property {
|
|
182
|
+
* @property {number} [uid]
|
|
183
|
+
* @property {string} [application_id]
|
|
184
|
+
* @property {string} [created_at]
|
|
185
|
+
* @property {string} [modified_at]
|
|
186
|
+
* @property {number} [__v]
|
|
54
187
|
*/
|
|
55
188
|
/**
|
|
56
|
-
* @typedef
|
|
57
|
-
* @property {
|
|
58
|
-
* @property {
|
|
189
|
+
* @typedef UserGroupListResponseSchema
|
|
190
|
+
* @property {UserGroupResponseSchema[]} [items]
|
|
191
|
+
* @property {PaginationSchema} [page]
|
|
192
|
+
*/
|
|
193
|
+
/**
|
|
194
|
+
* @typedef ConditionsSchema
|
|
195
|
+
* @property {string} [user_attribute_definition_id]
|
|
196
|
+
* @property {string} [type]
|
|
197
|
+
* @property {string} [value]
|
|
59
198
|
*/
|
|
60
199
|
/**
|
|
61
200
|
* @typedef CreateUserGroup
|
|
62
201
|
* @property {ConditionsSchema[]} [conditions]
|
|
202
|
+
* @property {string} [type]
|
|
203
|
+
* @property {string} name
|
|
63
204
|
* @property {string} description
|
|
64
205
|
* @property {string} [file_url]
|
|
65
|
-
* @property {string} name
|
|
66
|
-
* @property {string} [type]
|
|
67
206
|
*/
|
|
68
207
|
/**
|
|
69
208
|
* @typedef CreateUserRequestSchema
|
|
209
|
+
* @property {string} phone_number
|
|
70
210
|
* @property {string} [email]
|
|
71
|
-
* @property {string} [external_id]
|
|
72
211
|
* @property {string} [first_name]
|
|
73
|
-
* @property {string} [gender]
|
|
74
212
|
* @property {string} [last_name]
|
|
75
|
-
* @property {
|
|
76
|
-
* @property {string} phone_number
|
|
213
|
+
* @property {string} [gender]
|
|
77
214
|
* @property {string} username
|
|
215
|
+
* @property {Object} [meta]
|
|
216
|
+
* @property {string} [external_id]
|
|
78
217
|
*/
|
|
79
218
|
/**
|
|
80
219
|
* @typedef CreateUserResponseSchema
|
|
@@ -88,91 +227,66 @@ export = UserPlatformModel;
|
|
|
88
227
|
*/
|
|
89
228
|
/**
|
|
90
229
|
* @typedef CreateUserSessionResponseSchema
|
|
91
|
-
* @property {Object} [cookie]
|
|
92
230
|
* @property {string} [domain]
|
|
93
|
-
* @property {boolean} [http_only]
|
|
94
231
|
* @property {number} [max_age]
|
|
95
232
|
* @property {boolean} [secure]
|
|
233
|
+
* @property {boolean} [http_only]
|
|
234
|
+
* @property {Object} [cookie]
|
|
96
235
|
*/
|
|
97
236
|
/**
|
|
98
|
-
* @typedef
|
|
99
|
-
* @property {
|
|
100
|
-
* @property {
|
|
237
|
+
* @typedef PlatformSchema
|
|
238
|
+
* @property {string} [display]
|
|
239
|
+
* @property {LookAndFeel} [look_and_feel]
|
|
240
|
+
* @property {string} [updated_at]
|
|
241
|
+
* @property {boolean} [active]
|
|
242
|
+
* @property {boolean} [forgot_password]
|
|
243
|
+
* @property {Login} [login]
|
|
244
|
+
* @property {boolean} [skip_captcha]
|
|
245
|
+
* @property {string} [name]
|
|
246
|
+
* @property {MetaSchema} [meta]
|
|
247
|
+
* @property {string} [_id]
|
|
248
|
+
* @property {Social} [social]
|
|
249
|
+
* @property {RequiredFields} [required_fields]
|
|
250
|
+
* @property {RegisterRequiredFields} [register_required_fields]
|
|
251
|
+
* @property {boolean} [skip_login]
|
|
252
|
+
* @property {FlashCard} [flash_card]
|
|
253
|
+
* @property {string} [subtext]
|
|
254
|
+
* @property {SocialTokens} [social_tokens]
|
|
255
|
+
* @property {string} [created_at]
|
|
256
|
+
* @property {boolean} [register]
|
|
257
|
+
* @property {string} [mobile_image]
|
|
258
|
+
* @property {string} [desktop_image]
|
|
259
|
+
* @property {number} [delete_account_day]
|
|
260
|
+
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
261
|
+
* @property {DeleteAccountConsent} [delete_account_consent]
|
|
262
|
+
* @property {SessionExpiry} [session_config]
|
|
263
|
+
* @property {number} [__v]
|
|
101
264
|
*/
|
|
102
265
|
/**
|
|
103
|
-
* @typedef
|
|
104
|
-
* @property {string} [
|
|
266
|
+
* @typedef LookAndFeel
|
|
267
|
+
* @property {string} [card_position]
|
|
268
|
+
* @property {string} [background_color]
|
|
105
269
|
*/
|
|
106
270
|
/**
|
|
107
|
-
* @typedef
|
|
108
|
-
* @property {
|
|
109
|
-
* @property {
|
|
110
|
-
* @property {boolean} [show_text_area]
|
|
271
|
+
* @typedef Login
|
|
272
|
+
* @property {boolean} [password]
|
|
273
|
+
* @property {boolean} [otp]
|
|
111
274
|
*/
|
|
112
275
|
/**
|
|
113
|
-
* @typedef
|
|
114
|
-
* @property {boolean} [
|
|
115
|
-
* @property {string} [email]
|
|
116
|
-
* @property {boolean} [primary]
|
|
117
|
-
* @property {boolean} [verified]
|
|
276
|
+
* @typedef MetaSchema
|
|
277
|
+
* @property {boolean} [fynd_default]
|
|
118
278
|
*/
|
|
119
279
|
/**
|
|
120
|
-
* @typedef
|
|
121
|
-
* @property {
|
|
280
|
+
* @typedef Social
|
|
281
|
+
* @property {boolean} [account_kit]
|
|
282
|
+
* @property {boolean} [facebook]
|
|
283
|
+
* @property {boolean} [google]
|
|
284
|
+
* @property {boolean} [apple]
|
|
122
285
|
*/
|
|
123
286
|
/**
|
|
124
|
-
* @typedef
|
|
125
|
-
* @property {
|
|
126
|
-
* @property {
|
|
127
|
-
* @property {string} [text_color]
|
|
128
|
-
*/
|
|
129
|
-
/**
|
|
130
|
-
* @typedef Google
|
|
131
|
-
* @property {string} [app_id]
|
|
132
|
-
*/
|
|
133
|
-
/**
|
|
134
|
-
* @typedef Login
|
|
135
|
-
* @property {boolean} [otp]
|
|
136
|
-
* @property {boolean} [password]
|
|
137
|
-
*/
|
|
138
|
-
/**
|
|
139
|
-
* @typedef LookAndFeel
|
|
140
|
-
* @property {string} [background_color]
|
|
141
|
-
* @property {string} [card_position]
|
|
142
|
-
*/
|
|
143
|
-
/**
|
|
144
|
-
* @typedef MetaSchema
|
|
145
|
-
* @property {boolean} [fynd_default]
|
|
146
|
-
*/
|
|
147
|
-
/**
|
|
148
|
-
* @typedef PaginationSchema
|
|
149
|
-
* @property {number} [current]
|
|
150
|
-
* @property {boolean} [has_next]
|
|
151
|
-
* @property {number} [item_total]
|
|
152
|
-
* @property {number} [size]
|
|
153
|
-
* @property {string} [type]
|
|
154
|
-
*/
|
|
155
|
-
/**
|
|
156
|
-
* @typedef PartialUserGroupUpdateSchema
|
|
157
|
-
* @property {string} [description]
|
|
158
|
-
* @property {string} [file_url] - Required property when passed type file_url.
|
|
159
|
-
* Internet reachable csv file url which will be used to fetch download data.
|
|
160
|
-
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
161
|
-
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
162
|
-
* @property {string} [name]
|
|
163
|
-
* @property {string} [type] - Source of update to be used to update individual
|
|
164
|
-
* users. Default value is considered file_url if not passed.
|
|
165
|
-
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
166
|
-
* type json. Array of user data. Must have `action` field and one of
|
|
167
|
-
* `phone_number`, `email` or `user_id` field in object
|
|
168
|
-
*/
|
|
169
|
-
/**
|
|
170
|
-
* @typedef PhoneNumber
|
|
171
|
-
* @property {boolean} [active]
|
|
172
|
-
* @property {number} [country_code]
|
|
173
|
-
* @property {string} [phone]
|
|
174
|
-
* @property {boolean} [primary]
|
|
175
|
-
* @property {boolean} [verified]
|
|
287
|
+
* @typedef RequiredFields
|
|
288
|
+
* @property {PlatformEmail} [email]
|
|
289
|
+
* @property {PlatformMobile} [mobile]
|
|
176
290
|
*/
|
|
177
291
|
/**
|
|
178
292
|
* @typedef PlatformEmail
|
|
@@ -184,34 +298,6 @@ export = UserPlatformModel;
|
|
|
184
298
|
* @property {boolean} [is_required]
|
|
185
299
|
* @property {string} [level]
|
|
186
300
|
*/
|
|
187
|
-
/**
|
|
188
|
-
* @typedef PlatformSchema
|
|
189
|
-
* @property {string} [_id]
|
|
190
|
-
* @property {boolean} [active]
|
|
191
|
-
* @property {string} [created_at]
|
|
192
|
-
* @property {Object} [delete_account_consent]
|
|
193
|
-
* @property {number} [delete_account_day]
|
|
194
|
-
* @property {DeleteAccountReasons[]} [delete_account_reasons]
|
|
195
|
-
* @property {string} [desktop_image]
|
|
196
|
-
* @property {string} [display]
|
|
197
|
-
* @property {FlashCard} [flash_card]
|
|
198
|
-
* @property {boolean} [forgot_password]
|
|
199
|
-
* @property {Login} [login]
|
|
200
|
-
* @property {LookAndFeel} [look_and_feel]
|
|
201
|
-
* @property {MetaSchema} [meta]
|
|
202
|
-
* @property {string} [mobile_image]
|
|
203
|
-
* @property {string} [name]
|
|
204
|
-
* @property {boolean} [register]
|
|
205
|
-
* @property {RegisterRequiredFields} [register_required_fields]
|
|
206
|
-
* @property {RequiredFields} [required_fields]
|
|
207
|
-
* @property {Object} [session_config]
|
|
208
|
-
* @property {boolean} [skip_captcha]
|
|
209
|
-
* @property {boolean} [skip_login]
|
|
210
|
-
* @property {Social} [social]
|
|
211
|
-
* @property {SocialTokens} [social_tokens]
|
|
212
|
-
* @property {string} [subtext]
|
|
213
|
-
* @property {string} [updated_at]
|
|
214
|
-
*/
|
|
215
301
|
/**
|
|
216
302
|
* @typedef RegisterRequiredFields
|
|
217
303
|
* @property {RegisterRequiredFieldsEmail} [email]
|
|
@@ -228,305 +314,527 @@ export = UserPlatformModel;
|
|
|
228
314
|
* @property {string} [level]
|
|
229
315
|
*/
|
|
230
316
|
/**
|
|
231
|
-
* @typedef
|
|
232
|
-
* @property {
|
|
233
|
-
* @property {
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* @typedef SessionDeleteResponseSchema
|
|
237
|
-
* @property {string} [session_id]
|
|
238
|
-
* @property {string} [user_id]
|
|
239
|
-
*/
|
|
240
|
-
/**
|
|
241
|
-
* @typedef SessionExpiry
|
|
242
|
-
* @property {number} [duration]
|
|
243
|
-
* @property {boolean} [is_rolling]
|
|
244
|
-
* @property {string} [type]
|
|
245
|
-
*/
|
|
246
|
-
/**
|
|
247
|
-
* @typedef SessionListResponseInfo
|
|
248
|
-
* @property {string} [domain]
|
|
249
|
-
* @property {string} [expire_in]
|
|
250
|
-
* @property {string} [ip]
|
|
251
|
-
* @property {string} [session_id]
|
|
252
|
-
* @property {string} [user_agent]
|
|
317
|
+
* @typedef FlashCard
|
|
318
|
+
* @property {string} [text]
|
|
319
|
+
* @property {string} [text_color]
|
|
320
|
+
* @property {string} [background_color]
|
|
253
321
|
*/
|
|
254
322
|
/**
|
|
255
|
-
* @typedef
|
|
256
|
-
* @property {
|
|
323
|
+
* @typedef SocialTokens
|
|
324
|
+
* @property {Facebook} [facebook]
|
|
325
|
+
* @property {Accountkit} [accountkit]
|
|
326
|
+
* @property {Google} [google]
|
|
257
327
|
*/
|
|
258
328
|
/**
|
|
259
|
-
* @typedef
|
|
260
|
-
* @property {string
|
|
261
|
-
* @property {string} [
|
|
329
|
+
* @typedef DeleteAccountReasons
|
|
330
|
+
* @property {string} [reason_text]
|
|
331
|
+
* @property {string} [reason_id]
|
|
332
|
+
* @property {boolean} [show_text_area]
|
|
262
333
|
*/
|
|
263
334
|
/**
|
|
264
|
-
* @typedef
|
|
265
|
-
* @property {
|
|
266
|
-
* @property {boolean} [apple]
|
|
267
|
-
* @property {boolean} [facebook]
|
|
268
|
-
* @property {boolean} [google]
|
|
335
|
+
* @typedef DeleteAccountConsent
|
|
336
|
+
* @property {string} [consent_text]
|
|
269
337
|
*/
|
|
270
338
|
/**
|
|
271
|
-
* @typedef
|
|
272
|
-
* @property {
|
|
273
|
-
* @property {
|
|
274
|
-
* @property {Google} [google]
|
|
339
|
+
* @typedef Facebook
|
|
340
|
+
* @property {string} [app_id]
|
|
341
|
+
* @property {string} [app_secret]
|
|
275
342
|
*/
|
|
276
343
|
/**
|
|
277
|
-
* @typedef
|
|
278
|
-
* @property {string} [
|
|
344
|
+
* @typedef Accountkit
|
|
345
|
+
* @property {string} [app_id]
|
|
346
|
+
* @property {string} [app_secret]
|
|
279
347
|
*/
|
|
280
348
|
/**
|
|
281
|
-
* @typedef
|
|
282
|
-
* @property {string} [
|
|
283
|
-
* @property {string} [
|
|
284
|
-
* @property {string} [user_id]
|
|
349
|
+
* @typedef Google
|
|
350
|
+
* @property {string} [app_id]
|
|
351
|
+
* @property {string} [app_secret]
|
|
285
352
|
*/
|
|
286
353
|
/**
|
|
287
|
-
* @typedef
|
|
288
|
-
* @property {
|
|
354
|
+
* @typedef SessionExpiry
|
|
355
|
+
* @property {number} [duration]
|
|
356
|
+
* @property {string} [type]
|
|
357
|
+
* @property {boolean} [is_rolling]
|
|
289
358
|
*/
|
|
290
359
|
/**
|
|
291
360
|
* @typedef UpdateUserGroupSchema
|
|
292
361
|
* @property {ConditionsSchema[]} [conditions]
|
|
362
|
+
* @property {string} [type]
|
|
363
|
+
* @property {string} [name]
|
|
293
364
|
* @property {string} [description]
|
|
294
365
|
* @property {string} [file_url]
|
|
366
|
+
*/
|
|
367
|
+
/**
|
|
368
|
+
* @typedef PartialUserGroupUpdateSchema
|
|
369
|
+
* @property {string} [type] - Source of update to be used to update individual
|
|
370
|
+
* users. Default value is considered file_url if not passed.
|
|
295
371
|
* @property {string} [name]
|
|
296
|
-
* @property {string} [
|
|
372
|
+
* @property {string} [description]
|
|
373
|
+
* @property {string} [file_url] - Required property when passed type file_url.
|
|
374
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
375
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
376
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
377
|
+
* @property {UserGroupUpdateData[]} [user_data] - Required property when passed
|
|
378
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
379
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
380
|
+
*/
|
|
381
|
+
/**
|
|
382
|
+
* @typedef UserGroupUpdateData
|
|
383
|
+
* @property {string} [user_id] - Must be valid mongodb objectid of existing user
|
|
384
|
+
* @property {string} [phone_number] - Phone number of registered user
|
|
385
|
+
* @property {string} [email] - Email of registered user
|
|
386
|
+
* @property {string} action
|
|
297
387
|
*/
|
|
298
388
|
/**
|
|
299
389
|
* @typedef UpdateUserRequestSchema
|
|
300
|
-
* @property {UserEmails[]} [emails]
|
|
301
|
-
* @property {string} [external_id]
|
|
302
390
|
* @property {string} [first_name]
|
|
303
|
-
* @property {string} [gender]
|
|
304
391
|
* @property {string} [last_name]
|
|
392
|
+
* @property {string} [gender]
|
|
393
|
+
* @property {string} [external_id]
|
|
305
394
|
* @property {Object} [meta]
|
|
306
395
|
* @property {UserPhoneNumbers[]} [phone_numbers]
|
|
307
|
-
|
|
308
|
-
/**
|
|
309
|
-
* @typedef UserAttributeDefinition
|
|
310
|
-
* @property {number} [__v] - The version number of the attribute.
|
|
311
|
-
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
312
|
-
* @property {string} [application_id] - The application ID.
|
|
313
|
-
* @property {string} [created_at] - The creation date of the attribute.
|
|
314
|
-
* @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
|
|
315
|
-
* @property {string} [description] - The description of the attribute.
|
|
316
|
-
* @property {boolean} [encrypted] - Whether the attribute is encrypted.
|
|
317
|
-
* @property {boolean} [is_locked] - Whether the attribute is locked.
|
|
318
|
-
* @property {string} [modified_at] - The modification date of the attribute.
|
|
319
|
-
* @property {boolean} [multi_value] - Whether the attribute supports multiple values.
|
|
320
|
-
* @property {string} [name] - The attribute name.
|
|
321
|
-
* @property {number} [pin_order] - The order in which the attribute is pinned.
|
|
322
|
-
* @property {boolean} [pinned] - Whether the attribute is pinned.
|
|
323
|
-
* @property {string} [slug] - The attribute key.
|
|
324
|
-
* @property {string} [type] - The attribute type.
|
|
325
|
-
* @property {Object[]} [validations]
|
|
326
|
-
*/
|
|
327
|
-
/**
|
|
328
|
-
* @typedef UserAttributeDefinitionResponse
|
|
329
|
-
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
330
|
-
* @property {string} [application_id] - The application ID.
|
|
331
|
-
* @property {string} [created_at] - The creation date of the attribute definition.
|
|
332
|
-
* @property {string} [created_by] - The user who created the attribute.
|
|
333
|
-
* @property {boolean} [customer_editable] - Whether the attribute is customer-editable.
|
|
334
|
-
* @property {string} [description] - The description of the attribute.
|
|
335
|
-
* @property {boolean} [encrypted] - Whether the attribute is encrypted.
|
|
336
|
-
* @property {boolean} [is_locked] - Whether the attribute is locked.
|
|
337
|
-
* @property {string} [modified_at] - The last modification date of the
|
|
338
|
-
* attribute definition.
|
|
339
|
-
* @property {boolean} [multi_value] - Whether the attribute supports multiple values.
|
|
340
|
-
* @property {string} [name] - The attribute name.
|
|
341
|
-
* @property {number} [pin_order] - The order in which the attribute is pinned.
|
|
342
|
-
* @property {boolean} [pinned] - Whether the attribute is pinned.
|
|
343
|
-
* @property {string} [slug] - The attribute key.
|
|
344
|
-
* @property {string} [type] - The attribute type.
|
|
345
|
-
* @property {string} [updated_by] - The user who last updated the attribute.
|
|
346
|
-
* @property {UserAttributeDefinitionValidation[]} [validations]
|
|
347
|
-
*/
|
|
348
|
-
/**
|
|
349
|
-
* @typedef UserAttributeDefinitionValidation
|
|
350
|
-
* @property {string} [type] - The type of validation.
|
|
351
|
-
* @property {Object} [value] - The validation value.
|
|
352
|
-
*/
|
|
353
|
-
/**
|
|
354
|
-
* @typedef UserAttributeResponse
|
|
355
|
-
* @property {string} [_id] - The unique identifier for the attribute definition.
|
|
356
|
-
* @property {string} [application_id] - The application ID.
|
|
357
|
-
* @property {Object} [attribute]
|
|
358
|
-
* @property {boolean} [customer_overriden] - Whether the attribute is customer-editable.
|
|
359
|
-
* @property {string} [name] - The name of user attribute definition.
|
|
360
|
-
* @property {string} [type] - The attribute type.
|
|
361
|
-
* @property {string} [updated_by]
|
|
362
|
-
* @property {string} [user_id] - The unique identifier for the user.
|
|
396
|
+
* @property {UserEmails[]} [emails]
|
|
363
397
|
*/
|
|
364
398
|
/**
|
|
365
399
|
* @typedef UserEmails
|
|
366
400
|
* @property {boolean} [active]
|
|
367
|
-
* @property {string} [email]
|
|
368
401
|
* @property {boolean} [primary]
|
|
369
402
|
* @property {boolean} [verified]
|
|
403
|
+
* @property {string} [email]
|
|
370
404
|
*/
|
|
371
405
|
/**
|
|
372
|
-
* @typedef
|
|
373
|
-
* @property {
|
|
374
|
-
* @property {
|
|
406
|
+
* @typedef UserPhoneNumbers
|
|
407
|
+
* @property {boolean} [active]
|
|
408
|
+
* @property {boolean} [primary]
|
|
409
|
+
* @property {boolean} [verified]
|
|
410
|
+
* @property {string} [phone]
|
|
411
|
+
* @property {string} [country_code]
|
|
375
412
|
*/
|
|
376
413
|
/**
|
|
377
|
-
* @typedef
|
|
378
|
-
* @property {number} [__v]
|
|
379
|
-
* @property {string} [_id]
|
|
414
|
+
* @typedef UserSchema
|
|
380
415
|
* @property {string} [application_id]
|
|
381
|
-
* @property {
|
|
382
|
-
* @property {string} [
|
|
383
|
-
* @property {
|
|
384
|
-
* @property {
|
|
385
|
-
* @property {
|
|
386
|
-
* @property {
|
|
387
|
-
* @property {string} [
|
|
388
|
-
* @property {string} [
|
|
389
|
-
* @property {string} [status]
|
|
390
|
-
* @property {string} [type]
|
|
391
|
-
* @property {number} [uid]
|
|
392
|
-
*/
|
|
393
|
-
/**
|
|
394
|
-
* @typedef UserGroupUpdateData
|
|
395
|
-
* @property {string} action
|
|
396
|
-
* @property {string} [email] - Email of registered user
|
|
397
|
-
* @property {string} [phone_number] - Phone number of registered user
|
|
398
|
-
* @property {string} [user_id] - Must be valid mongodb objectid of existing user
|
|
399
|
-
*/
|
|
400
|
-
/**
|
|
401
|
-
* @typedef UserPhoneNumbers
|
|
416
|
+
* @property {string} [user_id]
|
|
417
|
+
* @property {string} [first_name]
|
|
418
|
+
* @property {Object} [meta]
|
|
419
|
+
* @property {string} [last_name]
|
|
420
|
+
* @property {PhoneNumber[]} [phone_numbers]
|
|
421
|
+
* @property {Email[]} [emails]
|
|
422
|
+
* @property {string} [gender]
|
|
423
|
+
* @property {string} [dob]
|
|
402
424
|
* @property {boolean} [active]
|
|
403
|
-
* @property {string} [
|
|
404
|
-
* @property {string} [
|
|
405
|
-
* @property {boolean} [primary]
|
|
406
|
-
* @property {boolean} [verified]
|
|
407
|
-
*/
|
|
408
|
-
/**
|
|
409
|
-
* @typedef UserResponseErrorSchema
|
|
410
|
-
* @property {number} [count]
|
|
411
|
-
* @property {string} [file_url]
|
|
412
|
-
*/
|
|
413
|
-
/**
|
|
414
|
-
* @typedef UserSchema
|
|
415
|
-
* @property {string} [_id]
|
|
425
|
+
* @property {string} [profile_pic_url]
|
|
426
|
+
* @property {string} [username]
|
|
416
427
|
* @property {string} [account_type]
|
|
417
|
-
* @property {
|
|
418
|
-
* @property {string} [application_id]
|
|
428
|
+
* @property {string} [_id]
|
|
419
429
|
* @property {string} [created_at]
|
|
420
|
-
* @property {string} [
|
|
421
|
-
* @property {Email[]} [emails]
|
|
430
|
+
* @property {string} [updated_at]
|
|
422
431
|
* @property {string} [external_id]
|
|
432
|
+
*/
|
|
433
|
+
/**
|
|
434
|
+
* @typedef UserSearchSchema
|
|
435
|
+
* @property {string} [application_id]
|
|
436
|
+
* @property {string} [user_id]
|
|
423
437
|
* @property {string} [first_name]
|
|
424
|
-
* @property {string} [gender]
|
|
425
|
-
* @property {string} [last_name]
|
|
426
438
|
* @property {Object} [meta]
|
|
439
|
+
* @property {string} [last_name]
|
|
427
440
|
* @property {PhoneNumber[]} [phone_numbers]
|
|
441
|
+
* @property {Email[]} [emails]
|
|
442
|
+
* @property {string} [gender]
|
|
443
|
+
* @property {string} [dob]
|
|
444
|
+
* @property {boolean} [active]
|
|
428
445
|
* @property {string} [profile_pic_url]
|
|
429
|
-
* @property {string} [updated_at]
|
|
430
|
-
* @property {string} [user_id]
|
|
431
446
|
* @property {string} [username]
|
|
447
|
+
* @property {string} [account_type]
|
|
448
|
+
* @property {string} [_id]
|
|
449
|
+
* @property {string} [created_at]
|
|
450
|
+
* @property {string} [updated_at]
|
|
451
|
+
* @property {string} [external_id]
|
|
452
|
+
* @property {boolean} [archive]
|
|
453
|
+
* @property {string} [status]
|
|
432
454
|
*/
|
|
433
455
|
/**
|
|
434
|
-
* @typedef
|
|
435
|
-
* @property {
|
|
456
|
+
* @typedef PhoneNumber
|
|
457
|
+
* @property {boolean} [active]
|
|
458
|
+
* @property {boolean} [primary]
|
|
459
|
+
* @property {boolean} [verified]
|
|
460
|
+
* @property {string} [phone]
|
|
461
|
+
* @property {number} [country_code]
|
|
462
|
+
*/
|
|
463
|
+
/**
|
|
464
|
+
* @typedef Email
|
|
465
|
+
* @property {boolean} [primary]
|
|
466
|
+
* @property {boolean} [verified]
|
|
467
|
+
* @property {string} [email]
|
|
468
|
+
* @property {boolean} [active]
|
|
436
469
|
*/
|
|
437
470
|
declare class UserPlatformModel {
|
|
438
471
|
}
|
|
439
472
|
declare namespace UserPlatformModel {
|
|
440
|
-
export {
|
|
473
|
+
export { SuccessMessageResponse, UserAttributeDefinition, UserAttributeDefinitionResponse, UserAttributeDefinitionValidation, UserAttributeResponse, CreateUserAttributeRequest, CreateUserAttributeDefinition, BlockUserRequestSchema, ArchiveUserRequestSchema, UnDeleteUserRequestSchema, BlockUserSuccess, ArchiveUserSuccess, UnDeleteUserSuccess, UserSearchResponseSchema, CustomerListResponseSchema, PaginationSchema, SessionListResponseSchema, SessionDeleteResponseSchema, SessionsDeleteResponseSchema, APIError, SessionListResponseInfo, Conditions, UserResponseErrorSchema, UserGroupResponseSchema, UserGroupListResponseSchema, ConditionsSchema, CreateUserGroup, CreateUserRequestSchema, CreateUserResponseSchema, CreateUserSessionRequestSchema, CreateUserSessionResponseSchema, PlatformSchema, LookAndFeel, Login, MetaSchema, Social, RequiredFields, PlatformEmail, PlatformMobile, RegisterRequiredFields, RegisterRequiredFieldsEmail, RegisterRequiredFieldsMobile, FlashCard, SocialTokens, DeleteAccountReasons, DeleteAccountConsent, Facebook, Accountkit, Google, SessionExpiry, UpdateUserGroupSchema, PartialUserGroupUpdateSchema, UserGroupUpdateData, UpdateUserRequestSchema, UserEmails, UserPhoneNumbers, UserSchema, UserSearchSchema, PhoneNumber, Email };
|
|
441
474
|
}
|
|
442
|
-
/** @returns {
|
|
443
|
-
declare function
|
|
444
|
-
type
|
|
445
|
-
|
|
475
|
+
/** @returns {SuccessMessageResponse} */
|
|
476
|
+
declare function SuccessMessageResponse(): SuccessMessageResponse;
|
|
477
|
+
type SuccessMessageResponse = {
|
|
478
|
+
success?: string;
|
|
446
479
|
};
|
|
447
|
-
/** @returns {
|
|
448
|
-
declare function
|
|
449
|
-
type
|
|
480
|
+
/** @returns {UserAttributeDefinition} */
|
|
481
|
+
declare function UserAttributeDefinition(): UserAttributeDefinition;
|
|
482
|
+
type UserAttributeDefinition = {
|
|
483
|
+
/**
|
|
484
|
+
* - The unique identifier for the attribute definition.
|
|
485
|
+
*/
|
|
486
|
+
_id?: string;
|
|
487
|
+
/**
|
|
488
|
+
* - The attribute name.
|
|
489
|
+
*/
|
|
490
|
+
name?: string;
|
|
491
|
+
/**
|
|
492
|
+
* - The attribute key.
|
|
493
|
+
*/
|
|
494
|
+
slug?: string;
|
|
495
|
+
/**
|
|
496
|
+
* - The description of the attribute.
|
|
497
|
+
*/
|
|
498
|
+
description?: string;
|
|
499
|
+
/**
|
|
500
|
+
* - The application ID.
|
|
501
|
+
*/
|
|
502
|
+
application_id?: string;
|
|
503
|
+
/**
|
|
504
|
+
* - The attribute type.
|
|
505
|
+
*/
|
|
506
|
+
type?: string;
|
|
507
|
+
/**
|
|
508
|
+
* - Whether the attribute supports multiple values.
|
|
509
|
+
*/
|
|
510
|
+
multi_value?: boolean;
|
|
511
|
+
/**
|
|
512
|
+
* - Whether the attribute is customer-editable.
|
|
513
|
+
*/
|
|
514
|
+
customer_editable?: boolean;
|
|
515
|
+
/**
|
|
516
|
+
* - Whether the attribute is encrypted.
|
|
517
|
+
*/
|
|
518
|
+
encrypted?: boolean;
|
|
519
|
+
/**
|
|
520
|
+
* - Whether the attribute is pinned.
|
|
521
|
+
*/
|
|
522
|
+
pinned?: boolean;
|
|
523
|
+
/**
|
|
524
|
+
* - The order in which the attribute is pinned.
|
|
525
|
+
*/
|
|
526
|
+
pin_order?: number;
|
|
527
|
+
validations?: any[];
|
|
528
|
+
/**
|
|
529
|
+
* - Whether the attribute is locked.
|
|
530
|
+
*/
|
|
531
|
+
is_locked?: boolean;
|
|
532
|
+
/**
|
|
533
|
+
* - The creation date of the attribute.
|
|
534
|
+
*/
|
|
535
|
+
created_at?: string;
|
|
536
|
+
/**
|
|
537
|
+
* - The modification date of the attribute.
|
|
538
|
+
*/
|
|
539
|
+
modified_at?: string;
|
|
540
|
+
/**
|
|
541
|
+
* - The version number of the attribute.
|
|
542
|
+
*/
|
|
543
|
+
__v?: number;
|
|
544
|
+
};
|
|
545
|
+
/** @returns {UserAttributeDefinitionResponse} */
|
|
546
|
+
declare function UserAttributeDefinitionResponse(): UserAttributeDefinitionResponse;
|
|
547
|
+
type UserAttributeDefinitionResponse = {
|
|
548
|
+
/**
|
|
549
|
+
* - The unique identifier for the attribute definition.
|
|
550
|
+
*/
|
|
551
|
+
_id?: string;
|
|
552
|
+
/**
|
|
553
|
+
* - The attribute name.
|
|
554
|
+
*/
|
|
555
|
+
name?: string;
|
|
556
|
+
/**
|
|
557
|
+
* - The attribute key.
|
|
558
|
+
*/
|
|
559
|
+
slug?: string;
|
|
560
|
+
/**
|
|
561
|
+
* - The description of the attribute.
|
|
562
|
+
*/
|
|
563
|
+
description?: string;
|
|
564
|
+
/**
|
|
565
|
+
* - The application ID.
|
|
566
|
+
*/
|
|
567
|
+
application_id?: string;
|
|
568
|
+
/**
|
|
569
|
+
* - The attribute type.
|
|
570
|
+
*/
|
|
571
|
+
type?: string;
|
|
572
|
+
/**
|
|
573
|
+
* - Whether the attribute supports multiple values.
|
|
574
|
+
*/
|
|
575
|
+
multi_value?: boolean;
|
|
576
|
+
/**
|
|
577
|
+
* - Whether the attribute is customer-editable.
|
|
578
|
+
*/
|
|
579
|
+
customer_editable?: boolean;
|
|
580
|
+
/**
|
|
581
|
+
* - Whether the attribute is encrypted.
|
|
582
|
+
*/
|
|
583
|
+
encrypted?: boolean;
|
|
584
|
+
/**
|
|
585
|
+
* - Whether the attribute is pinned.
|
|
586
|
+
*/
|
|
587
|
+
pinned?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* - The order in which the attribute is pinned.
|
|
590
|
+
*/
|
|
591
|
+
pin_order?: number;
|
|
592
|
+
validations?: UserAttributeDefinitionValidation[];
|
|
593
|
+
/**
|
|
594
|
+
* - Whether the attribute is locked.
|
|
595
|
+
*/
|
|
596
|
+
is_locked?: boolean;
|
|
597
|
+
/**
|
|
598
|
+
* - The user who created the attribute.
|
|
599
|
+
*/
|
|
600
|
+
created_by?: string;
|
|
601
|
+
/**
|
|
602
|
+
* - The user who last updated the attribute.
|
|
603
|
+
*/
|
|
604
|
+
updated_by?: string;
|
|
605
|
+
/**
|
|
606
|
+
* - The creation date of the attribute definition.
|
|
607
|
+
*/
|
|
608
|
+
created_at?: string;
|
|
609
|
+
/**
|
|
610
|
+
* - The last modification date of the
|
|
611
|
+
* attribute definition.
|
|
612
|
+
*/
|
|
613
|
+
modified_at?: string;
|
|
614
|
+
};
|
|
615
|
+
/** @returns {UserAttributeDefinitionValidation} */
|
|
616
|
+
declare function UserAttributeDefinitionValidation(): UserAttributeDefinitionValidation;
|
|
617
|
+
type UserAttributeDefinitionValidation = {
|
|
618
|
+
/**
|
|
619
|
+
* - The type of validation.
|
|
620
|
+
*/
|
|
621
|
+
type?: string;
|
|
622
|
+
/**
|
|
623
|
+
* - The validation value.
|
|
624
|
+
*/
|
|
625
|
+
value?: any;
|
|
626
|
+
};
|
|
627
|
+
/** @returns {UserAttributeResponse} */
|
|
628
|
+
declare function UserAttributeResponse(): UserAttributeResponse;
|
|
629
|
+
type UserAttributeResponse = {
|
|
630
|
+
/**
|
|
631
|
+
* - The unique identifier for the attribute definition.
|
|
632
|
+
*/
|
|
633
|
+
_id?: string;
|
|
634
|
+
/**
|
|
635
|
+
* - The name of user attribute definition.
|
|
636
|
+
*/
|
|
637
|
+
name?: string;
|
|
638
|
+
/**
|
|
639
|
+
* - The unique identifier for the user.
|
|
640
|
+
*/
|
|
450
641
|
user_id?: string;
|
|
642
|
+
/**
|
|
643
|
+
* - The application ID.
|
|
644
|
+
*/
|
|
645
|
+
application_id?: string;
|
|
646
|
+
/**
|
|
647
|
+
* - The attribute type.
|
|
648
|
+
*/
|
|
649
|
+
type?: string;
|
|
650
|
+
/**
|
|
651
|
+
* - Whether the attribute is customer-editable.
|
|
652
|
+
*/
|
|
653
|
+
customer_overriden?: boolean;
|
|
654
|
+
attribute?: any;
|
|
655
|
+
updated_by?: string;
|
|
451
656
|
};
|
|
452
|
-
/** @returns {
|
|
453
|
-
declare function
|
|
454
|
-
type
|
|
455
|
-
|
|
657
|
+
/** @returns {CreateUserAttributeRequest} */
|
|
658
|
+
declare function CreateUserAttributeRequest(): CreateUserAttributeRequest;
|
|
659
|
+
type CreateUserAttributeRequest = {
|
|
660
|
+
customer_overriden?: boolean;
|
|
661
|
+
attribute?: any;
|
|
456
662
|
};
|
|
457
|
-
/** @returns {
|
|
458
|
-
declare function
|
|
459
|
-
type
|
|
460
|
-
|
|
663
|
+
/** @returns {CreateUserAttributeDefinition} */
|
|
664
|
+
declare function CreateUserAttributeDefinition(): CreateUserAttributeDefinition;
|
|
665
|
+
type CreateUserAttributeDefinition = {
|
|
666
|
+
name?: string;
|
|
667
|
+
slug?: string;
|
|
668
|
+
description?: string;
|
|
669
|
+
type?: string;
|
|
670
|
+
multi_value?: boolean;
|
|
671
|
+
customer_editable?: boolean;
|
|
672
|
+
encrypted?: boolean;
|
|
673
|
+
pinned?: boolean;
|
|
674
|
+
pin_order?: number;
|
|
675
|
+
default_value?: string;
|
|
676
|
+
validations?: any[];
|
|
461
677
|
};
|
|
462
678
|
/** @returns {BlockUserRequestSchema} */
|
|
463
679
|
declare function BlockUserRequestSchema(): BlockUserRequestSchema;
|
|
464
680
|
type BlockUserRequestSchema = {
|
|
465
|
-
reason?: string;
|
|
466
681
|
status?: boolean;
|
|
467
682
|
user_id?: string[];
|
|
683
|
+
reason?: string;
|
|
684
|
+
};
|
|
685
|
+
/** @returns {ArchiveUserRequestSchema} */
|
|
686
|
+
declare function ArchiveUserRequestSchema(): ArchiveUserRequestSchema;
|
|
687
|
+
type ArchiveUserRequestSchema = {
|
|
688
|
+
user_id?: string;
|
|
689
|
+
};
|
|
690
|
+
/** @returns {UnDeleteUserRequestSchema} */
|
|
691
|
+
declare function UnDeleteUserRequestSchema(): UnDeleteUserRequestSchema;
|
|
692
|
+
type UnDeleteUserRequestSchema = {
|
|
693
|
+
user_id?: string;
|
|
694
|
+
reason?: string;
|
|
695
|
+
reason_id?: string;
|
|
468
696
|
};
|
|
469
697
|
/** @returns {BlockUserSuccess} */
|
|
470
698
|
declare function BlockUserSuccess(): BlockUserSuccess;
|
|
471
699
|
type BlockUserSuccess = {
|
|
472
700
|
success?: boolean;
|
|
473
701
|
};
|
|
702
|
+
/** @returns {ArchiveUserSuccess} */
|
|
703
|
+
declare function ArchiveUserSuccess(): ArchiveUserSuccess;
|
|
704
|
+
type ArchiveUserSuccess = {
|
|
705
|
+
success?: boolean;
|
|
706
|
+
};
|
|
707
|
+
/** @returns {UnDeleteUserSuccess} */
|
|
708
|
+
declare function UnDeleteUserSuccess(): UnDeleteUserSuccess;
|
|
709
|
+
type UnDeleteUserSuccess = {
|
|
710
|
+
success?: boolean;
|
|
711
|
+
};
|
|
712
|
+
/** @returns {UserSearchResponseSchema} */
|
|
713
|
+
declare function UserSearchResponseSchema(): UserSearchResponseSchema;
|
|
714
|
+
type UserSearchResponseSchema = {
|
|
715
|
+
users?: UserSearchSchema[];
|
|
716
|
+
};
|
|
717
|
+
/** @returns {CustomerListResponseSchema} */
|
|
718
|
+
declare function CustomerListResponseSchema(): CustomerListResponseSchema;
|
|
719
|
+
type CustomerListResponseSchema = {
|
|
720
|
+
items?: UserSchema[];
|
|
721
|
+
page?: PaginationSchema;
|
|
722
|
+
};
|
|
723
|
+
/** @returns {PaginationSchema} */
|
|
724
|
+
declare function PaginationSchema(): PaginationSchema;
|
|
725
|
+
type PaginationSchema = {
|
|
726
|
+
size?: number;
|
|
727
|
+
item_total?: number;
|
|
728
|
+
has_next?: boolean;
|
|
729
|
+
type?: string;
|
|
730
|
+
current?: number;
|
|
731
|
+
};
|
|
732
|
+
/** @returns {SessionListResponseSchema} */
|
|
733
|
+
declare function SessionListResponseSchema(): SessionListResponseSchema;
|
|
734
|
+
type SessionListResponseSchema = {
|
|
735
|
+
items?: SessionListResponseInfo[];
|
|
736
|
+
};
|
|
737
|
+
/** @returns {SessionDeleteResponseSchema} */
|
|
738
|
+
declare function SessionDeleteResponseSchema(): SessionDeleteResponseSchema;
|
|
739
|
+
type SessionDeleteResponseSchema = {
|
|
740
|
+
user_id?: string;
|
|
741
|
+
session_id?: string;
|
|
742
|
+
};
|
|
743
|
+
/** @returns {SessionsDeleteResponseSchema} */
|
|
744
|
+
declare function SessionsDeleteResponseSchema(): SessionsDeleteResponseSchema;
|
|
745
|
+
type SessionsDeleteResponseSchema = {
|
|
746
|
+
user_id?: string;
|
|
747
|
+
session_ids?: string[];
|
|
748
|
+
};
|
|
749
|
+
/** @returns {APIError} */
|
|
750
|
+
declare function APIError(): APIError;
|
|
751
|
+
type APIError = {
|
|
752
|
+
code?: string;
|
|
753
|
+
message?: string;
|
|
754
|
+
/**
|
|
755
|
+
* - Error code description link
|
|
756
|
+
*/
|
|
757
|
+
info?: string;
|
|
758
|
+
request_id?: string;
|
|
759
|
+
error?: string;
|
|
760
|
+
meta?: any;
|
|
761
|
+
authenticated?: boolean;
|
|
762
|
+
};
|
|
763
|
+
/** @returns {SessionListResponseInfo} */
|
|
764
|
+
declare function SessionListResponseInfo(): SessionListResponseInfo;
|
|
765
|
+
type SessionListResponseInfo = {
|
|
766
|
+
session_id?: string;
|
|
767
|
+
user_agent?: string;
|
|
768
|
+
ip?: string;
|
|
769
|
+
domain?: string;
|
|
770
|
+
expire_in?: string;
|
|
771
|
+
location?: string;
|
|
772
|
+
};
|
|
474
773
|
/** @returns {Conditions} */
|
|
475
774
|
declare function Conditions(): Conditions;
|
|
476
775
|
type Conditions = {
|
|
477
|
-
key?: string;
|
|
478
|
-
type?: string;
|
|
479
776
|
user_attribute_definition_id?: string;
|
|
777
|
+
type?: string;
|
|
480
778
|
value?: string;
|
|
779
|
+
key?: string;
|
|
780
|
+
};
|
|
781
|
+
/** @returns {UserResponseErrorSchema} */
|
|
782
|
+
declare function UserResponseErrorSchema(): UserResponseErrorSchema;
|
|
783
|
+
type UserResponseErrorSchema = {
|
|
784
|
+
count?: number;
|
|
785
|
+
file_url?: string;
|
|
786
|
+
};
|
|
787
|
+
/** @returns {UserGroupResponseSchema} */
|
|
788
|
+
declare function UserGroupResponseSchema(): UserGroupResponseSchema;
|
|
789
|
+
type UserGroupResponseSchema = {
|
|
790
|
+
conditions?: Conditions[];
|
|
791
|
+
error?: UserResponseErrorSchema;
|
|
792
|
+
name?: string;
|
|
793
|
+
description?: string;
|
|
794
|
+
file_url?: string;
|
|
795
|
+
_id?: string;
|
|
796
|
+
status?: string;
|
|
797
|
+
is_active?: boolean;
|
|
798
|
+
type?: string;
|
|
799
|
+
uid?: number;
|
|
800
|
+
application_id?: string;
|
|
801
|
+
created_at?: string;
|
|
802
|
+
modified_at?: string;
|
|
803
|
+
__v?: number;
|
|
804
|
+
};
|
|
805
|
+
/** @returns {UserGroupListResponseSchema} */
|
|
806
|
+
declare function UserGroupListResponseSchema(): UserGroupListResponseSchema;
|
|
807
|
+
type UserGroupListResponseSchema = {
|
|
808
|
+
items?: UserGroupResponseSchema[];
|
|
809
|
+
page?: PaginationSchema;
|
|
481
810
|
};
|
|
482
811
|
/** @returns {ConditionsSchema} */
|
|
483
812
|
declare function ConditionsSchema(): ConditionsSchema;
|
|
484
813
|
type ConditionsSchema = {
|
|
485
|
-
type?: string;
|
|
486
814
|
user_attribute_definition_id?: string;
|
|
487
|
-
value?: string;
|
|
488
|
-
};
|
|
489
|
-
/** @returns {CreateUserAttributeDefinition} */
|
|
490
|
-
declare function CreateUserAttributeDefinition(): CreateUserAttributeDefinition;
|
|
491
|
-
type CreateUserAttributeDefinition = {
|
|
492
|
-
customer_editable?: boolean;
|
|
493
|
-
default_value?: string;
|
|
494
|
-
description?: string;
|
|
495
|
-
encrypted?: boolean;
|
|
496
|
-
multi_value?: boolean;
|
|
497
|
-
name?: string;
|
|
498
|
-
pin_order?: number;
|
|
499
|
-
pinned?: boolean;
|
|
500
|
-
slug?: string;
|
|
501
815
|
type?: string;
|
|
502
|
-
|
|
503
|
-
};
|
|
504
|
-
/** @returns {CreateUserAttributeRequest} */
|
|
505
|
-
declare function CreateUserAttributeRequest(): CreateUserAttributeRequest;
|
|
506
|
-
type CreateUserAttributeRequest = {
|
|
507
|
-
attribute?: any;
|
|
508
|
-
customer_overriden?: boolean;
|
|
816
|
+
value?: string;
|
|
509
817
|
};
|
|
510
818
|
/** @returns {CreateUserGroup} */
|
|
511
819
|
declare function CreateUserGroup(): CreateUserGroup;
|
|
512
820
|
type CreateUserGroup = {
|
|
513
821
|
conditions?: ConditionsSchema[];
|
|
822
|
+
type?: string;
|
|
823
|
+
name: string;
|
|
514
824
|
description: string;
|
|
515
825
|
file_url?: string;
|
|
516
|
-
name: string;
|
|
517
|
-
type?: string;
|
|
518
826
|
};
|
|
519
827
|
/** @returns {CreateUserRequestSchema} */
|
|
520
828
|
declare function CreateUserRequestSchema(): CreateUserRequestSchema;
|
|
521
829
|
type CreateUserRequestSchema = {
|
|
830
|
+
phone_number: string;
|
|
522
831
|
email?: string;
|
|
523
|
-
external_id?: string;
|
|
524
832
|
first_name?: string;
|
|
525
|
-
gender?: string;
|
|
526
833
|
last_name?: string;
|
|
527
|
-
|
|
528
|
-
phone_number: string;
|
|
834
|
+
gender?: string;
|
|
529
835
|
username: string;
|
|
836
|
+
meta?: any;
|
|
837
|
+
external_id?: string;
|
|
530
838
|
};
|
|
531
839
|
/** @returns {CreateUserResponseSchema} */
|
|
532
840
|
declare function CreateUserResponseSchema(): CreateUserResponseSchema;
|
|
@@ -543,113 +851,72 @@ type CreateUserSessionRequestSchema = {
|
|
|
543
851
|
/** @returns {CreateUserSessionResponseSchema} */
|
|
544
852
|
declare function CreateUserSessionResponseSchema(): CreateUserSessionResponseSchema;
|
|
545
853
|
type CreateUserSessionResponseSchema = {
|
|
546
|
-
cookie?: any;
|
|
547
854
|
domain?: string;
|
|
548
|
-
http_only?: boolean;
|
|
549
855
|
max_age?: number;
|
|
550
856
|
secure?: boolean;
|
|
857
|
+
http_only?: boolean;
|
|
858
|
+
cookie?: any;
|
|
551
859
|
};
|
|
552
|
-
/** @returns {
|
|
553
|
-
declare function
|
|
554
|
-
type
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
/** @returns {DeleteAccountConsent} */
|
|
559
|
-
declare function DeleteAccountConsent(): DeleteAccountConsent;
|
|
560
|
-
type DeleteAccountConsent = {
|
|
561
|
-
consent_text?: string;
|
|
562
|
-
};
|
|
563
|
-
/** @returns {DeleteAccountReasons} */
|
|
564
|
-
declare function DeleteAccountReasons(): DeleteAccountReasons;
|
|
565
|
-
type DeleteAccountReasons = {
|
|
566
|
-
reason_id?: string;
|
|
567
|
-
reason_text?: string;
|
|
568
|
-
show_text_area?: boolean;
|
|
569
|
-
};
|
|
570
|
-
/** @returns {Email} */
|
|
571
|
-
declare function Email(): Email;
|
|
572
|
-
type Email = {
|
|
860
|
+
/** @returns {PlatformSchema} */
|
|
861
|
+
declare function PlatformSchema(): PlatformSchema;
|
|
862
|
+
type PlatformSchema = {
|
|
863
|
+
display?: string;
|
|
864
|
+
look_and_feel?: LookAndFeel;
|
|
865
|
+
updated_at?: string;
|
|
573
866
|
active?: boolean;
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
declare function Login(): Login;
|
|
597
|
-
type Login = {
|
|
598
|
-
otp?: boolean;
|
|
599
|
-
password?: boolean;
|
|
867
|
+
forgot_password?: boolean;
|
|
868
|
+
login?: Login;
|
|
869
|
+
skip_captcha?: boolean;
|
|
870
|
+
name?: string;
|
|
871
|
+
meta?: MetaSchema;
|
|
872
|
+
_id?: string;
|
|
873
|
+
social?: Social;
|
|
874
|
+
required_fields?: RequiredFields;
|
|
875
|
+
register_required_fields?: RegisterRequiredFields;
|
|
876
|
+
skip_login?: boolean;
|
|
877
|
+
flash_card?: FlashCard;
|
|
878
|
+
subtext?: string;
|
|
879
|
+
social_tokens?: SocialTokens;
|
|
880
|
+
created_at?: string;
|
|
881
|
+
register?: boolean;
|
|
882
|
+
mobile_image?: string;
|
|
883
|
+
desktop_image?: string;
|
|
884
|
+
delete_account_day?: number;
|
|
885
|
+
delete_account_reasons?: DeleteAccountReasons[];
|
|
886
|
+
delete_account_consent?: DeleteAccountConsent;
|
|
887
|
+
session_config?: SessionExpiry;
|
|
888
|
+
__v?: number;
|
|
600
889
|
};
|
|
601
890
|
/** @returns {LookAndFeel} */
|
|
602
891
|
declare function LookAndFeel(): LookAndFeel;
|
|
603
892
|
type LookAndFeel = {
|
|
604
|
-
background_color?: string;
|
|
605
893
|
card_position?: string;
|
|
894
|
+
background_color?: string;
|
|
895
|
+
};
|
|
896
|
+
/** @returns {Login} */
|
|
897
|
+
declare function Login(): Login;
|
|
898
|
+
type Login = {
|
|
899
|
+
password?: boolean;
|
|
900
|
+
otp?: boolean;
|
|
606
901
|
};
|
|
607
902
|
/** @returns {MetaSchema} */
|
|
608
903
|
declare function MetaSchema(): MetaSchema;
|
|
609
904
|
type MetaSchema = {
|
|
610
905
|
fynd_default?: boolean;
|
|
611
906
|
};
|
|
612
|
-
/** @returns {
|
|
613
|
-
declare function
|
|
614
|
-
type
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
type?: string;
|
|
620
|
-
};
|
|
621
|
-
/** @returns {PartialUserGroupUpdateSchema} */
|
|
622
|
-
declare function PartialUserGroupUpdateSchema(): PartialUserGroupUpdateSchema;
|
|
623
|
-
type PartialUserGroupUpdateSchema = {
|
|
624
|
-
description?: string;
|
|
625
|
-
/**
|
|
626
|
-
* - Required property when passed type file_url.
|
|
627
|
-
* Internet reachable csv file url which will be used to fetch download data.
|
|
628
|
-
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
629
|
-
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
630
|
-
*/
|
|
631
|
-
file_url?: string;
|
|
632
|
-
name?: string;
|
|
633
|
-
/**
|
|
634
|
-
* - Source of update to be used to update individual
|
|
635
|
-
* users. Default value is considered file_url if not passed.
|
|
636
|
-
*/
|
|
637
|
-
type?: string;
|
|
638
|
-
/**
|
|
639
|
-
* - Required property when passed
|
|
640
|
-
* type json. Array of user data. Must have `action` field and one of
|
|
641
|
-
* `phone_number`, `email` or `user_id` field in object
|
|
642
|
-
*/
|
|
643
|
-
user_data?: UserGroupUpdateData[];
|
|
907
|
+
/** @returns {Social} */
|
|
908
|
+
declare function Social(): Social;
|
|
909
|
+
type Social = {
|
|
910
|
+
account_kit?: boolean;
|
|
911
|
+
facebook?: boolean;
|
|
912
|
+
google?: boolean;
|
|
913
|
+
apple?: boolean;
|
|
644
914
|
};
|
|
645
|
-
/** @returns {
|
|
646
|
-
declare function
|
|
647
|
-
type
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
phone?: string;
|
|
651
|
-
primary?: boolean;
|
|
652
|
-
verified?: boolean;
|
|
915
|
+
/** @returns {RequiredFields} */
|
|
916
|
+
declare function RequiredFields(): RequiredFields;
|
|
917
|
+
type RequiredFields = {
|
|
918
|
+
email?: PlatformEmail;
|
|
919
|
+
mobile?: PlatformMobile;
|
|
653
920
|
};
|
|
654
921
|
/** @returns {PlatformEmail} */
|
|
655
922
|
declare function PlatformEmail(): PlatformEmail;
|
|
@@ -663,35 +930,6 @@ type PlatformMobile = {
|
|
|
663
930
|
is_required?: boolean;
|
|
664
931
|
level?: string;
|
|
665
932
|
};
|
|
666
|
-
/** @returns {PlatformSchema} */
|
|
667
|
-
declare function PlatformSchema(): PlatformSchema;
|
|
668
|
-
type PlatformSchema = {
|
|
669
|
-
_id?: string;
|
|
670
|
-
active?: boolean;
|
|
671
|
-
created_at?: string;
|
|
672
|
-
delete_account_consent?: any;
|
|
673
|
-
delete_account_day?: number;
|
|
674
|
-
delete_account_reasons?: DeleteAccountReasons[];
|
|
675
|
-
desktop_image?: string;
|
|
676
|
-
display?: string;
|
|
677
|
-
flash_card?: FlashCard;
|
|
678
|
-
forgot_password?: boolean;
|
|
679
|
-
login?: Login;
|
|
680
|
-
look_and_feel?: LookAndFeel;
|
|
681
|
-
meta?: MetaSchema;
|
|
682
|
-
mobile_image?: string;
|
|
683
|
-
name?: string;
|
|
684
|
-
register?: boolean;
|
|
685
|
-
register_required_fields?: RegisterRequiredFields;
|
|
686
|
-
required_fields?: RequiredFields;
|
|
687
|
-
session_config?: any;
|
|
688
|
-
skip_captcha?: boolean;
|
|
689
|
-
skip_login?: boolean;
|
|
690
|
-
social?: Social;
|
|
691
|
-
social_tokens?: SocialTokens;
|
|
692
|
-
subtext?: string;
|
|
693
|
-
updated_at?: string;
|
|
694
|
-
};
|
|
695
933
|
/** @returns {RegisterRequiredFields} */
|
|
696
934
|
declare function RegisterRequiredFields(): RegisterRequiredFields;
|
|
697
935
|
type RegisterRequiredFields = {
|
|
@@ -710,361 +948,193 @@ type RegisterRequiredFieldsMobile = {
|
|
|
710
948
|
is_required?: boolean;
|
|
711
949
|
level?: string;
|
|
712
950
|
};
|
|
713
|
-
/** @returns {
|
|
714
|
-
declare function
|
|
715
|
-
type
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
/** @returns {SessionDeleteResponseSchema} */
|
|
720
|
-
declare function SessionDeleteResponseSchema(): SessionDeleteResponseSchema;
|
|
721
|
-
type SessionDeleteResponseSchema = {
|
|
722
|
-
session_id?: string;
|
|
723
|
-
user_id?: string;
|
|
724
|
-
};
|
|
725
|
-
/** @returns {SessionExpiry} */
|
|
726
|
-
declare function SessionExpiry(): SessionExpiry;
|
|
727
|
-
type SessionExpiry = {
|
|
728
|
-
duration?: number;
|
|
729
|
-
is_rolling?: boolean;
|
|
730
|
-
type?: string;
|
|
731
|
-
};
|
|
732
|
-
/** @returns {SessionListResponseInfo} */
|
|
733
|
-
declare function SessionListResponseInfo(): SessionListResponseInfo;
|
|
734
|
-
type SessionListResponseInfo = {
|
|
735
|
-
domain?: string;
|
|
736
|
-
expire_in?: string;
|
|
737
|
-
ip?: string;
|
|
738
|
-
session_id?: string;
|
|
739
|
-
user_agent?: string;
|
|
740
|
-
};
|
|
741
|
-
/** @returns {SessionListResponseSchema} */
|
|
742
|
-
declare function SessionListResponseSchema(): SessionListResponseSchema;
|
|
743
|
-
type SessionListResponseSchema = {
|
|
744
|
-
items?: SessionListResponseInfo[];
|
|
745
|
-
};
|
|
746
|
-
/** @returns {SessionsDeleteResponseSchema} */
|
|
747
|
-
declare function SessionsDeleteResponseSchema(): SessionsDeleteResponseSchema;
|
|
748
|
-
type SessionsDeleteResponseSchema = {
|
|
749
|
-
session_ids?: string[];
|
|
750
|
-
user_id?: string;
|
|
751
|
-
};
|
|
752
|
-
/** @returns {Social} */
|
|
753
|
-
declare function Social(): Social;
|
|
754
|
-
type Social = {
|
|
755
|
-
account_kit?: boolean;
|
|
756
|
-
apple?: boolean;
|
|
757
|
-
facebook?: boolean;
|
|
758
|
-
google?: boolean;
|
|
951
|
+
/** @returns {FlashCard} */
|
|
952
|
+
declare function FlashCard(): FlashCard;
|
|
953
|
+
type FlashCard = {
|
|
954
|
+
text?: string;
|
|
955
|
+
text_color?: string;
|
|
956
|
+
background_color?: string;
|
|
759
957
|
};
|
|
760
958
|
/** @returns {SocialTokens} */
|
|
761
959
|
declare function SocialTokens(): SocialTokens;
|
|
762
960
|
type SocialTokens = {
|
|
763
|
-
account_kit?: Accountkit;
|
|
764
961
|
facebook?: Facebook;
|
|
962
|
+
accountkit?: Accountkit;
|
|
765
963
|
google?: Google;
|
|
766
964
|
};
|
|
767
|
-
/** @returns {
|
|
768
|
-
declare function
|
|
769
|
-
type
|
|
770
|
-
|
|
771
|
-
};
|
|
772
|
-
/** @returns {UnDeleteUserRequestSchema} */
|
|
773
|
-
declare function UnDeleteUserRequestSchema(): UnDeleteUserRequestSchema;
|
|
774
|
-
type UnDeleteUserRequestSchema = {
|
|
775
|
-
reason?: string;
|
|
965
|
+
/** @returns {DeleteAccountReasons} */
|
|
966
|
+
declare function DeleteAccountReasons(): DeleteAccountReasons;
|
|
967
|
+
type DeleteAccountReasons = {
|
|
968
|
+
reason_text?: string;
|
|
776
969
|
reason_id?: string;
|
|
777
|
-
|
|
970
|
+
show_text_area?: boolean;
|
|
778
971
|
};
|
|
779
|
-
/** @returns {
|
|
780
|
-
declare function
|
|
781
|
-
type
|
|
782
|
-
|
|
972
|
+
/** @returns {DeleteAccountConsent} */
|
|
973
|
+
declare function DeleteAccountConsent(): DeleteAccountConsent;
|
|
974
|
+
type DeleteAccountConsent = {
|
|
975
|
+
consent_text?: string;
|
|
783
976
|
};
|
|
784
|
-
/** @returns {
|
|
785
|
-
declare function
|
|
786
|
-
type
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
file_url?: string;
|
|
790
|
-
name?: string;
|
|
791
|
-
type?: string;
|
|
977
|
+
/** @returns {Facebook} */
|
|
978
|
+
declare function Facebook(): Facebook;
|
|
979
|
+
type Facebook = {
|
|
980
|
+
app_id?: string;
|
|
981
|
+
app_secret?: string;
|
|
792
982
|
};
|
|
793
|
-
/** @returns {
|
|
794
|
-
declare function
|
|
795
|
-
type
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
first_name?: string;
|
|
799
|
-
gender?: string;
|
|
800
|
-
last_name?: string;
|
|
801
|
-
meta?: any;
|
|
802
|
-
phone_numbers?: UserPhoneNumbers[];
|
|
983
|
+
/** @returns {Accountkit} */
|
|
984
|
+
declare function Accountkit(): Accountkit;
|
|
985
|
+
type Accountkit = {
|
|
986
|
+
app_id?: string;
|
|
987
|
+
app_secret?: string;
|
|
803
988
|
};
|
|
804
|
-
/** @returns {
|
|
805
|
-
declare function
|
|
806
|
-
type
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
*/
|
|
810
|
-
__v?: number;
|
|
811
|
-
/**
|
|
812
|
-
* - The unique identifier for the attribute definition.
|
|
813
|
-
*/
|
|
814
|
-
_id?: string;
|
|
815
|
-
/**
|
|
816
|
-
* - The application ID.
|
|
817
|
-
*/
|
|
818
|
-
application_id?: string;
|
|
819
|
-
/**
|
|
820
|
-
* - The creation date of the attribute.
|
|
821
|
-
*/
|
|
822
|
-
created_at?: string;
|
|
823
|
-
/**
|
|
824
|
-
* - Whether the attribute is customer-editable.
|
|
825
|
-
*/
|
|
826
|
-
customer_editable?: boolean;
|
|
827
|
-
/**
|
|
828
|
-
* - The description of the attribute.
|
|
829
|
-
*/
|
|
830
|
-
description?: string;
|
|
831
|
-
/**
|
|
832
|
-
* - Whether the attribute is encrypted.
|
|
833
|
-
*/
|
|
834
|
-
encrypted?: boolean;
|
|
835
|
-
/**
|
|
836
|
-
* - Whether the attribute is locked.
|
|
837
|
-
*/
|
|
838
|
-
is_locked?: boolean;
|
|
839
|
-
/**
|
|
840
|
-
* - The modification date of the attribute.
|
|
841
|
-
*/
|
|
842
|
-
modified_at?: string;
|
|
843
|
-
/**
|
|
844
|
-
* - Whether the attribute supports multiple values.
|
|
845
|
-
*/
|
|
846
|
-
multi_value?: boolean;
|
|
847
|
-
/**
|
|
848
|
-
* - The attribute name.
|
|
849
|
-
*/
|
|
850
|
-
name?: string;
|
|
851
|
-
/**
|
|
852
|
-
* - The order in which the attribute is pinned.
|
|
853
|
-
*/
|
|
854
|
-
pin_order?: number;
|
|
855
|
-
/**
|
|
856
|
-
* - Whether the attribute is pinned.
|
|
857
|
-
*/
|
|
858
|
-
pinned?: boolean;
|
|
859
|
-
/**
|
|
860
|
-
* - The attribute key.
|
|
861
|
-
*/
|
|
862
|
-
slug?: string;
|
|
863
|
-
/**
|
|
864
|
-
* - The attribute type.
|
|
865
|
-
*/
|
|
866
|
-
type?: string;
|
|
867
|
-
validations?: any[];
|
|
989
|
+
/** @returns {Google} */
|
|
990
|
+
declare function Google(): Google;
|
|
991
|
+
type Google = {
|
|
992
|
+
app_id?: string;
|
|
993
|
+
app_secret?: string;
|
|
868
994
|
};
|
|
869
|
-
/** @returns {
|
|
870
|
-
declare function
|
|
871
|
-
type
|
|
872
|
-
|
|
873
|
-
* - The unique identifier for the attribute definition.
|
|
874
|
-
*/
|
|
875
|
-
_id?: string;
|
|
876
|
-
/**
|
|
877
|
-
* - The application ID.
|
|
878
|
-
*/
|
|
879
|
-
application_id?: string;
|
|
880
|
-
/**
|
|
881
|
-
* - The creation date of the attribute definition.
|
|
882
|
-
*/
|
|
883
|
-
created_at?: string;
|
|
884
|
-
/**
|
|
885
|
-
* - The user who created the attribute.
|
|
886
|
-
*/
|
|
887
|
-
created_by?: string;
|
|
888
|
-
/**
|
|
889
|
-
* - Whether the attribute is customer-editable.
|
|
890
|
-
*/
|
|
891
|
-
customer_editable?: boolean;
|
|
892
|
-
/**
|
|
893
|
-
* - The description of the attribute.
|
|
894
|
-
*/
|
|
895
|
-
description?: string;
|
|
896
|
-
/**
|
|
897
|
-
* - Whether the attribute is encrypted.
|
|
898
|
-
*/
|
|
899
|
-
encrypted?: boolean;
|
|
900
|
-
/**
|
|
901
|
-
* - Whether the attribute is locked.
|
|
902
|
-
*/
|
|
903
|
-
is_locked?: boolean;
|
|
904
|
-
/**
|
|
905
|
-
* - The last modification date of the
|
|
906
|
-
* attribute definition.
|
|
907
|
-
*/
|
|
908
|
-
modified_at?: string;
|
|
909
|
-
/**
|
|
910
|
-
* - Whether the attribute supports multiple values.
|
|
911
|
-
*/
|
|
912
|
-
multi_value?: boolean;
|
|
913
|
-
/**
|
|
914
|
-
* - The attribute name.
|
|
915
|
-
*/
|
|
916
|
-
name?: string;
|
|
917
|
-
/**
|
|
918
|
-
* - The order in which the attribute is pinned.
|
|
919
|
-
*/
|
|
920
|
-
pin_order?: number;
|
|
921
|
-
/**
|
|
922
|
-
* - Whether the attribute is pinned.
|
|
923
|
-
*/
|
|
924
|
-
pinned?: boolean;
|
|
925
|
-
/**
|
|
926
|
-
* - The attribute key.
|
|
927
|
-
*/
|
|
928
|
-
slug?: string;
|
|
929
|
-
/**
|
|
930
|
-
* - The attribute type.
|
|
931
|
-
*/
|
|
995
|
+
/** @returns {SessionExpiry} */
|
|
996
|
+
declare function SessionExpiry(): SessionExpiry;
|
|
997
|
+
type SessionExpiry = {
|
|
998
|
+
duration?: number;
|
|
932
999
|
type?: string;
|
|
933
|
-
|
|
934
|
-
* - The user who last updated the attribute.
|
|
935
|
-
*/
|
|
936
|
-
updated_by?: string;
|
|
937
|
-
validations?: UserAttributeDefinitionValidation[];
|
|
1000
|
+
is_rolling?: boolean;
|
|
938
1001
|
};
|
|
939
|
-
/** @returns {
|
|
940
|
-
declare function
|
|
941
|
-
type
|
|
942
|
-
|
|
943
|
-
* - The type of validation.
|
|
944
|
-
*/
|
|
1002
|
+
/** @returns {UpdateUserGroupSchema} */
|
|
1003
|
+
declare function UpdateUserGroupSchema(): UpdateUserGroupSchema;
|
|
1004
|
+
type UpdateUserGroupSchema = {
|
|
1005
|
+
conditions?: ConditionsSchema[];
|
|
945
1006
|
type?: string;
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
value?: any;
|
|
1007
|
+
name?: string;
|
|
1008
|
+
description?: string;
|
|
1009
|
+
file_url?: string;
|
|
950
1010
|
};
|
|
951
|
-
/** @returns {
|
|
952
|
-
declare function
|
|
953
|
-
type
|
|
1011
|
+
/** @returns {PartialUserGroupUpdateSchema} */
|
|
1012
|
+
declare function PartialUserGroupUpdateSchema(): PartialUserGroupUpdateSchema;
|
|
1013
|
+
type PartialUserGroupUpdateSchema = {
|
|
954
1014
|
/**
|
|
955
|
-
* -
|
|
1015
|
+
* - Source of update to be used to update individual
|
|
1016
|
+
* users. Default value is considered file_url if not passed.
|
|
956
1017
|
*/
|
|
957
|
-
|
|
1018
|
+
type?: string;
|
|
1019
|
+
name?: string;
|
|
1020
|
+
description?: string;
|
|
958
1021
|
/**
|
|
959
|
-
* -
|
|
1022
|
+
* - Required property when passed type file_url.
|
|
1023
|
+
* Internet reachable csv file url which will be used to fetch download data.
|
|
1024
|
+
* It must have one of columns from `phone_number``, `email`, `user_id` and
|
|
1025
|
+
* must have `action` column. `action` column can have `add` or `remove` value.
|
|
960
1026
|
*/
|
|
961
|
-
|
|
962
|
-
attribute?: any;
|
|
1027
|
+
file_url?: string;
|
|
963
1028
|
/**
|
|
964
|
-
* -
|
|
1029
|
+
* - Required property when passed
|
|
1030
|
+
* type json. Array of user data. Must have `action` field and one of
|
|
1031
|
+
* `phone_number`, `email` or `user_id` field in object
|
|
965
1032
|
*/
|
|
966
|
-
|
|
1033
|
+
user_data?: UserGroupUpdateData[];
|
|
1034
|
+
};
|
|
1035
|
+
/** @returns {UserGroupUpdateData} */
|
|
1036
|
+
declare function UserGroupUpdateData(): UserGroupUpdateData;
|
|
1037
|
+
type UserGroupUpdateData = {
|
|
967
1038
|
/**
|
|
968
|
-
* -
|
|
1039
|
+
* - Must be valid mongodb objectid of existing user
|
|
969
1040
|
*/
|
|
970
|
-
|
|
1041
|
+
user_id?: string;
|
|
971
1042
|
/**
|
|
972
|
-
* -
|
|
1043
|
+
* - Phone number of registered user
|
|
973
1044
|
*/
|
|
974
|
-
|
|
975
|
-
updated_by?: string;
|
|
1045
|
+
phone_number?: string;
|
|
976
1046
|
/**
|
|
977
|
-
* -
|
|
1047
|
+
* - Email of registered user
|
|
978
1048
|
*/
|
|
979
|
-
|
|
1049
|
+
email?: string;
|
|
1050
|
+
action: string;
|
|
1051
|
+
};
|
|
1052
|
+
/** @returns {UpdateUserRequestSchema} */
|
|
1053
|
+
declare function UpdateUserRequestSchema(): UpdateUserRequestSchema;
|
|
1054
|
+
type UpdateUserRequestSchema = {
|
|
1055
|
+
first_name?: string;
|
|
1056
|
+
last_name?: string;
|
|
1057
|
+
gender?: string;
|
|
1058
|
+
external_id?: string;
|
|
1059
|
+
meta?: any;
|
|
1060
|
+
phone_numbers?: UserPhoneNumbers[];
|
|
1061
|
+
emails?: UserEmails[];
|
|
980
1062
|
};
|
|
981
1063
|
/** @returns {UserEmails} */
|
|
982
1064
|
declare function UserEmails(): UserEmails;
|
|
983
1065
|
type UserEmails = {
|
|
984
1066
|
active?: boolean;
|
|
985
|
-
email?: string;
|
|
986
1067
|
primary?: boolean;
|
|
987
1068
|
verified?: boolean;
|
|
988
|
-
};
|
|
989
|
-
/** @returns {UserGroupListResponseSchema} */
|
|
990
|
-
declare function UserGroupListResponseSchema(): UserGroupListResponseSchema;
|
|
991
|
-
type UserGroupListResponseSchema = {
|
|
992
|
-
items?: UserGroupResponseSchema[];
|
|
993
|
-
page?: PaginationSchema;
|
|
994
|
-
};
|
|
995
|
-
/** @returns {UserGroupResponseSchema} */
|
|
996
|
-
declare function UserGroupResponseSchema(): UserGroupResponseSchema;
|
|
997
|
-
type UserGroupResponseSchema = {
|
|
998
|
-
__v?: number;
|
|
999
|
-
_id?: string;
|
|
1000
|
-
application_id?: string;
|
|
1001
|
-
conditions?: Conditions[];
|
|
1002
|
-
created_at?: string;
|
|
1003
|
-
description?: string;
|
|
1004
|
-
error?: UserResponseErrorSchema;
|
|
1005
|
-
file_url?: string;
|
|
1006
|
-
is_active?: boolean;
|
|
1007
|
-
modified_at?: string;
|
|
1008
|
-
name?: string;
|
|
1009
|
-
status?: string;
|
|
1010
|
-
type?: string;
|
|
1011
|
-
uid?: number;
|
|
1012
|
-
};
|
|
1013
|
-
/** @returns {UserGroupUpdateData} */
|
|
1014
|
-
declare function UserGroupUpdateData(): UserGroupUpdateData;
|
|
1015
|
-
type UserGroupUpdateData = {
|
|
1016
|
-
action: string;
|
|
1017
|
-
/**
|
|
1018
|
-
* - Email of registered user
|
|
1019
|
-
*/
|
|
1020
1069
|
email?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* - Phone number of registered user
|
|
1023
|
-
*/
|
|
1024
|
-
phone_number?: string;
|
|
1025
|
-
/**
|
|
1026
|
-
* - Must be valid mongodb objectid of existing user
|
|
1027
|
-
*/
|
|
1028
|
-
user_id?: string;
|
|
1029
1070
|
};
|
|
1030
1071
|
/** @returns {UserPhoneNumbers} */
|
|
1031
1072
|
declare function UserPhoneNumbers(): UserPhoneNumbers;
|
|
1032
1073
|
type UserPhoneNumbers = {
|
|
1033
1074
|
active?: boolean;
|
|
1034
|
-
country_code?: string;
|
|
1035
|
-
phone?: string;
|
|
1036
1075
|
primary?: boolean;
|
|
1037
1076
|
verified?: boolean;
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
declare function UserResponseErrorSchema(): UserResponseErrorSchema;
|
|
1041
|
-
type UserResponseErrorSchema = {
|
|
1042
|
-
count?: number;
|
|
1043
|
-
file_url?: string;
|
|
1077
|
+
phone?: string;
|
|
1078
|
+
country_code?: string;
|
|
1044
1079
|
};
|
|
1045
1080
|
/** @returns {UserSchema} */
|
|
1046
1081
|
declare function UserSchema(): UserSchema;
|
|
1047
1082
|
type UserSchema = {
|
|
1048
|
-
_id?: string;
|
|
1049
|
-
account_type?: string;
|
|
1050
|
-
active?: boolean;
|
|
1051
1083
|
application_id?: string;
|
|
1052
|
-
|
|
1053
|
-
dob?: string;
|
|
1054
|
-
emails?: Email[];
|
|
1055
|
-
external_id?: string;
|
|
1084
|
+
user_id?: string;
|
|
1056
1085
|
first_name?: string;
|
|
1057
|
-
gender?: string;
|
|
1058
|
-
last_name?: string;
|
|
1059
1086
|
meta?: any;
|
|
1087
|
+
last_name?: string;
|
|
1060
1088
|
phone_numbers?: PhoneNumber[];
|
|
1089
|
+
emails?: Email[];
|
|
1090
|
+
gender?: string;
|
|
1091
|
+
dob?: string;
|
|
1092
|
+
active?: boolean;
|
|
1061
1093
|
profile_pic_url?: string;
|
|
1094
|
+
username?: string;
|
|
1095
|
+
account_type?: string;
|
|
1096
|
+
_id?: string;
|
|
1097
|
+
created_at?: string;
|
|
1062
1098
|
updated_at?: string;
|
|
1099
|
+
external_id?: string;
|
|
1100
|
+
};
|
|
1101
|
+
/** @returns {UserSearchSchema} */
|
|
1102
|
+
declare function UserSearchSchema(): UserSearchSchema;
|
|
1103
|
+
type UserSearchSchema = {
|
|
1104
|
+
application_id?: string;
|
|
1063
1105
|
user_id?: string;
|
|
1106
|
+
first_name?: string;
|
|
1107
|
+
meta?: any;
|
|
1108
|
+
last_name?: string;
|
|
1109
|
+
phone_numbers?: PhoneNumber[];
|
|
1110
|
+
emails?: Email[];
|
|
1111
|
+
gender?: string;
|
|
1112
|
+
dob?: string;
|
|
1113
|
+
active?: boolean;
|
|
1114
|
+
profile_pic_url?: string;
|
|
1064
1115
|
username?: string;
|
|
1116
|
+
account_type?: string;
|
|
1117
|
+
_id?: string;
|
|
1118
|
+
created_at?: string;
|
|
1119
|
+
updated_at?: string;
|
|
1120
|
+
external_id?: string;
|
|
1121
|
+
archive?: boolean;
|
|
1122
|
+
status?: string;
|
|
1065
1123
|
};
|
|
1066
|
-
/** @returns {
|
|
1067
|
-
declare function
|
|
1068
|
-
type
|
|
1069
|
-
|
|
1124
|
+
/** @returns {PhoneNumber} */
|
|
1125
|
+
declare function PhoneNumber(): PhoneNumber;
|
|
1126
|
+
type PhoneNumber = {
|
|
1127
|
+
active?: boolean;
|
|
1128
|
+
primary?: boolean;
|
|
1129
|
+
verified?: boolean;
|
|
1130
|
+
phone?: string;
|
|
1131
|
+
country_code?: number;
|
|
1132
|
+
};
|
|
1133
|
+
/** @returns {Email} */
|
|
1134
|
+
declare function Email(): Email;
|
|
1135
|
+
type Email = {
|
|
1136
|
+
primary?: boolean;
|
|
1137
|
+
verified?: boolean;
|
|
1138
|
+
email?: string;
|
|
1139
|
+
active?: boolean;
|
|
1070
1140
|
};
|