oneentry 1.0.142 → 1.0.143

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 (149) hide show
  1. package/dist/admins/adminsApi.d.ts +50 -0
  2. package/dist/admins/adminsApi.js +65 -0
  3. package/dist/admins/adminsInterfaces.d.ts +98 -0
  4. package/dist/admins/adminsInterfaces.js +2 -0
  5. package/dist/admins/adminsSchemas.d.ts +30 -0
  6. package/dist/admins/adminsSchemas.js +27 -0
  7. package/dist/attribute-sets/attributeSetsApi.d.ts +63 -0
  8. package/dist/attribute-sets/attributeSetsApi.js +98 -0
  9. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +185 -0
  10. package/dist/attribute-sets/attributeSetsInterfaces.js +2 -0
  11. package/dist/attribute-sets/attributeSetsSchemas.d.ts +90 -0
  12. package/dist/attribute-sets/attributeSetsSchemas.js +74 -0
  13. package/dist/auth-provider/authProviderApi.d.ts +249 -0
  14. package/dist/auth-provider/authProviderApi.js +354 -0
  15. package/dist/auth-provider/authProviderSchemas.d.ts +131 -0
  16. package/dist/auth-provider/authProviderSchemas.js +82 -0
  17. package/dist/auth-provider/authProvidersInterfaces.d.ts +412 -0
  18. package/dist/auth-provider/authProvidersInterfaces.js +2 -0
  19. package/dist/base/asyncModules.d.ts +80 -0
  20. package/dist/base/asyncModules.js +448 -0
  21. package/dist/base/result.d.ts +39 -0
  22. package/dist/base/result.js +154 -0
  23. package/dist/base/stateModule.d.ts +41 -0
  24. package/dist/base/stateModule.js +128 -0
  25. package/dist/base/syncModules.d.ts +286 -0
  26. package/dist/base/syncModules.js +716 -0
  27. package/dist/base/utils.d.ts +197 -0
  28. package/dist/base/utils.js +2 -0
  29. package/dist/base/validation.d.ts +118 -0
  30. package/dist/base/validation.js +132 -0
  31. package/dist/blocks/blocksApi.d.ts +76 -0
  32. package/dist/blocks/blocksApi.js +188 -0
  33. package/dist/blocks/blocksInterfaces.d.ts +168 -0
  34. package/dist/blocks/blocksInterfaces.js +2 -0
  35. package/dist/blocks/blocksSchemas.d.ts +195 -0
  36. package/dist/blocks/blocksSchemas.js +43 -0
  37. package/dist/discounts/discountsApi.d.ts +56 -0
  38. package/dist/discounts/discountsApi.js +82 -0
  39. package/dist/discounts/discountsInterfaces.d.ts +145 -0
  40. package/dist/discounts/discountsInterfaces.js +2 -0
  41. package/dist/events/eventsApi.d.ts +60 -0
  42. package/dist/events/eventsApi.js +97 -0
  43. package/dist/events/eventsInterfaces.d.ts +87 -0
  44. package/dist/events/eventsInterfaces.js +2 -0
  45. package/dist/file-uploading/fileUploadingApi.d.ts +88 -0
  46. package/dist/file-uploading/fileUploadingApi.js +129 -0
  47. package/dist/file-uploading/fileUploadingInterfaces.d.ts +114 -0
  48. package/dist/file-uploading/fileUploadingInterfaces.js +2 -0
  49. package/dist/file-uploading/fileUploadingSchemas.d.ts +22 -0
  50. package/dist/file-uploading/fileUploadingSchemas.js +21 -0
  51. package/dist/forms/formsApi.d.ts +42 -0
  52. package/dist/forms/formsApi.js +57 -0
  53. package/dist/forms/formsInterfaces.d.ts +134 -0
  54. package/dist/forms/formsInterfaces.js +2 -0
  55. package/dist/forms/formsSchemas.d.ts +50 -0
  56. package/dist/forms/formsSchemas.js +31 -0
  57. package/dist/forms-data/formsDataApi.d.ts +106 -0
  58. package/dist/forms-data/formsDataApi.js +189 -0
  59. package/dist/forms-data/formsDataInterfaces.d.ts +522 -0
  60. package/dist/forms-data/formsDataInterfaces.js +2 -0
  61. package/dist/forms-data/formsDataSchemas.d.ts +115 -0
  62. package/dist/forms-data/formsDataSchemas.js +86 -0
  63. package/dist/general-types/generalTypesApi.d.ts +28 -0
  64. package/dist/general-types/generalTypesApi.js +38 -0
  65. package/dist/general-types/generalTypesInterfaces.d.ts +29 -0
  66. package/dist/general-types/generalTypesInterfaces.js +2 -0
  67. package/dist/general-types/generalTypesSchemas.d.ts +50 -0
  68. package/dist/general-types/generalTypesSchemas.js +35 -0
  69. package/dist/index.d.ts +100 -0
  70. package/dist/index.js +103 -0
  71. package/dist/integration-collections/integrationCollectionsApi.d.ts +163 -0
  72. package/dist/integration-collections/integrationCollectionsApi.js +220 -0
  73. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +313 -0
  74. package/dist/integration-collections/integrationCollectionsInterfaces.js +2 -0
  75. package/dist/integration-collections/integrationCollectionsSchemas.d.ts +80 -0
  76. package/dist/integration-collections/integrationCollectionsSchemas.js +61 -0
  77. package/dist/locales/localesApi.d.ts +27 -0
  78. package/dist/locales/localesApi.js +37 -0
  79. package/dist/locales/localesInterfaces.d.ts +40 -0
  80. package/dist/locales/localesInterfaces.js +2 -0
  81. package/dist/locales/localesSchemas.d.ts +32 -0
  82. package/dist/locales/localesSchemas.js +26 -0
  83. package/dist/menus/menusApi.d.ts +29 -0
  84. package/dist/menus/menusApi.js +39 -0
  85. package/dist/menus/menusInterfaces.d.ts +87 -0
  86. package/dist/menus/menusInterfaces.js +3 -0
  87. package/dist/menus/menusSchemas.d.ts +16 -0
  88. package/dist/menus/menusSchemas.js +28 -0
  89. package/dist/orders/ordersApi.d.ts +149 -0
  90. package/dist/orders/ordersApi.js +203 -0
  91. package/dist/orders/ordersInterfaces.d.ts +520 -0
  92. package/dist/orders/ordersInterfaces.js +2 -0
  93. package/dist/orders/ordersSchemas.d.ts +120 -0
  94. package/dist/orders/ordersSchemas.js +101 -0
  95. package/dist/pages/pagesApi.d.ts +151 -0
  96. package/dist/pages/pagesApi.js +390 -0
  97. package/dist/pages/pagesInterfaces.d.ts +284 -0
  98. package/dist/pages/pagesInterfaces.js +2 -0
  99. package/dist/pages/pagesSchemas.d.ts +85 -0
  100. package/dist/pages/pagesSchemas.js +46 -0
  101. package/dist/payments/paymentsApi.d.ts +82 -0
  102. package/dist/payments/paymentsApi.js +121 -0
  103. package/dist/payments/paymentsInterfaces.d.ts +200 -0
  104. package/dist/payments/paymentsInterfaces.js +2 -0
  105. package/dist/payments/paymentsSchemas.d.ts +100 -0
  106. package/dist/payments/paymentsSchemas.js +65 -0
  107. package/dist/product-statuses/productStatusesApi.d.ts +47 -0
  108. package/dist/product-statuses/productStatusesApi.js +70 -0
  109. package/dist/product-statuses/productStatusesInterfaces.d.ts +62 -0
  110. package/dist/product-statuses/productStatusesInterfaces.js +2 -0
  111. package/dist/product-statuses/productStatusesSchemas.d.ts +34 -0
  112. package/dist/product-statuses/productStatusesSchemas.js +30 -0
  113. package/dist/products/productsApi.d.ts +365 -0
  114. package/dist/products/productsApi.js +459 -0
  115. package/dist/products/productsInterfaces.d.ts +577 -0
  116. package/dist/products/productsInterfaces.js +2 -0
  117. package/dist/products/productsSchemas.d.ts +200 -0
  118. package/dist/products/productsSchemas.js +98 -0
  119. package/dist/sitemap/sitemapApi.d.ts +35 -0
  120. package/dist/sitemap/sitemapApi.js +45 -0
  121. package/dist/sitemap/sitemapInterfaces.d.ts +40 -0
  122. package/dist/sitemap/sitemapInterfaces.js +2 -0
  123. package/dist/system/systemApi.d.ts +43 -0
  124. package/dist/system/systemApi.js +56 -0
  125. package/dist/system/systemInterfaces.d.ts +29 -0
  126. package/dist/system/systemInterfaces.js +2 -0
  127. package/dist/templates/templatesApi.d.ts +49 -0
  128. package/dist/templates/templatesApi.js +75 -0
  129. package/dist/templates/templatesInterfaces.d.ts +67 -0
  130. package/dist/templates/templatesInterfaces.js +2 -0
  131. package/dist/templates/templatesSchemas.d.ts +48 -0
  132. package/dist/templates/templatesSchemas.js +31 -0
  133. package/dist/templates-preview/templatesPreviewApi.d.ts +38 -0
  134. package/dist/templates-preview/templatesPreviewApi.js +53 -0
  135. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +119 -0
  136. package/dist/templates-preview/templatesPreviewInterfaces.js +2 -0
  137. package/dist/templates-preview/templatesPreviewSchemas.d.ts +83 -0
  138. package/dist/templates-preview/templatesPreviewSchemas.js +48 -0
  139. package/dist/users/usersApi.d.ts +143 -0
  140. package/dist/users/usersApi.js +171 -0
  141. package/dist/users/usersInterfaces.d.ts +229 -0
  142. package/dist/users/usersInterfaces.js +2 -0
  143. package/dist/users/usersSchemas.d.ts +38 -0
  144. package/dist/users/usersSchemas.js +28 -0
  145. package/dist/web-socket/wsApi.d.ts +25 -0
  146. package/dist/web-socket/wsApi.js +45 -0
  147. package/dist/web-socket/wsInterfaces.d.ts +16 -0
  148. package/dist/web-socket/wsInterfaces.js +2 -0
  149. package/package.json +3 -81
@@ -0,0 +1,106 @@
1
+ import AsyncModules from '../base/asyncModules';
2
+ import type StateModule from '../base/stateModule';
3
+ import type { IError } from '../base/utils';
4
+ import type { IBodyPostFormData, IFormsByMarkerDataEntity, IFormsData, IPostFormResponse, IUpdateFormsData } from './formsDataInterfaces';
5
+ /**
6
+ * Controllers for working with form data
7
+ * @handle /api/content/form-data
8
+ * @class FormsDataApi
9
+ * @augments AsyncModules
10
+ * @implements {IFormsData}
11
+ * @description This class provides methods to interact with form data, including retrieving all forms data, creating new form data entries, and fetching form data by marker.
12
+ */
13
+ export default class FormsDataApi extends AsyncModules implements IFormsData {
14
+ protected state: StateModule;
15
+ protected _url: string;
16
+ /**
17
+ * Constructor for FormsDataApi class.
18
+ */
19
+ constructor(state: StateModule);
20
+ /**
21
+ * Creating an object of data save information by form
22
+ * @handleName postFormsData
23
+ * @param {IBodyPostFormData} body - Request body.
24
+ * @example
25
+ {
26
+ "formIdentifier": "test-form",
27
+ "formModuleConfigId": 2,
28
+ "moduleEntityIdentifier": "blog",
29
+ "replayTo": null,
30
+ "status": "sent",
31
+ "formData": [
32
+ {
33
+ "marker": "name",
34
+ "type": "string",
35
+ "value": "Test"
36
+ }
37
+ ]
38
+ }
39
+ * @param {string} body.formIdentifier - The identifier for the form. Example: "form".
40
+ * @param {number} body.formModuleConfigId - The ID of the form module configuration. Example: 2.
41
+ * @param {string} body.moduleEntityIdentifier - The identifier of the module entity. Example: "form".
42
+ * @param {string | null} [body.replayTo] - The email address to which the reply should be sent.
43
+ * @param {string | null} [body.status] - The status of the form submission.
44
+ * @param {FormDataType[]} body.formData - Form data.
45
+ * @example
46
+ [
47
+ {
48
+ "marker": "name",
49
+ "type": "string",
50
+ "value": "Jack"
51
+ }
52
+ ]
53
+ * @param {string} body.formData[].marker - The marker identifying the form field. Example: "name".
54
+ * @param {string} body.formData[].type - The type of the form field. Example: "string".
55
+ * @param {string} body.formData[].value - The value of the form field. Example: "Jack".
56
+ * @param {string} [langCode] - Language code. Default: "en_US".
57
+ * @returns {Promise<IPostFormResponse | IError>} Returns an object containing the created form data entry and message.
58
+ * @throws {IError} When isShell=false and an error occurs during the fetch
59
+ */
60
+ postFormsData(body: IBodyPostFormData, langCode?: string): Promise<IPostFormResponse | IError>;
61
+ /**
62
+ * Get one object of form data by marker.
63
+ * @handleName getFormsDataByMarker
64
+ * @param {string} marker - Marker of the form. Example: "contact_form".
65
+ * @param {number} formModuleConfigId - Form module configuration ID. Example: 4.
66
+ * @param {object} [body] - Request body.
67
+ * @example
68
+ {
69
+ "entityIdentifier": 14,
70
+ "entityparentIdentifier": 167,
71
+ "userIdentifier": "",
72
+ "status": ["new", "approved"],
73
+ "dateFrom": "2025-01-01",
74
+ "dateTo": ""
75
+ }
76
+ * @param {number} [isExtended] - Flag for getting additional fields. Example: 1.
77
+ * @param {string} [langCode] - Language code. Default: "en_US".
78
+ * @param {number} [offset] - Parameter for pagination. Default: 0.
79
+ * @param {number} [limit] - Parameter for pagination. Default: 30.
80
+ * @returns {Promise<IFormsByMarkerDataEntity | IError>} Returns an object containing the form data or an error object if there was an issue.
81
+ * @throws {IError} When isShell=false and an error occurs during the fetch
82
+ */
83
+ getFormsDataByMarker(marker: string, formModuleConfigId: number, body?: object, isExtended?: number, langCode?: string, offset?: number, limit?: number): Promise<IFormsByMarkerDataEntity | IError>;
84
+ /**
85
+ * Update one object of form data by id. Requires user authentication.
86
+ * @handleName updateFormsDataByid
87
+ * @param {number} id - ID of the form data. Example: 1.
88
+ * @returns {Promise<IUpdateFormsData | IError>} Returns an object containing the updated form data or an error object if there was an issue.
89
+ */
90
+ updateFormsDataByid(id: number, body?: object): Promise<IUpdateFormsData | IError>;
91
+ /**
92
+ * Update form data status by id. Requires user authentication.
93
+ * @handleName updateFormsDataStatusByid
94
+ * @param {number} id - ID of the form data. Example: 1.
95
+ * @param {object} body - Request body.
96
+ * @returns {Promise<boolean | IError>} Returns an object containing the updated form data or an error object if there was an issue.
97
+ */
98
+ updateFormsDataStatusByid(id: number, body?: object): Promise<boolean | IError>;
99
+ /**
100
+ * Delete one object of form data by id. Requires user authentication.
101
+ * @handleName deleteFormsDataByid
102
+ * @param {number} id - ID of the form data. Example: 1.
103
+ * @returns {Promise<boolean | IError>} Returns an object containing the deleted form data or an error object if there was an issue.
104
+ */
105
+ deleteFormsDataByid(id: number): Promise<boolean | IError>;
106
+ }
@@ -0,0 +1,189 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ /* eslint-disable @typescript-eslint/no-explicit-any */
7
+ const asyncModules_1 = __importDefault(require("../base/asyncModules"));
8
+ const fileUploadingApi_1 = __importDefault(require("../file-uploading/fileUploadingApi"));
9
+ const formsDataSchemas_1 = require("./formsDataSchemas");
10
+ /**
11
+ * Controllers for working with form data
12
+ * @handle /api/content/form-data
13
+ * @class FormsDataApi
14
+ * @augments AsyncModules
15
+ * @implements {IFormsData}
16
+ * @description This class provides methods to interact with form data, including retrieving all forms data, creating new form data entries, and fetching form data by marker.
17
+ */
18
+ class FormsDataApi extends asyncModules_1.default {
19
+ /**
20
+ * Constructor for FormsDataApi class.
21
+ */
22
+ constructor(state) {
23
+ super(state);
24
+ this._url = state.url + '/api/content/form-data';
25
+ }
26
+ /**
27
+ * Creating an object of data save information by form
28
+ * @handleName postFormsData
29
+ * @param {IBodyPostFormData} body - Request body.
30
+ * @example
31
+ {
32
+ "formIdentifier": "test-form",
33
+ "formModuleConfigId": 2,
34
+ "moduleEntityIdentifier": "blog",
35
+ "replayTo": null,
36
+ "status": "sent",
37
+ "formData": [
38
+ {
39
+ "marker": "name",
40
+ "type": "string",
41
+ "value": "Test"
42
+ }
43
+ ]
44
+ }
45
+ * @param {string} body.formIdentifier - The identifier for the form. Example: "form".
46
+ * @param {number} body.formModuleConfigId - The ID of the form module configuration. Example: 2.
47
+ * @param {string} body.moduleEntityIdentifier - The identifier of the module entity. Example: "form".
48
+ * @param {string | null} [body.replayTo] - The email address to which the reply should be sent.
49
+ * @param {string | null} [body.status] - The status of the form submission.
50
+ * @param {FormDataType[]} body.formData - Form data.
51
+ * @example
52
+ [
53
+ {
54
+ "marker": "name",
55
+ "type": "string",
56
+ "value": "Jack"
57
+ }
58
+ ]
59
+ * @param {string} body.formData[].marker - The marker identifying the form field. Example: "name".
60
+ * @param {string} body.formData[].type - The type of the form field. Example: "string".
61
+ * @param {string} body.formData[].value - The value of the form field. Example: "Jack".
62
+ * @param {string} [langCode] - Language code. Default: "en_US".
63
+ * @returns {Promise<IPostFormResponse | IError>} Returns an object containing the created form data entry and message.
64
+ * @throws {IError} When isShell=false and an error occurs during the fetch
65
+ */
66
+ async postFormsData(body, langCode = this.state.lang) {
67
+ const formData = {};
68
+ // filter spam and button fields, send file
69
+ formData[langCode] = Array.isArray(body.formData)
70
+ ? body.formData.filter((fd) => fd.type !== 'spam' && fd.type !== 'button')
71
+ : [body.formData].filter((fd) => fd.type !== 'spam' && fd.type !== 'button');
72
+ /**
73
+ * Handle file uploads if fileQuery is present
74
+ */
75
+ // Check if there is any element in formData[langCode] that contains one of the specified types
76
+ if (formData[langCode].find((fd) => ['file', 'image', 'groupOfImages'].includes(fd.type))) {
77
+ // Create an instance of FileUploadingApi with the current state
78
+ const fileUploader = new fileUploadingApi_1.default(this.state);
79
+ // Process each element in formData[langCode] asynchronously
80
+ formData[langCode] = await Promise.all(formData[langCode].map(async (fd) => {
81
+ // Check if the type is one of the specified types
82
+ if (['file', 'image', 'groupOfImages'].includes(fd.type)) {
83
+ // If fileQuery does not exist, we create it and assign it to an object with the following properties:
84
+ if (!fd.fileQuery) {
85
+ const fileQuery = {
86
+ type: 'page',
87
+ entity: 'editor',
88
+ // Generate a random 4-digit ID
89
+ id: Number(Math.floor(Math.random() * 10000)
90
+ .toString()
91
+ .padStart(4, '0')),
92
+ };
93
+ fd.fileQuery = fileQuery;
94
+ }
95
+ // Convert fd.value to an array if it is a FileList, otherwise use it directly
96
+ const filesArray = typeof FileList !== 'undefined' && fd.value instanceof FileList
97
+ ? Array.from(fd.value)
98
+ : fd.value;
99
+ // If filesArray is an array, upload each file asynchronously
100
+ if (Array.isArray(filesArray)) {
101
+ const uploadPromises = filesArray.map((file) => fileUploader.upload(file, fd.fileQuery).catch((e) => e));
102
+ fd.value = (await Promise.all(uploadPromises)).flat();
103
+ }
104
+ // If fd.value is a single File or Blob, upload it
105
+ else if (fd.value instanceof File || fd.value instanceof Blob) {
106
+ fd.value = await fileUploader
107
+ .upload(fd.value, fd.fileQuery)
108
+ .catch((e) => e); // Catch any errors during upload
109
+ }
110
+ // Remove the 'fileQuery' property from the object after processing
111
+ delete fd.fileQuery;
112
+ // Remove the 'contentType' property from the file object because it is not needed and not valid
113
+ fd.value.map((file) => {
114
+ delete file.contentType;
115
+ });
116
+ }
117
+ // Return the processed form data element
118
+ return fd;
119
+ }));
120
+ }
121
+ body.formData = formData;
122
+ const result = await this._fetchPost(``, body);
123
+ // Validate response if validation is enabled
124
+ const validated = this._validateResponse(result, formsDataSchemas_1.PostFormResponseSchema);
125
+ return this._dataPostProcess(validated);
126
+ }
127
+ /**
128
+ * Get one object of form data by marker.
129
+ * @handleName getFormsDataByMarker
130
+ * @param {string} marker - Marker of the form. Example: "contact_form".
131
+ * @param {number} formModuleConfigId - Form module configuration ID. Example: 4.
132
+ * @param {object} [body] - Request body.
133
+ * @example
134
+ {
135
+ "entityIdentifier": 14,
136
+ "entityparentIdentifier": 167,
137
+ "userIdentifier": "",
138
+ "status": ["new", "approved"],
139
+ "dateFrom": "2025-01-01",
140
+ "dateTo": ""
141
+ }
142
+ * @param {number} [isExtended] - Flag for getting additional fields. Example: 1.
143
+ * @param {string} [langCode] - Language code. Default: "en_US".
144
+ * @param {number} [offset] - Parameter for pagination. Default: 0.
145
+ * @param {number} [limit] - Parameter for pagination. Default: 30.
146
+ * @returns {Promise<IFormsByMarkerDataEntity | IError>} Returns an object containing the form data or an error object if there was an issue.
147
+ * @throws {IError} When isShell=false and an error occurs during the fetch
148
+ */
149
+ async getFormsDataByMarker(marker, formModuleConfigId, body = {}, isExtended = 0, langCode = this.state.lang, offset = 0, limit = 30) {
150
+ const result = await this._fetchPost(`/marker/${marker}?formModuleConfigId=${formModuleConfigId}&isExtended=${isExtended}&langCode=${langCode}&offset=${offset}&limit=${limit}`, body);
151
+ // Validate response if validation is enabled
152
+ const validated = this._validateResponse(result, formsDataSchemas_1.FormsByMarkerDataResponseSchema);
153
+ return this._dataPostProcess(validated, langCode);
154
+ }
155
+ /**
156
+ * Update one object of form data by id. Requires user authentication.
157
+ * @handleName updateFormsDataByid
158
+ * @param {number} id - ID of the form data. Example: 1.
159
+ * @returns {Promise<IUpdateFormsData | IError>} Returns an object containing the updated form data or an error object if there was an issue.
160
+ */
161
+ async updateFormsDataByid(id, body = {}) {
162
+ const result = await this._fetchPut(`/${id}`, body);
163
+ // Validate response if validation is enabled
164
+ const validated = this._validateResponse(result, formsDataSchemas_1.UpdateFormsDataSchema);
165
+ return validated;
166
+ }
167
+ /**
168
+ * Update form data status by id. Requires user authentication.
169
+ * @handleName updateFormsDataStatusByid
170
+ * @param {number} id - ID of the form data. Example: 1.
171
+ * @param {object} body - Request body.
172
+ * @returns {Promise<boolean | IError>} Returns an object containing the updated form data or an error object if there was an issue.
173
+ */
174
+ async updateFormsDataStatusByid(id, body = {}) {
175
+ const result = await this._fetchPut(`/${id}/update-status`, body);
176
+ return result;
177
+ }
178
+ /**
179
+ * Delete one object of form data by id. Requires user authentication.
180
+ * @handleName deleteFormsDataByid
181
+ * @param {number} id - ID of the form data. Example: 1.
182
+ * @returns {Promise<boolean | IError>} Returns an object containing the deleted form data or an error object if there was an issue.
183
+ */
184
+ async deleteFormsDataByid(id) {
185
+ const result = await this._fetchDelete(`/${id}`);
186
+ return result;
187
+ }
188
+ }
189
+ exports.default = FormsDataApi;