@secondcloset/types 2.8.0-beta.4 → 2.8.0-beta.6
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
|
@@ -20,7 +20,9 @@ export type ShipmentTag =
|
|
|
20
20
|
| "items_removed"
|
|
21
21
|
| "pending_inventory_receiving"
|
|
22
22
|
| "items_partially_fulfilled"
|
|
23
|
-
| "customer_booking"
|
|
23
|
+
| "customer_booking"
|
|
24
|
+
| "pending_customer_pickup"
|
|
25
|
+
| "items_picked_up_by_customer";
|
|
24
26
|
|
|
25
27
|
export type OrderPlatform =
|
|
26
28
|
| "manual"
|
|
@@ -10,6 +10,7 @@ import { Package } from "./package";
|
|
|
10
10
|
import {
|
|
11
11
|
SecondClosetShippingMethod,
|
|
12
12
|
ExternalCarrierShippingMethod,
|
|
13
|
+
CustomerPickupShippingMethod,
|
|
13
14
|
} from "./shippingMethod";
|
|
14
15
|
import { Carrier } from "./carrier";
|
|
15
16
|
import { AppointmentType as FulfillmentAppointmentType } from "../appointment/appointmentType";
|
|
@@ -17,6 +18,7 @@ import { AppointmentType as StorageAppointmentType } from "../../storage/appoint
|
|
|
17
18
|
|
|
18
19
|
export type ShipmentActionType =
|
|
19
20
|
| "setup"
|
|
21
|
+
| "customer_pickup"
|
|
20
22
|
| StorageAppointmentType
|
|
21
23
|
| FulfillmentAppointmentType;
|
|
22
24
|
|
|
@@ -60,11 +62,13 @@ export type Shipment<V extends Version = "V1"> = V extends "V1"
|
|
|
60
62
|
freight: boolean;
|
|
61
63
|
shipping_method:
|
|
62
64
|
| SecondClosetShippingMethod
|
|
63
|
-
| ExternalCarrierShippingMethod
|
|
65
|
+
| ExternalCarrierShippingMethod
|
|
66
|
+
| CustomerPickupShippingMethod;
|
|
64
67
|
shipping_method_type:
|
|
65
68
|
| "external_carrier_shipment"
|
|
66
69
|
| "appointment"
|
|
67
|
-
| "untracked_shipment"
|
|
70
|
+
| "untracked_shipment"
|
|
71
|
+
| "customer_pickup_shipment";
|
|
68
72
|
external_order?: {
|
|
69
73
|
id: string;
|
|
70
74
|
external_order_number: string;
|
|
@@ -46,4 +46,10 @@ export type ShipmentItem<V extends Version = "V1"> = V extends "V1"
|
|
|
46
46
|
: {
|
|
47
47
|
product: BaseProduct;
|
|
48
48
|
shipment_item_ids: ShipmentItem<"V1">["id"][];
|
|
49
|
+
shipment_actions_status: {
|
|
50
|
+
[key in ShipmentActionType]: {
|
|
51
|
+
completed_shipment_item_ids: string[];
|
|
52
|
+
failed_shipment_items: string[];
|
|
53
|
+
};
|
|
54
|
+
};
|
|
49
55
|
};
|
|
@@ -153,3 +153,13 @@ export interface ExternalCarrierShippingMethod {
|
|
|
153
153
|
ship_to_address: CarrierShippingAddress;
|
|
154
154
|
shipping_labels: ExternalCarrierShippingLabel[];
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
export interface CustomerPickupShippingMethod {
|
|
158
|
+
id: string;
|
|
159
|
+
status: "awaiting" | "failed" | "cancelled" | "completed";
|
|
160
|
+
created_at: string;
|
|
161
|
+
completed_at?: string;
|
|
162
|
+
failed_at?: string;
|
|
163
|
+
failed_reason?: string;
|
|
164
|
+
estimated_pickup_date?: string;
|
|
165
|
+
}
|
|
@@ -5,8 +5,9 @@ import { Bin } from "./bin";
|
|
|
5
5
|
import { ManualItem } from "./manualItem";
|
|
6
6
|
|
|
7
7
|
export enum LocationItemStatus {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
AVAILABLE = "available",
|
|
9
|
+
DAMAGED = "damaged",
|
|
10
|
+
HOLD = "hold",
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
export interface LocationItem {
|