@confed/sanity-types 0.1.3-2601081457 → 0.1.3-2601131849

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 +323 -455
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2601081457",
3
+ "version": "0.1.3-2601131849",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,6 +13,44 @@
13
13
  */
14
14
 
15
15
  // Source: schema.json
16
+ export type Options = {
17
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
18
+ imagePosition?: 'left' | 'right'
19
+ spacing?: 'default' | 'minimum' | 'none'
20
+ reverseOnMobile?: boolean
21
+ }
22
+
23
+ export type HeaderSectionOptions = {
24
+ headerLevel?: 'h1' | 'h2' | 'h3' | 'h4'
25
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
26
+ topSpacing?: 'default' | 'minimum' | 'none'
27
+ bottomSpacing?: 'default' | 'minimum' | 'none'
28
+ }
29
+
30
+ export type CardOptions = {
31
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
32
+ imageAspectRatio?: '1:1' | '4:3' | '16:9'
33
+ }
34
+
35
+ export type CardGridSectionOptions = {
36
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
37
+ anchorSlug?: Slug
38
+ spacing?: 'default' | 'minimum' | 'none'
39
+ columns?: '2' | '3' | '4'
40
+ }
41
+
42
+ export type ProgramGridSectionOptions = {
43
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
44
+ anchorSlug?: Slug
45
+ spacing?: 'default' | 'minimum' | 'none'
46
+ }
47
+
48
+ export type RelatedLinksSectionOptions = {
49
+ backgroundColor?: 'light' | 'dark' | 'white' | 'black'
50
+ anchorSlug?: Slug
51
+ spacing?: 'default' | 'minimum' | 'none'
52
+ }
53
+
16
54
  export type PhoneNumber = {
17
55
  _type: 'phoneNumber'
18
56
  number: string
@@ -42,85 +80,94 @@ export type RelatedLinksSection = {
42
80
  _key: string
43
81
  } & RelatedLinkItem
44
82
  >
45
- options?: {
46
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
47
- anchorSlug?: Slug
48
- spacing?: 'default' | 'minimum' | 'none'
49
- }
83
+ options?: RelatedLinksSectionOptions
84
+ }
85
+
86
+ export type WebpageReference = {
87
+ _ref: string
88
+ _type: 'reference'
89
+ _weak?: boolean
90
+ [internalGroqTypeReferenceTo]?: 'webpage'
91
+ }
92
+
93
+ export type ProgramReference = {
94
+ _ref: string
95
+ _type: 'reference'
96
+ _weak?: boolean
97
+ [internalGroqTypeReferenceTo]?: 'program'
98
+ }
99
+
100
+ export type CampusReference = {
101
+ _ref: string
102
+ _type: 'reference'
103
+ _weak?: boolean
104
+ [internalGroqTypeReferenceTo]?: 'campus'
105
+ }
106
+
107
+ export type SchoolReference = {
108
+ _ref: string
109
+ _type: 'reference'
110
+ _weak?: boolean
111
+ [internalGroqTypeReferenceTo]?: 'school'
112
+ }
113
+
114
+ export type PersonReference = {
115
+ _ref: string
116
+ _type: 'reference'
117
+ _weak?: boolean
118
+ [internalGroqTypeReferenceTo]?: 'person'
119
+ }
120
+
121
+ export type NewsArticleReference = {
122
+ _ref: string
123
+ _type: 'reference'
124
+ _weak?: boolean
125
+ [internalGroqTypeReferenceTo]?: 'newsArticle'
126
+ }
127
+
128
+ export type ProgramFileReference = {
129
+ _ref: string
130
+ _type: 'reference'
131
+ _weak?: boolean
132
+ [internalGroqTypeReferenceTo]?: 'programFile'
133
+ }
134
+
135
+ export type EventReference = {
136
+ _ref: string
137
+ _type: 'reference'
138
+ _weak?: boolean
139
+ [internalGroqTypeReferenceTo]?: 'event'
140
+ }
141
+
142
+ export type SanityFileAssetReference = {
143
+ _ref: string
144
+ _type: 'reference'
145
+ _weak?: boolean
146
+ [internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
50
147
  }
51
148
 
52
149
  export type RelatedLinkItem = {
53
150
  _type: 'relatedLinkItem'
54
151
  label: string
55
152
  internalPage?:
56
- | {
57
- _ref: string
58
- _type: 'reference'
59
- _weak?: boolean
60
- [internalGroqTypeReferenceTo]?: 'webpage'
61
- }
62
- | {
63
- _ref: string
64
- _type: 'reference'
65
- _weak?: boolean
66
- [internalGroqTypeReferenceTo]?: 'program'
67
- }
68
- | {
69
- _ref: string
70
- _type: 'reference'
71
- _weak?: boolean
72
- [internalGroqTypeReferenceTo]?: 'campus'
73
- }
74
- | {
75
- _ref: string
76
- _type: 'reference'
77
- _weak?: boolean
78
- [internalGroqTypeReferenceTo]?: 'school'
79
- }
80
- | {
81
- _ref: string
82
- _type: 'reference'
83
- _weak?: boolean
84
- [internalGroqTypeReferenceTo]?: 'person'
85
- }
86
- | {
87
- _ref: string
88
- _type: 'reference'
89
- _weak?: boolean
90
- [internalGroqTypeReferenceTo]?: 'newsArticle'
91
- }
92
- | {
93
- _ref: string
94
- _type: 'reference'
95
- _weak?: boolean
96
- [internalGroqTypeReferenceTo]?: 'programFile'
97
- }
98
- | {
99
- _ref: string
100
- _type: 'reference'
101
- _weak?: boolean
102
- [internalGroqTypeReferenceTo]?: 'event'
103
- }
153
+ | WebpageReference
154
+ | ProgramReference
155
+ | CampusReference
156
+ | SchoolReference
157
+ | PersonReference
158
+ | NewsArticleReference
159
+ | ProgramFileReference
160
+ | EventReference
104
161
  url?: string
105
162
  isExternal?: boolean
106
163
  icon?: string
107
164
  description?: string
108
165
  file?: {
109
- asset?: {
110
- _ref: string
111
- _type: 'reference'
112
- _weak?: boolean
113
- [internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
114
- }
166
+ asset?: SanityFileAssetReference
115
167
  media?: unknown
116
168
  _type: 'file'
117
169
  }
118
- fileReference?: {
119
- _ref: string
120
- _type: 'reference'
121
- _weak?: boolean
122
- [internalGroqTypeReferenceTo]?: 'programFile'
123
- }
170
+ fileReference?: ProgramFileReference
124
171
  isHighlighted?: boolean
125
172
  }
126
173
 
@@ -161,18 +208,12 @@ export type ProgramGridSection = {
161
208
  title?: string
162
209
  eyebrow?: string
163
210
  intro?: PtSimple
164
- programs?: Array<{
165
- _ref: string
166
- _type: 'reference'
167
- _weak?: boolean
168
- _key: string
169
- [internalGroqTypeReferenceTo]?: 'program'
170
- }>
171
- options?: {
172
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
173
- anchorSlug?: Slug
174
- spacing?: 'default' | 'minimum' | 'none'
175
- }
211
+ programs?: Array<
212
+ {
213
+ _key: string
214
+ } & ProgramReference
215
+ >
216
+ options?: ProgramGridSectionOptions
176
217
  }
177
218
 
178
219
  export type CardGridSection = {
@@ -185,12 +226,7 @@ export type CardGridSection = {
185
226
  _key: string
186
227
  } & Card
187
228
  >
188
- options?: {
189
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
190
- anchorSlug?: Slug
191
- spacing?: 'default' | 'minimum' | 'none'
192
- columns?: '2' | '3' | '4'
193
- }
229
+ options?: CardGridSectionOptions
194
230
  }
195
231
 
196
232
  export type Card = {
@@ -205,10 +241,7 @@ export type Card = {
205
241
  _key: string
206
242
  } & PtButton
207
243
  >
208
- options?: {
209
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
210
- imageAspectRatio?: '1:1' | '4:3' | '16:9'
211
- }
244
+ options?: CardOptions
212
245
  }
213
246
 
214
247
  export type HeaderSection = {
@@ -216,12 +249,7 @@ export type HeaderSection = {
216
249
  header: string
217
250
  eyebrow?: string
218
251
  introText?: string
219
- options?: {
220
- headerLevel?: 'h1' | 'h2' | 'h3' | 'h4'
221
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
222
- topSpacing?: 'default' | 'minimum' | 'none'
223
- bottomSpacing?: 'default' | 'minimum' | 'none'
224
- }
252
+ options?: HeaderSectionOptions
225
253
  }
226
254
 
227
255
  export type MediaTextSection = {
@@ -233,12 +261,7 @@ export type MediaTextSection = {
233
261
  } & PtButton
234
262
  >
235
263
  image: AccessibleImage
236
- options?: {
237
- backgroundColor?: 'light' | 'dark' | 'white' | 'black'
238
- imagePosition?: 'left' | 'right'
239
- spacing?: 'default' | 'minimum' | 'none'
240
- reverseOnMobile?: boolean
241
- }
264
+ options?: Options
242
265
  }
243
266
 
244
267
  export type RichTextSection = {
@@ -285,54 +308,14 @@ export type Link = {
285
308
  _type: 'link'
286
309
  label: string
287
310
  internalPage?:
288
- | {
289
- _ref: string
290
- _type: 'reference'
291
- _weak?: boolean
292
- [internalGroqTypeReferenceTo]?: 'webpage'
293
- }
294
- | {
295
- _ref: string
296
- _type: 'reference'
297
- _weak?: boolean
298
- [internalGroqTypeReferenceTo]?: 'program'
299
- }
300
- | {
301
- _ref: string
302
- _type: 'reference'
303
- _weak?: boolean
304
- [internalGroqTypeReferenceTo]?: 'campus'
305
- }
306
- | {
307
- _ref: string
308
- _type: 'reference'
309
- _weak?: boolean
310
- [internalGroqTypeReferenceTo]?: 'school'
311
- }
312
- | {
313
- _ref: string
314
- _type: 'reference'
315
- _weak?: boolean
316
- [internalGroqTypeReferenceTo]?: 'person'
317
- }
318
- | {
319
- _ref: string
320
- _type: 'reference'
321
- _weak?: boolean
322
- [internalGroqTypeReferenceTo]?: 'newsArticle'
323
- }
324
- | {
325
- _ref: string
326
- _type: 'reference'
327
- _weak?: boolean
328
- [internalGroqTypeReferenceTo]?: 'programFile'
329
- }
330
- | {
331
- _ref: string
332
- _type: 'reference'
333
- _weak?: boolean
334
- [internalGroqTypeReferenceTo]?: 'event'
335
- }
311
+ | WebpageReference
312
+ | ProgramReference
313
+ | CampusReference
314
+ | SchoolReference
315
+ | PersonReference
316
+ | NewsArticleReference
317
+ | ProgramFileReference
318
+ | EventReference
336
319
  url?: string
337
320
  isExternal?: boolean
338
321
  icon?: string
@@ -350,14 +333,16 @@ export type MenuItem = {
350
333
  isHighlighted?: boolean
351
334
  }
352
335
 
336
+ export type SanityImageAssetReference = {
337
+ _ref: string
338
+ _type: 'reference'
339
+ _weak?: boolean
340
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
341
+ }
342
+
353
343
  export type AccessibleImage = {
354
344
  _type: 'accessibleImage'
355
- asset?: {
356
- _ref: string
357
- _type: 'reference'
358
- _weak?: boolean
359
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
360
- }
345
+ asset?: SanityImageAssetReference
361
346
  media?: unknown
362
347
  hotspot?: SanityImageHotspot
363
348
  crop?: SanityImageCrop
@@ -409,12 +394,7 @@ export type PtBasic = Array<
409
394
  _key: string
410
395
  }
411
396
  | {
412
- asset?: {
413
- _ref: string
414
- _type: 'reference'
415
- _weak?: boolean
416
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
417
- }
397
+ asset?: SanityImageAssetReference
418
398
  media?: unknown
419
399
  hotspot?: SanityImageHotspot
420
400
  crop?: SanityImageCrop
@@ -457,54 +437,14 @@ export type PtBasic = Array<
457
437
  export type PtLink = {
458
438
  _type: 'ptLink'
459
439
  internalPage?:
460
- | {
461
- _ref: string
462
- _type: 'reference'
463
- _weak?: boolean
464
- [internalGroqTypeReferenceTo]?: 'webpage'
465
- }
466
- | {
467
- _ref: string
468
- _type: 'reference'
469
- _weak?: boolean
470
- [internalGroqTypeReferenceTo]?: 'program'
471
- }
472
- | {
473
- _ref: string
474
- _type: 'reference'
475
- _weak?: boolean
476
- [internalGroqTypeReferenceTo]?: 'campus'
477
- }
478
- | {
479
- _ref: string
480
- _type: 'reference'
481
- _weak?: boolean
482
- [internalGroqTypeReferenceTo]?: 'school'
483
- }
484
- | {
485
- _ref: string
486
- _type: 'reference'
487
- _weak?: boolean
488
- [internalGroqTypeReferenceTo]?: 'person'
489
- }
490
- | {
491
- _ref: string
492
- _type: 'reference'
493
- _weak?: boolean
494
- [internalGroqTypeReferenceTo]?: 'programFile'
495
- }
496
- | {
497
- _ref: string
498
- _type: 'reference'
499
- _weak?: boolean
500
- [internalGroqTypeReferenceTo]?: 'newsArticle'
501
- }
502
- | {
503
- _ref: string
504
- _type: 'reference'
505
- _weak?: boolean
506
- [internalGroqTypeReferenceTo]?: 'event'
507
- }
440
+ | WebpageReference
441
+ | ProgramReference
442
+ | CampusReference
443
+ | SchoolReference
444
+ | PersonReference
445
+ | ProgramFileReference
446
+ | NewsArticleReference
447
+ | EventReference
508
448
  href?: string
509
449
  openInNewTab?: boolean
510
450
  }
@@ -515,65 +455,20 @@ export type PtButton = {
515
455
  text: string
516
456
  link?: string
517
457
  internalPage?:
518
- | {
519
- _ref: string
520
- _type: 'reference'
521
- _weak?: boolean
522
- [internalGroqTypeReferenceTo]?: 'webpage'
523
- }
524
- | {
525
- _ref: string
526
- _type: 'reference'
527
- _weak?: boolean
528
- [internalGroqTypeReferenceTo]?: 'program'
529
- }
530
- | {
531
- _ref: string
532
- _type: 'reference'
533
- _weak?: boolean
534
- [internalGroqTypeReferenceTo]?: 'campus'
535
- }
536
- | {
537
- _ref: string
538
- _type: 'reference'
539
- _weak?: boolean
540
- [internalGroqTypeReferenceTo]?: 'school'
541
- }
542
- | {
543
- _ref: string
544
- _type: 'reference'
545
- _weak?: boolean
546
- [internalGroqTypeReferenceTo]?: 'person'
547
- }
548
- | {
549
- _ref: string
550
- _type: 'reference'
551
- _weak?: boolean
552
- [internalGroqTypeReferenceTo]?: 'newsArticle'
553
- }
554
- | {
555
- _ref: string
556
- _type: 'reference'
557
- _weak?: boolean
558
- [internalGroqTypeReferenceTo]?: 'programFile'
559
- }
560
- | {
561
- _ref: string
562
- _type: 'reference'
563
- _weak?: boolean
564
- [internalGroqTypeReferenceTo]?: 'event'
565
- }
458
+ | WebpageReference
459
+ | ProgramReference
460
+ | CampusReference
461
+ | SchoolReference
462
+ | PersonReference
463
+ | NewsArticleReference
464
+ | ProgramFileReference
465
+ | EventReference
566
466
  resolvedPath?: string
567
467
  }
568
468
 
569
469
  export type Figure = {
570
470
  _type: 'figure'
571
- asset?: {
572
- _ref: string
573
- _type: 'reference'
574
- _weak?: boolean
575
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
576
- }
471
+ asset?: SanityImageAssetReference
577
472
  media?: unknown
578
473
  hotspot?: SanityImageHotspot
579
474
  crop?: SanityImageCrop
@@ -606,12 +501,7 @@ export type Seo = {
606
501
  description?: string
607
502
  keywords?: Array<string>
608
503
  image?: {
609
- asset?: {
610
- _ref: string
611
- _type: 'reference'
612
- _weak?: boolean
613
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
614
- }
504
+ asset?: SanityImageAssetReference
615
505
  media?: unknown
616
506
  hotspot?: SanityImageHotspot
617
507
  crop?: SanityImageCrop
@@ -635,6 +525,13 @@ export type Redirect = {
635
525
  createdAt?: string
636
526
  }
637
527
 
528
+ export type ScholarshipTagReference = {
529
+ _ref: string
530
+ _type: 'reference'
531
+ _weak?: boolean
532
+ [internalGroqTypeReferenceTo]?: 'scholarshipTag'
533
+ }
534
+
638
535
  export type Scholarship = {
639
536
  _id: string
640
537
  _type: 'scholarship'
@@ -650,13 +547,11 @@ export type Scholarship = {
650
547
  featuredImage?: AccessibleImage
651
548
  awardValueDisplay?: string
652
549
  awardAmount?: number
653
- audienceTags?: Array<{
654
- _ref: string
655
- _type: 'reference'
656
- _weak?: boolean
657
- _key: string
658
- [internalGroqTypeReferenceTo]?: 'scholarshipTag'
659
- }>
550
+ audienceTags?: Array<
551
+ {
552
+ _key: string
553
+ } & ScholarshipTagReference
554
+ >
660
555
  deadline?: string
661
556
  deadlineNote?: string
662
557
  applyUrl?: string
@@ -793,6 +688,20 @@ export type NewsArticle = {
793
688
  seo?: Seo
794
689
  }
795
690
 
691
+ export type AreaReference = {
692
+ _ref: string
693
+ _type: 'reference'
694
+ _weak?: boolean
695
+ [internalGroqTypeReferenceTo]?: 'area'
696
+ }
697
+
698
+ export type MenuReference = {
699
+ _ref: string
700
+ _type: 'reference'
701
+ _weak?: boolean
702
+ [internalGroqTypeReferenceTo]?: 'menu'
703
+ }
704
+
796
705
  export type Webpage = {
797
706
  _id: string
798
707
  _type: 'webpage'
@@ -841,40 +750,11 @@ export type Webpage = {
841
750
  _key: string
842
751
  } & RelatedLinksSection)
843
752
  >
844
- parentPage?:
845
- | {
846
- _ref: string
847
- _type: 'reference'
848
- _weak?: boolean
849
- [internalGroqTypeReferenceTo]?: 'webpage'
850
- }
851
- | {
852
- _ref: string
853
- _type: 'reference'
854
- _weak?: boolean
855
- [internalGroqTypeReferenceTo]?: 'program'
856
- }
857
- | {
858
- _ref: string
859
- _type: 'reference'
860
- _weak?: boolean
861
- [internalGroqTypeReferenceTo]?: 'campus'
862
- }
863
- | {
864
- _ref: string
865
- _type: 'reference'
866
- _weak?: boolean
867
- [internalGroqTypeReferenceTo]?: 'area'
868
- }
753
+ parentPage?: WebpageReference | ProgramReference | CampusReference | AreaReference
869
754
  pageType: 'webpage' | 'department'
870
755
  departmentContactDetails?: PtBasic
871
756
  isPublished?: boolean
872
- relatedMenu?: {
873
- _ref: string
874
- _type: 'reference'
875
- _weak?: boolean
876
- [internalGroqTypeReferenceTo]?: 'menu'
877
- }
757
+ relatedMenu?: MenuReference
878
758
  seo?: Seo
879
759
  }
880
760
 
@@ -886,12 +766,7 @@ export type Facility = {
886
766
  _rev: string
887
767
  title: string
888
768
  slug: Slug
889
- campus: {
890
- _ref: string
891
- _type: 'reference'
892
- _weak?: boolean
893
- [internalGroqTypeReferenceTo]?: 'campus'
894
- }
769
+ campus: CampusReference
895
770
  description?: PtBasic
896
771
  isActive?: boolean
897
772
  address?: CanadianAddress
@@ -913,12 +788,7 @@ export type ProgramFile = {
913
788
  _rev: string
914
789
  title: string
915
790
  file: {
916
- asset?: {
917
- _ref: string
918
- _type: 'reference'
919
- _weak?: boolean
920
- [internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
921
- }
791
+ asset?: SanityFileAssetReference
922
792
  media?: unknown
923
793
  _type: 'file'
924
794
  }
@@ -941,13 +811,11 @@ export type Testimonial = {
941
811
  _rev: string
942
812
  authorName: string
943
813
  authorTitle?: string
944
- programs?: Array<{
945
- _ref: string
946
- _type: 'reference'
947
- _weak?: boolean
948
- _key: string
949
- [internalGroqTypeReferenceTo]?: 'program'
950
- }>
814
+ programs?: Array<
815
+ {
816
+ _key: string
817
+ } & ProgramReference
818
+ >
951
819
  quote: string
952
820
  body?: PtBasic
953
821
  videoUrl?: string
@@ -980,13 +848,11 @@ export type Campus = {
980
848
  image?: AccessibleImage
981
849
  description?: PtBasic
982
850
  virtualTourUrl?: string
983
- staff?: Array<{
984
- _ref: string
985
- _type: 'reference'
986
- _weak?: boolean
987
- _key: string
988
- [internalGroqTypeReferenceTo]?: 'person'
989
- }>
851
+ staff?: Array<
852
+ {
853
+ _key: string
854
+ } & PersonReference
855
+ >
990
856
  pageBuilder?: Array<
991
857
  | ({
992
858
  _key: string
@@ -1076,36 +942,38 @@ export type Area = {
1076
942
  seo?: Seo
1077
943
  }
1078
944
 
945
+ export type DurationReference = {
946
+ _ref: string
947
+ _type: 'reference'
948
+ _weak?: boolean
949
+ [internalGroqTypeReferenceTo]?: 'duration'
950
+ }
951
+
952
+ export type AdmissionRequirementsReference = {
953
+ _ref: string
954
+ _type: 'reference'
955
+ _weak?: boolean
956
+ [internalGroqTypeReferenceTo]?: 'admissionRequirements'
957
+ }
958
+
1079
959
  export type ProgramIntake = {
1080
960
  _id: string
1081
961
  _type: 'programIntake'
1082
962
  _createdAt: string
1083
963
  _updatedAt: string
1084
964
  _rev: string
1085
- program: {
1086
- _ref: string
1087
- _type: 'reference'
1088
- _weak?: boolean
1089
- [internalGroqTypeReferenceTo]?: 'program'
1090
- }
965
+ program: ProgramReference
1091
966
  programCode: string
1092
967
  season: 'Fall' | 'Winter' | 'Spring' | 'Summer' | 'Fall, Winter, Spring' | 'Any Time'
1093
- duration: {
1094
- _ref: string
1095
- _type: 'reference'
1096
- _weak?: boolean
1097
- [internalGroqTypeReferenceTo]?: 'duration'
1098
- }
968
+ duration: DurationReference
1099
969
  deliveryMethod: 'In-Person' | 'Online Live' | 'Online Self-Paced' | 'Hybrid'
1100
970
  studyMode: 'Full-Time' | 'Part-Time'
1101
971
  isAccelerated?: boolean
1102
- campusAvailability?: Array<{
1103
- _ref: string
1104
- _type: 'reference'
1105
- _weak?: boolean
1106
- _key: string
1107
- [internalGroqTypeReferenceTo]?: 'campus'
1108
- }>
972
+ campusAvailability?: Array<
973
+ {
974
+ _key: string
975
+ } & CampusReference
976
+ >
1109
977
  isInternational?: boolean
1110
978
  applicationMethod?:
1111
979
  | 'OCAS Application'
@@ -1113,19 +981,12 @@ export type ProgramIntake = {
1113
981
  | 'Contact College'
1114
982
  | 'Skilled Trades Ontario / MLITSD'
1115
983
  | 'Other'
1116
- coordinators?: Array<{
1117
- _ref: string
1118
- _type: 'reference'
1119
- _weak?: boolean
1120
- _key: string
1121
- [internalGroqTypeReferenceTo]?: 'person'
1122
- }>
1123
- admissionRequirements?: {
1124
- _ref: string
1125
- _type: 'reference'
1126
- _weak?: boolean
1127
- [internalGroqTypeReferenceTo]?: 'admissionRequirements'
1128
- }
984
+ coordinators?: Array<
985
+ {
986
+ _key: string
987
+ } & PersonReference
988
+ >
989
+ admissionRequirements?: AdmissionRequirementsReference
1129
990
  notes?: string
1130
991
  }
1131
992
 
@@ -1135,12 +996,7 @@ export type AdmissionRequirements = {
1135
996
  _createdAt: string
1136
997
  _updatedAt: string
1137
998
  _rev: string
1138
- program?: {
1139
- _ref: string
1140
- _type: 'reference'
1141
- _weak?: boolean
1142
- [internalGroqTypeReferenceTo]?: 'program'
1143
- }
999
+ program?: ProgramReference
1144
1000
  domesticRequirements?: PtBasic
1145
1001
  internationalRequirements?: PtBasic
1146
1002
  alternativePathways?: PtBasic
@@ -1165,6 +1021,27 @@ export type Duration = {
1165
1021
  isEnabled?: boolean
1166
1022
  }
1167
1023
 
1024
+ export type CredentialReference = {
1025
+ _ref: string
1026
+ _type: 'reference'
1027
+ _weak?: boolean
1028
+ [internalGroqTypeReferenceTo]?: 'credential'
1029
+ }
1030
+
1031
+ export type ProgramIntakeReference = {
1032
+ _ref: string
1033
+ _type: 'reference'
1034
+ _weak?: boolean
1035
+ [internalGroqTypeReferenceTo]?: 'programIntake'
1036
+ }
1037
+
1038
+ export type TestimonialReference = {
1039
+ _ref: string
1040
+ _type: 'reference'
1041
+ _weak?: boolean
1042
+ [internalGroqTypeReferenceTo]?: 'testimonial'
1043
+ }
1044
+
1168
1045
  export type Program = {
1169
1046
  _id: string
1170
1047
  _type: 'program'
@@ -1181,32 +1058,18 @@ export type Program = {
1181
1058
  _key: string
1182
1059
  } & AccessibleImage
1183
1060
  >
1184
- school?: {
1185
- _ref: string
1186
- _type: 'reference'
1187
- _weak?: boolean
1188
- [internalGroqTypeReferenceTo]?: 'school'
1189
- }
1190
- credential?: {
1191
- _ref: string
1192
- _type: 'reference'
1193
- _weak?: boolean
1194
- [internalGroqTypeReferenceTo]?: 'credential'
1195
- }
1196
- areasOfInterest?: Array<{
1197
- _ref: string
1198
- _type: 'reference'
1199
- _weak?: boolean
1200
- _key: string
1201
- [internalGroqTypeReferenceTo]?: 'area'
1202
- }>
1203
- relatedIntakes?: Array<{
1204
- _ref: string
1205
- _type: 'reference'
1206
- _weak?: boolean
1207
- _key: string
1208
- [internalGroqTypeReferenceTo]?: 'programIntake'
1209
- }>
1061
+ school?: SchoolReference
1062
+ credential?: CredentialReference
1063
+ areasOfInterest?: Array<
1064
+ {
1065
+ _key: string
1066
+ } & AreaReference
1067
+ >
1068
+ relatedIntakes?: Array<
1069
+ {
1070
+ _key: string
1071
+ } & ProgramIntakeReference
1072
+ >
1210
1073
  mcuCode?: string
1211
1074
  apsCode?: string
1212
1075
  cipCode?: string
@@ -1222,47 +1085,32 @@ export type Program = {
1222
1085
  programNotes?: PtBasic
1223
1086
  coursesNotes?: PtBasic
1224
1087
  feesNotes?: PtBasic
1225
- coordinators?: Array<{
1226
- _ref: string
1227
- _type: 'reference'
1228
- _weak?: boolean
1229
- _key: string
1230
- [internalGroqTypeReferenceTo]?: 'person'
1231
- }>
1232
- faculty?: Array<{
1233
- _ref: string
1234
- _type: 'reference'
1235
- _weak?: boolean
1236
- _key: string
1237
- [internalGroqTypeReferenceTo]?: 'person'
1238
- }>
1239
- testimonials?: Array<{
1240
- _ref: string
1241
- _type: 'reference'
1242
- _weak?: boolean
1243
- _key: string
1244
- [internalGroqTypeReferenceTo]?: 'testimonial'
1245
- }>
1246
- relatedPrograms?: Array<{
1247
- _ref: string
1248
- _type: 'reference'
1249
- _weak?: boolean
1250
- _key: string
1251
- [internalGroqTypeReferenceTo]?: 'program'
1252
- }>
1253
- files?: Array<{
1254
- _ref: string
1255
- _type: 'reference'
1256
- _weak?: boolean
1257
- _key: string
1258
- [internalGroqTypeReferenceTo]?: 'programFile'
1259
- }>
1260
- relatedMenu?: {
1261
- _ref: string
1262
- _type: 'reference'
1263
- _weak?: boolean
1264
- [internalGroqTypeReferenceTo]?: 'menu'
1265
- }
1088
+ coordinators?: Array<
1089
+ {
1090
+ _key: string
1091
+ } & PersonReference
1092
+ >
1093
+ faculty?: Array<
1094
+ {
1095
+ _key: string
1096
+ } & PersonReference
1097
+ >
1098
+ testimonials?: Array<
1099
+ {
1100
+ _key: string
1101
+ } & TestimonialReference
1102
+ >
1103
+ relatedPrograms?: Array<
1104
+ {
1105
+ _key: string
1106
+ } & ProgramReference
1107
+ >
1108
+ files?: Array<
1109
+ {
1110
+ _key: string
1111
+ } & ProgramFileReference
1112
+ >
1113
+ relatedMenu?: MenuReference
1266
1114
  seo?: Seo
1267
1115
  }
1268
1116
 
@@ -1318,21 +1166,14 @@ export type School = {
1318
1166
  bannerName?: string
1319
1167
  slug: Slug
1320
1168
  description?: string
1321
- dean?: {
1322
- _ref: string
1323
- _type: 'reference'
1324
- _weak?: boolean
1325
- [internalGroqTypeReferenceTo]?: 'person'
1326
- }
1169
+ dean?: PersonReference
1327
1170
  schoolCode?: string
1328
1171
  image?: AccessibleImage
1329
- programs?: Array<{
1330
- _ref: string
1331
- _type: 'reference'
1332
- _weak?: boolean
1333
- _key: string
1334
- [internalGroqTypeReferenceTo]?: 'program'
1335
- }>
1172
+ programs?: Array<
1173
+ {
1174
+ _key: string
1175
+ } & ProgramReference
1176
+ >
1336
1177
  }
1337
1178
 
1338
1179
  export type Person = {
@@ -1362,12 +1203,7 @@ export type Person = {
1362
1203
  >
1363
1204
  recruitmentConnectLink?: string
1364
1205
  affiliations?: Array<{
1365
- program?: {
1366
- _ref: string
1367
- _type: 'reference'
1368
- _weak?: boolean
1369
- [internalGroqTypeReferenceTo]?: 'program'
1370
- }
1206
+ program?: ProgramReference
1371
1207
  role?: 'coordinator' | 'instructor' | 'advisor' | 'faculty'
1372
1208
  _key: string
1373
1209
  }>
@@ -1439,6 +1275,7 @@ export type SanityImageMetadata = {
1439
1275
  palette?: SanityImagePalette
1440
1276
  lqip?: string
1441
1277
  blurHash?: string
1278
+ thumbHash?: string
1442
1279
  hasAlpha?: boolean
1443
1280
  isOpaque?: boolean
1444
1281
  }
@@ -1503,9 +1340,24 @@ export type Geopoint = {
1503
1340
  }
1504
1341
 
1505
1342
  export type AllSanitySchemaTypes =
1343
+ | Options
1344
+ | HeaderSectionOptions
1345
+ | CardOptions
1346
+ | CardGridSectionOptions
1347
+ | ProgramGridSectionOptions
1348
+ | RelatedLinksSectionOptions
1506
1349
  | PhoneNumber
1507
1350
  | CanadianAddress
1508
1351
  | RelatedLinksSection
1352
+ | WebpageReference
1353
+ | ProgramReference
1354
+ | CampusReference
1355
+ | SchoolReference
1356
+ | PersonReference
1357
+ | NewsArticleReference
1358
+ | ProgramFileReference
1359
+ | EventReference
1360
+ | SanityFileAssetReference
1509
1361
  | RelatedLinkItem
1510
1362
  | SimpleCallToActionSection
1511
1363
  | CallToActionSection
@@ -1520,6 +1372,7 @@ export type AllSanitySchemaTypes =
1520
1372
  | FaqItem
1521
1373
  | Link
1522
1374
  | MenuItem
1375
+ | SanityImageAssetReference
1523
1376
  | AccessibleImage
1524
1377
  | PtSimple
1525
1378
  | PtBasic
@@ -1530,20 +1383,28 @@ export type AllSanitySchemaTypes =
1530
1383
  | SanityImageHotspot
1531
1384
  | Seo
1532
1385
  | Redirect
1386
+ | ScholarshipTagReference
1533
1387
  | Scholarship
1534
1388
  | Slug
1535
1389
  | ScholarshipTag
1536
1390
  | Event
1537
1391
  | NewsArticle
1392
+ | AreaReference
1393
+ | MenuReference
1538
1394
  | Webpage
1539
1395
  | Facility
1540
1396
  | ProgramFile
1541
1397
  | Testimonial
1542
1398
  | Campus
1543
1399
  | Area
1400
+ | DurationReference
1401
+ | AdmissionRequirementsReference
1544
1402
  | ProgramIntake
1545
1403
  | AdmissionRequirements
1546
1404
  | Duration
1405
+ | CredentialReference
1406
+ | ProgramIntakeReference
1407
+ | TestimonialReference
1547
1408
  | Program
1548
1409
  | Menu
1549
1410
  | Credential
@@ -1561,4 +1422,11 @@ export type AllSanitySchemaTypes =
1561
1422
  | SanityAssetSourceData
1562
1423
  | SanityImageAsset
1563
1424
  | Geopoint
1425
+
1564
1426
  export declare const internalGroqTypeReferenceTo: unique symbol
1427
+
1428
+ type ArrayOf<T> = Array<
1429
+ T & {
1430
+ _key: string
1431
+ }
1432
+ >