@confed/sanity-types 0.1.3-2511072057 → 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 +200 -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-2511121428",
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,42 @@ 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
+ 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
+
844
388
  export type Redirect = {
845
389
  _id: string
846
390
  _type: 'redirect'
@@ -901,6 +445,53 @@ export type Redirect = {
901
445
  createdAt?: string
902
446
  }
903
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
+
904
495
  export type Event = {
905
496
  _id: string
906
497
  _type: 'event'
@@ -909,20 +500,7 @@ export type Event = {
909
500
  _rev: string
910
501
  title: string
911
502
  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
- }
503
+ mainImage?: AccessibleImage
926
504
  description?: PtBasic
927
505
  startDate: string
928
506
  endDate: string
@@ -977,29 +555,16 @@ export type Event = {
977
555
  dateCreated?: string
978
556
  seo?: Seo
979
557
  }
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
- }
558
+
559
+ export type NewsArticle = {
560
+ _id: string
561
+ _type: 'newsArticle'
562
+ _createdAt: string
563
+ _updatedAt: string
564
+ _rev: string
565
+ title: string
566
+ slug: Slug
567
+ mainImage?: AccessibleImage
1003
568
  body?: PtBasic
1004
569
  categories: Array<'media' | 'students' | 'employee' | 'alumni'>
1005
570
  dateCreated?: string
@@ -1020,20 +585,7 @@ export type Webpage = {
1020
585
  _key: string
1021
586
  } & PtButton
1022
587
  >
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
- }
588
+ mainImage?: AccessibleImage
1037
589
  introduction?: string
1038
590
  body?: PtBasic
1039
591
  pageBuilder?: Array<
@@ -1117,47 +669,15 @@ export type Facility = {
1117
669
  isActive?: boolean
1118
670
  address?: CanadianAddress
1119
671
  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
- }>
672
+ image?: AccessibleImage
673
+ gallery?: Array<
674
+ {
675
+ _key: string
676
+ } & AccessibleImage
677
+ >
1149
678
  seo?: Seo
1150
679
  }
1151
680
 
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
681
  export type ProgramFile = {
1162
682
  _id: string
1163
683
  _type: 'programFile'
@@ -1204,20 +724,7 @@ export type Testimonial = {
1204
724
  quote: string
1205
725
  body?: PtBasic
1206
726
  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
- }
727
+ thumbnail?: AccessibleImage
1221
728
  rating?: number
1222
729
  datePublished?: string
1223
730
  slug: Slug
@@ -1235,20 +742,7 @@ export type Campus = {
1235
742
  city?: string
1236
743
  slug: Slug
1237
744
  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
- }
745
+ image?: AccessibleImage
1252
746
  description?: PtBasic
1253
747
  virtualTourUrl?: string
1254
748
  staff?: Array<{
@@ -1269,20 +763,7 @@ export type Area = {
1269
763
  _rev: string
1270
764
  title: string
1271
765
  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
- }
766
+ image?: AccessibleImage
1286
767
  description?: string
1287
768
  isEnabled?: boolean
1288
769
  }
@@ -1381,35 +862,12 @@ export type Program = {
1381
862
  slug: Slug
1382
863
  shortLink?: string
1383
864
  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
- }>
865
+ featuredImage?: AccessibleImage
866
+ gallery?: Array<
867
+ {
868
+ _key: string
869
+ } & AccessibleImage
870
+ >
1413
871
  school?: {
1414
872
  _ref: string
1415
873
  _type: 'reference'
@@ -1493,26 +951,6 @@ export type Program = {
1493
951
  seo?: Seo
1494
952
  }
1495
953
 
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
954
  export type Menu = {
1517
955
  _id: string
1518
956
  _type: 'menu'
@@ -1532,6 +970,14 @@ export type Menu = {
1532
970
  maxDepth?: number
1533
971
  }
1534
972
 
973
+ export type Code = {
974
+ _type: 'code'
975
+ language?: string
976
+ filename?: string
977
+ code?: string
978
+ highlightedLines?: Array<number>
979
+ }
980
+
1535
981
  export type Credential = {
1536
982
  _id: string
1537
983
  _type: 'credential'
@@ -1572,20 +1018,7 @@ export type School = {
1572
1018
  [internalGroqTypeReferenceTo]?: 'person'
1573
1019
  }
1574
1020
  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
- }
1021
+ image?: AccessibleImage
1589
1022
  programs?: Array<{
1590
1023
  _ref: string
1591
1024
  _type: 'reference'
@@ -1614,20 +1047,7 @@ export type Person = {
1614
1047
  url?: string
1615
1048
  _key: string
1616
1049
  }>
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
- }
1050
+ image?: AccessibleImage
1631
1051
  jobTitle?: string
1632
1052
  siteRoles?: Array<
1633
1053
  'faculty' | 'staff' | 'recruitment' | 'internationalRecruitment' | 'testimonial' | 'dean'
@@ -1664,29 +1084,6 @@ export type Person = {
1664
1084
  isEnabled?: boolean
1665
1085
  }
1666
1086
 
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
1087
  export type Table = {
1691
1088
  _type: 'table'
1692
1089
  rows?: Array<
@@ -1736,20 +1133,15 @@ export type SanityImageDimensions = {
1736
1133
  aspectRatio: number
1737
1134
  }
1738
1135
 
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
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
1753
1145
  }
1754
1146
 
1755
1147
  export type SanityFileAsset = {
@@ -1774,6 +1166,13 @@ export type SanityFileAsset = {
1774
1166
  source?: SanityAssetSourceData
1775
1167
  }
1776
1168
 
1169
+ export type SanityAssetSourceData = {
1170
+ _type: 'sanity.assetSourceData'
1171
+ name?: string
1172
+ id?: string
1173
+ url?: string
1174
+ }
1175
+
1777
1176
  export type SanityImageAsset = {
1778
1177
  _id: string
1779
1178
  _type: 'sanity.imageAsset'
@@ -1797,17 +1196,6 @@ export type SanityImageAsset = {
1797
1196
  source?: SanityAssetSourceData
1798
1197
  }
1799
1198
 
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
1199
  export type Geopoint = {
1812
1200
  _type: 'geopoint'
1813
1201
  lat?: number
@@ -1815,20 +1203,8 @@ export type Geopoint = {
1815
1203
  alt?: number
1816
1204
  }
1817
1205
 
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
1206
  export type AllSanitySchemaTypes =
1207
+ | CanadianAddress
1832
1208
  | SimpleCallToActionSection
1833
1209
  | CallToActionSection
1834
1210
  | CardGridSection
@@ -1839,18 +1215,24 @@ export type AllSanitySchemaTypes =
1839
1215
  | GallerySection
1840
1216
  | FaqSection
1841
1217
  | FaqItem
1842
- | MenuItem
1843
1218
  | Link
1219
+ | MenuItem
1220
+ | AccessibleImage
1844
1221
  | PtSimple
1845
1222
  | PtBasic
1846
1223
  | PtButton
1847
1224
  | Figure
1225
+ | SanityImageCrop
1226
+ | SanityImageHotspot
1227
+ | Seo
1848
1228
  | Redirect
1229
+ | Scholarship
1230
+ | Slug
1231
+ | ScholarshipTag
1849
1232
  | Event
1850
1233
  | NewsArticle
1851
1234
  | Webpage
1852
1235
  | Facility
1853
- | CanadianAddress
1854
1236
  | ProgramFile
1855
1237
  | Testimonial
1856
1238
  | Campus
@@ -1859,25 +1241,20 @@ export type AllSanitySchemaTypes =
1859
1241
  | AdmissionRequirements
1860
1242
  | Duration
1861
1243
  | Program
1862
- | Seo
1863
1244
  | Menu
1245
+ | Code
1864
1246
  | Credential
1865
1247
  | School
1866
1248
  | Person
1867
- | AccessibleImage
1868
- | Code
1869
1249
  | Table
1870
1250
  | TableRow
1871
1251
  | MediaTag
1872
1252
  | SanityImagePaletteSwatch
1873
1253
  | SanityImagePalette
1874
1254
  | SanityImageDimensions
1875
- | SanityImageHotspot
1876
- | SanityImageCrop
1255
+ | SanityImageMetadata
1877
1256
  | SanityFileAsset
1257
+ | SanityAssetSourceData
1878
1258
  | SanityImageAsset
1879
- | SanityImageMetadata
1880
1259
  | Geopoint
1881
- | Slug
1882
- | SanityAssetSourceData
1883
1260
  export declare const internalGroqTypeReferenceTo: unique symbol