oneentry 1.0.127 → 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 (72) hide show
  1. package/dist/admins/adminsApi.d.ts +20 -20
  2. package/dist/admins/adminsApi.js +20 -20
  3. package/dist/admins/adminsInterfaces.d.ts +43 -43
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
  5. package/dist/attribute-sets/attributeSetsApi.js +16 -16
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
  7. package/dist/auth-provider/authProviderApi.d.ts +126 -126
  8. package/dist/auth-provider/authProviderApi.js +126 -126
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
  10. package/dist/base/asyncModules.d.ts +17 -17
  11. package/dist/base/asyncModules.js +26 -21
  12. package/dist/base/result.d.ts +5 -5
  13. package/dist/base/result.js +5 -9
  14. package/dist/base/stateModule.d.ts +1 -1
  15. package/dist/base/stateModule.js +1 -1
  16. package/dist/base/syncModules.d.ts +35 -35
  17. package/dist/base/syncModules.js +92 -45
  18. package/dist/base/utils.d.ts +13 -13
  19. package/dist/blocks/blocksApi.d.ts +24 -24
  20. package/dist/blocks/blocksApi.js +24 -24
  21. package/dist/blocks/blocksInterfaces.d.ts +85 -85
  22. package/dist/events/eventsApi.d.ts +11 -11
  23. package/dist/events/eventsApi.js +11 -11
  24. package/dist/events/eventsInterfaces.d.ts +23 -23
  25. package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
  26. package/dist/file-uploading/fileUploadingApi.js +38 -38
  27. package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
  28. package/dist/forms/formsApi.d.ts +7 -7
  29. package/dist/forms/formsApi.js +7 -7
  30. package/dist/forms/formsInterfaces.d.ts +43 -31
  31. package/dist/forms-data/formsDataApi.d.ts +37 -37
  32. package/dist/forms-data/formsDataApi.js +37 -38
  33. package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
  34. package/dist/general-types/generalTypesApi.d.ts +1 -1
  35. package/dist/general-types/generalTypesApi.js +1 -1
  36. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  37. package/dist/index.d.ts +10 -10
  38. package/dist/index.js +10 -10
  39. package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
  40. package/dist/integration-collections/integrationCollectionsApi.js +76 -80
  41. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
  42. package/dist/locales/localesInterfaces.d.ts +8 -8
  43. package/dist/menus/menusApi.d.ts +3 -3
  44. package/dist/menus/menusApi.js +3 -3
  45. package/dist/menus/menusInterfaces.d.ts +39 -39
  46. package/dist/orders/ordersApi.d.ts +56 -56
  47. package/dist/orders/ordersApi.js +56 -56
  48. package/dist/orders/ordersInterfaces.d.ts +204 -198
  49. package/dist/pages/pagesApi.d.ts +60 -60
  50. package/dist/pages/pagesApi.js +60 -60
  51. package/dist/pages/pagesInterfaces.d.ts +133 -141
  52. package/dist/payments/paymentsApi.d.ts +15 -15
  53. package/dist/payments/paymentsApi.js +15 -15
  54. package/dist/payments/paymentsInterfaces.d.ts +55 -55
  55. package/dist/product-statuses/productStatusesApi.d.ts +7 -7
  56. package/dist/product-statuses/productStatusesApi.js +7 -7
  57. package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
  58. package/dist/products/productsApi.d.ts +240 -240
  59. package/dist/products/productsApi.js +240 -240
  60. package/dist/products/productsInterfaces.d.ts +311 -311
  61. package/dist/system/systemApi.d.ts +10 -10
  62. package/dist/system/systemApi.js +10 -10
  63. package/dist/templates/templatesApi.d.ts +8 -8
  64. package/dist/templates/templatesApi.js +8 -8
  65. package/dist/templates/templatesInterfaces.d.ts +22 -22
  66. package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
  67. package/dist/templates-preview/templatesPreviewApi.js +5 -5
  68. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
  69. package/dist/users/usersApi.d.ts +29 -29
  70. package/dist/users/usersApi.js +29 -29
  71. package/dist/users/usersInterfaces.d.ts +77 -77
  72. package/package.json +1 -1
@@ -35,16 +35,16 @@ export default class SystemApi extends AsyncModules implements ISystem {
35
35
  /**
36
36
  * Validates a CAPTCHA token by sending it to the server for verification.
37
37
  * @handleName validateCapcha
38
- * @param {object} event - The event object containing CAPTCHA data. Example:
39
- {
40
- "token": "03AGdBq24...",
41
- "expectedAction": "login",
42
- "siteKey": "6Lc_aCMTAAAAAB..."
43
- }
44
- * @param {string} event.token - The CAPTCHA token to be validated. Example: "03AGdBq24...".
45
- * @param {string} event.expectedAction - The expected action associated with the CAPTCHA. Example: "login".
46
- * @param {string} event.siteKey - The site key used for the CAPTCHA. Example: "6Lc_aCMTAAAAAB...".
47
- * @returns {any} The response from the server after validating the CAPTCHA, or an error object if validation fails.
38
+ * @param {object} event - The event object containing CAPTCHA data. Example:
39
+ {
40
+ "token": "03AGdBq24...",
41
+ "expectedAction": "login",
42
+ "siteKey": "6Lc_aCMTAAAAAB..."
43
+ }
44
+ * @param {string} event.token - The CAPTCHA token to be validated. Example: "03AGdBq24...".
45
+ * @param {string} event.expectedAction - The expected action associated with the CAPTCHA. Example: "login".
46
+ * @param {string} event.siteKey - The site key used for the CAPTCHA. Example: "6Lc_aCMTAAAAAB...".
47
+ * @returns {any} The response from the server after validating the CAPTCHA, or an error object if validation fails.
48
48
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
49
49
  * @description This method sends the CAPTCHA token and related information to the server endpoint '/captcha/validate' to verify its validity.
50
50
  */
@@ -46,16 +46,16 @@ class SystemApi extends asyncModules_1.default {
46
46
  /**
47
47
  * Validates a CAPTCHA token by sending it to the server for verification.
48
48
  * @handleName validateCapcha
49
- * @param {object} event - The event object containing CAPTCHA data. Example:
50
- {
51
- "token": "03AGdBq24...",
52
- "expectedAction": "login",
53
- "siteKey": "6Lc_aCMTAAAAAB..."
54
- }
55
- * @param {string} event.token - The CAPTCHA token to be validated. Example: "03AGdBq24...".
56
- * @param {string} event.expectedAction - The expected action associated with the CAPTCHA. Example: "login".
57
- * @param {string} event.siteKey - The site key used for the CAPTCHA. Example: "6Lc_aCMTAAAAAB...".
58
- * @returns {any} The response from the server after validating the CAPTCHA, or an error object if validation fails.
49
+ * @param {object} event - The event object containing CAPTCHA data. Example:
50
+ {
51
+ "token": "03AGdBq24...",
52
+ "expectedAction": "login",
53
+ "siteKey": "6Lc_aCMTAAAAAB..."
54
+ }
55
+ * @param {string} event.token - The CAPTCHA token to be validated. Example: "03AGdBq24...".
56
+ * @param {string} event.expectedAction - The expected action associated with the CAPTCHA. Example: "login".
57
+ * @param {string} event.siteKey - The site key used for the CAPTCHA. Example: "6Lc_aCMTAAAAAB...".
58
+ * @returns {any} The response from the server after validating the CAPTCHA, or an error object if validation fails.
59
59
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
60
60
  * @description This method sends the CAPTCHA token and related information to the server endpoint '/captcha/validate' to verify its validity.
61
61
  */
@@ -20,8 +20,8 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
20
20
  /**
21
21
  * Get all template objects grouped by types.
22
22
  * @handleName getAllTemplates
23
- * @param {string} [langCode] - Language code. Default: "en_US".
24
- * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
23
+ * @param {string} [langCode] - Language code. Default: "en_US".
24
+ * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
25
25
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
26
26
  * @description This function is designed to fetch organized template objects in groups based on their types.
27
27
  */
@@ -29,9 +29,9 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
29
29
  /**
30
30
  * Get template objects by type.
31
31
  * @handleName getTemplateByType
32
- * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
33
- * @param {string} [langCode] - Language code. Default: "en_US".
34
- * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
32
+ * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
33
+ * @param {string} [langCode] - Language code. Default: "en_US".
34
+ * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
35
35
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
36
36
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
37
37
  */
@@ -39,9 +39,9 @@ export default class TemplatesPreviewApi extends AsyncModules implements ITempla
39
39
  /**
40
40
  * Get one template object by marker.
41
41
  * @handleName getTemplateByMarker
42
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
43
- * @param {string} [langCode] - Language code. Default: "en_US".
44
- * @returns {ITemplateEntity} Returns a TemplateEntity object
42
+ * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
43
+ * @param {string} [langCode] - Language code. Default: "en_US".
44
+ * @returns {ITemplateEntity} Returns a TemplateEntity object
45
45
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
46
46
  * @description Fetch a specific template object based on its unique marker.
47
47
  */
@@ -24,8 +24,8 @@ class TemplatesPreviewApi extends asyncModules_1.default {
24
24
  /**
25
25
  * Get all template objects grouped by types.
26
26
  * @handleName getAllTemplates
27
- * @param {string} [langCode] - Language code. Default: "en_US".
28
- * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
27
+ * @param {string} [langCode] - Language code. Default: "en_US".
28
+ * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
29
29
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
30
30
  * @description This function is designed to fetch organized template objects in groups based on their types.
31
31
  */
@@ -41,9 +41,9 @@ class TemplatesPreviewApi extends asyncModules_1.default {
41
41
  /**
42
42
  * Get template objects by type.
43
43
  * @handleName getTemplateByType
44
- * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
45
- * @param {string} [langCode] - Language code. Default: "en_US".
46
- * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
44
+ * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
45
+ * @param {string} [langCode] - Language code. Default: "en_US".
46
+ * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
47
47
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
48
48
  * @description Fetch template objects that belong to a specific type, with an optional filter by language.
49
49
  */
@@ -54,9 +54,9 @@ class TemplatesPreviewApi extends asyncModules_1.default {
54
54
  /**
55
55
  * Get one template object by marker.
56
56
  * @handleName getTemplateByMarker
57
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
58
- * @param {string} [langCode] - Language code. Default: "en_US".
59
- * @returns {ITemplateEntity} Returns a TemplateEntity object
57
+ * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
58
+ * @param {string} [langCode] - Language code. Default: "en_US".
59
+ * @returns {ITemplateEntity} Returns a TemplateEntity object
60
60
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
61
61
  * @description Fetch a specific template object based on its unique marker.
62
62
  */
@@ -1,8 +1,8 @@
1
1
  import type { AttributeType, IError, Types } from '../base/utils';
2
2
  /**
3
3
  * @interface ITemplatesApi
4
- * @property {Function} getAllTemplates - Get all template objects grouped by types.
5
- * @property {Function} getTemplateByType - Get template objects by type.
4
+ * @property {Function} getAllTemplates - Get all template objects grouped by types.
5
+ * @property {Function} getTemplateByType - Get template objects by type.
6
6
  * @property {Function} getTemplateByMarker - Getting a single template object.
7
7
  * @description This interface defines methods for retrieving templates in the system, including fetching all templates, specific templates by type or ID, and by marker.
8
8
  */
@@ -10,8 +10,8 @@ interface ITemplatesApi {
10
10
  /**
11
11
  * Get all template objects grouped by types.
12
12
  * @handleName getAllTemplates
13
- * @param {string} [langCode] - Language code. Default: "en_US".
14
- * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
13
+ * @param {string} [langCode] - Language code. Default: "en_US".
14
+ * @returns {Record<Types, ITemplateEntity[]>} Returns an object GroupedTemplatesObject, which contains an array of template objects TemplateEntity
15
15
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
16
16
  * @description This method gets all template objects grouped by types.
17
17
  */
@@ -19,9 +19,9 @@ interface ITemplatesApi {
19
19
  /**
20
20
  * Get template objects by type.
21
21
  * @handleName getTemplateByType
22
- * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
23
- * @param {string} [langCode] - Language code. Default: "en_US".
24
- * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
22
+ * @param {Types} type - The type of templates to retrieve. This parameter specifies the category or classification of templates being requested. Example: "product".
23
+ * @param {string} [langCode] - Language code. Default: "en_US".
24
+ * @returns {ITemplateEntity[]} Returns a TemplateEntity object.
25
25
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
26
26
  * @description This method gets template objects by type.
27
27
  */
@@ -29,9 +29,9 @@ interface ITemplatesApi {
29
29
  /**
30
30
  * Get one template object by id.
31
31
  * @handleName getTemplateByMarker
32
- * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
33
- * @param {string} [langCode] - Language code. Default: "en_US".
34
- * @returns {ITemplateEntity} Returns a TemplateEntity object
32
+ * @param {string} marker - The unique marker of the template to retrieve. Example: "template_12345".
33
+ * @param {string} [langCode] - Language code. Default: "en_US".
34
+ * @returns {ITemplateEntity} Returns a TemplateEntity object
35
35
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
36
36
  * @description This method gets one template object by id.
37
37
  */
@@ -40,19 +40,19 @@ interface ITemplatesApi {
40
40
  /**
41
41
  * The template entity interface
42
42
  * @interface ITemplateEntity
43
- * @property {number} id - The unique identifier of the position. Example: 12345.
43
+ * @property {number} id - The unique identifier of the position. Example: 12345.
44
44
  * @property {string | null} attributeSetIdentifier - Set of attributes id. Example: "attribute_set_1".
45
- * @property {string} title - The name of the template. Example: "Product Template".
46
- * @property {number} generalTypeId - General type Entity id. Example: 67890.
47
- * @property {string} identifier - The textual identifier for the record field. Example: "template_12345".
48
- * @property {number} version - The version number of the object. Example: 1.
49
- * @property {Types} generalTypeName - General type name. Example: "product".
50
- * @property {AttributeType} attributeValues - Attribute values from the index (represented as a pair of user attribute id: attribute value). Example:
51
- * @property {number} position - The position of the object. Example: 1.
52
- {
53
- "id": 1,
54
- "value": "some"
55
- }
45
+ * @property {string} title - The name of the template. Example: "Product Template".
46
+ * @property {number} generalTypeId - General type Entity id. Example: 67890.
47
+ * @property {string} identifier - The textual identifier for the record field. Example: "template_12345".
48
+ * @property {number} version - The version number of the object. Example: 1.
49
+ * @property {Types} generalTypeName - General type name. Example: "product".
50
+ * @property {AttributeType} attributeValues - Attribute values from the index (represented as a pair of user attribute id: attribute value). Example:
51
+ * @property {number} position - The position of the object. Example: 1.
52
+ {
53
+ "id": 1,
54
+ "value": "some"
55
+ }
56
56
  * @description This interface defines the structure of a template entity, including its identifiers, attributes, and general type information.
57
57
  */
58
58
  interface ITemplateEntity {
@@ -19,8 +19,8 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
19
19
  /**
20
20
  * Get all template objects.
21
21
  * @handleName getTemplatePreviews
22
- * @param {string} [langCode] - Language code. Default: "en_US".
23
- * @returns {ITemplatesPreviewEntity[]} - Returns all TemplatePreviewsEntity template objects.
22
+ * @param {string} [langCode] - Language code. Default: "en_US".
23
+ * @returns {ITemplatesPreviewEntity[]} - Returns all TemplatePreviewsEntity template objects.
24
24
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
25
25
  * @description This method is used to fetch all available template objects.
26
26
  */
@@ -28,9 +28,9 @@ export default class TemplatePreviewsApi extends AsyncModules implements ITempla
28
28
  /**
29
29
  * Retrieves a template object by its marker.
30
30
  * @handleName getTemplatePreviewByMarker
31
- * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
32
- * @param {string} [langCode] - Language code. Default: "en_US".
33
- * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
31
+ * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
32
+ * @param {string} [langCode] - Language code. Default: "en_US".
33
+ * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
34
34
  * @throws {IError} - Throws an error object if there is an issue during the fetch operation.
35
35
  * @description This method is used to fetch a specific template object based on the provided marker.
36
36
  */
@@ -22,8 +22,8 @@ class TemplatePreviewsApi extends asyncModules_1.default {
22
22
  /**
23
23
  * Get all template objects.
24
24
  * @handleName getTemplatePreviews
25
- * @param {string} [langCode] - Language code. Default: "en_US".
26
- * @returns {ITemplatesPreviewEntity[]} - Returns all TemplatePreviewsEntity template objects.
25
+ * @param {string} [langCode] - Language code. Default: "en_US".
26
+ * @returns {ITemplatesPreviewEntity[]} - Returns all TemplatePreviewsEntity template objects.
27
27
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
28
28
  * @description This method is used to fetch all available template objects.
29
29
  */
@@ -34,9 +34,9 @@ class TemplatePreviewsApi extends asyncModules_1.default {
34
34
  /**
35
35
  * Retrieves a template object by its marker.
36
36
  * @handleName getTemplatePreviewByMarker
37
- * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
38
- * @param {string} [langCode] - Language code. Default: "en_US".
39
- * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
37
+ * @param {string} marker - The unique product marker used to identify the template. If not provided, a default behavior or error may occur. Example: "template_12345".
38
+ * @param {string} [langCode] - Language code. Default: "en_US".
39
+ * @returns {Promise<ITemplatesPreviewEntity | IError>} - A promise that resolves to a TemplatePreviewsEntity object representing the template.
40
40
  * @throws {IError} - Throws an error object if there is an issue during the fetch operation.
41
41
  * @description This method is used to fetch a specific template object based on the provided marker.
42
42
  */
@@ -1,24 +1,24 @@
1
1
  import type { AttributeType, IError } from '../base/utils';
2
2
  /**
3
3
  * @interface ITemplatesPreview
4
- * @property {Function} getTemplatePreviews - Get all template preview objects.
4
+ * @property {Function} getTemplatePreviews - Get all template preview objects.
5
5
  * @property {Function} getTemplatePreviewByMarker - Get one template preview object by marker.
6
6
  * @description This interface defines methods for retrieving template previews in the system, including fetching all previews, specific previews by marker.
7
7
  */
8
8
  interface ITemplatesPreview {
9
9
  /**
10
10
  * Retrieves all template preview objects.
11
- * @param {string} langCode - Language code for localization. Default: "en_US".
12
- * @returns {ITemplatesPreviewEntity[]} A promise resolving to an array of template preview entities or an error.
11
+ * @param {string} langCode - Language code for localization. Default: "en_US".
12
+ * @returns {ITemplatesPreviewEntity[]} A promise resolving to an array of template preview entities or an error.
13
13
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
14
14
  */
15
15
  getTemplatePreviews(langCode: string): Promise<ITemplatesPreviewEntity[] | IError>;
16
16
  /**
17
17
  * Retrieves a specific template preview object by its marker.
18
18
  * @handleName getTemplatePreviewByMarker
19
- * @param {string} marker - The marker of the template preview. Example: "template_12345".
20
- * @param {string} [langCode] - Language code for localization. Default: "en_US".
21
- * @returns {ITemplatesPreviewEntity | IError} A promise resolving to the template preview entity or an error.
19
+ * @param {string} marker - The marker of the template preview. Example: "template_12345".
20
+ * @param {string} [langCode] - Language code for localization. Default: "en_US".
21
+ * @returns {ITemplatesPreviewEntity | IError} A promise resolving to the template preview entity or an error.
22
22
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
23
23
  * @description This method retrieves a specific template preview object by its marker.
24
24
  */
@@ -27,49 +27,49 @@ interface ITemplatesPreview {
27
27
  /**
28
28
  * The `ITemplatesPreview` interface defines the structure of template preview entities.
29
29
  * @interface ITemplatesPreviewEntity
30
- * @property {number} id - The unique identifier of the position. Example: 3.
31
- * @property {string} title - The name of the template preview. Example: "Product Template"..
32
- * @property {object} proportions - Object contains info by proportions template preview. Example:
33
- {
34
- "default": {
35
- "horizontal": {
36
- "width": 234,
37
- "height": 324,
38
- "alignmentType": "middleBottom"
39
- },
40
- "vertical": {
41
- "width": 2,
42
- "height": 3,
43
- "alignmentType": "leftTop"
44
- },
45
- "square": {
46
- "side": 3,
47
- "alignmentType": "leftTop"
48
- }
49
- }
50
- }
51
- * @property {IProportion | null} proportions.horizontal - Horizontal proportion of the template preview. Example:
52
- {
53
- "width": 234,
54
- "height": 324,
55
- "alignmentType": "middleBottom"
56
- }
57
- * @property {IProportion | null} proportions.vertical - Vertical proportion of the template preview. Example:
58
- {
59
- "width": 2,
60
- "height": 3,
61
- "alignmentType": "leftTop"
62
- }
63
- * @property {ISquare} proportions.square - Square proportion of the template preview. Example:
64
- {
65
- "side": 3,
66
- "alignmentType": "leftTop"
67
- }
68
- * @property {string} identifier - The textual identifier for the record field. Example: "preview-templates"
69
- * @property {number} version - The version number of the object. Example: 1.
70
- * @property {AttributeType} attributeValues - Attribute values from index. Example: {}
71
- * @property {number} position - The position of the object. Example: 1.
72
- * @property {string | null} [attributeSetIdentifier] - Text identifier used for a set of attributes. Example: "attribute_set_1".
30
+ * @property {number} id - The unique identifier of the position. Example: 3.
31
+ * @property {string} title - The name of the template preview. Example: "Product Template"..
32
+ * @property {object} proportions - Object contains info by proportions template preview. Example:
33
+ {
34
+ "default": {
35
+ "horizontal": {
36
+ "width": 234,
37
+ "height": 324,
38
+ "alignmentType": "middleBottom"
39
+ },
40
+ "vertical": {
41
+ "width": 2,
42
+ "height": 3,
43
+ "alignmentType": "leftTop"
44
+ },
45
+ "square": {
46
+ "side": 3,
47
+ "alignmentType": "leftTop"
48
+ }
49
+ }
50
+ }
51
+ * @property {IProportion | null} proportions.horizontal - Horizontal proportion of the template preview. Example:
52
+ {
53
+ "width": 234,
54
+ "height": 324,
55
+ "alignmentType": "middleBottom"
56
+ }
57
+ * @property {IProportion | null} proportions.vertical - Vertical proportion of the template preview. Example:
58
+ {
59
+ "width": 2,
60
+ "height": 3,
61
+ "alignmentType": "leftTop"
62
+ }
63
+ * @property {ISquare} proportions.square - Square proportion of the template preview. Example:
64
+ {
65
+ "side": 3,
66
+ "alignmentType": "leftTop"
67
+ }
68
+ * @property {string} identifier - The textual identifier for the record field. Example: "preview-templates"
69
+ * @property {number} version - The version number of the object. Example: 1.
70
+ * @property {AttributeType} attributeValues - Attribute values from index. Example: {}
71
+ * @property {number} position - The position of the object. Example: 1.
72
+ * @property {string | null} [attributeSetIdentifier] - Text identifier used for a set of attributes. Example: "attribute_set_1".
73
73
  * @description This interface defines the structure of a template preview entity, including its identifiers, attributes, proportions, and title.
74
74
  */
75
75
  interface ITemplatesPreviewEntity {
@@ -92,9 +92,9 @@ interface ITemplatesPreviewEntity {
92
92
  /**
93
93
  * The `IProportion` interface defines the structure of a proportion object used in template previews.
94
94
  * @interface IProportion
95
- * @property {string | number | null} width - width of the template preview. Example: 100.
96
- * @property {string | number | null} height - height of the template preview. Example: 200.
97
- * @property {string} alignmentType - alignment type of the template preview. Example: "center".
95
+ * @property {string | number | null} width - width of the template preview. Example: 100.
96
+ * @property {string | number | null} height - height of the template preview. Example: 200.
97
+ * @property {string} alignmentType - alignment type of the template preview. Example: "center".
98
98
  * @description Represents a proportion object used in template previews.
99
99
  */
100
100
  interface IProportion {
@@ -105,8 +105,8 @@ interface IProportion {
105
105
  /**
106
106
  * The `ISquare` interface defines the structure of a square proportion object used in template previews.
107
107
  * @interface ISquare
108
- * @property {number | string} side - Side length of the square template preview, can be a number or string. Example: 100.
109
- * @property {string} alignmentType - Alignment type of the square template preview. Example: "center".
108
+ * @property {number | string} side - Side length of the square template preview, can be a number or string. Example: 100.
109
+ * @property {string} alignmentType - Alignment type of the square template preview. Example: "center".
110
110
  * @description Represents a square proportion object used in template previews.
111
111
  */
112
112
  interface ISquare {
@@ -19,8 +19,8 @@ export default class UsersApi extends AsyncModules implements IUsers {
19
19
  /**
20
20
  * Getting the data of an authorized user.
21
21
  * @handleName getUser
22
- * @param {string} [langCode] - Language code. Default: "en_US".
23
- * @returns {IUserEntity} Returns a promise that resolves to the user entity object if successful; otherwise, returns an error object.
22
+ * @param {string} [langCode] - Language code. Default: "en_US".
23
+ * @returns {IUserEntity} Returns a promise that resolves to the user entity object if successful; otherwise, returns an error object.
24
24
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
25
25
  * @description Getting the data of an authorized user. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
26
26
  */
@@ -28,29 +28,29 @@ export default class UsersApi extends AsyncModules implements IUsers {
28
28
  /**
29
29
  * Updating a single user object.
30
30
  * @handleName updateUser
31
- * @param {IUserBody} body - Request body. Example:
32
- {
33
- "formIdentifier": "reg",
34
- "authData": [
35
- {
36
- "marker": "password",
37
- "value": "12345"
38
- }
39
- ],
40
- "formData": {
41
- "marker": "last_name",
42
- "type": "string",
43
- "value": "Username"
44
- },
45
- "notificationData": {
46
- "email": "example@oneentry.cloud",
47
- "phonePush": ["+99999999999"],
48
- "phoneSMS": "+99999999999"
49
- },
50
- "state": {}
51
- }
52
- * @param {string} [langCode] - Language code. Default: "en_US".
53
- * @returns {boolean} Returns `true` if the user object was successfully updated; otherwise, returns an error object.
31
+ * @param {IUserBody} body - Request body. Example:
32
+ {
33
+ "formIdentifier": "reg",
34
+ "authData": [
35
+ {
36
+ "marker": "password",
37
+ "value": "12345"
38
+ }
39
+ ],
40
+ "formData": {
41
+ "marker": "last_name",
42
+ "type": "string",
43
+ "value": "Username"
44
+ },
45
+ "notificationData": {
46
+ "email": "example@oneentry.cloud",
47
+ "phonePush": ["+99999999999"],
48
+ "phoneSMS": "+99999999999"
49
+ },
50
+ "state": {}
51
+ }
52
+ * @param {string} [langCode] - Language code. Default: "en_US".
53
+ * @returns {boolean} Returns `true` if the user object was successfully updated; otherwise, returns an error object.
54
54
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
55
55
  * @description Updating a single user object. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
56
56
  */
@@ -74,8 +74,8 @@ export default class UsersApi extends AsyncModules implements IUsers {
74
74
  /**
75
75
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
76
76
  * @handleName addFCMToken
77
- * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
78
- * @returns {boolean} Returns `true` if the token was successfully added; otherwise, returns an error object.
77
+ * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
78
+ * @returns {boolean} Returns `true` if the token was successfully added; otherwise, returns an error object.
79
79
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
80
80
  * @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.
81
81
  */
@@ -83,8 +83,8 @@ export default class UsersApi extends AsyncModules implements IUsers {
83
83
  /**
84
84
  * Deletes an FCM (Firebase Cloud Messaging) token.
85
85
  * @handleName deleteFCMToken
86
- * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
87
- * @returns {boolean} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
86
+ * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
87
+ * @returns {boolean} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
88
88
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
89
89
  * @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.
90
90
  */
@@ -22,8 +22,8 @@ class UsersApi extends asyncModules_1.default {
22
22
  /**
23
23
  * Getting the data of an authorized user.
24
24
  * @handleName getUser
25
- * @param {string} [langCode] - Language code. Default: "en_US".
26
- * @returns {IUserEntity} Returns a promise that resolves to the user entity object if successful; otherwise, returns an error object.
25
+ * @param {string} [langCode] - Language code. Default: "en_US".
26
+ * @returns {IUserEntity} Returns a promise that resolves to the user entity object if successful; otherwise, returns an error object.
27
27
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
28
28
  * @description Getting the data of an authorized user. 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
29
  */
@@ -34,29 +34,29 @@ class UsersApi extends asyncModules_1.default {
34
34
  /**
35
35
  * Updating a single user object.
36
36
  * @handleName updateUser
37
- * @param {IUserBody} body - Request body. Example:
38
- {
39
- "formIdentifier": "reg",
40
- "authData": [
41
- {
42
- "marker": "password",
43
- "value": "12345"
44
- }
45
- ],
46
- "formData": {
47
- "marker": "last_name",
48
- "type": "string",
49
- "value": "Username"
50
- },
51
- "notificationData": {
52
- "email": "example@oneentry.cloud",
53
- "phonePush": ["+99999999999"],
54
- "phoneSMS": "+99999999999"
55
- },
56
- "state": {}
57
- }
58
- * @param {string} [langCode] - Language code. Default: "en_US".
59
- * @returns {boolean} Returns `true` if the user object was successfully updated; otherwise, returns an error object.
37
+ * @param {IUserBody} body - Request body. Example:
38
+ {
39
+ "formIdentifier": "reg",
40
+ "authData": [
41
+ {
42
+ "marker": "password",
43
+ "value": "12345"
44
+ }
45
+ ],
46
+ "formData": {
47
+ "marker": "last_name",
48
+ "type": "string",
49
+ "value": "Username"
50
+ },
51
+ "notificationData": {
52
+ "email": "example@oneentry.cloud",
53
+ "phonePush": ["+99999999999"],
54
+ "phoneSMS": "+99999999999"
55
+ },
56
+ "state": {}
57
+ }
58
+ * @param {string} [langCode] - Language code. Default: "en_US".
59
+ * @returns {boolean} Returns `true` if the user object was successfully updated; otherwise, returns an error object.
60
60
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
61
61
  * @description Updating a single user object. This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
62
62
  */
@@ -95,8 +95,8 @@ class UsersApi extends asyncModules_1.default {
95
95
  /**
96
96
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
97
97
  * @handleName addFCMToken
98
- * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
99
- * @returns {boolean} Returns `true` if the token was successfully added; otherwise, returns an error object.
98
+ * @param {string} token - The cloud messaging token to be added. This token is used to identify the user's device for push notifications. Example: "fcm_token_1234567890abcdefg".
99
+ * @returns {boolean} Returns `true` if the token was successfully added; otherwise, returns an error object.
100
100
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
101
101
  * @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.
102
102
  */
@@ -107,8 +107,8 @@ class UsersApi extends asyncModules_1.default {
107
107
  /**
108
108
  * Deletes an FCM (Firebase Cloud Messaging) token.
109
109
  * @handleName deleteFCMToken
110
- * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
111
- * @returns {boolean} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
110
+ * @param {string} token - The cloud messaging token to be deleted. This token is used to identify the user's device for push notifications and will be removed. Example: "fcm_token_1234567890abcdefg".
111
+ * @returns {boolean} Returns `true` if the token was successfully deleted; otherwise, returns an error object.
112
112
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
113
113
  * @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.
114
114
  */