@secondcloset/types 2.8.0-beta.7 → 2.8.0-beta.9

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.8.0-beta.7",
3
+ "version": "2.8.0-beta.9",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -17,6 +17,15 @@ export interface OrganizationConfig {
17
17
  value: string;
18
18
  }
19
19
 
20
+ export type OrganizationShippingConfigKey =
21
+ | "whitelist_carrier"
22
+ | "blacklist_carrier";
23
+
24
+ export interface OrganizationShippingConfig {
25
+ key: OrganizationShippingConfigKey;
26
+ value: string[];
27
+ }
28
+
20
29
  export interface Permission {
21
30
  id: string;
22
31
  name: string;
@@ -70,6 +79,7 @@ export interface Organization extends BaseOrganization {
70
79
  sc_service_tier?: SCServiceTier;
71
80
  };
72
81
  configurations_attributes: OrganizationConfig[];
82
+ shipping_configurations_attributes?: OrganizationShippingConfig[];
73
83
  permissions: Permission[];
74
84
  geofilter_constraints?: GeofilterConstraint[];
75
85
  facility_service_areas?: FacilityServiceArea[];
@@ -26,6 +26,7 @@ export interface Appointment {
26
26
  estimated_time: number;
27
27
  facility?: {
28
28
  name: string;
29
+ street: string;
29
30
  };
30
31
  failed_notes: string | null;
31
32
  failed_reason: string | null;
@@ -17,6 +17,8 @@ export type ShipmentTag =
17
17
  | "items_fulfilled"
18
18
  | "processing_return_items"
19
19
  | "items_returned"
20
+ | "returned_to_sender"
21
+ | "pending_return_to_sender"
20
22
  | "items_removed"
21
23
  | "pending_inventory_receiving"
22
24
  | "items_partially_fulfilled"
@@ -33,12 +35,6 @@ export type OrderPlatform =
33
35
  | "shipstaion"
34
36
  | "external_api";
35
37
 
36
- export type OrderStockStatus =
37
- | "in_stock"
38
- | "partially_in_stock"
39
- | "out_of_stock"
40
- | "unknown_stock";
41
-
42
38
  export interface FulfillmentOrderAddress extends BaseAddress {
43
39
  customer_id: string;
44
40
  contact_name: string;
@@ -78,10 +74,14 @@ export type Order<V extends Version = "V1"> = V extends "V1"
78
74
  shipments: Shipment<V>[];
79
75
  items: OrderItem<V>[];
80
76
  files: File[];
81
- stock_status: OrderStockStatus;
77
+ stock_status:
78
+ | "in_stock"
79
+ | "partially_in_stock"
80
+ | "out_of_stock"
81
+ | "unknown_stock";
82
82
  on_hold: boolean;
83
83
  on_hold_at: string;
84
- requested_service_code?: ScServiceCode;
84
+ selected_service_code?: ScServiceCode;
85
85
  has_errors: boolean;
86
86
  }
87
87
  : Omit<Order<"V1">, "items" | "shipments">;
@@ -18,4 +18,6 @@ export interface Stock {
18
18
  orders_to_be_reserved: StockOrder[];
19
19
  reserved_quantity: number;
20
20
  reserved_orders: StockOrder[];
21
+ on_hold_inventory?: number;
22
+ damaged_inventory?: number;
21
23
  }
@@ -28,3 +28,4 @@ export * from "./rmaContainer";
28
28
  export * from "./productPhysicalProperty";
29
29
  export * from "./physicalProperty";
30
30
  export * from "./pickActivityLog";
31
+ export * from "./lotCode";
@@ -3,6 +3,7 @@ import { Location } from "./location";
3
3
  import { Pallet } from "./pallet";
4
4
  import { Bin } from "./bin";
5
5
  import { ManualItem } from "./manualItem";
6
+ import { LotCode } from "./lotCode";
6
7
 
7
8
  export enum LocationItemStatus {
8
9
  AVAILABLE = "available",
@@ -27,6 +28,8 @@ export interface LocationItem {
27
28
  created_at: string;
28
29
  updated_at: string;
29
30
  status: LocationItemStatus;
31
+ lot_code?: LotCode;
32
+ lot_code_id?: string;
30
33
  }
31
34
 
32
35
  export interface ItemMoveLocationValidation {
@@ -0,0 +1,13 @@
1
+ import { LocationItem } from "./locationItem";
2
+ import { Organization } from "./organization";
3
+
4
+ export interface LotCode {
5
+ id: string;
6
+ code?: string;
7
+ expiry_date?: string;
8
+ organization_id: string;
9
+ organization: Organization;
10
+ location_items?: LocationItem[];
11
+ created_at: string;
12
+ updated_at: string;
13
+ }
@@ -1,7 +1,8 @@
1
+ import { FacilityCode } from "../_common";
2
+ import { LotCode } from "./lotCode";
1
3
  import { Product } from "./product";
2
- import { Supply } from "./supply";
3
4
  import { ShipmentProductsTracking } from "./shipmentProductsTracking";
4
- import { FacilityCode } from "../_common";
5
+ import { Supply } from "./supply";
5
6
 
6
7
  export interface Organization {
7
8
  id: string;
@@ -9,6 +10,7 @@ export interface Organization {
9
10
  products?: Product[];
10
11
  supplies?: Supply[];
11
12
  shipment_products_trackings?: ShipmentProductsTracking[];
13
+ lot_codes?: LotCode[];
12
14
  }
13
15
 
14
16
  export enum OrganizationConfigKey {
@@ -58,6 +58,7 @@ export type Picksheet = {
58
58
  type: PicksheetType;
59
59
  organization?: Organization;
60
60
  organization_id: string;
61
+ facility?: FacilityCode;
61
62
  };
62
63
 
63
64
  export type PicksheetItem = {
@@ -86,16 +87,3 @@ export type PicksheetRequest = {
86
87
  type: PicksheetRequestType;
87
88
  picksheets?: Picksheet[];
88
89
  };
89
-
90
- export type PicksheetLookupData = {
91
- facility?: string;
92
- picksheet_id?: string;
93
- shipment_number?: string;
94
- number_of_items?: number;
95
- order_id?: string;
96
- organization?: string;
97
- created_at?: string;
98
- shipment_id?: string;
99
- external_order_number?: string;
100
- external_order_id?: string;
101
- };