@confed/sanity-types 0.1.3-2511072057 → 0.1.3-2511121437

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 +201 -823
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2511072057",
3
+ "version": "0.1.3-2511121437",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,29 +13,20 @@
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
+
16
25
  export type SimpleCallToActionSection = {
17
26
  _type: 'simpleCallToActionSection'
18
27
  title: string
19
28
  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
- }>
29
+ intro?: PtSimple
39
30
  buttons?: Array<
40
31
  {
41
32
  _key: string
@@ -49,44 +40,13 @@ export type CallToActionSection = {
49
40
  _type: 'callToActionSection'
50
41
  title: string
51
42
  eyebrow?: string
52
- intro?: Array<{
53
- children?: Array<{
54
- marks?: Array<string>
55
- text?: string
56
- _type: 'span'
57
- _key: string
58
- }>
59
- style?: 'normal'
60
- listItem?: 'bullet' | 'number'
61
- markDefs?: Array<{
62
- href?: string
63
- openInNewTab?: boolean
64
- _type: 'link'
65
- _key: string
66
- }>
67
- level?: number
68
- _type: 'block'
69
- _key: string
70
- }>
43
+ intro?: PtSimple
71
44
  buttons?: Array<
72
45
  {
73
46
  _key: string
74
47
  } & PtButton
75
48
  >
76
- image?: {
77
- asset?: {
78
- _ref: string
79
- _type: 'reference'
80
- _weak?: boolean
81
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
82
- }
83
- media?: unknown
84
- hotspot?: SanityImageHotspot
85
- crop?: SanityImageCrop
86
- altText: string
87
- caption?: string
88
- _type: 'accessibleImage'
89
- }
49
+ image?: AccessibleImage
90
50
  backgroundColor?: 'light' | 'dark' | 'white' | 'black' | 'primary' | 'accent'
91
51
  layoutStyle?: 'textLeft' | 'textCentered' | 'imageSplit' | 'imageBackground'
92
52
  imageSide?: 'left' | 'right'
@@ -98,25 +58,7 @@ export type CardGridSection = {
98
58
  _type: 'cardGridSection'
99
59
  title?: string
100
60
  eyebrow?: string
101
- intro?: Array<{
102
- children?: Array<{
103
- marks?: Array<string>
104
- text?: string
105
- _type: 'span'
106
- _key: string
107
- }>
108
- style?: 'normal'
109
- listItem?: 'bullet' | 'number'
110
- markDefs?: Array<{
111
- href?: string
112
- openInNewTab?: boolean
113
- _type: 'link'
114
- _key: string
115
- }>
116
- level?: number
117
- _type: 'block'
118
- _key: string
119
- }>
61
+ intro?: PtSimple
120
62
  cards?: Array<
121
63
  {
122
64
  _key: string
@@ -134,39 +76,8 @@ export type Card = {
134
76
  _type: 'card'
135
77
  title?: string
136
78
  eyebrow?: string
137
- image?: {
138
- asset?: {
139
- _ref: string
140
- _type: 'reference'
141
- _weak?: boolean
142
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
143
- }
144
- media?: unknown
145
- hotspot?: SanityImageHotspot
146
- crop?: SanityImageCrop
147
- altText: string
148
- caption?: string
149
- _type: 'accessibleImage'
150
- }
151
- description?: Array<{
152
- children?: Array<{
153
- marks?: Array<string>
154
- text?: string
155
- _type: 'span'
156
- _key: string
157
- }>
158
- style?: 'normal'
159
- listItem?: 'bullet' | 'number'
160
- markDefs?: Array<{
161
- href?: string
162
- openInNewTab?: boolean
163
- _type: 'link'
164
- _key: string
165
- }>
166
- level?: number
167
- _type: 'block'
168
- _key: string
169
- }>
79
+ image?: AccessibleImage
80
+ description?: PtSimple
170
81
  buttons?: Array<
171
82
  {
172
83
  _key: string
@@ -193,105 +104,13 @@ export type HeaderSection = {
193
104
 
194
105
  export type MediaTextSection = {
195
106
  _type: 'mediaTextSection'
196
- text: Array<
197
- | {
198
- children?: Array<{
199
- marks?: Array<string>
200
- text?: string
201
- _type: 'span'
202
- _key: string
203
- }>
204
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
205
- listItem?: 'bullet' | 'number'
206
- markDefs?: Array<{
207
- href?: string
208
- openInNewTab?: boolean
209
- _type: 'link'
210
- _key: string
211
- }>
212
- level?: number
213
- _type: 'block'
214
- _key: string
215
- }
216
- | {
217
- asset?: {
218
- _ref: string
219
- _type: 'reference'
220
- _weak?: boolean
221
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
222
- }
223
- media?: unknown
224
- hotspot?: SanityImageHotspot
225
- crop?: SanityImageCrop
226
- altText: string
227
- caption?: string
228
- _type: 'figure'
229
- _key: string
230
- }
231
- | ({
232
- _key: string
233
- } & PtButton)
234
- | {
235
- url: string
236
- title?: string
237
- _type: 'ptYoutubeVideo'
238
- _key: string
239
- }
240
- | {
241
- body: Array<{
242
- children?: Array<{
243
- marks?: Array<string>
244
- text?: string
245
- _type: 'span'
246
- _key: string
247
- }>
248
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
249
- listItem?: 'bullet' | 'number'
250
- markDefs?: Array<{
251
- href?: string
252
- openInNewTab?: boolean
253
- _type: 'link'
254
- _key: string
255
- }>
256
- level?: number
257
- _type: 'block'
258
- _key: string
259
- }>
260
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
261
- _type: 'note'
262
- _key: string
263
- }
264
- | ({
265
- _key: string
266
- } & Table)
267
- | {
268
- title?: string
269
- embedCode: Code
270
- height?: number
271
- responsive?: boolean
272
- _type: 'embed'
273
- _key: string
274
- }
275
- >
107
+ text: PtBasic
276
108
  buttons?: Array<
277
109
  {
278
110
  _key: string
279
111
  } & PtButton
280
112
  >
281
- image: {
282
- asset?: {
283
- _ref: string
284
- _type: 'reference'
285
- _weak?: boolean
286
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
287
- }
288
- media?: unknown
289
- hotspot?: SanityImageHotspot
290
- crop?: SanityImageCrop
291
- altText: string
292
- caption?: string
293
- _type: 'accessibleImage'
294
- }
113
+ image: AccessibleImage
295
114
  options?: {
296
115
  backgroundColor?: 'light' | 'dark' | 'white' | 'black'
297
116
  imagePosition?: 'left' | 'right'
@@ -302,86 +121,7 @@ export type MediaTextSection = {
302
121
 
303
122
  export type RichTextSection = {
304
123
  _type: 'richTextSection'
305
- content?: Array<
306
- | {
307
- children?: Array<{
308
- marks?: Array<string>
309
- text?: string
310
- _type: 'span'
311
- _key: string
312
- }>
313
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
314
- listItem?: 'bullet' | 'number'
315
- markDefs?: Array<{
316
- href?: string
317
- openInNewTab?: boolean
318
- _type: 'link'
319
- _key: string
320
- }>
321
- level?: number
322
- _type: 'block'
323
- _key: string
324
- }
325
- | {
326
- asset?: {
327
- _ref: string
328
- _type: 'reference'
329
- _weak?: boolean
330
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
331
- }
332
- media?: unknown
333
- hotspot?: SanityImageHotspot
334
- crop?: SanityImageCrop
335
- altText: string
336
- caption?: string
337
- _type: 'figure'
338
- _key: string
339
- }
340
- | ({
341
- _key: string
342
- } & PtButton)
343
- | {
344
- url: string
345
- title?: string
346
- _type: 'ptYoutubeVideo'
347
- _key: string
348
- }
349
- | {
350
- body: Array<{
351
- children?: Array<{
352
- marks?: Array<string>
353
- text?: string
354
- _type: 'span'
355
- _key: string
356
- }>
357
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
358
- listItem?: 'bullet' | 'number'
359
- markDefs?: Array<{
360
- href?: string
361
- openInNewTab?: boolean
362
- _type: 'link'
363
- _key: string
364
- }>
365
- level?: number
366
- _type: 'block'
367
- _key: string
368
- }>
369
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
370
- _type: 'note'
371
- _key: string
372
- }
373
- | ({
374
- _key: string
375
- } & Table)
376
- | {
377
- title?: string
378
- embedCode: Code
379
- height?: number
380
- responsive?: boolean
381
- _type: 'embed'
382
- _key: string
383
- }
384
- >
124
+ content?: PtBasic
385
125
  backgroundColor?: 'light' | 'white'
386
126
  spacing?: 'default' | 'minimum' | 'none'
387
127
  }
@@ -389,187 +129,19 @@ export type RichTextSection = {
389
129
  export type GallerySection = {
390
130
  _type: 'gallerySection'
391
131
  title?: string
392
- introduction?: Array<
393
- | {
394
- children?: Array<{
395
- marks?: Array<string>
396
- text?: string
397
- _type: 'span'
398
- _key: string
399
- }>
400
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
401
- listItem?: 'bullet' | 'number'
402
- markDefs?: Array<{
403
- href?: string
404
- openInNewTab?: boolean
405
- _type: 'link'
406
- _key: string
407
- }>
408
- level?: number
409
- _type: 'block'
410
- _key: string
411
- }
412
- | {
413
- asset?: {
414
- _ref: string
415
- _type: 'reference'
416
- _weak?: boolean
417
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
418
- }
419
- media?: unknown
420
- hotspot?: SanityImageHotspot
421
- crop?: SanityImageCrop
422
- altText: string
423
- caption?: string
424
- _type: 'figure'
425
- _key: string
426
- }
427
- | ({
428
- _key: string
429
- } & PtButton)
430
- | {
431
- url: string
432
- title?: string
433
- _type: 'ptYoutubeVideo'
434
- _key: string
435
- }
436
- | {
437
- body: Array<{
438
- children?: Array<{
439
- marks?: Array<string>
440
- text?: string
441
- _type: 'span'
442
- _key: string
443
- }>
444
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
445
- listItem?: 'bullet' | 'number'
446
- markDefs?: Array<{
447
- href?: string
448
- openInNewTab?: boolean
449
- _type: 'link'
450
- _key: string
451
- }>
452
- level?: number
453
- _type: 'block'
454
- _key: string
455
- }>
456
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
457
- _type: 'note'
458
- _key: string
459
- }
460
- | ({
461
- _key: string
462
- } & Table)
463
- | {
464
- title?: string
465
- embedCode: Code
466
- height?: number
467
- responsive?: boolean
468
- _type: 'embed'
469
- _key: string
470
- }
132
+ introduction?: PtBasic
133
+ images?: Array<
134
+ {
135
+ _key: string
136
+ } & AccessibleImage
471
137
  >
472
- images?: Array<{
473
- asset?: {
474
- _ref: string
475
- _type: 'reference'
476
- _weak?: boolean
477
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
478
- }
479
- media?: unknown
480
- hotspot?: SanityImageHotspot
481
- crop?: SanityImageCrop
482
- altText: string
483
- caption?: string
484
- _type: 'accessibleImage'
485
- _key: string
486
- }>
487
138
  layout?: 'grid' | 'carousel'
488
139
  }
489
140
 
490
141
  export type FaqSection = {
491
142
  _type: 'faqSection'
492
143
  title?: string
493
- intro?: Array<
494
- | {
495
- children?: Array<{
496
- marks?: Array<string>
497
- text?: string
498
- _type: 'span'
499
- _key: string
500
- }>
501
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
502
- listItem?: 'bullet' | 'number'
503
- markDefs?: Array<{
504
- href?: string
505
- openInNewTab?: boolean
506
- _type: 'link'
507
- _key: string
508
- }>
509
- level?: number
510
- _type: 'block'
511
- _key: string
512
- }
513
- | {
514
- asset?: {
515
- _ref: string
516
- _type: 'reference'
517
- _weak?: boolean
518
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
519
- }
520
- media?: unknown
521
- hotspot?: SanityImageHotspot
522
- crop?: SanityImageCrop
523
- altText: string
524
- caption?: string
525
- _type: 'figure'
526
- _key: string
527
- }
528
- | ({
529
- _key: string
530
- } & PtButton)
531
- | {
532
- url: string
533
- title?: string
534
- _type: 'ptYoutubeVideo'
535
- _key: string
536
- }
537
- | {
538
- body: Array<{
539
- children?: Array<{
540
- marks?: Array<string>
541
- text?: string
542
- _type: 'span'
543
- _key: string
544
- }>
545
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
546
- listItem?: 'bullet' | 'number'
547
- markDefs?: Array<{
548
- href?: string
549
- openInNewTab?: boolean
550
- _type: 'link'
551
- _key: string
552
- }>
553
- level?: number
554
- _type: 'block'
555
- _key: string
556
- }>
557
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
558
- _type: 'note'
559
- _key: string
560
- }
561
- | ({
562
- _key: string
563
- } & Table)
564
- | {
565
- title?: string
566
- embedCode: Code
567
- height?: number
568
- responsive?: boolean
569
- _type: 'embed'
570
- _key: string
571
- }
572
- >
144
+ intro?: PtBasic
573
145
  items?: Array<
574
146
  {
575
147
  _key: string
@@ -583,101 +155,10 @@ export type FaqSection = {
583
155
  export type FaqItem = {
584
156
  _type: 'faqItem'
585
157
  question: string
586
- answer: Array<
587
- | {
588
- children?: Array<{
589
- marks?: Array<string>
590
- text?: string
591
- _type: 'span'
592
- _key: string
593
- }>
594
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
595
- listItem?: 'bullet' | 'number'
596
- markDefs?: Array<{
597
- href?: string
598
- openInNewTab?: boolean
599
- _type: 'link'
600
- _key: string
601
- }>
602
- level?: number
603
- _type: 'block'
604
- _key: string
605
- }
606
- | {
607
- asset?: {
608
- _ref: string
609
- _type: 'reference'
610
- _weak?: boolean
611
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
612
- }
613
- media?: unknown
614
- hotspot?: SanityImageHotspot
615
- crop?: SanityImageCrop
616
- altText: string
617
- caption?: string
618
- _type: 'figure'
619
- _key: string
620
- }
621
- | ({
622
- _key: string
623
- } & PtButton)
624
- | {
625
- url: string
626
- title?: string
627
- _type: 'ptYoutubeVideo'
628
- _key: string
629
- }
630
- | {
631
- body: Array<{
632
- children?: Array<{
633
- marks?: Array<string>
634
- text?: string
635
- _type: 'span'
636
- _key: string
637
- }>
638
- style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
639
- listItem?: 'bullet' | 'number'
640
- markDefs?: Array<{
641
- href?: string
642
- openInNewTab?: boolean
643
- _type: 'link'
644
- _key: string
645
- }>
646
- level?: number
647
- _type: 'block'
648
- _key: string
649
- }>
650
- kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
651
- _type: 'note'
652
- _key: string
653
- }
654
- | ({
655
- _key: string
656
- } & Table)
657
- | {
658
- title?: string
659
- embedCode: Code
660
- height?: number
661
- responsive?: boolean
662
- _type: 'embed'
663
- _key: string
664
- }
665
- >
158
+ answer: PtBasic
666
159
  anchorId?: Slug
667
160
  }
668
161
 
669
- export type MenuItem = {
670
- _type: 'menuItem'
671
- link: Link
672
- subItems?: Array<
673
- {
674
- _key: string
675
- } & MenuItem
676
- >
677
- isHighlighted?: boolean
678
- order?: number
679
- }
680
-
681
162
  export type Link = {
682
163
  _type: 'link'
683
164
  label: string
@@ -718,6 +199,33 @@ export type Link = {
718
199
  description?: string
719
200
  }
720
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
+
721
229
  export type PtSimple = Array<{
722
230
  children?: Array<{
723
231
  marks?: Array<string>
@@ -841,6 +349,43 @@ export type Figure = {
841
349
  caption?: string
842
350
  }
843
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
+ keywords?: Array<string>
373
+ image?: {
374
+ asset?: {
375
+ _ref: string
376
+ _type: 'reference'
377
+ _weak?: boolean
378
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
379
+ }
380
+ media?: unknown
381
+ hotspot?: SanityImageHotspot
382
+ crop?: SanityImageCrop
383
+ _type: 'image'
384
+ }
385
+ noindex?: boolean
386
+ nofollow?: boolean
387
+ }
388
+
844
389
  export type Redirect = {
845
390
  _id: string
846
391
  _type: 'redirect'
@@ -901,6 +446,53 @@ export type Redirect = {
901
446
  createdAt?: string
902
447
  }
903
448
 
449
+ export type Scholarship = {
450
+ _id: string
451
+ _type: 'scholarship'
452
+ _createdAt: string
453
+ _updatedAt: string
454
+ _rev: string
455
+ title: string
456
+ slug: Slug
457
+ internalExternal: 'internal' | 'external'
458
+ status?: 'open' | 'closed' | 'archived'
459
+ scholarshipType?: 'scholarship' | 'bursary' | 'grant' | 'program' | 'other'
460
+ body?: PtBasic
461
+ featuredImage?: AccessibleImage
462
+ awardValueDisplay?: string
463
+ awardAmount?: number
464
+ audienceTags?: Array<{
465
+ _ref: string
466
+ _type: 'reference'
467
+ _weak?: boolean
468
+ _key: string
469
+ [internalGroqTypeReferenceTo]?: 'scholarshipTag'
470
+ }>
471
+ deadline?: string
472
+ deadlineNote?: string
473
+ applyUrl?: string
474
+ applyButtonLabel?: string
475
+ seo?: Seo
476
+ }
477
+
478
+ export type Slug = {
479
+ _type: 'slug'
480
+ current: string
481
+ source?: string
482
+ }
483
+
484
+ export type ScholarshipTag = {
485
+ _id: string
486
+ _type: 'scholarshipTag'
487
+ _createdAt: string
488
+ _updatedAt: string
489
+ _rev: string
490
+ title: string
491
+ slug: Slug
492
+ kind: 'audience' | 'field' | 'region' | 'other'
493
+ description?: string
494
+ }
495
+
904
496
  export type Event = {
905
497
  _id: string
906
498
  _type: 'event'
@@ -909,20 +501,7 @@ export type Event = {
909
501
  _rev: string
910
502
  title: string
911
503
  slug: Slug
912
- mainImage?: {
913
- asset?: {
914
- _ref: string
915
- _type: 'reference'
916
- _weak?: boolean
917
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
918
- }
919
- media?: unknown
920
- hotspot?: SanityImageHotspot
921
- crop?: SanityImageCrop
922
- altText: string
923
- caption?: string
924
- _type: 'accessibleImage'
925
- }
504
+ mainImage?: AccessibleImage
926
505
  description?: PtBasic
927
506
  startDate: string
928
507
  endDate: string
@@ -977,29 +556,16 @@ export type Event = {
977
556
  dateCreated?: string
978
557
  seo?: Seo
979
558
  }
980
-
981
- export type NewsArticle = {
982
- _id: string
983
- _type: 'newsArticle'
984
- _createdAt: string
985
- _updatedAt: string
986
- _rev: string
987
- title: string
988
- slug: Slug
989
- mainImage?: {
990
- asset?: {
991
- _ref: string
992
- _type: 'reference'
993
- _weak?: boolean
994
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
995
- }
996
- media?: unknown
997
- hotspot?: SanityImageHotspot
998
- crop?: SanityImageCrop
999
- altText: string
1000
- caption?: string
1001
- _type: 'accessibleImage'
1002
- }
559
+
560
+ export type NewsArticle = {
561
+ _id: string
562
+ _type: 'newsArticle'
563
+ _createdAt: string
564
+ _updatedAt: string
565
+ _rev: string
566
+ title: string
567
+ slug: Slug
568
+ mainImage?: AccessibleImage
1003
569
  body?: PtBasic
1004
570
  categories: Array<'media' | 'students' | 'employee' | 'alumni'>
1005
571
  dateCreated?: string
@@ -1020,20 +586,7 @@ export type Webpage = {
1020
586
  _key: string
1021
587
  } & PtButton
1022
588
  >
1023
- mainImage?: {
1024
- asset?: {
1025
- _ref: string
1026
- _type: 'reference'
1027
- _weak?: boolean
1028
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1029
- }
1030
- media?: unknown
1031
- hotspot?: SanityImageHotspot
1032
- crop?: SanityImageCrop
1033
- altText: string
1034
- caption?: string
1035
- _type: 'accessibleImage'
1036
- }
589
+ mainImage?: AccessibleImage
1037
590
  introduction?: string
1038
591
  body?: PtBasic
1039
592
  pageBuilder?: Array<
@@ -1117,47 +670,15 @@ export type Facility = {
1117
670
  isActive?: boolean
1118
671
  address?: CanadianAddress
1119
672
  tourLink?: string
1120
- image?: {
1121
- asset?: {
1122
- _ref: string
1123
- _type: 'reference'
1124
- _weak?: boolean
1125
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1126
- }
1127
- media?: unknown
1128
- hotspot?: SanityImageHotspot
1129
- crop?: SanityImageCrop
1130
- altText: string
1131
- caption?: string
1132
- _type: 'accessibleImage'
1133
- }
1134
- gallery?: Array<{
1135
- asset?: {
1136
- _ref: string
1137
- _type: 'reference'
1138
- _weak?: boolean
1139
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1140
- }
1141
- media?: unknown
1142
- hotspot?: SanityImageHotspot
1143
- crop?: SanityImageCrop
1144
- altText: string
1145
- caption?: string
1146
- _type: 'accessibleImage'
1147
- _key: string
1148
- }>
673
+ image?: AccessibleImage
674
+ gallery?: Array<
675
+ {
676
+ _key: string
677
+ } & AccessibleImage
678
+ >
1149
679
  seo?: Seo
1150
680
  }
1151
681
 
1152
- export type CanadianAddress = {
1153
- _type: 'canadianAddress'
1154
- streetAddress: string
1155
- city: string
1156
- province: 'AB' | 'BC' | 'MB' | 'NB' | 'NL' | 'NT' | 'NS' | 'NU' | 'ON' | 'PE' | 'QC' | 'SK' | 'YT'
1157
- postalCode: string
1158
- country?: string
1159
- }
1160
-
1161
682
  export type ProgramFile = {
1162
683
  _id: string
1163
684
  _type: 'programFile'
@@ -1204,20 +725,7 @@ export type Testimonial = {
1204
725
  quote: string
1205
726
  body?: PtBasic
1206
727
  videoUrl?: string
1207
- thumbnail?: {
1208
- asset?: {
1209
- _ref: string
1210
- _type: 'reference'
1211
- _weak?: boolean
1212
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1213
- }
1214
- media?: unknown
1215
- hotspot?: SanityImageHotspot
1216
- crop?: SanityImageCrop
1217
- altText: string
1218
- caption?: string
1219
- _type: 'accessibleImage'
1220
- }
728
+ thumbnail?: AccessibleImage
1221
729
  rating?: number
1222
730
  datePublished?: string
1223
731
  slug: Slug
@@ -1235,20 +743,7 @@ export type Campus = {
1235
743
  city?: string
1236
744
  slug: Slug
1237
745
  isEnabled?: boolean
1238
- image?: {
1239
- asset?: {
1240
- _ref: string
1241
- _type: 'reference'
1242
- _weak?: boolean
1243
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1244
- }
1245
- media?: unknown
1246
- hotspot?: SanityImageHotspot
1247
- crop?: SanityImageCrop
1248
- altText: string
1249
- caption?: string
1250
- _type: 'accessibleImage'
1251
- }
746
+ image?: AccessibleImage
1252
747
  description?: PtBasic
1253
748
  virtualTourUrl?: string
1254
749
  staff?: Array<{
@@ -1269,20 +764,7 @@ export type Area = {
1269
764
  _rev: string
1270
765
  title: string
1271
766
  slug: Slug
1272
- image?: {
1273
- asset?: {
1274
- _ref: string
1275
- _type: 'reference'
1276
- _weak?: boolean
1277
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1278
- }
1279
- media?: unknown
1280
- hotspot?: SanityImageHotspot
1281
- crop?: SanityImageCrop
1282
- altText: string
1283
- caption?: string
1284
- _type: 'accessibleImage'
1285
- }
767
+ image?: AccessibleImage
1286
768
  description?: string
1287
769
  isEnabled?: boolean
1288
770
  }
@@ -1381,35 +863,12 @@ export type Program = {
1381
863
  slug: Slug
1382
864
  shortLink?: string
1383
865
  publicStatus: 'PLANNED' | 'ACTIVE' | 'PAUSED' | 'RETIRED'
1384
- featuredImage?: {
1385
- asset?: {
1386
- _ref: string
1387
- _type: 'reference'
1388
- _weak?: boolean
1389
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1390
- }
1391
- media?: unknown
1392
- hotspot?: SanityImageHotspot
1393
- crop?: SanityImageCrop
1394
- altText: string
1395
- caption?: string
1396
- _type: 'accessibleImage'
1397
- }
1398
- gallery?: Array<{
1399
- asset?: {
1400
- _ref: string
1401
- _type: 'reference'
1402
- _weak?: boolean
1403
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1404
- }
1405
- media?: unknown
1406
- hotspot?: SanityImageHotspot
1407
- crop?: SanityImageCrop
1408
- altText: string
1409
- caption?: string
1410
- _type: 'accessibleImage'
1411
- _key: string
1412
- }>
866
+ featuredImage?: AccessibleImage
867
+ gallery?: Array<
868
+ {
869
+ _key: string
870
+ } & AccessibleImage
871
+ >
1413
872
  school?: {
1414
873
  _ref: string
1415
874
  _type: 'reference'
@@ -1493,26 +952,6 @@ export type Program = {
1493
952
  seo?: Seo
1494
953
  }
1495
954
 
1496
- export type Seo = {
1497
- _type: 'seo'
1498
- title?: string
1499
- description?: string
1500
- image?: {
1501
- asset?: {
1502
- _ref: string
1503
- _type: 'reference'
1504
- _weak?: boolean
1505
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1506
- }
1507
- media?: unknown
1508
- hotspot?: SanityImageHotspot
1509
- crop?: SanityImageCrop
1510
- _type: 'image'
1511
- }
1512
- noindex?: boolean
1513
- nofollow?: boolean
1514
- }
1515
-
1516
955
  export type Menu = {
1517
956
  _id: string
1518
957
  _type: 'menu'
@@ -1532,6 +971,14 @@ export type Menu = {
1532
971
  maxDepth?: number
1533
972
  }
1534
973
 
974
+ export type Code = {
975
+ _type: 'code'
976
+ language?: string
977
+ filename?: string
978
+ code?: string
979
+ highlightedLines?: Array<number>
980
+ }
981
+
1535
982
  export type Credential = {
1536
983
  _id: string
1537
984
  _type: 'credential'
@@ -1572,20 +1019,7 @@ export type School = {
1572
1019
  [internalGroqTypeReferenceTo]?: 'person'
1573
1020
  }
1574
1021
  schoolCode?: string
1575
- image?: {
1576
- asset?: {
1577
- _ref: string
1578
- _type: 'reference'
1579
- _weak?: boolean
1580
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1581
- }
1582
- media?: unknown
1583
- hotspot?: SanityImageHotspot
1584
- crop?: SanityImageCrop
1585
- altText: string
1586
- caption?: string
1587
- _type: 'accessibleImage'
1588
- }
1022
+ image?: AccessibleImage
1589
1023
  programs?: Array<{
1590
1024
  _ref: string
1591
1025
  _type: 'reference'
@@ -1614,20 +1048,7 @@ export type Person = {
1614
1048
  url?: string
1615
1049
  _key: string
1616
1050
  }>
1617
- image?: {
1618
- asset?: {
1619
- _ref: string
1620
- _type: 'reference'
1621
- _weak?: boolean
1622
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1623
- }
1624
- media?: unknown
1625
- hotspot?: SanityImageHotspot
1626
- crop?: SanityImageCrop
1627
- altText: string
1628
- caption?: string
1629
- _type: 'accessibleImage'
1630
- }
1051
+ image?: AccessibleImage
1631
1052
  jobTitle?: string
1632
1053
  siteRoles?: Array<
1633
1054
  'faculty' | 'staff' | 'recruitment' | 'internationalRecruitment' | 'testimonial' | 'dean'
@@ -1664,29 +1085,6 @@ export type Person = {
1664
1085
  isEnabled?: boolean
1665
1086
  }
1666
1087
 
1667
- export type AccessibleImage = {
1668
- _type: 'accessibleImage'
1669
- asset?: {
1670
- _ref: string
1671
- _type: 'reference'
1672
- _weak?: boolean
1673
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
1674
- }
1675
- media?: unknown
1676
- hotspot?: SanityImageHotspot
1677
- crop?: SanityImageCrop
1678
- altText: string
1679
- caption?: string
1680
- }
1681
-
1682
- export type Code = {
1683
- _type: 'code'
1684
- language?: string
1685
- filename?: string
1686
- code?: string
1687
- highlightedLines?: Array<number>
1688
- }
1689
-
1690
1088
  export type Table = {
1691
1089
  _type: 'table'
1692
1090
  rows?: Array<
@@ -1736,20 +1134,15 @@ export type SanityImageDimensions = {
1736
1134
  aspectRatio: number
1737
1135
  }
1738
1136
 
1739
- export type SanityImageHotspot = {
1740
- _type: 'sanity.imageHotspot'
1741
- x: number
1742
- y: number
1743
- height: number
1744
- width: number
1745
- }
1746
-
1747
- export type SanityImageCrop = {
1748
- _type: 'sanity.imageCrop'
1749
- top: number
1750
- bottom: number
1751
- left: number
1752
- right: number
1137
+ export type SanityImageMetadata = {
1138
+ _type: 'sanity.imageMetadata'
1139
+ location?: Geopoint
1140
+ dimensions?: SanityImageDimensions
1141
+ palette?: SanityImagePalette
1142
+ lqip?: string
1143
+ blurHash?: string
1144
+ hasAlpha?: boolean
1145
+ isOpaque?: boolean
1753
1146
  }
1754
1147
 
1755
1148
  export type SanityFileAsset = {
@@ -1774,6 +1167,13 @@ export type SanityFileAsset = {
1774
1167
  source?: SanityAssetSourceData
1775
1168
  }
1776
1169
 
1170
+ export type SanityAssetSourceData = {
1171
+ _type: 'sanity.assetSourceData'
1172
+ name?: string
1173
+ id?: string
1174
+ url?: string
1175
+ }
1176
+
1777
1177
  export type SanityImageAsset = {
1778
1178
  _id: string
1779
1179
  _type: 'sanity.imageAsset'
@@ -1797,17 +1197,6 @@ export type SanityImageAsset = {
1797
1197
  source?: SanityAssetSourceData
1798
1198
  }
1799
1199
 
1800
- export type SanityImageMetadata = {
1801
- _type: 'sanity.imageMetadata'
1802
- location?: Geopoint
1803
- dimensions?: SanityImageDimensions
1804
- palette?: SanityImagePalette
1805
- lqip?: string
1806
- blurHash?: string
1807
- hasAlpha?: boolean
1808
- isOpaque?: boolean
1809
- }
1810
-
1811
1200
  export type Geopoint = {
1812
1201
  _type: 'geopoint'
1813
1202
  lat?: number
@@ -1815,20 +1204,8 @@ export type Geopoint = {
1815
1204
  alt?: number
1816
1205
  }
1817
1206
 
1818
- export type Slug = {
1819
- _type: 'slug'
1820
- current: string
1821
- source?: string
1822
- }
1823
-
1824
- export type SanityAssetSourceData = {
1825
- _type: 'sanity.assetSourceData'
1826
- name?: string
1827
- id?: string
1828
- url?: string
1829
- }
1830
-
1831
1207
  export type AllSanitySchemaTypes =
1208
+ | CanadianAddress
1832
1209
  | SimpleCallToActionSection
1833
1210
  | CallToActionSection
1834
1211
  | CardGridSection
@@ -1839,18 +1216,24 @@ export type AllSanitySchemaTypes =
1839
1216
  | GallerySection
1840
1217
  | FaqSection
1841
1218
  | FaqItem
1842
- | MenuItem
1843
1219
  | Link
1220
+ | MenuItem
1221
+ | AccessibleImage
1844
1222
  | PtSimple
1845
1223
  | PtBasic
1846
1224
  | PtButton
1847
1225
  | Figure
1226
+ | SanityImageCrop
1227
+ | SanityImageHotspot
1228
+ | Seo
1848
1229
  | Redirect
1230
+ | Scholarship
1231
+ | Slug
1232
+ | ScholarshipTag
1849
1233
  | Event
1850
1234
  | NewsArticle
1851
1235
  | Webpage
1852
1236
  | Facility
1853
- | CanadianAddress
1854
1237
  | ProgramFile
1855
1238
  | Testimonial
1856
1239
  | Campus
@@ -1859,25 +1242,20 @@ export type AllSanitySchemaTypes =
1859
1242
  | AdmissionRequirements
1860
1243
  | Duration
1861
1244
  | Program
1862
- | Seo
1863
1245
  | Menu
1246
+ | Code
1864
1247
  | Credential
1865
1248
  | School
1866
1249
  | Person
1867
- | AccessibleImage
1868
- | Code
1869
1250
  | Table
1870
1251
  | TableRow
1871
1252
  | MediaTag
1872
1253
  | SanityImagePaletteSwatch
1873
1254
  | SanityImagePalette
1874
1255
  | SanityImageDimensions
1875
- | SanityImageHotspot
1876
- | SanityImageCrop
1256
+ | SanityImageMetadata
1877
1257
  | SanityFileAsset
1258
+ | SanityAssetSourceData
1878
1259
  | SanityImageAsset
1879
- | SanityImageMetadata
1880
1260
  | Geopoint
1881
- | Slug
1882
- | SanityAssetSourceData
1883
1261
  export declare const internalGroqTypeReferenceTo: unique symbol