@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 +1 -1
- package/src/fulfillment/order/index.ts +1 -0
- package/src/fulfillment/order/orderHistory.ts +24 -0
- package/src/fulfillment/product/activityHistory.ts +7 -0
- package/src/warehouse/carrierTransferPallet.ts +1 -0
- package/src/warehouse/index.ts +2 -1
- package/src/warehouse/{transaction.ts → locationActivityLog.ts} +3 -3
- package/src/warehouse/packerActivityLog.ts +16 -0
- package/src/warehouse/pallet.ts +1 -0
- package/src/warehouse/palletRequestLog.ts +9 -1
- package/src/warehouse/picksheet.ts +1 -1
- package/src/warehouse/product.ts +2 -2
package/package.json
CHANGED
|
@@ -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
|
+
}
|
package/src/warehouse/index.ts
CHANGED
|
@@ -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 "./
|
|
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
|
|
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
|
|
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:
|
|
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
|
+
}
|
package/src/warehouse/pallet.ts
CHANGED
|
@@ -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
|
}
|
package/src/warehouse/product.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocationItem } from "./locationItem";
|
|
2
2
|
import { Organization } from "./organization";
|
|
3
|
-
import {
|
|
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
|
-
|
|
13
|
+
location_activity_log?: LocationActivityLog;
|
|
14
14
|
}
|