@djust-b2b/djust-front-sdk 1.14.0 → 1.15.1

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.
@@ -6,44 +6,27 @@ exports.getNavigationCategoryBreadcrumbs = getNavigationCategoryBreadcrumbs;
6
6
  const parameters_validation_1 = require("../../helpers/parameters-validation");
7
7
  const fetch_instance_1 = require("../../settings/fetch-instance");
8
8
  /**
9
- * ## Get all navigation categories
10
- * ### APICODE(NAVCAT-550)
11
- * @returns {Promise<GetNavigationCategoriesResponse>} - The response with the navigation categories
12
- *
13
- * @example
14
- * ### input
15
- * ```typescript
16
- * const response = await getNavigationCategories({ locale: 'string' });
9
+ * 📄 Gets all navigation categories.
10
+ *
11
+ * Retrieves a list of all navigation categories available for the shop.
12
+ *
13
+ * 🛠 **Endpoint**: `GET /v1/shop/navigation-category/online`
14
+ *
15
+ * | Parameter | Type | Required | Description |
16
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
17
+ * | `locale` | `string` | ✅ | Locale of the navigation categories to fetch. |
18
+ *
19
+ * 📤 **Returns**:
20
+ * A `Promise<GetNavigationCategoriesResponse>` containing a list of navigation categories.
21
+ *
22
+ * 🛠 **Example usage**:
23
+ * ```ts
24
+ * const categories = await getNavigationCategories({
25
+ * locale: 'en-US',
26
+ * });
27
+ *
28
+ * console.log(categories);
17
29
  * ```
18
- * ### output
19
- * Response - <strong style={{ color: 'green' }}>200</strong> - OK
20
- * ```json
21
- * [
22
- * {
23
- * "active": true,
24
- * "childrenCategories": [
25
- * string
26
- * ],
27
- * "customFieldValues": [
28
- * {
29
- * "customField": {
30
- * "externalId": "string",
31
- * "id": "string",
32
- * "name": {
33
- * "additionalProp1": "string",
34
- * "additionalProp2": "string",
35
- * "additionalProp3": "string"
36
- * },
37
- * "type": "LONG_TEXT"
38
- * },
39
- * "value": {}
40
- * }
41
- * ],
42
- * "externalId": "string",
43
- * "id": "string",
44
- * "name": "string"
45
- * }
46
- * ]
47
30
  */
48
31
  async function getNavigationCategories({ locale, }) {
49
32
  (0, parameters_validation_1.required)({ locale });
@@ -57,47 +40,31 @@ async function getNavigationCategories({ locale, }) {
57
40
  return data;
58
41
  }
59
42
  /**
60
- * ## Get navigation category
61
- * ### APICODE(NAVCAT-501)
62
- * @param {GetNavigationCategoryParameters} params - The parameters for the function
63
- * #### locale - `string` | <strong style={{ color: 'red' }}>required</strong>
64
- * #### idType - `string` | <strong style={{ color: 'red' }}>required</strong>
65
- * #### navigationCategoryId - `string` | <strong style={{ color: 'red' }}>required</strong>
66
- *
67
- * @returns {Promise<GetNavigationCategoryResponse>} - The response with the navigation category
68
- *
69
- * @example
70
- * ### input
71
- * ```typescript
72
- * const response = await getNavigationCategory({ locale: 'string', idType: 'string', navigationCategoryId: 'string' });
43
+ * 📄 Gets a specific navigation category.
44
+ *
45
+ * Retrieves a specific navigation category based on its ID.
46
+ *
47
+ * 🛠 **Endpoint**: `GET /v1/shop/navigation-category/{navigationCategoryId}`
48
+ *
49
+ * | Parameter | Type | Required | Description |
50
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
51
+ * | `locale` | `string` | ✅ | Locale of the navigation category. |
52
+ * | `idType` | `string` | ✅ | Type of the ID used to identify the category (e.g., `id`, `slug`). |
53
+ * | `navigationCategoryId`| `string` | ✅ | ID of the navigation category to fetch. |
54
+ *
55
+ * 📤 **Returns**:
56
+ * A `Promise<GetNavigationCategoryResponse>` containing the specific navigation category.
57
+ *
58
+ * 🛠 **Example usage**:
59
+ * ```ts
60
+ * const category = await getNavigationCategory({
61
+ * locale: 'en-US',
62
+ * idType: 'id',
63
+ * navigationCategoryId: '123',
64
+ * });
65
+ *
66
+ * console.log(category);
73
67
  * ```
74
- * ### output
75
- * Response - <strong style={{ color: 'green' }}>200</strong> - OK
76
- * ```json
77
- * {
78
- * "active": true,
79
- * "childrenCategories": [
80
- * string
81
- * ],
82
- * "customFieldValues": [
83
- * {
84
- * "customField": {
85
- * "externalId": "string",
86
- * "id": "string",
87
- * "name": {
88
- * "additionalProp1": "string",
89
- * "additionalProp2": "string",
90
- * "additionalProp3": "string"
91
- * },
92
- * "type": "LONG_TEXT"
93
- * },
94
- * "value": {}
95
- * }
96
- * ],
97
- * "externalId": "string",
98
- * "id": "string",
99
- * "name": "string",
100
- * }
101
68
  */
102
69
  async function getNavigationCategory({ locale, idType, navigationCategoryId, }) {
103
70
  (0, parameters_validation_1.required)({ idType, navigationCategoryId });
@@ -112,49 +79,31 @@ async function getNavigationCategory({ locale, idType, navigationCategoryId, })
112
79
  return data;
113
80
  }
114
81
  /**
115
- * ## Get navigation category breadcrumbs
116
- * ### APICODE(NAVCAT-502)
117
- * @param {GetNavigationCategoryBreadcrumbsParameters} params - The parameters for the function
118
- * #### locale - `string` | <strong style={{ color: 'red' }}>required</strong>
119
- * #### idType - `string` | <strong style={{ color: 'red' }}>required</strong>
120
- * #### navigationCategoryId - `string` | <strong style={{ color: 'red' }}>required</strong>
121
- *
122
- * @returns {Promise<GetNavigationCategoryBreadcrumbsResponse>} - The response with the navigation category breadcrumbs
123
- *
124
- * @example
125
- * ### input
126
- * ```typescript
127
- * const response = await getNavigationCategoryBreadcrumbs({ locale: 'string', idType: 'string', navigationCategoryId: 'string' });
82
+ * 📄 Gets breadcrumbs for a specific navigation category.
83
+ *
84
+ * Retrieves the breadcrumb trail for a specific navigation category, showing its hierarchy.
85
+ *
86
+ * 🛠 **Endpoint**: `GET /v1/shop/navigation-category/{navigationCategoryId}/breadcrumb`
87
+ *
88
+ * | Parameter | Type | Required | Description |
89
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
90
+ * | `locale` | `string` | ✅ | Locale of the navigation category breadcrumbs. |
91
+ * | `idType` | `string` | ✅ | Type of the ID used to identify the category (e.g., `id`, `slug`). |
92
+ * | `navigationCategoryId`| `string` | ✅ | ID of the navigation category to fetch breadcrumbs for. |
93
+ *
94
+ * 📤 **Returns**:
95
+ * A `Promise<GetNavigationCategoryBreadcrumbsResponse>` containing the breadcrumb trail for the navigation category.
96
+ *
97
+ * 🛠 **Example usage**:
98
+ * ```ts
99
+ * const breadcrumbs = await getNavigationCategoryBreadcrumbs({
100
+ * locale: 'en-US',
101
+ * idType: 'id',
102
+ * navigationCategoryId: '123',
103
+ * });
104
+ *
105
+ * console.log(breadcrumbs);
128
106
  * ```
129
- * ### output
130
- * Response - <strong style={{ color: 'green' }}>200</strong> - OK
131
- * ```json
132
- * [
133
- * {
134
- * "active": true,
135
- * "childrenCategories": [
136
- * string
137
- * ],
138
- * "customFieldValues": [
139
- * {
140
- * "customField": {
141
- * "externalId": "string",
142
- * "id": "string",
143
- * "name": {
144
- * "additionalProp1": "string",
145
- * "additionalProp2": "string",
146
- * "additionalProp3": "string"
147
- * },
148
- * "type": "LONG_TEXT"
149
- * },
150
- * "value": {}
151
- * }
152
- * ],
153
- * "externalId": "string",
154
- * "id": "string",
155
- * "name": "string",
156
- * "parent": "string"
157
- * }
158
107
  */
159
108
  async function getNavigationCategoryBreadcrumbs({ locale, idType, navigationCategoryId, }) {
160
109
  (0, parameters_validation_1.required)({ idType, navigationCategoryId });
@@ -24,7 +24,7 @@ declare enum AggregationType {
24
24
  }
25
25
  export interface GetProductsListParameters {
26
26
  locale: string;
27
- filters?: {
27
+ filters: {
28
28
  currency: string;
29
29
  categoryIds?: string[];
30
30
  skus?: string[];
@@ -1,57 +1,409 @@
1
1
  import { CreateProductReviewParameters, CreateProductReviewResponse, GetProductOffersParameters, GetProductOffersResponse, GetProductParameters, GetProductReviewsParameters, GetProductReviewsResponse, GetProductStatReviewsParameters, GetProductStatReviewsResponse, GetProductVariantAttributesParameters, GetProductVariantAttributesResponse, GetProductVariantOffersParameters, GetProductVariantOffersResponse, GetProductVariantSuppliersParameters, GetProductVariantSuppliersResponse, GetProductVariantsListParameters, GetProductVariantsListResponse, GetProductsListParameters, GetProductsListResponse, GetRelatedProductsParameters, AutoCompleteSearchProductsParameters, SearchProductsResponse, UpdateProductReviewParameters, UpdateProductReviewResponse, GetProductPaginatedOffersParameters, GetProductPaginatedOffersResponse } from "./definitions";
2
2
  /**
3
- * Search product with text expression for search and autocomplete
3
+ * 📄 Search products with a text expression for search and autocomplete.
4
+ *
5
+ * This function provides product search and autocomplete capabilities.
6
+ *
7
+ * 🛠 **Endpoint**: `GET /v2/shop/autocomplete`
8
+ *
9
+ * | Parameter | Type | Required | Description |
10
+ * |-----------------|--------------|----------|---------------------------------------------|
11
+ * | `input` | `string` | ✅ | The text expression to search for. |
12
+ * | `locale` | `string` | ✅ | The locale for the search. |
13
+ * | `currency` | `string` | ✅ | The currency for price formatting. |
14
+ * | `pageable.page` | `number` | ❌ | The page number to fetch (0-based index). |
15
+ * | `pageable.size` | `number` | ❌ | The number of items per page. |
16
+ * | `aggregation` | `boolean` | ❌ | Whether to include aggregation data. |
17
+ * | `productTags` | `string[]` | ❌ | Filters by product tags. |
18
+ *
19
+ * 📤 **Returns**:
20
+ * A `Promise` resolving to a `SearchProductsResponse` containing the matched products.
21
+ *
22
+ * 🛠 **Example usage**:
23
+ * ```typescript
24
+ * const products = await autoCompleteSearchProducts({
25
+ * input: 'laptop',
26
+ * locale: 'en-US',
27
+ * currency: 'USD',
28
+ * pageable: { page: 0, size: 10 },
29
+ * });
30
+ * console.log(products);
31
+ * ```
4
32
  */
5
33
  export declare function autoCompleteSearchProducts({ input, locale, currency, pageable, aggregation, productTags, }: AutoCompleteSearchProductsParameters): Promise<SearchProductsResponse>;
6
34
  /**
7
- * Get thumbnails of a product regrouping product, stat reviews, attributs and bestOffer
35
+ * 📄 Fetches a list of products with thumbnails, reviews, attributes, and best offers.
36
+ *
37
+ * 🛠 **Endpoint**: `GET /v2/shop/search`
38
+ *
39
+ * | Parameter | Type | Required | Description |
40
+ * |-----------------|--------------|----------|---------------------------------------------|
41
+ * | `locale` | `string` | ✅ | The locale for product data. |
42
+ * | `filters` | `object` | ❌ | Filters for narrowing down search results. |
43
+ * | `pageable.page` | `number` | ❌ | The page number to fetch (0-based index). |
44
+ * | `pageable.size` | `number` | ❌ | The number of items per page. |
45
+ *
46
+ * 📤 **Returns**:
47
+ * A `Promise` resolving to a `GetProductsListResponse` containing the products and their metadata.
48
+ *
49
+ * 🛠 **Example usage**:
50
+ * ```typescript
51
+ * const products = await getProductsList({
52
+ * locale: 'en-US',
53
+ * filters: { category: 'electronics' },
54
+ * pageable: { page: 1, size: 20 },
55
+ * });
56
+ * console.log(products);
57
+ * ```
8
58
  */
9
59
  export declare function getProductsList({ locale, filters, pageable, }: GetProductsListParameters): Promise<GetProductsListResponse>;
10
60
  /**
11
- * Get a paginated list of a product's variants
61
+ * 📄 Fetches product variants by product SKU.
62
+ *
63
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants`
64
+ *
65
+ * | Parameter | Type | Required | Description |
66
+ * |-----------------|--------------|----------|--------------------------------------------|
67
+ * | `productSku` | `string` | ✅ | The SKU of the product. |
68
+ * | `locale` | `string` | ❌ | The locale for product variants. |
69
+ * | `pageable.page` | `number` | ❌ | The page number to fetch (0-based index). |
70
+ * | `pageable.size` | `number` | ❌ | The number of items per page. |
71
+ *
72
+ * 📤 **Returns**:
73
+ * A `Promise` resolving to a `GetProductVariantsListResponse` containing the product variants.
74
+ *
75
+ * 🛠 **Example usage**:
76
+ * ```typescript
77
+ * const variants = await getProductVariantsList({
78
+ * productSku: 'sku123',
79
+ * locale: 'en-US',
80
+ * pageable: { page: 0, size: 10 },
81
+ * });
82
+ * console.log(variants);
83
+ * ```
12
84
  */
13
85
  export declare function getProductVariantsList({ productSku, locale, pageable, }: GetProductVariantsListParameters): Promise<GetProductVariantsListResponse>;
14
86
  /**
15
- * Get List offers of a product variant by sku, id or externalId
87
+ * 📄 Fetches offers for a specific product variant.
88
+ *
89
+ * Retrieves the list of offers available for a product variant identified by SKU, ID, or external ID.
90
+ *
91
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productIdentifier}/offers`
92
+ *
93
+ * | Parameter | Type | Required | Description |
94
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
95
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product variant (e.g., SKU, ID). |
96
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
97
+ * | `currency` | `string` | ✅ | Currency in which offers should be returned (e.g., `"USD"`). |
98
+ *
99
+ * 📤 **Returns**:
100
+ * A `Promise<GetProductVariantOffersResponse>` containing a list of offers for the product variant.
101
+ *
102
+ * 🛠 **Example usage**:
103
+ * ```ts
104
+ * const offers = await getProductVariantOffers({
105
+ * productIdentifier: 'sku123',
106
+ * productIdType: 'sku',
107
+ * currency: 'USD',
108
+ * });
109
+ *
110
+ * console.log(offers);
111
+ * ```
112
+ *
113
+ * **Example Response**:
114
+ * ```json
115
+ * {
116
+ * "offers": [
117
+ * {
118
+ * "id": "offer1",
119
+ * "price": 19.99,
120
+ * "currency": "USD",
121
+ * "availability": "In Stock",
122
+ * "seller": "Seller A"
123
+ * },
124
+ * {
125
+ * "id": "offer2",
126
+ * "price": 17.99,
127
+ * "currency": "USD",
128
+ * "availability": "Limited Stock",
129
+ * "seller": "Seller B"
130
+ * }
131
+ * ]
132
+ * }
133
+ * ```
16
134
  */
17
135
  export declare function getProductVariantOffers({ productIdentifier, productIdType, currency, }: GetProductVariantOffersParameters): Promise<GetProductVariantOffersResponse>;
18
136
  /**
19
- * Get suppliers of a product variant
137
+ * 📄 Fetches suppliers associated with a product variant.
138
+ *
139
+ * Retrieves a list of suppliers for a given product variant.
140
+ *
141
+ * 🛠 **Endpoint**: `GET /v1/shop/product-variants/{productVariantId}/suppliers`
142
+ *
143
+ * | Parameter | Type | Required | Description |
144
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
145
+ * | `productVariantId` | `string` | ✅ | ID of the product variant. |
146
+ *
147
+ * 📤 **Returns**:
148
+ * A `Promise<GetProductVariantSuppliersResponse>` containing the list of suppliers.
149
+ *
150
+ * 🛠 **Example usage**:
151
+ * ```ts
152
+ * const suppliers = await getProductVariantSuppliers({
153
+ * productVariantId: 'variant123',
154
+ * });
155
+ *
156
+ * console.log(suppliers);
157
+ * ```
20
158
  */
21
159
  export declare function getProductVariantSuppliers({ productVariantId, }: GetProductVariantSuppliersParameters): Promise<GetProductVariantSuppliersResponse>;
22
160
  /**
23
- * Get a product by sku, id or externalId
161
+ * 📄 Fetches details for a specific product.
162
+ *
163
+ * Retrieves information about a product identified by SKU, ID, or external ID.
164
+ *
165
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}`
166
+ *
167
+ * | Parameter | Type | Required | Description |
168
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
169
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product (e.g., SKU, ID). |
170
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
171
+ * | `locale` | `string` | ✅ | Locale for the product details (e.g., `"en_US"`). |
172
+ *
173
+ * 📤 **Returns**:
174
+ * A `Promise<GetProductsListResponse>` containing the product details.
175
+ *
176
+ * 🛠 **Example usage**:
177
+ * ```ts
178
+ * const product = await getProduct({
179
+ * productIdentifier: 'sku123',
180
+ * productIdType: 'sku',
181
+ * locale: 'en_US',
182
+ * });
183
+ *
184
+ * console.log(product);
185
+ * ```
24
186
  */
25
187
  export declare function getProduct({ productIdentifier, productIdType, locale, }: GetProductParameters): Promise<GetProductsListResponse>;
26
188
  /**
27
- * Get offers of a product by sku, id or externalId
189
+ * 📄 Fetches product offers by SKU, ID, or external ID.
190
+ *
191
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/offers`
192
+ *
193
+ * | Parameter | Type | Required | Description |
194
+ * |---------------------|--------------|----------|-------------------------------------------------|
195
+ * | `productIdentifier` | `string` | ✅ | The unique identifier of the product. |
196
+ * | `productIdType` | `string` | ✅ | The type of the identifier (`sku`, `id`, etc.).|
197
+ * | `currency` | `string` | ✅ | The currency for the offer details. |
198
+ *
199
+ * 📤 **Returns**:
200
+ * A `Promise` resolving to a `GetProductVariantOffersResponse` containing the offers.
201
+ *
202
+ * 🛠 **Example usage**:
203
+ * ```typescript
204
+ * const offers = await getProductVariantOffers({
205
+ * productIdentifier: 'sku123',
206
+ * productIdType: 'sku',
207
+ * currency: 'USD',
208
+ * });
209
+ * console.log(offers);
210
+ * ```
28
211
  */
29
212
  export declare function getProductOffers({ productIdentifier, productIdType, locale, currency, }: GetProductOffersParameters): Promise<GetProductOffersResponse>;
30
213
  /**
31
- * Get related products of a product by sku, id or externalId
214
+ * 📄 Fetches related products for a specific product.
215
+ *
216
+ * Retrieves a paginated list of related products identified by SKU, ID, or external ID.
217
+ *
218
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/related-products`
219
+ *
220
+ * | Parameter | Type | Required | Description |
221
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
222
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product (e.g., SKU, ID). |
223
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
224
+ * | `locale` | `string` | ✅ | Locale for the related products (e.g., `"en_US"`). |
225
+ * | `currency` | `string` | ✅ | Currency for the related products (e.g., `"USD"`). |
226
+ * | `pageable` | `object` | ❌ | Pagination details: `page`, `size`, `sort`. |
227
+ *
228
+ * 📤 **Returns**:
229
+ * A `Promise<GetRelatedProductsParameters>` containing related products.
230
+ *
231
+ * 🛠 **Example usage**:
232
+ * ```ts
233
+ * const relatedProducts = await getRelatedProducts({
234
+ * productIdentifier: 'sku123',
235
+ * productIdType: 'sku',
236
+ * locale: 'en_US',
237
+ * currency: 'USD',
238
+ * pageable: { page: 1, size: 10 },
239
+ * });
240
+ *
241
+ * console.log(relatedProducts);
242
+ * ```
32
243
  */
33
244
  export declare function getRelatedProducts({ productIdentifier, productIdType, locale, currency, pageable, }: GetRelatedProductsParameters): Promise<GetRelatedProductsParameters>;
34
245
  /**
35
- * Get reviews of a product by sku, id or externalId
246
+ * 📄 Fetches reviews for a specific product.
247
+ *
248
+ * Retrieves a list of reviews for a product identified by SKU, ID, or external ID.
249
+ *
250
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/reviews`
251
+ *
252
+ * | Parameter | Type | Required | Description |
253
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
254
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product (e.g., SKU, ID). |
255
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
256
+ *
257
+ * 📤 **Returns**:
258
+ * A `Promise<GetProductReviewsResponse>` containing the reviews.
259
+ *
260
+ * 🛠 **Example usage**:
261
+ * ```ts
262
+ * const reviews = await getProductReviews({
263
+ * productIdentifier: 'sku123',
264
+ * productIdType: 'sku',
265
+ * });
266
+ *
267
+ * console.log(reviews);
268
+ * ```
36
269
  */
37
270
  export declare function getProductReviews({ productIdentifier, productIdType, }: GetProductReviewsParameters): Promise<GetProductReviewsResponse>;
38
271
  /**
39
- * Get stat reviews of a product by sku, id or externalId
272
+ * 📄 Fetches statistical review data for a specific product.
273
+ *
274
+ * Retrieves aggregate review statistics for a product identified by SKU, ID, or external ID.
275
+ *
276
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/stat-reviews`
277
+ *
278
+ * | Parameter | Type | Required | Description |
279
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
280
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product (e.g., SKU, ID). |
281
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
282
+ *
283
+ * 📤 **Returns**:
284
+ * A `Promise<GetProductStatReviewsResponse>` containing review statistics.
285
+ *
286
+ * 🛠 **Example usage**:
287
+ * ```ts
288
+ * const stats = await getProductStatReviews({
289
+ * productIdentifier: 'sku123',
290
+ * productIdType: 'sku',
291
+ * });
292
+ *
293
+ * console.log(stats);
294
+ * ```
40
295
  */
41
296
  export declare function getProductStatReviews({ productIdentifier, productIdType, }: GetProductStatReviewsParameters): Promise<GetProductStatReviewsResponse>;
42
297
  /**
43
- * Get attributes of a product variant by sku, id or externalId
298
+ * 📄 Fetches attributes for a product variant.
299
+ *
300
+ * Retrieves attributes for a product variant identified by SKU, ID, or external ID.
301
+ *
302
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/variant-attributes`
303
+ *
304
+ * | Parameter | Type | Required | Description |
305
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
306
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product variant (e.g., SKU, ID). |
307
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
308
+ * | `locale` | `string` | ✅ | Locale for the attributes (e.g., `"en_US"`). |
309
+ *
310
+ * 📤 **Returns**:
311
+ * A `Promise<GetProductVariantAttributesResponse>` containing variant attributes.
312
+ *
313
+ * 🛠 **Example usage**:
314
+ * ```ts
315
+ * const attributes = await getProductVariantAttributes({
316
+ * productIdentifier: 'sku123',
317
+ * productIdType: 'sku',
318
+ * locale: 'en_US',
319
+ * });
320
+ *
321
+ * console.log(attributes);
322
+ * ```
44
323
  */
45
324
  export declare function getProductVariantAttributes({ productIdentifier, productIdType, locale, }: GetProductVariantAttributesParameters): Promise<GetProductVariantAttributesResponse>;
46
325
  /**
47
- * Create a review for a product
326
+ * 📄 Creates a review for a product.
327
+ *
328
+ * Submits a review for a specific product based on its SKU.
329
+ *
330
+ * 🛠 **Endpoint**: `POST /v1/shop/reviews`
331
+ *
332
+ * | Parameter | Type | Required | Description |
333
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
334
+ * | `message` | `string` | ✅ | Review content. |
335
+ * | `productSku` | `string` | ✅ | SKU of the product to review. |
336
+ * | `rating` | `number` | ✅ | Rating (e.g., 1 to 5). |
337
+ *
338
+ * 📤 **Returns**:
339
+ * A `Promise<CreateProductReviewResponse>` indicating the result of the operation.
340
+ *
341
+ * 🛠 **Example usage**:
342
+ * ```ts
343
+ * const review = await createProductReview({
344
+ * message: 'Great product!',
345
+ * productSku: 'sku123',
346
+ * rating: 5,
347
+ * });
348
+ *
349
+ * console.log(review);
350
+ * ```
48
351
  */
49
352
  export declare function createProductReview({ message, productSku, rating, }: CreateProductReviewParameters): Promise<CreateProductReviewResponse>;
50
353
  /**
51
- * Update a review for a product
354
+ * 📄 Updates an existing review for a product.
355
+ *
356
+ * Modifies the content and/or rating of an existing review for a specific product.
357
+ *
358
+ * 🛠 **Endpoint**: `PUT /v1/shop/reviews/{productReviewId}`
359
+ *
360
+ * | Parameter | Type | Required | Description |
361
+ * |-----------------------|-------------------------------|------------|---------------------------------------------------------------|
362
+ * | `productReviewId` | `string` | ✅ | ID of the review to update. |
363
+ * | `message` | `string` | ✅ | New review content. |
364
+ * | `rating` | `number` | ✅ | New rating (e.g., 1 to 5). |
365
+ *
366
+ * 📤 **Returns**:
367
+ * A `Promise<UpdateProductReviewResponse>` indicating the result of the operation.
368
+ *
369
+ * 🛠 **Example usage**:
370
+ * ```ts
371
+ * const updatedReview = await updateProductReview({
372
+ * productReviewId: 'review123',
373
+ * message: 'Updated my thoughts, still a great product!',
374
+ * rating: 4,
375
+ * });
376
+ *
377
+ * console.log(updatedReview);
378
+ * ```
52
379
  */
53
380
  export declare function updateProductReview({ productReviewId, message, rating, }: UpdateProductReviewParameters): Promise<UpdateProductReviewResponse>;
54
381
  /**
55
- * Get paginated offers of a product by sku, id or externalId
382
+ * 📄 Fetches paginated offers for a product.
383
+ *
384
+ * Retrieves offers for a product identified by SKU, ID, or external ID, with pagination support.
385
+ *
386
+ * 🛠 **Endpoint**: `GET /v1/shop/products/{productIdentifier}/paginated-offers`
387
+ *
388
+ * | Parameter | Type | Required | Description |
389
+ * |-----------------------|-------------|------------|---------------------------------------------------------------|
390
+ * | `productIdentifier` | `string` | ✅ | Unique identifier for the product (e.g., SKU, ID). |
391
+ * | `productIdType` | `string` | ✅ | The type of identifier: `"sku"`, `"id"`, or `"externalId"`. |
392
+ * | `currency` | `string` | ✅ | Currency for the offers (e.g., `"USD"`). |
393
+ * | `locale` | `string` | ✅ | Locale for the offers (e.g., `"en_US"`). |
394
+ * | `withoutPrices` | `boolean` | ❌ | Whether to exclude prices from the response. |
395
+ * | `pageable` | `object` | ❌ | Pagination details: `page`, `size`, `sort`. |
396
+ *
397
+ * 📤 **Returns**:
398
+ * A `Promise<GetProductPaginatedOffersResponse>` containing paginated offers.
399
+ *
400
+ * 🛠 **Example usage**:
401
+ * ```ts
402
+ * const offers = await getProductPaginatedOffers({
403
+ * productIdentifier: 'sku123',
404
+ * productIdType: 'sku',
405
+ * currency: 'USD',
406
+ * locale: 'en_US',
407
+ * pageable: { page: 1, size
56
408
  */
57
409
  export declare function getProductPaginatedOffers({ productIdentifier, productIdType, currency, locale, withoutPrices, pageable, }: GetProductPaginatedOffersParameters): Promise<GetProductPaginatedOffersResponse>;