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
|
@@ -35,7 +35,7 @@ interface IProductsApi {
|
|
|
35
35
|
}
|
|
36
36
|
]
|
|
37
37
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
38
|
-
* @param {IProductsQueryBase} [userQuery] - Optional
|
|
38
|
+
* @param {IProductsQueryBase} [userQuery] - Optional query parameters.
|
|
39
39
|
* @example
|
|
40
40
|
{
|
|
41
41
|
"limit": 30,
|
|
@@ -53,7 +53,7 @@ interface IProductsApi {
|
|
|
53
53
|
* @handleName getProductsEmptyPage
|
|
54
54
|
* @param body
|
|
55
55
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
56
|
-
* @param {IProductsQueryBase} [userQuery] - Optional
|
|
56
|
+
* @param {IProductsQueryBase} [userQuery] - Optional query parameters.
|
|
57
57
|
* @example
|
|
58
58
|
{
|
|
59
59
|
"limit": 30,
|
|
@@ -70,10 +70,10 @@ interface IProductsApi {
|
|
|
70
70
|
/**
|
|
71
71
|
* Search for all products with pagination for the selected category.
|
|
72
72
|
* @handleName getProductsByPageId
|
|
73
|
-
* @param {number} id - Page
|
|
74
|
-
* @param {IFilterParams[]} [body] - Request body. Default: []
|
|
75
|
-
* @param {string} [langCode] - Language code. Default "en_US".
|
|
76
|
-
* @param {IProductsQueryBase} [userQuery] - Optional
|
|
73
|
+
* @param {number} id - Page ID. Example: 12345.
|
|
74
|
+
* @param {IFilterParams[]} [body] - Request body. Default: `[]`.
|
|
75
|
+
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
76
|
+
* @param {IProductsQueryBase} [userQuery] - Optional query parameters.
|
|
77
77
|
* @example
|
|
78
78
|
{
|
|
79
79
|
"limit": 30,
|
|
@@ -90,9 +90,9 @@ interface IProductsApi {
|
|
|
90
90
|
/**
|
|
91
91
|
* Search for information about products and prices for the selected category.
|
|
92
92
|
* @handleName getProductsPriceByPageUrl
|
|
93
|
-
* @param {string} [url] - Page
|
|
93
|
+
* @param {string} [url] - Page URL. Example: "23-laminat-floorwood-maxima".
|
|
94
94
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
95
|
-
* @param {IProductsPriceQuery} [userQuery] - Optional
|
|
95
|
+
* @param {IProductsPriceQuery} [userQuery] - Optional query parameters.
|
|
96
96
|
* @example
|
|
97
97
|
{
|
|
98
98
|
"limit": 30,
|
|
@@ -109,10 +109,10 @@ interface IProductsApi {
|
|
|
109
109
|
/**
|
|
110
110
|
* Search for all products with pagination for the selected category.
|
|
111
111
|
* @handleName getProductsByPageUrl
|
|
112
|
-
* @param {string} url - Page
|
|
113
|
-
* @param {IFilterParams[]} [body] - Request body. Default: []
|
|
112
|
+
* @param {string} url - Page URL. Example: "23-laminat-floorwood-maxima".
|
|
113
|
+
* @param {IFilterParams[]} [body] - Request body. Default: `[]`.
|
|
114
114
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
115
|
-
* @param {IProductsQueryBase} [userQuery] - Optional
|
|
115
|
+
* @param {IProductsQueryBase} [userQuery] - Optional query parameters.
|
|
116
116
|
* @example
|
|
117
117
|
{
|
|
118
118
|
"limit": 30,
|
|
@@ -129,9 +129,9 @@ interface IProductsApi {
|
|
|
129
129
|
/**
|
|
130
130
|
* Find all related product page objects.
|
|
131
131
|
* @handleName getRelatedProductsById
|
|
132
|
-
* @param {number} [id] -
|
|
132
|
+
* @param {number} [id] - ID of the product page to find related products for. Example: 12345.
|
|
133
133
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
134
|
-
* @param {IProductsRelatedQuery} [userQuery] - Optional
|
|
134
|
+
* @param {IProductsRelatedQuery} [userQuery] - Optional query parameters.
|
|
135
135
|
* @example
|
|
136
136
|
{
|
|
137
137
|
"limit": 30,
|
|
@@ -150,9 +150,9 @@ interface IProductsApi {
|
|
|
150
150
|
/**
|
|
151
151
|
* Find products by its ids.
|
|
152
152
|
* @handleName getProductsByIds
|
|
153
|
-
* @param {string} ids -
|
|
153
|
+
* @param {string} ids - Comma-separated IDs of the product pages to fetch. Example: "12345,67890".
|
|
154
154
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
155
|
-
* @param {IProductsByIdsQuery} [userQuery] - Optional
|
|
155
|
+
* @param {IProductsByIdsQuery} [userQuery] - Optional query parameters.
|
|
156
156
|
* @example
|
|
157
157
|
{
|
|
158
158
|
"limit": 30,
|
|
@@ -167,9 +167,9 @@ interface IProductsApi {
|
|
|
167
167
|
/**
|
|
168
168
|
* Retrieve one product object.
|
|
169
169
|
* @handleName getProductById
|
|
170
|
-
* @param {number} id - Product
|
|
170
|
+
* @param {number} id - Product ID. Example: 12345.
|
|
171
171
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
172
|
-
* @param {boolean} [isNormalized] -
|
|
172
|
+
* @param {boolean} [isNormalized] - When `true`, the product is returned in normalized form.
|
|
173
173
|
* @returns {IProductsEntity} ProductEntity object.
|
|
174
174
|
* @throws {IError} If there is an error during the fetch operation, it will return an error object.
|
|
175
175
|
* @description This method retrieves one product object.
|
|
@@ -178,7 +178,7 @@ interface IProductsApi {
|
|
|
178
178
|
/**
|
|
179
179
|
* Getting a product block object by product id.
|
|
180
180
|
* @handleName getProductBlockById
|
|
181
|
-
* @param {number} id - Product
|
|
181
|
+
* @param {number} id - Product ID. Example: 12345.
|
|
182
182
|
* @returns {IProductBlock}
|
|
183
183
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
184
184
|
* @description This method gets a product block object by product id.
|
|
@@ -187,7 +187,7 @@ interface IProductsApi {
|
|
|
187
187
|
/**
|
|
188
188
|
* Quick search for product page objects with limited output.
|
|
189
189
|
* @handleName searchProduct
|
|
190
|
-
* @param {string} name - Text to search product
|
|
190
|
+
* @param {string} name - Text to search for in product titles (`localizeInfos.title`) in the requested language. Example: 'laminat'.
|
|
191
191
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
192
192
|
* @returns {IProductsEntity[] | IProductSearchResult[]} Array with ProductEntity objects, or an array with short ProductSearchResult cards when the traficLimit config option is enabled
|
|
193
193
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
@@ -197,7 +197,7 @@ interface IProductsApi {
|
|
|
197
197
|
/**
|
|
198
198
|
* Getting the number of products for the entire catalog.
|
|
199
199
|
* @handleName getProductsCount
|
|
200
|
-
* @param {object[]} [body] -
|
|
200
|
+
* @param {object[]} [body] - Filter objects with search conditions. Default: `[]`.
|
|
201
201
|
* @example
|
|
202
202
|
[
|
|
203
203
|
{
|
|
@@ -229,8 +229,8 @@ interface IProductsApi {
|
|
|
229
229
|
/**
|
|
230
230
|
* Getting the number of products on a catalog page by page ID.
|
|
231
231
|
* @handleName getProductsCountByPageId
|
|
232
|
-
* @param {string} id - Page
|
|
233
|
-
* @param {object[]} body -
|
|
232
|
+
* @param {number | string} id - Page ID. Example: 12345.
|
|
233
|
+
* @param {object[]} [body] - Filter objects with search conditions. Default: `[]`.
|
|
234
234
|
* @example
|
|
235
235
|
[
|
|
236
236
|
{
|
|
@@ -258,12 +258,12 @@ interface IProductsApi {
|
|
|
258
258
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
259
259
|
* @description This method calculates and returns the number of products available on a given catalog page, identified by its page ID, with optional filtering.
|
|
260
260
|
*/
|
|
261
|
-
getProductsCountByPageId(id: string, body?: object[]): Promise<IProductsCount | IError>;
|
|
261
|
+
getProductsCountByPageId(id: number | string, body?: object[]): Promise<IProductsCount | IError>;
|
|
262
262
|
/**
|
|
263
263
|
* Getting the number of products on a catalog page by page URL.
|
|
264
264
|
* @handleName getProductsCountByPageUrl
|
|
265
|
-
* @param {string} url - Page
|
|
266
|
-
* @param {string} body -
|
|
265
|
+
* @param {string} url - Page URL. Example: "catalog".
|
|
266
|
+
* @param {string} body - Filter objects with search conditions. Default: `[]`.
|
|
267
267
|
* @example
|
|
268
268
|
[
|
|
269
269
|
{
|
|
@@ -295,10 +295,10 @@ interface IProductsApi {
|
|
|
295
295
|
/**
|
|
296
296
|
* Semantic (vector) search for products.
|
|
297
297
|
* @handleName getProductsByVectorSearch
|
|
298
|
-
* @param {IVectorSearchProducts} body - Vector search
|
|
298
|
+
* @param {IVectorSearchProducts} body - Vector search parameters. Example: `{ queryText: "red running shoes" }`.
|
|
299
299
|
* @param {string} [langCode] - Language code. Default: "en_US".
|
|
300
|
-
* @param {number} [offset] -
|
|
301
|
-
* @param {number} [limit] -
|
|
300
|
+
* @param {number} [offset] - Number of records to skip. Default: 0.
|
|
301
|
+
* @param {number} [limit] - Maximum number of records to return. Default: 30.
|
|
302
302
|
* @returns {IVectorSearchResponse<IProductsResponse>} A promise that resolves to a products response (items + total + indexReady) or an error.
|
|
303
303
|
* @throws {IError} - If there is an error during the fetch operation, it will return an error object.
|
|
304
304
|
* @description This method performs a semantic (vector) search for products.
|
|
@@ -307,11 +307,11 @@ interface IProductsApi {
|
|
|
307
307
|
}
|
|
308
308
|
/**
|
|
309
309
|
* @interface IProductsQueryBase
|
|
310
|
-
* @property {number} offset -
|
|
311
|
-
* @property {number} limit -
|
|
312
|
-
* @property {string} sortOrder - Sort order "DESC"
|
|
313
|
-
* @property {string} sortKey - Field
|
|
314
|
-
* @property {string} [signPrice] -
|
|
310
|
+
* @property {number} offset - Number of records to skip. Default: 0.
|
|
311
|
+
* @property {number} limit - Maximum number of records to return. Default: 30.
|
|
312
|
+
* @property {string} sortOrder - Sort order: "DESC" or "ASC". Default: "DESC".
|
|
313
|
+
* @property {string} sortKey - Field to sort by: "id", "position", "title", "date", "price" or "status". Default: null.
|
|
314
|
+
* @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
|
|
315
315
|
* @see {@link https://js-sdk.oneentry.cloud/docs/products/#Fixing-the-price-signPrice Fixing the price} documentation.
|
|
316
316
|
* @description Base query parameters shared by the product listing endpoints (getProducts, getProductsEmptyPage, getProductsByPageId, getProductsByPageUrl): pagination, sorting and price fixing.
|
|
317
317
|
*/
|
|
@@ -325,8 +325,8 @@ interface IProductsQueryBase {
|
|
|
325
325
|
/**
|
|
326
326
|
* @interface IProductsRelatedQuery
|
|
327
327
|
* @augments IProductsQueryBase
|
|
328
|
-
* @property {string | null} [statusMarker] -
|
|
329
|
-
* @property {string | null} [templateMarker] -
|
|
328
|
+
* @property {string | null} [statusMarker] - Marker of the product status. Default: null. Example: "in_stock".
|
|
329
|
+
* @property {string | null} [templateMarker] - Marker of the product template. Default: null. Example: "template_12345".
|
|
330
330
|
* @property {string} [relationMode] - How relations are computed: "global" (the default) runs the template's chain of conditions as is; "local" additionally requires the attribute value of the product `id` to satisfy the template condition (same operator, same stored operand) before the products of that step are kept. Example: "local".
|
|
331
331
|
* @description Query parameters for getRelatedProductsById: the base query plus product page status and template markers and the relation mode.
|
|
332
332
|
*/
|
|
@@ -339,11 +339,11 @@ interface IProductsRelatedQuery extends IProductsQueryBase {
|
|
|
339
339
|
* Query parameters for getProductsPriceByPageUrl: the base query without
|
|
340
340
|
* `sortKey`, plus the product page status marker.
|
|
341
341
|
* @typedef {object} IProductsPriceQuery
|
|
342
|
-
* @property {number} [offset] -
|
|
343
|
-
* @property {number} [limit] -
|
|
344
|
-
* @property {string} [sortOrder] - Sort order "DESC"
|
|
345
|
-
* @property {string} [signPrice] -
|
|
346
|
-
* @property {string | null} [statusMarker] -
|
|
342
|
+
* @property {number} [offset] - Number of records to skip. Default: 0.
|
|
343
|
+
* @property {number} [limit] - Maximum number of records to return. Default: 30.
|
|
344
|
+
* @property {string} [sortOrder] - Sort order: "DESC" or "ASC". Default: "DESC".
|
|
345
|
+
* @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
|
|
346
|
+
* @property {string | null} [statusMarker] - Marker of the product status. Default: null. Example: "in_stock".
|
|
347
347
|
*/
|
|
348
348
|
type IProductsPriceQuery = Omit<IProductsQueryBase, 'sortKey'> & {
|
|
349
349
|
statusMarker?: string | null;
|
|
@@ -352,7 +352,7 @@ type IProductsPriceQuery = Omit<IProductsQueryBase, 'sortKey'> & {
|
|
|
352
352
|
* Query parameters for getProductsByIds: only price fixing — `ids` is passed
|
|
353
353
|
* as a dedicated method argument.
|
|
354
354
|
* @typedef {object} IProductsByIdsQuery
|
|
355
|
-
* @property {string} [signPrice] -
|
|
355
|
+
* @property {string} [signPrice] - Marker of the order storage to fix prices for. When set, each product comes with a `signedPrice` that holds the price for a limited time.
|
|
356
356
|
*/
|
|
357
357
|
type IProductsByIdsQuery = Pick<IProductsQueryBase, 'signPrice'>;
|
|
358
358
|
/**
|
|
@@ -368,13 +368,13 @@ type IProductsQuery = IProductsQueryBase;
|
|
|
368
368
|
/**
|
|
369
369
|
* @interface IFilterParams
|
|
370
370
|
* @property {string} [attributeMarker] - The text identifier of the indexed attribute by which values are filtered. Example: "color". Optional: a filter entry may select by `statusMarker` (or `pageUrls`, `title`) alone, e.g. `{ statusMarker: "in_stock" }`.
|
|
371
|
-
* @property {string | null} [conditionMarker] -
|
|
371
|
+
* @property {string | null} [conditionMarker] - Marker of the filter condition, such as `eq`. Default: `null`. Example: "eq".
|
|
372
372
|
* @property {number | string | null} [conditionValue] - The value that is being searched for, default null. Example: "new". Needed together with `attributeMarker`.
|
|
373
|
-
* @property {string | null} [pageUrl] -
|
|
374
|
-
* @property {string[] | null} [pageUrls] -
|
|
375
|
-
* @property {string | null} [statusMarker] -
|
|
373
|
+
* @property {string | null} [pageUrl] - URL of one category page. Example: "23-laminat-floorwood-maxima".
|
|
374
|
+
* @property {string[] | null} [pageUrls] - URLs of the category pages. Example: ["23-laminat-floorwood-maxima"].
|
|
375
|
+
* @property {string | null} [statusMarker] - Marker of the product status. Not set by default. Example: "in_stock".
|
|
376
376
|
* @property {string | null} [title] - Product name. Example: "Laminatboden Maxima".
|
|
377
|
-
* @property {boolean} [isNested] -
|
|
377
|
+
* @property {boolean} [isNested] - Whether the entity is nested. Default: `false`. Example: true.
|
|
378
378
|
* @description This interface defines the structure of filter parameters used for querying products, including conditions, attributes, and pagination.
|
|
379
379
|
*/
|
|
380
380
|
interface IFilterParams {
|
|
@@ -409,10 +409,10 @@ interface IProductPriceRange {
|
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
411
|
* @interface IProductPageRef
|
|
412
|
-
* @property {number} id -
|
|
412
|
+
* @property {number} id - ID of the product-to-page link record. Example: 16.
|
|
413
413
|
* @property {number} pageId - Identifier of the page the product is linked to. Example: 4.
|
|
414
|
-
* @property {number} productId -
|
|
415
|
-
* @property {number} positionId -
|
|
414
|
+
* @property {number} productId - Product ID. Example: 15.
|
|
415
|
+
* @property {number} positionId - ID of the position record that stores the product's sort order. Example: 244.
|
|
416
416
|
* @property {string} categoryPath - Category path of the page the product belongs to. Example: "products".
|
|
417
417
|
* @description Reference linking a product to one of the pages it is published on.
|
|
418
418
|
*/
|
|
@@ -425,14 +425,14 @@ interface IProductPageRef {
|
|
|
425
425
|
}
|
|
426
426
|
/**
|
|
427
427
|
* @interface IProductsEntity
|
|
428
|
-
* @property {number} id -
|
|
429
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
430
|
-
* @property {string | null} statusIdentifier -
|
|
428
|
+
* @property {number} id - ID of the product. Example: 12345.
|
|
429
|
+
* @property {ILocalizeInfo} localizeInfos - Localized product data, such as the title. Example: {}.
|
|
430
|
+
* @property {string | null} statusIdentifier - Marker of the product status, or `null`. Example: "in_stock".
|
|
431
431
|
* @property {ILocalizeInfo} statusLocalizeInfos - Localized status name for the product. Example: `{ "title": "Sale" }`.
|
|
432
|
-
* @property {string | null} attributeSetIdentifier -
|
|
433
|
-
* @property {number} position -
|
|
434
|
-
* @property {number | null} price -
|
|
435
|
-
* @property {object} additional -
|
|
432
|
+
* @property {string | null} attributeSetIdentifier - Marker of the attribute set, or `null` if none is assigned. Example: "set_12345".
|
|
433
|
+
* @property {number} position - Position used for sorting. Example: 1.
|
|
434
|
+
* @property {number | null} price - Product price from the search index. Example: 150.00.
|
|
435
|
+
* @property {object} additional - Extra values computed by the search index, such as the price range in `prices.min` and `prices.max`.
|
|
436
436
|
* @example
|
|
437
437
|
{
|
|
438
438
|
"prices": {
|
|
@@ -440,9 +440,9 @@ interface IProductPageRef {
|
|
|
440
440
|
"max": 150
|
|
441
441
|
}
|
|
442
442
|
}
|
|
443
|
-
* @property {string | null} sku - Product SKU
|
|
444
|
-
* @property {boolean} isSync -
|
|
445
|
-
* @property {IAttributeValues} attributeValues -
|
|
443
|
+
* @property {string | null} sku - Product SKU from the search index, or `null`. Example: "SKU_12345".
|
|
444
|
+
* @property {boolean} isSync - Whether the product is indexed. Example: true.
|
|
445
|
+
* @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
|
|
446
446
|
* @example
|
|
447
447
|
[
|
|
448
448
|
{
|
|
@@ -450,31 +450,31 @@ interface IProductPageRef {
|
|
|
450
450
|
"value": "red"
|
|
451
451
|
}
|
|
452
452
|
]
|
|
453
|
-
* @property {string[]} categories -
|
|
453
|
+
* @property {string[]} categories - URLs of the catalog pages the product belongs to.
|
|
454
454
|
* @example
|
|
455
455
|
[
|
|
456
456
|
1,
|
|
457
457
|
2,
|
|
458
458
|
3
|
|
459
459
|
]
|
|
460
|
-
* @property {boolean} isVisible -
|
|
461
|
-
* @property {Array<IFormConfig>} [moduleFormConfigs] -
|
|
462
|
-
* @property {IRating} [rating] - Rating data.
|
|
463
|
-
* @property {boolean} isPositionLocked -
|
|
464
|
-
* @property {number[]} relatedIds -
|
|
460
|
+
* @property {boolean} isVisible - Whether the product is visible. Example: true.
|
|
461
|
+
* @property {Array<IFormConfig>} [moduleFormConfigs] - Form configurations of the module.
|
|
462
|
+
* @property {IRating} [rating] - Rating data: average value, likes and dislikes, and the calculation method.
|
|
463
|
+
* @property {boolean} [isPositionLocked] - Whether the sorting position is locked. Example: false.
|
|
464
|
+
* @property {number[]} relatedIds - IDs of related products.
|
|
465
465
|
* @example
|
|
466
466
|
[
|
|
467
467
|
12345,
|
|
468
468
|
67890
|
|
469
469
|
]
|
|
470
|
-
* @property {unknown} [paymentStages] - Payment stages data
|
|
471
|
-
* @property {number} [distance] -
|
|
472
|
-
* @property {Record<string, unknown>} [discountConfig] - Discount configuration
|
|
473
|
-
* @property {string | null} [templateIdentifier] -
|
|
474
|
-
* @property {string | null} [shortDescTemplateIdentifier] -
|
|
475
|
-
* @property {string} [signedPrice] -
|
|
470
|
+
* @property {unknown} [paymentStages] - Payment stages data, or `null`. Example: null.
|
|
471
|
+
* @property {number} [distance] - Relevance distance in vector (semantic) search. Present only in vector search results. Example: 0.42.
|
|
472
|
+
* @property {Record<string, unknown>} [discountConfig] - Discount configuration. Example: {}.
|
|
473
|
+
* @property {string | null} [templateIdentifier] - Marker of the linked template. Example: "template_12345".
|
|
474
|
+
* @property {string | null} [shortDescTemplateIdentifier] - Marker of the template used for the short description. Example: "short_desc_template_12345".
|
|
475
|
+
* @property {string} [signedPrice] - Signed token (JWT) that fixes the product price for an order. Returned when `signPrice` is set. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
|
|
476
476
|
* @see {@link https://js-sdk.oneentry.cloud/docs/orders/#Fixed-product-price-signedPrice Fixed product price} documentation.
|
|
477
|
-
* @property {IProductPageRef[]} [productPages] -
|
|
477
|
+
* @property {IProductPageRef[]} [productPages] - Links between the product and the catalog pages it belongs to.
|
|
478
478
|
* @example
|
|
479
479
|
[
|
|
480
480
|
{
|
|
@@ -485,7 +485,7 @@ interface IProductPageRef {
|
|
|
485
485
|
"categoryPath": "products"
|
|
486
486
|
}
|
|
487
487
|
]
|
|
488
|
-
* @property {string[]} [blocks] -
|
|
488
|
+
* @property {string[]} [blocks] - Markers of the blocks attached to the product.
|
|
489
489
|
* @example
|
|
490
490
|
[
|
|
491
491
|
"block_12345",
|
|
@@ -522,8 +522,8 @@ interface IProductsEntity {
|
|
|
522
522
|
}
|
|
523
523
|
/**
|
|
524
524
|
* @interface IProductsResponse
|
|
525
|
-
* @property {number} total -
|
|
526
|
-
* @property {IProductsEntity[]} items -
|
|
525
|
+
* @property {number} total - Total number of products found. Example: 100.
|
|
526
|
+
* @property {IProductsEntity[]} items - Products in this response.
|
|
527
527
|
* @example
|
|
528
528
|
[
|
|
529
529
|
{
|
|
@@ -558,8 +558,8 @@ interface IProductSearchResult {
|
|
|
558
558
|
/**
|
|
559
559
|
* @interface IProductsCount
|
|
560
560
|
* @property {number} totalAll - The total number of products found. Example: 100.
|
|
561
|
-
* @property {number} totalInCategory -
|
|
562
|
-
* @property {number} totalInCategoryWithNested -
|
|
561
|
+
* @property {number} totalInCategory - Number of products in the category. Example: 50.
|
|
562
|
+
* @property {number} totalInCategoryWithNested - Number of products in the category, including its nested categories. Example: 10.
|
|
563
563
|
* @description This interface defines the structure of a response with total count of product items.
|
|
564
564
|
*/
|
|
565
565
|
interface IProductsCount {
|
|
@@ -569,8 +569,8 @@ interface IProductsCount {
|
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
571
|
* @interface IProductsInfo
|
|
572
|
-
* @property {number} total -
|
|
573
|
-
* @property {IProductInfo[]} items -
|
|
572
|
+
* @property {number} total - Total number of products found. Example: 100.
|
|
573
|
+
* @property {IProductInfo[]} items - Price records of the products.
|
|
574
574
|
* @example
|
|
575
575
|
[
|
|
576
576
|
{
|
|
@@ -590,7 +590,7 @@ interface IProductsInfo {
|
|
|
590
590
|
}
|
|
591
591
|
/**
|
|
592
592
|
* @interface IProductInfo
|
|
593
|
-
* @property {number} id -
|
|
593
|
+
* @property {number} id - ID of the product. Example: 12345.
|
|
594
594
|
* @property {number} price - The price of the product. Example: 150.00.
|
|
595
595
|
* @property {string} [signedPrice] - The signed (fixed) price of the product, returned when `signPrice` is set. Example: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...".
|
|
596
596
|
* @see {@link https://js-sdk.oneentry.cloud/docs/orders/#Fixed-product-price-signedPrice Fixed product price} documentation.
|
|
@@ -603,22 +603,22 @@ interface IProductInfo {
|
|
|
603
603
|
}
|
|
604
604
|
/**
|
|
605
605
|
* @interface IProductBlock
|
|
606
|
-
* @property {number} id -
|
|
607
|
-
* @property {string | null} attributeSetIdentifier -
|
|
608
|
-
* @property {ILocalizeInfo} localizeInfos -
|
|
606
|
+
* @property {number} id - ID of the product block. Example: 3289.
|
|
607
|
+
* @property {string | null} attributeSetIdentifier - Marker of the attribute set used in the product block, or `null` if there is none. Example: "product_block".
|
|
608
|
+
* @property {ILocalizeInfo} localizeInfos - Localized data of the product block.
|
|
609
609
|
* @example
|
|
610
610
|
{
|
|
611
611
|
"title": "Box"
|
|
612
612
|
}
|
|
613
|
-
* @property {number} version - Version of the product block
|
|
613
|
+
* @property {number} version - Version number of the product block. Example: 1.
|
|
614
614
|
* @property {number} position - Position of the product block in a list or layout. Example: 1.
|
|
615
|
-
* @property {string} identifier -
|
|
616
|
-
* @property {BlockType} type -
|
|
617
|
-
* @property {object} customSettings - Custom settings
|
|
618
|
-
* @property {string | null} templateIdentifier -
|
|
619
|
-
* @property {boolean} isVisible -
|
|
620
|
-
* @property {boolean} isSync -
|
|
621
|
-
* @property {IAttributeValues} attributeValues -
|
|
615
|
+
* @property {string} identifier - Marker of the product block. Example: "product_block_12345".
|
|
616
|
+
* @property {BlockType} type - Block type. Example: "product".
|
|
617
|
+
* @property {object} customSettings - Custom settings of the product block: slider delay, product configuration, similar-product rules and conditions. Example: {}
|
|
618
|
+
* @property {string | null} templateIdentifier - Marker of the template used by the product block, or `null`. Example: "template_12345".
|
|
619
|
+
* @property {boolean} isVisible - Whether the product block is visible. Example: true.
|
|
620
|
+
* @property {boolean} isSync - Whether the product block is synchronized. Example: false.
|
|
621
|
+
* @property {IAttributeValues} attributeValues - Attribute values keyed by attribute marker.
|
|
622
622
|
* @example
|
|
623
623
|
[
|
|
624
624
|
{
|
|
@@ -697,12 +697,12 @@ interface IProductBlock {
|
|
|
697
697
|
/**
|
|
698
698
|
* @interface IAggregatedProductGroup
|
|
699
699
|
* @deprecated No method returns this shape: getProductsEmptyPage was declared with it,
|
|
700
|
-
* but the endpoint answers `{ items, total }` — see IProductsResponse
|
|
700
|
+
* but the endpoint answers `{ items, total }` — see IProductsResponse.
|
|
701
701
|
* Kept so that existing imports still compile.
|
|
702
702
|
* @property {string} attrValue - Attribute value.
|
|
703
703
|
* @property {IProductsEntity[]} items - Array of product entities.
|
|
704
704
|
* @property {string[]} productIds - Array of product ids.
|
|
705
|
-
* @property {number} total - Total
|
|
705
|
+
* @property {number} total - Total number of records.
|
|
706
706
|
*/
|
|
707
707
|
interface IAggregatedProductGroup {
|
|
708
708
|
attrValue: string;
|
|
@@ -714,9 +714,9 @@ interface IAggregatedProductGroup {
|
|
|
714
714
|
* Body for semantic (vector) product search.
|
|
715
715
|
* @interface IVectorSearchProducts
|
|
716
716
|
* @property {string} queryText - Natural-language search query. Example: "red running shoes".
|
|
717
|
-
* @property {number} [vectorDistanceThreshold] -
|
|
718
|
-
* @property {number} [maxHits] -
|
|
719
|
-
* @property {boolean} [debug] -
|
|
717
|
+
* @property {number} [vectorDistanceThreshold] - Maximum vector distance for a match. Example: 0.5.
|
|
718
|
+
* @property {number} [maxHits] - Maximum number of hits to return. Example: 50.
|
|
719
|
+
* @property {boolean} [debug] - Whether to add debug information to the response. Example: false.
|
|
720
720
|
* @description Body for the products vector/search endpoint.
|
|
721
721
|
*/
|
|
722
722
|
interface IVectorSearchProducts {
|
|
@@ -24,9 +24,9 @@ export default class SearchApi extends AsyncModules implements ISearchApi {
|
|
|
24
24
|
* @param {string} query - Search query. Example: "winter".
|
|
25
25
|
* @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
|
|
26
26
|
* @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
|
|
27
|
-
* @param {number} [offset] -
|
|
28
|
-
* @param {number} [limit] -
|
|
29
|
-
* @param {string} [langCode] - Language code. Default: "en_US". The search index is per language:
|
|
27
|
+
* @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
|
|
28
|
+
* @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
|
|
29
|
+
* @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
|
|
30
30
|
* @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
|
|
31
31
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
32
32
|
* @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
|
package/dist/search/searchApi.js
CHANGED
|
@@ -62,9 +62,9 @@ class SearchApi extends asyncModules_1.default {
|
|
|
62
62
|
* @param {string} query - Search query. Example: "winter".
|
|
63
63
|
* @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
|
|
64
64
|
* @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
|
|
65
|
-
* @param {number} [offset] -
|
|
66
|
-
* @param {number} [limit] -
|
|
67
|
-
* @param {string} [langCode] - Language code. Default: "en_US". The search index is per language:
|
|
65
|
+
* @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
|
|
66
|
+
* @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
|
|
67
|
+
* @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
|
|
68
68
|
* @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
|
|
69
69
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
70
70
|
* @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
|
|
@@ -11,9 +11,9 @@ interface ISearchApi {
|
|
|
11
11
|
* @param {string} query - Search query. Example: "winter".
|
|
12
12
|
* @param {TGlobalSearchEntityType[]} [types] - Entity types to search in, sent comma-separated. Searches every type when omitted.
|
|
13
13
|
* @param {'all' | 'visible' | 'hidden'} [visibility] - Visibility filter of the searched records. Default: "all".
|
|
14
|
-
* @param {number} [offset] -
|
|
15
|
-
* @param {number} [limit] -
|
|
16
|
-
* @param {string} [langCode] - Language code. Default: "en_US". The search index is per language:
|
|
14
|
+
* @param {number} [offset] - Offset for drilldown mode. Pass it only together with exactly one accessible type in `types`.
|
|
15
|
+
* @param {number} [limit] - Page size for drilldown mode. Pass it only together with exactly one accessible type in `types`; otherwise the API responds with `400 Drilldown mode (limit/offset) requires exactly one accessible type in types`. Without it, every group is returned in full.
|
|
16
|
+
* @param {string} [langCode] - Language code. Default: "en_US". The search index is built per language: words in another locale are found only when you pass that locale's `langCode`.
|
|
17
17
|
* @returns {Promise<IGlobalSearchResponse | IError>} Returns the query and the found records grouped by entity type.
|
|
18
18
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
19
19
|
* @description Searches names and attribute values of visible records across entity types. The index is per language — the request carries `langCode`, so a bilingual project finds a word of either locale.
|
|
@@ -72,7 +72,7 @@ interface IGlobalSearchItem {
|
|
|
72
72
|
* Global search results of a single entity type.
|
|
73
73
|
* @interface IGlobalSearchGroup
|
|
74
74
|
* @property {TGlobalSearchEntityType} type - Entity type of the group. Example: "products".
|
|
75
|
-
* @property {IGlobalSearchItem[]} items - Records
|
|
75
|
+
* @property {IGlobalSearchItem[]} items - Records of this entity type that match the query.
|
|
76
76
|
* @property {boolean} hasMore - Whether more records of this type are available beyond the requested page. Example: false.
|
|
77
77
|
* @description Global search results of a single entity type.
|
|
78
78
|
*/
|
|
@@ -28,7 +28,7 @@ export default class SitemapApi extends AsyncModules implements ISitemapApi {
|
|
|
28
28
|
/**
|
|
29
29
|
* Generates a new set of sitemaps.
|
|
30
30
|
* @handleName updateSitemap
|
|
31
|
-
* @param {ISitemapQuery} body - Sitemap
|
|
31
|
+
* @param {ISitemapQuery} body - Sitemap parameters, for example `{ baseUrls: { en_US: "https://…" } }`.
|
|
32
32
|
* @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
|
|
33
33
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
34
34
|
* @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
|
|
@@ -34,7 +34,7 @@ class SitemapApi extends asyncModules_1.default {
|
|
|
34
34
|
/**
|
|
35
35
|
* Generates a new set of sitemaps.
|
|
36
36
|
* @handleName updateSitemap
|
|
37
|
-
* @param {ISitemapQuery} body - Sitemap
|
|
37
|
+
* @param {ISitemapQuery} body - Sitemap parameters, for example `{ baseUrls: { en_US: "https://…" } }`.
|
|
38
38
|
* @returns {Promise<string[] | IError>} Returns an array of generated sitemap URLs.
|
|
39
39
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
40
40
|
* @see {@link https://js-sdk.oneentry.cloud/docs/sitemap/updateSitemap updateSitemap} documentation.
|
|
@@ -24,8 +24,8 @@ interface ISitemapApi {
|
|
|
24
24
|
* @property {Record<string, string>} [baseUrls] - Base URLs per language for sitemap generation. Example: `{ "en_US": "https://example.com/" }`.
|
|
25
25
|
* @property {string} [url] - URL of a single sitemap entry.
|
|
26
26
|
* @property {string} [lastmod] - Last modification date of the entry.
|
|
27
|
-
* @property {string} [changefreq] -
|
|
28
|
-
* @property {number} [priority] -
|
|
27
|
+
* @property {string} [changefreq] - How often the entry changes.
|
|
28
|
+
* @property {number} [priority] - Sitemap `priority` of the entry.
|
|
29
29
|
*/
|
|
30
30
|
interface ISitemapQuery {
|
|
31
31
|
baseUrls?: Record<string, string>;
|
|
@@ -21,7 +21,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
|
|
|
21
21
|
/**
|
|
22
22
|
* Create a new subscription and get a payment session for it.
|
|
23
23
|
* @handleName subscribe
|
|
24
|
-
* @param {ISubscribe} body - Subscription
|
|
24
|
+
* @param {ISubscribe} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
25
25
|
* @returns {Promise<ICreatedSubscription | IError>} Returns the created payment session for the subscription.
|
|
26
26
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
27
27
|
* @description This method requires user authorization.
|
|
@@ -32,7 +32,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
|
|
|
32
32
|
/**
|
|
33
33
|
* Cancel a subscription.
|
|
34
34
|
* @handleName cancelSubscription
|
|
35
|
-
* @param {ICancelSubscription} body - Subscription
|
|
35
|
+
* @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
36
36
|
* @returns {Promise<boolean | IError>} Returns true if the subscription was cancelled, or an error object if there was an issue.
|
|
37
37
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
38
38
|
* @description This method requires user authorization.
|
|
@@ -63,7 +63,7 @@ export default class SubscriptionsApi extends AsyncModules implements ISubscript
|
|
|
63
63
|
/**
|
|
64
64
|
* Recover a subscription through the Stripe Billing Portal.
|
|
65
65
|
* @handleName recoverSubscriptions
|
|
66
|
-
* @param {ICancelSubscription} body - Subscription
|
|
66
|
+
* @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
67
67
|
* @returns {Promise<boolean | IError>} Returns true if the recovery request was accepted, or an error object if there was an issue.
|
|
68
68
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
69
69
|
* @description This method requires user authorization.
|
|
@@ -59,7 +59,7 @@ class SubscriptionsApi extends asyncModules_1.default {
|
|
|
59
59
|
/**
|
|
60
60
|
* Create a new subscription and get a payment session for it.
|
|
61
61
|
* @handleName subscribe
|
|
62
|
-
* @param {ISubscribe} body - Subscription
|
|
62
|
+
* @param {ISubscribe} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
63
63
|
* @returns {Promise<ICreatedSubscription | IError>} Returns the created payment session for the subscription.
|
|
64
64
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
65
65
|
* @description This method requires user authorization.
|
|
@@ -74,7 +74,7 @@ class SubscriptionsApi extends asyncModules_1.default {
|
|
|
74
74
|
/**
|
|
75
75
|
* Cancel a subscription.
|
|
76
76
|
* @handleName cancelSubscription
|
|
77
|
-
* @param {ICancelSubscription} body - Subscription
|
|
77
|
+
* @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
78
78
|
* @returns {Promise<boolean | IError>} Returns true if the subscription was cancelled, or an error object if there was an issue.
|
|
79
79
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
80
80
|
* @description This method requires user authorization.
|
|
@@ -115,7 +115,7 @@ class SubscriptionsApi extends asyncModules_1.default {
|
|
|
115
115
|
/**
|
|
116
116
|
* Recover a subscription through the Stripe Billing Portal.
|
|
117
117
|
* @handleName recoverSubscriptions
|
|
118
|
-
* @param {ICancelSubscription} body - Subscription
|
|
118
|
+
* @param {ICancelSubscription} body - Subscription parameters. Example: `{ marker: "premium" }`.
|
|
119
119
|
* @returns {Promise<boolean | IError>} Returns true if the recovery request was accepted, or an error object if there was an issue.
|
|
120
120
|
* @throws {IError} When isShell=false and an error occurs during the fetch
|
|
121
121
|
* @description This method requires user authorization.
|