oneentry 1.0.127 → 1.0.128
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.
- package/dist/admins/adminsApi.d.ts +20 -20
- package/dist/admins/adminsApi.js +20 -20
- package/dist/admins/adminsInterfaces.d.ts +43 -43
- package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
- package/dist/attribute-sets/attributeSetsApi.js +16 -16
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
- package/dist/auth-provider/authProviderApi.d.ts +126 -126
- package/dist/auth-provider/authProviderApi.js +126 -126
- package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
- package/dist/base/asyncModules.d.ts +17 -17
- package/dist/base/asyncModules.js +26 -21
- package/dist/base/result.d.ts +5 -5
- package/dist/base/result.js +5 -9
- package/dist/base/stateModule.d.ts +1 -1
- package/dist/base/stateModule.js +1 -1
- package/dist/base/syncModules.d.ts +35 -35
- package/dist/base/syncModules.js +92 -45
- package/dist/base/utils.d.ts +13 -13
- package/dist/blocks/blocksApi.d.ts +24 -24
- package/dist/blocks/blocksApi.js +24 -24
- package/dist/blocks/blocksInterfaces.d.ts +85 -85
- package/dist/events/eventsApi.d.ts +11 -11
- package/dist/events/eventsApi.js +11 -11
- package/dist/events/eventsInterfaces.d.ts +23 -23
- package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
- package/dist/file-uploading/fileUploadingApi.js +38 -38
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
- package/dist/forms/formsApi.d.ts +7 -7
- package/dist/forms/formsApi.js +7 -7
- package/dist/forms/formsInterfaces.d.ts +43 -31
- package/dist/forms-data/formsDataApi.d.ts +37 -37
- package/dist/forms-data/formsDataApi.js +37 -38
- package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
- package/dist/general-types/generalTypesApi.d.ts +1 -1
- package/dist/general-types/generalTypesApi.js +1 -1
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
- package/dist/integration-collections/integrationCollectionsApi.js +76 -80
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +3 -3
- package/dist/menus/menusApi.js +3 -3
- package/dist/menus/menusInterfaces.d.ts +39 -39
- package/dist/orders/ordersApi.d.ts +56 -56
- package/dist/orders/ordersApi.js +56 -56
- package/dist/orders/ordersInterfaces.d.ts +204 -198
- package/dist/pages/pagesApi.d.ts +60 -60
- package/dist/pages/pagesApi.js +60 -60
- package/dist/pages/pagesInterfaces.d.ts +133 -141
- package/dist/payments/paymentsApi.d.ts +15 -15
- package/dist/payments/paymentsApi.js +15 -15
- package/dist/payments/paymentsInterfaces.d.ts +55 -55
- package/dist/product-statuses/productStatusesApi.d.ts +7 -7
- package/dist/product-statuses/productStatusesApi.js +7 -7
- package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
- package/dist/products/productsApi.d.ts +240 -240
- package/dist/products/productsApi.js +240 -240
- package/dist/products/productsInterfaces.d.ts +311 -311
- package/dist/system/systemApi.d.ts +10 -10
- package/dist/system/systemApi.js +10 -10
- package/dist/templates/templatesApi.d.ts +8 -8
- package/dist/templates/templatesApi.js +8 -8
- package/dist/templates/templatesInterfaces.d.ts +22 -22
- package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
- package/dist/templates-preview/templatesPreviewApi.js +5 -5
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
- package/dist/users/usersApi.d.ts +29 -29
- package/dist/users/usersApi.js +29 -29
- package/dist/users/usersInterfaces.d.ts +77 -77
- package/package.json +1 -1
|
@@ -29,44 +29,44 @@ class ProductApi extends asyncModules_1.default {
|
|
|
29
29
|
/**
|
|
30
30
|
* Search for all products with pagination and filter.
|
|
31
31
|
* @handleName getProducts
|
|
32
|
-
* @param
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
* @param
|
|
57
|
-
* @param
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
* @returns {IProductsResponse}
|
|
32
|
+
* @param {IFilterParams[]} [body] - Request body. Default: []. Example:
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
"attributeMarker": "price",
|
|
36
|
+
"conditionMarker": "mth",
|
|
37
|
+
"statusMarker": "waiting",
|
|
38
|
+
"conditionValue": 1,
|
|
39
|
+
"pageUrls": [
|
|
40
|
+
"23-laminat-floorwood-maxima"
|
|
41
|
+
],
|
|
42
|
+
"isNested": false,
|
|
43
|
+
"title": ""
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"attributeMarker": "price",
|
|
47
|
+
"conditionMarker": "lth",
|
|
48
|
+
"conditionValue": 3,
|
|
49
|
+
"pageUrls": [
|
|
50
|
+
"23-laminat-floorwood-maxima"
|
|
51
|
+
],
|
|
52
|
+
"isNested": false,
|
|
53
|
+
"title": ""
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
57
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
58
|
+
{
|
|
59
|
+
"limit": 30,
|
|
60
|
+
"offset": 0,
|
|
61
|
+
"sortOrder": "DESC",
|
|
62
|
+
"sortKey": "id",
|
|
63
|
+
"statusId": 123,
|
|
64
|
+
"statusMarker": "in_stock",
|
|
65
|
+
"conditionValue": "new",
|
|
66
|
+
"conditionMarker": "equals",
|
|
67
|
+
"attributeMarker": "color"
|
|
68
|
+
}
|
|
69
|
+
* @returns {IProductsResponse} Array with ProductEntity objects
|
|
70
70
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
71
71
|
* @description Fetch products with optional filters and pagination.
|
|
72
72
|
*/
|
|
@@ -82,20 +82,20 @@ class ProductApi extends asyncModules_1.default {
|
|
|
82
82
|
/**
|
|
83
83
|
* Search for all product page objects with pagination that do not have a category.
|
|
84
84
|
* @handleName getProductsEmptyPage
|
|
85
|
-
* @param
|
|
86
|
-
* @param
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
* @returns {IProductsResponse}
|
|
85
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
86
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
87
|
+
{
|
|
88
|
+
"limit": 30,
|
|
89
|
+
"offset": 0,
|
|
90
|
+
"sortOrder": "DESC",
|
|
91
|
+
"sortKey": "id",
|
|
92
|
+
"statusId": 123,
|
|
93
|
+
"statusMarker": "in_stock",
|
|
94
|
+
"conditionValue": "new",
|
|
95
|
+
"conditionMarker": "equals",
|
|
96
|
+
"attributeMarker": "color"
|
|
97
|
+
}
|
|
98
|
+
* @returns {IProductsResponse} Array with ProductEntity objects.
|
|
99
99
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
100
100
|
* @description Search for all product page objects with pagination that do not have a category.
|
|
101
101
|
*/
|
|
@@ -107,45 +107,45 @@ class ProductApi extends asyncModules_1.default {
|
|
|
107
107
|
/**
|
|
108
108
|
* Search for all products with pagination for the selected category.
|
|
109
109
|
* @handleName getProductsByPageId
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
* @returns {IProductsResponse}
|
|
110
|
+
* @param {number} id - Page id. Example: 2492.
|
|
111
|
+
* @param {IFilterParams[]} [body] - Request body. Default: []. Example:
|
|
112
|
+
[
|
|
113
|
+
{
|
|
114
|
+
"attributeMarker": "price",
|
|
115
|
+
"conditionMarker": "mth",
|
|
116
|
+
"statusMarker": "waiting",
|
|
117
|
+
"conditionValue": 1,
|
|
118
|
+
"pageUrls": [
|
|
119
|
+
"23-laminat-floorwood-maxima"
|
|
120
|
+
],
|
|
121
|
+
"isNested": false,
|
|
122
|
+
"title": ""
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"attributeMarker": "price",
|
|
126
|
+
"conditionMarker": "lth",
|
|
127
|
+
"conditionValue": 3,
|
|
128
|
+
"pageUrls": [
|
|
129
|
+
"23-laminat-floorwood-maxima"
|
|
130
|
+
],
|
|
131
|
+
"isNested": false,
|
|
132
|
+
"title": ""
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
136
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
137
|
+
{
|
|
138
|
+
"limit": 30,
|
|
139
|
+
"offset": 0,
|
|
140
|
+
"sortOrder": "DESC",
|
|
141
|
+
"sortKey": "id",
|
|
142
|
+
"statusId": 123,
|
|
143
|
+
"statusMarker": "in_stock",
|
|
144
|
+
"conditionValue": "new",
|
|
145
|
+
"conditionMarker": "equals",
|
|
146
|
+
"attributeMarker": "color"
|
|
147
|
+
}
|
|
148
|
+
* @returns {IProductsResponse} Array with ProductEntity objects
|
|
149
149
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
150
150
|
* @description Fetch products by page ID with optional filters and pagination.
|
|
151
151
|
*/
|
|
@@ -157,21 +157,21 @@ class ProductApi extends asyncModules_1.default {
|
|
|
157
157
|
/**
|
|
158
158
|
* Search for information about products and prices for the selected category.
|
|
159
159
|
* @handleName getProductsPriceByPageUrl
|
|
160
|
-
* @param
|
|
161
|
-
* @param
|
|
162
|
-
* @param
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
* @returns {IProductsInfo}
|
|
160
|
+
* @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
|
|
161
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
162
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
163
|
+
{
|
|
164
|
+
"limit": 30,
|
|
165
|
+
"offset": 0,
|
|
166
|
+
"sortOrder": "DESC",
|
|
167
|
+
"sortKey": "id",
|
|
168
|
+
"statusId": 123,
|
|
169
|
+
"statusMarker": "in_stock",
|
|
170
|
+
"conditionValue": "new",
|
|
171
|
+
"conditionMarker": "equals",
|
|
172
|
+
"attributeMarker": "color"
|
|
173
|
+
}
|
|
174
|
+
* @returns {IProductsInfo} Array with ProductInformation objects.
|
|
175
175
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
176
176
|
* @description Search for information about products and prices for the selected category.
|
|
177
177
|
*/
|
|
@@ -187,45 +187,45 @@ class ProductApi extends asyncModules_1.default {
|
|
|
187
187
|
/**
|
|
188
188
|
* Search for all products with pagination for the selected category.
|
|
189
189
|
* @handleName getProductsByPageUrl
|
|
190
|
-
* @param
|
|
191
|
-
* @param
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
* @param
|
|
216
|
-
* @param
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
* @returns {IProductsResponse}
|
|
190
|
+
* @param {string} url - Page url. Example: "catalog".
|
|
191
|
+
* @param {IFilterParams[]} [body] - Request body. Default: []. Example:
|
|
192
|
+
[
|
|
193
|
+
{
|
|
194
|
+
"attributeMarker": "price",
|
|
195
|
+
"conditionMarker": "mth",
|
|
196
|
+
"statusMarker": "waiting",
|
|
197
|
+
"conditionValue": 1,
|
|
198
|
+
"pageUrls": [
|
|
199
|
+
"23-laminat-floorwood-maxima"
|
|
200
|
+
],
|
|
201
|
+
"isNested": false,
|
|
202
|
+
"title": ""
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"attributeMarker": "price",
|
|
206
|
+
"conditionMarker": "lth",
|
|
207
|
+
"conditionValue": 3,
|
|
208
|
+
"pageUrls": [
|
|
209
|
+
"23-laminat-floorwood-maxima"
|
|
210
|
+
],
|
|
211
|
+
"isNested": false,
|
|
212
|
+
"title": ""
|
|
213
|
+
}
|
|
214
|
+
]
|
|
215
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
216
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
217
|
+
{
|
|
218
|
+
"limit": 30,
|
|
219
|
+
"offset": 0,
|
|
220
|
+
"sortOrder": "DESC",
|
|
221
|
+
"sortKey": "id",
|
|
222
|
+
"statusId": 123,
|
|
223
|
+
"statusMarker": "in_stock",
|
|
224
|
+
"conditionValue": "new",
|
|
225
|
+
"conditionMarker": "equals",
|
|
226
|
+
"attributeMarker": "color"
|
|
227
|
+
}
|
|
228
|
+
* @returns {IProductsResponse} Array with ProductEntity objects.
|
|
229
229
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
230
230
|
* @description Search for all products with pagination for the selected category.
|
|
231
231
|
*/
|
|
@@ -238,25 +238,25 @@ class ProductApi extends asyncModules_1.default {
|
|
|
238
238
|
/**
|
|
239
239
|
* Find all related product page objects.
|
|
240
240
|
* @handleName getRelatedProductsById
|
|
241
|
-
* @param
|
|
242
|
-
* @param
|
|
243
|
-
* @param
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
* @param
|
|
256
|
-
* @param
|
|
257
|
-
* @param
|
|
258
|
-
* @param
|
|
259
|
-
* @returns {IProductsResponse}
|
|
241
|
+
* @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
|
|
242
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
243
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
244
|
+
{
|
|
245
|
+
"limit": 30,
|
|
246
|
+
"offset": 0,
|
|
247
|
+
"sortOrder": "DESC",
|
|
248
|
+
"sortKey": "id",
|
|
249
|
+
"statusId": 123,
|
|
250
|
+
"statusMarker": "in_stock",
|
|
251
|
+
"conditionValue": "new",
|
|
252
|
+
"conditionMarker": "equals",
|
|
253
|
+
"attributeMarker": "color"
|
|
254
|
+
}
|
|
255
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
|
|
256
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
|
|
257
|
+
* @param {string} [userQuery.sortOrder] - Optional sorting order "DESC" | "ASC". Example: "DESC".
|
|
258
|
+
* @param {string} [userQuery.sortKey] - Optional field to sort by ("id", "title", "date", "price", "position", "status"). Example: "id".
|
|
259
|
+
* @returns {IProductsResponse} Array with ProductEntity objects
|
|
260
260
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
261
261
|
* @description Find all related product page objects.
|
|
262
262
|
*/
|
|
@@ -268,30 +268,30 @@ class ProductApi extends asyncModules_1.default {
|
|
|
268
268
|
/**
|
|
269
269
|
* Find products by its ids.
|
|
270
270
|
* @handleName getProductsByIds
|
|
271
|
-
* @param
|
|
272
|
-
* @param
|
|
273
|
-
* @param
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
* @param
|
|
286
|
-
* @param
|
|
287
|
-
* @param
|
|
288
|
-
* @param
|
|
289
|
-
* @param
|
|
290
|
-
* @param
|
|
291
|
-
* @param
|
|
292
|
-
* @param
|
|
293
|
-
* @param
|
|
294
|
-
* @returns {IProductsEntity[]}
|
|
271
|
+
* @param {string} [ids] - Product page identifiers for which to find relationships. Example: "12345,67890".
|
|
272
|
+
* @param {string} [langCode] - Language code. Default "en_US".
|
|
273
|
+
* @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
|
|
274
|
+
{
|
|
275
|
+
"limit": 30,
|
|
276
|
+
"offset": 0,
|
|
277
|
+
"sortOrder": "DESC",
|
|
278
|
+
"sortKey": "id",
|
|
279
|
+
"statusId": 123,
|
|
280
|
+
"statusMarker": "in_stock",
|
|
281
|
+
"conditionValue": "new",
|
|
282
|
+
"conditionMarker": "equals",
|
|
283
|
+
"attributeMarker": "color"
|
|
284
|
+
}
|
|
285
|
+
* @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
|
|
286
|
+
* @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
|
|
287
|
+
* @param {string} [userQuery.sortOrder] - Optional sorting order "DESC" | "ASC". Example: "DESC".
|
|
288
|
+
* @param {string} [userQuery.sortKey] - Optional field to sort by ("id", "title", "date", "price", "position", "status"). Example: "id".
|
|
289
|
+
* @param {number} [userQuery.statusId] - Optional parameter - search by status id. Example: 123.
|
|
290
|
+
* @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: "in_stock".
|
|
291
|
+
* @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: "new".
|
|
292
|
+
* @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: "equals".
|
|
293
|
+
* @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: "color".
|
|
294
|
+
* @returns {IProductsEntity[]} Array with ProductEntity objects
|
|
295
295
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
296
296
|
* @description Find products by its ids.
|
|
297
297
|
*/
|
|
@@ -308,9 +308,9 @@ class ProductApi extends asyncModules_1.default {
|
|
|
308
308
|
/**
|
|
309
309
|
* Retrieve one product object.
|
|
310
310
|
* @handleName getProductById
|
|
311
|
-
* @param
|
|
312
|
-
* @param
|
|
313
|
-
* @returns {IProductsEntity}
|
|
311
|
+
* @param {number} [id] - Product id. Example: 12345.
|
|
312
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
313
|
+
* @returns {IProductsEntity} ProductEntity object.
|
|
314
314
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
315
315
|
* @description Retrieve one product object.
|
|
316
316
|
*/
|
|
@@ -321,8 +321,8 @@ class ProductApi extends asyncModules_1.default {
|
|
|
321
321
|
/**
|
|
322
322
|
* Getting a product block object by product id.
|
|
323
323
|
* @handleName getProductBlockById
|
|
324
|
-
* @param
|
|
325
|
-
* @returns {IProductBlock}
|
|
324
|
+
* @param {number} id - Product id. Example: 12345.
|
|
325
|
+
* @returns {IProductBlock} - Product block object.
|
|
326
326
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
327
327
|
* @description Getting a product block object by product id.
|
|
328
328
|
*/
|
|
@@ -333,9 +333,9 @@ class ProductApi extends asyncModules_1.default {
|
|
|
333
333
|
/**
|
|
334
334
|
* Quick search for product page objects with limited output.
|
|
335
335
|
* @handleName searchProduct
|
|
336
|
-
* @param
|
|
337
|
-
* @param
|
|
338
|
-
* @returns {IProductsEntity[]}
|
|
336
|
+
* @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".
|
|
337
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
338
|
+
* @returns {IProductsEntity[]} Array with ProductEntity objects
|
|
339
339
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
340
340
|
* @description Quick search for product page objects with limited output.
|
|
341
341
|
*/
|
|
@@ -356,20 +356,20 @@ class ProductApi extends asyncModules_1.default {
|
|
|
356
356
|
/**
|
|
357
357
|
* Getting the number of products for the entire catalog.
|
|
358
358
|
* @handleName getProductsCount
|
|
359
|
-
* @param
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
* @returns {IProductsCount}
|
|
359
|
+
* @param {any[]} body - Body parameters for filter. Deault: []. Example:
|
|
360
|
+
[
|
|
361
|
+
{
|
|
362
|
+
"attributeMarker": "price",
|
|
363
|
+
"conditionMarker": "in",
|
|
364
|
+
"statusMarker": "status_1",
|
|
365
|
+
"conditionValue": {},
|
|
366
|
+
"pageUrls": [
|
|
367
|
+
"23-laminat-floorwood-maxima"
|
|
368
|
+
],
|
|
369
|
+
"title": "Iphone 17 Pro"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
* @returns {IProductsCount} Object with product items count.
|
|
373
373
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
374
374
|
* @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
|
|
375
375
|
*/
|
|
@@ -382,21 +382,21 @@ class ProductApi extends asyncModules_1.default {
|
|
|
382
382
|
/**
|
|
383
383
|
* Getting the number of products on a catalog page by page ID.
|
|
384
384
|
* @handleName getProductsCountByPageId
|
|
385
|
-
* @param
|
|
386
|
-
* @param
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
* @returns {IProductsCount}
|
|
385
|
+
* @param {string} id - Page ID.
|
|
386
|
+
* @param {any[]} body - Body parameters for filter. Deault: []. Example:
|
|
387
|
+
[
|
|
388
|
+
{
|
|
389
|
+
"attributeMarker": "price",
|
|
390
|
+
"conditionMarker": "in",
|
|
391
|
+
"statusMarker": "status_1",
|
|
392
|
+
"conditionValue": {},
|
|
393
|
+
"pageUrls": [
|
|
394
|
+
"23-laminat-floorwood-maxima"
|
|
395
|
+
],
|
|
396
|
+
"title": "Iphone 17 Pro"
|
|
397
|
+
}
|
|
398
|
+
]
|
|
399
|
+
* @returns {IProductsCount} Object with product items count.
|
|
400
400
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
401
401
|
* @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
|
|
402
402
|
*/
|
|
@@ -409,21 +409,21 @@ class ProductApi extends asyncModules_1.default {
|
|
|
409
409
|
/**
|
|
410
410
|
* Getting the number of products for the catalog page by page url.
|
|
411
411
|
* @handleName getProductsCountByPageUrl
|
|
412
|
-
* @param
|
|
413
|
-
* @param
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
* @returns {IProductsCount}
|
|
412
|
+
* @param {string} url - Page url.
|
|
413
|
+
* @param {any[]} body - Body parameters for filter. Deault: []. Example:
|
|
414
|
+
[
|
|
415
|
+
{
|
|
416
|
+
"attributeMarker": "price",
|
|
417
|
+
"conditionMarker": "in",
|
|
418
|
+
"statusMarker": "status_1",
|
|
419
|
+
"conditionValue": {},
|
|
420
|
+
"pageUrls": [
|
|
421
|
+
"23-laminat-floorwood-maxima"
|
|
422
|
+
],
|
|
423
|
+
"title": "Iphone 17 Pro"
|
|
424
|
+
}
|
|
425
|
+
]
|
|
426
|
+
* @returns {IProductsCount} Object with product items count.
|
|
427
427
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
428
428
|
* @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
|
|
429
429
|
*/
|