oneentry 1.0.127 → 1.0.130

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 (73) hide show
  1. package/README.md +3 -0
  2. package/dist/admins/adminsApi.d.ts +20 -20
  3. package/dist/admins/adminsApi.js +20 -20
  4. package/dist/admins/adminsInterfaces.d.ts +43 -43
  5. package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
  6. package/dist/attribute-sets/attributeSetsApi.js +16 -16
  7. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
  8. package/dist/auth-provider/authProviderApi.d.ts +127 -127
  9. package/dist/auth-provider/authProviderApi.js +127 -127
  10. package/dist/auth-provider/authProvidersInterfaces.d.ts +208 -202
  11. package/dist/base/asyncModules.d.ts +17 -17
  12. package/dist/base/asyncModules.js +39 -27
  13. package/dist/base/result.d.ts +11 -11
  14. package/dist/base/result.js +12 -16
  15. package/dist/base/stateModule.d.ts +6 -5
  16. package/dist/base/stateModule.js +15 -14
  17. package/dist/base/syncModules.d.ts +42 -37
  18. package/dist/base/syncModules.js +103 -49
  19. package/dist/base/utils.d.ts +45 -22
  20. package/dist/blocks/blocksApi.d.ts +24 -24
  21. package/dist/blocks/blocksApi.js +24 -24
  22. package/dist/blocks/blocksInterfaces.d.ts +85 -85
  23. package/dist/events/eventsApi.d.ts +11 -11
  24. package/dist/events/eventsApi.js +11 -11
  25. package/dist/events/eventsInterfaces.d.ts +23 -23
  26. package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
  27. package/dist/file-uploading/fileUploadingApi.js +38 -38
  28. package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
  29. package/dist/forms/formsApi.d.ts +7 -7
  30. package/dist/forms/formsApi.js +7 -7
  31. package/dist/forms/formsInterfaces.d.ts +43 -31
  32. package/dist/forms-data/formsDataApi.d.ts +49 -37
  33. package/dist/forms-data/formsDataApi.js +49 -38
  34. package/dist/forms-data/formsDataInterfaces.d.ts +241 -219
  35. package/dist/general-types/generalTypesApi.d.ts +1 -1
  36. package/dist/general-types/generalTypesApi.js +1 -1
  37. package/dist/general-types/generalTypesInterfaces.d.ts +3 -3
  38. package/dist/index.d.ts +11 -10
  39. package/dist/index.js +11 -10
  40. package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
  41. package/dist/integration-collections/integrationCollectionsApi.js +76 -80
  42. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
  43. package/dist/locales/localesInterfaces.d.ts +8 -8
  44. package/dist/menus/menusApi.d.ts +3 -3
  45. package/dist/menus/menusApi.js +3 -3
  46. package/dist/menus/menusInterfaces.d.ts +39 -39
  47. package/dist/orders/ordersApi.d.ts +56 -56
  48. package/dist/orders/ordersApi.js +56 -56
  49. package/dist/orders/ordersInterfaces.d.ts +204 -198
  50. package/dist/pages/pagesApi.d.ts +60 -60
  51. package/dist/pages/pagesApi.js +60 -60
  52. package/dist/pages/pagesInterfaces.d.ts +133 -141
  53. package/dist/payments/paymentsApi.d.ts +15 -15
  54. package/dist/payments/paymentsApi.js +15 -15
  55. package/dist/payments/paymentsInterfaces.d.ts +58 -57
  56. package/dist/product-statuses/productStatusesApi.d.ts +7 -7
  57. package/dist/product-statuses/productStatusesApi.js +7 -7
  58. package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
  59. package/dist/products/productsApi.d.ts +240 -240
  60. package/dist/products/productsApi.js +240 -240
  61. package/dist/products/productsInterfaces.d.ts +311 -311
  62. package/dist/system/systemApi.d.ts +10 -10
  63. package/dist/system/systemApi.js +10 -10
  64. package/dist/templates/templatesApi.d.ts +8 -8
  65. package/dist/templates/templatesApi.js +8 -8
  66. package/dist/templates/templatesInterfaces.d.ts +22 -22
  67. package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
  68. package/dist/templates-preview/templatesPreviewApi.js +5 -5
  69. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
  70. package/dist/users/usersApi.d.ts +29 -29
  71. package/dist/users/usersApi.js +29 -29
  72. package/dist/users/usersInterfaces.d.ts +77 -77
  73. package/package.json +9 -8
@@ -20,59 +20,59 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
20
20
  /**
21
21
  * User registration.
22
22
  * @handleName signUp
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.
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.
76
76
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
77
77
  * @description User registration (❗️For a provider with user activation, the activation code is sent through the corresponding user notification method).
78
78
  */
@@ -80,10 +80,10 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
80
80
  /**
81
81
  * Getting a user activation code. The code is returned via the appropriate user notification method.
82
82
  * @handleName generateCode
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.
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.
87
87
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
88
88
  * @description Obtaining a code to activate the user.
89
89
  */
@@ -91,11 +91,11 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
91
91
  /**
92
92
  * User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
93
93
  * @handleName checkCode
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.
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.
99
99
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
100
100
  * @description Checking the user activation code
101
101
  */
@@ -103,10 +103,10 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
103
103
  /**
104
104
  * User activate.
105
105
  * @handleName activateUser
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.
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.
110
110
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
111
111
  * @description User activation.
112
112
  */
@@ -114,30 +114,30 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
114
114
  /**
115
115
  * User authorization.
116
116
  * @handleName auth
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.
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.
141
141
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
142
142
  * @description User authorization.
143
143
  */
@@ -145,9 +145,9 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
145
145
  /**
146
146
  * Refresh token.
147
147
  * @handleName refresh
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.
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.
151
151
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
152
152
  * @description User token refresh.
153
153
  */
@@ -155,9 +155,9 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
155
155
  /**
156
156
  * User account logout.
157
157
  * @handleName logout
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.
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.
161
161
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
162
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.
163
163
  */
@@ -165,8 +165,8 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
165
165
  /**
166
166
  * Logout of user account on all devices.
167
167
  * @handleName logoutAll
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.
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.
170
170
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
171
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.
172
172
  */
@@ -174,14 +174,14 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
174
174
  /**
175
175
  * Change password.
176
176
  * @handleName changePassword
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.
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.
185
185
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
186
186
  * @description User password change (only for tariffs with account activation and the Activation feature enabled).
187
187
  */
@@ -189,10 +189,10 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
189
189
  /**
190
190
  * Get all auth providers objects.
191
191
  * @handleName getAuthProviders
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.
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.
196
196
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
197
197
  * @description Getting all objects of authorization providers.
198
198
  */
@@ -200,18 +200,18 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
200
200
  /**
201
201
  * Get one auth provider object by marker.
202
202
  * @handleName getAuthProviderByMarker
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.
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.
206
206
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
207
207
  * @description Getting a single authorization provider object by marker.
208
208
  */
209
209
  getAuthProviderByMarker(marker: string, langCode?: string): Promise<IAuthProvidersEntity | IError>;
210
210
  /**
211
211
  * Getting active user sessions data.
212
- * @handleName getActiveSessions
213
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
214
- * @returns {IActiveSession[]} Returns an auth provider object.
212
+ * @handleName getActiveSessionsByMarker
213
+ * @param {string} marker - The text identifier of the authorization provider. Example: "email".
214
+ * @returns {IActiveSession[]} Returns an auth provider object.
215
215
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
216
216
  * @description Getting a single authorization provider object by marker.
217
217
  */
@@ -219,17 +219,17 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
219
219
  /**
220
220
  * User registration (authorization) via OAUTH.
221
221
  * @handleName oauthSignUp
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.
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.
233
233
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
234
234
  * @description User registration (authorization) via OAUTH.
235
235
  */