oneentry 1.0.173 → 1.0.175

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 (174) hide show
  1. package/changelog.md +35 -0
  2. package/dist/admins/adminsApi.d.ts +7 -7
  3. package/dist/admins/adminsApi.js +7 -7
  4. package/dist/admins/adminsInterfaces.d.ts +22 -22
  5. package/dist/attribute-sets/attributeSetsApi.d.ts +8 -8
  6. package/dist/attribute-sets/attributeSetsApi.js +8 -8
  7. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  8. package/dist/auth-provider/authProviderApi.d.ts +30 -30
  9. package/dist/auth-provider/authProviderApi.js +30 -30
  10. package/dist/auth-provider/authProviderSchemas.d.ts +1 -1
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +54 -53
  12. package/dist/base/asyncModules.d.ts +6 -6
  13. package/dist/base/asyncModules.js +6 -6
  14. package/dist/base/syncModules.d.ts +1 -1
  15. package/dist/base/syncModules.js +1 -1
  16. package/dist/base/utils.d.ts +3 -3
  17. package/dist/base/validation.d.ts +1 -1
  18. package/dist/base/validation.js +1 -1
  19. package/dist/blocks/blocksApi.d.ts +35 -35
  20. package/dist/blocks/blocksApi.js +35 -35
  21. package/dist/blocks/blocksInterfaces.d.ts +55 -55
  22. package/dist/discounts/discountsApi.d.ts +14 -14
  23. package/dist/discounts/discountsApi.js +14 -14
  24. package/dist/discounts/discountsInterfaces.d.ts +52 -52
  25. package/dist/events/eventsApi.d.ts +13 -13
  26. package/dist/events/eventsApi.js +13 -13
  27. package/dist/events/eventsInterfaces.d.ts +18 -18
  28. package/dist/file-uploading/fileUploadingApi.d.ts +14 -14
  29. package/dist/file-uploading/fileUploadingApi.js +14 -14
  30. package/dist/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  31. package/dist/filters/filtersApi.d.ts +1 -1
  32. package/dist/filters/filtersApi.js +1 -1
  33. package/dist/filters/filtersInterfaces.d.ts +7 -7
  34. package/dist/forms/formsApi.d.ts +3 -3
  35. package/dist/forms/formsApi.js +3 -3
  36. package/dist/forms/formsInterfaces.d.ts +42 -42
  37. package/dist/forms-data/formsDataApi.d.ts +14 -14
  38. package/dist/forms-data/formsDataApi.js +14 -14
  39. package/dist/forms-data/formsDataInterfaces.d.ts +67 -68
  40. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  41. package/dist/integration-collections/integrationCollectionsApi.d.ts +20 -20
  42. package/dist/integration-collections/integrationCollectionsApi.js +20 -20
  43. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  44. package/dist/locales/localesInterfaces.d.ts +8 -8
  45. package/dist/menus/menusApi.d.ts +1 -1
  46. package/dist/menus/menusApi.js +1 -1
  47. package/dist/menus/menusInterfaces.d.ts +12 -12
  48. package/dist/orders/ordersApi.d.ts +26 -26
  49. package/dist/orders/ordersApi.js +26 -26
  50. package/dist/orders/ordersInterfaces.d.ts +99 -99
  51. package/dist/pages/pagesApi.d.ts +6 -6
  52. package/dist/pages/pagesApi.js +6 -6
  53. package/dist/pages/pagesInterfaces.d.ts +46 -46
  54. package/dist/payments/paymentsApi.d.ts +8 -8
  55. package/dist/payments/paymentsApi.js +8 -8
  56. package/dist/payments/paymentsInterfaces.d.ts +31 -31
  57. package/dist/product-statuses/productStatusesApi.d.ts +2 -2
  58. package/dist/product-statuses/productStatusesApi.js +2 -2
  59. package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
  60. package/dist/products/productsApi.d.ts +37 -37
  61. package/dist/products/productsApi.js +36 -36
  62. package/dist/products/productsInterfaces.d.ts +96 -96
  63. package/dist/search/searchApi.d.ts +3 -3
  64. package/dist/search/searchApi.js +3 -3
  65. package/dist/search/searchInterfaces.d.ts +4 -4
  66. package/dist/sitemap/sitemapApi.d.ts +1 -1
  67. package/dist/sitemap/sitemapApi.js +1 -1
  68. package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
  69. package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
  70. package/dist/subscriptions/subscriptionsApi.js +3 -3
  71. package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  72. package/dist/templates/templatesApi.d.ts +2 -2
  73. package/dist/templates/templatesApi.js +2 -2
  74. package/dist/templates/templatesInterfaces.d.ts +10 -10
  75. package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
  76. package/dist/templates-preview/templatesPreviewApi.js +1 -1
  77. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  78. package/dist/user-activity/userActivityApi.d.ts +1 -1
  79. package/dist/user-activity/userActivityApi.js +1 -1
  80. package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
  81. package/dist/user-groups/userGroupsApi.d.ts +1 -1
  82. package/dist/user-groups/userGroupsApi.js +1 -1
  83. package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
  84. package/dist/users/usersApi.d.ts +9 -9
  85. package/dist/users/usersApi.js +9 -9
  86. package/dist/users/usersInterfaces.d.ts +40 -39
  87. package/dist/users/usersSchemas.d.ts +1 -1
  88. package/esm/admins/adminsApi.d.ts +7 -7
  89. package/esm/admins/adminsApi.js +7 -7
  90. package/esm/admins/adminsInterfaces.d.ts +22 -22
  91. package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
  92. package/esm/attribute-sets/attributeSetsApi.js +8 -8
  93. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  94. package/esm/auth-provider/authProviderApi.d.ts +30 -30
  95. package/esm/auth-provider/authProviderApi.js +30 -30
  96. package/esm/auth-provider/authProviderSchemas.d.ts +1 -1
  97. package/esm/auth-provider/authProvidersInterfaces.d.ts +54 -53
  98. package/esm/base/asyncModules.d.ts +6 -6
  99. package/esm/base/asyncModules.js +6 -6
  100. package/esm/base/syncModules.d.ts +1 -1
  101. package/esm/base/syncModules.js +1 -1
  102. package/esm/base/utils.d.ts +3 -3
  103. package/esm/base/validation.d.ts +1 -1
  104. package/esm/base/validation.js +1 -1
  105. package/esm/blocks/blocksApi.d.ts +35 -35
  106. package/esm/blocks/blocksApi.js +35 -35
  107. package/esm/blocks/blocksInterfaces.d.ts +55 -55
  108. package/esm/discounts/discountsApi.d.ts +14 -14
  109. package/esm/discounts/discountsApi.js +14 -14
  110. package/esm/discounts/discountsInterfaces.d.ts +52 -52
  111. package/esm/events/eventsApi.d.ts +13 -13
  112. package/esm/events/eventsApi.js +13 -13
  113. package/esm/events/eventsInterfaces.d.ts +18 -18
  114. package/esm/file-uploading/fileUploadingApi.d.ts +14 -14
  115. package/esm/file-uploading/fileUploadingApi.js +14 -14
  116. package/esm/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  117. package/esm/filters/filtersApi.d.ts +1 -1
  118. package/esm/filters/filtersApi.js +1 -1
  119. package/esm/filters/filtersInterfaces.d.ts +7 -7
  120. package/esm/forms/formsApi.d.ts +3 -3
  121. package/esm/forms/formsApi.js +3 -3
  122. package/esm/forms/formsInterfaces.d.ts +42 -42
  123. package/esm/forms-data/formsDataApi.d.ts +14 -14
  124. package/esm/forms-data/formsDataApi.js +14 -14
  125. package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
  126. package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
  127. package/esm/integration-collections/integrationCollectionsApi.d.ts +20 -20
  128. package/esm/integration-collections/integrationCollectionsApi.js +20 -20
  129. package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  130. package/esm/locales/localesInterfaces.d.ts +8 -8
  131. package/esm/menus/menusApi.d.ts +1 -1
  132. package/esm/menus/menusApi.js +1 -1
  133. package/esm/menus/menusInterfaces.d.ts +12 -12
  134. package/esm/orders/ordersApi.d.ts +26 -26
  135. package/esm/orders/ordersApi.js +26 -26
  136. package/esm/orders/ordersInterfaces.d.ts +99 -99
  137. package/esm/pages/pagesApi.d.ts +6 -6
  138. package/esm/pages/pagesApi.js +6 -6
  139. package/esm/pages/pagesInterfaces.d.ts +46 -46
  140. package/esm/payments/paymentsApi.d.ts +8 -8
  141. package/esm/payments/paymentsApi.js +8 -8
  142. package/esm/payments/paymentsInterfaces.d.ts +31 -31
  143. package/esm/product-statuses/productStatusesApi.d.ts +2 -2
  144. package/esm/product-statuses/productStatusesApi.js +2 -2
  145. package/esm/product-statuses/productStatusesInterfaces.d.ts +8 -8
  146. package/esm/products/productsApi.d.ts +37 -37
  147. package/esm/products/productsApi.js +36 -36
  148. package/esm/products/productsInterfaces.d.ts +96 -96
  149. package/esm/search/searchApi.d.ts +3 -3
  150. package/esm/search/searchApi.js +3 -3
  151. package/esm/search/searchInterfaces.d.ts +4 -4
  152. package/esm/sitemap/sitemapApi.d.ts +1 -1
  153. package/esm/sitemap/sitemapApi.js +1 -1
  154. package/esm/sitemap/sitemapInterfaces.d.ts +2 -2
  155. package/esm/subscriptions/subscriptionsApi.d.ts +3 -3
  156. package/esm/subscriptions/subscriptionsApi.js +3 -3
  157. package/esm/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  158. package/esm/templates/templatesApi.d.ts +2 -2
  159. package/esm/templates/templatesApi.js +2 -2
  160. package/esm/templates/templatesInterfaces.d.ts +10 -10
  161. package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
  162. package/esm/templates-preview/templatesPreviewApi.js +1 -1
  163. package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  164. package/esm/user-activity/userActivityApi.d.ts +1 -1
  165. package/esm/user-activity/userActivityApi.js +1 -1
  166. package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
  167. package/esm/user-groups/userGroupsApi.d.ts +1 -1
  168. package/esm/user-groups/userGroupsApi.js +1 -1
  169. package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
  170. package/esm/users/usersApi.d.ts +9 -9
  171. package/esm/users/usersApi.js +9 -9
  172. package/esm/users/usersInterfaces.d.ts +40 -39
  173. package/esm/users/usersSchemas.d.ts +1 -1
  174. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import type { IAuthData, IAuthFormData, INotificationData } from '../auth-provider/authProvidersInterfaces';
1
+ import type { IAuthData, INotificationData } from '../auth-provider/authProvidersInterfaces';
2
2
  import type { IError, IRating, IVectorSearchResponse } from '../base/utils';
3
3
  import type { IFormConfig } from '../forms/formsInterfaces';
4
4
  import type { FormDataType } from '../forms-data/formsDataInterfaces';
@@ -64,7 +64,7 @@ interface IUsersApi {
64
64
  ]
65
65
  * @param {string} body.authData[index].marker - Identifies the field being used. Example: "email_reg".
66
66
  * @param {string} body.authData[index].value - Contains the value of the field. Example: "example@oneentry.cloud".
67
- * @param {string} body.formData - Contains additional data for the user.
67
+ * @param {FormDataType | FormDataType[]} body.formData - Form fields of the user. Field values: {@link FormDataType} — a value shaped by the field type (a string, a date object, a text object, a list, a file descriptor), not only a string. A file goes in as the descriptor `FileUploading.upload` returns: these methods do not upload a `File`/`Blob` themselves.
68
68
  * @example
69
69
  [
70
70
  {
@@ -75,7 +75,7 @@ interface IUsersApi {
75
75
  ]
76
76
  * @param {string} body.formData[index].marker - The marker of the field. Example: "last_name".
77
77
  * @param {string} body.formData[index].type - The type of the field. Example: "string".
78
- * @param {string} body.formData[index].value - The value of the field. Example: "Username".
78
+ * @param {unknown} body.formData[index].value - The value of the field, shaped by its type. Example: "Username".
79
79
  * @param {string} body.notificationData - The notification data.
80
80
  * @example
81
81
  {
@@ -164,7 +164,7 @@ interface IUsersApi {
164
164
  /**
165
165
  * Remove an item from the cart.
166
166
  * @handleName removeCartItem
167
- * @param {number} productId - Product identifier. Example: 12345.
167
+ * @param {number} productId - Product ID. Example: 12345.
168
168
  * @returns {Promise<ICartResponse | IError>} A promise resolving to the updated cart, or an error.
169
169
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
170
170
  * @description This method requires user authorization (or a guest context).
@@ -203,7 +203,7 @@ interface IUsersApi {
203
203
  /**
204
204
  * Remove an item from the wishlist.
205
205
  * @handleName removeWishlistItem
206
- * @param {number} productId - Product identifier. Example: 12345.
206
+ * @param {number} productId - Product ID. Example: 12345.
207
207
  * @returns {Promise<IWishlistResponse | IError>} A promise resolving to the updated wishlist, or an error.
208
208
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
209
209
  * @description This method requires user authorization (or a guest context).
@@ -213,10 +213,10 @@ interface IUsersApi {
213
213
  /**
214
214
  * Semantic (vector) search for users.
215
215
  * @handleName getUsersByVectorSearch
216
- * @param {IUsersVectorSearch} body - Vector search body. Example: `{ queryText: "john" }`.
216
+ * @param {IUsersVectorSearch} body - Vector search parameters. Example: `{ queryText: "john" }`.
217
217
  * @param {string} [langCode] - Language code. Default: "en_US".
218
- * @param {number} [offset] - Parameter for pagination. Default: 0.
219
- * @param {number} [limit] - Parameter for pagination. Default: 30.
218
+ * @param {number} [offset] - Number of records to skip. Default: 0.
219
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
220
220
  * @returns {Promise<IVectorSearchResponse<IUsersResponse> | IError>} A promise resolving to a users response (items + total), or an error.
221
221
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
222
222
  * @description This method performs a semantic (vector) search for users. It requires user authorization.
@@ -229,8 +229,8 @@ interface IUsersApi {
229
229
  * @interface IUsersVectorSearch
230
230
  * @property {string} queryText - Natural-language search query. Example: "john".
231
231
  * @property {number} [vectorDistanceThreshold] - Override of the cosine distance threshold (0..2). Example: 0.3.
232
- * @property {number} [maxHits] - Top-K candidates fetched before pagination. Default: 100. Max: 500. Example: 10.
233
- * @property {boolean} [debug] - When true, each returned item gets a `distance` field. Example: false.
232
+ * @property {number} [maxHits] - Number of top candidates fetched before pagination. Default: 100. Maximum: 500. Example: 10.
233
+ * @property {boolean} [debug] - When `true`, each returned item gets a `distance` field. Example: false.
234
234
  * @description Body for the users vector/search endpoint.
235
235
  */
236
236
  interface IUsersVectorSearch {
@@ -241,7 +241,7 @@ interface IUsersVectorSearch {
241
241
  }
242
242
  /**
243
243
  * @interface IUsersResponse
244
- * @property {IUserEntity[]} items - Array of found user objects.
244
+ * @property {IUserEntity[]} items - Users that match the query.
245
245
  * @property {number} total - Total number of found records. Example: 100.
246
246
  * @description This interface defines the structure of a response containing multiple user entities, including the total count and an array of user items.
247
247
  */
@@ -251,10 +251,10 @@ interface IUsersResponse {
251
251
  }
252
252
  /**
253
253
  * @interface IUserEntity
254
- * @property {number} id - Object identifier. Example: 12345.
255
- * @property {string} identifier - Text identifier for record field. Example: "user_12345".
256
- * @property {string} authProviderIdentifier - Text identifier of the authentication provider. Example: "auth_provider_12345".
257
- * @property {FormDataType[]} formData - Array of data form objects with the following values.
254
+ * @property {number} id - Object ID. Example: 12345.
255
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "user_12345".
256
+ * @property {string} authProviderIdentifier - Marker of the authentication provider. Example: "auth_provider_12345".
257
+ * @property {FormDataType[]} formData - Form fields with their values.
258
258
  * @example
259
259
  [
260
260
  {
@@ -263,21 +263,21 @@ interface IUsersResponse {
263
263
  "value": "Username"
264
264
  }
265
265
  ]
266
- * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
267
- * @property {string} total - Total value. Example: "0".
268
- * @property {Array<string | number>} groups - Array of user groups.
266
+ * @property {string} formIdentifier - Marker of the form. Example: "form_12345".
267
+ * @property {string} [total] - Deprecated, do not rely on it. A service counter that leaks into the response of a single user: always `"1"`, it carries no data about the user. The API reference does not describe it, and the field may disappear from the response. Example: "1".
268
+ * @property {Array<string | number>} groups - User groups.
269
269
  * @example
270
270
  [
271
271
  "group_1",
272
272
  "group_2"
273
273
  ]
274
- * @property {object} state - Object containing additional user state information.
274
+ * @property {object} state - Custom key-value data stored with the user.
275
275
  * @example
276
276
  {
277
277
  "key": "value"
278
278
  }
279
- * @property {Array<IFormConfig>} [moduleFormConfigs] - Optional array of form configuration objects associated with the user.
280
- * @property {IRating} [rating] - Rating data.
279
+ * @property {Array<IFormConfig>} [moduleFormConfigs] - Form configurations of the module associated with the user.
280
+ * @property {IRating} [rating] - Rating data: average value, likes and dislikes, and the calculation method.
281
281
  * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
282
282
  * @description Represents a user entity with various properties, including identifiers, form data, and user groups.
283
283
  */
@@ -287,7 +287,8 @@ interface IUserEntity {
287
287
  authProviderIdentifier: string;
288
288
  formData: FormDataType[];
289
289
  formIdentifier: string;
290
- total: string;
290
+ /** @deprecated Service counter leaking into the response, always `"1"`; the field may disappear. */
291
+ total?: string;
291
292
  groups: Array<string | number>;
292
293
  state: Record<string, unknown>;
293
294
  moduleFormConfigs?: Array<IFormConfig>;
@@ -296,9 +297,9 @@ interface IUserEntity {
296
297
  }
297
298
  /**
298
299
  * @interface IUserBody
299
- * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
300
- * @property {string} [langCode] - Language code for localization. Default: "en_US".
301
- * @property {IAuthData[]} [authData] - Array of authentication data objects with markers and values.
300
+ * @property {string} formIdentifier - Marker of the form. Example: "form_12345".
301
+ * @property {string} [langCode] - Language code. Default: "en_US".
302
+ * @property {IAuthData[]} [authData] - Authentication fields, each with a `marker` and a `value`.
302
303
  * @example
303
304
  [
304
305
  {
@@ -306,7 +307,7 @@ interface IUserEntity {
306
307
  "value": "12345"
307
308
  }
308
309
  ]
309
- * @property {IAuthFormData | IAuthFormData[]} [formData] - Form data object or array of form data objects.
310
+ * @property {FormDataType | FormDataType[]} [formData] - One form field object or an array of them. Field values: {@link FormDataType} — a value shaped by the field type (a string, a date object, a text object, a list, a file descriptor), not only a string. A file goes in as the descriptor `FileUploading.upload` returns: these methods do not upload a `File`/`Blob` themselves.
310
311
  * @example
311
312
  [
312
313
  {
@@ -320,14 +321,14 @@ interface IUserEntity {
320
321
  "value": "Doe"
321
322
  }
322
323
  ]
323
- * @property {object} [notificationData] - Object containing notification data, including email and phone information.
324
+ * @property {object} [notificationData] - Notification contacts: email and phone numbers.
324
325
  * @example
325
326
  {
326
327
  "email": "example@oneentry.cloud",
327
328
  "phonePush": ["+99999999999"],
328
329
  "phoneSMS": "+99999999999"
329
330
  }
330
- * @property {object} [state] - Object containing additional state information.
331
+ * @property {object} [state] - Custom key-value data stored with the user. Applied as a JSON Merge Patch: a key set to `null` is removed, other keys are overwritten, and omitted keys are kept.
331
332
  * @example
332
333
  {
333
334
  "key": "value"
@@ -338,15 +339,15 @@ interface IUserBody {
338
339
  formIdentifier: string;
339
340
  langCode?: string;
340
341
  authData?: IAuthData[];
341
- formData?: IAuthFormData | IAuthFormData[];
342
+ formData?: FormDataType | FormDataType[];
342
343
  notificationData?: INotificationData;
343
344
  state?: Record<string, unknown>;
344
345
  }
345
346
  /**
346
347
  * @interface ICartItem
347
- * @property {number} productId - Product identifier. Example: 1.
348
+ * @property {number} productId - Product ID. Example: 1.
348
349
  * @property {number} qty - Quantity of the product in the cart. Example: 2.
349
- * @property {string} [addedAt] - ISO date when the item was added. Example: "2026-05-30T10:00:00.000Z".
350
+ * @property {string} [addedAt] - Date and time the item was added, in ISO 8601 format. Example: "2026-05-30T10:00:00.000Z".
350
351
  * @description A single cart item.
351
352
  */
352
353
  interface ICartItem {
@@ -356,7 +357,7 @@ interface ICartItem {
356
357
  }
357
358
  /**
358
359
  * @interface ICartResponse
359
- * @property {ICartItem[]} items - Cart items.
360
+ * @property {ICartItem[]} items - Items in the cart.
360
361
  * @property {number} total - Total number of items in the cart. Example: 3.
361
362
  * @description The user's or guest's cart.
362
363
  */
@@ -366,7 +367,7 @@ interface ICartResponse {
366
367
  }
367
368
  /**
368
369
  * @interface ICartSet
369
- * @property {ICartItem[]} items - New cart items. Example: `[{ productId: 1, qty: 2 }]`.
370
+ * @property {ICartItem[]} items - New contents of the cart. Example: `[{ productId: 1, qty: 2 }]`.
370
371
  * @description Body for replacing the whole cart.
371
372
  */
372
373
  interface ICartSet {
@@ -374,7 +375,7 @@ interface ICartSet {
374
375
  }
375
376
  /**
376
377
  * @interface ICartAddItem
377
- * @property {number} productId - Product identifier. Example: 1.
378
+ * @property {number} productId - Product ID. Example: 1.
378
379
  * @property {number} qty - Quantity to add. Example: 2.
379
380
  * @description Body for adding a single item to the cart.
380
381
  */
@@ -384,8 +385,8 @@ interface ICartAddItem {
384
385
  }
385
386
  /**
386
387
  * @interface IWishlistItem
387
- * @property {number} productId - Product identifier. Example: 1.
388
- * @property {string} [addedAt] - ISO date when the item was added. Example: "2026-05-30T10:00:00.000Z".
388
+ * @property {number} productId - Product ID. Example: 1.
389
+ * @property {string} [addedAt] - Date and time the item was added, in ISO 8601 format. Example: "2026-05-30T10:00:00.000Z".
389
390
  * @description A single wishlist item.
390
391
  */
391
392
  interface IWishlistItem {
@@ -394,7 +395,7 @@ interface IWishlistItem {
394
395
  }
395
396
  /**
396
397
  * @interface IWishlistResponse
397
- * @property {IWishlistItem[]} items - Wishlist items.
398
+ * @property {IWishlistItem[]} items - Items in the wishlist.
398
399
  * @property {number} total - Total number of items in the wishlist. Example: 3.
399
400
  * @description The user's or guest's wishlist.
400
401
  */
@@ -404,7 +405,7 @@ interface IWishlistResponse {
404
405
  }
405
406
  /**
406
407
  * @interface IWishlistSet
407
- * @property {IWishlistItem[]} items - New wishlist items. Example: `[{ productId: 1 }]`.
408
+ * @property {IWishlistItem[]} items - New contents of the wishlist. Example: `[{ productId: 1 }]`.
408
409
  * @description Body for replacing the whole wishlist.
409
410
  */
410
411
  interface IWishlistSet {
@@ -412,7 +413,7 @@ interface IWishlistSet {
412
413
  }
413
414
  /**
414
415
  * @interface IWishlistAddItem
415
- * @property {number} productId - Product identifier. Example: 1.
416
+ * @property {number} productId - Product ID. Example: 1.
416
417
  * @description Body for adding a single item to the wishlist.
417
418
  */
418
419
  interface IWishlistAddItem {
@@ -13,7 +13,7 @@ export declare const UserResponseSchema: z.ZodObject<{
13
13
  authProviderIdentifier: z.ZodString;
14
14
  formData: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
15
15
  formIdentifier: z.ZodString;
16
- total: z.ZodString;
16
+ total: z.ZodOptional<z.ZodString>;
17
17
  groups: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
18
18
  state: z.ZodRecord<z.ZodString, z.ZodAny>;
19
19
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
@@ -25,7 +25,7 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
25
25
  /**
26
26
  * Get all admins objects with filters.
27
27
  * @handleName getAdminsInfo
28
- * @param {IFilterParams[]} [body] - Array of filter objects with search conditions. Default: [].
28
+ * @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
29
29
  * @example
30
30
  [
31
31
  {
@@ -39,12 +39,12 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
39
39
  "conditionValue": 3
40
40
  }
41
41
  ]
42
- * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
42
+ * @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
43
43
  * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
44
44
  * @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
45
45
  * @param {string} [langCode] - Language code. Default: "en_US".
46
- * @param {number} [offset] - Parameter for pagination. Default: 0.
47
- * @param {number} [limit] - Parameter for pagination. Default: 30.
46
+ * @param {number} [offset] - Number of records to skip. Default: 0.
47
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
48
48
  * @returns {Promise<IAdminEntity[] | IError>} Returns an array of admin objects.
49
49
  * @throws {IError} When isShell=false and an error occurs during the fetch
50
50
  * @see {@link https://js-sdk.oneentry.cloud/docs/admins/getAdminsInfo getAdminsInfo} documentation.
@@ -53,10 +53,10 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
53
53
  /**
54
54
  * Semantic (vector) search for admins.
55
55
  * @handleName getAdminsByVectorSearch
56
- * @param {IAdminsVectorSearch} body - Vector search body. Example: `{ queryText: "content manager" }`.
56
+ * @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
57
57
  * @param {string} [langCode] - Language code. Default: "en_US".
58
- * @param {number} [offset] - Parameter for pagination. Default: 0.
59
- * @param {number} [limit] - Parameter for pagination. Default: 30.
58
+ * @param {number} [offset] - Number of records to skip. Default: 0.
59
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
60
60
  * @returns {Promise<IVectorSearchResponse<IAdminsResponse> | IError>} Returns an object with an array of found admins and total count.
61
61
  * @throws {IError} When isShell=false and an error occurs during the fetch
62
62
  * @description This method performs a semantic (vector) search for admins.
@@ -24,7 +24,7 @@ export default class AdminsApi extends AsyncModules {
24
24
  /**
25
25
  * Get all admins objects with filters.
26
26
  * @handleName getAdminsInfo
27
- * @param {IFilterParams[]} [body] - Array of filter objects with search conditions. Default: [].
27
+ * @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
28
28
  * @example
29
29
  [
30
30
  {
@@ -38,12 +38,12 @@ export default class AdminsApi extends AsyncModules {
38
38
  "conditionValue": 3
39
39
  }
40
40
  ]
41
- * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
41
+ * @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
42
42
  * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
43
43
  * @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
44
44
  * @param {string} [langCode] - Language code. Default: "en_US".
45
- * @param {number} [offset] - Parameter for pagination. Default: 0.
46
- * @param {number} [limit] - Parameter for pagination. Default: 30.
45
+ * @param {number} [offset] - Number of records to skip. Default: 0.
46
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
47
47
  * @returns {Promise<IAdminEntity[] | IError>} Returns an array of admin objects.
48
48
  * @throws {IError} When isShell=false and an error occurs during the fetch
49
49
  * @see {@link https://js-sdk.oneentry.cloud/docs/admins/getAdminsInfo getAdminsInfo} documentation.
@@ -62,10 +62,10 @@ export default class AdminsApi extends AsyncModules {
62
62
  /**
63
63
  * Semantic (vector) search for admins.
64
64
  * @handleName getAdminsByVectorSearch
65
- * @param {IAdminsVectorSearch} body - Vector search body. Example: `{ queryText: "content manager" }`.
65
+ * @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
66
66
  * @param {string} [langCode] - Language code. Default: "en_US".
67
- * @param {number} [offset] - Parameter for pagination. Default: 0.
68
- * @param {number} [limit] - Parameter for pagination. Default: 30.
67
+ * @param {number} [offset] - Number of records to skip. Default: 0.
68
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
69
69
  * @returns {Promise<IVectorSearchResponse<IAdminsResponse> | IError>} Returns an object with an array of found admins and total count.
70
70
  * @throws {IError} When isShell=false and an error occurs during the fetch
71
71
  * @description This method performs a semantic (vector) search for admins.
@@ -9,7 +9,7 @@ interface IAdmins {
9
9
  /**
10
10
  * Get all admins objects with filters.
11
11
  * @handleName getAdminsInfo
12
- * @param {IFilterParams[]} [body] - Array of filter objects with search conditions. Default: [].
12
+ * @param {IFilterParams[]} [body] - Filter objects with search conditions. Default: `[]`.
13
13
  * @example
14
14
  [
15
15
  {
@@ -23,12 +23,12 @@ interface IAdmins {
23
23
  "conditionValue": 3
24
24
  }
25
25
  ]
26
- * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
26
+ * @param {string} [body.attributeMarker] - Marker of the attribute in the set. Example: "num".
27
27
  * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
28
28
  * @param {number | string | null} [body.conditionValue] - Value of the condition. Example: "new".
29
29
  * @param {string} [langCode] - Language code. Default: "en_US".
30
- * @param {number} [offset] - Parameter for pagination. Default: 0.
31
- * @param {number} [limit] - Parameter for pagination. Default: 30.
30
+ * @param {number} [offset] - Number of records to skip. Default: 0.
31
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
32
32
  * @returns {IAdminEntity[]} Returns an array of admin objects.
33
33
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
34
34
  */
@@ -36,10 +36,10 @@ interface IAdmins {
36
36
  /**
37
37
  * Semantic (vector) search for admins.
38
38
  * @handleName getAdminsByVectorSearch
39
- * @param {IAdminsVectorSearch} body - Vector search body. Example: `{ queryText: "content manager" }`.
39
+ * @param {IAdminsVectorSearch} body - Vector search parameters. Example: `{ queryText: "content manager" }`.
40
40
  * @param {string} [langCode] - Language code. Default: "en_US".
41
- * @param {number} [offset] - Parameter for pagination. Default: 0.
42
- * @param {number} [limit] - Parameter for pagination. Default: 30.
41
+ * @param {number} [offset] - Number of records to skip. Default: 0.
42
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
43
43
  * @returns {IVectorSearchResponse<IAdminsResponse>} Returns an object with an array of found admins, total count and indexReady.
44
44
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
45
45
  */
@@ -50,8 +50,8 @@ interface IAdmins {
50
50
  * @interface IAdminsVectorSearch
51
51
  * @property {string} queryText - Natural-language search query. Example: "content manager".
52
52
  * @property {number} [vectorDistanceThreshold] - Override of the cosine distance threshold (0..2). Example: 0.3.
53
- * @property {number} [maxHits] - Top-K candidates fetched before pagination. Default: 100. Max: 500. Example: 10.
54
- * @property {boolean} [debug] - When true, each returned item gets a `distance` field. Example: false.
53
+ * @property {number} [maxHits] - Number of top candidates fetched before pagination. Default: 100. Maximum: 500. Example: 10.
54
+ * @property {boolean} [debug] - When `true`, each returned item gets a `distance` field. Example: false.
55
55
  * @description Body for the admins vector/search endpoint.
56
56
  */
57
57
  interface IAdminsVectorSearch {
@@ -62,7 +62,7 @@ interface IAdminsVectorSearch {
62
62
  }
63
63
  /**
64
64
  * @interface IAdminsResponse
65
- * @property {IAdminEntity[]} items - Array of found admin objects.
65
+ * @property {IAdminEntity[]} items - Admins that match the query.
66
66
  * @property {number} total - Total number of found records. Example: 100.
67
67
  * @description This interface defines the structure of a response containing multiple admin entities, including the total count and an array of admin items.
68
68
  */
@@ -73,12 +73,12 @@ interface IAdminsResponse {
73
73
  /**
74
74
  * Interface representing a Position entity.
75
75
  * @interface IPosition
76
- * @property {number} id - The unique identifier of the position. Example: 1764.
76
+ * @property {number} id - ID of the object. Example: 1764.
77
77
  * @property {boolean} [isLocked] - Indicates whether the position is locked or not. Example: false.
78
78
  * @property {number} objectId - The unique identifier of the object. Example: 120.
79
79
  * @property {number} [objectCategoryId] - The unique identifier of the object's category. Example: 5.
80
80
  * @property {string} objectType - The type of the object. Example: "admin".
81
- * @property {number} position - The position of the object. Example: 192.
81
+ * @property {number} position - Position of the object, used for sorting. Example: 192.
82
82
  * @description This interface outlines the properties associated with a position within a system.
83
83
  */
84
84
  interface IPosition {
@@ -92,13 +92,13 @@ interface IPosition {
92
92
  /**
93
93
  * Interface representing an Admin Entity.
94
94
  * @interface IAdminEntity
95
- * @property {number} id - The identifier of the object. Example: 1764.
96
- * @property {number | null} attributeSetId - The identifier of the attribute set being used. Example: 120.
97
- * @property {string} identifier - The textual identifier for the record field. Example: "admin1".
98
- * @property {string | null} attributeSetIdentifier - The identifier of the attribute set. Example: "admins".
99
- * @property {number | null} position - Position number (for sorting). Example: 1.
100
- * @property {boolean} isSync - Page indexing flag (true or false). Example: true.
101
- * @property {IAttributeValues} attributeValues - Array of attribute values from the index (presented as a pair of user attribute identifier: attribute value).
95
+ * @property {number} id - Object ID. Example: 1764.
96
+ * @property {number | null} attributeSetId - ID of the attribute set in use. Example: 120.
97
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "admin1".
98
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set. Example: "admins".
99
+ * @property {number | null} position - Position used for sorting. Example: 1.
100
+ * @property {boolean} isSync - Whether the page is indexed. Example: true.
101
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
102
102
  * @example
103
103
  [
104
104
  {
@@ -108,7 +108,7 @@ interface IPosition {
108
108
  }
109
109
  }
110
110
  ]
111
- * @property {IFormConfig[]} [moduleFormConfigs] - Array of module form configurations associated with the admin.
111
+ * @property {IFormConfig[]} [moduleFormConfigs] - Form configurations of the module associated with the admin.
112
112
  * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
113
113
  * @description This interface captures the essential details and additional attributes of an admin entity.
114
114
  */
@@ -127,8 +127,8 @@ interface IAdminEntity {
127
127
  * Interface representing a query for fetching admin data.
128
128
  * @interface IAdminQuery
129
129
  * @property {string} langCode - Language code. Default: "en_US".
130
- * @property {number} limit - Parameter for pagination. Default: 30.
131
- * @property {number} offset - Parameter for pagination. Default: 0.
130
+ * @property {number} limit - Maximum number of records to return. Default: 30.
131
+ * @property {number} offset - Number of records to skip. Default: 0.
132
132
  * @description This interface defines the parameters required for querying admin data, including optional defaults.
133
133
  */
134
134
  interface IAdminQuery {
@@ -24,10 +24,10 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
24
24
  * Getting all attribute sets objects.
25
25
  * @handleName getAttributes
26
26
  * @param {string} [langCode] - Language code. Default: "en_US".
27
- * @param {number} [offset] - parameter offset of record selection. Default: 0.
28
- * @param {number} [limit] - parameter limiting the selection of records. Default: 30.
29
- * @param {number} [typeId] - identifier of the attribute set type. Default: null.
30
- * @param {string} [sortBy] - identifier of the attribute set type. Default: "id".
27
+ * @param {number} [offset] - Number of records to skip. Default: 0.
28
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
29
+ * @param {number} [typeId] - ID of the attribute set type to filter by. Default: null.
30
+ * @param {string} [sortBy] - Field to sort by: `id` or `position`. Default: "id".
31
31
  * @returns {Promise<IAttributesSetsResponse | IError>} Returns object with array of IAttributeSetsEntity and total items count.
32
32
  * @throws {IError} When isShell=false and an error occurs during the fetch
33
33
  * @see {@link https://js-sdk.oneentry.cloud/docs/attribute-sets/getAttributes getAttributes} documentation.
@@ -36,7 +36,7 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
36
36
  /**
37
37
  * Getting all attributes with data from the attribute set.
38
38
  * @handleName getAttributesByMarker
39
- * @param {string} marker - Attribute marker. Example: "productAttributes".
39
+ * @param {string} marker - Marker of the attribute. Example: "productAttributes".
40
40
  * @param {string} [langCode] - Language code. Default: "en_US".
41
41
  * @returns {Promise<IAttributesSetsEntity[] | IError>} Returns an array of Attributes objects.
42
42
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -46,8 +46,8 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
46
46
  /**
47
47
  * Get a single attribute with data from the attribute sets.
48
48
  * @handleName getSingleAttributeByMarkerSet
49
- * @param {string} setMarker - Text identifier (marker) of the attribute set. Example: "productAttributes".
50
- * @param {string} attributeMarker - Text identifier (marker) of the attribute in the set. Example: "color".
49
+ * @param {string} setMarker - Marker of the attribute set. Example: "productAttributes".
50
+ * @param {string} attributeMarker - Marker of the attribute in the set. Example: "color".
51
51
  * @param {string} [langCode] - Language code. Default: "en_US".
52
52
  * @returns {Promise<IAttributesSetsEntity | IError>} Returns a single attribute object from the attribute set.
53
53
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -57,7 +57,7 @@ export default class AttributesSetsApi extends AsyncModules implements IAttribut
57
57
  /**
58
58
  * Getting a single object from a set of attributes by marker.
59
59
  * @handleName getAttributeSetByMarker
60
- * @param {string} marker - marker of the attribute set object. Example: "productAttributes".
60
+ * @param {string} marker - Marker of the attribute set. Example: "productAttributes".
61
61
  * @param {string} [langCode] - Language code. Default: "en_US".
62
62
  * @returns {Promise<IAttributeSetsEntity | IError>} Returns one object of the attribute set.
63
63
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -24,10 +24,10 @@ export default class AttributesSetsApi extends AsyncModules {
24
24
  * Getting all attribute sets objects.
25
25
  * @handleName getAttributes
26
26
  * @param {string} [langCode] - Language code. Default: "en_US".
27
- * @param {number} [offset] - parameter offset of record selection. Default: 0.
28
- * @param {number} [limit] - parameter limiting the selection of records. Default: 30.
29
- * @param {number} [typeId] - identifier of the attribute set type. Default: null.
30
- * @param {string} [sortBy] - identifier of the attribute set type. Default: "id".
27
+ * @param {number} [offset] - Number of records to skip. Default: 0.
28
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
29
+ * @param {number} [typeId] - ID of the attribute set type to filter by. Default: null.
30
+ * @param {string} [sortBy] - Field to sort by: `id` or `position`. Default: "id".
31
31
  * @returns {Promise<IAttributesSetsResponse | IError>} Returns object with array of IAttributeSetsEntity and total items count.
32
32
  * @throws {IError} When isShell=false and an error occurs during the fetch
33
33
  * @see {@link https://js-sdk.oneentry.cloud/docs/attribute-sets/getAttributes getAttributes} documentation.
@@ -51,7 +51,7 @@ export default class AttributesSetsApi extends AsyncModules {
51
51
  /**
52
52
  * Getting all attributes with data from the attribute set.
53
53
  * @handleName getAttributesByMarker
54
- * @param {string} marker - Attribute marker. Example: "productAttributes".
54
+ * @param {string} marker - Marker of the attribute. Example: "productAttributes".
55
55
  * @param {string} [langCode] - Language code. Default: "en_US".
56
56
  * @returns {Promise<IAttributesSetsEntity[] | IError>} Returns an array of Attributes objects.
57
57
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -66,8 +66,8 @@ export default class AttributesSetsApi extends AsyncModules {
66
66
  /**
67
67
  * Get a single attribute with data from the attribute sets.
68
68
  * @handleName getSingleAttributeByMarkerSet
69
- * @param {string} setMarker - Text identifier (marker) of the attribute set. Example: "productAttributes".
70
- * @param {string} attributeMarker - Text identifier (marker) of the attribute in the set. Example: "color".
69
+ * @param {string} setMarker - Marker of the attribute set. Example: "productAttributes".
70
+ * @param {string} attributeMarker - Marker of the attribute in the set. Example: "color".
71
71
  * @param {string} [langCode] - Language code. Default: "en_US".
72
72
  * @returns {Promise<IAttributesSetsEntity | IError>} Returns a single attribute object from the attribute set.
73
73
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -82,7 +82,7 @@ export default class AttributesSetsApi extends AsyncModules {
82
82
  /**
83
83
  * Getting a single object from a set of attributes by marker.
84
84
  * @handleName getAttributeSetByMarker
85
- * @param {string} marker - marker of the attribute set object. Example: "productAttributes".
85
+ * @param {string} marker - Marker of the attribute set. Example: "productAttributes".
86
86
  * @param {string} [langCode] - Language code. Default: "en_US".
87
87
  * @returns {Promise<IAttributeSetsEntity | IError>} Returns one object of the attribute set.
88
88
  * @throws {IError} When isShell=false and an error occurs during the fetch