@secondcloset/types 2.7.17-beta-containerRequestLog-0 → 2.17.17-beta-containerTypes-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/warehouse/bin.ts +0 -2
- package/src/warehouse/carrierTransferPallet.ts +1 -1
- package/src/warehouse/container.ts +15 -0
- package/src/warehouse/index.ts +1 -1
- package/src/warehouse/pallet.ts +1 -1
- package/src/warehouse/{containerRequestLog.ts → palletRequestLog.ts} +5 -6
package/package.json
CHANGED
package/src/warehouse/bin.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { LocationItem } from "./locationItem";
|
|
3
|
+
|
|
4
|
+
export enum ContainerType {
|
|
5
|
+
SINGLE = "single_pallet",
|
|
6
|
+
DOUBLE = "double_pallet",
|
|
7
|
+
BIN = "bin",
|
|
8
|
+
}
|
|
9
|
+
export interface Container {
|
|
10
|
+
id: string;
|
|
11
|
+
type: ContainerType;
|
|
12
|
+
location_items?: LocationItem[];
|
|
13
|
+
facility: FacilityCode | null;
|
|
14
|
+
pallet_request_log_id?: string;
|
|
15
|
+
}
|
package/src/warehouse/index.ts
CHANGED
|
@@ -12,7 +12,7 @@ export * from "./supplyStock";
|
|
|
12
12
|
export * from "./supplyTransaction";
|
|
13
13
|
export * from "./locationActivityLog";
|
|
14
14
|
export * from "./packerActivityLog";
|
|
15
|
-
export * from "./
|
|
15
|
+
export * from "./palletRequestLog";
|
|
16
16
|
export * from "./manualItem";
|
|
17
17
|
export * from "./return";
|
|
18
18
|
export * from "./stock";
|
package/src/warehouse/pallet.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { CarrierTransferPallet, Pallet } from ".";
|
|
2
2
|
|
|
3
|
-
export enum
|
|
3
|
+
export enum PalletRequestStatus {
|
|
4
4
|
FAILED = "failed",
|
|
5
5
|
SUCCESS = "success",
|
|
6
6
|
IN_PROGRESS = "in_progress",
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export enum
|
|
9
|
+
export enum PalletRequestSource {
|
|
10
10
|
PALLET = "pallet",
|
|
11
11
|
CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
|
|
12
|
-
BIN = "bin",
|
|
13
12
|
}
|
|
14
|
-
export interface
|
|
13
|
+
export interface PalletRequestLog {
|
|
15
14
|
id: string;
|
|
16
|
-
status:
|
|
15
|
+
status: PalletRequestStatus;
|
|
17
16
|
user_email: string;
|
|
18
17
|
count: number;
|
|
19
18
|
fail_reason?: string;
|
|
20
|
-
source:
|
|
19
|
+
source: PalletRequestSource;
|
|
21
20
|
created_at: string;
|
|
22
21
|
carrier_transfer_pallets?: CarrierTransferPallet[];
|
|
23
22
|
pallets?: Pallet[];
|