Some checks failed
Test examples / Test Examples (20) (push) Has been cancelled
Test examples / Test Examples (22) (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Trigger Release / start (push) Has been cancelled
Stale issue handler / stale (push) Has been cancelled
Update Font Data / create-pull-request (push) Has been cancelled
build-and-deploy / deploy-target (push) Has been cancelled
build-and-deploy / build (push) Has been cancelled
build-and-deploy / stable - aarch64-unknown-linux-musl - node@16 (push) Has been cancelled
build-and-deploy / stable - x86_64-unknown-linux-musl - node@16 (push) Has been cancelled
build-and-deploy / stable - aarch64-unknown-linux-gnu - node@16 (push) Has been cancelled
build-and-deploy / stable - x86_64-unknown-linux-gnu - node@16 (push) Has been cancelled
build-and-deploy / stable - aarch64-pc-windows-msvc - node@16 (push) Has been cancelled
build-and-deploy / stable - x86_64-pc-windows-msvc - node@16 (push) Has been cancelled
build-and-deploy / stable - aarch64-apple-darwin - node@16 (push) Has been cancelled
build-and-deploy / stable - x86_64-apple-darwin - node@16 (push) Has been cancelled
build-and-deploy / build-wasm (nodejs) (push) Has been cancelled
build-and-deploy / build-wasm (web) (push) Has been cancelled
build-and-deploy / Deploy preview tarball (push) Has been cancelled
build-and-deploy / Potentially publish release (push) Has been cancelled
build-and-deploy / publish-turbopack-npm-packages (push) Has been cancelled
build-and-deploy / Deploy examples (push) Has been cancelled
build-and-deploy / thank you, build (push) Has been cancelled
build-and-deploy / Upload Turbopack Bytesize metrics to Datadog (push) Has been cancelled
Rspack Next.js development integration tests / Rspack integration tests (push) Has been cancelled
Rspack Next.js production integration tests / Rspack integration tests (push) Has been cancelled
Turbopack Next.js development integration tests / Next.js integration tests (push) Has been cancelled
Turbopack Next.js production integration tests / Next.js integration tests (push) Has been cancelled
Update Rspack test manifest / Update and upload Rspack development test manifest (push) Has been cancelled
Update Rspack test manifest / Update and upload Rspack production test manifest (push) Has been cancelled
Upload bundler test manifests to areweturboyet.com / Upload test results (push) Has been cancelled
Update React / create-pull-request (push) Has been cancelled
test-e2e-project-reset-cron / reset-test-project (push) Has been cancelled
Notify about the top 15 issues/PRs/feature requests (most reacted) in the last 90 days / run (push) Has been cancelled
650 lines
16 KiB
TypeScript
650 lines
16 KiB
TypeScript
/**
|
|
* ---------------------------------------------------------------------------------
|
|
* This file has been generated by Sanity TypeGen.
|
|
* Command: `sanity typegen generate`
|
|
*
|
|
* Any modifications made directly to this file will be overwritten the next time
|
|
* the TypeScript definitions are generated. Please make changes to the Sanity
|
|
* schema definitions and/or GROQ queries if you need to update these types.
|
|
*
|
|
* For more information on how to use Sanity TypeGen, visit the official documentation:
|
|
* https://www.sanity.io/docs/sanity-typegen
|
|
* ---------------------------------------------------------------------------------
|
|
*/
|
|
|
|
// Source: schema.json
|
|
export type SanityImagePaletteSwatch = {
|
|
_type: "sanity.imagePaletteSwatch";
|
|
background?: string;
|
|
foreground?: string;
|
|
population?: number;
|
|
title?: string;
|
|
};
|
|
|
|
export type SanityImagePalette = {
|
|
_type: "sanity.imagePalette";
|
|
darkMuted?: SanityImagePaletteSwatch;
|
|
lightVibrant?: SanityImagePaletteSwatch;
|
|
darkVibrant?: SanityImagePaletteSwatch;
|
|
vibrant?: SanityImagePaletteSwatch;
|
|
dominant?: SanityImagePaletteSwatch;
|
|
lightMuted?: SanityImagePaletteSwatch;
|
|
muted?: SanityImagePaletteSwatch;
|
|
};
|
|
|
|
export type SanityImageDimensions = {
|
|
_type: "sanity.imageDimensions";
|
|
height?: number;
|
|
width?: number;
|
|
aspectRatio?: number;
|
|
};
|
|
|
|
export type SanityFileAsset = {
|
|
_id: string;
|
|
_type: "sanity.fileAsset";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
originalFilename?: string;
|
|
label?: string;
|
|
title?: string;
|
|
description?: string;
|
|
altText?: string;
|
|
sha1hash?: string;
|
|
extension?: string;
|
|
mimeType?: string;
|
|
size?: number;
|
|
assetId?: string;
|
|
uploadId?: string;
|
|
path?: string;
|
|
url?: string;
|
|
source?: SanityAssetSourceData;
|
|
};
|
|
|
|
export type Geopoint = {
|
|
_type: "geopoint";
|
|
lat?: number;
|
|
lng?: number;
|
|
alt?: number;
|
|
};
|
|
|
|
export type Post = {
|
|
_id: string;
|
|
_type: "post";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
title?: string;
|
|
slug?: Slug;
|
|
content?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "normal" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "blockquote";
|
|
listItem?: "bullet" | "number";
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
excerpt?: string;
|
|
coverImage?: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
};
|
|
date?: string;
|
|
author?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "author";
|
|
};
|
|
};
|
|
|
|
export type Author = {
|
|
_id: string;
|
|
_type: "author";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
name?: string;
|
|
picture?: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
};
|
|
};
|
|
|
|
export type Slug = {
|
|
_type: "slug";
|
|
current?: string;
|
|
source?: string;
|
|
};
|
|
|
|
export type Settings = {
|
|
_id: string;
|
|
_type: "settings";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
title?: string;
|
|
description?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "normal";
|
|
listItem?: never;
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
footer?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "normal" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "blockquote";
|
|
listItem?: "bullet" | "number";
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
ogImage?: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
metadataBase?: string;
|
|
_type: "image";
|
|
};
|
|
};
|
|
|
|
export type SanityImageCrop = {
|
|
_type: "sanity.imageCrop";
|
|
top?: number;
|
|
bottom?: number;
|
|
left?: number;
|
|
right?: number;
|
|
};
|
|
|
|
export type SanityImageHotspot = {
|
|
_type: "sanity.imageHotspot";
|
|
x?: number;
|
|
y?: number;
|
|
height?: number;
|
|
width?: number;
|
|
};
|
|
|
|
export type SanityImageAsset = {
|
|
_id: string;
|
|
_type: "sanity.imageAsset";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
originalFilename?: string;
|
|
label?: string;
|
|
title?: string;
|
|
description?: string;
|
|
altText?: string;
|
|
sha1hash?: string;
|
|
extension?: string;
|
|
mimeType?: string;
|
|
size?: number;
|
|
assetId?: string;
|
|
uploadId?: string;
|
|
path?: string;
|
|
url?: string;
|
|
metadata?: SanityImageMetadata;
|
|
source?: SanityAssetSourceData;
|
|
};
|
|
|
|
export type SanityAssetSourceData = {
|
|
_type: "sanity.assetSourceData";
|
|
name?: string;
|
|
id?: string;
|
|
url?: string;
|
|
};
|
|
|
|
export type SanityImageMetadata = {
|
|
_type: "sanity.imageMetadata";
|
|
location?: Geopoint;
|
|
dimensions?: SanityImageDimensions;
|
|
palette?: SanityImagePalette;
|
|
lqip?: string;
|
|
blurHash?: string;
|
|
hasAlpha?: boolean;
|
|
isOpaque?: boolean;
|
|
};
|
|
|
|
export type SanityAssistInstructionTask = {
|
|
_type: "sanity.assist.instructionTask";
|
|
path?: string;
|
|
instructionKey?: string;
|
|
started?: string;
|
|
updated?: string;
|
|
info?: string;
|
|
};
|
|
|
|
export type SanityAssistTaskStatus = {
|
|
_type: "sanity.assist.task.status";
|
|
tasks?: Array<
|
|
{
|
|
_key: string;
|
|
} & SanityAssistInstructionTask
|
|
>;
|
|
};
|
|
|
|
export type SanityAssistSchemaTypeAnnotations = {
|
|
_type: "sanity.assist.schemaType.annotations";
|
|
title?: string;
|
|
fields?: Array<
|
|
{
|
|
_key: string;
|
|
} & SanityAssistSchemaTypeField
|
|
>;
|
|
};
|
|
|
|
export type SanityAssistOutputType = {
|
|
_type: "sanity.assist.output.type";
|
|
type?: string;
|
|
};
|
|
|
|
export type SanityAssistOutputField = {
|
|
_type: "sanity.assist.output.field";
|
|
path?: string;
|
|
};
|
|
|
|
export type SanityAssistInstructionContext = {
|
|
_type: "sanity.assist.instruction.context";
|
|
reference?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "assist.instruction.context";
|
|
};
|
|
};
|
|
|
|
export type AssistInstructionContext = {
|
|
_id: string;
|
|
_type: "assist.instruction.context";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
title?: string;
|
|
context?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "normal";
|
|
listItem?: never;
|
|
markDefs?: null;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
};
|
|
|
|
export type SanityAssistInstructionUserInput = {
|
|
_type: "sanity.assist.instruction.userInput";
|
|
message?: string;
|
|
description?: string;
|
|
};
|
|
|
|
export type SanityAssistInstructionPrompt = Array<{
|
|
children?: Array<
|
|
| {
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}
|
|
| ({
|
|
_key: string;
|
|
} & SanityAssistInstructionFieldRef)
|
|
| ({
|
|
_key: string;
|
|
} & SanityAssistInstructionContext)
|
|
| ({
|
|
_key: string;
|
|
} & SanityAssistInstructionUserInput)
|
|
>;
|
|
style?: "normal";
|
|
listItem?: never;
|
|
markDefs?: null;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
|
|
export type SanityAssistInstructionFieldRef = {
|
|
_type: "sanity.assist.instruction.fieldRef";
|
|
path?: string;
|
|
};
|
|
|
|
export type SanityAssistInstruction = {
|
|
_type: "sanity.assist.instruction";
|
|
prompt?: SanityAssistInstructionPrompt;
|
|
icon?: string;
|
|
title?: string;
|
|
userId?: string;
|
|
createdById?: string;
|
|
output?: Array<
|
|
| ({
|
|
_key: string;
|
|
} & SanityAssistOutputField)
|
|
| ({
|
|
_key: string;
|
|
} & SanityAssistOutputType)
|
|
>;
|
|
};
|
|
|
|
export type SanityAssistSchemaTypeField = {
|
|
_type: "sanity.assist.schemaType.field";
|
|
path?: string;
|
|
instructions?: Array<
|
|
{
|
|
_key: string;
|
|
} & SanityAssistInstruction
|
|
>;
|
|
};
|
|
|
|
export type AllSanitySchemaTypes =
|
|
| SanityImagePaletteSwatch
|
|
| SanityImagePalette
|
|
| SanityImageDimensions
|
|
| SanityFileAsset
|
|
| Geopoint
|
|
| Post
|
|
| Author
|
|
| Slug
|
|
| Settings
|
|
| SanityImageCrop
|
|
| SanityImageHotspot
|
|
| SanityImageAsset
|
|
| SanityAssetSourceData
|
|
| SanityImageMetadata
|
|
| SanityAssistInstructionTask
|
|
| SanityAssistTaskStatus
|
|
| SanityAssistSchemaTypeAnnotations
|
|
| SanityAssistOutputType
|
|
| SanityAssistOutputField
|
|
| SanityAssistInstructionContext
|
|
| AssistInstructionContext
|
|
| SanityAssistInstructionUserInput
|
|
| SanityAssistInstructionPrompt
|
|
| SanityAssistInstructionFieldRef
|
|
| SanityAssistInstruction
|
|
| SanityAssistSchemaTypeField;
|
|
export declare const internalGroqTypeReferenceTo: unique symbol;
|
|
// Source: ./sanity/lib/queries.ts
|
|
// Variable: settingsQuery
|
|
// Query: *[_type == "settings"][0]
|
|
export type SettingsQueryResult = {
|
|
_id: string;
|
|
_type: "settings";
|
|
_createdAt: string;
|
|
_updatedAt: string;
|
|
_rev: string;
|
|
title?: string;
|
|
description?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "normal";
|
|
listItem?: never;
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
footer?: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "normal";
|
|
listItem?: "bullet" | "number";
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}>;
|
|
ogImage?: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
metadataBase?: string;
|
|
_type: "image";
|
|
};
|
|
} | null;
|
|
// Variable: heroQuery
|
|
// Query: *[_type == "post" && defined(slug.current)] | order(date desc, _updatedAt desc) [0] { content, _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture}, }
|
|
export type HeroQueryResult = {
|
|
content: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "normal";
|
|
listItem?: "bullet" | "number";
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}> | null;
|
|
_id: string;
|
|
status: "draft" | "published";
|
|
title: string | "Untitled";
|
|
slug: string | null;
|
|
excerpt: string | null;
|
|
coverImage: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
date: string;
|
|
author: {
|
|
name: string | "Anonymous";
|
|
picture: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
} | null;
|
|
} | null;
|
|
// Variable: moreStoriesQuery
|
|
// Query: *[_type == "post" && _id != $skip && defined(slug.current)] | order(date desc, _updatedAt desc) [0...$limit] { _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture}, }
|
|
export type MoreStoriesQueryResult = Array<{
|
|
_id: string;
|
|
status: "draft" | "published";
|
|
title: string | "Untitled";
|
|
slug: string | null;
|
|
excerpt: string | null;
|
|
coverImage: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
date: string;
|
|
author: {
|
|
name: string | "Anonymous";
|
|
picture: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
} | null;
|
|
}>;
|
|
// Variable: postQuery
|
|
// Query: *[_type == "post" && slug.current == $slug] [0] { content, _id, "status": select(_originalId in path("drafts.**") => "draft", "published"), "title": coalesce(title, "Untitled"), "slug": slug.current, excerpt, coverImage, "date": coalesce(date, _updatedAt), "author": author->{"name": coalesce(name, "Anonymous"), picture}, }
|
|
export type PostQueryResult = {
|
|
content: Array<{
|
|
children?: Array<{
|
|
marks?: Array<string>;
|
|
text?: string;
|
|
_type: "span";
|
|
_key: string;
|
|
}>;
|
|
style?: "blockquote" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "normal";
|
|
listItem?: "bullet" | "number";
|
|
markDefs?: Array<{
|
|
href?: string;
|
|
_type: "link";
|
|
_key: string;
|
|
}>;
|
|
level?: number;
|
|
_type: "block";
|
|
_key: string;
|
|
}> | null;
|
|
_id: string;
|
|
status: "draft" | "published";
|
|
title: string | "Untitled";
|
|
slug: string | null;
|
|
excerpt: string | null;
|
|
coverImage: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
date: string;
|
|
author: {
|
|
name: string | "Anonymous";
|
|
picture: {
|
|
asset?: {
|
|
_ref: string;
|
|
_type: "reference";
|
|
_weak?: boolean;
|
|
[internalGroqTypeReferenceTo]?: "sanity.imageAsset";
|
|
};
|
|
hotspot?: SanityImageHotspot;
|
|
crop?: SanityImageCrop;
|
|
alt?: string;
|
|
_type: "image";
|
|
} | null;
|
|
} | null;
|
|
} | null;
|
|
|
|
// Source: ./app/(blog)/posts/[slug]/page.tsx
|
|
// Variable: postSlugs
|
|
// Query: *[_type == "post" && defined(slug.current)]{"slug": slug.current}
|
|
export type PostSlugsResult = Array<{
|
|
slug: string | null;
|
|
}>;
|
|
|
|
// Query TypeMap
|
|
import "@sanity/client";
|
|
declare module "@sanity/client" {
|
|
interface SanityQueries {
|
|
'*[_type == "settings"][0]': SettingsQueryResult;
|
|
'\n *[_type == "post" && defined(slug.current)] | order(date desc, _updatedAt desc) [0] {\n content,\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->{"name": coalesce(name, "Anonymous"), picture},\n\n }\n': HeroQueryResult;
|
|
'\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->{"name": coalesce(name, "Anonymous"), picture},\n\n }\n': MoreStoriesQueryResult;
|
|
'\n *[_type == "post" && slug.current == $slug] [0] {\n content,\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->{"name": coalesce(name, "Anonymous"), picture},\n\n }\n': PostQueryResult;
|
|
'*[_type == "post" && defined(slug.current)]{"slug": slug.current}': PostSlugsResult;
|
|
}
|
|
}
|