Skip to content

Commit

Permalink
types
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantgillespie committed Aug 13, 2024
1 parent 827c958 commit 7691829
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/schema/blocks/block-directory.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface BlockDirectory {
id: string;
collection: 'agency_partners';
collection: 'agency_partners' | 'projects' | 'features';
filter: Record<string, unknown> | null;
style:
| 'none'
Expand All @@ -15,4 +15,5 @@ export interface BlockDirectory {
| 'icon-above-title';
grid: '3' | '4' | '6';
title_size: 'small' | 'medium' | 'large';
group_by?: string;
}
20 changes: 20 additions & 0 deletions types/schema/content/feature.ts
Original file line number Diff line number Diff line change
@@ -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;
}
1 change: 1 addition & 0 deletions types/schema/content/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
2 changes: 2 additions & 0 deletions types/schema/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import type {
SiteBanner,
Team,
Event,
Feature,
DeveloperArticle,
DeveloperArticleDocTag,
DocTag,
Expand All @@ -74,6 +75,7 @@ export interface Schema {
site_banners: SiteBanner[];
team: Team[];
events: Event[];
features: Feature[];

// Partner Program
agency_partners: AgencyPartner[];
Expand Down

0 comments on commit 7691829

Please sign in to comment.