@secondcloset/types 2.6.5 → 2.6.6
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
|
@@ -62,4 +62,33 @@ export interface Organization extends BaseOrganization {
|
|
|
62
62
|
configurations_attributes: OrganizationConfig[];
|
|
63
63
|
permissions: Permission[];
|
|
64
64
|
geofilter_constraints?: GeofilterConstraint[];
|
|
65
|
+
facility_service_areas?: FacilityServiceArea[];
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
interface Facility {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
enabled: boolean;
|
|
72
|
+
service_area: string;
|
|
73
|
+
address: {
|
|
74
|
+
street: string;
|
|
75
|
+
city: string;
|
|
76
|
+
province: string;
|
|
77
|
+
country: string;
|
|
78
|
+
postal_code: string;
|
|
79
|
+
};
|
|
80
|
+
created_at: string;
|
|
81
|
+
updated_at: string;
|
|
82
|
+
}
|
|
83
|
+
export interface Region {
|
|
84
|
+
id?: string;
|
|
85
|
+
region_code: string;
|
|
86
|
+
region_name: string;
|
|
87
|
+
country_code: string;
|
|
88
|
+
country_name: string;
|
|
89
|
+
}
|
|
90
|
+
export interface FacilityServiceArea {
|
|
91
|
+
facility: Facility;
|
|
92
|
+
default_regions: Region[];
|
|
93
|
+
organization_regions: Region[];
|
|
65
94
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type HistoryEvent = "asn" | "order" | "manual" | "system";
|
|
2
|
+
export interface ActivityHistory {
|
|
3
|
+
id: string;
|
|
4
|
+
user: {
|
|
5
|
+
id: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
is_admin: boolean;
|
|
8
|
+
};
|
|
9
|
+
description: string[];
|
|
10
|
+
organization_name: string;
|
|
11
|
+
created_at: string;
|
|
12
|
+
event: HistoryEvent;
|
|
13
|
+
metadata?: {
|
|
14
|
+
facility?: { id: string; name: string };
|
|
15
|
+
asn?: { id: string; number: string };
|
|
16
|
+
order?: { id: string; number: string };
|
|
17
|
+
};
|
|
18
|
+
}
|
package/src/warehouse/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Product } from "./product";
|
|
2
2
|
import { Supply } from "./supply";
|
|
3
3
|
import { ShipmentProductsTracking } from "./shipmentProductsTracking";
|
|
4
|
+
import { FacilityCode } from "../_common";
|
|
4
5
|
|
|
5
6
|
export interface Organization {
|
|
6
7
|
id: string;
|
|
@@ -29,3 +30,10 @@ export interface OrganizationConfig {
|
|
|
29
30
|
created_at: string;
|
|
30
31
|
updated_at: string;
|
|
31
32
|
}
|
|
33
|
+
|
|
34
|
+
export interface FacilityOrganization {
|
|
35
|
+
id: string;
|
|
36
|
+
organization_id: string;
|
|
37
|
+
facility: FacilityCode;
|
|
38
|
+
organization?: Organization;
|
|
39
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FacilityCode } from "../_common";
|
|
2
|
+
import { Organization } from "./organization";
|
|
3
|
+
|
|
4
|
+
export type PicksheetOrganization = {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export type PicksheetFailedReasons = {
|
|
10
|
+
order_number?: string;
|
|
11
|
+
external_order_number?: string;
|
|
12
|
+
failed_reason: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export type PicksheetStats = {
|
|
16
|
+
organization?: PicksheetOrganization;
|
|
17
|
+
ready_to_fulfill_count: number;
|
|
18
|
+
processing_items_count: number;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export enum PicksheetStatus {
|
|
22
|
+
IN_PROGRESS = "IN_PROGRESS",
|
|
23
|
+
COMPLETED = "COMPLETED",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum InflationStatus {
|
|
27
|
+
INFLATING = "INFLATING",
|
|
28
|
+
INFLATED = "INFLATED",
|
|
29
|
+
FAILED = "FAILED",
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type Picksheet = {
|
|
33
|
+
id: string;
|
|
34
|
+
request_id: string;
|
|
35
|
+
external_order_id: string;
|
|
36
|
+
external_order_number?: string;
|
|
37
|
+
inflation_status?: InflationStatus;
|
|
38
|
+
order_id?: string;
|
|
39
|
+
shipment_id?: string;
|
|
40
|
+
shipment_number?: string;
|
|
41
|
+
failed_reason?: string;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
export type PicksheetRequest = {
|
|
45
|
+
id: string;
|
|
46
|
+
organization_id: string;
|
|
47
|
+
organization?: Organization;
|
|
48
|
+
facility: FacilityCode;
|
|
49
|
+
status: PicksheetStatus;
|
|
50
|
+
number_of_orders: number;
|
|
51
|
+
requested_by: string;
|
|
52
|
+
created_at: string;
|
|
53
|
+
updated_at: string;
|
|
54
|
+
__picksheets__?: Picksheet[];
|
|
55
|
+
};
|