Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions templates/blank/src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface Config {
collections: {
users: User;
media: Media;
'payload-kv': PayloadKv;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
Expand All @@ -77,6 +78,7 @@ export interface Config {
collectionsSelect: {
users: UsersSelect<false> | UsersSelect<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>;
Expand Down Expand Up @@ -156,6 +158,23 @@ export interface Media {
focalX?: number | null;
focalY?: number | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv".
*/
export interface PayloadKv {
id: string;
key: string;
data:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents".
Expand All @@ -170,6 +189,10 @@ export interface PayloadLockedDocument {
| ({
relationTo: 'media';
value: string | Media;
} | null)
| ({
relationTo: 'payload-kv';
value: string | PayloadKv;
} | null);
globalSlug?: string | null;
user: {
Expand Down Expand Up @@ -253,6 +276,14 @@ export interface MediaSelect<T extends boolean = true> {
focalX?: T;
focalY?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv_select".
*/
export interface PayloadKvSelect<T extends boolean = true> {
key?: T;
data?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents_select".
Expand Down
31 changes: 31 additions & 0 deletions templates/ecommerce/src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface Config {
carts: Cart;
orders: Order;
transactions: Transaction;
'payload-kv': PayloadKv;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
Expand Down Expand Up @@ -118,6 +119,7 @@ export interface Config {
carts: CartsSelect<false> | CartsSelect<true>;
orders: OrdersSelect<false> | OrdersSelect<true>;
transactions: TransactionsSelect<false> | TransactionsSelect<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>;
Expand Down Expand Up @@ -1030,6 +1032,23 @@ export interface FormSubmission {
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv".
*/
export interface PayloadKv {
id: string;
key: string;
data:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents".
Expand Down Expand Up @@ -1092,6 +1111,10 @@ export interface PayloadLockedDocument {
| ({
relationTo: 'transactions';
value: string | Transaction;
} | null)
| ({
relationTo: 'payload-kv';
value: string | PayloadKv;
} | null);
globalSlug?: string | null;
user: {
Expand Down Expand Up @@ -1720,6 +1743,14 @@ export interface TransactionsSelect<T extends boolean = true> {
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv_select".
*/
export interface PayloadKvSelect<T extends boolean = true> {
key?: T;
data?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents_select".
Expand Down
31 changes: 31 additions & 0 deletions templates/website/src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export interface Config {
forms: Form;
'form-submissions': FormSubmission;
search: Search;
'payload-kv': PayloadKv;
'payload-jobs': PayloadJob;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
Expand All @@ -92,6 +93,7 @@ export interface Config {
forms: FormsSelect<false> | FormsSelect<true>;
'form-submissions': FormSubmissionsSelect<false> | FormSubmissionsSelect<true>;
search: SearchSelect<false> | SearchSelect<true>;
'payload-kv': PayloadKvSelect<false> | PayloadKvSelect<true>;
'payload-jobs': PayloadJobsSelect<false> | PayloadJobsSelect<true>;
'payload-locked-documents': PayloadLockedDocumentsSelect<false> | PayloadLockedDocumentsSelect<true>;
'payload-preferences': PayloadPreferencesSelect<false> | PayloadPreferencesSelect<true>;
Expand Down Expand Up @@ -817,6 +819,23 @@ export interface Search {
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv".
*/
export interface PayloadKv {
id: string;
key: string;
data:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-jobs".
Expand Down Expand Up @@ -952,6 +971,10 @@ export interface PayloadLockedDocument {
relationTo: 'search';
value: string | Search;
} | null)
| ({
relationTo: 'payload-kv';
value: string | PayloadKv;
} | null)
| ({
relationTo: 'payload-jobs';
value: string | PayloadJob;
Expand Down Expand Up @@ -1492,6 +1515,14 @@ export interface SearchSelect<T extends boolean = true> {
updatedAt?: T;
createdAt?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv_select".
*/
export interface PayloadKvSelect<T extends boolean = true> {
key?: T;
data?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-jobs_select".
Expand Down
12 changes: 6 additions & 6 deletions templates/with-cloudflare-d1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@
},
"dependencies": {
"@opennextjs/cloudflare": "^1.6.5",
"@payloadcms/db-d1-sqlite": "3.59.1",
"@payloadcms/next": "3.59.1",
"@payloadcms/richtext-lexical": "3.59.1",
"@payloadcms/storage-r2": "3.59.1",
"@payloadcms/ui": "3.59.1",
"@payloadcms/db-d1-sqlite": "3.62.0",
"@payloadcms/next": "3.62.0",
"@payloadcms/richtext-lexical": "3.62.0",
"@payloadcms/storage-r2": "3.62.0",
"@payloadcms/ui": "3.62.0",
"cross-env": "^7.0.3",
"dotenv": "16.4.7",
"graphql": "^16.8.1",
"next": "15.4.4",
"payload": "3.59.1",
"payload": "3.62.0",
"react": "19.1.0",
"react-dom": "19.1.0"
},
Expand Down
31 changes: 31 additions & 0 deletions templates/with-cloudflare-d1/src/payload-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface Config {
collections: {
users: User;
media: Media;
'payload-kv': PayloadKv;
'payload-locked-documents': PayloadLockedDocument;
'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration;
Expand All @@ -77,6 +78,7 @@ export interface Config {
collectionsSelect: {
users: UsersSelect<false> | UsersSelect<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>;
Expand Down Expand Up @@ -154,6 +156,23 @@ export interface Media {
width?: number | null;
height?: number | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv".
*/
export interface PayloadKv {
id: number;
key: string;
data:
| {
[k: string]: unknown;
}
| unknown[]
| string
| number
| boolean
| null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents".
Expand All @@ -168,6 +187,10 @@ export interface PayloadLockedDocument {
| ({
relationTo: 'media';
value: number | Media;
} | null)
| ({
relationTo: 'payload-kv';
value: number | PayloadKv;
} | null);
globalSlug?: string | null;
user: {
Expand Down Expand Up @@ -249,6 +272,14 @@ export interface MediaSelect<T extends boolean = true> {
width?: T;
height?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-kv_select".
*/
export interface PayloadKvSelect<T extends boolean = true> {
key?: T;
data?: T;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-locked-documents_select".
Expand Down
12 changes: 6 additions & 6 deletions templates/with-postgres/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
"test:int": "cross-env NODE_OPTIONS=--no-deprecation vitest run --config ./vitest.config.mts"
},
"dependencies": {
"@payloadcms/db-postgres": "3.59.1",
"@payloadcms/next": "3.59.1",
"@payloadcms/payload-cloud": "3.59.1",
"@payloadcms/richtext-lexical": "3.59.1",
"@payloadcms/ui": "3.59.1",
"@payloadcms/db-postgres": "3.62.0",
"@payloadcms/next": "3.62.0",
"@payloadcms/payload-cloud": "3.62.0",
"@payloadcms/richtext-lexical": "3.62.0",
"@payloadcms/ui": "3.62.0",
"cross-env": "^7.0.3",
"graphql": "^16.8.1",
"next": "15.4.4",
"payload": "3.59.1",
"payload": "3.62.0",
"react": "19.1.0",
"react-dom": "19.1.0",
"sharp": "0.34.2"
Expand Down
Loading
Loading