oneentry 1.0.127 → 1.0.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins/adminsApi.d.ts +20 -20
- package/dist/admins/adminsApi.js +20 -20
- package/dist/admins/adminsInterfaces.d.ts +43 -43
- package/dist/attribute-sets/attributeSetsApi.d.ts +16 -16
- package/dist/attribute-sets/attributeSetsApi.js +16 -16
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +87 -85
- package/dist/auth-provider/authProviderApi.d.ts +126 -126
- package/dist/auth-provider/authProviderApi.js +126 -126
- package/dist/auth-provider/authProvidersInterfaces.d.ts +201 -201
- package/dist/base/asyncModules.d.ts +17 -17
- package/dist/base/asyncModules.js +26 -21
- package/dist/base/result.d.ts +5 -5
- package/dist/base/result.js +5 -9
- package/dist/base/stateModule.d.ts +1 -1
- package/dist/base/stateModule.js +1 -1
- package/dist/base/syncModules.d.ts +35 -35
- package/dist/base/syncModules.js +92 -45
- package/dist/base/utils.d.ts +13 -13
- package/dist/blocks/blocksApi.d.ts +24 -24
- package/dist/blocks/blocksApi.js +24 -24
- package/dist/blocks/blocksInterfaces.d.ts +85 -85
- package/dist/events/eventsApi.d.ts +11 -11
- package/dist/events/eventsApi.js +11 -11
- package/dist/events/eventsInterfaces.d.ts +23 -23
- package/dist/file-uploading/fileUploadingApi.d.ts +38 -38
- package/dist/file-uploading/fileUploadingApi.js +38 -38
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +44 -44
- package/dist/forms/formsApi.d.ts +7 -7
- package/dist/forms/formsApi.js +7 -7
- package/dist/forms/formsInterfaces.d.ts +43 -31
- package/dist/forms-data/formsDataApi.d.ts +37 -37
- package/dist/forms-data/formsDataApi.js +37 -38
- package/dist/forms-data/formsDataInterfaces.d.ts +219 -219
- package/dist/general-types/generalTypesApi.d.ts +1 -1
- package/dist/general-types/generalTypesApi.js +1 -1
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/index.d.ts +10 -10
- package/dist/index.js +10 -10
- package/dist/integration-collections/integrationCollectionsApi.d.ts +76 -80
- package/dist/integration-collections/integrationCollectionsApi.js +76 -80
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +145 -149
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +3 -3
- package/dist/menus/menusApi.js +3 -3
- package/dist/menus/menusInterfaces.d.ts +39 -39
- package/dist/orders/ordersApi.d.ts +56 -56
- package/dist/orders/ordersApi.js +56 -56
- package/dist/orders/ordersInterfaces.d.ts +204 -198
- package/dist/pages/pagesApi.d.ts +60 -60
- package/dist/pages/pagesApi.js +60 -60
- package/dist/pages/pagesInterfaces.d.ts +133 -141
- package/dist/payments/paymentsApi.d.ts +15 -15
- package/dist/payments/paymentsApi.js +15 -15
- package/dist/payments/paymentsInterfaces.d.ts +55 -55
- package/dist/product-statuses/productStatusesApi.d.ts +7 -7
- package/dist/product-statuses/productStatusesApi.js +7 -7
- package/dist/product-statuses/productStatusesInterfaces.d.ts +21 -21
- package/dist/products/productsApi.d.ts +240 -240
- package/dist/products/productsApi.js +240 -240
- package/dist/products/productsInterfaces.d.ts +311 -311
- package/dist/system/systemApi.d.ts +10 -10
- package/dist/system/systemApi.js +10 -10
- package/dist/templates/templatesApi.d.ts +8 -8
- package/dist/templates/templatesApi.js +8 -8
- package/dist/templates/templatesInterfaces.d.ts +22 -22
- package/dist/templates-preview/templatesPreviewApi.d.ts +5 -5
- package/dist/templates-preview/templatesPreviewApi.js +5 -5
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +54 -54
- package/dist/users/usersApi.d.ts +29 -29
- package/dist/users/usersApi.js +29 -29
- package/dist/users/usersInterfaces.d.ts +77 -77
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ const fileUploadingApi_1 = __importDefault(require("../file-uploading/fileUpload
|
|
|
17
17
|
*/
|
|
18
18
|
class FormsDataApi extends asyncModules_1.default {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Constructor for FormsDataApi class.
|
|
21
21
|
*/
|
|
22
22
|
constructor(state) {
|
|
23
23
|
super(state);
|
|
@@ -26,10 +26,10 @@ class FormsDataApi extends asyncModules_1.default {
|
|
|
26
26
|
/**
|
|
27
27
|
* Get all forms data.
|
|
28
28
|
* @handleName getFormsData
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @returns {IFormsDataEntity}
|
|
29
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
30
|
+
* @param {number} [offset] - Parameter for pagination. Default: 0.
|
|
31
|
+
* @param {number} [limit] - Parameter for pagination. Default: 30.
|
|
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
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
35
|
*/
|
|
@@ -40,23 +40,23 @@ class FormsDataApi extends asyncModules_1.default {
|
|
|
40
40
|
/**
|
|
41
41
|
* Creating an object of data save information by form
|
|
42
42
|
* @handleName postFormsData
|
|
43
|
-
* @param
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
* @param
|
|
59
|
-
* @returns {IPostFormResponse}
|
|
43
|
+
* @param {IBodyPostFormData} body - Request body. Example:
|
|
44
|
+
{
|
|
45
|
+
"formIdentifier": "test-form",
|
|
46
|
+
"formModuleConfigId": 2,
|
|
47
|
+
"moduleEntityIdentifier": "blog",
|
|
48
|
+
"replayTo": null,
|
|
49
|
+
"status": "sent",
|
|
50
|
+
"formData": [
|
|
51
|
+
{
|
|
52
|
+
"marker": "name",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"value": "Test"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
59
|
+
* @returns {IPostFormResponse} Returns an object containing the created form data entry or an error object if there was an issue.
|
|
60
60
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
61
61
|
* @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.
|
|
62
62
|
*/
|
|
@@ -116,26 +116,25 @@ class FormsDataApi extends asyncModules_1.default {
|
|
|
116
116
|
/**
|
|
117
117
|
* Get one object of form data by marker.
|
|
118
118
|
* @handleName getFormsDataByMarker
|
|
119
|
-
* @param
|
|
120
|
-
* @param
|
|
121
|
-
* @param
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
* @param
|
|
130
|
-
* @param
|
|
131
|
-
* @param
|
|
132
|
-
* @param
|
|
133
|
-
* @returns {IFormsByMarkerDataEntity}
|
|
119
|
+
* @param {string} marker - Marker of the form. Example: "contact_form".
|
|
120
|
+
* @param {number} formModuleConfigId - Form module configuration ID. Example: 4.
|
|
121
|
+
* @param {object} [body] - Request body. Example:
|
|
122
|
+
{
|
|
123
|
+
"entityIdentifier": "test",
|
|
124
|
+
"userIdentifier": "",
|
|
125
|
+
"status": "",
|
|
126
|
+
"dateFrom": "2025-08-11",
|
|
127
|
+
"dateTo": ""
|
|
128
|
+
}
|
|
129
|
+
* @param {any} [isNested] - Flag for getting hierarchical data. Example: 1.
|
|
130
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
131
|
+
* @param {number} [offset] - Parameter for pagination. Default: 0.
|
|
132
|
+
* @param {number} [limit] - Parameter for pagination. Default: 30.
|
|
133
|
+
* @returns {IFormsByMarkerDataEntity} Returns an object containing the form data or an error object if there was an issue.
|
|
134
134
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
135
135
|
* @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.
|
|
136
136
|
*/
|
|
137
137
|
async getFormsDataByMarker(marker, formModuleConfigId, body = {}, isNested = 1, langCode = this.state.lang, offset = 0, limit = 30) {
|
|
138
|
-
// ): Promise<IFormByMarkerDataEntity | IError> {
|
|
139
138
|
const result = await this._fetchPost(`/marker/${marker}?formModuleConfigId=${formModuleConfigId}&isNested=${isNested}&langCode=${langCode}&offset=${offset}&limit=${limit}`, body);
|
|
140
139
|
return this._dataPostProcess(result, langCode);
|
|
141
140
|
}
|