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
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import type { IError, ILocalizeInfo } from '../base/utils';
|
|
2
2
|
/**
|
|
3
3
|
* @interface IOrdersApi
|
|
4
|
-
* @property {Function} getOrderByMarker
|
|
5
|
-
* @property {Function} createOrder
|
|
4
|
+
* @property {Function} getOrderByMarker - Retrieve one order storage object by marker.
|
|
5
|
+
* @property {Function} createOrder - Creation of an order in the order storage.
|
|
6
6
|
* @property {Function} updateOrderByMarkerAndId - Changing an order in the order store.
|
|
7
|
-
* @property {Function} getOrderByMarkerAndId
|
|
8
|
-
* @property {Function} getAllOrders
|
|
9
|
-
* @property {Function} getAllOrdersByMarker
|
|
10
|
-
* @property {Function} setAccessToken
|
|
7
|
+
* @property {Function} getOrderByMarkerAndId - Getting a single order from the order storage object created by the user.
|
|
8
|
+
* @property {Function} getAllOrders - Getting all the order storage objects.
|
|
9
|
+
* @property {Function} getAllOrdersByMarker - Getting one order storage object by marker.
|
|
10
|
+
* @property {Function} setAccessToken - Only for custom authorization. An intermediate method for setting up an access token.
|
|
11
11
|
* @description Represents the API for managing orders in the order storage.
|
|
12
12
|
*/
|
|
13
13
|
interface IOrdersApi {
|
|
14
14
|
/**
|
|
15
15
|
* Getting all the order storage objects.
|
|
16
16
|
* @handleName getAllOrdersStorage
|
|
17
|
-
* @param
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
20
|
-
* @returns {Promise<IOrdersEntity[] | IError>}
|
|
17
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
18
|
+
* @param {number} [offset] - Optional parameter for pagination. Default: 0.
|
|
19
|
+
* @param {number} [limit] - Optional parameter for pagination. Default: 30.
|
|
20
|
+
* @returns {Promise<IOrdersEntity[] | IError>} Returns an array of order storage objects.
|
|
21
21
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
22
22
|
* @description This method gets all the order storage objects.
|
|
23
23
|
*/
|
|
@@ -25,11 +25,11 @@ interface IOrdersApi {
|
|
|
25
25
|
/**
|
|
26
26
|
* Getting all orders from the orders storage object created by the user.
|
|
27
27
|
* @handleName getAllOrdersByMarker
|
|
28
|
-
* @param
|
|
29
|
-
* @param
|
|
30
|
-
* @param
|
|
31
|
-
* @param
|
|
32
|
-
* @returns {Promise<IOrdersByMarkerEntity | IError>}
|
|
28
|
+
* @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
|
|
29
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
30
|
+
* @param {number} [offset] - Offset parameter. Default: 0.
|
|
31
|
+
* @param {number} [limit] - Limit parameter. Default: 30.
|
|
32
|
+
* @returns {Promise<IOrdersByMarkerEntity | IError>} Returns an object with the orders.
|
|
33
33
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
34
34
|
* @description This method gets all orders from the orders storage object created by the user.
|
|
35
35
|
*/
|
|
@@ -37,9 +37,9 @@ interface IOrdersApi {
|
|
|
37
37
|
/**
|
|
38
38
|
* Retrieve one order storage object by marker.
|
|
39
39
|
* @handleName getOrderByMarker
|
|
40
|
-
* @param
|
|
41
|
-
* @param
|
|
42
|
-
* @returns {Promise<IOrdersEntity | IError>}
|
|
40
|
+
* @param {string} marker - Marker of the order object. Example: "order_storage_1".
|
|
41
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
42
|
+
* @returns {Promise<IOrdersEntity | IError>} Return object of order information.
|
|
43
43
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
44
44
|
* @description This method retrieves one order storage object by marker.
|
|
45
45
|
*/
|
|
@@ -47,10 +47,10 @@ interface IOrdersApi {
|
|
|
47
47
|
/**
|
|
48
48
|
* Getting a single order from the order storage object created by the user.
|
|
49
49
|
* @handleName getOrderByMarkerAndId
|
|
50
|
-
* @param
|
|
51
|
-
* @param
|
|
52
|
-
* @param
|
|
53
|
-
* @returns {Promise<IOrderByMarkerEntity | IError>}
|
|
50
|
+
* @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
|
|
51
|
+
* @param {number} id - ID of the order object. Example: 12345.
|
|
52
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
53
|
+
* @returns {Promise<IOrderByMarkerEntity | IError>} Returns an object with the order.
|
|
54
54
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
55
55
|
* @description This method gets a single order from the order storage object created by the user.
|
|
56
56
|
*/
|
|
@@ -58,25 +58,25 @@ interface IOrdersApi {
|
|
|
58
58
|
/**
|
|
59
59
|
* Creation of an order in the order storage.
|
|
60
60
|
* @handleName createOrder
|
|
61
|
-
* @param
|
|
62
|
-
* @param
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
* @param
|
|
79
|
-
* @returns {Promise<IBaseOrdersEntity | IError>}
|
|
61
|
+
* @param {string} marker - Textual identifier of the order storage object. Example: "order_storage_1".
|
|
62
|
+
* @param {IOrderData} body - Object for creating an order. Example:
|
|
63
|
+
{
|
|
64
|
+
"formIdentifier": "bar-orders-form",
|
|
65
|
+
"paymentAccountIdentifier": "usd-payment",
|
|
66
|
+
"formData": {
|
|
67
|
+
"marker": "name_1",
|
|
68
|
+
"value": "Name",
|
|
69
|
+
"type": "string"
|
|
70
|
+
},
|
|
71
|
+
"products": [
|
|
72
|
+
{
|
|
73
|
+
"productId": 1,
|
|
74
|
+
"quantity": 2
|
|
75
|
+
}
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
79
|
+
* @returns {Promise<IBaseOrdersEntity | IError>} Returns an object with the created order.
|
|
80
80
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
81
81
|
* @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
82
|
*/
|
|
@@ -84,27 +84,27 @@ interface IOrdersApi {
|
|
|
84
84
|
/**
|
|
85
85
|
* Changing an order in the orders storage
|
|
86
86
|
* @handleName updateOrderByMarkerAndId
|
|
87
|
-
* @param
|
|
88
|
-
* @param
|
|
89
|
-
* @param
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
* @param
|
|
107
|
-
* @returns {Promise<IBaseOrdersEntity | IError>}
|
|
87
|
+
* @param {string} marker - The text identifier of the order storage object. Example: "order_storage_1".
|
|
88
|
+
* @param {number} id - ID of the order object. Example: 12345.
|
|
89
|
+
* @param {IOrderData} body - Object for updating an order. Example:
|
|
90
|
+
{
|
|
91
|
+
"formIdentifier": "bar-orders-form",
|
|
92
|
+
"paymentAccountIdentifier": "usd-payment",
|
|
93
|
+
"formData": {
|
|
94
|
+
"marker": "name_1",
|
|
95
|
+
"value": "Name",
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
"products": [
|
|
99
|
+
{
|
|
100
|
+
"productId": 1,
|
|
101
|
+
"quantity": 2
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"currency": "USD"
|
|
105
|
+
}
|
|
106
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
107
|
+
* @returns {Promise<IBaseOrdersEntity | IError>} Returns an object with the updated order.
|
|
108
108
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
109
109
|
* @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.
|
|
110
110
|
*/
|
|
@@ -114,41 +114,41 @@ interface IOrdersApi {
|
|
|
114
114
|
* Interface for the orders storage object.
|
|
115
115
|
* @interface IOrdersByMarkerEntity
|
|
116
116
|
* @property {IOrderByMarkerEntity[]} items - Array of order storage objects. Example:
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
* @property {number}
|
|
117
|
+
[
|
|
118
|
+
{
|
|
119
|
+
"id": 55,
|
|
120
|
+
"storageId": 1,
|
|
121
|
+
"createdDate": "2025-03-22T21:12:42.371Z",
|
|
122
|
+
"statusIdentifier": "inProgress",
|
|
123
|
+
"formIdentifier": "orderForm",
|
|
124
|
+
"formData": [
|
|
125
|
+
{
|
|
126
|
+
"marker": "order_name",
|
|
127
|
+
"value": "Ivan",
|
|
128
|
+
"type": "string"
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"attributeSetIdentifier": "order_form",
|
|
132
|
+
"totalSum": "300.00",
|
|
133
|
+
"currency": "",
|
|
134
|
+
"paymentAccountIdentifier": "cash",
|
|
135
|
+
"paymentAccountLocalizeInfos": {
|
|
136
|
+
"title": "Cash"
|
|
137
|
+
},
|
|
138
|
+
"products": [
|
|
139
|
+
{
|
|
140
|
+
"id": 2957,
|
|
141
|
+
"title": "Cosmo",
|
|
142
|
+
"sku": null,
|
|
143
|
+
"previewImage": null,
|
|
144
|
+
"price": 150,
|
|
145
|
+
"quantity": 2
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"isCompleted": false
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
* @property {number} total - Total number of found records. Example: 100.
|
|
152
152
|
* @description Represents a response from the order storage by marker.
|
|
153
153
|
*/
|
|
154
154
|
interface IOrdersByMarkerEntity {
|
|
@@ -158,10 +158,10 @@ interface IOrdersByMarkerEntity {
|
|
|
158
158
|
/**
|
|
159
159
|
* Interface representing a picture entity.
|
|
160
160
|
* @interface IPicture
|
|
161
|
-
* @property {string} filename
|
|
161
|
+
* @property {string} filename - The name of the file. Example: "image.jpg".
|
|
162
162
|
* @property {string} downloadLink - The URL link to download the picture. Example: "https://example.com/image.jpg".
|
|
163
|
-
* @property {number} size
|
|
164
|
-
* @property {string} previewLink
|
|
163
|
+
* @property {number} size - The size of the picture in bytes. Example: 102400.
|
|
164
|
+
* @property {string} previewLink - The URL link to preview the picture. Example: "https://example.com/image-preview.jpg".
|
|
165
165
|
* @description This interface defines the structure for a picture entity, including its filename, download link, size, and preview link.
|
|
166
166
|
*/
|
|
167
167
|
interface IPicture {
|
|
@@ -173,18 +173,18 @@ interface IPicture {
|
|
|
173
173
|
/**
|
|
174
174
|
* Interface representing a product in an order.
|
|
175
175
|
* @interface IOrderProducts
|
|
176
|
-
* @property {number}
|
|
177
|
-
* @property {number}
|
|
178
|
-
* @property {string}
|
|
179
|
-
* @property {string | null} sku
|
|
180
|
-
* @property {any}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
* @property {number}
|
|
176
|
+
* @property {number} id - Product id. Example: 2957.
|
|
177
|
+
* @property {number} quantity - Product quantity. Example: 1.
|
|
178
|
+
* @property {string} title - Product title. Example: "Cosmo".
|
|
179
|
+
* @property {string | null} sku - Product sku. Example: "SKU".
|
|
180
|
+
* @property {any} previewImage - Product previewImage. Example:
|
|
181
|
+
{
|
|
182
|
+
"filename": "image.jpg",
|
|
183
|
+
"downloadLink": "https://example.com/image.jpg",
|
|
184
|
+
"size": 102400,
|
|
185
|
+
"previewLink": "https://example.com/image-preview.jpg"
|
|
186
|
+
}
|
|
187
|
+
* @property {number} price - Product price. Example: 150.
|
|
188
188
|
* @description Represents a product in an order.
|
|
189
189
|
*/
|
|
190
190
|
interface IOrderProducts {
|
|
@@ -199,8 +199,8 @@ interface IOrderProducts {
|
|
|
199
199
|
* Interface representing form data for orders.
|
|
200
200
|
* @interface IOrdersFormData
|
|
201
201
|
* @property {string} marker - Marker of form field. Example: "name_1".
|
|
202
|
-
* @property {string} type
|
|
203
|
-
* @property {string} value
|
|
202
|
+
* @property {string} type - Type of value. Example: "string".
|
|
203
|
+
* @property {string} value - Value. Example: "Name".
|
|
204
204
|
* @description Represents a form data for orders.
|
|
205
205
|
*/
|
|
206
206
|
interface IOrdersFormData {
|
|
@@ -212,7 +212,7 @@ interface IOrdersFormData {
|
|
|
212
212
|
* Interface representing product data in an order.
|
|
213
213
|
* @interface IOrderProductData
|
|
214
214
|
* @property {number} productId - Product identifier. Example: 1.
|
|
215
|
-
* @property {number} quantity
|
|
215
|
+
* @property {number} quantity - Quantity of the product. Example: 2.
|
|
216
216
|
* @description Represents a product data in an order.
|
|
217
217
|
*/
|
|
218
218
|
interface IOrderProductData {
|
|
@@ -222,12 +222,12 @@ interface IOrderProductData {
|
|
|
222
222
|
/**
|
|
223
223
|
* Interface representing product data in an order.
|
|
224
224
|
* @interface IOrderProductsData
|
|
225
|
-
* @property {number} id
|
|
226
|
-
* @property {any}
|
|
227
|
-
* @property {number} price
|
|
228
|
-
* @property {number} quantity
|
|
229
|
-
* @property {string} sku
|
|
230
|
-
* @property {string} title
|
|
225
|
+
* @property {number} id - Product identifier. Example: 1.
|
|
226
|
+
* @property {any} previewImage - Product preview image.
|
|
227
|
+
* @property {number} price - Product price. Example: 10.
|
|
228
|
+
* @property {number} quantity - Quantity of the product. Example: 2.
|
|
229
|
+
* @property {string} sku - Product SKU. Example: "sku_1".
|
|
230
|
+
* @property {string} title - Product title. Example: "Product 1".
|
|
231
231
|
* @description Represents a product data in an order.
|
|
232
232
|
*/
|
|
233
233
|
interface IOrderProductsData {
|
|
@@ -241,32 +241,32 @@ interface IOrderProductsData {
|
|
|
241
241
|
/**
|
|
242
242
|
* Interface representing an order storage object.
|
|
243
243
|
* @interface IBaseOrdersEntity
|
|
244
|
-
* @property {number}
|
|
245
|
-
* @property {string}
|
|
246
|
-
* @property {string}
|
|
247
|
-
* @property {IOrdersFormData[]}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
* @property {IOrderProductsData[]} products
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
* @property {string}
|
|
267
|
-
* @property {number}
|
|
268
|
-
* @property {string}
|
|
269
|
-
* @property {string}
|
|
244
|
+
* @property {number} id - Object identifier. Example: 1.
|
|
245
|
+
* @property {string} formIdentifier - Text identifier of the form. Example: "bar-orders-form".
|
|
246
|
+
* @property {string} paymentAccountIdentifier - Text identifier of the order payment. Example: "payment-1".
|
|
247
|
+
* @property {IOrdersFormData[]} formData - Data submitted by the form linked to the order store. Example:
|
|
248
|
+
[
|
|
249
|
+
{
|
|
250
|
+
"marker": "name_1",
|
|
251
|
+
"value": "Name",
|
|
252
|
+
"type": "string"
|
|
253
|
+
}
|
|
254
|
+
]
|
|
255
|
+
* @property {IOrderProductsData[]} products - Array of products added to order. Example:
|
|
256
|
+
[
|
|
257
|
+
{
|
|
258
|
+
"id": 2957,
|
|
259
|
+
"title": "Cosmo",
|
|
260
|
+
"sku": null,
|
|
261
|
+
"previewImage": null,
|
|
262
|
+
"price": 150,
|
|
263
|
+
"quantity": 2
|
|
264
|
+
}
|
|
265
|
+
]
|
|
266
|
+
* @property {string} currency - Currency used to pay for the order. Example: "USD".
|
|
267
|
+
* @property {number} totalSum - Total order amount. Example: "150".
|
|
268
|
+
* @property {string} [createdDate] - Order creation date. Example: "2023-10-01T12:00:00Z".
|
|
269
|
+
* @property {string} [statusIdentifier] - Text identifier of order status object (if not set, default status will be assigned). Example: "status-1".
|
|
270
270
|
*/
|
|
271
271
|
interface IBaseOrdersEntity {
|
|
272
272
|
id: number;
|
|
@@ -283,17 +283,17 @@ interface IBaseOrdersEntity {
|
|
|
283
283
|
* Interface representing a response from the order storage.
|
|
284
284
|
* @interface IBaseOrdersEntityResponse
|
|
285
285
|
* @property {IBaseOrdersEntity[]} items - Array of order storage objects. Example:
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
* @property {string | number}
|
|
286
|
+
[
|
|
287
|
+
{
|
|
288
|
+
"id": 2957,
|
|
289
|
+
"title": "Cosmo",
|
|
290
|
+
"sku": null,
|
|
291
|
+
"previewImage": null,
|
|
292
|
+
"price": 150,
|
|
293
|
+
"quantity": 2
|
|
294
|
+
}
|
|
295
|
+
]
|
|
296
|
+
* @property {string | number} total - Total number of found records. Example: 100.
|
|
297
297
|
* @description Represents a response from the order storage.
|
|
298
298
|
*/
|
|
299
299
|
interface IBaseOrdersEntityResponse {
|
|
@@ -303,15 +303,15 @@ interface IBaseOrdersEntityResponse {
|
|
|
303
303
|
/**
|
|
304
304
|
* Interface representing an order storage object.
|
|
305
305
|
* @interface IOrdersEntity
|
|
306
|
-
* @property {number}
|
|
307
|
-
* @property {ILocalizeInfo}
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
* @property {number | null}
|
|
312
|
-
* @property {string}
|
|
313
|
-
* @property {string}
|
|
314
|
-
* @property {number | null}
|
|
306
|
+
* @property {number} id - Object identifier. Example: 1.
|
|
307
|
+
* @property {ILocalizeInfo} localizeInfos - Name considering localization. Example:
|
|
308
|
+
{
|
|
309
|
+
"title": "Cash"
|
|
310
|
+
}
|
|
311
|
+
* @property {number | null} position - Position in orders storage. Example: 1.
|
|
312
|
+
* @property {string} identifier - Textual identifier for the record field. Example: "order_storage_1".
|
|
313
|
+
* @property {string} formIdentifier - Textual identifier for the form used by the order storage. Example: "bar-orders-form".
|
|
314
|
+
* @property {number | null} generalTypeId - Type identifier. Example: 1.
|
|
315
315
|
* @property {IPaymentAccountIdentifiers[]} paymentAccountIdentifiers - Array of textual identifiers of payment accounts used by the order storage. Example: [{ "identifier": "payment-1" }].
|
|
316
316
|
* @description Represents an order storage object.
|
|
317
317
|
*/
|
|
@@ -336,17 +336,17 @@ interface IPaymentAccountIdentifiers {
|
|
|
336
336
|
/**
|
|
337
337
|
* Interface representing the data required to create or update an order in the order storage.
|
|
338
338
|
* @interface IOrderData
|
|
339
|
-
* @property {string}
|
|
340
|
-
* @property {string}
|
|
341
|
-
* @property {IOrdersFormData | IOrdersFormData[]} formData
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
* @property {IOrderProductData[]}
|
|
339
|
+
* @property {string} formIdentifier - Text identifier of the form object linked to the order repository. Example: "bar-orders-form".
|
|
340
|
+
* @property {string} paymentAccountIdentifier - Text identifier of the payment object linked to the order repository. Example: "payment-1".
|
|
341
|
+
* @property {IOrdersFormData | IOrdersFormData[]} formData - Form data linked to the order repository. Example:
|
|
342
|
+
[
|
|
343
|
+
{
|
|
344
|
+
"marker": "name_1",
|
|
345
|
+
"value": "Name",
|
|
346
|
+
"type": "string"
|
|
347
|
+
}
|
|
348
|
+
]
|
|
349
|
+
* @property {IOrderProductData[]} products - An array of ordered products. Example: .
|
|
350
350
|
* @description Represents the data required to create or update an order in the order storage.
|
|
351
351
|
*/
|
|
352
352
|
interface IOrderData {
|
|
@@ -358,27 +358,33 @@ interface IOrderData {
|
|
|
358
358
|
/**
|
|
359
359
|
* Interface representing an order product data.
|
|
360
360
|
* @interface IOrderByMarkerEntity
|
|
361
|
-
* @property {number}
|
|
362
|
-
* @property {number}
|
|
363
|
-
* @property {string}
|
|
364
|
-
* @property {string}
|
|
365
|
-
* @property {string}
|
|
366
|
-
* @property {IOrdersFormData[]}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
* @property {string | null}
|
|
375
|
-
* @property {string}
|
|
376
|
-
* @property {string}
|
|
377
|
-
* @property {string | null}
|
|
361
|
+
* @property {number} id - Object identifier. Example: 125.
|
|
362
|
+
* @property {number} storageId - Identifier of the order storage object. Example: 1.
|
|
363
|
+
* @property {string} createdDate - Date when the order was created. Example: "2023-10-01T12:00:00Z".
|
|
364
|
+
* @property {string} [statusIdentifier] - Text identifier of the order status. Example: "order-status-1".
|
|
365
|
+
* @property {string} [formIdentifier] - Text identifier of the form. Example: "bar-orders-form".
|
|
366
|
+
* @property {IOrdersFormData[]} formData - Data submitted by the form linked to the order store. Example:
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
|
+
"marker": "order_name",
|
|
370
|
+
"value": "Ivan",
|
|
371
|
+
"type": "string"
|
|
372
|
+
}
|
|
373
|
+
]
|
|
374
|
+
* @property {string | null} [attributeSetIdentifier] - Text identifier of the attribute set. Example: "attribute-set-1".
|
|
375
|
+
* @property {string} totalSum - Total order amount. Example: "100.00".
|
|
376
|
+
* @property {string} currency - Currency used to pay for the order. Example: "USD".
|
|
377
|
+
* @property {string | null} [paymentAccountIdentifier] - Textual identifier for the order payment. Example: "payment-1".
|
|
378
378
|
* @property {Record<string, any>} paymentAccountLocalizeInfos - Payment account name considering localization. Example: { "en_US": "USD Payment", "ru_RU": "Оплата в долларах США" }.
|
|
379
|
-
* @property {IOrderProducts[]}
|
|
380
|
-
|
|
381
|
-
|
|
379
|
+
* @property {IOrderProducts[]} products - Array of products added to order. Example:
|
|
380
|
+
[
|
|
381
|
+
{
|
|
382
|
+
"id": 1,
|
|
383
|
+
"name": "Product 1",
|
|
384
|
+
"quantity": 2
|
|
385
|
+
}
|
|
386
|
+
]
|
|
387
|
+
* @property {boolean} isCompleted - Indicates that the order has been completed. Example: true.
|
|
382
388
|
* @description Represents an order storage object created by the user.
|
|
383
389
|
*/
|
|
384
390
|
interface IOrderByMarkerEntity {
|