oneentry 1.0.152 → 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 (64) hide show
  1. package/changelog.md +12 -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 +11 -0
  10. package/dist/base/asyncModules.js +19 -0
  11. package/dist/blocks/blocksApi.d.ts +34 -1
  12. package/dist/blocks/blocksApi.js +69 -62
  13. package/dist/discounts/discountsApi.d.ts +5 -0
  14. package/dist/discounts/discountsApi.js +5 -0
  15. package/dist/events/eventsApi.d.ts +7 -0
  16. package/dist/events/eventsApi.js +11 -28
  17. package/dist/file-uploading/fileUploadingApi.d.ts +4 -1
  18. package/dist/file-uploading/fileUploadingApi.js +4 -1
  19. package/dist/file-uploading/fileUploadingInterfaces.d.ts +1 -1
  20. package/dist/filters/filtersApi.d.ts +1 -0
  21. package/dist/filters/filtersApi.js +1 -0
  22. package/dist/forms/formsApi.d.ts +2 -0
  23. package/dist/forms/formsApi.js +2 -0
  24. package/dist/forms-data/formsDataApi.d.ts +5 -0
  25. package/dist/forms-data/formsDataApi.js +5 -0
  26. package/dist/general-types/generalTypesApi.d.ts +1 -0
  27. package/dist/general-types/generalTypesApi.js +1 -0
  28. package/dist/integration-collections/integrationCollectionsApi.d.ts +10 -1
  29. package/dist/integration-collections/integrationCollectionsApi.js +10 -1
  30. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +1 -1
  31. package/dist/locales/localesApi.d.ts +1 -0
  32. package/dist/locales/localesApi.js +1 -0
  33. package/dist/menus/menusApi.d.ts +1 -0
  34. package/dist/menus/menusApi.js +1 -0
  35. package/dist/orders/ordersApi.d.ts +25 -1
  36. package/dist/orders/ordersApi.js +36 -12
  37. package/dist/orders/ordersInterfaces.d.ts +4 -2
  38. package/dist/pages/pagesApi.d.ts +9 -0
  39. package/dist/pages/pagesApi.js +33 -38
  40. package/dist/pages/pagesInterfaces.d.ts +5 -0
  41. package/dist/payments/paymentsApi.d.ts +6 -0
  42. package/dist/payments/paymentsApi.js +6 -0
  43. package/dist/product-statuses/productStatusesApi.d.ts +3 -0
  44. package/dist/product-statuses/productStatusesApi.js +3 -0
  45. package/dist/products/productsApi.d.ts +14 -0
  46. package/dist/products/productsApi.js +14 -0
  47. package/dist/products/productsInterfaces.d.ts +2 -2
  48. package/dist/sitemap/sitemapApi.d.ts +2 -0
  49. package/dist/sitemap/sitemapApi.js +2 -0
  50. package/dist/subscriptions/subscriptionsApi.d.ts +5 -0
  51. package/dist/subscriptions/subscriptionsApi.js +7 -14
  52. package/dist/system/systemApi.d.ts +3 -0
  53. package/dist/system/systemApi.js +3 -0
  54. package/dist/templates/templatesApi.d.ts +3 -0
  55. package/dist/templates/templatesApi.js +3 -0
  56. package/dist/templates-preview/templatesPreviewApi.d.ts +2 -0
  57. package/dist/templates-preview/templatesPreviewApi.js +2 -0
  58. package/dist/user-activity/userActivityApi.d.ts +1 -0
  59. package/dist/user-activity/userActivityApi.js +1 -0
  60. package/dist/users/usersApi.d.ts +14 -0
  61. package/dist/users/usersApi.js +14 -0
  62. package/dist/web-socket/wsApi.d.ts +1 -1
  63. package/dist/web-socket/wsApi.js +1 -1
  64. package/package.json +1 -1
@@ -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 {
@@ -24,6 +24,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
24
24
  * @throws {IError} When isShell=false and an error occurs during the fetch
25
25
  * @description This method requires user authorization.
26
26
  * @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}.
27
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/getUser getUser} documentation.
27
28
  */
28
29
  getUser(langCode?: string): Promise<IUserEntity | IError>;
29
30
  /**
@@ -100,6 +101,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
100
101
  * @description This method updates the user's data. This method requires user authorization.
101
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}.
102
103
  * @see For more information about {@link https://doc.oneentry.cloud/docs/forms/create-form registration forms}, see the documentation in the {@link https://doc.oneentry.cloud/docs/forms/create-form forms configuration section}.
104
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/updateUser updateUser} documentation.
103
105
  */
104
106
  updateUser(body: IUserBody, langCode?: string): Promise<boolean | IError>;
105
107
  /**
@@ -109,6 +111,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
109
111
  * @throws {IError} When isShell=false and an error occurs during the fetch
110
112
  * @description This method archives a user object (marks it for deletion). This method requires user authorization.
111
113
  * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/auth-provider/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
114
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/archiveUser archiveUser} documentation.
112
115
  */
113
116
  archiveUser(): Promise<boolean | IError>;
114
117
  /**
@@ -118,6 +121,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
118
121
  * @throws {IError} When isShell=false and an error occurs during the fetch
119
122
  * @description This method deletes the user from the system. This method requires user authorization.
120
123
  * @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}.
124
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/deleteUser deleteUser} documentation.
121
125
  */
122
126
  deleteUser(): Promise<boolean | IError>;
123
127
  /**
@@ -128,6 +132,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
128
132
  * @throws {IError} When isShell=false and an error occurs during the fetch
129
133
  * @description This method adds an FCM token for sending push notifications. This method requires user authorization.
130
134
  * @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}.
135
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/addFCMToken addFCMToken} documentation.
131
136
  */
132
137
  addFCMToken(token: string): Promise<boolean | IError>;
133
138
  /**
@@ -138,6 +143,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
138
143
  * @throws {IError} When isShell=false and an error occurs during the fetch
139
144
  * @description This method deletes an existing FCM token. This method requires user authorization.
140
145
  * @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}.
146
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/deleteFCMToken deleteFCMToken} documentation.
141
147
  */
142
148
  deleteFCMToken(token: string): Promise<boolean | IError>;
143
149
  /**
@@ -147,6 +153,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
147
153
  * @throws {IError} When isShell=false and an error occurs during the fetch
148
154
  * @description This method requires user authorization (or a guest context).
149
155
  * @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}.
156
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/getCart getCart} documentation.
150
157
  */
151
158
  getCart(): Promise<ICartResponse | IError>;
152
159
  /**
@@ -157,6 +164,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
157
164
  * @throws {IError} When isShell=false and an error occurs during the fetch
158
165
  * @description This method requires user authorization (or a guest context).
159
166
  * @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}.
167
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/setCart setCart} documentation.
160
168
  */
161
169
  setCart(body: ICartSet): Promise<ICartResponse | IError>;
162
170
  /**
@@ -167,6 +175,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
167
175
  * @throws {IError} When isShell=false and an error occurs during the fetch
168
176
  * @description This method requires user authorization (or a guest context).
169
177
  * @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}.
178
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/addCartItem addCartItem} documentation.
170
179
  */
171
180
  addCartItem(body: ICartAddItem): Promise<ICartResponse | IError>;
172
181
  /**
@@ -177,6 +186,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
177
186
  * @throws {IError} When isShell=false and an error occurs during the fetch
178
187
  * @description This method requires user authorization (or a guest context).
179
188
  * @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}.
189
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/removeCartItem removeCartItem} documentation.
180
190
  */
181
191
  removeCartItem(productId: number): Promise<ICartResponse | IError>;
182
192
  /**
@@ -186,6 +196,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
186
196
  * @throws {IError} When isShell=false and an error occurs during the fetch
187
197
  * @description This method requires user authorization (or a guest context).
188
198
  * @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}.
199
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/getWishlist getWishlist} documentation.
189
200
  */
190
201
  getWishlist(): Promise<IWishlistResponse | IError>;
191
202
  /**
@@ -196,6 +207,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
196
207
  * @throws {IError} When isShell=false and an error occurs during the fetch
197
208
  * @description This method requires user authorization (or a guest context).
198
209
  * @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}.
210
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/setWishlist setWishlist} documentation.
199
211
  */
200
212
  setWishlist(body: IWishlistSet): Promise<IWishlistResponse | IError>;
201
213
  /**
@@ -206,6 +218,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
206
218
  * @throws {IError} When isShell=false and an error occurs during the fetch
207
219
  * @description This method requires user authorization (or a guest context).
208
220
  * @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}.
221
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/addWishlistItem addWishlistItem} documentation.
209
222
  */
210
223
  addWishlistItem(body: IWishlistAddItem): Promise<IWishlistResponse | IError>;
211
224
  /**
@@ -216,6 +229,7 @@ export default class UsersApi extends AsyncModules implements IUsersApi {
216
229
  * @throws {IError} When isShell=false and an error occurs during the fetch
217
230
  * @description This method requires user authorization (or a guest context).
218
231
  * @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}.
232
+ * @see {@link https://js-sdk.oneentry.cloud/docs/users/removeWishlistItem removeWishlistItem} documentation.
219
233
  */
220
234
  removeWishlistItem(productId: number): Promise<IWishlistResponse | IError>;
221
235
  }