-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathproduct.ts
More file actions
51 lines (50 loc) · 884 Bytes
/
product.ts
File metadata and controls
51 lines (50 loc) · 884 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export const query = `
query GetProduct ($identifier: ProductUniqueIdentifier!) {
product (identifier: $identifier) {
id
brandId
categoryId
departmentId
name
linkId
refId
isVisible
description
shortDescription
releaseDate
keywords
title
isActive
taxCode
metaTagDescription
supplierId
showWithoutStock
score
salesChannel {
id
}
}
}
`
export interface Product {
id: string
brandId: string
categoryId: string
departmentId: string
name: string
linkId: string
refId?: string
isVisible: boolean
description?: string
shortDescription?: string
releaseDate?: string
keywords: string[]
title?: string
isActive: boolean
taxCode?: string
metaTagDescription?: string
supplierId?: string
showWithoutStock: boolean
score?: number
salesChannel?: { id: string }[]
}