oneentry 1.0.173 → 1.0.175
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 +35 -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 +30 -30
- package/dist/auth-provider/authProviderApi.js +30 -30
- package/dist/auth-provider/authProviderSchemas.d.ts +1 -1
- package/dist/auth-provider/authProvidersInterfaces.d.ts +54 -53
- 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/base/validation.d.ts +1 -1
- package/dist/base/validation.js +1 -1
- 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 +9 -9
- package/dist/users/usersApi.js +9 -9
- package/dist/users/usersInterfaces.d.ts +40 -39
- package/dist/users/usersSchemas.d.ts +1 -1
- 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 +30 -30
- package/esm/auth-provider/authProviderApi.js +30 -30
- package/esm/auth-provider/authProviderSchemas.d.ts +1 -1
- package/esm/auth-provider/authProvidersInterfaces.d.ts +54 -53
- 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/base/validation.d.ts +1 -1
- package/esm/base/validation.js +1 -1
- 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 +9 -9
- package/esm/users/usersApi.js +9 -9
- package/esm/users/usersInterfaces.d.ts +40 -39
- package/esm/users/usersSchemas.d.ts +1 -1
- package/package.json +2 -2
|
@@ -29,7 +29,7 @@ interface IPagesApi {
|
|
|
29
29
|
/**
|
|
30
30
|
* Get page object with information about forms, blocks, menus, linked to the page.
|
|
31
31
|
* @handleName getPageById
|
|
32
|
-
* @param {number} id -
|
|
32
|
+
* @param {number} id - ID of the page to fetch. Example: 123.
|
|
33
33
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
34
34
|
* @returns {IPagesEntity} Returns PageEntity object
|
|
35
35
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -49,7 +49,7 @@ interface IPagesApi {
|
|
|
49
49
|
/**
|
|
50
50
|
* Get child pages object with information as an array.
|
|
51
51
|
* @handleName getChildPagesByParentUrl
|
|
52
|
-
* @param {string} url -
|
|
52
|
+
* @param {string} url - URL of the parent page whose child pages to fetch. Example: "about".
|
|
53
53
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
54
54
|
* @returns {IPagesEntity} Returns all created pages as an array of PageEntity objects or an empty array [] (if there is no data) for the selected parent
|
|
55
55
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -69,7 +69,7 @@ interface IPagesApi {
|
|
|
69
69
|
/**
|
|
70
70
|
* Quick search for page objects with limited output.
|
|
71
71
|
* @handleName searchPage
|
|
72
|
-
* @param {string} name - Text for
|
|
72
|
+
* @param {string} name - Text to search for in page titles (`localizeInfos.title`) in the requested language. Example: "About Us".
|
|
73
73
|
* @param {string} [url] - Optional page URL to filter search results. Example: "catalog".
|
|
74
74
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
75
75
|
* @returns {IPagesEntity[] | IPageSearchResult[]} Returns found pages as an array of PageEntity objects, an array of short PageSearchResult cards when the traficLimit config option is enabled, or an empty array [] (if there is no data)
|
|
@@ -80,10 +80,10 @@ interface IPagesApi {
|
|
|
80
80
|
/**
|
|
81
81
|
* Semantic (vector) search for pages.
|
|
82
82
|
* @handleName getPagesByVectorSearch
|
|
83
|
-
* @param {IPagesVectorSearch} body - Vector search
|
|
83
|
+
* @param {IPagesVectorSearch} body - Vector search parameters. Example: `{ queryText: "winter sale" }`.
|
|
84
84
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
85
|
-
* @param {number} [offset] -
|
|
86
|
-
* @param {number} [limit] -
|
|
85
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
86
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
87
87
|
* @returns {IVectorSearchResponse<IPagesResponse>} A promise that resolves to a pages response (items + total + indexReady) or an error.
|
|
88
88
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
89
89
|
* @description This method performs a semantic (vector) search for pages.
|
|
@@ -95,8 +95,8 @@ interface IPagesApi {
|
|
|
95
95
|
* @interface IPagesVectorSearch
|
|
96
96
|
* @property {string} queryText - Natural-language search query. Example: "winter sale".
|
|
97
97
|
* @property {number} [vectorDistanceThreshold] - Override of the cosine distance threshold (0..2). Example: 0.3.
|
|
98
|
-
* @property {number} [maxHits] -
|
|
99
|
-
* @property {boolean} [debug] - When true
|
|
98
|
+
* @property {number} [maxHits] - Number of top candidates fetched before pagination. Default: 100. Maximum: 500. Example: 10.
|
|
99
|
+
* @property {boolean} [debug] - When `true`, each returned item gets a `distance` field. Example: false.
|
|
100
100
|
* @description Body for the pages vector/search endpoint.
|
|
101
101
|
*/
|
|
102
102
|
interface IPagesVectorSearch {
|
|
@@ -107,7 +107,7 @@ interface IPagesVectorSearch {
|
|
|
107
107
|
}
|
|
108
108
|
/**
|
|
109
109
|
* @interface IPagesResponse
|
|
110
|
-
* @property {IPagesEntity[]} items -
|
|
110
|
+
* @property {IPagesEntity[]} items - Pages that match the query.
|
|
111
111
|
* @property {number} total - Total number of found records. Example: 100.
|
|
112
112
|
* @description This interface defines the structure of a response containing multiple page entities, including the total count and an array of page items.
|
|
113
113
|
*/
|
|
@@ -117,12 +117,12 @@ interface IPagesResponse {
|
|
|
117
117
|
}
|
|
118
118
|
/**
|
|
119
119
|
* @interface IPositionForm
|
|
120
|
-
* @property {number} id -
|
|
121
|
-
* @property {number} version -
|
|
122
|
-
* @property {string} identifier -
|
|
123
|
-
* @property {number} attributeSetId -
|
|
124
|
-
* @property {string} processingType -
|
|
125
|
-
* @property {ILocalizeInfo} localizeInfos
|
|
120
|
+
* @property {number} id - Object ID. Example: 1764.
|
|
121
|
+
* @property {number} version - Version number of the object; changes with each update. Example: 10.
|
|
122
|
+
* @property {string} identifier - Text identifier (marker) of the object. Example: "catalog".
|
|
123
|
+
* @property {number} attributeSetId - ID of the attribute set in use. Example: 0.
|
|
124
|
+
* @property {string} processingType - How form submissions are processed, for example `"email"` or `"url"`. Example: "email".
|
|
125
|
+
* @property {ILocalizeInfo} localizeInfos - Localized name and content of the page.
|
|
126
126
|
* @example
|
|
127
127
|
{
|
|
128
128
|
"title": "Blog",
|
|
@@ -131,7 +131,7 @@ interface IPagesResponse {
|
|
|
131
131
|
"plainContent": ""
|
|
132
132
|
}
|
|
133
133
|
* @property {object} processingData - Form data. Example: {}.
|
|
134
|
-
* @property {number} position -
|
|
134
|
+
* @property {number} position - Position of the object, used for sorting. Example: 0.
|
|
135
135
|
* @property {IAttributes[]} attributes - Array of attribute values from the used attribute set for displaying the form (taking into account the specified language).
|
|
136
136
|
* @example
|
|
137
137
|
[
|
|
@@ -175,9 +175,9 @@ interface IPositionForm {
|
|
|
175
175
|
}
|
|
176
176
|
/**
|
|
177
177
|
* @interface IPositionBlock
|
|
178
|
-
* @property {number} id -
|
|
179
|
-
* @property {string | null} attributeSetIdentifier -
|
|
180
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
178
|
+
* @property {number} id - Object ID. Example: 1.
|
|
179
|
+
* @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "block".
|
|
180
|
+
* @property {ILocalizeInfo} localizeInfos - Localized title of the page.
|
|
181
181
|
* @example
|
|
182
182
|
{
|
|
183
183
|
"title": "Blog",
|
|
@@ -185,14 +185,14 @@ interface IPositionForm {
|
|
|
185
185
|
"htmlContent": "",
|
|
186
186
|
"plainContent": ""
|
|
187
187
|
}
|
|
188
|
-
* @property {number} version -
|
|
189
|
-
* @property {number} position -
|
|
190
|
-
* @property {string} identifier -
|
|
188
|
+
* @property {number} version - Version number of the object; changes with each update. Example: 0.
|
|
189
|
+
* @property {number} position - Position of the object, used for sorting. Example: 1.
|
|
190
|
+
* @property {string} identifier - Text identifier (marker) of the object. Example: "product_block".
|
|
191
191
|
* @property {BlockType} type - Block type. Example: "product".
|
|
192
|
-
* @property {string | null} templateIdentifier
|
|
193
|
-
* @property {boolean} isVisible -
|
|
194
|
-
* @property {boolean} isSync -
|
|
195
|
-
* @property {IAttributeValues} attributeValues -
|
|
192
|
+
* @property {string | null} templateIdentifier - Marker of the linked template, or `null` when none is linked. Example: null.
|
|
193
|
+
* @property {boolean} isVisible - Whether the page is visible. Example: true.
|
|
194
|
+
* @property {boolean} isSync - Whether the page is indexed. Example: false.
|
|
195
|
+
* @property {IAttributeValues} attributeValues - Attribute values keyed by marker; an empty object when there are none.
|
|
196
196
|
* @example
|
|
197
197
|
{
|
|
198
198
|
"block-text": {
|
|
@@ -202,8 +202,8 @@ interface IPositionForm {
|
|
|
202
202
|
"additionalFields": []
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
* @property {number} [countElementsPerRow] - Number of
|
|
206
|
-
* @property {number} [quantity] -
|
|
205
|
+
* @property {number} [countElementsPerRow] - Number of items per row in the block, if set. Example: 3.
|
|
206
|
+
* @property {number} [quantity] - Number of items in the block. Example: 1.
|
|
207
207
|
* @property {IProductsResponse} [similarProducts] - Similar products response (total + items). Present only for "similar_products_block" blocks and only when traffic-saving mode is off.
|
|
208
208
|
* @property {IProductsEntity[]} [products] - Array of products associated with the block. Present only for "product_block" blocks and only when traffic-saving mode is off.
|
|
209
209
|
* @description This interface defines the structure of a position block entity, including its identifiers, attributes, and visibility.
|
|
@@ -233,11 +233,11 @@ interface IPositionBlock {
|
|
|
233
233
|
type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
|
|
234
234
|
/**
|
|
235
235
|
* @interface IPagesEntity
|
|
236
|
-
* @property {number} id -
|
|
237
|
-
* @property {number | null} parentId -
|
|
238
|
-
* @property {string} pageUrl -
|
|
239
|
-
* @property {number} depth - Page nesting depth relative to parentId
|
|
240
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
236
|
+
* @property {number} id - Object ID. Example: 8.
|
|
237
|
+
* @property {number | null} parentId - ID of the parent page; `null` for a top-level page. Example: 10.
|
|
238
|
+
* @property {string} pageUrl - URL of the page. Example: "blog".
|
|
239
|
+
* @property {number} depth - Page nesting depth relative to `parentId`. Example: 10.
|
|
240
|
+
* @property {ILocalizeInfo} localizeInfos - Localized title of the page.
|
|
241
241
|
* @example
|
|
242
242
|
{
|
|
243
243
|
"title": "Blog",
|
|
@@ -245,11 +245,11 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
|
|
|
245
245
|
"htmlContent": "",
|
|
246
246
|
"plainContent": ""
|
|
247
247
|
}
|
|
248
|
-
* @property {boolean} isVisible -
|
|
248
|
+
* @property {boolean} isVisible - Whether the page is visible. Example: true.
|
|
249
249
|
* @property {PageType} type - Page type. Example: "common_page".
|
|
250
|
-
* @property {string | null} templateIdentifier -
|
|
251
|
-
* @property {string | null} attributeSetIdentifier -
|
|
252
|
-
* @property {IAttributeValues} attributeValues -
|
|
250
|
+
* @property {string | null} templateIdentifier - Marker of the linked template. Example: "template".
|
|
251
|
+
* @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "page".
|
|
252
|
+
* @property {IAttributeValues} attributeValues - Attribute values keyed by marker; an empty object when there are none.
|
|
253
253
|
* @example
|
|
254
254
|
{
|
|
255
255
|
"text": {
|
|
@@ -259,18 +259,18 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
|
|
|
259
259
|
"additionalFields": []
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
|
-
* @property {boolean} isSync -
|
|
263
|
-
* @property {object} [template] - Template
|
|
264
|
-
* @property {number} [position] -
|
|
262
|
+
* @property {boolean} isSync - Whether the page is indexed. Example: true.
|
|
263
|
+
* @property {object} [template] - Template linked to the page. Example: {}.
|
|
264
|
+
* @property {number} [position] - Position used for sorting. Example: 2.
|
|
265
265
|
* @property {Record<string, number>} [config] - Output settings for catalog pages.
|
|
266
266
|
* @example
|
|
267
267
|
{
|
|
268
268
|
"rowsPerPage": 1,
|
|
269
269
|
"productsPerRow": 1
|
|
270
270
|
}
|
|
271
|
-
* @property {number} [products] -
|
|
272
|
-
* @property {number} [childrenCount] -
|
|
273
|
-
* @property {IBlockEntity[] | string[]} [blocks] -
|
|
271
|
+
* @property {number} [products] - Number of products linked to the page. Example: 0.
|
|
272
|
+
* @property {number} [childrenCount] - Number of child pages. Example: 1.
|
|
273
|
+
* @property {IBlockEntity[] | string[]} [blocks] - Blocks attached to the page: block objects or their markers.
|
|
274
274
|
* @example
|
|
275
275
|
{
|
|
276
276
|
"id": 4,
|
|
@@ -283,10 +283,10 @@ type PageType = 'catalog_page' | 'common_page' | 'error_page' | 'external_page';
|
|
|
283
283
|
"attributeValues": {},
|
|
284
284
|
"position": 1
|
|
285
285
|
}
|
|
286
|
-
* @property {Array<IFormConfig>} [moduleFormConfigs] -
|
|
287
|
-
* @property {IRating} [rating] - Rating data.
|
|
286
|
+
* @property {Array<IFormConfig>} [moduleFormConfigs] - Form configurations of the module linked to the page.
|
|
287
|
+
* @property {IRating} [rating] - Rating data: average value, likes and dislikes, and the calculation method.
|
|
288
288
|
* @property {string} [total] - Total number of products linked to the page. Example: "10".
|
|
289
|
-
* @property {string | null} [categoryPath] - Category path
|
|
289
|
+
* @property {string | null} [categoryPath] - Category path; `null` for nested pages that have no category path of their own. Example: "catalog".
|
|
290
290
|
* @property {number} [distance] - Cosine distance to the query. Returned only by the semantic (vector) search endpoint when `debug: true` is passed in the search body. Example: 0.12.
|
|
291
291
|
* @description This interface defines the structure of a page entity, including its identifiers, attributes, and hierarchical relationships.
|
|
292
292
|
*/
|
|
@@ -19,7 +19,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
19
19
|
/**
|
|
20
20
|
* Get list of payment sessions.
|
|
21
21
|
* @handleName getSessions
|
|
22
|
-
* @param {number} [offset] -
|
|
22
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
23
23
|
* @param {number} [limit] - Optional parameter for pagination. Default: 30.
|
|
24
24
|
* @returns {Promise<ISessionsEntity | IError>} Returns an array of SessionEntity objects.
|
|
25
25
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -31,7 +31,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
31
31
|
/**
|
|
32
32
|
* Get a single payment session object by its identifier.
|
|
33
33
|
* @handleName getSessionById
|
|
34
|
-
* @param {number} id -
|
|
34
|
+
* @param {number} id - Payment session ID. Example: 12345.
|
|
35
35
|
* @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
|
|
36
36
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
37
37
|
* @description This method gets a single payment session object by its identifier. This method requires user authorization.
|
|
@@ -42,7 +42,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
42
42
|
/**
|
|
43
43
|
* Get one payment session object by order identifier
|
|
44
44
|
* @handleName getSessionByOrderId
|
|
45
|
-
* @param {number} id - Order
|
|
45
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
46
46
|
* @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
|
|
47
47
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
48
48
|
* @description This method gets one payment session object by order identifier. This method requires user authorization.
|
|
@@ -53,9 +53,9 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
53
53
|
/**
|
|
54
54
|
* Creation of payment session.
|
|
55
55
|
* @handleName createSession
|
|
56
|
-
* @param {number} orderId -
|
|
57
|
-
* @param {'session' | 'intent'} type - Session type
|
|
58
|
-
* @param {boolean} [automaticTaxEnabled] -
|
|
56
|
+
* @param {number} orderId - ID of the order. Example: 12345.
|
|
57
|
+
* @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: 'session'.
|
|
58
|
+
* @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
|
|
59
59
|
* @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
|
|
60
60
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
61
61
|
* @description This method creates a payment session. This method requires user authorization.
|
|
@@ -76,7 +76,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
76
76
|
/**
|
|
77
77
|
* Get a single payment account object by its identifier.
|
|
78
78
|
* @handleName getAccountById
|
|
79
|
-
* @param {number} id -
|
|
79
|
+
* @param {number} id - Payment account ID. Example: 12345.
|
|
80
80
|
* @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
|
|
81
81
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
82
82
|
* @description Get a single payment account object by its identifier.
|
|
@@ -88,7 +88,7 @@ export default class PaymentsApi extends AsyncModules implements IPaymentsApi {
|
|
|
88
88
|
/**
|
|
89
89
|
* Get the payment progress of an order: its stages and whether they are paid.
|
|
90
90
|
* @handleName getPaymentStagesByOrderId
|
|
91
|
-
* @param {number} id - ID
|
|
91
|
+
* @param {number} id - Order ID. Example: 1.
|
|
92
92
|
* @returns {Promise<IPaymentProgress | IError>} Returns the payment progress of the order.
|
|
93
93
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
94
94
|
* @description An order can be paid in stages rather than in one payment — `partial` says
|
|
@@ -19,7 +19,7 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
19
19
|
/**
|
|
20
20
|
* Get list of payment sessions.
|
|
21
21
|
* @handleName getSessions
|
|
22
|
-
* @param {number} [offset] -
|
|
22
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
23
23
|
* @param {number} [limit] - Optional parameter for pagination. Default: 30.
|
|
24
24
|
* @returns {Promise<ISessionsEntity | IError>} Returns an array of SessionEntity objects.
|
|
25
25
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -40,7 +40,7 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
40
40
|
/**
|
|
41
41
|
* Get a single payment session object by its identifier.
|
|
42
42
|
* @handleName getSessionById
|
|
43
|
-
* @param {number} id -
|
|
43
|
+
* @param {number} id - Payment session ID. Example: 12345.
|
|
44
44
|
* @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
|
|
45
45
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
46
46
|
* @description This method gets a single payment session object by its identifier. This method requires user authorization.
|
|
@@ -54,7 +54,7 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
54
54
|
/**
|
|
55
55
|
* Get one payment session object by order identifier
|
|
56
56
|
* @handleName getSessionByOrderId
|
|
57
|
-
* @param {number} id - Order
|
|
57
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
58
58
|
* @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
|
|
59
59
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
60
60
|
* @description This method gets one payment session object by order identifier. This method requires user authorization.
|
|
@@ -70,9 +70,9 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
70
70
|
/**
|
|
71
71
|
* Creation of payment session.
|
|
72
72
|
* @handleName createSession
|
|
73
|
-
* @param {number} orderId -
|
|
74
|
-
* @param {'session' | 'intent'} type - Session type
|
|
75
|
-
* @param {boolean} [automaticTaxEnabled] -
|
|
73
|
+
* @param {number} orderId - ID of the order. Example: 12345.
|
|
74
|
+
* @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: 'session'.
|
|
75
|
+
* @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
|
|
76
76
|
* @returns {Promise<ISessionEntity | IError>} Returns a single payment session object.
|
|
77
77
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
78
78
|
* @description This method creates a payment session. This method requires user authorization.
|
|
@@ -107,7 +107,7 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
107
107
|
/**
|
|
108
108
|
* Get a single payment account object by its identifier.
|
|
109
109
|
* @handleName getAccountById
|
|
110
|
-
* @param {number} id -
|
|
110
|
+
* @param {number} id - Payment account ID. Example: 12345.
|
|
111
111
|
* @returns {Promise<IAccountsEntity | IError>} Returns a single payment account object.
|
|
112
112
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
113
113
|
* @description Get a single payment account object by its identifier.
|
|
@@ -122,7 +122,7 @@ export default class PaymentsApi extends AsyncModules {
|
|
|
122
122
|
/**
|
|
123
123
|
* Get the payment progress of an order: its stages and whether they are paid.
|
|
124
124
|
* @handleName getPaymentStagesByOrderId
|
|
125
|
-
* @param {number} id - ID
|
|
125
|
+
* @param {number} id - Order ID. Example: 1.
|
|
126
126
|
* @returns {Promise<IPaymentProgress | IError>} Returns the payment progress of the order.
|
|
127
127
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
128
128
|
* @description An order can be paid in stages rather than in one payment — `partial` says
|
|
@@ -7,8 +7,8 @@ interface IPaymentsApi {
|
|
|
7
7
|
/**
|
|
8
8
|
* Get list of payment sessions.
|
|
9
9
|
* @handleName getSessions
|
|
10
|
-
* @param {number} [offset] -
|
|
11
|
-
* @param {number} [limit] -
|
|
10
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
11
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
12
12
|
* @returns {ISessionsEntity} Returns an array of SessionEntity objects.
|
|
13
13
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
14
14
|
* @description This method gets list of payment sessions. This method requires user authorization.
|
|
@@ -18,7 +18,7 @@ interface IPaymentsApi {
|
|
|
18
18
|
/**
|
|
19
19
|
* Get a single payment session object by its identifier.
|
|
20
20
|
* @handleName getSessionById
|
|
21
|
-
* @param {number} id -
|
|
21
|
+
* @param {number} id - Payment session ID. Example: 12345.
|
|
22
22
|
* @returns {ISessionEntity} Returns a single payment session object.
|
|
23
23
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
24
24
|
* @description This method gets a single payment session object by its identifier. This method requires user authorization.
|
|
@@ -28,7 +28,7 @@ interface IPaymentsApi {
|
|
|
28
28
|
/**
|
|
29
29
|
* Get one payment session object by order identifier 🔐
|
|
30
30
|
* @handleName getSessionByOrderId
|
|
31
|
-
* @param {number} id - Order
|
|
31
|
+
* @param {number} id - Order ID. Example: 12345.
|
|
32
32
|
* @returns {ISessionEntity} Returns a single payment session object.
|
|
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 one payment session object by order identifier. This method requires user authorization.
|
|
@@ -38,9 +38,9 @@ interface IPaymentsApi {
|
|
|
38
38
|
/**
|
|
39
39
|
* Creation of payment session.
|
|
40
40
|
* @handleName createSession
|
|
41
|
-
* @param {number} orderId -
|
|
42
|
-
* @param {'session' | 'intent'} type - Session type
|
|
43
|
-
* @param {boolean} [automaticTaxEnabled] -
|
|
41
|
+
* @param {number} orderId - ID of the order. Example: 12345.
|
|
42
|
+
* @param {'session' | 'intent'} type - Session type: "session" or "intent". Example: "session".
|
|
43
|
+
* @param {boolean} [automaticTaxEnabled] - Whether the tax rate is calculated automatically. Default: `false`.
|
|
44
44
|
* @returns {ISessionEntity} Returns a single payment session object.
|
|
45
45
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
46
46
|
* @description This method creates a payment session. This method requires user authorization.
|
|
@@ -59,7 +59,7 @@ interface IPaymentsApi {
|
|
|
59
59
|
/**
|
|
60
60
|
* Get a single payment account object by its identifier.
|
|
61
61
|
* @handleName getAccountById
|
|
62
|
-
* @param {number} id -
|
|
62
|
+
* @param {number} id - Payment account ID. Example: 12345.
|
|
63
63
|
* @returns {IAccountsEntity} Returns a single payment account object.
|
|
64
64
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
65
65
|
* @description This method gets a single payment account object by its identifier. This method requires user authorization.
|
|
@@ -69,7 +69,7 @@ interface IPaymentsApi {
|
|
|
69
69
|
/**
|
|
70
70
|
* Get the payment progress of an order: its stages and whether they are paid.
|
|
71
71
|
* @handleName getPaymentStagesByOrderId
|
|
72
|
-
* @param {number} id - ID
|
|
72
|
+
* @param {number} id - Order ID. Example: 1.
|
|
73
73
|
* @returns {IPaymentProgress} Returns the payment progress of the order.
|
|
74
74
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
75
75
|
* @description This method gets the payment stages of an order. This method requires user authorization.
|
|
@@ -80,7 +80,7 @@ interface IPaymentsApi {
|
|
|
80
80
|
/**
|
|
81
81
|
* @interface ISessionsEntity
|
|
82
82
|
* @property {number} total - Total number of found records. Example: 100.
|
|
83
|
-
* @property {ISessionEntity[]} items -
|
|
83
|
+
* @property {ISessionEntity[]} items - Payment sessions in this response.
|
|
84
84
|
* @example
|
|
85
85
|
[
|
|
86
86
|
{
|
|
@@ -102,16 +102,16 @@ interface ISessionsEntity {
|
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
104
|
* @interface ISessionEntity
|
|
105
|
-
* @property {number} id - Object
|
|
106
|
-
* @property {string} createdDate -
|
|
107
|
-
* @property {string} updatedDate -
|
|
108
|
-
* @property {'session' | 'intent'} type -
|
|
105
|
+
* @property {number} id - Object ID. Example: 1764.
|
|
106
|
+
* @property {string} createdDate - Creation date. Example: "2025-02-26T10:13:16.839Z".
|
|
107
|
+
* @property {string} updatedDate - Date the object was last modified. Example: "2025-02-26T10:13:16.839Z".
|
|
108
|
+
* @property {'session' | 'intent'} type - Session type: "session" or "intent". Example: "session".
|
|
109
109
|
* @property {string} status - Payment status. Example: "completed".
|
|
110
|
-
* @property {number} paymentAccountId -
|
|
111
|
-
* @property {number} orderId -
|
|
112
|
-
* @property {string | null} paymentUrl -
|
|
113
|
-
* @property {number | null} [amount] -
|
|
114
|
-
* @property {string} [clientSecret] - Client secret
|
|
110
|
+
* @property {number} paymentAccountId - ID of the payment account. Example: 1.
|
|
111
|
+
* @property {number} orderId - ID of the order. Example: 1.
|
|
112
|
+
* @property {string | null} paymentUrl - Payment page URL. Example: " https://www.sandbox.paypal.com/checkoutnow?token=9BE88048TU058770M".
|
|
113
|
+
* @property {number | null} [amount] - Payment session amount. Example: 100.
|
|
114
|
+
* @property {string} [clientSecret] - Client secret returned by the payment provider (for example, Stripe) when the session is created. Example: "pi_3MtwBwLkdIwHu7ix28a3tqPa_secret_YrKJUKribcBjcG8HVhfZluoGH".
|
|
115
115
|
* @description This interface defines the structure of a session entity, including its quantity, amount, currency, name, and description.
|
|
116
116
|
*/
|
|
117
117
|
interface ISessionEntity {
|
|
@@ -138,16 +138,16 @@ interface IIntent {
|
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
140
140
|
* @interface IAccountsEntity
|
|
141
|
-
* @property {number} id - Object
|
|
142
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
143
|
-
* @property {string} identifier -
|
|
141
|
+
* @property {number} id - Object ID. Example: 12345.
|
|
142
|
+
* @property {ILocalizeInfo} localizeInfos - Localized name and description of the payment account.
|
|
143
|
+
* @property {string} identifier - Marker of the payment account. Example: "payment_12345".
|
|
144
144
|
* @property {'stripe' | 'yookassa' | 'midtrans' | 'xendit' | 'custom'} type - Payment provider type. Example: 'stripe'.
|
|
145
|
-
* @property {boolean} isVisible -
|
|
146
|
-
* @property {boolean} isUsed -
|
|
147
|
-
* @property {boolean} testMode -
|
|
145
|
+
* @property {boolean} isVisible - Whether the payment account is visible. Example: true.
|
|
146
|
+
* @property {boolean} isUsed - Whether the payment account is in use. Example: false.
|
|
147
|
+
* @property {boolean} testMode - Whether the payment account is in test mode. Example: true.
|
|
148
148
|
* @property {IPaymentAccountSettings} settings - Payment account settings. Example: `{ "status": "connected" }`.
|
|
149
149
|
* @property {object} [testSettings] - Test mode settings for the payment account.
|
|
150
|
-
* @property {string} updatedDate -
|
|
150
|
+
* @property {string} updatedDate - Date the object was last modified. Example: "2025-02-26T10:13:16.839Z".
|
|
151
151
|
* @description This interface defines the structure of a payment account entity, including its identifiers, localization information, type, visibility, and usage status.
|
|
152
152
|
*/
|
|
153
153
|
interface IAccountsEntity {
|
|
@@ -199,8 +199,8 @@ interface IPaymentAccountTestSettings {
|
|
|
199
199
|
/**
|
|
200
200
|
* The `IPaymentProgress` interface describes the payment progress of an order.
|
|
201
201
|
* @interface IPaymentProgress
|
|
202
|
-
* @property {boolean} completed -
|
|
203
|
-
* @property {boolean} partial -
|
|
202
|
+
* @property {boolean} completed - `true` when every stage of the order has been paid. Example: false.
|
|
203
|
+
* @property {boolean} partial - `true` when the order is paid in stages rather than in one payment. Example: true.
|
|
204
204
|
* @property {IPaymentStage[]} stages - The stages themselves, in the order the API returns them.
|
|
205
205
|
* @description This interface describes the payment progress of an order — whether it is fully paid, whether it is split into stages, and the stages themselves.
|
|
206
206
|
*/
|
|
@@ -212,11 +212,11 @@ interface IPaymentProgress {
|
|
|
212
212
|
/**
|
|
213
213
|
* The `IPaymentStage` interface describes one payment stage of an order.
|
|
214
214
|
* @interface IPaymentStage
|
|
215
|
-
* @property {string} marker - Marker of the attribute that
|
|
215
|
+
* @property {string} marker - Marker of the attribute that sets the price of the stage. Example: "part_a".
|
|
216
216
|
* @property {number} sessionId - Identifier of the payment session bound to the stage. Example: 100.
|
|
217
|
-
* @property {number} productId -
|
|
217
|
+
* @property {number} productId - ID of the product the stage belongs to. Example: 200.
|
|
218
218
|
* @property {string} title - Title of the stage. Example: "Part A".
|
|
219
|
-
* @property {number} value -
|
|
219
|
+
* @property {number} value - Amount due for the stage. Example: 150.
|
|
220
220
|
* @property {"planned" | "completed"} status - Stage status: "planned" — not paid yet, "completed" — paid. Example: "planned".
|
|
221
221
|
* @description This interface describes one payment stage of an order.
|
|
222
222
|
*/
|
|
@@ -29,7 +29,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
|
|
|
29
29
|
/**
|
|
30
30
|
* Search for a product status object by its textual identifier (marker).
|
|
31
31
|
* @handleName getProductsByStatusMarker
|
|
32
|
-
* @param {string} marker -
|
|
32
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
33
33
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
34
34
|
* @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
|
|
35
35
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -40,7 +40,7 @@ export default class ProductStatusesApi extends AsyncModules implements IProduct
|
|
|
40
40
|
/**
|
|
41
41
|
* Check the existence of a textual identifier.
|
|
42
42
|
* @handleName validateMarker
|
|
43
|
-
* @param {string} marker -
|
|
43
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
44
44
|
* @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
|
|
45
45
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
46
46
|
* @description Check the existence of a textual identifier.
|
|
@@ -34,7 +34,7 @@ export default class ProductStatusesApi extends AsyncModules {
|
|
|
34
34
|
/**
|
|
35
35
|
* Search for a product status object by its textual identifier (marker).
|
|
36
36
|
* @handleName getProductsByStatusMarker
|
|
37
|
-
* @param {string} marker -
|
|
37
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
38
38
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
39
39
|
* @returns {Promise<IProductStatusEntity | IError>} Returns a product status object.
|
|
40
40
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
@@ -50,7 +50,7 @@ export default class ProductStatusesApi extends AsyncModules {
|
|
|
50
50
|
/**
|
|
51
51
|
* Check the existence of a textual identifier.
|
|
52
52
|
* @handleName validateMarker
|
|
53
|
-
* @param {string} marker -
|
|
53
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
54
54
|
* @returns {Promise<boolean | IError>} Returns true if the textual identifier (marker) exists or false if it doesn't.
|
|
55
55
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
56
56
|
* @description Check the existence of a textual identifier.
|
|
@@ -16,7 +16,7 @@ interface IProductStatusesApi {
|
|
|
16
16
|
/**
|
|
17
17
|
* Search for a product status object by its textual identifier (marker).
|
|
18
18
|
* @handleName getProductsByStatusMarker
|
|
19
|
-
* @param {string} marker -
|
|
19
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
20
20
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
21
21
|
* @returns {IProductStatusEntity} Returns a product status object.
|
|
22
22
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
@@ -26,7 +26,7 @@ interface IProductStatusesApi {
|
|
|
26
26
|
/**
|
|
27
27
|
* Check the existence of a textual identifier.
|
|
28
28
|
* @handleName validateMarker
|
|
29
|
-
* @param {string} marker -
|
|
29
|
+
* @param {string} marker - Marker of the product status. Example: "in_stock".
|
|
30
30
|
* @returns {boolean} Returns true if the textual identifier (marker) exists or false if it doesn't.
|
|
31
31
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
32
32
|
* @description This method checks the existence of a textual identifier.
|
|
@@ -36,9 +36,9 @@ interface IProductStatusesApi {
|
|
|
36
36
|
/**
|
|
37
37
|
* Product status entity structure
|
|
38
38
|
* @interface IProductStatusEntity
|
|
39
|
-
* @property {number} id -
|
|
40
|
-
* @property {string} identifier -
|
|
41
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
39
|
+
* @property {number} id - ID of the object. Example: 12345.
|
|
40
|
+
* @property {string} identifier - Text identifier (marker) of the object. Example: "in_stock".
|
|
41
|
+
* @property {ILocalizeInfo} localizeInfos - Localized name of the product status.
|
|
42
42
|
* @example
|
|
43
43
|
{
|
|
44
44
|
"title": "Catalog",
|
|
@@ -46,9 +46,9 @@ interface IProductStatusesApi {
|
|
|
46
46
|
"htmlContent": "<b>Content for catalog</b>",
|
|
47
47
|
"menuTitle": "Catalog"
|
|
48
48
|
}
|
|
49
|
-
* @property {boolean} isDefault -
|
|
50
|
-
* @property {number} version -
|
|
51
|
-
* @property {number} position - Position
|
|
49
|
+
* @property {boolean} isDefault - Whether this is the default status. Example: true.
|
|
50
|
+
* @property {number} version - Version number of the object; changes with each update. Example: 1.
|
|
51
|
+
* @property {number} position - Position used for sorting. Example: 1.
|
|
52
52
|
* @description This interface defines the structure of a product status entity, including its identifiers, localization information, position, and default status flag.
|
|
53
53
|
*/
|
|
54
54
|
interface IProductStatusEntity {
|