oneentry 1.0.173 → 1.0.174

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 (166) hide show
  1. package/changelog.md +23 -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 +29 -29
  9. package/dist/auth-provider/authProviderApi.js +29 -29
  10. package/dist/auth-provider/authProvidersInterfaces.d.ts +52 -52
  11. package/dist/base/asyncModules.d.ts +6 -6
  12. package/dist/base/asyncModules.js +6 -6
  13. package/dist/base/syncModules.d.ts +1 -1
  14. package/dist/base/syncModules.js +1 -1
  15. package/dist/base/utils.d.ts +3 -3
  16. package/dist/blocks/blocksApi.d.ts +35 -35
  17. package/dist/blocks/blocksApi.js +35 -35
  18. package/dist/blocks/blocksInterfaces.d.ts +55 -55
  19. package/dist/discounts/discountsApi.d.ts +14 -14
  20. package/dist/discounts/discountsApi.js +14 -14
  21. package/dist/discounts/discountsInterfaces.d.ts +52 -52
  22. package/dist/events/eventsApi.d.ts +13 -13
  23. package/dist/events/eventsApi.js +13 -13
  24. package/dist/events/eventsInterfaces.d.ts +18 -18
  25. package/dist/file-uploading/fileUploadingApi.d.ts +14 -14
  26. package/dist/file-uploading/fileUploadingApi.js +14 -14
  27. package/dist/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  28. package/dist/filters/filtersApi.d.ts +1 -1
  29. package/dist/filters/filtersApi.js +1 -1
  30. package/dist/filters/filtersInterfaces.d.ts +7 -7
  31. package/dist/forms/formsApi.d.ts +3 -3
  32. package/dist/forms/formsApi.js +3 -3
  33. package/dist/forms/formsInterfaces.d.ts +42 -42
  34. package/dist/forms-data/formsDataApi.d.ts +14 -14
  35. package/dist/forms-data/formsDataApi.js +14 -14
  36. package/dist/forms-data/formsDataInterfaces.d.ts +67 -68
  37. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  38. package/dist/integration-collections/integrationCollectionsApi.d.ts +20 -20
  39. package/dist/integration-collections/integrationCollectionsApi.js +20 -20
  40. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  41. package/dist/locales/localesInterfaces.d.ts +8 -8
  42. package/dist/menus/menusApi.d.ts +1 -1
  43. package/dist/menus/menusApi.js +1 -1
  44. package/dist/menus/menusInterfaces.d.ts +12 -12
  45. package/dist/orders/ordersApi.d.ts +26 -26
  46. package/dist/orders/ordersApi.js +26 -26
  47. package/dist/orders/ordersInterfaces.d.ts +99 -99
  48. package/dist/pages/pagesApi.d.ts +6 -6
  49. package/dist/pages/pagesApi.js +6 -6
  50. package/dist/pages/pagesInterfaces.d.ts +46 -46
  51. package/dist/payments/paymentsApi.d.ts +8 -8
  52. package/dist/payments/paymentsApi.js +8 -8
  53. package/dist/payments/paymentsInterfaces.d.ts +31 -31
  54. package/dist/product-statuses/productStatusesApi.d.ts +2 -2
  55. package/dist/product-statuses/productStatusesApi.js +2 -2
  56. package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
  57. package/dist/products/productsApi.d.ts +37 -37
  58. package/dist/products/productsApi.js +36 -36
  59. package/dist/products/productsInterfaces.d.ts +96 -96
  60. package/dist/search/searchApi.d.ts +3 -3
  61. package/dist/search/searchApi.js +3 -3
  62. package/dist/search/searchInterfaces.d.ts +4 -4
  63. package/dist/sitemap/sitemapApi.d.ts +1 -1
  64. package/dist/sitemap/sitemapApi.js +1 -1
  65. package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
  66. package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
  67. package/dist/subscriptions/subscriptionsApi.js +3 -3
  68. package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  69. package/dist/templates/templatesApi.d.ts +2 -2
  70. package/dist/templates/templatesApi.js +2 -2
  71. package/dist/templates/templatesInterfaces.d.ts +10 -10
  72. package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
  73. package/dist/templates-preview/templatesPreviewApi.js +1 -1
  74. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  75. package/dist/user-activity/userActivityApi.d.ts +1 -1
  76. package/dist/user-activity/userActivityApi.js +1 -1
  77. package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
  78. package/dist/user-groups/userGroupsApi.d.ts +1 -1
  79. package/dist/user-groups/userGroupsApi.js +1 -1
  80. package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
  81. package/dist/users/usersApi.d.ts +7 -7
  82. package/dist/users/usersApi.js +7 -7
  83. package/dist/users/usersInterfaces.d.ts +34 -34
  84. package/esm/admins/adminsApi.d.ts +7 -7
  85. package/esm/admins/adminsApi.js +7 -7
  86. package/esm/admins/adminsInterfaces.d.ts +22 -22
  87. package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
  88. package/esm/attribute-sets/attributeSetsApi.js +8 -8
  89. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  90. package/esm/auth-provider/authProviderApi.d.ts +29 -29
  91. package/esm/auth-provider/authProviderApi.js +29 -29
  92. package/esm/auth-provider/authProvidersInterfaces.d.ts +52 -52
  93. package/esm/base/asyncModules.d.ts +6 -6
  94. package/esm/base/asyncModules.js +6 -6
  95. package/esm/base/syncModules.d.ts +1 -1
  96. package/esm/base/syncModules.js +1 -1
  97. package/esm/base/utils.d.ts +3 -3
  98. package/esm/blocks/blocksApi.d.ts +35 -35
  99. package/esm/blocks/blocksApi.js +35 -35
  100. package/esm/blocks/blocksInterfaces.d.ts +55 -55
  101. package/esm/discounts/discountsApi.d.ts +14 -14
  102. package/esm/discounts/discountsApi.js +14 -14
  103. package/esm/discounts/discountsInterfaces.d.ts +52 -52
  104. package/esm/events/eventsApi.d.ts +13 -13
  105. package/esm/events/eventsApi.js +13 -13
  106. package/esm/events/eventsInterfaces.d.ts +18 -18
  107. package/esm/file-uploading/fileUploadingApi.d.ts +14 -14
  108. package/esm/file-uploading/fileUploadingApi.js +14 -14
  109. package/esm/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  110. package/esm/filters/filtersApi.d.ts +1 -1
  111. package/esm/filters/filtersApi.js +1 -1
  112. package/esm/filters/filtersInterfaces.d.ts +7 -7
  113. package/esm/forms/formsApi.d.ts +3 -3
  114. package/esm/forms/formsApi.js +3 -3
  115. package/esm/forms/formsInterfaces.d.ts +42 -42
  116. package/esm/forms-data/formsDataApi.d.ts +14 -14
  117. package/esm/forms-data/formsDataApi.js +14 -14
  118. package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
  119. package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
  120. package/esm/integration-collections/integrationCollectionsApi.d.ts +20 -20
  121. package/esm/integration-collections/integrationCollectionsApi.js +20 -20
  122. package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  123. package/esm/locales/localesInterfaces.d.ts +8 -8
  124. package/esm/menus/menusApi.d.ts +1 -1
  125. package/esm/menus/menusApi.js +1 -1
  126. package/esm/menus/menusInterfaces.d.ts +12 -12
  127. package/esm/orders/ordersApi.d.ts +26 -26
  128. package/esm/orders/ordersApi.js +26 -26
  129. package/esm/orders/ordersInterfaces.d.ts +99 -99
  130. package/esm/pages/pagesApi.d.ts +6 -6
  131. package/esm/pages/pagesApi.js +6 -6
  132. package/esm/pages/pagesInterfaces.d.ts +46 -46
  133. package/esm/payments/paymentsApi.d.ts +8 -8
  134. package/esm/payments/paymentsApi.js +8 -8
  135. package/esm/payments/paymentsInterfaces.d.ts +31 -31
  136. package/esm/product-statuses/productStatusesApi.d.ts +2 -2
  137. package/esm/product-statuses/productStatusesApi.js +2 -2
  138. package/esm/product-statuses/productStatusesInterfaces.d.ts +8 -8
  139. package/esm/products/productsApi.d.ts +37 -37
  140. package/esm/products/productsApi.js +36 -36
  141. package/esm/products/productsInterfaces.d.ts +96 -96
  142. package/esm/search/searchApi.d.ts +3 -3
  143. package/esm/search/searchApi.js +3 -3
  144. package/esm/search/searchInterfaces.d.ts +4 -4
  145. package/esm/sitemap/sitemapApi.d.ts +1 -1
  146. package/esm/sitemap/sitemapApi.js +1 -1
  147. package/esm/sitemap/sitemapInterfaces.d.ts +2 -2
  148. package/esm/subscriptions/subscriptionsApi.d.ts +3 -3
  149. package/esm/subscriptions/subscriptionsApi.js +3 -3
  150. package/esm/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  151. package/esm/templates/templatesApi.d.ts +2 -2
  152. package/esm/templates/templatesApi.js +2 -2
  153. package/esm/templates/templatesInterfaces.d.ts +10 -10
  154. package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
  155. package/esm/templates-preview/templatesPreviewApi.js +1 -1
  156. package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  157. package/esm/user-activity/userActivityApi.d.ts +1 -1
  158. package/esm/user-activity/userActivityApi.js +1 -1
  159. package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
  160. package/esm/user-groups/userGroupsApi.d.ts +1 -1
  161. package/esm/user-groups/userGroupsApi.js +1 -1
  162. package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
  163. package/esm/users/usersApi.d.ts +7 -7
  164. package/esm/users/usersApi.js +7 -7
  165. package/esm/users/usersInterfaces.d.ts +34 -34
  166. package/package.json +2 -2
@@ -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 - Returned by the API as a numeric string, such as `"1"`. The API reference does not describe this field. Example: "0".
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
  */
@@ -296,9 +296,9 @@ interface IUserEntity {
296
296
  }
297
297
  /**
298
298
  * @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.
299
+ * @property {string} formIdentifier - Marker of the form. Example: "form_12345".
300
+ * @property {string} [langCode] - Language code. Default: "en_US".
301
+ * @property {IAuthData[]} [authData] - Authentication fields, each with a `marker` and a `value`.
302
302
  * @example
303
303
  [
304
304
  {
@@ -306,7 +306,7 @@ interface IUserEntity {
306
306
  "value": "12345"
307
307
  }
308
308
  ]
309
- * @property {IAuthFormData | IAuthFormData[]} [formData] - Form data object or array of form data objects.
309
+ * @property {IAuthFormData | IAuthFormData[]} [formData] - One form field object or an array of them.
310
310
  * @example
311
311
  [
312
312
  {
@@ -320,14 +320,14 @@ interface IUserEntity {
320
320
  "value": "Doe"
321
321
  }
322
322
  ]
323
- * @property {object} [notificationData] - Object containing notification data, including email and phone information.
323
+ * @property {object} [notificationData] - Notification contacts: email and phone numbers.
324
324
  * @example
325
325
  {
326
326
  "email": "example@oneentry.cloud",
327
327
  "phonePush": ["+99999999999"],
328
328
  "phoneSMS": "+99999999999"
329
329
  }
330
- * @property {object} [state] - Object containing additional state information.
330
+ * @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
331
  * @example
332
332
  {
333
333
  "key": "value"
@@ -344,9 +344,9 @@ interface IUserBody {
344
344
  }
345
345
  /**
346
346
  * @interface ICartItem
347
- * @property {number} productId - Product identifier. Example: 1.
347
+ * @property {number} productId - Product ID. Example: 1.
348
348
  * @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".
349
+ * @property {string} [addedAt] - Date and time the item was added, in ISO 8601 format. Example: "2026-05-30T10:00:00.000Z".
350
350
  * @description A single cart item.
351
351
  */
352
352
  interface ICartItem {
@@ -356,7 +356,7 @@ interface ICartItem {
356
356
  }
357
357
  /**
358
358
  * @interface ICartResponse
359
- * @property {ICartItem[]} items - Cart items.
359
+ * @property {ICartItem[]} items - Items in the cart.
360
360
  * @property {number} total - Total number of items in the cart. Example: 3.
361
361
  * @description The user's or guest's cart.
362
362
  */
@@ -366,7 +366,7 @@ interface ICartResponse {
366
366
  }
367
367
  /**
368
368
  * @interface ICartSet
369
- * @property {ICartItem[]} items - New cart items. Example: `[{ productId: 1, qty: 2 }]`.
369
+ * @property {ICartItem[]} items - New contents of the cart. Example: `[{ productId: 1, qty: 2 }]`.
370
370
  * @description Body for replacing the whole cart.
371
371
  */
372
372
  interface ICartSet {
@@ -374,7 +374,7 @@ interface ICartSet {
374
374
  }
375
375
  /**
376
376
  * @interface ICartAddItem
377
- * @property {number} productId - Product identifier. Example: 1.
377
+ * @property {number} productId - Product ID. Example: 1.
378
378
  * @property {number} qty - Quantity to add. Example: 2.
379
379
  * @description Body for adding a single item to the cart.
380
380
  */
@@ -384,8 +384,8 @@ interface ICartAddItem {
384
384
  }
385
385
  /**
386
386
  * @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".
387
+ * @property {number} productId - Product ID. Example: 1.
388
+ * @property {string} [addedAt] - Date and time the item was added, in ISO 8601 format. Example: "2026-05-30T10:00:00.000Z".
389
389
  * @description A single wishlist item.
390
390
  */
391
391
  interface IWishlistItem {
@@ -394,7 +394,7 @@ interface IWishlistItem {
394
394
  }
395
395
  /**
396
396
  * @interface IWishlistResponse
397
- * @property {IWishlistItem[]} items - Wishlist items.
397
+ * @property {IWishlistItem[]} items - Items in the wishlist.
398
398
  * @property {number} total - Total number of items in the wishlist. Example: 3.
399
399
  * @description The user's or guest's wishlist.
400
400
  */
@@ -404,7 +404,7 @@ interface IWishlistResponse {
404
404
  }
405
405
  /**
406
406
  * @interface IWishlistSet
407
- * @property {IWishlistItem[]} items - New wishlist items. Example: `[{ productId: 1 }]`.
407
+ * @property {IWishlistItem[]} items - New contents of the wishlist. Example: `[{ productId: 1 }]`.
408
408
  * @description Body for replacing the whole wishlist.
409
409
  */
410
410
  interface IWishlistSet {
@@ -412,7 +412,7 @@ interface IWishlistSet {
412
412
  }
413
413
  /**
414
414
  * @interface IWishlistAddItem
415
- * @property {number} productId - Product identifier. Example: 1.
415
+ * @property {number} productId - Product ID. Example: 1.
416
416
  * @description Body for adding a single item to the wishlist.
417
417
  */
418
418
  interface IWishlistAddItem {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.173",
3
+ "version": "1.0.174",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "module": "esm/index.js",
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "scripts": {
50
50
  "prepublishOnly": "node ../scripts/smoke-pack.js --files-only",
51
- "postpublish": "node ../scripts/verify-published.js --named defineOneEntry --expect 1.0.173"
51
+ "postpublish": "node ../scripts/verify-published.js --named defineOneEntry --expect 1.0.174"
52
52
  },
53
53
  "sideEffects": false,
54
54
  "files": [