oneentry 1.0.126 → 1.0.127
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 +0 -2
- package/configure.js +25 -18
- package/dist/admins/adminsApi.d.ts +30 -25
- package/dist/admins/adminsApi.js +30 -25
- package/dist/admins/adminsInterfaces.d.ts +45 -54
- package/dist/attribute-sets/attributeSetsApi.d.ts +26 -27
- package/dist/attribute-sets/attributeSetsApi.js +26 -27
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +101 -109
- package/dist/auth-provider/authProviderApi.d.ts +132 -158
- package/dist/auth-provider/authProviderApi.js +131 -157
- package/dist/auth-provider/authProvidersInterfaces.d.ts +241 -237
- package/dist/base/asyncModules.d.ts +23 -21
- package/dist/base/asyncModules.js +30 -25
- package/dist/base/result.d.ts +31 -0
- package/dist/base/result.js +32 -1
- package/dist/base/stateModule.d.ts +10 -0
- package/dist/base/stateModule.js +50 -2
- package/dist/base/syncModules.d.ts +41 -49
- package/dist/base/syncModules.js +49 -48
- package/dist/base/utils.d.ts +38 -7
- package/dist/blocks/blocksApi.d.ts +27 -36
- package/dist/blocks/blocksApi.js +27 -36
- package/dist/blocks/blocksInterfaces.d.ts +92 -97
- package/dist/config.d.ts +13 -0
- package/dist/config.js +30 -0
- package/dist/events/eventsApi.d.ts +16 -33
- package/dist/events/eventsApi.js +32 -46
- package/dist/events/eventsInterfaces.d.ts +42 -37
- package/dist/file-uploading/fileUploadingApi.d.ts +42 -47
- package/dist/file-uploading/fileUploadingApi.js +44 -47
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +49 -60
- package/dist/forms/formsApi.d.ts +15 -14
- package/dist/forms/formsApi.js +15 -14
- package/dist/forms/formsInterfaces.d.ts +36 -40
- package/dist/forms-data/formsDataApi.d.ts +40 -44
- package/dist/forms-data/formsDataApi.js +42 -44
- package/dist/forms-data/formsDataInterfaces.d.ts +231 -231
- package/dist/general-types/generalTypesApi.d.ts +5 -5
- package/dist/general-types/generalTypesApi.js +5 -5
- package/dist/general-types/generalTypesInterfaces.d.ts +6 -9
- package/dist/index.d.ts +12 -13
- package/dist/index.js +12 -13
- package/dist/integration-collections/integrationCollectionsApi.d.ts +84 -98
- package/dist/integration-collections/integrationCollectionsApi.js +86 -102
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +177 -169
- package/dist/locales/localesApi.d.ts +7 -3
- package/dist/locales/localesApi.js +7 -3
- package/dist/locales/localesInterfaces.d.ts +14 -13
- package/dist/menus/menusApi.d.ts +9 -5
- package/dist/menus/menusApi.js +9 -5
- package/dist/menus/menusInterfaces.d.ts +43 -48
- package/dist/menus/menusInterfaces.js +1 -0
- package/dist/orders/ordersApi.d.ts +62 -70
- package/dist/orders/ordersApi.js +62 -71
- package/dist/orders/ordersInterfaces.d.ts +238 -203
- package/dist/pages/pagesApi.d.ts +67 -80
- package/dist/pages/pagesApi.js +71 -81
- package/dist/pages/pagesInterfaces.d.ts +164 -160
- package/dist/payments/paymentsApi.d.ts +24 -34
- package/dist/payments/paymentsApi.js +24 -38
- package/dist/payments/paymentsInterfaces.d.ts +82 -76
- package/dist/product-statuses/productStatusesApi.d.ts +13 -13
- package/dist/product-statuses/productStatusesApi.js +13 -13
- package/dist/product-statuses/productStatusesInterfaces.d.ts +29 -27
- package/dist/products/productsApi.d.ts +246 -267
- package/dist/products/productsApi.js +247 -267
- package/dist/products/productsInterfaces.d.ts +333 -339
- package/dist/system/systemApi.d.ts +19 -21
- package/dist/system/systemApi.js +20 -21
- package/dist/system/systemInterfaces.d.ts +14 -3
- package/dist/templates/templatesApi.d.ts +13 -16
- package/dist/templates/templatesApi.js +13 -16
- package/dist/templates/templatesInterfaces.d.ts +30 -29
- package/dist/templates-preview/templatesPreviewApi.d.ts +10 -11
- package/dist/templates-preview/templatesPreviewApi.js +10 -11
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +61 -64
- package/dist/users/usersApi.d.ts +36 -43
- package/dist/users/usersApi.js +36 -43
- package/dist/users/usersInterfaces.d.ts +92 -96
- package/dist/web-socket/wsApi.d.ts +5 -3
- package/dist/web-socket/wsApi.js +6 -3
- package/dist/web-socket/wsInterfaces.d.ts +7 -2
- package/package.json +16 -12
|
@@ -1,261 +1,235 @@
|
|
|
1
1
|
import AsyncModules from '../base/asyncModules';
|
|
2
2
|
import type StateModule from '../base/stateModule';
|
|
3
3
|
import type { IError } from '../base/utils';
|
|
4
|
-
import type { IAuthEntity, IAuthPostBody, IAuthProvider, IAuthProvidersEntity, IOAuthSignUpData, ISignUpData, ISignUpEntity } from './authProvidersInterfaces';
|
|
4
|
+
import type { IActiveSession, IAuthEntity, IAuthPostBody, IAuthProvider, IAuthProvidersEntity, IOAuthSignUpData, ISignUpData, ISignUpEntity } from './authProvidersInterfaces';
|
|
5
5
|
/**
|
|
6
6
|
* Controllers for working with auth services.
|
|
7
|
-
*
|
|
8
7
|
* @handle /api/content/users-auth-providers
|
|
9
8
|
* @class AuthProviderApi
|
|
10
|
-
* @
|
|
9
|
+
* @augments AsyncModules
|
|
11
10
|
* @implements {IAuthProvider}
|
|
12
|
-
*
|
|
13
11
|
* @description This class provides methods for user registration, authentication, and management of authentication providers.
|
|
14
12
|
*/
|
|
15
13
|
export default class AuthProviderApi extends AsyncModules implements IAuthProvider {
|
|
16
14
|
protected state: StateModule;
|
|
17
15
|
protected _url: string;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
18
19
|
constructor(state: StateModule);
|
|
19
20
|
/**
|
|
20
21
|
* User registration.
|
|
21
|
-
*
|
|
22
22
|
* @handleName signUp
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
* @
|
|
76
|
-
* @return {ISignUpEntity} Returns a user object.
|
|
23
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
24
|
+
* @param {ISignUpData} body - Request body. Example:
|
|
25
|
+
{
|
|
26
|
+
"formIdentifier": "reg",
|
|
27
|
+
"authData": [
|
|
28
|
+
{
|
|
29
|
+
"marker": "login",
|
|
30
|
+
"value": "example@oneentry.cloud"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"marker": "password",
|
|
34
|
+
"value": "12345"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"formData": [
|
|
38
|
+
{
|
|
39
|
+
"marker": "last_name",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"value": "Name"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
"notificationData": {
|
|
45
|
+
"email": "example@oneentry.cloud",
|
|
46
|
+
"phonePush": ["+99999999999"],
|
|
47
|
+
"phoneSMS": "+99999999999"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
* @param {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
|
|
51
|
+
* @param {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
|
|
52
|
+
[
|
|
53
|
+
{
|
|
54
|
+
"marker": "login",
|
|
55
|
+
"value": "example@oneentry.cloud"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"marker": "password",
|
|
59
|
+
"value": "12345"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
* @param {IAuthFormData} body.formData - The form data for the registration, which can be a single object or an array of objects. Example:
|
|
63
|
+
{
|
|
64
|
+
"marker": "last_name",
|
|
65
|
+
"type": "string",
|
|
66
|
+
"value": "Name"
|
|
67
|
+
}
|
|
68
|
+
* @param {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
|
|
69
|
+
{
|
|
70
|
+
"email": "example@oneentry.cloud",
|
|
71
|
+
"phonePush": ["+99999999999"],
|
|
72
|
+
"phoneSMS": "+99999999999"
|
|
73
|
+
}
|
|
74
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
75
|
+
* @returns {ISignUpEntity} Returns a user object.
|
|
77
76
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
78
77
|
* @description User registration (❗️For a provider with user activation, the activation code is sent through the corresponding user notification method).
|
|
79
78
|
*/
|
|
80
79
|
signUp(marker: string, body: ISignUpData, langCode?: string): Promise<ISignUpEntity | IError>;
|
|
81
80
|
/**
|
|
82
81
|
* Getting a user activation code. The code is returned via the appropriate user notification method.
|
|
83
|
-
*
|
|
84
82
|
* @handleName generateCode
|
|
85
|
-
*
|
|
86
|
-
* @param
|
|
87
|
-
* @param
|
|
88
|
-
* @
|
|
89
|
-
* @return {void} Returns void if the code is successfully generated, or an error object if there was an issue.
|
|
83
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
84
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
85
|
+
* @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
|
|
86
|
+
* @returns {void} Returns void if the code is successfully generated, or an error object if there was an issue.
|
|
90
87
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
91
88
|
* @description Obtaining a code to activate the user.
|
|
92
89
|
*/
|
|
93
90
|
generateCode(marker: string, userIdentifier: string, eventIdentifier: string): Promise<void | IError>;
|
|
94
91
|
/**
|
|
95
92
|
* User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
|
|
96
|
-
*
|
|
97
93
|
* @handleName checkCode
|
|
98
|
-
*
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
101
|
-
* @param
|
|
102
|
-
* @
|
|
103
|
-
* @return {boolean} Returns true if the code is correct, or an error object if there was an issue.
|
|
94
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
95
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
96
|
+
* @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
|
|
97
|
+
* @param {string} code - Service code. Example: "123456".
|
|
98
|
+
* @returns {boolean} Returns true if the code is correct, or an error object if there was an issue.
|
|
104
99
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
105
100
|
* @description Checking the user activation code
|
|
106
101
|
*/
|
|
107
102
|
checkCode(marker: string, userIdentifier: string, eventIdentifier: string, code: string): Promise<boolean | IError>;
|
|
108
103
|
/**
|
|
109
104
|
* User activate.
|
|
110
|
-
*
|
|
111
105
|
* @handleName activateUser
|
|
112
|
-
*
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
115
|
-
* @
|
|
116
|
-
* @return {boolean} Returns true if the user was successfully activated, or an error object if there was an issue.
|
|
106
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
107
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
108
|
+
* @param {string} code - Service code. Example: "123456".
|
|
109
|
+
* @returns {boolean} Returns true if the user was successfully activated, or an error object if there was an issue.
|
|
117
110
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
118
111
|
* @description User activation.
|
|
119
112
|
*/
|
|
120
113
|
activateUser(marker: string, userIdentifier: string, code: string): Promise<boolean | IError>;
|
|
121
114
|
/**
|
|
122
115
|
* User authorization.
|
|
123
|
-
*
|
|
124
116
|
* @handleName auth
|
|
125
|
-
*
|
|
126
|
-
* @param
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
* @param
|
|
148
|
-
* @
|
|
149
|
-
*
|
|
150
|
-
* @return {IAuthEntity} Returns an auth entity object.
|
|
117
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
118
|
+
* @param {IAuthPostBody} body - Objects contains auth information. Example:
|
|
119
|
+
{
|
|
120
|
+
"authData": [
|
|
121
|
+
{
|
|
122
|
+
"marker": "login",
|
|
123
|
+
"value": "example@oneentry.cloud"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"marker": "password",
|
|
127
|
+
"value": "12345"
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
* @param {{ marker: string; value: string | number }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
"marker": "login",
|
|
135
|
+
"value": "user@example.com"
|
|
136
|
+
}
|
|
137
|
+
]
|
|
138
|
+
* @param {string} body.authData[index].marker - The marker for the authentication data. Example: "login".
|
|
139
|
+
* @param {string} body.authData[index].value - The value for the authentication data. Example: "user@example.com".
|
|
140
|
+
* @returns {IAuthEntity} Returns an auth entity object.
|
|
151
141
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
152
142
|
* @description User authorization.
|
|
153
143
|
*/
|
|
154
144
|
auth(marker: string, body: IAuthPostBody): Promise<IAuthEntity | IError>;
|
|
155
145
|
/**
|
|
156
146
|
* Refresh token.
|
|
157
|
-
*
|
|
158
147
|
* @handleName refresh
|
|
159
|
-
*
|
|
160
|
-
* @param
|
|
161
|
-
* @
|
|
162
|
-
* @return {IAuthEntity} Returns an auth entity object with the following values: accessToken, refreshToken, user, and other auth-related data.
|
|
148
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
149
|
+
* @param {string} token - Refresh token. Example: "abcdef123456".
|
|
150
|
+
* @returns {IAuthEntity} Returns an auth entity object with the following values: accessToken, refreshToken, user, and other auth-related data.
|
|
163
151
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
164
152
|
* @description User token refresh.
|
|
165
153
|
*/
|
|
166
154
|
refresh(marker: string, token: string): Promise<IAuthEntity | IError>;
|
|
167
155
|
/**
|
|
168
156
|
* User account logout.
|
|
169
|
-
*
|
|
170
157
|
* @handleName logout
|
|
171
|
-
*
|
|
172
|
-
* @param
|
|
173
|
-
* @
|
|
174
|
-
* @return {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
158
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
159
|
+
* @param {string} token - Refresh token. Example: "abcdef123456".
|
|
160
|
+
* @returns {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
175
161
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
176
162
|
* @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
|
|
177
163
|
*/
|
|
178
164
|
logout(marker: string, token: string): Promise<boolean | IError>;
|
|
179
165
|
/**
|
|
180
166
|
* Logout of user account on all devices.
|
|
181
|
-
*
|
|
182
167
|
* @handleName logoutAll
|
|
183
|
-
*
|
|
184
|
-
* @
|
|
185
|
-
* @return {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
168
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
169
|
+
* @returns {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
186
170
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
187
171
|
* @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
|
|
188
172
|
*/
|
|
189
173
|
logoutAll(marker: string): Promise<boolean | IError>;
|
|
190
174
|
/**
|
|
191
175
|
* Change password.
|
|
192
|
-
*
|
|
193
176
|
* @handleName changePassword
|
|
194
|
-
*
|
|
195
|
-
* @param
|
|
196
|
-
* @param
|
|
197
|
-
* @param
|
|
198
|
-
* @param
|
|
199
|
-
* @param
|
|
200
|
-
* @param
|
|
201
|
-
* @
|
|
202
|
-
* @return {boolean} Returns true if the password was successfully changed, or an error object if there was an issue.
|
|
177
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
178
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
179
|
+
* @param {string} eventIdentifier - The text identifier of the event. Example: "reg".
|
|
180
|
+
* @param {string} type - Operation type (1 - for changing password, 2 - for recovery). Example: 1.
|
|
181
|
+
* @param {string} code - Service code. Example: "123456".
|
|
182
|
+
* @param {string} newPassword - New password. Example: "newPassword123".
|
|
183
|
+
* @param {string} [repeatPassword] - Optional variable contains repeat new password for validation. Example: "newPassword123".
|
|
184
|
+
* @returns {boolean} Returns true if the password was successfully changed, or an error object if there was an issue.
|
|
203
185
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
204
186
|
* @description User password change (only for tariffs with account activation and the Activation feature enabled).
|
|
205
187
|
*/
|
|
206
188
|
changePassword(marker: string, userIdentifier: string, eventIdentifier: string, type: number, code: string, newPassword: string, repeatPassword?: string): Promise<boolean | IError>;
|
|
207
189
|
/**
|
|
208
190
|
* Get all auth providers objects.
|
|
209
|
-
*
|
|
210
191
|
* @handleName getAuthProviders
|
|
211
|
-
*
|
|
212
|
-
* @param
|
|
213
|
-
* @param
|
|
214
|
-
* @
|
|
215
|
-
* @return {IAuthProvidersEntity[]} Returns an array of auth provider objects.
|
|
192
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
193
|
+
* @param {number} [offset] - Parameter for pagination. Default: 0.
|
|
194
|
+
* @param {number} [limit] - Parameter for pagination. Default: 30.
|
|
195
|
+
* @returns {IAuthProvidersEntity[]} Returns an array of auth provider objects.
|
|
216
196
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
217
197
|
* @description Getting all objects of authorization providers.
|
|
218
198
|
*/
|
|
219
199
|
getAuthProviders(langCode?: string, offset?: number, limit?: number): Promise<IAuthProvidersEntity[] | IError>;
|
|
220
200
|
/**
|
|
221
201
|
* Get one auth provider object by marker.
|
|
222
|
-
*
|
|
223
202
|
* @handleName getAuthProviderByMarker
|
|
224
|
-
*
|
|
225
|
-
* @param
|
|
226
|
-
* @
|
|
227
|
-
* @return {IAuthProvidersEntity} Returns an auth provider object.
|
|
203
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
204
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
205
|
+
* @returns {IAuthProvidersEntity} Returns an auth provider object.
|
|
228
206
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
229
207
|
* @description Getting a single authorization provider object by marker.
|
|
230
208
|
*/
|
|
231
209
|
getAuthProviderByMarker(marker: string, langCode?: string): Promise<IAuthProvidersEntity | IError>;
|
|
232
210
|
/**
|
|
233
211
|
* Getting active user sessions data.
|
|
234
|
-
*
|
|
235
212
|
* @handleName getActiveSessions
|
|
236
|
-
*
|
|
237
|
-
* @
|
|
238
|
-
* @return {IAuthProvidersEntity} Returns an auth provider object.
|
|
213
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
214
|
+
* @returns {IActiveSession[]} Returns an auth provider object.
|
|
239
215
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
240
216
|
* @description Getting a single authorization provider object by marker.
|
|
241
217
|
*/
|
|
242
|
-
getActiveSessionsByMarker(marker: string): Promise<
|
|
218
|
+
getActiveSessionsByMarker(marker: string): Promise<IActiveSession[] | IError>;
|
|
243
219
|
/**
|
|
244
220
|
* User registration (authorization) via OAUTH.
|
|
245
|
-
*
|
|
246
221
|
* @handleName oauthSignUp
|
|
247
|
-
*
|
|
248
|
-
* @param
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
* @
|
|
258
|
-
* @return {ISignUpEntity} Returns a user object.
|
|
222
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
223
|
+
* @param {IOAuthSignUpData} body - Object contains OAuth information for registration. Example:
|
|
224
|
+
{
|
|
225
|
+
"client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
|
|
226
|
+
"client_secret": "43434343434",
|
|
227
|
+
"code": "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g",
|
|
228
|
+
"grant_type": "authorization_code",
|
|
229
|
+
"redirect_uri": "http://localhost:3000"
|
|
230
|
+
}
|
|
231
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
232
|
+
* @returns {ISignUpEntity} Returns a user object.
|
|
259
233
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
260
234
|
* @description User registration (authorization) via OAUTH.
|
|
261
235
|
*/
|