oneentry 1.0.122 → 1.0.124

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 (73) hide show
  1. package/dist/admins/adminsApi.d.ts +16 -8
  2. package/dist/admins/adminsApi.js +18 -10
  3. package/dist/admins/adminsInterfaces.d.ts +49 -25
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +43 -21
  5. package/dist/attribute-sets/attributeSetsApi.js +49 -25
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +70 -24
  7. package/dist/auth-provider/authProviderApi.d.ts +94 -83
  8. package/dist/auth-provider/authProviderApi.js +96 -83
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +188 -10
  10. package/dist/base/asyncModules.d.ts +32 -28
  11. package/dist/base/asyncModules.js +62 -38
  12. package/dist/base/syncModules.d.ts +44 -44
  13. package/dist/base/syncModules.js +65 -63
  14. package/dist/blocks/blocksApi.d.ts +56 -25
  15. package/dist/blocks/blocksApi.js +56 -25
  16. package/dist/blocks/blocksInterfaces.d.ts +71 -22
  17. package/dist/events/eventsApi.d.ts +45 -11
  18. package/dist/events/eventsApi.js +47 -17
  19. package/dist/events/eventsInterfaces.d.ts +44 -2
  20. package/dist/file-uploading/fileUploadingApi.d.ts +44 -24
  21. package/dist/file-uploading/fileUploadingApi.js +46 -27
  22. package/dist/file-uploading/fileUploadingInterfaces.d.ts +63 -14
  23. package/dist/forms/formsApi.d.ts +23 -8
  24. package/dist/forms/formsApi.js +23 -8
  25. package/dist/forms/formsInterfaces.d.ts +62 -15
  26. package/dist/formsData/formsDataApi.d.ts +33 -33
  27. package/dist/formsData/formsDataApi.js +33 -33
  28. package/dist/formsData/formsDataInterfaces.d.ts +123 -35
  29. package/dist/general-types/generalTypesApi.d.ts +12 -1
  30. package/dist/general-types/generalTypesApi.js +12 -1
  31. package/dist/general-types/generalTypesInterfaces.d.ts +18 -5
  32. package/dist/index.d.ts +1 -1
  33. package/dist/index.js +1 -1
  34. package/dist/integration-collections/integrationCollectionsApi.d.ts +96 -70
  35. package/dist/integration-collections/integrationCollectionsApi.js +114 -81
  36. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +152 -30
  37. package/dist/locales/localesApi.d.ts +6 -1
  38. package/dist/locales/localesApi.js +6 -1
  39. package/dist/locales/localesInterfaces.d.ts +20 -11
  40. package/dist/menus/menusApi.d.ts +8 -3
  41. package/dist/menus/menusApi.js +8 -3
  42. package/dist/menus/menusInterfaces.d.ts +30 -17
  43. package/dist/orders/ordersApi.d.ts +64 -64
  44. package/dist/orders/ordersApi.js +67 -65
  45. package/dist/orders/ordersInterfaces.d.ts +174 -60
  46. package/dist/pages/pagesApi.d.ts +89 -30
  47. package/dist/pages/pagesApi.js +181 -57
  48. package/dist/pages/pagesInterfaces.d.ts +117 -23
  49. package/dist/payments/paymentsApi.d.ts +56 -22
  50. package/dist/payments/paymentsApi.js +56 -22
  51. package/dist/payments/paymentsInterfaces.d.ts +119 -36
  52. package/dist/product-statuses/productStatusesApi.d.ts +21 -15
  53. package/dist/product-statuses/productStatusesApi.js +21 -18
  54. package/dist/product-statuses/productStatusesInterfaces.d.ts +37 -9
  55. package/dist/products/productsApi.d.ts +137 -157
  56. package/dist/products/productsApi.js +137 -157
  57. package/dist/products/productsInterfaces.d.ts +240 -57
  58. package/dist/system/systemApi.d.ts +29 -10
  59. package/dist/system/systemApi.js +29 -10
  60. package/dist/system/systemInterfaces.d.ts +8 -0
  61. package/dist/templates/templatesApi.d.ts +26 -16
  62. package/dist/templates/templatesApi.js +26 -19
  63. package/dist/templates/templatesInterfaces.d.ts +40 -14
  64. package/dist/templates-preview/templatesPreviewApi.d.ts +18 -14
  65. package/dist/templates-preview/templatesPreviewApi.js +18 -17
  66. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +57 -29
  67. package/dist/users/usersApi.d.ts +37 -33
  68. package/dist/users/usersApi.js +37 -33
  69. package/dist/users/usersInterfaces.d.ts +80 -9
  70. package/dist/web-socket/wsApi.d.ts +6 -3
  71. package/dist/web-socket/wsApi.js +6 -3
  72. package/dist/web-socket/wsInterfaces.d.ts +3 -1
  73. package/package.json +11 -11
@@ -1,27 +1,55 @@
1
1
  import type { IError } from '../base/utils';
2
2
  /**
3
- * Represents an interface object of Product Statuses Api.
3
+ * @interface IProductStatuses
4
4
  *
5
5
  * @property {function} getProductStatuses - Search for all product status objects.
6
6
  * @property {function} getProductStatusesById - Search for a product status object by identifier.
7
7
  * @property {function} getProductsByStatusMarker - Search for a product status object by its textual identifier (marker).
8
8
  * @property {function} validateMarker - Check the existence of a textual identifier.
9
+ *
10
+ * @description This interface defines methods for retrieving and managing product statuses in the system.
9
11
  */
10
12
  interface IProductStatuses {
13
+ /**
14
+ * Search for all product status objects.
15
+ *
16
+ * @param {string} [langCode] - Language code. Default: "en_US".
17
+ *
18
+ * @return {IProductStatusEntity[]} Returns an array of product status objects.
19
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
20
+ */
11
21
  getProductStatuses(langCode: string): Promise<Array<IProductStatusEntity> | IError>;
12
- getProductStatusesById(id: number, langCode: string): Promise<IProductStatusEntity | IError>;
22
+ /**
23
+ * Search for a product status object by its textual identifier (marker).
24
+ *
25
+ * @param {string} marker - Product marker. Example: 'in_stock'.
26
+ * @param {string} [langCode] - Language code. Default: "en_US".
27
+ *
28
+ * @return {IProductStatusEntity} Returns a product status object.
29
+ * @throws {IError} If there is an error during the fetch operation, it will return an error object.
30
+ */
13
31
  getProductsByStatusMarker(marker: string, langCode: string): Promise<IProductStatusEntity | IError>;
32
+ /**
33
+ * Check the existence of a textual identifier.
34
+ *
35
+ * @param {string} marker - Product marker. Example: 'in_stock'.
36
+ *
37
+ * @return {boolean} Returns true if the textual identifier (marker) exists or false if it doesn't.
38
+ * @throws {IError} If there is an error during the fetch operation, it will return an error object.
39
+ */
14
40
  validateMarker(marker: string): Promise<boolean | IError>;
15
41
  }
16
42
  /**
17
- * Represents a position object.
43
+ * @interface IProductStatusEntity
44
+ *
45
+ * @property {number} id - The unique identifier of the position. Example: 12345.
46
+ * @property {number} version - The version number of the object. Example: 1.
47
+ * @property {string} identifier - The textual identifier for the record field. Example: 'in_stock'.
48
+ * @property {number} position - Position number. Example: 1.
49
+ * @property {Record<string, any>} localizeInfos - The name of the products statuses, taking into account localization. Example: .
50
+ * @property {boolean} isDefault - Default status flag. Example: true.
18
51
  *
19
- * @interface
20
- * @property {number} id - The unique identifier of the position.
21
- * @property {number} version - The version number of the object.
22
- * @property {string} identifier - The textual identifier for the record field.
23
- * @property {number} position - Position number.
24
- * @property {Record<string, any>} localizeInfos - The name of the products statuses, taking into account localization.
52
+ * @description This interface defines the structure of a product status entity, including its identifiers, localization information, position, and default status flag.
25
53
  */
26
54
  interface IProductStatusEntity {
27
55
  id: number;
@@ -14,227 +14,207 @@ export default class ProductApi extends AsyncModules implements IProductApi {
14
14
  /**
15
15
  * Search for all products with pagination and filter.
16
16
  *
17
- * @param {Array<IFilterParams>} [body] - Request body. Default [].
18
- * @param {string} [langCode] - Language code parameter. Default "en_US"
17
+ * @handleName getProducts
18
+ *
19
+ * @param {Array<IFilterParams>} [body] - Request body. Default: []. Example: [ { "attributeMarker": "price", "conditionMarker": "mth", "statusMarker": "waiting", "conditionValue": 1, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" }, { "attributeMarker": "price", "conditionMarker": "lth", "conditionValue": 3, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" } ].
20
+ * @param {string} [langCode] - Language code. Default: "en_US".
19
21
  * @param {IProductsQuery} [userQuery] - Optional set query parameters.
20
22
  *
21
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0
22
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30
23
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
24
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
25
- * @param {number} [userQuery.statusId] - Optional parameter - search by status id
26
- * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status
27
- * @param {string} [userQuery.conditionValue] - Optional value that is being searched
28
- * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered
29
- * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
30
- *
31
- * @example
32
- * const body: IFilterParams[] = [
33
- * {
34
- * "attributeMarker": "price",
35
- * "conditionMarker": "mth",
36
- * "statusMarker": "waiting",
37
- * "conditionValue": 1,
38
- * "pageUrls": [
39
- * "23-laminat-floorwood-maxima"
40
- * ],
41
- * "isNested": false,
42
- * "title": ""
43
- * },
44
- * {
45
- * "attributeMarker": "price",
46
- * "conditionMarker": "lth",
47
- * "conditionValue": 3,
48
- * "pageUrls": [
49
- * "23-laminat-floorwood-maxima"
50
- * ],
51
- * "isNested": false,
52
- * "title": ""
53
- * }
54
- * ]
55
- *
56
- * @returns Array with ProductEntity objects
23
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
24
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
25
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
26
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
27
+ * @param {number} [userQuery.statusId] - Optional parameter - search by status id. Example: 123.
28
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: 'in_stock'.
29
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: 'new'.
30
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: 'equals'.
31
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: 'color'.
32
+ *
33
+ * @return {IProductsResponse} Array with ProductEntity objects
34
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
35
+ *
36
+ * @description Fetch products with optional filters and pagination.
37
+ *
57
38
  */
58
39
  getProducts(body?: Array<IFilterParams>, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
59
40
  /**
60
41
  * Search for all product page objects with pagination that do not have a category.
61
42
  *
62
- * @param {string} [langCode] - Language code parameter. Default "en_US"
43
+ * @handleName getProductsEmptyPage
44
+ *
45
+ * @param {string} [langCode] - Language code. Default: "en_US".
63
46
  * @param {IProductsQuery} [userQuery] - Optional set query parameters.
64
47
  *
65
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0
66
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30
67
- * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status
68
- * @param {string} [userQuery.conditionValue] - Optional value that is being searched
69
- * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered
70
- * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
71
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
72
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
48
+ * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0.
49
+ * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30.
50
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: 'in_stock'.
51
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: 'new'.
52
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: 'equals'.
53
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: 'color'.
54
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
55
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
56
+ *
57
+ * @return {IProductsResponse} Array with ProductEntity objects.
58
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
73
59
  *
74
- * @returns Array with ProductEntity objects
60
+ * @description Fetch products with optional filters and pagination.
75
61
  */
76
62
  getProductsEmptyPage(langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
77
63
  /**
78
64
  * Search for all products with pagination for the selected category.
79
65
  *
66
+ * @handleName getProductsByPageId
67
+ *
80
68
  * @param {number} id - Page id.
81
- * @param {Array<IFilterParams>} body - Request body.
82
- * @param {string} [langCode] - Language code parameter. Default "en_US"
69
+ * @param {Array<IFilterParams>} [body] - Request body. Default: []. Example: [ { "attributeMarker": "price", "conditionMarker": "mth", "statusMarker": "waiting", "conditionValue": 1, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" }, { "attributeMarker": "price", "conditionMarker": "lth", "conditionValue": 3, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" } ].
70
+ * @param {string} [langCode] - Language code. Default: "en_US".
83
71
  * @param {IProductsQuery} [userQuery] - Optional set query parameters.
84
72
  *
85
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0
86
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30
87
- * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status
88
- * @param {string} [userQuery.conditionValue] - Optional value that is being searched
89
- * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered
90
- * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
91
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
92
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
93
- *
94
- * @example
95
- * const body = [
96
- * {
97
- * "attributeMarker": "price",
98
- * "conditionMarker": "mth",
99
- * "statusMarker": "waiting",
100
- * "conditionValue": 1,
101
- * "pageUrls": [
102
- * "23-laminat-floorwood-maxima"
103
- * ],
104
- * "isNested": false,
105
- * "title": ""
106
- * },
107
- * {
108
- * "attributeMarker": "price",
109
- * "conditionMarker": "lth",
110
- * "conditionValue": 3,
111
- * "pageUrls": [
112
- * "23-laminat-floorwood-maxima"
113
- * ],
114
- * "isNested": false,
115
- * "title": ""
116
- * }
117
- * ]
118
- *
119
- * @returns Array with ProductEntity objects
73
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default is 0.
74
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default is 30.
75
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: 'in_stock'.
76
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: 'new'.
77
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: 'equals'.
78
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: 'color'.
79
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
80
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
81
+ *
82
+ * @return {IProductsResponse} Array with ProductEntity objects
83
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
84
+ *
85
+ * @description Fetch products by page ID with optional filters and pagination.
86
+ *
120
87
  */
121
88
  getProductsByPageId(id: number, body?: Array<IFilterParams>, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
122
89
  /**
123
90
  * Search for information about products and prices for the selected category.
124
91
  *
125
- * @param {string} [url] - Page url.
126
- * @param {string} [langCode] - Language code.
92
+ * @handleName getProductsPriceByPageUrl
93
+ *
94
+ * @param {string} [url] - Page url. Example: '23-laminat-floorwood-maxima'.
95
+ * @param {string} [langCode] - Language code. Default: "en_US".
127
96
  * @param {IProductsQuery} [userQuery] - Optional set query parameters.
128
97
  *
129
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 30
130
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
131
- * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status
132
- * @param {string} [userQuery.conditionValue] - Optional value that is being searched
133
- * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered
134
- * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
135
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
136
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
98
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
99
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
100
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: 'in_stock'.
101
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: 'new'.
102
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: 'equals'.
103
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: 'color'.
104
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
105
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
106
+ *
107
+ * @return {IProductsInfo} Array with ProductInformation objects.
108
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
137
109
  *
138
- * @returns Array with ProductInformation objects
110
+ * @description
139
111
  */
140
112
  getProductsPriceByPageUrl(url: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsInfo | IError>;
141
113
  /**
142
114
  * Search for all products with pagination for the selected category.
143
115
  *
144
- * @param {string} [url] - Page url.
145
- * @param {Array<IFilterParams>} [body] - Request body.
146
- * @param {string} [langCode] - Language code parameter. Default "en_US"
116
+ * @handleName getProductsByPageUrl
117
+ *
118
+ * @param {string} url - Page url.
119
+ * @param {Array<IFilterParams>} [body] - Request body. Default: []. Example: [ { "attributeMarker": "price", "conditionMarker": "mth", "statusMarker": "waiting", "conditionValue": 1, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" }, { "attributeMarker": "price", "conditionMarker": "lth", "conditionValue": 3, "pageUrls": [ "23-laminat-floorwood-maxima" ], "isNested": false, "title": "" } ].
120
+ * @param {string} [langCode] - Language code. Default: "en_US".
147
121
  * @param {IProductsQuery} [userQuery] - Optional set query parameters.
148
122
  *
149
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 30
150
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 0
151
- * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status
152
- * @param {string} [userQuery.conditionValue] - Optional value that is being searched
153
- * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered
154
- * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered
155
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
156
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
157
- *
158
- * @example
159
- * const body = [
160
- * {
161
- * "attributeMarker": "price",
162
- * "conditionMarker": "mth",
163
- * "statusMarker": "waiting",
164
- * "conditionValue": 1,
165
- * "pageUrls": [
166
- * "23-laminat-floorwood-maxima"
167
- * ],
168
- * "isNested": false,
169
- * "title": ""
170
- * },
171
- * {
172
- * "attributeMarker": "price",
173
- * "conditionMarker": "lth",
174
- * "conditionValue": 3,
175
- * "pageUrls": [
176
- * "23-laminat-floorwood-maxima"
177
- * ],
178
- * "isNested": false,
179
- * "title": ""
180
- * }
181
- * ]
182
- *
183
- * @returns Array with ProductEntity objects
123
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 30.
124
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 0.
125
+ * @param {string} [userQuery.statusMarker] - Optional identifier of the product page status. Example: 'in_stock'.
126
+ * @param {string} [userQuery.conditionValue] - Optional value that is being searched. Example: 'new'.
127
+ * @param {string} [userQuery.conditionMarker] - Optional identifier of the filter condition by which values are filtered. Example: 'equals'.
128
+ * @param {string} [userQuery.attributeMarker] - Optional text identifier of the indexed attribute by which values are filtered. Example: 'color'.
129
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
130
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
131
+ *
132
+ * @return {IProductsResponse} Array with ProductEntity objects.
133
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
134
+ *
135
+ * @description Search for all products with pagination for the selected category.
136
+ *
184
137
  */
185
138
  getProductsByPageUrl(url: string, body?: Array<IFilterParams>, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
186
139
  /**
187
140
  * Find all related product page objects.
188
141
  *
189
- * @param {number} [id] - Product page identifier for which to find relationship.
190
- * @param {string} [langCode] - Language code parameter. Default "en_US"
191
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
142
+ * @handleName getRelatedProductsById
143
+ *
144
+ * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
145
+ * @param {string} [langCode] - Language code. Default: "en_US".
146
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example: { offset: 0, limit: 30, sortOrder: 'DESC', sortKey: 'id' }.
147
+ *
148
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
149
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
150
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
151
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
192
152
  *
193
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0
194
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30
195
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
196
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
153
+ * @return {IProductsResponse} Array with ProductEntity objects
154
+ * @throws {IError} If there is an error during the fetch operation, it will return an error object.
197
155
  *
198
- * @returns Array with ProductEntity objects
156
+ * @description Find all related product page objects.
199
157
  */
200
158
  getRelatedProductsById(id: number, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
201
159
  /**
202
160
  * Find products by its ids.
203
161
  *
204
- * @param {string} [ids] - Product page identifiers for which to find relationships.
205
- * @param {string} [langCode] - Language code parameter. Default "en_US"
206
- * @param {IProductsQuery} [userQuery] - Optional set query parameters.
162
+ * @handleName getProductsByIds
163
+ *
164
+ * @param {string} [ids] - Product page identifiers for which to find relationships. Example: '12345,67890'.
165
+ * @param {string} [langCode] - Language code. Default "en_US".
166
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example: { offset: 0, limit: 30, sortOrder: 'DESC', sortKey: 'id' }.
167
+ *
168
+ * @param {number} [userQuery.offset] - Optional parameter for pagination. Default: 0.
169
+ * @param {number} [userQuery.limit] - Optional parameter for pagination. Default: 30.
170
+ * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC. Example: 'DESC'.
171
+ * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status). Example: 'id'.
207
172
  *
208
- * @param {number} [userQuery.offset] - Optional parameter for pagination, default is 0
209
- * @param {number} [userQuery.limit] - Optional parameter for pagination, default is 30
210
- * @param {string} [userQuery.sortOrder] - Optional sorting order DESC | ASC
211
- * @param {string} [userQuery.sortKey] - Optional field to sort by (id, title, date, price, position, status)
173
+ * @return {IProductEntity[]} Array with ProductEntity objects
174
+ * @throws {IError} If there is an error during the fetch operation, it will return an error object.
212
175
  *
213
- * @returns Array with ProductEntity objects
176
+ * @description Find products by its ids.
214
177
  */
215
178
  getProductsByIds(ids: string, langCode?: string, userQuery?: IProductsQuery): Promise<Array<IProductEntity> | IError>;
216
179
  /**
217
180
  * Retrieve one product object.
218
181
  *
219
- * @param {number} [id] - Product id.
220
- * @param {string} [langCode] - Language code parameter. Default "en_US".
182
+ * @handleName getProductById
221
183
  *
222
- * @returns ProductEntity object.
184
+ * @param {number} [id] - Product id. Example: 12345.
185
+ * @param {string} [langCode] - Language code. Default: "en_US".
186
+ *
187
+ * @return {IProductEntity} ProductEntity object.
188
+ * @throws {IError} If there is an error during the fetch operation, it will return an error object.
189
+ *
190
+ * @description Retrieve one product object.
223
191
  */
224
192
  getProductById(id: number, langCode?: string): Promise<IProductEntity | IError>;
225
193
  /**
226
194
  * Getting a product block object by product id.
227
195
  *
228
- * @param {number} [id] - Product id
196
+ * @handleName getProductBlockById
197
+ *
198
+ * @param {number} id - Product id. Example: 12345.
199
+ *
200
+ * @return {IProductBlock}
201
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
202
+ *
203
+ * @description Getting a product block object by product id.
229
204
  */
230
205
  getProductBlockById(id: number): Promise<Array<IProductBlock> | IError>;
231
206
  /**
232
207
  * Quick search for product page objects with limited output.
233
208
  *
234
- * @param {string} [name] - Text to search product page objects (search is based on the title field of the localizeInfos object with language consideration)
235
- * @param {string} [langCode] - Language code
209
+ * @handleName searchProduct
210
+ *
211
+ * @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'.
212
+ * @param {string} [langCode] - Language code. Default: "en_US".
213
+ *
214
+ * @return {IProductsEntity[]} Array with ProductEntity objects
215
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
236
216
  *
237
- * @returns Array with ProductEntity objects
217
+ * @description Quick search for product page objects with limited output.
238
218
  */
239
219
  searchProduct(name: string, langCode?: string): Promise<Array<IProductsEntity> | IError>;
240
220
  }