@secondcloset/types 2.17.17-beta-containerTypes-6 → 3.1.0-appointment-tracking-beta.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 +2 -2
- package/src/_common/activityHistory.ts +9 -1
- package/src/_common/facility.ts +49 -18
- package/src/_common/index.ts +2 -1
- package/src/_common/organization.ts +21 -18
- package/src/_common/serviceArea.ts +11 -1
- package/src/_common/user.ts +1 -0
- package/src/fulfillment/appointment/appointment.ts +43 -1
- package/src/fulfillment/appointment/appointmentType.ts +4 -0
- package/src/fulfillment/asn/asn.ts +3 -0
- package/src/fulfillment/asn/asnItem.ts +3 -0
- package/src/fulfillment/index.ts +3 -0
- package/src/fulfillment/inventory/channel.ts +9 -0
- package/src/fulfillment/inventory/index.ts +2 -0
- package/src/fulfillment/inventory/inventory.ts +16 -0
- package/src/fulfillment/order/order.ts +50 -39
- package/src/fulfillment/order/orderItem.ts +34 -14
- package/src/fulfillment/product/product.ts +16 -17
- package/src/fulfillment/product/stock.ts +2 -0
- package/src/fulfillment/resourceError/index.ts +2 -0
- package/src/fulfillment/resourceError/resourceError.ts +20 -0
- package/src/fulfillment/resourceError/resourceErrorAssignee.ts +9 -0
- package/src/fulfillment/returns/configs.ts +32 -0
- package/src/fulfillment/returns/index.ts +1 -0
- package/src/fulfillment/shipment/package.ts +1 -0
- package/src/fulfillment/shipment/shipment.ts +58 -34
- package/src/fulfillment/shipment/shipmentItem.ts +56 -39
- package/src/fulfillment/shipment/shippingMethod.ts +25 -0
- package/src/logistics/availability.ts +5 -1
- package/src/logistics/index.ts +2 -1
- package/src/logistics/serviceArea.ts +14 -0
- package/src/storage/appointment/appointment.ts +10 -1
- package/src/storage/appointment/appointmentType.ts +4 -0
- package/src/warehouse/asnContainer.ts +8 -0
- package/src/warehouse/carrierTransferPackage.ts +3 -2
- package/src/warehouse/containerRequestLog.ts +7 -2
- package/src/warehouse/index.ts +19 -12
- package/src/warehouse/location.ts +11 -0
- package/src/warehouse/locationActivityLog.ts +1 -0
- package/src/warehouse/locationItem.ts +14 -0
- package/src/warehouse/lotCode.ts +13 -0
- package/src/warehouse/occupiedLocation.ts +5 -0
- package/src/warehouse/organization.ts +7 -2
- package/src/warehouse/packerActivityLog.ts +7 -4
- package/src/warehouse/physicalProperty.ts +9 -0
- package/src/warehouse/pickActivityLog.ts +22 -0
- package/src/warehouse/picksheet.ts +35 -1
- package/src/warehouse/product.ts +3 -0
- package/src/warehouse/productPhysicalProperty.ts +16 -0
- package/src/warehouse/productQuantum.ts +74 -0
- package/src/warehouse/putawayActivityLog.ts +20 -0
- package/src/warehouse/return.ts +5 -0
- package/src/warehouse/rmaContainer.ts +9 -0
- package/src/warehouse/container.ts +0 -16
- package/src/warehouse/palletRequestLog.ts +0 -23
|
@@ -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 {
|
|
@@ -29,6 +30,16 @@ export enum InflationStatus {
|
|
|
29
30
|
FAILED = "FAILED",
|
|
30
31
|
}
|
|
31
32
|
|
|
33
|
+
export enum PicksheetRequestType {
|
|
34
|
+
DISCRETE = "DISCRETE",
|
|
35
|
+
WAVE = "WAVE",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export enum PicksheetType {
|
|
39
|
+
PARCEL = "PARCEL",
|
|
40
|
+
LAST_MILE = "LAST_MILE",
|
|
41
|
+
}
|
|
42
|
+
|
|
32
43
|
export type Picksheet = {
|
|
33
44
|
id: string;
|
|
34
45
|
request_id: string;
|
|
@@ -39,6 +50,28 @@ export type Picksheet = {
|
|
|
39
50
|
shipment_id?: string;
|
|
40
51
|
shipment_number?: string;
|
|
41
52
|
failed_reason?: string;
|
|
53
|
+
created_at: string;
|
|
54
|
+
updated_at: string;
|
|
55
|
+
wavesheet_id?: string;
|
|
56
|
+
request?: PicksheetRequest;
|
|
57
|
+
picksheet_items?: PicksheetItem[];
|
|
58
|
+
type: PicksheetType;
|
|
59
|
+
organization?: Organization;
|
|
60
|
+
organization_id: string;
|
|
61
|
+
facility?: FacilityCode;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export type PicksheetItem = {
|
|
65
|
+
id: string;
|
|
66
|
+
picksheet_id: string;
|
|
67
|
+
picksheet: Picksheet;
|
|
68
|
+
sku: string;
|
|
69
|
+
upc: string;
|
|
70
|
+
name: string;
|
|
71
|
+
quantity: number;
|
|
72
|
+
picked_quantity: number;
|
|
73
|
+
manual_item_code?: string;
|
|
74
|
+
manual_item_customer_name?: string;
|
|
42
75
|
};
|
|
43
76
|
|
|
44
77
|
export type PicksheetRequest = {
|
|
@@ -47,9 +80,10 @@ export type PicksheetRequest = {
|
|
|
47
80
|
organization?: Organization;
|
|
48
81
|
facility: FacilityCode;
|
|
49
82
|
status: PicksheetStatus;
|
|
50
|
-
|
|
83
|
+
number_of_picksheets: number;
|
|
51
84
|
requested_by: string;
|
|
52
85
|
created_at: string;
|
|
53
86
|
updated_at: string;
|
|
87
|
+
type: PicksheetRequestType;
|
|
54
88
|
picksheets?: Picksheet[];
|
|
55
89
|
};
|
package/src/warehouse/product.ts
CHANGED
|
@@ -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
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Product } from "./product";
|
|
2
|
+
|
|
3
|
+
enum ProductQuantumTypeEnum {
|
|
4
|
+
EACH = "EACH",
|
|
5
|
+
CASE = "CASE",
|
|
6
|
+
INNER_PACK = "INNER_PACK",
|
|
7
|
+
MASTER_PACK = "MASTER_PACK",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
enum ContainsTypeEnum {
|
|
11
|
+
EACH = "EACH",
|
|
12
|
+
INNER_PACK = "INNER_PACK",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
enum WeightUnitEnum {
|
|
16
|
+
LB = "LB",
|
|
17
|
+
OZ = "OZ",
|
|
18
|
+
G = "G",
|
|
19
|
+
KG = "KG",
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
enum DimensionsUnitEnum {
|
|
23
|
+
IN = "IN",
|
|
24
|
+
FT = "FT",
|
|
25
|
+
CM = "CM",
|
|
26
|
+
M = "M",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ProductQuantum {
|
|
30
|
+
id: string;
|
|
31
|
+
type: ProductQuantumTypeEnum;
|
|
32
|
+
quantity: number;
|
|
33
|
+
sku: string;
|
|
34
|
+
upc?: string;
|
|
35
|
+
contains_type: ContainsTypeEnum | null;
|
|
36
|
+
weight: number;
|
|
37
|
+
height: number;
|
|
38
|
+
length: number;
|
|
39
|
+
width: number;
|
|
40
|
+
weight_unit: WeightUnitEnum;
|
|
41
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
42
|
+
product_id: string;
|
|
43
|
+
product: Product;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface ProductQuantumUpdateBody {
|
|
47
|
+
type: ProductQuantumTypeEnum;
|
|
48
|
+
contains_type: ContainsTypeEnum;
|
|
49
|
+
quantity: number;
|
|
50
|
+
sku: string;
|
|
51
|
+
upc: string;
|
|
52
|
+
length: number;
|
|
53
|
+
height: number;
|
|
54
|
+
weight: number;
|
|
55
|
+
width: number;
|
|
56
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
57
|
+
weight_unit: WeightUnitEnum;
|
|
58
|
+
product_id: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface CreateProductQuantumBody {
|
|
62
|
+
type: ProductQuantumTypeEnum;
|
|
63
|
+
upc: string;
|
|
64
|
+
sku: string;
|
|
65
|
+
product_id: string;
|
|
66
|
+
contains_type: ProductQuantumTypeEnum;
|
|
67
|
+
quantity: number;
|
|
68
|
+
weight: number;
|
|
69
|
+
weight_unit: WeightUnitEnum;
|
|
70
|
+
height: number;
|
|
71
|
+
width: number;
|
|
72
|
+
length: number;
|
|
73
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
74
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { LocationItemStatus } from "./locationItem";
|
|
2
|
+
import { Product } from "./product";
|
|
3
|
+
|
|
4
|
+
export enum PutawayActivityLogType {
|
|
5
|
+
START = "START",
|
|
6
|
+
PUTAWAY = "PUTAWAY",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export interface PutawayActivityLog {
|
|
10
|
+
id: string;
|
|
11
|
+
action: PutawayActivityLogType;
|
|
12
|
+
status?: LocationItemStatus;
|
|
13
|
+
from_container_id?: string;
|
|
14
|
+
to_container_id?: string;
|
|
15
|
+
user_email: string;
|
|
16
|
+
location_code?: string;
|
|
17
|
+
reference_number?: string;
|
|
18
|
+
product?: string;
|
|
19
|
+
created_at?: string;
|
|
20
|
+
}
|
package/src/warehouse/return.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
1
2
|
import { Organization } from "./organization";
|
|
3
|
+
import { RmaContainer } from "./rmaContainer";
|
|
2
4
|
|
|
3
5
|
export enum ReturnItemCondition {
|
|
4
6
|
RESELLABLE = "resellable",
|
|
@@ -39,6 +41,8 @@ export interface ReturnItem {
|
|
|
39
41
|
condition_notes?: string;
|
|
40
42
|
reason?: string;
|
|
41
43
|
reason_notes?: string;
|
|
44
|
+
rma_container_id?: string;
|
|
45
|
+
rma_container?: RmaContainer;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
export interface ReturnAddress {
|
|
@@ -75,4 +79,5 @@ export interface Return {
|
|
|
75
79
|
order_date?: string;
|
|
76
80
|
created_at: string;
|
|
77
81
|
updated_at: string;
|
|
82
|
+
processed_at_facility?: FacilityCode;
|
|
78
83
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { FacilityCode } from "../_common";
|
|
2
|
-
import { LocationItem } from "./locationItem";
|
|
3
|
-
|
|
4
|
-
export enum ContainerType {
|
|
5
|
-
SINGLE = "single",
|
|
6
|
-
DOUBLE = "double",
|
|
7
|
-
BIN = "bin",
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface Container {
|
|
11
|
-
id: string;
|
|
12
|
-
type: ContainerType;
|
|
13
|
-
location_items?: LocationItem[];
|
|
14
|
-
facility: FacilityCode | null;
|
|
15
|
-
pallet_request_log_id?: string;
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { CarrierTransferPallet, Pallet } from ".";
|
|
2
|
-
|
|
3
|
-
export enum PalletRequestStatus {
|
|
4
|
-
FAILED = "failed",
|
|
5
|
-
SUCCESS = "success",
|
|
6
|
-
IN_PROGRESS = "in_progress",
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export enum PalletRequestSource {
|
|
10
|
-
PALLET = "pallet",
|
|
11
|
-
CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
|
|
12
|
-
}
|
|
13
|
-
export interface PalletRequestLog {
|
|
14
|
-
id: string;
|
|
15
|
-
status: PalletRequestStatus;
|
|
16
|
-
user_email: string;
|
|
17
|
-
count: number;
|
|
18
|
-
fail_reason?: string;
|
|
19
|
-
source: PalletRequestSource;
|
|
20
|
-
created_at: string;
|
|
21
|
-
carrier_transfer_pallets?: CarrierTransferPallet[];
|
|
22
|
-
pallets?: Pallet[];
|
|
23
|
-
}
|