This commit is contained in:
2026-03-14 23:48:27 -05:00
parent ff37ad6f06
commit 7b85d14ff6
21 changed files with 1072 additions and 1 deletions

View File

@@ -12,6 +12,7 @@ export const permissions = {
salesRead: "sales.read",
salesWrite: "sales.write",
shippingRead: "shipping.read",
shippingWrite: "shipping.write",
} as const;
export type PermissionKey = (typeof permissions)[keyof typeof permissions];

View File

@@ -7,3 +7,4 @@ export * from "./files/types.js";
export * from "./gantt/types.js";
export * from "./inventory/types.js";
export * from "./sales/types.js";
export * from "./shipping/types.js";

View 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;
}