@confed/sanity-types 0.1.2-2510241518 → 0.1.2-2510241858

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 +32 -16
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@confed/sanity-types",
3
- "version": "0.1.2-2510241518",
3
+ "version": "0.1.2-2510241858",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "files": [
package/sanity.types.ts CHANGED
@@ -409,6 +409,13 @@ export type PtBasic = Array<
409
409
  } & Table)
410
410
  >
411
411
 
412
+ export type PtButton = {
413
+ _type: 'ptButton'
414
+ variant?: 'primary' | 'outlined'
415
+ text: string
416
+ link: string
417
+ }
418
+
412
419
  export type Figure = {
413
420
  _type: 'figure'
414
421
  asset?: {
@@ -596,8 +603,28 @@ export type Webpage = {
596
603
  _updatedAt: string
597
604
  _rev: string
598
605
  title: string
599
- introduction?: string
600
606
  slug: Slug
607
+ heroDescription?: string
608
+ heroButtons?: Array<
609
+ {
610
+ _key: string
611
+ } & PtButton
612
+ >
613
+ mainImage?: {
614
+ asset?: {
615
+ _ref: string
616
+ _type: 'reference'
617
+ _weak?: boolean
618
+ [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
619
+ }
620
+ media?: unknown
621
+ hotspot?: SanityImageHotspot
622
+ crop?: SanityImageCrop
623
+ altText: string
624
+ caption?: string
625
+ _type: 'accessibleImage'
626
+ }
627
+ introduction?: string
601
628
  body?: PtBasic
602
629
  pageBuilder?: Array<
603
630
  | ({
@@ -634,20 +661,6 @@ export type Webpage = {
634
661
  }
635
662
  pageType: 'webpage' | 'department'
636
663
  isPublished?: boolean
637
- mainImage?: {
638
- asset?: {
639
- _ref: string
640
- _type: 'reference'
641
- _weak?: boolean
642
- [internalGroqTypeReferenceTo]?: 'sanity.imageAsset'
643
- }
644
- media?: unknown
645
- hotspot?: SanityImageHotspot
646
- crop?: SanityImageCrop
647
- altText: string
648
- caption?: string
649
- _type: 'accessibleImage'
650
- }
651
664
  relatedMenu?: {
652
665
  _ref: string
653
666
  _type: 'reference'
@@ -1102,12 +1115,14 @@ export type Credential = {
1102
1115
  category:
1103
1116
  | 'certificate'
1104
1117
  | 'diploma'
1105
- | 'advancedDiploma'
1106
1118
  | 'degree'
1119
+ | 'apprenticeship'
1107
1120
  | 'microCredential'
1108
1121
  | 'recognition'
1109
1122
  | 'externalCertification'
1123
+ credentialScope?: 'postsecondary' | 'vocational' | 'apprenticeship'
1110
1124
  description?: string
1125
+ sortOrder: number
1111
1126
  isEnabled?: boolean
1112
1127
  }
1113
1128
 
@@ -1383,6 +1398,7 @@ export type AllSanitySchemaTypes =
1383
1398
  | MenuItem
1384
1399
  | Link
1385
1400
  | PtBasic
1401
+ | PtButton
1386
1402
  | Figure
1387
1403
  | Redirect
1388
1404
  | Event