@secondcloset/types 2.7.48-product-quantums-0 → 2.7.48
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 +6 -1
- package/src/fulfillment/appointment/appointment.ts +4 -0
- package/src/fulfillment/appointment/appointmentType.ts +2 -0
- package/src/fulfillment/asn/asn.ts +1 -0
- package/src/fulfillment/index.ts +1 -0
- package/src/fulfillment/returns/configs.ts +32 -0
- package/src/fulfillment/returns/index.ts +1 -0
- package/src/fulfillment/shipment/shipment.ts +11 -1
- package/src/fulfillment/shipment/shippingMethod.ts +4 -0
- package/src/storage/appointment/appointment.ts +4 -0
- package/src/storage/appointment/appointmentType.ts +2 -0
- package/src/warehouse/asnContainer.ts +8 -0
- package/src/warehouse/index.ts +14 -12
- package/src/warehouse/organization.ts +3 -0
- package/src/warehouse/packerActivityLog.ts +7 -4
- package/src/warehouse/productQuantum.ts +17 -22
package/package.json
CHANGED
|
@@ -8,7 +8,8 @@ export type OrganizationConfigKey =
|
|
|
8
8
|
| "default_fulfilled_from"
|
|
9
9
|
| "auto_fulfill_orders"
|
|
10
10
|
| "freightcom_api_username"
|
|
11
|
-
| "freightcom_api_password"
|
|
11
|
+
| "freightcom_api_password"
|
|
12
|
+
| "preferred_return_facility";
|
|
12
13
|
|
|
13
14
|
export interface OrganizationConfig {
|
|
14
15
|
key: OrganizationConfigKey;
|
|
@@ -71,6 +72,10 @@ export interface Organization extends BaseOrganization {
|
|
|
71
72
|
permissions: Permission[];
|
|
72
73
|
geofilter_constraints?: GeofilterConstraint[];
|
|
73
74
|
facility_service_areas?: FacilityServiceArea[];
|
|
75
|
+
default_fulfilled_from?: {
|
|
76
|
+
facility: Facility<"V2">;
|
|
77
|
+
organization_regions: Region;
|
|
78
|
+
}[];
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
export interface Region {
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
AppointmentType,
|
|
3
3
|
AppointmentSubtype,
|
|
4
4
|
DeliveryType,
|
|
5
|
+
ParcelServiceLevel,
|
|
5
6
|
} from "./appointmentType";
|
|
6
7
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
7
8
|
import { Shipment, ScServiceCode } from "../shipment";
|
|
@@ -10,6 +11,7 @@ import { AppointmentSlot } from "../../storage";
|
|
|
10
11
|
import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
11
12
|
|
|
12
13
|
export interface Appointment {
|
|
14
|
+
air_skip?: boolean;
|
|
13
15
|
appointment_actions: string[];
|
|
14
16
|
arrived_time: string | null;
|
|
15
17
|
cancelled_at: string | null;
|
|
@@ -38,6 +40,7 @@ export interface Appointment {
|
|
|
38
40
|
movers: null;
|
|
39
41
|
num_movers: null;
|
|
40
42
|
number: string;
|
|
43
|
+
parcel_service_level?: ParcelServiceLevel;
|
|
41
44
|
range_of_days_assigned_dates?: {
|
|
42
45
|
assigned_start_datetime: string;
|
|
43
46
|
assigned_end_datetime: string;
|
|
@@ -65,6 +68,7 @@ export interface Appointment {
|
|
|
65
68
|
verification_images?: BaseImage[];
|
|
66
69
|
delivery_type?: DeliveryType;
|
|
67
70
|
shipping_labels?: LastMileShippingLabel[];
|
|
71
|
+
signature_required?: boolean;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
export interface Location {
|
package/src/fulfillment/index.ts
CHANGED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Common } from "../..";
|
|
2
|
+
|
|
3
|
+
export type ReturnsConfigurationCondition =
|
|
4
|
+
| "item_good_package_open"
|
|
5
|
+
| "item_good_package_damaged"
|
|
6
|
+
| "item_damaged"
|
|
7
|
+
| "email_customer";
|
|
8
|
+
|
|
9
|
+
export type ReturnsConfigurationInstruction =
|
|
10
|
+
| "allow"
|
|
11
|
+
| "dispose"
|
|
12
|
+
| "restock"
|
|
13
|
+
| "return_to_merchant"
|
|
14
|
+
| "donate";
|
|
15
|
+
|
|
16
|
+
interface ReturnAddress extends Common.BaseAddress {
|
|
17
|
+
full_name?: string;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface ReturnsConfiguration {
|
|
21
|
+
organization_id: string;
|
|
22
|
+
condition: ReturnsConfigurationCondition;
|
|
23
|
+
instruction: ReturnsConfigurationInstruction | null;
|
|
24
|
+
comment: string;
|
|
25
|
+
address?: Partial<ReturnAddress>;
|
|
26
|
+
preferred_return_facility?: Common.FacilityCode;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ReturnsFacilities {
|
|
30
|
+
key: string;
|
|
31
|
+
value: string;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./configs";
|
|
@@ -14,6 +14,15 @@ export type ShipmentActionType =
|
|
|
14
14
|
| StorageAppointmentType
|
|
15
15
|
| FulfillmentAppointmentType;
|
|
16
16
|
|
|
17
|
+
export type ServiceCode =
|
|
18
|
+
| "standard"
|
|
19
|
+
| "white_glove"
|
|
20
|
+
| "to_the_door"
|
|
21
|
+
| "room_of_choice"
|
|
22
|
+
| "standard_1_person"
|
|
23
|
+
| "room_of_choice_1_person"
|
|
24
|
+
| "to_the_door_1_person";
|
|
25
|
+
|
|
17
26
|
export type ScServiceCode =
|
|
18
27
|
| "second_closet_standard"
|
|
19
28
|
| "second_closet_white_glove"
|
|
@@ -21,7 +30,8 @@ export type ScServiceCode =
|
|
|
21
30
|
| "second_closet_room_of_choice"
|
|
22
31
|
| "second_closet_standard_1_person"
|
|
23
32
|
| "second_closet_room_of_choice_1_person"
|
|
24
|
-
| "second_closet_to_the_door_1_person"
|
|
33
|
+
| "second_closet_to_the_door_1_person"
|
|
34
|
+
| ServiceCode;
|
|
25
35
|
|
|
26
36
|
export interface Shipment {
|
|
27
37
|
id: string;
|
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
AppointmentType,
|
|
5
5
|
AppointmentSubtype,
|
|
6
6
|
DeliveryType,
|
|
7
|
+
ParcelServiceLevel,
|
|
7
8
|
} from "../../fulfillment/appointment";
|
|
8
9
|
import { CustomerAddress, Customer, ShipmentTag } from "../order";
|
|
9
10
|
import { BaseUser, BaseImage, BaseNote, BaseAddress } from "../../_common";
|
|
@@ -31,6 +32,7 @@ export type ShippingMethodType =
|
|
|
31
32
|
| "external_carrier_shipment";
|
|
32
33
|
|
|
33
34
|
export interface SecondClosetShippingMethod {
|
|
35
|
+
air_skip?: boolean;
|
|
34
36
|
id: string;
|
|
35
37
|
user_id?: string;
|
|
36
38
|
user_code?: string;
|
|
@@ -62,6 +64,7 @@ export interface SecondClosetShippingMethod {
|
|
|
62
64
|
} | null;
|
|
63
65
|
range_of_days_start_date?: string | null;
|
|
64
66
|
range_of_days_end_date?: string | null;
|
|
67
|
+
parcel_service_level?: ParcelServiceLevel;
|
|
65
68
|
created_at: string;
|
|
66
69
|
updated_at?: string;
|
|
67
70
|
num_movers?: number | null;
|
|
@@ -77,6 +80,7 @@ export interface SecondClosetShippingMethod {
|
|
|
77
80
|
verification_images?: BaseImage[];
|
|
78
81
|
delivery_type?: DeliveryType;
|
|
79
82
|
shipping_labels?: LastMileShippingLabel[];
|
|
83
|
+
signature_required?: boolean;
|
|
80
84
|
source?: {
|
|
81
85
|
id: string;
|
|
82
86
|
type: string;
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
AppointmentType,
|
|
4
4
|
AppointmentSubtype,
|
|
5
5
|
DeliveryType,
|
|
6
|
+
ParcelServiceLevel,
|
|
6
7
|
} from "./appointmentType";
|
|
7
8
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
8
9
|
import { Address } from "../address";
|
|
@@ -10,6 +11,7 @@ import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
|
10
11
|
import { ScServiceCode } from "../../fulfillment";
|
|
11
12
|
|
|
12
13
|
export interface Appointment {
|
|
14
|
+
air_skip?: boolean;
|
|
13
15
|
address: Address;
|
|
14
16
|
arrived_time?: string;
|
|
15
17
|
bulky_order_only: boolean;
|
|
@@ -37,6 +39,7 @@ export interface Appointment {
|
|
|
37
39
|
num_movers?: number;
|
|
38
40
|
number: string;
|
|
39
41
|
order_id: string;
|
|
42
|
+
parcel_service_level?: ParcelServiceLevel;
|
|
40
43
|
rescheduled: boolean;
|
|
41
44
|
rescheduled_appointment_id?: string | null;
|
|
42
45
|
signature_image?: string;
|
|
@@ -57,6 +60,7 @@ export interface Appointment {
|
|
|
57
60
|
items: AppointmentItem[];
|
|
58
61
|
verification_images?: BaseImage[];
|
|
59
62
|
delivery_type?: DeliveryType;
|
|
63
|
+
signature_required?: boolean;
|
|
60
64
|
}
|
|
61
65
|
|
|
62
66
|
export type AppointmentSlot =
|
package/src/warehouse/index.ts
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
+
export * from "./asnContainer";
|
|
1
2
|
export * from "./asnProcessLog";
|
|
2
3
|
export * from "./bin";
|
|
4
|
+
export * from "./carrierTransferPackage";
|
|
5
|
+
export * from "./carrierTransferPallet";
|
|
6
|
+
export * from "./containerRequestLog";
|
|
3
7
|
export * from "./location";
|
|
8
|
+
export * from "./locationActivityLog";
|
|
4
9
|
export * from "./locationItem";
|
|
5
10
|
export * from "./locationTemplate";
|
|
11
|
+
export * from "./manualItem";
|
|
12
|
+
export * from "./occupiedLocation";
|
|
6
13
|
export * from "./organization";
|
|
14
|
+
export * from "./packerActivityLog";
|
|
7
15
|
export * from "./pallet";
|
|
16
|
+
export * from "./picksheet";
|
|
8
17
|
export * from "./product";
|
|
18
|
+
export * from "./productQuantum";
|
|
19
|
+
export * from "./putawayActivityLog";
|
|
20
|
+
export * from "./return";
|
|
9
21
|
export * from "./shipmentProductsTracking";
|
|
22
|
+
export * from "./specialProject";
|
|
23
|
+
export * from "./stock";
|
|
10
24
|
export * from "./supply";
|
|
11
25
|
export * from "./supplyStock";
|
|
12
26
|
export * from "./supplyTransaction";
|
|
13
|
-
export * from "./locationActivityLog";
|
|
14
|
-
export * from "./packerActivityLog";
|
|
15
|
-
export * from "./containerRequestLog";
|
|
16
|
-
export * from "./manualItem";
|
|
17
|
-
export * from "./return";
|
|
18
|
-
export * from "./stock";
|
|
19
|
-
export * from "./specialProject";
|
|
20
|
-
export * from "./carrierTransferPallet";
|
|
21
|
-
export * from "./carrierTransferPackage";
|
|
22
|
-
export * from "./picksheet";
|
|
23
|
-
export * from "./occupiedLocation";
|
|
24
|
-
export * from "./putawayActivityLog";
|
|
@@ -20,6 +20,8 @@ export enum OrganizationConfigKey {
|
|
|
20
20
|
GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION = "GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION",
|
|
21
21
|
RTS_INSTRUCTION = "RTS_INSTRUCTION",
|
|
22
22
|
ENABLE_SEND_EMAIL_TO_CUSTOMERS = "ENABLE_SEND_EMAIL_TO_CUSTOMERS",
|
|
23
|
+
DEFAULT_RATE_FETCHING_V1 = "DEFAULT_RATE_FETCHING_V1",
|
|
24
|
+
DEFAULT_REQUIRE_SIGNATURE = "DEFAULT_REQUIRE_SIGNATURE",
|
|
23
25
|
}
|
|
24
26
|
export interface OrganizationConfig {
|
|
25
27
|
id: string;
|
|
@@ -29,6 +31,7 @@ export interface OrganizationConfig {
|
|
|
29
31
|
organization?: Organization;
|
|
30
32
|
created_at: string;
|
|
31
33
|
updated_at: string;
|
|
34
|
+
metadata?: Record<string, any>;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
37
|
export interface FacilityOrganization {
|
|
@@ -7,10 +7,13 @@ export enum PackerActivityType {
|
|
|
7
7
|
export interface PackerActivityLog {
|
|
8
8
|
id: string;
|
|
9
9
|
user_email: string;
|
|
10
|
-
shipment_id
|
|
11
|
-
shipment_number
|
|
12
|
-
external_order_id
|
|
13
|
-
external_order_number
|
|
10
|
+
shipment_id?: string;
|
|
11
|
+
shipment_number?: string;
|
|
12
|
+
external_order_id?: string;
|
|
13
|
+
external_order_number?: string;
|
|
14
|
+
start_by_scanning?: string;
|
|
15
|
+
core_error_msg?: string;
|
|
14
16
|
created_at: string;
|
|
15
17
|
action: PackerActivityType;
|
|
18
|
+
provider_scope?: string;
|
|
16
19
|
}
|
|
@@ -1,56 +1,51 @@
|
|
|
1
1
|
import { Product } from "./product";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
enum ProductQuantumTypeEnum {
|
|
4
4
|
EACH = "EACH",
|
|
5
5
|
CASE = "CASE",
|
|
6
6
|
INNER_PACK = "INNER_PACK",
|
|
7
7
|
MASTER_PACK = "MASTER_PACK",
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
INNER_PACK = "INNER_PACK",
|
|
12
|
-
MASTER_PACK = "MASTER_PACK",
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export enum ContainsType {
|
|
10
|
+
enum ContainsTypeEnum {
|
|
16
11
|
EACH = "EACH",
|
|
17
12
|
INNER_PACK = "INNER_PACK",
|
|
18
13
|
}
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
enum WeightUnitEnum {
|
|
21
16
|
LB = "LB",
|
|
22
17
|
OZ = "OZ",
|
|
23
18
|
G = "G",
|
|
24
19
|
KG = "KG",
|
|
25
20
|
}
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
enum DimensionsUnitEnum {
|
|
28
23
|
IN = "IN",
|
|
29
|
-
FT = "
|
|
24
|
+
FT = "FT",
|
|
30
25
|
CM = "CM",
|
|
31
26
|
M = "M",
|
|
32
27
|
}
|
|
33
28
|
|
|
34
29
|
export interface ProductQuantum {
|
|
35
30
|
id: string;
|
|
36
|
-
type:
|
|
31
|
+
type: ProductQuantumTypeEnum;
|
|
37
32
|
quantity: number;
|
|
38
33
|
sku: string;
|
|
39
34
|
upc?: string;
|
|
40
|
-
contains_type:
|
|
35
|
+
contains_type: ContainsTypeEnum | null;
|
|
41
36
|
weight: number;
|
|
42
37
|
height: number;
|
|
43
38
|
length: number;
|
|
44
39
|
width: number;
|
|
45
|
-
weight_unit:
|
|
46
|
-
dimensions_unit:
|
|
40
|
+
weight_unit: WeightUnitEnum;
|
|
41
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
47
42
|
product_id: string;
|
|
48
43
|
product: Product;
|
|
49
44
|
}
|
|
50
45
|
|
|
51
46
|
export interface ProductQuantumUpdateBody {
|
|
52
|
-
type:
|
|
53
|
-
contains_type:
|
|
47
|
+
type: ProductQuantumTypeEnum;
|
|
48
|
+
contains_type: ContainsTypeEnum;
|
|
54
49
|
quantity: number;
|
|
55
50
|
sku: string;
|
|
56
51
|
upc: string;
|
|
@@ -58,22 +53,22 @@ export interface ProductQuantumUpdateBody {
|
|
|
58
53
|
height: number;
|
|
59
54
|
weight: number;
|
|
60
55
|
width: number;
|
|
61
|
-
dimensions_unit:
|
|
62
|
-
weight_unit:
|
|
56
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
57
|
+
weight_unit: WeightUnitEnum;
|
|
63
58
|
product_id: string;
|
|
64
59
|
}
|
|
65
60
|
|
|
66
61
|
export interface CreateProductQuantumBody {
|
|
67
|
-
type:
|
|
62
|
+
type: ProductQuantumTypeEnum;
|
|
68
63
|
upc: string;
|
|
69
64
|
sku: string;
|
|
70
65
|
product_id: string;
|
|
71
|
-
contains_type:
|
|
66
|
+
contains_type: ProductQuantumTypeEnum;
|
|
72
67
|
quantity: number;
|
|
73
68
|
weight: number;
|
|
74
|
-
weight_unit:
|
|
69
|
+
weight_unit: WeightUnitEnum;
|
|
75
70
|
height: number;
|
|
76
71
|
width: number;
|
|
77
72
|
length: number;
|
|
78
|
-
dimensions_unit:
|
|
73
|
+
dimensions_unit: DimensionsUnitEnum;
|
|
79
74
|
}
|