@secondcloset/types 2.7.40 → 2.7.41

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.40",
3
+ "version": "2.7.41",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -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;
@@ -5,3 +5,4 @@ export * from "./appointment";
5
5
  export * from "./warehouseReceivingOrder";
6
6
  export * from "./asn";
7
7
  export * from "./resourceError";
8
+ export * from "./returns";
@@ -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;