oneentry 1.0.151 → 1.0.153

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 (66) hide show
  1. package/changelog.md +20 -0
  2. package/dist/admins/adminsApi.d.ts +2 -1
  3. package/dist/admins/adminsApi.js +2 -1
  4. package/dist/admins/adminsInterfaces.d.ts +1 -1
  5. package/dist/attribute-sets/attributeSetsApi.d.ts +4 -0
  6. package/dist/attribute-sets/attributeSetsApi.js +4 -0
  7. package/dist/auth-provider/authProviderApi.d.ts +14 -1
  8. package/dist/auth-provider/authProviderApi.js +14 -1
  9. package/dist/base/asyncModules.d.ts +19 -2
  10. package/dist/base/asyncModules.js +74 -4
  11. package/dist/base/stateModule.d.ts +1 -0
  12. package/dist/base/stateModule.js +4 -0
  13. package/dist/blocks/blocksApi.d.ts +34 -1
  14. package/dist/blocks/blocksApi.js +69 -62
  15. package/dist/discounts/discountsApi.d.ts +5 -0
  16. package/dist/discounts/discountsApi.js +5 -0
  17. package/dist/events/eventsApi.d.ts +7 -0
  18. package/dist/events/eventsApi.js +11 -28
  19. package/dist/file-uploading/fileUploadingApi.d.ts +4 -1
  20. package/dist/file-uploading/fileUploadingApi.js +4 -1
  21. package/dist/file-uploading/fileUploadingInterfaces.d.ts +1 -1
  22. package/dist/filters/filtersApi.d.ts +1 -0
  23. package/dist/filters/filtersApi.js +1 -0
  24. package/dist/forms/formsApi.d.ts +2 -0
  25. package/dist/forms/formsApi.js +2 -0
  26. package/dist/forms-data/formsDataApi.d.ts +5 -0
  27. package/dist/forms-data/formsDataApi.js +5 -0
  28. package/dist/general-types/generalTypesApi.d.ts +1 -0
  29. package/dist/general-types/generalTypesApi.js +1 -0
  30. package/dist/integration-collections/integrationCollectionsApi.d.ts +10 -1
  31. package/dist/integration-collections/integrationCollectionsApi.js +10 -1
  32. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +1 -1
  33. package/dist/locales/localesApi.d.ts +1 -0
  34. package/dist/locales/localesApi.js +1 -0
  35. package/dist/menus/menusApi.d.ts +1 -0
  36. package/dist/menus/menusApi.js +1 -0
  37. package/dist/orders/ordersApi.d.ts +25 -1
  38. package/dist/orders/ordersApi.js +36 -12
  39. package/dist/orders/ordersInterfaces.d.ts +4 -2
  40. package/dist/pages/pagesApi.d.ts +9 -0
  41. package/dist/pages/pagesApi.js +33 -38
  42. package/dist/pages/pagesInterfaces.d.ts +5 -0
  43. package/dist/payments/paymentsApi.d.ts +6 -0
  44. package/dist/payments/paymentsApi.js +6 -0
  45. package/dist/product-statuses/productStatusesApi.d.ts +3 -0
  46. package/dist/product-statuses/productStatusesApi.js +3 -0
  47. package/dist/products/productsApi.d.ts +14 -0
  48. package/dist/products/productsApi.js +14 -0
  49. package/dist/products/productsInterfaces.d.ts +2 -2
  50. package/dist/sitemap/sitemapApi.d.ts +2 -0
  51. package/dist/sitemap/sitemapApi.js +2 -0
  52. package/dist/subscriptions/subscriptionsApi.d.ts +5 -0
  53. package/dist/subscriptions/subscriptionsApi.js +7 -14
  54. package/dist/system/systemApi.d.ts +3 -0
  55. package/dist/system/systemApi.js +3 -0
  56. package/dist/templates/templatesApi.d.ts +3 -0
  57. package/dist/templates/templatesApi.js +3 -0
  58. package/dist/templates-preview/templatesPreviewApi.d.ts +2 -0
  59. package/dist/templates-preview/templatesPreviewApi.js +2 -0
  60. package/dist/user-activity/userActivityApi.d.ts +1 -0
  61. package/dist/user-activity/userActivityApi.js +1 -0
  62. package/dist/users/usersApi.d.ts +14 -0
  63. package/dist/users/usersApi.js +14 -0
  64. package/dist/web-socket/wsApi.d.ts +1 -1
  65. package/dist/web-socket/wsApi.js +1 -1
  66. package/package.json +1 -1
@@ -29,6 +29,7 @@ class PaymentsApi extends asyncModules_1.default {
29
29
  * @throws {IError} When isShell=false and an error occurs during the fetch
30
30
  * @description This method gets list of payment sessions. This method requires user authorization.
31
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}.
32
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/getSessions getSessions} documentation.
32
33
  */
33
34
  async getSessions(offset = 0, limit = 30) {
34
35
  const query = {
@@ -48,6 +49,7 @@ class PaymentsApi extends asyncModules_1.default {
48
49
  * @throws {IError} When isShell=false and an error occurs during the fetch
49
50
  * @description This method gets a single payment session object by its identifier. This method requires user authorization.
50
51
  * @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}.
52
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/getSessionById getSessionById} documentation.
51
53
  */
52
54
  async getSessionById(id) {
53
55
  const result = await this._fetchGet(`/sessions/${id}`);
@@ -61,6 +63,7 @@ class PaymentsApi extends asyncModules_1.default {
61
63
  * @throws {IError} When isShell=false and an error occurs during the fetch
62
64
  * @description This method gets one payment session object by order identifier. This method requires user authorization.
63
65
  * @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}.
66
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/getSessionByOrderId getSessionByOrderId} documentation.
64
67
  */
65
68
  async getSessionByOrderId(id) {
66
69
  const result = await this._fetchGet(`/sessions/order/${id}`);
@@ -78,6 +81,7 @@ class PaymentsApi extends asyncModules_1.default {
78
81
  * @throws {IError} When isShell=false and an error occurs during the fetch
79
82
  * @description This method creates a payment session. This method requires user authorization.
80
83
  * @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}.
84
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/createSession createSession} documentation.
81
85
  */
82
86
  async createSession(orderId, type, automaticTaxEnabled = false) {
83
87
  const result = await this._fetchPost('/sessions', {
@@ -96,6 +100,7 @@ class PaymentsApi extends asyncModules_1.default {
96
100
  * @throws {IError} When isShell=false and an error occurs during the fetch
97
101
  * @description This method gets all payment accounts as an array. This method requires user authorization.
98
102
  * @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}.
103
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/getAccounts getAccounts} documentation.
99
104
  */
100
105
  async getAccounts() {
101
106
  const result = await this._fetchGet('/accounts');
@@ -112,6 +117,7 @@ class PaymentsApi extends asyncModules_1.default {
112
117
  * @description Get a single payment account object by its identifier.
113
118
  * @description This method requires user authorization.
114
119
  * @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}.
120
+ * @see {@link https://js-sdk.oneentry.cloud/docs/payments/getAccountById getAccountById} documentation.
115
121
  */
116
122
  async getAccountById(id) {
117
123
  const result = await this._fetchGet(`/accounts/${id}`);
@@ -23,6 +23,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
23
23
  * @returns {Promise<IProductStatusEntity[] | IError>} Returns an array of product status objects.
24
24
  * @throws {IError} When isShell=false and an error occurs during the fetch
25
25
  * @description Search for all product status objects.
26
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/getProductStatuses getProductStatuses} documentation.
26
27
  */
27
28
  getProductStatuses(langCode?: string): Promise<IProductStatusEntity[] | IError>;
28
29
  /**
@@ -33,6 +34,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
33
34
  * @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
34
35
  * @throws {IError} When isShell=false and an error occurs during the fetch
35
36
  * @description Search for a product status object by its textual identifier (marker).
37
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/getProductsByStatusMarker getProductsByStatusMarker} documentation.
36
38
  */
37
39
  getProductsByStatusMarker(marker: string, langCode?: string): Promise<IProductStatusEntity | IError>;
38
40
  /**
@@ -42,6 +44,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
42
44
  * @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
43
45
  * @throws {IError} When isShell=false and an error occurs during the fetch
44
46
  * @description Check the existence of a textual identifier.
47
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/validateMarker validateMarker} documentation.
45
48
  */
46
49
  validateMarker(marker: string): Promise<boolean | IError>;
47
50
  }
@@ -27,6 +27,7 @@ class ProductStatusesApi extends asyncModules_1.default {
27
27
  * @returns {Promise<IProductStatusEntity[] | IError>} Returns an array of product status objects.
28
28
  * @throws {IError} When isShell=false and an error occurs during the fetch
29
29
  * @description Search for all product status objects.
30
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/getProductStatuses getProductStatuses} documentation.
30
31
  */
31
32
  async getProductStatuses(langCode = this.state.lang) {
32
33
  const result = await this._fetchGet('');
@@ -42,6 +43,7 @@ class ProductStatusesApi extends asyncModules_1.default {
42
43
  * @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
43
44
  * @throws {IError} When isShell=false and an error occurs during the fetch
44
45
  * @description Search for a product status object by its textual identifier (marker).
46
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/getProductsByStatusMarker getProductsByStatusMarker} documentation.
45
47
  */
46
48
  async getProductsByStatusMarker(marker, langCode = this.state.lang) {
47
49
  const result = await this._fetchGet(`/marker/${marker}`);
@@ -56,6 +58,7 @@ class ProductStatusesApi extends asyncModules_1.default {
56
58
  * @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
57
59
  * @throws {IError} When isShell=false and an error occurs during the fetch
58
60
  * @description Check the existence of a textual identifier.
61
+ * @see {@link https://js-sdk.oneentry.cloud/docs/product-statuses/validateMarker validateMarker} documentation.
59
62
  */
60
63
  async validateMarker(marker) {
61
64
  const result = await this._fetchGet(`/marker-validation/${marker}`);
@@ -64,6 +64,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
64
64
  * @returns {Promise<IProductsResponse | IError>} Products response, or IError when isShell=true
65
65
  * @throws {IError} When isShell=false and an error occurs during the fetch
66
66
  * @description Fetch products with optional filters and pagination.
67
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProducts getProducts} documentation.
67
68
  */
68
69
  getProducts(body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
69
70
  /**
@@ -88,6 +89,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
88
89
  * @returns {Promise<IAggregatedProductGroup[] | IError>} Array with AggregatedProductGroup objects.
89
90
  * @throws {IError} When isShell=false and an error occurs during the fetch
90
91
  * @description Search for all product page objects with pagination (and aggregation) that do not have a category.
92
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsEmptyPage getProductsEmptyPage} documentation.
91
93
  */
92
94
  getProductsEmptyPage(body?: object, langCode?: string, userQuery?: IProductsQuery): Promise<IAggregatedProductGroup[] | IError>;
93
95
  /**
@@ -137,6 +139,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
137
139
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
138
140
  * @throws {IError} When isShell=false and an error occurs during the fetch
139
141
  * @description Fetch products by page ID with optional filters and pagination.
142
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByPageId getProductsByPageId} documentation.
140
143
  */
141
144
  getProductsByPageId(id: number, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
142
145
  /**
@@ -161,6 +164,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
161
164
  * @returns {Promise<IProductsInfo | IError>} Array with ProductInformation objects.
162
165
  * @throws {IError} When isShell=false and an error occurs during the fetch
163
166
  * @description Search for information about products and prices for the selected category.
167
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsPriceByPageUrl getProductsPriceByPageUrl} documentation.
164
168
  */
165
169
  getProductsPriceByPageUrl(url: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsInfo | IError>;
166
170
  /**
@@ -210,6 +214,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
210
214
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects.
211
215
  * @throws {IError} When isShell=false and an error occurs during the fetch
212
216
  * @description Search for all products with pagination for the selected category.
217
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByPageUrl getProductsByPageUrl} documentation.
213
218
  */
214
219
  getProductsByPageUrl(url: string, body?: IFilterParams[], langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
215
220
  /**
@@ -238,6 +243,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
238
243
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
239
244
  * @throws {IError} When isShell=false and an error occurs during the fetch
240
245
  * @description Find all related product page objects.
246
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getRelatedProductsById getRelatedProductsById} documentation.
241
247
  */
242
248
  getRelatedProductsById(id: number, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsResponse | IError>;
243
249
  /**
@@ -270,6 +276,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
270
276
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
271
277
  * @throws {IError} When isShell=false and an error occurs during the fetch
272
278
  * @description Find products by its ids.
279
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByIds getProductsByIds} documentation.
273
280
  */
274
281
  getProductsByIds(ids: string, langCode?: string, userQuery?: IProductsQuery): Promise<IProductsEntity[] | IError>;
275
282
  /**
@@ -281,6 +288,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
281
288
  * @returns {Promise<IProductsEntity | IError>} ProductEntity object.
282
289
  * @throws {IError} When isShell=false and an error occurs during the fetch
283
290
  * @description Retrieve one product object.
291
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductById getProductById} documentation.
284
292
  */
285
293
  getProductById(id: number, langCode?: string, isNormalized?: boolean): Promise<IProductsEntity | IError>;
286
294
  /**
@@ -290,6 +298,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
290
298
  * @returns {Promise<IProductBlock | IError>} - Product block object.
291
299
  * @throws {IError} When isShell=false and an error occurs during the fetch
292
300
  * @description Getting a product block object by product id.
301
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductBlockById getProductBlockById} documentation.
293
302
  */
294
303
  getProductBlockById(id: number): Promise<IProductBlock[] | IError>;
295
304
  /**
@@ -300,6 +309,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
300
309
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
301
310
  * @throws {IError} When isShell=false and an error occurs during the fetch
302
311
  * @description Quick search for product page objects with limited output.
312
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/searchProduct searchProduct} documentation.
303
313
  */
304
314
  searchProduct(name: string, langCode?: string): Promise<IProductsEntity[] | IError>;
305
315
  /**
@@ -322,6 +332,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
322
332
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
323
333
  * @throws {IError} When isShell=false and an error occurs during the fetch
324
334
  * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
335
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCount getProductsCount} documentation.
325
336
  */
326
337
  getProductsCount(body?: any[]): Promise<IProductsCount | IError>;
327
338
  /**
@@ -345,6 +356,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
345
356
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
346
357
  * @throws {IError} When isShell=false and an error occurs during the fetch
347
358
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
359
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCountByPageId getProductsCountByPageId} documentation.
348
360
  */
349
361
  getProductsCountByPageId(id: string, body?: any[]): Promise<IProductsCount | IError>;
350
362
  /**
@@ -368,6 +380,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
368
380
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
369
381
  * @throws {IError} When isShell=false and an error occurs during the fetch
370
382
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
383
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCountByPageUrl getProductsCountByPageUrl} documentation.
371
384
  */
372
385
  /**
373
386
  * Semantic (vector) search for products.
@@ -379,6 +392,7 @@ export default class ProductsApi extends AsyncModules implements IProductsApi {
379
392
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects.
380
393
  * @throws {IError} When isShell=false and an error occurs during the fetch
381
394
  * @description This method performs a semantic (vector) search for products.
395
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByVectorSearch getProductsByVectorSearch} documentation.
382
396
  */
383
397
  getProductsByVectorSearch(body: IVectorSearchProducts, langCode?: string, offset?: number, limit?: number): Promise<IProductsEntity[] | IError>;
384
398
  /**
@@ -69,6 +69,7 @@ class ProductsApi extends asyncModules_1.default {
69
69
  * @returns {Promise<IProductsResponse | IError>} Products response, or IError when isShell=true
70
70
  * @throws {IError} When isShell=false and an error occurs during the fetch
71
71
  * @description Fetch products with optional filters and pagination.
72
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProducts getProducts} documentation.
72
73
  */
73
74
  async getProducts(body = [], langCode = this.state.lang, userQuery) {
74
75
  const query = {
@@ -102,6 +103,7 @@ class ProductsApi extends asyncModules_1.default {
102
103
  * @returns {Promise<IAggregatedProductGroup[] | IError>} Array with AggregatedProductGroup objects.
103
104
  * @throws {IError} When isShell=false and an error occurs during the fetch
104
105
  * @description Search for all product page objects with pagination (and aggregation) that do not have a category.
106
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsEmptyPage getProductsEmptyPage} documentation.
105
107
  */
106
108
  async getProductsEmptyPage(body = {}, langCode = this.state.lang, userQuery) {
107
109
  const query = { ...userQuery, langCode };
@@ -155,6 +157,7 @@ class ProductsApi extends asyncModules_1.default {
155
157
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
156
158
  * @throws {IError} When isShell=false and an error occurs during the fetch
157
159
  * @description Fetch products by page ID with optional filters and pagination.
160
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByPageId getProductsByPageId} documentation.
158
161
  */
159
162
  async getProductsByPageId(id, body = [], langCode = this.state.lang, userQuery) {
160
163
  const query = { ...userQuery };
@@ -185,6 +188,7 @@ class ProductsApi extends asyncModules_1.default {
185
188
  * @returns {Promise<IProductsInfo | IError>} Array with ProductInformation objects.
186
189
  * @throws {IError} When isShell=false and an error occurs during the fetch
187
190
  * @description Search for information about products and prices for the selected category.
191
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsPriceByPageUrl getProductsPriceByPageUrl} documentation.
188
192
  */
189
193
  async getProductsPriceByPageUrl(url, langCode = this.state.lang, userQuery) {
190
194
  const query = {
@@ -241,6 +245,7 @@ class ProductsApi extends asyncModules_1.default {
241
245
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects.
242
246
  * @throws {IError} When isShell=false and an error occurs during the fetch
243
247
  * @description Search for all products with pagination for the selected category.
248
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByPageUrl getProductsByPageUrl} documentation.
244
249
  */
245
250
  async getProductsByPageUrl(url, body = [], langCode = this.state.lang, userQuery) {
246
251
  const query = { ...userQuery };
@@ -276,6 +281,7 @@ class ProductsApi extends asyncModules_1.default {
276
281
  * @returns {Promise<IProductsResponse | IError>} Array with ProductEntity objects
277
282
  * @throws {IError} When isShell=false and an error occurs during the fetch
278
283
  * @description Find all related product page objects.
284
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getRelatedProductsById getRelatedProductsById} documentation.
279
285
  */
280
286
  async getRelatedProductsById(id, langCode = this.state.lang, userQuery) {
281
287
  const query = { ...userQuery };
@@ -314,6 +320,7 @@ class ProductsApi extends asyncModules_1.default {
314
320
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
315
321
  * @throws {IError} When isShell=false and an error occurs during the fetch
316
322
  * @description Find products by its ids.
323
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByIds getProductsByIds} documentation.
317
324
  */
318
325
  async getProductsByIds(ids, langCode = this.state.lang, userQuery) {
319
326
  const query = {
@@ -333,6 +340,7 @@ class ProductsApi extends asyncModules_1.default {
333
340
  * @returns {Promise<IProductsEntity | IError>} ProductEntity object.
334
341
  * @throws {IError} When isShell=false and an error occurs during the fetch
335
342
  * @description Retrieve one product object.
343
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductById getProductById} documentation.
336
344
  */
337
345
  async getProductById(id, langCode = this.state.lang, isNormalized) {
338
346
  const query = { langCode };
@@ -350,6 +358,7 @@ class ProductsApi extends asyncModules_1.default {
350
358
  * @returns {Promise<IProductBlock | IError>} - Product block object.
351
359
  * @throws {IError} When isShell=false and an error occurs during the fetch
352
360
  * @description Getting a product block object by product id.
361
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductBlockById getProductBlockById} documentation.
353
362
  */
354
363
  async getProductBlockById(id) {
355
364
  const response = await this._fetchGet(`/${id}/blocks`);
@@ -363,6 +372,7 @@ class ProductsApi extends asyncModules_1.default {
363
372
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects
364
373
  * @throws {IError} When isShell=false and an error occurs during the fetch
365
374
  * @description Quick search for product page objects with limited output.
375
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/searchProduct searchProduct} documentation.
366
376
  */
367
377
  async searchProduct(name, langCode = this.state.lang) {
368
378
  const searchProducts = await this._fetchGet(`/quick/search?langCode=${langCode}&name=${name}`);
@@ -406,6 +416,7 @@ class ProductsApi extends asyncModules_1.default {
406
416
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
407
417
  * @throws {IError} When isShell=false and an error occurs during the fetch
408
418
  * @description This method calculates and returns the total number of products present across the entire catalog, optionally applying specified filters.
419
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCount getProductsCount} documentation.
409
420
  */
410
421
  async getProductsCount(
411
422
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -434,6 +445,7 @@ class ProductsApi extends asyncModules_1.default {
434
445
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
435
446
  * @throws {IError} When isShell=false and an error occurs during the fetch
436
447
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
448
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCountByPageId getProductsCountByPageId} documentation.
437
449
  */
438
450
  async getProductsCountByPageId(id,
439
451
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -462,6 +474,7 @@ class ProductsApi extends asyncModules_1.default {
462
474
  * @returns {Promise<IProductsCount | IError>} Object with product items count.
463
475
  * @throws {IError} When isShell=false and an error occurs during the fetch
464
476
  * @description This method calculates and returns the number of products available on a given catalog page, identified by its URL, with optional filtering.
477
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsCountByPageUrl getProductsCountByPageUrl} documentation.
465
478
  */
466
479
  /**
467
480
  * Semantic (vector) search for products.
@@ -473,6 +486,7 @@ class ProductsApi extends asyncModules_1.default {
473
486
  * @returns {Promise<IProductsEntity[] | IError>} Array with ProductEntity objects.
474
487
  * @throws {IError} When isShell=false and an error occurs during the fetch
475
488
  * @description This method performs a semantic (vector) search for products.
489
+ * @see {@link https://js-sdk.oneentry.cloud/docs/products/getProductsByVectorSearch getProductsByVectorSearch} documentation.
476
490
  */
477
491
  async getProductsByVectorSearch(body, langCode = this.state.lang, offset = 0, limit = 30) {
478
492
  const query = {
@@ -257,7 +257,7 @@ interface IProductsApi {
257
257
  /**
258
258
  * Getting the number of products on a catalog page by page ID.
259
259
  * @handleName getProductsCountByPageId
260
- * @param {string} id - Page id. Example: 12345.
260
+ * @param {string} id - Page id. Example: "12345".
261
261
  * @param {object[]} body - Body parameters for filter. Deault: [].
262
262
  * @example
263
263
  [
@@ -367,7 +367,7 @@ interface IProductsQuery {
367
367
  * @interface IFilterParams
368
368
  * @property {string | null} attributeMarker - The text identifier of the indexed attribute by which values are filtered. Default: null. Example: "color".
369
369
  * @property {string | null} [conditionMarker] - Id of the filter condition by which the values are filtered. Default: null. Example: "equals".
370
- * @property {number | null} conditionValue - The value that is being searched for, default null. Example: "new".
370
+ * @property {number | string | null} conditionValue - The value that is being searched for, default null. Example: "new".
371
371
  * @property {string | null} [pageUrl] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
372
372
  * @property {string[] | null} [pageUrls] - Url of the category page object. Example: ["23-laminat-floorwood-maxima"].
373
373
  * @property {string | null} [statusMarker] - Text identifier of the product page status (default not set). Example: "in_stock".
@@ -22,6 +22,7 @@ export default class SitemapApi extends AsyncModules implements ISitemapApi {
22
22
  * @handleName getSitemap
23
23
  * @returns {Promise<string[] | IError>} Returns an array of sitemap URLs.
24
24
  * @throws {IError} When isShell=false and an error occurs during the fetch
25
+ * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/getSitemap getSitemap} documentation.
25
26
  */
26
27
  getSitemap(): Promise<string[] | IError>;
27
28
  /**
@@ -30,6 +31,7 @@ export default class SitemapApi extends AsyncModules implements ISitemapApi {
30
31
  * @param {ISitemapQuery} body - Sitemap body params (e.g. `{ baseUrls: { en_US: "https://…" } }`).
31
32
  * @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
32
33
  * @throws {IError} When isShell=false and an error occurs during the fetch
34
+ * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
33
35
  */
34
36
  updateSitemap(body: ISitemapQuery): Promise<string[] | IError>;
35
37
  }
@@ -25,6 +25,7 @@ class SitemapApi extends asyncModules_1.default {
25
25
  * @handleName getSitemap
26
26
  * @returns {Promise<string[] | IError>} Returns an array of sitemap URLs.
27
27
  * @throws {IError} When isShell=false and an error occurs during the fetch
28
+ * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/getSitemap getSitemap} documentation.
28
29
  */
29
30
  async getSitemap() {
30
31
  const data = await this._fetchGet(`/`);
@@ -36,6 +37,7 @@ class SitemapApi extends asyncModules_1.default {
36
37
  * @param {ISitemapQuery} body - Sitemap body params (e.g. `{ baseUrls: { en_US: "https://…" } }`).
37
38
  * @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
38
39
  * @throws {IError} When isShell=false and an error occurs during the fetch
40
+ * @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
39
41
  */
40
42
  async updateSitemap(body) {
41
43
  const data = await this._fetchPost(`/`, body);
@@ -26,6 +26,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description This method requires user authorization.
28
28
  * @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}.
29
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/subscribe subscribe} documentation.
29
30
  */
30
31
  subscribe(body: ISubscribe): Promise<ICreatedSubscription | IError>;
31
32
  /**
@@ -36,6 +37,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
36
37
  * @throws {IError} When isShell=false and an error occurs during the fetch
37
38
  * @description This method requires user authorization.
38
39
  * @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}.
40
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/cancelSubscription cancelSubscription} documentation.
39
41
  */
40
42
  cancelSubscription(body: ICancelSubscription): Promise<boolean | IError>;
41
43
  /**
@@ -45,6 +47,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
45
47
  * @throws {IError} When isShell=false and an error occurs during the fetch
46
48
  * @description This method requires user authorization.
47
49
  * @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
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/getAllSubscriptions getAllSubscriptions} documentation.
48
51
  */
49
52
  getAllSubscriptions(): Promise<string[] | IError>;
50
53
  /**
@@ -54,6 +57,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
54
57
  * @throws {IError} When isShell=false and an error occurs during the fetch
55
58
  * @description This method requires user authorization.
56
59
  * @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}.
60
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/getActiveSubscriptions getActiveSubscriptions} documentation.
57
61
  */
58
62
  getActiveSubscriptions(): Promise<string[] | IError>;
59
63
  /**
@@ -64,6 +68,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
64
68
  * @throws {IError} When isShell=false and an error occurs during the fetch
65
69
  * @description This method requires user authorization.
66
70
  * @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}.
71
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/recoverSubscriptions recoverSubscriptions} documentation.
67
72
  */
68
73
  recoverSubscriptions(body: ICancelSubscription): Promise<boolean | IError>;
69
74
  }
@@ -30,6 +30,7 @@ class SubscriptionsApi extends asyncModules_1.default {
30
30
  * @throws {IError} When isShell=false and an error occurs during the fetch
31
31
  * @description This method requires user authorization.
32
32
  * @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}.
33
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/subscribe subscribe} documentation.
33
34
  */
34
35
  async subscribe(body) {
35
36
  const data = await this._fetchPost(``, body);
@@ -44,15 +45,10 @@ class SubscriptionsApi extends asyncModules_1.default {
44
45
  * @throws {IError} When isShell=false and an error occurs during the fetch
45
46
  * @description This method requires user authorization.
46
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}.
48
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/cancelSubscription cancelSubscription} documentation.
47
49
  */
48
50
  async cancelSubscription(body) {
49
- try {
50
- await this._fetchDelete(``, body);
51
- return true;
52
- }
53
- catch (e) {
54
- return e;
55
- }
51
+ return this._fetchBoolean(() => this._fetchDelete(``, body));
56
52
  }
57
53
  /**
58
54
  * Get all available subscription markers.
@@ -61,6 +57,7 @@ class SubscriptionsApi extends asyncModules_1.default {
61
57
  * @throws {IError} When isShell=false and an error occurs during the fetch
62
58
  * @description This method requires user authorization.
63
59
  * @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}.
60
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/getAllSubscriptions getAllSubscriptions} documentation.
64
61
  */
65
62
  async getAllSubscriptions() {
66
63
  const data = await this._fetchGet(``);
@@ -74,6 +71,7 @@ class SubscriptionsApi extends asyncModules_1.default {
74
71
  * @throws {IError} When isShell=false and an error occurs during the fetch
75
72
  * @description This method requires user authorization.
76
73
  * @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}.
74
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/getActiveSubscriptions getActiveSubscriptions} documentation.
77
75
  */
78
76
  async getActiveSubscriptions() {
79
77
  const data = await this._fetchGet(`/active`);
@@ -88,15 +86,10 @@ class SubscriptionsApi extends asyncModules_1.default {
88
86
  * @throws {IError} When isShell=false and an error occurs during the fetch
89
87
  * @description This method requires user authorization.
90
88
  * @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}.
89
+ * @see {@link https://js-sdk.oneentry.cloud/docs/subscriptions/recoverSubscriptions recoverSubscriptions} documentation.
91
90
  */
92
91
  async recoverSubscriptions(body) {
93
- try {
94
- await this._fetchPost(`/recover`, body);
95
- return true;
96
- }
97
- catch (e) {
98
- return e;
99
- }
92
+ return this._fetchBoolean(() => this._fetchPost(`/recover`, body));
100
93
  }
101
94
  }
102
95
  exports.default = SubscriptionsApi;
@@ -22,6 +22,7 @@ export default class SystemApi extends AsyncModules implements ISystemApi {
22
22
  * @returns {Promise<unknown | IError>} The response from the server after fetching data from the '/test404' endpoint.
23
23
  * @throws {IError} When isShell=false and an error occurs during the fetch
24
24
  * @description This method is used to test the 404 error handling by sending a GET request to a specific endpoint.
25
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/test404 test404} documentation.
25
26
  */
26
27
  test404(): Promise<unknown | IError>;
27
28
  /**
@@ -30,6 +31,7 @@ export default class SystemApi extends AsyncModules implements ISystemApi {
30
31
  * @returns {Promise<unknown | IError>} The response from the server after fetching data from the '/test500' endpoint.
31
32
  * @throws {IError} When isShell=false and an error occurs during the fetch
32
33
  * @description This method is used to test the 500 error handling by sending a GET request to a specific endpoint.
34
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/test500 test500} documentation.
33
35
  */
34
36
  test500(): Promise<unknown | IError>;
35
37
  /**
@@ -38,6 +40,7 @@ export default class SystemApi extends AsyncModules implements ISystemApi {
38
40
  * @returns {Promise<unknown | IError>} Return object with date and count.
39
41
  * @throws {IError} When isShell=false and an error occurs during the fetch
40
42
  * @description Getting the number of requests to API.
43
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/getApiStat getApiStat} documentation.
41
44
  */
42
45
  getApiStat(): Promise<unknown>;
43
46
  }
@@ -25,6 +25,7 @@ class SystemApi extends asyncModules_1.default {
25
25
  * @returns {Promise<unknown | IError>} The response from the server after fetching data from the '/test404' endpoint.
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description This method is used to test the 404 error handling by sending a GET request to a specific endpoint.
28
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/test404 test404} documentation.
28
29
  */
29
30
  async test404() {
30
31
  const result = await this._fetchGet('/test404');
@@ -36,6 +37,7 @@ class SystemApi extends asyncModules_1.default {
36
37
  * @returns {Promise<unknown | IError>} The response from the server after fetching data from the '/test500' endpoint.
37
38
  * @throws {IError} When isShell=false and an error occurs during the fetch
38
39
  * @description This method is used to test the 500 error handling by sending a GET request to a specific endpoint.
40
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/test500 test500} documentation.
39
41
  */
40
42
  async test500() {
41
43
  const result = await this._fetchGet('/test500');
@@ -47,6 +49,7 @@ class SystemApi extends asyncModules_1.default {
47
49
  * @returns {Promise<unknown | IError>} Return object with date and count.
48
50
  * @throws {IError} When isShell=false and an error occurs during the fetch
49
51
  * @description Getting the number of requests to API.
52
+ * @see {@link https://js-sdk.oneentry.cloud/docs/system/getApiStat getApiStat} documentation.
50
53
  */
51
54
  async getApiStat() {
52
55
  const result = await this._fetchGet('/api-stat');
@@ -25,6 +25,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
25
25
  * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description This function is designed to fetch organized template objects in groups based on their types.
28
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getAllTemplates getAllTemplates} documentation.
28
29
  */
29
30
  getAllTemplates(langCode?: string): Promise<Record<BlockType, ITemplateEntity[]> | IError>;
30
31
  /**
@@ -35,6 +36,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
35
36
  * @returns {Promise<ITemplateEntity[] | IError>} Returns a TemplateEntity object.
36
37
  * @throws {IError} When isShell=false and an error occurs during the fetch
37
38
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
39
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByType getTemplateByType} documentation.
38
40
  */
39
41
  getTemplateByType(type: BlockType, langCode?: string): Promise<ITemplateEntity[] | IError>;
40
42
  /**
@@ -45,6 +47,7 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
45
47
  * @returns {Promise<ITemplateEntity | IError>} Returns a TemplateEntity object
46
48
  * @throws {IError} When isShell=false and an error occurs during the fetch
47
49
  * @description Fetch a specific template object based on its unique marker.
50
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByMarker getTemplateByMarker} documentation.
48
51
  */
49
52
  getTemplateByMarker(marker: string, langCode?: string): Promise<ITemplateEntity | IError>;
50
53
  }
@@ -29,6 +29,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
29
29
  * @returns {Promise<Record<BlockType, ITemplateEntity[]> | IError>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
30
30
  * @throws {IError} When isShell=false and an error occurs during the fetch
31
31
  * @description This function is designed to fetch organized template objects in groups based on their types.
32
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getAllTemplates getAllTemplates} documentation.
32
33
  */
33
34
  async getAllTemplates(langCode = this.state.lang) {
34
35
  const response = await this._fetchGet(`/all?langCode=${langCode}`);
@@ -54,6 +55,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
54
55
  * @returns {Promise<ITemplateEntity[] | IError>} Returns a TemplateEntity object.
55
56
  * @throws {IError} When isShell=false and an error occurs during the fetch
56
57
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
58
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByType getTemplateByType} documentation.
57
59
  */
58
60
  async getTemplateByType(type, langCode = this.state.lang) {
59
61
  const result = await this._fetchGet(`?type=${type}&langCode=${langCode}`);
@@ -69,6 +71,7 @@ class TemplatesPreviewApi extends asyncModules_1.default {
69
71
  * @returns {Promise<ITemplateEntity | IError>} Returns a TemplateEntity object
70
72
  * @throws {IError} When isShell=false and an error occurs during the fetch
71
73
  * @description Fetch a specific template object based on its unique marker.
74
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates/getTemplateByMarker getTemplateByMarker} documentation.
72
75
  */
73
76
  async getTemplateByMarker(marker, langCode = this.state.lang) {
74
77
  const result = await this._fetchGet(`/marker/${marker}?langCode=${langCode}`);
@@ -23,6 +23,7 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
23
23
  * @returns {Promise<ITemplatesPreviewEntity[] | IError>} - Returns all TemplatePreviewsEntity template objects.
24
24
  * @throws {IError} When isShell=false and an error occurs during the fetch
25
25
  * @description This method is used to fetch all available template objects.
26
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates-preview/getTemplatePreviews getTemplatePreviews} documentation.
26
27
  */
27
28
  getTemplatePreviews(langCode?: string): Promise<ITemplatesPreviewEntity[] | IError>;
28
29
  /**
@@ -33,6 +34,7 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
33
34
  * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
34
35
  * @throws {IError} When isShell=false and an error occurs during the fetch
35
36
  * @description This method is used to fetch a specific template object based on the provided marker.
37
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates-preview/getTemplatePreviewByMarker getTemplatePreviewByMarker} documentation.
36
38
  */
37
39
  getTemplatePreviewByMarker(marker: string, langCode?: string): Promise<ITemplatesPreviewEntity | IError>;
38
40
  }
@@ -27,6 +27,7 @@ class TemplatePreviewsApi extends asyncModules_1.default {
27
27
  * @returns {Promise<ITemplatesPreviewEntity[] | IError>} - Returns all TemplatePreviewsEntity template objects.
28
28
  * @throws {IError} When isShell=false and an error occurs during the fetch
29
29
  * @description This method is used to fetch all available template objects.
30
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates-preview/getTemplatePreviews getTemplatePreviews} documentation.
30
31
  */
31
32
  async getTemplatePreviews(langCode = this.state.lang) {
32
33
  const result = await this._fetchGet(`?langCode=${langCode}`);
@@ -42,6 +43,7 @@ class TemplatePreviewsApi extends asyncModules_1.default {
42
43
  * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
43
44
  * @throws {IError} When isShell=false and an error occurs during the fetch
44
45
  * @description This method is used to fetch a specific template object based on the provided marker.
46
+ * @see {@link https://js-sdk.oneentry.cloud/docs/templates-preview/getTemplatePreviewByMarker getTemplatePreviewByMarker} documentation.
45
47
  */
46
48
  async getTemplatePreviewByMarker(marker, langCode = this.state.lang) {
47
49
  const result = await this._fetchGet(`/marker/${marker}?langCode=${langCode}`);
@@ -25,6 +25,7 @@ export default class UserActivityApi extends AsyncModules implements IUserActivi
25
25
  * @returns {Promise<boolean | IError>} Returns true if the event was recorded, or an error object if there was an issue.
26
26
  * @throws {IError} When isShell=false and an error occurs during the fetch
27
27
  * @description Records an activity event for the current authorized user or guest.
28
+ * @see {@link https://js-sdk.oneentry.cloud/docs/user-activity/trackUserActivity trackUserActivity} documentation.
28
29
  */
29
30
  trackUserActivity(body: ITrackActivity): Promise<boolean | IError>;
30
31
  }
@@ -28,6 +28,7 @@ class UserActivityApi extends asyncModules_1.default {
28
28
  * @returns {Promise<boolean | IError>} Returns true if the event was recorded, or an error object if there was an issue.
29
29
  * @throws {IError} When isShell=false and an error occurs during the fetch
30
30
  * @description Records an activity event for the current authorized user or guest.
31
+ * @see {@link https://js-sdk.oneentry.cloud/docs/user-activity/trackUserActivity trackUserActivity} documentation.
31
32
  */
32
33
  async trackUserActivity(body) {
33
34
  try {