@secondcloset/types 2.7.9 → 2.7.10-LAX-beta.1
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/facility.ts +4 -1
- package/src/_common/organization.ts +2 -1
- package/src/_common/serviceArea.ts +1 -1
- package/src/fulfillment/appointment/appointment.ts +2 -2
- package/src/fulfillment/product/product.ts +2 -0
- package/src/logistics/availability.ts +3 -1
- package/src/storage/appointment/appointment.ts +2 -2
- package/src/storage/availability.ts +3 -1
package/package.json
CHANGED
package/src/_common/facility.ts
CHANGED
|
@@ -9,6 +9,8 @@ export type FacilityCode =
|
|
|
9
9
|
| "yvr2"
|
|
10
10
|
| "yow1"
|
|
11
11
|
| "yul1"
|
|
12
|
+
| "lax1"
|
|
13
|
+
| "lax2"
|
|
12
14
|
| "unknown";
|
|
13
15
|
|
|
14
16
|
export type DeprecatedFacilityCode = "yyz1" | "yyz2";
|
|
@@ -18,7 +20,8 @@ export type FacilityCity =
|
|
|
18
20
|
| "Mississauga"
|
|
19
21
|
| "Vancouver"
|
|
20
22
|
| "Ottawa"
|
|
21
|
-
| "Montreal"
|
|
23
|
+
| "Montreal"
|
|
24
|
+
| "Los Angeles";
|
|
22
25
|
|
|
23
26
|
export interface Facility {
|
|
24
27
|
id: number;
|
|
@@ -2,6 +2,7 @@ import { BaseImage } from "./image";
|
|
|
2
2
|
import { BaseAddress } from "./address";
|
|
3
3
|
import { BaseUser } from "./user";
|
|
4
4
|
import { Carrier } from "../fulfillment";
|
|
5
|
+
import { ServiceArea } from "./serviceArea";
|
|
5
6
|
|
|
6
7
|
export type OrganizationConfigKey =
|
|
7
8
|
| "default_fulfilled_from"
|
|
@@ -76,7 +77,7 @@ interface Facility {
|
|
|
76
77
|
id: string;
|
|
77
78
|
name: string;
|
|
78
79
|
enabled: boolean;
|
|
79
|
-
service_area:
|
|
80
|
+
service_area: ServiceArea;
|
|
80
81
|
address: {
|
|
81
82
|
street: string;
|
|
82
83
|
city: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export type ServiceArea = "yyz" | "yvr" | "yow" | "yul";
|
|
1
|
+
export type ServiceArea = "yyz" | "yvr" | "yow" | "yul" | "lax";
|
|
@@ -3,7 +3,7 @@ import { AppointmentStatus } from "./appointmentStatus";
|
|
|
3
3
|
import { Shipment, ScServiceCode } from "../shipment";
|
|
4
4
|
import { Order } from "../order";
|
|
5
5
|
import { AppointmentSlot } from "../../storage";
|
|
6
|
-
import { BaseImage, BaseNote } from "../../_common";
|
|
6
|
+
import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
7
7
|
|
|
8
8
|
export interface Appointment {
|
|
9
9
|
appointment_actions: string[];
|
|
@@ -73,6 +73,6 @@ export interface Location {
|
|
|
73
73
|
phone_number: string;
|
|
74
74
|
postal_code: string;
|
|
75
75
|
province: string;
|
|
76
|
-
service_area:
|
|
76
|
+
service_area: ServiceArea | null;
|
|
77
77
|
updated_at: string;
|
|
78
78
|
}
|
|
@@ -52,6 +52,8 @@ export interface BaseProduct {
|
|
|
52
52
|
required_parts?: { [productID: string]: number };
|
|
53
53
|
packaging_levels?: PackagingLevel[];
|
|
54
54
|
return_days?: number;
|
|
55
|
+
insurance_required: boolean;
|
|
56
|
+
insurance_value: number | null;
|
|
55
57
|
}
|
|
56
58
|
|
|
57
59
|
export interface Product extends BaseProduct {
|
|
@@ -2,7 +2,7 @@ import { AppointmentItem } from "./appointmentItem";
|
|
|
2
2
|
import { AppointmentType, AppointmentSubtype } from "./appointmentType";
|
|
3
3
|
import { AppointmentStatus } from "./appointmentStatus";
|
|
4
4
|
import { Address } from "../address";
|
|
5
|
-
import { BaseImage, BaseNote } from "../../_common";
|
|
5
|
+
import { BaseImage, BaseNote, ServiceArea } from "../../_common";
|
|
6
6
|
import { ScServiceCode } from "../../fulfillment";
|
|
7
7
|
|
|
8
8
|
export interface Appointment {
|
|
@@ -96,6 +96,6 @@ export interface Location {
|
|
|
96
96
|
phone_number: string;
|
|
97
97
|
postal_code: string;
|
|
98
98
|
province: string;
|
|
99
|
-
service_area:
|
|
99
|
+
service_area: ServiceArea | null;
|
|
100
100
|
updated_at: string;
|
|
101
101
|
}
|
|
@@ -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;
|