@secondcloset/types 2.8.0-beta.6 → 2.8.0-beta.8
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/.idea/modules.xml +8 -0
- package/.idea/types.iml +12 -0
- package/.idea/vcs.xml +6 -0
- package/package.json +1 -1
- package/src/_common/organization.ts +12 -1
- package/src/fulfillment/appointment/appointment.ts +1 -0
- package/src/fulfillment/order/order.ts +2 -0
- package/src/fulfillment/product/stock.ts +2 -0
- package/src/fulfillment/shipment/shipmentItem.ts +0 -6
- package/src/warehouse/index.ts +4 -0
- package/src/warehouse/locationItem.ts +3 -0
- package/src/warehouse/lotCode.ts +13 -0
- package/src/warehouse/organization.ts +4 -2
- package/src/warehouse/physicalProperty.ts +9 -0
- package/src/warehouse/pickActivityLog.ts +22 -0
- package/src/warehouse/picksheet.ts +4 -13
- package/src/warehouse/productPhysicalProperty.ts +16 -0
- package/src/warehouse/putawayActivityLog.ts +2 -0
package/.idea/types.iml
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<excludeFolder url="file://$MODULE_DIR$/temp" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
8
|
+
</content>
|
|
9
|
+
<orderEntry type="inheritedJdk" />
|
|
10
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
11
|
+
</component>
|
|
12
|
+
</module>
|
package/.idea/vcs.xml
ADDED
package/package.json
CHANGED
|
@@ -9,13 +9,23 @@ 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;
|
|
16
17
|
value: string;
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
export type OrganizationShippingConfigKey =
|
|
21
|
+
| "whitelist_carrier"
|
|
22
|
+
| "blacklist_carrier";
|
|
23
|
+
|
|
24
|
+
export interface OrganizationShippingConfig {
|
|
25
|
+
key: OrganizationShippingConfigKey;
|
|
26
|
+
value: string[];
|
|
27
|
+
}
|
|
28
|
+
|
|
19
29
|
export interface Permission {
|
|
20
30
|
id: string;
|
|
21
31
|
name: string;
|
|
@@ -69,6 +79,7 @@ export interface Organization extends BaseOrganization {
|
|
|
69
79
|
sc_service_tier?: SCServiceTier;
|
|
70
80
|
};
|
|
71
81
|
configurations_attributes: OrganizationConfig[];
|
|
82
|
+
shipping_configurations_attributes?: OrganizationShippingConfig[];
|
|
72
83
|
permissions: Permission[];
|
|
73
84
|
geofilter_constraints?: GeofilterConstraint[];
|
|
74
85
|
facility_service_areas?: FacilityServiceArea[];
|
|
@@ -46,10 +46,4 @@ 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
|
-
};
|
|
55
49
|
};
|
package/src/warehouse/index.ts
CHANGED
|
@@ -25,3 +25,7 @@ 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";
|
|
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 {
|
|
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 {
|
|
@@ -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,9 @@ export type Picksheet = {
|
|
|
55
56
|
request?: PicksheetRequest;
|
|
56
57
|
picksheet_items?: PicksheetItem[];
|
|
57
58
|
type: PicksheetType;
|
|
59
|
+
organization?: Organization;
|
|
60
|
+
organization_id: string;
|
|
61
|
+
facility?: FacilityCode;
|
|
58
62
|
};
|
|
59
63
|
|
|
60
64
|
export type PicksheetItem = {
|
|
@@ -83,16 +87,3 @@ export type PicksheetRequest = {
|
|
|
83
87
|
type: PicksheetRequestType;
|
|
84
88
|
picksheets?: Picksheet[];
|
|
85
89
|
};
|
|
86
|
-
|
|
87
|
-
export type PicksheetLookupData = {
|
|
88
|
-
facility?: string;
|
|
89
|
-
picksheet_id?: string;
|
|
90
|
-
shipment_number?: string;
|
|
91
|
-
number_of_items?: number;
|
|
92
|
-
order_id?: string;
|
|
93
|
-
organization?: string;
|
|
94
|
-
created_at?: string;
|
|
95
|
-
shipment_id?: string;
|
|
96
|
-
external_order_number?: string;
|
|
97
|
-
external_order_id?: string;
|
|
98
|
-
};
|
|
@@ -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;
|