Add automatic type regeneration

This commit is contained in:
2022-07-22 04:58:08 +01:00
parent e47626cfea
commit 5e651f1ca3
4 changed files with 56 additions and 2 deletions

50
src/payload-types.ts Normal file
View File

@@ -0,0 +1,50 @@
/* 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 {}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "users".
*/
export interface User {
id: string;
email?: string;
resetPasswordToken?: string;
resetPasswordExpiration?: string;
loginAttempts?: number;
lockUntil?: string;
createdAt: string;
updatedAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "event-types".
*/
export interface EventType {
id: string;
name: string;
createdAt: string;
updatedAt: string;
}
/**
* This interface was referenced by `Config`'s JSON-Schema
* via the `definition` "events".
*/
export interface Event {
id: string;
name: string;
type: {
value: string | EventType;
relationTo: 'event-types';
};
startDate: string;
endDate?: string;
startTime: string;
endTime?: string;
createdAt: string;
updatedAt: string;
}