@secondcloset/types 1.8.4 → 1.38.1-beta-pq-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 +22 -0
- package/src/_common/address.ts +2 -0
- package/src/_common/facility.ts +47 -16
- package/src/_common/index.ts +2 -0
- package/src/_common/organization.ts +36 -7
- package/src/_common/serviceArea.ts +9 -1
- package/src/_common/user.ts +1 -0
- package/src/fulfillment/appointment/appointment.ts +28 -3
- package/src/fulfillment/appointment/appointmentStatus.ts +1 -0
- package/src/fulfillment/appointment/appointmentType.ts +4 -0
- package/src/fulfillment/asn/asn.ts +1 -0
- package/src/fulfillment/asn/asnItem.ts +1 -0
- package/src/fulfillment/index.ts +1 -0
- package/src/fulfillment/order/order.ts +8 -3
- package/src/fulfillment/product/index.ts +2 -1
- package/src/fulfillment/product/product.ts +6 -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/shipment/index.ts +1 -0
- package/src/fulfillment/shipment/package.ts +12 -1
- package/src/fulfillment/shipment/packageIssue.ts +11 -0
- package/src/fulfillment/shipment/shipment.ts +3 -9
- package/src/fulfillment/shipment/shipmentItem.ts +1 -0
- package/src/fulfillment/shipment/shippingMethod.ts +22 -1
- package/src/index.ts +1 -0
- package/src/integrations/index.ts +1 -0
- package/src/integrations/shopify.ts +7 -0
- package/src/logistics/availability.ts +13 -1
- package/src/logistics/index.ts +2 -1
- package/src/logistics/serviceArea.ts +14 -0
- package/src/logistics/shippingRate.ts +2 -0
- package/src/storage/appointment/appointment.ts +9 -3
- package/src/storage/appointment/appointmentType.ts +4 -0
- package/src/storage/availability.ts +3 -1
- package/src/warehouse/asnProcessLog.ts +15 -0
- package/src/warehouse/bin.ts +9 -0
- package/src/warehouse/carrierTransferPackage.ts +65 -0
- package/src/warehouse/carrierTransferPallet.ts +12 -0
- package/src/warehouse/containerRequestLog.ts +31 -0
- package/src/warehouse/index.ts +23 -4
- package/src/warehouse/location.ts +24 -26
- package/src/warehouse/locationActivityLog.ts +26 -0
- package/src/warehouse/locationItem.ts +33 -0
- package/src/warehouse/locationTemplate.ts +8 -0
- package/src/warehouse/manualItem.ts +21 -0
- package/src/warehouse/occupiedLocation.ts +5 -0
- package/src/warehouse/organization.ts +39 -0
- package/src/warehouse/packerActivityLog.ts +16 -0
- package/src/warehouse/pallet.ts +9 -15
- package/src/warehouse/picksheet.ts +98 -0
- package/src/warehouse/product.ts +17 -0
- package/src/warehouse/productQuantum.ts +79 -0
- package/src/warehouse/putawayActivityLog.ts +18 -0
- package/src/warehouse/return.ts +78 -0
- package/src/warehouse/shipmentProductsTracking.ts +18 -0
- package/src/warehouse/specialProject.ts +47 -0
- package/src/warehouse/stock.ts +7 -0
- package/src/warehouse/supply.ts +42 -0
- package/src/warehouse/supplyStock.ts +10 -0
- package/src/warehouse/supplyTransaction.ts +14 -0
- package/src/warehouse/issue.ts +0 -7
- package/src/warehouse/task.ts +0 -22
- package/src/warehouse/taskDefinition.ts +0 -13
- package/src/warehouse/warehouseItem.ts +0 -28
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FacilityCode, ServiceArea as ServiceAreaCode } from "../_common";
|
|
2
|
+
|
|
3
|
+
export interface ServiceArea {
|
|
4
|
+
id: number;
|
|
5
|
+
facilities: FacilityCode[];
|
|
6
|
+
name: ServiceAreaCode;
|
|
7
|
+
humanized_name: string;
|
|
8
|
+
timezone: string;
|
|
9
|
+
address: { country: string; province: string };
|
|
10
|
+
standard_boundary: { latitude: number; longitude: number }[];
|
|
11
|
+
extended_boundary: { latitude: number; longitude: number }[];
|
|
12
|
+
created_at: string;
|
|
13
|
+
updated_at: string;
|
|
14
|
+
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { AppointmentItem } from "./appointmentItem";
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
AppointmentType,
|
|
4
|
+
AppointmentSubtype,
|
|
5
|
+
DeliveryType,
|
|
6
|
+
} from "./appointmentType";
|
|
3
7
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
4
8
|
import { Address } from "../address";
|
|
5
|
-
import { BaseImage, BaseNote } from "../../_common";
|
|
9
|
+
import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
6
10
|
import { ScServiceCode } from "../../fulfillment";
|
|
7
11
|
|
|
8
12
|
export interface Appointment {
|
|
@@ -26,6 +30,7 @@ export interface Appointment {
|
|
|
26
30
|
incomplete_at?: string;
|
|
27
31
|
issue_images?: BaseImage[];
|
|
28
32
|
job_type: AppointmentType;
|
|
33
|
+
job_subtype?: AppointmentSubtype;
|
|
29
34
|
location?: Location;
|
|
30
35
|
movers?: any;
|
|
31
36
|
notes?: string;
|
|
@@ -51,6 +56,7 @@ export interface Appointment {
|
|
|
51
56
|
user_lastname: string;
|
|
52
57
|
items: AppointmentItem[];
|
|
53
58
|
verification_images?: BaseImage[];
|
|
59
|
+
delivery_type?: DeliveryType;
|
|
54
60
|
}
|
|
55
61
|
|
|
56
62
|
export type AppointmentSlot =
|
|
@@ -95,6 +101,6 @@ export interface Location {
|
|
|
95
101
|
phone_number: string;
|
|
96
102
|
postal_code: string;
|
|
97
103
|
province: string;
|
|
98
|
-
service_area:
|
|
104
|
+
service_area: ServiceArea | null;
|
|
99
105
|
updated_at: string;
|
|
100
106
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { ServiceArea } from "../_common";
|
|
2
|
+
|
|
1
3
|
export type Slot = "10-13" | "13-16" | "16-19" | "19-22" | string;
|
|
2
4
|
|
|
3
5
|
export interface TimeSlot {
|
|
4
6
|
timeslot: Slot;
|
|
5
|
-
service_area:
|
|
7
|
+
service_area: ServiceArea;
|
|
6
8
|
customer_segment: string;
|
|
7
9
|
holiday: boolean;
|
|
8
10
|
total_milliseconds: number;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type ASNProcessAction = "receive" | "set_damage" | "reset" | "complete";
|
|
2
|
+
|
|
3
|
+
export interface ASNProcessLog {
|
|
4
|
+
id: string;
|
|
5
|
+
user_email: string;
|
|
6
|
+
external_asn_id: string;
|
|
7
|
+
external_asn_number: string;
|
|
8
|
+
external_product_id?: string;
|
|
9
|
+
product_name?: string;
|
|
10
|
+
product_sku?: string;
|
|
11
|
+
product_upc?: string;
|
|
12
|
+
quantity: number;
|
|
13
|
+
action: ASNProcessAction;
|
|
14
|
+
created_at: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ExternalCarrierShippingLabel,
|
|
3
|
+
Package,
|
|
4
|
+
Shipment,
|
|
5
|
+
} from "../fulfillment";
|
|
6
|
+
import { Organization } from "../_common";
|
|
7
|
+
import { CarrierTransferPallet } from "./carrierTransferPallet";
|
|
8
|
+
|
|
9
|
+
export type CarrierTransferPackageStatus = "at_facility" | "with_carrier";
|
|
10
|
+
|
|
11
|
+
export interface CarrierTransferPackage {
|
|
12
|
+
id: string;
|
|
13
|
+
status: CarrierTransferPackageStatus;
|
|
14
|
+
carrier_name?: string;
|
|
15
|
+
tracking_number?: string;
|
|
16
|
+
carrier_transfer_pallet_id?: string;
|
|
17
|
+
carrier_transfer_pallet?: CarrierTransferPallet;
|
|
18
|
+
handover_by?: string;
|
|
19
|
+
handover_at?: string;
|
|
20
|
+
created_by: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface PackageCarrier {
|
|
25
|
+
id: string;
|
|
26
|
+
carrier_code?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
external_platform?: string;
|
|
29
|
+
external_id?: string;
|
|
30
|
+
enabled_service_codes?: string[];
|
|
31
|
+
created_at: string;
|
|
32
|
+
updated_at: string;
|
|
33
|
+
deleted_at?: string;
|
|
34
|
+
organization_id?: string;
|
|
35
|
+
disabled?: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface ShippingLabel extends Partial<ExternalCarrierShippingLabel> {
|
|
39
|
+
logistics_external_carrier_shipment_id?: string;
|
|
40
|
+
external_platform_shipment_id?: string;
|
|
41
|
+
external_platform_service_code?: string;
|
|
42
|
+
external_platform_void_label_error?: string;
|
|
43
|
+
created_at: string;
|
|
44
|
+
updated_at: string;
|
|
45
|
+
}
|
|
46
|
+
interface PackageShipment extends Partial<Shipment> {
|
|
47
|
+
user_id: string;
|
|
48
|
+
shipping_method_id?: string;
|
|
49
|
+
customer_scheduling_token?: string;
|
|
50
|
+
customer_scheduling_token_expired?: string;
|
|
51
|
+
latest_booking_email_sent_at?: string;
|
|
52
|
+
logistics_carrier_id?: string;
|
|
53
|
+
facility_id?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface PackageInfo extends Partial<Package> {
|
|
56
|
+
tracking_number?: string;
|
|
57
|
+
package_id_type: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export interface PackageDetailsInfo extends PackageInfo {
|
|
61
|
+
shipment?: PackageShipment;
|
|
62
|
+
organization: Organization;
|
|
63
|
+
carrier?: PackageCarrier;
|
|
64
|
+
shipping_label?: ShippingLabel;
|
|
65
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { CarrierTransferPackage } from "./carrierTransferPackage";
|
|
3
|
+
|
|
4
|
+
export interface CarrierTransferPallet {
|
|
5
|
+
id: string;
|
|
6
|
+
carrier_transfer_packages?: CarrierTransferPackage[];
|
|
7
|
+
created_at: string;
|
|
8
|
+
with_packages?: boolean;
|
|
9
|
+
handed_over: boolean;
|
|
10
|
+
facility: FacilityCode | null;
|
|
11
|
+
container_request_log_id?: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CarrierTransferPallet, Pallet } from ".";
|
|
2
|
+
|
|
3
|
+
export enum ContainerRequestStatus {
|
|
4
|
+
FAILED = "failed",
|
|
5
|
+
SUCCESS = "success",
|
|
6
|
+
IN_PROGRESS = "in_progress",
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export enum ContainerRequestSource {
|
|
10
|
+
PALLET = "pallet",
|
|
11
|
+
CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
|
|
12
|
+
BIN = "bin",
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export enum ContainerType {
|
|
16
|
+
SINGLE = "single",
|
|
17
|
+
DOUBLE = "double",
|
|
18
|
+
BIN = "bin",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ContainerRequestLog {
|
|
22
|
+
id: string;
|
|
23
|
+
status: ContainerRequestStatus;
|
|
24
|
+
user_email: string;
|
|
25
|
+
count: number;
|
|
26
|
+
fail_reason?: string;
|
|
27
|
+
source: ContainerRequestSource;
|
|
28
|
+
created_at: string;
|
|
29
|
+
carrier_transfer_pallets?: CarrierTransferPallet[];
|
|
30
|
+
pallets?: Pallet[];
|
|
31
|
+
}
|
package/src/warehouse/index.ts
CHANGED
|
@@ -1,6 +1,25 @@
|
|
|
1
|
-
export * from "./
|
|
1
|
+
export * from "./asnProcessLog";
|
|
2
|
+
export * from "./bin";
|
|
2
3
|
export * from "./location";
|
|
4
|
+
export * from "./locationItem";
|
|
5
|
+
export * from "./locationTemplate";
|
|
6
|
+
export * from "./organization";
|
|
3
7
|
export * from "./pallet";
|
|
4
|
-
export * from "./
|
|
5
|
-
export * from "./
|
|
6
|
-
export * from "./
|
|
8
|
+
export * from "./product";
|
|
9
|
+
export * from "./productQuantum";
|
|
10
|
+
export * from "./shipmentProductsTracking";
|
|
11
|
+
export * from "./supply";
|
|
12
|
+
export * from "./supplyStock";
|
|
13
|
+
export * from "./supplyTransaction";
|
|
14
|
+
export * from "./locationActivityLog";
|
|
15
|
+
export * from "./packerActivityLog";
|
|
16
|
+
export * from "./containerRequestLog";
|
|
17
|
+
export * from "./manualItem";
|
|
18
|
+
export * from "./return";
|
|
19
|
+
export * from "./stock";
|
|
20
|
+
export * from "./specialProject";
|
|
21
|
+
export * from "./carrierTransferPallet";
|
|
22
|
+
export * from "./carrierTransferPackage";
|
|
23
|
+
export * from "./picksheet";
|
|
24
|
+
export * from "./occupiedLocation";
|
|
25
|
+
export * from "./putawayActivityLog";
|
|
@@ -1,32 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { LocationTemplate } from "./locationTemplate";
|
|
2
|
+
import { LocationItem } from "./locationItem";
|
|
3
|
+
import { FacilityCode } from "../_common";
|
|
3
4
|
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
export enum LocationType {
|
|
6
|
+
SHELF = "SHELF",
|
|
7
|
+
PACKING_STATION = "PACKING_STATION",
|
|
8
|
+
RACKING = "RACKING",
|
|
9
|
+
CART = "CART",
|
|
10
|
+
PALLET_ZONE = "PALLET_ZONE",
|
|
11
|
+
}
|
|
11
12
|
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
facility: FacilityCode;
|
|
16
|
-
location_template_id: string;
|
|
17
|
-
type_of: LocationType;
|
|
18
|
-
labels: [];
|
|
19
|
-
is_in_service: boolean;
|
|
20
|
-
created_at: string;
|
|
21
|
-
updated_at: string;
|
|
13
|
+
export enum LocationStatus {
|
|
14
|
+
EMPTY = "EMPTY",
|
|
15
|
+
OCCUPIED = "OCCUPIED",
|
|
22
16
|
}
|
|
23
17
|
|
|
24
|
-
export interface
|
|
18
|
+
export interface Location {
|
|
25
19
|
code: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
facility: FacilityCode;
|
|
21
|
+
type: LocationType;
|
|
22
|
+
location_template_id: string;
|
|
23
|
+
location_template?: LocationTemplate;
|
|
24
|
+
location_items?: LocationItem[];
|
|
25
|
+
status: LocationStatus;
|
|
26
|
+
physical_previous_location?: string;
|
|
27
|
+
physical_next_location?: string;
|
|
28
|
+
logical_previous_location?: string;
|
|
29
|
+
logical_next_location?: string;
|
|
32
30
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Product } from "./product";
|
|
2
|
+
|
|
3
|
+
export enum LocationActivityType {
|
|
4
|
+
MOVE = "MOVE",
|
|
5
|
+
RECEIVE = "RECEIVE",
|
|
6
|
+
CREATE_PALLET = "CREATE_PALLET",
|
|
7
|
+
BREAK_DOWN = "BREAK_DOWN",
|
|
8
|
+
AUDIT = "AUDIT",
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface LocationActivityLog {
|
|
12
|
+
id: string;
|
|
13
|
+
from_location_code: string;
|
|
14
|
+
to_location_code: string;
|
|
15
|
+
product_id: string;
|
|
16
|
+
pallet_id: string;
|
|
17
|
+
from_bin_id: string;
|
|
18
|
+
to_bin_id: string;
|
|
19
|
+
quantity: number;
|
|
20
|
+
lot_number: string;
|
|
21
|
+
created_at: string;
|
|
22
|
+
user_email: string;
|
|
23
|
+
action: LocationActivityType;
|
|
24
|
+
product?: Product;
|
|
25
|
+
reference_number?: string;
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Product } from "./product";
|
|
2
|
+
import { Location } from "./location";
|
|
3
|
+
import { Pallet } from "./pallet";
|
|
4
|
+
import { Bin } from "./bin";
|
|
5
|
+
import { ManualItem } from "./manualItem";
|
|
6
|
+
|
|
7
|
+
export enum LocationItemStatus {
|
|
8
|
+
DAMAGED = "DAMAGED",
|
|
9
|
+
NORMAL = "NORMAL",
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface LocationItem {
|
|
13
|
+
id: string;
|
|
14
|
+
lot_number?: string;
|
|
15
|
+
quantity: number;
|
|
16
|
+
product_id?: string;
|
|
17
|
+
product?: Product;
|
|
18
|
+
manual_item_id?: string;
|
|
19
|
+
manual_item?: ManualItem;
|
|
20
|
+
location_code: string;
|
|
21
|
+
location?: Location;
|
|
22
|
+
pallet_id: string;
|
|
23
|
+
pallet?: Pallet;
|
|
24
|
+
bin_id: string;
|
|
25
|
+
bin: Bin;
|
|
26
|
+
created_at: string;
|
|
27
|
+
updated_at: string;
|
|
28
|
+
status: LocationItemStatus;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface ItemMoveLocationValidation {
|
|
32
|
+
multiple_bins: boolean;
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Organization } from "./organization";
|
|
2
|
+
|
|
3
|
+
export type ManualItemType =
|
|
4
|
+
| "structube_pallet"
|
|
5
|
+
| "ikea_pallet"
|
|
6
|
+
| "rove_pallet"
|
|
7
|
+
| "storage"
|
|
8
|
+
| "other";
|
|
9
|
+
|
|
10
|
+
export interface ManualItem {
|
|
11
|
+
id: string;
|
|
12
|
+
code: string;
|
|
13
|
+
type: ManualItemType;
|
|
14
|
+
customer_name: string;
|
|
15
|
+
order_number?: string;
|
|
16
|
+
note?: string;
|
|
17
|
+
created_at: string;
|
|
18
|
+
updated_at: string;
|
|
19
|
+
organization?: Organization;
|
|
20
|
+
organization_id?: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Product } from "./product";
|
|
2
|
+
import { Supply } from "./supply";
|
|
3
|
+
import { ShipmentProductsTracking } from "./shipmentProductsTracking";
|
|
4
|
+
import { FacilityCode } from "../_common";
|
|
5
|
+
|
|
6
|
+
export interface Organization {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
products?: Product[];
|
|
10
|
+
supplies?: Supply[];
|
|
11
|
+
shipment_products_trackings?: ShipmentProductsTracking[];
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum OrganizationConfigKey {
|
|
15
|
+
ENABLE_SCAN_ITEMS = "ENABLE_SCAN_ITEMS",
|
|
16
|
+
OPENED_GOOD_CONDITION_SHIP_TO_ADDRESS = "OPENED_GOOD_CONDITION_SHIP_TO_ADDRESS",
|
|
17
|
+
SHIP_TO_ME = "SHIP_TO_ME",
|
|
18
|
+
OPENED_GOOD_CONDITION_INSTRUCTION = "OPENED_GOOD_CONDITION_INSTRUCTION",
|
|
19
|
+
DAMAGED_CONDITION_INSTRUCTION = "DAMAGED_CONDITION_INSTRUCTION",
|
|
20
|
+
GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION = "GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION",
|
|
21
|
+
RTS_INSTRUCTION = "RTS_INSTRUCTION",
|
|
22
|
+
ENABLE_SEND_EMAIL_TO_CUSTOMERS = "ENABLE_SEND_EMAIL_TO_CUSTOMERS",
|
|
23
|
+
}
|
|
24
|
+
export interface OrganizationConfig {
|
|
25
|
+
id: string;
|
|
26
|
+
key: OrganizationConfigKey;
|
|
27
|
+
value: string;
|
|
28
|
+
organization_id: string;
|
|
29
|
+
organization?: Organization;
|
|
30
|
+
created_at: string;
|
|
31
|
+
updated_at: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface FacilityOrganization {
|
|
35
|
+
id: string;
|
|
36
|
+
organization_id: string;
|
|
37
|
+
facility: FacilityCode;
|
|
38
|
+
organization?: Organization;
|
|
39
|
+
}
|
|
@@ -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,20 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { LocationItem } from "./locationItem";
|
|
2
3
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
external_item_type: string;
|
|
7
|
-
id: string;
|
|
8
|
-
item_code: string;
|
|
9
|
-
name: string;
|
|
10
|
-
size: string;
|
|
4
|
+
export enum PalletType {
|
|
5
|
+
SINGLE = "single",
|
|
6
|
+
DOUBLE = "double",
|
|
11
7
|
}
|
|
12
8
|
export interface Pallet {
|
|
13
9
|
id: string;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
updated_at: string;
|
|
19
|
-
items: PalletItem[];
|
|
10
|
+
type: PalletType;
|
|
11
|
+
location_items?: LocationItem[];
|
|
12
|
+
facility: FacilityCode | null;
|
|
13
|
+
container_request_log_id?: string;
|
|
20
14
|
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { Organization } from "./organization";
|
|
3
|
+
|
|
4
|
+
export type PicksheetOrganization = {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type PicksheetFailedReasons = {
|
|
10
|
+
order_number?: string;
|
|
11
|
+
external_order_number?: string;
|
|
12
|
+
failed_reason: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type PicksheetStats = {
|
|
16
|
+
organization?: PicksheetOrganization;
|
|
17
|
+
ready_to_fulfill_count: number;
|
|
18
|
+
processing_items_count: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export enum PicksheetStatus {
|
|
22
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
23
|
+
COMPLETED = "COMPLETED",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum InflationStatus {
|
|
27
|
+
INFLATING = "INFLATING",
|
|
28
|
+
INFLATED = "INFLATED",
|
|
29
|
+
FAILED = "FAILED",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export enum PicksheetRequestType {
|
|
33
|
+
DISCRETE = "DISCRETE",
|
|
34
|
+
WAVE = "WAVE",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum PicksheetType {
|
|
38
|
+
PARCEL = "PARCEL",
|
|
39
|
+
LAST_MILE = "LAST_MILE",
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Picksheet = {
|
|
43
|
+
id: string;
|
|
44
|
+
request_id: string;
|
|
45
|
+
external_order_id: string;
|
|
46
|
+
external_order_number?: string;
|
|
47
|
+
inflation_status?: InflationStatus;
|
|
48
|
+
order_id?: string;
|
|
49
|
+
shipment_id?: string;
|
|
50
|
+
shipment_number?: string;
|
|
51
|
+
failed_reason?: string;
|
|
52
|
+
created_at: string;
|
|
53
|
+
updated_at: string;
|
|
54
|
+
wavesheet_id?: string;
|
|
55
|
+
request?: PicksheetRequest;
|
|
56
|
+
picksheet_items?: PicksheetItem[];
|
|
57
|
+
type: PicksheetType;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type PicksheetItem = {
|
|
61
|
+
id: string;
|
|
62
|
+
picksheet_id: string;
|
|
63
|
+
picksheet: Picksheet;
|
|
64
|
+
sku: string;
|
|
65
|
+
upc: string;
|
|
66
|
+
name: string;
|
|
67
|
+
quantity: number;
|
|
68
|
+
picked_quantity: number;
|
|
69
|
+
manual_item_code?: string;
|
|
70
|
+
manual_item_customer_name?: string;
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export type PicksheetRequest = {
|
|
74
|
+
id: string;
|
|
75
|
+
organization_id: string;
|
|
76
|
+
organization?: Organization;
|
|
77
|
+
facility: FacilityCode;
|
|
78
|
+
status: PicksheetStatus;
|
|
79
|
+
number_of_picksheets: number;
|
|
80
|
+
requested_by: string;
|
|
81
|
+
created_at: string;
|
|
82
|
+
updated_at: string;
|
|
83
|
+
type: PicksheetRequestType;
|
|
84
|
+
picksheets?: Picksheet[];
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
export type PicksheetLookupData = {
|
|
88
|
+
facility?: string;
|
|
89
|
+
picksheet_id?: string;
|
|
90
|
+
shipment_number?: string;
|
|
91
|
+
number_of_items?: number;
|
|
92
|
+
order_id?: string;
|
|
93
|
+
organization?: string;
|
|
94
|
+
created_at?: string;
|
|
95
|
+
shipment_id?: string;
|
|
96
|
+
external_order_number?: string;
|
|
97
|
+
external_order_id?: string;
|
|
98
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LocationItem } from "./locationItem";
|
|
2
|
+
import { Organization } from "./organization";
|
|
3
|
+
import { LocationActivityLog } from "./locationActivityLog";
|
|
4
|
+
|
|
5
|
+
export interface Product {
|
|
6
|
+
id: string;
|
|
7
|
+
sku: string;
|
|
8
|
+
upc: string;
|
|
9
|
+
name: string;
|
|
10
|
+
organization_id: string;
|
|
11
|
+
organization?: Organization;
|
|
12
|
+
location_item?: LocationItem;
|
|
13
|
+
location_activity_log?: LocationActivityLog;
|
|
14
|
+
profiled: boolean;
|
|
15
|
+
created_at: string;
|
|
16
|
+
updated_at: string;
|
|
17
|
+
}
|