kios-webapp/astro/src/types.ts

96 lines
1.9 KiB
TypeScript
Raw Normal View History

/* 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;
2024-04-03 10:18:03 +00:00
couriers: Courier;
dispatches: Dispatch;
makers: Maker;
products: Product;
retailers: Retailer;
};
globals: {};
}
export interface User {
id: string;
name: string;
2024-04-04 12:28:24 +00:00
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;
}
2024-04-03 10:18:03 +00:00
export interface Courier {
id: string;
updatedAt: string;
createdAt: string;
}
export interface Dispatch {
id: string;
2024-04-05 11:07:17 +00:00
code: string;
2024-04-04 12:28:24 +00:00
products: string[] | Product[];
courier?: string | Courier;
2024-04-05 11:07:17 +00:00
maker: string | Maker;
retailer: string | Retailer;
status: 'requested' | 'accepted' | 'archived';
2024-04-03 10:18:03 +00:00
updatedAt: string;
createdAt: string;
}
export interface Product {
id: string;
2024-04-05 13:03:18 +00:00
name: string;
2024-04-04 12:28:24 +00:00
picture: string | Media;
weight?: number;
2024-04-03 10:18:03 +00:00
updatedAt: string;
createdAt: string;
}
export interface Maker {
id: string;
name: string;
/**
* @minItems 2
* @maxItems 2
*/
2024-04-04 12:28:24 +00:00
location: [number, number];
stock?: string[] | Product[];
2024-04-03 10:18:03 +00:00
updatedAt: string;
createdAt: string;
}
export interface Retailer {
id: string;
name: string;
/**
* @minItems 2
* @maxItems 2
*/
2024-04-04 12:28:24 +00:00
location: [number, number];
stock?: string[] | Product[];
2024-04-03 10:18:03 +00:00
updatedAt: string;
createdAt: string;
}