oneentry 1.0.126 → 1.0.127

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