Skip to content

Commit d306f8f

Browse files
authored
Merge pull request #291 from bakaphp/feat/product-detail
feat: add channels to updateParams
2 parents 0591f78 + cadbae1 commit d306f8f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.8.3",
2+
"version": "0.8.4",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/types/inventory.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,13 @@ export interface InputVariantParams {
235235
name: string;
236236
value?: string | number; //Mixed
237237
}[];
238+
channels: {
239+
warehouses_id: string | number;
240+
price: string;
241+
is_published: boolean;
242+
channels_id: number,
243+
discounted_price?: number;
244+
}[]
238245
warehouse?: {
239246
warehouse_id: number;
240247
status?: {
@@ -343,6 +350,7 @@ export interface CreateProductParams {
343350
price?: number;
344351
attributes?: ProductAttributes[];
345352
company_id?: number | string;
353+
sku?: string;
346354
}
347355

348356
export interface InputCategoriesParams {

0 commit comments

Comments
 (0)