fix(next, ui): exclude expired locks for globals (#8914)

Continued PR off of https://github.com/payloadcms/payload/pull/8899
This commit is contained in:
Patrik
2024-10-28 21:49:50 -04:00
committed by GitHub
parent 1e002acce9
commit e74906f555
10 changed files with 455 additions and 86 deletions

View File

@@ -13,6 +13,7 @@ export interface Config {
collections: {
pages: Page;
posts: Post;
tests: Test;
users: User;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
@@ -22,6 +23,7 @@ export interface Config {
defaultIDType: string;
};
globals: {
admin: Admin;
menu: Menu;
};
locale: null;
@@ -69,6 +71,17 @@ export interface Post {
createdAt: string;
_status?: ('draft' | 'published') | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "tests".
*/
export interface Test {
id: string;
text?: string | null;
updatedAt: string;
createdAt: string;
_status?: ('draft' | 'published') | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users".
@@ -102,6 +115,10 @@ export interface PayloadLockedDocument {
relationTo: 'posts';
value: string | Post;
} | null)
| ({
relationTo: 'tests';
value: string | Test;
} | null)
| ({
relationTo: 'users';
value: string | User;
@@ -148,6 +165,16 @@ export interface PayloadMigration {
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "admin".
*/
export interface Admin {
id: string;
adminText?: string | null;
updatedAt?: string | null;
createdAt?: string | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "menu".