oneentry 1.0.138 → 1.0.140

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/README.md +16 -1
  2. package/configure.js +40 -21
  3. package/package.json +15 -12
  4. package/dist/admins/adminsApi.d.ts +0 -50
  5. package/dist/admins/adminsApi.js +0 -65
  6. package/dist/admins/adminsInterfaces.d.ts +0 -99
  7. package/dist/admins/adminsInterfaces.js +0 -2
  8. package/dist/admins/adminsSchemas.d.ts +0 -30
  9. package/dist/admins/adminsSchemas.js +0 -27
  10. package/dist/attribute-sets/attributeSetsApi.d.ts +0 -63
  11. package/dist/attribute-sets/attributeSetsApi.js +0 -98
  12. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +0 -187
  13. package/dist/attribute-sets/attributeSetsInterfaces.js +0 -2
  14. package/dist/attribute-sets/attributeSetsSchemas.d.ts +0 -90
  15. package/dist/attribute-sets/attributeSetsSchemas.js +0 -74
  16. package/dist/auth-provider/authProviderApi.d.ts +0 -249
  17. package/dist/auth-provider/authProviderApi.js +0 -351
  18. package/dist/auth-provider/authProviderSchemas.d.ts +0 -137
  19. package/dist/auth-provider/authProviderSchemas.js +0 -85
  20. package/dist/auth-provider/authProvidersInterfaces.d.ts +0 -417
  21. package/dist/auth-provider/authProvidersInterfaces.js +0 -2
  22. package/dist/base/asyncModules.d.ts +0 -80
  23. package/dist/base/asyncModules.js +0 -440
  24. package/dist/base/result.d.ts +0 -39
  25. package/dist/base/result.js +0 -154
  26. package/dist/base/stateModule.d.ts +0 -41
  27. package/dist/base/stateModule.js +0 -128
  28. package/dist/base/syncModules.d.ts +0 -148
  29. package/dist/base/syncModules.js +0 -530
  30. package/dist/base/utils.d.ts +0 -197
  31. package/dist/base/utils.js +0 -2
  32. package/dist/base/validation.d.ts +0 -118
  33. package/dist/base/validation.js +0 -132
  34. package/dist/blocks/blocksApi.d.ts +0 -74
  35. package/dist/blocks/blocksApi.js +0 -184
  36. package/dist/blocks/blocksInterfaces.d.ts +0 -173
  37. package/dist/blocks/blocksInterfaces.js +0 -2
  38. package/dist/blocks/blocksSchemas.d.ts +0 -187
  39. package/dist/blocks/blocksSchemas.js +0 -43
  40. package/dist/events/eventsApi.d.ts +0 -60
  41. package/dist/events/eventsApi.js +0 -97
  42. package/dist/events/eventsInterfaces.d.ts +0 -87
  43. package/dist/events/eventsInterfaces.js +0 -2
  44. package/dist/file-uploading/fileUploadingApi.d.ts +0 -88
  45. package/dist/file-uploading/fileUploadingApi.js +0 -132
  46. package/dist/file-uploading/fileUploadingInterfaces.d.ts +0 -117
  47. package/dist/file-uploading/fileUploadingInterfaces.js +0 -2
  48. package/dist/file-uploading/fileUploadingSchemas.d.ts +0 -22
  49. package/dist/file-uploading/fileUploadingSchemas.js +0 -21
  50. package/dist/forms/formsApi.d.ts +0 -42
  51. package/dist/forms/formsApi.js +0 -57
  52. package/dist/forms/formsInterfaces.d.ts +0 -132
  53. package/dist/forms/formsInterfaces.js +0 -2
  54. package/dist/forms/formsSchemas.d.ts +0 -65
  55. package/dist/forms/formsSchemas.js +0 -36
  56. package/dist/forms-data/formsDataApi.d.ts +0 -106
  57. package/dist/forms-data/formsDataApi.js +0 -189
  58. package/dist/forms-data/formsDataInterfaces.d.ts +0 -525
  59. package/dist/forms-data/formsDataInterfaces.js +0 -2
  60. package/dist/forms-data/formsDataSchemas.d.ts +0 -115
  61. package/dist/forms-data/formsDataSchemas.js +0 -86
  62. package/dist/general-types/generalTypesApi.d.ts +0 -28
  63. package/dist/general-types/generalTypesApi.js +0 -38
  64. package/dist/general-types/generalTypesInterfaces.d.ts +0 -30
  65. package/dist/general-types/generalTypesInterfaces.js +0 -2
  66. package/dist/general-types/generalTypesSchemas.d.ts +0 -50
  67. package/dist/general-types/generalTypesSchemas.js +0 -35
  68. package/dist/index.d.ts +0 -94
  69. package/dist/index.js +0 -97
  70. package/dist/integration-collections/integrationCollectionsApi.d.ts +0 -173
  71. package/dist/integration-collections/integrationCollectionsApi.js +0 -220
  72. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +0 -313
  73. package/dist/integration-collections/integrationCollectionsInterfaces.js +0 -2
  74. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +0 -84
  75. package/dist/integration-collections/integrationCollectionsSchemas.js +0 -63
  76. package/dist/locales/localesApi.d.ts +0 -27
  77. package/dist/locales/localesApi.js +0 -37
  78. package/dist/locales/localesInterfaces.d.ts +0 -41
  79. package/dist/locales/localesInterfaces.js +0 -2
  80. package/dist/locales/localesSchemas.d.ts +0 -32
  81. package/dist/locales/localesSchemas.js +0 -26
  82. package/dist/menus/menusApi.d.ts +0 -29
  83. package/dist/menus/menusApi.js +0 -39
  84. package/dist/menus/menusInterfaces.d.ts +0 -88
  85. package/dist/menus/menusInterfaces.js +0 -4
  86. package/dist/menus/menusSchemas.d.ts +0 -16
  87. package/dist/menus/menusSchemas.js +0 -28
  88. package/dist/orders/ordersApi.d.ts +0 -126
  89. package/dist/orders/ordersApi.js +0 -169
  90. package/dist/orders/ordersInterfaces.d.ts +0 -427
  91. package/dist/orders/ordersInterfaces.js +0 -2
  92. package/dist/orders/ordersSchemas.d.ts +0 -158
  93. package/dist/orders/ordersSchemas.js +0 -120
  94. package/dist/pages/pagesApi.d.ts +0 -151
  95. package/dist/pages/pagesApi.js +0 -390
  96. package/dist/pages/pagesInterfaces.d.ts +0 -292
  97. package/dist/pages/pagesInterfaces.js +0 -2
  98. package/dist/pages/pagesSchemas.d.ts +0 -85
  99. package/dist/pages/pagesSchemas.js +0 -46
  100. package/dist/payments/paymentsApi.d.ts +0 -82
  101. package/dist/payments/paymentsApi.js +0 -121
  102. package/dist/payments/paymentsInterfaces.d.ts +0 -206
  103. package/dist/payments/paymentsInterfaces.js +0 -2
  104. package/dist/payments/paymentsSchemas.d.ts +0 -137
  105. package/dist/payments/paymentsSchemas.js +0 -78
  106. package/dist/product-statuses/productStatusesApi.d.ts +0 -47
  107. package/dist/product-statuses/productStatusesApi.js +0 -70
  108. package/dist/product-statuses/productStatusesInterfaces.d.ts +0 -66
  109. package/dist/product-statuses/productStatusesInterfaces.js +0 -2
  110. package/dist/product-statuses/productStatusesSchemas.d.ts +0 -34
  111. package/dist/product-statuses/productStatusesSchemas.js +0 -30
  112. package/dist/products/productsApi.d.ts +0 -365
  113. package/dist/products/productsApi.js +0 -464
  114. package/dist/products/productsInterfaces.d.ts +0 -583
  115. package/dist/products/productsInterfaces.js +0 -2
  116. package/dist/products/productsSchemas.d.ts +0 -212
  117. package/dist/products/productsSchemas.js +0 -85
  118. package/dist/system/systemApi.d.ts +0 -65
  119. package/dist/system/systemApi.js +0 -82
  120. package/dist/system/systemInterfaces.d.ts +0 -23
  121. package/dist/system/systemInterfaces.js +0 -2
  122. package/dist/templates/templatesApi.d.ts +0 -49
  123. package/dist/templates/templatesApi.js +0 -75
  124. package/dist/templates/templatesInterfaces.d.ts +0 -70
  125. package/dist/templates/templatesInterfaces.js +0 -2
  126. package/dist/templates/templatesSchemas.d.ts +0 -48
  127. package/dist/templates/templatesSchemas.js +0 -31
  128. package/dist/templates-preview/templatesPreviewApi.d.ts +0 -38
  129. package/dist/templates-preview/templatesPreviewApi.js +0 -53
  130. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +0 -121
  131. package/dist/templates-preview/templatesPreviewInterfaces.js +0 -2
  132. package/dist/templates-preview/templatesPreviewSchemas.d.ts +0 -83
  133. package/dist/templates-preview/templatesPreviewSchemas.js +0 -48
  134. package/dist/users/usersApi.d.ts +0 -143
  135. package/dist/users/usersApi.js +0 -174
  136. package/dist/users/usersInterfaces.d.ts +0 -235
  137. package/dist/users/usersInterfaces.js +0 -2
  138. package/dist/users/usersSchemas.d.ts +0 -38
  139. package/dist/users/usersSchemas.js +0 -28
  140. package/dist/web-socket/wsApi.d.ts +0 -25
  141. package/dist/web-socket/wsApi.js +0 -45
  142. package/dist/web-socket/wsInterfaces.d.ts +0 -17
  143. package/dist/web-socket/wsInterfaces.js +0 -2
@@ -1,583 +0,0 @@
1
- import type { AttributeType, IError, ILocalizeInfo, LangType, Types } from '../base/utils';
2
- import type { IFormConfig } from '../forms/formsInterfaces';
3
- /**
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.
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.
17
- * @property {Function} getProductsCountByPageUrl - Retrieves the number of products on a specific catalog page identified by its URL.
18
- * @description This interface defines methods for retrieving and managing products in the system.
19
- */
20
- interface IProductApi {
21
- /**
22
- * Search for all products with pagination and filter.
23
- * @handleName getProducts
24
- * @param {IFilterParams[]} [body] - Request body. Default [].
25
- * @example
26
- [
27
- {
28
- "attributeMarker": "price",
29
- "conditionMarker": "mth",
30
- "statusMarker": "waiting",
31
- "conditionValue": 1,
32
- "pageUrls": [
33
- "23-laminat-floorwood-maxima"
34
- ],
35
- "isNested": false,
36
- "title": ""
37
- },
38
- {
39
- "attributeMarker": "price",
40
- "conditionMarker": "lth",
41
- "conditionValue": 3,
42
- "pageUrls": [
43
- "23-laminat-floorwood-maxima"
44
- ],
45
- "isNested": false,
46
- "title": ""
47
- }
48
- ]
49
- * @param {string} [langCode] - Language code. Default: "en_US".
50
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
51
- * @example
52
- {
53
- "limit": 30,
54
- "offset": 0,
55
- "sortOrder": "DESC",
56
- "sortKey": "id",
57
- "statusId": 123,
58
- "statusMarker": "in_stock",
59
- "conditionValue": "new",
60
- "conditionMarker": "equals",
61
- "attributeMarker": "color"
62
- }
63
- * @returns {IProductsResponse} Array with ProductEntity objects
64
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
65
- */
66
- getProducts(body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
67
- /**
68
- * Search for all product page objects with pagination that do not have a category.
69
- * @handleName getProductsEmptyPage
70
- * @param {string} [langCode] - Language code. Default: "en_US".
71
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
72
- * @example
73
- {
74
- "limit": 30,
75
- "offset": 0,
76
- "sortOrder": "DESC",
77
- "sortKey": "id",
78
- "statusId": 123,
79
- "statusMarker": "in_stock",
80
- "conditionValue": "new",
81
- "conditionMarker": "equals",
82
- "attributeMarker": "color"
83
- }
84
- * @returns {IProductsResponse} Array with ProductEntity objects.
85
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
86
- * @description This method searches for all product page objects with pagination that do not have a category.
87
- */
88
- getProductsEmptyPage(langCode?: LangType, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
89
- /**
90
- * Search for all products with pagination for the selected category.
91
- * @handleName getProductsByPageId
92
- * @param {number} id - Page id. Example: 12345.
93
- * @param {IFilterParams[]} [body] - Request body. Default: [].
94
- * @param {string} [langCode] - Language code. Default "en_US".
95
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
96
- * @example
97
- {
98
- "limit": 30,
99
- "offset": 0,
100
- "sortOrder": "DESC",
101
- "sortKey": "id",
102
- "statusId": 123,
103
- "statusMarker": "in_stock",
104
- "conditionValue": "new",
105
- "conditionMarker": "equals",
106
- "attributeMarker": "color"
107
- }
108
- * @returns {IProductsResponse} Array with ProductEntity objects
109
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
110
- * @description This method searches for all products with pagination for the selected category.
111
- */
112
- getProductsByPageId(id: number, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
113
- /**
114
- * Search for information about products and prices for the selected category.
115
- * @handleName getProductsPriceByPageUrl
116
- * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
117
- * @param {string} [langCode] - Language code. Default: "en_US".
118
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
119
- * @example
120
- {
121
- "limit": 30,
122
- "offset": 0,
123
- "sortOrder": "DESC",
124
- "sortKey": "id",
125
- "statusId": 123,
126
- "statusMarker": "in_stock",
127
- "conditionValue": "new",
128
- "conditionMarker": "equals",
129
- "attributeMarker": "color"
130
- }
131
- * @returns {IProductsInfo} Array with ProductInformation objects.
132
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
133
- * @description This method searches for information about products prices for the selected category.
134
- */
135
- getProductsPriceByPageUrl(url: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsInfo | IError>;
136
- /**
137
- * Search for all products with pagination for the selected category.
138
- * @handleName getProductsByPageUrl
139
- * @param {string} url - Page url. Example: "23-laminat-floorwood-maxima".
140
- * @param {IFilterParams[]} [body] - Request body. Default: [].
141
- * @param {string} [langCode] - Language code. Default: "en_US".
142
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
143
- * @example
144
- {
145
- "limit": 30,
146
- "offset": 0,
147
- "sortOrder": "DESC",
148
- "sortKey": "id",
149
- "statusId": 123,
150
- "statusMarker": "in_stock",
151
- "conditionValue": "new",
152
- "conditionMarker": "equals",
153
- "attributeMarker": "color"
154
- }
155
- * @returns {IProductsResponse} Array with ProductEntity objects.
156
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
157
- * @description This method searches for all products with pagination for the selected category.
158
- */
159
- getProductsByPageUrl(url: string, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
160
- /**
161
- * Find all related product page objects.
162
- * @handleName getRelatedProductsById
163
- * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
164
- * @param {string} [langCode] - Language code. Default: "en_US".
165
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
166
- * @example
167
- {
168
- "limit": 30,
169
- "offset": 0,
170
- "sortOrder": "DESC",
171
- "sortKey": "id",
172
- "statusId": 123,
173
- "statusMarker": "in_stock",
174
- "conditionValue": "new",
175
- "conditionMarker": "equals",
176
- "attributeMarker": "color"
177
- }
178
- * @returns {IProductsResponse} Array with ProductEntity objects
179
- * @throws {IError} If there is an error during the fetch operation, it will return an error object.
180
- * @description This method finds all related product page objects for the selected product page.
181
- */
182
- getRelatedProductsById(id: number, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
183
- /**
184
- * Find products by its ids.
185
- * @handleName getProductsByIds
186
- * @param {string} ids - Product page identifiers for which to find relationships. Example: "12345,67890".
187
- * @param {string} [langCode] - Language code. Default: "en_US".
188
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
189
- * @example
190
- {
191
- "limit": 30,
192
- "offset": 0,
193
- "sortOrder": "DESC",
194
- "sortKey": "id",
195
- "statusId": 123,
196
- "statusMarker": "in_stock",
197
- "conditionValue": "new",
198
- "conditionMarker": "equals",
199
- "attributeMarker": "color"
200
- }
201
- * @returns {IProductsEntity[]} Array with ProductEntity objects
202
- * @throws {IError} If there is an error during the fetch operation, it will return an error object.
203
- * @description This method finds products by its ids.
204
- */
205
- getProductsByIds(ids: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsEntity[] | IError>;
206
- /**
207
- * Retrieve one product object.
208
- * @handleName getProductById
209
- * @param {number} id - Product id. Example: 12345.
210
- * @param {string} [langCode] - Language code. Default: "en_US".
211
- * @returns {IProductsEntity} ProductEntity object.
212
- * @throws {IError} If there is an error during the fetch operation, it will return an error object.
213
- * @description This method retrieves one product object.
214
- */
215
- getProductById(id: number, langCode?: string): Promise<IProductsEntity | IError>;
216
- /**
217
- * Getting a product block object by product id.
218
- * @handleName getProductBlockById
219
- * @param {number} id - Product id. Example: 12345.
220
- * @returns {IProductBlock}
221
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
222
- * @description This method gets a product block object by product id.
223
- */
224
- getProductBlockById(id: number): Promise<IProductBlock[] | IError>;
225
- /**
226
- * Quick search for product page objects with limited output.
227
- * @handleName searchProduct
228
- * @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'.
229
- * @param {string} [langCode] - Language code. Default: "en_US".
230
- * @returns {IProductsEntity[]} Array with ProductEntity objects
231
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
232
- * @description This method performs a quick search for product page objects with limited output.
233
- */
234
- searchProduct(name: string, langCode?: string): Promise<IProductsEntity[] | IError>;
235
- /**
236
- * Getting the number of products for the entire catalog.
237
- * @handleName getProductsCount
238
- * @param {object[]} [body] - Body parameters for filter. Deault: [].
239
- * @example
240
- [
241
- {
242
- "attributeMarker": "price",
243
- "conditionMarker": "in",
244
- "statusMarker": "status_1",
245
- "conditionValue": {},
246
- "pageUrls": [
247
- "23-laminat-floorwood-maxima"
248
- ],
249
- "title": "Iphone 17 Pro"
250
- },
251
- {
252
- "attributeMarker": "price",
253
- "conditionMarker": "in",
254
- "statusMarker": "status_1",
255
- "conditionValue": {},
256
- "pageUrls": [
257
- "23-laminat-floorwood-maxima"
258
- ],
259
- "title": "Iphone 17 Pro"
260
- }
261
- ]
262
- * @returns {IProductsCount} Object with product items count.
263
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
264
- * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
265
- */
266
- getProductsCount(body?: object[]): Promise<IProductsCount | IError>;
267
- /**
268
- * Getting the number of products on a catalog page by page ID.
269
- * @handleName getProductsCountByPageId
270
- * @param {string} id - Page id. Example: 12345.
271
- * @param {object[]} body - Body parameters for filter. Deault: [].
272
- * @example
273
- [
274
- {
275
- "attributeMarker": "price",
276
- "conditionMarker": "in",
277
- "statusMarker": "status_1",
278
- "conditionValue": {},
279
- "pageUrls": [
280
- "23-laminat-floorwood-maxima"
281
- ],
282
- "title": "Iphone 17 Pro"
283
- },
284
- {
285
- "attributeMarker": "price",
286
- "conditionMarker": "in",
287
- "statusMarker": "status_1",
288
- "conditionValue": {},
289
- "pageUrls": [
290
- "23-laminat-floorwood-maxima"
291
- ],
292
- "title": "Iphone 17 Pro"
293
- }
294
- ]
295
- * @returns {IProductsCount} Object with product items count.
296
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
297
- * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
298
- */
299
- getProductsCountByPageId(id: string, body?: object[]): Promise<IProductsCount | IError>;
300
- /**
301
- * Getting the number of products on a catalog page by page URL.
302
- * @handleName getProductsCountByPageUrl
303
- * @param {string} url - Page url. Example: "catalog".
304
- * @param {string} body - Body parameters for filter. Deault: [].
305
- * @example
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
- "attributeMarker": "price",
319
- "conditionMarker": "in",
320
- "statusMarker": "status_1",
321
- "conditionValue": {},
322
- "pageUrls": [
323
- "23-laminat-floorwood-maxima"
324
- ],
325
- "title": "Iphone 17 Pro"
326
- }
327
- ]
328
- * @returns {IProductsCount} Object with product items count.
329
- * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
330
- * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
331
- */
332
- getProductsCountByPageUrl(url: string, body?: object[]): Promise<IProductsCount | IError>;
333
- }
334
- /**
335
- * @interface IProductsQuery
336
- * @property {number} offset - Parameter for pagination. Default: 0.
337
- * @property {number} limit - Parameter for pagination. Default: 30.
338
- * @property {string} sortOrder - Sort order "DESC" | "ASC". Default: "DESC".
339
- * @property {string} sortKey - Field for sorting (default - null). Possible values: "id", "position", "title", "date", "price". Default: null.
340
- * @property {string} [signPrice] - Price sign. Default: null.
341
- * @property {string | null} [templateMarker] - Product page template marker, default null. Example: "template_12345".
342
- * @property {string | null} [statusMarker] - Product page status marker, default null. Example: "in_stock".
343
- * @property {string | null} [conditionValue] - The value that is being searched for, default null. Example: "new".
344
- * @property {string | null} [attributeMarker] - The text identifier of the indexed attribute by which values are filtered, default null. Example: "color".
345
- * @property {string | null} [conditionMarker] - Marker of the filter condition by which the values are filtered, default null. Example: "equals".
346
- * @description This interface defines the structure of a query for retrieving products, including pagination, sorting, and filtering parameters.
347
- */
348
- interface IProductsQuery {
349
- offset: number;
350
- limit: number;
351
- sortOrder: 'DESC' | 'ASC' | null;
352
- sortKey: 'id' | 'position' | 'title' | 'date' | 'price' | null;
353
- signPrice?: string;
354
- templateMarker?: string | null;
355
- statusMarker?: string | null;
356
- conditionValue?: string | null;
357
- attributeMarker?: string | null;
358
- conditionMarker?: 'in' /** in - Contains */ | 'nin' /** nin - Does not contain */ | 'eq' /** 'eq' - Equal */ | 'neq' /** 'neq' - Not equal */ | 'mth' /** 'mth' - Greater than */ | 'lth' /** 'lth' - Less than */ | 'exs' /** 'exs' - Exists */ | 'nexs' /** 'nexs' - Does not exist */ | null;
359
- [key: string]: any;
360
- }
361
- /**
362
- * @interface IFilterParams
363
- * @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered. Default: null. Example: "color".
364
- * @property {string | null} [conditionMarker] - Id of the filter condition by which the values are filtered. Default: null. Example: "equals".
365
- * @property {number | null} conditionValue - The value that is being searched for, default null. Example: "new".
366
- * @property {string | null} [pageUrl] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
367
- * @property {string | null} [statusMarker] - Text identifier of the product page status (default not set). Example: "in_stock".
368
- * @property {string | null} [title] - Product name. Example: "Laminatboden Maxima".
369
- * @property {boolean} [isNested] - Flag for nested attributes, default false. Example: true.
370
- * @description This interface defines the structure of filter parameters used for querying products, including conditions, attributes, and pagination.
371
- */
372
- interface IFilterParams {
373
- attributeMarker: string;
374
- conditionMarker?: 'in' /** 'in' - Contains */ | 'nin' /** 'nin' - Does not contain */ | 'eq' /** 'eq' - Equal */ | 'neq' /** 'neq' - Not equal */ | 'mth' /** 'mth' - Greater than */ | 'lth' /** 'lth' - Less than */ | 'exs' /** 'exs' - Exists */ | 'nexs' /** 'nexs' - Does not exist */ | null;
375
- conditionValue: number | string | null;
376
- pageUrl?: string | null;
377
- statusMarker?: string;
378
- title?: string;
379
- isNested?: boolean;
380
- }
381
- /**
382
- * @interface IProductsEntity
383
- * @property {number} id - The unique identifier. Example: 12345.
384
- * @property {ILocalizeInfo} localizeInfos - The name of the products, taking into account localization. Example: {}.
385
- * @property {string | null} statusIdentifier - Product page status identifiers (may be null). Example: "in_stock".
386
- * @property {Record<string, any>} statusLocalizeInfos - JSON description of the item status object, taking into account the language. Example: {}.
387
- * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "set_12345".
388
- * @property {number} position - Item number (for sorting). Example: 1.
389
- * @property {number | null} price - The value of the product page price taken from the index. Example: 150.00.
390
- * @property {object} additional - Additional value from the index.
391
- * @example
392
- {
393
- "en": "In Stock",
394
- "de": "Auf Lager"
395
- }
396
- * @property {string | null} sku - Product SKU (Stock Keeping Unit), may be null. Example: "SKU_12345".
397
- * @property {number | boolean} isSync - Indication of page indexing. Example: true.
398
- * @property {AttributeType} attributeValues - Array of attribute values from the index, represented.
399
- * @example
400
- [
401
- {
402
- "id": "color",
403
- "value": "red"
404
- }
405
- ]
406
- * @property {string[]} categories - Product categories.
407
- * @example
408
- [
409
- 1,
410
- 2,
411
- 3
412
- ]
413
- * @property {boolean} isVisible - A sign of page visibility. Example: true.
414
- * @property {Array<IFormConfig>} [moduleFormConfigs] - Module form configurations (optional).
415
- * @property {boolean} isPositionLocked - Sorting position lock indicator (optional). Example: false.
416
- * @property {number[]} relatedIds - Ids of related product pages.
417
- * @example
418
- [
419
- 12345,
420
- 67890
421
- ]
422
- * @property {string | null} [templateIdentifier] - User id of the linked template. Example: "template_12345".
423
- * @property {string | null} [shortDescTemplateIdentifier] - User id of the linked template for a short description. Example: "short_desc_template_12345".
424
- * @property {string} [signedPrice] - Price sign.
425
- * @property {Array<Record<string, any>> | Record<string, any>} [productPages] - Array of product pages or a single product page object. Example: [].
426
- * @property {string[]} [blocks] - Array of block identifiers.
427
- * @example
428
- [
429
- "block_12345",
430
- "block_67890"
431
- ]
432
- * @description This interface defines the structure of a product entity, including its identifiers, attributes, and related information.
433
- */
434
- interface IProductsEntity {
435
- id: number;
436
- localizeInfos: ILocalizeInfo;
437
- statusIdentifier: string | null;
438
- statusLocalizeInfos: Record<string, any>;
439
- attributeSetIdentifier: string | null;
440
- position: number;
441
- price: number | null;
442
- additional: {
443
- prices: {
444
- min: number;
445
- max: number;
446
- };
447
- };
448
- sku: string | null;
449
- isSync: number | boolean;
450
- attributeValues: AttributeType;
451
- categories: string[];
452
- isVisible: boolean;
453
- moduleFormConfigs?: Array<IFormConfig>;
454
- templateIdentifier?: string | null;
455
- shortDescTemplateIdentifier?: string | null;
456
- signedPrice?: string;
457
- productPages?: Array<Record<string, any>> | Record<string, any>;
458
- blocks?: string[];
459
- isPositionLocked?: boolean;
460
- relatedIds?: number[];
461
- }
462
- /**
463
- * @interface IProductsResponse
464
- * @property {number} total - The total number of products found. Example: 100.
465
- * @property {IProductsEntity[]} items - An array of product entities.
466
- * @example
467
- [
468
- {
469
- "id": 12345,
470
- "title": "Product 1"
471
- },
472
- {
473
- "id": 67890,
474
- "title": "Product 2"
475
- }
476
- ]
477
- * @description This interface defines the structure of a response containing multiple product entities, including the total count and an array of product items.
478
- */
479
- interface IProductsResponse {
480
- items: IProductsEntity[];
481
- total: number;
482
- }
483
- /**
484
- * @interface IProductsCount
485
- * @property {number} totalAll - The total number of products found. Example: 100.
486
- * @property {number} totalInCategory - The total number of products found in category. Example: 50.
487
- * @property {number} totalInCategoryWithNested - The total number of products found in nested category. Example: 10.
488
- * @description This interface defines the structure of a response with total count of product items.
489
- */
490
- interface IProductsCount {
491
- totalAll: number;
492
- totalInCategory: number;
493
- totalInCategoryWithNested: number;
494
- }
495
- /**
496
- * @interface IProductsInfo
497
- * @property {number} total - The total number of products found. Example: 100.
498
- * @property {IProductInfo[]} items - An array of product information objects.
499
- * @example
500
- [
501
- {
502
- "id": 12345,
503
- "price": 150.00
504
- },
505
- {
506
- "id": 67890,
507
- "price": 200.00
508
- }
509
- ]
510
- * @description This interface defines the structure of a response containing product information, including the total count and an array of product items.
511
- */
512
- interface IProductsInfo {
513
- items: Array<IProductInfo>;
514
- total: number;
515
- }
516
- /**
517
- * @interface IProductInfo
518
- * @property {number} id - The unique identifier of the product. Example: 12345.
519
- * @property {number} price - The price of the product. Example: 150.00.
520
- * @description This interface defines the structure of a product information object, including its identifier and price.
521
- */
522
- interface IProductInfo {
523
- id: number;
524
- price: number;
525
- }
526
- /**
527
- * @interface IProductBlock
528
- * @property {number} id - Unique identifier of the product block. Example: 3289.
529
- * @property {number | null} attributeSetIdentifier - Identifier of the attribute set used in the product block, or null if not applicable. Example: 67890.
530
- * @property {ILocalizeInfo} localizeInfos - Localization information for the product block.
531
- * @example
532
- {
533
- "title": "Box"
534
- }
535
- * @property {number} version - Version of the product block entity. Example: 1.
536
- * @property {number} position - Position of the product block in a list or layout. Example: 1.
537
- * @property {string} identifier - Unique string identifier for the product block. Example: "product_block_12345".
538
- * @property {Types} type - Type of the product block, such as "product", "error_page", etc. Example: "product".
539
- * @property {object} customSettings - Custom settings for the product block, including slider delay, product configuration, similar product rules, and conditions. Example: {}
540
- * @property {string | null} templateIdentifier - Identifier for the template used by the product block, or null if not applicable. Example: "template_12345".
541
- * @property {boolean} isVisible - Indicates whether the product block is visible. Example: true.
542
- * @property {boolean} isSync - Indicates whether the product block is synchronized. Example: false.
543
- * @property {AttributeType} attributeValues - Array of attribute values from the index, represented as a pair of user attribute id and attribute value.
544
- * @example
545
- [
546
- {
547
- "id": "color",
548
- "value": "red"
549
- }
550
- ]
551
- * @description This interface defines the structure of a product block entity, including its identifiers, attributes, and custom settings.
552
- */
553
- interface IProductBlock {
554
- id: number;
555
- attributeSetIdentifier: number | null;
556
- localizeInfos: ILocalizeInfo;
557
- version: number;
558
- position: number;
559
- identifier: string;
560
- type: Types;
561
- customSettings: {
562
- sliderDelay: number | null;
563
- sliderDelayType: string | null;
564
- productConfig: {
565
- quantity: string | number;
566
- countElementsPerRow: string | number;
567
- sortType?: string | number;
568
- sortOrder?: string | number;
569
- };
570
- similarProductRules: Array<{
571
- property: string;
572
- includes: string;
573
- keywords: string;
574
- strict: string;
575
- }>;
576
- condition: Record<string, any>;
577
- };
578
- templateIdentifier: string | null;
579
- isVisible: boolean;
580
- isSync: boolean;
581
- attributeValues: AttributeType;
582
- }
583
- export type { IFilterParams, IProductApi, IProductBlock, IProductInfo, IProductsCount, IProductsEntity, IProductsInfo, IProductsQuery, IProductsResponse, };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });