kios-webapp/astro/src/types.ts

105 lines
2.1 KiB
TypeScript
Executable File

/* tslint:disable */
/* eslint-disable */
/**
* This file was automatically generated by Payload.
* 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: {
users: User;
media: Media;
couriers: Courier;
dispatches: Dispatch;
makers: Maker;
products: Product;
retailers: Retailer;
};
globals: {};
}
export interface User {
id: string;
name: string;
phoneNumber?: number;
updatedAt: string;
createdAt: string;
email: string;
resetPasswordToken?: string;
resetPasswordExpiration?: string;
salt?: string;
hash?: string;
loginAttempts?: number;
lockUntil?: string;
password?: string;
}
export interface Media {
id: string;
alt?: string;
updatedAt: string;
createdAt: string;
url?: string;
filename?: string;
mimeType?: string;
filesize?: number;
width?: number;
height?: number;
}
export interface Courier {
id: string;
updatedAt: string;
createdAt: string;
}
export interface Dispatch {
id: string;
code: string;
products: string[] | Product[];
courier?: string | User;
maker: string | Maker;
retailer: string | Retailer;
status: 'requested' | 'accepted' | 'archived';
departure?: string;
arrival?: string;
timeSensitive?: boolean;
updatedAt: string;
createdAt: string;
}
export interface Product {
id: string;
name: string;
picture: string | Media;
weight?: number;
updatedAt: string;
createdAt: string;
}
export interface Maker {
id: string;
name: string;
phoneNumber?: string;
email?: string;
/**
* @minItems 2
* @maxItems 2
*/
location: [number, number];
admins?: string[] | User[];
stock?: string[] | Product[];
updatedAt: string;
createdAt: string;
}
export interface Retailer {
id: string;
name: string;
phoneNumber?: string;
email?: string;
/**
* @minItems 2
* @maxItems 2
*/
location: [number, number];
admins?: string[] | User[];
stock?: string[] | Product[];
updatedAt: string;
createdAt: string;
}