From bbf9e5b60e2ba4df670d0fdc86c7a5333341e52e Mon Sep 17 00:00:00 2001 From: DeepnaPooja Date: Tue, 8 Sep 2026 13:18:42 +0530 Subject: [PATCH] Add external location type and location name fields to stock responses --- distribution_fe/types/api.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/distribution_fe/types/api.ts b/distribution_fe/types/api.ts index f2af02a..f1c11cc 100644 --- a/distribution_fe/types/api.ts +++ b/distribution_fe/types/api.ts @@ -1,7 +1,7 @@ // ─── Enums ──────────────────────────────────────────────────────────────────── export type KycStatus = 'Pending' | 'Verified' | 'Rejected' -export type LocationType = 'Warehouse' | 'Vehicle' +export type LocationType = 'Warehouse' | 'Vehicle' | 'External' export type MovementType = | 'Sale' | 'CustomerReturn' | 'Transfer' | 'Damage' | 'Adjustment' | 'Load' | 'PurchaseReceipt' | 'PurchaseReturn' @@ -420,6 +420,7 @@ export interface StockBalanceResponse { locationType: LocationType quantity: number updatedAt: string + locationName: string } export interface StockMovementResponse { @@ -436,6 +437,8 @@ export interface StockMovementResponse { referenceId: string | null createdAt: string createdBy: string + fromLocationName: string | null + toLocationName: string | null } // ─── Driver / Rides ───────────────────────────────────────────────────────────