oneentry 1.0.125 → 1.0.127
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/README.md +0 -2
- package/configure.js +25 -18
- package/dist/admins/adminsApi.d.ts +30 -25
- package/dist/admins/adminsApi.js +30 -25
- package/dist/admins/adminsInterfaces.d.ts +45 -54
- package/dist/attribute-sets/attributeSetsApi.d.ts +26 -27
- package/dist/attribute-sets/attributeSetsApi.js +26 -27
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +101 -109
- package/dist/auth-provider/authProviderApi.d.ts +132 -158
- package/dist/auth-provider/authProviderApi.js +131 -157
- package/dist/auth-provider/authProvidersInterfaces.d.ts +241 -237
- package/dist/base/asyncModules.d.ts +23 -21
- package/dist/base/asyncModules.js +30 -25
- package/dist/base/result.d.ts +31 -0
- package/dist/base/result.js +32 -1
- package/dist/base/stateModule.d.ts +10 -0
- package/dist/base/stateModule.js +50 -2
- package/dist/base/syncModules.d.ts +41 -49
- package/dist/base/syncModules.js +49 -48
- package/dist/base/utils.d.ts +38 -7
- package/dist/blocks/blocksApi.d.ts +27 -36
- package/dist/blocks/blocksApi.js +27 -36
- package/dist/blocks/blocksInterfaces.d.ts +92 -97
- package/dist/config.d.ts +13 -0
- package/dist/config.js +30 -0
- package/dist/events/eventsApi.d.ts +16 -33
- package/dist/events/eventsApi.js +32 -46
- package/dist/events/eventsInterfaces.d.ts +42 -37
- package/dist/file-uploading/fileUploadingApi.d.ts +42 -47
- package/dist/file-uploading/fileUploadingApi.js +44 -47
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +49 -60
- package/dist/forms/formsApi.d.ts +15 -14
- package/dist/forms/formsApi.js +15 -14
- package/dist/forms/formsInterfaces.d.ts +36 -40
- package/dist/forms-data/formsDataApi.d.ts +77 -0
- package/dist/{formsData → forms-data}/formsDataApi.js +44 -42
- package/dist/forms-data/formsDataInterfaces.d.ts +462 -0
- package/dist/general-types/generalTypesApi.d.ts +5 -5
- package/dist/general-types/generalTypesApi.js +5 -5
- package/dist/general-types/generalTypesInterfaces.d.ts +6 -9
- package/dist/index.d.ts +12 -13
- package/dist/index.js +12 -13
- package/dist/integration-collections/integrationCollectionsApi.d.ts +84 -98
- package/dist/integration-collections/integrationCollectionsApi.js +86 -102
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +177 -169
- package/dist/locales/localesApi.d.ts +7 -3
- package/dist/locales/localesApi.js +7 -3
- package/dist/locales/localesInterfaces.d.ts +14 -13
- package/dist/menus/menusApi.d.ts +9 -5
- package/dist/menus/menusApi.js +9 -5
- package/dist/menus/menusInterfaces.d.ts +43 -48
- package/dist/menus/menusInterfaces.js +1 -0
- package/dist/orders/ordersApi.d.ts +62 -70
- package/dist/orders/ordersApi.js +62 -71
- package/dist/orders/ordersInterfaces.d.ts +238 -203
- package/dist/pages/pagesApi.d.ts +67 -80
- package/dist/pages/pagesApi.js +71 -81
- package/dist/pages/pagesInterfaces.d.ts +164 -160
- package/dist/payments/paymentsApi.d.ts +24 -34
- package/dist/payments/paymentsApi.js +24 -38
- package/dist/payments/paymentsInterfaces.d.ts +82 -76
- package/dist/product-statuses/productStatusesApi.d.ts +13 -13
- package/dist/product-statuses/productStatusesApi.js +13 -13
- package/dist/product-statuses/productStatusesInterfaces.d.ts +29 -27
- package/dist/products/productsApi.d.ts +246 -267
- package/dist/products/productsApi.js +247 -267
- package/dist/products/productsInterfaces.d.ts +333 -339
- package/dist/system/systemApi.d.ts +19 -21
- package/dist/system/systemApi.js +20 -21
- package/dist/system/systemInterfaces.d.ts +14 -3
- package/dist/templates/templatesApi.d.ts +13 -16
- package/dist/templates/templatesApi.js +13 -16
- package/dist/templates/templatesInterfaces.d.ts +30 -29
- package/dist/templates-preview/templatesPreviewApi.d.ts +10 -11
- package/dist/templates-preview/templatesPreviewApi.js +10 -11
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +61 -64
- package/dist/users/usersApi.d.ts +36 -43
- package/dist/users/usersApi.js +36 -43
- package/dist/users/usersInterfaces.d.ts +92 -96
- package/dist/web-socket/wsApi.d.ts +5 -3
- package/dist/web-socket/wsApi.js +6 -3
- package/dist/web-socket/wsInterfaces.d.ts +7 -2
- package/package.json +16 -12
- package/dist/formsData/formsDataApi.d.ts +0 -77
- package/dist/formsData/formsDataInterfaces.d.ts +0 -350
- /package/dist/{formsData → forms-data}/formsDataInterfaces.js +0 -0
|
@@ -1,350 +0,0 @@
|
|
|
1
|
-
import type { IUploadingQuery } from 'file-uploading/fileUploadingInterfaces';
|
|
2
|
-
import type { IError } from '../base/utils';
|
|
3
|
-
/**
|
|
4
|
-
* Interface for retrieving and posting form data in the system.
|
|
5
|
-
*
|
|
6
|
-
* @interface IFormsData
|
|
7
|
-
*
|
|
8
|
-
* @property {function} getFormsData - Get all forms data.
|
|
9
|
-
* @property {function} postFormsData - Find all product page objects with pagination and multiple filtering.
|
|
10
|
-
* @property {function} getFormsDataByMarker - Get one object of form data by marker.
|
|
11
|
-
* @description This interface defines methods for retrieving and posting form data in the system.
|
|
12
|
-
*/
|
|
13
|
-
interface IFormsData {
|
|
14
|
-
/**
|
|
15
|
-
* Retrieves all forms data.
|
|
16
|
-
*
|
|
17
|
-
* @param {string} langCode - The language code for localization. Default: "en_US".
|
|
18
|
-
* @param {number} [offset] - Optional offset for pagination. Default: 0.
|
|
19
|
-
* @param {number} [limit] - Optional limit for pagination. Default: 30.
|
|
20
|
-
* @return {IFormsDataEntity} A promise that resolves to a collection of form data entities or an error.
|
|
21
|
-
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
22
|
-
*/
|
|
23
|
-
getFormsData(langCode: string, offset?: number, limit?: number): Promise<IFormsDataEntity | IError>;
|
|
24
|
-
/**
|
|
25
|
-
* Posts form data to the system.
|
|
26
|
-
*
|
|
27
|
-
* @param {IFormsPost} data - The form data to be posted. Example:
|
|
28
|
-
{
|
|
29
|
-
"id": 1,
|
|
30
|
-
"formIdentifier": "string",
|
|
31
|
-
"time": "string",
|
|
32
|
-
"formData": [],
|
|
33
|
-
"fileQuery": {
|
|
34
|
-
"type": null;
|
|
35
|
-
"entity": null;
|
|
36
|
-
"id": null;
|
|
37
|
-
"key": null;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
* @param {string} [langCode] - Optional language code for localization. Default: "en_US".
|
|
41
|
-
* @return {IFormDataEntity} A promise that resolves to a form data entity or an error.
|
|
42
|
-
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
43
|
-
*/
|
|
44
|
-
postFormsData(data: IFormsPost, langCode?: string): Promise<IFormDataEntity | IError>;
|
|
45
|
-
/**
|
|
46
|
-
* Retrieves form data by its marker.
|
|
47
|
-
*
|
|
48
|
-
* @param {string} marker - The marker identifying the form data. Example: "contact_form_data".
|
|
49
|
-
* @param {string} langCode - The language code for localization. Default: "en_US".
|
|
50
|
-
* @param {number} [offset] - Optional offset for pagination. Default: 0.
|
|
51
|
-
* @param {number} [limit] - Optional limit for pagination. Default: 30.
|
|
52
|
-
* @returns {IFormsDataEntity} A promise that resolves to a form data entity or an error.
|
|
53
|
-
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
54
|
-
*/
|
|
55
|
-
getFormsDataByMarker(marker: string, langCode: string, offset?: number, limit?: number): Promise<IFormsDataEntity | IError>;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Represents the structure of a form data entity.
|
|
59
|
-
*
|
|
60
|
-
* @interface IFormDataEntity
|
|
61
|
-
*
|
|
62
|
-
* @property {number} id - The unique identifier of the form page. Example: 12345.
|
|
63
|
-
* @property {string} formIdentifier - The identifier of the page. Example: "contact_form".
|
|
64
|
-
* @property {Date | string} time - The identifier of the form. Example: "2023-10-01T12:00:00Z".
|
|
65
|
-
* @property {IFormsPost} formData - The identifier of the position. Example:
|
|
66
|
-
{
|
|
67
|
-
"id": 1,
|
|
68
|
-
"formIdentifier": "string",
|
|
69
|
-
"time": "string",
|
|
70
|
-
"formData": [],
|
|
71
|
-
"fileQuery": {
|
|
72
|
-
"type": null;
|
|
73
|
-
"entity": null;
|
|
74
|
-
"id": null;
|
|
75
|
-
"key": null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
* @property {string} [attributeSetIdentifier] - Text identifier (marker) of the used attribute set. Example: "product_attributes".
|
|
79
|
-
* @property {string} [actionMessage] - Action message for the form data. Example: "Form submitted successfully".
|
|
80
|
-
* @description This interface defines the structure of a form data entity, including its identifiers, form data, and optional attributes.
|
|
81
|
-
*/
|
|
82
|
-
interface IFormDataEntity {
|
|
83
|
-
id: number;
|
|
84
|
-
formIdentifier: string;
|
|
85
|
-
time: Date | string;
|
|
86
|
-
formData: IFormsPost;
|
|
87
|
-
attributeSetIdentifier?: string;
|
|
88
|
-
actionMessage?: string;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Represents a collection of form data entities.
|
|
92
|
-
*
|
|
93
|
-
* @interface IFormsDataEntity
|
|
94
|
-
*
|
|
95
|
-
* @property {number} total - Total number of found records. Example: 100.
|
|
96
|
-
* @property {IFormDataEntity[]} items - Array of form data objects. Example:
|
|
97
|
-
[
|
|
98
|
-
{
|
|
99
|
-
"id": 1,
|
|
100
|
-
"formIdentifier": "string",
|
|
101
|
-
"time": "string",
|
|
102
|
-
"formData": "IFormsPost",
|
|
103
|
-
"attributeSetIdentifier": "string",
|
|
104
|
-
"actionMessage": "string"
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
* @description This interface defines the structure of a collection of form data entities, including a total count and an array of items.
|
|
108
|
-
*/
|
|
109
|
-
interface IFormsDataEntity {
|
|
110
|
-
total: number;
|
|
111
|
-
items: IFormDataEntity[];
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Contains an array of data form objects with the following values
|
|
115
|
-
*/
|
|
116
|
-
type FormDataType = IBodyTypeStringNumberFloat | IBodyTypeTimeDate | IBodyTypeText | IBodyTypeTextWithHeader | IBodyTypeImageGroupOfImages | IBodyTypeFile | IBodyTypeRadioButtonList | Record<string, any>;
|
|
117
|
-
/**
|
|
118
|
-
* Represents the structure of a form post object.
|
|
119
|
-
*
|
|
120
|
-
* @interface IFormsPost
|
|
121
|
-
*
|
|
122
|
-
* @property {number} [id] - Optional identifier of the form post. Example: 1.
|
|
123
|
-
* @property {string} formIdentifier - The identifier of the page. Example: "string".
|
|
124
|
-
* @property {Date | string} [time] - Date and time of form modification. Example: "string".
|
|
125
|
-
* @property {FormDataType[]} formData - The form data object. Example:
|
|
126
|
-
[
|
|
127
|
-
{
|
|
128
|
-
"marker": "string",
|
|
129
|
-
"type": "string",
|
|
130
|
-
"value": "string"
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
* @property {IUploadingQuery} [fileQuery] - Optional file query for uploading files. Example:
|
|
134
|
-
{
|
|
135
|
-
"type": null,
|
|
136
|
-
"entity": null,
|
|
137
|
-
"id": null,
|
|
138
|
-
"key": null,
|
|
139
|
-
}
|
|
140
|
-
* @description This interface defines the structure of a form post object, including its identifiers, time, form data, and optional file query.
|
|
141
|
-
*/
|
|
142
|
-
interface IFormsPost {
|
|
143
|
-
id?: number;
|
|
144
|
-
formIdentifier: string;
|
|
145
|
-
time?: Date | string;
|
|
146
|
-
formData: FormDataType[];
|
|
147
|
-
fileQuery?: IUploadingQuery;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Represents a form data entity with a simple value.
|
|
151
|
-
*
|
|
152
|
-
* @interface IBodyTypeStringNumberFloat
|
|
153
|
-
*
|
|
154
|
-
* @property {string} marker - marker name. Example: "some_marker".
|
|
155
|
-
* @property {string} type - Type value. "string" | "number" | "float". Example: "string".
|
|
156
|
-
* @property {string} value - Value of the form data entity, which can be a "string", "number", or "float". Example: "string".
|
|
157
|
-
* @description Represents a form data entity with a marker, type, and value.
|
|
158
|
-
*/
|
|
159
|
-
interface IBodyTypeStringNumberFloat {
|
|
160
|
-
marker: string;
|
|
161
|
-
type: 'string' | 'number' | 'float';
|
|
162
|
-
value: string;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Represents a date/time form data entity.
|
|
166
|
-
*
|
|
167
|
-
* @interface IBodyTypeTimeDate
|
|
168
|
-
*
|
|
169
|
-
* @property {string} marker - marker name. Example: "ome_marker".
|
|
170
|
-
* @property {string} type - Type value. 'date' | 'dateTime' | 'time' Example: "date".
|
|
171
|
-
* @property {object} value - Date object. Contains fullDate, formattedValue, formatString. Example:
|
|
172
|
-
{
|
|
173
|
-
"fullDate": "2024-05-07T21:02:00.000Z",
|
|
174
|
-
"formattedValue": "08-05-2024 00:02",
|
|
175
|
-
"formatString": "DD-MM-YYYY HH:mm"
|
|
176
|
-
}
|
|
177
|
-
* @description Represents a date, dateTime, or time value in a structured format.
|
|
178
|
-
*/
|
|
179
|
-
interface IBodyTypeTimeDate {
|
|
180
|
-
marker: string;
|
|
181
|
-
type: 'date' | 'dateTime' | 'time';
|
|
182
|
-
value: {
|
|
183
|
-
fullDate: string;
|
|
184
|
-
formattedValue: string;
|
|
185
|
-
formatString: string;
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* Represents a text form data entity.
|
|
190
|
-
*
|
|
191
|
-
* @interface IBodyTypeText
|
|
192
|
-
*
|
|
193
|
-
* @property {string} marker - marker name. Example: "some_marker".
|
|
194
|
-
* @property {string} type - Type value. Example: "text".
|
|
195
|
-
* @property {object} value - Text Object. Contains html as string, plain text and params. Example:
|
|
196
|
-
{
|
|
197
|
-
"htmlValue": "<p>Hello world</p>",
|
|
198
|
-
"plainValue": "",
|
|
199
|
-
"params": {
|
|
200
|
-
"isEditorDisabled": false,
|
|
201
|
-
"isImageCompressed": true
|
|
202
|
-
}
|
|
203
|
-
}
|
|
204
|
-
* @description Represents a text value with HTML and plain text representations, along with parameters for editor and image compression settings.
|
|
205
|
-
*/
|
|
206
|
-
interface IBodyTypeText {
|
|
207
|
-
marker: string;
|
|
208
|
-
type: 'text';
|
|
209
|
-
value: {
|
|
210
|
-
htmlValue: string;
|
|
211
|
-
plainValue: string;
|
|
212
|
-
params: {
|
|
213
|
-
isEditorDisabled: boolean;
|
|
214
|
-
isImageCompressed: boolean;
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Represents a text with header form data entity.
|
|
220
|
-
*
|
|
221
|
-
* @interface IBodyTypeTextWithHeader
|
|
222
|
-
*
|
|
223
|
-
* @property {string} marker - marker name. Example: "about".
|
|
224
|
-
* @property {string} type - Type value. Example: "textWithHeader".
|
|
225
|
-
* @property {object} value - Text Object. Contains html as string, header and params. Example:
|
|
226
|
-
{
|
|
227
|
-
"header": "Headline",
|
|
228
|
-
"htmlValue": "<p>Hello World</p>",
|
|
229
|
-
"plainValue": "",
|
|
230
|
-
"params": {
|
|
231
|
-
"isEditorDisabled": false,
|
|
232
|
-
"isImageCompressed": true
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
* @description Represents a text value with a header, HTML and plain text representations, along with parameters for editor and image compression settings.
|
|
236
|
-
*/
|
|
237
|
-
interface IBodyTypeTextWithHeader {
|
|
238
|
-
marker: string;
|
|
239
|
-
type: 'textWithHeader';
|
|
240
|
-
value: {
|
|
241
|
-
header: string;
|
|
242
|
-
htmlValue: string;
|
|
243
|
-
plainValue: string;
|
|
244
|
-
params: {
|
|
245
|
-
isEditorDisabled: boolean;
|
|
246
|
-
isImageCompressed: boolean;
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
}
|
|
250
|
-
/**
|
|
251
|
-
* Represents an image or group of images form data entity.
|
|
252
|
-
*
|
|
253
|
-
* @interface IBodyTypeImageGroupOfImages
|
|
254
|
-
*
|
|
255
|
-
* @property {string} marker - marker name. Example: "avatar".
|
|
256
|
-
* @property {'image' | 'groupOfImage'} type - Type value. Example: "image".
|
|
257
|
-
* @property {object} value - Image Object. Contains image information. Example:
|
|
258
|
-
[
|
|
259
|
-
{
|
|
260
|
-
"filename": "files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
|
|
261
|
-
"downloadLink": "http://my-site.com/cloud-static/files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
|
|
262
|
-
"size": 392585,
|
|
263
|
-
"previewLink": "",
|
|
264
|
-
"params": {
|
|
265
|
-
"isImageCompressed": true
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
]
|
|
269
|
-
* @description Represents an image or a group of images with their details, including filename, download link, size, preview link, and parameters for image compression.
|
|
270
|
-
*/
|
|
271
|
-
interface IBodyTypeImageGroupOfImages {
|
|
272
|
-
marker: string;
|
|
273
|
-
type: 'image' | 'groupOfImage';
|
|
274
|
-
value: {
|
|
275
|
-
filename: string;
|
|
276
|
-
downloadLink: string;
|
|
277
|
-
size: number;
|
|
278
|
-
previewLink: string;
|
|
279
|
-
params: {
|
|
280
|
-
isImageCompressed: boolean;
|
|
281
|
-
};
|
|
282
|
-
} | Array<{
|
|
283
|
-
filename: string;
|
|
284
|
-
downloadLink: string;
|
|
285
|
-
size: number;
|
|
286
|
-
previewLink: string;
|
|
287
|
-
params: {
|
|
288
|
-
isImageCompressed: boolean;
|
|
289
|
-
};
|
|
290
|
-
}>;
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Represents a file form data entity.
|
|
294
|
-
*
|
|
295
|
-
* @interface IBodyTypeFile
|
|
296
|
-
*
|
|
297
|
-
* @property {string} marker - marker name. Example: "picture".
|
|
298
|
-
* @property {'file'} type - Type value. Example: "file".
|
|
299
|
-
* @property {object} value - File Object. Contains file information. Example:
|
|
300
|
-
[
|
|
301
|
-
{
|
|
302
|
-
"filename": "files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
|
|
303
|
-
"downloadLink": "http://my-site.com/cloud-static/files/project/page/10/image/Screenshot-from-2024-05-02-15-23-14.png",
|
|
304
|
-
"size": 392585
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
* @description Represents a file with its details, including filename, download link, and size.
|
|
308
|
-
*/
|
|
309
|
-
interface IBodyTypeFile {
|
|
310
|
-
marker: string;
|
|
311
|
-
type: 'file';
|
|
312
|
-
value: {
|
|
313
|
-
filename: string;
|
|
314
|
-
downloadLink: string;
|
|
315
|
-
size: number;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
/**
|
|
319
|
-
* Represents a radio button or list selection form data entity.
|
|
320
|
-
*
|
|
321
|
-
* @interface IBodyTypeRadioButtonList
|
|
322
|
-
*
|
|
323
|
-
* @property {string} marker - marker name. Example: "selector".
|
|
324
|
-
* @property {string} type - Type value. Example: 'list'.
|
|
325
|
-
* @property {array} value - Array of list or radioButton bojects. Example:
|
|
326
|
-
[
|
|
327
|
-
{
|
|
328
|
-
"title": "red",
|
|
329
|
-
"value": "1",
|
|
330
|
-
"extended": {
|
|
331
|
-
"value": "red",
|
|
332
|
-
"type": "string"
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
]
|
|
336
|
-
* @description Represents a list or radio button selection with multiple options, each containing a title, value, and extended information.
|
|
337
|
-
*/
|
|
338
|
-
interface IBodyTypeRadioButtonList {
|
|
339
|
-
marker: string;
|
|
340
|
-
type: 'list' | 'radioButton';
|
|
341
|
-
value: Array<{
|
|
342
|
-
title: string;
|
|
343
|
-
value: string;
|
|
344
|
-
extended: {
|
|
345
|
-
value: string;
|
|
346
|
-
type: string;
|
|
347
|
-
};
|
|
348
|
-
}>;
|
|
349
|
-
}
|
|
350
|
-
export type { FormDataType, IBodyTypeFile, IBodyTypeImageGroupOfImages, IBodyTypeRadioButtonList, IBodyTypeStringNumberFloat, IBodyTypeText, IBodyTypeTextWithHeader, IBodyTypeTimeDate, IFormDataEntity, IFormsData, IFormsDataEntity, IFormsPost, };
|
|
File without changes
|