@confed/sanity-types 0.1.2-2509031811 → 0.1.2-2509032017
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/sanity.types.ts +278 -0
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -13,6 +13,272 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
// Source: schema.json
|
|
16
|
+
export type StaffListSection = {
|
|
17
|
+
_type: 'staffListSection'
|
|
18
|
+
title?: string
|
|
19
|
+
intro?: Array<
|
|
20
|
+
| {
|
|
21
|
+
children?: Array<{
|
|
22
|
+
marks?: Array<string>
|
|
23
|
+
text?: string
|
|
24
|
+
_type: 'span'
|
|
25
|
+
_key: string
|
|
26
|
+
}>
|
|
27
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
28
|
+
listItem?: 'bullet' | 'number'
|
|
29
|
+
markDefs?: Array<{
|
|
30
|
+
href?: string
|
|
31
|
+
openInNewTab?: boolean
|
|
32
|
+
_type: 'link'
|
|
33
|
+
_key: string
|
|
34
|
+
}>
|
|
35
|
+
level?: number
|
|
36
|
+
_type: 'block'
|
|
37
|
+
_key: string
|
|
38
|
+
}
|
|
39
|
+
| {
|
|
40
|
+
asset?: {
|
|
41
|
+
_ref: string
|
|
42
|
+
_type: 'reference'
|
|
43
|
+
_weak?: boolean
|
|
44
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
45
|
+
}
|
|
46
|
+
media?: unknown
|
|
47
|
+
hotspot?: SanityImageHotspot
|
|
48
|
+
crop?: SanityImageCrop
|
|
49
|
+
altText: string
|
|
50
|
+
caption?: string
|
|
51
|
+
_type: 'figure'
|
|
52
|
+
_key: string
|
|
53
|
+
}
|
|
54
|
+
| {
|
|
55
|
+
variant?: 'primary' | 'outlined'
|
|
56
|
+
text: string
|
|
57
|
+
link: string
|
|
58
|
+
_type: 'ptButton'
|
|
59
|
+
_key: string
|
|
60
|
+
}
|
|
61
|
+
| {
|
|
62
|
+
url: string
|
|
63
|
+
title?: string
|
|
64
|
+
_type: 'ptYoutubeVideo'
|
|
65
|
+
_key: string
|
|
66
|
+
}
|
|
67
|
+
| {
|
|
68
|
+
kind: 'info' | 'success' | 'warning' | 'error'
|
|
69
|
+
title?: string
|
|
70
|
+
body: Array<{
|
|
71
|
+
children?: Array<{
|
|
72
|
+
marks?: Array<string>
|
|
73
|
+
text?: string
|
|
74
|
+
_type: 'span'
|
|
75
|
+
_key: string
|
|
76
|
+
}>
|
|
77
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
78
|
+
listItem?: 'bullet' | 'number'
|
|
79
|
+
markDefs?: Array<{
|
|
80
|
+
href?: string
|
|
81
|
+
openInNewTab?: boolean
|
|
82
|
+
_type: 'link'
|
|
83
|
+
_key: string
|
|
84
|
+
}>
|
|
85
|
+
level?: number
|
|
86
|
+
_type: 'block'
|
|
87
|
+
_key: string
|
|
88
|
+
}>
|
|
89
|
+
_type: 'note'
|
|
90
|
+
_key: string
|
|
91
|
+
}
|
|
92
|
+
| ({
|
|
93
|
+
_key: string
|
|
94
|
+
} & Table)
|
|
95
|
+
>
|
|
96
|
+
staffMembers?: Array<{
|
|
97
|
+
_ref: string
|
|
98
|
+
_type: 'reference'
|
|
99
|
+
_weak?: boolean
|
|
100
|
+
_key: string
|
|
101
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
102
|
+
}>
|
|
103
|
+
layout?: 'grid' | 'list' | 'cards'
|
|
104
|
+
displayOptions?: {
|
|
105
|
+
showPhotos?: boolean
|
|
106
|
+
showContactInfo?: boolean
|
|
107
|
+
showDescription?: boolean
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type FaqSection = {
|
|
112
|
+
_type: 'faqSection'
|
|
113
|
+
title?: string
|
|
114
|
+
intro?: Array<
|
|
115
|
+
| {
|
|
116
|
+
children?: Array<{
|
|
117
|
+
marks?: Array<string>
|
|
118
|
+
text?: string
|
|
119
|
+
_type: 'span'
|
|
120
|
+
_key: string
|
|
121
|
+
}>
|
|
122
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
123
|
+
listItem?: 'bullet' | 'number'
|
|
124
|
+
markDefs?: Array<{
|
|
125
|
+
href?: string
|
|
126
|
+
openInNewTab?: boolean
|
|
127
|
+
_type: 'link'
|
|
128
|
+
_key: string
|
|
129
|
+
}>
|
|
130
|
+
level?: number
|
|
131
|
+
_type: 'block'
|
|
132
|
+
_key: string
|
|
133
|
+
}
|
|
134
|
+
| {
|
|
135
|
+
asset?: {
|
|
136
|
+
_ref: string
|
|
137
|
+
_type: 'reference'
|
|
138
|
+
_weak?: boolean
|
|
139
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
140
|
+
}
|
|
141
|
+
media?: unknown
|
|
142
|
+
hotspot?: SanityImageHotspot
|
|
143
|
+
crop?: SanityImageCrop
|
|
144
|
+
altText: string
|
|
145
|
+
caption?: string
|
|
146
|
+
_type: 'figure'
|
|
147
|
+
_key: string
|
|
148
|
+
}
|
|
149
|
+
| {
|
|
150
|
+
variant?: 'primary' | 'outlined'
|
|
151
|
+
text: string
|
|
152
|
+
link: string
|
|
153
|
+
_type: 'ptButton'
|
|
154
|
+
_key: string
|
|
155
|
+
}
|
|
156
|
+
| {
|
|
157
|
+
url: string
|
|
158
|
+
title?: string
|
|
159
|
+
_type: 'ptYoutubeVideo'
|
|
160
|
+
_key: string
|
|
161
|
+
}
|
|
162
|
+
| {
|
|
163
|
+
kind: 'info' | 'success' | 'warning' | 'error'
|
|
164
|
+
title?: string
|
|
165
|
+
body: Array<{
|
|
166
|
+
children?: Array<{
|
|
167
|
+
marks?: Array<string>
|
|
168
|
+
text?: string
|
|
169
|
+
_type: 'span'
|
|
170
|
+
_key: string
|
|
171
|
+
}>
|
|
172
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
173
|
+
listItem?: 'bullet' | 'number'
|
|
174
|
+
markDefs?: Array<{
|
|
175
|
+
href?: string
|
|
176
|
+
openInNewTab?: boolean
|
|
177
|
+
_type: 'link'
|
|
178
|
+
_key: string
|
|
179
|
+
}>
|
|
180
|
+
level?: number
|
|
181
|
+
_type: 'block'
|
|
182
|
+
_key: string
|
|
183
|
+
}>
|
|
184
|
+
_type: 'note'
|
|
185
|
+
_key: string
|
|
186
|
+
}
|
|
187
|
+
| ({
|
|
188
|
+
_key: string
|
|
189
|
+
} & Table)
|
|
190
|
+
>
|
|
191
|
+
layout?: 'accordion' | 'list' | 'twoCols'
|
|
192
|
+
items?: Array<
|
|
193
|
+
{
|
|
194
|
+
_key: string
|
|
195
|
+
} & FaqItem
|
|
196
|
+
>
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type FaqItem = {
|
|
200
|
+
_type: 'faqItem'
|
|
201
|
+
question: string
|
|
202
|
+
answer: Array<
|
|
203
|
+
| {
|
|
204
|
+
children?: Array<{
|
|
205
|
+
marks?: Array<string>
|
|
206
|
+
text?: string
|
|
207
|
+
_type: 'span'
|
|
208
|
+
_key: string
|
|
209
|
+
}>
|
|
210
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
211
|
+
listItem?: 'bullet' | 'number'
|
|
212
|
+
markDefs?: Array<{
|
|
213
|
+
href?: string
|
|
214
|
+
openInNewTab?: boolean
|
|
215
|
+
_type: 'link'
|
|
216
|
+
_key: string
|
|
217
|
+
}>
|
|
218
|
+
level?: number
|
|
219
|
+
_type: 'block'
|
|
220
|
+
_key: string
|
|
221
|
+
}
|
|
222
|
+
| {
|
|
223
|
+
asset?: {
|
|
224
|
+
_ref: string
|
|
225
|
+
_type: 'reference'
|
|
226
|
+
_weak?: boolean
|
|
227
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
228
|
+
}
|
|
229
|
+
media?: unknown
|
|
230
|
+
hotspot?: SanityImageHotspot
|
|
231
|
+
crop?: SanityImageCrop
|
|
232
|
+
altText: string
|
|
233
|
+
caption?: string
|
|
234
|
+
_type: 'figure'
|
|
235
|
+
_key: string
|
|
236
|
+
}
|
|
237
|
+
| {
|
|
238
|
+
variant?: 'primary' | 'outlined'
|
|
239
|
+
text: string
|
|
240
|
+
link: string
|
|
241
|
+
_type: 'ptButton'
|
|
242
|
+
_key: string
|
|
243
|
+
}
|
|
244
|
+
| {
|
|
245
|
+
url: string
|
|
246
|
+
title?: string
|
|
247
|
+
_type: 'ptYoutubeVideo'
|
|
248
|
+
_key: string
|
|
249
|
+
}
|
|
250
|
+
| {
|
|
251
|
+
kind: 'info' | 'success' | 'warning' | 'error'
|
|
252
|
+
title?: string
|
|
253
|
+
body: Array<{
|
|
254
|
+
children?: Array<{
|
|
255
|
+
marks?: Array<string>
|
|
256
|
+
text?: string
|
|
257
|
+
_type: 'span'
|
|
258
|
+
_key: string
|
|
259
|
+
}>
|
|
260
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
261
|
+
listItem?: 'bullet' | 'number'
|
|
262
|
+
markDefs?: Array<{
|
|
263
|
+
href?: string
|
|
264
|
+
openInNewTab?: boolean
|
|
265
|
+
_type: 'link'
|
|
266
|
+
_key: string
|
|
267
|
+
}>
|
|
268
|
+
level?: number
|
|
269
|
+
_type: 'block'
|
|
270
|
+
_key: string
|
|
271
|
+
}>
|
|
272
|
+
_type: 'note'
|
|
273
|
+
_key: string
|
|
274
|
+
}
|
|
275
|
+
| ({
|
|
276
|
+
_key: string
|
|
277
|
+
} & Table)
|
|
278
|
+
>
|
|
279
|
+
anchorId?: Slug
|
|
280
|
+
}
|
|
281
|
+
|
|
16
282
|
export type MenuItem = {
|
|
17
283
|
_type: 'menuItem'
|
|
18
284
|
link: Link
|
|
@@ -332,6 +598,14 @@ export type Webpage = {
|
|
|
332
598
|
title: string
|
|
333
599
|
slug: Slug
|
|
334
600
|
body?: PtBasic
|
|
601
|
+
pageBuilder?: Array<
|
|
602
|
+
| ({
|
|
603
|
+
_key: string
|
|
604
|
+
} & FaqSection)
|
|
605
|
+
| ({
|
|
606
|
+
_key: string
|
|
607
|
+
} & StaffListSection)
|
|
608
|
+
>
|
|
335
609
|
parentPage?:
|
|
336
610
|
| {
|
|
337
611
|
_ref: string
|
|
@@ -820,6 +1094,7 @@ export type Person = {
|
|
|
820
1094
|
slug: Slug
|
|
821
1095
|
email?: string
|
|
822
1096
|
phone?: string
|
|
1097
|
+
mobilePhone?: string
|
|
823
1098
|
socialLinks?: Array<{
|
|
824
1099
|
platform?: string
|
|
825
1100
|
url?: string
|
|
@@ -1029,6 +1304,9 @@ export type SanityAssetSourceData = {
|
|
|
1029
1304
|
}
|
|
1030
1305
|
|
|
1031
1306
|
export type AllSanitySchemaTypes =
|
|
1307
|
+
| StaffListSection
|
|
1308
|
+
| FaqSection
|
|
1309
|
+
| FaqItem
|
|
1032
1310
|
| MenuItem
|
|
1033
1311
|
| Link
|
|
1034
1312
|
| PtBasic
|