117 lines
2.3 KiB
TypeScript
117 lines
2.3 KiB
TypeScript
/* tslint:disable */
|
|
/**
|
|
* This file was automatically generated by Payload CMS.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:types` to regenerate this file.
|
|
*/
|
|
|
|
export interface Config {
|
|
collections: {
|
|
posts: Post;
|
|
point: Point;
|
|
relation: Relation;
|
|
dummy: Dummy;
|
|
'custom-id': CustomId;
|
|
'custom-id-number': CustomIdNumber;
|
|
'error-on-hooks': ErrorOnHook;
|
|
users: User;
|
|
};
|
|
globals: {};
|
|
}
|
|
export interface Post {
|
|
id: string;
|
|
title?: string;
|
|
description?: string;
|
|
number?: number;
|
|
fakeLocalization?: string;
|
|
relationField?: string | Relation;
|
|
relationHasManyField?: string[] | Relation[];
|
|
relationMultiRelationTo?:
|
|
| {
|
|
value: string | Relation;
|
|
relationTo: 'relation';
|
|
}
|
|
| {
|
|
value: string | Dummy;
|
|
relationTo: 'dummy';
|
|
};
|
|
relationMultiRelationToHasMany?:
|
|
| (
|
|
| {
|
|
value: string;
|
|
relationTo: 'relation';
|
|
}
|
|
| {
|
|
value: string;
|
|
relationTo: 'dummy';
|
|
}
|
|
)[]
|
|
| (
|
|
| {
|
|
value: Relation;
|
|
relationTo: 'relation';
|
|
}
|
|
| {
|
|
value: Dummy;
|
|
relationTo: 'dummy';
|
|
}
|
|
)[];
|
|
restrictedField?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface Relation {
|
|
id: string;
|
|
name?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface Dummy {
|
|
id: string;
|
|
title?: string;
|
|
name?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface Point {
|
|
id: string;
|
|
/**
|
|
* @minItems 2
|
|
* @maxItems 2
|
|
*/
|
|
point?: [number, number];
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface CustomId {
|
|
id: string;
|
|
name?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface CustomIdNumber {
|
|
id: number;
|
|
name?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface ErrorOnHook {
|
|
id: string;
|
|
text?: string;
|
|
errorBeforeChange?: boolean;
|
|
errorAfterDelete?: boolean;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
}
|
|
export interface User {
|
|
id: string;
|
|
email?: string;
|
|
resetPasswordToken?: string;
|
|
resetPasswordExpiration?: string;
|
|
loginAttempts?: number;
|
|
lockUntil?: string;
|
|
createdAt: string;
|
|
updatedAt: string;
|
|
password?: string;
|
|
}
|