oneentry 1.0.173 → 1.0.175

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 (174) hide show
  1. package/changelog.md +35 -0
  2. package/dist/admins/adminsApi.d.ts +7 -7
  3. package/dist/admins/adminsApi.js +7 -7
  4. package/dist/admins/adminsInterfaces.d.ts +22 -22
  5. package/dist/attribute-sets/attributeSetsApi.d.ts +8 -8
  6. package/dist/attribute-sets/attributeSetsApi.js +8 -8
  7. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  8. package/dist/auth-provider/authProviderApi.d.ts +30 -30
  9. package/dist/auth-provider/authProviderApi.js +30 -30
  10. package/dist/auth-provider/authProviderSchemas.d.ts +1 -1
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +54 -53
  12. package/dist/base/asyncModules.d.ts +6 -6
  13. package/dist/base/asyncModules.js +6 -6
  14. package/dist/base/syncModules.d.ts +1 -1
  15. package/dist/base/syncModules.js +1 -1
  16. package/dist/base/utils.d.ts +3 -3
  17. package/dist/base/validation.d.ts +1 -1
  18. package/dist/base/validation.js +1 -1
  19. package/dist/blocks/blocksApi.d.ts +35 -35
  20. package/dist/blocks/blocksApi.js +35 -35
  21. package/dist/blocks/blocksInterfaces.d.ts +55 -55
  22. package/dist/discounts/discountsApi.d.ts +14 -14
  23. package/dist/discounts/discountsApi.js +14 -14
  24. package/dist/discounts/discountsInterfaces.d.ts +52 -52
  25. package/dist/events/eventsApi.d.ts +13 -13
  26. package/dist/events/eventsApi.js +13 -13
  27. package/dist/events/eventsInterfaces.d.ts +18 -18
  28. package/dist/file-uploading/fileUploadingApi.d.ts +14 -14
  29. package/dist/file-uploading/fileUploadingApi.js +14 -14
  30. package/dist/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  31. package/dist/filters/filtersApi.d.ts +1 -1
  32. package/dist/filters/filtersApi.js +1 -1
  33. package/dist/filters/filtersInterfaces.d.ts +7 -7
  34. package/dist/forms/formsApi.d.ts +3 -3
  35. package/dist/forms/formsApi.js +3 -3
  36. package/dist/forms/formsInterfaces.d.ts +42 -42
  37. package/dist/forms-data/formsDataApi.d.ts +14 -14
  38. package/dist/forms-data/formsDataApi.js +14 -14
  39. package/dist/forms-data/formsDataInterfaces.d.ts +67 -68
  40. package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
  41. package/dist/integration-collections/integrationCollectionsApi.d.ts +20 -20
  42. package/dist/integration-collections/integrationCollectionsApi.js +20 -20
  43. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  44. package/dist/locales/localesInterfaces.d.ts +8 -8
  45. package/dist/menus/menusApi.d.ts +1 -1
  46. package/dist/menus/menusApi.js +1 -1
  47. package/dist/menus/menusInterfaces.d.ts +12 -12
  48. package/dist/orders/ordersApi.d.ts +26 -26
  49. package/dist/orders/ordersApi.js +26 -26
  50. package/dist/orders/ordersInterfaces.d.ts +99 -99
  51. package/dist/pages/pagesApi.d.ts +6 -6
  52. package/dist/pages/pagesApi.js +6 -6
  53. package/dist/pages/pagesInterfaces.d.ts +46 -46
  54. package/dist/payments/paymentsApi.d.ts +8 -8
  55. package/dist/payments/paymentsApi.js +8 -8
  56. package/dist/payments/paymentsInterfaces.d.ts +31 -31
  57. package/dist/product-statuses/productStatusesApi.d.ts +2 -2
  58. package/dist/product-statuses/productStatusesApi.js +2 -2
  59. package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
  60. package/dist/products/productsApi.d.ts +37 -37
  61. package/dist/products/productsApi.js +36 -36
  62. package/dist/products/productsInterfaces.d.ts +96 -96
  63. package/dist/search/searchApi.d.ts +3 -3
  64. package/dist/search/searchApi.js +3 -3
  65. package/dist/search/searchInterfaces.d.ts +4 -4
  66. package/dist/sitemap/sitemapApi.d.ts +1 -1
  67. package/dist/sitemap/sitemapApi.js +1 -1
  68. package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
  69. package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
  70. package/dist/subscriptions/subscriptionsApi.js +3 -3
  71. package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  72. package/dist/templates/templatesApi.d.ts +2 -2
  73. package/dist/templates/templatesApi.js +2 -2
  74. package/dist/templates/templatesInterfaces.d.ts +10 -10
  75. package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
  76. package/dist/templates-preview/templatesPreviewApi.js +1 -1
  77. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  78. package/dist/user-activity/userActivityApi.d.ts +1 -1
  79. package/dist/user-activity/userActivityApi.js +1 -1
  80. package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
  81. package/dist/user-groups/userGroupsApi.d.ts +1 -1
  82. package/dist/user-groups/userGroupsApi.js +1 -1
  83. package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
  84. package/dist/users/usersApi.d.ts +9 -9
  85. package/dist/users/usersApi.js +9 -9
  86. package/dist/users/usersInterfaces.d.ts +40 -39
  87. package/dist/users/usersSchemas.d.ts +1 -1
  88. package/esm/admins/adminsApi.d.ts +7 -7
  89. package/esm/admins/adminsApi.js +7 -7
  90. package/esm/admins/adminsInterfaces.d.ts +22 -22
  91. package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
  92. package/esm/attribute-sets/attributeSetsApi.js +8 -8
  93. package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
  94. package/esm/auth-provider/authProviderApi.d.ts +30 -30
  95. package/esm/auth-provider/authProviderApi.js +30 -30
  96. package/esm/auth-provider/authProviderSchemas.d.ts +1 -1
  97. package/esm/auth-provider/authProvidersInterfaces.d.ts +54 -53
  98. package/esm/base/asyncModules.d.ts +6 -6
  99. package/esm/base/asyncModules.js +6 -6
  100. package/esm/base/syncModules.d.ts +1 -1
  101. package/esm/base/syncModules.js +1 -1
  102. package/esm/base/utils.d.ts +3 -3
  103. package/esm/base/validation.d.ts +1 -1
  104. package/esm/base/validation.js +1 -1
  105. package/esm/blocks/blocksApi.d.ts +35 -35
  106. package/esm/blocks/blocksApi.js +35 -35
  107. package/esm/blocks/blocksInterfaces.d.ts +55 -55
  108. package/esm/discounts/discountsApi.d.ts +14 -14
  109. package/esm/discounts/discountsApi.js +14 -14
  110. package/esm/discounts/discountsInterfaces.d.ts +52 -52
  111. package/esm/events/eventsApi.d.ts +13 -13
  112. package/esm/events/eventsApi.js +13 -13
  113. package/esm/events/eventsInterfaces.d.ts +18 -18
  114. package/esm/file-uploading/fileUploadingApi.d.ts +14 -14
  115. package/esm/file-uploading/fileUploadingApi.js +14 -14
  116. package/esm/file-uploading/fileUploadingInterfaces.d.ts +25 -25
  117. package/esm/filters/filtersApi.d.ts +1 -1
  118. package/esm/filters/filtersApi.js +1 -1
  119. package/esm/filters/filtersInterfaces.d.ts +7 -7
  120. package/esm/forms/formsApi.d.ts +3 -3
  121. package/esm/forms/formsApi.js +3 -3
  122. package/esm/forms/formsInterfaces.d.ts +42 -42
  123. package/esm/forms-data/formsDataApi.d.ts +14 -14
  124. package/esm/forms-data/formsDataApi.js +14 -14
  125. package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
  126. package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
  127. package/esm/integration-collections/integrationCollectionsApi.d.ts +20 -20
  128. package/esm/integration-collections/integrationCollectionsApi.js +20 -20
  129. package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
  130. package/esm/locales/localesInterfaces.d.ts +8 -8
  131. package/esm/menus/menusApi.d.ts +1 -1
  132. package/esm/menus/menusApi.js +1 -1
  133. package/esm/menus/menusInterfaces.d.ts +12 -12
  134. package/esm/orders/ordersApi.d.ts +26 -26
  135. package/esm/orders/ordersApi.js +26 -26
  136. package/esm/orders/ordersInterfaces.d.ts +99 -99
  137. package/esm/pages/pagesApi.d.ts +6 -6
  138. package/esm/pages/pagesApi.js +6 -6
  139. package/esm/pages/pagesInterfaces.d.ts +46 -46
  140. package/esm/payments/paymentsApi.d.ts +8 -8
  141. package/esm/payments/paymentsApi.js +8 -8
  142. package/esm/payments/paymentsInterfaces.d.ts +31 -31
  143. package/esm/product-statuses/productStatusesApi.d.ts +2 -2
  144. package/esm/product-statuses/productStatusesApi.js +2 -2
  145. package/esm/product-statuses/productStatusesInterfaces.d.ts +8 -8
  146. package/esm/products/productsApi.d.ts +37 -37
  147. package/esm/products/productsApi.js +36 -36
  148. package/esm/products/productsInterfaces.d.ts +96 -96
  149. package/esm/search/searchApi.d.ts +3 -3
  150. package/esm/search/searchApi.js +3 -3
  151. package/esm/search/searchInterfaces.d.ts +4 -4
  152. package/esm/sitemap/sitemapApi.d.ts +1 -1
  153. package/esm/sitemap/sitemapApi.js +1 -1
  154. package/esm/sitemap/sitemapInterfaces.d.ts +2 -2
  155. package/esm/subscriptions/subscriptionsApi.d.ts +3 -3
  156. package/esm/subscriptions/subscriptionsApi.js +3 -3
  157. package/esm/subscriptions/subscriptionsInterfaces.d.ts +11 -11
  158. package/esm/templates/templatesApi.d.ts +2 -2
  159. package/esm/templates/templatesApi.js +2 -2
  160. package/esm/templates/templatesInterfaces.d.ts +10 -10
  161. package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
  162. package/esm/templates-preview/templatesPreviewApi.js +1 -1
  163. package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
  164. package/esm/user-activity/userActivityApi.d.ts +1 -1
  165. package/esm/user-activity/userActivityApi.js +1 -1
  166. package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
  167. package/esm/user-groups/userGroupsApi.d.ts +1 -1
  168. package/esm/user-groups/userGroupsApi.js +1 -1
  169. package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
  170. package/esm/users/usersApi.d.ts +9 -9
  171. package/esm/users/usersApi.js +9 -9
  172. package/esm/users/usersInterfaces.d.ts +40 -39
  173. package/esm/users/usersSchemas.d.ts +1 -1
  174. package/package.json +2 -2
@@ -30,12 +30,12 @@ interface IAttributesSets {
30
30
  /**
31
31
  * Represents the structure of a list item.
32
32
  * @interface IListTitle
33
- * @property {string} title - The title or name associated with the list item. Example: "Item Name".
34
- * @property {number | string} value - The value of the list item, which can be either a number or a string depending on the context. Example: 42.
35
- * @property {string | number | null} position - The position of the list item, which can be represented as a string, number, or null if not applicable. Example: 1.
36
- * @property {object} extended - An object containing additional properties or metadata related to the list item. This could include any extra details that extend the basic information.
37
- * @property {string | null} extended.value - The extended value, which can be a string or null. Example: "extra_value".
38
- * @property {string | null} extended.type - The type of the extended value, which can be a string or null. Example: "color".
33
+ * @property {string} title - Title of the list item. Example: "Item Name".
34
+ * @property {number | string} value - Value of the list item: a number or a string. Example: 42.
35
+ * @property {string | number | null} position - Position of the list item: a number, a string, or `null`. Example: 1.
36
+ * @property {object} extended - Additional properties of the list item.
37
+ * @property {string | null} extended.value - Extended value, or `null`. Example: "extra_value".
38
+ * @property {string | null} extended.type - Type of the extended value, or `null`. Example: "color".
39
39
  * @description This interface defines the structure of a list item, which includes properties for the title, value, position, and extended information.
40
40
  */
41
41
  interface IListTitle {
@@ -84,9 +84,9 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
84
84
  * @property {AttributeType} type - Attribute type. Example: "string", "text", "integer", "etc".
85
85
  * @property {unknown} [value] - Value of the attribute, normalized the same way as an entity attribute value: `number | null` for numeric types, the file object itself for a single-file `image`/`file`, `null` when the attribute carries no value.
86
86
  * @property {unknown} initialValue - Initial value of the attribute.
87
- * @property {string} marker - Textual identifier of the attribute (marker). Example: "color", "size", "etc".
88
- * @property {number} position - Position number for sorting. Example: 1.
89
- * @property {IListTitle[]} listTitles - Array of values (with extended data) for list and radioButton attributes; empty array for non-list types.
87
+ * @property {string} marker - Marker of the attribute. Example: "color", "size", "etc".
88
+ * @property {number} position - Position used for sorting. Example: 1.
89
+ * @property {IListTitle[]} listTitles - Options with extended data for `list` and `radioButton` attributes; empty array for other types.
90
90
  * @example
91
91
  [
92
92
  {
@@ -104,7 +104,7 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
104
104
  "extendedValueType": null
105
105
  }
106
106
  ]
107
- * @property {IAttributeValidators} validators - Set of validators for validation; empty object when no validators are configured.
107
+ * @property {IAttributeValidators} validators - Validators configured for the attribute; empty object when none are set.
108
108
  * @example
109
109
  {
110
110
  "requiredValidator": {
@@ -114,12 +114,12 @@ type AttributeType = 'string' | 'text' | 'textWithHeader' | 'integer' | 'real' |
114
114
  "fieldDefaultValue": 11
115
115
  }
116
116
  }
117
- * @property {IAttributeLocalizeInfo} localizeInfos - The name of the template, taking into account localization.
117
+ * @property {IAttributeLocalizeInfo} localizeInfos - Localized name of the template.
118
118
  * @example
119
119
  {
120
120
  "title": "My attribute"
121
121
  }
122
- * @property {Record<string, IAttributesSetsEntity>} additionalFields - Nested sub-attributes keyed by marker; empty object when none.
122
+ * @property {Record<string, IAttributesSetsEntity>} additionalFields - Nested sub-attributes keyed by marker; an empty object when there are none.
123
123
  * @description This interface defines the structure of an attribute set entity, including its type, marker, position, validators, localization information, list titles, additional fields, and settings.
124
124
  */
125
125
  interface IAttributesSetsEntity {
@@ -193,20 +193,20 @@ interface IAttributeSchemaItem {
193
193
  * @property {object | boolean} [trimValidator] - Leading and trailing whitespace is stripped from the value. Stored as an empty object when the toggle is on. Example: `{}`.
194
194
  * @property {object} [stringInspectionValidator] - Length constraints for string fields. Example: `{ stringLength: 0, stringMin: 2, stringMax: 60 }`.
195
195
  * @property {object | boolean} [urlInspectionValidator] - Value must look like a URL. Stored either as `true` or as an object. Example: `true`.
196
- * @property {object | boolean} [emailInspectionValidator] - Value must look like an e-mail address. Stored either as `true` or as an object. Example: `true`.
197
- * @property {object} [checkForNumberValidator] - Value must be a number, optionally an integer within bounds. `0` disables a bound. Example: `{ integerOnly: true, minValue: 1, maxValue: 10 }`.
196
+ * @property {object | boolean} [emailInspectionValidator] - The value must look like an email address. Stored either as `true` or as an object. Example: `true`.
197
+ * @property {object} [checkForNumberValidator] - The value must be a number, optionally an integer within bounds. `0` disables a bound. Example: `{ integerOnly: true, minValue: 1, maxValue: 10 }`.
198
198
  * @property {object} [roundingNumberValidator] - Rounds the number before storing it. Example: `{ integerOnly: false, numberOfDecimals: 2, direction: 'round' }`.
199
- * @property {object} [booleanValidator] - Value must equal one of the two declared values. Example: `{ trueValue: 1, falseValue: 0 }`.
199
+ * @property {object} [booleanValidator] - The value must equal one of the two declared values. Example: `{ trueValue: 1, falseValue: 0 }`.
200
200
  * @property {object} [comparisonValidator] - Compares the value with another attribute or with a constant. Example: `{ compareAttribute: 'notChoosed', compareValue: '10', type: 'number', operator: 'equality' }`.
201
201
  * @property {object} [regExpValidator] - Value must match a regular expression; `invert` refuses matches instead. Example: `{ patternValue: '^[0-9]{5}$', invert: false, flags: ['i'] }`.
202
202
  * @property {object} [fieldMaskValidator] - Value must match an input mask (`9` digit, `A` upper letter, `a` lower letter, `*` any, `$` one of `()+-`). Example: `{ maskValue: '+9 (999) 999-99-99' }`.
203
- * @property {object} [checkForAGivenList] - Value must be in the list, or outside it when `notValue` is true. Example: `{ rangeValue: ['red', 'green'], notValue: false }`.
204
- * @property {object} [defaultValueValidator] - Value substituted when the field is left empty. Example: `{ fieldDefaultValue: 'USD' }`.
203
+ * @property {object} [checkForAGivenList] - The value must be in the list, or outside it when `notValue` is `true`. Example: `{ rangeValue: ['red', 'green'], notValue: false }`.
204
+ * @property {object} [defaultValueValidator] - Value used when the field is left empty. Example: `{ fieldDefaultValue: 'USD' }`.
205
205
  * @property {object} [sizeInPixelsValidator] - Image bounds in pixels; executed by the admin panel. Example: `{ maxX: 1920, maxY: 1080 }`.
206
- * @property {object} [checkingFilesValidator] - File size bounds and allowed extensions; executed by the admin panel. Example: `{ minValue: 0, maxValue: 5, minUnits: 'kb', maxUnits: 'mb', extensions: ['pdf'] }`.
207
- * @property {object} [minMaxDateValidator] - Date bounds; executed by the admin panel. Example: `{ minDateTimeValue: '2026-01-01', maxDateTimeValue: '2026-12-31' }`.
206
+ * @property {object} [checkingFilesValidator] - File size bounds and allowed extensions; run by the admin panel. Example: `{ minValue: 0, maxValue: 5, minUnits: 'kb', maxUnits: 'mb', extensions: ['pdf'] }`.
207
+ * @property {object} [minMaxDateValidator] - Date bounds. The admin panel enforces them. Example: `{ minDateTimeValue: '2026-01-01', maxDateTimeValue: '2026-12-31' }`.
208
208
  * @property {object} [valueValidator] - The panel's "default value" control; it writes `defaultValueValidator`, and this name is kept because the API accepts and stores it. Example: `{ fieldDefaultValue: 'USD' }`.
209
- * @property {object} [checkForLettersValidator] - Letters-only check by pattern; executed by the admin panel. Example: `{ patternValue: '^[A-Za-z ]+$' }`.
209
+ * @property {object} [checkForLettersValidator] - Letters-only check by pattern; run by the admin panel. Example: `{ patternValue: '^[A-Za-z ]+$' }`.
210
210
  * @description Map of validators applied to an attribute or form field, keyed by validator name.
211
211
  *
212
212
  * These eighteen names are the full set the API accepts in
@@ -317,12 +317,12 @@ interface IAttributeValidators {
317
317
  /**
318
318
  * Represents an attribute set entity.
319
319
  * @interface IAttributeSetsEntity
320
- * @property {number} id - The unique identifier of the attribute set entity. Example: 123.
321
- * @property {string} createdDate - The date when the attribute set was created. Example: "2023-10-01T12:00:00Z".
322
- * @property {string} updatedDate - The date when the attribute set was last updated. Example: "2023-10-01T12:00:00Z".
323
- * @property {number} version - The version number of the attribute set, used for tracking changes or updates. Example: 1.
324
- * @property {string} identifier - A string that uniquely identifies the attribute set. Example: "attributeSet1".
325
- * @property {string} title - The title or name of the attribute set. Example: "Product Attributes".
320
+ * @property {number} id - ID of the attribute set. Example: 123.
321
+ * @property {string} createdDate - Creation date of the attribute set. Example: "2023-10-01T12:00:00Z".
322
+ * @property {string} updatedDate - Date the attribute set was last updated. Example: "2023-10-01T12:00:00Z".
323
+ * @property {number} version - Version number of the attribute set; changes with each update. Example: 1.
324
+ * @property {string} identifier - Marker of the attribute set. Example: "attributeSet1".
325
+ * @property {string} title - Name of the attribute set. Example: "Product Attributes".
326
326
  * @property {Record<string, IAttributeSchemaItem>} schema - Schema fields keyed by marker.
327
327
  * @example
328
328
  {
@@ -337,9 +337,9 @@ interface IAttributeValidators {
337
337
  }
338
338
  }
339
339
  }
340
- * @property {boolean} isVisible - Indicates whether the attribute set is visible or not. Example: true.
341
- * @property {string} type - The type of the attribute set, which could be a specific classification or category. Example: "product", "user", "etc".
342
- * @property {number} position - The position number for sorting the attribute set. Example: 1.
340
+ * @property {boolean} isVisible - Whether the attribute set is visible. Example: true.
341
+ * @property {string} type - Type of the attribute set. Example: "product", "user", "etc".
342
+ * @property {number} position - Position of the attribute set, used for sorting. Example: 1.
343
343
  * @description This interface defines the structure of an attribute set entity.
344
344
  */
345
345
  interface IAttributeSetsEntity {
@@ -367,8 +367,8 @@ interface IAttributeSetTypeRef {
367
367
  /**
368
368
  * Represents the response structure for attribute sets.
369
369
  * @interface IAttributesSetsResponse
370
- * @property {number} total - Total items. Example: 100.
371
- * @property {IAttributeSetsEntity[]} items - IAttributeSetsEntity array containing attribute set entities.
370
+ * @property {number} total - Total number of attribute sets. Example: 100.
371
+ * @property {IAttributeSetsEntity[]} items - Attribute sets in this response.
372
372
  * @example
373
373
  [
374
374
  {
@@ -20,7 +20,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
20
20
  /**
21
21
  * User registration.
22
22
  * @handleName signUp
23
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
23
+ * @param {string} marker - Marker of the auth provider. Example: "email".
24
24
  * @param {ISignUpData} body - Request body.
25
25
  * @example
26
26
  {
@@ -48,7 +48,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
48
48
  "phoneSMS": "+99999999999"
49
49
  }
50
50
  }
51
- * @param {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
51
+ * @param {string} body.formIdentifier - Marker of the registration form. Example: "reg".
52
52
  * @param {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value.
53
53
  * @example
54
54
  [
@@ -61,14 +61,14 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
61
61
  "value": "12345"
62
62
  }
63
63
  ]
64
- * @param {IAuthFormData} body.formData - The form data for the registration, which can be a single object or an array of objects.
64
+ * @param {FormDataType | FormDataType[]} body.formData - Registration form fields: one object or an array. Field values: {@link FormDataType} — a value shaped by the field type (a string, a date object, a text object, a list, a file descriptor), not only a string. A file goes in as the descriptor `FileUploading.upload` returns: these methods do not upload a `File`/`Blob` themselves.
65
65
  * @example
66
66
  {
67
67
  "marker": "last_name",
68
68
  "type": "string",
69
69
  "value": "Name"
70
70
  }
71
- * @param {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS.
71
+ * @param {object} body.notificationData - Notification contacts: `email`, `phonePush` and `phoneSMS`.
72
72
  * @example
73
73
  {
74
74
  "email": "example@oneentry.cloud",
@@ -88,9 +88,9 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
88
88
  /**
89
89
  * Getting a user activation code. The code is returned via the appropriate user notification method.
90
90
  * @handleName generateCode
91
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
92
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
93
- * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
91
+ * @param {string} marker - Marker of the auth provider. Example: "email".
92
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
93
+ * @param {string} eventIdentifier - Marker of the event the code is generated for. Example: "user_registration".
94
94
  * @returns {Promise<void | IError>} Returns void if the code is successfully generated, or an error object if there was an issue.
95
95
  * @throws {IError} When isShell=false and an error occurs during the fetch
96
96
  * @description Obtaining a code to activate the user.
@@ -100,10 +100,10 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
100
100
  /**
101
101
  * User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
102
102
  * @handleName checkCode
103
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
103
+ * @param {string} marker - Marker of the auth provider. Example: "email".
104
104
  * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
105
- * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
106
- * @param {string} code - Service code. Example: "123456".
105
+ * @param {string} eventIdentifier - Marker of the event the code is generated for. Example: "user_registration".
106
+ * @param {string} code - One-time code the user received. Example: "123456".
107
107
  * @returns {Promise<boolean | IError>} Returns true if the code is correct, or an error object if there was an issue.
108
108
  * @throws {IError} When isShell=false and an error occurs during the fetch
109
109
  * @description Checking the user activation code
@@ -113,9 +113,9 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
113
113
  /**
114
114
  * User activate.
115
115
  * @handleName activateUser
116
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
117
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
118
- * @param {string} code - Service code. Example: "123456".
116
+ * @param {string} marker - Marker of the auth provider. Example: "email".
117
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
118
+ * @param {string} code - One-time code the user received. Example: "123456".
119
119
  * @returns {Promise<boolean | IError>} Returns true if the user was successfully activated, or an error object if there was an issue.
120
120
  * @throws {IError} When isShell=false and an error occurs during the fetch
121
121
  * @description User activation.
@@ -125,8 +125,8 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
125
125
  /**
126
126
  * User authorization.
127
127
  * @handleName auth
128
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
129
- * @param {IAuthPostBody} body - Objects contains auth information.
128
+ * @param {string} marker - Marker of the auth provider. Example: "email".
129
+ * @param {IAuthPostBody} body - Authentication data.
130
130
  * @example
131
131
  {
132
132
  "authData": [
@@ -159,7 +159,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
159
159
  /**
160
160
  * Refresh token.
161
161
  * @handleName refresh
162
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
162
+ * @param {string} marker - Marker of the auth provider. Example: "email".
163
163
  * @param {string} token - Refresh token. Example: "abcdef123456".
164
164
  * @returns {Promise<IAuthEntity | IError>} Returns an auth entity object with the following values: accessToken, refreshToken, user, and other auth-related data.
165
165
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -170,7 +170,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
170
170
  /**
171
171
  * User account logout.
172
172
  * @handleName logout
173
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
173
+ * @param {string} marker - Marker of the auth provider. Example: "email".
174
174
  * @param {string} token - Refresh token. Example: "abcdef123456".
175
175
  * @returns {Promise<boolean | IError>} Returns true if the logout was successful, or an error object if there was an issue.
176
176
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -182,7 +182,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
182
182
  /**
183
183
  * Logout of user account on all devices.
184
184
  * @handleName logoutAll
185
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
185
+ * @param {string} marker - Marker of the auth provider. Example: "email".
186
186
  * @returns {Promise<boolean | IError>} Returns true if the logout was successful, or an error object if there was an issue.
187
187
  * @throws {IError} When isShell=false and an error occurs during the fetch
188
188
  * @description This method requires user authorization.
@@ -193,13 +193,13 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
193
193
  /**
194
194
  * Change password.
195
195
  * @handleName changePassword
196
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
197
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
198
- * @param {string} eventIdentifier - The text identifier of the event. Example: "reg".
199
- * @param {number} type - Operation type (1 - for changing password, 2 - for recovery). Example: 1.
200
- * @param {string} code - Service code. Example: "123456".
196
+ * @param {string} marker - Marker of the auth provider. Example: "email".
197
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
198
+ * @param {string} eventIdentifier - Marker of the event the code was generated for (the `eventIdentifier` passed to `generateCode`). Example: "reg".
199
+ * @param {number} type - Operation type: `1` to change the password, `2` to recover it. Example: 1.
200
+ * @param {string} code - One-time code the user received. Example: "123456".
201
201
  * @param {string} newPassword - New password. Example: "newPassword123".
202
- * @param {string} [repeatPassword] - Optional variable contains repeat new password for validation. Example: "newPassword123".
202
+ * @param {string} [repeatPassword] - New password repeated for confirmation. Optional. Example: "newPassword123".
203
203
  * @returns {Promise<boolean | IError>} Returns true if the password was successfully changed, or an error object if there was an issue.
204
204
  * @throws {IError} When isShell=false and an error occurs during the fetch
205
205
  * @description User password change (only for tariffs with account activation and the Activation feature enabled).
@@ -210,8 +210,8 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
210
210
  * Get all auth providers objects.
211
211
  * @handleName getAuthProviders
212
212
  * @param {string} [langCode] - Language code. Default: "en_US".
213
- * @param {number} [offset] - Parameter for pagination. Default: 0.
214
- * @param {number} [limit] - Parameter for pagination. Default: 30.
213
+ * @param {number} [offset] - Number of records to skip. Default: 0.
214
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
215
215
  * @returns {Promise<IAuthProvidersEntity[] | IError>} Returns an array of auth provider objects.
216
216
  * @throws {IError} When isShell=false and an error occurs during the fetch
217
217
  * @description Getting all objects of authorization providers.
@@ -221,7 +221,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
221
221
  /**
222
222
  * Get one auth provider object by marker.
223
223
  * @handleName getAuthProviderByMarker
224
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
224
+ * @param {string} marker - Marker of the auth provider. Example: "email".
225
225
  * @param {string} [langCode] - Language code. Default: "en_US".
226
226
  * @returns {Promise<IAuthProvidersEntity | IError>} Returns an auth provider object.
227
227
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -232,7 +232,7 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
232
232
  /**
233
233
  * Getting active user sessions data.
234
234
  * @handleName getActiveSessionsByMarker
235
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
235
+ * @param {string} marker - Marker of the auth provider. Example: "email".
236
236
  * @returns {Promise<IActiveSession[] | IError>} Array of the authenticated user's active sessions for this provider, one per device (`deviceInfo`).
237
237
  * @throws {IError} When isShell=false and an error occurs during the fetch
238
238
  * @description Getting the authenticated user's active sessions for the authorization provider. This method requires user authorization.
@@ -242,8 +242,8 @@ export default class AuthProviderApi extends AsyncModules implements IAuthProvid
242
242
  /**
243
243
  * User registration (authorization) via OAUTH.
244
244
  * @handleName oauth
245
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
246
- * @param {IOauthData} body - Object contains OAuth information for registration.
245
+ * @param {string} marker - Marker of the auth provider. Example: "email".
246
+ * @param {IOauthData} body - OAuth data for registration.
247
247
  * @example
248
248
  {
249
249
  "client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
@@ -21,7 +21,7 @@ export default class AuthProviderApi extends AsyncModules {
21
21
  /**
22
22
  * User registration.
23
23
  * @handleName signUp
24
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
24
+ * @param {string} marker - Marker of the auth provider. Example: "email".
25
25
  * @param {ISignUpData} body - Request body.
26
26
  * @example
27
27
  {
@@ -49,7 +49,7 @@ export default class AuthProviderApi extends AsyncModules {
49
49
  "phoneSMS": "+99999999999"
50
50
  }
51
51
  }
52
- * @param {string} body.formIdentifier - The identifier for the registration form. Example: "reg".
52
+ * @param {string} body.formIdentifier - Marker of the registration form. Example: "reg".
53
53
  * @param {{ marker: string; value: string }[]} body.authData - An array of authentication data objects, each containing a marker and its corresponding value.
54
54
  * @example
55
55
  [
@@ -62,14 +62,14 @@ export default class AuthProviderApi extends AsyncModules {
62
62
  "value": "12345"
63
63
  }
64
64
  ]
65
- * @param {IAuthFormData} body.formData - The form data for the registration, which can be a single object or an array of objects.
65
+ * @param {FormDataType | FormDataType[]} body.formData - Registration form fields: one object or an array. Field values: {@link FormDataType} — a value shaped by the field type (a string, a date object, a text object, a list, a file descriptor), not only a string. A file goes in as the descriptor `FileUploading.upload` returns: these methods do not upload a `File`/`Blob` themselves.
66
66
  * @example
67
67
  {
68
68
  "marker": "last_name",
69
69
  "type": "string",
70
70
  "value": "Name"
71
71
  }
72
- * @param {object} body.notificationData - An object containing notification data, including email, phonePush, and phoneSMS.
72
+ * @param {object} body.notificationData - Notification contacts: `email`, `phonePush` and `phoneSMS`.
73
73
  * @example
74
74
  {
75
75
  "email": "example@oneentry.cloud",
@@ -96,9 +96,9 @@ export default class AuthProviderApi extends AsyncModules {
96
96
  /**
97
97
  * Getting a user activation code. The code is returned via the appropriate user notification method.
98
98
  * @handleName generateCode
99
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
100
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
101
- * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
99
+ * @param {string} marker - Marker of the auth provider. Example: "email".
100
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
101
+ * @param {string} eventIdentifier - Marker of the event the code is generated for. Example: "user_registration".
102
102
  * @returns {Promise<void | IError>} Returns void if the code is successfully generated, or an error object if there was an issue.
103
103
  * @throws {IError} When isShell=false and an error occurs during the fetch
104
104
  * @description Obtaining a code to activate the user.
@@ -115,10 +115,10 @@ export default class AuthProviderApi extends AsyncModules {
115
115
  /**
116
116
  * User activation code verification. Returns true (if the code is correct) or false (if it is incorrect).
117
117
  * @handleName checkCode
118
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
118
+ * @param {string} marker - Marker of the auth provider. Example: "email".
119
119
  * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
120
- * @param {string} eventIdentifier - Text identifier of the event object for which the code is generated. Example: "user_registration".
121
- * @param {string} code - Service code. Example: "123456".
120
+ * @param {string} eventIdentifier - Marker of the event the code is generated for. Example: "user_registration".
121
+ * @param {string} code - One-time code the user received. Example: "123456".
122
122
  * @returns {Promise<boolean | IError>} Returns true if the code is correct, or an error object if there was an issue.
123
123
  * @throws {IError} When isShell=false and an error occurs during the fetch
124
124
  * @description Checking the user activation code
@@ -136,9 +136,9 @@ export default class AuthProviderApi extends AsyncModules {
136
136
  /**
137
137
  * User activate.
138
138
  * @handleName activateUser
139
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
140
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
141
- * @param {string} code - Service code. Example: "123456".
139
+ * @param {string} marker - Marker of the auth provider. Example: "email".
140
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
141
+ * @param {string} code - One-time code the user received. Example: "123456".
142
142
  * @returns {Promise<boolean | IError>} Returns true if the user was successfully activated, or an error object if there was an issue.
143
143
  * @throws {IError} When isShell=false and an error occurs during the fetch
144
144
  * @description User activation.
@@ -155,8 +155,8 @@ export default class AuthProviderApi extends AsyncModules {
155
155
  /**
156
156
  * User authorization.
157
157
  * @handleName auth
158
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
159
- * @param {IAuthPostBody} body - Objects contains auth information.
158
+ * @param {string} marker - Marker of the auth provider. Example: "email".
159
+ * @param {IAuthPostBody} body - Authentication data.
160
160
  * @example
161
161
  {
162
162
  "authData": [
@@ -201,7 +201,7 @@ export default class AuthProviderApi extends AsyncModules {
201
201
  /**
202
202
  * Refresh token.
203
203
  * @handleName refresh
204
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
204
+ * @param {string} marker - Marker of the auth provider. Example: "email".
205
205
  * @param {string} token - Refresh token. Example: "abcdef123456".
206
206
  * @returns {Promise<IAuthEntity | IError>} Returns an auth entity object with the following values: accessToken, refreshToken, user, and other auth-related data.
207
207
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -223,7 +223,7 @@ export default class AuthProviderApi extends AsyncModules {
223
223
  /**
224
224
  * User account logout.
225
225
  * @handleName logout
226
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
226
+ * @param {string} marker - Marker of the auth provider. Example: "email".
227
227
  * @param {string} token - Refresh token. Example: "abcdef123456".
228
228
  * @returns {Promise<boolean | IError>} Returns true if the logout was successful, or an error object if there was an issue.
229
229
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -248,7 +248,7 @@ export default class AuthProviderApi extends AsyncModules {
248
248
  /**
249
249
  * Logout of user account on all devices.
250
250
  * @handleName logoutAll
251
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
251
+ * @param {string} marker - Marker of the auth provider. Example: "email".
252
252
  * @returns {Promise<boolean | IError>} Returns true if the logout was successful, or an error object if there was an issue.
253
253
  * @throws {IError} When isShell=false and an error occurs during the fetch
254
254
  * @description This method requires user authorization.
@@ -269,13 +269,13 @@ export default class AuthProviderApi extends AsyncModules {
269
269
  /**
270
270
  * Change password.
271
271
  * @handleName changePassword
272
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
273
- * @param {string} userIdentifier - The text identifier of the user's object (user login). Example: "example@oneentry.cloud".
274
- * @param {string} eventIdentifier - The text identifier of the event. Example: "reg".
275
- * @param {number} type - Operation type (1 - for changing password, 2 - for recovery). Example: 1.
276
- * @param {string} code - Service code. Example: "123456".
272
+ * @param {string} marker - Marker of the auth provider. Example: "email".
273
+ * @param {string} userIdentifier - Identifier (login) of the user, such as an email address. Example: "example@oneentry.cloud".
274
+ * @param {string} eventIdentifier - Marker of the event the code was generated for (the `eventIdentifier` passed to `generateCode`). Example: "reg".
275
+ * @param {number} type - Operation type: `1` to change the password, `2` to recover it. Example: 1.
276
+ * @param {string} code - One-time code the user received. Example: "123456".
277
277
  * @param {string} newPassword - New password. Example: "newPassword123".
278
- * @param {string} [repeatPassword] - Optional variable contains repeat new password for validation. Example: "newPassword123".
278
+ * @param {string} [repeatPassword] - New password repeated for confirmation. Optional. Example: "newPassword123".
279
279
  * @returns {Promise<boolean | IError>} Returns true if the password was successfully changed, or an error object if there was an issue.
280
280
  * @throws {IError} When isShell=false and an error occurs during the fetch
281
281
  * @description User password change (only for tariffs with account activation and the Activation feature enabled).
@@ -297,8 +297,8 @@ export default class AuthProviderApi extends AsyncModules {
297
297
  * Get all auth providers objects.
298
298
  * @handleName getAuthProviders
299
299
  * @param {string} [langCode] - Language code. Default: "en_US".
300
- * @param {number} [offset] - Parameter for pagination. Default: 0.
301
- * @param {number} [limit] - Parameter for pagination. Default: 30.
300
+ * @param {number} [offset] - Number of records to skip. Default: 0.
301
+ * @param {number} [limit] - Maximum number of records to return. Default: 30.
302
302
  * @returns {Promise<IAuthProvidersEntity[] | IError>} Returns an array of auth provider objects.
303
303
  * @throws {IError} When isShell=false and an error occurs during the fetch
304
304
  * @description Getting all objects of authorization providers.
@@ -313,7 +313,7 @@ export default class AuthProviderApi extends AsyncModules {
313
313
  /**
314
314
  * Get one auth provider object by marker.
315
315
  * @handleName getAuthProviderByMarker
316
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
316
+ * @param {string} marker - Marker of the auth provider. Example: "email".
317
317
  * @param {string} [langCode] - Language code. Default: "en_US".
318
318
  * @returns {Promise<IAuthProvidersEntity | IError>} Returns an auth provider object.
319
319
  * @throws {IError} When isShell=false and an error occurs during the fetch
@@ -327,7 +327,7 @@ export default class AuthProviderApi extends AsyncModules {
327
327
  /**
328
328
  * Getting active user sessions data.
329
329
  * @handleName getActiveSessionsByMarker
330
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
330
+ * @param {string} marker - Marker of the auth provider. Example: "email".
331
331
  * @returns {Promise<IActiveSession[] | IError>} Array of the authenticated user's active sessions for this provider, one per device (`deviceInfo`).
332
332
  * @throws {IError} When isShell=false and an error occurs during the fetch
333
333
  * @description Getting the authenticated user's active sessions for the authorization provider. This method requires user authorization.
@@ -340,8 +340,8 @@ export default class AuthProviderApi extends AsyncModules {
340
340
  /**
341
341
  * User registration (authorization) via OAUTH.
342
342
  * @handleName oauth
343
- * @param {string} marker - The text identifier of the authorization provider. Example: "email".
344
- * @param {IOauthData} body - Object contains OAuth information for registration.
343
+ * @param {string} marker - Marker of the auth provider. Example: "email".
344
+ * @param {IOauthData} body - OAuth data for registration.
345
345
  * @example
346
346
  {
347
347
  "client_id": "34346983-luuct343473qdkqidjopdfp3eb3k4thp.apps.googleusercontent.com",
@@ -49,7 +49,7 @@ export declare const UserResponseSchema: z.ZodObject<{
49
49
  authProviderIdentifier: z.ZodString;
50
50
  formData: z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>;
51
51
  formIdentifier: z.ZodString;
52
- total: z.ZodString;
52
+ total: z.ZodOptional<z.ZodString>;
53
53
  groups: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>>;
54
54
  state: z.ZodRecord<z.ZodString, z.ZodAny>;
55
55
  moduleFormConfigs: z.ZodOptional<z.ZodArray<z.ZodAny>>;