oneentry 1.0.173 → 1.0.174
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/changelog.md +23 -0
- package/dist/admins/adminsApi.d.ts +7 -7
- package/dist/admins/adminsApi.js +7 -7
- package/dist/admins/adminsInterfaces.d.ts +22 -22
- package/dist/attribute-sets/attributeSetsApi.d.ts +8 -8
- package/dist/attribute-sets/attributeSetsApi.js +8 -8
- package/dist/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
- package/dist/auth-provider/authProviderApi.d.ts +29 -29
- package/dist/auth-provider/authProviderApi.js +29 -29
- package/dist/auth-provider/authProvidersInterfaces.d.ts +52 -52
- package/dist/base/asyncModules.d.ts +6 -6
- package/dist/base/asyncModules.js +6 -6
- package/dist/base/syncModules.d.ts +1 -1
- package/dist/base/syncModules.js +1 -1
- package/dist/base/utils.d.ts +3 -3
- package/dist/blocks/blocksApi.d.ts +35 -35
- package/dist/blocks/blocksApi.js +35 -35
- package/dist/blocks/blocksInterfaces.d.ts +55 -55
- package/dist/discounts/discountsApi.d.ts +14 -14
- package/dist/discounts/discountsApi.js +14 -14
- package/dist/discounts/discountsInterfaces.d.ts +52 -52
- package/dist/events/eventsApi.d.ts +13 -13
- package/dist/events/eventsApi.js +13 -13
- package/dist/events/eventsInterfaces.d.ts +18 -18
- package/dist/file-uploading/fileUploadingApi.d.ts +14 -14
- package/dist/file-uploading/fileUploadingApi.js +14 -14
- package/dist/file-uploading/fileUploadingInterfaces.d.ts +25 -25
- package/dist/filters/filtersApi.d.ts +1 -1
- package/dist/filters/filtersApi.js +1 -1
- package/dist/filters/filtersInterfaces.d.ts +7 -7
- package/dist/forms/formsApi.d.ts +3 -3
- package/dist/forms/formsApi.js +3 -3
- package/dist/forms/formsInterfaces.d.ts +42 -42
- package/dist/forms-data/formsDataApi.d.ts +14 -14
- package/dist/forms-data/formsDataApi.js +14 -14
- package/dist/forms-data/formsDataInterfaces.d.ts +67 -68
- package/dist/general-types/generalTypesInterfaces.d.ts +2 -2
- package/dist/integration-collections/integrationCollectionsApi.d.ts +20 -20
- package/dist/integration-collections/integrationCollectionsApi.js +20 -20
- package/dist/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
- package/dist/locales/localesInterfaces.d.ts +8 -8
- package/dist/menus/menusApi.d.ts +1 -1
- package/dist/menus/menusApi.js +1 -1
- package/dist/menus/menusInterfaces.d.ts +12 -12
- package/dist/orders/ordersApi.d.ts +26 -26
- package/dist/orders/ordersApi.js +26 -26
- package/dist/orders/ordersInterfaces.d.ts +99 -99
- package/dist/pages/pagesApi.d.ts +6 -6
- package/dist/pages/pagesApi.js +6 -6
- package/dist/pages/pagesInterfaces.d.ts +46 -46
- package/dist/payments/paymentsApi.d.ts +8 -8
- package/dist/payments/paymentsApi.js +8 -8
- package/dist/payments/paymentsInterfaces.d.ts +31 -31
- package/dist/product-statuses/productStatusesApi.d.ts +2 -2
- package/dist/product-statuses/productStatusesApi.js +2 -2
- package/dist/product-statuses/productStatusesInterfaces.d.ts +8 -8
- package/dist/products/productsApi.d.ts +37 -37
- package/dist/products/productsApi.js +36 -36
- package/dist/products/productsInterfaces.d.ts +96 -96
- package/dist/search/searchApi.d.ts +3 -3
- package/dist/search/searchApi.js +3 -3
- package/dist/search/searchInterfaces.d.ts +4 -4
- package/dist/sitemap/sitemapApi.d.ts +1 -1
- package/dist/sitemap/sitemapApi.js +1 -1
- package/dist/sitemap/sitemapInterfaces.d.ts +2 -2
- package/dist/subscriptions/subscriptionsApi.d.ts +3 -3
- package/dist/subscriptions/subscriptionsApi.js +3 -3
- package/dist/subscriptions/subscriptionsInterfaces.d.ts +11 -11
- package/dist/templates/templatesApi.d.ts +2 -2
- package/dist/templates/templatesApi.js +2 -2
- package/dist/templates/templatesInterfaces.d.ts +10 -10
- package/dist/templates-preview/templatesPreviewApi.d.ts +1 -1
- package/dist/templates-preview/templatesPreviewApi.js +1 -1
- package/dist/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
- package/dist/user-activity/userActivityApi.d.ts +1 -1
- package/dist/user-activity/userActivityApi.js +1 -1
- package/dist/user-activity/userActivityInterfaces.d.ts +4 -4
- package/dist/user-groups/userGroupsApi.d.ts +1 -1
- package/dist/user-groups/userGroupsApi.js +1 -1
- package/dist/user-groups/userGroupsInterfaces.d.ts +5 -5
- package/dist/users/usersApi.d.ts +7 -7
- package/dist/users/usersApi.js +7 -7
- package/dist/users/usersInterfaces.d.ts +34 -34
- package/esm/admins/adminsApi.d.ts +7 -7
- package/esm/admins/adminsApi.js +7 -7
- package/esm/admins/adminsInterfaces.d.ts +22 -22
- package/esm/attribute-sets/attributeSetsApi.d.ts +8 -8
- package/esm/attribute-sets/attributeSetsApi.js +8 -8
- package/esm/attribute-sets/attributeSetsInterfaces.d.ts +31 -31
- package/esm/auth-provider/authProviderApi.d.ts +29 -29
- package/esm/auth-provider/authProviderApi.js +29 -29
- package/esm/auth-provider/authProvidersInterfaces.d.ts +52 -52
- package/esm/base/asyncModules.d.ts +6 -6
- package/esm/base/asyncModules.js +6 -6
- package/esm/base/syncModules.d.ts +1 -1
- package/esm/base/syncModules.js +1 -1
- package/esm/base/utils.d.ts +3 -3
- package/esm/blocks/blocksApi.d.ts +35 -35
- package/esm/blocks/blocksApi.js +35 -35
- package/esm/blocks/blocksInterfaces.d.ts +55 -55
- package/esm/discounts/discountsApi.d.ts +14 -14
- package/esm/discounts/discountsApi.js +14 -14
- package/esm/discounts/discountsInterfaces.d.ts +52 -52
- package/esm/events/eventsApi.d.ts +13 -13
- package/esm/events/eventsApi.js +13 -13
- package/esm/events/eventsInterfaces.d.ts +18 -18
- package/esm/file-uploading/fileUploadingApi.d.ts +14 -14
- package/esm/file-uploading/fileUploadingApi.js +14 -14
- package/esm/file-uploading/fileUploadingInterfaces.d.ts +25 -25
- package/esm/filters/filtersApi.d.ts +1 -1
- package/esm/filters/filtersApi.js +1 -1
- package/esm/filters/filtersInterfaces.d.ts +7 -7
- package/esm/forms/formsApi.d.ts +3 -3
- package/esm/forms/formsApi.js +3 -3
- package/esm/forms/formsInterfaces.d.ts +42 -42
- package/esm/forms-data/formsDataApi.d.ts +14 -14
- package/esm/forms-data/formsDataApi.js +14 -14
- package/esm/forms-data/formsDataInterfaces.d.ts +67 -68
- package/esm/general-types/generalTypesInterfaces.d.ts +2 -2
- package/esm/integration-collections/integrationCollectionsApi.d.ts +20 -20
- package/esm/integration-collections/integrationCollectionsApi.js +20 -20
- package/esm/integration-collections/integrationCollectionsInterfaces.d.ts +44 -44
- package/esm/locales/localesInterfaces.d.ts +8 -8
- package/esm/menus/menusApi.d.ts +1 -1
- package/esm/menus/menusApi.js +1 -1
- package/esm/menus/menusInterfaces.d.ts +12 -12
- package/esm/orders/ordersApi.d.ts +26 -26
- package/esm/orders/ordersApi.js +26 -26
- package/esm/orders/ordersInterfaces.d.ts +99 -99
- package/esm/pages/pagesApi.d.ts +6 -6
- package/esm/pages/pagesApi.js +6 -6
- package/esm/pages/pagesInterfaces.d.ts +46 -46
- package/esm/payments/paymentsApi.d.ts +8 -8
- package/esm/payments/paymentsApi.js +8 -8
- package/esm/payments/paymentsInterfaces.d.ts +31 -31
- package/esm/product-statuses/productStatusesApi.d.ts +2 -2
- package/esm/product-statuses/productStatusesApi.js +2 -2
- package/esm/product-statuses/productStatusesInterfaces.d.ts +8 -8
- package/esm/products/productsApi.d.ts +37 -37
- package/esm/products/productsApi.js +36 -36
- package/esm/products/productsInterfaces.d.ts +96 -96
- package/esm/search/searchApi.d.ts +3 -3
- package/esm/search/searchApi.js +3 -3
- package/esm/search/searchInterfaces.d.ts +4 -4
- package/esm/sitemap/sitemapApi.d.ts +1 -1
- package/esm/sitemap/sitemapApi.js +1 -1
- package/esm/sitemap/sitemapInterfaces.d.ts +2 -2
- package/esm/subscriptions/subscriptionsApi.d.ts +3 -3
- package/esm/subscriptions/subscriptionsApi.js +3 -3
- package/esm/subscriptions/subscriptionsInterfaces.d.ts +11 -11
- package/esm/templates/templatesApi.d.ts +2 -2
- package/esm/templates/templatesApi.js +2 -2
- package/esm/templates/templatesInterfaces.d.ts +10 -10
- package/esm/templates-preview/templatesPreviewApi.d.ts +1 -1
- package/esm/templates-preview/templatesPreviewApi.js +1 -1
- package/esm/templates-preview/templatesPreviewInterfaces.d.ts +17 -17
- package/esm/user-activity/userActivityApi.d.ts +1 -1
- package/esm/user-activity/userActivityApi.js +1 -1
- package/esm/user-activity/userActivityInterfaces.d.ts +4 -4
- package/esm/user-groups/userGroupsApi.d.ts +1 -1
- package/esm/user-groups/userGroupsApi.js +1 -1
- package/esm/user-groups/userGroupsInterfaces.d.ts +5 -5
- package/esm/users/usersApi.d.ts +7 -7
- package/esm/users/usersApi.js +7 -7
- package/esm/users/usersInterfaces.d.ts +34 -34
- package/package.json +2 -2
|
@@ -14,8 +14,8 @@ interface ICollectionsApi {
|
|
|
14
14
|
"limit": 30,
|
|
15
15
|
"offset": 0
|
|
16
16
|
}
|
|
17
|
-
* @param {number} [userQuery.limit] -
|
|
18
|
-
* @param {number} [userQuery.offset] -
|
|
17
|
+
* @param {number} [userQuery.limit] - Maximum number of records to return. Default: 30.
|
|
18
|
+
* @param {number} [userQuery.offset] - Number of records to skip. Default: 0.
|
|
19
19
|
* @returns {ICollectionEntity[]} Returns an array of ICollection objects or an error object if there was an issue.
|
|
20
20
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
21
21
|
* @description This method gets all collections.
|
|
@@ -24,7 +24,7 @@ interface ICollectionsApi {
|
|
|
24
24
|
/**
|
|
25
25
|
* Get a single collection object by id.
|
|
26
26
|
* @handleName getICollectionById
|
|
27
|
-
* @param {number} id - Collection
|
|
27
|
+
* @param {number} id - Collection ID. Example: 1.
|
|
28
28
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
29
29
|
* @returns {ICollectionEntity} Returns an ICollection object or an error object if there was an issue.
|
|
30
30
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -34,9 +34,9 @@ interface ICollectionsApi {
|
|
|
34
34
|
/**
|
|
35
35
|
* Get all records belonging to the collection by collection id.
|
|
36
36
|
* @handleName getICollectionRowsById
|
|
37
|
-
* @param {number} id - Collection
|
|
37
|
+
* @param {number} id - Collection ID.
|
|
38
38
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
39
|
-
* @param {ICollectionQuery} [userQuery] - Optional
|
|
39
|
+
* @param {ICollectionQuery} [userQuery] - Optional query parameters.
|
|
40
40
|
* @example
|
|
41
41
|
{
|
|
42
42
|
"limit": 30,
|
|
@@ -44,10 +44,10 @@ interface ICollectionsApi {
|
|
|
44
44
|
"entityType": "orders",
|
|
45
45
|
"entityId": 1
|
|
46
46
|
}
|
|
47
|
-
* @param {number} [userQuery.limit] -
|
|
48
|
-
* @param {number} [userQuery.offset] -
|
|
47
|
+
* @param {number} [userQuery.limit] - Maximum number of records to return. Default: 30.
|
|
48
|
+
* @param {number} [userQuery.offset] - Number of records to skip. Default: 0.
|
|
49
49
|
* @param {string} [userQuery.entityType] - Entity type. Example: "orders".
|
|
50
|
-
* @param {number} [userQuery.entityId] - Entity
|
|
50
|
+
* @param {number} [userQuery.entityId] - Entity ID. Example: 1.
|
|
51
51
|
* @returns {ICollectionRowsResponce} Returns object ItemsWithTotal, where items is an array of requested objects.
|
|
52
52
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
53
53
|
* @description This method gets all records belonging to the collection by collection id.
|
|
@@ -56,7 +56,7 @@ interface ICollectionsApi {
|
|
|
56
56
|
/**
|
|
57
57
|
* Check for the existence of a text identifier (marker).
|
|
58
58
|
* @handleName validateICollectionMarker
|
|
59
|
-
* @param {string} marker -
|
|
59
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
60
60
|
* @returns {ICollectionIsValid} Returns an object with a boolean property `valid` indicating whether the marker is valid or not.
|
|
61
61
|
* @example
|
|
62
62
|
{
|
|
@@ -69,7 +69,7 @@ interface ICollectionsApi {
|
|
|
69
69
|
/**
|
|
70
70
|
* Getting all records from the collection.
|
|
71
71
|
* @handleName getICollectionRowsByMarker
|
|
72
|
-
* @param {string} marker -
|
|
72
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
73
73
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
74
74
|
* @returns {ICollectionRowsResponce} Returns collection row entity object.
|
|
75
75
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -79,8 +79,8 @@ interface ICollectionsApi {
|
|
|
79
79
|
/**
|
|
80
80
|
* Getting one record from the collection.
|
|
81
81
|
* @handleName getICollectionRowByMarkerAndId
|
|
82
|
-
* @param {string} marker -
|
|
83
|
-
* @param {number} id - Collection record
|
|
82
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
83
|
+
* @param {number} id - Collection record ID. Example: 1.
|
|
84
84
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
85
85
|
* @returns {ICollectionRow} Returns collection row entity object.
|
|
86
86
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -90,8 +90,8 @@ interface ICollectionsApi {
|
|
|
90
90
|
/**
|
|
91
91
|
* Create a record in the collection.
|
|
92
92
|
* @handleName createICollectionRow
|
|
93
|
-
* @param {string} marker -
|
|
94
|
-
* @param {ICollectionFormObject} body -
|
|
93
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
94
|
+
* @param {ICollectionFormObject} body - Data for the new record.
|
|
95
95
|
* @example
|
|
96
96
|
{
|
|
97
97
|
"formIdentifier": "collection-form",
|
|
@@ -112,9 +112,9 @@ interface ICollectionsApi {
|
|
|
112
112
|
/**
|
|
113
113
|
* Edit a record in the collection.
|
|
114
114
|
* @handleName updateICollectionRow
|
|
115
|
-
* @param {string} marker -
|
|
115
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
116
116
|
* @param {number} id - Row id. Example: 12.
|
|
117
|
-
* @param {ICollectionFormObject} body -
|
|
117
|
+
* @param {ICollectionFormObject} body - Data for updating the collection record.
|
|
118
118
|
* @example
|
|
119
119
|
{
|
|
120
120
|
"formIdentifier": "collection-form",
|
|
@@ -135,8 +135,8 @@ interface ICollectionsApi {
|
|
|
135
135
|
/**
|
|
136
136
|
* Deletion of collection record object
|
|
137
137
|
* @handleName deleteICollectionRowByMarkerAndId
|
|
138
|
-
* @param {string} marker -
|
|
139
|
-
* @param {number} id -
|
|
138
|
+
* @param {string} marker - Marker of the collection. Example: "collection1".
|
|
139
|
+
* @param {number} id - ID of the collection row. Example: 12.
|
|
140
140
|
* @returns {boolean} Returns true (in case of successful deletion) or false (in case of unsuccessful deletion) (permission "collections.row.delete" required for access)
|
|
141
141
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
142
142
|
* @description This method deletes a collection record object.
|
|
@@ -146,16 +146,16 @@ interface ICollectionsApi {
|
|
|
146
146
|
/**
|
|
147
147
|
* Collection object
|
|
148
148
|
* @interface ICollectionEntity
|
|
149
|
-
* @property {number} id - Object
|
|
150
|
-
* @property {string | null} identifier - Text identifier
|
|
151
|
-
* @property {number | null} formId -
|
|
152
|
-
* @property {ILocalizeInfo} localizeInfos - Localized
|
|
149
|
+
* @property {number} id - Object ID. Example: 1.
|
|
150
|
+
* @property {string | null} identifier - Text identifier (marker) of the object. Example: "collection1".
|
|
151
|
+
* @property {number | null} formId - ID of the form used by the collection. Example: 1234.
|
|
152
|
+
* @property {ILocalizeInfo} localizeInfos - Localized data of the collection.
|
|
153
153
|
* @example
|
|
154
154
|
{
|
|
155
155
|
"title": "Admins text"
|
|
156
156
|
}
|
|
157
|
-
* @property {number | null} attributeSetId -
|
|
158
|
-
* @property {string | null} selectedAttributeMarkers -
|
|
157
|
+
* @property {number | null} attributeSetId - ID of the attribute set used by the collection's form. Example: 1234 or null if not applicable.
|
|
158
|
+
* @property {string | null} selectedAttributeMarkers - Markers of the form attributes shown as columns in the data table. Example: "collection_marker".
|
|
159
159
|
* @description Represents a collection object with various properties, including identifiers, form information, and localized data.
|
|
160
160
|
*/
|
|
161
161
|
interface ICollectionEntity {
|
|
@@ -188,8 +188,8 @@ interface ICollectionResponce {
|
|
|
188
188
|
* Collection form data object
|
|
189
189
|
* @interface ICollectionFormData
|
|
190
190
|
* @property {string} marker - Text identifier (marker) of the form field. Example: "collection_marker".
|
|
191
|
-
* @property {string} type - Type of the form field,
|
|
192
|
-
* @property {string} value - Value of the form field
|
|
191
|
+
* @property {string} type - Type of the form field, for example `"text"`, `"number"` or `"date"`. Example: "number".
|
|
192
|
+
* @property {string} value - Value of the form field. Example: "Collection marker".
|
|
193
193
|
* @description Represents a form data object within a collection, containing a marker, type, and value.
|
|
194
194
|
*/
|
|
195
195
|
interface ICollectionFormData {
|
|
@@ -200,7 +200,7 @@ interface ICollectionFormData {
|
|
|
200
200
|
/**
|
|
201
201
|
* Collection form object
|
|
202
202
|
* @interface ICollectionFormObject
|
|
203
|
-
* @property {string} formIdentifier -
|
|
203
|
+
* @property {string} formIdentifier - Marker of the form. Example: "collection-form".
|
|
204
204
|
* @property {ICollectionFormData[] | Record<string, ICollectionFormData[]>} formData - Field values: a flat array `[{ marker, type, value }]` (as in the example), or the same array wrapped in a language code — `{ "en_US": [...] }`. The platform stores both; the SDK sends the value as is.
|
|
205
205
|
* @example
|
|
206
206
|
[
|
|
@@ -222,11 +222,11 @@ interface ICollectionFormObject {
|
|
|
222
222
|
/**
|
|
223
223
|
* Collection row object
|
|
224
224
|
* @interface ICollectionRow
|
|
225
|
-
* @property {number} id - Object
|
|
226
|
-
* @property {string} createdDate -
|
|
227
|
-
* @property {string} updatedDate - Date
|
|
228
|
-
* @property {number | null} [collectionId] -
|
|
229
|
-
* @property {ICollectionFormData[]} formData -
|
|
225
|
+
* @property {number} id - Object ID. Example: 1.
|
|
226
|
+
* @property {string} createdDate - Creation date of the record. Example: "2023-01-01T00:00:00Z".
|
|
227
|
+
* @property {string} updatedDate - Date the record was last updated. Example: "2023-01-02T00:00:00Z".
|
|
228
|
+
* @property {number | null} [collectionId] - ID of the collection the row belongs to. Example: "product", "order", "etc".
|
|
229
|
+
* @property {ICollectionFormData[]} formData - Form fields of the collection row.
|
|
230
230
|
* @example
|
|
231
231
|
[
|
|
232
232
|
{
|
|
@@ -235,12 +235,12 @@ interface ICollectionFormObject {
|
|
|
235
235
|
"value": "Value"
|
|
236
236
|
}
|
|
237
237
|
]
|
|
238
|
-
* @property {string | null} entityType - Type of the entity
|
|
239
|
-
* @property {number | null} entityId -
|
|
240
|
-
* @property {string | null} [attributeSetIdentifier] -
|
|
238
|
+
* @property {string | null} entityType - Type of the entity the collection row is linked to. Example: "product", "order", "etc".
|
|
239
|
+
* @property {number | null} entityId - ID of the entity the collection row is linked to. Example: 12345.
|
|
240
|
+
* @property {string | null} [attributeSetIdentifier] - Marker of the attribute set used by the form attached to the collection row, or `null` if there is none. Example: "attributeSet1" or null.
|
|
241
241
|
* @property {string | null} [langCode] - Language code the row was stored under. Example: "en_US".
|
|
242
|
-
* @property {string | null} [formIdentifier] -
|
|
243
|
-
* @property {string} total - Total
|
|
242
|
+
* @property {string | null} [formIdentifier] - Marker of the form the row was created from; returned by the create and update row endpoints. Example: "collection_form".
|
|
243
|
+
* @property {string} total - Total number of records. Example: "1".
|
|
244
244
|
* @description Represents a row in a collection, containing various properties such as identifiers, dates, form data, and an optional total value.
|
|
245
245
|
*/
|
|
246
246
|
interface ICollectionRow {
|
|
@@ -259,7 +259,7 @@ interface ICollectionRow {
|
|
|
259
259
|
/**
|
|
260
260
|
* Collection rows response object
|
|
261
261
|
* @interface ICollectionRowsResponce
|
|
262
|
-
* @property {ICollectionRow[]} items -
|
|
262
|
+
* @property {ICollectionRow[]} items - Rows of the collection.
|
|
263
263
|
* @example
|
|
264
264
|
[
|
|
265
265
|
{
|
|
@@ -288,7 +288,7 @@ interface ICollectionRowsResponce {
|
|
|
288
288
|
/**
|
|
289
289
|
* Collection is valid object
|
|
290
290
|
* @interface ICollectionIsValid
|
|
291
|
-
* @property {boolean} valid -
|
|
291
|
+
* @property {boolean} valid - Whether the marker is valid. Example: true.
|
|
292
292
|
* @description Represents a response from the validateICollectionMarker.
|
|
293
293
|
*/
|
|
294
294
|
interface ICollectionIsValid {
|
|
@@ -297,10 +297,10 @@ interface ICollectionIsValid {
|
|
|
297
297
|
/**
|
|
298
298
|
* Query parameters for collection row requests. All of them are optional.
|
|
299
299
|
* @interface ICollectionQuery
|
|
300
|
-
* @property {number} [limit] -
|
|
301
|
-
* @property {number} [offset] -
|
|
300
|
+
* @property {number} [limit] - Maximum number of records to return. Default: 30.
|
|
301
|
+
* @property {number} [offset] - Number of records to skip. Default: 0.
|
|
302
302
|
* @property {string} [entityType] - Entity type. Example: "orders".
|
|
303
|
-
* @property {number} [entityId] - Entity
|
|
303
|
+
* @property {number} [entityId] - Entity ID. Example: 1.
|
|
304
304
|
*/
|
|
305
305
|
interface ICollectionQuery {
|
|
306
306
|
limit?: number;
|
|
@@ -311,8 +311,8 @@ interface ICollectionQuery {
|
|
|
311
311
|
/**
|
|
312
312
|
* Query parameters for getICollections: pagination only — the collection list takes no entity filter.
|
|
313
313
|
* @typedef {object} ICollectionsListQuery
|
|
314
|
-
* @property {number} [limit] -
|
|
315
|
-
* @property {number} [offset] -
|
|
314
|
+
* @property {number} [limit] - Maximum number of records to return. Default: 30.
|
|
315
|
+
* @property {number} [offset] - Number of records to skip. Default: 0.
|
|
316
316
|
*/
|
|
317
317
|
type ICollectionsListQuery = Pick<ICollectionQuery, 'limit' | 'offset'>;
|
|
318
318
|
export type { ICollectionEntity, ICollectionFormObject, ICollectionIsValid, ICollectionQuery, ICollectionResponce, ICollectionRow, ICollectionRowsResponce, ICollectionsApi, ICollectionsListQuery, };
|
|
@@ -17,14 +17,14 @@ interface ILocales {
|
|
|
17
17
|
/**
|
|
18
18
|
* The `ILocalEntity` interface defines the structure of a locales entity, including its identifiers, name, and other properties.
|
|
19
19
|
* @interface ILocalEntity
|
|
20
|
-
* @property {number} id -
|
|
21
|
-
* @property {string} shortCode -
|
|
22
|
-
* @property {string} code -
|
|
23
|
-
* @property {string} name -
|
|
24
|
-
* @property {string} nativeName -
|
|
25
|
-
* @property {boolean} isActive -
|
|
26
|
-
* @property {string | null} image -
|
|
27
|
-
* @property {number} position -
|
|
20
|
+
* @property {number} id - ID of the language. Example: 1.
|
|
21
|
+
* @property {string} shortCode - Short language code, for example `"en"`. Example: "en".
|
|
22
|
+
* @property {string} code - Full language code, such as `en_US`. Example: "en_US".
|
|
23
|
+
* @property {string} name - Name of the language. Example: "English".
|
|
24
|
+
* @property {string} nativeName - Name of the language in that language. Example: "English".
|
|
25
|
+
* @property {boolean} isActive - Whether the language is active. Example: true.
|
|
26
|
+
* @property {string | null} image - Image associated with the language. Example: "https://example.com/images/en.png".
|
|
27
|
+
* @property {number} position - Position of the language in the list. Example: 1.
|
|
28
28
|
* @description This interface defines the structure of a locales entity, including its identifiers, name, and other properties.
|
|
29
29
|
*/
|
|
30
30
|
interface ILocalEntity {
|
package/dist/menus/menusApi.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export default class MenusApi extends AsyncModules implements IMenus {
|
|
|
19
19
|
/**
|
|
20
20
|
* Get pages includes in menu by marker.
|
|
21
21
|
* @handleName getMenusByMarker
|
|
22
|
-
* @param {string} marker -
|
|
22
|
+
* @param {string} marker - Marker of the menu. Example: "main_menu".
|
|
23
23
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
24
24
|
* @returns {Promise<IMenusEntity | IError>} Returns a single menu object as a ContentMenu object with included pages.
|
|
25
25
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
package/dist/menus/menusApi.js
CHANGED
|
@@ -57,7 +57,7 @@ class MenusApi extends asyncModules_1.default {
|
|
|
57
57
|
/**
|
|
58
58
|
* Get pages includes in menu by marker.
|
|
59
59
|
* @handleName getMenusByMarker
|
|
60
|
-
* @param {string} marker -
|
|
60
|
+
* @param {string} marker - Marker of the menu. Example: "main_menu".
|
|
61
61
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
62
62
|
* @returns {Promise<IMenusEntity | IError>} Returns a single menu object as a ContentMenu object with included pages.
|
|
63
63
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -7,7 +7,7 @@ interface IMenus {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get pages includes in menu by marker.
|
|
9
9
|
* @handleName getMenusByMarker
|
|
10
|
-
* @param {string} marker -
|
|
10
|
+
* @param {string} marker - Marker of the menu. Example: "main_menu".
|
|
11
11
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
12
12
|
* @returns {IMenusEntity} Returns a single menu object as a ContentMenu object with included pages.
|
|
13
13
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -17,7 +17,7 @@ interface IMenus {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* @interface IMenusPages
|
|
20
|
-
* @property {IMenusPages[]} children -
|
|
20
|
+
* @property {IMenusPages[]} children - Nested menu items (child pages).
|
|
21
21
|
* @example
|
|
22
22
|
[
|
|
23
23
|
{
|
|
@@ -29,21 +29,21 @@ interface IMenus {
|
|
|
29
29
|
"position": 1
|
|
30
30
|
}
|
|
31
31
|
]
|
|
32
|
-
* @property {number | null} id -
|
|
33
|
-
* @property {string | null} pageUrl -
|
|
34
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
32
|
+
* @property {number | null} id - ID of the menu. Example: 1.
|
|
33
|
+
* @property {string | null} pageUrl - URL of the page. Example: "about".
|
|
34
|
+
* @property {ILocalizeInfo} localizeInfos - Localized menu data.
|
|
35
35
|
* @example
|
|
36
36
|
{
|
|
37
37
|
"title": "menu"
|
|
38
38
|
}
|
|
39
|
-
* @property {IAttributeValues} attributeValues -
|
|
39
|
+
* @property {IAttributeValues} attributeValues - Attribute values of the page, keyed by attribute marker.
|
|
40
40
|
* @example
|
|
41
41
|
{
|
|
42
42
|
"color": "red",
|
|
43
43
|
"size": "large"
|
|
44
44
|
}
|
|
45
|
-
* @property {number} position -
|
|
46
|
-
* @property {number | null} parentId -
|
|
45
|
+
* @property {number} position - Position used for sorting. Example: 1.
|
|
46
|
+
* @property {number | null} parentId - ID of the parent menu item; `null` for a top-level item. Example: null.
|
|
47
47
|
* @property {'page' | 'custom' | null} [parentType] - Kind of the parent item: `page` for a menu page, `custom` for a custom item; `null` together with `parentId` means top level. Page ids and custom item ids overlap, so the parent is ambiguous without it. Example: null.
|
|
48
48
|
* @property {'page' | 'custom'} [itemType] - Kind of this item itself: `page` or `custom`. This is the value the item's children must pass in `parentType`. Example: "page".
|
|
49
49
|
* @description This interface defines the structure of a menu page entity, including its identifiers, localization information, attributes, and hierarchical relationships.
|
|
@@ -61,14 +61,14 @@ interface IMenusPages {
|
|
|
61
61
|
}
|
|
62
62
|
/**
|
|
63
63
|
* @interface IMenusEntity
|
|
64
|
-
* @property {number} id -
|
|
65
|
-
* @property {string} identifier -
|
|
66
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
64
|
+
* @property {number} id - ID of the menu. Example: 1.
|
|
65
|
+
* @property {string} identifier - Marker of the menu. Example: "main_menu".
|
|
66
|
+
* @property {ILocalizeInfo} localizeInfos - Localized menu data.
|
|
67
67
|
* @example
|
|
68
68
|
{
|
|
69
69
|
"title": "menu"
|
|
70
70
|
}
|
|
71
|
-
* @property {IMenusPages[]} pages -
|
|
71
|
+
* @property {IMenusPages[]} pages - Pages in the menu.
|
|
72
72
|
* @example
|
|
73
73
|
[
|
|
74
74
|
{
|
|
@@ -22,8 +22,8 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
22
22
|
* Getting all the order storage objects.
|
|
23
23
|
* @handleName getAllOrdersStorage
|
|
24
24
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
25
|
-
* @param {number} [offset] -
|
|
26
|
-
* @param {number} [limit] -
|
|
25
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
26
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
27
27
|
* @returns {Promise<IOrdersEntity[] | IError>} Returns an array of order storage objects.
|
|
28
28
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
29
29
|
* @description This method requires user authorization.
|
|
@@ -34,10 +34,10 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
34
34
|
/**
|
|
35
35
|
* Getting all orders from the orders storage object created by the user.
|
|
36
36
|
* @handleName getAllOrdersByMarker
|
|
37
|
-
* @param {string} marker -
|
|
37
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
38
38
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
39
|
-
* @param {number} [offset] -
|
|
40
|
-
* @param {number} [limit] -
|
|
39
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
40
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
41
41
|
* @returns {Promise<IOrdersByMarkerEntity | IError>} Returns an object with the orders.
|
|
42
42
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
43
43
|
* @description This method requires user authorization.
|
|
@@ -48,7 +48,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
48
48
|
/**
|
|
49
49
|
* Retrieve one order storage object by marker.
|
|
50
50
|
* @handleName getOrdersStorageByMarker
|
|
51
|
-
* @param {string} marker - Marker of the order
|
|
51
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
52
52
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
53
53
|
* @returns {Promise<IOrdersEntity | IError>} Return object of order information.
|
|
54
54
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -60,8 +60,8 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
60
60
|
/**
|
|
61
61
|
* Getting a single order from the order storage object created by the user.
|
|
62
62
|
* @handleName getOrderByMarkerAndId
|
|
63
|
-
* @param {string} marker -
|
|
64
|
-
* @param {number} id - ID
|
|
63
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
64
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
65
65
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
66
66
|
* @returns {Promise<IOrderByMarkerEntity | IError>} Returns an object with the order.
|
|
67
67
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -73,7 +73,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
73
73
|
/**
|
|
74
74
|
* Getting a single order created by the user, by its own id.
|
|
75
75
|
* @handleName getOrderById
|
|
76
|
-
* @param {number} id - ID
|
|
76
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
77
77
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
78
78
|
* @returns {Promise<IOrderByMarkerEntity | IError>} Returns an object with the order.
|
|
79
79
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -87,7 +87,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
87
87
|
/**
|
|
88
88
|
* Preview order calculation with discounts and coupons (without saving).
|
|
89
89
|
* @handleName previewOrder
|
|
90
|
-
* @param {ICreateOrderPreview} body - Order preview
|
|
90
|
+
* @param {ICreateOrderPreview} body - Order preview parameters.
|
|
91
91
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
92
92
|
* @returns {Promise<IOrderPreviewResponse | IError>} Returns an object with the order preview.
|
|
93
93
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -99,8 +99,8 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
99
99
|
/**
|
|
100
100
|
* Creation of an order in the order storage.
|
|
101
101
|
* @handleName createOrder
|
|
102
|
-
* @param {string} marker -
|
|
103
|
-
* @param {IOrderData} body -
|
|
102
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
103
|
+
* @param {IOrderData} body - Data for the new order.
|
|
104
104
|
* @example
|
|
105
105
|
{
|
|
106
106
|
"formIdentifier": "bar-orders-form",
|
|
@@ -128,9 +128,9 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
128
128
|
/**
|
|
129
129
|
* Changing an order in the orders storage
|
|
130
130
|
* @handleName updateOrderByMarkerAndId
|
|
131
|
-
* @param {string} marker -
|
|
132
|
-
* @param {number} id - ID
|
|
133
|
-
* @param {IOrderData} body -
|
|
131
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
132
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
133
|
+
* @param {IOrderData} body - Data for updating the order.
|
|
134
134
|
* @example
|
|
135
135
|
{
|
|
136
136
|
"formIdentifier": "bar-orders-form",
|
|
@@ -159,10 +159,10 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
159
159
|
/**
|
|
160
160
|
* Get all orders statuses by Storage marker
|
|
161
161
|
* @handleName getAllStatusesByStorageMarker
|
|
162
|
-
* @param {string} marker -
|
|
162
|
+
* @param {string} marker - Marker of the order storage. Example: "order_storage_1".
|
|
163
163
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
164
|
-
* @param {number} [offset] -
|
|
165
|
-
* @param {number} [limit] -
|
|
164
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
165
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
166
166
|
* @returns {Promise<IOrderStatus[] | IError>} Returns an object with the orders statuses.
|
|
167
167
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
168
168
|
* @see For more information about configuring the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider authorization module}, see the documentation in the {@link https://js-sdk.oneentry.cloud/docs/category/authprovider configuration settings section of the SDK}.
|
|
@@ -172,7 +172,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
172
172
|
/**
|
|
173
173
|
* Get all refund requests for an order.
|
|
174
174
|
* @handleName getRefunds
|
|
175
|
-
* @param {number} id - Order
|
|
175
|
+
* @param {number} id - Order ID. Example: 1.
|
|
176
176
|
* @returns {Promise<IRefundRequest[] | IError>} Returns array of refund requests.
|
|
177
177
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
178
178
|
* @see {@link https://js-sdk.oneentry.cloud/docs/orders/getRefunds getRefunds} documentation.
|
|
@@ -181,8 +181,8 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
181
181
|
/**
|
|
182
182
|
* Create a refund request for an order.
|
|
183
183
|
* @handleName createRefundRequest
|
|
184
|
-
* @param {number} id - Order
|
|
185
|
-
* @param {ICreateRefundRequest} body - Refund request
|
|
184
|
+
* @param {number} id - Order ID. Example: 1.
|
|
185
|
+
* @param {ICreateRefundRequest} body - Refund request data.
|
|
186
186
|
* @returns {Promise<boolean | IError>} Returns true if the refund request was created successfully.
|
|
187
187
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
188
188
|
* @see {@link https://js-sdk.oneentry.cloud/docs/orders/createRefundRequest createRefundRequest} documentation.
|
|
@@ -191,7 +191,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
191
191
|
/**
|
|
192
192
|
* Cancel a refund request for an order.
|
|
193
193
|
* @handleName cancelRefundRequest
|
|
194
|
-
* @param {number} id - Order
|
|
194
|
+
* @param {number} id - Order ID. Example: 1.
|
|
195
195
|
* @returns {Promise<boolean | IError>} Returns true if the refund request was cancelled successfully.
|
|
196
196
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
197
197
|
* @see {@link https://js-sdk.oneentry.cloud/docs/orders/cancelRefundRequest cancelRefundRequest} documentation.
|
|
@@ -200,10 +200,10 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
200
200
|
/**
|
|
201
201
|
* Semantic (vector) search for the current user's orders.
|
|
202
202
|
* @handleName getOrdersByVectorSearch
|
|
203
|
-
* @param {IOrdersVectorSearch} body - Vector search
|
|
203
|
+
* @param {IOrdersVectorSearch} body - Vector search parameters. Example: `{ queryText: "winter jacket" }`.
|
|
204
204
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
205
|
-
* @param {number} [offset] -
|
|
206
|
-
* @param {number} [limit] -
|
|
205
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
206
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
207
207
|
* @returns {Promise<IVectorSearchResponse<IOrdersByMarkerEntity> | IError>} Returns an object with an array of found orders and total count.
|
|
208
208
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
209
209
|
* @description This method performs a semantic (vector) search over the orders of the authorized user. It requires user authorization.
|
|
@@ -231,7 +231,7 @@ export default class OrdersApi extends AsyncModules implements IOrdersApi {
|
|
|
231
231
|
* a reused body — a retry, a shared template — arrive wrapped twice: `createOrder`
|
|
232
232
|
* answered `400 formData's marker '#0' marker is required`, and
|
|
233
233
|
* `updateOrderByMarkerAndId` answered `200` and stored the broken `formData` in
|
|
234
|
-
* the order
|
|
234
|
+
* the order.
|
|
235
235
|
* @param {IOrderData} body - Order body as the caller passed it. Left unchanged.
|
|
236
236
|
* @param {string} langCode - Locale key to wrap `formData` into.
|
|
237
237
|
* @returns {object} A new body with `formData` as `{ [langCode]: [...] }`.
|