oneentry 1.0.127 → 1.0.128

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.
Files changed (72) hide show
  1. package/dist/admins/adminsApi.d.ts +20 -20
  2. package/dist/admins/adminsApi.js +20 -20
  3. package/dist/admins/adminsInterfaces.d.ts +43 -43
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
  5. package/dist/attribute-sets/attributeSetsApi.js +16 -16
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
  7. package/dist/auth-provider/authProviderApi.d.ts +126 -126
  8. package/dist/auth-provider/authProviderApi.js +126 -126
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
  10. package/dist/base/asyncModules.d.ts +17 -17
  11. package/dist/base/asyncModules.js +26 -21
  12. package/dist/base/result.d.ts +5 -5
  13. package/dist/base/result.js +5 -9
  14. package/dist/base/stateModule.d.ts +1 -1
  15. package/dist/base/stateModule.js +1 -1
  16. package/dist/base/syncModules.d.ts +35 -35
  17. package/dist/base/syncModules.js +92 -45
  18. package/dist/base/utils.d.ts +13 -13
  19. package/dist/blocks/blocksApi.d.ts +24 -24
  20. package/dist/blocks/blocksApi.js +24 -24
  21. package/dist/blocks/blocksInterfaces.d.ts +85 -85
  22. package/dist/events/eventsApi.d.ts +11 -11
  23. package/dist/events/eventsApi.js +11 -11
  24. package/dist/events/eventsInterfaces.d.ts +23 -23
  25. package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
  26. package/dist/file-uploading/fileUploadingApi.js +38 -38
  27. package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
  28. package/dist/forms/formsApi.d.ts +7 -7
  29. package/dist/forms/formsApi.js +7 -7
  30. package/dist/forms/formsInterfaces.d.ts +43 -31
  31. package/dist/forms-data/formsDataApi.d.ts +37 -37
  32. package/dist/forms-data/formsDataApi.js +37 -38
  33. package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
  34. package/dist/general-types/generalTypesApi.d.ts +1 -1
  35. package/dist/general-types/generalTypesApi.js +1 -1
  36. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  37. package/dist/index.d.ts +10 -10
  38. package/dist/index.js +10 -10
  39. package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
  40. package/dist/integration-collections/integrationCollectionsApi.js +76 -80
  41. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
  42. package/dist/locales/localesInterfaces.d.ts +8 -8
  43. package/dist/menus/menusApi.d.ts +3 -3
  44. package/dist/menus/menusApi.js +3 -3
  45. package/dist/menus/menusInterfaces.d.ts +39 -39
  46. package/dist/orders/ordersApi.d.ts +56 -56
  47. package/dist/orders/ordersApi.js +56 -56
  48. package/dist/orders/ordersInterfaces.d.ts +204 -198
  49. package/dist/pages/pagesApi.d.ts +60 -60
  50. package/dist/pages/pagesApi.js +60 -60
  51. package/dist/pages/pagesInterfaces.d.ts +133 -141
  52. package/dist/payments/paymentsApi.d.ts +15 -15
  53. package/dist/payments/paymentsApi.js +15 -15
  54. package/dist/payments/paymentsInterfaces.d.ts +55 -55
  55. package/dist/product-statuses/productStatusesApi.d.ts +7 -7
  56. package/dist/product-statuses/productStatusesApi.js +7 -7
  57. package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
  58. package/dist/products/productsApi.d.ts +240 -240
  59. package/dist/products/productsApi.js +240 -240
  60. package/dist/products/productsInterfaces.d.ts +311 -311
  61. package/dist/system/systemApi.d.ts +10 -10
  62. package/dist/system/systemApi.js +10 -10
  63. package/dist/templates/templatesApi.d.ts +8 -8
  64. package/dist/templates/templatesApi.js +8 -8
  65. package/dist/templates/templatesInterfaces.d.ts +22 -22
  66. package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
  67. package/dist/templates-preview/templatesPreviewApi.js +5 -5
  68. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
  69. package/dist/users/usersApi.d.ts +29 -29
  70. package/dist/users/usersApi.js +29 -29
  71. package/dist/users/usersInterfaces.d.ts +77 -77
  72. package/package.json +1 -1
@@ -1,54 +1,54 @@
1
1
  import type { IError, ILocalizeInfo } from '../base/utils';
2
2
  /**
3
3
  * @interface IAuthProvider
4
- * @property {Function} signUp - User registration.
5
- * @property {Function} generateCode - Getting a user activation code.
6
- * @property {Function} checkCode - User activation code verification.
7
- * @property {Function} activateUser - User activate.
8
- * @property {Function} auth - User authorization.
9
- * @property {Function} refresh - Refresh token.
10
- * @property {Function} logout - User logout.
11
- * @property {Function} logoutAll - User logout.
12
- * @property {Function} changePassword - Change password.
13
- * @property {Function} getAuthProviders - Get all auth providers objects.
14
- * @property {Function} getAuthProviderByMarker - Get one auth provider object by marker.
4
+ * @property {Function} signUp - User registration.
5
+ * @property {Function} generateCode - Getting a user activation code.
6
+ * @property {Function} checkCode - User activation code verification.
7
+ * @property {Function} activateUser - User activate.
8
+ * @property {Function} auth - User authorization.
9
+ * @property {Function} refresh - Refresh token.
10
+ * @property {Function} logout - User logout.
11
+ * @property {Function} logoutAll - User logout.
12
+ * @property {Function} changePassword - Change password.
13
+ * @property {Function} getAuthProviders - Get all auth providers objects.
14
+ * @property {Function} getAuthProviderByMarker - Get one auth provider object by marker.
15
15
  * @property {Function} getActiveSessionsByMarker - Get one auth provider object by marker.
16
- * @property {Function} oauthSignUp - User registration (authorization) via OAUTH.
16
+ * @property {Function} oauthSignUp - User registration (authorization) via OAUTH.
17
17
  * @description This interface defines methods for user authentication and registration through various auth providers.
18
18
  */
19
19
  interface IAuthProvider {
20
20
  /**
21
21
  * Registers a new user.
22
22
  * @handleName signUp
23
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
24
- * @param {ISignUpData} data - The data required for user registration. 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} [langCode] - Optional language code for localization. Default: "en_US".
51
- * @returns {ISignUpEntity} A promise that resolves to a sign-up entity or an error.
23
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
24
+ * @param {ISignUpData} data - The data required for user registration. 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} [langCode] - Optional language code for localization. Default: "en_US".
51
+ * @returns {ISignUpEntity} A promise that resolves to a sign-up entity or an error.
52
52
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
53
53
  * @description This method registers a new user.
54
54
  */
@@ -56,10 +56,10 @@ interface IAuthProvider {
56
56
  /**
57
57
  * Generates an activation code for a user.
58
58
  * @handleName generateCode
59
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
60
- * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
61
- * @param {string} eventIdentifier - The event identifier related to the code generation. Example: "user_registration".
62
- * @returns {void} A promise that resolves to void or an error.
59
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
60
+ * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
61
+ * @param {string} eventIdentifier - The event identifier related to the code generation. Example: "user_registration".
62
+ * @returns {void} A promise that resolves to void or an error.
63
63
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
64
64
  * @description This method generates an activation code for a user.
65
65
  */
@@ -67,11 +67,11 @@ interface IAuthProvider {
67
67
  /**
68
68
  * Verifies a user activation code.
69
69
  * @handleName checkCode
70
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
71
- * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
72
- * @param {string} eventIdentifier - The event identifier related to the code verification. Example: "user_registration".
73
- * @param {string} code - The activation code to verify. Example: "123456".
74
- * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
70
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
71
+ * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
72
+ * @param {string} eventIdentifier - The event identifier related to the code verification. Example: "user_registration".
73
+ * @param {string} code - The activation code to verify. Example: "123456".
74
+ * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
75
75
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
76
76
  * @description This method verifies a user activation code.
77
77
  */
@@ -79,10 +79,10 @@ interface IAuthProvider {
79
79
  /**
80
80
  * Activates a user account.
81
81
  * @handleName activateUser
82
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
83
- * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
84
- * @param {string} code - The activation code. Example: "123456".
85
- * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
82
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
83
+ * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
84
+ * @param {string} code - The activation code. Example: "123456".
85
+ * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
86
86
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
87
87
  * @description This method activates a user account.
88
88
  */
@@ -90,9 +90,9 @@ interface IAuthProvider {
90
90
  /**
91
91
  * Authorizes a user.
92
92
  * @handleName auth
93
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
94
- * @param {IAuthPostBody} data - The data required for user authorization. Example: .
95
- * @returns {IAuthEntity} A promise that resolves to an auth entity or an error.
93
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
94
+ * @param {IAuthPostBody} data - The data required for user authorization. Example: .
95
+ * @returns {IAuthEntity} A promise that resolves to an auth entity or an error.
96
96
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
97
97
  * @description This method authorizes a user.
98
98
  */
@@ -100,9 +100,9 @@ interface IAuthProvider {
100
100
  /**
101
101
  * Refreshes a user's access token.
102
102
  * @handleName refresh
103
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
104
- * @param {string} token - The refresh token. Example: "abcdef123456".
105
- * @returns {IAuthEntity} A promise that resolves to an auth entity or an error.
103
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
104
+ * @param {string} token - The refresh token. Example: "abcdef123456".
105
+ * @returns {IAuthEntity} A promise that resolves to an auth entity or an error.
106
106
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
107
107
  * @description This method refreshes a user's access token.
108
108
  */
@@ -110,9 +110,9 @@ interface IAuthProvider {
110
110
  /**
111
111
  * Logs out a user.
112
112
  * @handleName logout
113
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
114
- * @param {string} token - The access token. Example: "abcdef123456".
115
- * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
113
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
114
+ * @param {string} token - The access token. Example: "abcdef123456".
115
+ * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
116
116
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
117
117
  * @description This method logs out a user.
118
118
  */
@@ -120,8 +120,8 @@ interface IAuthProvider {
120
120
  /**
121
121
  * Logout of user account on all devices.
122
122
  * @handleName logoutAll
123
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
124
- * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
123
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
124
+ * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
125
125
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
126
126
  * @description This method logs out a user account on all devices.
127
127
  */
@@ -129,14 +129,14 @@ interface IAuthProvider {
129
129
  /**
130
130
  * Changes a user's password.
131
131
  * @handleName changePassword
132
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
133
- * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
134
- * @param {string} eventIdentifier - The event identifier. Example: "reg".
135
- * @param {number} type - The type of password change. 1 for changing password, 2 for recovery. Example: 1.
136
- * @param {string} code - The code for password change verification. Example: "123456".
137
- * @param {string} newPassword - The new password. Example: "newPassword123".
138
- * @param {string} [repeatPassword] - Optional repeat of the new password for confirmation. Example: "newPassword123".
139
- * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
132
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
133
+ * @param {string} userIdentifier - The user's identifier. Example: "example@oneentry.cloud".
134
+ * @param {string} eventIdentifier - The event identifier. Example: "reg".
135
+ * @param {number} type - The type of password change. 1 for changing password, 2 for recovery. Example: 1.
136
+ * @param {string} code - The code for password change verification. Example: "123456".
137
+ * @param {string} newPassword - The new password. Example: "newPassword123".
138
+ * @param {string} [repeatPassword] - Optional repeat of the new password for confirmation. Example: "newPassword123".
139
+ * @returns {boolean} A promise that resolves to a boolean indicating success or failure, or an error.
140
140
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
141
141
  * @description This method changes a user's password.
142
142
  */
@@ -144,10 +144,10 @@ interface IAuthProvider {
144
144
  /**
145
145
  * Retrieves all authentication providers.
146
146
  * @handleName getAuthProviders
147
- * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
148
- * @param {number} [offset] - Optional offset for pagination. Default: 0.
149
- * @param {number} [limit] - Optional limit for pagination. Default: 30.
150
- * @returns {IAuthProvidersEntity[]} A promise that resolves to an array of auth provider entities or an error.
147
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
148
+ * @param {number} [offset] - Optional offset for pagination. Default: 0.
149
+ * @param {number} [limit] - Optional limit for pagination. Default: 30.
150
+ * @returns {IAuthProvidersEntity[]} A promise that resolves to an array of auth provider entities or an error.
151
151
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
152
152
  * @description This method retrieves all authentication providers.
153
153
  */
@@ -155,9 +155,9 @@ interface IAuthProvider {
155
155
  /**
156
156
  * Retrieves a specific auth provider by its marker.
157
157
  * @handleName getAuthProviderByMarker
158
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
159
- * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
160
- * @returns {IAuthProvidersEntity} A promise that resolves to an auth provider entity or an error.
158
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
159
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
160
+ * @returns {IAuthProvidersEntity} A promise that resolves to an auth provider entity or an error.
161
161
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
162
162
  * @description This method retrieves a specific auth provider by its marker.
163
163
  */
@@ -165,8 +165,8 @@ interface IAuthProvider {
165
165
  /**
166
166
  * Retrieves active user sessions data object.
167
167
  * @handleName getActiveSessionsByMarker
168
- * @param {string} marker - The marker identifying the auth provider. Example: "email".
169
- * @returns {any} A promise that resolves to active user sessions data object.
168
+ * @param {string} marker - The marker identifying the auth provider. Example: "email".
169
+ * @returns {any} A promise that resolves to active user sessions data object.
170
170
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
171
171
  * @description This method retrieves active user sessions data object.
172
172
  */
@@ -174,17 +174,17 @@ interface IAuthProvider {
174
174
  /**
175
175
  * User registration (authorization) via OAUTH.
176
176
  * @handleName oauthSignUp
177
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
178
- * @param {IOAuthSignUpData} body - Object contains OAuth information for registration. Example:
179
- {
180
- "client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
181
- "client_secret": "43434343434",
182
- "code": "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g",
183
- "grant_type": "authorization_code",
184
- "redirect_uri": "http://localhost:3000"
185
- }
186
- * @param {string} [langCode] - Language code. Default: "en_US".
187
- * @returns {ISignUpEntity} Returns a user object.
177
+ * @param {string} marker - The text identifier of the authorization provider. Example: "email".
178
+ * @param {IOAuthSignUpData} body - Object contains OAuth information for registration. Example:
179
+ {
180
+ "client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
181
+ "client_secret": "43434343434",
182
+ "code": "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g",
183
+ "grant_type": "authorization_code",
184
+ "redirect_uri": "http://localhost:3000"
185
+ }
186
+ * @param {string} [langCode] - Language code. Default: "en_US".
187
+ * @returns {ISignUpEntity} Returns a user object.
188
188
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
189
189
  * @description User registration (authorization) via OAUTH.
190
190
  */
@@ -194,8 +194,8 @@ interface IAuthProvider {
194
194
  * Interface representing the structure of authentication form data.
195
195
  * @interface IAuthFormData
196
196
  * @property {string} marker - A unique identifier for the form field. Example: "email".
197
- * @property {string} type - The type of the form field, such as 'string', 'email', etc. Example: "string".
198
- * @property {string} value - The value entered in the form field. Example: "example@oneentry.cloud".
197
+ * @property {string} type - The type of the form field, such as 'string', 'email', etc. Example: "string".
198
+ * @property {string} value - The value entered in the form field. Example: "example@oneentry.cloud".
199
199
  * @description This interface defines the structure of authentication form data used in user registration and authentication processes.
200
200
  */
201
201
  interface IAuthFormData {
@@ -206,58 +206,58 @@ interface IAuthFormData {
206
206
  /**
207
207
  * Interface representing the data required for user registration.
208
208
  * @interface ISignUpData
209
- * @property {string} marker - The text identifier of the authorization provider. Example: "email".
210
- * @property {ISignUpData} body - Request body. Example:
211
- {
212
- "formIdentifier": "reg",
213
- "authData": [
214
- {
215
- "marker": "login",
216
- "value": "example@oneentry.cloud"
217
- },
218
- {
219
- "marker": "password",
220
- "value": "12345"
221
- }
222
- ],
223
- "formData": [
224
- {
225
- "marker": "last_name",
226
- "type": "string",
227
- "value": "Name"
228
- }
229
- ],
230
- "notificationData": {
231
- "email": "example@oneentry.cloud",
232
- "phonePush": ["+99999999999"],
233
- "phoneSMS": "+99999999999"
234
- }
235
- }
236
- * @property {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
237
- * @property {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
238
- [
239
- {
240
- "marker": "login",
241
- "value": "example@oneentry.cloud"
242
- },
243
- {
244
- "marker": "password",
245
- "value": "12345"
246
- }
247
- ]
248
- * @property {IAuthFormData | IAuthFormData[]} body.formData - The form data for the registration, which can be a single object or an array of objects. Example:
249
- {
250
- "marker": "last_name",
251
- "type": "string",
252
- "value": "Name"
253
- }
254
- * @property {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
255
- {
256
- "email": "example@oneentry.cloud",
257
- "phonePush": ["+99999999999"],
258
- "phoneSMS": "+99999999999"
259
- }
260
- * @property {string} [langCode] - Language code. Default: "en_US".
209
+ * @property {string} marker - The text identifier of the authorization provider. Example: "email".
210
+ * @property {ISignUpData} body - Request body. Example:
211
+ {
212
+ "formIdentifier": "reg",
213
+ "authData": [
214
+ {
215
+ "marker": "login",
216
+ "value": "example@oneentry.cloud"
217
+ },
218
+ {
219
+ "marker": "password",
220
+ "value": "12345"
221
+ }
222
+ ],
223
+ "formData": [
224
+ {
225
+ "marker": "last_name",
226
+ "type": "string",
227
+ "value": "Name"
228
+ }
229
+ ],
230
+ "notificationData": {
231
+ "email": "example@oneentry.cloud",
232
+ "phonePush": ["+99999999999"],
233
+ "phoneSMS": "+99999999999"
234
+ }
235
+ }
236
+ * @property {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
237
+ * @property {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
238
+ [
239
+ {
240
+ "marker": "login",
241
+ "value": "example@oneentry.cloud"
242
+ },
243
+ {
244
+ "marker": "password",
245
+ "value": "12345"
246
+ }
247
+ ]
248
+ * @property {IAuthFormData | IAuthFormData[]} body.formData - The form data for the registration, which can be a single object or an array of objects. Example:
249
+ {
250
+ "marker": "last_name",
251
+ "type": "string",
252
+ "value": "Name"
253
+ }
254
+ * @property {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
255
+ {
256
+ "email": "example@oneentry.cloud",
257
+ "phonePush": ["+99999999999"],
258
+ "phoneSMS": "+99999999999"
259
+ }
260
+ * @property {string} [langCode] - Language code. Default: "en_US".
261
261
  * @description User registration (❗️For a provider with user activation, the activation code is sent through the corresponding user notification method).
262
262
  */
263
263
  interface ISignUpData {
@@ -277,11 +277,11 @@ interface ISignUpData {
277
277
  /**
278
278
  * Interface representing the data required for user registration via OAUTH.
279
279
  * @interface IOAuthSignUpData
280
- * @property {string} client_id - The client ID for the OAuth application. Example: "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com".
280
+ * @property {string} client_id - The client ID for the OAuth application. Example: "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com".
281
281
  * @property {string} client_secret - The client secret for the OAuth application. Example: "43434343434".
282
- * @property {string} code - The authorization code received from the OAuth provider. Example: "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g".
283
- * @property {string} grant_type - The grant type for the OAuth request. Example: "authorization_code".
284
- * @property {string} redirect_uri - The redirect URI for the OAuth application. Example: "http://localhost:3000".
282
+ * @property {string} code - The authorization code received from the OAuth provider. Example: "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g".
283
+ * @property {string} grant_type - The grant type for the OAuth request. Example: "authorization_code".
284
+ * @property {string} redirect_uri - The redirect URI for the OAuth application. Example: "http://localhost:3000".
285
285
  * @description User registration (❗️For a provider with user activation, the activation code is sent through the corresponding user notification method).
286
286
  */
287
287
  interface IOAuthSignUpData {
@@ -294,29 +294,29 @@ interface IOAuthSignUpData {
294
294
  /**
295
295
  * Interface representing a sign-up entity.
296
296
  * @interface ISignUpEntity
297
- * @property {number} id - The unique identifier of the sign-up entity. Example: 12345.
298
- * @property {string} updatedDate - The date when the sign-up entity was last updated. Example: "2023-10-01T12:00:00Z".
299
- * @property {number} version - The version number of the sign-up entity. Example: 1.
300
- * @property {string} identifier - A unique string that identifies the sign-up entity. Example: "signup_12345".
301
- * @property {boolean} isActive - Indicates whether the sign-up entity is active. Example: true.
302
- * @property {{ marker: string; value: string }[]} formData - An array of objects representing the form data, each containing a marker and its corresponding value. Example:
303
- [
304
- {
305
- "marker": "first_name",
306
- "value": "John"
307
- },
308
- {
309
- "marker": "last_name",
310
- "value": "Doe"
311
- }
312
- ]
313
- * @property {object} notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
314
- {
315
- "email": "example@oneentry.cloud",
316
- "phonePush": ["+99999999999"],
317
- "phoneSMS": "+99999999999"
318
- }
319
- * @property {string} [locale] - The locale or language code associated with the sign-up entity. Example: "en_US".
297
+ * @property {number} id - The unique identifier of the sign-up entity. Example: 12345.
298
+ * @property {string} updatedDate - The date when the sign-up entity was last updated. Example: "2023-10-01T12:00:00Z".
299
+ * @property {number} version - The version number of the sign-up entity. Example: 1.
300
+ * @property {string} identifier - A unique string that identifies the sign-up entity. Example: "signup_12345".
301
+ * @property {boolean} isActive - Indicates whether the sign-up entity is active. Example: true.
302
+ * @property {{ marker: string; value: string }[]} formData - An array of objects representing the form data, each containing a marker and its corresponding value. Example:
303
+ [
304
+ {
305
+ "marker": "first_name",
306
+ "value": "John"
307
+ },
308
+ {
309
+ "marker": "last_name",
310
+ "value": "Doe"
311
+ }
312
+ ]
313
+ * @property {object} notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
314
+ {
315
+ "email": "example@oneentry.cloud",
316
+ "phonePush": ["+99999999999"],
317
+ "phoneSMS": "+99999999999"
318
+ }
319
+ * @property {string} [locale] - The locale or language code associated with the sign-up entity. Example: "en_US".
320
320
  * @description This interface defines the structure of a sign-up entity.
321
321
  */
322
322
  interface ISignUpEntity {
@@ -339,7 +339,7 @@ interface ISignUpEntity {
339
339
  /**
340
340
  * Interface representing a code entity used for user registration or verification processes.
341
341
  * @interface ICodeEntity
342
- * @property {string} code - The activation code for user registration or verification. Example: "123456".
342
+ * @property {string} code - The activation code for user registration or verification. Example: "123456".
343
343
  * @property {string} expiredDate - The date when the activation code expires. Example: "2023-10-01T12:00:00Z".
344
344
  * @description This interface defines the structure of a code entity used for user registration or verification processes.
345
345
  */
@@ -350,10 +350,10 @@ interface ICodeEntity {
350
350
  /**
351
351
  * Interface representing an authentication entity.
352
352
  * @interface IAuthEntity
353
- * @property {string} userIdentifier - The unique identifier for the user. Example: "user12345".
353
+ * @property {string} userIdentifier - The unique identifier for the user. Example: "user12345".
354
354
  * @property {string} authProviderIdentifier - The identifier for the authentication provider. Example: "email".
355
- * @property {string} accessToken - The access token for the user session. Example: "abcdef123456".
356
- * @property {string} refreshToken - The refresh token for renewing the access token. Example: "ghijkl789012".
355
+ * @property {string} accessToken - The access token for the user session. Example: "abcdef123456".
356
+ * @property {string} refreshToken - The refresh token for renewing the access token. Example: "ghijkl789012".
357
357
  * @description This interface defines the structure of an authentication entity.
358
358
  */
359
359
  interface IAuthEntity {
@@ -365,16 +365,16 @@ interface IAuthEntity {
365
365
  /**
366
366
  * Interface representing an authentication provider entity.
367
367
  * @interface IAuthProvidersEntity
368
- * @property {number} id - The unique identifier of the auth provider entity. Example: 194.
369
- * @property {ILocalizeInfo} localizeInfos - Localized information for the auth provider. Example: {"key": "value"}.
370
- * @property {IAuthProvidersEntityConfig} config - Configuration settings for the auth provider, stored as a key-value pair object. Example: { "key": "value" }
371
- * @property {number} version - The version number of the auth provider entity. Example: 1.
372
- * @property {string} identifier - A unique string that identifies the auth provider. Example: "email".
373
- * @property {string} type - The type of the auth provider (e.g., 'email', 'google', etc.). Example: "email".
374
- * @property {string | null} formIdentifier - The identifier for the form associated with the auth provider, or null if not applicable. Example: "reg_form".
375
- * @property {string} userGroupIdentifier - The identifier for the userGroup associated with the auth provider. Example: "guest".
376
- * @property {boolean} isActive - Indicates whether the auth provider is active. Example: true.
377
- * @property {boolean} isCheckCode - Indicates whether the auth provider requires code verification. Example: false.
368
+ * @property {number} id - The unique identifier of the auth provider entity. Example: 194.
369
+ * @property {ILocalizeInfo} localizeInfos - Localized information for the auth provider. Example: {"key": "value"}.
370
+ * @property {IAuthProvidersEntityConfig} config - Configuration settings for the auth provider, stored as a key-value pair object. Example: { "key": "value" }
371
+ * @property {number} version - The version number of the auth provider entity. Example: 1.
372
+ * @property {string} identifier - A unique string that identifies the auth provider. Example: "email".
373
+ * @property {string} type - The type of the auth provider (e.g., 'email', 'google', etc.). Example: "email".
374
+ * @property {string | null} formIdentifier - The identifier for the form associated with the auth provider, or null if not applicable. Example: "reg_form".
375
+ * @property {string} userGroupIdentifier - The identifier for the userGroup associated with the auth provider. Example: "guest".
376
+ * @property {boolean} isActive - Indicates whether the auth provider is active. Example: true.
377
+ * @property {boolean} isCheckCode - Indicates whether the auth provider requires code verification. Example: false.
378
378
  * @description This interface defines the structure of an authentication provider entity.
379
379
  */
380
380
  interface IAuthProvidersEntity {
@@ -392,12 +392,12 @@ interface IAuthProvidersEntity {
392
392
  /**
393
393
  * Interface representing an authentication provider config.
394
394
  * @interface IAuthProvidersEntityConfig
395
- * @property {string} accessTokenTtlSec - Access token time to live in seconds.
396
- * @property {string} refreshTokenTtlMc - Refresh token time to live in milliseconds.
397
- * @property {string} tokenSecretKey - Token secret key.
395
+ * @property {string} accessTokenTtlSec - Access token time to live in seconds.
396
+ * @property {string} refreshTokenTtlMc - Refresh token time to live in milliseconds.
397
+ * @property {string} tokenSecretKey - Token secret key.
398
398
  * @property {string} deleteNoneActiveUsersAfterDays - Delete none active users after days.
399
- * @property {string} systemCodeTlsSec - System code time to live in seconds.
400
- * @property {string} systemCodeLength - System code length.
399
+ * @property {string} systemCodeTlsSec - System code time to live in seconds.
400
+ * @property {string} systemCodeLength - System code length.
401
401
  */
402
402
  interface IAuthProvidersEntityConfig {
403
403
  accessTokenTtlSec: string;
@@ -411,12 +411,12 @@ interface IAuthProvidersEntityConfig {
411
411
  * Interface representing the body used in authentication requests.
412
412
  * @interface IAuthPostBody
413
413
  * @property {{ marker: string; value: string | number }[]} authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
414
- [
415
- {
416
- "marker": "login",
417
- "value": "user@example.com"
418
- }
419
- ]
414
+ [
415
+ {
416
+ "marker": "login",
417
+ "value": "user@example.com"
418
+ }
419
+ ]
420
420
  * @description This interface defines the structure of the body used in authentication requests, containing an array of authentication data.
421
421
  */
422
422
  interface IAuthPostBody {
@@ -428,8 +428,8 @@ interface IAuthPostBody {
428
428
  /**
429
429
  * Interface representing the active session data.
430
430
  * @interface IActiveSession
431
- * @property {string} os - The operating system of the active session. Example: "Win32".
432
- * @property {string} browser - The browser used in the active session. Example: "Node.js/22".
431
+ * @property {string} os - The operating system of the active session. Example: "Win32".
432
+ * @property {string} browser - The browser used in the active session. Example: "Node.js/22".
433
433
  * @property {string} location - The location of the active session. Example: "ru-RU".
434
434
  * @description This interface defines the structure of the body used in authentication requests, containing an array of authentication data.
435
435
  */