oneentry 1.0.172 → 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 (176) hide show
  1. package/changelog.md +48 -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 +31 -31
  9. package/dist/auth-provider/authProviderApi.js +31 -31
  10. package/dist/auth-provider/authProvidersInterfaces.d.ts +54 -54
  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 +4 -4
  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 +16 -16
  26. package/dist/file-uploading/fileUploadingApi.js +14 -17
  27. package/dist/file-uploading/fileUploadingInterfaces.d.ts +30 -30
  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/index.d.ts +1 -1
  39. package/dist/index.js +1 -1
  40. package/dist/integration-collections/integrationCollectionsApi.d.ts +26 -30
  41. package/dist/integration-collections/integrationCollectionsApi.js +24 -28
  42. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +61 -60
  43. package/dist/locales/localesInterfaces.d.ts +8 -8
  44. package/dist/menus/menusApi.d.ts +1 -1
  45. package/dist/menus/menusApi.js +1 -1
  46. package/dist/menus/menusInterfaces.d.ts +12 -12
  47. package/dist/orders/ordersApi.d.ts +26 -26
  48. package/dist/orders/ordersApi.js +26 -26
  49. package/dist/orders/ordersInterfaces.d.ts +101 -101
  50. package/dist/pages/pagesApi.d.ts +6 -6
  51. package/dist/pages/pagesApi.js +6 -6
  52. package/dist/pages/pagesInterfaces.d.ts +46 -46
  53. package/dist/payments/paymentsApi.d.ts +8 -8
  54. package/dist/payments/paymentsApi.js +8 -8
  55. package/dist/payments/paymentsInterfaces.d.ts +31 -31
  56. package/dist/product-statuses/productStatusesApi.d.ts +2 -2
  57. package/dist/product-statuses/productStatusesApi.js +2 -2
  58. package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
  59. package/dist/products/productsApi.d.ts +37 -37
  60. package/dist/products/productsApi.js +36 -36
  61. package/dist/products/productsInterfaces.d.ts +100 -100
  62. package/dist/search/searchApi.d.ts +3 -3
  63. package/dist/search/searchApi.js +3 -3
  64. package/dist/search/searchInterfaces.d.ts +4 -4
  65. package/dist/sitemap/sitemapApi.d.ts +1 -1
  66. package/dist/sitemap/sitemapApi.js +1 -1
  67. package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
  68. package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
  69. package/dist/subscriptions/subscriptionsApi.js +3 -3
  70. package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  71. package/dist/system/systemApi.d.ts +4 -4
  72. package/dist/system/systemApi.js +2 -2
  73. package/dist/system/systemInterfaces.d.ts +11 -5
  74. package/dist/templates/templatesApi.d.ts +5 -5
  75. package/dist/templates/templatesApi.js +5 -5
  76. package/dist/templates/templatesInterfaces.d.ts +13 -13
  77. package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
  78. package/dist/templates-preview/templatesPreviewApi.js +1 -1
  79. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  80. package/dist/user-activity/userActivityApi.d.ts +1 -1
  81. package/dist/user-activity/userActivityApi.js +1 -1
  82. package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
  83. package/dist/user-groups/userGroupsApi.d.ts +1 -1
  84. package/dist/user-groups/userGroupsApi.js +1 -1
  85. package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
  86. package/dist/users/usersApi.d.ts +7 -7
  87. package/dist/users/usersApi.js +7 -7
  88. package/dist/users/usersInterfaces.d.ts +34 -34
  89. package/esm/admins/adminsApi.d.ts +7 -7
  90. package/esm/admins/adminsApi.js +7 -7
  91. package/esm/admins/adminsInterfaces.d.ts +22 -22
  92. package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
  93. package/esm/attribute-sets/attributeSetsApi.js +8 -8
  94. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  95. package/esm/auth-provider/authProviderApi.d.ts +31 -31
  96. package/esm/auth-provider/authProviderApi.js +31 -31
  97. package/esm/auth-provider/authProvidersInterfaces.d.ts +54 -54
  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 +4 -4
  103. package/esm/blocks/blocksApi.d.ts +35 -35
  104. package/esm/blocks/blocksApi.js +35 -35
  105. package/esm/blocks/blocksInterfaces.d.ts +55 -55
  106. package/esm/discounts/discountsApi.d.ts +14 -14
  107. package/esm/discounts/discountsApi.js +14 -14
  108. package/esm/discounts/discountsInterfaces.d.ts +52 -52
  109. package/esm/events/eventsApi.d.ts +13 -13
  110. package/esm/events/eventsApi.js +13 -13
  111. package/esm/events/eventsInterfaces.d.ts +18 -18
  112. package/esm/file-uploading/fileUploadingApi.d.ts +16 -16
  113. package/esm/file-uploading/fileUploadingApi.js +14 -17
  114. package/esm/file-uploading/fileUploadingInterfaces.d.ts +30 -30
  115. package/esm/filters/filtersApi.d.ts +1 -1
  116. package/esm/filters/filtersApi.js +1 -1
  117. package/esm/filters/filtersInterfaces.d.ts +7 -7
  118. package/esm/forms/formsApi.d.ts +3 -3
  119. package/esm/forms/formsApi.js +3 -3
  120. package/esm/forms/formsInterfaces.d.ts +42 -42
  121. package/esm/forms-data/formsDataApi.d.ts +14 -14
  122. package/esm/forms-data/formsDataApi.js +14 -14
  123. package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
  124. package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
  125. package/esm/index.d.ts +1 -1
  126. package/esm/index.js +1 -1
  127. package/esm/integration-collections/integrationCollectionsApi.d.ts +26 -30
  128. package/esm/integration-collections/integrationCollectionsApi.js +24 -28
  129. package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +61 -60
  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 +101 -101
  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 +100 -100
  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/system/systemApi.d.ts +4 -4
  159. package/esm/system/systemApi.js +2 -2
  160. package/esm/system/systemInterfaces.d.ts +11 -5
  161. package/esm/templates/templatesApi.d.ts +5 -5
  162. package/esm/templates/templatesApi.js +5 -5
  163. package/esm/templates/templatesInterfaces.d.ts +13 -13
  164. package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
  165. package/esm/templates-preview/templatesPreviewApi.js +1 -1
  166. package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  167. package/esm/user-activity/userActivityApi.d.ts +1 -1
  168. package/esm/user-activity/userActivityApi.js +1 -1
  169. package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
  170. package/esm/user-groups/userGroupsApi.d.ts +1 -1
  171. package/esm/user-groups/userGroupsApi.js +1 -1
  172. package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
  173. package/esm/users/usersApi.d.ts +7 -7
  174. package/esm/users/usersApi.js +7 -7
  175. package/esm/users/usersInterfaces.d.ts +34 -34
  176. package/package.json +2 -2
@@ -8,7 +8,7 @@ interface ISubscriptionsApi {
8
8
  /**
9
9
  * Create a new subscription and get a payment session for it.
10
10
  * @handleName subscribe
11
- * @param {ISubscribe} body - Subscription body. Example: `{ marker: "premium" }`.
11
+ * @param {ISubscribe} body - Subscription parameters. Example: `{ marker: "premium" }`.
12
12
  * @returns {Promise<ICreatedSubscription | IError>} Returns the created payment session for the subscription.
13
13
  * @throws {IError} When isShell=false and an error occurs during the fetch
14
14
  * @description This method requires user authorization.
@@ -18,7 +18,7 @@ interface ISubscriptionsApi {
18
18
  /**
19
19
  * Cancel a subscription.
20
20
  * @handleName cancelSubscription
21
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
21
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
22
22
  * @returns {Promise<boolean | IError>} Returns true if the subscription was cancelled, or an error object if there was an issue.
23
23
  * @throws {IError} When isShell=false and an error occurs during the fetch
24
24
  * @description This method requires user authorization.
@@ -46,7 +46,7 @@ interface ISubscriptionsApi {
46
46
  /**
47
47
  * Recover a subscription through the Stripe Billing Portal.
48
48
  * @handleName recoverSubscriptions
49
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
49
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
50
50
  * @returns {Promise<boolean | IError>} Returns true if the recovery request was accepted, or an error object if there was an issue.
51
51
  * @throws {IError} When isShell=false and an error occurs during the fetch
52
52
  * @description This method requires user authorization.
@@ -57,7 +57,7 @@ interface ISubscriptionsApi {
57
57
  /**
58
58
  * Body for creating a subscription.
59
59
  * @interface ISubscribe
60
- * @property {string} marker - Subscription marker. Example: "premium".
60
+ * @property {string} marker - Marker of the subscription. Example: "premium".
61
61
  * @description Body for creating a subscription.
62
62
  */
63
63
  interface ISubscribe {
@@ -66,7 +66,7 @@ interface ISubscribe {
66
66
  /**
67
67
  * Body for cancelling or recovering a subscription.
68
68
  * @interface ICancelSubscription
69
- * @property {string} marker - Subscription marker. Example: "premium".
69
+ * @property {string} marker - Marker of the subscription. Example: "premium".
70
70
  * @description Body for cancelling or recovering a subscription.
71
71
  */
72
72
  interface ICancelSubscription {
@@ -75,7 +75,7 @@ interface ICancelSubscription {
75
75
  /**
76
76
  * Created subscription payment session.
77
77
  * @interface ICreatedSubscription
78
- * @property {number} id - Payment session identifier. Example: 1.
78
+ * @property {number} id - Payment session ID. Example: 1.
79
79
  * @property {number} amount - Amount to be paid. Example: 100.
80
80
  * @property {string} paymentUrl - Payment page URL. Example: "https://checkout.stripe.com/c/pay/...".
81
81
  * @property {string} status - Payment session status. Example: "waiting".
@@ -90,13 +90,13 @@ interface ICreatedSubscription {
90
90
  /**
91
91
  * Available subscription.
92
92
  * @interface ISubscriptionEntity
93
- * @property {number} id - Subscription identifier. Example: 1.
94
- * @property {string} identifier - Subscription textual identifier (marker). Example: "test_subscription".
95
- * @property {ILocalizeInfo} localizeInfos - Localized subscription info for the current language. Example: `{ title: "Test subscription" }`.
96
- * @property {number[]} productIds - Identifiers of the products included in the subscription. Example: [3445].
93
+ * @property {number} id - Subscription ID. Example: 1.
94
+ * @property {string} identifier - Marker of the subscription. Example: "test_subscription".
95
+ * @property {ILocalizeInfo} localizeInfos - Localized data of the subscription in the current language. Example: `{ title: "Test subscription" }`.
96
+ * @property {number[]} productIds - IDs of the products included in the subscription. Example: [3445].
97
97
  * @property {number} periodInDays - Subscription period in days. Example: 30.
98
98
  * @property {number} paymentAccountId - Identifier of the payment account the subscription is billed through. Example: 1.
99
- * @property {boolean} isUsed - Indicates whether the subscription is in use. Example: false.
99
+ * @property {boolean} isUsed - Whether the subscription is in use. Example: false.
100
100
  * @description Subscription configured in the project, returned by getAllSubscriptions.
101
101
  */
102
102
  interface ISubscriptionEntity {
@@ -1,7 +1,7 @@
1
1
  import AsyncModules from '../base/asyncModules';
2
2
  import type StateModule from '../base/stateModule';
3
3
  import type { IError } from '../base/utils';
4
- import type { ISystemApi } from './systemInterfaces';
4
+ import type { IApiStatEntry, ISystemApi } from './systemInterfaces';
5
5
  /**
6
6
  * Controllers for working with system components
7
7
  * @handle /api/content/system
@@ -37,10 +37,10 @@ export default class SystemApi extends AsyncModules implements ISystemApi {
37
37
  /**
38
38
  * Getting the number of requests to API.
39
39
  * @handleName getApiStat
40
- * @returns {Promise<unknown | IError>} Return object with date and count.
40
+ * @returns {Promise<IApiStatEntry[] | IError>} Array of one-key objects `{ [YYYY-MM-DD]: count }`, one per day. Example: `[{ "2026-10-25": 17280 }, { "2026-10-26": 13671 }]`.
41
41
  * @throws {IError} When isShell=false and an error occurs during the fetch
42
- * @description Getting the number of requests to API.
42
+ * @description Getting the number of requests to API, per day.
43
43
  * @see {@link https://js-sdk.oneentry.cloud/docs/system/getApiStat getApiStat} documentation.
44
44
  */
45
- getApiStat(): Promise<unknown>;
45
+ getApiStat(): Promise<IApiStatEntry[] | IError>;
46
46
  }
@@ -46,9 +46,9 @@ class SystemApi extends asyncModules_1.default {
46
46
  /**
47
47
  * Getting the number of requests to API.
48
48
  * @handleName getApiStat
49
- * @returns {Promise<unknown | IError>} Return object with date and count.
49
+ * @returns {Promise<IApiStatEntry[] | IError>} Array of one-key objects `{ [YYYY-MM-DD]: count }`, one per day. Example: `[{ "2026-10-25": 17280 }, { "2026-10-26": 13671 }]`.
50
50
  * @throws {IError} When isShell=false and an error occurs during the fetch
51
- * @description Getting the number of requests to API.
51
+ * @description Getting the number of requests to API, per day.
52
52
  * @see {@link https://js-sdk.oneentry.cloud/docs/system/getApiStat getApiStat} documentation.
53
53
  */
54
54
  async getApiStat() {
@@ -19,11 +19,17 @@ interface ISystemApi {
19
19
  */
20
20
  test500(): Promise<unknown | IError>;
21
21
  /**
22
- * getApiStat
22
+ * Getting the number of requests to API.
23
23
  * @handleName getApiStat
24
- * @returns {unknown} Returns a Promise that resolves with any data.
25
- * @description This method getApiStat.
24
+ * @returns {Promise<IApiStatEntry[] | IError>} Array of one-key objects `{ [YYYY-MM-DD]: count }`, one per day. Example: `[{ "2026-10-25": 17280 }, { "2026-10-26": 13671 }]`.
25
+ * @description Getting the number of requests to API, per day.
26
26
  */
27
- getApiStat(): Promise<unknown>;
27
+ getApiStat(): Promise<IApiStatEntry[] | IError>;
28
28
  }
29
- export type { ISystemApi };
29
+ /**
30
+ * One day of API request statistics: a single key — the date `YYYY-MM-DD` — holding the number of requests.
31
+ * @typedef {Record<string, number>} IApiStatEntry
32
+ * @description Element of the array returned by getApiStat. Example: `{ "2026-10-26": 13671 }`.
33
+ */
34
+ type IApiStatEntry = Record<string, number>;
35
+ export type { IApiStatEntry, ISystemApi };
@@ -22,7 +22,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
22
22
  * Get all template objects grouped by types.
23
23
  * @handleName getAllTemplates
24
24
  * @param {string} [langCode] - Language code. Default: "en_US".
25
- * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
25
+ * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Object keyed by `BlockType`; each value is an array of `ITemplateEntity` of that type.
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description This function is designed to fetch organized template objects in groups based on their types.
28
28
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getAllTemplates getAllTemplates} documentation.
@@ -31,9 +31,9 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
31
31
  /**
32
32
  * Get template objects by type.
33
33
  * @handleName getTemplateByType
34
- * @param {BlockType} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
34
+ * @param {BlockType} type - Type of templates to fetch. Example: "product".
35
35
  * @param {string} [langCode] - Language code. Default: "en_US".
36
- * @returns {Promise<ITemplateEntity[] | IError>} Returns a TemplateEntity object.
36
+ * @returns {Promise<ITemplateEntity[] | IError>} Array of `ITemplateEntity` objects of the given type.
37
37
  * @throws {IError} When isShell=false and an error occurs during the fetch
38
38
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
39
39
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByType getTemplateByType} documentation.
@@ -42,9 +42,9 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
42
42
  /**
43
43
  * Get one template object by marker.
44
44
  * @handleName getTemplateByMarker
45
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
45
+ * @param {string} marker - Marker of the template to fetch. Example: "template_12345".
46
46
  * @param {string} [langCode] - Language code. Default: "en_US".
47
- * @returns {Promise<ITemplateEntity | IError>} Returns a TemplateEntity object
47
+ * @returns {Promise<ITemplateEntity | IError>} Returns an `ITemplateEntity` object
48
48
  * @throws {IError} When isShell=false and an error occurs during the fetch
49
49
  * @description Fetch a specific template object based on its unique marker.
50
50
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByMarker getTemplateByMarker} documentation.
@@ -60,7 +60,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
60
60
  * Get all template objects grouped by types.
61
61
  * @handleName getAllTemplates
62
62
  * @param {string} [langCode] - Language code. Default: "en_US".
63
- * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
63
+ * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Object keyed by `BlockType`; each value is an array of `ITemplateEntity` of that type.
64
64
  * @throws {IError} When isShell=false and an error occurs during the fetch
65
65
  * @description This function is designed to fetch organized template objects in groups based on their types.
66
66
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getAllTemplates getAllTemplates} documentation.
@@ -84,9 +84,9 @@ class TemplatesPreviewApi extends asyncModules_1.default {
84
84
  /**
85
85
  * Get template objects by type.
86
86
  * @handleName getTemplateByType
87
- * @param {BlockType} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
87
+ * @param {BlockType} type - Type of templates to fetch. Example: "product".
88
88
  * @param {string} [langCode] - Language code. Default: "en_US".
89
- * @returns {Promise<ITemplateEntity[] | IError>} Returns a TemplateEntity object.
89
+ * @returns {Promise<ITemplateEntity[] | IError>} Array of `ITemplateEntity` objects of the given type.
90
90
  * @throws {IError} When isShell=false and an error occurs during the fetch
91
91
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
92
92
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByType getTemplateByType} documentation.
@@ -100,9 +100,9 @@ class TemplatesPreviewApi extends asyncModules_1.default {
100
100
  /**
101
101
  * Get one template object by marker.
102
102
  * @handleName getTemplateByMarker
103
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
103
+ * @param {string} marker - Marker of the template to fetch. Example: "template_12345".
104
104
  * @param {string} [langCode] - Language code. Default: "en_US".
105
- * @returns {Promise<ITemplateEntity | IError>} Returns a TemplateEntity object
105
+ * @returns {Promise<ITemplateEntity | IError>} Returns an `ITemplateEntity` object
106
106
  * @throws {IError} When isShell=false and an error occurs during the fetch
107
107
  * @description Fetch a specific template object based on its unique marker.
108
108
  * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByMarker getTemplateByMarker} documentation.
@@ -9,7 +9,7 @@ interface ITemplatesApi {
9
9
  * Get all template objects grouped by types.
10
10
  * @handleName getAllTemplates
11
11
  * @param {string} [langCode] - Language code. Default: "en_US".
12
- * @returns {Record<BlockType, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
12
+ * @returns {Record<BlockType, ITemplateEntity[]>} Object keyed by `BlockType`; each value is an array of `ITemplateEntity` of that type.
13
13
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
14
14
  * @description This method gets all template objects grouped by types.
15
15
  */
@@ -17,9 +17,9 @@ interface ITemplatesApi {
17
17
  /**
18
18
  * Get template objects by type.
19
19
  * @handleName getTemplateByType
20
- * @param {BlockType} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
20
+ * @param {BlockType} type - Type of templates to fetch. Example: "product".
21
21
  * @param {string} [langCode] - Language code. Default: "en_US".
22
- * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
22
+ * @returns {ITemplateEntity[]} Array of `ITemplateEntity` objects of the given type.
23
23
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
24
24
  * @description This method gets template objects by type.
25
25
  */
@@ -27,9 +27,9 @@ interface ITemplatesApi {
27
27
  /**
28
28
  * Get one template object by id.
29
29
  * @handleName getTemplateByMarker
30
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
30
+ * @param {string} marker - Marker of the template to fetch. Example: "template_12345".
31
31
  * @param {string} [langCode] - Language code. Default: "en_US".
32
- * @returns {ITemplateEntity} Returns a TemplateEntity object
32
+ * @returns {ITemplateEntity} Returns an `ITemplateEntity` object
33
33
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
34
34
  * @description This method gets one template object by id.
35
35
  */
@@ -38,20 +38,20 @@ interface ITemplatesApi {
38
38
  /**
39
39
  * The template entity interface
40
40
  * @interface ITemplateEntity
41
- * @property {number} id - The unique identifier of the position. Example: 12345.
42
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "attribute_set_1".
43
- * @property {string} title - The name of the template. Example: "Product Template".
44
- * @property {number} generalTypeId - General type Entity id. Example: 67890.
45
- * @property {string} identifier - The textual identifier for the record field. Example: "template_12345".
46
- * @property {number} version - The version number of the object. Example: 1.
41
+ * @property {number} id - ID of the object. Example: 12345.
42
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "attribute_set_1".
43
+ * @property {string} title - Name of the template. Example: "Product Template".
44
+ * @property {number} generalTypeId - ID of the general type. Example: 67890.
45
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "template_12345".
46
+ * @property {number} version - Version number of the object; changes with each update. Example: 1.
47
47
  * @property {BlockType} generalTypeName - General type name. Example: "product".
48
- * @property {IAttributeValues} attributeValues - Map of attribute values keyed by marker; empty object when none.
48
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by marker; an empty object when there are none.
49
49
  * @example
50
50
  {
51
51
  "id": 1,
52
52
  "value": "some"
53
53
  }
54
- * @property {number} position - The position of the object. Example: 1.
54
+ * @property {number} position - Position of the object, used for sorting. Example: 1.
55
55
  * @description This interface defines the structure of a template entity, including its identifiers, attributes, and general type information.
56
56
  */
57
57
  interface ITemplateEntity {
@@ -29,7 +29,7 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
29
29
  /**
30
30
  * Retrieves a template object by its marker.
31
31
  * @handleName getTemplatePreviewByMarker
32
- * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
32
+ * @param {string} marker - Marker of the template preview to fetch. Example: "template_12345".
33
33
  * @param {string} [langCode] - Language code. Default: "en_US".
34
34
  * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
35
35
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -72,7 +72,7 @@ class TemplatePreviewsApi extends asyncModules_1.default {
72
72
  /**
73
73
  * Retrieves a template object by its marker.
74
74
  * @handleName getTemplatePreviewByMarker
75
- * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
75
+ * @param {string} marker - Marker of the template preview to fetch. Example: "template_12345".
76
76
  * @param {string} [langCode] - Language code. Default: "en_US".
77
77
  * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
78
78
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -6,7 +6,7 @@ import type { IError } from '../base/utils';
6
6
  interface ITemplatesPreviewApi {
7
7
  /**
8
8
  * Retrieves all template preview objects.
9
- * @param {string} langCode - Language code for localization. Default: "en_US".
9
+ * @param {string} langCode - Language code. Default: "en_US".
10
10
  * @returns {ITemplatesPreviewEntity[]} A promise resolving to an array of template preview entities or an error.
11
11
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
12
12
  */
@@ -15,7 +15,7 @@ interface ITemplatesPreviewApi {
15
15
  * Retrieves a specific template preview object by its marker.
16
16
  * @handleName getTemplatePreviewByMarker
17
17
  * @param {string} marker - The marker of the template preview. Example: "template_12345".
18
- * @param {string} [langCode] - Language code for localization. Default: "en_US".
18
+ * @param {string} [langCode] - Language code. Default: "en_US".
19
19
  * @returns {ITemplatesPreviewEntity | IError} A promise resolving to the template preview entity or an error.
20
20
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
21
21
  * @description This method retrieves a specific template preview object by its marker.
@@ -25,9 +25,9 @@ interface ITemplatesPreviewApi {
25
25
  /**
26
26
  * The `ITemplatesPreview` interface defines the structure of template preview entities.
27
27
  * @interface ITemplatesPreviewEntity
28
- * @property {number} id - The unique identifier of the position. Example: 3.
29
- * @property {string} title - The name of the template preview. Example: "Product Template"..
30
- * @property {object} proportions - Object contains info by proportions template preview.
28
+ * @property {number} id - ID of the object. Example: 3.
29
+ * @property {string} title - Name of the preview template. Example: "Product Template".
30
+ * @property {object} proportions - Preview proportions: the horizontal, vertical and square variants.
31
31
  * @example
32
32
  {
33
33
  "default": {
@@ -47,30 +47,30 @@ interface ITemplatesPreviewApi {
47
47
  }
48
48
  }
49
49
  }
50
- * @property {IProportion | null} proportions.horizontal - Horizontal proportion of the template preview.
50
+ * @property {IProportion | null} proportions.horizontal - Horizontal proportion of the preview.
51
51
  * @example
52
52
  {
53
53
  "width": 234,
54
54
  "height": 324,
55
55
  "alignmentType": "middleBottom"
56
56
  }
57
- * @property {IProportion | null} proportions.vertical - Vertical proportion of the template preview.
57
+ * @property {IProportion | null} proportions.vertical - Vertical variant of the preview, or `null`.
58
58
  * @example
59
59
  {
60
60
  "width": 2,
61
61
  "height": 3,
62
62
  "alignmentType": "leftTop"
63
63
  }
64
- * @property {ISquare} proportions.square - Square proportion of the template preview.
64
+ * @property {ISquare} proportions.square - Square variant of the preview.
65
65
  * @example
66
66
  {
67
67
  "side": 3,
68
68
  "alignmentType": "leftTop"
69
69
  }
70
- * @property {string} identifier - The textual identifier for the record field. Example: "preview-templates"
71
- * @property {number} version - The version number of the object. Example: 1.
72
- * @property {number} position - The position of the object. Example: 1.
73
- * @property {boolean} isUsed - Indicates whether the template preview is used. Example: true.
70
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "preview-templates"
71
+ * @property {number} version - Version number of the object; changes with each update. Example: 1.
72
+ * @property {number} position - Position of the object, used for sorting. Example: 1.
73
+ * @property {boolean} isUsed - Whether the template preview is in use. Example: true.
74
74
  * @description This interface defines the structure of a template preview entity, including its identifiers, attributes, proportions, and title.
75
75
  */
76
76
  interface ITemplatesPreviewEntity {
@@ -105,9 +105,9 @@ interface ITemplatesPreviewProportionVariants {
105
105
  /**
106
106
  * The `IProportion` interface defines the structure of a proportion object used in template previews.
107
107
  * @interface IProportion
108
- * @property {string | number | null} width - width of the template preview. Example: 100.
109
- * @property {string | number | null} height - height of the template preview. Example: 200.
110
- * @property {string} alignmentType - alignment type of the template preview. Example: "center".
108
+ * @property {string | number | null} width - Width of the preview. Example: 100.
109
+ * @property {string | number | null} height - Height of the preview. Example: 200.
110
+ * @property {string} alignmentType - Alignment of the preview, such as `center`. Example: "center".
111
111
  * @description Represents a proportion object used in template previews.
112
112
  */
113
113
  interface IProportion {
@@ -118,8 +118,8 @@ interface IProportion {
118
118
  /**
119
119
  * The `ISquare` interface defines the structure of a square proportion object used in template previews.
120
120
  * @interface ISquare
121
- * @property {number | string} side - Side length of the square template preview, can be a number or string. Example: 100.
122
- * @property {string} alignmentType - Alignment type of the square template preview. Example: "center".
121
+ * @property {number | string} side - Side length of the square preview, as a number or a string. Example: 100.
122
+ * @property {string} alignmentType - Alignment of the square preview, such as `center`. Example: "center".
123
123
  * @description Represents a square proportion object used in template previews.
124
124
  */
125
125
  interface ISquare {
@@ -21,7 +21,7 @@ export default class UserActivityApi extends AsyncModules implements IUserActivi
21
21
  /**
22
22
  * Track a user or guest activity event.
23
23
  * @handleName trackUserActivity
24
- * @param {ITrackActivity} body - Activity event body. Example: `{ type: "product_view", productId: 12345 }`.
24
+ * @param {ITrackActivity} body - Activity event to record. Example: `{ type: "product_view", productId: 12345 }`.
25
25
  * @returns {Promise<boolean | IError>} Returns true if the event was recorded, or an error object if there was an issue.
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description Records an activity event for the current authorized user or guest.
@@ -24,7 +24,7 @@ class UserActivityApi extends asyncModules_1.default {
24
24
  /**
25
25
  * Track a user or guest activity event.
26
26
  * @handleName trackUserActivity
27
- * @param {ITrackActivity} body - Activity event body. Example: `{ type: "product_view", productId: 12345 }`.
27
+ * @param {ITrackActivity} body - Activity event to record. Example: `{ type: "product_view", productId: 12345 }`.
28
28
  * @returns {Promise<boolean | IError>} Returns true if the event was recorded, or an error object if there was an issue.
29
29
  * @throws {IError} When isShell=false and an error occurs during the fetch
30
30
  * @description Records an activity event for the current authorized user or guest.
@@ -8,7 +8,7 @@ interface IUserActivityApi {
8
8
  /**
9
9
  * Track a user or guest activity event.
10
10
  * @handleName trackUserActivity
11
- * @param {ITrackActivity} body - Activity event body. Example: `{ type: "product_view", productId: 12345 }`.
11
+ * @param {ITrackActivity} body - Activity event to record. Example: `{ type: "product_view", productId: 12345 }`.
12
12
  * @returns {Promise<boolean | IError>} Returns true if the event was recorded, or an error object if there was an issue.
13
13
  * @throws {IError} When isShell=false and an error occurs during the fetch
14
14
  * @description Records an activity event for the current authorized user or guest.
@@ -24,9 +24,9 @@ type TUserActivityType = 'product_view' | 'page_view' | 'category_view' | 'searc
24
24
  * Body for tracking a user activity event.
25
25
  * @interface ITrackActivity
26
26
  * @property {TUserActivityType} type - Activity event type. Example: "product_view".
27
- * @property {number} [productId] - Product identifier. Example: 12345.
28
- * @property {number} [pageId] - Page identifier (for page_view, category_view). Example: 7.
29
- * @property {number} [categoryId] - Legacy category identifier. Example: 67.
27
+ * @property {number} [productId] - Product ID. Example: 12345.
28
+ * @property {number} [pageId] - ID of the page, for `page_view` and `category_view` events. Example: 7.
29
+ * @property {number} [categoryId] - Category ID (legacy). Example: 67.
30
30
  * @property {string} [query] - Search query (for type=search). Example: "iphone case".
31
31
  * @property {Record<string, unknown>} [meta] - Arbitrary meta information (source block, A/B variant, scroll-depth).
32
32
  * @description Body for tracking a user activity event.
@@ -47,7 +47,7 @@ export default class UserGroupsApi extends AsyncModules implements IUserGroups {
47
47
  /**
48
48
  * Get a single user group object by its identifier.
49
49
  * @handleName getUserGroupById
50
- * @param {number} id - Identifier of the user group. Example: 1.
50
+ * @param {number} id - User group ID. Example: 1.
51
51
  * @param {string} [langCode] - Language code. Default: "en_US".
52
52
  * @returns {Promise<IUserGroupEntity | IError>} Returns a single user group object.
53
53
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -95,7 +95,7 @@ class UserGroupsApi extends asyncModules_1.default {
95
95
  /**
96
96
  * Get a single user group object by its identifier.
97
97
  * @handleName getUserGroupById
98
- * @param {number} id - Identifier of the user group. Example: 1.
98
+ * @param {number} id - User group ID. Example: 1.
99
99
  * @param {string} [langCode] - Language code. Default: "en_US".
100
100
  * @returns {Promise<IUserGroupEntity | IError>} Returns a single user group object.
101
101
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -27,7 +27,7 @@ interface IUserGroups {
27
27
  /**
28
28
  * Get a single user group object by its identifier.
29
29
  * @handleName getUserGroupById
30
- * @param {number} id - Identifier of the user group. Example: 1.
30
+ * @param {number} id - User group ID. Example: 1.
31
31
  * @param {string} [langCode] - Language code. Default: "en_US".
32
32
  * @returns {IUserGroupEntity} Returns a single user group object.
33
33
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
@@ -58,12 +58,12 @@ interface IUserGroups {
58
58
  /**
59
59
  * The `IUserGroupEntity` interface defines the structure of a user group object.
60
60
  * @interface IUserGroupEntity
61
- * @property {number} id - Identifier of the user group. Example: 1.
61
+ * @property {number} id - User group ID. Example: 1.
62
62
  * @property {number} depth - Nesting depth relative to the parent. Example: 0.
63
63
  * @property {number | null} parentId - Identifier of the parent group, `null` for a top-level group. Example: null.
64
- * @property {ILocalizeInfo} localizeInfos - Title of the group, taking localization into account.
65
- * @property {boolean} isVisible - Visibility flag. Example: true.
66
- * @property {string} childrenCount - Number of child groups. The API sends it as a **string**, not a number. Example: "0".
64
+ * @property {ILocalizeInfo} localizeInfos - Localized title of the group.
65
+ * @property {boolean} isVisible - Whether the group is visible. Example: true.
66
+ * @property {string} childrenCount - Number of child groups. The API sends it as a string, not a number. Example: "0".
67
67
  * @property {string} identifier - Text identifier (marker) of the group. Example: "guest".
68
68
  * @property {boolean} isSync - Synchronization flag. Example: false.
69
69
  * @property {IAttributeValues} attributeValues - Attribute values of the group.
@@ -127,7 +127,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
127
127
  /**
128
128
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
129
129
  * @handleName addFCMToken
130
- * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
130
+ * @param {string} token - Firebase Cloud Messaging token that identifies the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
131
131
  * @returns {Promise<boolean | IError>} Returns `true` if the token was successfully added; otherwise, returns an error object.
132
132
  * @throws {IError} When isShell=false and an error occurs during the fetch
133
133
  * @description This method adds an FCM token for sending push notifications. This method requires user authorization.
@@ -138,7 +138,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
138
138
  /**
139
139
  * Deletes an FCM (Firebase Cloud Messaging) token.
140
140
  * @handleName deleteFCMToken
141
- * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
141
+ * @param {string} token - Firebase Cloud Messaging token to remove from the user's devices. Example: "fcm_token_1234567890abcdefg".
142
142
  * @returns {Promise<boolean | IError>} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
143
143
  * @throws {IError} When isShell=false and an error occurs during the fetch
144
144
  * @description This method deletes an existing FCM token. This method requires user authorization.
@@ -181,7 +181,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
181
181
  /**
182
182
  * Remove an item from the cart.
183
183
  * @handleName removeCartItem
184
- * @param {number} productId - Product identifier. Example: 12345.
184
+ * @param {number} productId - Product ID. Example: 12345.
185
185
  * @returns {Promise<ICartResponse | IError>} Returns the updated cart.
186
186
  * @throws {IError} When isShell=false and an error occurs during the fetch
187
187
  * @description This method requires user authorization (or a guest context).
@@ -224,7 +224,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
224
224
  /**
225
225
  * Remove an item from the wishlist.
226
226
  * @handleName removeWishlistItem
227
- * @param {number} productId - Product identifier. Example: 12345.
227
+ * @param {number} productId - Product ID. Example: 12345.
228
228
  * @returns {Promise<IWishlistResponse | IError>} Returns the updated wishlist.
229
229
  * @throws {IError} When isShell=false and an error occurs during the fetch
230
230
  * @description This method requires user authorization (or a guest context).
@@ -235,10 +235,10 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
235
235
  /**
236
236
  * Semantic (vector) search for users.
237
237
  * @handleName getUsersByVectorSearch
238
- * @param {IUsersVectorSearch} body - Vector search body. Example: `{ queryText: "john" }`.
238
+ * @param {IUsersVectorSearch} body - Vector search parameters. Example: `{ queryText: "john" }`.
239
239
  * @param {string} [langCode] - Language code. Default: "en_US".
240
- * @param {number} [offset] - Parameter for pagination. Default: 0.
241
- * @param {number} [limit] - Parameter for pagination. Default: 30.
240
+ * @param {number} [offset] - Number of records to skip. Default: 0.
241
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
242
242
  * @returns {Promise<IVectorSearchResponse<IUsersResponse> | IError>} Returns an object with an array of found users and total count.
243
243
  * @throws {IError} When isShell=false and an error occurs during the fetch
244
244
  * @description This method performs a semantic (vector) search for users. It requires user authorization.
@@ -182,7 +182,7 @@ class UsersApi extends asyncModules_1.default {
182
182
  /**
183
183
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
184
184
  * @handleName addFCMToken
185
- * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
185
+ * @param {string} token - Firebase Cloud Messaging token that identifies the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
186
186
  * @returns {Promise<boolean | IError>} Returns `true` if the token was successfully added; otherwise, returns an error object.
187
187
  * @throws {IError} When isShell=false and an error occurs during the fetch
188
188
  * @description This method adds an FCM token for sending push notifications. This method requires user authorization.
@@ -196,7 +196,7 @@ class UsersApi extends asyncModules_1.default {
196
196
  /**
197
197
  * Deletes an FCM (Firebase Cloud Messaging) token.
198
198
  * @handleName deleteFCMToken
199
- * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
199
+ * @param {string} token - Firebase Cloud Messaging token to remove from the user's devices. Example: "fcm_token_1234567890abcdefg".
200
200
  * @returns {Promise<boolean | IError>} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
201
201
  * @throws {IError} When isShell=false and an error occurs during the fetch
202
202
  * @description This method deletes an existing FCM token. This method requires user authorization.
@@ -254,7 +254,7 @@ class UsersApi extends asyncModules_1.default {
254
254
  /**
255
255
  * Remove an item from the cart.
256
256
  * @handleName removeCartItem
257
- * @param {number} productId - Product identifier. Example: 12345.
257
+ * @param {number} productId - Product ID. Example: 12345.
258
258
  * @returns {Promise<ICartResponse | IError>} Returns the updated cart.
259
259
  * @throws {IError} When isShell=false and an error occurs during the fetch
260
260
  * @description This method requires user authorization (or a guest context).
@@ -313,7 +313,7 @@ class UsersApi extends asyncModules_1.default {
313
313
  /**
314
314
  * Remove an item from the wishlist.
315
315
  * @handleName removeWishlistItem
316
- * @param {number} productId - Product identifier. Example: 12345.
316
+ * @param {number} productId - Product ID. Example: 12345.
317
317
  * @returns {Promise<IWishlistResponse | IError>} Returns the updated wishlist.
318
318
  * @throws {IError} When isShell=false and an error occurs during the fetch
319
319
  * @description This method requires user authorization (or a guest context).
@@ -328,10 +328,10 @@ class UsersApi extends asyncModules_1.default {
328
328
  /**
329
329
  * Semantic (vector) search for users.
330
330
  * @handleName getUsersByVectorSearch
331
- * @param {IUsersVectorSearch} body - Vector search body. Example: `{ queryText: "john" }`.
331
+ * @param {IUsersVectorSearch} body - Vector search parameters. Example: `{ queryText: "john" }`.
332
332
  * @param {string} [langCode] - Language code. Default: "en_US".
333
- * @param {number} [offset] - Parameter for pagination. Default: 0.
334
- * @param {number} [limit] - Parameter for pagination. Default: 30.
333
+ * @param {number} [offset] - Number of records to skip. Default: 0.
334
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
335
335
  * @returns {Promise<IVectorSearchResponse<IUsersResponse> | IError>} Returns an object with an array of found users and total count.
336
336
  * @throws {IError} When isShell=false and an error occurs during the fetch
337
337
  * @description This method performs a semantic (vector) search for users. It requires user authorization.