From ada037d34b145e73235c14abc778f0cae2a7532b Mon Sep 17 00:00:00 2001 From: RivierGrullon Date: Thu, 28 Sep 2023 16:07:34 -0400 Subject: [PATCH 1/3] feat(inventory): add channels to GET_PRODUCTS query --- package.json | 2 +- src/queries/inventory.query.ts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index ce01016a..d5d8d144 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "version": "0.0.41", + "version": "0.0.42", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/src/queries/inventory.query.ts b/src/queries/inventory.query.ts index 5ebe2a6e..aafa5796 100644 --- a/src/queries/inventory.query.ts +++ b/src/queries/inventory.query.ts @@ -79,6 +79,12 @@ export const GET_PRODUCTS = gql` name from_date } + channels { + name + price + discounted_price + is_published + } warehouseinfo { id name From 74f4bbf8c6609dcfbfe7aab8c804e65029d1b7f6 Mon Sep 17 00:00:00 2001 From: RivierGrullon Date: Thu, 28 Sep 2023 16:11:40 -0400 Subject: [PATCH 2/3] fix: Remove deprecated field from product query and add missing fields in variant interface --- src/queries/inventory.query.ts | 1 - src/types/inventory.ts | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/queries/inventory.query.ts b/src/queries/inventory.query.ts index aafa5796..a492a9d2 100644 --- a/src/queries/inventory.query.ts +++ b/src/queries/inventory.query.ts @@ -82,7 +82,6 @@ export const GET_PRODUCTS = gql` channels { name price - discounted_price is_published } warehouseinfo { diff --git a/src/types/inventory.ts b/src/types/inventory.ts index 3967eced..9658d58c 100644 --- a/src/types/inventory.ts +++ b/src/types/inventory.ts @@ -105,6 +105,11 @@ export interface VariantInterface { name: string; from_date: string; }[]; + channels: { + name: string; + price: number; + is_published: boolean; + }[]; warehouseinfo: { id: number; name: string; From 532fd471340d4bfb6344ba4a1cafc8bd7bf18ed1 Mon Sep 17 00:00:00 2001 From: RivierGrullon Date: Thu, 28 Sep 2023 16:12:04 -0400 Subject: [PATCH 3/3] chore: Update package version to 0.0.43 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d5d8d144..70c0416c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "version": "0.0.42", + "version": "0.0.43", "license": "MIT", "main": "dist/index.js", "typings": "dist/index.d.ts",