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
@@ -29,7 +29,7 @@ interface IPagesApi {
29
29
  /**
30
30
  * Get page object with information about forms, blocks, menus, linked to the page.
31
31
  * @handleName getPageById
32
- * @param {number} id - The unique identifier of the page to be fetched. Example: 123.
32
+ * @param {number} id - ID of the page to fetch. Example: 123.
33
33
  * @param {string} [langCode] - Language code. Default: "en_US".
34
34
  * @returns {IPagesEntity} Returns PageEntity object
35
35
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
@@ -49,7 +49,7 @@ interface IPagesApi {
49
49
  /**
50
50
  * Get child pages object with information as an array.
51
51
  * @handleName getChildPagesByParentUrl
52
- * @param {string} url - The URL of the parent page for which child pages are to be fetched. Example: "about".
52
+ * @param {string} url - URL of the parent page whose child pages to fetch. Example: "about".
53
53
  * @param {string} [langCode] - Language code. Default: "en_US".
54
54
  * @returns {IPagesEntity} Returns all created pages as an array of PageEntity objects or an empty array [] (if there is no data) for the selected parent
55
55
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
@@ -69,7 +69,7 @@ interface IPagesApi {
69
69
  /**
70
70
  * Quick search for page objects with limited output.
71
71
  * @handleName searchPage
72
- * @param {string} name - Text for searching page objects (search is performed on the title field of the localizeInfos object with the language taken into account). Example: "About Us".
72
+ * @param {string} name - Text to search for in page titles (`localizeInfos.title`) in the requested language. Example: "About Us".
73
73
  * @param {string} [url] - Optional page URL to filter search results. Example: "catalog".
74
74
  * @param {string} [langCode] - Language code. Default: "en_US".
75
75
  * @returns {IPagesEntity[] | IPageSearchResult[]} Returns found pages as an array of PageEntity objects, an array of short PageSearchResult cards when the traficLimit config option is enabled, or an empty array [] (if there is no data)
@@ -80,10 +80,10 @@ interface IPagesApi {
80
80
  /**
81
81
  * Semantic (vector) search for pages.
82
82
  * @handleName getPagesByVectorSearch
83
- * @param {IPagesVectorSearch} body - Vector search body. Example: `{ queryText: "winter sale" }`.
83
+ * @param {IPagesVectorSearch} body - Vector search parameters. Example: `{ queryText: "winter sale" }`.
84
84
  * @param {string} [langCode] - Language code. Default: "en_US".
85
- * @param {number} [offset] - Parameter for pagination. Default: 0.
86
- * @param {number} [limit] - Parameter for pagination. Default: 30.
85
+ * @param {number} [offset] - Number of records to skip. Default: 0.
86
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
87
87
  * @returns {IVectorSearchResponse<IPagesResponse>} A promise that resolves to a pages response (items + total + indexReady) or an error.
88
88
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
89
89
  * @description This method performs a semantic (vector) search for pages.
@@ -95,8 +95,8 @@ interface IPagesApi {
95
95
  * @interface IPagesVectorSearch
96
96
  * @property {string} queryText - Natural-language search query. Example: "winter sale".
97
97
  * @property {number} [vectorDistanceThreshold] - Override of the cosine distance threshold (0..2). Example: 0.3.
98
- * @property {number} [maxHits] - Top-K candidates fetched before pagination. Default: 100. Max: 500. Example: 10.
99
- * @property {boolean} [debug] - When true, each returned item gets a `distance` field. Example: false.
98
+ * @property {number} [maxHits] - Number of top candidates fetched before pagination. Default: 100. Maximum: 500. Example: 10.
99
+ * @property {boolean} [debug] - When `true`, each returned item gets a `distance` field. Example: false.
100
100
  * @description Body for the pages vector/search endpoint.
101
101
  */
102
102
  interface IPagesVectorSearch {
@@ -107,7 +107,7 @@ interface IPagesVectorSearch {
107
107
  }
108
108
  /**
109
109
  * @interface IPagesResponse
110
- * @property {IPagesEntity[]} items - Array of found page objects.
110
+ * @property {IPagesEntity[]} items - Pages that match the query.
111
111
  * @property {number} total - Total number of found records. Example: 100.
112
112
  * @description This interface defines the structure of a response containing multiple page entities, including the total count and an array of page items.
113
113
  */
@@ -117,12 +117,12 @@ interface IPagesResponse {
117
117
  }
118
118
  /**
119
119
  * @interface IPositionForm
120
- * @property {number} id - The identifier of the object. Example: 1764.
121
- * @property {number} version - The version number of the object. Example: 10.
122
- * @property {string} identifier - The textual identifier for the record field. Example: "catalog".
123
- * @property {number} attributeSetId - The identifier of the attribute set being used. Example: 0.
124
- * @property {string} processingType - Type of form processing. Example: "email".
125
- * @property {ILocalizeInfo} localizeInfos - The name of the page, taking into account localization.
120
+ * @property {number} id - Object ID. Example: 1764.
121
+ * @property {number} version - Version number of the object; changes with each update. Example: 10.
122
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "catalog".
123
+ * @property {number} attributeSetId - ID of the attribute set in use. Example: 0.
124
+ * @property {string} processingType - How form submissions are processed, for example `"email"` or `"url"`. Example: "email".
125
+ * @property {ILocalizeInfo} localizeInfos - Localized name and content of the page.
126
126
  * @example
127
127
  {
128
128
  "title": "Blog",
@@ -131,7 +131,7 @@ interface IPagesResponse {
131
131
  "plainContent": ""
132
132
  }
133
133
  * @property {object} processingData - Form data. Example: {}.
134
- * @property {number} position - The position of the object. Example: 0.
134
+ * @property {number} position - Position of the object, used for sorting. Example: 0.
135
135
  * @property {IAttributes[]} attributes - Array of attribute values from the used attribute set for displaying the form (taking into account the specified language).
136
136
  * @example
137
137
  [
@@ -175,9 +175,9 @@ interface IPositionForm {
175
175
  }
176
176
  /**
177
177
  * @interface IPositionBlock
178
- * @property {number} id - The identifier of the object. Example: 1.
179
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "block".
180
- * @property {ILocalizeInfo} localizeInfos - The name of the page, taking into account localization.
178
+ * @property {number} id - Object ID. Example: 1.
179
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "block".
180
+ * @property {ILocalizeInfo} localizeInfos - Localized title of the page.
181
181
  * @example
182
182
  {
183
183
  "title": "Blog",
@@ -185,14 +185,14 @@ interface IPositionForm {
185
185
  "htmlContent": "",
186
186
  "plainContent": ""
187
187
  }
188
- * @property {number} version - The version number of the object. Example: 0.
189
- * @property {number} position - The position of the object. Example: 1.
190
- * @property {string} identifier - The textual identifier for the record field. Example: "product_block".
188
+ * @property {number} version - Version number of the object; changes with each update. Example: 0.
189
+ * @property {number} position - Position of the object, used for sorting. Example: 1.
190
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "product_block".
191
191
  * @property {BlockType} type - Block type. Example: "product".
192
- * @property {string | null} templateIdentifier - User id of the linked template. Example: null.
193
- * @property {boolean} isVisible - A sign of page visibility. Example: true.
194
- * @property {boolean} isSync - Indication of page indexing. Example: false.
195
- * @property {IAttributeValues} attributeValues - Map of attribute values keyed by marker; empty object when none.
192
+ * @property {string | null} templateIdentifier - Marker of the linked template, or `null` when none is linked. Example: null.
193
+ * @property {boolean} isVisible - Whether the page is visible. Example: true.
194
+ * @property {boolean} isSync - Whether the page is indexed. Example: false.
195
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by marker; an empty object when there are none.
196
196
  * @example
197
197
  {
198
198
  "block-text": {
@@ -202,8 +202,8 @@ interface IPositionForm {
202
202
  "additionalFields": []
203
203
  }
204
204
  }
205
- * @property {number} [countElementsPerRow] - Number of elements displayed per row in the block, if applicable. Example: 3.
206
- * @property {number} [quantity] - Quantity pages in block. Example: 1.
205
+ * @property {number} [countElementsPerRow] - Number of items per row in the block, if set. Example: 3.
206
+ * @property {number} [quantity] - Number of items in the block. Example: 1.
207
207
  * @property {IProductsResponse} [similarProducts] - Similar products response (total + items). Present only for "similar_products_block" blocks and only when traffic-saving mode is off.
208
208
  * @property {IProductsEntity[]} [products] - Array of products associated with the block. Present only for "product_block" blocks and only when traffic-saving mode is off.
209
209
  * @description This interface defines the structure of a position block entity, including its identifiers, attributes, and visibility.
@@ -233,11 +233,11 @@ interface IPositionBlock {
233
233
  type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
234
234
  /**
235
235
  * @interface IPagesEntity
236
- * @property {number} id - The identifier of the object. Example: 8.
237
- * @property {number | null} parentId - The id of the parent page, if it contains null, then it is the top-level page. Example: 10.
238
- * @property {string} pageUrl - Unique page Url. Example: "blog".
239
- * @property {number} depth - Page nesting depth relative to parentId. Example: 10.
240
- * @property {ILocalizeInfo} localizeInfos - The name of the page, taking into account localization.
236
+ * @property {number} id - Object ID. Example: 8.
237
+ * @property {number | null} parentId - ID of the parent page; `null` for a top-level page. Example: 10.
238
+ * @property {string} pageUrl - URL of the page. Example: "blog".
239
+ * @property {number} depth - Page nesting depth relative to `parentId`. Example: 10.
240
+ * @property {ILocalizeInfo} localizeInfos - Localized title of the page.
241
241
  * @example
242
242
  {
243
243
  "title": "Blog",
@@ -245,11 +245,11 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
245
245
  "htmlContent": "",
246
246
  "plainContent": ""
247
247
  }
248
- * @property {boolean} isVisible - A sign of page visibility. Example: true.
248
+ * @property {boolean} isVisible - Whether the page is visible. Example: true.
249
249
  * @property {PageType} type - Page type. Example: "common_page".
250
- * @property {string | null} templateIdentifier - User id of the linked template. Example: "template".
251
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "page".
252
- * @property {IAttributeValues} attributeValues - Map of attribute values keyed by marker; empty object when none.
250
+ * @property {string | null} templateIdentifier - Marker of the linked template. Example: "template".
251
+ * @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "page".
252
+ * @property {IAttributeValues} attributeValues - Attribute values keyed by marker; an empty object when there are none.
253
253
  * @example
254
254
  {
255
255
  "text": {
@@ -259,18 +259,18 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
259
259
  "additionalFields": []
260
260
  }
261
261
  }
262
- * @property {boolean} isSync - Indication of page indexing. Example: true.
263
- * @property {object} [template] - Template object. Example: {}.
264
- * @property {number} [position] - Item number (for sorting). Example: 2.
262
+ * @property {boolean} isSync - Whether the page is indexed. Example: true.
263
+ * @property {object} [template] - Template linked to the page. Example: {}.
264
+ * @property {number} [position] - Position used for sorting. Example: 2.
265
265
  * @property {Record<string, number>} [config] - Output settings for catalog pages.
266
266
  * @example
267
267
  {
268
268
  "rowsPerPage": 1,
269
269
  "productsPerRow": 1
270
270
  }
271
- * @property {number} [products] - The number of products linked to the page. Example: 0.
272
- * @property {number} [childrenCount] - Children count. Example: 1.
273
- * @property {IBlockEntity[] | string[]} [blocks] - blocks.
271
+ * @property {number} [products] - Number of products linked to the page. Example: 0.
272
+ * @property {number} [childrenCount] - Number of child pages. Example: 1.
273
+ * @property {IBlockEntity[] | string[]} [blocks] - Blocks attached to the page: block objects or their markers.
274
274
  * @example
275
275
  {
276
276
  "id": 4,
@@ -283,10 +283,10 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
283
283
  "attributeValues": {},
284
284
  "position": 1
285
285
  }
286
- * @property {Array<IFormConfig>} [moduleFormConfigs] - Module form configurations linked to the page.
287
- * @property {IRating} [rating] - Rating data.
286
+ * @property {Array<IFormConfig>} [moduleFormConfigs] - Form configurations of the module linked to the page.
287
+ * @property {IRating} [rating] - Rating data: average value, likes and dislikes, and the calculation method.
288
288
  * @property {string} [total] - Total number of products linked to the page. Example: "10".
289
- * @property {string | null} [categoryPath] - Category path string; null for nested pages that have no own category path. Example: "catalog".
289
+ * @property {string | null} [categoryPath] - Category path; `null` for nested pages that have no category path of their own. Example: "catalog".
290
290
  * @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
291
291
  * @description This interface defines the structure of a page entity, including its identifiers, attributes, and hierarchical relationships.
292
292
  */
@@ -19,7 +19,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
19
19
  /**
20
20
  * Get list of payment sessions.
21
21
  * @handleName getSessions
22
- * @param {number} [offset] - Optional parameter for pagination. Default: 0.
22
+ * @param {number} [offset] - Number of records to skip. Default: 0.
23
23
  * @param {number} [limit] - Optional parameter for pagination. Default: 30.
24
24
  * @returns {Promise<ISessionsEntity | IError>} Returns an array of SessionEntity objects.
25
25
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -31,7 +31,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
31
31
  /**
32
32
  * Get a single payment session object by its identifier.
33
33
  * @handleName getSessionById
34
- * @param {number} id - Identifier of the retrieved payment session object. Example: 12345.
34
+ * @param {number} id - Payment session ID. Example: 12345.
35
35
  * @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
36
36
  * @throws {IError} When isShell=false and an error occurs during the fetch
37
37
  * @description This method gets a single payment session object by its identifier. This method requires user authorization.
@@ -42,7 +42,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
42
42
  /**
43
43
  * Get one payment session object by order identifier
44
44
  * @handleName getSessionByOrderId
45
- * @param {number} id - Order identifier. Example: 12345.
45
+ * @param {number} id - Order ID. Example: 12345.
46
46
  * @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
47
47
  * @throws {IError} When isShell=false and an error occurs during the fetch
48
48
  * @description This method gets one payment session object by order identifier. This method requires user authorization.
@@ -53,9 +53,9 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
53
53
  /**
54
54
  * Creation of payment session.
55
55
  * @handleName createSession
56
- * @param {number} orderId - Order identifier. Example: 12345.
57
- * @param {'session' | 'intent'} type - Session type. Possible values: "session" or "intent". Example: 'session'.
58
- * @param {boolean} [automaticTaxEnabled] - Automatic calculation of the tax rate. Default: false.
56
+ * @param {number} orderId - ID of the order. Example: 12345.
57
+ * @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: 'session'.
58
+ * @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
59
59
  * @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
60
60
  * @throws {IError} When isShell=false and an error occurs during the fetch
61
61
  * @description This method creates a payment session. This method requires user authorization.
@@ -76,7 +76,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
76
76
  /**
77
77
  * Get a single payment account object by its identifier.
78
78
  * @handleName getAccountById
79
- * @param {number} id - Identifier of the retrieved payment account object. Example: 12345.
79
+ * @param {number} id - Payment account ID. Example: 12345.
80
80
  * @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
81
81
  * @throws {IError} When isShell=false and an error occurs during the fetch
82
82
  * @description Get a single payment account object by its identifier.
@@ -88,7 +88,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
88
88
  /**
89
89
  * Get the payment progress of an order: its stages and whether they are paid.
90
90
  * @handleName getPaymentStagesByOrderId
91
- * @param {number} id - ID of the order object. Example: 1.
91
+ * @param {number} id - Order ID. Example: 1.
92
92
  * @returns {Promise<IPaymentProgress | IError>} Returns the payment progress of the order.
93
93
  * @throws {IError} When isShell=false and an error occurs during the fetch
94
94
  * @description An order can be paid in stages rather than in one payment — `partial` says
@@ -57,7 +57,7 @@ class PaymentsApi extends asyncModules_1.default {
57
57
  /**
58
58
  * Get list of payment sessions.
59
59
  * @handleName getSessions
60
- * @param {number} [offset] - Optional parameter for pagination. Default: 0.
60
+ * @param {number} [offset] - Number of records to skip. Default: 0.
61
61
  * @param {number} [limit] - Optional parameter for pagination. Default: 30.
62
62
  * @returns {Promise<ISessionsEntity | IError>} Returns an array of SessionEntity objects.
63
63
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -78,7 +78,7 @@ class PaymentsApi extends asyncModules_1.default {
78
78
  /**
79
79
  * Get a single payment session object by its identifier.
80
80
  * @handleName getSessionById
81
- * @param {number} id - Identifier of the retrieved payment session object. Example: 12345.
81
+ * @param {number} id - Payment session ID. Example: 12345.
82
82
  * @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
83
83
  * @throws {IError} When isShell=false and an error occurs during the fetch
84
84
  * @description This method gets a single payment session object by its identifier. This method requires user authorization.
@@ -92,7 +92,7 @@ class PaymentsApi extends asyncModules_1.default {
92
92
  /**
93
93
  * Get one payment session object by order identifier
94
94
  * @handleName getSessionByOrderId
95
- * @param {number} id - Order identifier. Example: 12345.
95
+ * @param {number} id - Order ID. Example: 12345.
96
96
  * @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
97
97
  * @throws {IError} When isShell=false and an error occurs during the fetch
98
98
  * @description This method gets one payment session object by order identifier. This method requires user authorization.
@@ -108,9 +108,9 @@ class PaymentsApi extends asyncModules_1.default {
108
108
  /**
109
109
  * Creation of payment session.
110
110
  * @handleName createSession
111
- * @param {number} orderId - Order identifier. Example: 12345.
112
- * @param {'session' | 'intent'} type - Session type. Possible values: "session" or "intent". Example: 'session'.
113
- * @param {boolean} [automaticTaxEnabled] - Automatic calculation of the tax rate. Default: false.
111
+ * @param {number} orderId - ID of the order. Example: 12345.
112
+ * @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: 'session'.
113
+ * @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
114
114
  * @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
115
115
  * @throws {IError} When isShell=false and an error occurs during the fetch
116
116
  * @description This method creates a payment session. This method requires user authorization.
@@ -145,7 +145,7 @@ class PaymentsApi extends asyncModules_1.default {
145
145
  /**
146
146
  * Get a single payment account object by its identifier.
147
147
  * @handleName getAccountById
148
- * @param {number} id - Identifier of the retrieved payment account object. Example: 12345.
148
+ * @param {number} id - Payment account ID. Example: 12345.
149
149
  * @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
150
150
  * @throws {IError} When isShell=false and an error occurs during the fetch
151
151
  * @description Get a single payment account object by its identifier.
@@ -160,7 +160,7 @@ class PaymentsApi extends asyncModules_1.default {
160
160
  /**
161
161
  * Get the payment progress of an order: its stages and whether they are paid.
162
162
  * @handleName getPaymentStagesByOrderId
163
- * @param {number} id - ID of the order object. Example: 1.
163
+ * @param {number} id - Order ID. Example: 1.
164
164
  * @returns {Promise<IPaymentProgress | IError>} Returns the payment progress of the order.
165
165
  * @throws {IError} When isShell=false and an error occurs during the fetch
166
166
  * @description An order can be paid in stages rather than in one payment — `partial` says
@@ -7,8 +7,8 @@ interface IPaymentsApi {
7
7
  /**
8
8
  * Get list of payment sessions.
9
9
  * @handleName getSessions
10
- * @param {number} [offset] - Optional parameter for pagination. Default: 0.
11
- * @param {number} [limit] - Optional parameter for pagination. Default: 30.
10
+ * @param {number} [offset] - Number of records to skip. Default: 0.
11
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
12
12
  * @returns {ISessionsEntity} Returns an array of SessionEntity objects.
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 list of payment sessions. This method requires user authorization.
@@ -18,7 +18,7 @@ interface IPaymentsApi {
18
18
  /**
19
19
  * Get a single payment session object by its identifier.
20
20
  * @handleName getSessionById
21
- * @param {number} id - Identifier of the retrieved payment session object. Example: 12345.
21
+ * @param {number} id - Payment session ID. Example: 12345.
22
22
  * @returns {ISessionEntity} Returns a single payment session object.
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 a single payment session object by its identifier. This method requires user authorization.
@@ -28,7 +28,7 @@ interface IPaymentsApi {
28
28
  /**
29
29
  * Get one payment session object by order identifier 🔐
30
30
  * @handleName getSessionByOrderId
31
- * @param {number} id - Order identifier. Example: 12345.
31
+ * @param {number} id - Order ID. Example: 12345.
32
32
  * @returns {ISessionEntity} Returns a single payment session 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 payment session object by order identifier. This method requires user authorization.
@@ -38,9 +38,9 @@ interface IPaymentsApi {
38
38
  /**
39
39
  * Creation of payment session.
40
40
  * @handleName createSession
41
- * @param {number} orderId - Order identifier. Example: 12345.
42
- * @param {'session' | 'intent'} type - Session type. Possible values: "session" or "intent". Example: "session".
43
- * @param {boolean} [automaticTaxEnabled] - Automatic calculation of the tax rate. Default: false.
41
+ * @param {number} orderId - ID of the order. Example: 12345.
42
+ * @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: "session".
43
+ * @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
44
44
  * @returns {ISessionEntity} Returns a single payment session object.
45
45
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
46
46
  * @description This method creates a payment session. This method requires user authorization.
@@ -59,7 +59,7 @@ interface IPaymentsApi {
59
59
  /**
60
60
  * Get a single payment account object by its identifier.
61
61
  * @handleName getAccountById
62
- * @param {number} id - Identifier of the retrieved payment account object. Example: 12345.
62
+ * @param {number} id - Payment account ID. Example: 12345.
63
63
  * @returns {IAccountsEntity} Returns a single payment account object.
64
64
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
65
65
  * @description This method gets a single payment account object by its identifier. This method requires user authorization.
@@ -69,7 +69,7 @@ interface IPaymentsApi {
69
69
  /**
70
70
  * Get the payment progress of an order: its stages and whether they are paid.
71
71
  * @handleName getPaymentStagesByOrderId
72
- * @param {number} id - ID of the order object. Example: 1.
72
+ * @param {number} id - Order ID. Example: 1.
73
73
  * @returns {IPaymentProgress} Returns the payment progress of the order.
74
74
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
75
75
  * @description This method gets the payment stages of an order. This method requires user authorization.
@@ -80,7 +80,7 @@ interface IPaymentsApi {
80
80
  /**
81
81
  * @interface ISessionsEntity
82
82
  * @property {number} total - Total number of found records. Example: 100.
83
- * @property {ISessionEntity[]} items - Array of session objects.
83
+ * @property {ISessionEntity[]} items - Payment sessions in this response.
84
84
  * @example
85
85
  [
86
86
  {
@@ -102,16 +102,16 @@ interface ISessionsEntity {
102
102
  }
103
103
  /**
104
104
  * @interface ISessionEntity
105
- * @property {number} id - Object identifier. Example: 1764.
106
- * @property {string} createdDate - Object creation date. Example: "2025-02-26T10:13:16.839Z".
107
- * @property {string} updatedDate - Object modification date. Example: "2025-02-26T10:13:16.839Z".
108
- * @property {'session' | 'intent'} type - Type may be 'session' or 'intent'. Example: "session".
105
+ * @property {number} id - Object ID. Example: 1764.
106
+ * @property {string} createdDate - Creation date. Example: "2025-02-26T10:13:16.839Z".
107
+ * @property {string} updatedDate - Date the object was last modified. Example: "2025-02-26T10:13:16.839Z".
108
+ * @property {'session' | 'intent'} type - Session type: "session" or "intent". Example: "session".
109
109
  * @property {string} status - Payment status. Example: "completed".
110
- * @property {number} paymentAccountId - Payment account identifier. Example: 1.
111
- * @property {number} orderId - Order identifier. Example: 1.
112
- * @property {string | null} paymentUrl - payment link. Example: " https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M".
113
- * @property {number | null} [amount] - Amount of the payment session. Example: 100.
114
- * @property {string} [clientSecret] - Client secret key returned by payment provider (e.g. Stripe) when creating a session. Example: "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH".
110
+ * @property {number} paymentAccountId - ID of the payment account. Example: 1.
111
+ * @property {number} orderId - ID of the order. Example: 1.
112
+ * @property {string | null} paymentUrl - Payment page URL. Example: " https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M".
113
+ * @property {number | null} [amount] - Payment session amount. Example: 100.
114
+ * @property {string} [clientSecret] - Client secret returned by the payment provider (for example, Stripe) when the session is created. Example: "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH".
115
115
  * @description This interface defines the structure of a session entity, including its quantity, amount, currency, name, and description.
116
116
  */
117
117
  interface ISessionEntity {
@@ -138,16 +138,16 @@ interface IIntent {
138
138
  }
139
139
  /**
140
140
  * @interface IAccountsEntity
141
- * @property {number} id - Object identifier. Example: 12345.
142
- * @property {ILocalizeInfo} localizeInfos - Json description of the payment account object.
143
- * @property {string} identifier - Text identifier for the recording field. Example: "payment_12345".
141
+ * @property {number} id - Object ID. Example: 12345.
142
+ * @property {ILocalizeInfo} localizeInfos - Localized name and description of the payment account.
143
+ * @property {string} identifier - Marker of the payment account. Example: "payment_12345".
144
144
  * @property {'stripe' | 'yookassa' | 'midtrans' | 'xendit' | 'custom'} type - Payment provider type. Example: 'stripe'.
145
- * @property {boolean} isVisible - Visibility indicator of the payment account. Example: true.
146
- * @property {boolean} isUsed - Usage indicator of the payment account. Example: false.
147
- * @property {boolean} testMode - Indicates whether the payment account is in test mode. Example: true.
145
+ * @property {boolean} isVisible - Whether the payment account is visible. Example: true.
146
+ * @property {boolean} isUsed - Whether the payment account is in use. Example: false.
147
+ * @property {boolean} testMode - Whether the payment account is in test mode. Example: true.
148
148
  * @property {IPaymentAccountSettings} settings - Payment account settings. Example: `{ "status": "connected" }`.
149
149
  * @property {object} [testSettings] - Test mode settings for the payment account.
150
- * @property {string} updatedDate - Object modification date. Example: "2025-02-26T10:13:16.839Z".
150
+ * @property {string} updatedDate - Date the object was last modified. Example: "2025-02-26T10:13:16.839Z".
151
151
  * @description This interface defines the structure of a payment account entity, including its identifiers, localization information, type, visibility, and usage status.
152
152
  */
153
153
  interface IAccountsEntity {
@@ -199,8 +199,8 @@ interface IPaymentAccountTestSettings {
199
199
  /**
200
200
  * The `IPaymentProgress` interface describes the payment progress of an order.
201
201
  * @interface IPaymentProgress
202
- * @property {boolean} completed - True when every stage of the order has been paid. Example: false.
203
- * @property {boolean} partial - True when the order is paid in stages rather than in one payment. Example: true.
202
+ * @property {boolean} completed - `true` when every stage of the order has been paid. Example: false.
203
+ * @property {boolean} partial - `true` when the order is paid in stages rather than in one payment. Example: true.
204
204
  * @property {IPaymentStage[]} stages - The stages themselves, in the order the API returns them.
205
205
  * @description This interface describes the payment progress of an order — whether it is fully paid, whether it is split into stages, and the stages themselves.
206
206
  */
@@ -212,11 +212,11 @@ interface IPaymentProgress {
212
212
  /**
213
213
  * The `IPaymentStage` interface describes one payment stage of an order.
214
214
  * @interface IPaymentStage
215
- * @property {string} marker - Marker of the attribute that set the price of the stage. Example: "part_a".
215
+ * @property {string} marker - Marker of the attribute that sets the price of the stage. Example: "part_a".
216
216
  * @property {number} sessionId - Identifier of the payment session bound to the stage. Example: 100.
217
- * @property {number} productId - Identifier of the product the stage belongs to. Example: 200.
217
+ * @property {number} productId - ID of the product the stage belongs to. Example: 200.
218
218
  * @property {string} title - Title of the stage. Example: "Part A".
219
- * @property {number} value - Price of the stage. Example: 150.
219
+ * @property {number} value - Amount due for the stage. Example: 150.
220
220
  * @property {"planned" | "completed"} status - Stage status: "planned" — not paid yet, "completed" — paid. Example: "planned".
221
221
  * @description This interface describes one payment stage of an order.
222
222
  */
@@ -29,7 +29,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
29
29
  /**
30
30
  * Search for a product status object by its textual identifier (marker).
31
31
  * @handleName getProductsByStatusMarker
32
- * @param {string} marker - Product status marker. Example: "in_stock".
32
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
33
33
  * @param {string} [langCode] - Language code. Default: "en_US".
34
34
  * @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
35
35
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -40,7 +40,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
40
40
  /**
41
41
  * Check the existence of a textual identifier.
42
42
  * @handleName validateMarker
43
- * @param {string} marker - Product status marker. Example: "in_stock".
43
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
44
44
  * @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
45
45
  * @throws {IError} When isShell=false and an error occurs during the fetch
46
46
  * @description Check the existence of a textual identifier.
@@ -72,7 +72,7 @@ class ProductStatusesApi extends asyncModules_1.default {
72
72
  /**
73
73
  * Search for a product status object by its textual identifier (marker).
74
74
  * @handleName getProductsByStatusMarker
75
- * @param {string} marker - Product status marker. Example: "in_stock".
75
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
76
76
  * @param {string} [langCode] - Language code. Default: "en_US".
77
77
  * @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
78
78
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -88,7 +88,7 @@ class ProductStatusesApi extends asyncModules_1.default {
88
88
  /**
89
89
  * Check the existence of a textual identifier.
90
90
  * @handleName validateMarker
91
- * @param {string} marker - Product status marker. Example: "in_stock".
91
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
92
92
  * @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
93
93
  * @throws {IError} When isShell=false and an error occurs during the fetch
94
94
  * @description Check the existence of a textual identifier.
@@ -16,7 +16,7 @@ interface IProductStatusesApi {
16
16
  /**
17
17
  * Search for a product status object by its textual identifier (marker).
18
18
  * @handleName getProductsByStatusMarker
19
- * @param {string} marker - Product status marker. Example: "in_stock".
19
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
20
20
  * @param {string} [langCode] - Language code. Default: "en_US".
21
21
  * @returns {IProductStatusEntity} Returns a product status object.
22
22
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
@@ -26,7 +26,7 @@ interface IProductStatusesApi {
26
26
  /**
27
27
  * Check the existence of a textual identifier.
28
28
  * @handleName validateMarker
29
- * @param {string} marker - Product status marker. Example: "in_stock".
29
+ * @param {string} marker - Marker of the product status. Example: "in_stock".
30
30
  * @returns {boolean} Returns true if the textual identifier (marker) exists or false if it doesn't.
31
31
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
32
32
  * @description This method checks the existence of a textual identifier.
@@ -36,9 +36,9 @@ interface IProductStatusesApi {
36
36
  /**
37
37
  * Product status entity structure
38
38
  * @interface IProductStatusEntity
39
- * @property {number} id - The unique identifier of the position. Example: 12345.
40
- * @property {string} identifier - The textual identifier for the record field. Example: "in_stock".
41
- * @property {ILocalizeInfo} localizeInfos - The name of the products statuses, taking into account localization.
39
+ * @property {number} id - ID of the object. Example: 12345.
40
+ * @property {string} identifier - Text identifier (marker) of the object. Example: "in_stock".
41
+ * @property {ILocalizeInfo} localizeInfos - Localized name of the product status.
42
42
  * @example
43
43
  {
44
44
  "title": "Catalog",
@@ -46,9 +46,9 @@ interface IProductStatusesApi {
46
46
  "htmlContent": "<b>Content for catalog</b>",
47
47
  "menuTitle": "Catalog"
48
48
  }
49
- * @property {boolean} isDefault - Default status flag. Example: true.
50
- * @property {number} version - The version number of the object. Example: 1.
51
- * @property {number} position - Position number. Example: 1.
49
+ * @property {boolean} isDefault - Whether this is the default status. Example: true.
50
+ * @property {number} version - Version number of the object; changes with each update. Example: 1.
51
+ * @property {number} position - Position used for sorting. Example: 1.
52
52
  * @description This interface defines the structure of a product status entity, including its identifiers, localization information, position, and default status flag.
53
53
  */
54
54
  interface IProductStatusEntity {