oneentry 1.0.140 → 1.0.141

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 (149) hide show
  1. package/dist/admins/adminsApi.d.ts +50 -0
  2. package/dist/admins/adminsApi.js +65 -0
  3. package/dist/admins/adminsInterfaces.d.ts +99 -0
  4. package/dist/admins/adminsInterfaces.js +2 -0
  5. package/dist/admins/adminsSchemas.d.ts +30 -0
  6. package/dist/admins/adminsSchemas.js +27 -0
  7. package/dist/attribute-sets/attributeSetsApi.d.ts +63 -0
  8. package/dist/attribute-sets/attributeSetsApi.js +98 -0
  9. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +187 -0
  10. package/dist/attribute-sets/attributeSetsInterfaces.js +2 -0
  11. package/dist/attribute-sets/attributeSetsSchemas.d.ts +90 -0
  12. package/dist/attribute-sets/attributeSetsSchemas.js +74 -0
  13. package/dist/auth-provider/authProviderApi.d.ts +249 -0
  14. package/dist/auth-provider/authProviderApi.js +351 -0
  15. package/dist/auth-provider/authProviderSchemas.d.ts +131 -0
  16. package/dist/auth-provider/authProviderSchemas.js +82 -0
  17. package/dist/auth-provider/authProvidersInterfaces.d.ts +425 -0
  18. package/dist/auth-provider/authProvidersInterfaces.js +2 -0
  19. package/dist/base/asyncModules.d.ts +80 -0
  20. package/dist/base/asyncModules.js +440 -0
  21. package/dist/base/result.d.ts +39 -0
  22. package/dist/base/result.js +154 -0
  23. package/dist/base/stateModule.d.ts +41 -0
  24. package/dist/base/stateModule.js +128 -0
  25. package/dist/base/syncModules.d.ts +149 -0
  26. package/dist/base/syncModules.js +549 -0
  27. package/dist/base/utils.d.ts +197 -0
  28. package/dist/base/utils.js +2 -0
  29. package/dist/base/validation.d.ts +118 -0
  30. package/dist/base/validation.js +132 -0
  31. package/dist/blocks/blocksApi.d.ts +76 -0
  32. package/dist/blocks/blocksApi.js +188 -0
  33. package/dist/blocks/blocksInterfaces.d.ts +173 -0
  34. package/dist/blocks/blocksInterfaces.js +2 -0
  35. package/dist/blocks/blocksSchemas.d.ts +187 -0
  36. package/dist/blocks/blocksSchemas.js +43 -0
  37. package/dist/discounts/discountsApi.d.ts +56 -0
  38. package/dist/discounts/discountsApi.js +82 -0
  39. package/dist/discounts/discountsInterfaces.d.ts +145 -0
  40. package/dist/discounts/discountsInterfaces.js +2 -0
  41. package/dist/events/eventsApi.d.ts +60 -0
  42. package/dist/events/eventsApi.js +97 -0
  43. package/dist/events/eventsInterfaces.d.ts +87 -0
  44. package/dist/events/eventsInterfaces.js +2 -0
  45. package/dist/file-uploading/fileUploadingApi.d.ts +88 -0
  46. package/dist/file-uploading/fileUploadingApi.js +132 -0
  47. package/dist/file-uploading/fileUploadingInterfaces.d.ts +117 -0
  48. package/dist/file-uploading/fileUploadingInterfaces.js +2 -0
  49. package/dist/file-uploading/fileUploadingSchemas.d.ts +22 -0
  50. package/dist/file-uploading/fileUploadingSchemas.js +21 -0
  51. package/dist/forms/formsApi.d.ts +42 -0
  52. package/dist/forms/formsApi.js +57 -0
  53. package/dist/forms/formsInterfaces.d.ts +132 -0
  54. package/dist/forms/formsInterfaces.js +2 -0
  55. package/dist/forms/formsSchemas.d.ts +50 -0
  56. package/dist/forms/formsSchemas.js +31 -0
  57. package/dist/forms-data/formsDataApi.d.ts +106 -0
  58. package/dist/forms-data/formsDataApi.js +189 -0
  59. package/dist/forms-data/formsDataInterfaces.d.ts +525 -0
  60. package/dist/forms-data/formsDataInterfaces.js +2 -0
  61. package/dist/forms-data/formsDataSchemas.d.ts +115 -0
  62. package/dist/forms-data/formsDataSchemas.js +86 -0
  63. package/dist/general-types/generalTypesApi.d.ts +28 -0
  64. package/dist/general-types/generalTypesApi.js +38 -0
  65. package/dist/general-types/generalTypesInterfaces.d.ts +30 -0
  66. package/dist/general-types/generalTypesInterfaces.js +2 -0
  67. package/dist/general-types/generalTypesSchemas.d.ts +50 -0
  68. package/dist/general-types/generalTypesSchemas.js +35 -0
  69. package/dist/index.d.ts +100 -0
  70. package/dist/index.js +103 -0
  71. package/dist/integration-collections/integrationCollectionsApi.d.ts +173 -0
  72. package/dist/integration-collections/integrationCollectionsApi.js +220 -0
  73. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +313 -0
  74. package/dist/integration-collections/integrationCollectionsInterfaces.js +2 -0
  75. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +80 -0
  76. package/dist/integration-collections/integrationCollectionsSchemas.js +61 -0
  77. package/dist/locales/localesApi.d.ts +27 -0
  78. package/dist/locales/localesApi.js +37 -0
  79. package/dist/locales/localesInterfaces.d.ts +41 -0
  80. package/dist/locales/localesInterfaces.js +2 -0
  81. package/dist/locales/localesSchemas.d.ts +32 -0
  82. package/dist/locales/localesSchemas.js +26 -0
  83. package/dist/menus/menusApi.d.ts +29 -0
  84. package/dist/menus/menusApi.js +39 -0
  85. package/dist/menus/menusInterfaces.d.ts +88 -0
  86. package/dist/menus/menusInterfaces.js +4 -0
  87. package/dist/menus/menusSchemas.d.ts +16 -0
  88. package/dist/menus/menusSchemas.js +28 -0
  89. package/dist/orders/ordersApi.d.ts +149 -0
  90. package/dist/orders/ordersApi.js +203 -0
  91. package/dist/orders/ordersInterfaces.d.ts +527 -0
  92. package/dist/orders/ordersInterfaces.js +2 -0
  93. package/dist/orders/ordersSchemas.d.ts +120 -0
  94. package/dist/orders/ordersSchemas.js +101 -0
  95. package/dist/pages/pagesApi.d.ts +151 -0
  96. package/dist/pages/pagesApi.js +390 -0
  97. package/dist/pages/pagesInterfaces.d.ts +292 -0
  98. package/dist/pages/pagesInterfaces.js +2 -0
  99. package/dist/pages/pagesSchemas.d.ts +85 -0
  100. package/dist/pages/pagesSchemas.js +46 -0
  101. package/dist/payments/paymentsApi.d.ts +82 -0
  102. package/dist/payments/paymentsApi.js +121 -0
  103. package/dist/payments/paymentsInterfaces.d.ts +206 -0
  104. package/dist/payments/paymentsInterfaces.js +2 -0
  105. package/dist/payments/paymentsSchemas.d.ts +100 -0
  106. package/dist/payments/paymentsSchemas.js +65 -0
  107. package/dist/product-statuses/productStatusesApi.d.ts +47 -0
  108. package/dist/product-statuses/productStatusesApi.js +70 -0
  109. package/dist/product-statuses/productStatusesInterfaces.d.ts +66 -0
  110. package/dist/product-statuses/productStatusesInterfaces.js +2 -0
  111. package/dist/product-statuses/productStatusesSchemas.d.ts +34 -0
  112. package/dist/product-statuses/productStatusesSchemas.js +30 -0
  113. package/dist/products/productsApi.d.ts +365 -0
  114. package/dist/products/productsApi.js +459 -0
  115. package/dist/products/productsInterfaces.d.ts +586 -0
  116. package/dist/products/productsInterfaces.js +2 -0
  117. package/dist/products/productsSchemas.d.ts +192 -0
  118. package/dist/products/productsSchemas.js +96 -0
  119. package/dist/sitemap/sitemapApi.d.ts +35 -0
  120. package/dist/sitemap/sitemapApi.js +45 -0
  121. package/dist/sitemap/sitemapInterfaces.d.ts +40 -0
  122. package/dist/sitemap/sitemapInterfaces.js +2 -0
  123. package/dist/system/systemApi.d.ts +43 -0
  124. package/dist/system/systemApi.js +58 -0
  125. package/dist/system/systemInterfaces.d.ts +31 -0
  126. package/dist/system/systemInterfaces.js +5 -0
  127. package/dist/templates/templatesApi.d.ts +49 -0
  128. package/dist/templates/templatesApi.js +75 -0
  129. package/dist/templates/templatesInterfaces.d.ts +70 -0
  130. package/dist/templates/templatesInterfaces.js +2 -0
  131. package/dist/templates/templatesSchemas.d.ts +48 -0
  132. package/dist/templates/templatesSchemas.js +31 -0
  133. package/dist/templates-preview/templatesPreviewApi.d.ts +38 -0
  134. package/dist/templates-preview/templatesPreviewApi.js +53 -0
  135. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +121 -0
  136. package/dist/templates-preview/templatesPreviewInterfaces.js +2 -0
  137. package/dist/templates-preview/templatesPreviewSchemas.d.ts +83 -0
  138. package/dist/templates-preview/templatesPreviewSchemas.js +48 -0
  139. package/dist/users/usersApi.d.ts +143 -0
  140. package/dist/users/usersApi.js +173 -0
  141. package/dist/users/usersInterfaces.d.ts +235 -0
  142. package/dist/users/usersInterfaces.js +2 -0
  143. package/dist/users/usersSchemas.d.ts +38 -0
  144. package/dist/users/usersSchemas.js +28 -0
  145. package/dist/web-socket/wsApi.d.ts +25 -0
  146. package/dist/web-socket/wsApi.js +45 -0
  147. package/dist/web-socket/wsInterfaces.d.ts +17 -0
  148. package/dist/web-socket/wsInterfaces.js +2 -0
  149. package/package.json +3 -81
@@ -0,0 +1,365 @@
1
+ import AsyncModules from '../base/asyncModules';
2
+ import type StateModule from '../base/stateModule';
3
+ import type { IError } from '../base/utils';
4
+ import type { IFilterParams, IProductBlock, IProductsApi, IProductsCount, IProductsEntity, IProductsInfo, IProductsQuery, IProductsResponse } from './productsInterfaces';
5
+ /**
6
+ * Controllers for working with product pages
7
+ * @handle /api/content/products
8
+ * @description Controllers for working with product pages
9
+ */
10
+ export default class ProductsApi extends AsyncModules implements IProductsApi {
11
+ protected state: StateModule;
12
+ protected _url: string;
13
+ /**
14
+ * Constructor
15
+ * @param {StateModule} state - StateModule instance
16
+ * @description Constructor initializes the ProductsApi with a given state.
17
+ */
18
+ constructor(state: StateModule);
19
+ /**
20
+ * Search for all products with pagination and filter.
21
+ * @handleName getProducts
22
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
23
+ * @example
24
+ [
25
+ {
26
+ "attributeMarker": "price",
27
+ "conditionMarker": "mth",
28
+ "statusMarker": "waiting",
29
+ "conditionValue": 1,
30
+ "pageUrls": [
31
+ "23-laminat-floorwood-maxima"
32
+ ],
33
+ "isNested": false,
34
+ "title": ""
35
+ },
36
+ {
37
+ "attributeMarker": "price",
38
+ "conditionMarker": "lth",
39
+ "conditionValue": 3,
40
+ "pageUrls": [
41
+ "23-laminat-floorwood-maxima"
42
+ ],
43
+ "isNested": false,
44
+ "title": ""
45
+ }
46
+ ]
47
+ * @param {string} [langCode] - Language code. Default: "en_US".
48
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
49
+ * @example
50
+ {
51
+ "signPrice": "orders",
52
+ "sortOrder": "DESC",
53
+ "sortKey": "id",
54
+ "limit": 30,
55
+ "offset": 0,
56
+ "statusId": 123,
57
+ "statusMarker": "in_stock",
58
+ "conditionValue": "new",
59
+ "conditionMarker": "equals",
60
+ "attributeMarker": "color"
61
+ }
62
+ * @returns {Promise<IProductsResponse | IError>} Products response, or IError when isShell=true
63
+ * @throws {IError} When isShell=false and an error occurs during the fetch
64
+ * @description Fetch products with optional filters and pagination.
65
+ */
66
+ getProducts(body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
67
+ /**
68
+ * Search for all product page objects with pagination that do not have a category.
69
+ * @handleName getProductsEmptyPage
70
+ * @param {string} [langCode] - Language code. Default: "en_US".
71
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
72
+ * @example
73
+ {
74
+ "limit": 30,
75
+ "offset": 0,
76
+ "sortOrder": "DESC",
77
+ "sortKey": "id",
78
+ "statusId": 123,
79
+ "statusMarker": "in_stock",
80
+ "conditionValue": "new",
81
+ "conditionMarker": "equals",
82
+ "attributeMarker": "color"
83
+ }
84
+ * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects.
85
+ * @throws {IError} When isShell=false and an error occurs during the fetch
86
+ * @description Search for all product page objects with pagination that do not have a category.
87
+ */
88
+ getProductsEmptyPage(langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
89
+ /**
90
+ * Search for all products with pagination for the selected category.
91
+ * @handleName getProductsByPageId
92
+ * @param {number} id - Page id. Example: 2492.
93
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
94
+ * @example
95
+ [
96
+ {
97
+ "attributeMarker": "price",
98
+ "conditionMarker": "mth",
99
+ "statusMarker": "waiting",
100
+ "conditionValue": 1,
101
+ "pageUrls": [
102
+ "23-laminat-floorwood-maxima"
103
+ ],
104
+ "isNested": false,
105
+ "title": ""
106
+ },
107
+ {
108
+ "attributeMarker": "price",
109
+ "conditionMarker": "lth",
110
+ "conditionValue": 3,
111
+ "pageUrls": [
112
+ "23-laminat-floorwood-maxima"
113
+ ],
114
+ "isNested": false,
115
+ "title": ""
116
+ }
117
+ ]
118
+ * @param {string} [langCode] - Language code. Default: "en_US".
119
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
120
+ * @example
121
+ {
122
+ "limit": 30,
123
+ "offset": 0,
124
+ "sortOrder": "DESC",
125
+ "sortKey": "id",
126
+ "statusId": 123,
127
+ "statusMarker": "in_stock",
128
+ "conditionValue": "new",
129
+ "conditionMarker": "equals",
130
+ "attributeMarker": "color"
131
+ }
132
+ * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
133
+ * @throws {IError} When isShell=false and an error occurs during the fetch
134
+ * @description Fetch products by page ID with optional filters and pagination.
135
+ */
136
+ getProductsByPageId(id: number, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
137
+ /**
138
+ * Search for information about products and prices for the selected category.
139
+ * @handleName getProductsPriceByPageUrl
140
+ * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
141
+ * @param {string} [langCode] - Language code. Default: "en_US".
142
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
143
+ * @example
144
+ {
145
+ "limit": 30,
146
+ "offset": 0,
147
+ "sortOrder": "DESC",
148
+ "sortKey": "id",
149
+ "statusId": 123,
150
+ "statusMarker": "in_stock",
151
+ "conditionValue": "new",
152
+ "conditionMarker": "equals",
153
+ "attributeMarker": "color"
154
+ }
155
+ * @returns {Promise<IProductsInfo | IError>} Array with ProductInformation objects.
156
+ * @throws {IError} When isShell=false and an error occurs during the fetch
157
+ * @description Search for information about products and prices for the selected category.
158
+ */
159
+ getProductsPriceByPageUrl(url: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsInfo | IError>;
160
+ /**
161
+ * Search for all products with pagination for the selected category.
162
+ * @handleName getProductsByPageUrl
163
+ * @param {string} url - Page url. Example: "catalog".
164
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
165
+ * @example
166
+ [
167
+ {
168
+ "attributeMarker": "price",
169
+ "conditionMarker": "mth",
170
+ "statusMarker": "waiting",
171
+ "conditionValue": 1,
172
+ "pageUrls": [
173
+ "23-laminat-floorwood-maxima"
174
+ ],
175
+ "isNested": false,
176
+ "title": ""
177
+ },
178
+ {
179
+ "attributeMarker": "price",
180
+ "conditionMarker": "lth",
181
+ "conditionValue": 3,
182
+ "pageUrls": [
183
+ "23-laminat-floorwood-maxima"
184
+ ],
185
+ "isNested": false,
186
+ "title": ""
187
+ }
188
+ ]
189
+ * @param {string} [langCode] - Language code. Default: "en_US".
190
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
191
+ * @example
192
+ {
193
+ "limit": 30,
194
+ "offset": 0,
195
+ "sortOrder": "DESC",
196
+ "sortKey": "id",
197
+ "statusId": 123,
198
+ "statusMarker": "in_stock",
199
+ "conditionValue": "new",
200
+ "conditionMarker": "equals",
201
+ "attributeMarker": "color"
202
+ }
203
+ * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects.
204
+ * @throws {IError} When isShell=false and an error occurs during the fetch
205
+ * @description Search for all products with pagination for the selected category.
206
+ */
207
+ getProductsByPageUrl(url: string, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
208
+ /**
209
+ * Find all related product page objects.
210
+ * @handleName getRelatedProductsById
211
+ * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
212
+ * @param {string} [langCode] - Language code. Default: "en_US".
213
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
214
+ * @example
215
+ {
216
+ "limit": 30,
217
+ "offset": 0,
218
+ "sortOrder": "DESC",
219
+ "sortKey": "id",
220
+ "statusId": 123,
221
+ "statusMarker": "in_stock",
222
+ "conditionValue": "new",
223
+ "conditionMarker": "equals",
224
+ "attributeMarker": "color"
225
+ }
226
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
227
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
228
+ * @param {string} [userQuery.sortOrder] - Optional sorting order "DESC" | "ASC". Example: "DESC".
229
+ * @param {string} [userQuery.sortKey] - Optional field to sort by ("id", "title", "date", "price", "position", "status"). Example: "id".
230
+ * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
231
+ * @throws {IError} When isShell=false and an error occurs during the fetch
232
+ * @description Find all related product page objects.
233
+ */
234
+ getRelatedProductsById(id: number, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
235
+ /**
236
+ * Find products by its ids.
237
+ * @handleName getProductsByIds
238
+ * @param {string} ids - Product page identifiers for which to find relationships. Example: "12345,67890".
239
+ * @param {string} [langCode] - Language code. Default "en_US".
240
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
241
+ * @example
242
+ {
243
+ "limit": 30,
244
+ "offset": 0,
245
+ "sortOrder": "DESC",
246
+ "sortKey": "id",
247
+ "statusId": 123,
248
+ "statusMarker": "in_stock",
249
+ "conditionValue": "new",
250
+ "conditionMarker": "equals",
251
+ "attributeMarker": "color"
252
+ }
253
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
254
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
255
+ * @param {string} [userQuery.sortOrder] - Optional sorting order "DESC" | "ASC". Example: "DESC".
256
+ * @param {string} [userQuery.sortKey] - Optional field to sort by ("id", "title", "date", "price", "position", "status"). Example: "id".
257
+ * @param {number} [userQuery.statusId] - Optional parameter - search by status id. Example: 123.
258
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: "in_stock".
259
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: "new".
260
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: "equals".
261
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: "color".
262
+ * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
263
+ * @throws {IError} When isShell=false and an error occurs during the fetch
264
+ * @description Find products by its ids.
265
+ */
266
+ getProductsByIds(ids: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsEntity[] | IError>;
267
+ /**
268
+ * Retrieve one product object.
269
+ * @handleName getProductById
270
+ * @param {number} id - Product id. Example: 12345.
271
+ * @param {string} [langCode] - Language code. Default: "en_US".
272
+ * @param {boolean} [isNormalized] - If true, the product object will be normalized.
273
+ * @returns {Promise<IProductsEntity | IError>} ProductEntity object.
274
+ * @throws {IError} When isShell=false and an error occurs during the fetch
275
+ * @description Retrieve one product object.
276
+ */
277
+ getProductById(id: number, langCode?: string, isNormalized?: boolean): Promise<IProductsEntity | IError>;
278
+ /**
279
+ * Getting a product block object by product id.
280
+ * @handleName getProductBlockById
281
+ * @param {number} id - Product id. Example: 12345.
282
+ * @returns {Promise<IProductBlock | IError>} - Product block object.
283
+ * @throws {IError} When isShell=false and an error occurs during the fetch
284
+ * @description Getting a product block object by product id.
285
+ */
286
+ getProductBlockById(id: number): Promise<IProductBlock[] | IError>;
287
+ /**
288
+ * Quick search for product page objects with limited output.
289
+ * @handleName searchProduct
290
+ * @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".
291
+ * @param {string} [langCode] - Language code. Default: "en_US".
292
+ * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
293
+ * @throws {IError} When isShell=false and an error occurs during the fetch
294
+ * @description Quick search for product page objects with limited output.
295
+ */
296
+ searchProduct(name: string, langCode?: string): Promise<IProductsEntity[] | IError>;
297
+ /**
298
+ * Getting the number of products for the entire catalog.
299
+ * @handleName getProductsCount
300
+ * @param {any[]} body - Body parameters for filter. Deault: [].
301
+ * @example
302
+ [
303
+ {
304
+ "attributeMarker": "price",
305
+ "conditionMarker": "in",
306
+ "statusMarker": "status_1",
307
+ "conditionValue": {},
308
+ "pageUrls": [
309
+ "23-laminat-floorwood-maxima"
310
+ ],
311
+ "title": "Iphone 17 Pro"
312
+ }
313
+ ]
314
+ * @returns {Promise<IProductsCount | IError>} Object with product items count.
315
+ * @throws {IError} When isShell=false and an error occurs during the fetch
316
+ * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
317
+ */
318
+ getProductsCount(body?: any[]): Promise<IProductsCount | IError>;
319
+ /**
320
+ * Getting the number of products on a catalog page by page ID.
321
+ * @handleName getProductsCountByPageId
322
+ * @param {string} id - Page ID.
323
+ * @param {any[]} body - Body parameters for filter. Deault: [].
324
+ * @example
325
+ [
326
+ {
327
+ "attributeMarker": "price",
328
+ "conditionMarker": "in",
329
+ "statusMarker": "status_1",
330
+ "conditionValue": {},
331
+ "pageUrls": [
332
+ "23-laminat-floorwood-maxima"
333
+ ],
334
+ "title": "Iphone 17 Pro"
335
+ }
336
+ ]
337
+ * @returns {Promise<IProductsCount | IError>} Object with product items count.
338
+ * @throws {IError} When isShell=false and an error occurs during the fetch
339
+ * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
340
+ */
341
+ getProductsCountByPageId(id: string, body?: any[]): Promise<IProductsCount | IError>;
342
+ /**
343
+ * Getting the number of products for the catalog page by page url.
344
+ * @handleName getProductsCountByPageUrl
345
+ * @param {string} url - Page url.
346
+ * @param {any[]} body - Body parameters for filter. Deault: [].
347
+ * @example
348
+ [
349
+ {
350
+ "attributeMarker": "price",
351
+ "conditionMarker": "in",
352
+ "statusMarker": "status_1",
353
+ "conditionValue": {},
354
+ "pageUrls": [
355
+ "23-laminat-floorwood-maxima"
356
+ ],
357
+ "title": "Iphone 17 Pro"
358
+ }
359
+ ]
360
+ * @returns {Promise<IProductsCount | IError>} Object with product items count.
361
+ * @throws {IError} When isShell=false and an error occurs during the fetch
362
+ * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
363
+ */
364
+ getProductsCountByPageUrl(url: string, body?: any[]): Promise<IProductsCount | IError>;
365
+ }