-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.d.ts
108 lines (93 loc) · 1.65 KB
/
types.d.ts
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
export type Category = {
name: string,
slug: string
}
export type Subsection = {
name: string,
slug: string
}
export type Color = {
hex: string
}
export type ImageAsset = {
_ref: string
}
export type Image = {
asset: ImageAsset
crop: any,
hotspot: any
}
export type Product = {
_id: string,
image: Image,
name: string,
slug: string,
description: string,
price: string,
manufacturer: string,
relatedArticles: Article[],
quantity: number?,
lineID: string?
}
export type Article = {
_id: string?,
title: string,
slug: string,
image: Image,
subsection: Subsection,
category: Category,
publishedDate: string, //comes in from Sanity this way
storyProducts: StoryProducts[],
excerpt: any[] | any?,
content: any[] | any?
}
export type MonthArticle = {
name: string,
articles: Article[]
}
export type Feature = {
title: string,
text: any | any[],
image: Image,
url: string
}
export type ArticleSlug = {
slug: string,
subhub: string,
hub: string
}
export type CategoryFeature = {
categoryId: string,
name: string,
featuredArticleDisplay: string,
featuredArticle: Article
}
export type SubsectionArticles = {
name: string,
slug: string?,
articles: Article[]
}
export type ListItem = {
_key: string,
_type: string,
orientation: string,
text: any[] | any?,
title: string,
productDisplaySize: string,
products: Product[]
}
export type StoryProducts = {
products: Product[]
}
export type Campaign = {
slug: string,
image: Image,
title: string,
text: any[] | any?,
content: any[] | any?,
products: Product[],
hideLeadBlock: boolean
}
export type Slug = {
slug: string
}