@secondcloset/types 2.7.18 → 2.7.19

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondcloset/types",
3
- "version": "2.7.18",
3
+ "version": "2.7.19",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -1,4 +1,8 @@
1
- import { AppointmentType, AppointmentSubtype } from "./appointmentType";
1
+ import {
2
+ AppointmentType,
3
+ AppointmentSubtype,
4
+ DeliveryType,
5
+ } from "./appointmentType";
2
6
  import { AppointmentStatus } from "./appointmentStatus";
3
7
  import { Shipment, ScServiceCode } from "../shipment";
4
8
  import { Order } from "../order";
@@ -56,6 +60,8 @@ export interface Appointment {
56
60
  user_id: string;
57
61
  user_lastname: string;
58
62
  verification_images?: BaseImage[];
63
+ delivery_type?: DeliveryType;
64
+ shipping_labels?: LastMileShippingLabel[];
59
65
  }
60
66
 
61
67
  export interface Location {
@@ -76,3 +82,11 @@ export interface Location {
76
82
  service_area: ServiceArea | null;
77
83
  updated_at: string;
78
84
  }
85
+
86
+ interface LastMileShippingLabel {
87
+ id: string;
88
+ label_id?: string;
89
+ tracking_number?: string;
90
+ tracking_url?: string;
91
+ label_download?: string;
92
+ }
@@ -7,3 +7,5 @@ export type AppointmentType =
7
7
  | "inventory_warehouse_receiving";
8
8
 
9
9
  export type AppointmentSubtype = "mid_mile_pick_up" | "mid_mile_drop_off";
10
+
11
+ export type DeliveryType = "heavy" | "parcel";
@@ -22,6 +22,7 @@ export interface Package {
22
22
  width_value: string;
23
23
  width_unit: string;
24
24
  logistics_external_carrier_shipping_label_id: string;
25
+ logistics_bolt_shipping_label_id?: string;
25
26
  shipment_item_ids: string[];
26
27
  status: PackageStatus;
27
28
  tracking_number: null | string;
@@ -3,6 +3,7 @@ import {
3
3
  AppointmentStatus,
4
4
  AppointmentType,
5
5
  AppointmentSubtype,
6
+ DeliveryType,
6
7
  } from "../../fulfillment/appointment";
7
8
  import { CustomerAddress, Customer, ShipmentTag } from "../order";
8
9
  import { BaseUser, BaseImage, BaseNote, BaseAddress } from "../../_common";
@@ -74,6 +75,8 @@ export interface SecondClosetShippingMethod {
74
75
  delivery_service_level?: ScServiceCode;
75
76
  field_ops_notes?: BaseNote[];
76
77
  verification_images?: BaseImage[];
78
+ delivery_type?: DeliveryType;
79
+ shipping_labels?: LastMileShippingLabel[];
77
80
  source?: {
78
81
  id: string;
79
82
  type: string;
@@ -126,6 +129,14 @@ export interface ExternalCarrierShippingLabel {
126
129
  voided_at: string | null;
127
130
  }
128
131
 
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
+
129
140
  export interface ExternalCarrierShippingMethod {
130
141
  id: string;
131
142
  status: ExternalCarrierShipmentStatus;
@@ -1,5 +1,9 @@
1
1
  import { AppointmentItem } from "./appointmentItem";
2
- import { AppointmentType, AppointmentSubtype } from "./appointmentType";
2
+ import {
3
+ AppointmentType,
4
+ AppointmentSubtype,
5
+ DeliveryType,
6
+ } from "./appointmentType";
3
7
  import { AppointmentStatus } from "./appointmentStatus";
4
8
  import { Address } from "../address";
5
9
  import { BaseImage, BaseNote, ServiceArea } from "../../_common";
@@ -52,6 +56,7 @@ export interface Appointment {
52
56
  user_lastname: string;
53
57
  items: AppointmentItem[];
54
58
  verification_images?: BaseImage[];
59
+ delivery_type?: DeliveryType;
55
60
  }
56
61
 
57
62
  export type AppointmentSlot =
@@ -8,3 +8,5 @@ export type AppointmentType =
8
8
  | "custom";
9
9
 
10
10
  export type AppointmentSubtype = "mid_mile_pick_up" | "mid_mile_drop_off";
11
+
12
+ export type DeliveryType = "heavy" | "parcel";