71 lines
1.3 KiB
TypeScript
71 lines
1.3 KiB
TypeScript
export interface Supplier {
|
|
id: string;
|
|
name: string;
|
|
code?: string;
|
|
supplier_type: string;
|
|
category: string;
|
|
status: string;
|
|
risk_level?: string;
|
|
website?: string;
|
|
description?: string;
|
|
address?: string;
|
|
city?: string;
|
|
state?: string;
|
|
country?: string;
|
|
zip_code?: string;
|
|
tenant_id: string;
|
|
created_at: string;
|
|
updated_at: string;
|
|
}
|
|
|
|
export interface SupplierContact {
|
|
id: string;
|
|
supplier_id: string;
|
|
name: string;
|
|
title?: string;
|
|
email?: string;
|
|
phone?: string;
|
|
mobile?: string;
|
|
is_primary: boolean;
|
|
created_at: string;
|
|
updated_at: string;
|
|
}
|
|
|
|
export interface SuppliersResponse {
|
|
success: boolean;
|
|
data: Supplier[];
|
|
pagination: {
|
|
total: number;
|
|
limit: number;
|
|
offset: number;
|
|
};
|
|
}
|
|
|
|
export interface SupplierResponse {
|
|
success: boolean;
|
|
data: Supplier;
|
|
}
|
|
|
|
export interface SupplierContactsResponse {
|
|
success: boolean;
|
|
data: SupplierContact[];
|
|
}
|
|
|
|
export interface CreateSupplierData {
|
|
name: string;
|
|
code?: string;
|
|
supplier_type: string;
|
|
category: string;
|
|
status?: string;
|
|
risk_level?: string;
|
|
website?: string;
|
|
description?: string;
|
|
address?: string;
|
|
city?: string;
|
|
state?: string;
|
|
country?: string;
|
|
zip_code?: string;
|
|
}
|
|
|
|
export interface UpdateSupplierData extends Partial<CreateSupplierData> {}
|