@confed/sanity-types 0.1.3-2601072105 → 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 -456
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.3-2601072105",
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
@@ -348,17 +331,18 @@ export type MenuItem = {
348
331
  } & MenuItem
349
332
  >
350
333
  isHighlighted?: boolean
351
- order?: number
334
+ }
335
+
336
+ export type SanityImageAssetReference = {
337
+ _ref: string
338
+ _type: 'reference'
339
+ _weak?: boolean
340
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
352
341
  }
353
342
 
354
343
  export type AccessibleImage = {
355
344
  _type: 'accessibleImage'
356
- asset?: {
357
- _ref: string
358
- _type: 'reference'
359
- _weak?: boolean
360
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
361
- }
345
+ asset?: SanityImageAssetReference
362
346
  media?: unknown
363
347
  hotspot?: SanityImageHotspot
364
348
  crop?: SanityImageCrop
@@ -410,12 +394,7 @@ export type PtBasic = Array<
410
394
  _key: string
411
395
  }
412
396
  | {
413
- asset?: {
414
- _ref: string
415
- _type: 'reference'
416
- _weak?: boolean
417
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
418
- }
397
+ asset?: SanityImageAssetReference
419
398
  media?: unknown
420
399
  hotspot?: SanityImageHotspot
421
400
  crop?: SanityImageCrop
@@ -458,54 +437,14 @@ export type PtBasic = Array<
458
437
  export type PtLink = {
459
438
  _type: 'ptLink'
460
439
  internalPage?:
461
- | {
462
- _ref: string
463
- _type: 'reference'
464
- _weak?: boolean
465
- [internalGroqTypeReferenceTo]?: 'webpage'
466
- }
467
- | {
468
- _ref: string
469
- _type: 'reference'
470
- _weak?: boolean
471
- [internalGroqTypeReferenceTo]?: 'program'
472
- }
473
- | {
474
- _ref: string
475
- _type: 'reference'
476
- _weak?: boolean
477
- [internalGroqTypeReferenceTo]?: 'campus'
478
- }
479
- | {
480
- _ref: string
481
- _type: 'reference'
482
- _weak?: boolean
483
- [internalGroqTypeReferenceTo]?: 'school'
484
- }
485
- | {
486
- _ref: string
487
- _type: 'reference'
488
- _weak?: boolean
489
- [internalGroqTypeReferenceTo]?: 'person'
490
- }
491
- | {
492
- _ref: string
493
- _type: 'reference'
494
- _weak?: boolean
495
- [internalGroqTypeReferenceTo]?: 'programFile'
496
- }
497
- | {
498
- _ref: string
499
- _type: 'reference'
500
- _weak?: boolean
501
- [internalGroqTypeReferenceTo]?: 'newsArticle'
502
- }
503
- | {
504
- _ref: string
505
- _type: 'reference'
506
- _weak?: boolean
507
- [internalGroqTypeReferenceTo]?: 'event'
508
- }
440
+ | WebpageReference
441
+ | ProgramReference
442
+ | CampusReference
443
+ | SchoolReference
444
+ | PersonReference
445
+ | ProgramFileReference
446
+ | NewsArticleReference
447
+ | EventReference
509
448
  href?: string
510
449
  openInNewTab?: boolean
511
450
  }
@@ -516,65 +455,20 @@ export type PtButton = {
516
455
  text: string
517
456
  link?: string
518
457
  internalPage?:
519
- | {
520
- _ref: string
521
- _type: 'reference'
522
- _weak?: boolean
523
- [internalGroqTypeReferenceTo]?: 'webpage'
524
- }
525
- | {
526
- _ref: string
527
- _type: 'reference'
528
- _weak?: boolean
529
- [internalGroqTypeReferenceTo]?: 'program'
530
- }
531
- | {
532
- _ref: string
533
- _type: 'reference'
534
- _weak?: boolean
535
- [internalGroqTypeReferenceTo]?: 'campus'
536
- }
537
- | {
538
- _ref: string
539
- _type: 'reference'
540
- _weak?: boolean
541
- [internalGroqTypeReferenceTo]?: 'school'
542
- }
543
- | {
544
- _ref: string
545
- _type: 'reference'
546
- _weak?: boolean
547
- [internalGroqTypeReferenceTo]?: 'person'
548
- }
549
- | {
550
- _ref: string
551
- _type: 'reference'
552
- _weak?: boolean
553
- [internalGroqTypeReferenceTo]?: 'newsArticle'
554
- }
555
- | {
556
- _ref: string
557
- _type: 'reference'
558
- _weak?: boolean
559
- [internalGroqTypeReferenceTo]?: 'programFile'
560
- }
561
- | {
562
- _ref: string
563
- _type: 'reference'
564
- _weak?: boolean
565
- [internalGroqTypeReferenceTo]?: 'event'
566
- }
458
+ | WebpageReference
459
+ | ProgramReference
460
+ | CampusReference
461
+ | SchoolReference
462
+ | PersonReference
463
+ | NewsArticleReference
464
+ | ProgramFileReference
465
+ | EventReference
567
466
  resolvedPath?: string
568
467
  }
569
468
 
570
469
  export type Figure = {
571
470
  _type: 'figure'
572
- asset?: {
573
- _ref: string
574
- _type: 'reference'
575
- _weak?: boolean
576
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
577
- }
471
+ asset?: SanityImageAssetReference
578
472
  media?: unknown
579
473
  hotspot?: SanityImageHotspot
580
474
  crop?: SanityImageCrop
@@ -607,12 +501,7 @@ export type Seo = {
607
501
  description?: string
608
502
  keywords?: Array<string>
609
503
  image?: {
610
- asset?: {
611
- _ref: string
612
- _type: 'reference'
613
- _weak?: boolean
614
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
615
- }
504
+ asset?: SanityImageAssetReference
616
505
  media?: unknown
617
506
  hotspot?: SanityImageHotspot
618
507
  crop?: SanityImageCrop
@@ -636,6 +525,13 @@ export type Redirect = {
636
525
  createdAt?: string
637
526
  }
638
527
 
528
+ export type ScholarshipTagReference = {
529
+ _ref: string
530
+ _type: 'reference'
531
+ _weak?: boolean
532
+ [internalGroqTypeReferenceTo]?: 'scholarshipTag'
533
+ }
534
+
639
535
  export type Scholarship = {
640
536
  _id: string
641
537
  _type: 'scholarship'
@@ -651,13 +547,11 @@ export type Scholarship = {
651
547
  featuredImage?: AccessibleImage
652
548
  awardValueDisplay?: string
653
549
  awardAmount?: number
654
- audienceTags?: Array<{
655
- _ref: string
656
- _type: 'reference'
657
- _weak?: boolean
658
- _key: string
659
- [internalGroqTypeReferenceTo]?: 'scholarshipTag'
660
- }>
550
+ audienceTags?: Array<
551
+ {
552
+ _key: string
553
+ } & ScholarshipTagReference
554
+ >
661
555
  deadline?: string
662
556
  deadlineNote?: string
663
557
  applyUrl?: string
@@ -794,6 +688,20 @@ export type NewsArticle = {
794
688
  seo?: Seo
795
689
  }
796
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
+
797
705
  export type Webpage = {
798
706
  _id: string
799
707
  _type: 'webpage'
@@ -842,40 +750,11 @@ export type Webpage = {
842
750
  _key: string
843
751
  } & RelatedLinksSection)
844
752
  >
845
- parentPage?:
846
- | {
847
- _ref: string
848
- _type: 'reference'
849
- _weak?: boolean
850
- [internalGroqTypeReferenceTo]?: 'webpage'
851
- }
852
- | {
853
- _ref: string
854
- _type: 'reference'
855
- _weak?: boolean
856
- [internalGroqTypeReferenceTo]?: 'program'
857
- }
858
- | {
859
- _ref: string
860
- _type: 'reference'
861
- _weak?: boolean
862
- [internalGroqTypeReferenceTo]?: 'campus'
863
- }
864
- | {
865
- _ref: string
866
- _type: 'reference'
867
- _weak?: boolean
868
- [internalGroqTypeReferenceTo]?: 'area'
869
- }
753
+ parentPage?: WebpageReference | ProgramReference | CampusReference | AreaReference
870
754
  pageType: 'webpage' | 'department'
871
755
  departmentContactDetails?: PtBasic
872
756
  isPublished?: boolean
873
- relatedMenu?: {
874
- _ref: string
875
- _type: 'reference'
876
- _weak?: boolean
877
- [internalGroqTypeReferenceTo]?: 'menu'
878
- }
757
+ relatedMenu?: MenuReference
879
758
  seo?: Seo
880
759
  }
881
760
 
@@ -887,12 +766,7 @@ export type Facility = {
887
766
  _rev: string
888
767
  title: string
889
768
  slug: Slug
890
- campus: {
891
- _ref: string
892
- _type: 'reference'
893
- _weak?: boolean
894
- [internalGroqTypeReferenceTo]?: 'campus'
895
- }
769
+ campus: CampusReference
896
770
  description?: PtBasic
897
771
  isActive?: boolean
898
772
  address?: CanadianAddress
@@ -914,12 +788,7 @@ export type ProgramFile = {
914
788
  _rev: string
915
789
  title: string
916
790
  file: {
917
- asset?: {
918
- _ref: string
919
- _type: 'reference'
920
- _weak?: boolean
921
- [internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
922
- }
791
+ asset?: SanityFileAssetReference
923
792
  media?: unknown
924
793
  _type: 'file'
925
794
  }
@@ -942,13 +811,11 @@ export type Testimonial = {
942
811
  _rev: string
943
812
  authorName: string
944
813
  authorTitle?: string
945
- programs?: Array<{
946
- _ref: string
947
- _type: 'reference'
948
- _weak?: boolean
949
- _key: string
950
- [internalGroqTypeReferenceTo]?: 'program'
951
- }>
814
+ programs?: Array<
815
+ {
816
+ _key: string
817
+ } & ProgramReference
818
+ >
952
819
  quote: string
953
820
  body?: PtBasic
954
821
  videoUrl?: string
@@ -981,13 +848,11 @@ export type Campus = {
981
848
  image?: AccessibleImage
982
849
  description?: PtBasic
983
850
  virtualTourUrl?: string
984
- staff?: Array<{
985
- _ref: string
986
- _type: 'reference'
987
- _weak?: boolean
988
- _key: string
989
- [internalGroqTypeReferenceTo]?: 'person'
990
- }>
851
+ staff?: Array<
852
+ {
853
+ _key: string
854
+ } & PersonReference
855
+ >
991
856
  pageBuilder?: Array<
992
857
  | ({
993
858
  _key: string
@@ -1077,36 +942,38 @@ export type Area = {
1077
942
  seo?: Seo
1078
943
  }
1079
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
+
1080
959
  export type ProgramIntake = {
1081
960
  _id: string
1082
961
  _type: 'programIntake'
1083
962
  _createdAt: string
1084
963
  _updatedAt: string
1085
964
  _rev: string
1086
- program: {
1087
- _ref: string
1088
- _type: 'reference'
1089
- _weak?: boolean
1090
- [internalGroqTypeReferenceTo]?: 'program'
1091
- }
965
+ program: ProgramReference
1092
966
  programCode: string
1093
967
  season: 'Fall' | 'Winter' | 'Spring' | 'Summer' | 'Fall, Winter, Spring' | 'Any Time'
1094
- duration: {
1095
- _ref: string
1096
- _type: 'reference'
1097
- _weak?: boolean
1098
- [internalGroqTypeReferenceTo]?: 'duration'
1099
- }
968
+ duration: DurationReference
1100
969
  deliveryMethod: 'In-Person' | 'Online Live' | 'Online Self-Paced' | 'Hybrid'
1101
970
  studyMode: 'Full-Time' | 'Part-Time'
1102
971
  isAccelerated?: boolean
1103
- campusAvailability?: Array<{
1104
- _ref: string
1105
- _type: 'reference'
1106
- _weak?: boolean
1107
- _key: string
1108
- [internalGroqTypeReferenceTo]?: 'campus'
1109
- }>
972
+ campusAvailability?: Array<
973
+ {
974
+ _key: string
975
+ } & CampusReference
976
+ >
1110
977
  isInternational?: boolean
1111
978
  applicationMethod?:
1112
979
  | 'OCAS Application'
@@ -1114,19 +981,12 @@ export type ProgramIntake = {
1114
981
  | 'Contact College'
1115
982
  | 'Skilled Trades Ontario / MLITSD'
1116
983
  | 'Other'
1117
- coordinators?: Array<{
1118
- _ref: string
1119
- _type: 'reference'
1120
- _weak?: boolean
1121
- _key: string
1122
- [internalGroqTypeReferenceTo]?: 'person'
1123
- }>
1124
- admissionRequirements?: {
1125
- _ref: string
1126
- _type: 'reference'
1127
- _weak?: boolean
1128
- [internalGroqTypeReferenceTo]?: 'admissionRequirements'
1129
- }
984
+ coordinators?: Array<
985
+ {
986
+ _key: string
987
+ } & PersonReference
988
+ >
989
+ admissionRequirements?: AdmissionRequirementsReference
1130
990
  notes?: string
1131
991
  }
1132
992
 
@@ -1136,12 +996,7 @@ export type AdmissionRequirements = {
1136
996
  _createdAt: string
1137
997
  _updatedAt: string
1138
998
  _rev: string
1139
- program?: {
1140
- _ref: string
1141
- _type: 'reference'
1142
- _weak?: boolean
1143
- [internalGroqTypeReferenceTo]?: 'program'
1144
- }
999
+ program?: ProgramReference
1145
1000
  domesticRequirements?: PtBasic
1146
1001
  internationalRequirements?: PtBasic
1147
1002
  alternativePathways?: PtBasic
@@ -1166,6 +1021,27 @@ export type Duration = {
1166
1021
  isEnabled?: boolean
1167
1022
  }
1168
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
+
1169
1045
  export type Program = {
1170
1046
  _id: string
1171
1047
  _type: 'program'
@@ -1182,32 +1058,18 @@ export type Program = {
1182
1058
  _key: string
1183
1059
  } & AccessibleImage
1184
1060
  >
1185
- school?: {
1186
- _ref: string
1187
- _type: 'reference'
1188
- _weak?: boolean
1189
- [internalGroqTypeReferenceTo]?: 'school'
1190
- }
1191
- credential?: {
1192
- _ref: string
1193
- _type: 'reference'
1194
- _weak?: boolean
1195
- [internalGroqTypeReferenceTo]?: 'credential'
1196
- }
1197
- areasOfInterest?: Array<{
1198
- _ref: string
1199
- _type: 'reference'
1200
- _weak?: boolean
1201
- _key: string
1202
- [internalGroqTypeReferenceTo]?: 'area'
1203
- }>
1204
- relatedIntakes?: Array<{
1205
- _ref: string
1206
- _type: 'reference'
1207
- _weak?: boolean
1208
- _key: string
1209
- [internalGroqTypeReferenceTo]?: 'programIntake'
1210
- }>
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
+ >
1211
1073
  mcuCode?: string
1212
1074
  apsCode?: string
1213
1075
  cipCode?: string
@@ -1223,47 +1085,32 @@ export type Program = {
1223
1085
  programNotes?: PtBasic
1224
1086
  coursesNotes?: PtBasic
1225
1087
  feesNotes?: PtBasic
1226
- coordinators?: Array<{
1227
- _ref: string
1228
- _type: 'reference'
1229
- _weak?: boolean
1230
- _key: string
1231
- [internalGroqTypeReferenceTo]?: 'person'
1232
- }>
1233
- faculty?: Array<{
1234
- _ref: string
1235
- _type: 'reference'
1236
- _weak?: boolean
1237
- _key: string
1238
- [internalGroqTypeReferenceTo]?: 'person'
1239
- }>
1240
- testimonials?: Array<{
1241
- _ref: string
1242
- _type: 'reference'
1243
- _weak?: boolean
1244
- _key: string
1245
- [internalGroqTypeReferenceTo]?: 'testimonial'
1246
- }>
1247
- relatedPrograms?: Array<{
1248
- _ref: string
1249
- _type: 'reference'
1250
- _weak?: boolean
1251
- _key: string
1252
- [internalGroqTypeReferenceTo]?: 'program'
1253
- }>
1254
- files?: Array<{
1255
- _ref: string
1256
- _type: 'reference'
1257
- _weak?: boolean
1258
- _key: string
1259
- [internalGroqTypeReferenceTo]?: 'programFile'
1260
- }>
1261
- relatedMenu?: {
1262
- _ref: string
1263
- _type: 'reference'
1264
- _weak?: boolean
1265
- [internalGroqTypeReferenceTo]?: 'menu'
1266
- }
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
1267
1114
  seo?: Seo
1268
1115
  }
1269
1116
 
@@ -1319,21 +1166,14 @@ export type School = {
1319
1166
  bannerName?: string
1320
1167
  slug: Slug
1321
1168
  description?: string
1322
- dean?: {
1323
- _ref: string
1324
- _type: 'reference'
1325
- _weak?: boolean
1326
- [internalGroqTypeReferenceTo]?: 'person'
1327
- }
1169
+ dean?: PersonReference
1328
1170
  schoolCode?: string
1329
1171
  image?: AccessibleImage
1330
- programs?: Array<{
1331
- _ref: string
1332
- _type: 'reference'
1333
- _weak?: boolean
1334
- _key: string
1335
- [internalGroqTypeReferenceTo]?: 'program'
1336
- }>
1172
+ programs?: Array<
1173
+ {
1174
+ _key: string
1175
+ } & ProgramReference
1176
+ >
1337
1177
  }
1338
1178
 
1339
1179
  export type Person = {
@@ -1363,12 +1203,7 @@ export type Person = {
1363
1203
  >
1364
1204
  recruitmentConnectLink?: string
1365
1205
  affiliations?: Array<{
1366
- program?: {
1367
- _ref: string
1368
- _type: 'reference'
1369
- _weak?: boolean
1370
- [internalGroqTypeReferenceTo]?: 'program'
1371
- }
1206
+ program?: ProgramReference
1372
1207
  role?: 'coordinator' | 'instructor' | 'advisor' | 'faculty'
1373
1208
  _key: string
1374
1209
  }>
@@ -1440,6 +1275,7 @@ export type SanityImageMetadata = {
1440
1275
  palette?: SanityImagePalette
1441
1276
  lqip?: string
1442
1277
  blurHash?: string
1278
+ thumbHash?: string
1443
1279
  hasAlpha?: boolean
1444
1280
  isOpaque?: boolean
1445
1281
  }
@@ -1504,9 +1340,24 @@ export type Geopoint = {
1504
1340
  }
1505
1341
 
1506
1342
  export type AllSanitySchemaTypes =
1343
+ | Options
1344
+ | HeaderSectionOptions
1345
+ | CardOptions
1346
+ | CardGridSectionOptions
1347
+ | ProgramGridSectionOptions
1348
+ | RelatedLinksSectionOptions
1507
1349
  | PhoneNumber
1508
1350
  | CanadianAddress
1509
1351
  | RelatedLinksSection
1352
+ | WebpageReference
1353
+ | ProgramReference
1354
+ | CampusReference
1355
+ | SchoolReference
1356
+ | PersonReference
1357
+ | NewsArticleReference
1358
+ | ProgramFileReference
1359
+ | EventReference
1360
+ | SanityFileAssetReference
1510
1361
  | RelatedLinkItem
1511
1362
  | SimpleCallToActionSection
1512
1363
  | CallToActionSection
@@ -1521,6 +1372,7 @@ export type AllSanitySchemaTypes =
1521
1372
  | FaqItem
1522
1373
  | Link
1523
1374
  | MenuItem
1375
+ | SanityImageAssetReference
1524
1376
  | AccessibleImage
1525
1377
  | PtSimple
1526
1378
  | PtBasic
@@ -1531,20 +1383,28 @@ export type AllSanitySchemaTypes =
1531
1383
  | SanityImageHotspot
1532
1384
  | Seo
1533
1385
  | Redirect
1386
+ | ScholarshipTagReference
1534
1387
  | Scholarship
1535
1388
  | Slug
1536
1389
  | ScholarshipTag
1537
1390
  | Event
1538
1391
  | NewsArticle
1392
+ | AreaReference
1393
+ | MenuReference
1539
1394
  | Webpage
1540
1395
  | Facility
1541
1396
  | ProgramFile
1542
1397
  | Testimonial
1543
1398
  | Campus
1544
1399
  | Area
1400
+ | DurationReference
1401
+ | AdmissionRequirementsReference
1545
1402
  | ProgramIntake
1546
1403
  | AdmissionRequirements
1547
1404
  | Duration
1405
+ | CredentialReference
1406
+ | ProgramIntakeReference
1407
+ | TestimonialReference
1548
1408
  | Program
1549
1409
  | Menu
1550
1410
  | Credential
@@ -1562,4 +1422,11 @@ export type AllSanitySchemaTypes =
1562
1422
  | SanityAssetSourceData
1563
1423
  | SanityImageAsset
1564
1424
  | Geopoint
1425
+
1565
1426
  export declare const internalGroqTypeReferenceTo: unique symbol
1427
+
1428
+ type ArrayOf<T> = Array<
1429
+ T & {
1430
+ _key: string
1431
+ }
1432
+ >