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
@@ -35,7 +35,7 @@ interface IProductsApi {
35
35
  }
36
36
  ]
37
37
  * @param {string} [langCode] - Language code. Default: "en_US".
38
- * @param {IProductsQueryBase} [userQuery] - Optional set query parameters.
38
+ * @param {IProductsQueryBase} [userQuery] - Optional query parameters.
39
39
  * @example
40
40
  {
41
41
  "limit": 30,
@@ -53,7 +53,7 @@ interface IProductsApi {
53
53
  * @handleName getProductsEmptyPage
54
54
  * @param body
55
55
  * @param {string} [langCode] - Language code. Default: "en_US".
56
- * @param {IProductsQueryBase} [userQuery] - Optional set query parameters.
56
+ * @param {IProductsQueryBase} [userQuery] - Optional query parameters.
57
57
  * @example
58
58
  {
59
59
  "limit": 30,
@@ -70,10 +70,10 @@ interface IProductsApi {
70
70
  /**
71
71
  * Search for all products with pagination for the selected category.
72
72
  * @handleName getProductsByPageId
73
- * @param {number} id - Page id. Example: 12345.
74
- * @param {IFilterParams[]} [body] - Request body. Default: [].
75
- * @param {string} [langCode] - Language code. Default "en_US".
76
- * @param {IProductsQueryBase} [userQuery] - Optional set query parameters.
73
+ * @param {number} id - Page ID. Example: 12345.
74
+ * @param {IFilterParams[]} [body] - Request body. Default: `[]`.
75
+ * @param {string} [langCode] - Language code. Default: "en_US".
76
+ * @param {IProductsQueryBase} [userQuery] - Optional query parameters.
77
77
  * @example
78
78
  {
79
79
  "limit": 30,
@@ -90,9 +90,9 @@ interface IProductsApi {
90
90
  /**
91
91
  * Search for information about products and prices for the selected category.
92
92
  * @handleName getProductsPriceByPageUrl
93
- * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
93
+ * @param {string} [url] - Page URL. Example: "23-laminat-floorwood-maxima".
94
94
  * @param {string} [langCode] - Language code. Default: "en_US".
95
- * @param {IProductsPriceQuery} [userQuery] - Optional set query parameters.
95
+ * @param {IProductsPriceQuery} [userQuery] - Optional query parameters.
96
96
  * @example
97
97
  {
98
98
  "limit": 30,
@@ -109,10 +109,10 @@ interface IProductsApi {
109
109
  /**
110
110
  * Search for all products with pagination for the selected category.
111
111
  * @handleName getProductsByPageUrl
112
- * @param {string} url - Page url. Example: "23-laminat-floorwood-maxima".
113
- * @param {IFilterParams[]} [body] - Request body. Default: [].
112
+ * @param {string} url - Page URL. Example: "23-laminat-floorwood-maxima".
113
+ * @param {IFilterParams[]} [body] - Request body. Default: `[]`.
114
114
  * @param {string} [langCode] - Language code. Default: "en_US".
115
- * @param {IProductsQueryBase} [userQuery] - Optional set query parameters.
115
+ * @param {IProductsQueryBase} [userQuery] - Optional query parameters.
116
116
  * @example
117
117
  {
118
118
  "limit": 30,
@@ -129,9 +129,9 @@ interface IProductsApi {
129
129
  /**
130
130
  * Find all related product page objects.
131
131
  * @handleName getRelatedProductsById
132
- * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
132
+ * @param {number} [id] - ID of the product page to find related products for. Example: 12345.
133
133
  * @param {string} [langCode] - Language code. Default: "en_US".
134
- * @param {IProductsRelatedQuery} [userQuery] - Optional set query parameters.
134
+ * @param {IProductsRelatedQuery} [userQuery] - Optional query parameters.
135
135
  * @example
136
136
  {
137
137
  "limit": 30,
@@ -150,9 +150,9 @@ interface IProductsApi {
150
150
  /**
151
151
  * Find products by its ids.
152
152
  * @handleName getProductsByIds
153
- * @param {string} ids - Product page identifiers for which to find relationships. Example: "12345,67890".
153
+ * @param {string} ids - Comma-separated IDs of the product pages to fetch. Example: "12345,67890".
154
154
  * @param {string} [langCode] - Language code. Default: "en_US".
155
- * @param {IProductsByIdsQuery} [userQuery] - Optional set query parameters.
155
+ * @param {IProductsByIdsQuery} [userQuery] - Optional query parameters.
156
156
  * @example
157
157
  {
158
158
  "limit": 30,
@@ -167,9 +167,9 @@ interface IProductsApi {
167
167
  /**
168
168
  * Retrieve one product object.
169
169
  * @handleName getProductById
170
- * @param {number} id - Product id. Example: 12345.
170
+ * @param {number} id - Product ID. Example: 12345.
171
171
  * @param {string} [langCode] - Language code. Default: "en_US".
172
- * @param {boolean} [isNormalized] - If true, the product object will be normalized.
172
+ * @param {boolean} [isNormalized] - When `true`, the product is returned in normalized form.
173
173
  * @returns {IProductsEntity} ProductEntity object.
174
174
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
175
175
  * @description This method retrieves one product object.
@@ -178,7 +178,7 @@ interface IProductsApi {
178
178
  /**
179
179
  * Getting a product block object by product id.
180
180
  * @handleName getProductBlockById
181
- * @param {number} id - Product id. Example: 12345.
181
+ * @param {number} id - Product ID. Example: 12345.
182
182
  * @returns {IProductBlock}
183
183
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
184
184
  * @description This method gets a product block object by product id.
@@ -187,7 +187,7 @@ interface IProductsApi {
187
187
  /**
188
188
  * Quick search for product page objects with limited output.
189
189
  * @handleName searchProduct
190
- * @param {string} name - Text to search product page objects (search is based on the title field of the localizeInfos object with language consideration). Example: 'laminat'.
190
+ * @param {string} name - Text to search for in product titles (`localizeInfos.title`) in the requested language. Example: 'laminat'.
191
191
  * @param {string} [langCode] - Language code. Default: "en_US".
192
192
  * @returns {IProductsEntity[] | IProductSearchResult[]} Array with ProductEntity objects, or an array with short ProductSearchResult cards when the traficLimit config option is enabled
193
193
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
@@ -197,7 +197,7 @@ interface IProductsApi {
197
197
  /**
198
198
  * Getting the number of products for the entire catalog.
199
199
  * @handleName getProductsCount
200
- * @param {object[]} [body] - Body parameters for filter. Deault: [].
200
+ * @param {object[]} [body] - Filter objects with search conditions. Default: `[]`.
201
201
  * @example
202
202
  [
203
203
  {
@@ -229,8 +229,8 @@ interface IProductsApi {
229
229
  /**
230
230
  * Getting the number of products on a catalog page by page ID.
231
231
  * @handleName getProductsCountByPageId
232
- * @param {string} id - Page id. Example: "12345".
233
- * @param {object[]} body - Body parameters for filter. Deault: [].
232
+ * @param {number | string} id - Page ID. Example: 12345.
233
+ * @param {object[]} [body] - Filter objects with search conditions. Default: `[]`.
234
234
  * @example
235
235
  [
236
236
  {
@@ -258,12 +258,12 @@ interface IProductsApi {
258
258
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
259
259
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
260
260
  */
261
- getProductsCountByPageId(id: string, body?: object[]): Promise<IProductsCount | IError>;
261
+ getProductsCountByPageId(id: number | string, body?: object[]): Promise<IProductsCount | IError>;
262
262
  /**
263
263
  * Getting the number of products on a catalog page by page URL.
264
264
  * @handleName getProductsCountByPageUrl
265
- * @param {string} url - Page url. Example: "catalog".
266
- * @param {string} body - Body parameters for filter. Deault: [].
265
+ * @param {string} url - Page URL. Example: "catalog".
266
+ * @param {string} body - Filter objects with search conditions. Default: `[]`.
267
267
  * @example
268
268
  [
269
269
  {
@@ -295,10 +295,10 @@ interface IProductsApi {
295
295
  /**
296
296
  * Semantic (vector) search for products.
297
297
  * @handleName getProductsByVectorSearch
298
- * @param {IVectorSearchProducts} body - Vector search body. Example: `{ queryText: "red running shoes" }`.
298
+ * @param {IVectorSearchProducts} body - Vector search parameters. Example: `{ queryText: "red running shoes" }`.
299
299
  * @param {string} [langCode] - Language code. Default: "en_US".
300
- * @param {number} [offset] - Parameter for pagination. Default: 0.
301
- * @param {number} [limit] - Parameter for pagination. Default: 30.
300
+ * @param {number} [offset] - Number of records to skip. Default: 0.
301
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
302
302
  * @returns {IVectorSearchResponse<IProductsResponse>} A promise that resolves to a products response (items + total + indexReady) or an error.
303
303
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
304
304
  * @description This method performs a semantic (vector) search for products.
@@ -307,11 +307,11 @@ interface IProductsApi {
307
307
  }
308
308
  /**
309
309
  * @interface IProductsQueryBase
310
- * @property {number} offset - Parameter for pagination. Default: 0.
311
- * @property {number} limit - Parameter for pagination. Default: 30.
312
- * @property {string} sortOrder - Sort order "DESC" | "ASC". Default: "DESC".
313
- * @property {string} sortKey - Field for sorting (default - null). Possible values: "id", "position", "title", "date", "price", "status". Default: null.
314
- * @property {string} [signPrice] - Order storage marker for price fixing. If the parameter is set, the price is fixed for a certain time.
310
+ * @property {number} offset - Number of records to skip. Default: 0.
311
+ * @property {number} limit - Maximum number of records to return. Default: 30.
312
+ * @property {string} sortOrder - Sort order: "DESC" or "ASC". Default: "DESC".
313
+ * @property {string} sortKey - Field to sort by: "id", "position", "title", "date", "price" or "status". Default: null.
314
+ * @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
315
315
  * @see {@link https://js-sdk.oneentry.cloud/docs/products/#Fixing-the-price-signPrice Fixing the price} documentation.
316
316
  * @description Base query parameters shared by the product listing endpoints (getProducts, getProductsEmptyPage, getProductsByPageId, getProductsByPageUrl): pagination, sorting and price fixing.
317
317
  */
@@ -325,8 +325,8 @@ interface IProductsQueryBase {
325
325
  /**
326
326
  * @interface IProductsRelatedQuery
327
327
  * @augments IProductsQueryBase
328
- * @property {string | null} [statusMarker] - Product page status marker, default null. Example: "in_stock".
329
- * @property {string | null} [templateMarker] - Product page template marker, default null. Example: "template_12345".
328
+ * @property {string | null} [statusMarker] - Marker of the product status. Default: null. Example: "in_stock".
329
+ * @property {string | null} [templateMarker] - Marker of the product template. Default: null. Example: "template_12345".
330
330
  * @property {string} [relationMode] - How relations are computed: "global" (the default) runs the template's chain of conditions as is; "local" additionally requires the attribute value of the product `id` to satisfy the template condition (same operator, same stored operand) before the products of that step are kept. Example: "local".
331
331
  * @description Query parameters for getRelatedProductsById: the base query plus product page status and template markers and the relation mode.
332
332
  */
@@ -339,11 +339,11 @@ interface IProductsRelatedQuery extends IProductsQueryBase {
339
339
  * Query parameters for getProductsPriceByPageUrl: the base query without
340
340
  * `sortKey`, plus the product page status marker.
341
341
  * @typedef {object} IProductsPriceQuery
342
- * @property {number} [offset] - Parameter for pagination. Default: 0.
343
- * @property {number} [limit] - Parameter for pagination. Default: 30.
344
- * @property {string} [sortOrder] - Sort order "DESC" | "ASC". Default: "DESC".
345
- * @property {string} [signPrice] - Order storage marker for price fixing.
346
- * @property {string | null} [statusMarker] - Product page status marker, default null. Example: "in_stock".
342
+ * @property {number} [offset] - Number of records to skip. Default: 0.
343
+ * @property {number} [limit] - Maximum number of records to return. Default: 30.
344
+ * @property {string} [sortOrder] - Sort order: "DESC" or "ASC". Default: "DESC".
345
+ * @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
346
+ * @property {string | null} [statusMarker] - Marker of the product status. Default: null. Example: "in_stock".
347
347
  */
348
348
  type IProductsPriceQuery = Omit<IProductsQueryBase, 'sortKey'> & {
349
349
  statusMarker?: string | null;
@@ -352,7 +352,7 @@ type IProductsPriceQuery = Omit<IProductsQueryBase, 'sortKey'> & {
352
352
  * Query parameters for getProductsByIds: only price fixing — `ids` is passed
353
353
  * as a dedicated method argument.
354
354
  * @typedef {object} IProductsByIdsQuery
355
- * @property {string} [signPrice] - Order storage marker for price fixing.
355
+ * @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
356
356
  */
357
357
  type IProductsByIdsQuery = Pick<IProductsQueryBase, 'signPrice'>;
358
358
  /**
@@ -368,13 +368,13 @@ type IProductsQuery = IProductsQueryBase;
368
368
  /**
369
369
  * @interface IFilterParams
370
370
  * @property {string} [attributeMarker] - The text identifier of the indexed attribute by which values are filtered. Example: "color". Optional: a filter entry may select by `statusMarker` (or `pageUrls`, `title`) alone, e.g. `{ statusMarker: "in_stock" }`.
371
- * @property {string | null} [conditionMarker] - Id of the filter condition by which the values are filtered. Default: null. Example: "eq".
371
+ * @property {string | null} [conditionMarker] - Marker of the filter condition, such as `eq`. Default: `null`. Example: "eq".
372
372
  * @property {number | string | null} [conditionValue] - The value that is being searched for, default null. Example: "new". Needed together with `attributeMarker`.
373
- * @property {string | null} [pageUrl] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
374
- * @property {string[] | null} [pageUrls] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
375
- * @property {string | null} [statusMarker] - Text identifier of the product page status (default not set). Example: "in_stock".
373
+ * @property {string | null} [pageUrl] - URL of one category page. Example: "23-laminat-floorwood-maxima".
374
+ * @property {string[] | null} [pageUrls] - URLs of the category pages. Example: ["23-laminat-floorwood-maxima"].
375
+ * @property {string | null} [statusMarker] - Marker of the product status. Not set by default. Example: "in_stock".
376
376
  * @property {string | null} [title] - Product name. Example: "Laminatboden Maxima".
377
- * @property {boolean} [isNested] - Flag for nested attributes, default false. Example: true.
377
+ * @property {boolean} [isNested] - Whether the entity is nested. Default: `false`. Example: true.
378
378
  * @description This interface defines the structure of filter parameters used for querying products, including conditions, attributes, and pagination.
379
379
  */
380
380
  interface IFilterParams {
@@ -409,10 +409,10 @@ interface IProductPriceRange {
409
409
  }
410
410
  /**
411
411
  * @interface IProductPageRef
412
- * @property {number} id - Unique identifier of the product-to-page link record. Example: 16.
412
+ * @property {number} id - ID of the product-to-page link record. Example: 16.
413
413
  * @property {number} pageId - Identifier of the page the product is linked to. Example: 4.
414
- * @property {number} productId - Identifier of the product. Example: 15.
415
- * @property {number} positionId - Sorting position identifier within the page. Example: 244.
414
+ * @property {number} productId - Product ID. Example: 15.
415
+ * @property {number} positionId - ID of the position record that stores the product's sort order. Example: 244.
416
416
  * @property {string} categoryPath - Category path of the page the product belongs to. Example: "products".
417
417
  * @description Reference linking a product to one of the pages it is published on.
418
418
  */
@@ -425,14 +425,14 @@ interface IProductPageRef {
425
425
  }
426
426
  /**
427
427
  * @interface IProductsEntity
428
- * @property {number} id - The unique identifier. Example: 12345.
429
- * @property {ILocalizeInfo} localizeInfos - The name of the products, taking into account localization. Example: {}.
430
- * @property {string | null} statusIdentifier - Product page status identifiers (may be null). Example: "in_stock".
428
+ * @property {number} id - ID of the product. Example: 12345.
429
+ * @property {ILocalizeInfo} localizeInfos - Localized product data, such as the title. Example: {}.
430
+ * @property {string | null} statusIdentifier - Marker of the product status, or `null`. Example: "in_stock".
431
431
  * @property {ILocalizeInfo} statusLocalizeInfos - Localized status name for the product. Example: `{ "title": "Sale" }`.
432
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "set_12345".
433
- * @property {number} position - Item number (for sorting). Example: 1.
434
- * @property {number | null} price - The value of the product page price taken from the index. Example: 150.00.
435
- * @property {object} additional - Additional value from the index.
432
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "set_12345".
433
+ * @property {number} position - Position used for sorting. Example: 1.
434
+ * @property {number | null} price - Product price from the search index. Example: 150.00.
435
+ * @property {object} additional - Extra values computed by the search index, such as the price range in `prices.min` and `prices.max`.
436
436
  * @example
437
437
  {
438
438
  "prices": {
@@ -440,9 +440,9 @@ interface IProductPageRef {
440
440
  "max": 150
441
441
  }
442
442
  }
443
- * @property {string | null} sku - Product SKU (Stock Keeping Unit), may be null. Example: "SKU_12345".
444
- * @property {boolean} isSync - Indication of page indexing. Example: true.
445
- * @property {IAttributeValues} attributeValues - Array of attribute values from the index, represented.
443
+ * @property {string | null} sku - Product SKU from the search index, or `null`. Example: "SKU_12345".
444
+ * @property {boolean} isSync - Whether the product is indexed. Example: true.
445
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
446
446
  * @example
447
447
  [
448
448
  {
@@ -450,31 +450,31 @@ interface IProductPageRef {
450
450
  "value": "red"
451
451
  }
452
452
  ]
453
- * @property {string[]} categories - Product categories.
453
+ * @property {string[]} categories - URLs of the catalog pages the product belongs to.
454
454
  * @example
455
455
  [
456
456
  1,
457
457
  2,
458
458
  3
459
459
  ]
460
- * @property {boolean} isVisible - A sign of page visibility. Example: true.
461
- * @property {Array<IFormConfig>} [moduleFormConfigs] - Module form configurations (optional).
462
- * @property {IRating} [rating] - Rating data.
463
- * @property {boolean} isPositionLocked - Sorting position lock indicator (optional). Example: false.
464
- * @property {number[]} relatedIds - Ids of related product pages.
460
+ * @property {boolean} isVisible - Whether the product is visible. Example: true.
461
+ * @property {Array<IFormConfig>} [moduleFormConfigs] - Form configurations of the module.
462
+ * @property {IRating} [rating] - Rating data: average value, likes and dislikes, and the calculation method.
463
+ * @property {boolean} [isPositionLocked] - Whether the sorting position is locked. Example: false.
464
+ * @property {number[]} relatedIds - IDs of related products.
465
465
  * @example
466
466
  [
467
467
  12345,
468
468
  67890
469
469
  ]
470
- * @property {unknown} [paymentStages] - Payment stages data (may be null). Example: null.
471
- * @property {number} [distance] - Vector (semantic) search relevance distance. Present only in results of vector search. Example: 0.42.
472
- * @property {Record<string, unknown>} [discountConfig] - Discount configuration object. Example: {}.
473
- * @property {string | null} [templateIdentifier] - User id of the linked template. Example: "template_12345".
474
- * @property {string | null} [shortDescTemplateIdentifier] - User id of the linked template for a short description. Example: "short_desc_template_12345".
475
- * @property {string} [signedPrice] - The signed price of the product is obtained along with the product data when `signPrice` is set. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
470
+ * @property {unknown} [paymentStages] - Payment stages data, or `null`. Example: null.
471
+ * @property {number} [distance] - Relevance distance in vector (semantic) search. Present only in vector search results. Example: 0.42.
472
+ * @property {Record<string, unknown>} [discountConfig] - Discount configuration. Example: {}.
473
+ * @property {string | null} [templateIdentifier] - Marker of the linked template. Example: "template_12345".
474
+ * @property {string | null} [shortDescTemplateIdentifier] - Marker of the template used for the short description. Example: "short_desc_template_12345".
475
+ * @property {string} [signedPrice] - Signed token (JWT) that fixes the product price for an order. Returned when `signPrice` is set. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
476
476
  * @see {@link https://js-sdk.oneentry.cloud/docs/orders/#Fixed-product-price-signedPrice Fixed product price} documentation.
477
- * @property {IProductPageRef[]} [productPages] - Array of product page references linking the product to its pages.
477
+ * @property {IProductPageRef[]} [productPages] - Links between the product and the catalog pages it belongs to.
478
478
  * @example
479
479
  [
480
480
  {
@@ -485,7 +485,7 @@ interface IProductPageRef {
485
485
  "categoryPath": "products"
486
486
  }
487
487
  ]
488
- * @property {string[]} [blocks] - Array of block identifiers.
488
+ * @property {string[]} [blocks] - Markers of the blocks attached to the product.
489
489
  * @example
490
490
  [
491
491
  "block_12345",
@@ -522,8 +522,8 @@ interface IProductsEntity {
522
522
  }
523
523
  /**
524
524
  * @interface IProductsResponse
525
- * @property {number} total - The total number of products found. Example: 100.
526
- * @property {IProductsEntity[]} items - An array of product entities.
525
+ * @property {number} total - Total number of products found. Example: 100.
526
+ * @property {IProductsEntity[]} items - Products in this response.
527
527
  * @example
528
528
  [
529
529
  {
@@ -558,8 +558,8 @@ interface IProductSearchResult {
558
558
  /**
559
559
  * @interface IProductsCount
560
560
  * @property {number} totalAll - The total number of products found. Example: 100.
561
- * @property {number} totalInCategory - The total number of products found in category. Example: 50.
562
- * @property {number} totalInCategoryWithNested - The total number of products found in nested category. Example: 10.
561
+ * @property {number} totalInCategory - Number of products in the category. Example: 50.
562
+ * @property {number} totalInCategoryWithNested - Number of products in the category, including its nested categories. Example: 10.
563
563
  * @description This interface defines the structure of a response with total count of product items.
564
564
  */
565
565
  interface IProductsCount {
@@ -569,8 +569,8 @@ interface IProductsCount {
569
569
  }
570
570
  /**
571
571
  * @interface IProductsInfo
572
- * @property {number} total - The total number of products found. Example: 100.
573
- * @property {IProductInfo[]} items - An array of product information objects.
572
+ * @property {number} total - Total number of products found. Example: 100.
573
+ * @property {IProductInfo[]} items - Price records of the products.
574
574
  * @example
575
575
  [
576
576
  {
@@ -590,7 +590,7 @@ interface IProductsInfo {
590
590
  }
591
591
  /**
592
592
  * @interface IProductInfo
593
- * @property {number} id - The unique identifier of the product. Example: 12345.
593
+ * @property {number} id - ID of the product. Example: 12345.
594
594
  * @property {number} price - The price of the product. Example: 150.00.
595
595
  * @property {string} [signedPrice] - The signed (fixed) price of the product, returned when `signPrice` is set. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...".
596
596
  * @see {@link https://js-sdk.oneentry.cloud/docs/orders/#Fixed-product-price-signedPrice Fixed product price} documentation.
@@ -603,22 +603,22 @@ interface IProductInfo {
603
603
  }
604
604
  /**
605
605
  * @interface IProductBlock
606
- * @property {number} id - Unique identifier of the product block. Example: 3289.
607
- * @property {string | null} attributeSetIdentifier - Identifier of the attribute set used in the product block, or null if not applicable. Example: "product_block".
608
- * @property {ILocalizeInfo} localizeInfos - Localization information for the product block.
606
+ * @property {number} id - ID of the product block. Example: 3289.
607
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set used in the product block, or `null` if there is none. Example: "product_block".
608
+ * @property {ILocalizeInfo} localizeInfos - Localized data of the product block.
609
609
  * @example
610
610
  {
611
611
  "title": "Box"
612
612
  }
613
- * @property {number} version - Version of the product block entity. Example: 1.
613
+ * @property {number} version - Version number of the product block. Example: 1.
614
614
  * @property {number} position - Position of the product block in a list or layout. Example: 1.
615
- * @property {string} identifier - Unique string identifier for the product block. Example: "product_block_12345".
616
- * @property {BlockType} type - Type of the product block, such as "product", "error_page", etc. Example: "product".
617
- * @property {object} customSettings - Custom settings for the product block, including slider delay, product configuration, similar product rules, and conditions. Example: {}
618
- * @property {string | null} templateIdentifier - Identifier for the template used by the product block, or null if not applicable. Example: "template_12345".
619
- * @property {boolean} isVisible - Indicates whether the product block is visible. Example: true.
620
- * @property {boolean} isSync - Indicates whether the product block is synchronized. Example: false.
621
- * @property {IAttributeValues} attributeValues - Array of attribute values from the index, represented as a pair of user attribute id and attribute value.
615
+ * @property {string} identifier - Marker of the product block. Example: "product_block_12345".
616
+ * @property {BlockType} type - Block type. Example: "product".
617
+ * @property {object} customSettings - Custom settings of the product block: slider delay, product configuration, similar-product rules and conditions. Example: {}
618
+ * @property {string | null} templateIdentifier - Marker of the template used by the product block, or `null`. Example: "template_12345".
619
+ * @property {boolean} isVisible - Whether the product block is visible. Example: true.
620
+ * @property {boolean} isSync - Whether the product block is synchronized. Example: false.
621
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
622
622
  * @example
623
623
  [
624
624
  {
@@ -697,12 +697,12 @@ interface IProductBlock {
697
697
  /**
698
698
  * @interface IAggregatedProductGroup
699
699
  * @deprecated No method returns this shape: getProductsEmptyPage was declared with it,
700
- * but the endpoint answers `{ items, total }` — see IProductsResponse (CMS-1065).
700
+ * but the endpoint answers `{ items, total }` — see IProductsResponse.
701
701
  * Kept so that existing imports still compile.
702
702
  * @property {string} attrValue - Attribute value.
703
703
  * @property {IProductsEntity[]} items - Array of product entities.
704
704
  * @property {string[]} productIds - Array of product ids.
705
- * @property {number} total - Total count.
705
+ * @property {number} total - Total number of records.
706
706
  */
707
707
  interface IAggregatedProductGroup {
708
708
  attrValue: string;
@@ -714,9 +714,9 @@ interface IAggregatedProductGroup {
714
714
  * Body for semantic (vector) product search.
715
715
  * @interface IVectorSearchProducts
716
716
  * @property {string} queryText - Natural-language search query. Example: "red running shoes".
717
- * @property {number} [vectorDistanceThreshold] - Max vector distance for a hit. Example: 0.5.
718
- * @property {number} [maxHits] - Max number of hits to return. Example: 50.
719
- * @property {boolean} [debug] - Include debug info in the response. Example: false.
717
+ * @property {number} [vectorDistanceThreshold] - Maximum vector distance for a match. Example: 0.5.
718
+ * @property {number} [maxHits] - Maximum number of hits to return. Example: 50.
719
+ * @property {boolean} [debug] - Whether to add debug information to the response. Example: false.
720
720
  * @description Body for the products vector/search endpoint.
721
721
  */
722
722
  interface IVectorSearchProducts {
@@ -24,9 +24,9 @@ export default class SearchApi extends AsyncModules implements ISearchApi {
24
24
  * @param {string} query - Search query. Example: "winter".
25
25
  * @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
26
26
  * @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
27
- * @param {number} [offset] - Drilldown mode offset. Pass it only together with a single accessible type in `types`.
28
- * @param {number} [limit] - Drilldown mode page size. Pass it only together with a single accessible type in `types`, otherwise the API answers 400 "Drilldown mode (limit/offset) requires exactly one accessible type in `types`". Without it every group is returned in full.
29
- * @param {string} [langCode] - Language code. Default: "en_US". The search index is per language: a word of a second locale is found only when its own langCode is sent (CMS-912).
27
+ * @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
28
+ * @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
29
+ * @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
30
30
  * @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
31
31
  * @throws {IError} When isShell=false and an error occurs during the fetch
32
32
  * @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
@@ -62,9 +62,9 @@ class SearchApi extends asyncModules_1.default {
62
62
  * @param {string} query - Search query. Example: "winter".
63
63
  * @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
64
64
  * @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
65
- * @param {number} [offset] - Drilldown mode offset. Pass it only together with a single accessible type in `types`.
66
- * @param {number} [limit] - Drilldown mode page size. Pass it only together with a single accessible type in `types`, otherwise the API answers 400 "Drilldown mode (limit/offset) requires exactly one accessible type in `types`". Without it every group is returned in full.
67
- * @param {string} [langCode] - Language code. Default: "en_US". The search index is per language: a word of a second locale is found only when its own langCode is sent (CMS-912).
65
+ * @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
66
+ * @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
67
+ * @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
68
68
  * @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
69
69
  * @throws {IError} When isShell=false and an error occurs during the fetch
70
70
  * @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
@@ -11,9 +11,9 @@ interface ISearchApi {
11
11
  * @param {string} query - Search query. Example: "winter".
12
12
  * @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
13
13
  * @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
14
- * @param {number} [offset] - Drilldown mode offset. Pass it only together with a single accessible type in `types`.
15
- * @param {number} [limit] - Drilldown mode page size. Pass it only together with a single accessible type in `types`, otherwise the API answers 400 "Drilldown mode (limit/offset) requires exactly one accessible type in `types`". Without it every group is returned in full.
16
- * @param {string} [langCode] - Language code. Default: "en_US". The search index is per language: a word of a second locale is found only when its own langCode is sent (CMS-912).
14
+ * @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
15
+ * @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
16
+ * @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
17
17
  * @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
18
18
  * @throws {IError} When isShell=false and an error occurs during the fetch
19
19
  * @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
@@ -72,7 +72,7 @@ interface IGlobalSearchItem {
72
72
  * Global search results of a single entity type.
73
73
  * @interface IGlobalSearchGroup
74
74
  * @property {TGlobalSearchEntityType} type - Entity type of the group. Example: "products".
75
- * @property {IGlobalSearchItem[]} items - Records found within this entity type.
75
+ * @property {IGlobalSearchItem[]} items - Records of this entity type that match the query.
76
76
  * @property {boolean} hasMore - Whether more records of this type are available beyond the requested page. Example: false.
77
77
  * @description Global search results of a single entity type.
78
78
  */
@@ -28,7 +28,7 @@ export default class SitemapApi extends AsyncModules implements ISitemapApi {
28
28
  /**
29
29
  * Generates a new set of sitemaps.
30
30
  * @handleName updateSitemap
31
- * @param {ISitemapQuery} body - Sitemap body params (e.g. `{ baseUrls: { en_US: "https://…" } }`).
31
+ * @param {ISitemapQuery} body - Sitemap parameters, for example `{ baseUrls: { en_US: "https://…" } }`.
32
32
  * @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
33
33
  * @throws {IError} When isShell=false and an error occurs during the fetch
34
34
  * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
@@ -34,7 +34,7 @@ class SitemapApi extends asyncModules_1.default {
34
34
  /**
35
35
  * Generates a new set of sitemaps.
36
36
  * @handleName updateSitemap
37
- * @param {ISitemapQuery} body - Sitemap body params (e.g. `{ baseUrls: { en_US: "https://…" } }`).
37
+ * @param {ISitemapQuery} body - Sitemap parameters, for example `{ baseUrls: { en_US: "https://…" } }`.
38
38
  * @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
39
39
  * @throws {IError} When isShell=false and an error occurs during the fetch
40
40
  * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
@@ -24,8 +24,8 @@ interface ISitemapApi {
24
24
  * @property {Record<string, string>} [baseUrls] - Base URLs per language for sitemap generation. Example: `{ "en_US": "https://example.com/" }`.
25
25
  * @property {string} [url] - URL of a single sitemap entry.
26
26
  * @property {string} [lastmod] - Last modification date of the entry.
27
- * @property {string} [changefreq] - Frequency of changes for the entry.
28
- * @property {number} [priority] - Priority of the entry.
27
+ * @property {string} [changefreq] - How often the entry changes.
28
+ * @property {number} [priority] - Sitemap `priority` of the entry.
29
29
  */
30
30
  interface ISitemapQuery {
31
31
  baseUrls?: Record<string, string>;
@@ -21,7 +21,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
21
21
  /**
22
22
  * Create a new subscription and get a payment session for it.
23
23
  * @handleName subscribe
24
- * @param {ISubscribe} body - Subscription body. Example: `{ marker: "premium" }`.
24
+ * @param {ISubscribe} body - Subscription parameters. Example: `{ marker: "premium" }`.
25
25
  * @returns {Promise<ICreatedSubscription | IError>} Returns the created payment session for the subscription.
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description This method requires user authorization.
@@ -32,7 +32,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
32
32
  /**
33
33
  * Cancel a subscription.
34
34
  * @handleName cancelSubscription
35
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
35
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
36
36
  * @returns {Promise<boolean | IError>} Returns true if the subscription was cancelled, or an error object if there was an issue.
37
37
  * @throws {IError} When isShell=false and an error occurs during the fetch
38
38
  * @description This method requires user authorization.
@@ -63,7 +63,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
63
63
  /**
64
64
  * Recover a subscription through the Stripe Billing Portal.
65
65
  * @handleName recoverSubscriptions
66
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
66
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
67
67
  * @returns {Promise<boolean | IError>} Returns true if the recovery request was accepted, or an error object if there was an issue.
68
68
  * @throws {IError} When isShell=false and an error occurs during the fetch
69
69
  * @description This method requires user authorization.
@@ -59,7 +59,7 @@ class SubscriptionsApi extends asyncModules_1.default {
59
59
  /**
60
60
  * Create a new subscription and get a payment session for it.
61
61
  * @handleName subscribe
62
- * @param {ISubscribe} body - Subscription body. Example: `{ marker: "premium" }`.
62
+ * @param {ISubscribe} body - Subscription parameters. Example: `{ marker: "premium" }`.
63
63
  * @returns {Promise<ICreatedSubscription | IError>} Returns the created payment session for the subscription.
64
64
  * @throws {IError} When isShell=false and an error occurs during the fetch
65
65
  * @description This method requires user authorization.
@@ -74,7 +74,7 @@ class SubscriptionsApi extends asyncModules_1.default {
74
74
  /**
75
75
  * Cancel a subscription.
76
76
  * @handleName cancelSubscription
77
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
77
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
78
78
  * @returns {Promise<boolean | IError>} Returns true if the subscription was cancelled, or an error object if there was an issue.
79
79
  * @throws {IError} When isShell=false and an error occurs during the fetch
80
80
  * @description This method requires user authorization.
@@ -115,7 +115,7 @@ class SubscriptionsApi extends asyncModules_1.default {
115
115
  /**
116
116
  * Recover a subscription through the Stripe Billing Portal.
117
117
  * @handleName recoverSubscriptions
118
- * @param {ICancelSubscription} body - Subscription body. Example: `{ marker: "premium" }`.
118
+ * @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
119
119
  * @returns {Promise<boolean | IError>} Returns true if the recovery request was accepted, or an error object if there was an issue.
120
120
  * @throws {IError} When isShell=false and an error occurs during the fetch
121
121
  * @description This method requires user authorization.