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