fix(web): remove redundant prop-types and unblock lint pipeline
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 10s
Build & Deploy / 🧪 QA (push) Failing after 2m24s
Build & Deploy / 🏗️ Build (push) Failing after 3m40s
Build & Deploy / 🚀 Deploy (push) Has been skipped
Build & Deploy / 🩺 Health Check (push) Has been skipped
Build & Deploy / 🔔 Notify (push) Successful in 3s

This commit is contained in:
2026-02-24 11:38:43 +01:00
parent 95a8b702fe
commit 6864903cff
205 changed files with 6570 additions and 1324 deletions

View File

@@ -70,6 +70,9 @@ export interface Config {
users: User;
media: Media;
posts: Post;
inquiries: Inquiry;
redirects: Redirect;
"context-files": ContextFile;
"payload-kv": PayloadKv;
"payload-locked-documents": PayloadLockedDocument;
"payload-preferences": PayloadPreference;
@@ -80,6 +83,9 @@ export interface Config {
users: UsersSelect<false> | UsersSelect<true>;
media: MediaSelect<false> | MediaSelect<true>;
posts: PostsSelect<false> | PostsSelect<true>;
inquiries: InquiriesSelect<false> | InquiriesSelect<true>;
redirects: RedirectsSelect<false> | RedirectsSelect<true>;
"context-files": ContextFilesSelect<false> | ContextFilesSelect<true>;
"payload-kv": PayloadKvSelect<false> | PayloadKvSelect<true>;
"payload-locked-documents":
| PayloadLockedDocumentsSelect<false>
@@ -95,8 +101,12 @@ export interface Config {
defaultIDType: number;
};
fallbackLocale: null;
globals: {};
globalsSelect: {};
globals: {
"ai-settings": AiSetting;
};
globalsSelect: {
"ai-settings": AiSettingsSelect<false> | AiSettingsSelect<true>;
};
locale: null;
user: User;
jobs: {
@@ -201,12 +211,99 @@ export interface Post {
title: string;
slug: string;
description: string;
/**
* Set a future date and save as 'Published' to schedule this post. It will not appear on the frontend until this date is reached.
*/
date: string;
tags: {
/**
* Kategorisiere diesen Post mit einem eindeutigen Tag
*/
tag?: string | null;
id?: string | null;
}[];
thumbnail?: string | null;
/**
* The main hero image for the blog post.
*/
featuredImage?: (number | null) | Media;
content?: {
root: {
type: string;
children: {
type: any;
version: number;
[k: string]: unknown;
}[];
direction: ("ltr" | "rtl") | null;
format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number;
version: number;
};
[k: string]: unknown;
} | null;
updatedAt: string;
createdAt: string;
_status?: ("draft" | "published") | null;
}
/**
* Contact form leads and inquiries.
*
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "inquiries".
*/
export interface Inquiry {
id: number;
name: string;
email: string;
companyName?: string | null;
projectType?: string | null;
message?: string | null;
isFreeText?: boolean | null;
/**
* The JSON data from the configurator.
*/
config?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "redirects".
*/
export interface Redirect {
id: number;
/**
* The old URL slug that should be redirected (e.g. 'old-post-name')
*/
from: string;
/**
* The new URL slug to redirect to (e.g. 'new-awesome-post')
*/
to: string;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "context-files".
*/
export interface ContextFile {
id: number;
/**
* Exact filename (e.g. 'strategy.md'). The system uses this to identify the document during prompt generation.
*/
filename: string;
/**
* The raw markdown/text content of the document.
*/
content: string;
updatedAt: string;
createdAt: string;
@@ -246,6 +343,18 @@ export interface PayloadLockedDocument {
| ({
relationTo: "posts";
value: number | Post;
} | null)
| ({
relationTo: "inquiries";
value: number | Inquiry;
} | null)
| ({
relationTo: "redirects";
value: number | Redirect;
} | null)
| ({
relationTo: "context-files";
value: number | ContextFile;
} | null);
globalSlug?: string | null;
user: {
@@ -378,7 +487,43 @@ export interface PostsSelect<T extends boolean = true> {
tag?: T;
id?: T;
};
thumbnail?: T;
featuredImage?: T;
content?: T;
updatedAt?: T;
createdAt?: T;
_status?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "inquiries_select".
*/
export interface InquiriesSelect<T extends boolean = true> {
name?: T;
email?: T;
companyName?: T;
projectType?: T;
message?: T;
isFreeText?: T;
config?: T;
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "redirects_select".
*/
export interface RedirectsSelect<T extends boolean = true> {
from?: T;
to?: T;
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "context-files_select".
*/
export interface ContextFilesSelect<T extends boolean = true> {
filename?: T;
content?: T;
updatedAt?: T;
createdAt?: T;
@@ -423,6 +568,39 @@ export interface PayloadMigrationsSelect<T extends boolean = true> {
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "ai-settings".
*/
export interface AiSetting {
id: number;
/**
* List of trusted B2B/Tech sources (e.g. 'Vercel Blog', 'Fireship', 'Theo - t3.gg') the AI should prioritize when researching facts or videos. This overrides the hardcoded defaults.
*/
customSources?:
| {
sourceName: string;
id?: string | null;
}[]
| null;
updatedAt?: string | null;
createdAt?: string | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "ai-settings_select".
*/
export interface AiSettingsSelect<T extends boolean = true> {
customSources?:
| T
| {
sourceName?: T;
id?: T;
};
updatedAt?: T;
createdAt?: T;
globalType?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".