oneentry 1.0.130 → 1.0.133

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 (55) hide show
  1. package/dist/admins/adminsApi.d.ts +2 -2
  2. package/dist/admins/adminsApi.js +2 -2
  3. package/dist/admins/adminsInterfaces.d.ts +4 -3
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +0 -4
  5. package/dist/attribute-sets/attributeSetsApi.js +1 -5
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +43 -32
  7. package/dist/auth-provider/authProviderApi.d.ts +18 -9
  8. package/dist/auth-provider/authProviderApi.js +18 -9
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +36 -18
  10. package/dist/base/syncModules.js +7 -3
  11. package/dist/blocks/blocksApi.d.ts +0 -4
  12. package/dist/blocks/blocksApi.js +0 -4
  13. package/dist/blocks/blocksInterfaces.d.ts +25 -17
  14. package/dist/config.d.ts +1 -1
  15. package/dist/config.js +3 -1
  16. package/dist/events/eventsApi.d.ts +6 -3
  17. package/dist/events/eventsApi.js +6 -3
  18. package/dist/events/eventsInterfaces.d.ts +2 -1
  19. package/dist/file-uploading/fileUploadingApi.d.ts +14 -6
  20. package/dist/file-uploading/fileUploadingApi.js +22 -6
  21. package/dist/file-uploading/fileUploadingInterfaces.d.ts +21 -13
  22. package/dist/forms/formsApi.d.ts +0 -2
  23. package/dist/forms/formsApi.js +0 -2
  24. package/dist/forms/formsInterfaces.d.ts +12 -3
  25. package/dist/forms-data/formsDataApi.d.ts +14 -20
  26. package/dist/forms-data/formsDataApi.js +17 -22
  27. package/dist/forms-data/formsDataInterfaces.d.ts +46 -37
  28. package/dist/integration-collections/integrationCollectionsApi.d.ts +10 -10
  29. package/dist/integration-collections/integrationCollectionsApi.js +10 -10
  30. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +20 -10
  31. package/dist/menus/menusInterfaces.d.ts +13 -5
  32. package/dist/orders/ordersApi.d.ts +16 -8
  33. package/dist/orders/ordersApi.js +16 -8
  34. package/dist/orders/ordersInterfaces.d.ts +50 -30
  35. package/dist/pages/pagesApi.d.ts +2 -1
  36. package/dist/pages/pagesApi.js +2 -1
  37. package/dist/pages/pagesInterfaces.d.ts +29 -12
  38. package/dist/payments/paymentsApi.d.ts +20 -12
  39. package/dist/payments/paymentsApi.js +20 -12
  40. package/dist/payments/paymentsInterfaces.d.ts +25 -7
  41. package/dist/product-statuses/productStatusesInterfaces.d.ts +5 -4
  42. package/dist/products/productsApi.d.ts +28 -15
  43. package/dist/products/productsApi.js +28 -15
  44. package/dist/products/productsInterfaces.d.ts +53 -25
  45. package/dist/system/systemApi.d.ts +2 -1
  46. package/dist/system/systemApi.js +2 -1
  47. package/dist/templates/templatesInterfaces.d.ts +3 -2
  48. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +8 -4
  49. package/dist/users/usersApi.d.ts +65 -14
  50. package/dist/users/usersApi.js +65 -14
  51. package/dist/users/usersInterfaces.d.ts +95 -26
  52. package/dist/web-socket/wsApi.d.ts +2 -1
  53. package/dist/web-socket/wsApi.js +2 -1
  54. package/dist/web-socket/wsInterfaces.d.ts +3 -2
  55. package/package.json +1 -1
@@ -20,13 +20,14 @@ class PaymentsApi extends asyncModules_1.default {
20
20
  this._url = state.url + '/api/content/payments';
21
21
  }
22
22
  /**
23
- * Get list of payment sessions. This method requires user authorization.
23
+ * Get list of payment sessions.
24
24
  * @handleName getSessions
25
25
  * @param {number} [offset] - Optional parameter for pagination. Default: 0.
26
26
  * @param {number} [limit] - Optional parameter for pagination. Default: 30.
27
27
  * @returns {ISessionsEntity} Returns an array of SessionEntity objects.
28
28
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
29
- * @description Get list of payment sessions. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
29
+ * @description This method gets list of payment sessions. This method requires user authorization.
30
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
30
31
  */
31
32
  async getSessions(offset = 0, limit = 30) {
32
33
  const query = {
@@ -37,12 +38,13 @@ class PaymentsApi extends asyncModules_1.default {
37
38
  return result;
38
39
  }
39
40
  /**
40
- * Get a single payment session object by its identifier. This method requires user authorization.
41
+ * Get a single payment session object by its identifier.
41
42
  * @handleName getSessionById
42
43
  * @param {number} id - Identifier of the retrieved payment session object. Example: 12345.
43
44
  * @returns {ISessionEntity} Returns a single payment session object.
44
45
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
45
- * @description Get a single payment session object by its identifier. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
46
+ * @description This method gets a single payment session object by its identifier. This method requires user authorization.
47
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
46
48
  */
47
49
  async getSessionById(id) {
48
50
  const result = await this._fetchGet(`/sessions/${id}`);
@@ -54,21 +56,23 @@ class PaymentsApi extends asyncModules_1.default {
54
56
  * @param {number} id - Order identifier. Example: 12345.
55
57
  * @returns {IAccountsEntity} Returns a single payment account object.
56
58
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
57
- * @description Get one payment session object by order identifier. This method requires user authorization.
59
+ * @description This method gets one payment session object by order identifier. This method requires user authorization.
60
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
58
61
  */
59
62
  async getSessionByOrderId(id) {
60
63
  const result = await this._fetchGet(`/sessions/order/${id}`);
61
64
  return result;
62
65
  }
63
66
  /**
64
- * Creation of payment session. This method requires user authorization.
67
+ * Creation of payment session.
65
68
  * @handleName createSession
66
69
  * @param {number} orderId - Order identifier. Example: 12345.
67
70
  * @param {'session' | 'intent'} type - Session type. Possible values: "session" or "intent". Example: 'session'.
68
71
  * @param {boolean} [automaticTaxEnabled] - Automatic calculation of the tax rate. Default: false.
69
72
  * @returns {ICreateSessionEntity} Returns a single payment session object.
70
73
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
71
- * @description Creation of payment session. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
74
+ * @description This method creates a payment session. This method requires user authorization.
75
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
72
76
  */
73
77
  async createSession(orderId, type, automaticTaxEnabled = false) {
74
78
  const result = await this._fetchPost('/sessions', {
@@ -79,23 +83,26 @@ class PaymentsApi extends asyncModules_1.default {
79
83
  return result;
80
84
  }
81
85
  /**
82
- * Get all payment accounts as an array. This method requires user authorization.
86
+ * Get all payment accounts as an array.
83
87
  * @handleName getAccounts
84
88
  * @returns {IAccountsEntity} Returns all created payment accounts as an array of PaymentAccountEntity objects.
85
89
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
86
- * @description Get all payment accounts as an array. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
90
+ * @description This method gets all payment accounts as an array. This method requires user authorization.
91
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
87
92
  */
88
93
  async getAccounts() {
89
94
  const result = await this._fetchGet('/accounts');
90
95
  return this._normalizeData(result);
91
96
  }
92
97
  /**
93
- * Get a single payment account object by its identifier. This method requires user authorization.
98
+ * Get a single payment account object by its identifier.
94
99
  * @handleName getAccountById
95
100
  * @param {number} id - Identifier of the retrieved payment account object. Example: 12345.
96
101
  * @returns {IAccountsEntity} Returns a single payment account object.
97
102
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
98
- * @description Get a single payment account object by its identifier. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
103
+ * @description Get a single payment account object by its identifier.
104
+ * @description This method requires user authorization.
105
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
99
106
  */
100
107
  async getAccountById(id) {
101
108
  const result = await this._fetchGet(`/accounts/${id}`);
@@ -107,7 +114,8 @@ class PaymentsApi extends asyncModules_1.default {
107
114
  * @param {string} marker - marker. Example: "stripe".
108
115
  * @returns {boolean} Returns true if the webhook was processed successfully.
109
116
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
110
- * @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.
117
+ * @description This method requires user authorization.
118
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
111
119
  */
112
120
  async webhookByMarker(marker) {
113
121
  const result = await this._fetchPost(`/webhook/${marker}`, {});
@@ -17,7 +17,8 @@ interface IPaymentsApi {
17
17
  * @param {number} [limit] - Optional parameter for pagination. Default: 30.
18
18
  * @returns {ISessionsEntity} Returns an array of SessionEntity objects.
19
19
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
20
- * @description This method gets list of payment sessions.
20
+ * @description This method gets list of payment sessions. This method requires user authorization.
21
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
21
22
  */
22
23
  getSessions(offset: number, limit: number): Promise<ISessionsEntity | IError>;
23
24
  /**
@@ -26,7 +27,8 @@ interface IPaymentsApi {
26
27
  * @param {number} id - Identifier of the retrieved payment session object. Example: 12345.
27
28
  * @returns {ISessionEntity} Returns a single payment session object.
28
29
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
29
- * @description This method gets a single payment session object by its identifier.
30
+ * @description This method gets a single payment session object by its identifier. This method requires user authorization.
31
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
30
32
  */
31
33
  getSessionById(id: number): Promise<ISessionEntity | IError>;
32
34
  /**
@@ -35,7 +37,8 @@ interface IPaymentsApi {
35
37
  * @param {number} id - Order identifier. Example: 12345.
36
38
  * @returns {ISessionEntity} Returns a single payment session object.
37
39
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
38
- * @description This method gets one payment session object by order identifier.
40
+ * @description This method gets one payment session object by order identifier. This method requires user authorization.
41
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
39
42
  */
40
43
  getSessionByOrderId(id: number): Promise<ISessionEntity | IError>;
41
44
  /**
@@ -46,7 +49,8 @@ interface IPaymentsApi {
46
49
  * @param {boolean} [automaticTaxEnabled] - Automatic calculation of the tax rate. Default: false.
47
50
  * @returns {ICreateSessionEntity} Returns a single payment session object.
48
51
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
49
- * @description This method creates a payment session.
52
+ * @description This method creates a payment session. This method requires user authorization.
53
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
50
54
  */
51
55
  createSession(orderId: number, type: 'session' | 'intent', automaticTaxEnabled?: boolean): Promise<ICreateSessionEntity | IError>;
52
56
  /**
@@ -54,7 +58,8 @@ interface IPaymentsApi {
54
58
  * @handleName getAccounts
55
59
  * @returns {IAccountsEntity} Returns all created payment accounts as an array of PaymentAccountEntity objects.
56
60
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
57
- * @description This method gets all payment accounts as an array.
61
+ * @description This method gets all payment accounts as an array. This method requires user authorization.
62
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
58
63
  */
59
64
  getAccounts(): Promise<IAccountsEntity[] | IError>;
60
65
  /**
@@ -63,14 +68,26 @@ interface IPaymentsApi {
63
68
  * @param {number} id - Identifier of the retrieved payment account object. Example: 12345.
64
69
  * @returns {IAccountsEntity} Returns a single payment account object.
65
70
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
66
- * @description This method gets a single payment account object by its identifier.
71
+ * @description This method gets a single payment account object by its identifier. This method requires user authorization.
72
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
67
73
  */
68
74
  getAccountById(id: number): Promise<IAccountsEntity | IError>;
75
+ /**
76
+ * Webhook for payment account.
77
+ * @handleName webhookByMarker
78
+ * @param {string} marker - marker. Example: "stripe".
79
+ * @returns {boolean} Returns true if the webhook was processed successfully.
80
+ * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
81
+ * @description This method requires user authorization.
82
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
83
+ */
84
+ webhookByMarker(marker: string): Promise<boolean | IError>;
69
85
  }
70
86
  /**
71
87
  * @interface ISessionsEntity
72
88
  * @property {number} total - Total number of found records. Example: 100.
73
- * @property {ISessionEntity} items - Array of session objects. Example:
89
+ * @property {ISessionEntity} items - Array of session objects.
90
+ * @example
74
91
  [
75
92
  {
76
93
  "id": 27,
@@ -188,5 +205,6 @@ interface IAccountsEntity {
188
205
  stripePublishableKey?: string;
189
206
  status: string;
190
207
  };
208
+ updatedDate: string;
191
209
  }
192
210
  export type { IAccountsEntity, ICreateSessionEntity, IIntent, IPaymentsApi, ISessionEntity, ISessionItem, ISessionsEntity, };
@@ -42,16 +42,17 @@ interface IProductStatuses {
42
42
  * @interface IProductStatusEntity
43
43
  * @property {number} id - The unique identifier of the position. Example: 12345.
44
44
  * @property {string} identifier - The textual identifier for the record field. Example: "in_stock".
45
- * @property {ILocalizeInfo} localizeInfos - The name of the products statuses, taking into account localization. Example:
46
- * @property {boolean} isDefault - Default status flag. Example: true.
47
- * @property {number} version - The version number of the object. Example: 1.
48
- * @property {number} position - Position number. Example: 1.
45
+ * @property {ILocalizeInfo} localizeInfos - The name of the products statuses, taking into account localization.
46
+ * @example
49
47
  {
50
48
  "title": "Catalog",
51
49
  "plainContent": "Content for catalog",
52
50
  "htmlContent": "<b>Content for catalog</b>",
53
51
  "menuTitle": "Catalog"
54
52
  }
53
+ * @property {boolean} isDefault - Default status flag. Example: true.
54
+ * @property {number} version - The version number of the object. Example: 1.
55
+ * @property {number} position - Position number. Example: 1.
55
56
  * @description This interface defines the structure of a product status entity, including its identifiers, localization information, position, and default status flag.
56
57
  */
57
58
  interface IProductStatusEntity {
@@ -20,7 +20,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
20
20
  /**
21
21
  * Search for all products with pagination and filter.
22
22
  * @handleName getProducts
23
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
23
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
24
+ * @example
24
25
  [
25
26
  {
26
27
  "attributeMarker": "price",
@@ -45,7 +46,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
45
46
  }
46
47
  ]
47
48
  * @param {string} [langCode] - Language code. Default: "en_US".
48
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
49
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
50
+ * @example
49
51
  {
50
52
  "limit": 30,
51
53
  "offset": 0,
@@ -66,7 +68,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
66
68
  * Search for all product page objects with pagination that do not have a category.
67
69
  * @handleName getProductsEmptyPage
68
70
  * @param {string} [langCode] - Language code. Default: "en_US".
69
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
71
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
72
+ * @example
70
73
  {
71
74
  "limit": 30,
72
75
  "offset": 0,
@@ -87,7 +90,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
87
90
  * Search for all products with pagination for the selected category.
88
91
  * @handleName getProductsByPageId
89
92
  * @param {number} id - Page id. Example: 2492.
90
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
93
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
94
+ * @example
91
95
  [
92
96
  {
93
97
  "attributeMarker": "price",
@@ -112,7 +116,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
112
116
  }
113
117
  ]
114
118
  * @param {string} [langCode] - Language code. Default: "en_US".
115
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
119
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
120
+ * @example
116
121
  {
117
122
  "limit": 30,
118
123
  "offset": 0,
@@ -134,7 +139,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
134
139
  * @handleName getProductsPriceByPageUrl
135
140
  * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
136
141
  * @param {string} [langCode] - Language code. Default: "en_US".
137
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
142
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
143
+ * @example
138
144
  {
139
145
  "limit": 30,
140
146
  "offset": 0,
@@ -155,7 +161,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
155
161
  * Search for all products with pagination for the selected category.
156
162
  * @handleName getProductsByPageUrl
157
163
  * @param {string} url - Page url. Example: "catalog".
158
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
164
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
165
+ * @example
159
166
  [
160
167
  {
161
168
  "attributeMarker": "price",
@@ -180,7 +187,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
180
187
  }
181
188
  ]
182
189
  * @param {string} [langCode] - Language code. Default: "en_US".
183
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
190
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
191
+ * @example
184
192
  {
185
193
  "limit": 30,
186
194
  "offset": 0,
@@ -202,7 +210,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
202
210
  * @handleName getRelatedProductsById
203
211
  * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
204
212
  * @param {string} [langCode] - Language code. Default: "en_US".
205
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
213
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
214
+ * @example
206
215
  {
207
216
  "limit": 30,
208
217
  "offset": 0,
@@ -226,9 +235,10 @@ export default class ProductApi extends AsyncModules implements IProductApi {
226
235
  /**
227
236
  * Find products by its ids.
228
237
  * @handleName getProductsByIds
229
- * @param {string} [ids] - Product page identifiers for which to find relationships. Example: "12345,67890".
238
+ * @param {string} ids - Product page identifiers for which to find relationships. Example: "12345,67890".
230
239
  * @param {string} [langCode] - Language code. Default "en_US".
231
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
240
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
241
+ * @example
232
242
  {
233
243
  "limit": 30,
234
244
  "offset": 0,
@@ -257,7 +267,7 @@ export default class ProductApi extends AsyncModules implements IProductApi {
257
267
  /**
258
268
  * Retrieve one product object.
259
269
  * @handleName getProductById
260
- * @param {number} [id] - Product id. Example: 12345.
270
+ * @param {number} id - Product id. Example: 12345.
261
271
  * @param {string} [langCode] - Language code. Default: "en_US".
262
272
  * @returns {IProductsEntity} ProductEntity object.
263
273
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
@@ -286,7 +296,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
286
296
  /**
287
297
  * Getting the number of products for the entire catalog.
288
298
  * @handleName getProductsCount
289
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
299
+ * @param {any[]} body - Body parameters for filter. Deault: [].
300
+ * @example
290
301
  [
291
302
  {
292
303
  "attributeMarker": "price",
@@ -308,7 +319,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
308
319
  * Getting the number of products on a catalog page by page ID.
309
320
  * @handleName getProductsCountByPageId
310
321
  * @param {string} id - Page ID.
311
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
322
+ * @param {any[]} body - Body parameters for filter. Deault: [].
323
+ * @example
312
324
  [
313
325
  {
314
326
  "attributeMarker": "price",
@@ -330,7 +342,8 @@ export default class ProductApi extends AsyncModules implements IProductApi {
330
342
  * Getting the number of products for the catalog page by page url.
331
343
  * @handleName getProductsCountByPageUrl
332
344
  * @param {string} url - Page url.
333
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
345
+ * @param {any[]} body - Body parameters for filter. Deault: [].
346
+ * @example
334
347
  [
335
348
  {
336
349
  "attributeMarker": "price",
@@ -29,7 +29,8 @@ class ProductApi extends asyncModules_1.default {
29
29
  /**
30
30
  * Search for all products with pagination and filter.
31
31
  * @handleName getProducts
32
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
32
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
33
+ * @example
33
34
  [
34
35
  {
35
36
  "attributeMarker": "price",
@@ -54,7 +55,8 @@ class ProductApi extends asyncModules_1.default {
54
55
  }
55
56
  ]
56
57
  * @param {string} [langCode] - Language code. Default: "en_US".
57
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
58
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
59
+ * @example
58
60
  {
59
61
  "limit": 30,
60
62
  "offset": 0,
@@ -83,7 +85,8 @@ class ProductApi extends asyncModules_1.default {
83
85
  * Search for all product page objects with pagination that do not have a category.
84
86
  * @handleName getProductsEmptyPage
85
87
  * @param {string} [langCode] - Language code. Default: "en_US".
86
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
88
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
89
+ * @example
87
90
  {
88
91
  "limit": 30,
89
92
  "offset": 0,
@@ -108,7 +111,8 @@ class ProductApi extends asyncModules_1.default {
108
111
  * Search for all products with pagination for the selected category.
109
112
  * @handleName getProductsByPageId
110
113
  * @param {number} id - Page id. Example: 2492.
111
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
114
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
115
+ * @example
112
116
  [
113
117
  {
114
118
  "attributeMarker": "price",
@@ -133,7 +137,8 @@ class ProductApi extends asyncModules_1.default {
133
137
  }
134
138
  ]
135
139
  * @param {string} [langCode] - Language code. Default: "en_US".
136
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
140
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
141
+ * @example
137
142
  {
138
143
  "limit": 30,
139
144
  "offset": 0,
@@ -159,7 +164,8 @@ class ProductApi extends asyncModules_1.default {
159
164
  * @handleName getProductsPriceByPageUrl
160
165
  * @param {string} [url] - Page url. Example: "23-laminat-floorwood-maxima".
161
166
  * @param {string} [langCode] - Language code. Default: "en_US".
162
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
167
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
168
+ * @example
163
169
  {
164
170
  "limit": 30,
165
171
  "offset": 0,
@@ -188,7 +194,8 @@ class ProductApi extends asyncModules_1.default {
188
194
  * Search for all products with pagination for the selected category.
189
195
  * @handleName getProductsByPageUrl
190
196
  * @param {string} url - Page url. Example: "catalog".
191
- * @param {IFilterParams[]} [body] - Request body. Default: []. Example:
197
+ * @param {IFilterParams[]} [body] - Request body. Default: [].
198
+ * @example
192
199
  [
193
200
  {
194
201
  "attributeMarker": "price",
@@ -213,7 +220,8 @@ class ProductApi extends asyncModules_1.default {
213
220
  }
214
221
  ]
215
222
  * @param {string} [langCode] - Language code. Default: "en_US".
216
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
223
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
224
+ * @example
217
225
  {
218
226
  "limit": 30,
219
227
  "offset": 0,
@@ -240,7 +248,8 @@ class ProductApi extends asyncModules_1.default {
240
248
  * @handleName getRelatedProductsById
241
249
  * @param {number} [id] - Product page identifier for which to find relationship. Example: 12345.
242
250
  * @param {string} [langCode] - Language code. Default: "en_US".
243
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
251
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
252
+ * @example
244
253
  {
245
254
  "limit": 30,
246
255
  "offset": 0,
@@ -268,9 +277,10 @@ class ProductApi extends asyncModules_1.default {
268
277
  /**
269
278
  * Find products by its ids.
270
279
  * @handleName getProductsByIds
271
- * @param {string} [ids] - Product page identifiers for which to find relationships. Example: "12345,67890".
280
+ * @param {string} ids - Product page identifiers for which to find relationships. Example: "12345,67890".
272
281
  * @param {string} [langCode] - Language code. Default "en_US".
273
- * @param {IProductsQuery} [userQuery] - Optional set query parameters. Example:
282
+ * @param {IProductsQuery} [userQuery] - Optional set query parameters.
283
+ * @example
274
284
  {
275
285
  "limit": 30,
276
286
  "offset": 0,
@@ -308,7 +318,7 @@ class ProductApi extends asyncModules_1.default {
308
318
  /**
309
319
  * Retrieve one product object.
310
320
  * @handleName getProductById
311
- * @param {number} [id] - Product id. Example: 12345.
321
+ * @param {number} id - Product id. Example: 12345.
312
322
  * @param {string} [langCode] - Language code. Default: "en_US".
313
323
  * @returns {IProductsEntity} ProductEntity object.
314
324
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
@@ -356,7 +366,8 @@ class ProductApi extends asyncModules_1.default {
356
366
  /**
357
367
  * Getting the number of products for the entire catalog.
358
368
  * @handleName getProductsCount
359
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
369
+ * @param {any[]} body - Body parameters for filter. Deault: [].
370
+ * @example
360
371
  [
361
372
  {
362
373
  "attributeMarker": "price",
@@ -383,7 +394,8 @@ class ProductApi extends asyncModules_1.default {
383
394
  * Getting the number of products on a catalog page by page ID.
384
395
  * @handleName getProductsCountByPageId
385
396
  * @param {string} id - Page ID.
386
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
397
+ * @param {any[]} body - Body parameters for filter. Deault: [].
398
+ * @example
387
399
  [
388
400
  {
389
401
  "attributeMarker": "price",
@@ -410,7 +422,8 @@ class ProductApi extends asyncModules_1.default {
410
422
  * Getting the number of products for the catalog page by page url.
411
423
  * @handleName getProductsCountByPageUrl
412
424
  * @param {string} url - Page url.
413
- * @param {any[]} body - Body parameters for filter. Deault: []. Example:
425
+ * @param {any[]} body - Body parameters for filter. Deault: [].
426
+ * @example
414
427
  [
415
428
  {
416
429
  "attributeMarker": "price",