chore: regenerate all types in test dir, and add to eslint & prettier ignores

This commit is contained in:
Alessio Gravili
2024-07-11 15:59:38 -04:00
parent ebcfc2d284
commit e5d5126d14
47 changed files with 5872 additions and 4653 deletions

View File

@@ -8,3 +8,4 @@
**/dist/** **/dist/**
**/node_modules **/node_modules
**/temp **/temp
**/payload-types.ts

View File

@@ -8,146 +8,170 @@
export interface Config { export interface Config {
auth: { auth: {
users: UserAuthOperations users: UserAuthOperations;
} };
collections: { collections: {
posts: Post posts: Post;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
menu: Menu menu: Menu;
'custom-ts': CustomT 'custom-ts': CustomT;
} };
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
} };
} }
export interface UserAuthOperations { export interface UserAuthOperations {
forgotPassword: { forgotPassword: {
email: string email: string;
} };
login: { login: {
password: string password: string;
email: string email: string;
} };
registerFirstUser: { registerFirstUser: {
email: string email: string;
password: string password: string;
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
text?: string | null text?: string | null;
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
richText2?: { richText2?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
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
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "menu". * via the `definition` "menu".
*/ */
export interface Menu { export interface Menu {
id: string id: string;
globalText?: string | null globalText?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-ts".
*/
export interface CustomT {
id: string;
custom?: 'hello' | 'world';
withDefinitionsUsage?: ObjectWithNumber[];
json: {
id: string;
name: string;
age?: number;
}[];
updatedAt?: string | null;
createdAt?: string | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "objectWithNumber".
*/
export interface ObjectWithNumber {
id?: number;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth". * via the `definition` "auth".
*/ */
export interface Auth { export interface Auth {
[k: string]: unknown [k: string]: unknown;
} }
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore
export interface GeneratedTypes extends Config {} export interface GeneratedTypes extends Config {}

View File

@@ -7,324 +7,385 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
'non-admin-user': NonAdminUserAuthOperations;
};
collections: { collections: {
users: User users: User;
'non-admin-user': NonAdminUser 'non-admin-user': NonAdminUser;
posts: Post posts: Post;
unrestricted: Unrestricted unrestricted: Unrestricted;
'fully-restricted': FullyRestricted 'fully-restricted': FullyRestricted;
'read-only-collection': ReadOnlyCollection 'read-only-collection': ReadOnlyCollection;
'user-restricted-collection': UserRestrictedCollection 'user-restricted-collection': UserRestrictedCollection;
'create-not-update-collection': CreateNotUpdateCollection 'create-not-update-collection': CreateNotUpdateCollection;
'restricted-versions': RestrictedVersion 'restricted-versions': RestrictedVersion;
'sibling-data': SiblingDatum 'sibling-data': SiblingDatum;
'rely-on-request-headers': RelyOnRequestHeader 'rely-on-request-headers': RelyOnRequestHeader;
'doc-level-access': DocLevelAccess 'doc-level-access': DocLevelAccess;
'hidden-fields': HiddenField 'hidden-fields': HiddenField;
'hidden-access': HiddenAccess 'hidden-access': HiddenAccess;
'hidden-access-count': HiddenAccessCount 'hidden-access-count': HiddenAccessCount;
'payload-preferences': PayloadPreference disabled: Disabled;
'payload-migrations': PayloadMigration 'payload-preferences': PayloadPreference;
} 'payload-migrations': PayloadMigration;
};
globals: { globals: {
settings: Setting settings: Setting;
test: Test test: Test;
'read-only-global': ReadOnlyGlobal 'read-only-global': ReadOnlyGlobal;
'user-restricted-global': UserRestrictedGlobal 'user-restricted-global': UserRestrictedGlobal;
'read-not-update-global': ReadNotUpdateGlobal 'read-not-update-global': ReadNotUpdateGlobal;
} };
locale: null locale: null;
user: user:
| (User & { | (User & {
collection: 'users' collection: 'users';
}) })
| (NonAdminUser & { | (NonAdminUser & {
collection: 'non-admin-user' collection: 'non-admin-user';
}) });
}
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
}
export interface NonAdminUserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
roles?: ('admin' | 'user')[] | null roles?: ('admin' | 'user')[] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "non-admin-user". * via the `definition` "non-admin-user".
*/ */
export interface NonAdminUser { export interface NonAdminUser {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
restrictedField?: string | null restrictedField?: string | null;
group?: { group?: {
restrictedGroupText?: string | null restrictedGroupText?: string | null;
} };
restrictedRowText?: string | null restrictedRowText?: string | null;
restrictedCollapsibleText?: string | null restrictedCollapsibleText?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "unrestricted". * via the `definition` "unrestricted".
*/ */
export interface Unrestricted { export interface Unrestricted {
id: string id: string;
name?: string | null name?: string | null;
userRestrictedDocs?: (string | UserRestrictedCollection)[] | null userRestrictedDocs?: (string | UserRestrictedCollection)[] | null;
createNotUpdateDocs?: (string | CreateNotUpdateCollection)[] | null createNotUpdateDocs?: (string | CreateNotUpdateCollection)[] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "user-restricted-collection". * via the `definition` "user-restricted-collection".
*/ */
export interface UserRestrictedCollection { export interface UserRestrictedCollection {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "create-not-update-collection". * via the `definition` "create-not-update-collection".
*/ */
export interface CreateNotUpdateCollection { export interface CreateNotUpdateCollection {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "fully-restricted". * via the `definition` "fully-restricted".
*/ */
export interface FullyRestricted { export interface FullyRestricted {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "read-only-collection". * via the `definition` "read-only-collection".
*/ */
export interface ReadOnlyCollection { export interface ReadOnlyCollection {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "restricted-versions". * via the `definition` "restricted-versions".
*/ */
export interface RestrictedVersion { export interface RestrictedVersion {
id: string id: string;
name?: string | null name?: string | null;
hidden?: boolean | null hidden?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "sibling-data". * via the `definition` "sibling-data".
*/ */
export interface SiblingDatum { export interface SiblingDatum {
id: string id: string;
array?: array?:
| { | {
allowPublicReadability?: boolean | null allowPublicReadability?: boolean | null;
text?: string | null text?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "rely-on-request-headers". * via the `definition` "rely-on-request-headers".
*/ */
export interface RelyOnRequestHeader { export interface RelyOnRequestHeader {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "doc-level-access". * via the `definition` "doc-level-access".
*/ */
export interface DocLevelAccess { export interface DocLevelAccess {
id: string id: string;
approvedForRemoval?: boolean | null approvedForRemoval?: boolean | null;
approvedTitle?: string | null approvedTitle?: string | null;
lockTitle?: boolean | null lockTitle?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hidden-fields". * via the `definition` "hidden-fields".
*/ */
export interface HiddenField { export interface HiddenField {
id: string id: string;
title?: string | null title?: string | null;
partiallyHiddenGroup?: { partiallyHiddenGroup?: {
name?: string | null name?: string | null;
value?: string | null value?: string | null;
} };
partiallyHiddenArray?: partiallyHiddenArray?:
| { | {
name?: string | null name?: string | null;
value?: string | null value?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
hidden?: boolean | null hidden?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hidden-access". * via the `definition` "hidden-access".
*/ */
export interface HiddenAccess { export interface HiddenAccess {
id: string id: string;
title: string title: string;
hidden?: boolean | null hidden?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hidden-access-count". * via the `definition` "hidden-access-count".
*/ */
export interface HiddenAccessCount { export interface HiddenAccessCount {
id: string id: string;
title: string title: string;
hidden?: boolean | null hidden?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "disabled".
*/
export interface Disabled {
id: string;
group?: {
text?: string | null;
};
namedTab?: {
text?: string | null;
};
unnamedTab?: string | null;
array?:
| {
text?: string | null;
id?: string | null;
}[]
| null;
updatedAt: string;
createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: user:
| { | {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} }
| { | {
relationTo: 'non-admin-user' relationTo: 'non-admin-user';
value: string | NonAdminUser value: string | NonAdminUser;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "settings". * via the `definition` "settings".
*/ */
export interface Setting { export interface Setting {
id: string id: string;
test?: boolean | null test?: boolean | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "test". * via the `definition` "test".
*/ */
export interface Test { export interface Test {
id: string id: string;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "read-only-global". * via the `definition` "read-only-global".
*/ */
export interface ReadOnlyGlobal { export interface ReadOnlyGlobal {
id: string id: string;
name?: string | null name?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "user-restricted-global". * via the `definition` "user-restricted-global".
*/ */
export interface UserRestrictedGlobal { export interface UserRestrictedGlobal {
id: string id: string;
name?: string | null name?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "read-not-update-global". * via the `definition` "read-not-update-global".
*/ */
export interface ReadNotUpdateGlobal { export interface ReadNotUpdateGlobal {
id: string id: string;
name?: string | null name?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,336 +7,371 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
uploads: Upload uploads: Upload;
posts: Post posts: Post;
users: User users: User;
'hidden-collection': HiddenCollection 'hidden-collection': HiddenCollection;
'collection-no-api-view': CollectionNoApiView 'collection-no-api-view': CollectionNoApiView;
'custom-views-one': CustomViewsOne 'custom-views-one': CustomViewsOne;
'custom-views-two': CustomViewsTwo 'custom-views-two': CustomViewsTwo;
'group-one-collection-ones': GroupOneCollectionOne 'custom-fields': CustomField;
'group-one-collection-twos': GroupOneCollectionTwo 'group-one-collection-ones': GroupOneCollectionOne;
'group-two-collection-ones': GroupTwoCollectionOne 'group-one-collection-twos': GroupOneCollectionTwo;
'group-two-collection-twos': GroupTwoCollectionTwo 'group-two-collection-ones': GroupTwoCollectionOne;
geo: Geo 'group-two-collection-twos': GroupTwoCollectionTwo;
customIdTab: CustomIdTab geo: Geo;
customIdRow: CustomIdRow customIdTab: CustomIdTab;
'disable-duplicate': DisableDuplicate customIdRow: CustomIdRow;
'payload-preferences': PayloadPreference 'disable-duplicate': DisableDuplicate;
'payload-migrations': PayloadMigration 'payload-preferences': PayloadPreference;
} 'payload-migrations': PayloadMigration;
};
globals: { globals: {
'hidden-global': HiddenGlobal 'hidden-global': HiddenGlobal;
'global-no-api-view': GlobalNoApiView 'global-no-api-view': GlobalNoApiView;
global: Global global: Global;
'custom-global-views-one': CustomGlobalViewsOne 'custom-global-views-one': CustomGlobalViewsOne;
'custom-global-views-two': CustomGlobalViewsTwo 'custom-global-views-two': CustomGlobalViewsTwo;
'group-globals-one': GroupGlobalsOne 'group-globals-one': GroupGlobalsOne;
'group-globals-two': GroupGlobalsTwo 'group-globals-two': GroupGlobalsTwo;
} };
locale: 'es' | 'en' locale: 'es' | 'en';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "uploads". * via the `definition` "uploads".
*/ */
export interface Upload { export interface Upload {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
richText?: richText?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
group?: { group?: {
title?: string | null title?: string | null;
} };
relationship?: (string | null) | Post relationship?: (string | null) | Post;
customCell?: string | null customCell?: string | null;
sidebarField?: string | null sidebarField?: string | null;
descriptionAsString?: string | null descriptionAsString?: string | null;
descriptionAsFunction?: string | null descriptionAsFunction?: string | null;
descriptionAsComponent?: string | null descriptionAsComponent?: 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
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
textField?: string | null textField?: string | null;
sidebarField?: string | null sidebarField?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hidden-collection". * via the `definition` "hidden-collection".
*/ */
export interface HiddenCollection { export interface HiddenCollection {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection-no-api-view". * via the `definition` "collection-no-api-view".
*/ */
export interface CollectionNoApiView { export interface CollectionNoApiView {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-views-one". * via the `definition` "custom-views-one".
*/ */
export interface CustomViewsOne { export interface CustomViewsOne {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-views-two". * via the `definition` "custom-views-two".
*/ */
export interface CustomViewsTwo { export interface CustomViewsTwo {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-fields".
*/
export interface CustomField {
id: string;
customSelectField?: string | null;
updatedAt: string;
createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-one-collection-ones". * via the `definition` "group-one-collection-ones".
*/ */
export interface GroupOneCollectionOne { export interface GroupOneCollectionOne {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-one-collection-twos". * via the `definition` "group-one-collection-twos".
*/ */
export interface GroupOneCollectionTwo { export interface GroupOneCollectionTwo {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-two-collection-ones". * via the `definition` "group-two-collection-ones".
*/ */
export interface GroupTwoCollectionOne { export interface GroupTwoCollectionOne {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-two-collection-twos". * via the `definition` "group-two-collection-twos".
*/ */
export interface GroupTwoCollectionTwo { export interface GroupTwoCollectionTwo {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "geo". * via the `definition` "geo".
*/ */
export interface Geo { export interface Geo {
id: string id: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point?: [number, number] | null point?: [number, number] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "customIdTab". * via the `definition` "customIdTab".
*/ */
export interface CustomIdTab { export interface CustomIdTab {
id: string | null id: string | null;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "customIdRow". * via the `definition` "customIdRow".
*/ */
export interface CustomIdRow { export interface CustomIdRow {
id: string | null id: string | null;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "disable-duplicate". * via the `definition` "disable-duplicate".
*/ */
export interface DisableDuplicate { export interface DisableDuplicate {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hidden-global". * via the `definition` "hidden-global".
*/ */
export interface HiddenGlobal { export interface HiddenGlobal {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global-no-api-view". * via the `definition` "global-no-api-view".
*/ */
export interface GlobalNoApiView { export interface GlobalNoApiView {
id: string id: string;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global". * via the `definition` "global".
*/ */
export interface Global { export interface Global {
id: string id: string;
title?: string | null title?: string | null;
sidebarField?: string | null sidebarField?: string | null;
_status?: ('draft' | 'published') | null _status?: ('draft' | 'published') | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-global-views-one". * via the `definition` "custom-global-views-one".
*/ */
export interface CustomGlobalViewsOne { export interface CustomGlobalViewsOne {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-global-views-two". * via the `definition` "custom-global-views-two".
*/ */
export interface CustomGlobalViewsTwo { export interface CustomGlobalViewsTwo {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-globals-one". * via the `definition` "group-globals-one".
*/ */
export interface GroupGlobalsOne { export interface GroupGlobalsOne {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "group-globals-two". * via the `definition` "group-globals-two".
*/ */
export interface GroupGlobalsTwo { export interface GroupGlobalsTwo {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,92 +7,116 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
arrays: Array arrays: Array;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "arrays". * via the `definition` "arrays".
*/ */
export interface Array { export interface Array {
id: string id: string;
arrayOfFields?: arrayOfFields?:
| { | {
required: string required: string;
optional?: string | null optional?: string | null;
innerArrayOfFields?: innerArrayOfFields?:
| { | {
required: string required: string;
optional?: string | null optional?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,152 +7,204 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
'api-keys': ApiKeyAuthOperations;
'public-users': PublicUserAuthOperations;
};
collections: { collections: {
users: User users: User;
'api-keys': ApiKey 'api-keys': ApiKey;
'public-users': PublicUser 'public-users': PublicUser;
relationsCollection: RelationsCollection relationsCollection: RelationsCollection;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: user:
| (User & { | (User & {
collection: 'users' collection: 'users';
}) })
| (ApiKey & { | (ApiKey & {
collection: 'api-keys' collection: 'api-keys';
}) })
| (PublicUser & { | (PublicUser & {
collection: 'public-users' collection: 'public-users';
}) });
}
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
}
export interface ApiKeyAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
}
export interface PublicUserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
adminOnlyField?: string | null adminOnlyField?: string | null;
roles: ('admin' | 'editor' | 'moderator' | 'user' | 'viewer')[] roles: ('admin' | 'editor' | 'moderator' | 'user' | 'viewer')[];
namedSaveToJWT?: string | null namedSaveToJWT?: string | null;
group?: { group?: {
liftedSaveToJWT?: string | null liftedSaveToJWT?: string | null;
} };
groupSaveToJWT?: { groupSaveToJWT?: {
saveToJWTString?: string | null saveToJWTString?: string | null;
saveToJWTFalse?: string | null saveToJWTFalse?: string | null;
} };
saveToJWTTab?: { saveToJWTTab?: {
test?: string | null test?: string | null;
} };
tabSaveToJWTString?: { tabSaveToJWTString?: {
includedByDefault?: string | null includedByDefault?: string | null;
} };
tabLiftedSaveToJWT?: string | null tabLiftedSaveToJWT?: string | null;
unnamedTabSaveToJWTString?: string | null unnamedTabSaveToJWTString?: string | null;
unnamedTabSaveToJWTFalse?: string | null unnamedTabSaveToJWTFalse?: string | null;
custom?: string | null custom?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
enableAPIKey?: boolean | null enableAPIKey?: boolean | null;
apiKey?: string | null apiKey?: string | null;
apiKeyIndex?: string | null apiKeyIndex?: string | null;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "api-keys". * via the `definition` "api-keys".
*/ */
export interface ApiKey { export interface ApiKey {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
enableAPIKey?: boolean | null enableAPIKey?: boolean | null;
apiKey?: string | null apiKey?: string | null;
apiKeyIndex?: string | null apiKeyIndex?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "public-users". * via the `definition` "public-users".
*/ */
export interface PublicUser { export interface PublicUser {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
_verified?: boolean | null _verified?: boolean | null;
_verificationToken?: string | null _verificationToken?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relationsCollection". * via the `definition` "relationsCollection".
*/ */
export interface RelationsCollection { export interface RelationsCollection {
id: string id: string;
rel?: (string | null) | User rel?: (string | null) | User;
text?: string | null text?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: user:
| { | {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} }
| { | {
relationTo: 'api-keys' relationTo: 'api-keys';
value: string | ApiKey value: string | ApiKey;
} }
| { | {
relationTo: 'public-users' relationTo: 'public-users';
value: string | PublicUser value: string | PublicUser;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,253 +7,277 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
point: Point point: Point;
posts: Post posts: Post;
'custom-ids': CustomId 'custom-ids': CustomId;
relation: Relation relation: Relation;
dummy: Dummy dummy: Dummy;
'error-on-hooks': ErrorOnHook 'error-on-hooks': ErrorOnHook;
'payload-api-test-ones': PayloadApiTestOne 'payload-api-test-ones': PayloadApiTestOne;
'payload-api-test-twos': PayloadApiTestTwo 'payload-api-test-twos': PayloadApiTestTwo;
'content-type': ContentType 'content-type': ContentType;
'cyclical-relationship': CyclicalRelationship 'cyclical-relationship': CyclicalRelationship;
media: Media media: Media;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' locale: 'en' | 'es';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "point". * via the `definition` "point".
*/ */
export interface Point { export interface Point {
id: string id: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point?: [number, number] | null point?: [number, number] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
min?: number | null min?: number | null;
relationField?: (string | null) | Relation relationField?: (string | null) | Relation;
relationToCustomID?: (number | null) | CustomId relationToCustomID?: (number | null) | CustomId;
relationHasManyField?: (string | Relation)[] | null relationHasManyField?: (string | Relation)[] | null;
relationMultiRelationTo?: relationMultiRelationTo?:
| ({ | ({
relationTo: 'relation' relationTo: 'relation';
value: string | Relation value: string | Relation;
} | null) } | null)
| ({ | ({
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} | null) } | null);
relationMultiRelationToHasMany?: relationMultiRelationToHasMany?:
| ( | (
| { | {
relationTo: 'relation' relationTo: 'relation';
value: string | Relation value: string | Relation;
} }
| { | {
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} }
)[] )[]
| null | null;
A1?: { A1?: {
A2?: string | null A2?: string | null;
} };
B1?: { B1?: {
B2?: string | null B2?: string | null;
} };
C1?: { C1?: {
C2Text?: string | null C2Text?: string | null;
C2?: { C2?: {
C3?: string | null C3?: string | null;
} };
} };
D1?: { D1?: {
D2?: { D2?: {
D3?: { D3?: {
D4?: string | null D4?: string | null;
} };
} };
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation". * via the `definition` "relation".
*/ */
export interface Relation { export interface Relation {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-ids". * via the `definition` "custom-ids".
*/ */
export interface CustomId { export interface CustomId {
id: number id: number;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "dummy". * via the `definition` "dummy".
*/ */
export interface Dummy { export interface Dummy {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "error-on-hooks". * via the `definition` "error-on-hooks".
*/ */
export interface ErrorOnHook { export interface ErrorOnHook {
id: string id: string;
title?: string | null title?: string | null;
errorBeforeChange?: boolean | null errorBeforeChange?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-api-test-ones". * via the `definition` "payload-api-test-ones".
*/ */
export interface PayloadApiTestOne { export interface PayloadApiTestOne {
id: string id: string;
payloadAPI?: string | null payloadAPI?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-api-test-twos". * via the `definition` "payload-api-test-twos".
*/ */
export interface PayloadApiTestTwo { export interface PayloadApiTestTwo {
id: string id: string;
payloadAPI?: string | null payloadAPI?: string | null;
relation?: (string | null) | PayloadApiTestOne relation?: (string | null) | PayloadApiTestOne;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "content-type". * via the `definition` "content-type".
*/ */
export interface ContentType { export interface ContentType {
id: string id: string;
contentType?: string | null contentType?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "cyclical-relationship". * via the `definition` "cyclical-relationship".
*/ */
export interface CyclicalRelationship { export interface CyclicalRelationship {
id: string id: string;
title?: string | null title?: string | null;
relationToSelf?: (string | null) | CyclicalRelationship relationToSelf?: (string | null) | CyclicalRelationship;
media?: string | Media | null media?: string | Media | 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
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,186 +7,210 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
point: Point point: Point;
relation: Relation relation: Relation;
dummy: Dummy dummy: Dummy;
'custom-id': CustomId 'custom-id': CustomId;
'custom-id-number': CustomIdNumber 'custom-id-number': CustomIdNumber;
'error-on-hooks': ErrorOnHook 'error-on-hooks': ErrorOnHook;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
fakeLocalization?: string | null fakeLocalization?: string | null;
relationField?: (string | null) | Relation relationField?: (string | null) | Relation;
relationHasManyField?: (string | Relation)[] | null relationHasManyField?: (string | Relation)[] | null;
relationMultiRelationTo?: relationMultiRelationTo?:
| ({ | ({
relationTo: 'relation' relationTo: 'relation';
value: string | Relation value: string | Relation;
} | null) } | null)
| ({ | ({
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} | null) } | null);
relationMultiRelationToHasMany?: relationMultiRelationToHasMany?:
| ( | (
| { | {
relationTo: 'relation' relationTo: 'relation';
value: string | Relation value: string | Relation;
} }
| { | {
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} }
)[] )[]
| null | null;
restrictedField?: string | null restrictedField?: string | null;
D1?: { D1?: {
D2?: { D2?: {
D3?: { D3?: {
D4?: string | null D4?: string | null;
} };
} };
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation". * via the `definition` "relation".
*/ */
export interface Relation { export interface Relation {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "dummy". * via the `definition` "dummy".
*/ */
export interface Dummy { export interface Dummy {
id: string id: string;
title?: string | null title?: string | null;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "point". * via the `definition` "point".
*/ */
export interface Point { export interface Point {
id: string id: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point?: [number, number] | null point?: [number, number] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-id". * via the `definition` "custom-id".
*/ */
export interface CustomId { export interface CustomId {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-id-number". * via the `definition` "custom-id-number".
*/ */
export interface CustomIdNumber { export interface CustomIdNumber {
id: number id: number;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "error-on-hooks". * via the `definition` "error-on-hooks".
*/ */
export interface ErrorOnHook { export interface ErrorOnHook {
id: string id: string;
text?: string | null text?: string | null;
errorBeforeChange?: boolean | null errorBeforeChange?: boolean | null;
errorAfterDelete?: boolean | null errorAfterDelete?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,100 +7,124 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
pages: Page pages: Page;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
'my-global': MyGlobal 'my-global': MyGlobal;
} };
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title?: string | null title?: string | null;
myBlocks?: myBlocks?:
| { | {
blockOneField?: string | null blockOneField?: string | null;
blockTwoField?: string | null blockTwoField?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'blockOne' blockType: 'blockOne';
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "my-global". * via the `definition` "my-global".
*/ */
export interface MyGlobal { export interface MyGlobal {
id: string id: string;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,68 +7,92 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,213 +7,237 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
'relation-a': RelationA 'relation-a': RelationA;
'relation-b': RelationB 'relation-b': RelationB;
'pg-migrations': PgMigration 'pg-migrations': PgMigration;
'custom-schema': CustomSchema 'custom-schema': CustomSchema;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
global: Global global: Global;
} };
locale: 'en' | 'es' locale: 'en' | 'es';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title: string title: string;
throwAfterChange?: boolean | null throwAfterChange?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-a". * via the `definition` "relation-a".
*/ */
export interface RelationA { export interface RelationA {
id: string id: string;
title?: string | null title?: string | null;
relationship?: (string | null) | RelationB relationship?: (string | null) | RelationB;
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-b". * via the `definition` "relation-b".
*/ */
export interface RelationB { export interface RelationB {
id: string id: string;
title?: string | null title?: string | null;
relationship?: (string | null) | RelationA relationship?: (string | null) | RelationA;
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pg-migrations". * via the `definition` "pg-migrations".
*/ */
export interface PgMigration { export interface PgMigration {
id: string id: string;
relation1?: (string | null) | RelationA relation1?: (string | null) | RelationA;
myArray?: myArray?:
| { | {
relation2?: (string | null) | RelationB relation2?: (string | null) | RelationB;
mySubArray?: mySubArray?:
| { | {
relation3?: (string | null) | RelationB relation3?: (string | null) | RelationB;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
myGroup?: { myGroup?: {
relation4?: (string | null) | RelationB relation4?: (string | null) | RelationB;
} };
myBlocks?: myBlocks?:
| { | {
relation5?: (string | null) | RelationA relation5?: (string | null) | RelationA;
relation6?: (string | null) | RelationB relation6?: (string | null) | RelationB;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'myBlock' blockType: 'myBlock';
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-schema". * via the `definition` "custom-schema".
*/ */
export interface CustomSchema { export interface CustomSchema {
id: string id: string;
text?: string | null text?: string | null;
localizedText?: string | null localizedText?: string | null;
relationship?: (string | RelationA)[] | null relationship?: (string | RelationA)[] | null;
select?: ('a' | 'b' | 'c')[] | null select?: ('a' | 'b' | 'c')[] | null;
radio?: ('a' | 'b' | 'c') | null radio?: ('a' | 'b' | 'c') | null;
array?: array?:
| { | {
text?: string | null text?: string | null;
localizedText?: string | null localizedText?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
blocks?: blocks?:
| { | {
text?: string | null text?: string | null;
localizedText?: string | null localizedText?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block' blockType: 'block';
}[] }[]
| null | 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
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global". * via the `definition` "global".
*/ */
export interface Global { export interface Global {
id: string id: string;
text?: string | null text?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,112 +7,171 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
'relation-a': RelationA 'relation-a': RelationA;
'relation-b': RelationB 'relation-b': RelationB;
users: User shops: Shop;
'payload-preferences': PayloadPreference items: Item;
'payload-migrations': PayloadMigration itemTags: ItemTag;
} users: User;
globals: {} 'payload-preferences': PayloadPreference;
locale: null 'payload-migrations': PayloadMigration;
};
globals: {};
locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title: string title: string;
owner?: (string | null) | User owner?: (string | null) | User;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-a". * via the `definition` "relation-a".
*/ */
export interface RelationA { export interface RelationA {
id: string id: string;
relationship?: (string | null) | RelationB relationship?: (string | null) | RelationB;
richText?: richText?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-b". * via the `definition` "relation-b".
*/ */
export interface RelationB { export interface RelationB {
id: string id: string;
relationship?: (string | null) | RelationA relationship?: (string | null) | RelationA;
richText?: richText?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "shops".
*/
export interface Shop {
id: string;
name?: string | null;
items?: (string | Item)[] | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "items".
*/
export interface Item {
id: string;
name?: string | null;
itemTags?: (string | ItemTag)[] | null;
updatedAt: string;
createdAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "itemTags".
*/
export interface ItemTag {
id: string;
name?: string | null;
updatedAt: string;
createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,68 +7,92 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,68 +7,92 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,138 +7,162 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
media: Media media: Media;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
menu: Menu menu: Menu;
} };
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
text?: string | null text?: string | null;
associatedMedia?: string | Media | null associatedMedia?: string | Media | 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
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
thumbnail?: { thumbnail?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
medium?: { medium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
large?: { large?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "menu". * via the `definition` "menu".
*/ */
export interface Menu { export interface Menu {
id: string id: string;
globalText?: string | null globalText?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,112 +7,136 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
endpoints: Endpoint endpoints: Endpoint;
'no-endpoints': NoEndpoint 'no-endpoints': NoEndpoint;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
'global-endpoints': GlobalEndpoint 'global-endpoints': GlobalEndpoint;
'global-no-endpoints': GlobalNoEndpoint 'global-no-endpoints': GlobalNoEndpoint;
} };
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "endpoints". * via the `definition` "endpoints".
*/ */
export interface Endpoint { export interface Endpoint {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "no-endpoints". * via the `definition` "no-endpoints".
*/ */
export interface NoEndpoint { export interface NoEndpoint {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global-endpoints". * via the `definition` "global-endpoints".
*/ */
export interface GlobalEndpoint { export interface GlobalEndpoint {
id: string id: string;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global-no-endpoints". * via the `definition` "global-no-endpoints".
*/ */
export interface GlobalNoEndpoint { export interface GlobalNoEndpoint {
id: string id: string;
name?: string | null name?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -1,4 +1,4 @@
import { rootEslintConfig, rootParserOptions } from '../eslint.config.js' import { defaultESLintIgnores, rootEslintConfig, rootParserOptions } from '../eslint.config.js'
import payloadPlugin from '@payloadcms/eslint-plugin' import payloadPlugin from '@payloadcms/eslint-plugin'
import playwright from 'eslint-plugin-playwright' import playwright from 'eslint-plugin-playwright'
@@ -8,6 +8,9 @@ let FlatConfig
/** @type {FlatConfig[]} */ /** @type {FlatConfig[]} */
export const testEslintConfig = [ export const testEslintConfig = [
...rootEslintConfig, ...rootEslintConfig,
{
ignores: [...defaultESLintIgnores, '**/payload-types.ts'],
},
{ {
languageOptions: { languageOptions: {
parserOptions: { parserOptions: {

View File

@@ -7,327 +7,366 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
'error-fields': ErrorField 'error-fields': ErrorField;
uploads: Upload uploads: Upload;
'validate-drafts-on': ValidateDraftsOn 'validate-drafts-on': ValidateDraftsOn;
'validate-drafts-off': ValidateDraftsOff 'validate-drafts-off': ValidateDraftsOff;
'validate-drafts-on-autosave': ValidateDraftsOnAutosave 'validate-drafts-on-autosave': ValidateDraftsOnAutosave;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {
locale: null 'global-validate-drafts-on': GlobalValidateDraftsOn;
};
locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "error-fields". * via the `definition` "error-fields".
*/ */
export interface ErrorField { export interface ErrorField {
id: string id: string;
parentArray?: parentArray?:
| { | {
childArray: { childArray: {
childArrayText: string childArrayText: string;
id?: string | null id?: string | null;
}[];
id?: string | null;
}[] }[]
id?: string | null | null;
}[]
| null
home: { home: {
tabText: string tabText: string;
text: string text: string;
array?: array?:
| { | {
requiredArrayText: string requiredArrayText: string;
arrayText?: string | null arrayText?: string | null;
group: { group: {
text: string text: string;
number: number number: number;
date: string date: string;
checkbox: boolean checkbox: boolean;
} };
code: string code: string;
json: json:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
email: string email: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point: [number, number] point: [number, number];
radio: 'mint' | 'dark_gray' radio: 'mint' | 'dark_gray';
relationship: string | User relationship: string | User;
richtext: { richtext: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
version: number version: number;
[k: string]: unknown [k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
};
select: 'mint' | 'dark_gray';
upload: string | Upload;
text: string;
textarea: string;
id?: string | null;
}[] }[]
direction: ('ltr' | 'rtl') | null | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '' };
indent: number tabText: string;
version: number text: string;
}
[k: string]: unknown
}
select: 'mint' | 'dark_gray'
upload: string | Upload
text: string
textarea: string
id?: string | null
}[]
| null
}
tabText: string
text: string
array?: array?:
| { | {
requiredArrayText: string requiredArrayText: string;
arrayText?: string | null arrayText?: string | null;
group: { group: {
text: string text: string;
number: number number: number;
date: string date: string;
checkbox: boolean checkbox: boolean;
} };
code: string code: string;
json: json:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
email: string email: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point: [number, number] point: [number, number];
radio: 'mint' | 'dark_gray' radio: 'mint' | 'dark_gray';
relationship: string | User relationship: string | User;
richtext: { richtext: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
version: number version: number;
[k: string]: unknown [k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
};
select: 'mint' | 'dark_gray';
upload: string | Upload;
text: string;
textarea: string;
id?: string | null;
}[] }[]
direction: ('ltr' | 'rtl') | null | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | ''
indent: number
version: number
}
[k: string]: unknown
}
select: 'mint' | 'dark_gray'
upload: string | Upload
text: string
textarea: string
id?: string | null
}[]
| null
layout?: layout?:
| { | {
tabText: string tabText: string;
text: string text: string;
array?: array?:
| { | {
requiredArrayText: string requiredArrayText: string;
arrayText?: string | null arrayText?: string | null;
group: { group: {
text: string text: string;
number: number number: number;
date: string date: string;
checkbox: boolean checkbox: boolean;
} };
code: string code: string;
json: json:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
email: string email: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
point: [number, number] point: [number, number];
radio: 'mint' | 'dark_gray' radio: 'mint' | 'dark_gray';
relationship: string | User relationship: string | User;
richtext: { richtext: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
version: number version: number;
[k: string]: unknown [k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
};
select: 'mint' | 'dark_gray';
upload: string | Upload;
text: string;
textarea: string;
id?: string | null;
}[] }[]
direction: ('ltr' | 'rtl') | null | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '' id?: string | null;
indent: number blockName?: string | null;
version: number blockType: 'block1';
}
[k: string]: unknown
}
select: 'mint' | 'dark_gray'
upload: string | Upload
text: string
textarea: string
id?: string | null
}[] }[]
| null | null;
id?: string | null
blockName?: string | null
blockType: 'block1'
}[]
| null
group: { group: {
text: string text: string;
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "uploads". * via the `definition` "uploads".
*/ */
export interface Upload { export interface Upload {
id: string id: string;
text?: string | null text?: string | null;
media?: string | Upload | null media?: string | Upload | null;
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "validate-drafts-on". * via the `definition` "validate-drafts-on".
*/ */
export interface ValidateDraftsOn { export interface ValidateDraftsOn {
id: string id: string;
title: string title: string;
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
* via the `definition` "validate-drafts-off". * via the `definition` "validate-drafts-off".
*/ */
export interface ValidateDraftsOff { export interface ValidateDraftsOff {
id: string id: string;
title: string title: string;
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
* via the `definition` "validate-drafts-on-autosave". * via the `definition` "validate-drafts-on-autosave".
*/ */
export interface ValidateDraftsOnAutosave { export interface ValidateDraftsOnAutosave {
id: string id: string;
title: string title: string;
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
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global-validate-drafts-on".
*/
export interface GlobalValidateDraftsOn {
id: string;
group: {
title: string;
};
_status?: ('draft' | 'published') | null;
updatedAt?: string | null;
createdAt?: string | null;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,109 +7,133 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
'blocks-collection': BlocksCollection 'blocks-collection': BlocksCollection;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "blocks-collection". * via the `definition` "blocks-collection".
*/ */
export interface BlocksCollection { export interface BlocksCollection {
id: string id: string;
layout?: layout?:
| { | {
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
version: number version: number;
[k: string]: unknown [k: string]: unknown;
}[];
direction: ('ltr' | 'rtl') | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '';
indent: number;
version: number;
};
[k: string]: unknown;
} | null;
field1?: string | null;
field2?: string | null;
field3?: string | null;
field4?: string | null;
field5?: string | null;
field6?: string | null;
field7?: string | null;
field8?: string | null;
field9?: string | null;
id?: string | null;
blockName?: string | null;
blockType: 'content';
}[] }[]
direction: ('ltr' | 'rtl') | null | null;
format: 'left' | 'start' | 'center' | 'right' | 'end' | 'justify' | '' updatedAt: string;
indent: number createdAt: string;
version: number
}
[k: string]: unknown
} | null
field1?: string | null
field2?: string | null
field3?: string | null
field4?: string | null
field5?: string | null
field6?: string | null
field7?: string | null
field8?: string | null
field9?: string | null
id?: string | null
blockName?: string | null
blockType: 'content'
}[]
| null
updatedAt: string
createdAt: string
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,286 +7,310 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
'fields-relationship': FieldsRelationship 'fields-relationship': FieldsRelationship;
'relation-filter-false': RelationFilterFalse 'relation-filter-false': RelationFilterFalse;
'relation-filter-true': RelationFilterTrue 'relation-filter-true': RelationFilterTrue;
'relation-one': RelationOne 'relation-one': RelationOne;
'relation-two': RelationTwo 'relation-two': RelationTwo;
'relation-restricted': RelationRestricted 'relation-restricted': RelationRestricted;
'relation-with-title': RelationWithTitle 'relation-with-title': RelationWithTitle;
'relation-updated-externally': RelationUpdatedExternally 'relation-updated-externally': RelationUpdatedExternally;
'collection-1': Collection1 'collection-1': Collection1;
'collection-2': Collection2 'collection-2': Collection2;
videos: Video videos: Video;
podcasts: Podcast podcasts: Podcast;
'mixed-media': MixedMedia 'mixed-media': MixedMedia;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "fields-relationship". * via the `definition` "fields-relationship".
*/ */
export interface FieldsRelationship { export interface FieldsRelationship {
id: string id: string;
relationship?: (string | null) | RelationOne relationship?: (string | null) | RelationOne;
relationshipHasMany?: (string | RelationOne)[] | null relationshipHasMany?: (string | RelationOne)[] | null;
relationshipMultiple?: relationshipMultiple?:
| ({ | ({
relationTo: 'relation-one' relationTo: 'relation-one';
value: string | RelationOne value: string | RelationOne;
} | null) } | null)
| ({ | ({
relationTo: 'relation-two' relationTo: 'relation-two';
value: string | RelationTwo value: string | RelationTwo;
} | null) } | null);
relationshipHasManyMultiple?: relationshipHasManyMultiple?:
| ( | (
| { | {
relationTo: 'relation-one' relationTo: 'relation-one';
value: string | RelationOne value: string | RelationOne;
} }
| { | {
relationTo: 'relation-two' relationTo: 'relation-two';
value: string | RelationTwo value: string | RelationTwo;
} }
)[] )[]
| null | null;
relationshipRestricted?: (string | null) | RelationRestricted relationshipRestricted?: (string | null) | RelationRestricted;
relationshipWithTitle?: (string | null) | RelationWithTitle relationshipWithTitle?: (string | null) | RelationWithTitle;
relationshipFiltered?: (string | null) | RelationOne relationshipFiltered?: (string | null) | RelationOne;
relationshipFilteredAsync?: (string | null) | RelationOne relationshipFilteredAsync?: (string | null) | RelationOne;
relationshipManyFiltered?: relationshipManyFiltered?:
| ( | (
| { | {
relationTo: 'relation-with-title' relationTo: 'relation-with-title';
value: string | RelationWithTitle value: string | RelationWithTitle;
} }
| { | {
relationTo: 'relation-filter-false' relationTo: 'relation-filter-false';
value: string | RelationFilterFalse value: string | RelationFilterFalse;
} }
| { | {
relationTo: 'relation-filter-true' relationTo: 'relation-filter-true';
value: string | RelationFilterTrue value: string | RelationFilterTrue;
} }
| { | {
relationTo: 'relation-one' relationTo: 'relation-one';
value: string | RelationOne value: string | RelationOne;
} }
)[] )[]
| null | null;
filter?: string | null filter?: string | null;
relationshipReadOnly?: (string | null) | RelationOne relationshipReadOnly?: (string | null) | RelationOne;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-one". * via the `definition` "relation-one".
*/ */
export interface RelationOne { export interface RelationOne {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-two". * via the `definition` "relation-two".
*/ */
export interface RelationTwo { export interface RelationTwo {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-restricted". * via the `definition` "relation-restricted".
*/ */
export interface RelationRestricted { export interface RelationRestricted {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-with-title". * via the `definition` "relation-with-title".
*/ */
export interface RelationWithTitle { export interface RelationWithTitle {
id: string id: string;
name?: string | null name?: string | null;
meta?: { meta?: {
title?: string | null title?: string | null;
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-filter-false". * via the `definition` "relation-filter-false".
*/ */
export interface RelationFilterFalse { export interface RelationFilterFalse {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-filter-true". * via the `definition` "relation-filter-true".
*/ */
export interface RelationFilterTrue { export interface RelationFilterTrue {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation-updated-externally". * via the `definition` "relation-updated-externally".
*/ */
export interface RelationUpdatedExternally { export interface RelationUpdatedExternally {
id: string id: string;
relationPrePopulate?: (string | null) | Collection1 relationPrePopulate?: (string | null) | Collection1;
relationHasMany?: (string | Collection1)[] | null relationHasMany?: (string | Collection1)[] | null;
relationToManyHasMany?: relationToManyHasMany?:
| ( | (
| { | {
relationTo: 'collection-1' relationTo: 'collection-1';
value: string | Collection1 value: string | Collection1;
} }
| { | {
relationTo: 'collection-2' relationTo: 'collection-2';
value: string | Collection2 value: string | Collection2;
} }
)[] )[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection-1". * via the `definition` "collection-1".
*/ */
export interface Collection1 { export interface Collection1 {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection-2". * via the `definition` "collection-2".
*/ */
export interface Collection2 { export interface Collection2 {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "videos". * via the `definition` "videos".
*/ */
export interface Video { export interface Video {
id: number id: number;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "podcasts". * via the `definition` "podcasts".
*/ */
export interface Podcast { export interface Podcast {
id: number id: number;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "mixed-media". * via the `definition` "mixed-media".
*/ */
export interface MixedMedia { export interface MixedMedia {
id: string id: string;
relatedMedia?: relatedMedia?:
| ( | (
| { | {
relationTo: 'videos' relationTo: 'videos';
value: number | Video value: number | Video;
} }
| { | {
relationTo: 'podcasts' relationTo: 'podcasts';
value: number | Podcast value: number | Podcast;
} }
)[] )[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,141 +7,165 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
global: Global global: Global;
array: Array array: Array;
'default-value': DefaultValue 'default-value': DefaultValue;
'access-control': AccessControl 'access-control': AccessControl;
'without-graphql': WithoutGraphql 'without-graphql': WithoutGraphql;
} };
locale: 'en' | 'es' locale: 'en' | 'es';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global". * via the `definition` "global".
*/ */
export interface Global { export interface Global {
id: string id: string;
json?: json?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
title?: string | null title?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "array". * via the `definition` "array".
*/ */
export interface Array { export interface Array {
id: string id: string;
array?: array?:
| { | {
text?: string | null text?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "default-value". * via the `definition` "default-value".
*/ */
export interface DefaultValue { export interface DefaultValue {
id: string id: string;
text?: string | null text?: string | null;
group?: { group?: {
text?: string | null text?: string | null;
} };
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "access-control". * via the `definition` "access-control".
*/ */
export interface AccessControl { export interface AccessControl {
id: string id: string;
title: string title: string;
enabled?: boolean | null enabled?: boolean | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "without-graphql". * via the `definition` "without-graphql".
*/ */
export interface WithoutGraphql { export interface WithoutGraphql {
id: string id: string;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -12,145 +12,169 @@
*/ */
export type SharedMetaArray = export type SharedMetaArray =
| { | {
title?: string | null title?: string | null;
description?: string | null description?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
collection1: Collection1 collection1: Collection1;
collection2: Collection2 collection2: Collection2;
'no-graphql': NoGraphql 'no-graphql': NoGraphql;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection1". * via the `definition` "collection1".
*/ */
export interface Collection1 { export interface Collection1 {
id: string id: string;
testing: string testing: string;
title: string title: string;
meta?: SharedMetaArray meta?: SharedMetaArray;
blocks: (SharedMetaBlock | AnotherSharedBlock)[] blocks: (SharedMetaBlock | AnotherSharedBlock)[];
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "SharedMetaBlock". * via the `definition` "SharedMetaBlock".
*/ */
export interface SharedMetaBlock { export interface SharedMetaBlock {
b1title: string b1title: string;
b1description?: string | null b1description?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block1' blockType: 'block1';
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "AnotherSharedBlock". * via the `definition` "AnotherSharedBlock".
*/ */
export interface AnotherSharedBlock { export interface AnotherSharedBlock {
b2title: string b2title: string;
b2description?: string | null b2description?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block2' blockType: 'block2';
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection2". * via the `definition` "collection2".
*/ */
export interface Collection2 { export interface Collection2 {
id: string id: string;
metaArray?: SharedMetaArray metaArray?: SharedMetaArray;
metaGroup?: SharedMeta metaGroup?: SharedMeta;
nestedGroup?: { nestedGroup?: {
meta?: SharedMeta meta?: SharedMeta;
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "SharedMeta". * via the `definition` "SharedMeta".
*/ */
export interface SharedMeta { export interface SharedMeta {
title?: string | null title?: string | null;
description?: string | null description?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "no-graphql". * via the `definition` "no-graphql".
*/ */
export interface NoGraphql { export interface NoGraphql {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -1,4 +1,4 @@
import type { type Payload, SanitizedConfig } from 'payload' import type { Payload, SanitizedConfig } from 'payload'
import { getPayloadHMR } from '@payloadcms/next/utilities' import { getPayloadHMR } from '@payloadcms/next/utilities'

View File

@@ -7,211 +7,235 @@
*/ */
export interface Config { export interface Config {
auth: {
'hooks-users': HooksUserAuthOperations;
};
collections: { collections: {
afterOperation: AfterOperation afterOperation: AfterOperation;
'context-hooks': ContextHook 'context-hooks': ContextHook;
transforms: Transform transforms: Transform;
hooks: Hook hooks: Hook;
'nested-after-read-hooks': NestedAfterReadHook 'nested-after-read-hooks': NestedAfterReadHook;
'chaining-hooks': ChainingHook 'chaining-hooks': ChainingHook;
relations: Relation relations: Relation;
'hooks-users': HooksUser 'hooks-users': HooksUser;
'data-hooks': DataHook 'data-hooks': DataHook;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
'data-hooks-global': DataHooksGlobal 'data-hooks-global': DataHooksGlobal;
} };
locale: null locale: null;
user: HooksUser & { user: HooksUser & {
collection: 'hooks-users' collection: 'hooks-users';
};
} }
export interface HooksUserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "afterOperation". * via the `definition` "afterOperation".
*/ */
export interface AfterOperation { export interface AfterOperation {
id: string id: string;
title: string title: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "context-hooks". * via the `definition` "context-hooks".
*/ */
export interface ContextHook { export interface ContextHook {
id: string id: string;
value?: string | null value?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "transforms". * via the `definition` "transforms".
*/ */
export interface Transform { export interface Transform {
id: string id: string;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
transform?: [number, number] | null transform?: [number, number] | null;
/** /**
* @minItems 2 * @minItems 2
* @maxItems 2 * @maxItems 2
*/ */
localizedTransform?: [number, number] | null localizedTransform?: [number, number] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hooks". * via the `definition` "hooks".
*/ */
export interface Hook { export interface Hook {
id: string id: string;
fieldBeforeValidate?: boolean | null fieldBeforeValidate?: boolean | null;
fieldBeforeChange?: boolean | null fieldBeforeChange?: boolean | null;
fieldAfterChange?: boolean | null fieldAfterChange?: boolean | null;
fieldAfterRead?: boolean | null fieldAfterRead?: boolean | null;
collectionBeforeValidate?: boolean | null collectionBeforeValidate?: boolean | null;
collectionBeforeChange?: boolean | null collectionBeforeChange?: boolean | null;
collectionAfterChange?: boolean | null collectionAfterChange?: boolean | null;
collectionBeforeRead?: boolean | null collectionBeforeRead?: boolean | null;
collectionAfterRead?: boolean | null collectionAfterRead?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "nested-after-read-hooks". * via the `definition` "nested-after-read-hooks".
*/ */
export interface NestedAfterReadHook { export interface NestedAfterReadHook {
id: string id: string;
text?: string | null text?: string | null;
group?: { group?: {
array?: array?:
| { | {
input?: string | null input?: string | null;
afterRead?: string | null afterRead?: string | null;
shouldPopulate?: (string | null) | Relation shouldPopulate?: (string | null) | Relation;
id?: string | null id?: string | null;
}[] }[]
| null | null;
subGroup?: { subGroup?: {
afterRead?: string | null afterRead?: string | null;
shouldPopulate?: (string | null) | Relation shouldPopulate?: (string | null) | Relation;
} };
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relations". * via the `definition` "relations".
*/ */
export interface Relation { export interface Relation {
id: string id: string;
title: string title: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "chaining-hooks". * via the `definition` "chaining-hooks".
*/ */
export interface ChainingHook { export interface ChainingHook {
id: string id: string;
text?: string | null text?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "hooks-users". * via the `definition` "hooks-users".
*/ */
export interface HooksUser { export interface HooksUser {
id: string id: string;
roles: ('admin' | 'user')[] roles: ('admin' | 'user')[];
afterLoginHook?: boolean | null afterLoginHook?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "data-hooks". * via the `definition` "data-hooks".
*/ */
export interface DataHook { export interface DataHook {
id: string id: string;
field_collectionAndField?: string | null field_collectionAndField?: string | null;
collection_beforeOperation_collection?: string | null collection_beforeOperation_collection?: string | null;
collection_beforeChange_collection?: string | null collection_beforeChange_collection?: string | null;
collection_afterChange_collection?: string | null collection_afterChange_collection?: string | null;
collection_beforeRead_collection?: string | null collection_beforeRead_collection?: string | null;
collection_afterRead_collection?: string | null collection_afterRead_collection?: string | null;
collection_afterOperation_collection?: string | null collection_afterOperation_collection?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'hooks-users' relationTo: 'hooks-users';
value: string | HooksUser value: string | HooksUser;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "data-hooks-global". * via the `definition` "data-hooks-global".
*/ */
export interface DataHooksGlobal { export interface DataHooksGlobal {
id: string id: string;
field_globalAndField?: string | null field_globalAndField?: string | null;
global_beforeChange_global?: string | null global_beforeChange_global?: string | null;
global_afterChange_global?: string | null global_afterChange_global?: string | null;
global_beforeRead_global?: string | null global_beforeRead_global?: string | null;
global_afterRead_global?: string | null global_afterRead_global?: string | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,83 +7,107 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
collection1: Collection1 collection1: Collection1;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "collection1". * via the `definition` "collection1".
*/ */
export interface Collection1 { export interface Collection1 {
id: string id: string;
fieldDefaultI18nValid?: string | null fieldDefaultI18nValid?: string | null;
fieldDefaultI18nInvalid?: string | null fieldDefaultI18nInvalid?: string | null;
fieldCustomI18nValidDefault?: string | null fieldCustomI18nValidDefault?: string | null;
fieldCustomI18nValidCustom?: string | null fieldCustomI18nValidCustom?: string | null;
fieldCustomI18nInvalid?: string | null fieldCustomI18nInvalid?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

File diff suppressed because it is too large Load Diff

View File

@@ -7,95 +7,119 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
posts: Post posts: Post;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'ar' locale: 'en' | 'ar';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
content?: { content?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,289 +7,313 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'localized-posts': LocalizedPost 'localized-posts': LocalizedPost;
'array-fields': ArrayField 'array-fields': ArrayField;
'localized-required': LocalizedRequired 'localized-required': LocalizedRequired;
'with-localized-relationship': WithLocalizedRelationship 'with-localized-relationship': WithLocalizedRelationship;
'relationship-localized': RelationshipLocalized 'relationship-localized': RelationshipLocalized;
dummy: Dummy dummy: Dummy;
nested: Nested nested: Nested;
'localized-sort': LocalizedSort 'localized-sort': LocalizedSort;
'blocks-same-name': BlocksSameName 'blocks-same-name': BlocksSameName;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
'global-array': GlobalArray 'global-array': GlobalArray;
} };
locale: 'en' | 'es' | 'pt' | 'ar' locale: 'en' | 'es' | 'pt' | 'ar';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
relation?: (string | null) | LocalizedPost relation?: (string | null) | LocalizedPost;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "localized-posts". * via the `definition` "localized-posts".
*/ */
export interface LocalizedPost { export interface LocalizedPost {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
localizedCheckbox?: boolean | null localizedCheckbox?: boolean | null;
children?: (string | LocalizedPost)[] | null children?: (string | LocalizedPost)[] | null;
group?: { group?: {
children?: string | null children?: string | null;
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "array-fields". * via the `definition` "array-fields".
*/ */
export interface ArrayField { export interface ArrayField {
id: string id: string;
items?: items?:
| { | {
text: string text: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "localized-required". * via the `definition` "localized-required".
*/ */
export interface LocalizedRequired { export interface LocalizedRequired {
id: string id: string;
title: string title: string;
layout: ( layout: (
| { | {
text?: string | null text?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'text' blockType: 'text';
} }
| { | {
number?: number | null number?: number | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'number' blockType: 'number';
} }
)[] )[];
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "with-localized-relationship". * via the `definition` "with-localized-relationship".
*/ */
export interface WithLocalizedRelationship { export interface WithLocalizedRelationship {
id: string id: string;
localizedRelationship?: (string | null) | LocalizedPost localizedRelationship?: (string | null) | LocalizedPost;
localizedRelationHasManyField?: (string | LocalizedPost)[] | null localizedRelationHasManyField?: (string | LocalizedPost)[] | null;
localizedRelationMultiRelationTo?: localizedRelationMultiRelationTo?:
| ({ | ({
relationTo: 'localized-posts' relationTo: 'localized-posts';
value: string | LocalizedPost value: string | LocalizedPost;
} | null) } | null)
| ({ | ({
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} | null) } | null);
localizedRelationMultiRelationToHasMany?: localizedRelationMultiRelationToHasMany?:
| ( | (
| { | {
relationTo: 'localized-posts' relationTo: 'localized-posts';
value: string | LocalizedPost value: string | LocalizedPost;
} }
| { | {
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} }
)[] )[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "dummy". * via the `definition` "dummy".
*/ */
export interface Dummy { export interface Dummy {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relationship-localized". * via the `definition` "relationship-localized".
*/ */
export interface RelationshipLocalized { export interface RelationshipLocalized {
id: string id: string;
relationship?: (string | null) | LocalizedPost relationship?: (string | null) | LocalizedPost;
relationshipHasMany?: (string | LocalizedPost)[] | null relationshipHasMany?: (string | LocalizedPost)[] | null;
relationMultiRelationTo?: relationMultiRelationTo?:
| ({ | ({
relationTo: 'localized-posts' relationTo: 'localized-posts';
value: string | LocalizedPost value: string | LocalizedPost;
} | null) } | null)
| ({ | ({
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} | null) } | null);
relationMultiRelationToHasMany?: relationMultiRelationToHasMany?:
| ( | (
| { | {
relationTo: 'localized-posts' relationTo: 'localized-posts';
value: string | LocalizedPost value: string | LocalizedPost;
} }
| { | {
relationTo: 'dummy' relationTo: 'dummy';
value: string | Dummy value: string | Dummy;
} }
)[] )[]
| null | null;
arrayField?: arrayField?:
| { | {
nestedRelation?: (string | null) | LocalizedPost nestedRelation?: (string | null) | LocalizedPost;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "nested". * via the `definition` "nested".
*/ */
export interface Nested { export interface Nested {
id: string id: string;
blocks?: blocks?:
| { | {
array?: array?:
| { | {
text?: string | null text?: string | null;
textNotLocalized?: string | null textNotLocalized?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block' blockType: 'block';
}[] }[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "localized-sort". * via the `definition` "localized-sort".
*/ */
export interface LocalizedSort { export interface LocalizedSort {
id: string id: string;
title?: string | null title?: string | null;
date?: string | null date?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "blocks-same-name". * via the `definition` "blocks-same-name".
*/ */
export interface BlocksSameName { export interface BlocksSameName {
id: string id: string;
blocks?: blocks?:
| ( | (
| { | {
title?: string | null title?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block_first' blockType: 'block_first';
} }
| { | {
title?: string | null title?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block_second' blockType: 'block_second';
} }
)[] )[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "global-array". * via the `definition` "global-array".
*/ */
export interface GlobalArray { export interface GlobalArray {
id: string id: string;
array?: array?:
| { | {
text?: string | null text?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,68 +7,92 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,155 +7,179 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
'nested-fields': NestedField 'nested-fields': NestedField;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "nested-fields". * via the `definition` "nested-fields".
*/ */
export interface NestedField { export interface NestedField {
id: string id: string;
array?: array?:
| { | {
group?: { group?: {
namedTab?: { namedTab?: {
blocks?: blocks?:
| { | {
text?: string | null text?: string | null;
blockArray?: blockArray?:
| { | {
arrayText?: string | null arrayText?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'blockWithFields' blockType: 'blockWithFields';
}[] }[]
| null | null;
} };
} };
id?: string | null id?: string | null;
}[] }[]
| null | null;
tab1?: { tab1?: {
layout?: layout?:
| ( | (
| { | {
items?: items?:
| { | {
title: string title: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block-1' blockType: 'block-1';
} }
| { | {
items?: items?:
| { | {
title2: string title2: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block-2' blockType: 'block-2';
} }
)[] )[]
| null | null;
} };
blocksWithSimilarConfigs?: blocksWithSimilarConfigs?:
| ( | (
| { | {
items?: items?:
| { | {
title: string title: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block-1' blockType: 'block-1';
} }
| { | {
items?: items?:
| { | {
title2: string title2: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block-2' blockType: 'block-2';
} }
)[] )[]
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,126 +7,150 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
media: Media media: Media;
'media-with-prefix': MediaWithPrefix 'media-with-prefix': MediaWithPrefix;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
alt?: string | null alt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
square?: { square?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
sixteenByNineMedium?: { sixteenByNineMedium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media-with-prefix". * via the `definition` "media-with-prefix".
*/ */
export interface MediaWithPrefix { export interface MediaWithPrefix {
id: string id: string;
prefix?: string | null prefix?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,106 +7,130 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
media: Media media: Media;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
alt?: string | null alt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
square?: { square?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
sixteenByNineMedium?: { sixteenByNineMedium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,279 +7,303 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
pages: Page pages: Page;
users: User users: User;
forms: Form forms: Form;
'form-submissions': FormSubmission 'form-submissions': FormSubmission;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
slug: string slug: string;
form?: (string | null) | Form form?: (string | null) | Form;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "forms". * via the `definition` "forms".
*/ */
export interface Form { export interface Form {
id: string id: string;
title: string title: string;
fields?: fields?:
| ( | (
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
required?: boolean | null required?: boolean | null;
defaultValue?: boolean | null defaultValue?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'checkbox' blockType: 'checkbox';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'country' blockType: 'country';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'email' blockType: 'email';
} }
| { | {
message?: message?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'message' blockType: 'message';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
defaultValue?: number | null defaultValue?: number | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'number' blockType: 'number';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
basePrice?: number | null basePrice?: number | null;
priceConditions?: priceConditions?:
| { | {
fieldToUse?: string | null fieldToUse?: string | null;
condition?: ('hasValue' | 'equals' | 'notEquals') | null condition?: ('hasValue' | 'equals' | 'notEquals') | null;
valueForCondition?: string | null valueForCondition?: string | null;
operator?: ('add' | 'subtract' | 'multiply' | 'divide') | null operator?: ('add' | 'subtract' | 'multiply' | 'divide') | null;
valueType?: ('static' | 'valueOfField') | null valueType?: ('static' | 'valueOfField') | null;
valueForOperator?: string | null valueForOperator?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'payment' blockType: 'payment';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
defaultValue?: string | null defaultValue?: string | null;
options?: options?:
| { | {
label: string label: string;
value: string value: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'select' blockType: 'select';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'state' blockType: 'state';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
defaultValue?: string | null defaultValue?: string | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'text' blockType: 'text';
} }
| { | {
name: string name: string;
label?: string | null label?: string | null;
width?: number | null width?: number | null;
defaultValue?: string | null defaultValue?: string | null;
required?: boolean | null required?: boolean | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'textarea' blockType: 'textarea';
} }
| { | {
value?: string | null value?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'color' blockType: 'color';
} }
)[] )[]
| null | null;
submitButtonLabel?: string | null submitButtonLabel?: string | null;
confirmationType?: ('message' | 'redirect') | null confirmationType?: ('message' | 'redirect') | null;
confirmationMessage?: confirmationMessage?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
redirect?: { redirect?: {
type?: ('reference' | 'custom') | null type?: ('reference' | 'custom') | null;
reference?: { reference?: {
relationTo: 'pages' relationTo: 'pages';
value: string | Page value: string | Page;
} | null } | null;
url?: string | null url?: string | null;
} };
emails?: emails?:
| { | {
emailTo?: string | null emailTo?: string | null;
cc?: string | null cc?: string | null;
bcc?: string | null bcc?: string | null;
replyTo?: string | null replyTo?: string | null;
emailFrom?: string | null emailFrom?: string | null;
subject: string subject: string;
message?: message?:
| { | {
[k: string]: unknown [k: string]: unknown;
}[] }[]
| null | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
custom?: string | null custom?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "form-submissions". * via the `definition` "form-submissions".
*/ */
export interface FormSubmission { export interface FormSubmission {
id: string id: string;
form: string | Form form: string | Form;
submissionData?: submissionData?:
| { | {
field: string field: string;
value: string value: string;
id?: string | null id?: string | null;
}[] }[]
| null | null;
custom?: string | null custom?: string | null;
payment?: { payment?: {
field?: string | null field?: string | null;
status?: string | null status?: string | null;
amount?: number | null amount?: number | null;
paymentProcessor?: string | null paymentProcessor?: string | null;
creditCard?: { creditCard?: {
token?: string | null token?: string | null;
brand?: string | null brand?: string | null;
number?: string | null number?: string | null;
} };
} };
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,112 +7,136 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
pages: Page pages: Page;
categories: Category categories: Category;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
slug: string slug: string;
fullTitle?: string | null fullTitle?: string | null;
parent?: (string | null) | Page parent?: (string | null) | Page;
breadcrumbs?: breadcrumbs?:
| { | {
doc?: (string | null) | Page doc?: (string | null) | Page;
url?: string | null url?: string | null;
label?: string | null label?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | 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
* via the `definition` "categories". * via the `definition` "categories".
*/ */
export interface Category { export interface Category {
id: string id: string;
name: string name: string;
categorization?: categorization?:
| { | {
doc?: (string | null) | Category doc?: (string | null) | Category;
url?: string | null url?: string | null;
label?: string | null label?: string | null;
test?: string | null test?: string | null;
id?: string | null id?: string | null;
}[] }[]
| null | null;
owner?: (string | null) | Category owner?: (string | null) | Category;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,100 +7,125 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
pages: Page pages: Page;
redirects: Redirect redirects: Redirect;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
excerpt?: string | null excerpt?: 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
* via the `definition` "redirects". * via the `definition` "redirects".
*/ */
export interface Redirect { export interface Redirect {
id: string id: string;
from: string from: string;
to?: { to?: {
type?: ('reference' | 'custom') | null type?: ('reference' | 'custom') | null;
reference?: { reference?: {
relationTo: 'pages' relationTo: 'pages';
value: string | Page value: string | Page;
} | null } | null;
url?: string | null url?: string | null;
} };
updatedAt: string customField?: string | null;
createdAt: string updatedAt: string;
createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,143 +7,167 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
uploads: Upload uploads: Upload;
pages: Page pages: Page;
posts: Post posts: Post;
relations: Relation relations: Relation;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "uploads". * via the `definition` "uploads".
*/ */
export interface Upload { export interface Upload {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title: string title: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relations". * via the `definition` "relations".
*/ */
export interface Relation { export interface Relation {
id: string id: string;
hasOne?: (string | null) | Post hasOne?: (string | null) | Post;
hasOnePoly?: hasOnePoly?:
| ({ | ({
relationTo: 'pages' relationTo: 'pages';
value: string | Page value: string | Page;
} | null) } | null)
| ({ | ({
relationTo: 'posts' relationTo: 'posts';
value: string | Post value: string | Post;
} | null) } | null);
hasMany?: (string | Post)[] | null hasMany?: (string | Post)[] | null;
hasManyPoly?: hasManyPoly?:
| ( | (
| { | {
relationTo: 'pages' relationTo: 'pages';
value: string | Page value: string | Page;
} }
| { | {
relationTo: 'posts' relationTo: 'posts';
value: string | Post value: string | Post;
} }
)[] )[]
| null | null;
upload?: string | Upload | null upload?: string | Upload | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,116 +7,140 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
pages: Page pages: Page;
posts: Post posts: Post;
search: Search search: Search;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
excerpt?: string | null excerpt?: 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
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title: string title: string;
excerpt?: string | null excerpt?: 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
* via the `definition` "search". * via the `definition` "search".
*/ */
export interface Search { export interface Search {
id: string id: string;
title?: string | null title?: string | null;
priority?: number | null priority?: number | null;
doc: doc:
| { | {
relationTo: 'pages' relationTo: 'pages';
value: string | Page value: string | Page;
} }
| { | {
relationTo: 'posts' relationTo: 'posts';
value: string | Post value: string | Post;
} };
excerpt?: string | null excerpt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,79 +7,103 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
text?: string | null text?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,146 +7,170 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
pages: Page pages: Page;
media: Media media: Media;
pagesWithImportedFields: PagesWithImportedField pagesWithImportedFields: PagesWithImportedField;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title: string title: string;
excerpt?: string | null excerpt?: string | null;
slug: string slug: string;
meta: { meta: {
title: string title: string;
description?: string | null description?: string | null;
image?: string | Media | null image?: string | Media | null;
ogTitle?: string | null ogTitle?: 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
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
media?: string | Media | null media?: string | Media | null;
richText?: { richText?: {
root: { root: {
type: string type: string;
children: { children: {
type: string type: string;
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;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pagesWithImportedFields". * via the `definition` "pagesWithImportedFields".
*/ */
export interface PagesWithImportedField { export interface PagesWithImportedField {
id: string id: string;
title: string title: string;
excerpt?: string | null excerpt?: string | null;
slug: string slug: string;
metaAndSEO?: { metaAndSEO?: {
title?: string | null title?: string | null;
innerMeta?: { innerMeta?: {
description?: string | null description?: string | null;
} };
innerMedia?: { innerMedia?: {
image?: string | Media | null image?: string | Media | 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
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,138 +7,168 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
customers: CustomerAuthOperations;
};
collections: { collections: {
users: User users: User;
products: Product products: Product;
customers: Customer customers: Customer;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'es' | 'de' locale: 'en' | 'es' | 'de';
user: user:
| (User & { | (User & {
collection: 'users' collection: 'users';
}) })
| (Customer & { | (Customer & {
collection: 'customers' collection: 'customers';
}) });
}
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
}
export interface CustomerAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "products". * via the `definition` "products".
*/ */
export interface Product { export interface Product {
id: string id: string;
name?: string | null name?: string | null;
price?: { price?: {
stripePriceID?: string | null stripePriceID?: string | null;
stripeJSON?: string | null stripeJSON?: string | null;
} };
stripeID?: string | null stripeID?: string | null;
skipSync?: boolean | null skipSync?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "customers". * via the `definition` "customers".
*/ */
export interface Customer { export interface Customer {
id: string id: string;
name?: string | null name?: string | null;
subscriptions?: subscriptions?:
| { | {
stripeSubscriptionID?: string | null stripeSubscriptionID?: string | null;
stripeProductID?: string | null stripeProductID?: string | null;
product?: (string | null) | Product product?: (string | null) | Product;
status?: status?:
| ( | ('active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'trialing' | 'unpaid')
| 'active' | null;
| 'canceled' id?: string | null;
| 'incomplete'
| 'incomplete_expired'
| 'past_due'
| 'trialing'
| 'unpaid'
)
| null
id?: string | null
}[] }[]
| null | null;
stripeID?: string | null stripeID?: string | null;
skipSync?: boolean | null skipSync?: boolean | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
enableAPIKey?: boolean | null enableAPIKey?: boolean | null;
apiKey?: string | null apiKey?: string | null;
apiKeyIndex?: string | null apiKeyIndex?: string | null;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: user:
| { | {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} }
| { | {
relationTo: 'customers' relationTo: 'customers';
value: string | Customer value: string | Customer;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,79 +7,103 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
users: User users: User;
pages: Page pages: Page;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "pages". * via the `definition` "pages".
*/ */
export interface Page { export interface Page {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,233 +7,257 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
posts: Post posts: Post;
postsLocalized: PostsLocalized postsLocalized: PostsLocalized;
relation: Relation relation: Relation;
'strict-access': StrictAccess 'strict-access': StrictAccess;
chained: Chained chained: Chained;
'custom-id': CustomId 'custom-id': CustomId;
'custom-id-number': CustomIdNumber 'custom-id-number': CustomIdNumber;
screenings: Screening screenings: Screening;
movies: Movie movies: Movie;
directors: Director directors: Director;
movieReviews: MovieReview movieReviews: MovieReview;
'polymorphic-relationships': PolymorphicRelationship 'polymorphic-relationships': PolymorphicRelationship;
tree: Tree tree: Tree;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: 'en' | 'de' locale: 'en' | 'de';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
title?: string | null title?: string | null;
description?: string | null description?: string | null;
number?: number | null number?: number | null;
relationField?: (string | null) | Relation relationField?: (string | null) | Relation;
defaultAccessRelation?: (string | null) | StrictAccess defaultAccessRelation?: (string | null) | StrictAccess;
chainedRelation?: (string | null) | Chained chainedRelation?: (string | null) | Chained;
maxDepthRelation?: (string | null) | Relation maxDepthRelation?: (string | null) | Relation;
customIdRelation?: (string | null) | CustomId customIdRelation?: (string | null) | CustomId;
customIdNumberRelation?: (number | null) | CustomIdNumber customIdNumberRelation?: (number | null) | CustomIdNumber;
filteredRelation?: (string | null) | Relation filteredRelation?: (string | null) | Relation;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "relation". * via the `definition` "relation".
*/ */
export interface Relation { export interface Relation {
id: string id: string;
name?: string | null name?: string | null;
disableRelation: boolean disableRelation: boolean;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "strict-access". * via the `definition` "strict-access".
*/ */
export interface StrictAccess { export interface StrictAccess {
id: string id: string;
name?: string | null name?: string | null;
disableRelation: boolean disableRelation: boolean;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "chained". * via the `definition` "chained".
*/ */
export interface Chained { export interface Chained {
id: string id: string;
name?: string | null name?: string | null;
relation?: (string | null) | Chained relation?: (string | null) | Chained;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-id". * via the `definition` "custom-id".
*/ */
export interface CustomId { export interface CustomId {
id: string id: string;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "custom-id-number". * via the `definition` "custom-id-number".
*/ */
export interface CustomIdNumber { export interface CustomIdNumber {
id: number id: number;
name?: string | null name?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "postsLocalized". * via the `definition` "postsLocalized".
*/ */
export interface PostsLocalized { export interface PostsLocalized {
id: string id: string;
title?: string | null title?: string | null;
relationField?: (string | null) | Relation relationField?: (string | null) | Relation;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "screenings". * via the `definition` "screenings".
*/ */
export interface Screening { export interface Screening {
id: string id: string;
name?: string | null name?: string | null;
movie?: (string | null) | Movie movie?: (string | null) | Movie;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "movies". * via the `definition` "movies".
*/ */
export interface Movie { export interface Movie {
id: string id: string;
name?: string | null name?: string | null;
director?: (string | null) | Director director?: (string | null) | Director;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "directors". * via the `definition` "directors".
*/ */
export interface Director { export interface Director {
id: string id: string;
name?: string | null name?: string | null;
movies?: (string | Movie)[] | null movies?: (string | Movie)[] | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "movieReviews". * via the `definition` "movieReviews".
*/ */
export interface MovieReview { export interface MovieReview {
id: string id: string;
movieReviewer: string | User movieReviewer: string | User;
likes?: (string | User)[] | null likes?: (string | User)[] | null;
visibility: 'followers' | 'public' visibility: 'followers' | 'public';
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "polymorphic-relationships". * via the `definition` "polymorphic-relationships".
*/ */
export interface PolymorphicRelationship { export interface PolymorphicRelationship {
id: string id: string;
polymorphic?: { polymorphic?: {
relationTo: 'movies' relationTo: 'movies';
value: string | Movie value: string | Movie;
} | null } | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "tree". * via the `definition` "tree".
*/ */
export interface Tree { export interface Tree {
id: string id: string;
text?: string | null text?: string | null;
parent?: (string | null) | Tree parent?: (string | null) | Tree;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,126 +7,150 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
media: Media media: Media;
'media-with-prefix': MediaWithPrefix 'media-with-prefix': MediaWithPrefix;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
alt?: string | null alt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
square?: { square?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
sixteenByNineMedium?: { sixteenByNineMedium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media-with-prefix". * via the `definition` "media-with-prefix".
*/ */
export interface MediaWithPrefix { export interface MediaWithPrefix {
id: string id: string;
prefix?: string | null prefix?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,126 +7,150 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
media: Media media: Media;
'media-with-prefix': MediaWithPrefix 'media-with-prefix': MediaWithPrefix;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
alt?: string | null alt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
square?: { square?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
sixteenByNineMedium?: { sixteenByNineMedium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media-with-prefix". * via the `definition` "media-with-prefix".
*/ */
export interface MediaWithPrefix { export interface MediaWithPrefix {
id: string id: string;
prefix?: string | null prefix?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

View File

@@ -7,126 +7,150 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
media: Media media: Media;
'media-with-prefix': MediaWithPrefix 'media-with-prefix': MediaWithPrefix;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: {} globals: {};
locale: null locale: null;
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media". * via the `definition` "media".
*/ */
export interface Media { export interface Media {
id: string id: string;
alt?: string | null alt?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
sizes?: { sizes?: {
square?: { square?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
sixteenByNineMedium?: { sixteenByNineMedium?: {
url?: string | null url?: string | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
filename?: string | null filename?: string | null;
} };
} };
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "media-with-prefix". * via the `definition` "media-with-prefix".
*/ */
export interface MediaWithPrefix { export interface MediaWithPrefix {
id: string id: string;
prefix?: string | null prefix?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
url?: string | null url?: string | null;
thumbnailURL?: string | null thumbnailURL?: string | null;
filename?: string | null filename?: string | null;
mimeType?: string | null mimeType?: string | null;
filesize?: number | null filesize?: number | null;
width?: number | null width?: number | null;
height?: number | null height?: number | null;
focalX?: number | null focalX?: number | null;
focalY?: number | null focalY?: number | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore

File diff suppressed because it is too large Load Diff

View File

@@ -7,228 +7,252 @@
*/ */
export interface Config { export interface Config {
auth: {
users: UserAuthOperations;
};
collections: { collections: {
'disable-publish': DisablePublish 'disable-publish': DisablePublish;
posts: Post posts: Post;
'autosave-posts': AutosavePost 'autosave-posts': AutosavePost;
'draft-posts': DraftPost 'draft-posts': DraftPost;
'draft-with-max-posts': DraftWithMaxPost 'draft-with-max-posts': DraftWithMaxPost;
'version-posts': VersionPost 'version-posts': VersionPost;
'custom-ids': CustomId 'custom-ids': CustomId;
users: User users: User;
'payload-preferences': PayloadPreference 'payload-preferences': PayloadPreference;
'payload-migrations': PayloadMigration 'payload-migrations': PayloadMigration;
} };
globals: { globals: {
'autosave-global': AutosaveGlobal 'autosave-global': AutosaveGlobal;
'draft-global': DraftGlobal 'draft-global': DraftGlobal;
'draft-with-max-global': DraftWithMaxGlobal 'draft-with-max-global': DraftWithMaxGlobal;
'disable-publish-global': DisablePublishGlobal 'disable-publish-global': DisablePublishGlobal;
} };
locale: 'en' | 'es' locale: 'en' | 'es';
user: User & { user: User & {
collection: 'users' collection: 'users';
};
} }
export interface UserAuthOperations {
forgotPassword: {
email: string;
};
login: {
password: string;
email: string;
};
registerFirstUser: {
email: string;
password: string;
};
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "disable-publish". * via the `definition` "disable-publish".
*/ */
export interface DisablePublish { export interface DisablePublish {
id: string id: string;
title: string title: string;
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
* via the `definition` "posts". * via the `definition` "posts".
*/ */
export interface Post { export interface Post {
id: string id: string;
relationToAutosaves?: (string | null) | AutosavePost relationToAutosaves?: (string | null) | AutosavePost;
relationToVersions?: (string | null) | VersionPost relationToVersions?: (string | null) | VersionPost;
relationToDrafts?: (string | null) | DraftPost relationToDrafts?: (string | null) | DraftPost;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "autosave-posts". * via the `definition` "autosave-posts".
*/ */
export interface AutosavePost { export interface AutosavePost {
id: string id: string;
title: string title: string;
description: string description: string;
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
* via the `definition` "version-posts". * via the `definition` "version-posts".
*/ */
export interface VersionPost { export interface VersionPost {
id: string id: string;
title: string title: string;
description: string description: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "draft-posts". * via the `definition` "draft-posts".
*/ */
export interface DraftPost { export interface DraftPost {
id: string id: string;
title: string title: string;
description: string description: string;
radio?: 'test' | null radio?: 'test' | null;
select?: ('test1' | 'test2')[] | null select?: ('test1' | 'test2')[] | null;
blocksField?: blocksField?:
| { | {
text?: string | null text?: string | null;
localized?: string | null localized?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block' blockType: 'block';
}[] }[]
| null | null;
relation?: (string | null) | DraftPost relation?: (string | null) | DraftPost;
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
* via the `definition` "draft-with-max-posts". * via the `definition` "draft-with-max-posts".
*/ */
export interface DraftWithMaxPost { export interface DraftWithMaxPost {
id: string id: string;
title: string title: string;
description: string description: string;
radio?: 'test' | null radio?: 'test' | null;
select?: ('test1' | 'test2')[] | null select?: ('test1' | 'test2')[] | null;
blocksField?: blocksField?:
| { | {
text?: string | null text?: string | null;
localized?: string | null localized?: string | null;
id?: string | null id?: string | null;
blockName?: string | null blockName?: string | null;
blockType: 'block' blockType: 'block';
}[] }[]
| null | null;
relation?: (string | null) | DraftWithMaxPost relation?: (string | null) | DraftWithMaxPost;
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
* via the `definition` "custom-ids". * via the `definition` "custom-ids".
*/ */
export interface CustomId { export interface CustomId {
id: string id: string;
title?: string | null title?: string | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users". * via the `definition` "users".
*/ */
export interface User { export interface User {
id: string id: string;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
email: string email: string;
resetPasswordToken?: string | null resetPasswordToken?: string | null;
resetPasswordExpiration?: string | null resetPasswordExpiration?: string | null;
salt?: string | null salt?: string | null;
hash?: string | null hash?: string | null;
loginAttempts?: number | null loginAttempts?: number | null;
lockUntil?: string | null lockUntil?: string | null;
password?: string | null password?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-preferences". * via the `definition` "payload-preferences".
*/ */
export interface PayloadPreference { export interface PayloadPreference {
id: string id: string;
user: { user: {
relationTo: 'users' relationTo: 'users';
value: string | User value: string | User;
} };
key?: string | null key?: string | null;
value?: value?:
| { | {
[k: string]: unknown [k: string]: unknown;
} }
| unknown[] | unknown[]
| string | string
| number | number
| boolean | boolean
| null | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "payload-migrations". * via the `definition` "payload-migrations".
*/ */
export interface PayloadMigration { export interface PayloadMigration {
id: string id: string;
name?: string | null name?: string | null;
batch?: number | null batch?: number | null;
updatedAt: string updatedAt: string;
createdAt: string createdAt: string;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "autosave-global". * via the `definition` "autosave-global".
*/ */
export interface AutosaveGlobal { export interface AutosaveGlobal {
id: string id: string;
title: string title: string;
_status?: ('draft' | 'published') | null _status?: ('draft' | 'published') | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "draft-global". * via the `definition` "draft-global".
*/ */
export interface DraftGlobal { export interface DraftGlobal {
id: string id: string;
title: string title: string;
_status?: ('draft' | 'published') | null _status?: ('draft' | 'published') | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "draft-with-max-global". * via the `definition` "draft-with-max-global".
*/ */
export interface DraftWithMaxGlobal { export interface DraftWithMaxGlobal {
id: string id: string;
title: string title: string;
_status?: ('draft' | 'published') | null _status?: ('draft' | 'published') | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/** /**
* This interface was referenced by `Config`'s JSON-Schema * This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "disable-publish-global". * via the `definition` "disable-publish-global".
*/ */
export interface DisablePublishGlobal { export interface DisablePublishGlobal {
id: string id: string;
title?: string | null title?: string | null;
_status?: ('draft' | 'published') | null _status?: ('draft' | 'published') | null;
updatedAt?: string | null updatedAt?: string | null;
createdAt?: string | null createdAt?: string | null;
} }
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "auth".
*/
export interface Auth {
[k: string]: unknown;
}
declare module 'payload' { declare module 'payload' {
// @ts-ignore // @ts-ignore