@secondcloset/types 2.8.0-beta.6 → 2.8.0-beta.7
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/_common/organization.ts +2 -1
- package/src/fulfillment/order/order.ts +8 -6
- package/src/warehouse/index.ts +3 -0
- package/src/warehouse/physicalProperty.ts +9 -0
- package/src/warehouse/pickActivityLog.ts +22 -0
- package/src/warehouse/picksheet.ts +3 -0
- package/src/warehouse/productPhysicalProperty.ts +16 -0
- package/src/warehouse/putawayActivityLog.ts +2 -0
package/package.json
CHANGED
|
@@ -9,7 +9,8 @@ export type OrganizationConfigKey =
|
|
|
9
9
|
| "auto_fulfill_orders"
|
|
10
10
|
| "freightcom_api_username"
|
|
11
11
|
| "freightcom_api_password"
|
|
12
|
-
| "preferred_return_facility"
|
|
12
|
+
| "preferred_return_facility"
|
|
13
|
+
| "disable_partial_fulfillment";
|
|
13
14
|
|
|
14
15
|
export interface OrganizationConfig {
|
|
15
16
|
key: OrganizationConfigKey;
|
|
@@ -33,6 +33,12 @@ export type OrderPlatform =
|
|
|
33
33
|
| "shipstaion"
|
|
34
34
|
| "external_api";
|
|
35
35
|
|
|
36
|
+
export type OrderStockStatus =
|
|
37
|
+
| "in_stock"
|
|
38
|
+
| "partially_in_stock"
|
|
39
|
+
| "out_of_stock"
|
|
40
|
+
| "unknown_stock";
|
|
41
|
+
|
|
36
42
|
export interface FulfillmentOrderAddress extends BaseAddress {
|
|
37
43
|
customer_id: string;
|
|
38
44
|
contact_name: string;
|
|
@@ -72,14 +78,10 @@ export type Order<V extends Version = "V1"> = V extends "V1"
|
|
|
72
78
|
shipments: Shipment<V>[];
|
|
73
79
|
items: OrderItem<V>[];
|
|
74
80
|
files: File[];
|
|
75
|
-
stock_status:
|
|
76
|
-
| "in_stock"
|
|
77
|
-
| "partially_in_stock"
|
|
78
|
-
| "out_of_stock"
|
|
79
|
-
| "unknown_stock";
|
|
81
|
+
stock_status: OrderStockStatus;
|
|
80
82
|
on_hold: boolean;
|
|
81
83
|
on_hold_at: string;
|
|
82
|
-
|
|
84
|
+
requested_service_code?: ScServiceCode;
|
|
83
85
|
has_errors: boolean;
|
|
84
86
|
}
|
|
85
87
|
: Omit<Order<"V1">, "items" | "shipments">;
|
package/src/warehouse/index.ts
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Picksheet } from "./picksheet";
|
|
2
|
+
|
|
3
|
+
enum PickActivityActionType {
|
|
4
|
+
START = "START",
|
|
5
|
+
PICK = "PICK",
|
|
6
|
+
ERROR = "ERROR",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface PickActivityLog {
|
|
10
|
+
id: string;
|
|
11
|
+
picksheet_id: string;
|
|
12
|
+
picksheet: Picksheet;
|
|
13
|
+
wavesheet_id: string;
|
|
14
|
+
picksheet_item_id: string;
|
|
15
|
+
picked_by: string;
|
|
16
|
+
created_at: Date;
|
|
17
|
+
action: PickActivityActionType;
|
|
18
|
+
quantity: number;
|
|
19
|
+
picked_location_code: string;
|
|
20
|
+
recommended_location_code: string;
|
|
21
|
+
error_message: string;
|
|
22
|
+
}
|
|
@@ -16,6 +16,7 @@ export type PicksheetStats = {
|
|
|
16
16
|
organization?: PicksheetOrganization;
|
|
17
17
|
ready_to_fulfill_count: number;
|
|
18
18
|
processing_items_count: number;
|
|
19
|
+
is_pushed_shipments_enabled: boolean;
|
|
19
20
|
};
|
|
20
21
|
|
|
21
22
|
export enum PicksheetStatus {
|
|
@@ -55,6 +56,8 @@ export type Picksheet = {
|
|
|
55
56
|
request?: PicksheetRequest;
|
|
56
57
|
picksheet_items?: PicksheetItem[];
|
|
57
58
|
type: PicksheetType;
|
|
59
|
+
organization?: Organization;
|
|
60
|
+
organization_id: string;
|
|
58
61
|
};
|
|
59
62
|
|
|
60
63
|
export type PicksheetItem = {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PhysicalProperty } from "./physicalProperty";
|
|
2
|
+
|
|
3
|
+
export interface ProductPhysicalPropertyView {
|
|
4
|
+
type: string;
|
|
5
|
+
value: string;
|
|
6
|
+
name: string;
|
|
7
|
+
product_physical_property_id: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface ProductPhysicalProperty {
|
|
11
|
+
id: string;
|
|
12
|
+
value: string;
|
|
13
|
+
product_id: string;
|
|
14
|
+
physical_property_id: string;
|
|
15
|
+
physical_property: PhysicalProperty;
|
|
16
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LocationItemStatus } from "./locationItem";
|
|
1
2
|
import { Product } from "./product";
|
|
2
3
|
|
|
3
4
|
export enum PutawayActivityLogType {
|
|
@@ -8,6 +9,7 @@ export enum PutawayActivityLogType {
|
|
|
8
9
|
export interface PutawayActivityLog {
|
|
9
10
|
id: string;
|
|
10
11
|
action: PutawayActivityLogType;
|
|
12
|
+
status?: LocationItemStatus;
|
|
11
13
|
from_container_id?: string;
|
|
12
14
|
to_container_id?: string;
|
|
13
15
|
user_email: string;
|