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/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />

View File

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