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.
Files changed (72) hide show
  1. package/dist/admins/adminsApi.d.ts +20 -20
  2. package/dist/admins/adminsApi.js +20 -20
  3. package/dist/admins/adminsInterfaces.d.ts +43 -43
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
  5. package/dist/attribute-sets/attributeSetsApi.js +16 -16
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
  7. package/dist/auth-provider/authProviderApi.d.ts +126 -126
  8. package/dist/auth-provider/authProviderApi.js +126 -126
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
  10. package/dist/base/asyncModules.d.ts +17 -17
  11. package/dist/base/asyncModules.js +26 -21
  12. package/dist/base/result.d.ts +5 -5
  13. package/dist/base/result.js +5 -9
  14. package/dist/base/stateModule.d.ts +1 -1
  15. package/dist/base/stateModule.js +1 -1
  16. package/dist/base/syncModules.d.ts +35 -35
  17. package/dist/base/syncModules.js +92 -45
  18. package/dist/base/utils.d.ts +13 -13
  19. package/dist/blocks/blocksApi.d.ts +24 -24
  20. package/dist/blocks/blocksApi.js +24 -24
  21. package/dist/blocks/blocksInterfaces.d.ts +85 -85
  22. package/dist/events/eventsApi.d.ts +11 -11
  23. package/dist/events/eventsApi.js +11 -11
  24. package/dist/events/eventsInterfaces.d.ts +23 -23
  25. package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
  26. package/dist/file-uploading/fileUploadingApi.js +38 -38
  27. package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
  28. package/dist/forms/formsApi.d.ts +7 -7
  29. package/dist/forms/formsApi.js +7 -7
  30. package/dist/forms/formsInterfaces.d.ts +43 -31
  31. package/dist/forms-data/formsDataApi.d.ts +37 -37
  32. package/dist/forms-data/formsDataApi.js +37 -38
  33. package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
  34. package/dist/general-types/generalTypesApi.d.ts +1 -1
  35. package/dist/general-types/generalTypesApi.js +1 -1
  36. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  37. package/dist/index.d.ts +10 -10
  38. package/dist/index.js +10 -10
  39. package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
  40. package/dist/integration-collections/integrationCollectionsApi.js +76 -80
  41. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
  42. package/dist/locales/localesInterfaces.d.ts +8 -8
  43. package/dist/menus/menusApi.d.ts +3 -3
  44. package/dist/menus/menusApi.js +3 -3
  45. package/dist/menus/menusInterfaces.d.ts +39 -39
  46. package/dist/orders/ordersApi.d.ts +56 -56
  47. package/dist/orders/ordersApi.js +56 -56
  48. package/dist/orders/ordersInterfaces.d.ts +204 -198
  49. package/dist/pages/pagesApi.d.ts +60 -60
  50. package/dist/pages/pagesApi.js +60 -60
  51. package/dist/pages/pagesInterfaces.d.ts +133 -141
  52. package/dist/payments/paymentsApi.d.ts +15 -15
  53. package/dist/payments/paymentsApi.js +15 -15
  54. package/dist/payments/paymentsInterfaces.d.ts +55 -55
  55. package/dist/product-statuses/productStatusesApi.d.ts +7 -7
  56. package/dist/product-statuses/productStatusesApi.js +7 -7
  57. package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
  58. package/dist/products/productsApi.d.ts +240 -240
  59. package/dist/products/productsApi.js +240 -240
  60. package/dist/products/productsInterfaces.d.ts +311 -311
  61. package/dist/system/systemApi.d.ts +10 -10
  62. package/dist/system/systemApi.js +10 -10
  63. package/dist/templates/templatesApi.d.ts +8 -8
  64. package/dist/templates/templatesApi.js +8 -8
  65. package/dist/templates/templatesInterfaces.d.ts +22 -22
  66. package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
  67. package/dist/templates-preview/templatesPreviewApi.js +5 -5
  68. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
  69. package/dist/users/usersApi.d.ts +29 -29
  70. package/dist/users/usersApi.js +29 -29
  71. package/dist/users/usersInterfaces.d.ts +77 -77
  72. package/package.json +1 -1
@@ -2,18 +2,18 @@ import type { IFormConfig } from 'forms/formsInterfaces';
2
2
  import type { AttributeType, IError, ILocalizeInfo, LangType, Types } from '../base/utils';
3
3
  /**
4
4
  * @interface IProductApi
5
- * @property {Function} getProducts - Search for all product page objects with pagination and filtering.
6
- * @property {Function} getProductsEmptyPage - Search for all product page objects with pagination that do not have a category.
7
- * @property {Function} getProductsByPageId - Search for all products with pagination for the selected category.
5
+ * @property {Function} getProducts - Search for all product page objects with pagination and filtering.
6
+ * @property {Function} getProductsEmptyPage - Search for all product page objects with pagination that do not have a category.
7
+ * @property {Function} getProductsByPageId - Search for all products with pagination for the selected category.
8
8
  * @property {Function} getProductsPriceByPageUrl - Search for information about products and prices for the selected category.
9
- * @property {Function} getProductsByPageUrl - Search for all products with pagination for the selected category.
10
- * @property {Function} getRelatedProductsById - Find all related product page objects.
11
- * @property {Function} getProductsByIds - Find products by its ids.
12
- * @property {Function} getProductById - Retrieve one product object.
13
- * @property {Function} getProductBlockById - Getting a product block object by product id.
14
- * @property {Function} searchProduct - Quick search for product page objects with limited output.
15
- * @property {Function} getProductsCount - Retrieves the total number of products available in the entire catalog.
16
- * @property {Function} getProductsCountByPageId - Retrieves the number of products on a specific catalog page identified by its page ID.
9
+ * @property {Function} getProductsByPageUrl - Search for all products with pagination for the selected category.
10
+ * @property {Function} getRelatedProductsById - Find all related product page objects.
11
+ * @property {Function} getProductsByIds - Find products by its ids.
12
+ * @property {Function} getProductById - Retrieve one product object.
13
+ * @property {Function} getProductBlockById - Getting a product block object by product id.
14
+ * @property {Function} searchProduct - Quick search for product page objects with limited output.
15
+ * @property {Function} getProductsCount - Retrieves the total number of products available in the entire catalog.
16
+ * @property {Function} getProductsCountByPageId - Retrieves the number of products on a specific catalog page identified by its page ID.
17
17
  * @property {Function} getProductsCountByPageUrl - Retrieves the number of products on a specific catalog page identified by its URL.
18
18
  * @description This interface defines methods for retrieving and managing products in the system.
19
19
  */
@@ -21,44 +21,44 @@ interface IProductApi {
21
21
  /**
22
22
  * Search for all products with pagination and filter.
23
23
  * @handleName getProducts
24
- * @param {IFilterParams[]} [body] - Request body. Default []. Example:
25
- [
26
- {
27
- "attributeMarker": "price",
28
- "conditionMarker": "mth",
29
- "statusMarker": "waiting",
30
- "conditionValue": 1,
31
- "pageUrls": [
32
- "23-laminat-floorwood-maxima"
33
- ],
34
- "isNested": false,
35
- "title": ""
36
- },
37
- {
38
- "attributeMarker": "price",
39
- "conditionMarker": "lth",
40
- "conditionValue": 3,
41
- "pageUrls": [
42
- "23-laminat-floorwood-maxima"
43
- ],
44
- "isNested": false,
45
- "title": ""
46
- }
47
- ]
48
- * @param {string} [langCode] - Language code. Default: "en_US".
49
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
50
- {
51
- "limit": 30,
52
- "offset": 0,
53
- "sortOrder": "DESC",
54
- "sortKey": "id",
55
- "statusId": 123,
56
- "statusMarker": "in_stock",
57
- "conditionValue": "new",
58
- "conditionMarker": "equals",
59
- "attributeMarker": "color"
60
- }
61
- * @returns {IProductsResponse} Array with ProductEntity objects
24
+ * @param {IFilterParams[]} [body] - Request body. Default []. Example:
25
+ [
26
+ {
27
+ "attributeMarker": "price",
28
+ "conditionMarker": "mth",
29
+ "statusMarker": "waiting",
30
+ "conditionValue": 1,
31
+ "pageUrls": [
32
+ "23-laminat-floorwood-maxima"
33
+ ],
34
+ "isNested": false,
35
+ "title": ""
36
+ },
37
+ {
38
+ "attributeMarker": "price",
39
+ "conditionMarker": "lth",
40
+ "conditionValue": 3,
41
+ "pageUrls": [
42
+ "23-laminat-floorwood-maxima"
43
+ ],
44
+ "isNested": false,
45
+ "title": ""
46
+ }
47
+ ]
48
+ * @param {string} [langCode] - Language code. Default: "en_US".
49
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
50
+ {
51
+ "limit": 30,
52
+ "offset": 0,
53
+ "sortOrder": "DESC",
54
+ "sortKey": "id",
55
+ "statusId": 123,
56
+ "statusMarker": "in_stock",
57
+ "conditionValue": "new",
58
+ "conditionMarker": "equals",
59
+ "attributeMarker": "color"
60
+ }
61
+ * @returns {IProductsResponse} Array with ProductEntity objects
62
62
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
63
63
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
64
64
  */
@@ -66,20 +66,20 @@ interface IProductApi {
66
66
  /**
67
67
  * Search for all product page objects with pagination that do not have a category.
68
68
  * @handleName getProductsEmptyPage
69
- * @param {string} [langCode] - Language code. Default: "en_US".
70
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
71
- {
72
- "limit": 30,
73
- "offset": 0,
74
- "sortOrder": "DESC",
75
- "sortKey": "id",
76
- "statusId": 123,
77
- "statusMarker": "in_stock",
78
- "conditionValue": "new",
79
- "conditionMarker": "equals",
80
- "attributeMarker": "color"
81
- }
82
- * @returns {IProductsResponse} Array with ProductEntity objects.
69
+ * @param {string} [langCode] - Language code. Default: "en_US".
70
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
71
+ {
72
+ "limit": 30,
73
+ "offset": 0,
74
+ "sortOrder": "DESC",
75
+ "sortKey": "id",
76
+ "statusId": 123,
77
+ "statusMarker": "in_stock",
78
+ "conditionValue": "new",
79
+ "conditionMarker": "equals",
80
+ "attributeMarker": "color"
81
+ }
82
+ * @returns {IProductsResponse} Array with ProductEntity objects.
83
83
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
84
84
  * @description This method searches for all product page objects with pagination that do not have a category.
85
85
  */
@@ -87,22 +87,22 @@ interface IProductApi {
87
87
  /**
88
88
  * Search for all products with pagination for the selected category.
89
89
  * @handleName getProductsByPageId
90
- * @param {number} id - Page id. Example: 12345.
91
- * @param {IFilterParams[]} [body] - Request body. Default: [].
92
- * @param {string} [langCode] - Language code. Default "en_US".
93
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
94
- {
95
- "limit": 30,
96
- "offset": 0,
97
- "sortOrder": "DESC",
98
- "sortKey": "id",
99
- "statusId": 123,
100
- "statusMarker": "in_stock",
101
- "conditionValue": "new",
102
- "conditionMarker": "equals",
103
- "attributeMarker": "color"
104
- }
105
- * @returns {IProductsResponse} Array with ProductEntity objects
90
+ * @param {number} id - Page id. Example: 12345.
91
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
92
+ * @param {string} [langCode] - Language code. Default "en_US".
93
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
94
+ {
95
+ "limit": 30,
96
+ "offset": 0,
97
+ "sortOrder": "DESC",
98
+ "sortKey": "id",
99
+ "statusId": 123,
100
+ "statusMarker": "in_stock",
101
+ "conditionValue": "new",
102
+ "conditionMarker": "equals",
103
+ "attributeMarker": "color"
104
+ }
105
+ * @returns {IProductsResponse} Array with ProductEntity objects
106
106
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
107
107
  * @description This method searches for all products with pagination for the selected category.
108
108
  */
@@ -110,21 +110,21 @@ interface IProductApi {
110
110
  /**
111
111
  * Search for information about products and prices for the selected category.
112
112
  * @handleName getProductsPriceByPageUrl
113
- * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
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 {IProductsInfo} Array with ProductInformation objects.
113
+ * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
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 {IProductsInfo} Array with ProductInformation objects.
128
128
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
129
129
  * @description This method searches for information about products prices for the selected category.
130
130
  */
@@ -132,22 +132,22 @@ interface IProductApi {
132
132
  /**
133
133
  * Search for all products with pagination for the selected category.
134
134
  * @handleName getProductsByPageUrl
135
- * @param {string} url - Page url. Example: "23-laminat-floorwood-maxima".
136
- * @param {IFilterParams[]} [body] - Request body. Default: [].
137
- * @param {string} [langCode] - Language code. Default: "en_US".
138
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
139
- {
140
- "limit": 30,
141
- "offset": 0,
142
- "sortOrder": "DESC",
143
- "sortKey": "id",
144
- "statusId": 123,
145
- "statusMarker": "in_stock",
146
- "conditionValue": "new",
147
- "conditionMarker": "equals",
148
- "attributeMarker": "color"
149
- }
150
- * @returns {IProductsResponse} Array with ProductEntity objects.
135
+ * @param {string} url - Page url. Example: "23-laminat-floorwood-maxima".
136
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
137
+ * @param {string} [langCode] - Language code. Default: "en_US".
138
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
139
+ {
140
+ "limit": 30,
141
+ "offset": 0,
142
+ "sortOrder": "DESC",
143
+ "sortKey": "id",
144
+ "statusId": 123,
145
+ "statusMarker": "in_stock",
146
+ "conditionValue": "new",
147
+ "conditionMarker": "equals",
148
+ "attributeMarker": "color"
149
+ }
150
+ * @returns {IProductsResponse} Array with ProductEntity objects.
151
151
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
152
152
  * @description This method searches for all products with pagination for the selected category.
153
153
  */
@@ -155,21 +155,21 @@ interface IProductApi {
155
155
  /**
156
156
  * Find all related product page objects.
157
157
  * @handleName getRelatedProductsById
158
- * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
159
- * @param {string} [langCode] - Language code. Default: "en_US".
160
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
161
- {
162
- "limit": 30,
163
- "offset": 0,
164
- "sortOrder": "DESC",
165
- "sortKey": "id",
166
- "statusId": 123,
167
- "statusMarker": "in_stock",
168
- "conditionValue": "new",
169
- "conditionMarker": "equals",
170
- "attributeMarker": "color"
171
- }
172
- * @returns {IProductsResponse} Array with ProductEntity objects
158
+ * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
159
+ * @param {string} [langCode] - Language code. Default: "en_US".
160
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
161
+ {
162
+ "limit": 30,
163
+ "offset": 0,
164
+ "sortOrder": "DESC",
165
+ "sortKey": "id",
166
+ "statusId": 123,
167
+ "statusMarker": "in_stock",
168
+ "conditionValue": "new",
169
+ "conditionMarker": "equals",
170
+ "attributeMarker": "color"
171
+ }
172
+ * @returns {IProductsResponse} Array with ProductEntity objects
173
173
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
174
174
  * @description This method finds all related product page objects for the selected product page.
175
175
  */
@@ -177,21 +177,21 @@ interface IProductApi {
177
177
  /**
178
178
  * Find products by its ids.
179
179
  * @handleName getProductsByIds
180
- * @param {string} [ids] - Product page identifiers for which to find relationships. Example: "12345,67890".
181
- * @param {string} [langCode] - Language code. Default: "en_US".
182
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
183
- {
184
- "limit": 30,
185
- "offset": 0,
186
- "sortOrder": "DESC",
187
- "sortKey": "id",
188
- "statusId": 123,
189
- "statusMarker": "in_stock",
190
- "conditionValue": "new",
191
- "conditionMarker": "equals",
192
- "attributeMarker": "color"
193
- }
194
- * @returns {IProductsEntity[]} Array with ProductEntity objects
180
+ * @param {string} [ids] - Product page identifiers for which to find relationships. Example: "12345,67890".
181
+ * @param {string} [langCode] - Language code. Default: "en_US".
182
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
183
+ {
184
+ "limit": 30,
185
+ "offset": 0,
186
+ "sortOrder": "DESC",
187
+ "sortKey": "id",
188
+ "statusId": 123,
189
+ "statusMarker": "in_stock",
190
+ "conditionValue": "new",
191
+ "conditionMarker": "equals",
192
+ "attributeMarker": "color"
193
+ }
194
+ * @returns {IProductsEntity[]} Array with ProductEntity objects
195
195
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
196
196
  * @description This method finds products by its ids.
197
197
  */
@@ -199,9 +199,9 @@ interface IProductApi {
199
199
  /**
200
200
  * Retrieve one product object.
201
201
  * @handleName getProductById
202
- * @param {number} id - Product id. Example: 12345.
203
- * @param {string} [langCode] - Language code. Default: "en_US".
204
- * @returns {IProductsEntity} ProductEntity object.
202
+ * @param {number} id - Product id. Example: 12345.
203
+ * @param {string} [langCode] - Language code. Default: "en_US".
204
+ * @returns {IProductsEntity} ProductEntity object.
205
205
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
206
206
  * @description This method retrieves one product object.
207
207
  */
@@ -209,7 +209,7 @@ interface IProductApi {
209
209
  /**
210
210
  * Getting a product block object by product id.
211
211
  * @handleName getProductBlockById
212
- * @param {number} id - Product id. Example: 12345.
212
+ * @param {number} id - Product id. Example: 12345.
213
213
  * @returns {IProductBlock}
214
214
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
215
215
  * @description This method gets a product block object by product id.
@@ -218,9 +218,9 @@ interface IProductApi {
218
218
  /**
219
219
  * Quick search for product page objects with limited output.
220
220
  * @handleName searchProduct
221
- * @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'.
222
- * @param {string} [langCode] - Language code. Default: "en_US".
223
- * @returns {IProductsEntity[]} Array with ProductEntity objects
221
+ * @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'.
222
+ * @param {string} [langCode] - Language code. Default: "en_US".
223
+ * @returns {IProductsEntity[]} Array with ProductEntity objects
224
224
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
225
225
  * @description This method performs a quick search for product page objects with limited output.
226
226
  */
@@ -228,30 +228,30 @@ interface IProductApi {
228
228
  /**
229
229
  * Getting the number of products for the entire catalog.
230
230
  * @handleName getProductsCount
231
- * @param {string} [body] - Body parameters for filter. Deault: []. Example:
232
- [
233
- {
234
- "attributeMarker": "price",
235
- "conditionMarker": "in",
236
- "statusMarker": "status_1",
237
- "conditionValue": {},
238
- "pageUrls": [
239
- "23-laminat-floorwood-maxima"
240
- ],
241
- "title": "Iphone 17 Pro"
242
- },
243
- {
244
- "attributeMarker": "price",
245
- "conditionMarker": "in",
246
- "statusMarker": "status_1",
247
- "conditionValue": {},
248
- "pageUrls": [
249
- "23-laminat-floorwood-maxima"
250
- ],
251
- "title": "Iphone 17 Pro"
252
- }
253
- ]
254
- * @returns {IProductsCount} Object with product items count.
231
+ * @param {string} [body] - Body parameters for filter. Deault: []. Example:
232
+ [
233
+ {
234
+ "attributeMarker": "price",
235
+ "conditionMarker": "in",
236
+ "statusMarker": "status_1",
237
+ "conditionValue": {},
238
+ "pageUrls": [
239
+ "23-laminat-floorwood-maxima"
240
+ ],
241
+ "title": "Iphone 17 Pro"
242
+ },
243
+ {
244
+ "attributeMarker": "price",
245
+ "conditionMarker": "in",
246
+ "statusMarker": "status_1",
247
+ "conditionValue": {},
248
+ "pageUrls": [
249
+ "23-laminat-floorwood-maxima"
250
+ ],
251
+ "title": "Iphone 17 Pro"
252
+ }
253
+ ]
254
+ * @returns {IProductsCount} Object with product items count.
255
255
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
256
256
  * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
257
257
  */
@@ -259,31 +259,31 @@ interface IProductApi {
259
259
  /**
260
260
  * Getting the number of products on a catalog page by page ID.
261
261
  * @handleName getProductsCountByPageId
262
- * @param {string} id - Page id. Example: 12345.
263
- * @param {string} body - Body parameters for filter. Deault: []. Example:
264
- [
265
- {
266
- "attributeMarker": "price",
267
- "conditionMarker": "in",
268
- "statusMarker": "status_1",
269
- "conditionValue": {},
270
- "pageUrls": [
271
- "23-laminat-floorwood-maxima"
272
- ],
273
- "title": "Iphone 17 Pro"
274
- },
275
- {
276
- "attributeMarker": "price",
277
- "conditionMarker": "in",
278
- "statusMarker": "status_1",
279
- "conditionValue": {},
280
- "pageUrls": [
281
- "23-laminat-floorwood-maxima"
282
- ],
283
- "title": "Iphone 17 Pro"
284
- }
285
- ]
286
- * @returns {IProductsCount} Object with product items count.
262
+ * @param {string} id - Page id. Example: 12345.
263
+ * @param {string} body - Body parameters for filter. Deault: []. Example:
264
+ [
265
+ {
266
+ "attributeMarker": "price",
267
+ "conditionMarker": "in",
268
+ "statusMarker": "status_1",
269
+ "conditionValue": {},
270
+ "pageUrls": [
271
+ "23-laminat-floorwood-maxima"
272
+ ],
273
+ "title": "Iphone 17 Pro"
274
+ },
275
+ {
276
+ "attributeMarker": "price",
277
+ "conditionMarker": "in",
278
+ "statusMarker": "status_1",
279
+ "conditionValue": {},
280
+ "pageUrls": [
281
+ "23-laminat-floorwood-maxima"
282
+ ],
283
+ "title": "Iphone 17 Pro"
284
+ }
285
+ ]
286
+ * @returns {IProductsCount} Object with product items count.
287
287
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
288
288
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
289
289
  */
@@ -291,31 +291,31 @@ interface IProductApi {
291
291
  /**
292
292
  * Getting the number of products on a catalog page by page URL.
293
293
  * @handleName getProductsCountByPageUrl
294
- * @param {string} url - Page url. Example: "catalog".
295
- * @param {string} body - Body parameters for filter. Deault: []. Example:
296
- [
297
- {
298
- "attributeMarker": "price",
299
- "conditionMarker": "in",
300
- "statusMarker": "status_1",
301
- "conditionValue": {},
302
- "pageUrls": [
303
- "23-laminat-floorwood-maxima"
304
- ],
305
- "title": "Iphone 17 Pro"
306
- },
307
- {
308
- "attributeMarker": "price",
309
- "conditionMarker": "in",
310
- "statusMarker": "status_1",
311
- "conditionValue": {},
312
- "pageUrls": [
313
- "23-laminat-floorwood-maxima"
314
- ],
315
- "title": "Iphone 17 Pro"
316
- }
317
- ]
318
- * @returns {IProductsCount} Object with product items count.
294
+ * @param {string} url - Page url. Example: "catalog".
295
+ * @param {string} body - Body parameters for filter. Deault: []. Example:
296
+ [
297
+ {
298
+ "attributeMarker": "price",
299
+ "conditionMarker": "in",
300
+ "statusMarker": "status_1",
301
+ "conditionValue": {},
302
+ "pageUrls": [
303
+ "23-laminat-floorwood-maxima"
304
+ ],
305
+ "title": "Iphone 17 Pro"
306
+ },
307
+ {
308
+ "attributeMarker": "price",
309
+ "conditionMarker": "in",
310
+ "statusMarker": "status_1",
311
+ "conditionValue": {},
312
+ "pageUrls": [
313
+ "23-laminat-floorwood-maxima"
314
+ ],
315
+ "title": "Iphone 17 Pro"
316
+ }
317
+ ]
318
+ * @returns {IProductsCount} Object with product items count.
319
319
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
320
320
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
321
321
  */
@@ -323,13 +323,13 @@ interface IProductApi {
323
323
  }
324
324
  /**
325
325
  * @interface IProductsQuery
326
- * @property {number} offset - Parameter for pagination. Default: 0.
327
- * @property {number} limit - Parameter for pagination. Default: 30.
328
- * @property {string} sortOrder - Sort order "DESC" | "ASC". Default: "DESC".
329
- * @property {string} sortKey - Field for sorting (default - null). Possible values: "id", "position", "title", "date", "price". Default: null.
330
- * @property {string | null} [templateMarker] - Product page template marker, default null. Example: "template_12345".
331
- * @property {string | null} [statusMarker] - Product page status marker, default null. Example: "in_stock".
332
- * @property {string | null} [conditionValue] - The value that is being searched for, default null. Example: "new".
326
+ * @property {number} offset - Parameter for pagination. Default: 0.
327
+ * @property {number} limit - Parameter for pagination. Default: 30.
328
+ * @property {string} sortOrder - Sort order "DESC" | "ASC". Default: "DESC".
329
+ * @property {string} sortKey - Field for sorting (default - null). Possible values: "id", "position", "title", "date", "price". Default: null.
330
+ * @property {string | null} [templateMarker] - Product page template marker, default null. Example: "template_12345".
331
+ * @property {string | null} [statusMarker] - Product page status marker, default null. Example: "in_stock".
332
+ * @property {string | null} [conditionValue] - The value that is being searched for, default null. Example: "new".
333
333
  * @property {string | null} [attributeMarker] - The text identifier of the indexed attribute by which values are filtered, default null. Example: "color".
334
334
  * @property {string | null} [conditionMarker] - Marker of the filter condition by which the values are filtered, default null. Example: "equals".
335
335
  * @description This interface defines the structure of a query for retrieving products, including pagination, sorting, and filtering parameters.
@@ -348,13 +348,13 @@ interface IProductsQuery {
348
348
  }
349
349
  /**
350
350
  * @interface IFilterParams
351
- * @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered. Default: null. Example: "color".
351
+ * @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered. Default: null. Example: "color".
352
352
  * @property {string | null} [conditionMarker] - Id of the filter condition by which the values are filtered. Default: null. Example: "equals".
353
- * @property {number | null} conditionValue - The value that is being searched for, default null. Example: "new".
354
- * @property {string | null} [pageUrl] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
355
- * @property {string | null} [statusMarker] - Text identifier of the product page status (default not set). Example: "in_stock".
356
- * @property {string | null} [title] - Product name. Example: "Laminatboden Maxima".
357
- * @property {boolean} [isNested] - Flag for nested attributes, default false. Example: true.
353
+ * @property {number | null} conditionValue - The value that is being searched for, default null. Example: "new".
354
+ * @property {string | null} [pageUrl] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
355
+ * @property {string | null} [statusMarker] - Text identifier of the product page status (default not set). Example: "in_stock".
356
+ * @property {string | null} [title] - Product name. Example: "Laminatboden Maxima".
357
+ * @property {boolean} [isNested] - Flag for nested attributes, default false. Example: true.
358
358
  * @description This interface defines the structure of filter parameters used for querying products, including conditions, attributes, and pagination.
359
359
  */
360
360
  interface IFilterParams {
@@ -368,39 +368,39 @@ interface IFilterParams {
368
368
  }
369
369
  /**
370
370
  * @interface IProductsEntity
371
- * @property {number} id - The unique identifier. Example: 12345.
372
- * @property {ILocalizeInfo} localizeInfos - The name of the products, taking into account localization. Example:
373
- * @property {string | null} statusIdentifier - Product page status identifiers (may be null). Example: "in_stock".
374
- * @property {any} statusLocalizeInfos - JSON description of the item status object, taking into account the language. Example:
375
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "set_12345".
376
- * @property {number} position - Item number (for sorting). Example: 1.
377
- * @property {string | null} [templateIdentifier] - User id of the linked template. Example: "template_12345".
371
+ * @property {number} id - The unique identifier. Example: 12345.
372
+ * @property {ILocalizeInfo} localizeInfos - The name of the products, taking into account localization. Example:
373
+ * @property {string | null} statusIdentifier - Product page status identifiers (may be null). Example: "in_stock".
374
+ * @property {any} statusLocalizeInfos - JSON description of the item status object, taking into account the language. Example:
375
+ * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "set_12345".
376
+ * @property {number} position - Item number (for sorting). Example: 1.
377
+ * @property {string | null} [templateIdentifier] - User id of the linked template. Example: "template_12345".
378
378
  * @property {string | null} [shortDescTemplateIdentifier] - User id of the linked template for a short description. Example: "short_desc_template_12345".
379
- * @property {number} price - The value of the product page price taken from the index. Example: 150.00.
380
- * @property {object} additional - Additional value from the index. Example:
381
- {
382
- "en": "In Stock",
383
- "de": "Auf Lager"
384
- }
385
- * @property {string | null} sku - Product SKU (Stock Keeping Unit), may be null. Example: "SKU_12345".
386
- * @property {boolean} isSync - Indication of page indexing. Example: true.
387
- * @property {AttributeType} attributeValues - Array of attribute values from the index, represented. Example:
388
- [
389
- {
390
- "id": "color",
391
- "value": "red"
392
- }
393
- ]
394
- * @property {string[]} categories - Product categories. Example: [1, 2, 3]
395
- * @property {boolean} isVisible - A sign of page visibility. Example: true.
396
- * @property {any[]} [productPages] - Array of product pages or a single product page object. Example:
397
- * @property {string[]} [blocks] - Array of block identifiers. Example:
398
- [
399
- "block_12345",
400
- "block_67890"
401
- ]
402
- * @property {boolean} isPositionLocked - Sorting position lock indicator (optional). Example: false.
403
- * @property {number[]} relatedIds - Ids of related product pages. Example: [12345, 67890].
379
+ * @property {number} price - The value of the product page price taken from the index. Example: 150.00.
380
+ * @property {object} additional - Additional value from the index. Example:
381
+ {
382
+ "en": "In Stock",
383
+ "de": "Auf Lager"
384
+ }
385
+ * @property {string | null} sku - Product SKU (Stock Keeping Unit), may be null. Example: "SKU_12345".
386
+ * @property {boolean} isSync - Indication of page indexing. Example: true.
387
+ * @property {AttributeType} attributeValues - Array of attribute values from the index, represented. Example:
388
+ [
389
+ {
390
+ "id": "color",
391
+ "value": "red"
392
+ }
393
+ ]
394
+ * @property {string[]} categories - Product categories. Example: [1, 2, 3]
395
+ * @property {boolean} isVisible - A sign of page visibility. Example: true.
396
+ * @property {any[]} [productPages] - Array of product pages or a single product page object. Example:
397
+ * @property {string[]} [blocks] - Array of block identifiers. Example:
398
+ [
399
+ "block_12345",
400
+ "block_67890"
401
+ ]
402
+ * @property {boolean} isPositionLocked - Sorting position lock indicator (optional). Example: false.
403
+ * @property {number[]} relatedIds - Ids of related product pages. Example: [12345, 67890].
404
404
  * @description This interface defines the structure of a product entity, including its identifiers, attributes, and related information.
405
405
  */
406
406
  interface IProductsEntity {
@@ -432,18 +432,18 @@ interface IProductsEntity {
432
432
  }
433
433
  /**
434
434
  * @interface IProductsResponse
435
- * @property {number} total - The total number of products found. Example: 100.
435
+ * @property {number} total - The total number of products found. Example: 100.
436
436
  * @property {IProductsEntity[]} items - An array of product entities. Example:
437
- [
438
- {
439
- "id": 12345,
440
- "title": "Product 1"
441
- },
442
- {
443
- "id": 67890,
444
- "title": "Product 2"
445
- }
446
- ]
437
+ [
438
+ {
439
+ "id": 12345,
440
+ "title": "Product 1"
441
+ },
442
+ {
443
+ "id": 67890,
444
+ "title": "Product 2"
445
+ }
446
+ ]
447
447
  * @description This interface defines the structure of a response containing multiple product entities, including the total count and an array of product items.
448
448
  */
449
449
  interface IProductsResponse {
@@ -452,8 +452,8 @@ interface IProductsResponse {
452
452
  }
453
453
  /**
454
454
  * @interface IProductsCount
455
- * @property {number} totalAll - The total number of products found. Example: 100.
456
- * @property {number} totalInCategory - The total number of products found in category. Example: 50.
455
+ * @property {number} totalAll - The total number of products found. Example: 100.
456
+ * @property {number} totalInCategory - The total number of products found in category. Example: 50.
457
457
  * @property {number} totalInCategoryWithNested - The total number of products found in nested category. Example: 10.
458
458
  * @description This interface defines the structure of a response with total count of product items.
459
459
  */
@@ -464,18 +464,18 @@ interface IProductsCount {
464
464
  }
465
465
  /**
466
466
  * @interface IProductsInfo
467
- * @property {number} total - The total number of products found. Example: 100.
467
+ * @property {number} total - The total number of products found. Example: 100.
468
468
  * @property {IProductInfo[]} items - An array of product information objects. Example:
469
- [
470
- {
471
- "id": 12345,
472
- "price": 150.00
473
- },
474
- {
475
- "id": 67890,
476
- "price": 200.00
477
- }
478
- ]
469
+ [
470
+ {
471
+ "id": 12345,
472
+ "price": 150.00
473
+ },
474
+ {
475
+ "id": 67890,
476
+ "price": 200.00
477
+ }
478
+ ]
479
479
  * @description This interface defines the structure of a response containing product information, including the total count and an array of product items.
480
480
  */
481
481
  interface IProductsInfo {
@@ -484,7 +484,7 @@ interface IProductsInfo {
484
484
  }
485
485
  /**
486
486
  * @interface IProductInfo
487
- * @property {number} id - The unique identifier of the product. Example: 12345.
487
+ * @property {number} id - The unique identifier of the product. Example: 12345.
488
488
  * @property {number} price - The price of the product. Example: 150.00.
489
489
  * @description This interface defines the structure of a product information object, including its identifier and price.
490
490
  */
@@ -494,27 +494,27 @@ interface IProductInfo {
494
494
  }
495
495
  /**
496
496
  * @interface IProductBlock
497
- * @property {number} id - Unique identifier of the product block. Example: 3289.
497
+ * @property {number} id - Unique identifier of the product block. Example: 3289.
498
498
  * @property {number | null} attributeSetIdentifier - Identifier of the attribute set used in the product block, or null if not applicable. Example: 67890.
499
- * @property {ILocalizeInfo} localizeInfos - Localization information for the product block. Example:
500
- {
501
- "title": "Box"
502
- }
503
- * @property {number} version - Version of the product block entity. Example: 1.
504
- * @property {number} position - Position of the product block in a list or layout. Example: 1.
505
- * @property {string} identifier - Unique string identifier for the product block. Example: "product_block_12345".
506
- * @property {Types} type - Type of the product block, such as "product", "error_page", etc. Example: "product".
507
- * @property {object} customSettings - Custom settings for the product block, including slider delay, product configuration, similar product rules, and conditions. Example: {}
508
- * @property {string | null} templateIdentifier - Identifier for the template used by the product block, or null if not applicable. Example: "template_12345".
509
- * @property {boolean} isVisible - Indicates whether the product block is visible. Example: true.
510
- * @property {boolean} isSync - Indicates whether the product block is synchronized. Example: false.
511
- * @property {AttributeType} attributeValues - Array of attribute values from the index, represented as a pair of user attribute id and attribute value. Example:
512
- [
513
- {
514
- "id": "color",
515
- "value": "red"
516
- }
517
- ]
499
+ * @property {ILocalizeInfo} localizeInfos - Localization information for the product block. Example:
500
+ {
501
+ "title": "Box"
502
+ }
503
+ * @property {number} version - Version of the product block entity. Example: 1.
504
+ * @property {number} position - Position of the product block in a list or layout. Example: 1.
505
+ * @property {string} identifier - Unique string identifier for the product block. Example: "product_block_12345".
506
+ * @property {Types} type - Type of the product block, such as "product", "error_page", etc. Example: "product".
507
+ * @property {object} customSettings - Custom settings for the product block, including slider delay, product configuration, similar product rules, and conditions. Example: {}
508
+ * @property {string | null} templateIdentifier - Identifier for the template used by the product block, or null if not applicable. Example: "template_12345".
509
+ * @property {boolean} isVisible - Indicates whether the product block is visible. Example: true.
510
+ * @property {boolean} isSync - Indicates whether the product block is synchronized. Example: false.
511
+ * @property {AttributeType} attributeValues - Array of attribute values from the index, represented as a pair of user attribute id and attribute value. Example:
512
+ [
513
+ {
514
+ "id": "color",
515
+ "value": "red"
516
+ }
517
+ ]
518
518
  * @description This interface defines the structure of a product block entity, including its identifiers, attributes, and custom settings.
519
519
  */
520
520
  interface IProductBlock {