oneentry 1.0.126 → 1.0.128

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 (83) hide show
  1. package/README.md +0 -2
  2. package/configure.js +25 -18
  3. package/dist/admins/adminsApi.d.ts +18 -13
  4. package/dist/admins/adminsApi.js +18 -13
  5. package/dist/admins/adminsInterfaces.d.ts +16 -25
  6. package/dist/attribute-sets/attributeSetsApi.d.ts +14 -15
  7. package/dist/attribute-sets/attributeSetsApi.js +14 -15
  8. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +78 -84
  9. package/dist/auth-provider/authProviderApi.d.ts +53 -79
  10. package/dist/auth-provider/authProviderApi.js +52 -78
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +98 -94
  12. package/dist/base/asyncModules.d.ts +23 -21
  13. package/dist/base/asyncModules.js +39 -29
  14. package/dist/base/result.d.ts +31 -0
  15. package/dist/base/result.js +32 -5
  16. package/dist/base/stateModule.d.ts +10 -0
  17. package/dist/base/stateModule.js +50 -2
  18. package/dist/base/syncModules.d.ts +42 -50
  19. package/dist/base/syncModules.js +106 -58
  20. package/dist/base/utils.d.ts +33 -2
  21. package/dist/blocks/blocksApi.d.ts +9 -18
  22. package/dist/blocks/blocksApi.js +9 -18
  23. package/dist/blocks/blocksInterfaces.d.ts +41 -46
  24. package/dist/config.d.ts +13 -0
  25. package/dist/config.js +30 -0
  26. package/dist/events/eventsApi.d.ts +10 -27
  27. package/dist/events/eventsApi.js +26 -40
  28. package/dist/events/eventsInterfaces.d.ts +33 -28
  29. package/dist/file-uploading/fileUploadingApi.d.ts +12 -17
  30. package/dist/file-uploading/fileUploadingApi.js +14 -17
  31. package/dist/file-uploading/fileUploadingInterfaces.d.ts +8 -19
  32. package/dist/forms/formsApi.d.ts +10 -9
  33. package/dist/forms/formsApi.js +10 -9
  34. package/dist/forms/formsInterfaces.d.ts +20 -12
  35. package/dist/forms-data/formsDataApi.d.ts +24 -28
  36. package/dist/forms-data/formsDataApi.js +25 -28
  37. package/dist/forms-data/formsDataInterfaces.d.ts +71 -71
  38. package/dist/general-types/generalTypesApi.d.ts +5 -5
  39. package/dist/general-types/generalTypesApi.js +5 -5
  40. package/dist/general-types/generalTypesInterfaces.d.ts +5 -8
  41. package/dist/index.d.ts +3 -4
  42. package/dist/index.js +3 -4
  43. package/dist/integration-collections/integrationCollectionsApi.d.ts +29 -47
  44. package/dist/integration-collections/integrationCollectionsApi.js +31 -51
  45. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +62 -58
  46. package/dist/locales/localesApi.d.ts +7 -3
  47. package/dist/locales/localesApi.js +7 -3
  48. package/dist/locales/localesInterfaces.d.ts +6 -5
  49. package/dist/menus/menusApi.d.ts +7 -3
  50. package/dist/menus/menusApi.js +7 -3
  51. package/dist/menus/menusInterfaces.d.ts +5 -10
  52. package/dist/menus/menusInterfaces.js +1 -0
  53. package/dist/orders/ordersApi.d.ts +17 -25
  54. package/dist/orders/ordersApi.js +17 -26
  55. package/dist/orders/ordersInterfaces.d.ts +94 -53
  56. package/dist/pages/pagesApi.d.ts +47 -60
  57. package/dist/pages/pagesApi.js +51 -61
  58. package/dist/pages/pagesInterfaces.d.ts +44 -48
  59. package/dist/payments/paymentsApi.d.ts +17 -27
  60. package/dist/payments/paymentsApi.js +17 -31
  61. package/dist/payments/paymentsInterfaces.d.ts +35 -29
  62. package/dist/product-statuses/productStatusesApi.d.ts +9 -9
  63. package/dist/product-statuses/productStatusesApi.js +9 -9
  64. package/dist/product-statuses/productStatusesInterfaces.d.ts +14 -12
  65. package/dist/products/productsApi.d.ts +23 -44
  66. package/dist/products/productsApi.js +24 -44
  67. package/dist/products/productsInterfaces.d.ts +51 -57
  68. package/dist/system/systemApi.d.ts +11 -13
  69. package/dist/system/systemApi.js +12 -13
  70. package/dist/system/systemInterfaces.d.ts +14 -3
  71. package/dist/templates/templatesApi.d.ts +8 -11
  72. package/dist/templates/templatesApi.js +8 -11
  73. package/dist/templates/templatesInterfaces.d.ts +13 -12
  74. package/dist/templates-preview/templatesPreviewApi.d.ts +7 -8
  75. package/dist/templates-preview/templatesPreviewApi.js +7 -8
  76. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +15 -18
  77. package/dist/users/usersApi.d.ts +13 -20
  78. package/dist/users/usersApi.js +13 -20
  79. package/dist/users/usersInterfaces.d.ts +26 -30
  80. package/dist/web-socket/wsApi.d.ts +5 -3
  81. package/dist/web-socket/wsApi.js +6 -3
  82. package/dist/web-socket/wsInterfaces.d.ts +7 -2
  83. package/package.json +16 -12
package/README.md CHANGED
@@ -192,7 +192,6 @@ Now you can use the following links to jump to specific entries documentation:
192
192
  - [Forms](https://js-sdk.oneentry.cloud/docs/category/forms-1)
193
193
  - [FormData](https://js-sdk.oneentry.cloud/docs/category/formdata)
194
194
  - [GeneralTypes](https://js-sdk.oneentry.cloud/docs/category/generaltypes)
195
- - [ImmutableSettings](https://js-sdk.oneentry.cloud/docs/category/immutablesettings)
196
195
  - [IntegrationCollections](https://js-sdk.oneentry.cloud/docs/category/integrationcollections)
197
196
  - [Locales](https://js-sdk.oneentry.cloud/docs/category/locales)
198
197
  - [Menus](https://js-sdk.oneentry.cloud/docs/category/menus)
@@ -201,7 +200,6 @@ Now you can use the following links to jump to specific entries documentation:
201
200
  - [Payments](https://js-sdk.oneentry.cloud/docs/category/payments)
202
201
  - [ProductStatuses](https://js-sdk.oneentry.cloud/docs/category/productstatuses)
203
202
  - [Products](https://js-sdk.oneentry.cloud/docs/category/products-1)
204
- - [Settings](https://js-sdk.oneentry.cloud/docs/category/settings)
205
203
  - [System](https://js-sdk.oneentry.cloud/docs/category/system)
206
204
  - [Templates](https://js-sdk.oneentry.cloud/docs/category/templates)
207
205
  - [TemplatePreviews](https://js-sdk.oneentry.cloud/docs/category/templatepreviews)
package/configure.js CHANGED
@@ -1,26 +1,32 @@
1
- #!/usr/bin/env node
1
+ /* eslint-disable no-undef */
2
+ /* eslint-disable @typescript-eslint/no-require-imports */
2
3
 
3
4
  const fs = require('fs');
4
- const path = require('path');
5
+ // const path = require('path');
5
6
 
6
7
  const readline = require('readline');
7
8
 
8
9
  const rl = readline.createInterface({
9
10
  input: process.stdin,
10
- output: process.stdout
11
+ output: process.stdout,
11
12
  });
12
13
 
13
- rl.question('Enter project name witht https://... : ', (name) => {
14
+ rl.question('Enter project name with https://... : ', (name) => {
14
15
  rl.question('Enter token: ', (token) => {
15
- rl.close()
16
- createInterface(name, token)
17
- })
18
- })
19
-
16
+ rl.close();
17
+ createInterface(name, token);
18
+ });
19
+ });
20
20
 
21
+ /**
22
+ * Create interface
23
+ * @param {*} name name
24
+ * @param {*} token token
25
+ */
21
26
  function createInterface(name, token) {
22
- const filePath = 'example.ts'
23
- fs.writeFile(filePath,
27
+ const filePath = 'example.ts';
28
+ fs.writeFile(
29
+ filePath,
24
30
  `
25
31
  type BuildInterface<T extends string[]> = {
26
32
  [K in T[number]]: string | undefined;
@@ -30,11 +36,12 @@ function createInterface(name, token) {
30
36
  IAttributesList
31
37
  }
32
38
  `,
33
- (err) => {
34
- if (err) {
35
- console.error(err);
36
- return;
37
- }
38
- console.log(`Successfully created ${filePath}`);
39
- })
39
+ (err) => {
40
+ if (err) {
41
+ console.error(err);
42
+ return;
43
+ }
44
+ console.log(`Successfully created ${filePath}`);
45
+ },
46
+ );
40
47
  }
@@ -4,21 +4,26 @@ import type { AttributeType, IError } from '../base/utils';
4
4
  import type { IAdminEntity, IAdmins } from './adminsInterfaces';
5
5
  /**
6
6
  * Controllers for working with users - admins.
7
- *
8
- * @module AdminsApi
9
- *
7
+ * @class AdminsApi
8
+ * @augments AsyncModules
9
+ * @implements {IAdmins}
10
10
  * @description This module provides methods for working with users - admins, including retrieving information about all admins.
11
11
  */
12
12
  export default class AdminsApi extends AsyncModules implements IAdmins {
13
13
  protected state: StateModule;
14
14
  protected _url: string;
15
+ /**
16
+ * Initializes the AdminsApi with the provided state module.
17
+ * @class
18
+ * @class AdminsApi
19
+ * @param {StateModule} state - The state module containing configuration data.
20
+ * @description Constructor initializes the AdminsApi with a given state.
21
+ */
15
22
  constructor(state: StateModule);
16
23
  /**
17
24
  * Get all admins objects with filters.
18
- *
19
25
  * @handleName getAdminsInfo
20
- *
21
- * @param {AttributeType[]} [body] - Array of filter objects with search conditions. Default: []. Example:
26
+ * @param {AttributeType[]} body - Array of filter objects with search conditions. Default: []. Example:
22
27
  [
23
28
  {
24
29
  "attributeMarker": "num",
@@ -31,13 +36,13 @@ export default class AdminsApi extends AsyncModules implements IAdmins {
31
36
  "conditionValue": 3
32
37
  }
33
38
  ]
34
- * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
35
- * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
36
- * @param {string} [body.conditionValue] - Value of the condition. Example: 1.
37
- * @param {string} [langCode] - Language code. Default: "en_US".
38
- * @param {number} [offset] - Parameter for pagination. Default: 0.
39
- * @param {number} [limit] - Parameter for pagination. Default: 30.
40
- * @return {IAdminEntity[]} Returns an array of admin objects.
39
+ * @param {string} body.attributeMarker - Text identifier (marker) of the attribute in the set. Example: "num".
40
+ * @param {string} body.conditionMarker - Text identifier (marker) of the condition in the set. Example: "mth".
41
+ * @param {string} body.conditionValue - Value of the condition. Example: 1.
42
+ * @param {string} langCode - Language code. Default: "en_US".
43
+ * @param {number} offset - Parameter for pagination. Default: 0.
44
+ * @param {number} limit - Parameter for pagination. Default: 30.
45
+ * @returns {IAdminEntity[]} Returns an array of admin objects.
41
46
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
42
47
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
43
48
  */
@@ -6,22 +6,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const asyncModules_1 = __importDefault(require("../base/asyncModules"));
7
7
  /**
8
8
  * Controllers for working with users - admins.
9
- *
10
- * @module AdminsApi
11
- *
9
+ * @class AdminsApi
10
+ * @augments AsyncModules
11
+ * @implements {IAdmins}
12
12
  * @description This module provides methods for working with users - admins, including retrieving information about all admins.
13
13
  */
14
14
  class AdminsApi extends asyncModules_1.default {
15
+ /**
16
+ * Initializes the AdminsApi with the provided state module.
17
+ * @class
18
+ * @class AdminsApi
19
+ * @param {StateModule} state - The state module containing configuration data.
20
+ * @description Constructor initializes the AdminsApi with a given state.
21
+ */
15
22
  constructor(state) {
16
23
  super(state);
17
24
  this._url = state.url + '/api/content/admins/all';
18
25
  }
19
26
  /**
20
27
  * Get all admins objects with filters.
21
- *
22
28
  * @handleName getAdminsInfo
23
- *
24
- * @param {AttributeType[]} [body] - Array of filter objects with search conditions. Default: []. Example:
29
+ * @param {AttributeType[]} body - Array of filter objects with search conditions. Default: []. Example:
25
30
  [
26
31
  {
27
32
  "attributeMarker": "num",
@@ -34,13 +39,13 @@ class AdminsApi extends asyncModules_1.default {
34
39
  "conditionValue": 3
35
40
  }
36
41
  ]
37
- * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
38
- * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
39
- * @param {string} [body.conditionValue] - Value of the condition. Example: 1.
40
- * @param {string} [langCode] - Language code. Default: "en_US".
41
- * @param {number} [offset] - Parameter for pagination. Default: 0.
42
- * @param {number} [limit] - Parameter for pagination. Default: 30.
43
- * @return {IAdminEntity[]} Returns an array of admin objects.
42
+ * @param {string} body.attributeMarker - Text identifier (marker) of the attribute in the set. Example: "num".
43
+ * @param {string} body.conditionMarker - Text identifier (marker) of the condition in the set. Example: "mth".
44
+ * @param {string} body.conditionValue - Value of the condition. Example: 1.
45
+ * @param {string} langCode - Language code. Default: "en_US".
46
+ * @param {number} offset - Parameter for pagination. Default: 0.
47
+ * @param {number} limit - Parameter for pagination. Default: 30.
48
+ * @returns {IAdminEntity[]} Returns an array of admin objects.
44
49
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
45
50
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
46
51
  */
@@ -1,36 +1,33 @@
1
1
  import type { AttributeType, IAttributeValues, IError } from '../base/utils';
2
2
  /**
3
3
  * @interface IAdmins
4
- *
5
- * @property {function} getAdminsInfo - Method to retrieve all admin user objects.
4
+ * @property {Function} getAdminsInfo - Method to retrieve all admin user objects.
6
5
  * @description This interface defines the contract for any class that implements it
7
6
  */
8
7
  interface IAdmins {
9
8
  /**
10
9
  * Get all admins objects with filters.
11
- *
12
10
  * @handleName getAdminsInfo
13
- *
14
11
  * @param {AttributeType[]} [body] - Array of filter objects with search conditions. Default: []. Example:
15
- [
16
- {
17
- "attributeMarker": "num",
18
- "conditionMarker": "mth",
19
- "conditionValue": 1
20
- },
21
- {
22
- "attributeMarker": "num",
23
- "conditionMarker": "lth",
24
- "conditionValue": 3
25
- }
26
- ]
12
+ [
13
+ {
14
+ "attributeMarker": "num",
15
+ "conditionMarker": "mth",
16
+ "conditionValue": 1
17
+ },
18
+ {
19
+ "attributeMarker": "num",
20
+ "conditionMarker": "lth",
21
+ "conditionValue": 3
22
+ }
23
+ ]
27
24
  * @param {string} [body.attributeMarker] - Text identifier (marker) of the attribute in the set. Example: "num".
28
25
  * @param {string} [body.conditionMarker] - Text identifier (marker) of the condition in the set. Example: "mth".
29
26
  * @param {string} [body.conditionValue] - Value of the condition. Example: 1.
30
27
  * @param {string} [langCode] - Language code. Default: "en_US".
31
28
  * @param {number} [offset] - Parameter for pagination. Default: 0.
32
29
  * @param {number} [limit] - Parameter for pagination. Default: 30.
33
- * @return {IAdminEntity[]} Returns an array of admin objects.
30
+ * @returns {IAdminEntity[]} Returns an array of admin objects.
34
31
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
35
32
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
36
33
  */
@@ -38,9 +35,7 @@ interface IAdmins {
38
35
  }
39
36
  /**
40
37
  * Interface representing a Position entity.
41
- *
42
38
  * @interface IPosition
43
- *
44
39
  * @property {number} id - The unique identifier of the position. Example: 1764.
45
40
  * @property {boolean} [isLocked] - Indicates whether the position is locked or not. Example: false.
46
41
  * @property {number} objectId - The unique identifier of the object. Example: 120.
@@ -59,10 +54,8 @@ interface IPosition {
59
54
  }
60
55
  /**
61
56
  * Interface representing an Admin Entity.
62
- *
63
57
  * @interface IAdminEntity
64
- *
65
- * @property {number} id - The identifier of the object. Example: 1764.
58
+ * @property {number | null} id - The identifier of the object. Example: 1764.
66
59
  * @property {number | null} attributeSetId - The identifier of the attribute set being used. Example: 120.
67
60
  * @property {string} identifier - The textual identifier for the record field. Example: "admin1".
68
61
  * @property {string | null} attributeSetIdentifier - The identifier of the attribute set. Example: "admins".
@@ -91,10 +84,8 @@ interface IAdminEntity {
91
84
  }
92
85
  /**
93
86
  * Interface representing a query for fetching admin data.
94
- *
95
87
  * @interface IAdminQuery
96
- *
97
- * @property {number} langCode - Language code. Default: "en_US".
88
+ * @property {string} langCode - Language code. Default: "en_US".
98
89
  * @property {number} limit - Parameter for pagination. Default: 30.
99
90
  * @property {number} offset - Parameter for pagination. Default: 0.
100
91
  * @description This interface defines the parameters required for querying admin data, including optional defaults.
@@ -4,63 +4,62 @@ import type { IError } from '../base/utils';
4
4
  import type { IAttributeSetsEntity, IAttributesSets, IAttributesSetsEntity, IAttributesSetsResponse } from './attributeSetsInterfaces';
5
5
  /**
6
6
  * Controllers for working with attributes - AttributesSetsApi.
7
- *
8
- * @module AttributesSetsApi
9
- *
7
+ * @class AttributesSetsApi
8
+ * @augments AsyncModules
9
+ * @implements {IAttributesSets}
10
10
  * @description This class provides methods to interact with attribute sets, including fetching attributes, getting attributes by marker, and retrieving single attributes by marker and set.
11
11
  */
12
12
  export default class AttributesSetsApi extends AsyncModules implements IAttributesSets {
13
13
  protected state: StateModule;
14
14
  protected _url: string;
15
+ /**
16
+ * Initializes the AttributesSetsApi with the provided state module.
17
+ * @class
18
+ * @class AttributesSetsApi
19
+ * @param {StateModule} state - The state module containing configuration data.
20
+ * @description Constructor initializes the AttributesSetsApi with a given state.
21
+ */
15
22
  constructor(state: StateModule);
16
23
  /**
17
24
  * Getting all attribute sets objects.
18
- *
19
25
  * @handleName getAttributes
20
- *
21
26
  * @param {string} [langCode] - Language code. Default: "en_US".
22
27
  * @param {number} [offset] - parameter offset of record selection. Default: 0.
23
28
  * @param {number} [limit] - parameter limiting the selection of records. Default: 30.
24
29
  * @param {number} [typeId] - identifier of the attribute set type. Default: null.
25
30
  * @param {string} [sortBy] - identifier of the attribute set type. Default: "id".
26
- * @return {IAttributesSetsResponse} Returns object with array of IAttributeSetsEntity and total items count.
31
+ * @returns {IAttributesSetsResponse} Returns object with array of IAttributeSetsEntity and total items count.
27
32
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
28
33
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
29
34
  */
30
35
  getAttributes(langCode?: string, offset?: number, limit?: number, typeId?: any, sortBy?: string): Promise<IAttributesSetsResponse | IError>;
31
36
  /**
32
37
  * Getting all attributes with data from the attribute set.
33
- *
34
38
  * @handleName getAttributesByMarker
35
- *
36
39
  * @param {string} marker - Attribute marker. Example: "productAttributes".
37
40
  * @param {string} [langCode] - Language code. Default: "en_US".
38
- * @return {IAttributeSetsEntity[]} Returns an array of Attributes objects.
41
+ * @returns {IAttributeSetsEntity[]} Returns an array of Attributes objects.
39
42
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
40
43
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
41
44
  */
42
45
  getAttributesByMarker(marker: string, langCode?: string): Promise<IAttributeSetsEntity[] | IError>;
43
46
  /**
44
47
  * Get a single attribute with data from the attribute sets.
45
- *
46
48
  * @handleName getSingleAttributeByMarkerSet
47
- *
48
49
  * @param {string} setMarker - Text identifier (marker) of the attribute set. Example: "productAttributes".
49
50
  * @param {string} attributeMarker - Text identifier (marker) of the attribute in the set. Example: "color".
50
51
  * @param {string} [langCode] - Language code. Default: "en_US".
51
- * @return {IAttributesSetsEntity} Returns a single attribute object from the attribute set.
52
+ * @returns {IAttributesSetsEntity} Returns a single attribute object from the attribute set.
52
53
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
53
54
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
54
55
  */
55
56
  getSingleAttributeByMarkerSet(setMarker: string, attributeMarker: string, langCode?: string): Promise<IAttributesSetsEntity | IError>;
56
57
  /**
57
58
  * Getting a single object from a set of attributes by marker.
58
- *
59
59
  * @handleName getAttributeSetByMarker
60
- *
61
60
  * @param {string} marker - marker of the attribute set object. Example: "productAttributes".
62
61
  * @param {string} [langCode] - Language code. Default: "en_US".
63
- * @return {IAttributeSetsEntity} Returns one object of the attribute set.
62
+ * @returns {IAttributeSetsEntity} Returns one object of the attribute set.
64
63
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
65
64
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
66
65
  */
@@ -6,27 +6,32 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const asyncModules_1 = __importDefault(require("../base/asyncModules"));
7
7
  /**
8
8
  * Controllers for working with attributes - AttributesSetsApi.
9
- *
10
- * @module AttributesSetsApi
11
- *
9
+ * @class AttributesSetsApi
10
+ * @augments AsyncModules
11
+ * @implements {IAttributesSets}
12
12
  * @description This class provides methods to interact with attribute sets, including fetching attributes, getting attributes by marker, and retrieving single attributes by marker and set.
13
13
  */
14
14
  class AttributesSetsApi extends asyncModules_1.default {
15
+ /**
16
+ * Initializes the AttributesSetsApi with the provided state module.
17
+ * @class
18
+ * @class AttributesSetsApi
19
+ * @param {StateModule} state - The state module containing configuration data.
20
+ * @description Constructor initializes the AttributesSetsApi with a given state.
21
+ */
15
22
  constructor(state) {
16
23
  super(state);
17
24
  this._url = state.url + '/api/content/attributes-sets';
18
25
  }
19
26
  /**
20
27
  * Getting all attribute sets objects.
21
- *
22
28
  * @handleName getAttributes
23
- *
24
29
  * @param {string} [langCode] - Language code. Default: "en_US".
25
30
  * @param {number} [offset] - parameter offset of record selection. Default: 0.
26
31
  * @param {number} [limit] - parameter limiting the selection of records. Default: 30.
27
32
  * @param {number} [typeId] - identifier of the attribute set type. Default: null.
28
33
  * @param {string} [sortBy] - identifier of the attribute set type. Default: "id".
29
- * @return {IAttributesSetsResponse} Returns object with array of IAttributeSetsEntity and total items count.
34
+ * @returns {IAttributesSetsResponse} Returns object with array of IAttributeSetsEntity and total items count.
30
35
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
31
36
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
32
37
  */
@@ -46,12 +51,10 @@ class AttributesSetsApi extends asyncModules_1.default {
46
51
  }
47
52
  /**
48
53
  * Getting all attributes with data from the attribute set.
49
- *
50
54
  * @handleName getAttributesByMarker
51
- *
52
55
  * @param {string} marker - Attribute marker. Example: "productAttributes".
53
56
  * @param {string} [langCode] - Language code. Default: "en_US".
54
- * @return {IAttributeSetsEntity[]} Returns an array of Attributes objects.
57
+ * @returns {IAttributeSetsEntity[]} Returns an array of Attributes objects.
55
58
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
56
59
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
57
60
  */
@@ -61,13 +64,11 @@ class AttributesSetsApi extends asyncModules_1.default {
61
64
  }
62
65
  /**
63
66
  * Get a single attribute with data from the attribute sets.
64
- *
65
67
  * @handleName getSingleAttributeByMarkerSet
66
- *
67
68
  * @param {string} setMarker - Text identifier (marker) of the attribute set. Example: "productAttributes".
68
69
  * @param {string} attributeMarker - Text identifier (marker) of the attribute in the set. Example: "color".
69
70
  * @param {string} [langCode] - Language code. Default: "en_US".
70
- * @return {IAttributesSetsEntity} Returns a single attribute object from the attribute set.
71
+ * @returns {IAttributesSetsEntity} Returns a single attribute object from the attribute set.
71
72
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
72
73
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
73
74
  */
@@ -77,12 +78,10 @@ class AttributesSetsApi extends asyncModules_1.default {
77
78
  }
78
79
  /**
79
80
  * Getting a single object from a set of attributes by marker.
80
- *
81
81
  * @handleName getAttributeSetByMarker
82
- *
83
82
  * @param {string} marker - marker of the attribute set object. Example: "productAttributes".
84
83
  * @param {string} [langCode] - Language code. Default: "en_US".
85
- * @return {IAttributeSetsEntity} Returns one object of the attribute set.
84
+ * @returns {IAttributeSetsEntity} Returns one object of the attribute set.
86
85
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
87
86
  * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
88
87
  */