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.
- package/dist/admins/adminsApi.d.ts +20 -20
- package/dist/admins/adminsApi.js +20 -20
- package/dist/admins/adminsInterfaces.d.ts +43 -43
- package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
- package/dist/attribute-sets/attributeSetsApi.js +16 -16
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
- package/dist/auth-provider/authProviderApi.d.ts +126 -126
- package/dist/auth-provider/authProviderApi.js +126 -126
- package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
- package/dist/base/asyncModules.d.ts +17 -17
- package/dist/base/asyncModules.js +26 -21
- package/dist/base/result.d.ts +5 -5
- package/dist/base/result.js +5 -9
- package/dist/base/stateModule.d.ts +1 -1
- package/dist/base/stateModule.js +1 -1
- package/dist/base/syncModules.d.ts +35 -35
- package/dist/base/syncModules.js +92 -45
- package/dist/base/utils.d.ts +13 -13
- package/dist/blocks/blocksApi.d.ts +24 -24
- package/dist/blocks/blocksApi.js +24 -24
- package/dist/blocks/blocksInterfaces.d.ts +85 -85
- package/dist/events/eventsApi.d.ts +11 -11
- package/dist/events/eventsApi.js +11 -11
- package/dist/events/eventsInterfaces.d.ts +23 -23
- package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
- package/dist/file-uploading/fileUploadingApi.js +38 -38
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
- package/dist/forms/formsApi.d.ts +7 -7
- package/dist/forms/formsApi.js +7 -7
- package/dist/forms/formsInterfaces.d.ts +43 -31
- package/dist/forms-data/formsDataApi.d.ts +37 -37
- package/dist/forms-data/formsDataApi.js +37 -38
- package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
- package/dist/general-types/generalTypesApi.d.ts +1 -1
- package/dist/general-types/generalTypesApi.js +1 -1
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
- package/dist/integration-collections/integrationCollectionsApi.js +76 -80
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +3 -3
- package/dist/menus/menusApi.js +3 -3
- package/dist/menus/menusInterfaces.d.ts +39 -39
- package/dist/orders/ordersApi.d.ts +56 -56
- package/dist/orders/ordersApi.js +56 -56
- package/dist/orders/ordersInterfaces.d.ts +204 -198
- package/dist/pages/pagesApi.d.ts +60 -60
- package/dist/pages/pagesApi.js +60 -60
- package/dist/pages/pagesInterfaces.d.ts +133 -141
- package/dist/payments/paymentsApi.d.ts +15 -15
- package/dist/payments/paymentsApi.js +15 -15
- package/dist/payments/paymentsInterfaces.d.ts +55 -55
- package/dist/product-statuses/productStatusesApi.d.ts +7 -7
- package/dist/product-statuses/productStatusesApi.js +7 -7
- package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
- package/dist/products/productsApi.d.ts +240 -240
- package/dist/products/productsApi.js +240 -240
- package/dist/products/productsInterfaces.d.ts +311 -311
- package/dist/system/systemApi.d.ts +10 -10
- package/dist/system/systemApi.js +10 -10
- package/dist/templates/templatesApi.d.ts +8 -8
- package/dist/templates/templatesApi.js +8 -8
- package/dist/templates/templatesInterfaces.d.ts +22 -22
- package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
- package/dist/templates-preview/templatesPreviewApi.js +5 -5
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
- package/dist/users/usersApi.d.ts +29 -29
- package/dist/users/usersApi.js +29 -29
- package/dist/users/usersInterfaces.d.ts +77 -77
- package/package.json +1 -1
|
@@ -24,59 +24,59 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
24
24
|
/**
|
|
25
25
|
* User registration.
|
|
26
26
|
* @handleName signUp
|
|
27
|
-
* @param
|
|
28
|
-
* @param
|
|
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
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
* @param
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* @param
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* @param
|
|
79
|
-
* @returns {ISignUpEntity}
|
|
27
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
28
|
+
* @param {ISignUpData} body - Request body. Example:
|
|
29
|
+
{
|
|
30
|
+
"formIdentifier": "reg",
|
|
31
|
+
"authData": [
|
|
32
|
+
{
|
|
33
|
+
"marker": "login",
|
|
34
|
+
"value": "example@oneentry.cloud"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"marker": "password",
|
|
38
|
+
"value": "12345"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"formData": [
|
|
42
|
+
{
|
|
43
|
+
"marker": "last_name",
|
|
44
|
+
"type": "string",
|
|
45
|
+
"value": "Name"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"notificationData": {
|
|
49
|
+
"email": "example@oneentry.cloud",
|
|
50
|
+
"phonePush": ["+99999999999"],
|
|
51
|
+
"phoneSMS": "+99999999999"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
* @param {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
|
|
55
|
+
* @param {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
|
|
56
|
+
[
|
|
57
|
+
{
|
|
58
|
+
"marker": "login",
|
|
59
|
+
"value": "example@oneentry.cloud"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"marker": "password",
|
|
63
|
+
"value": "12345"
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
* @param {IAuthFormData} body.formData - The form data for the registration, which can be a single object or an array of objects. Example:
|
|
67
|
+
{
|
|
68
|
+
"marker": "last_name",
|
|
69
|
+
"type": "string",
|
|
70
|
+
"value": "Name"
|
|
71
|
+
}
|
|
72
|
+
* @param {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS. Example:
|
|
73
|
+
{
|
|
74
|
+
"email": "example@oneentry.cloud",
|
|
75
|
+
"phonePush": ["+99999999999"],
|
|
76
|
+
"phoneSMS": "+99999999999"
|
|
77
|
+
}
|
|
78
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
79
|
+
* @returns {ISignUpEntity} Returns a user object.
|
|
80
80
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
81
81
|
* @description User registration (❗️For a provider with user activation, the activation code is sent through the corresponding user notification method).
|
|
82
82
|
*/
|
|
@@ -88,10 +88,10 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
88
88
|
/**
|
|
89
89
|
* Getting a user activation code. The code is returned via the appropriate user notification method.
|
|
90
90
|
* @handleName generateCode
|
|
91
|
-
* @param
|
|
92
|
-
* @param
|
|
93
|
-
* @param
|
|
94
|
-
* @returns {void}
|
|
91
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
92
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
93
|
+
* @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
|
|
94
|
+
* @returns {void} Returns void if the code is successfully generated, or an error object if there was an issue.
|
|
95
95
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
96
96
|
* @description Obtaining a code to activate the user.
|
|
97
97
|
*/
|
|
@@ -106,11 +106,11 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
106
106
|
/**
|
|
107
107
|
* User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
|
|
108
108
|
* @handleName checkCode
|
|
109
|
-
* @param
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
112
|
-
* @param
|
|
113
|
-
* @returns {boolean}
|
|
109
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
110
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
111
|
+
* @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
|
|
112
|
+
* @param {string} code - Service code. Example: "123456".
|
|
113
|
+
* @returns {boolean} Returns true if the code is correct, or an error object if there was an issue.
|
|
114
114
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
115
115
|
* @description Checking the user activation code
|
|
116
116
|
*/
|
|
@@ -126,10 +126,10 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
126
126
|
/**
|
|
127
127
|
* User activate.
|
|
128
128
|
* @handleName activateUser
|
|
129
|
-
* @param
|
|
130
|
-
* @param
|
|
131
|
-
* @param
|
|
132
|
-
* @returns {boolean}
|
|
129
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
130
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
131
|
+
* @param {string} code - Service code. Example: "123456".
|
|
132
|
+
* @returns {boolean} Returns true if the user was successfully activated, or an error object if there was an issue.
|
|
133
133
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
134
134
|
* @description User activation.
|
|
135
135
|
*/
|
|
@@ -144,30 +144,30 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
144
144
|
/**
|
|
145
145
|
* User authorization.
|
|
146
146
|
* @handleName auth
|
|
147
|
-
* @param
|
|
148
|
-
* @param
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
* @param
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
* @param
|
|
169
|
-
* @param
|
|
170
|
-
* @returns {IAuthEntity}
|
|
147
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
148
|
+
* @param {IAuthPostBody} body - Objects contains auth information. Example:
|
|
149
|
+
{
|
|
150
|
+
"authData": [
|
|
151
|
+
{
|
|
152
|
+
"marker": "login",
|
|
153
|
+
"value": "example@oneentry.cloud"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"marker": "password",
|
|
157
|
+
"value": "12345"
|
|
158
|
+
}
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
* @param {{ marker: string; value: string | number }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value. Example:
|
|
162
|
+
[
|
|
163
|
+
{
|
|
164
|
+
"marker": "login",
|
|
165
|
+
"value": "user@example.com"
|
|
166
|
+
}
|
|
167
|
+
]
|
|
168
|
+
* @param {string} body.authData[index].marker - The marker for the authentication data. Example: "login".
|
|
169
|
+
* @param {string} body.authData[index].value - The value for the authentication data. Example: "user@example.com".
|
|
170
|
+
* @returns {IAuthEntity} Returns an auth entity object.
|
|
171
171
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
172
172
|
* @description User authorization.
|
|
173
173
|
*/
|
|
@@ -184,9 +184,9 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
184
184
|
/**
|
|
185
185
|
* Refresh token.
|
|
186
186
|
* @handleName refresh
|
|
187
|
-
* @param
|
|
188
|
-
* @param
|
|
189
|
-
* @returns {IAuthEntity}
|
|
187
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
188
|
+
* @param {string} token - Refresh token. Example: "abcdef123456".
|
|
189
|
+
* @returns {IAuthEntity} Returns an auth entity object with the following values: accessToken, refreshToken, user, and other auth-related data.
|
|
190
190
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
191
191
|
* @description User token refresh.
|
|
192
192
|
*/
|
|
@@ -203,9 +203,9 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
203
203
|
/**
|
|
204
204
|
* User account logout.
|
|
205
205
|
* @handleName logout
|
|
206
|
-
* @param
|
|
207
|
-
* @param
|
|
208
|
-
* @returns {boolean}
|
|
206
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
207
|
+
* @param {string} token - Refresh token. Example: "abcdef123456".
|
|
208
|
+
* @returns {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
209
209
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
210
210
|
* @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.
|
|
211
211
|
*/
|
|
@@ -226,8 +226,8 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
226
226
|
/**
|
|
227
227
|
* Logout of user account on all devices.
|
|
228
228
|
* @handleName logoutAll
|
|
229
|
-
* @param
|
|
230
|
-
* @returns {boolean}
|
|
229
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
230
|
+
* @returns {boolean} Returns true if the logout was successful, or an error object if there was an issue.
|
|
231
231
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
232
232
|
* @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.
|
|
233
233
|
*/
|
|
@@ -245,14 +245,14 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
245
245
|
/**
|
|
246
246
|
* Change password.
|
|
247
247
|
* @handleName changePassword
|
|
248
|
-
* @param
|
|
249
|
-
* @param
|
|
250
|
-
* @param
|
|
251
|
-
* @param
|
|
252
|
-
* @param
|
|
253
|
-
* @param
|
|
254
|
-
* @param
|
|
255
|
-
* @returns {boolean}
|
|
248
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
249
|
+
* @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
|
|
250
|
+
* @param {string} eventIdentifier - The text identifier of the event. Example: "reg".
|
|
251
|
+
* @param {string} type - Operation type (1 - for changing password, 2 - for recovery). Example: 1.
|
|
252
|
+
* @param {string} code - Service code. Example: "123456".
|
|
253
|
+
* @param {string} newPassword - New password. Example: "newPassword123".
|
|
254
|
+
* @param {string} [repeatPassword] - Optional variable contains repeat new password for validation. Example: "newPassword123".
|
|
255
|
+
* @returns {boolean} Returns true if the password was successfully changed, or an error object if there was an issue.
|
|
256
256
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
257
257
|
* @description User password change (only for tariffs with account activation and the Activation feature enabled).
|
|
258
258
|
*/
|
|
@@ -271,10 +271,10 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
271
271
|
/**
|
|
272
272
|
* Get all auth providers objects.
|
|
273
273
|
* @handleName getAuthProviders
|
|
274
|
-
* @param
|
|
275
|
-
* @param
|
|
276
|
-
* @param
|
|
277
|
-
* @returns {IAuthProvidersEntity[]}
|
|
274
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
275
|
+
* @param {number} [offset] - Parameter for pagination. Default: 0.
|
|
276
|
+
* @param {number} [limit] - Parameter for pagination. Default: 30.
|
|
277
|
+
* @returns {IAuthProvidersEntity[]} Returns an array of auth provider objects.
|
|
278
278
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
279
279
|
* @description Getting all objects of authorization providers.
|
|
280
280
|
*/
|
|
@@ -285,9 +285,9 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
285
285
|
/**
|
|
286
286
|
* Get one auth provider object by marker.
|
|
287
287
|
* @handleName getAuthProviderByMarker
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @returns {IAuthProvidersEntity}
|
|
288
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
289
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
290
|
+
* @returns {IAuthProvidersEntity} Returns an auth provider object.
|
|
291
291
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
292
292
|
* @description Getting a single authorization provider object by marker.
|
|
293
293
|
*/
|
|
@@ -298,8 +298,8 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
298
298
|
/**
|
|
299
299
|
* Getting active user sessions data.
|
|
300
300
|
* @handleName getActiveSessions
|
|
301
|
-
* @param
|
|
302
|
-
* @returns {IActiveSession[]}
|
|
301
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
302
|
+
* @returns {IActiveSession[]} Returns an auth provider object.
|
|
303
303
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
304
304
|
* @description Getting a single authorization provider object by marker.
|
|
305
305
|
*/
|
|
@@ -310,17 +310,17 @@ class AuthProviderApi extends asyncModules_1.default {
|
|
|
310
310
|
/**
|
|
311
311
|
* User registration (authorization) via OAUTH.
|
|
312
312
|
* @handleName oauthSignUp
|
|
313
|
-
* @param
|
|
314
|
-
* @param
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
* @param
|
|
323
|
-
* @returns {ISignUpEntity}
|
|
313
|
+
* @param {string} marker - The text identifier of the authorization provider. Example: "email".
|
|
314
|
+
* @param {IOAuthSignUpData} body - Object contains OAuth information for registration. Example:
|
|
315
|
+
{
|
|
316
|
+
"client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
|
|
317
|
+
"client_secret": "43434343434",
|
|
318
|
+
"code": "4/0AVMBsJgwewewewewewei4D7T6E_fbswxnL3g",
|
|
319
|
+
"grant_type": "authorization_code",
|
|
320
|
+
"redirect_uri": "http://localhost:3000"
|
|
321
|
+
}
|
|
322
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
323
|
+
* @returns {ISignUpEntity} Returns a user object.
|
|
324
324
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
325
325
|
* @description User registration (authorization) via OAUTH.
|
|
326
326
|
*/
|