@secondcloset/types 2.17.17-beta-containerTypes-6 → 3.1.0-appointment-tracking-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.
Files changed (55) hide show
  1. package/package.json +2 -2
  2. package/src/_common/activityHistory.ts +9 -1
  3. package/src/_common/facility.ts +49 -18
  4. package/src/_common/index.ts +2 -1
  5. package/src/_common/organization.ts +21 -18
  6. package/src/_common/serviceArea.ts +11 -1
  7. package/src/_common/user.ts +1 -0
  8. package/src/fulfillment/appointment/appointment.ts +43 -1
  9. package/src/fulfillment/appointment/appointmentType.ts +4 -0
  10. package/src/fulfillment/asn/asn.ts +3 -0
  11. package/src/fulfillment/asn/asnItem.ts +3 -0
  12. package/src/fulfillment/index.ts +3 -0
  13. package/src/fulfillment/inventory/channel.ts +9 -0
  14. package/src/fulfillment/inventory/index.ts +2 -0
  15. package/src/fulfillment/inventory/inventory.ts +16 -0
  16. package/src/fulfillment/order/order.ts +50 -39
  17. package/src/fulfillment/order/orderItem.ts +34 -14
  18. package/src/fulfillment/product/product.ts +16 -17
  19. package/src/fulfillment/product/stock.ts +2 -0
  20. package/src/fulfillment/resourceError/index.ts +2 -0
  21. package/src/fulfillment/resourceError/resourceError.ts +20 -0
  22. package/src/fulfillment/resourceError/resourceErrorAssignee.ts +9 -0
  23. package/src/fulfillment/returns/configs.ts +32 -0
  24. package/src/fulfillment/returns/index.ts +1 -0
  25. package/src/fulfillment/shipment/package.ts +1 -0
  26. package/src/fulfillment/shipment/shipment.ts +58 -34
  27. package/src/fulfillment/shipment/shipmentItem.ts +56 -39
  28. package/src/fulfillment/shipment/shippingMethod.ts +25 -0
  29. package/src/logistics/availability.ts +5 -1
  30. package/src/logistics/index.ts +2 -1
  31. package/src/logistics/serviceArea.ts +14 -0
  32. package/src/storage/appointment/appointment.ts +10 -1
  33. package/src/storage/appointment/appointmentType.ts +4 -0
  34. package/src/warehouse/asnContainer.ts +8 -0
  35. package/src/warehouse/carrierTransferPackage.ts +3 -2
  36. package/src/warehouse/containerRequestLog.ts +7 -2
  37. package/src/warehouse/index.ts +19 -12
  38. package/src/warehouse/location.ts +11 -0
  39. package/src/warehouse/locationActivityLog.ts +1 -0
  40. package/src/warehouse/locationItem.ts +14 -0
  41. package/src/warehouse/lotCode.ts +13 -0
  42. package/src/warehouse/occupiedLocation.ts +5 -0
  43. package/src/warehouse/organization.ts +7 -2
  44. package/src/warehouse/packerActivityLog.ts +7 -4
  45. package/src/warehouse/physicalProperty.ts +9 -0
  46. package/src/warehouse/pickActivityLog.ts +22 -0
  47. package/src/warehouse/picksheet.ts +35 -1
  48. package/src/warehouse/product.ts +3 -0
  49. package/src/warehouse/productPhysicalProperty.ts +16 -0
  50. package/src/warehouse/productQuantum.ts +74 -0
  51. package/src/warehouse/putawayActivityLog.ts +20 -0
  52. package/src/warehouse/return.ts +5 -0
  53. package/src/warehouse/rmaContainer.ts +9 -0
  54. package/src/warehouse/container.ts +0 -16
  55. package/src/warehouse/palletRequestLog.ts +0 -23
@@ -0,0 +1,9 @@
1
+ export interface ResourceErrorAssignee {
2
+ id: string;
3
+ first_name: string;
4
+ last_name: string;
5
+ user_code: string;
6
+ email: string;
7
+ role: string;
8
+ phone_number: string;
9
+ }
@@ -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";
@@ -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;
@@ -1,9 +1,16 @@
1
1
  import { ShipmentItem } from "./shipmentItem";
2
- import { BaseUser, BaseNote, BaseOrganization, Facility } from "../../_common";
2
+ import {
3
+ BaseUser,
4
+ BaseNote,
5
+ BaseOrganization,
6
+ Facility,
7
+ Version,
8
+ } from "../../_common";
3
9
  import { Package } from "./package";
4
10
  import {
5
11
  SecondClosetShippingMethod,
6
12
  ExternalCarrierShippingMethod,
13
+ CustomerPickupShippingMethod,
7
14
  } from "./shippingMethod";
8
15
  import { Carrier } from "./carrier";
9
16
  import { AppointmentType as FulfillmentAppointmentType } from "../appointment/appointmentType";
@@ -11,9 +18,19 @@ import { AppointmentType as StorageAppointmentType } from "../../storage/appoint
11
18
 
12
19
  export type ShipmentActionType =
13
20
  | "setup"
21
+ | "customer_pickup"
14
22
  | StorageAppointmentType
15
23
  | FulfillmentAppointmentType;
16
24
 
25
+ export type ServiceCode =
26
+ | "standard"
27
+ | "white_glove"
28
+ | "to_the_door"
29
+ | "room_of_choice"
30
+ | "standard_1_person"
31
+ | "room_of_choice_1_person"
32
+ | "to_the_door_1_person";
33
+
17
34
  export type ScServiceCode =
18
35
  | "second_closet_standard"
19
36
  | "second_closet_white_glove"
@@ -21,37 +38,44 @@ export type ScServiceCode =
21
38
  | "second_closet_room_of_choice"
22
39
  | "second_closet_standard_1_person"
23
40
  | "second_closet_room_of_choice_1_person"
24
- | "second_closet_to_the_door_1_person";
41
+ | "second_closet_to_the_door_1_person"
42
+ | ServiceCode;
25
43
 
26
- export interface Shipment {
27
- id: string;
28
- organization_id: string;
29
- organization?: BaseOrganization;
30
- billed: boolean;
31
- user: BaseUser;
32
- notes: BaseNote[] | string;
33
- shipment_items: ShipmentItem[];
34
- shipment_number: string;
35
- packages: Package[];
36
- external_order_id: string | null;
37
- external_order_type: string;
38
- external_shipment_id: string | null;
39
- carrier: Carrier | null;
40
- created_at: string;
41
- updated_at: string;
42
- action_summary: ShipmentActionType[];
43
- freight: boolean;
44
- shipping_method: SecondClosetShippingMethod | ExternalCarrierShippingMethod;
45
- shipping_method_type:
46
- | "external_carrier_shipment"
47
- | "appointment"
48
- | "untracked_shipment";
49
- external_order?: {
50
- id: string;
51
- external_order_number: string;
52
- external_order_id: string | null;
53
- created_at: string;
54
- updated_at: string;
55
- };
56
- facility?: Partial<Facility>;
57
- }
44
+ export type Shipment<V extends Version = "V1"> = V extends "V1"
45
+ ? {
46
+ id: string;
47
+ organization_id: string;
48
+ organization?: BaseOrganization;
49
+ billed: boolean;
50
+ user: BaseUser;
51
+ notes: BaseNote[] | string;
52
+ shipment_items: ShipmentItem<V>[];
53
+ shipment_number: string;
54
+ packages: Package[];
55
+ external_order_id: string | null;
56
+ external_order_type: string;
57
+ external_shipment_id: string | null;
58
+ carrier: Carrier | null;
59
+ created_at: string;
60
+ updated_at: string;
61
+ action_summary: ShipmentActionType[];
62
+ freight: boolean;
63
+ shipping_method:
64
+ | SecondClosetShippingMethod
65
+ | ExternalCarrierShippingMethod
66
+ | CustomerPickupShippingMethod;
67
+ shipping_method_type:
68
+ | "external_carrier_shipment"
69
+ | "appointment"
70
+ | "untracked_shipment"
71
+ | "customer_pickup_shipment";
72
+ external_order?: {
73
+ id: string;
74
+ external_order_number: string;
75
+ external_order_id: string | null;
76
+ created_at: string;
77
+ updated_at: string;
78
+ };
79
+ facility?: Partial<Facility>;
80
+ }
81
+ : Omit<Shipment<"V1">, "shipment_items">;
@@ -1,42 +1,59 @@
1
+ import { Version } from "../../_common";
2
+ import { BaseProduct } from "../product";
1
3
  import { ShipmentActionType } from "./shipment";
2
- export interface ShipmentItem {
3
- id: string;
4
- order_item_id: string;
5
- description: string;
6
- item_identifier: string;
7
- item_identifier_type: string;
8
- item_identifier_value: string;
9
- product_id?: string;
10
- weight_value: string;
11
- weight_unit: string;
12
- length_value: string;
13
- length_unit: string;
14
- height_value: string;
15
- height_unit: string;
16
- width_value: string;
17
- width_unit: string;
18
- shipment_actions: ShipmentActionType[];
19
- shipment_actions_completion: Partial<
20
- {
21
- [key in ShipmentActionType]: boolean;
4
+ export type ShipmentItem<V extends Version = "V1"> = V extends "V1"
5
+ ? {
6
+ id: string;
7
+ order_item_id: string;
8
+ description: string;
9
+ item_identifier: string;
10
+ item_identifier_type: string;
11
+ item_identifier_value: string;
12
+ product_id?: string;
13
+ weight_value: string;
14
+ weight_unit: string;
15
+ length_value: string;
16
+ length_unit: string;
17
+ height_value: string;
18
+ height_unit: string;
19
+ width_value: string;
20
+ width_unit: string;
21
+ shipment_actions: ShipmentActionType[];
22
+ shipment_actions_completion: Partial<{
23
+ [key in ShipmentActionType]: boolean;
24
+ }>;
25
+ shipment_actions_status?: {
26
+ [key in ShipmentActionType]: {
27
+ completed: boolean;
28
+ failed: boolean;
29
+ failed_reason: string | null;
30
+ };
31
+ };
32
+ shipment_item_group: {
33
+ id: string;
34
+ name: string;
35
+ description: string;
36
+ external_group_id: string;
37
+ group_identifier_type: string;
38
+ group_identifier_value: string;
39
+ created_at: string;
40
+ updated_at: string;
41
+ group_identifier: string;
42
+ } | null;
22
43
  }
23
- >;
24
- shipment_actions_status?: {
25
- [key in ShipmentActionType]: {
26
- completed: boolean;
27
- failed: boolean;
28
- failed_reason: string | null;
44
+ : {
45
+ product: BaseProduct;
46
+ shipment_item_ids: ShipmentItem<"V1">["id"][];
47
+ shipment_actions_status: {
48
+ [key in ShipmentActionType]: {
49
+ completed_shipment_item_ids: string[];
50
+ failed_shipment_items: {
51
+ ids: string[];
52
+ failed_reason: string | null;
53
+ }[];
54
+ };
55
+ };
56
+ quantity: number;
57
+ attributes?: string[];
58
+ return_reasons?: string[];
29
59
  };
30
- };
31
- shipment_item_group: {
32
- id: string;
33
- name: string;
34
- description: string;
35
- external_group_id: string;
36
- group_identifier_type: string;
37
- group_identifier_value: string;
38
- created_at: string;
39
- updated_at: string;
40
- group_identifier: string;
41
- } | null;
42
- }
@@ -3,6 +3,8 @@ import {
3
3
  AppointmentStatus,
4
4
  AppointmentType,
5
5
  AppointmentSubtype,
6
+ DeliveryType,
7
+ ParcelServiceLevel,
6
8
  } from "../../fulfillment/appointment";
7
9
  import { CustomerAddress, Customer, ShipmentTag } from "../order";
8
10
  import { BaseUser, BaseImage, BaseNote, BaseAddress } from "../../_common";
@@ -30,6 +32,7 @@ export type ShippingMethodType =
30
32
  | "external_carrier_shipment";
31
33
 
32
34
  export interface SecondClosetShippingMethod {
35
+ air_skip?: boolean;
33
36
  id: string;
34
37
  user_id?: string;
35
38
  user_code?: string;
@@ -61,6 +64,7 @@ export interface SecondClosetShippingMethod {
61
64
  } | null;
62
65
  range_of_days_start_date?: string | null;
63
66
  range_of_days_end_date?: string | null;
67
+ parcel_service_level?: ParcelServiceLevel;
64
68
  created_at: string;
65
69
  updated_at?: string;
66
70
  num_movers?: number | null;
@@ -74,6 +78,9 @@ export interface SecondClosetShippingMethod {
74
78
  delivery_service_level?: ScServiceCode;
75
79
  field_ops_notes?: BaseNote[];
76
80
  verification_images?: BaseImage[];
81
+ delivery_type?: DeliveryType;
82
+ shipping_labels?: LastMileShippingLabel[];
83
+ signature_required?: boolean;
77
84
  source?: {
78
85
  id: string;
79
86
  type: string;
@@ -126,6 +133,14 @@ export interface ExternalCarrierShippingLabel {
126
133
  voided_at: string | null;
127
134
  }
128
135
 
136
+ export interface LastMileShippingLabel {
137
+ id: string;
138
+ label_id?: string;
139
+ tracking_number?: string;
140
+ tracking_url?: string;
141
+ label_download?: string;
142
+ }
143
+
129
144
  export interface ExternalCarrierShippingMethod {
130
145
  id: string;
131
146
  status: ExternalCarrierShipmentStatus;
@@ -138,3 +153,13 @@ export interface ExternalCarrierShippingMethod {
138
153
  ship_to_address: CarrierShippingAddress;
139
154
  shipping_labels: ExternalCarrierShippingLabel[];
140
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
+ }
@@ -1,6 +1,10 @@
1
1
  import { ServiceArea } from "../_common";
2
2
 
3
- export type DeliveryServiceLevel = "white_glove" | "non_white_glove" | "all_service_levels";
3
+ export type DeliveryServiceLevel =
4
+ | "white_glove"
5
+ | "non_white_glove"
6
+ | "all_service_levels"
7
+ | "parcel_regular";
4
8
 
5
9
  export interface AvailabilityTimeSlot {
6
10
  timeslot: string;
@@ -1,2 +1,3 @@
1
1
  export * from "./shippingRate";
2
- export * from "./availability"
2
+ export * from "./availability";
3
+ export * from "./serviceArea";
@@ -0,0 +1,14 @@
1
+ import { FacilityCode, ServiceArea as ServiceAreaCode } from "../_common";
2
+
3
+ export interface ServiceArea {
4
+ id: number;
5
+ facilities: FacilityCode[];
6
+ name: ServiceAreaCode;
7
+ humanized_name: string;
8
+ timezone: string;
9
+ address: { country: string; province: string };
10
+ standard_boundary: { latitude: number; longitude: number }[];
11
+ extended_boundary: { latitude: number; longitude: number }[];
12
+ created_at: string;
13
+ updated_at: string;
14
+ }
@@ -1,11 +1,17 @@
1
1
  import { AppointmentItem } from "./appointmentItem";
2
- import { AppointmentType, AppointmentSubtype } from "./appointmentType";
2
+ import {
3
+ AppointmentType,
4
+ AppointmentSubtype,
5
+ DeliveryType,
6
+ ParcelServiceLevel,
7
+ } from "./appointmentType";
3
8
  import { AppointmentStatus } from "./appointmentStatus";
4
9
  import { Address } from "../address";
5
10
  import { BaseImage, BaseNote, ServiceArea } from "../../_common";
6
11
  import { ScServiceCode } from "../../fulfillment";
7
12
 
8
13
  export interface Appointment {
14
+ air_skip?: boolean;
9
15
  address: Address;
10
16
  arrived_time?: string;
11
17
  bulky_order_only: boolean;
@@ -33,6 +39,7 @@ export interface Appointment {
33
39
  num_movers?: number;
34
40
  number: string;
35
41
  order_id: string;
42
+ parcel_service_level?: ParcelServiceLevel;
36
43
  rescheduled: boolean;
37
44
  rescheduled_appointment_id?: string | null;
38
45
  signature_image?: string;
@@ -52,6 +59,8 @@ export interface Appointment {
52
59
  user_lastname: string;
53
60
  items: AppointmentItem[];
54
61
  verification_images?: BaseImage[];
62
+ delivery_type?: DeliveryType;
63
+ signature_required?: boolean;
55
64
  }
56
65
 
57
66
  export type AppointmentSlot =
@@ -8,3 +8,7 @@ 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";
13
+
14
+ export type ParcelServiceLevel = "same_day" | "next_day" | null;
@@ -0,0 +1,8 @@
1
+ export type ASNContainer = {
2
+ id: string;
3
+ asn_number: string;
4
+ container_id: string;
5
+ quantity: number;
6
+ product_id: string;
7
+ created_at: string;
8
+ };
@@ -19,6 +19,7 @@ export interface CarrierTransferPackage {
19
19
  handover_at?: string;
20
20
  created_by: string;
21
21
  created_at: string;
22
+ destination_country?: string;
22
23
  }
23
24
 
24
25
  interface PackageCarrier {
@@ -43,7 +44,7 @@ interface ShippingLabel extends Partial<ExternalCarrierShippingLabel> {
43
44
  created_at: string;
44
45
  updated_at: string;
45
46
  }
46
- interface PackageShipment extends Partial<Shipment> {
47
+ interface PackageShipment extends Partial<Shipment<"V1">> {
47
48
  user_id: string;
48
49
  shipping_method_id?: string;
49
50
  customer_scheduling_token?: string;
@@ -62,4 +63,4 @@ export interface PackageDetailsInfo extends PackageInfo {
62
63
  organization: Organization;
63
64
  carrier?: PackageCarrier;
64
65
  shipping_label?: ShippingLabel;
65
- }
66
+ }
@@ -1,5 +1,4 @@
1
1
  import { CarrierTransferPallet, Pallet } from ".";
2
- import { Container } from "./container";
3
2
 
4
3
  export enum ContainerRequestStatus {
5
4
  FAILED = "failed",
@@ -12,6 +11,13 @@ export enum ContainerRequestSource {
12
11
  CARRIER_TRANSFER_PALLET = "carrier_transfer_pallet",
13
12
  BIN = "bin",
14
13
  }
14
+
15
+ export enum ContainerType {
16
+ SINGLE = "single",
17
+ DOUBLE = "double",
18
+ BIN = "bin",
19
+ }
20
+
15
21
  export interface ContainerRequestLog {
16
22
  id: string;
17
23
  status: ContainerRequestStatus;
@@ -22,5 +28,4 @@ export interface ContainerRequestLog {
22
28
  created_at: string;
23
29
  carrier_transfer_pallets?: CarrierTransferPallet[];
24
30
  pallets?: Pallet[];
25
- containers?: Container[];
26
31
  }
@@ -1,24 +1,31 @@
1
+ export * from "./asnContainer";
1
2
  export * from "./asnProcessLog";
2
3
  export * from "./bin";
4
+ export * from "./carrierTransferPackage";
5
+ export * from "./carrierTransferPallet";
6
+ export * from "./containerRequestLog";
3
7
  export * from "./location";
8
+ export * from "./locationActivityLog";
4
9
  export * from "./locationItem";
5
10
  export * from "./locationTemplate";
11
+ export * from "./manualItem";
12
+ export * from "./occupiedLocation";
6
13
  export * from "./organization";
7
- export * from "./container";
14
+ export * from "./packerActivityLog";
8
15
  export * from "./pallet";
16
+ export * from "./picksheet";
9
17
  export * from "./product";
18
+ export * from "./productQuantum";
19
+ export * from "./putawayActivityLog";
20
+ export * from "./return";
10
21
  export * from "./shipmentProductsTracking";
22
+ export * from "./specialProject";
23
+ export * from "./stock";
11
24
  export * from "./supply";
12
25
  export * from "./supplyStock";
13
26
  export * from "./supplyTransaction";
14
- export * from "./locationActivityLog";
15
- export * from "./packerActivityLog";
16
- export * from "./containerRequestLog";
17
- export * from "./manualItem";
18
- export * from "./return";
19
- export * from "./stock";
20
- export * from "./specialProject";
21
- export * from "./carrierTransferPallet";
22
- export * from "./carrierTransferPackage";
23
- export * from "./picksheet";
24
- export * from "./palletRequestLog";
27
+ export * from "./rmaContainer";
28
+ export * from "./productPhysicalProperty";
29
+ export * from "./physicalProperty";
30
+ export * from "./pickActivityLog";
31
+ export * from "./lotCode";
@@ -8,6 +8,12 @@ export enum LocationType {
8
8
  RACKING = "RACKING",
9
9
  CART = "CART",
10
10
  PALLET_ZONE = "PALLET_ZONE",
11
+ VIRTUAL = "VIRTUAL",
12
+ }
13
+
14
+ export enum LocationStatus {
15
+ EMPTY = "EMPTY",
16
+ OCCUPIED = "OCCUPIED",
11
17
  }
12
18
 
13
19
  export interface Location {
@@ -17,4 +23,9 @@ export interface Location {
17
23
  location_template_id: string;
18
24
  location_template?: LocationTemplate;
19
25
  location_items?: LocationItem[];
26
+ status: LocationStatus;
27
+ physical_previous_location?: string;
28
+ physical_next_location?: string;
29
+ logical_previous_location?: string;
30
+ logical_next_location?: string;
20
31
  }
@@ -22,4 +22,5 @@ export interface LocationActivityLog {
22
22
  user_email: string;
23
23
  action: LocationActivityType;
24
24
  product?: Product;
25
+ reference_number?: string;
25
26
  }
@@ -3,6 +3,13 @@ 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";
7
+
8
+ export enum LocationItemStatus {
9
+ AVAILABLE = "available",
10
+ DAMAGED = "damaged",
11
+ HOLD = "hold",
12
+ }
6
13
 
7
14
  export interface LocationItem {
8
15
  id: string;
@@ -20,4 +27,11 @@ export interface LocationItem {
20
27
  bin: Bin;
21
28
  created_at: string;
22
29
  updated_at: string;
30
+ status: LocationItemStatus;
31
+ lot_code?: LotCode;
32
+ lot_code_id?: string;
33
+ }
34
+
35
+ export interface ItemMoveLocationValidation {
36
+ multiple_bins: boolean;
23
37
  }
@@ -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
+ }
@@ -0,0 +1,5 @@
1
+ export interface OccupiedLocation {
2
+ id: string;
3
+ location_item_id: string;
4
+ location_code: string;
5
+ }
@@ -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 {
@@ -20,6 +22,8 @@ export enum OrganizationConfigKey {
20
22
  GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION = "GOOD_CONDITION_DAMAGED_PACKAGING_INSTRUCTION",
21
23
  RTS_INSTRUCTION = "RTS_INSTRUCTION",
22
24
  ENABLE_SEND_EMAIL_TO_CUSTOMERS = "ENABLE_SEND_EMAIL_TO_CUSTOMERS",
25
+ DEFAULT_RATE_FETCHING_V1 = "DEFAULT_RATE_FETCHING_V1",
26
+ DEFAULT_REQUIRE_SIGNATURE = "DEFAULT_REQUIRE_SIGNATURE",
23
27
  }
24
28
  export interface OrganizationConfig {
25
29
  id: string;
@@ -29,6 +33,7 @@ export interface OrganizationConfig {
29
33
  organization?: Organization;
30
34
  created_at: string;
31
35
  updated_at: string;
36
+ metadata?: Record<string, any>;
32
37
  }
33
38
 
34
39
  export interface FacilityOrganization {
@@ -7,10 +7,13 @@ export enum PackerActivityType {
7
7
  export interface PackerActivityLog {
8
8
  id: string;
9
9
  user_email: string;
10
- shipment_id: string;
11
- shipment_number: string;
12
- external_order_id: string;
13
- external_order_number: string;
10
+ shipment_id?: string;
11
+ shipment_number?: string;
12
+ external_order_id?: string;
13
+ external_order_number?: string;
14
+ start_by_scanning?: string;
15
+ core_error_msg?: string;
14
16
  created_at: string;
15
17
  action: PackerActivityType;
18
+ provider_scope?: string;
16
19
  }
@@ -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
+ }