oneentry 1.0.130 → 1.0.131

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 (52) hide show
  1. package/dist/admins/adminsApi.d.ts +2 -2
  2. package/dist/admins/adminsApi.js +2 -2
  3. package/dist/admins/adminsInterfaces.d.ts +4 -3
  4. package/dist/attribute-sets/attributeSetsApi.d.ts +0 -4
  5. package/dist/attribute-sets/attributeSetsApi.js +0 -4
  6. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +42 -32
  7. package/dist/auth-provider/authProviderApi.d.ts +18 -9
  8. package/dist/auth-provider/authProviderApi.js +18 -9
  9. package/dist/auth-provider/authProvidersInterfaces.d.ts +20 -10
  10. package/dist/blocks/blocksApi.d.ts +0 -4
  11. package/dist/blocks/blocksApi.js +0 -4
  12. package/dist/config.d.ts +1 -1
  13. package/dist/config.js +3 -1
  14. package/dist/events/eventsApi.d.ts +6 -3
  15. package/dist/events/eventsApi.js +6 -3
  16. package/dist/events/eventsInterfaces.d.ts +2 -1
  17. package/dist/file-uploading/fileUploadingApi.d.ts +12 -6
  18. package/dist/file-uploading/fileUploadingApi.js +12 -6
  19. package/dist/file-uploading/fileUploadingInterfaces.d.ts +10 -5
  20. package/dist/forms/formsApi.d.ts +4 -2
  21. package/dist/forms/formsApi.js +4 -2
  22. package/dist/forms/formsInterfaces.d.ts +2 -1
  23. package/dist/forms-data/formsDataApi.d.ts +19 -9
  24. package/dist/forms-data/formsDataApi.js +19 -9
  25. package/dist/forms-data/formsDataInterfaces.d.ts +38 -18
  26. package/dist/integration-collections/integrationCollectionsApi.d.ts +10 -5
  27. package/dist/integration-collections/integrationCollectionsApi.js +10 -5
  28. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +20 -10
  29. package/dist/menus/menusInterfaces.d.ts +8 -4
  30. package/dist/orders/ordersApi.d.ts +16 -8
  31. package/dist/orders/ordersApi.js +16 -8
  32. package/dist/orders/ordersInterfaces.d.ts +39 -18
  33. package/dist/pages/pagesApi.d.ts +2 -1
  34. package/dist/pages/pagesApi.js +2 -1
  35. package/dist/pages/pagesInterfaces.d.ts +10 -5
  36. package/dist/payments/paymentsApi.d.ts +20 -12
  37. package/dist/payments/paymentsApi.js +20 -12
  38. package/dist/payments/paymentsInterfaces.d.ts +25 -7
  39. package/dist/product-statuses/productStatusesInterfaces.d.ts +5 -4
  40. package/dist/products/productsApi.d.ts +28 -15
  41. package/dist/products/productsApi.js +28 -15
  42. package/dist/products/productsInterfaces.d.ts +33 -18
  43. package/dist/system/systemApi.d.ts +2 -1
  44. package/dist/system/systemApi.js +2 -1
  45. package/dist/templates/templatesInterfaces.d.ts +3 -2
  46. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +8 -4
  47. package/dist/users/usersApi.d.ts +14 -7
  48. package/dist/users/usersApi.js +14 -7
  49. package/dist/users/usersInterfaces.d.ts +23 -11
  50. package/dist/web-socket/wsApi.d.ts +2 -1
  51. package/dist/web-socket/wsApi.js +2 -1
  52. package/package.json +1 -1
@@ -34,7 +34,8 @@ class EventsApi extends asyncModules_1.default {
34
34
  * @param {number} [limit] - Optional limit for pagination. Default: 30.
35
35
  * @returns {ISubscriptions} Returns an object containing all subscriptions or an error object if there was an issue.
36
36
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
37
- * @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.
37
+ * @description This method requires user authorization.
38
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
38
39
  */
39
40
  async getAllSubscriptions(offset = 0, limit = 30) {
40
41
  const query = {
@@ -52,7 +53,8 @@ class EventsApi extends asyncModules_1.default {
52
53
  * @param {string} [langCode] - Language code. Default: "en_US".=
53
54
  * @returns {Promise<boolean | IError>} Returns true if subscription was successful, or an error object if there was an issue.
54
55
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
55
- * @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.
56
+ * @description This method requires user authorization.
57
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
56
58
  */
57
59
  async subscribeByMarker(marker, productId, langCode = this.state.lang) {
58
60
  const body = {
@@ -75,7 +77,8 @@ class EventsApi extends asyncModules_1.default {
75
77
  * @param {string} [langCode] - Language code. Default: "en_US".
76
78
  * @returns {any} - Returns a promise that resolves to the result of the unsubscription operation or an error object if there was an issue.
77
79
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
78
- * @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.
80
+ * @description This method requires user authorization.
81
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
79
82
  */
80
83
  async unsubscribeByMarker(marker, productId, langCode = this.state.lang) {
81
84
  const body = {
@@ -42,7 +42,8 @@ interface IEvents {
42
42
  * Represents a response from the events API containing a total count and an array of subscription items.
43
43
  * @interface ISubscriptions
44
44
  * @property {number} total - Total number of found records. Example: 100.
45
- * @property {{ eventMarker: string; productId: number }[]} items - Array of subscription items, each containing an event marker and a product ID. Example:
45
+ * @property {{ eventMarker: string; productId: number }[]} items - Array of subscription items, each containing an event marker and a product ID.
46
+ * @example
46
47
  [
47
48
  {
48
49
  eventMarker: 'product_price_change',
@@ -14,15 +14,17 @@ export default class FileUploadingApi extends AsyncModules implements IFileUploa
14
14
  protected state: StateModule;
15
15
  protected _url: string;
16
16
  /**
17
- *
17
+ * Constructs a new instance of the FileUploadingApi class.
18
18
  */
19
19
  constructor(state: StateModule);
20
+ /** FileUploadingApi class */
20
21
  private _defaultQuery;
21
22
  /**
22
23
  * Upload file function.
23
24
  * @handleName upload
24
25
  * @param {File | Blob} file - File to upload. Example: `new File(["content"], "file.png", {"type": "image/png"})`
25
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
26
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
27
+ * @example
26
28
  {
27
29
  "type": "page",
28
30
  "entity": "editor",
@@ -41,14 +43,16 @@ export default class FileUploadingApi extends AsyncModules implements IFileUploa
41
43
  * @param {any} [fileQuery.template] - preview template identifier. Example: 1.
42
44
  * @returns {IUploadingReturn[]} Uploads a file to an Amazon S3-compatible cloud file storage.
43
45
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
44
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
46
+ * @description This method requires user authorization.
47
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
45
48
  */
46
49
  upload(file: File | Blob, fileQuery?: IUploadingQuery): Promise<IUploadingReturn[] | IError>;
47
50
  /**
48
51
  * Deletes a file from the cloud file storage.
49
52
  * @handleName delete
50
53
  * @param {string} filename - File name. Example: "file.png".
51
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
54
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
55
+ * @example
52
56
  {
53
57
  "type": "page",
54
58
  "entity": "editor",
@@ -61,7 +65,8 @@ export default class FileUploadingApi extends AsyncModules implements IFileUploa
61
65
  * @param {number} [fileQuery.template] - preview template identifier. Example: 1.
62
66
  * @returns {any} Returns a promise that resolves to the result of the deletion operation or an error object if there was an issue.
63
67
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
64
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
68
+ * @description This method requires user authorization.
69
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
65
70
  */
66
71
  delete(filename: string, fileQuery?: IUploadingQuery): Promise<any | IError>;
67
72
  /**
@@ -74,7 +79,8 @@ export default class FileUploadingApi extends AsyncModules implements IFileUploa
74
79
  * @param {string} [template] - Preview template identifier. Example: 1.
75
80
  * @returns {any} Returns a promise that resolves to a Blob object containing the file data or an error object if there was an issue.
76
81
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
77
- * @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.
82
+ * @description This method requires user authorization.
83
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
78
84
  */
79
85
  getFile(id: number, type: string, entity: string, filename: string, template?: string): Promise<any | IError>;
80
86
  }
@@ -16,10 +16,11 @@ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
16
16
  */
17
17
  class FileUploadingApi extends asyncModules_1.default {
18
18
  /**
19
- *
19
+ * Constructs a new instance of the FileUploadingApi class.
20
20
  */
21
21
  constructor(state) {
22
22
  super(state);
23
+ /** FileUploadingApi class */
23
24
  this._defaultQuery = {
24
25
  type: null,
25
26
  entity: null,
@@ -34,7 +35,8 @@ class FileUploadingApi extends asyncModules_1.default {
34
35
  * Upload file function.
35
36
  * @handleName upload
36
37
  * @param {File | Blob} file - File to upload. Example: `new File(["content"], "file.png", {"type": "image/png"})`
37
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
38
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
39
+ * @example
38
40
  {
39
41
  "type": "page",
40
42
  "entity": "editor",
@@ -53,7 +55,8 @@ class FileUploadingApi extends asyncModules_1.default {
53
55
  * @param {any} [fileQuery.template] - preview template identifier. Example: 1.
54
56
  * @returns {IUploadingReturn[]} Uploads a file to an Amazon S3-compatible cloud file storage.
55
57
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
56
- * @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.
58
+ * @description This method requires user authorization.
59
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
57
60
  */
58
61
  async upload(file, fileQuery) {
59
62
  const query = { ...this._defaultQuery, ...fileQuery };
@@ -66,7 +69,8 @@ class FileUploadingApi extends asyncModules_1.default {
66
69
  * Deletes a file from the cloud file storage.
67
70
  * @handleName delete
68
71
  * @param {string} filename - File name. Example: "file.png".
69
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
72
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
73
+ * @example
70
74
  {
71
75
  "type": "page",
72
76
  "entity": "editor",
@@ -79,7 +83,8 @@ class FileUploadingApi extends asyncModules_1.default {
79
83
  * @param {number} [fileQuery.template] - preview template identifier. Example: 1.
80
84
  * @returns {any} Returns a promise that resolves to the result of the deletion operation or an error object if there was an issue.
81
85
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
82
- * @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
+ * @description This method requires user authorization.
87
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
83
88
  */
84
89
  async delete(filename, fileQuery) {
85
90
  const query = { ...this._defaultQuery, ...fileQuery };
@@ -96,7 +101,8 @@ class FileUploadingApi extends asyncModules_1.default {
96
101
  * @param {string} [template] - Preview template identifier. Example: 1.
97
102
  * @returns {any} Returns a promise that resolves to a Blob object containing the file data or an error object if there was an issue.
98
103
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
99
- * @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.
104
+ * @description This method requires user authorization.
105
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
100
106
  */
101
107
  async getFile(id, type, entity, filename, template) {
102
108
  // eslint-disable-next-line no-undef
@@ -12,7 +12,8 @@ interface IFileUploading {
12
12
  * Upload file function.
13
13
  * @handleName upload
14
14
  * @param {File | Blob} file - File to upload. Example: `new File(["content"], "file.png", {"type": "image/png"})`
15
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
15
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
16
+ * @example
16
17
  {
17
18
  "type": "page",
18
19
  "entity": "editor",
@@ -31,14 +32,16 @@ interface IFileUploading {
31
32
  * @param {any} [fileQuery.template] - preview template identifier. Example: 1.
32
33
  * @returns {IUploadingReturn[]} Uploads a file to an Amazon S3-compatible cloud file storage.
33
34
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
34
- * @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.
35
+ * @description This method requires user authorization.
36
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
35
37
  */
36
38
  upload(file: File | Blob, fileQuery?: IUploadingQuery): Promise<IUploadingReturn[] | IError>;
37
39
  /**
38
40
  * Deletes a file from the cloud file storage.
39
41
  * @handleName delete
40
42
  * @param {string} [filename] - File name. Example: "file.png".
41
- * @param {IUploadingQuery} [fileQuery] - Optional set query parameters. Example:
43
+ * @param {IUploadingQuery} [fileQuery] - Optional set query parameters.
44
+ * @example
42
45
  {
43
46
  "type": "page",
44
47
  "entity": "editor",
@@ -51,7 +54,8 @@ interface IFileUploading {
51
54
  * @param {number} [fileQuery.template] - preview template identifier. Example: 1.
52
55
  * @returns {any} Returns a promise that resolves to the result of the deletion operation or an error object if there was an issue.
53
56
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
54
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
57
+ * @description This method requires user authorization.
58
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
55
59
  */
56
60
  delete(filename: string, fileQuery?: IUploadingQuery): Promise<any | IError>;
57
61
  /**
@@ -63,7 +67,8 @@ interface IFileUploading {
63
67
  * @param {string} [filename] - Optional filename to retrieve. Example: "file.png".
64
68
  * @returns {Blob} A promise that resolves to a Blob object or an error.
65
69
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
66
- * @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.
70
+ * @description This method requires user authorization.
71
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
67
72
  */
68
73
  getFile(id: number, type: string, entity: string, filename?: string): Promise<any | IError>;
69
74
  }
@@ -28,7 +28,8 @@ export default class FormsApi extends AsyncModules implements IForms {
28
28
  * @param {number} [limit] - Parameter for pagination. Default: 30.
29
29
  * @returns {IFormsEntity[]} Returns array for all objects of type FormEntity.
30
30
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
31
- * @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.
31
+ * @description This method requires user authorization.
32
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
32
33
  */
33
34
  getAllForms(langCode?: string, offset?: number, limit?: number): Promise<IFormsEntity[] | IError>;
34
35
  /**
@@ -38,7 +39,8 @@ export default class FormsApi extends AsyncModules implements IForms {
38
39
  * @param {string} [langCode] - Language code. Default: "en_US".
39
40
  * @returns {IFormsEntity} Returns object of type FormEntity.
40
41
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
41
- * @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.
42
+ * @description This method requires user authorization.
43
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
42
44
  */
43
45
  getFormByMarker(marker: string, langCode?: string): Promise<IFormsEntity | IError>;
44
46
  }
@@ -31,7 +31,8 @@ class FormsApi extends asyncModules_1.default {
31
31
  * @param {number} [limit] - Parameter for pagination. Default: 30.
32
32
  * @returns {IFormsEntity[]} Returns array for all objects of type FormEntity.
33
33
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
34
- * @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.
34
+ * @description This method requires user authorization.
35
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
35
36
  */
36
37
  async getAllForms(langCode = this.state.lang, offset = 0, limit = 30) {
37
38
  const result = await this._fetchGet(`?langCode=${langCode}&offset=${offset}&limit=${limit}`);
@@ -44,7 +45,8 @@ class FormsApi extends asyncModules_1.default {
44
45
  * @param {string} [langCode] - Language code. Default: "en_US".
45
46
  * @returns {IFormsEntity} Returns object of type FormEntity.
46
47
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
47
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
48
+ * @description This method requires user authorization.
49
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
48
50
  */
49
51
  async getFormByMarker(marker, langCode = this.state.lang) {
50
52
  const result = await this._fetchGet(`/marker/${marker}?langCode=${langCode}`);
@@ -37,7 +37,8 @@ interface IForms {
37
37
  * @property {number} pageId - The identifier of the page. Example: 12.
38
38
  * @property {number} formId - The identifier of the form. Example: 321.
39
39
  * @property {number} positionId - The identifier of the position. Example: 1.
40
- * @property {IPosition} position - The position object. Example:
40
+ * @property {IPosition} position - The position object.
41
+ * @example
41
42
  {
42
43
  "id": 1,
43
44
  "position": 1,
@@ -25,13 +25,15 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
25
25
  * @param {number} [limit] - Parameter for pagination. Default: 30.
26
26
  * @returns {IFormsDataEntity} Returns an object containing all forms data or an error object if there was an issue.
27
27
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
28
- * @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.
28
+ * @description This method requires user authorization.
29
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
29
30
  */
30
31
  getFormsData(langCode?: string, offset?: number, limit?: number): Promise<IFormsDataEntity | IError>;
31
32
  /**
32
33
  * Creating an object of data save information by form
33
34
  * @handleName postFormsData
34
- * @param {IBodyPostFormData} body - Request body. Example:
35
+ * @param {IBodyPostFormData} body - Request body.
36
+ * @example
35
37
  {
36
38
  "formIdentifier": "test-form",
37
39
  "formModuleConfigId": 2,
@@ -47,7 +49,12 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
47
49
  ]
48
50
  }
49
51
  * @param {string} body.formIdentifier - The identifier for the form. Example: "form".
50
- * @param {FormDataType[]} body.formData - Form data. Example:
52
+ * @param {number} body.formModuleConfigId - The ID of the form module configuration. Example: 2.
53
+ * @param {string} body.moduleEntityIdentifier - The identifier of the module entity. Example: "form".
54
+ * @param {string | null} [body.replayTo] - The email address to which the reply should be sent.
55
+ * @param {string | null} [body.status] - The status of the form submission.
56
+ * @param {FormDataType[]} body.formData - Form data.
57
+ * @example
51
58
  [
52
59
  {
53
60
  "marker": "name",
@@ -55,13 +62,14 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
55
62
  "value": "Jack"
56
63
  }
57
64
  ]
58
- * @param {string} body.formData.marker - The marker identifying the form field. Example: "name".
59
- * @param {string} body.formData.type - The type of the form field. Example: "string".
60
- * @param {string} body.formData.value - The value of the form field. Example: "Jack".
65
+ * @param {string} body.formData[].marker - The marker identifying the form field. Example: "name".
66
+ * @param {string} body.formData[].type - The type of the form field. Example: "string".
67
+ * @param {string} body.formData[].value - The value of the form field. Example: "Jack".
61
68
  * @param {string} [langCode] - Language code. Default: "en_US".
62
69
  * @returns {IPostFormResponse} Returns an object containing the created form data entry and message.
63
70
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
64
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
71
+ * @description This method requires user authorization.
72
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
65
73
  */
66
74
  postFormsData(body: IBodyPostFormData, langCode?: string): Promise<IPostFormResponse | IError>;
67
75
  /**
@@ -69,7 +77,8 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
69
77
  * @handleName getFormsDataByMarker
70
78
  * @param {string} marker - Marker of the form. Example: "contact_form".
71
79
  * @param {number} formModuleConfigId - Form module configuration ID. Example: 4.
72
- * @param {object} [body] - Request body. Example:
80
+ * @param {object} [body] - Request body.
81
+ * @example
73
82
  {
74
83
  "entityIdentifier": "test",
75
84
  "userIdentifier": "",
@@ -83,7 +92,8 @@ export default class FormsDataApi extends AsyncModules implements IFormsData {
83
92
  * @param {number} [limit] - Parameter for pagination. Default: 30.
84
93
  * @returns {IFormsByMarkerDataEntity} Returns an object containing the form data or an error object if there was an issue.
85
94
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
86
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
95
+ * @description This method requires user authorization.
96
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
87
97
  */
88
98
  getFormsDataByMarker(marker: string, formModuleConfigId: number, body?: object, isNested?: number, langCode?: string, offset?: number, limit?: number): Promise<IFormsByMarkerDataEntity | IError>;
89
99
  }
@@ -31,7 +31,8 @@ class FormsDataApi extends asyncModules_1.default {
31
31
  * @param {number} [limit] - Parameter for pagination. Default: 30.
32
32
  * @returns {IFormsDataEntity} Returns an object containing all forms data or an error object if there was an issue.
33
33
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
34
- * @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.
34
+ * @description This method requires user authorization.
35
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
35
36
  */
36
37
  async getFormsData(langCode = this.state.lang, offset = 0, limit = 30) {
37
38
  const result = await this._fetchGet(`?langCode=${langCode}&offset=${offset}&limit=${limit}`);
@@ -40,7 +41,8 @@ class FormsDataApi extends asyncModules_1.default {
40
41
  /**
41
42
  * Creating an object of data save information by form
42
43
  * @handleName postFormsData
43
- * @param {IBodyPostFormData} body - Request body. Example:
44
+ * @param {IBodyPostFormData} body - Request body.
45
+ * @example
44
46
  {
45
47
  "formIdentifier": "test-form",
46
48
  "formModuleConfigId": 2,
@@ -56,7 +58,12 @@ class FormsDataApi extends asyncModules_1.default {
56
58
  ]
57
59
  }
58
60
  * @param {string} body.formIdentifier - The identifier for the form. Example: "form".
59
- * @param {FormDataType[]} body.formData - Form data. Example:
61
+ * @param {number} body.formModuleConfigId - The ID of the form module configuration. Example: 2.
62
+ * @param {string} body.moduleEntityIdentifier - The identifier of the module entity. Example: "form".
63
+ * @param {string | null} [body.replayTo] - The email address to which the reply should be sent.
64
+ * @param {string | null} [body.status] - The status of the form submission.
65
+ * @param {FormDataType[]} body.formData - Form data.
66
+ * @example
60
67
  [
61
68
  {
62
69
  "marker": "name",
@@ -64,13 +71,14 @@ class FormsDataApi extends asyncModules_1.default {
64
71
  "value": "Jack"
65
72
  }
66
73
  ]
67
- * @param {string} body.formData.marker - The marker identifying the form field. Example: "name".
68
- * @param {string} body.formData.type - The type of the form field. Example: "string".
69
- * @param {string} body.formData.value - The value of the form field. Example: "Jack".
74
+ * @param {string} body.formData[].marker - The marker identifying the form field. Example: "name".
75
+ * @param {string} body.formData[].type - The type of the form field. Example: "string".
76
+ * @param {string} body.formData[].value - The value of the form field. Example: "Jack".
70
77
  * @param {string} [langCode] - Language code. Default: "en_US".
71
78
  * @returns {IPostFormResponse} Returns an object containing the created form data entry and message.
72
79
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
73
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
80
+ * @description This method requires user authorization.
81
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
74
82
  */
75
83
  async postFormsData(body, langCode = this.state.lang) {
76
84
  const formData = {};
@@ -130,7 +138,8 @@ class FormsDataApi extends asyncModules_1.default {
130
138
  * @handleName getFormsDataByMarker
131
139
  * @param {string} marker - Marker of the form. Example: "contact_form".
132
140
  * @param {number} formModuleConfigId - Form module configuration ID. Example: 4.
133
- * @param {object} [body] - Request body. Example:
141
+ * @param {object} [body] - Request body.
142
+ * @example
134
143
  {
135
144
  "entityIdentifier": "test",
136
145
  "userIdentifier": "",
@@ -144,7 +153,8 @@ class FormsDataApi extends asyncModules_1.default {
144
153
  * @param {number} [limit] - Parameter for pagination. Default: 30.
145
154
  * @returns {IFormsByMarkerDataEntity} Returns an object containing the form data or an error object if there was an issue.
146
155
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
147
- * @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.
156
+ * @description This method requires user authorization.
157
+ * @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
148
158
  */
149
159
  async getFormsDataByMarker(marker, formModuleConfigId, body = {}, isNested = 1, langCode = this.state.lang, offset = 0, limit = 30) {
150
160
  const result = await this._fetchPost(`/marker/${marker}?formModuleConfigId=${formModuleConfigId}&isNested=${isNested}&langCode=${langCode}&offset=${offset}&limit=${limit}`, body);
@@ -23,7 +23,8 @@ interface IFormsData {
23
23
  /**
24
24
  * Creating an object of data save information by form
25
25
  * @handleName postFormsData
26
- * @param {IBodyPostFormData} body - Request body. Example:
26
+ * @param {IBodyPostFormData} body - Request body.
27
+ * @example
27
28
  {
28
29
  "formIdentifier": "test-form",
29
30
  "formModuleConfigId": 2,
@@ -39,7 +40,12 @@ interface IFormsData {
39
40
  ]
40
41
  }
41
42
  * @param {string} body.formIdentifier - The identifier for the form. Example: "form".
42
- * @param {FormDataType[]} body.formData - Form data. Example:
43
+ * @param {number} body.formModuleConfigId - The ID of the form module configuration. Example: 2.
44
+ * @param {string} body.moduleEntityIdentifier - The identifier of the module entity. Example: "form".
45
+ * @param {string | null} [body.replayTo] - The email address to which the reply should be sent.
46
+ * @param {string | null} [body.status] - The status of the form submission.
47
+ * @param {FormDataType[]} body.formData - Form data.
48
+ * @example
43
49
  [
44
50
  {
45
51
  "marker": "name",
@@ -53,7 +59,6 @@ interface IFormsData {
53
59
  * @param {string} [langCode] - Language code. Default: "en_US".
54
60
  * @returns {IPostFormResponse} Returns an object containing the created form data entry and message.
55
61
  * @throws {IError} - If there is an error during the fetch operation, it will return an error object.
56
- * @description This method requires user authorization. For more information about configuring the authorization module, see the documentation in the configuration settings section of the SDK.
57
62
  */
58
63
  postFormsData(body: IBodyPostFormData, langCode?: string): Promise<IPostFormResponse | IError>;
59
64
  /**
@@ -61,7 +66,8 @@ interface IFormsData {
61
66
  * @handleName getFormsDataByMarker
62
67
  * @param {string} marker - The marker identifying the form data. Example: "contact_form_data".
63
68
  * @param {number} formModuleConfigId - The form module configuration ID. Example: 4.
64
- * @param {object} [body] - Request body. Default: {}. Example:
69
+ * @param {object} [body] - Request body. Default: {}.
70
+ * @example
65
71
  {
66
72
  "entityIdentifier": "test",
67
73
  "userIdentifier": "",
@@ -85,7 +91,8 @@ interface IFormsData {
85
91
  * @property {number} id - The unique identifier of the form page. Example: 12345.
86
92
  * @property {string} formIdentifier - The identifier of the page. Example: "contact_form".
87
93
  * @property {Date | string} time - The identifier of the form. Example: "2023-10-01T12:00:00Z".
88
- * @property {FormDataType[]} formData - Form data. Example:
94
+ * @property {FormDataType[]} formData - Form data.
95
+ * @example
89
96
  [
90
97
  {
91
98
  "marker": "name",
@@ -108,7 +115,8 @@ interface IFormDataEntity {
108
115
  /**
109
116
  * Represents a collection of form data entities.
110
117
  * @interface IFormsDataEntity
111
- * @property {IFormDataEntity[]} items - Array of form data objects. Example:
118
+ * @property {IFormDataEntity[]} items - Array of form data objects.
119
+ * @example
112
120
  [
113
121
  {
114
122
  "id": 1,
@@ -136,7 +144,8 @@ interface IFormsDataEntity {
136
144
  * @property {string | null} [ip] - Ip. Example: '127.0.0.1'.
137
145
  * @property {string | null} [status] - Status. Example: 'approved'.
138
146
  * @property {string | null} [userIdentifier] - Text identifier (marker) of the user. Example: "admin".
139
- * @property {FormDataType[]} formData - Form data. Example:
147
+ * @property {FormDataType[]} formData - Form data.
148
+ * @example
140
149
  [
141
150
  {
142
151
  "marker": "name",
@@ -169,7 +178,8 @@ interface IFormByMarkerDataEntity {
169
178
  /**
170
179
  * Represents a collection of form data entities.
171
180
  * @interface IFormsByMarkerDataEntity
172
- * @property {IFormByMarkerDataEntity[]} items - Array of form data objects. Example:
181
+ * @property {IFormByMarkerDataEntity[]} items - Array of form data objects.
182
+ * @example
173
183
  [
174
184
  {
175
185
  "id": 42,
@@ -204,7 +214,8 @@ interface IFormsByMarkerDataEntity {
204
214
  * Represents the structure of the response after posting form data.
205
215
  * @interface IPostFormResponse
206
216
  * @property {string} actionMessage - Action message for the form data. Example: "Form submitted successfully".
207
- * @property {object} formData - Form data. Example:
217
+ * @property {object} formData - Form data.
218
+ * @example
208
219
  {
209
220
  "id": 42,
210
221
  "formIdentifier": "contact_form",
@@ -230,7 +241,8 @@ interface IFormsByMarkerDataEntity {
230
241
  * @property {number} formData.formModuleId - The form module identifier. Example: 2.
231
242
  * @property {any} formData.parentId - The parent identifier. Example: null.
232
243
  * @property {any} formData.userIdentifier - The user identifier. Example: null.
233
- * @property {FormDataType[]} formData.formData - Form fields data. Example:
244
+ * @property {FormDataType[]} formData.formData - Form fields data.
245
+ * @example
234
246
  [
235
247
  {
236
248
  "marker": "name",
@@ -266,7 +278,8 @@ type FormDataType = IBodyTypeStringNumberFloat | IBodyTypeTimeDate | IBodyTypeTe
266
278
  * @property {string} moduleEntityIdentifier - Text identifier (marker) of the module entity. Example: "blog".
267
279
  * @property {string | null} replayTo - Email to reply to. Example: "some@email.com".
268
280
  * @property {string} status - Status of the form. Example: "sent".
269
- * @property {FormDataType[]} formData - Array of form data objects. Example:
281
+ * @property {FormDataType[]} formData - Array of form data objects.
282
+ * @example
270
283
  [
271
284
  {
272
285
  "marker": "name",
@@ -277,7 +290,8 @@ type FormDataType = IBodyTypeStringNumberFloat | IBodyTypeTimeDate | IBodyTypeTe
277
290
  * @property {string} formData[index].marker - The marker identifying the form field. Example: "name".
278
291
  * @property {string} formData[index].type - The type of the form field. Example: "string".
279
292
  * @property {string} formData[index].value - The value of the form field. Example: "name".
280
- * @property {IUploadingQuery} [fileQuery] - Optional file query for uploading files. Example:
293
+ * @property {IUploadingQuery} [fileQuery] - Optional file query for uploading files.
294
+ * @example
281
295
  {
282
296
  "type": "page",
283
297
  "entity": "editor",
@@ -312,7 +326,8 @@ interface IBodyTypeStringNumberFloat {
312
326
  * @interface IBodyTypeTimeDate
313
327
  * @property {string} marker - marker name. Example: "ome_marker".
314
328
  * @property {string} type - Type value. 'date' | 'dateTime' | 'time' Example: "date".
315
- * @property {object} value - Date object. Contains fullDate, formattedValue, formatString. Example:
329
+ * @property {object} value - Date object. Contains fullDate, formattedValue, formatString.
330
+ * @example
316
331
  {
317
332
  "fullDate": "2024-05-07T21:02:00.000Z",
318
333
  "formattedValue": "08-05-2024 00:02",
@@ -334,7 +349,8 @@ interface IBodyTypeTimeDate {
334
349
  * @interface IBodyTypeText
335
350
  * @property {string} marker - marker name. Example: "some_marker".
336
351
  * @property {string} type - Type value. Example: "text".
337
- * @property {object} value - Text Object. Contains html as string, plain text and params. Example:
352
+ * @property {object} value - Text Object. Contains html as string, plain text and params.
353
+ * @example
338
354
  {
339
355
  "htmlValue": "<p>Hello world</p>",
340
356
  "plainValue": "",
@@ -362,7 +378,8 @@ interface IBodyTypeText {
362
378
  * @interface IBodyTypeTextWithHeader
363
379
  * @property {string} marker - marker name. Example: "about".
364
380
  * @property {string} type - Type value. Example: "textWithHeader".
365
- * @property {object} value - Text Object. Contains html as string, header and params. Example:
381
+ * @property {object} value - Text Object. Contains html as string, header and params.
382
+ * @example
366
383
  {
367
384
  "header": "Headline",
368
385
  "htmlValue": "<p>Hello World</p>",
@@ -392,7 +409,8 @@ interface IBodyTypeTextWithHeader {
392
409
  * @interface IBodyTypeImageGroupOfImages
393
410
  * @property {string} marker - marker name. Example: "avatar".
394
411
  * @property {'image' | 'groupOfImage'} type - Type value. Example: "image".
395
- * @property {object} value - Image Object. Contains image information. Example:
412
+ * @property {object} value - Image Object. Contains image information.
413
+ * @example
396
414
  [
397
415
  {
398
416
  "filename": "files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
@@ -432,7 +450,8 @@ interface IBodyTypeImageGroupOfImages {
432
450
  * @interface IBodyTypeFile
433
451
  * @property {string} marker - marker name. Example: "picture".
434
452
  * @property {'file'} type - Type value. Example: "file".
435
- * @property {object} value - File Object. Contains file information. Example:
453
+ * @property {object} value - File Object. Contains file information.
454
+ * @example
436
455
  [
437
456
  {
438
457
  "filename": "files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
@@ -456,7 +475,8 @@ interface IBodyTypeFile {
456
475
  * @interface IBodyTypeRadioButtonList
457
476
  * @property {string} marker - marker name. Example: "selector".
458
477
  * @property {string} type - Type value. Example: 'list'.
459
- * @property {Array} value - Array of list or radioButton bojects. Example:
478
+ * @property {Array} value - Array of list or radioButton bojects.
479
+ * @example
460
480
  [
461
481
  {
462
482
  "title": "red",