@confed/sanity-types 0.1.3-2511181347 → 0.1.3-2511181447
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.
- package/package.json +1 -1
- package/sanity.types.ts +90 -46
package/package.json
CHANGED
package/sanity.types.ts
CHANGED
|
@@ -22,6 +22,80 @@ export type CanadianAddress = {
|
|
|
22
22
|
country?: string
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export type RelatedLinksSection = {
|
|
26
|
+
_type: 'relatedLinksSection'
|
|
27
|
+
title?: string
|
|
28
|
+
eyebrow?: string
|
|
29
|
+
intro?: PtSimple
|
|
30
|
+
links?: Array<
|
|
31
|
+
{
|
|
32
|
+
_key: string
|
|
33
|
+
} & RelatedLinkItem
|
|
34
|
+
>
|
|
35
|
+
options?: {
|
|
36
|
+
backgroundColor?: 'light' | 'dark' | 'white' | 'black'
|
|
37
|
+
anchorSlug?: Slug
|
|
38
|
+
spacing?: 'default' | 'minimum' | 'none'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type RelatedLinkItem = {
|
|
43
|
+
_type: 'relatedLinkItem'
|
|
44
|
+
label: string
|
|
45
|
+
internalPage?:
|
|
46
|
+
| {
|
|
47
|
+
_ref: string
|
|
48
|
+
_type: 'reference'
|
|
49
|
+
_weak?: boolean
|
|
50
|
+
[internalGroqTypeReferenceTo]?: 'webpage'
|
|
51
|
+
}
|
|
52
|
+
| {
|
|
53
|
+
_ref: string
|
|
54
|
+
_type: 'reference'
|
|
55
|
+
_weak?: boolean
|
|
56
|
+
[internalGroqTypeReferenceTo]?: 'program'
|
|
57
|
+
}
|
|
58
|
+
| {
|
|
59
|
+
_ref: string
|
|
60
|
+
_type: 'reference'
|
|
61
|
+
_weak?: boolean
|
|
62
|
+
[internalGroqTypeReferenceTo]?: 'campus'
|
|
63
|
+
}
|
|
64
|
+
| {
|
|
65
|
+
_ref: string
|
|
66
|
+
_type: 'reference'
|
|
67
|
+
_weak?: boolean
|
|
68
|
+
[internalGroqTypeReferenceTo]?: 'school'
|
|
69
|
+
}
|
|
70
|
+
| {
|
|
71
|
+
_ref: string
|
|
72
|
+
_type: 'reference'
|
|
73
|
+
_weak?: boolean
|
|
74
|
+
[internalGroqTypeReferenceTo]?: 'person'
|
|
75
|
+
}
|
|
76
|
+
url?: string
|
|
77
|
+
isExternal?: boolean
|
|
78
|
+
icon?: string
|
|
79
|
+
description?: string
|
|
80
|
+
file?: {
|
|
81
|
+
asset?: {
|
|
82
|
+
_ref: string
|
|
83
|
+
_type: 'reference'
|
|
84
|
+
_weak?: boolean
|
|
85
|
+
[internalGroqTypeReferenceTo]?: 'sanity.fileAsset'
|
|
86
|
+
}
|
|
87
|
+
media?: unknown
|
|
88
|
+
_type: 'file'
|
|
89
|
+
}
|
|
90
|
+
fileReference?: {
|
|
91
|
+
_ref: string
|
|
92
|
+
_type: 'reference'
|
|
93
|
+
_weak?: boolean
|
|
94
|
+
[internalGroqTypeReferenceTo]?: 'programFile'
|
|
95
|
+
}
|
|
96
|
+
isHighlighted?: boolean
|
|
97
|
+
}
|
|
98
|
+
|
|
25
99
|
export type SimpleCallToActionSection = {
|
|
26
100
|
_type: 'simpleCallToActionSection'
|
|
27
101
|
title: string
|
|
@@ -321,25 +395,7 @@ export type PtBasic = Array<
|
|
|
321
395
|
_key: string
|
|
322
396
|
}
|
|
323
397
|
| {
|
|
324
|
-
body:
|
|
325
|
-
children?: Array<{
|
|
326
|
-
marks?: Array<string>
|
|
327
|
-
text?: string
|
|
328
|
-
_type: 'span'
|
|
329
|
-
_key: string
|
|
330
|
-
}>
|
|
331
|
-
style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
|
|
332
|
-
listItem?: 'bullet' | 'number'
|
|
333
|
-
markDefs?: Array<{
|
|
334
|
-
href?: string
|
|
335
|
-
openInNewTab?: boolean
|
|
336
|
-
_type: 'link'
|
|
337
|
-
_key: string
|
|
338
|
-
}>
|
|
339
|
-
level?: number
|
|
340
|
-
_type: 'block'
|
|
341
|
-
_key: string
|
|
342
|
-
}>
|
|
398
|
+
body: PtBasic
|
|
343
399
|
kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
|
|
344
400
|
_type: 'note'
|
|
345
401
|
_key: string
|
|
@@ -649,6 +705,9 @@ export type Webpage = {
|
|
|
649
705
|
| ({
|
|
650
706
|
_key: string
|
|
651
707
|
} & SimpleCallToActionSection)
|
|
708
|
+
| ({
|
|
709
|
+
_key: string
|
|
710
|
+
} & RelatedLinksSection)
|
|
652
711
|
>
|
|
653
712
|
parentPage?:
|
|
654
713
|
| {
|
|
@@ -1006,14 +1065,6 @@ export type Menu = {
|
|
|
1006
1065
|
description?: string
|
|
1007
1066
|
}
|
|
1008
1067
|
|
|
1009
|
-
export type Code = {
|
|
1010
|
-
_type: 'code'
|
|
1011
|
-
language?: string
|
|
1012
|
-
filename?: string
|
|
1013
|
-
code?: string
|
|
1014
|
-
highlightedLines?: Array<number>
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
1068
|
export type Credential = {
|
|
1018
1069
|
_id: string
|
|
1019
1070
|
_type: 'credential'
|
|
@@ -1099,27 +1150,18 @@ export type Person = {
|
|
|
1099
1150
|
role?: 'coordinator' | 'instructor' | 'advisor' | 'faculty'
|
|
1100
1151
|
_key: string
|
|
1101
1152
|
}>
|
|
1102
|
-
bio?:
|
|
1103
|
-
children?: Array<{
|
|
1104
|
-
marks?: Array<string>
|
|
1105
|
-
text?: string
|
|
1106
|
-
_type: 'span'
|
|
1107
|
-
_key: string
|
|
1108
|
-
}>
|
|
1109
|
-
style?: 'normal' | 'h2' | 'h3' | 'h4'
|
|
1110
|
-
listItem?: 'bullet' | 'number'
|
|
1111
|
-
markDefs?: Array<{
|
|
1112
|
-
href?: string
|
|
1113
|
-
_type: 'link'
|
|
1114
|
-
_key: string
|
|
1115
|
-
}>
|
|
1116
|
-
level?: number
|
|
1117
|
-
_type: 'block'
|
|
1118
|
-
_key: string
|
|
1119
|
-
}>
|
|
1153
|
+
bio?: PtBasic
|
|
1120
1154
|
isEnabled?: boolean
|
|
1121
1155
|
}
|
|
1122
1156
|
|
|
1157
|
+
export type Code = {
|
|
1158
|
+
_type: 'code'
|
|
1159
|
+
language?: string
|
|
1160
|
+
filename?: string
|
|
1161
|
+
code?: string
|
|
1162
|
+
highlightedLines?: Array<number>
|
|
1163
|
+
}
|
|
1164
|
+
|
|
1123
1165
|
export type Table = {
|
|
1124
1166
|
_type: 'table'
|
|
1125
1167
|
rows?: Array<
|
|
@@ -1241,6 +1283,8 @@ export type Geopoint = {
|
|
|
1241
1283
|
|
|
1242
1284
|
export type AllSanitySchemaTypes =
|
|
1243
1285
|
| CanadianAddress
|
|
1286
|
+
| RelatedLinksSection
|
|
1287
|
+
| RelatedLinkItem
|
|
1244
1288
|
| SimpleCallToActionSection
|
|
1245
1289
|
| CallToActionSection
|
|
1246
1290
|
| ProgramGridSection
|
|
@@ -1279,10 +1323,10 @@ export type AllSanitySchemaTypes =
|
|
|
1279
1323
|
| Duration
|
|
1280
1324
|
| Program
|
|
1281
1325
|
| Menu
|
|
1282
|
-
| Code
|
|
1283
1326
|
| Credential
|
|
1284
1327
|
| School
|
|
1285
1328
|
| Person
|
|
1329
|
+
| Code
|
|
1286
1330
|
| Table
|
|
1287
1331
|
| TableRow
|
|
1288
1332
|
| MediaTag
|