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
@@ -5,11 +5,11 @@ import type { FormDataType } from '../forms-data/formsDataInterfaces';
5
5
  /**
6
6
  * Interface representing user-related operations.
7
7
  * @interface IUsers
8
- * @property {Function} getUser - Retrieves the data of an authorized user, optionally based on a language code.
9
- * @property {Function} updateUser - Updates the user's data with the provided information.
10
- * @property {Function} archiveUser - Archiving one user object (marked for deletion).
11
- * @property {Function} deleteUser - Deletes the user from the system.
12
- * @property {Function} addFCMToken - Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
8
+ * @property {Function} getUser - Retrieves the data of an authorized user, optionally based on a language code.
9
+ * @property {Function} updateUser - Updates the user's data with the provided information.
10
+ * @property {Function} archiveUser - Archiving one user object (marked for deletion).
11
+ * @property {Function} deleteUser - Deletes the user from the system.
12
+ * @property {Function} addFCMToken - Adds an FCM (Firebase Cloud Messaging) token for sending push notifications.
13
13
  * @property {Function} deleteFCMToken - Deletes an existing FCM token.
14
14
  * @description This interface defines methods for managing user data and handling Firebase Cloud Messaging tokens.
15
15
  */
@@ -17,8 +17,8 @@ interface IUsers {
17
17
  /**
18
18
  * Retrieves the data of an authorized user.
19
19
  * @handleName getUser
20
- * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
21
- * @returns {IUserEntity} A promise resolving to the user entity or an error.
20
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
21
+ * @returns {IUserEntity} A promise resolving to the user 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 the data of an authorized user.
24
24
  */
@@ -26,29 +26,29 @@ interface IUsers {
26
26
  /**
27
27
  * Updates the user's data.
28
28
  * @handleName updateUser
29
- * @param {IUserBody} data - The new data for the user. Example:
30
- {
31
- "formIdentifier": "reg",
32
- "authData": [
33
- {
34
- "marker": "password",
35
- "value": "12345"
36
- }
37
- ],
38
- "formData": {
39
- "marker": "last_name",
40
- "type": "string",
41
- "value": "Username"
42
- },
43
- "notificationData": {
44
- "email": "example@oneentry.cloud",
45
- "phonePush": ["+99999999999"],
46
- "phoneSMS": "+99999999999"
47
- },
48
- "state": {}
49
- }
50
- * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
51
- * @returns {boolean} A promise resolving to true if successful, or an error.
29
+ * @param {IUserBody} data - The new data for the user. Example:
30
+ {
31
+ "formIdentifier": "reg",
32
+ "authData": [
33
+ {
34
+ "marker": "password",
35
+ "value": "12345"
36
+ }
37
+ ],
38
+ "formData": {
39
+ "marker": "last_name",
40
+ "type": "string",
41
+ "value": "Username"
42
+ },
43
+ "notificationData": {
44
+ "email": "example@oneentry.cloud",
45
+ "phonePush": ["+99999999999"],
46
+ "phoneSMS": "+99999999999"
47
+ },
48
+ "state": {}
49
+ }
50
+ * @param {string} [langCode] - Optional language code for localization. Default: "en_US".
51
+ * @returns {boolean} A promise resolving to true if successful, or an error.
52
52
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
53
53
  * @description This method updates the user's data.
54
54
  */
@@ -72,8 +72,8 @@ interface IUsers {
72
72
  /**
73
73
  * Adds an FCM token for sending push notifications.
74
74
  * @handleName addFCMToken
75
- * @param {string} token - The FCM token to be added. Example: "fcm_token_1234567890abcdefg".
76
- * @returns {boolean} A promise resolving to true if successful, or an error.
75
+ * @param {string} token - The FCM token to be added. Example: "fcm_token_1234567890abcdefg".
76
+ * @returns {boolean} A promise resolving to true if successful, or an error.
77
77
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
78
78
  * @description This method adds an FCM token for sending push notifications.
79
79
  */
@@ -81,8 +81,8 @@ interface IUsers {
81
81
  /**
82
82
  * Deletes an existing FCM token.
83
83
  * @handleName deleteFCMToken
84
- * @param {string} token - The FCM token to be deleted. Example: "fcm_token_1234567890abcdefg".
85
- * @returns {boolean} A promise resolving to true if successful, or an error.
84
+ * @param {string} token - The FCM token to be deleted. Example: "fcm_token_1234567890abcdefg".
85
+ * @returns {boolean} A promise resolving to true if successful, or an error.
86
86
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
87
87
  * @description This method deletes an existing FCM token.
88
88
  */
@@ -90,20 +90,20 @@ interface IUsers {
90
90
  }
91
91
  /**
92
92
  * @interface IUserEntity
93
- * @property {number} id - Object identifier. Example: 12345.
94
- * @property {string} identifier - Text identifier for record field. Example: "user_12345".
95
- * @property {string} authProviderIdentifier - Text identifier of the authentication provider. Example: "auth_provider_12345".
96
- * @property {FormDataType[]} formData - Array of data form objects with the following values. Example:
97
- [
98
- {
99
- "marker": "last_name",
100
- "type": "string",
101
- "value": "Username"
102
- }
103
- ]
104
- * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
105
- * @property {any[]} groups - Array of user groups. Example: ["group_1", "group_2"].
106
- * @property {any} state - Object containing additional user state information. Example: {"key": "value"}
93
+ * @property {number} id - Object identifier. Example: 12345.
94
+ * @property {string} identifier - Text identifier for record field. Example: "user_12345".
95
+ * @property {string} authProviderIdentifier - Text identifier of the authentication provider. Example: "auth_provider_12345".
96
+ * @property {FormDataType[]} formData - Array of data form objects with the following values. Example:
97
+ [
98
+ {
99
+ "marker": "last_name",
100
+ "type": "string",
101
+ "value": "Username"
102
+ }
103
+ ]
104
+ * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
105
+ * @property {any[]} groups - Array of user groups. Example: ["group_1", "group_2"].
106
+ * @property {any} state - Object containing additional user state information. Example: {"key": "value"}
107
107
  * @description Represents a user entity with various properties, including identifiers, form data, and user groups.
108
108
  */
109
109
  interface IUserEntity {
@@ -118,35 +118,35 @@ interface IUserEntity {
118
118
  }
119
119
  /**
120
120
  * @interface IUserBody
121
- * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
122
- * @property {string} [langCode] - Language code for localization. Default: "en_US".
123
- * @property {{ marker: string; value: string }[]} [authData] - Array of authentication data objects with markers and values. Example:
124
- [
125
- {
126
- "marker": "password",
127
- "value": "12345"
128
- }
129
- ]
130
- * @property {IAuthFormData | IAuthFormData[]} [formData] - Form data object or array of form data objects. Example:
131
- [
132
- {
133
- "marker": "first_name",
134
- "type": "string",
135
- "value": "John"
136
- },
137
- {
138
- "marker": "last_name",
139
- "type": "string",
140
- "value": "Doe"
141
- }
142
- ]
143
- * @property {object} [notificationData] - Object containing notification data, including email and phone information. Example:
144
- {
145
- "email": "example@oneentry.cloud",
146
- "phonePush": ["+99999999999"],
147
- "phoneSMS": "+99999999999"
148
- }
149
- * @property {any} [state] - Object containing additional state information. Example: {"key": "value"}
121
+ * @property {string} formIdentifier - Text identifier of the form. Example: "form_12345".
122
+ * @property {string} [langCode] - Language code for localization. Default: "en_US".
123
+ * @property {{ marker: string; value: string }[]} [authData] - Array of authentication data objects with markers and values. Example:
124
+ [
125
+ {
126
+ "marker": "password",
127
+ "value": "12345"
128
+ }
129
+ ]
130
+ * @property {IAuthFormData | IAuthFormData[]} [formData] - Form data object or array of form data objects. Example:
131
+ [
132
+ {
133
+ "marker": "first_name",
134
+ "type": "string",
135
+ "value": "John"
136
+ },
137
+ {
138
+ "marker": "last_name",
139
+ "type": "string",
140
+ "value": "Doe"
141
+ }
142
+ ]
143
+ * @property {object} [notificationData] - Object containing notification data, including email and phone information. Example:
144
+ {
145
+ "email": "example@oneentry.cloud",
146
+ "phonePush": ["+99999999999"],
147
+ "phoneSMS": "+99999999999"
148
+ }
149
+ * @property {any} [state] - Object containing additional state information. Example: {"key": "value"}
150
150
  * @description Represents the body of a user request, including form identifiers, authentication data, form data, notification data, and state information.
151
151
  */
152
152
  interface IUserBody {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oneentry",
3
- "version": "1.0.127",
3
+ "version": "1.0.128",
4
4
  "description": "OneEntry NPM package",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",