oneentry 1.0.139 → 1.0.140

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 (143) hide show
  1. package/README.md +16 -1
  2. package/configure.js +40 -21
  3. package/package.json +15 -12
  4. package/dist/admins/adminsApi.d.ts +0 -50
  5. package/dist/admins/adminsApi.js +0 -65
  6. package/dist/admins/adminsInterfaces.d.ts +0 -99
  7. package/dist/admins/adminsInterfaces.js +0 -2
  8. package/dist/admins/adminsSchemas.d.ts +0 -30
  9. package/dist/admins/adminsSchemas.js +0 -27
  10. package/dist/attribute-sets/attributeSetsApi.d.ts +0 -63
  11. package/dist/attribute-sets/attributeSetsApi.js +0 -98
  12. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +0 -187
  13. package/dist/attribute-sets/attributeSetsInterfaces.js +0 -2
  14. package/dist/attribute-sets/attributeSetsSchemas.d.ts +0 -90
  15. package/dist/attribute-sets/attributeSetsSchemas.js +0 -74
  16. package/dist/auth-provider/authProviderApi.d.ts +0 -249
  17. package/dist/auth-provider/authProviderApi.js +0 -351
  18. package/dist/auth-provider/authProviderSchemas.d.ts +0 -137
  19. package/dist/auth-provider/authProviderSchemas.js +0 -85
  20. package/dist/auth-provider/authProvidersInterfaces.d.ts +0 -417
  21. package/dist/auth-provider/authProvidersInterfaces.js +0 -2
  22. package/dist/base/asyncModules.d.ts +0 -80
  23. package/dist/base/asyncModules.js +0 -440
  24. package/dist/base/result.d.ts +0 -39
  25. package/dist/base/result.js +0 -154
  26. package/dist/base/stateModule.d.ts +0 -41
  27. package/dist/base/stateModule.js +0 -128
  28. package/dist/base/syncModules.d.ts +0 -149
  29. package/dist/base/syncModules.js +0 -549
  30. package/dist/base/utils.d.ts +0 -197
  31. package/dist/base/utils.js +0 -2
  32. package/dist/base/validation.d.ts +0 -118
  33. package/dist/base/validation.js +0 -132
  34. package/dist/blocks/blocksApi.d.ts +0 -74
  35. package/dist/blocks/blocksApi.js +0 -184
  36. package/dist/blocks/blocksInterfaces.d.ts +0 -173
  37. package/dist/blocks/blocksInterfaces.js +0 -2
  38. package/dist/blocks/blocksSchemas.d.ts +0 -187
  39. package/dist/blocks/blocksSchemas.js +0 -43
  40. package/dist/events/eventsApi.d.ts +0 -60
  41. package/dist/events/eventsApi.js +0 -97
  42. package/dist/events/eventsInterfaces.d.ts +0 -87
  43. package/dist/events/eventsInterfaces.js +0 -2
  44. package/dist/file-uploading/fileUploadingApi.d.ts +0 -88
  45. package/dist/file-uploading/fileUploadingApi.js +0 -132
  46. package/dist/file-uploading/fileUploadingInterfaces.d.ts +0 -117
  47. package/dist/file-uploading/fileUploadingInterfaces.js +0 -2
  48. package/dist/file-uploading/fileUploadingSchemas.d.ts +0 -22
  49. package/dist/file-uploading/fileUploadingSchemas.js +0 -21
  50. package/dist/forms/formsApi.d.ts +0 -42
  51. package/dist/forms/formsApi.js +0 -57
  52. package/dist/forms/formsInterfaces.d.ts +0 -132
  53. package/dist/forms/formsInterfaces.js +0 -2
  54. package/dist/forms/formsSchemas.d.ts +0 -65
  55. package/dist/forms/formsSchemas.js +0 -36
  56. package/dist/forms-data/formsDataApi.d.ts +0 -106
  57. package/dist/forms-data/formsDataApi.js +0 -189
  58. package/dist/forms-data/formsDataInterfaces.d.ts +0 -525
  59. package/dist/forms-data/formsDataInterfaces.js +0 -2
  60. package/dist/forms-data/formsDataSchemas.d.ts +0 -115
  61. package/dist/forms-data/formsDataSchemas.js +0 -86
  62. package/dist/general-types/generalTypesApi.d.ts +0 -28
  63. package/dist/general-types/generalTypesApi.js +0 -38
  64. package/dist/general-types/generalTypesInterfaces.d.ts +0 -30
  65. package/dist/general-types/generalTypesInterfaces.js +0 -2
  66. package/dist/general-types/generalTypesSchemas.d.ts +0 -50
  67. package/dist/general-types/generalTypesSchemas.js +0 -35
  68. package/dist/index.d.ts +0 -94
  69. package/dist/index.js +0 -97
  70. package/dist/integration-collections/integrationCollectionsApi.d.ts +0 -173
  71. package/dist/integration-collections/integrationCollectionsApi.js +0 -220
  72. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +0 -313
  73. package/dist/integration-collections/integrationCollectionsInterfaces.js +0 -2
  74. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +0 -84
  75. package/dist/integration-collections/integrationCollectionsSchemas.js +0 -63
  76. package/dist/locales/localesApi.d.ts +0 -27
  77. package/dist/locales/localesApi.js +0 -37
  78. package/dist/locales/localesInterfaces.d.ts +0 -41
  79. package/dist/locales/localesInterfaces.js +0 -2
  80. package/dist/locales/localesSchemas.d.ts +0 -32
  81. package/dist/locales/localesSchemas.js +0 -26
  82. package/dist/menus/menusApi.d.ts +0 -29
  83. package/dist/menus/menusApi.js +0 -39
  84. package/dist/menus/menusInterfaces.d.ts +0 -88
  85. package/dist/menus/menusInterfaces.js +0 -4
  86. package/dist/menus/menusSchemas.d.ts +0 -16
  87. package/dist/menus/menusSchemas.js +0 -28
  88. package/dist/orders/ordersApi.d.ts +0 -126
  89. package/dist/orders/ordersApi.js +0 -169
  90. package/dist/orders/ordersInterfaces.d.ts +0 -427
  91. package/dist/orders/ordersInterfaces.js +0 -2
  92. package/dist/orders/ordersSchemas.d.ts +0 -158
  93. package/dist/orders/ordersSchemas.js +0 -120
  94. package/dist/pages/pagesApi.d.ts +0 -151
  95. package/dist/pages/pagesApi.js +0 -390
  96. package/dist/pages/pagesInterfaces.d.ts +0 -292
  97. package/dist/pages/pagesInterfaces.js +0 -2
  98. package/dist/pages/pagesSchemas.d.ts +0 -85
  99. package/dist/pages/pagesSchemas.js +0 -46
  100. package/dist/payments/paymentsApi.d.ts +0 -82
  101. package/dist/payments/paymentsApi.js +0 -121
  102. package/dist/payments/paymentsInterfaces.d.ts +0 -206
  103. package/dist/payments/paymentsInterfaces.js +0 -2
  104. package/dist/payments/paymentsSchemas.d.ts +0 -137
  105. package/dist/payments/paymentsSchemas.js +0 -78
  106. package/dist/product-statuses/productStatusesApi.d.ts +0 -47
  107. package/dist/product-statuses/productStatusesApi.js +0 -70
  108. package/dist/product-statuses/productStatusesInterfaces.d.ts +0 -66
  109. package/dist/product-statuses/productStatusesInterfaces.js +0 -2
  110. package/dist/product-statuses/productStatusesSchemas.d.ts +0 -34
  111. package/dist/product-statuses/productStatusesSchemas.js +0 -30
  112. package/dist/products/productsApi.d.ts +0 -364
  113. package/dist/products/productsApi.js +0 -455
  114. package/dist/products/productsInterfaces.d.ts +0 -583
  115. package/dist/products/productsInterfaces.js +0 -2
  116. package/dist/products/productsSchemas.d.ts +0 -212
  117. package/dist/products/productsSchemas.js +0 -85
  118. package/dist/system/systemApi.d.ts +0 -65
  119. package/dist/system/systemApi.js +0 -82
  120. package/dist/system/systemInterfaces.d.ts +0 -23
  121. package/dist/system/systemInterfaces.js +0 -2
  122. package/dist/templates/templatesApi.d.ts +0 -49
  123. package/dist/templates/templatesApi.js +0 -75
  124. package/dist/templates/templatesInterfaces.d.ts +0 -70
  125. package/dist/templates/templatesInterfaces.js +0 -2
  126. package/dist/templates/templatesSchemas.d.ts +0 -48
  127. package/dist/templates/templatesSchemas.js +0 -31
  128. package/dist/templates-preview/templatesPreviewApi.d.ts +0 -38
  129. package/dist/templates-preview/templatesPreviewApi.js +0 -53
  130. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +0 -121
  131. package/dist/templates-preview/templatesPreviewInterfaces.js +0 -2
  132. package/dist/templates-preview/templatesPreviewSchemas.d.ts +0 -83
  133. package/dist/templates-preview/templatesPreviewSchemas.js +0 -48
  134. package/dist/users/usersApi.d.ts +0 -143
  135. package/dist/users/usersApi.js +0 -174
  136. package/dist/users/usersInterfaces.d.ts +0 -235
  137. package/dist/users/usersInterfaces.js +0 -2
  138. package/dist/users/usersSchemas.d.ts +0 -38
  139. package/dist/users/usersSchemas.js +0 -28
  140. package/dist/web-socket/wsApi.d.ts +0 -25
  141. package/dist/web-socket/wsApi.js +0 -45
  142. package/dist/web-socket/wsInterfaces.d.ts +0 -17
  143. package/dist/web-socket/wsInterfaces.js +0 -2
@@ -1,30 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ValidateMarkerResponseSchema = exports.ProductStatusesResponseSchema = exports.ProductStatusEntitySchema = void 0;
4
- /**
5
- * Validation schemas for ProductStatuses module
6
- * @description Zod schemas for validating product statuses-related API responses
7
- */
8
- const zod_1 = require("zod");
9
- /**
10
- * Product status entity schema
11
- * Includes all fields returned by the API
12
- */
13
- exports.ProductStatusEntitySchema = zod_1.z.object({
14
- id: zod_1.z.number(),
15
- identifier: zod_1.z.string(),
16
- localizeInfos: zod_1.z.record(zod_1.z.string(), zod_1.z.any()),
17
- isDefault: zod_1.z.boolean(),
18
- version: zod_1.z.number(),
19
- position: zod_1.z.number(),
20
- });
21
- /**
22
- * Product statuses response schema (array of product statuses)
23
- */
24
- exports.ProductStatusesResponseSchema = zod_1.z.array(exports.ProductStatusEntitySchema);
25
- /**
26
- * Validate marker response schema (object with valid property)
27
- */
28
- exports.ValidateMarkerResponseSchema = zod_1.z.object({
29
- valid: zod_1.z.boolean(),
30
- });
@@ -1,364 +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, IProductApi, IProductBlock, 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 ProductApi extends AsyncModules implements IProductApi {
11
- protected state: StateModule;
12
- protected _url: string;
13
- /**
14
- * Constructor
15
- * @param {StateModule} state - StateModule instance
16
- * @description Constructor initializes the ProductApi 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
- * @returns {Promise<IProductsEntity | IError>} ProductEntity object.
273
- * @throws {IError} When isShell=false and an error occurs during the fetch
274
- * @description Retrieve one product object.
275
- */
276
- getProductById(id: number, langCode?: string): Promise<IProductsEntity | IError>;
277
- /**
278
- * Getting a product block object by product id.
279
- * @handleName getProductBlockById
280
- * @param {number} id - Product id. Example: 12345.
281
- * @returns {Promise<IProductBlock | IError>} - Product block object.
282
- * @throws {IError} When isShell=false and an error occurs during the fetch
283
- * @description Getting a product block object by product id.
284
- */
285
- getProductBlockById(id: number): Promise<IProductBlock[] | IError>;
286
- /**
287
- * Quick search for product page objects with limited output.
288
- * @handleName searchProduct
289
- * @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".
290
- * @param {string} [langCode] - Language code. Default: "en_US".
291
- * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
292
- * @throws {IError} When isShell=false and an error occurs during the fetch
293
- * @description Quick search for product page objects with limited output.
294
- */
295
- searchProduct(name: string, langCode?: string): Promise<IProductsEntity[] | IError>;
296
- /**
297
- * Getting the number of products for the entire catalog.
298
- * @handleName getProductsCount
299
- * @param {any[]} body - Body parameters for filter. Deault: [].
300
- * @example
301
- [
302
- {
303
- "attributeMarker": "price",
304
- "conditionMarker": "in",
305
- "statusMarker": "status_1",
306
- "conditionValue": {},
307
- "pageUrls": [
308
- "23-laminat-floorwood-maxima"
309
- ],
310
- "title": "Iphone 17 Pro"
311
- }
312
- ]
313
- * @returns {Promise<IProductsCount | IError>} Object with product items count.
314
- * @throws {IError} When isShell=false and an error occurs during the fetch
315
- * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
316
- */
317
- getProductsCount(body?: any[]): Promise<IProductsCount | IError>;
318
- /**
319
- * Getting the number of products on a catalog page by page ID.
320
- * @handleName getProductsCountByPageId
321
- * @param {string} id - Page ID.
322
- * @param {any[]} body - Body parameters for filter. Deault: [].
323
- * @example
324
- [
325
- {
326
- "attributeMarker": "price",
327
- "conditionMarker": "in",
328
- "statusMarker": "status_1",
329
- "conditionValue": {},
330
- "pageUrls": [
331
- "23-laminat-floorwood-maxima"
332
- ],
333
- "title": "Iphone 17 Pro"
334
- }
335
- ]
336
- * @returns {Promise<IProductsCount | IError>} Object with product items count.
337
- * @throws {IError} When isShell=false and an error occurs during the fetch
338
- * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
339
- */
340
- getProductsCountByPageId(id: string, body?: any[]): Promise<IProductsCount | IError>;
341
- /**
342
- * Getting the number of products for the catalog page by page url.
343
- * @handleName getProductsCountByPageUrl
344
- * @param {string} url - Page url.
345
- * @param {any[]} body - Body parameters for filter. Deault: [].
346
- * @example
347
- [
348
- {
349
- "attributeMarker": "price",
350
- "conditionMarker": "in",
351
- "statusMarker": "status_1",
352
- "conditionValue": {},
353
- "pageUrls": [
354
- "23-laminat-floorwood-maxima"
355
- ],
356
- "title": "Iphone 17 Pro"
357
- }
358
- ]
359
- * @returns {Promise<IProductsCount | IError>} Object with product items count.
360
- * @throws {IError} When isShell=false and an error occurs during the fetch
361
- * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
362
- */
363
- getProductsCountByPageUrl(url: string, body?: any[]): Promise<IProductsCount | IError>;
364
- }