@confed/sanity-types 0.1.0
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/index.d.ts +1 -0
- package/package.json +14 -0
- package/sanity.types.ts +1003 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./sanity.types";
|
package/package.json
ADDED
package/sanity.types.ts
ADDED
|
@@ -0,0 +1,1003 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ---------------------------------------------------------------------------------
|
|
3
|
+
* This file has been generated by Sanity TypeGen.
|
|
4
|
+
* Command: `sanity typegen generate`
|
|
5
|
+
*
|
|
6
|
+
* Any modifications made directly to this file will be overwritten the next time
|
|
7
|
+
* the TypeScript definitions are generated. Please make changes to the Sanity
|
|
8
|
+
* schema definitions and/or GROQ queries if you need to update these types.
|
|
9
|
+
*
|
|
10
|
+
* For more information on how to use Sanity TypeGen, visit the official documentation:
|
|
11
|
+
* https://www.sanity.io/docs/sanity-typegen
|
|
12
|
+
* ---------------------------------------------------------------------------------
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
// Source: schema.json
|
|
16
|
+
export type MenuItem = {
|
|
17
|
+
_type: 'menuItem'
|
|
18
|
+
link: Link
|
|
19
|
+
subItems?: Array<
|
|
20
|
+
{
|
|
21
|
+
_key: string
|
|
22
|
+
} & MenuItem
|
|
23
|
+
>
|
|
24
|
+
isHighlighted?: boolean
|
|
25
|
+
order?: number
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Link = {
|
|
29
|
+
_type: 'link'
|
|
30
|
+
label: string
|
|
31
|
+
internalPage?:
|
|
32
|
+
| {
|
|
33
|
+
_ref: string
|
|
34
|
+
_type: 'reference'
|
|
35
|
+
_weak?: boolean
|
|
36
|
+
[internalGroqTypeReferenceTo]?: 'webpage'
|
|
37
|
+
}
|
|
38
|
+
| {
|
|
39
|
+
_ref: string
|
|
40
|
+
_type: 'reference'
|
|
41
|
+
_weak?: boolean
|
|
42
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
43
|
+
}
|
|
44
|
+
| {
|
|
45
|
+
_ref: string
|
|
46
|
+
_type: 'reference'
|
|
47
|
+
_weak?: boolean
|
|
48
|
+
[internalGroqTypeReferenceTo]?: 'campus'
|
|
49
|
+
}
|
|
50
|
+
| {
|
|
51
|
+
_ref: string
|
|
52
|
+
_type: 'reference'
|
|
53
|
+
_weak?: boolean
|
|
54
|
+
[internalGroqTypeReferenceTo]?: 'school'
|
|
55
|
+
}
|
|
56
|
+
| {
|
|
57
|
+
_ref: string
|
|
58
|
+
_type: 'reference'
|
|
59
|
+
_weak?: boolean
|
|
60
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
61
|
+
}
|
|
62
|
+
url?: string
|
|
63
|
+
isExternal?: boolean
|
|
64
|
+
icon?: string
|
|
65
|
+
description?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type PtBasic = Array<
|
|
69
|
+
| {
|
|
70
|
+
children?: Array<{
|
|
71
|
+
marks?: Array<string>
|
|
72
|
+
text?: string
|
|
73
|
+
_type: 'span'
|
|
74
|
+
_key: string
|
|
75
|
+
}>
|
|
76
|
+
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
77
|
+
listItem?: 'bullet' | 'number'
|
|
78
|
+
markDefs?: Array<{
|
|
79
|
+
href?: string
|
|
80
|
+
openInNewTab?: boolean
|
|
81
|
+
_type: 'link'
|
|
82
|
+
_key: string
|
|
83
|
+
}>
|
|
84
|
+
level?: number
|
|
85
|
+
_type: 'block'
|
|
86
|
+
_key: string
|
|
87
|
+
}
|
|
88
|
+
| {
|
|
89
|
+
asset?: {
|
|
90
|
+
_ref: string
|
|
91
|
+
_type: 'reference'
|
|
92
|
+
_weak?: boolean
|
|
93
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
94
|
+
}
|
|
95
|
+
media?: unknown
|
|
96
|
+
hotspot?: SanityImageHotspot
|
|
97
|
+
crop?: SanityImageCrop
|
|
98
|
+
altText: string
|
|
99
|
+
caption?: string
|
|
100
|
+
_type: 'figure'
|
|
101
|
+
_key: string
|
|
102
|
+
}
|
|
103
|
+
| {
|
|
104
|
+
variant?: 'primary' | 'outlined'
|
|
105
|
+
text: string
|
|
106
|
+
link: string
|
|
107
|
+
_type: 'ptButton'
|
|
108
|
+
_key: string
|
|
109
|
+
}
|
|
110
|
+
| {
|
|
111
|
+
url: string
|
|
112
|
+
title?: string
|
|
113
|
+
_type: 'ptYoutubeVideo'
|
|
114
|
+
_key: string
|
|
115
|
+
}
|
|
116
|
+
>
|
|
117
|
+
|
|
118
|
+
export type Figure = {
|
|
119
|
+
_type: 'figure'
|
|
120
|
+
asset?: {
|
|
121
|
+
_ref: string
|
|
122
|
+
_type: 'reference'
|
|
123
|
+
_weak?: boolean
|
|
124
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
125
|
+
}
|
|
126
|
+
media?: unknown
|
|
127
|
+
hotspot?: SanityImageHotspot
|
|
128
|
+
crop?: SanityImageCrop
|
|
129
|
+
altText: string
|
|
130
|
+
caption?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type Redirect = {
|
|
134
|
+
_id: string
|
|
135
|
+
_type: 'redirect'
|
|
136
|
+
_createdAt: string
|
|
137
|
+
_updatedAt: string
|
|
138
|
+
_rev: string
|
|
139
|
+
from: string
|
|
140
|
+
to: {
|
|
141
|
+
type: 'url' | 'reference'
|
|
142
|
+
url?: string
|
|
143
|
+
reference?:
|
|
144
|
+
| {
|
|
145
|
+
_ref: string
|
|
146
|
+
_type: 'reference'
|
|
147
|
+
_weak?: boolean
|
|
148
|
+
[internalGroqTypeReferenceTo]?: 'webpage'
|
|
149
|
+
}
|
|
150
|
+
| {
|
|
151
|
+
_ref: string
|
|
152
|
+
_type: 'reference'
|
|
153
|
+
_weak?: boolean
|
|
154
|
+
[internalGroqTypeReferenceTo]?: 'newsArticle'
|
|
155
|
+
}
|
|
156
|
+
| {
|
|
157
|
+
_ref: string
|
|
158
|
+
_type: 'reference'
|
|
159
|
+
_weak?: boolean
|
|
160
|
+
[internalGroqTypeReferenceTo]?: 'event'
|
|
161
|
+
}
|
|
162
|
+
| {
|
|
163
|
+
_ref: string
|
|
164
|
+
_type: 'reference'
|
|
165
|
+
_weak?: boolean
|
|
166
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
167
|
+
}
|
|
168
|
+
| {
|
|
169
|
+
_ref: string
|
|
170
|
+
_type: 'reference'
|
|
171
|
+
_weak?: boolean
|
|
172
|
+
[internalGroqTypeReferenceTo]?: 'school'
|
|
173
|
+
}
|
|
174
|
+
| {
|
|
175
|
+
_ref: string
|
|
176
|
+
_type: 'reference'
|
|
177
|
+
_weak?: boolean
|
|
178
|
+
[internalGroqTypeReferenceTo]?: 'campus'
|
|
179
|
+
}
|
|
180
|
+
| {
|
|
181
|
+
_ref: string
|
|
182
|
+
_type: 'reference'
|
|
183
|
+
_weak?: boolean
|
|
184
|
+
[internalGroqTypeReferenceTo]?: 'area'
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
statusCode: '300' | '301' | '302' | '303' | '304' | '305' | '307'
|
|
188
|
+
isActive?: boolean
|
|
189
|
+
description?: string
|
|
190
|
+
createdAt?: string
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type Event = {
|
|
194
|
+
_id: string
|
|
195
|
+
_type: 'event'
|
|
196
|
+
_createdAt: string
|
|
197
|
+
_updatedAt: string
|
|
198
|
+
_rev: string
|
|
199
|
+
title: string
|
|
200
|
+
slug: Slug
|
|
201
|
+
mainImage?: {
|
|
202
|
+
asset?: {
|
|
203
|
+
_ref: string
|
|
204
|
+
_type: 'reference'
|
|
205
|
+
_weak?: boolean
|
|
206
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
207
|
+
}
|
|
208
|
+
media?: unknown
|
|
209
|
+
hotspot?: SanityImageHotspot
|
|
210
|
+
crop?: SanityImageCrop
|
|
211
|
+
altText: string
|
|
212
|
+
caption?: string
|
|
213
|
+
_type: 'accessibleImage'
|
|
214
|
+
}
|
|
215
|
+
description?: PtBasic
|
|
216
|
+
startDate: string
|
|
217
|
+
endDate: string
|
|
218
|
+
location?: {
|
|
219
|
+
name?: string
|
|
220
|
+
address?: string
|
|
221
|
+
isVirtual?: boolean
|
|
222
|
+
virtualUrl?: string
|
|
223
|
+
}
|
|
224
|
+
registration?: {
|
|
225
|
+
isRequired?: boolean
|
|
226
|
+
url?: string
|
|
227
|
+
deadline?: string
|
|
228
|
+
capacity?: number
|
|
229
|
+
}
|
|
230
|
+
organizer?: string
|
|
231
|
+
contactEmail?: string
|
|
232
|
+
eventType?:
|
|
233
|
+
| 'conference'
|
|
234
|
+
| 'workshop'
|
|
235
|
+
| 'seminar'
|
|
236
|
+
| 'open-house'
|
|
237
|
+
| 'graduation'
|
|
238
|
+
| 'career-fair'
|
|
239
|
+
| 'information-session'
|
|
240
|
+
| 'social-event'
|
|
241
|
+
| 'academic-event'
|
|
242
|
+
| 'other'
|
|
243
|
+
price?: {
|
|
244
|
+
isFree?: boolean
|
|
245
|
+
amount?: number
|
|
246
|
+
currency?: 'CAD' | 'USD'
|
|
247
|
+
}
|
|
248
|
+
performers?: Array<{
|
|
249
|
+
name?: string
|
|
250
|
+
role?: string
|
|
251
|
+
organization?: string
|
|
252
|
+
_key: string
|
|
253
|
+
}>
|
|
254
|
+
accessibility?: {
|
|
255
|
+
wheelchairAccessible?: boolean
|
|
256
|
+
accessibleParking?: boolean
|
|
257
|
+
signLanguageInterpreter?: boolean
|
|
258
|
+
assistiveListeningDevices?: boolean
|
|
259
|
+
accessibilityNotes?: string
|
|
260
|
+
}
|
|
261
|
+
eventStatus?: 'scheduled' | 'cancelled' | 'postponed' | 'rescheduled'
|
|
262
|
+
maxAttendeeCapacity?: number
|
|
263
|
+
categories: Array<'public' | 'employee' | 'students'>
|
|
264
|
+
isFeatured?: boolean
|
|
265
|
+
isPublished?: boolean
|
|
266
|
+
dateCreated?: string
|
|
267
|
+
seo?: Seo
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
export type NewsArticle = {
|
|
271
|
+
_id: string
|
|
272
|
+
_type: 'newsArticle'
|
|
273
|
+
_createdAt: string
|
|
274
|
+
_updatedAt: string
|
|
275
|
+
_rev: string
|
|
276
|
+
title: string
|
|
277
|
+
slug: Slug
|
|
278
|
+
mainImage?: {
|
|
279
|
+
asset?: {
|
|
280
|
+
_ref: string
|
|
281
|
+
_type: 'reference'
|
|
282
|
+
_weak?: boolean
|
|
283
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
284
|
+
}
|
|
285
|
+
media?: unknown
|
|
286
|
+
hotspot?: SanityImageHotspot
|
|
287
|
+
crop?: SanityImageCrop
|
|
288
|
+
altText: string
|
|
289
|
+
caption?: string
|
|
290
|
+
_type: 'accessibleImage'
|
|
291
|
+
}
|
|
292
|
+
body?: PtBasic
|
|
293
|
+
categories: Array<'media' | 'students' | 'employee'>
|
|
294
|
+
dateCreated?: string
|
|
295
|
+
seo?: Seo
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
export type Webpage = {
|
|
299
|
+
_id: string
|
|
300
|
+
_type: 'webpage'
|
|
301
|
+
_createdAt: string
|
|
302
|
+
_updatedAt: string
|
|
303
|
+
_rev: string
|
|
304
|
+
title: string
|
|
305
|
+
slug: Slug
|
|
306
|
+
body?: PtBasic
|
|
307
|
+
parentPage?:
|
|
308
|
+
| {
|
|
309
|
+
_ref: string
|
|
310
|
+
_type: 'reference'
|
|
311
|
+
_weak?: boolean
|
|
312
|
+
[internalGroqTypeReferenceTo]?: 'webpage'
|
|
313
|
+
}
|
|
314
|
+
| {
|
|
315
|
+
_ref: string
|
|
316
|
+
_type: 'reference'
|
|
317
|
+
_weak?: boolean
|
|
318
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
319
|
+
}
|
|
320
|
+
| {
|
|
321
|
+
_ref: string
|
|
322
|
+
_type: 'reference'
|
|
323
|
+
_weak?: boolean
|
|
324
|
+
[internalGroqTypeReferenceTo]?: 'campus'
|
|
325
|
+
}
|
|
326
|
+
| {
|
|
327
|
+
_ref: string
|
|
328
|
+
_type: 'reference'
|
|
329
|
+
_weak?: boolean
|
|
330
|
+
[internalGroqTypeReferenceTo]?: 'area'
|
|
331
|
+
}
|
|
332
|
+
pageType: 'webpage' | 'department'
|
|
333
|
+
isPublished?: boolean
|
|
334
|
+
mainImage?: {
|
|
335
|
+
asset?: {
|
|
336
|
+
_ref: string
|
|
337
|
+
_type: 'reference'
|
|
338
|
+
_weak?: boolean
|
|
339
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
340
|
+
}
|
|
341
|
+
media?: unknown
|
|
342
|
+
hotspot?: SanityImageHotspot
|
|
343
|
+
crop?: SanityImageCrop
|
|
344
|
+
altText: string
|
|
345
|
+
caption?: string
|
|
346
|
+
_type: 'accessibleImage'
|
|
347
|
+
}
|
|
348
|
+
seo?: Seo
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
export type ProgramFile = {
|
|
352
|
+
_id: string
|
|
353
|
+
_type: 'programFile'
|
|
354
|
+
_createdAt: string
|
|
355
|
+
_updatedAt: string
|
|
356
|
+
_rev: string
|
|
357
|
+
title: string
|
|
358
|
+
description?: string
|
|
359
|
+
file: {
|
|
360
|
+
asset?: {
|
|
361
|
+
_ref: string
|
|
362
|
+
_type: 'reference'
|
|
363
|
+
_weak?: boolean
|
|
364
|
+
[internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
|
|
365
|
+
}
|
|
366
|
+
media?: unknown
|
|
367
|
+
_type: 'file'
|
|
368
|
+
}
|
|
369
|
+
fileCategory:
|
|
370
|
+
| 'handbook'
|
|
371
|
+
| 'infoSheet'
|
|
372
|
+
| 'application'
|
|
373
|
+
| 'courseOutline'
|
|
374
|
+
| 'studentGuide'
|
|
375
|
+
| 'other'
|
|
376
|
+
isActive?: boolean
|
|
377
|
+
sortOrder?: number
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
export type Testimonial = {
|
|
381
|
+
_id: string
|
|
382
|
+
_type: 'testimonial'
|
|
383
|
+
_createdAt: string
|
|
384
|
+
_updatedAt: string
|
|
385
|
+
_rev: string
|
|
386
|
+
authorName: string
|
|
387
|
+
authorTitle?: string
|
|
388
|
+
programs?: Array<{
|
|
389
|
+
_ref: string
|
|
390
|
+
_type: 'reference'
|
|
391
|
+
_weak?: boolean
|
|
392
|
+
_key: string
|
|
393
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
394
|
+
}>
|
|
395
|
+
quote: string
|
|
396
|
+
body?: PtBasic
|
|
397
|
+
videoUrl?: string
|
|
398
|
+
thumbnail?: {
|
|
399
|
+
asset?: {
|
|
400
|
+
_ref: string
|
|
401
|
+
_type: 'reference'
|
|
402
|
+
_weak?: boolean
|
|
403
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
404
|
+
}
|
|
405
|
+
media?: unknown
|
|
406
|
+
hotspot?: SanityImageHotspot
|
|
407
|
+
crop?: SanityImageCrop
|
|
408
|
+
altText: string
|
|
409
|
+
caption?: string
|
|
410
|
+
_type: 'accessibleImage'
|
|
411
|
+
}
|
|
412
|
+
rating?: number
|
|
413
|
+
datePublished?: string
|
|
414
|
+
slug: Slug
|
|
415
|
+
isEnabled?: boolean
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
export type Campus = {
|
|
419
|
+
_id: string
|
|
420
|
+
_type: 'campus'
|
|
421
|
+
_createdAt: string
|
|
422
|
+
_updatedAt: string
|
|
423
|
+
_rev: string
|
|
424
|
+
title: string
|
|
425
|
+
slug: Slug
|
|
426
|
+
code: string
|
|
427
|
+
isEnabled?: boolean
|
|
428
|
+
description?: string
|
|
429
|
+
image?: {
|
|
430
|
+
asset?: {
|
|
431
|
+
_ref: string
|
|
432
|
+
_type: 'reference'
|
|
433
|
+
_weak?: boolean
|
|
434
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
435
|
+
}
|
|
436
|
+
media?: unknown
|
|
437
|
+
hotspot?: SanityImageHotspot
|
|
438
|
+
crop?: SanityImageCrop
|
|
439
|
+
altText: string
|
|
440
|
+
caption?: string
|
|
441
|
+
_type: 'accessibleImage'
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
export type Area = {
|
|
446
|
+
_id: string
|
|
447
|
+
_type: 'area'
|
|
448
|
+
_createdAt: string
|
|
449
|
+
_updatedAt: string
|
|
450
|
+
_rev: string
|
|
451
|
+
title: string
|
|
452
|
+
slug: Slug
|
|
453
|
+
image?: {
|
|
454
|
+
asset?: {
|
|
455
|
+
_ref: string
|
|
456
|
+
_type: 'reference'
|
|
457
|
+
_weak?: boolean
|
|
458
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
459
|
+
}
|
|
460
|
+
media?: unknown
|
|
461
|
+
hotspot?: SanityImageHotspot
|
|
462
|
+
crop?: SanityImageCrop
|
|
463
|
+
altText: string
|
|
464
|
+
caption?: string
|
|
465
|
+
_type: 'accessibleImage'
|
|
466
|
+
}
|
|
467
|
+
description?: string
|
|
468
|
+
isEnabled?: boolean
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
export type ProgramIntake = {
|
|
472
|
+
_id: string
|
|
473
|
+
_type: 'programIntake'
|
|
474
|
+
_createdAt: string
|
|
475
|
+
_updatedAt: string
|
|
476
|
+
_rev: string
|
|
477
|
+
program: {
|
|
478
|
+
_ref: string
|
|
479
|
+
_type: 'reference'
|
|
480
|
+
_weak?: boolean
|
|
481
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
482
|
+
}
|
|
483
|
+
programCode: string
|
|
484
|
+
season: 'Fall' | 'Winter' | 'Spring' | 'Summer' | 'Any Time'
|
|
485
|
+
duration: {
|
|
486
|
+
_ref: string
|
|
487
|
+
_type: 'reference'
|
|
488
|
+
_weak?: boolean
|
|
489
|
+
[internalGroqTypeReferenceTo]?: 'duration'
|
|
490
|
+
}
|
|
491
|
+
deliveryMethod: 'In-Person' | 'Online Live' | 'Online Self-Paced' | 'Hybrid'
|
|
492
|
+
studyMode: 'Full-Time' | 'Part-Time'
|
|
493
|
+
isAccelerated?: boolean
|
|
494
|
+
campusAvailability?: Array<{
|
|
495
|
+
_ref: string
|
|
496
|
+
_type: 'reference'
|
|
497
|
+
_weak?: boolean
|
|
498
|
+
_key: string
|
|
499
|
+
[internalGroqTypeReferenceTo]?: 'campus'
|
|
500
|
+
}>
|
|
501
|
+
isInternational?: boolean
|
|
502
|
+
applicationMethod?: 'OCAS Application' | 'Direct Application' | 'Contact College'
|
|
503
|
+
coordinators?: Array<{
|
|
504
|
+
_ref: string
|
|
505
|
+
_type: 'reference'
|
|
506
|
+
_weak?: boolean
|
|
507
|
+
_key: string
|
|
508
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
509
|
+
}>
|
|
510
|
+
admissionRequirements?: {
|
|
511
|
+
_ref: string
|
|
512
|
+
_type: 'reference'
|
|
513
|
+
_weak?: boolean
|
|
514
|
+
[internalGroqTypeReferenceTo]?: 'admissionRequirements'
|
|
515
|
+
}
|
|
516
|
+
notes?: string
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export type AdmissionRequirements = {
|
|
520
|
+
_id: string
|
|
521
|
+
_type: 'admissionRequirements'
|
|
522
|
+
_createdAt: string
|
|
523
|
+
_updatedAt: string
|
|
524
|
+
_rev: string
|
|
525
|
+
program?: {
|
|
526
|
+
_ref: string
|
|
527
|
+
_type: 'reference'
|
|
528
|
+
_weak?: boolean
|
|
529
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
530
|
+
}
|
|
531
|
+
domesticRequirements?: PtBasic
|
|
532
|
+
internationalRequirements?: PtBasic
|
|
533
|
+
alternativePathways?: PtBasic
|
|
534
|
+
prerequisites?: PtBasic
|
|
535
|
+
isEnabled?: boolean
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
export type Duration = {
|
|
539
|
+
_id: string
|
|
540
|
+
_type: 'duration'
|
|
541
|
+
_createdAt: string
|
|
542
|
+
_updatedAt: string
|
|
543
|
+
_rev: string
|
|
544
|
+
title: string
|
|
545
|
+
displayValue?: string
|
|
546
|
+
slug: Slug
|
|
547
|
+
minHours: number
|
|
548
|
+
maxHours?: number
|
|
549
|
+
durationType: 'exact' | 'maximum' | 'unlimited'
|
|
550
|
+
unit: 'hours' | 'days' | 'weeks' | 'months' | 'semesters' | 'years'
|
|
551
|
+
notes?: string
|
|
552
|
+
isEnabled?: boolean
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
export type Program = {
|
|
556
|
+
_id: string
|
|
557
|
+
_type: 'program'
|
|
558
|
+
_createdAt: string
|
|
559
|
+
_updatedAt: string
|
|
560
|
+
_rev: string
|
|
561
|
+
name: string
|
|
562
|
+
slug: Slug
|
|
563
|
+
shortLink?: string
|
|
564
|
+
featuredImage?: {
|
|
565
|
+
asset?: {
|
|
566
|
+
_ref: string
|
|
567
|
+
_type: 'reference'
|
|
568
|
+
_weak?: boolean
|
|
569
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
570
|
+
}
|
|
571
|
+
media?: unknown
|
|
572
|
+
hotspot?: SanityImageHotspot
|
|
573
|
+
crop?: SanityImageCrop
|
|
574
|
+
altText: string
|
|
575
|
+
caption?: string
|
|
576
|
+
_type: 'accessibleImage'
|
|
577
|
+
}
|
|
578
|
+
school?: {
|
|
579
|
+
_ref: string
|
|
580
|
+
_type: 'reference'
|
|
581
|
+
_weak?: boolean
|
|
582
|
+
[internalGroqTypeReferenceTo]?: 'school'
|
|
583
|
+
}
|
|
584
|
+
credential?: {
|
|
585
|
+
_ref: string
|
|
586
|
+
_type: 'reference'
|
|
587
|
+
_weak?: boolean
|
|
588
|
+
[internalGroqTypeReferenceTo]?: 'credential'
|
|
589
|
+
}
|
|
590
|
+
areasOfInterest?: Array<{
|
|
591
|
+
_ref: string
|
|
592
|
+
_type: 'reference'
|
|
593
|
+
_weak?: boolean
|
|
594
|
+
_key: string
|
|
595
|
+
[internalGroqTypeReferenceTo]?: 'area'
|
|
596
|
+
}>
|
|
597
|
+
relatedIntakes?: Array<{
|
|
598
|
+
_ref: string
|
|
599
|
+
_type: 'reference'
|
|
600
|
+
_weak?: boolean
|
|
601
|
+
_key: string
|
|
602
|
+
[internalGroqTypeReferenceTo]?: 'programIntake'
|
|
603
|
+
}>
|
|
604
|
+
mcuCode?: string
|
|
605
|
+
apsCode?: string
|
|
606
|
+
cipCode?: string
|
|
607
|
+
pgwpAvailable?: boolean
|
|
608
|
+
missionStatement?: string
|
|
609
|
+
textOverview?: PtBasic
|
|
610
|
+
textHighlight?: PtBasic
|
|
611
|
+
textOutcomes?: PtBasic
|
|
612
|
+
textCandidate?: PtBasic
|
|
613
|
+
experientialLearning?: PtBasic
|
|
614
|
+
textEmployment?: PtBasic
|
|
615
|
+
lightcastCareerLink?: string
|
|
616
|
+
programNotes?: PtBasic
|
|
617
|
+
coordinators?: Array<{
|
|
618
|
+
_ref: string
|
|
619
|
+
_type: 'reference'
|
|
620
|
+
_weak?: boolean
|
|
621
|
+
_key: string
|
|
622
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
623
|
+
}>
|
|
624
|
+
faculty?: Array<{
|
|
625
|
+
_ref: string
|
|
626
|
+
_type: 'reference'
|
|
627
|
+
_weak?: boolean
|
|
628
|
+
_key: string
|
|
629
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
630
|
+
}>
|
|
631
|
+
testimonials?: Array<{
|
|
632
|
+
_ref: string
|
|
633
|
+
_type: 'reference'
|
|
634
|
+
_weak?: boolean
|
|
635
|
+
_key: string
|
|
636
|
+
[internalGroqTypeReferenceTo]?: 'testimonial'
|
|
637
|
+
}>
|
|
638
|
+
relatedPrograms?: Array<{
|
|
639
|
+
_ref: string
|
|
640
|
+
_type: 'reference'
|
|
641
|
+
_weak?: boolean
|
|
642
|
+
_key: string
|
|
643
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
644
|
+
}>
|
|
645
|
+
files?: Array<{
|
|
646
|
+
_ref: string
|
|
647
|
+
_type: 'reference'
|
|
648
|
+
_weak?: boolean
|
|
649
|
+
_key: string
|
|
650
|
+
[internalGroqTypeReferenceTo]?: 'programFile'
|
|
651
|
+
}>
|
|
652
|
+
relatedMenu?: {
|
|
653
|
+
_ref: string
|
|
654
|
+
_type: 'reference'
|
|
655
|
+
_weak?: boolean
|
|
656
|
+
[internalGroqTypeReferenceTo]?: 'menu'
|
|
657
|
+
}
|
|
658
|
+
seo?: Seo
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export type Seo = {
|
|
662
|
+
_type: 'seo'
|
|
663
|
+
title?: string
|
|
664
|
+
description?: string
|
|
665
|
+
image?: {
|
|
666
|
+
asset?: {
|
|
667
|
+
_ref: string
|
|
668
|
+
_type: 'reference'
|
|
669
|
+
_weak?: boolean
|
|
670
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
671
|
+
}
|
|
672
|
+
media?: unknown
|
|
673
|
+
hotspot?: SanityImageHotspot
|
|
674
|
+
crop?: SanityImageCrop
|
|
675
|
+
_type: 'image'
|
|
676
|
+
}
|
|
677
|
+
noindex?: boolean
|
|
678
|
+
nofollow?: boolean
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
export type Menu = {
|
|
682
|
+
_id: string
|
|
683
|
+
_type: 'menu'
|
|
684
|
+
_createdAt: string
|
|
685
|
+
_updatedAt: string
|
|
686
|
+
_rev: string
|
|
687
|
+
title: string
|
|
688
|
+
slug: Slug
|
|
689
|
+
description?: string
|
|
690
|
+
menuItems?: Array<
|
|
691
|
+
{
|
|
692
|
+
_key: string
|
|
693
|
+
} & MenuItem
|
|
694
|
+
>
|
|
695
|
+
isActive?: boolean
|
|
696
|
+
menuType: 'header' | 'footer' | 'sidebar' | 'mobile' | 'other'
|
|
697
|
+
maxDepth?: number
|
|
698
|
+
}
|
|
699
|
+
|
|
700
|
+
export type Credential = {
|
|
701
|
+
_id: string
|
|
702
|
+
_type: 'credential'
|
|
703
|
+
_createdAt: string
|
|
704
|
+
_updatedAt: string
|
|
705
|
+
_rev: string
|
|
706
|
+
credentialCode: string
|
|
707
|
+
title: string
|
|
708
|
+
slug: Slug
|
|
709
|
+
category:
|
|
710
|
+
| 'certificate'
|
|
711
|
+
| 'diploma'
|
|
712
|
+
| 'advancedDiploma'
|
|
713
|
+
| 'degree'
|
|
714
|
+
| 'microCredential'
|
|
715
|
+
| 'recognition'
|
|
716
|
+
| 'externalCertification'
|
|
717
|
+
description?: string
|
|
718
|
+
isEnabled?: boolean
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
export type School = {
|
|
722
|
+
_id: string
|
|
723
|
+
_type: 'school'
|
|
724
|
+
_createdAt: string
|
|
725
|
+
_updatedAt: string
|
|
726
|
+
_rev: string
|
|
727
|
+
name: string
|
|
728
|
+
bannerName?: string
|
|
729
|
+
slug: Slug
|
|
730
|
+
description?: string
|
|
731
|
+
dean?: {
|
|
732
|
+
_ref: string
|
|
733
|
+
_type: 'reference'
|
|
734
|
+
_weak?: boolean
|
|
735
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
736
|
+
}
|
|
737
|
+
schoolCode?: string
|
|
738
|
+
image?: {
|
|
739
|
+
asset?: {
|
|
740
|
+
_ref: string
|
|
741
|
+
_type: 'reference'
|
|
742
|
+
_weak?: boolean
|
|
743
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
744
|
+
}
|
|
745
|
+
media?: unknown
|
|
746
|
+
hotspot?: SanityImageHotspot
|
|
747
|
+
crop?: SanityImageCrop
|
|
748
|
+
altText: string
|
|
749
|
+
caption?: string
|
|
750
|
+
_type: 'accessibleImage'
|
|
751
|
+
}
|
|
752
|
+
programs?: Array<{
|
|
753
|
+
_ref: string
|
|
754
|
+
_type: 'reference'
|
|
755
|
+
_weak?: boolean
|
|
756
|
+
_key: string
|
|
757
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
758
|
+
}>
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
export type Person = {
|
|
762
|
+
_id: string
|
|
763
|
+
_type: 'person'
|
|
764
|
+
_createdAt: string
|
|
765
|
+
_updatedAt: string
|
|
766
|
+
_rev: string
|
|
767
|
+
honorificPrefix?: string
|
|
768
|
+
firstName: string
|
|
769
|
+
lastName: string
|
|
770
|
+
suffixes?: Array<string>
|
|
771
|
+
slug: Slug
|
|
772
|
+
jobTitle?: string
|
|
773
|
+
image?: {
|
|
774
|
+
asset?: {
|
|
775
|
+
_ref: string
|
|
776
|
+
_type: 'reference'
|
|
777
|
+
_weak?: boolean
|
|
778
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
779
|
+
}
|
|
780
|
+
media?: unknown
|
|
781
|
+
hotspot?: SanityImageHotspot
|
|
782
|
+
crop?: SanityImageCrop
|
|
783
|
+
altText: string
|
|
784
|
+
caption?: string
|
|
785
|
+
_type: 'accessibleImage'
|
|
786
|
+
}
|
|
787
|
+
email?: string
|
|
788
|
+
phone?: string
|
|
789
|
+
socialLinks?: Array<{
|
|
790
|
+
platform?: string
|
|
791
|
+
url?: string
|
|
792
|
+
_key: string
|
|
793
|
+
}>
|
|
794
|
+
siteRoles?: Array<'faculty' | 'staff' | 'recruitment' | 'testimonial' | 'dean'>
|
|
795
|
+
affiliations?: Array<{
|
|
796
|
+
program?: {
|
|
797
|
+
_ref: string
|
|
798
|
+
_type: 'reference'
|
|
799
|
+
_weak?: boolean
|
|
800
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
801
|
+
}
|
|
802
|
+
role?: 'coordinator' | 'instructor' | 'advisor' | 'faculty'
|
|
803
|
+
_key: string
|
|
804
|
+
}>
|
|
805
|
+
bio?: Array<{
|
|
806
|
+
children?: Array<{
|
|
807
|
+
marks?: Array<string>
|
|
808
|
+
text?: string
|
|
809
|
+
_type: 'span'
|
|
810
|
+
_key: string
|
|
811
|
+
}>
|
|
812
|
+
style?: 'normal' | 'h2' | 'h3' | 'h4'
|
|
813
|
+
listItem?: 'bullet' | 'number'
|
|
814
|
+
markDefs?: Array<{
|
|
815
|
+
href?: string
|
|
816
|
+
_type: 'link'
|
|
817
|
+
_key: string
|
|
818
|
+
}>
|
|
819
|
+
level?: number
|
|
820
|
+
_type: 'block'
|
|
821
|
+
_key: string
|
|
822
|
+
}>
|
|
823
|
+
isEnabled?: boolean
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
export type AccessibleImage = {
|
|
827
|
+
_type: 'accessibleImage'
|
|
828
|
+
asset?: {
|
|
829
|
+
_ref: string
|
|
830
|
+
_type: 'reference'
|
|
831
|
+
_weak?: boolean
|
|
832
|
+
[internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
|
|
833
|
+
}
|
|
834
|
+
media?: unknown
|
|
835
|
+
hotspot?: SanityImageHotspot
|
|
836
|
+
crop?: SanityImageCrop
|
|
837
|
+
altText: string
|
|
838
|
+
caption?: string
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
export type MediaTag = {
|
|
842
|
+
_id: string
|
|
843
|
+
_type: 'media.tag'
|
|
844
|
+
_createdAt: string
|
|
845
|
+
_updatedAt: string
|
|
846
|
+
_rev: string
|
|
847
|
+
name?: Slug
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
export type SanityImagePaletteSwatch = {
|
|
851
|
+
_type: 'sanity.imagePaletteSwatch'
|
|
852
|
+
background?: string
|
|
853
|
+
foreground?: string
|
|
854
|
+
population?: number
|
|
855
|
+
title?: string
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
export type SanityImagePalette = {
|
|
859
|
+
_type: 'sanity.imagePalette'
|
|
860
|
+
darkMuted?: SanityImagePaletteSwatch
|
|
861
|
+
lightVibrant?: SanityImagePaletteSwatch
|
|
862
|
+
darkVibrant?: SanityImagePaletteSwatch
|
|
863
|
+
vibrant?: SanityImagePaletteSwatch
|
|
864
|
+
dominant?: SanityImagePaletteSwatch
|
|
865
|
+
lightMuted?: SanityImagePaletteSwatch
|
|
866
|
+
muted?: SanityImagePaletteSwatch
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
export type SanityImageDimensions = {
|
|
870
|
+
_type: 'sanity.imageDimensions'
|
|
871
|
+
height?: number
|
|
872
|
+
width?: number
|
|
873
|
+
aspectRatio?: number
|
|
874
|
+
}
|
|
875
|
+
|
|
876
|
+
export type SanityImageHotspot = {
|
|
877
|
+
_type: 'sanity.imageHotspot'
|
|
878
|
+
x?: number
|
|
879
|
+
y?: number
|
|
880
|
+
height?: number
|
|
881
|
+
width?: number
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export type SanityImageCrop = {
|
|
885
|
+
_type: 'sanity.imageCrop'
|
|
886
|
+
top?: number
|
|
887
|
+
bottom?: number
|
|
888
|
+
left?: number
|
|
889
|
+
right?: number
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export type SanityFileAsset = {
|
|
893
|
+
_id: string
|
|
894
|
+
_type: 'sanity.fileAsset'
|
|
895
|
+
_createdAt: string
|
|
896
|
+
_updatedAt: string
|
|
897
|
+
_rev: string
|
|
898
|
+
originalFilename?: string
|
|
899
|
+
label?: string
|
|
900
|
+
title?: string
|
|
901
|
+
description?: string
|
|
902
|
+
altText?: string
|
|
903
|
+
sha1hash?: string
|
|
904
|
+
extension?: string
|
|
905
|
+
mimeType?: string
|
|
906
|
+
size?: number
|
|
907
|
+
assetId?: string
|
|
908
|
+
uploadId?: string
|
|
909
|
+
path?: string
|
|
910
|
+
url?: string
|
|
911
|
+
source?: SanityAssetSourceData
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export type SanityImageAsset = {
|
|
915
|
+
_id: string
|
|
916
|
+
_type: 'sanity.imageAsset'
|
|
917
|
+
_createdAt: string
|
|
918
|
+
_updatedAt: string
|
|
919
|
+
_rev: string
|
|
920
|
+
originalFilename?: string
|
|
921
|
+
label?: string
|
|
922
|
+
title?: string
|
|
923
|
+
description?: string
|
|
924
|
+
altText?: string
|
|
925
|
+
sha1hash?: string
|
|
926
|
+
extension?: string
|
|
927
|
+
mimeType?: string
|
|
928
|
+
size?: number
|
|
929
|
+
assetId?: string
|
|
930
|
+
uploadId?: string
|
|
931
|
+
path?: string
|
|
932
|
+
url?: string
|
|
933
|
+
metadata?: SanityImageMetadata
|
|
934
|
+
source?: SanityAssetSourceData
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
export type SanityImageMetadata = {
|
|
938
|
+
_type: 'sanity.imageMetadata'
|
|
939
|
+
location?: Geopoint
|
|
940
|
+
dimensions?: SanityImageDimensions
|
|
941
|
+
palette?: SanityImagePalette
|
|
942
|
+
lqip?: string
|
|
943
|
+
blurHash?: string
|
|
944
|
+
hasAlpha?: boolean
|
|
945
|
+
isOpaque?: boolean
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
export type Geopoint = {
|
|
949
|
+
_type: 'geopoint'
|
|
950
|
+
lat?: number
|
|
951
|
+
lng?: number
|
|
952
|
+
alt?: number
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
export type Slug = {
|
|
956
|
+
_type: 'slug'
|
|
957
|
+
current: string
|
|
958
|
+
source?: string
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export type SanityAssetSourceData = {
|
|
962
|
+
_type: 'sanity.assetSourceData'
|
|
963
|
+
name?: string
|
|
964
|
+
id?: string
|
|
965
|
+
url?: string
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
export type AllSanitySchemaTypes =
|
|
969
|
+
| MenuItem
|
|
970
|
+
| Link
|
|
971
|
+
| PtBasic
|
|
972
|
+
| Figure
|
|
973
|
+
| Redirect
|
|
974
|
+
| Event
|
|
975
|
+
| NewsArticle
|
|
976
|
+
| Webpage
|
|
977
|
+
| ProgramFile
|
|
978
|
+
| Testimonial
|
|
979
|
+
| Campus
|
|
980
|
+
| Area
|
|
981
|
+
| ProgramIntake
|
|
982
|
+
| AdmissionRequirements
|
|
983
|
+
| Duration
|
|
984
|
+
| Program
|
|
985
|
+
| Seo
|
|
986
|
+
| Menu
|
|
987
|
+
| Credential
|
|
988
|
+
| School
|
|
989
|
+
| Person
|
|
990
|
+
| AccessibleImage
|
|
991
|
+
| MediaTag
|
|
992
|
+
| SanityImagePaletteSwatch
|
|
993
|
+
| SanityImagePalette
|
|
994
|
+
| SanityImageDimensions
|
|
995
|
+
| SanityImageHotspot
|
|
996
|
+
| SanityImageCrop
|
|
997
|
+
| SanityFileAsset
|
|
998
|
+
| SanityImageAsset
|
|
999
|
+
| SanityImageMetadata
|
|
1000
|
+
| Geopoint
|
|
1001
|
+
| Slug
|
|
1002
|
+
| SanityAssetSourceData
|
|
1003
|
+
export declare const internalGroqTypeReferenceTo: unique symbol
|