@secondcloset/types 2.7.2-beta.0 → 2.7.4-beta-OA.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.2-beta.0",
3
+ "version": "2.7.4-beta-OA.0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -1,3 +1,4 @@
1
1
  export * from "./customer";
2
2
  export * from "./orderItem";
3
3
  export * from "./order";
4
+ export * from "./orderHistory";
@@ -0,0 +1,24 @@
1
+ export type OrderHistoryEvent = "manual" | "system";
2
+ export interface OrderHistory {
3
+ id:string;
4
+ user?: {
5
+ id: string;
6
+ name?: string;
7
+ is_admin: boolean;
8
+ };
9
+ description:string[];
10
+ organization_name?:string;
11
+ created_at:string;
12
+ event:OrderHistoryEvent;
13
+ metadata?: {
14
+ shipment_id?:string;
15
+ image_url:string;
16
+ };
17
+
18
+ }
19
+
20
+ export enum OrderTabList {
21
+ ALL = 'all',
22
+ MANUAL = 'manual',
23
+ SYSTEM = 'system',
24
+ }
@@ -16,3 +16,10 @@ export interface ActivityHistory {
16
16
  order?: { id: string; number: string };
17
17
  };
18
18
  }
19
+ export enum TabList {
20
+ ALL = 'all',
21
+ MANUAL = 'manual',
22
+ ASN = 'asn',
23
+ ORDER = 'order',
24
+ SYSTEM = 'system',
25
+ }
@@ -8,4 +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
12
  }
@@ -10,7 +10,8 @@ export * from "./shipmentProductsTracking";
10
10
  export * from "./supply";
11
11
  export * from "./supplyStock";
12
12
  export * from "./supplyTransaction";
13
- export * from "./transaction";
13
+ export * from "./locationActivityLog";
14
+ export * from "./packerActivityLog";
14
15
  export * from "./palletRequestLog";
15
16
  export * from "./manualItem";
16
17
  export * from "./return";
@@ -1,6 +1,6 @@
1
1
  import { Product } from "./product";
2
2
 
3
- export enum TransactionActionType {
3
+ export enum LocationActivityType {
4
4
  MOVE = "MOVE",
5
5
  RECEIVE = "RECEIVE",
6
6
  CREATE_PALLET = "CREATE_PALLET",
@@ -8,7 +8,7 @@ export enum TransactionActionType {
8
8
  AUDIT = "AUDIT",
9
9
  }
10
10
 
11
- export interface Transaction {
11
+ export interface LocationActivityLog {
12
12
  id: string;
13
13
  from_location_code: string;
14
14
  to_location_code: string;
@@ -20,6 +20,6 @@ export interface Transaction {
20
20
  lot_number: string;
21
21
  created_at: string;
22
22
  user_email: string;
23
- action: TransactionActionType;
23
+ action: LocationActivityType;
24
24
  product?: Product;
25
25
  }
@@ -0,0 +1,16 @@
1
+ export enum PackerActivityType {
2
+ COMPLETE = "COMPLETE",
3
+ ADD = "ADD",
4
+ REMOVE = "REMOVE",
5
+ }
6
+
7
+ export interface PackerActivityLog {
8
+ id: string;
9
+ user_email: string;
10
+ shipment_id: string;
11
+ shipment_number: string;
12
+ external_order_id: string;
13
+ external_order_number: string;
14
+ created_at: string;
15
+ action: PackerActivityType;
16
+ }
@@ -10,4 +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
14
  }
@@ -1,15 +1,23 @@
1
+ import { CarrierTransferPallet, Pallet } from ".";
2
+
1
3
  export enum PalletRequestStatus {
2
4
  FAILED = "failed",
3
5
  SUCCESS = "success",
4
6
  IN_PROGRESS = "in_progress",
5
7
  }
6
8
 
9
+ export enum PalletRequestSource {
10
+ PALLET = "pallet",
11
+ CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
12
+ }
7
13
  export interface PalletRequestLog {
8
14
  id: string;
9
15
  status: PalletRequestStatus;
10
16
  user_email: string;
11
- file_link?: string;
12
17
  count: number;
13
18
  fail_reason?: string;
19
+ source: PalletRequestSource;
14
20
  created_at: string;
21
+ carrier_transfer_pallets?: CarrierTransferPallet[];
22
+ pallets?: Pallet[];
15
23
  }
@@ -51,5 +51,5 @@ export type PicksheetRequest = {
51
51
  requested_by: string;
52
52
  created_at: string;
53
53
  updated_at: string;
54
- __picksheets__?: Picksheet[];
54
+ picksheets?: Picksheet[];
55
55
  };
@@ -1,6 +1,6 @@
1
1
  import { LocationItem } from "./locationItem";
2
2
  import { Organization } from "./organization";
3
- import { Transaction } from "./transaction";
3
+ import { LocationActivityLog } from "./locationActivityLog";
4
4
 
5
5
  export interface Product {
6
6
  id: string;
@@ -10,5 +10,5 @@ export interface Product {
10
10
  organization_id: string;
11
11
  organization?: Organization;
12
12
  location_item?: LocationItem;
13
- transaction?: Transaction;
13
+ location_activity_log?: LocationActivityLog;
14
14
  }