@confed/sanity-types 0.1.3-2511072024 → 0.1.3-2511121428

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/sanity.types.ts +215 -802
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2511072024",
3
+ "version": "0.1.3-2511121428",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,48 +13,40 @@
13
13
  */
14
14
 
15
15
  // Source: schema.json
16
+ export type CanadianAddress = {
17
+ _type: 'canadianAddress'
18
+ streetAddress: string
19
+ city: string
20
+ province: 'AB' | 'BC' | 'MB' | 'NB' | 'NL' | 'NT' | 'NS' | 'NU' | 'ON' | 'PE' | 'QC' | 'SK' | 'YT'
21
+ postalCode: string
22
+ country?: string
23
+ }
24
+
25
+ export type SimpleCallToActionSection = {
26
+ _type: 'simpleCallToActionSection'
27
+ title: string
28
+ eyebrow?: string
29
+ intro?: PtSimple
30
+ buttons?: Array<
31
+ {
32
+ _key: string
33
+ } & PtButton
34
+ >
35
+ anchorSlug?: Slug
36
+ icon?: string
37
+ }
38
+
16
39
  export type CallToActionSection = {
17
40
  _type: 'callToActionSection'
18
41
  title: string
19
42
  eyebrow?: string
20
- intro?: Array<{
21
- children?: Array<{
22
- marks?: Array<string>
23
- text?: string
24
- _type: 'span'
25
- _key: string
26
- }>
27
- style?: 'normal'
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
- }>
43
+ intro?: PtSimple
39
44
  buttons?: Array<
40
45
  {
41
46
  _key: string
42
47
  } & PtButton
43
48
  >
44
- image?: {
45
- asset?: {
46
- _ref: string
47
- _type: 'reference'
48
- _weak?: boolean
49
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
50
- }
51
- media?: unknown
52
- hotspot?: SanityImageHotspot
53
- crop?: SanityImageCrop
54
- altText: string
55
- caption?: string
56
- _type: 'accessibleImage'
57
- }
49
+ image?: AccessibleImage
58
50
  backgroundColor?: 'light' | 'dark' | 'white' | 'black' | 'primary' | 'accent'
59
51
  layoutStyle?: 'textLeft' | 'textCentered' | 'imageSplit' | 'imageBackground'
60
52
  imageSide?: 'left' | 'right'
@@ -66,25 +58,7 @@ export type CardGridSection = {
66
58
  _type: 'cardGridSection'
67
59
  title?: string
68
60
  eyebrow?: string
69
- intro?: Array<{
70
- children?: Array<{
71
- marks?: Array<string>
72
- text?: string
73
- _type: 'span'
74
- _key: string
75
- }>
76
- style?: 'normal'
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
- }>
61
+ intro?: PtSimple
88
62
  cards?: Array<
89
63
  {
90
64
  _key: string
@@ -102,39 +76,8 @@ export type Card = {
102
76
  _type: 'card'
103
77
  title?: string
104
78
  eyebrow?: string
105
- image?: {
106
- asset?: {
107
- _ref: string
108
- _type: 'reference'
109
- _weak?: boolean
110
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
111
- }
112
- media?: unknown
113
- hotspot?: SanityImageHotspot
114
- crop?: SanityImageCrop
115
- altText: string
116
- caption?: string
117
- _type: 'accessibleImage'
118
- }
119
- description?: Array<{
120
- children?: Array<{
121
- marks?: Array<string>
122
- text?: string
123
- _type: 'span'
124
- _key: string
125
- }>
126
- style?: 'normal'
127
- listItem?: 'bullet' | 'number'
128
- markDefs?: Array<{
129
- href?: string
130
- openInNewTab?: boolean
131
- _type: 'link'
132
- _key: string
133
- }>
134
- level?: number
135
- _type: 'block'
136
- _key: string
137
- }>
79
+ image?: AccessibleImage
80
+ description?: PtSimple
138
81
  buttons?: Array<
139
82
  {
140
83
  _key: string
@@ -161,105 +104,13 @@ export type HeaderSection = {
161
104
 
162
105
  export type MediaTextSection = {
163
106
  _type: 'mediaTextSection'
164
- text: Array<
165
- | {
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
- | {
185
- asset?: {
186
- _ref: string
187
- _type: 'reference'
188
- _weak?: boolean
189
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
190
- }
191
- media?: unknown
192
- hotspot?: SanityImageHotspot
193
- crop?: SanityImageCrop
194
- altText: string
195
- caption?: string
196
- _type: 'figure'
197
- _key: string
198
- }
199
- | ({
200
- _key: string
201
- } & PtButton)
202
- | {
203
- url: string
204
- title?: string
205
- _type: 'ptYoutubeVideo'
206
- _key: string
207
- }
208
- | {
209
- body: Array<{
210
- children?: Array<{
211
- marks?: Array<string>
212
- text?: string
213
- _type: 'span'
214
- _key: string
215
- }>
216
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
217
- listItem?: 'bullet' | 'number'
218
- markDefs?: Array<{
219
- href?: string
220
- openInNewTab?: boolean
221
- _type: 'link'
222
- _key: string
223
- }>
224
- level?: number
225
- _type: 'block'
226
- _key: string
227
- }>
228
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
229
- _type: 'note'
230
- _key: string
231
- }
232
- | ({
233
- _key: string
234
- } & Table)
235
- | {
236
- title?: string
237
- embedCode: Code
238
- height?: number
239
- responsive?: boolean
240
- _type: 'embed'
241
- _key: string
242
- }
243
- >
107
+ text: PtBasic
244
108
  buttons?: Array<
245
109
  {
246
110
  _key: string
247
111
  } & PtButton
248
112
  >
249
- image: {
250
- asset?: {
251
- _ref: string
252
- _type: 'reference'
253
- _weak?: boolean
254
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
255
- }
256
- media?: unknown
257
- hotspot?: SanityImageHotspot
258
- crop?: SanityImageCrop
259
- altText: string
260
- caption?: string
261
- _type: 'accessibleImage'
262
- }
113
+ image: AccessibleImage
263
114
  options?: {
264
115
  backgroundColor?: 'light' | 'dark' | 'white' | 'black'
265
116
  imagePosition?: 'left' | 'right'
@@ -270,86 +121,7 @@ export type MediaTextSection = {
270
121
 
271
122
  export type RichTextSection = {
272
123
  _type: 'richTextSection'
273
- content?: Array<
274
- | {
275
- children?: Array<{
276
- marks?: Array<string>
277
- text?: string
278
- _type: 'span'
279
- _key: string
280
- }>
281
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
282
- listItem?: 'bullet' | 'number'
283
- markDefs?: Array<{
284
- href?: string
285
- openInNewTab?: boolean
286
- _type: 'link'
287
- _key: string
288
- }>
289
- level?: number
290
- _type: 'block'
291
- _key: string
292
- }
293
- | {
294
- asset?: {
295
- _ref: string
296
- _type: 'reference'
297
- _weak?: boolean
298
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
299
- }
300
- media?: unknown
301
- hotspot?: SanityImageHotspot
302
- crop?: SanityImageCrop
303
- altText: string
304
- caption?: string
305
- _type: 'figure'
306
- _key: string
307
- }
308
- | ({
309
- _key: string
310
- } & PtButton)
311
- | {
312
- url: string
313
- title?: string
314
- _type: 'ptYoutubeVideo'
315
- _key: string
316
- }
317
- | {
318
- body: Array<{
319
- children?: Array<{
320
- marks?: Array<string>
321
- text?: string
322
- _type: 'span'
323
- _key: string
324
- }>
325
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
326
- listItem?: 'bullet' | 'number'
327
- markDefs?: Array<{
328
- href?: string
329
- openInNewTab?: boolean
330
- _type: 'link'
331
- _key: string
332
- }>
333
- level?: number
334
- _type: 'block'
335
- _key: string
336
- }>
337
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
338
- _type: 'note'
339
- _key: string
340
- }
341
- | ({
342
- _key: string
343
- } & Table)
344
- | {
345
- title?: string
346
- embedCode: Code
347
- height?: number
348
- responsive?: boolean
349
- _type: 'embed'
350
- _key: string
351
- }
352
- >
124
+ content?: PtBasic
353
125
  backgroundColor?: 'light' | 'white'
354
126
  spacing?: 'default' | 'minimum' | 'none'
355
127
  }
@@ -357,187 +129,19 @@ export type RichTextSection = {
357
129
  export type GallerySection = {
358
130
  _type: 'gallerySection'
359
131
  title?: string
360
- introduction?: Array<
361
- | {
362
- children?: Array<{
363
- marks?: Array<string>
364
- text?: string
365
- _type: 'span'
366
- _key: string
367
- }>
368
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
369
- listItem?: 'bullet' | 'number'
370
- markDefs?: Array<{
371
- href?: string
372
- openInNewTab?: boolean
373
- _type: 'link'
374
- _key: string
375
- }>
376
- level?: number
377
- _type: 'block'
378
- _key: string
379
- }
380
- | {
381
- asset?: {
382
- _ref: string
383
- _type: 'reference'
384
- _weak?: boolean
385
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
386
- }
387
- media?: unknown
388
- hotspot?: SanityImageHotspot
389
- crop?: SanityImageCrop
390
- altText: string
391
- caption?: string
392
- _type: 'figure'
393
- _key: string
394
- }
395
- | ({
396
- _key: string
397
- } & PtButton)
398
- | {
399
- url: string
400
- title?: string
401
- _type: 'ptYoutubeVideo'
402
- _key: string
403
- }
404
- | {
405
- body: Array<{
406
- children?: Array<{
407
- marks?: Array<string>
408
- text?: string
409
- _type: 'span'
410
- _key: string
411
- }>
412
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
413
- listItem?: 'bullet' | 'number'
414
- markDefs?: Array<{
415
- href?: string
416
- openInNewTab?: boolean
417
- _type: 'link'
418
- _key: string
419
- }>
420
- level?: number
421
- _type: 'block'
422
- _key: string
423
- }>
424
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
425
- _type: 'note'
426
- _key: string
427
- }
428
- | ({
429
- _key: string
430
- } & Table)
431
- | {
432
- title?: string
433
- embedCode: Code
434
- height?: number
435
- responsive?: boolean
436
- _type: 'embed'
437
- _key: string
438
- }
132
+ introduction?: PtBasic
133
+ images?: Array<
134
+ {
135
+ _key: string
136
+ } & AccessibleImage
439
137
  >
440
- images?: Array<{
441
- asset?: {
442
- _ref: string
443
- _type: 'reference'
444
- _weak?: boolean
445
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
446
- }
447
- media?: unknown
448
- hotspot?: SanityImageHotspot
449
- crop?: SanityImageCrop
450
- altText: string
451
- caption?: string
452
- _type: 'accessibleImage'
453
- _key: string
454
- }>
455
138
  layout?: 'grid' | 'carousel'
456
139
  }
457
140
 
458
141
  export type FaqSection = {
459
142
  _type: 'faqSection'
460
143
  title?: string
461
- intro?: Array<
462
- | {
463
- children?: Array<{
464
- marks?: Array<string>
465
- text?: string
466
- _type: 'span'
467
- _key: string
468
- }>
469
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
470
- listItem?: 'bullet' | 'number'
471
- markDefs?: Array<{
472
- href?: string
473
- openInNewTab?: boolean
474
- _type: 'link'
475
- _key: string
476
- }>
477
- level?: number
478
- _type: 'block'
479
- _key: string
480
- }
481
- | {
482
- asset?: {
483
- _ref: string
484
- _type: 'reference'
485
- _weak?: boolean
486
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
487
- }
488
- media?: unknown
489
- hotspot?: SanityImageHotspot
490
- crop?: SanityImageCrop
491
- altText: string
492
- caption?: string
493
- _type: 'figure'
494
- _key: string
495
- }
496
- | ({
497
- _key: string
498
- } & PtButton)
499
- | {
500
- url: string
501
- title?: string
502
- _type: 'ptYoutubeVideo'
503
- _key: string
504
- }
505
- | {
506
- body: Array<{
507
- children?: Array<{
508
- marks?: Array<string>
509
- text?: string
510
- _type: 'span'
511
- _key: string
512
- }>
513
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
514
- listItem?: 'bullet' | 'number'
515
- markDefs?: Array<{
516
- href?: string
517
- openInNewTab?: boolean
518
- _type: 'link'
519
- _key: string
520
- }>
521
- level?: number
522
- _type: 'block'
523
- _key: string
524
- }>
525
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
526
- _type: 'note'
527
- _key: string
528
- }
529
- | ({
530
- _key: string
531
- } & Table)
532
- | {
533
- title?: string
534
- embedCode: Code
535
- height?: number
536
- responsive?: boolean
537
- _type: 'embed'
538
- _key: string
539
- }
540
- >
144
+ intro?: PtBasic
541
145
  items?: Array<
542
146
  {
543
147
  _key: string
@@ -551,101 +155,10 @@ export type FaqSection = {
551
155
  export type FaqItem = {
552
156
  _type: 'faqItem'
553
157
  question: string
554
- answer: Array<
555
- | {
556
- children?: Array<{
557
- marks?: Array<string>
558
- text?: string
559
- _type: 'span'
560
- _key: string
561
- }>
562
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
563
- listItem?: 'bullet' | 'number'
564
- markDefs?: Array<{
565
- href?: string
566
- openInNewTab?: boolean
567
- _type: 'link'
568
- _key: string
569
- }>
570
- level?: number
571
- _type: 'block'
572
- _key: string
573
- }
574
- | {
575
- asset?: {
576
- _ref: string
577
- _type: 'reference'
578
- _weak?: boolean
579
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
580
- }
581
- media?: unknown
582
- hotspot?: SanityImageHotspot
583
- crop?: SanityImageCrop
584
- altText: string
585
- caption?: string
586
- _type: 'figure'
587
- _key: string
588
- }
589
- | ({
590
- _key: string
591
- } & PtButton)
592
- | {
593
- url: string
594
- title?: string
595
- _type: 'ptYoutubeVideo'
596
- _key: string
597
- }
598
- | {
599
- body: Array<{
600
- children?: Array<{
601
- marks?: Array<string>
602
- text?: string
603
- _type: 'span'
604
- _key: string
605
- }>
606
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
607
- listItem?: 'bullet' | 'number'
608
- markDefs?: Array<{
609
- href?: string
610
- openInNewTab?: boolean
611
- _type: 'link'
612
- _key: string
613
- }>
614
- level?: number
615
- _type: 'block'
616
- _key: string
617
- }>
618
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
619
- _type: 'note'
620
- _key: string
621
- }
622
- | ({
623
- _key: string
624
- } & Table)
625
- | {
626
- title?: string
627
- embedCode: Code
628
- height?: number
629
- responsive?: boolean
630
- _type: 'embed'
631
- _key: string
632
- }
633
- >
158
+ answer: PtBasic
634
159
  anchorId?: Slug
635
160
  }
636
161
 
637
- export type MenuItem = {
638
- _type: 'menuItem'
639
- link: Link
640
- subItems?: Array<
641
- {
642
- _key: string
643
- } & MenuItem
644
- >
645
- isHighlighted?: boolean
646
- order?: number
647
- }
648
-
649
162
  export type Link = {
650
163
  _type: 'link'
651
164
  label: string
@@ -686,6 +199,33 @@ export type Link = {
686
199
  description?: string
687
200
  }
688
201
 
202
+ export type MenuItem = {
203
+ _type: 'menuItem'
204
+ link: Link
205
+ subItems?: Array<
206
+ {
207
+ _key: string
208
+ } & MenuItem
209
+ >
210
+ isHighlighted?: boolean
211
+ order?: number
212
+ }
213
+
214
+ export type AccessibleImage = {
215
+ _type: 'accessibleImage'
216
+ asset?: {
217
+ _ref: string
218
+ _type: 'reference'
219
+ _weak?: boolean
220
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
221
+ }
222
+ media?: unknown
223
+ hotspot?: SanityImageHotspot
224
+ crop?: SanityImageCrop
225
+ altText: string
226
+ caption?: string
227
+ }
228
+
689
229
  export type PtSimple = Array<{
690
230
  children?: Array<{
691
231
  marks?: Array<string>
@@ -809,6 +349,42 @@ export type Figure = {
809
349
  caption?: string
810
350
  }
811
351
 
352
+ export type SanityImageCrop = {
353
+ _type: 'sanity.imageCrop'
354
+ top: number
355
+ bottom: number
356
+ left: number
357
+ right: number
358
+ }
359
+
360
+ export type SanityImageHotspot = {
361
+ _type: 'sanity.imageHotspot'
362
+ x: number
363
+ y: number
364
+ height: number
365
+ width: number
366
+ }
367
+
368
+ export type Seo = {
369
+ _type: 'seo'
370
+ title?: string
371
+ description?: string
372
+ image?: {
373
+ asset?: {
374
+ _ref: string
375
+ _type: 'reference'
376
+ _weak?: boolean
377
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
378
+ }
379
+ media?: unknown
380
+ hotspot?: SanityImageHotspot
381
+ crop?: SanityImageCrop
382
+ _type: 'image'
383
+ }
384
+ noindex?: boolean
385
+ nofollow?: boolean
386
+ }
387
+
812
388
  export type Redirect = {
813
389
  _id: string
814
390
  _type: 'redirect'
@@ -869,6 +445,53 @@ export type Redirect = {
869
445
  createdAt?: string
870
446
  }
871
447
 
448
+ export type Scholarship = {
449
+ _id: string
450
+ _type: 'scholarship'
451
+ _createdAt: string
452
+ _updatedAt: string
453
+ _rev: string
454
+ title: string
455
+ slug: Slug
456
+ internalExternal: 'internal' | 'external'
457
+ status?: 'open' | 'closed' | 'archived'
458
+ scholarshipType?: 'scholarship' | 'bursary' | 'grant' | 'program' | 'other'
459
+ body?: PtBasic
460
+ featuredImage?: AccessibleImage
461
+ awardValueDisplay?: string
462
+ awardAmount?: number
463
+ audienceTags?: Array<{
464
+ _ref: string
465
+ _type: 'reference'
466
+ _weak?: boolean
467
+ _key: string
468
+ [internalGroqTypeReferenceTo]?: 'scholarshipTag'
469
+ }>
470
+ deadline?: string
471
+ deadlineNote?: string
472
+ applyUrl?: string
473
+ applyButtonLabel?: string
474
+ seo?: Seo
475
+ }
476
+
477
+ export type Slug = {
478
+ _type: 'slug'
479
+ current: string
480
+ source?: string
481
+ }
482
+
483
+ export type ScholarshipTag = {
484
+ _id: string
485
+ _type: 'scholarshipTag'
486
+ _createdAt: string
487
+ _updatedAt: string
488
+ _rev: string
489
+ title: string
490
+ slug: Slug
491
+ kind: 'audience' | 'field' | 'region' | 'other'
492
+ description?: string
493
+ }
494
+
872
495
  export type Event = {
873
496
  _id: string
874
497
  _type: 'event'
@@ -877,20 +500,7 @@ export type Event = {
877
500
  _rev: string
878
501
  title: string
879
502
  slug: Slug
880
- mainImage?: {
881
- asset?: {
882
- _ref: string
883
- _type: 'reference'
884
- _weak?: boolean
885
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
886
- }
887
- media?: unknown
888
- hotspot?: SanityImageHotspot
889
- crop?: SanityImageCrop
890
- altText: string
891
- caption?: string
892
- _type: 'accessibleImage'
893
- }
503
+ mainImage?: AccessibleImage
894
504
  description?: PtBasic
895
505
  startDate: string
896
506
  endDate: string
@@ -947,27 +557,14 @@ export type Event = {
947
557
  }
948
558
 
949
559
  export type NewsArticle = {
950
- _id: string
951
- _type: 'newsArticle'
952
- _createdAt: string
953
- _updatedAt: string
954
- _rev: string
955
- title: string
956
- slug: Slug
957
- mainImage?: {
958
- asset?: {
959
- _ref: string
960
- _type: 'reference'
961
- _weak?: boolean
962
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
963
- }
964
- media?: unknown
965
- hotspot?: SanityImageHotspot
966
- crop?: SanityImageCrop
967
- altText: string
968
- caption?: string
969
- _type: 'accessibleImage'
970
- }
560
+ _id: string
561
+ _type: 'newsArticle'
562
+ _createdAt: string
563
+ _updatedAt: string
564
+ _rev: string
565
+ title: string
566
+ slug: Slug
567
+ mainImage?: AccessibleImage
971
568
  body?: PtBasic
972
569
  categories: Array<'media' | 'students' | 'employee' | 'alumni'>
973
570
  dateCreated?: string
@@ -988,20 +585,7 @@ export type Webpage = {
988
585
  _key: string
989
586
  } & PtButton
990
587
  >
991
- mainImage?: {
992
- asset?: {
993
- _ref: string
994
- _type: 'reference'
995
- _weak?: boolean
996
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
997
- }
998
- media?: unknown
999
- hotspot?: SanityImageHotspot
1000
- crop?: SanityImageCrop
1001
- altText: string
1002
- caption?: string
1003
- _type: 'accessibleImage'
1004
- }
588
+ mainImage?: AccessibleImage
1005
589
  introduction?: string
1006
590
  body?: PtBasic
1007
591
  pageBuilder?: Array<
@@ -1026,6 +610,9 @@ export type Webpage = {
1026
610
  | ({
1027
611
  _key: string
1028
612
  } & CallToActionSection)
613
+ | ({
614
+ _key: string
615
+ } & SimpleCallToActionSection)
1029
616
  >
1030
617
  parentPage?:
1031
618
  | {
@@ -1082,47 +669,15 @@ export type Facility = {
1082
669
  isActive?: boolean
1083
670
  address?: CanadianAddress
1084
671
  tourLink?: string
1085
- image?: {
1086
- asset?: {
1087
- _ref: string
1088
- _type: 'reference'
1089
- _weak?: boolean
1090
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1091
- }
1092
- media?: unknown
1093
- hotspot?: SanityImageHotspot
1094
- crop?: SanityImageCrop
1095
- altText: string
1096
- caption?: string
1097
- _type: 'accessibleImage'
1098
- }
1099
- gallery?: Array<{
1100
- asset?: {
1101
- _ref: string
1102
- _type: 'reference'
1103
- _weak?: boolean
1104
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1105
- }
1106
- media?: unknown
1107
- hotspot?: SanityImageHotspot
1108
- crop?: SanityImageCrop
1109
- altText: string
1110
- caption?: string
1111
- _type: 'accessibleImage'
1112
- _key: string
1113
- }>
672
+ image?: AccessibleImage
673
+ gallery?: Array<
674
+ {
675
+ _key: string
676
+ } & AccessibleImage
677
+ >
1114
678
  seo?: Seo
1115
679
  }
1116
680
 
1117
- export type CanadianAddress = {
1118
- _type: 'canadianAddress'
1119
- streetAddress: string
1120
- city: string
1121
- province: 'AB' | 'BC' | 'MB' | 'NB' | 'NL' | 'NT' | 'NS' | 'NU' | 'ON' | 'PE' | 'QC' | 'SK' | 'YT'
1122
- postalCode: string
1123
- country?: string
1124
- }
1125
-
1126
681
  export type ProgramFile = {
1127
682
  _id: string
1128
683
  _type: 'programFile'
@@ -1169,20 +724,7 @@ export type Testimonial = {
1169
724
  quote: string
1170
725
  body?: PtBasic
1171
726
  videoUrl?: string
1172
- thumbnail?: {
1173
- asset?: {
1174
- _ref: string
1175
- _type: 'reference'
1176
- _weak?: boolean
1177
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1178
- }
1179
- media?: unknown
1180
- hotspot?: SanityImageHotspot
1181
- crop?: SanityImageCrop
1182
- altText: string
1183
- caption?: string
1184
- _type: 'accessibleImage'
1185
- }
727
+ thumbnail?: AccessibleImage
1186
728
  rating?: number
1187
729
  datePublished?: string
1188
730
  slug: Slug
@@ -1200,20 +742,7 @@ export type Campus = {
1200
742
  city?: string
1201
743
  slug: Slug
1202
744
  isEnabled?: boolean
1203
- image?: {
1204
- asset?: {
1205
- _ref: string
1206
- _type: 'reference'
1207
- _weak?: boolean
1208
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1209
- }
1210
- media?: unknown
1211
- hotspot?: SanityImageHotspot
1212
- crop?: SanityImageCrop
1213
- altText: string
1214
- caption?: string
1215
- _type: 'accessibleImage'
1216
- }
745
+ image?: AccessibleImage
1217
746
  description?: PtBasic
1218
747
  virtualTourUrl?: string
1219
748
  staff?: Array<{
@@ -1234,20 +763,7 @@ export type Area = {
1234
763
  _rev: string
1235
764
  title: string
1236
765
  slug: Slug
1237
- image?: {
1238
- asset?: {
1239
- _ref: string
1240
- _type: 'reference'
1241
- _weak?: boolean
1242
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1243
- }
1244
- media?: unknown
1245
- hotspot?: SanityImageHotspot
1246
- crop?: SanityImageCrop
1247
- altText: string
1248
- caption?: string
1249
- _type: 'accessibleImage'
1250
- }
766
+ image?: AccessibleImage
1251
767
  description?: string
1252
768
  isEnabled?: boolean
1253
769
  }
@@ -1346,35 +862,12 @@ export type Program = {
1346
862
  slug: Slug
1347
863
  shortLink?: string
1348
864
  publicStatus: 'PLANNED' | 'ACTIVE' | 'PAUSED' | 'RETIRED'
1349
- featuredImage?: {
1350
- asset?: {
1351
- _ref: string
1352
- _type: 'reference'
1353
- _weak?: boolean
1354
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1355
- }
1356
- media?: unknown
1357
- hotspot?: SanityImageHotspot
1358
- crop?: SanityImageCrop
1359
- altText: string
1360
- caption?: string
1361
- _type: 'accessibleImage'
1362
- }
1363
- gallery?: Array<{
1364
- asset?: {
1365
- _ref: string
1366
- _type: 'reference'
1367
- _weak?: boolean
1368
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1369
- }
1370
- media?: unknown
1371
- hotspot?: SanityImageHotspot
1372
- crop?: SanityImageCrop
1373
- altText: string
1374
- caption?: string
1375
- _type: 'accessibleImage'
1376
- _key: string
1377
- }>
865
+ featuredImage?: AccessibleImage
866
+ gallery?: Array<
867
+ {
868
+ _key: string
869
+ } & AccessibleImage
870
+ >
1378
871
  school?: {
1379
872
  _ref: string
1380
873
  _type: 'reference'
@@ -1458,26 +951,6 @@ export type Program = {
1458
951
  seo?: Seo
1459
952
  }
1460
953
 
1461
- export type Seo = {
1462
- _type: 'seo'
1463
- title?: string
1464
- description?: string
1465
- image?: {
1466
- asset?: {
1467
- _ref: string
1468
- _type: 'reference'
1469
- _weak?: boolean
1470
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1471
- }
1472
- media?: unknown
1473
- hotspot?: SanityImageHotspot
1474
- crop?: SanityImageCrop
1475
- _type: 'image'
1476
- }
1477
- noindex?: boolean
1478
- nofollow?: boolean
1479
- }
1480
-
1481
954
  export type Menu = {
1482
955
  _id: string
1483
956
  _type: 'menu'
@@ -1497,6 +970,14 @@ export type Menu = {
1497
970
  maxDepth?: number
1498
971
  }
1499
972
 
973
+ export type Code = {
974
+ _type: 'code'
975
+ language?: string
976
+ filename?: string
977
+ code?: string
978
+ highlightedLines?: Array<number>
979
+ }
980
+
1500
981
  export type Credential = {
1501
982
  _id: string
1502
983
  _type: 'credential'
@@ -1537,20 +1018,7 @@ export type School = {
1537
1018
  [internalGroqTypeReferenceTo]?: 'person'
1538
1019
  }
1539
1020
  schoolCode?: string
1540
- image?: {
1541
- asset?: {
1542
- _ref: string
1543
- _type: 'reference'
1544
- _weak?: boolean
1545
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1546
- }
1547
- media?: unknown
1548
- hotspot?: SanityImageHotspot
1549
- crop?: SanityImageCrop
1550
- altText: string
1551
- caption?: string
1552
- _type: 'accessibleImage'
1553
- }
1021
+ image?: AccessibleImage
1554
1022
  programs?: Array<{
1555
1023
  _ref: string
1556
1024
  _type: 'reference'
@@ -1579,20 +1047,7 @@ export type Person = {
1579
1047
  url?: string
1580
1048
  _key: string
1581
1049
  }>
1582
- image?: {
1583
- asset?: {
1584
- _ref: string
1585
- _type: 'reference'
1586
- _weak?: boolean
1587
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1588
- }
1589
- media?: unknown
1590
- hotspot?: SanityImageHotspot
1591
- crop?: SanityImageCrop
1592
- altText: string
1593
- caption?: string
1594
- _type: 'accessibleImage'
1595
- }
1050
+ image?: AccessibleImage
1596
1051
  jobTitle?: string
1597
1052
  siteRoles?: Array<
1598
1053
  'faculty' | 'staff' | 'recruitment' | 'internationalRecruitment' | 'testimonial' | 'dean'
@@ -1629,29 +1084,6 @@ export type Person = {
1629
1084
  isEnabled?: boolean
1630
1085
  }
1631
1086
 
1632
- export type AccessibleImage = {
1633
- _type: 'accessibleImage'
1634
- asset?: {
1635
- _ref: string
1636
- _type: 'reference'
1637
- _weak?: boolean
1638
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1639
- }
1640
- media?: unknown
1641
- hotspot?: SanityImageHotspot
1642
- crop?: SanityImageCrop
1643
- altText: string
1644
- caption?: string
1645
- }
1646
-
1647
- export type Code = {
1648
- _type: 'code'
1649
- language?: string
1650
- filename?: string
1651
- code?: string
1652
- highlightedLines?: Array<number>
1653
- }
1654
-
1655
1087
  export type Table = {
1656
1088
  _type: 'table'
1657
1089
  rows?: Array<
@@ -1701,20 +1133,15 @@ export type SanityImageDimensions = {
1701
1133
  aspectRatio: number
1702
1134
  }
1703
1135
 
1704
- export type SanityImageHotspot = {
1705
- _type: 'sanity.imageHotspot'
1706
- x: number
1707
- y: number
1708
- height: number
1709
- width: number
1710
- }
1711
-
1712
- export type SanityImageCrop = {
1713
- _type: 'sanity.imageCrop'
1714
- top: number
1715
- bottom: number
1716
- left: number
1717
- right: number
1136
+ export type SanityImageMetadata = {
1137
+ _type: 'sanity.imageMetadata'
1138
+ location?: Geopoint
1139
+ dimensions?: SanityImageDimensions
1140
+ palette?: SanityImagePalette
1141
+ lqip?: string
1142
+ blurHash?: string
1143
+ hasAlpha?: boolean
1144
+ isOpaque?: boolean
1718
1145
  }
1719
1146
 
1720
1147
  export type SanityFileAsset = {
@@ -1739,6 +1166,13 @@ export type SanityFileAsset = {
1739
1166
  source?: SanityAssetSourceData
1740
1167
  }
1741
1168
 
1169
+ export type SanityAssetSourceData = {
1170
+ _type: 'sanity.assetSourceData'
1171
+ name?: string
1172
+ id?: string
1173
+ url?: string
1174
+ }
1175
+
1742
1176
  export type SanityImageAsset = {
1743
1177
  _id: string
1744
1178
  _type: 'sanity.imageAsset'
@@ -1762,17 +1196,6 @@ export type SanityImageAsset = {
1762
1196
  source?: SanityAssetSourceData
1763
1197
  }
1764
1198
 
1765
- export type SanityImageMetadata = {
1766
- _type: 'sanity.imageMetadata'
1767
- location?: Geopoint
1768
- dimensions?: SanityImageDimensions
1769
- palette?: SanityImagePalette
1770
- lqip?: string
1771
- blurHash?: string
1772
- hasAlpha?: boolean
1773
- isOpaque?: boolean
1774
- }
1775
-
1776
1199
  export type Geopoint = {
1777
1200
  _type: 'geopoint'
1778
1201
  lat?: number
@@ -1780,20 +1203,9 @@ export type Geopoint = {
1780
1203
  alt?: number
1781
1204
  }
1782
1205
 
1783
- export type Slug = {
1784
- _type: 'slug'
1785
- current: string
1786
- source?: string
1787
- }
1788
-
1789
- export type SanityAssetSourceData = {
1790
- _type: 'sanity.assetSourceData'
1791
- name?: string
1792
- id?: string
1793
- url?: string
1794
- }
1795
-
1796
1206
  export type AllSanitySchemaTypes =
1207
+ | CanadianAddress
1208
+ | SimpleCallToActionSection
1797
1209
  | CallToActionSection
1798
1210
  | CardGridSection
1799
1211
  | Card
@@ -1803,18 +1215,24 @@ export type AllSanitySchemaTypes =
1803
1215
  | GallerySection
1804
1216
  | FaqSection
1805
1217
  | FaqItem
1806
- | MenuItem
1807
1218
  | Link
1219
+ | MenuItem
1220
+ | AccessibleImage
1808
1221
  | PtSimple
1809
1222
  | PtBasic
1810
1223
  | PtButton
1811
1224
  | Figure
1225
+ | SanityImageCrop
1226
+ | SanityImageHotspot
1227
+ | Seo
1812
1228
  | Redirect
1229
+ | Scholarship
1230
+ | Slug
1231
+ | ScholarshipTag
1813
1232
  | Event
1814
1233
  | NewsArticle
1815
1234
  | Webpage
1816
1235
  | Facility
1817
- | CanadianAddress
1818
1236
  | ProgramFile
1819
1237
  | Testimonial
1820
1238
  | Campus
@@ -1823,25 +1241,20 @@ export type AllSanitySchemaTypes =
1823
1241
  | AdmissionRequirements
1824
1242
  | Duration
1825
1243
  | Program
1826
- | Seo
1827
1244
  | Menu
1245
+ | Code
1828
1246
  | Credential
1829
1247
  | School
1830
1248
  | Person
1831
- | AccessibleImage
1832
- | Code
1833
1249
  | Table
1834
1250
  | TableRow
1835
1251
  | MediaTag
1836
1252
  | SanityImagePaletteSwatch
1837
1253
  | SanityImagePalette
1838
1254
  | SanityImageDimensions
1839
- | SanityImageHotspot
1840
- | SanityImageCrop
1255
+ | SanityImageMetadata
1841
1256
  | SanityFileAsset
1257
+ | SanityAssetSourceData
1842
1258
  | SanityImageAsset
1843
- | SanityImageMetadata
1844
1259
  | Geopoint
1845
- | Slug
1846
- | SanityAssetSourceData
1847
1260
  export declare const internalGroqTypeReferenceTo: unique symbol