108 lines
2.1 KiB
TypeScript
Executable File
108 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: {
|
|
posts: Post;
|
|
users: User;
|
|
media: Media;
|
|
couriers: Courier;
|
|
dispatches: Dispatch;
|
|
makers: Maker;
|
|
products: Product;
|
|
retailers: Retailer;
|
|
};
|
|
globals: {};
|
|
}
|
|
export interface Post {
|
|
id: string;
|
|
title?: string;
|
|
hallo?: string;
|
|
publishedDate?: string;
|
|
content?: {
|
|
[k: string]: unknown;
|
|
}[];
|
|
status?: 'draft' | 'published';
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
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;
|
|
products: string[] | Product[];
|
|
courier?: string | Courier;
|
|
maker?: string | Maker;
|
|
retailer?: string | Retailer;
|
|
status: ('requested' | 'accepted' | 'archived')[];
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
export interface Product {
|
|
id: string;
|
|
title: string;
|
|
picture: string | Media;
|
|
weight?: number;
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
export interface Maker {
|
|
id: string;
|
|
name: string;
|
|
/**
|
|
* @minItems 2
|
|
* @maxItems 2
|
|
*/
|
|
location: [number, number];
|
|
stock?: string[] | Product[];
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|
|
export interface Retailer {
|
|
id: string;
|
|
name: string;
|
|
/**
|
|
* @minItems 2
|
|
* @maxItems 2
|
|
*/
|
|
location: [number, number];
|
|
stock?: string[] | Product[];
|
|
updatedAt: string;
|
|
createdAt: string;
|
|
}
|