@secondcloset/types 2.7.49 → 2.7.51-beta.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secondcloset/types",
3
- "version": "2.7.49",
3
+ "version": "2.7.51-beta.0",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -19,7 +19,9 @@ export type ShipmentTag =
19
19
  | "items_removed"
20
20
  | "pending_inventory_receiving"
21
21
  | "items_partially_fulfilled"
22
- | "customer_booking";
22
+ | "customer_booking"
23
+ | "pending_customer_pickup"
24
+ | "items_picked_up_by_customer";
23
25
 
24
26
  export type OrderPlatform =
25
27
  | "manual"
@@ -4,6 +4,7 @@ import { Package } from "./package";
4
4
  import {
5
5
  SecondClosetShippingMethod,
6
6
  ExternalCarrierShippingMethod,
7
+ CustomerPickupShippingMethod,
7
8
  } from "./shippingMethod";
8
9
  import { Carrier } from "./carrier";
9
10
  import { AppointmentType as FulfillmentAppointmentType } from "../appointment/appointmentType";
@@ -11,6 +12,7 @@ import { AppointmentType as StorageAppointmentType } from "../../storage/appoint
11
12
 
12
13
  export type ShipmentActionType =
13
14
  | "setup"
15
+ | "customer_pickup"
14
16
  | StorageAppointmentType
15
17
  | FulfillmentAppointmentType;
16
18
 
@@ -51,11 +53,15 @@ export interface Shipment {
51
53
  updated_at: string;
52
54
  action_summary: ShipmentActionType[];
53
55
  freight: boolean;
54
- shipping_method: SecondClosetShippingMethod | ExternalCarrierShippingMethod;
56
+ shipping_method:
57
+ | SecondClosetShippingMethod
58
+ | ExternalCarrierShippingMethod
59
+ | CustomerPickupShippingMethod;
55
60
  shipping_method_type:
56
61
  | "external_carrier_shipment"
57
62
  | "appointment"
58
- | "untracked_shipment";
63
+ | "untracked_shipment"
64
+ | "customer_pickup_shipment";
59
65
  external_order?: {
60
66
  id: string;
61
67
  external_order_number: string;
@@ -153,3 +153,13 @@ export interface ExternalCarrierShippingMethod {
153
153
  ship_to_address: CarrierShippingAddress;
154
154
  shipping_labels: ExternalCarrierShippingLabel[];
155
155
  }
156
+
157
+ export interface CustomerPickupShippingMethod {
158
+ id: string;
159
+ status: "awaiting" | "failed" | "cancelled" | "completed";
160
+ created_at: string;
161
+ completed_at?: string;
162
+ failed_at?: string;
163
+ failed_reason?: string;
164
+ estimated_pickup_date?: string;
165
+ }
@@ -24,3 +24,4 @@ export * from "./stock";
24
24
  export * from "./supply";
25
25
  export * from "./supplyStock";
26
26
  export * from "./supplyTransaction";
27
+ export * from "./rmaContainer";
@@ -1,4 +1,5 @@
1
1
  import { Organization } from "./organization";
2
+ import { RmaContainer } from "./rmaContainer";
2
3
 
3
4
  export enum ReturnItemCondition {
4
5
  RESELLABLE = "resellable",
@@ -39,6 +40,8 @@ export interface ReturnItem {
39
40
  condition_notes?: string;
40
41
  reason?: string;
41
42
  reason_notes?: string;
43
+ rma_container_id?: string;
44
+ rma_container?: RmaContainer;
42
45
  }
43
46
 
44
47
  export interface ReturnAddress {
@@ -0,0 +1,9 @@
1
+ import { ReturnItem } from "./return";
2
+
3
+ export type RmaContainer = {
4
+ id: string;
5
+ rma_number: string;
6
+ container_id: string;
7
+ quantity: number;
8
+ return_items: ReturnItem[];
9
+ };