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

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.5",
3
+ "version": "2.8.0-beta.7",
4
4
  "description": "secondcloset type declaration and definitions",
5
5
  "main": "src/index.ts",
6
6
  "scripts": {
@@ -9,7 +9,8 @@ export type OrganizationConfigKey =
9
9
  | "auto_fulfill_orders"
10
10
  | "freightcom_api_username"
11
11
  | "freightcom_api_password"
12
- | "preferred_return_facility";
12
+ | "preferred_return_facility"
13
+ | "disable_partial_fulfillment";
13
14
 
14
15
  export interface OrganizationConfig {
15
16
  key: OrganizationConfigKey;
@@ -33,6 +33,12 @@ export type OrderPlatform =
33
33
  | "shipstaion"
34
34
  | "external_api";
35
35
 
36
+ export type OrderStockStatus =
37
+ | "in_stock"
38
+ | "partially_in_stock"
39
+ | "out_of_stock"
40
+ | "unknown_stock";
41
+
36
42
  export interface FulfillmentOrderAddress extends BaseAddress {
37
43
  customer_id: string;
38
44
  contact_name: string;
@@ -72,14 +78,10 @@ export type Order<V extends Version = "V1"> = V extends "V1"
72
78
  shipments: Shipment<V>[];
73
79
  items: OrderItem<V>[];
74
80
  files: File[];
75
- stock_status:
76
- | "in_stock"
77
- | "partially_in_stock"
78
- | "out_of_stock"
79
- | "unknown_stock";
81
+ stock_status: OrderStockStatus;
80
82
  on_hold: boolean;
81
83
  on_hold_at: string;
82
- selected_service_code?: ScServiceCode;
84
+ requested_service_code?: ScServiceCode;
83
85
  has_errors: boolean;
84
86
  }
85
87
  : Omit<Order<"V1">, "items" | "shipments">;
@@ -46,4 +46,10 @@ export type ShipmentItem<V extends Version = "V1"> = V extends "V1"
46
46
  : {
47
47
  product: BaseProduct;
48
48
  shipment_item_ids: ShipmentItem<"V1">["id"][];
49
+ shipment_actions_status: {
50
+ [key in ShipmentActionType]: {
51
+ completed_shipment_item_ids: string[];
52
+ failed_shipment_items: string[];
53
+ };
54
+ };
49
55
  };
@@ -25,3 +25,6 @@ export * from "./supply";
25
25
  export * from "./supplyStock";
26
26
  export * from "./supplyTransaction";
27
27
  export * from "./rmaContainer";
28
+ export * from "./productPhysicalProperty";
29
+ export * from "./physicalProperty";
30
+ export * from "./pickActivityLog";
@@ -0,0 +1,9 @@
1
+ export interface PhysicalProperty {
2
+ id: string;
3
+ name: string;
4
+ default_value: string;
5
+ type: "STRING" | "BOOLEAN" | "NUMBER";
6
+ created_at: Date;
7
+ updated_at: Date;
8
+ deleted_at: Date;
9
+ }
@@ -0,0 +1,22 @@
1
+ import { Picksheet } from "./picksheet";
2
+
3
+ enum PickActivityActionType {
4
+ START = "START",
5
+ PICK = "PICK",
6
+ ERROR = "ERROR",
7
+ }
8
+
9
+ export interface PickActivityLog {
10
+ id: string;
11
+ picksheet_id: string;
12
+ picksheet: Picksheet;
13
+ wavesheet_id: string;
14
+ picksheet_item_id: string;
15
+ picked_by: string;
16
+ created_at: Date;
17
+ action: PickActivityActionType;
18
+ quantity: number;
19
+ picked_location_code: string;
20
+ recommended_location_code: string;
21
+ error_message: string;
22
+ }
@@ -16,6 +16,7 @@ export type PicksheetStats = {
16
16
  organization?: PicksheetOrganization;
17
17
  ready_to_fulfill_count: number;
18
18
  processing_items_count: number;
19
+ is_pushed_shipments_enabled: boolean;
19
20
  };
20
21
 
21
22
  export enum PicksheetStatus {
@@ -55,6 +56,8 @@ export type Picksheet = {
55
56
  request?: PicksheetRequest;
56
57
  picksheet_items?: PicksheetItem[];
57
58
  type: PicksheetType;
59
+ organization?: Organization;
60
+ organization_id: string;
58
61
  };
59
62
 
60
63
  export type PicksheetItem = {
@@ -0,0 +1,16 @@
1
+ import { PhysicalProperty } from "./physicalProperty";
2
+
3
+ export interface ProductPhysicalPropertyView {
4
+ type: string;
5
+ value: string;
6
+ name: string;
7
+ product_physical_property_id: string;
8
+ }
9
+
10
+ export interface ProductPhysicalProperty {
11
+ id: string;
12
+ value: string;
13
+ product_id: string;
14
+ physical_property_id: string;
15
+ physical_property: PhysicalProperty;
16
+ }
@@ -1,3 +1,4 @@
1
+ import { LocationItemStatus } from "./locationItem";
1
2
  import { Product } from "./product";
2
3
 
3
4
  export enum PutawayActivityLogType {
@@ -8,6 +9,7 @@ export enum PutawayActivityLogType {
8
9
  export interface PutawayActivityLog {
9
10
  id: string;
10
11
  action: PutawayActivityLogType;
12
+ status?: LocationItemStatus;
11
13
  from_container_id?: string;
12
14
  to_container_id?: string;
13
15
  user_email: string;