oneentry 1.0.126 → 1.0.127

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 +30 -25
  4. package/dist/admins/adminsApi.js +30 -25
  5. package/dist/admins/adminsInterfaces.d.ts +45 -54
  6. package/dist/attribute-sets/attributeSetsApi.d.ts +26 -27
  7. package/dist/attribute-sets/attributeSetsApi.js +26 -27
  8. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +101 -109
  9. package/dist/auth-provider/authProviderApi.d.ts +132 -158
  10. package/dist/auth-provider/authProviderApi.js +131 -157
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +241 -237
  12. package/dist/base/asyncModules.d.ts +23 -21
  13. package/dist/base/asyncModules.js +30 -25
  14. package/dist/base/result.d.ts +31 -0
  15. package/dist/base/result.js +32 -1
  16. package/dist/base/stateModule.d.ts +10 -0
  17. package/dist/base/stateModule.js +50 -2
  18. package/dist/base/syncModules.d.ts +41 -49
  19. package/dist/base/syncModules.js +49 -48
  20. package/dist/base/utils.d.ts +38 -7
  21. package/dist/blocks/blocksApi.d.ts +27 -36
  22. package/dist/blocks/blocksApi.js +27 -36
  23. package/dist/blocks/blocksInterfaces.d.ts +92 -97
  24. package/dist/config.d.ts +13 -0
  25. package/dist/config.js +30 -0
  26. package/dist/events/eventsApi.d.ts +16 -33
  27. package/dist/events/eventsApi.js +32 -46
  28. package/dist/events/eventsInterfaces.d.ts +42 -37
  29. package/dist/file-uploading/fileUploadingApi.d.ts +42 -47
  30. package/dist/file-uploading/fileUploadingApi.js +44 -47
  31. package/dist/file-uploading/fileUploadingInterfaces.d.ts +49 -60
  32. package/dist/forms/formsApi.d.ts +15 -14
  33. package/dist/forms/formsApi.js +15 -14
  34. package/dist/forms/formsInterfaces.d.ts +36 -40
  35. package/dist/forms-data/formsDataApi.d.ts +40 -44
  36. package/dist/forms-data/formsDataApi.js +42 -44
  37. package/dist/forms-data/formsDataInterfaces.d.ts +231 -231
  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 +6 -9
  41. package/dist/index.d.ts +12 -13
  42. package/dist/index.js +12 -13
  43. package/dist/integration-collections/integrationCollectionsApi.d.ts +84 -98
  44. package/dist/integration-collections/integrationCollectionsApi.js +86 -102
  45. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +177 -169
  46. package/dist/locales/localesApi.d.ts +7 -3
  47. package/dist/locales/localesApi.js +7 -3
  48. package/dist/locales/localesInterfaces.d.ts +14 -13
  49. package/dist/menus/menusApi.d.ts +9 -5
  50. package/dist/menus/menusApi.js +9 -5
  51. package/dist/menus/menusInterfaces.d.ts +43 -48
  52. package/dist/menus/menusInterfaces.js +1 -0
  53. package/dist/orders/ordersApi.d.ts +62 -70
  54. package/dist/orders/ordersApi.js +62 -71
  55. package/dist/orders/ordersInterfaces.d.ts +238 -203
  56. package/dist/pages/pagesApi.d.ts +67 -80
  57. package/dist/pages/pagesApi.js +71 -81
  58. package/dist/pages/pagesInterfaces.d.ts +164 -160
  59. package/dist/payments/paymentsApi.d.ts +24 -34
  60. package/dist/payments/paymentsApi.js +24 -38
  61. package/dist/payments/paymentsInterfaces.d.ts +82 -76
  62. package/dist/product-statuses/productStatusesApi.d.ts +13 -13
  63. package/dist/product-statuses/productStatusesApi.js +13 -13
  64. package/dist/product-statuses/productStatusesInterfaces.d.ts +29 -27
  65. package/dist/products/productsApi.d.ts +246 -267
  66. package/dist/products/productsApi.js +247 -267
  67. package/dist/products/productsInterfaces.d.ts +333 -339
  68. package/dist/system/systemApi.d.ts +19 -21
  69. package/dist/system/systemApi.js +20 -21
  70. package/dist/system/systemInterfaces.d.ts +14 -3
  71. package/dist/templates/templatesApi.d.ts +13 -16
  72. package/dist/templates/templatesApi.js +13 -16
  73. package/dist/templates/templatesInterfaces.d.ts +30 -29
  74. package/dist/templates-preview/templatesPreviewApi.d.ts +10 -11
  75. package/dist/templates-preview/templatesPreviewApi.js +10 -11
  76. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +61 -64
  77. package/dist/users/usersApi.d.ts +36 -43
  78. package/dist/users/usersApi.js +36 -43
  79. package/dist/users/usersInterfaces.d.ts +92 -96
  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
@@ -1,78 +1,75 @@
1
1
  import type { AttributeType, IError } from '../base/utils';
2
2
  /**
3
3
  * @interface ITemplatesPreview
4
- *
5
- * @property {function} getTemplatesPreview - Get all template objects.
6
- * @property {function} getTemplatesPreviewById - Get one template object by id.
7
- * @property {function} getTemplatesPreviewByMarker - Get one template object by marker.
8
- *
9
- * @description This interface defines methods for retrieving template previews in the system, including fetching all previews, specific previews by ID, and by marker.
4
+ * @property {Function} getTemplatePreviews - Get all template preview objects.
5
+ * @property {Function} getTemplatePreviewByMarker - Get one template preview object by marker.
6
+ * @description This interface defines methods for retrieving template previews in the system, including fetching all previews, specific previews by marker.
10
7
  */
11
8
  interface ITemplatesPreview {
12
9
  /**
13
10
  * Retrieves all template preview objects.
14
- *
15
- * @param {string} langCode - Language code for localization. Default: "en_US".
16
- * @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.
17
13
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
18
14
  */
19
15
  getTemplatePreviews(langCode: string): Promise<ITemplatesPreviewEntity[] | IError>;
20
16
  /**
21
17
  * Retrieves a specific template preview object by its marker.
22
- *
23
- * @param {string} marker - The marker of the template preview. Example: "template_12345".
24
- * @param {string} [langCode] - Language code for localization. Default: "en_US".
25
- * @returns {ITemplatesPreviewEntity} A promise resolving to the template preview entity or an error.
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.
26
22
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
23
+ * @description This method retrieves a specific template preview object by its marker.
27
24
  */
28
25
  getTemplatePreviewByMarker(marker: string, langCode: string): Promise<ITemplatesPreviewEntity | IError>;
29
26
  }
30
27
  /**
28
+ * The `ITemplatesPreview` interface defines the structure of template preview entities.
31
29
  * @interface ITemplatesPreviewEntity
32
- *
33
- * @property {number} id - The unique identifier of the position. Example: 3.
34
- * @property {string} title - The name of the template preview. Example: "Product Template"..
35
- * @property {object} proportions - Object contains info by proportions template preview. Example:
36
- {
37
- "default": {
38
- "horizontal": {
39
- "width": 234,
40
- "height": 324,
41
- "alignmentType": "middleBottom"
42
- },
43
- "vertical": {
44
- "width": 2,
45
- "height": 3,
46
- "alignmentType": "leftTop"
47
- },
48
- "square": {
49
- "side": 3,
50
- "alignmentType": "leftTop"
51
- }
52
- }
53
- }
54
- * @property {string} identifier - The textual identifier for the record field. Example: "preview-templates"
55
- * @property {number} version - The version number of the object. Example: 1.
56
- * @property {AttributeType} attributeValues - Attribute values from index. Example: {}
57
- * @property {number} position - The position of the object. Example: 1.
58
- * @property {string | null} [attributeSetIdentifier] - Text identifier used for a set of attributes. Example: "attribute_set_1".
59
- * @property {IProportion | null} proportions.horizontal - Horizontal proportion of the template preview. Example:
60
- {
61
- "width": 234,
62
- "height": 324,
63
- "alignmentType": "middleBottom"
64
- }
65
- * @property {IProportion | null} proportions.vertical - Vertical proportion of the template preview. Example:
66
- {
67
- "width": 2,
68
- "height": 3,
69
- "alignmentType": "leftTop"
70
- }
71
- * @property {ISquare} proportions.square - Square proportion of the template preview. Example:
72
- {
73
- "side": 3,
74
- "alignmentType": "leftTop"
75
- }
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".
76
73
  * @description This interface defines the structure of a template preview entity, including its identifiers, attributes, proportions, and title.
77
74
  */
78
75
  interface ITemplatesPreviewEntity {
@@ -93,11 +90,11 @@ interface ITemplatesPreviewEntity {
93
90
  attributeSetIdentifier?: string | null;
94
91
  }
95
92
  /**
93
+ * The `IProportion` interface defines the structure of a proportion object used in template previews.
96
94
  * @interface IProportion
97
- *
98
- * @property {string | number | null} width - width of the template preview. Example: 100.
99
- * @property {string | number | null} height - height of the template preview. Example: 200.
100
- * @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".
101
98
  * @description Represents a proportion object used in template previews.
102
99
  */
103
100
  interface IProportion {
@@ -106,10 +103,10 @@ interface IProportion {
106
103
  alignmentType: string;
107
104
  }
108
105
  /**
106
+ * The `ISquare` interface defines the structure of a square proportion object used in template previews.
109
107
  * @interface ISquare
110
- *
111
- * @property {number | string} side - Side length of the square template preview, can be a number or string. Example: 100.
112
- * @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".
113
110
  * @description Represents a square proportion object used in template previews.
114
111
  */
115
112
  interface ISquare {
@@ -10,88 +10,81 @@ import type { IUserBody, IUserEntity, IUsers } from './usersInterfaces';
10
10
  export default class UsersApi extends AsyncModules implements IUsers {
11
11
  protected state: StateModule;
12
12
  protected _url: string;
13
+ /**
14
+ * Constructor for UsersApi class.
15
+ * @param {StateModule} state - The state module containing necessary information for API calls.
16
+ * @description Initializes the UsersApi class with the provided state module.
17
+ */
13
18
  constructor(state: StateModule);
14
19
  /**
15
20
  * Getting the data of an authorized user.
16
- *
17
21
  * @handleName getUser
18
- *
19
- * @param {string} [langCode] - Language code. Default: "en_US".
20
- * @return {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.
21
24
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
22
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.
23
26
  */
24
27
  getUser(langCode?: string): Promise<IUserEntity | IError>;
25
28
  /**
26
29
  * Updating a single user object.
27
- *
28
30
  * @handleName updateUser
29
- *
30
- * @param {IUserBody} body - Request body. Example:
31
- {
32
- "formIdentifier": "reg",
33
- "authData": [
34
- {
35
- "marker": "password",
36
- "value": "12345"
37
- }
38
- ],
39
- "formData": {
40
- "marker": "last_name",
41
- "type": "string",
42
- "value": "Username"
43
- },
44
- "notificationData": {
45
- "email": "example@oneentry.cloud",
46
- "phonePush": ["+99999999999"],
47
- "phoneSMS": "+99999999999"
48
- },
49
- "state": {}
50
- }
51
- * @param {string} [langCode] - Language code. Default: "en_US".
52
- * @return {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.
53
54
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
54
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.
55
56
  */
56
57
  updateUser(body: IUserBody, langCode?: string): Promise<boolean | IError>;
57
58
  /**
58
59
  * Archiving one user object (marked for deletion).
59
- *
60
60
  * @handleName archiveUser
61
- *
62
- * @return {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
61
+ * @returns {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
63
62
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
64
63
  * @description Archiving one user object (marked for deletion). This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
65
64
  */
66
65
  archiveUser(): Promise<boolean | IError>;
67
66
  /**
68
67
  * Delete a single user.
69
- *
70
68
  * @handleName deleteUser
71
- *
72
- * @return {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
69
+ * @returns {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
73
70
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
74
71
  * @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.
75
72
  */
76
73
  deleteUser(): Promise<boolean | IError>;
77
74
  /**
78
75
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
79
- *
80
76
  * @handleName addFCMToken
81
- *
82
- * @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".
83
- * @return {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.
84
79
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
85
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.
86
81
  */
87
82
  addFCMToken(token: string): Promise<boolean | IError>;
88
83
  /**
89
84
  * Deletes an FCM (Firebase Cloud Messaging) token.
90
- *
91
85
  * @handleName deleteFCMToken
92
- *
93
- * @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".
94
- * @return {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.
95
88
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
96
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.
97
90
  */
@@ -10,17 +10,20 @@ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
10
10
  * @description This module provides various methods to manage users, including creating, retrieving, updating, and deleting user data. It requires proper authorization to access these endpoints.
11
11
  */
12
12
  class UsersApi extends asyncModules_1.default {
13
+ /**
14
+ * Constructor for UsersApi class.
15
+ * @param {StateModule} state - The state module containing necessary information for API calls.
16
+ * @description Initializes the UsersApi class with the provided state module.
17
+ */
13
18
  constructor(state) {
14
19
  super(state);
15
20
  this._url = state.url + '/api/content/users';
16
21
  }
17
22
  /**
18
23
  * Getting the data of an authorized user.
19
- *
20
24
  * @handleName getUser
21
- *
22
- * @param {string} [langCode] - Language code. Default: "en_US".
23
- * @return {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.
24
27
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
25
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.
26
29
  */
@@ -30,32 +33,30 @@ class UsersApi extends asyncModules_1.default {
30
33
  }
31
34
  /**
32
35
  * Updating a single user object.
33
- *
34
36
  * @handleName updateUser
35
- *
36
- * @param {IUserBody} body - Request body. Example:
37
- {
38
- "formIdentifier": "reg",
39
- "authData": [
40
- {
41
- "marker": "password",
42
- "value": "12345"
43
- }
44
- ],
45
- "formData": {
46
- "marker": "last_name",
47
- "type": "string",
48
- "value": "Username"
49
- },
50
- "notificationData": {
51
- "email": "example@oneentry.cloud",
52
- "phonePush": ["+99999999999"],
53
- "phoneSMS": "+99999999999"
54
- },
55
- "state": {}
56
- }
57
- * @param {string} [langCode] - Language code. Default: "en_US".
58
- * @return {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.
59
60
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
60
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.
61
62
  */
@@ -71,10 +72,8 @@ class UsersApi extends asyncModules_1.default {
71
72
  }
72
73
  /**
73
74
  * Archiving one user object (marked for deletion).
74
- *
75
75
  * @handleName archiveUser
76
- *
77
- * @return {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
76
+ * @returns {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
78
77
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
79
78
  * @description Archiving one user object (marked for deletion). This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
80
79
  */
@@ -84,10 +83,8 @@ class UsersApi extends asyncModules_1.default {
84
83
  }
85
84
  /**
86
85
  * Delete a single user.
87
- *
88
86
  * @handleName deleteUser
89
- *
90
- * @return {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
87
+ * @returns {boolean} Returns `true` if the user was successfully deleted; otherwise, returns an error object.
91
88
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
92
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.
93
90
  */
@@ -97,11 +94,9 @@ class UsersApi extends asyncModules_1.default {
97
94
  }
98
95
  /**
99
96
  * Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
100
- *
101
97
  * @handleName addFCMToken
102
- *
103
- * @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".
104
- * @return {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.
105
100
  * @throws {IError} If there is an error during the fetch operation, it will return an error object.
106
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.
107
102
  */
@@ -111,11 +106,9 @@ class UsersApi extends asyncModules_1.default {
111
106
  }
112
107
  /**
113
108
  * Deletes an FCM (Firebase Cloud Messaging) token.
114
- *
115
109
  * @handleName deleteFCMToken
116
- *
117
- * @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".
118
- * @return {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.
119
112
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
120
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.
121
114
  */