Skip to content

Commit 5ea8f14

Browse files
authored
Merge pull request #292 from bakaphp/feat/product-detail
feat: add interfaces in inventory module.
2 parents d306f8f + eb21309 commit 5ea8f14

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
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.4",
2+
"version": "0.8.5",
33
"license": "MIT",
44
"main": "dist/index.js",
55
"typings": "dist/index.d.ts",

src/mutations/inventory.mutation.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,9 @@ export const UPDATE_ATTRIBUTES = gql`
679679
id
680680
value
681681
}
682+
attribute_type {
683+
name
684+
}
682685
created_at
683686
}
684687
}

src/types/inventory.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface StatusInterface {
3030
id: string;
3131
name: string;
3232
is_default?: boolean;
33+
is_published?: boolean;
3334
slug: string;
3435
}
3536

@@ -47,7 +48,14 @@ export interface AttributesInterface {
4748
companies: ProductCompany[];
4849
is_visible: boolean;
4950
is_searchable: boolean;
50-
is_filterable: boolean;
51+
is_filtrable: boolean;
52+
slug: string;
53+
attribute_type: {
54+
id: number;
55+
name: string;
56+
is_defaault: boolean;
57+
slug: string;
58+
};
5159
values: {
5260
id: string;
5361
value: string | number;
@@ -77,6 +85,11 @@ export interface RegionsInterface {
7785
short_slug: string;
7886
settings: string;
7987
is_default: boolean;
88+
currencies: {
89+
code: string;
90+
currency: string;
91+
id: number;
92+
};
8093
company: ProductCompany;
8194
}
8295

@@ -128,6 +141,9 @@ export interface VariantInterface {
128141
name: string;
129142
};
130143
}[];
144+
files: {
145+
data: FilesystemInterface[];
146+
};
131147
attributes?: ProductAttributes[];
132148
product: ProductInterface;
133149
}

0 commit comments

Comments
 (0)