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.
Files changed (86) hide show
  1. package/README.md +0 -2
  2. package/configure.js +25 -18
  3. package/dist/admins/adminsApi.d.ts +30 -25
  4. package/dist/admins/adminsApi.js +30 -25
  5. package/dist/admins/adminsInterfaces.d.ts +45 -54
  6. package/dist/attribute-sets/attributeSetsApi.d.ts +26 -27
  7. package/dist/attribute-sets/attributeSetsApi.js +26 -27
  8. package/dist/attribute-sets/attributeSetsInterfaces.d.ts +101 -109
  9. package/dist/auth-provider/authProviderApi.d.ts +132 -158
  10. package/dist/auth-provider/authProviderApi.js +131 -157
  11. package/dist/auth-provider/authProvidersInterfaces.d.ts +241 -237
  12. package/dist/base/asyncModules.d.ts +23 -21
  13. package/dist/base/asyncModules.js +30 -25
  14. package/dist/base/result.d.ts +31 -0
  15. package/dist/base/result.js +32 -1
  16. package/dist/base/stateModule.d.ts +10 -0
  17. package/dist/base/stateModule.js +50 -2
  18. package/dist/base/syncModules.d.ts +41 -49
  19. package/dist/base/syncModules.js +49 -48
  20. package/dist/base/utils.d.ts +38 -7
  21. package/dist/blocks/blocksApi.d.ts +27 -36
  22. package/dist/blocks/blocksApi.js +27 -36
  23. package/dist/blocks/blocksInterfaces.d.ts +92 -97
  24. package/dist/config.d.ts +13 -0
  25. package/dist/config.js +30 -0
  26. package/dist/events/eventsApi.d.ts +16 -33
  27. package/dist/events/eventsApi.js +32 -46
  28. package/dist/events/eventsInterfaces.d.ts +42 -37
  29. package/dist/file-uploading/fileUploadingApi.d.ts +42 -47
  30. package/dist/file-uploading/fileUploadingApi.js +44 -47
  31. package/dist/file-uploading/fileUploadingInterfaces.d.ts +49 -60
  32. package/dist/forms/formsApi.d.ts +15 -14
  33. package/dist/forms/formsApi.js +15 -14
  34. package/dist/forms/formsInterfaces.d.ts +36 -40
  35. package/dist/forms-data/formsDataApi.d.ts +77 -0
  36. package/dist/{formsData → forms-data}/formsDataApi.js +44 -42
  37. package/dist/forms-data/formsDataInterfaces.d.ts +462 -0
  38. package/dist/general-types/generalTypesApi.d.ts +5 -5
  39. package/dist/general-types/generalTypesApi.js +5 -5
  40. package/dist/general-types/generalTypesInterfaces.d.ts +6 -9
  41. package/dist/index.d.ts +12 -13
  42. package/dist/index.js +12 -13
  43. package/dist/integration-collections/integrationCollectionsApi.d.ts +84 -98
  44. package/dist/integration-collections/integrationCollectionsApi.js +86 -102
  45. package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +177 -169
  46. package/dist/locales/localesApi.d.ts +7 -3
  47. package/dist/locales/localesApi.js +7 -3
  48. package/dist/locales/localesInterfaces.d.ts +14 -13
  49. package/dist/menus/menusApi.d.ts +9 -5
  50. package/dist/menus/menusApi.js +9 -5
  51. package/dist/menus/menusInterfaces.d.ts +43 -48
  52. package/dist/menus/menusInterfaces.js +1 -0
  53. package/dist/orders/ordersApi.d.ts +62 -70
  54. package/dist/orders/ordersApi.js +62 -71
  55. package/dist/orders/ordersInterfaces.d.ts +238 -203
  56. package/dist/pages/pagesApi.d.ts +67 -80
  57. package/dist/pages/pagesApi.js +71 -81
  58. package/dist/pages/pagesInterfaces.d.ts +164 -160
  59. package/dist/payments/paymentsApi.d.ts +24 -34
  60. package/dist/payments/paymentsApi.js +24 -38
  61. package/dist/payments/paymentsInterfaces.d.ts +82 -76
  62. package/dist/product-statuses/productStatusesApi.d.ts +13 -13
  63. package/dist/product-statuses/productStatusesApi.js +13 -13
  64. package/dist/product-statuses/productStatusesInterfaces.d.ts +29 -27
  65. package/dist/products/productsApi.d.ts +246 -267
  66. package/dist/products/productsApi.js +247 -267
  67. package/dist/products/productsInterfaces.d.ts +333 -339
  68. package/dist/system/systemApi.d.ts +19 -21
  69. package/dist/system/systemApi.js +20 -21
  70. package/dist/system/systemInterfaces.d.ts +14 -3
  71. package/dist/templates/templatesApi.d.ts +13 -16
  72. package/dist/templates/templatesApi.js +13 -16
  73. package/dist/templates/templatesInterfaces.d.ts +30 -29
  74. package/dist/templates-preview/templatesPreviewApi.d.ts +10 -11
  75. package/dist/templates-preview/templatesPreviewApi.js +10 -11
  76. package/dist/templates-preview/templatesPreviewInterfaces.d.ts +61 -64
  77. package/dist/users/usersApi.d.ts +36 -43
  78. package/dist/users/usersApi.js +36 -43
  79. package/dist/users/usersInterfaces.d.ts +92 -96
  80. package/dist/web-socket/wsApi.d.ts +5 -3
  81. package/dist/web-socket/wsApi.js +6 -3
  82. package/dist/web-socket/wsInterfaces.d.ts +7 -2
  83. package/package.json +16 -12
  84. package/dist/formsData/formsDataApi.d.ts +0 -77
  85. package/dist/formsData/formsDataInterfaces.d.ts +0 -350
  86. /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, };