@@ -505,7 +505,7 @@ export type SettingsQueryResult = {
505
505
} ;
506
506
} | null ;
507
507
// Variable: getPageQuery
508
- // Query: *[_type == 'page' && slug.current == $slug][0]{ _id, _type, name, slug, heading, subheading, "pageBuilder": pageBuilder[]{ ..., _type == "callToAction" => { ..., link { ... , _type == "link" => { "page": page->slug.current, "post": post->slug.current } } , } }, }
508
+ // Query: *[_type == 'page' && slug.current == $slug][0]{ _id, _type, name, slug, heading, subheading, "pageBuilder": pageBuilder[]{ ..., _type == "callToAction" => { link { ..., _type == " link" => { "page": page->slug.current, "post": post->slug.current } } , } , _type == "infoSection" => { content[]{ ... , markDefs[]{ ..., _type == "link" => { "page": page->slug.current, "post": post->slug.current } } } }, }, }
509
509
export type GetPageQueryResult = {
510
510
_id : string ;
511
511
_type : "page" ;
@@ -532,7 +532,7 @@ export type GetPageQueryResult = {
532
532
_type : "infoSection" ;
533
533
heading ?: string ;
534
534
subheading ?: string ;
535
- content ? : Array < {
535
+ content : Array < {
536
536
children ?: Array < {
537
537
marks ?: Array < string > ;
538
538
text ?: string ;
@@ -541,29 +541,19 @@ export type GetPageQueryResult = {
541
541
} > ;
542
542
style ?: "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "normal" ;
543
543
listItem ?: "bullet" | "number" ;
544
- markDefs ? : Array < {
544
+ markDefs : Array < {
545
545
linkType ?: "href" | "page" | "post" ;
546
546
href ?: string ;
547
- page ?: {
548
- _ref : string ;
549
- _type : "reference" ;
550
- _weak ?: boolean ;
551
- [ internalGroqTypeReferenceTo ] ?: "page" ;
552
- } ;
553
- post ?: {
554
- _ref : string ;
555
- _type : "reference" ;
556
- _weak ?: boolean ;
557
- [ internalGroqTypeReferenceTo ] ?: "post" ;
558
- } ;
547
+ page : string | null ;
548
+ post : string | null ;
559
549
openInNewTab ?: boolean ;
560
550
_type : "link" ;
561
551
_key : string ;
562
- } > ;
552
+ } > | null ;
563
553
level ?: number ;
564
554
_type : "block" ;
565
555
_key : string ;
566
- } > ;
556
+ } > | null ;
567
557
} > | null ;
568
558
} | null ;
569
559
// Variable: allPostsQuery
@@ -718,7 +708,7 @@ import "@sanity/client";
718
708
declare module "@sanity/client" {
719
709
interface SanityQueries {
720
710
"*[_type == \"settings\"][0]" : SettingsQueryResult ;
721
- "\n *[_type == 'page' && slug.current == $slug][0]{\n _id,\n _type,\n name,\n slug,\n heading,\n subheading,\n \"pageBuilder\": pageBuilder[]{\n ...,\n _type == \"callToAction\" => {\n ...,\n \ n link {\n ...,\n \n _type == \"link\" => {\n \"page\": page->slug.current,\n \"post\": post->slug.current\n }\n\n }\n, \n }\n },\n }\n" : GetPageQueryResult ;
711
+ "\n *[_type == 'page' && slug.current == $slug][0]{\n _id,\n _type,\n name,\n slug,\n heading,\n subheading,\n \"pageBuilder\": pageBuilder[]{\n ...,\n _type == \"callToAction\" => {\n \n link {\n ...,\n \n _type == \"link\" => {\ n \"page\": page->slug.current,\n \"post\": post->slug.current\n }\n\n }\n,\n },\n _type == \"infoSection\" => {\n content[]{\n ...,\n markDefs[]{ \n ...,\n \n _type == \"link\" => {\n \"page\": page->slug.current,\n \"post\": post->slug.current\n }\n\n }\n } \n }, \n },\n }\n" : GetPageQueryResult ;
722
712
"\n *[_type == \"post\" && defined(slug.current)] | order(date desc, _updatedAt desc) {\n \n _id,\n \"status\": select(_originalId in path(\"drafts.**\") => \"draft\", \"published\"),\n \"title\": coalesce(title, \"Untitled\"),\n \"slug\": slug.current,\n excerpt,\n coverImage,\n \"date\": coalesce(date, _updatedAt),\n \"author\": author->{firstName, lastName, picture},\n\n }\n" : AllPostsQueryResult ;
723
713
"\n *[_type == \"post\" && _id != $skip && defined(slug.current)] | order(date desc, _updatedAt desc) [0...$limit] {\n \n _id,\n \"status\": select(_originalId in path(\"drafts.**\") => \"draft\", \"published\"),\n \"title\": coalesce(title, \"Untitled\"),\n \"slug\": slug.current,\n excerpt,\n coverImage,\n \"date\": coalesce(date, _updatedAt),\n \"author\": author->{firstName, lastName, picture},\n\n }\n" : MorePostsQueryResult ;
724
714
"\n *[_type == \"post\" && slug.current == $slug] [0] {\n content[]{\n ...,\n markDefs[]{\n ...,\n \n _type == \"link\" => {\n \"page\": page->slug.current,\n \"post\": post->slug.current\n }\n\n }\n },\n \n _id,\n \"status\": select(_originalId in path(\"drafts.**\") => \"draft\", \"published\"),\n \"title\": coalesce(title, \"Untitled\"),\n \"slug\": slug.current,\n excerpt,\n coverImage,\n \"date\": coalesce(date, _updatedAt),\n \"author\": author->{firstName, lastName, picture},\n\n }\n" : PostQueryResult ;
0 commit comments