oneentry 1.0.141 → 1.0.142

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 (150) hide show
  1. package/configure.js +107 -15
  2. package/package.json +81 -3
  3. package/dist/admins/adminsApi.d.ts +0 -50
  4. package/dist/admins/adminsApi.js +0 -65
  5. package/dist/admins/adminsInterfaces.d.ts +0 -99
  6. package/dist/admins/adminsInterfaces.js +0 -2
  7. package/dist/admins/adminsSchemas.d.ts +0 -30
  8. package/dist/admins/adminsSchemas.js +0 -27
  9. package/dist/attribute-sets/attributeSetsApi.d.ts +0 -63
  10. package/dist/attribute-sets/attributeSetsApi.js +0 -98
  11. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +0 -187
  12. package/dist/attribute-sets/attributeSetsInterfaces.js +0 -2
  13. package/dist/attribute-sets/attributeSetsSchemas.d.ts +0 -90
  14. package/dist/attribute-sets/attributeSetsSchemas.js +0 -74
  15. package/dist/auth-provider/authProviderApi.d.ts +0 -249
  16. package/dist/auth-provider/authProviderApi.js +0 -351
  17. package/dist/auth-provider/authProviderSchemas.d.ts +0 -131
  18. package/dist/auth-provider/authProviderSchemas.js +0 -82
  19. package/dist/auth-provider/authProvidersInterfaces.d.ts +0 -425
  20. package/dist/auth-provider/authProvidersInterfaces.js +0 -2
  21. package/dist/base/asyncModules.d.ts +0 -80
  22. package/dist/base/asyncModules.js +0 -440
  23. package/dist/base/result.d.ts +0 -39
  24. package/dist/base/result.js +0 -154
  25. package/dist/base/stateModule.d.ts +0 -41
  26. package/dist/base/stateModule.js +0 -128
  27. package/dist/base/syncModules.d.ts +0 -149
  28. package/dist/base/syncModules.js +0 -549
  29. package/dist/base/utils.d.ts +0 -197
  30. package/dist/base/utils.js +0 -2
  31. package/dist/base/validation.d.ts +0 -118
  32. package/dist/base/validation.js +0 -132
  33. package/dist/blocks/blocksApi.d.ts +0 -76
  34. package/dist/blocks/blocksApi.js +0 -188
  35. package/dist/blocks/blocksInterfaces.d.ts +0 -173
  36. package/dist/blocks/blocksInterfaces.js +0 -2
  37. package/dist/blocks/blocksSchemas.d.ts +0 -187
  38. package/dist/blocks/blocksSchemas.js +0 -43
  39. package/dist/discounts/discountsApi.d.ts +0 -56
  40. package/dist/discounts/discountsApi.js +0 -82
  41. package/dist/discounts/discountsInterfaces.d.ts +0 -145
  42. package/dist/discounts/discountsInterfaces.js +0 -2
  43. package/dist/events/eventsApi.d.ts +0 -60
  44. package/dist/events/eventsApi.js +0 -97
  45. package/dist/events/eventsInterfaces.d.ts +0 -87
  46. package/dist/events/eventsInterfaces.js +0 -2
  47. package/dist/file-uploading/fileUploadingApi.d.ts +0 -88
  48. package/dist/file-uploading/fileUploadingApi.js +0 -132
  49. package/dist/file-uploading/fileUploadingInterfaces.d.ts +0 -117
  50. package/dist/file-uploading/fileUploadingInterfaces.js +0 -2
  51. package/dist/file-uploading/fileUploadingSchemas.d.ts +0 -22
  52. package/dist/file-uploading/fileUploadingSchemas.js +0 -21
  53. package/dist/forms/formsApi.d.ts +0 -42
  54. package/dist/forms/formsApi.js +0 -57
  55. package/dist/forms/formsInterfaces.d.ts +0 -132
  56. package/dist/forms/formsInterfaces.js +0 -2
  57. package/dist/forms/formsSchemas.d.ts +0 -50
  58. package/dist/forms/formsSchemas.js +0 -31
  59. package/dist/forms-data/formsDataApi.d.ts +0 -106
  60. package/dist/forms-data/formsDataApi.js +0 -189
  61. package/dist/forms-data/formsDataInterfaces.d.ts +0 -525
  62. package/dist/forms-data/formsDataInterfaces.js +0 -2
  63. package/dist/forms-data/formsDataSchemas.d.ts +0 -115
  64. package/dist/forms-data/formsDataSchemas.js +0 -86
  65. package/dist/general-types/generalTypesApi.d.ts +0 -28
  66. package/dist/general-types/generalTypesApi.js +0 -38
  67. package/dist/general-types/generalTypesInterfaces.d.ts +0 -30
  68. package/dist/general-types/generalTypesInterfaces.js +0 -2
  69. package/dist/general-types/generalTypesSchemas.d.ts +0 -50
  70. package/dist/general-types/generalTypesSchemas.js +0 -35
  71. package/dist/index.d.ts +0 -100
  72. package/dist/index.js +0 -103
  73. package/dist/integration-collections/integrationCollectionsApi.d.ts +0 -173
  74. package/dist/integration-collections/integrationCollectionsApi.js +0 -220
  75. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +0 -313
  76. package/dist/integration-collections/integrationCollectionsInterfaces.js +0 -2
  77. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +0 -80
  78. package/dist/integration-collections/integrationCollectionsSchemas.js +0 -61
  79. package/dist/locales/localesApi.d.ts +0 -27
  80. package/dist/locales/localesApi.js +0 -37
  81. package/dist/locales/localesInterfaces.d.ts +0 -41
  82. package/dist/locales/localesInterfaces.js +0 -2
  83. package/dist/locales/localesSchemas.d.ts +0 -32
  84. package/dist/locales/localesSchemas.js +0 -26
  85. package/dist/menus/menusApi.d.ts +0 -29
  86. package/dist/menus/menusApi.js +0 -39
  87. package/dist/menus/menusInterfaces.d.ts +0 -88
  88. package/dist/menus/menusInterfaces.js +0 -4
  89. package/dist/menus/menusSchemas.d.ts +0 -16
  90. package/dist/menus/menusSchemas.js +0 -28
  91. package/dist/orders/ordersApi.d.ts +0 -149
  92. package/dist/orders/ordersApi.js +0 -203
  93. package/dist/orders/ordersInterfaces.d.ts +0 -527
  94. package/dist/orders/ordersInterfaces.js +0 -2
  95. package/dist/orders/ordersSchemas.d.ts +0 -120
  96. package/dist/orders/ordersSchemas.js +0 -101
  97. package/dist/pages/pagesApi.d.ts +0 -151
  98. package/dist/pages/pagesApi.js +0 -390
  99. package/dist/pages/pagesInterfaces.d.ts +0 -292
  100. package/dist/pages/pagesInterfaces.js +0 -2
  101. package/dist/pages/pagesSchemas.d.ts +0 -85
  102. package/dist/pages/pagesSchemas.js +0 -46
  103. package/dist/payments/paymentsApi.d.ts +0 -82
  104. package/dist/payments/paymentsApi.js +0 -121
  105. package/dist/payments/paymentsInterfaces.d.ts +0 -206
  106. package/dist/payments/paymentsInterfaces.js +0 -2
  107. package/dist/payments/paymentsSchemas.d.ts +0 -100
  108. package/dist/payments/paymentsSchemas.js +0 -65
  109. package/dist/product-statuses/productStatusesApi.d.ts +0 -47
  110. package/dist/product-statuses/productStatusesApi.js +0 -70
  111. package/dist/product-statuses/productStatusesInterfaces.d.ts +0 -66
  112. package/dist/product-statuses/productStatusesInterfaces.js +0 -2
  113. package/dist/product-statuses/productStatusesSchemas.d.ts +0 -34
  114. package/dist/product-statuses/productStatusesSchemas.js +0 -30
  115. package/dist/products/productsApi.d.ts +0 -365
  116. package/dist/products/productsApi.js +0 -459
  117. package/dist/products/productsInterfaces.d.ts +0 -586
  118. package/dist/products/productsInterfaces.js +0 -2
  119. package/dist/products/productsSchemas.d.ts +0 -192
  120. package/dist/products/productsSchemas.js +0 -96
  121. package/dist/sitemap/sitemapApi.d.ts +0 -35
  122. package/dist/sitemap/sitemapApi.js +0 -45
  123. package/dist/sitemap/sitemapInterfaces.d.ts +0 -40
  124. package/dist/sitemap/sitemapInterfaces.js +0 -2
  125. package/dist/system/systemApi.d.ts +0 -43
  126. package/dist/system/systemApi.js +0 -58
  127. package/dist/system/systemInterfaces.d.ts +0 -31
  128. package/dist/system/systemInterfaces.js +0 -5
  129. package/dist/templates/templatesApi.d.ts +0 -49
  130. package/dist/templates/templatesApi.js +0 -75
  131. package/dist/templates/templatesInterfaces.d.ts +0 -70
  132. package/dist/templates/templatesInterfaces.js +0 -2
  133. package/dist/templates/templatesSchemas.d.ts +0 -48
  134. package/dist/templates/templatesSchemas.js +0 -31
  135. package/dist/templates-preview/templatesPreviewApi.d.ts +0 -38
  136. package/dist/templates-preview/templatesPreviewApi.js +0 -53
  137. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +0 -121
  138. package/dist/templates-preview/templatesPreviewInterfaces.js +0 -2
  139. package/dist/templates-preview/templatesPreviewSchemas.d.ts +0 -83
  140. package/dist/templates-preview/templatesPreviewSchemas.js +0 -48
  141. package/dist/users/usersApi.d.ts +0 -143
  142. package/dist/users/usersApi.js +0 -173
  143. package/dist/users/usersInterfaces.d.ts +0 -235
  144. package/dist/users/usersInterfaces.js +0 -2
  145. package/dist/users/usersSchemas.d.ts +0 -38
  146. package/dist/users/usersSchemas.js +0 -28
  147. package/dist/web-socket/wsApi.d.ts +0 -25
  148. package/dist/web-socket/wsApi.js +0 -45
  149. package/dist/web-socket/wsInterfaces.d.ts +0 -17
  150. package/dist/web-socket/wsInterfaces.js +0 -2
@@ -1,365 +0,0 @@
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
- }