@secondcloset/types 2.7.17 → 2.7.18-beta-containerRequestLog-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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondcloset/types",
3
- "version": "2.7.17",
3
+ "version": "2.7.18-beta-containerRequestLog-0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -1,7 +1,9 @@
1
1
  import { LocationItem } from "./locationItem";
2
+ import { FacilityCode } from "../_common";
2
3
 
3
4
  export interface Bin {
4
5
  id: string;
6
+ facility: FacilityCode;
5
7
  location_items?: LocationItem[];
6
8
  created_at: string;
7
9
  }
@@ -8,5 +8,5 @@ export interface CarrierTransferPallet {
8
8
  with_packages?: boolean;
9
9
  handed_over: boolean;
10
10
  facility: FacilityCode | null;
11
- pallet_request_log_id?: string;
11
+ container_request_log_id?: string;
12
12
  }
@@ -1,22 +1,30 @@
1
1
  import { CarrierTransferPallet, Pallet } from ".";
2
2
 
3
- export enum PalletRequestStatus {
3
+ export enum ContainerRequestStatus {
4
4
  FAILED = "failed",
5
5
  SUCCESS = "success",
6
6
  IN_PROGRESS = "in_progress",
7
7
  }
8
8
 
9
- export enum PalletRequestSource {
9
+ export enum ContainerRequestSource {
10
10
  PALLET = "pallet",
11
11
  CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
12
+ BIN = "bin",
12
13
  }
13
- export interface PalletRequestLog {
14
+
15
+ export enum ContainerType {
16
+ SINGLE = "single",
17
+ DOUBLE = "double",
18
+ BIN = "bin",
19
+ }
20
+
21
+ export interface ContainerRequestLog {
14
22
  id: string;
15
- status: PalletRequestStatus;
23
+ status: ContainerRequestStatus;
16
24
  user_email: string;
17
25
  count: number;
18
26
  fail_reason?: string;
19
- source: PalletRequestSource;
27
+ source: ContainerRequestSource;
20
28
  created_at: string;
21
29
  carrier_transfer_pallets?: CarrierTransferPallet[];
22
30
  pallets?: Pallet[];
@@ -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 "./palletRequestLog";
15
+ export * from "./containerRequestLog";
16
16
  export * from "./manualItem";
17
17
  export * from "./return";
18
18
  export * from "./stock";
@@ -10,5 +10,5 @@ export interface Pallet {
10
10
  type: PalletType;
11
11
  location_items?: LocationItem[];
12
12
  facility: FacilityCode | null;
13
- pallet_request_log_id?: string;
13
+ container_request_log_id?: string;
14
14
  }