chore(core-cms): regenerate Payload types with consentState field
Some checks failed
CI / typecheck + lint + boundaries + test + build (push) Has been cancelled
CI / Playwright e2e (push) Has been cancelled
CI / Storybook smoke tests + visual regression (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Coverage snapshot / snapshot (push) Has been cancelled
Release Please / release-please (push) Has been cancelled
Sentry PII guard (R31) / pii-guard (push) Has been cancelled

This commit is contained in:
danijel-lf
2026-05-26 11:46:39 +02:00
parent 8111639660
commit 3eaf50151f
2 changed files with 91 additions and 77 deletions

View File

@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/triple-slash-reference */
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" /> /// <reference path="./.next/types/routes.d.ts" />

View File

@@ -13,53 +13,53 @@
* via the `definition` "supportedTimezones". * via the `definition` "supportedTimezones".
*/ */
export type SupportedTimezones = export type SupportedTimezones =
| 'Pacific/Midway' | "Pacific/Midway"
| 'Pacific/Niue' | "Pacific/Niue"
| 'Pacific/Honolulu' | "Pacific/Honolulu"
| 'Pacific/Rarotonga' | "Pacific/Rarotonga"
| 'America/Anchorage' | "America/Anchorage"
| 'Pacific/Gambier' | "Pacific/Gambier"
| 'America/Los_Angeles' | "America/Los_Angeles"
| 'America/Tijuana' | "America/Tijuana"
| 'America/Denver' | "America/Denver"
| 'America/Phoenix' | "America/Phoenix"
| 'America/Chicago' | "America/Chicago"
| 'America/Guatemala' | "America/Guatemala"
| 'America/New_York' | "America/New_York"
| 'America/Bogota' | "America/Bogota"
| 'America/Caracas' | "America/Caracas"
| 'America/Santiago' | "America/Santiago"
| 'America/Buenos_Aires' | "America/Buenos_Aires"
| 'America/Sao_Paulo' | "America/Sao_Paulo"
| 'Atlantic/South_Georgia' | "Atlantic/South_Georgia"
| 'Atlantic/Azores' | "Atlantic/Azores"
| 'Atlantic/Cape_Verde' | "Atlantic/Cape_Verde"
| 'Europe/London' | "Europe/London"
| 'Europe/Berlin' | "Europe/Berlin"
| 'Africa/Lagos' | "Africa/Lagos"
| 'Europe/Athens' | "Europe/Athens"
| 'Africa/Cairo' | "Africa/Cairo"
| 'Europe/Moscow' | "Europe/Moscow"
| 'Asia/Riyadh' | "Asia/Riyadh"
| 'Asia/Dubai' | "Asia/Dubai"
| 'Asia/Baku' | "Asia/Baku"
| 'Asia/Karachi' | "Asia/Karachi"
| 'Asia/Tashkent' | "Asia/Tashkent"
| 'Asia/Calcutta' | "Asia/Calcutta"
| 'Asia/Dhaka' | "Asia/Dhaka"
| 'Asia/Almaty' | "Asia/Almaty"
| 'Asia/Jakarta' | "Asia/Jakarta"
| 'Asia/Bangkok' | "Asia/Bangkok"
| 'Asia/Shanghai' | "Asia/Shanghai"
| 'Asia/Singapore' | "Asia/Singapore"
| 'Asia/Tokyo' | "Asia/Tokyo"
| 'Asia/Seoul' | "Asia/Seoul"
| 'Australia/Brisbane' | "Australia/Brisbane"
| 'Australia/Sydney' | "Australia/Sydney"
| 'Pacific/Guam' | "Pacific/Guam"
| 'Pacific/Noumea' | "Pacific/Noumea"
| 'Pacific/Auckland' | "Pacific/Auckland"
| 'Pacific/Fiji'; | "Pacific/Fiji";
export interface Config { export interface Config {
auth: { auth: {
@@ -71,10 +71,10 @@ export interface Config {
articles: Article; articles: Article;
pages: Page; pages: Page;
media: Media; media: Media;
'payload-kv': PayloadKv; "payload-kv": PayloadKv;
'payload-locked-documents': PayloadLockedDocument; "payload-locked-documents": PayloadLockedDocument;
'payload-preferences': PayloadPreference; "payload-preferences": PayloadPreference;
'payload-migrations': PayloadMigration; "payload-migrations": PayloadMigration;
}; };
collectionsJoins: {}; collectionsJoins: {};
collectionsSelect: { collectionsSelect: {
@@ -82,21 +82,27 @@ export interface Config {
articles: ArticlesSelect<false> | ArticlesSelect<true>; articles: ArticlesSelect<false> | ArticlesSelect<true>;
pages: PagesSelect<false> | PagesSelect<true>; pages: PagesSelect<false> | PagesSelect<true>;
media: MediaSelect<false> | MediaSelect<true>; media: MediaSelect<false> | MediaSelect<true>;
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>; "payload-kv": PayloadKvSelect<false> | PayloadKvSelect<true>;
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>; "payload-locked-documents":
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>; | PayloadLockedDocumentsSelect<false>
'payload-migrations': PayloadMigrationsSelect<false> | PayloadMigrationsSelect<true>; | PayloadLockedDocumentsSelect<true>;
"payload-preferences":
| PayloadPreferencesSelect<false>
| PayloadPreferencesSelect<true>;
"payload-migrations":
| PayloadMigrationsSelect<false>
| PayloadMigrationsSelect<true>;
}; };
db: { db: {
defaultIDType: number; defaultIDType: number;
}; };
fallbackLocale: null; fallbackLocale: null;
globals: { globals: {
'site-settings': SiteSetting; "site-settings": SiteSetting;
header: Header; header: Header;
}; };
globalsSelect: { globalsSelect: {
'site-settings': SiteSettingsSelect<false> | SiteSettingsSelect<true>; "site-settings": SiteSettingsSelect<false> | SiteSettingsSelect<true>;
header: HeaderSelect<false> | HeaderSelect<true>; header: HeaderSelect<false> | HeaderSelect<true>;
}; };
locale: null; locale: null;
@@ -134,7 +140,16 @@ export interface UserAuthOperations {
export interface User { export interface User {
id: number; id: number;
displayName?: string | null; displayName?: string | null;
role: 'admin' | 'editor' | 'author'; role: "admin" | "editor" | "author";
consentState?:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;
email: string; email: string;
@@ -152,7 +167,7 @@ export interface User {
}[] }[]
| null; | null;
password?: string | null; password?: string | null;
collection: 'users'; collection: "users";
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
@@ -173,20 +188,20 @@ export interface Article {
version: number; version: number;
[k: string]: unknown; [k: string]: unknown;
}[]; }[];
direction: ('ltr' | 'rtl') | null; direction: ("ltr" | "rtl") | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''; format: "left" | "start" | "center" | "right" | "end" | "justify" | "";
indent: number; indent: number;
version: number; version: number;
}; };
[k: string]: unknown; [k: string]: unknown;
} | null; } | null;
status: 'draft' | 'published'; status: "draft" | "published";
author: number | User; author: number | User;
featuredImage?: (number | null) | Media; featuredImage?: (number | null) | Media;
publishedAt?: string | null; publishedAt?: string | null;
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;
_status?: ('draft' | 'published') | null; _status?: ("draft" | "published") | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
@@ -230,10 +245,10 @@ export interface Page {
href: string; href: string;
id?: string | null; id?: string | null;
blockName?: string | null; blockName?: string | null;
blockType: 'cta'; blockType: "cta";
}[] }[]
| null; | null;
status: 'draft' | 'published'; status: "draft" | "published";
publishedAt?: string | null; publishedAt?: string | null;
seo: { seo: {
title: string; title: string;
@@ -241,7 +256,7 @@ export interface Page {
}; };
updatedAt: string; updatedAt: string;
createdAt: string; createdAt: string;
_status?: ('draft' | 'published') | null; _status?: ("draft" | "published") | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
@@ -268,24 +283,24 @@ export interface PayloadLockedDocument {
id: number; id: number;
document?: document?:
| ({ | ({
relationTo: 'users'; relationTo: "users";
value: number | User; value: number | User;
} | null) } | null)
| ({ | ({
relationTo: 'articles'; relationTo: "articles";
value: number | Article; value: number | Article;
} | null) } | null)
| ({ | ({
relationTo: 'pages'; relationTo: "pages";
value: number | Page; value: number | Page;
} | null) } | null)
| ({ | ({
relationTo: 'media'; relationTo: "media";
value: number | Media; value: number | Media;
} | null); } | null);
globalSlug?: string | null; globalSlug?: string | null;
user: { user: {
relationTo: 'users'; relationTo: "users";
value: number | User; value: number | User;
}; };
updatedAt: string; updatedAt: string;
@@ -298,7 +313,7 @@ export interface PayloadLockedDocument {
export interface PayloadPreference { export interface PayloadPreference {
id: number; id: number;
user: { user: {
relationTo: 'users'; relationTo: "users";
value: number | User; value: number | User;
}; };
key?: string | null; key?: string | null;
@@ -332,6 +347,7 @@ export interface PayloadMigration {
export interface UsersSelect<T extends boolean = true> { export interface UsersSelect<T extends boolean = true> {
displayName?: T; displayName?: T;
role?: T; role?: T;
consentState?: T;
updatedAt?: T; updatedAt?: T;
createdAt?: T; createdAt?: T;
email?: T; email?: T;
@@ -528,7 +544,7 @@ export interface CollectionsWidget {
data?: { data?: {
[k: string]: unknown; [k: string]: unknown;
}; };
width: 'full'; width: "full";
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
@@ -538,7 +554,6 @@ export interface Auth {
[k: string]: unknown; [k: string]: unknown;
} }
declare module "payload" {
declare module 'payload' {
export interface GeneratedTypes extends Config {} export interface GeneratedTypes extends Config {}
} }