@confed/sanity-types 0.1.2-2510271943 → 0.1.2-2510291949

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 +235 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.2-2510271943",
3
+ "version": "0.1.2-2510291949",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -13,6 +13,191 @@
13
13
  */
14
14
 
15
15
  // Source: schema.json
16
+ export type RichTextSection = {
17
+ _type: 'richTextSection'
18
+ content?: Array<
19
+ | {
20
+ children?: Array<{
21
+ marks?: Array<string>
22
+ text?: string
23
+ _type: 'span'
24
+ _key: string
25
+ }>
26
+ style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
27
+ listItem?: 'bullet' | 'number'
28
+ markDefs?: Array<{
29
+ href?: string
30
+ openInNewTab?: boolean
31
+ _type: 'link'
32
+ _key: string
33
+ }>
34
+ level?: number
35
+ _type: 'block'
36
+ _key: string
37
+ }
38
+ | {
39
+ asset?: {
40
+ _ref: string
41
+ _type: 'reference'
42
+ _weak?: boolean
43
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
44
+ }
45
+ media?: unknown
46
+ hotspot?: SanityImageHotspot
47
+ crop?: SanityImageCrop
48
+ altText: string
49
+ caption?: string
50
+ _type: 'figure'
51
+ _key: string
52
+ }
53
+ | ({
54
+ _key: string
55
+ } & PtButton)
56
+ | {
57
+ url: string
58
+ title?: string
59
+ _type: 'ptYoutubeVideo'
60
+ _key: string
61
+ }
62
+ | {
63
+ body: Array<{
64
+ children?: Array<{
65
+ marks?: Array<string>
66
+ text?: string
67
+ _type: 'span'
68
+ _key: string
69
+ }>
70
+ style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
71
+ listItem?: 'bullet' | 'number'
72
+ markDefs?: Array<{
73
+ href?: string
74
+ openInNewTab?: boolean
75
+ _type: 'link'
76
+ _key: string
77
+ }>
78
+ level?: number
79
+ _type: 'block'
80
+ _key: string
81
+ }>
82
+ kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
83
+ _type: 'note'
84
+ _key: string
85
+ }
86
+ | ({
87
+ _key: string
88
+ } & Table)
89
+ | {
90
+ title?: string
91
+ embedCode: Code
92
+ height?: number
93
+ responsive?: boolean
94
+ _type: 'embed'
95
+ _key: string
96
+ }
97
+ >
98
+ }
99
+
100
+ export type GallerySection = {
101
+ _type: 'gallerySection'
102
+ title?: string
103
+ introduction?: Array<
104
+ | {
105
+ children?: Array<{
106
+ marks?: Array<string>
107
+ text?: string
108
+ _type: 'span'
109
+ _key: string
110
+ }>
111
+ style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
112
+ listItem?: 'bullet' | 'number'
113
+ markDefs?: Array<{
114
+ href?: string
115
+ openInNewTab?: boolean
116
+ _type: 'link'
117
+ _key: string
118
+ }>
119
+ level?: number
120
+ _type: 'block'
121
+ _key: string
122
+ }
123
+ | {
124
+ asset?: {
125
+ _ref: string
126
+ _type: 'reference'
127
+ _weak?: boolean
128
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
129
+ }
130
+ media?: unknown
131
+ hotspot?: SanityImageHotspot
132
+ crop?: SanityImageCrop
133
+ altText: string
134
+ caption?: string
135
+ _type: 'figure'
136
+ _key: string
137
+ }
138
+ | ({
139
+ _key: string
140
+ } & PtButton)
141
+ | {
142
+ url: string
143
+ title?: string
144
+ _type: 'ptYoutubeVideo'
145
+ _key: string
146
+ }
147
+ | {
148
+ body: Array<{
149
+ children?: Array<{
150
+ marks?: Array<string>
151
+ text?: string
152
+ _type: 'span'
153
+ _key: string
154
+ }>
155
+ style?: 'normal' | 'lead' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'blockquote'
156
+ listItem?: 'bullet' | 'number'
157
+ markDefs?: Array<{
158
+ href?: string
159
+ openInNewTab?: boolean
160
+ _type: 'link'
161
+ _key: string
162
+ }>
163
+ level?: number
164
+ _type: 'block'
165
+ _key: string
166
+ }>
167
+ kind: 'info' | 'tip' | 'important' | 'warning' | 'caution'
168
+ _type: 'note'
169
+ _key: string
170
+ }
171
+ | ({
172
+ _key: string
173
+ } & Table)
174
+ | {
175
+ title?: string
176
+ embedCode: Code
177
+ height?: number
178
+ responsive?: boolean
179
+ _type: 'embed'
180
+ _key: string
181
+ }
182
+ >
183
+ images?: Array<{
184
+ asset?: {
185
+ _ref: string
186
+ _type: 'reference'
187
+ _weak?: boolean
188
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
189
+ }
190
+ media?: unknown
191
+ hotspot?: SanityImageHotspot
192
+ crop?: SanityImageCrop
193
+ altText: string
194
+ caption?: string
195
+ _type: 'accessibleImage'
196
+ _key: string
197
+ }>
198
+ layout?: 'grid' | 'carousel'
199
+ }
200
+
16
201
  export type StaffListSection = {
17
202
  _type: 'staffListSection'
18
203
  title?: string
@@ -87,6 +272,14 @@ export type StaffListSection = {
87
272
  | ({
88
273
  _key: string
89
274
  } & Table)
275
+ | {
276
+ title?: string
277
+ embedCode: Code
278
+ height?: number
279
+ responsive?: boolean
280
+ _type: 'embed'
281
+ _key: string
282
+ }
90
283
  >
91
284
  staffMembers?: Array<{
92
285
  _ref: string
@@ -177,6 +370,14 @@ export type FaqSection = {
177
370
  | ({
178
371
  _key: string
179
372
  } & Table)
373
+ | {
374
+ title?: string
375
+ embedCode: Code
376
+ height?: number
377
+ responsive?: boolean
378
+ _type: 'embed'
379
+ _key: string
380
+ }
180
381
  >
181
382
  layout?: 'accordion' | 'list' | 'twoCols'
182
383
  items?: Array<
@@ -260,6 +461,14 @@ export type FaqItem = {
260
461
  | ({
261
462
  _key: string
262
463
  } & Table)
464
+ | {
465
+ title?: string
466
+ embedCode: Code
467
+ height?: number
468
+ responsive?: boolean
469
+ _type: 'embed'
470
+ _key: string
471
+ }
263
472
  >
264
473
  anchorId?: Slug
265
474
  }
@@ -387,6 +596,14 @@ export type PtBasic = Array<
387
596
  | ({
388
597
  _key: string
389
598
  } & Table)
599
+ | {
600
+ title?: string
601
+ embedCode: Code
602
+ height?: number
603
+ responsive?: boolean
604
+ _type: 'embed'
605
+ _key: string
606
+ }
390
607
  >
391
608
 
392
609
  export type PtButton = {
@@ -613,6 +830,12 @@ export type Webpage = {
613
830
  | ({
614
831
  _key: string
615
832
  } & StaffListSection)
833
+ | ({
834
+ _key: string
835
+ } & GallerySection)
836
+ | ({
837
+ _key: string
838
+ } & RichTextSection)
616
839
  >
617
840
  parentPage?:
618
841
  | {
@@ -640,6 +863,7 @@ export type Webpage = {
640
863
  [internalGroqTypeReferenceTo]?: 'area'
641
864
  }
642
865
  pageType: 'webpage' | 'department'
866
+ departmentContactDetails?: PtBasic
643
867
  isPublished?: boolean
644
868
  relatedMenu?: {
645
869
  _ref: string
@@ -1230,6 +1454,14 @@ export type AccessibleImage = {
1230
1454
  caption?: string
1231
1455
  }
1232
1456
 
1457
+ export type Code = {
1458
+ _type: 'code'
1459
+ language?: string
1460
+ filename?: string
1461
+ code?: string
1462
+ highlightedLines?: Array<number>
1463
+ }
1464
+
1233
1465
  export type Table = {
1234
1466
  _type: 'table'
1235
1467
  rows?: Array<
@@ -1372,6 +1604,8 @@ export type SanityAssetSourceData = {
1372
1604
  }
1373
1605
 
1374
1606
  export type AllSanitySchemaTypes =
1607
+ | RichTextSection
1608
+ | GallerySection
1375
1609
  | StaffListSection
1376
1610
  | FaqSection
1377
1611
  | FaqItem
@@ -1400,6 +1634,7 @@ export type AllSanitySchemaTypes =
1400
1634
  | School
1401
1635
  | Person
1402
1636
  | AccessibleImage
1637
+ | Code
1403
1638
  | Table
1404
1639
  | TableRow
1405
1640
  | MediaTag