@secondcloset/types 2.7.17-bolt-parcel.2 → 2.17.17-beta-containerTypes-2
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/appointment/appointment.ts +1 -15
- package/src/fulfillment/appointment/appointmentType.ts +0 -2
- package/src/fulfillment/shipment/shippingMethod.ts +0 -11
- package/src/storage/appointment/appointment.ts +1 -6
- package/src/storage/appointment/appointmentType.ts +0 -2
- package/src/warehouse/bin.ts +2 -0
- package/src/warehouse/carrierTransferPallet.ts +1 -1
- package/src/warehouse/container.ts +15 -0
- package/src/warehouse/containerRequestLog.ts +26 -0
- package/src/warehouse/index.ts +2 -1
- package/src/warehouse/pallet.ts +1 -1
package/package.json
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
AppointmentType,
|
|
3
|
-
AppointmentSubtype,
|
|
4
|
-
DeliveryType,
|
|
5
|
-
} from "./appointmentType";
|
|
1
|
+
import { AppointmentType, AppointmentSubtype } from "./appointmentType";
|
|
6
2
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
7
3
|
import { Shipment, ScServiceCode } from "../shipment";
|
|
8
4
|
import { Order } from "../order";
|
|
@@ -60,8 +56,6 @@ export interface Appointment {
|
|
|
60
56
|
user_id: string;
|
|
61
57
|
user_lastname: string;
|
|
62
58
|
verification_images?: BaseImage[];
|
|
63
|
-
delivery_type?: DeliveryType;
|
|
64
|
-
shipping_labels?: LastMileShippingLabel[];
|
|
65
59
|
}
|
|
66
60
|
|
|
67
61
|
export interface Location {
|
|
@@ -82,11 +76,3 @@ export interface Location {
|
|
|
82
76
|
service_area: ServiceArea | null;
|
|
83
77
|
updated_at: string;
|
|
84
78
|
}
|
|
85
|
-
|
|
86
|
-
interface LastMileShippingLabel {
|
|
87
|
-
id: string;
|
|
88
|
-
label_id?: string;
|
|
89
|
-
tracking_number?: string;
|
|
90
|
-
tracking_url?: string;
|
|
91
|
-
label_download?: string;
|
|
92
|
-
}
|
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
AppointmentStatus,
|
|
4
4
|
AppointmentType,
|
|
5
5
|
AppointmentSubtype,
|
|
6
|
-
DeliveryType,
|
|
7
6
|
} from "../../fulfillment/appointment";
|
|
8
7
|
import { CustomerAddress, Customer, ShipmentTag } from "../order";
|
|
9
8
|
import { BaseUser, BaseImage, BaseNote, BaseAddress } from "../../_common";
|
|
@@ -75,8 +74,6 @@ export interface SecondClosetShippingMethod {
|
|
|
75
74
|
delivery_service_level?: ScServiceCode;
|
|
76
75
|
field_ops_notes?: BaseNote[];
|
|
77
76
|
verification_images?: BaseImage[];
|
|
78
|
-
delivery_type?: DeliveryType;
|
|
79
|
-
shipping_labels?: LastMileShippingLabel[];
|
|
80
77
|
source?: {
|
|
81
78
|
id: string;
|
|
82
79
|
type: string;
|
|
@@ -129,14 +126,6 @@ export interface ExternalCarrierShippingLabel {
|
|
|
129
126
|
voided_at: string | null;
|
|
130
127
|
}
|
|
131
128
|
|
|
132
|
-
export interface LastMileShippingLabel {
|
|
133
|
-
id: string;
|
|
134
|
-
label_id?: string;
|
|
135
|
-
tracking_number?: string;
|
|
136
|
-
tracking_url?: string;
|
|
137
|
-
label_download?: string;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
129
|
export interface ExternalCarrierShippingMethod {
|
|
141
130
|
id: string;
|
|
142
131
|
status: ExternalCarrierShipmentStatus;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { AppointmentItem } from "./appointmentItem";
|
|
2
|
-
import {
|
|
3
|
-
AppointmentType,
|
|
4
|
-
AppointmentSubtype,
|
|
5
|
-
DeliveryType,
|
|
6
|
-
} from "./appointmentType";
|
|
2
|
+
import { AppointmentType, AppointmentSubtype } from "./appointmentType";
|
|
7
3
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
8
4
|
import { Address } from "../address";
|
|
9
5
|
import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
@@ -56,7 +52,6 @@ export interface Appointment {
|
|
|
56
52
|
user_lastname: string;
|
|
57
53
|
items: AppointmentItem[];
|
|
58
54
|
verification_images?: BaseImage[];
|
|
59
|
-
delivery_type?: DeliveryType;
|
|
60
55
|
}
|
|
61
56
|
|
|
62
57
|
export type AppointmentSlot =
|
package/src/warehouse/bin.ts
CHANGED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { LocationItem } from "./locationItem";
|
|
3
|
+
|
|
4
|
+
export enum ContainerType {
|
|
5
|
+
SINGLE_PALLET = "single_pallet",
|
|
6
|
+
DOUBLE_PALLET = "double_pallet",
|
|
7
|
+
BIN = "bin",
|
|
8
|
+
}
|
|
9
|
+
export interface Container {
|
|
10
|
+
id: string;
|
|
11
|
+
type: ContainerType;
|
|
12
|
+
location_items?: LocationItem[];
|
|
13
|
+
facility: FacilityCode | null;
|
|
14
|
+
pallet_request_log_id?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { CarrierTransferPallet, Pallet } from ".";
|
|
2
|
+
import { Container } from "./container";
|
|
3
|
+
|
|
4
|
+
export enum ContainerRequestStatus {
|
|
5
|
+
FAILED = "failed",
|
|
6
|
+
SUCCESS = "success",
|
|
7
|
+
IN_PROGRESS = "in_progress",
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export enum ContainerRequestSource {
|
|
11
|
+
PALLET = "pallet",
|
|
12
|
+
CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
|
|
13
|
+
BIN = "bin",
|
|
14
|
+
}
|
|
15
|
+
export interface ContainerRequestLog {
|
|
16
|
+
id: string;
|
|
17
|
+
status: ContainerRequestStatus;
|
|
18
|
+
user_email: string;
|
|
19
|
+
count: number;
|
|
20
|
+
fail_reason?: string;
|
|
21
|
+
source: ContainerRequestSource;
|
|
22
|
+
created_at: string;
|
|
23
|
+
carrier_transfer_pallets?: CarrierTransferPallet[];
|
|
24
|
+
pallets?: Pallet[];
|
|
25
|
+
containers?: Container[];
|
|
26
|
+
}
|
package/src/warehouse/index.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from "./location";
|
|
|
4
4
|
export * from "./locationItem";
|
|
5
5
|
export * from "./locationTemplate";
|
|
6
6
|
export * from "./organization";
|
|
7
|
+
export * from "./container";
|
|
7
8
|
export * from "./pallet";
|
|
8
9
|
export * from "./product";
|
|
9
10
|
export * from "./shipmentProductsTracking";
|
|
@@ -12,7 +13,7 @@ export * from "./supplyStock";
|
|
|
12
13
|
export * from "./supplyTransaction";
|
|
13
14
|
export * from "./locationActivityLog";
|
|
14
15
|
export * from "./packerActivityLog";
|
|
15
|
-
export * from "./
|
|
16
|
+
export * from "./containerRequestLog";
|
|
16
17
|
export * from "./manualItem";
|
|
17
18
|
export * from "./return";
|
|
18
19
|
export * from "./stock";
|
package/src/warehouse/pallet.ts
CHANGED