From 7691829af2261cc41fbaa2dd711c16021057ed6d Mon Sep 17 00:00:00 2001 From: bryantgillespie Date: Tue, 13 Aug 2024 17:02:19 -0400 Subject: [PATCH] types --- types/schema/blocks/block-directory.ts | 3 ++- types/schema/content/feature.ts | 20 ++++++++++++++++++++ types/schema/content/index.ts | 1 + types/schema/schema.ts | 2 ++ 4 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 types/schema/content/feature.ts diff --git a/types/schema/blocks/block-directory.ts b/types/schema/blocks/block-directory.ts index 75243777..635ecc1a 100644 --- a/types/schema/blocks/block-directory.ts +++ b/types/schema/blocks/block-directory.ts @@ -1,6 +1,6 @@ export interface BlockDirectory { id: string; - collection: 'agency_partners'; + collection: 'agency_partners' | 'projects' | 'features'; filter: Record | null; style: | 'none' @@ -15,4 +15,5 @@ export interface BlockDirectory { | 'icon-above-title'; grid: '3' | '4' | '6'; title_size: 'small' | 'medium' | 'large'; + group_by?: string; } diff --git a/types/schema/content/feature.ts b/types/schema/content/feature.ts new file mode 100644 index 00000000..f04f47ab --- /dev/null +++ b/types/schema/content/feature.ts @@ -0,0 +1,20 @@ +import type { Seo } from '../meta/index.js'; +import type { BlockMedia } from '../blocks/block-media.js'; +import type { User } from '../system/index.js'; + +export interface Feature { + id: string; + sort: number | null; + user_created: string | User | null; + date_created: string | null; + user_updated: string | User | null; + date_updated: string | null; + title: string | null; + slug: string | null; + description: string | null; + status: string | null; + content: string | null; + module?: string | null; + seo: Seo | null; + media: BlockMedia | string | null; +} diff --git a/types/schema/content/index.ts b/types/schema/content/index.ts index 06ba66c8..00a2c11e 100644 --- a/types/schema/content/index.ts +++ b/types/schema/content/index.ts @@ -6,3 +6,4 @@ export type * from './video.js'; export type * from './event.js'; export type * from './developer-article.js'; export type * from './agency-partner.js'; +export type * from './feature.js'; diff --git a/types/schema/schema.ts b/types/schema/schema.ts index d2941158..7db85495 100644 --- a/types/schema/schema.ts +++ b/types/schema/schema.ts @@ -49,6 +49,7 @@ import type { SiteBanner, Team, Event, + Feature, DeveloperArticle, DeveloperArticleDocTag, DocTag, @@ -74,6 +75,7 @@ export interface Schema { site_banners: SiteBanner[]; team: Team[]; events: Event[]; + features: Feature[]; // Partner Program agency_partners: AgencyPartner[];