shipping
This commit is contained in:
42
shared/src/shipping/types.ts
Normal file
42
shared/src/shipping/types.ts
Normal file
@@ -0,0 +1,42 @@
|
||||
export const shipmentStatuses = ["DRAFT", "PICKING", "PACKED", "SHIPPED", "DELIVERED"] as const;
|
||||
|
||||
export type ShipmentStatus = (typeof shipmentStatuses)[number];
|
||||
|
||||
export interface ShipmentOrderOptionDto {
|
||||
id: string;
|
||||
documentNumber: string;
|
||||
customerName: string;
|
||||
status: string;
|
||||
total: number;
|
||||
}
|
||||
|
||||
export interface ShipmentSummaryDto {
|
||||
id: string;
|
||||
shipmentNumber: string;
|
||||
salesOrderId: string;
|
||||
salesOrderNumber: string;
|
||||
customerName: string;
|
||||
status: ShipmentStatus;
|
||||
carrier: string;
|
||||
trackingNumber: string;
|
||||
packageCount: number;
|
||||
shipDate: string | null;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface ShipmentDetailDto extends ShipmentSummaryDto {
|
||||
serviceLevel: string;
|
||||
notes: string;
|
||||
createdAt: string;
|
||||
}
|
||||
|
||||
export interface ShipmentInput {
|
||||
salesOrderId: string;
|
||||
status: ShipmentStatus;
|
||||
shipDate: string | null;
|
||||
carrier: string;
|
||||
serviceLevel: string;
|
||||
trackingNumber: string;
|
||||
packageCount: number;
|
||||
notes: string;
|
||||
}
|
||||
Reference in New Issue
Block a user