Import payload config
This commit is contained in:
@ -49,7 +49,7 @@ export function AddRetailerForm() {
|
||||
<FormItem>
|
||||
<FormLabel>Username</FormLabel>
|
||||
<FormControl>
|
||||
<Input placeholder="shadcn" {...field} />
|
||||
<Input placeholder="" {...field} />
|
||||
</FormControl>
|
||||
<FormDescription>
|
||||
This is your public display name.
|
||||
|
@ -11,6 +11,11 @@ export interface Config {
|
||||
posts: Post;
|
||||
users: User;
|
||||
media: Media;
|
||||
couriers: Courier;
|
||||
dispatches: Dispatch;
|
||||
makers: Maker;
|
||||
products: Product;
|
||||
retailers: Retailer;
|
||||
};
|
||||
globals: {};
|
||||
}
|
||||
@ -52,3 +57,58 @@ export interface Media {
|
||||
width?: number;
|
||||
height?: number;
|
||||
}
|
||||
export interface Courier {
|
||||
id: string;
|
||||
name: string;
|
||||
startingPoint?: string;
|
||||
destination?: string;
|
||||
departureDate?: string;
|
||||
arrivalDate?: string;
|
||||
weightAllowance?: number;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface Dispatch {
|
||||
id: string;
|
||||
dispatchesCode: string;
|
||||
products?: string[] | Product[];
|
||||
startingPoint?: string | Maker;
|
||||
endPoint?: string | Retailer;
|
||||
typeOfTransportation?: ('air' | 'car' | 'train' | 'boat')[];
|
||||
courier: string | Courier;
|
||||
timeSensitive?: boolean;
|
||||
status?: ('routeRequested' | 'inTransit' | 'completed')[];
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface Product {
|
||||
id: string;
|
||||
productTitle: string;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface Maker {
|
||||
id: string;
|
||||
name: string;
|
||||
/**
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
location?: [number, number];
|
||||
products?: string[] | Product[];
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
export interface Retailer {
|
||||
id: string;
|
||||
name: string;
|
||||
/**
|
||||
* @minItems 2
|
||||
* @maxItems 2
|
||||
*/
|
||||
location?: [number, number];
|
||||
products?: string[] | Product[];
|
||||
salesPoint?: string;
|
||||
updatedAt: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
Reference in New Issue
Block a user