truflow 0.0.182 → 0.0.184
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/dist/API/Allmoxy/IOrder.d.ts +28 -0
- package/dist/API/Allmoxy/IShippingMethod.d.ts +31 -0
- package/dist/API/Allmoxy/IShippingMethod.js +2 -0
- package/dist/API/Allmoxy/index.d.ts +1 -0
- package/dist/API/Allmoxy/index.js +1 -0
- package/dist/IInventory.d.ts +8 -0
- package/dist/IOrder.d.ts +13 -1
- package/package.json +1 -1
- package/src/API/Allmoxy/IOrder.ts +29 -0
- package/src/API/Allmoxy/IShippingMethod.ts +32 -0
- package/src/API/Allmoxy/index.ts +1 -0
- package/src/IInventory.ts +10 -0
- package/src/IOrder.ts +13 -0
|
@@ -13,6 +13,34 @@ interface ISavedPresets {
|
|
|
13
13
|
right_stile_width: number;
|
|
14
14
|
finish_color: string;
|
|
15
15
|
}
|
|
16
|
+
export interface IOrderQuery {
|
|
17
|
+
actual_delivery_date_end?: string;
|
|
18
|
+
actual_delivery_date_start?: string;
|
|
19
|
+
company_id?: number;
|
|
20
|
+
contact_id?: number;
|
|
21
|
+
createddate_end?: string;
|
|
22
|
+
createddate_start?: string;
|
|
23
|
+
desired_delivery_date_end?: string;
|
|
24
|
+
desired_delivery_date_start?: string;
|
|
25
|
+
entered_by_id?: number;
|
|
26
|
+
finish_date_end?: string;
|
|
27
|
+
finish_date_start?: string;
|
|
28
|
+
is_remake?: number;
|
|
29
|
+
name?: string;
|
|
30
|
+
order_type?: string;
|
|
31
|
+
ordering?: string;
|
|
32
|
+
page?: number;
|
|
33
|
+
per_page?: number;
|
|
34
|
+
related_objects?: string;
|
|
35
|
+
shipping_method?: number;
|
|
36
|
+
start_date_end?: string;
|
|
37
|
+
start_date_start?: string;
|
|
38
|
+
status?: string;
|
|
39
|
+
status__in?: string;
|
|
40
|
+
tag?: string;
|
|
41
|
+
updateddate_end?: string;
|
|
42
|
+
updateddate_start?: string;
|
|
43
|
+
}
|
|
16
44
|
export interface IOrderResponse {
|
|
17
45
|
order_id: number;
|
|
18
46
|
name: string;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface IShippingMethodQuery {
|
|
2
|
+
class?: string;
|
|
3
|
+
createddate_end?: string;
|
|
4
|
+
createddate_start?: string;
|
|
5
|
+
display_order?: number;
|
|
6
|
+
extra_data?: string;
|
|
7
|
+
formula?: string;
|
|
8
|
+
from_address_id?: number;
|
|
9
|
+
from_zip?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
ordering?: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
per_page?: number;
|
|
14
|
+
removable?: boolean;
|
|
15
|
+
status?: number;
|
|
16
|
+
taglist_type?: "whitelist" | "blacklist";
|
|
17
|
+
updateddate_end?: string;
|
|
18
|
+
updateddate_start?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface IShippingMethodResponse {
|
|
21
|
+
shipping_method_id: number;
|
|
22
|
+
name: string | null;
|
|
23
|
+
display_order: string;
|
|
24
|
+
from_address_id: number;
|
|
25
|
+
removable: number;
|
|
26
|
+
formula: string;
|
|
27
|
+
_class: string;
|
|
28
|
+
taglist_type: "whitelist" | "blacklist";
|
|
29
|
+
extra_data: string;
|
|
30
|
+
status: string;
|
|
31
|
+
}
|
|
@@ -29,3 +29,4 @@ __exportStar(require("./IProductAttributeOptions"), exports);
|
|
|
29
29
|
__exportStar(require("./IProductProductAttribute"), exports);
|
|
30
30
|
__exportStar(require("./ITrigger"), exports);
|
|
31
31
|
__exportStar(require("./IOrderBatch"), exports);
|
|
32
|
+
__exportStar(require("./IShippingMethod"), exports);
|
package/dist/IInventory.d.ts
CHANGED
|
@@ -69,4 +69,12 @@ export interface ILeanInventoryLocation {
|
|
|
69
69
|
_id: mongoose.Types.ObjectId;
|
|
70
70
|
name: string;
|
|
71
71
|
allmoxyId?: string;
|
|
72
|
+
shelves: IShelf[];
|
|
73
|
+
}
|
|
74
|
+
export interface IRack {
|
|
75
|
+
name: string;
|
|
76
|
+
}
|
|
77
|
+
export interface IShelf {
|
|
78
|
+
name: string;
|
|
79
|
+
racks: IRack[];
|
|
72
80
|
}
|
package/dist/IOrder.d.ts
CHANGED
|
@@ -22,7 +22,17 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Document } from "mongoose";
|
|
25
|
+
import { Document, Types } from "mongoose";
|
|
26
|
+
export interface INote {
|
|
27
|
+
text: string;
|
|
28
|
+
createdBy: {
|
|
29
|
+
userId: Types.ObjectId;
|
|
30
|
+
firstName: string;
|
|
31
|
+
lastName: string;
|
|
32
|
+
};
|
|
33
|
+
createdAt?: Date;
|
|
34
|
+
updatedAt?: Date;
|
|
35
|
+
}
|
|
26
36
|
export interface IProductAttribute {
|
|
27
37
|
attributeName: string;
|
|
28
38
|
value: string | number;
|
|
@@ -68,6 +78,8 @@ export interface ILeanOrder {
|
|
|
68
78
|
orderTags: string[];
|
|
69
79
|
companyTags: string[];
|
|
70
80
|
status: string;
|
|
81
|
+
notes?: INote[];
|
|
82
|
+
shippingComplete?: boolean;
|
|
71
83
|
}
|
|
72
84
|
export interface IMeasurement {
|
|
73
85
|
width: number;
|
package/package.json
CHANGED
|
@@ -15,6 +15,35 @@ interface ISavedPresets {
|
|
|
15
15
|
finish_color: string;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
export interface IOrderQuery {
|
|
19
|
+
actual_delivery_date_end?: string;
|
|
20
|
+
actual_delivery_date_start?: string;
|
|
21
|
+
company_id?: number;
|
|
22
|
+
contact_id?: number;
|
|
23
|
+
createddate_end?: string;
|
|
24
|
+
createddate_start?: string;
|
|
25
|
+
desired_delivery_date_end?: string;
|
|
26
|
+
desired_delivery_date_start?: string;
|
|
27
|
+
entered_by_id?: number;
|
|
28
|
+
finish_date_end?: string;
|
|
29
|
+
finish_date_start?: string;
|
|
30
|
+
is_remake?: number;
|
|
31
|
+
name?: string;
|
|
32
|
+
order_type?: string;
|
|
33
|
+
ordering?: string;
|
|
34
|
+
page?: number;
|
|
35
|
+
per_page?: number;
|
|
36
|
+
related_objects?: string;
|
|
37
|
+
shipping_method?: number;
|
|
38
|
+
start_date_end?: string;
|
|
39
|
+
start_date_start?: string;
|
|
40
|
+
status?: string;
|
|
41
|
+
status__in?: string;
|
|
42
|
+
tag?: string;
|
|
43
|
+
updateddate_end?: string;
|
|
44
|
+
updateddate_start?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
18
47
|
export interface IOrderResponse {
|
|
19
48
|
order_id: number;
|
|
20
49
|
name: string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface IShippingMethodQuery {
|
|
2
|
+
class?: string;
|
|
3
|
+
createddate_end?: string;
|
|
4
|
+
createddate_start?: string;
|
|
5
|
+
display_order?: number;
|
|
6
|
+
extra_data?: string;
|
|
7
|
+
formula?: string;
|
|
8
|
+
from_address_id?: number;
|
|
9
|
+
from_zip?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
ordering?: string;
|
|
12
|
+
page?: number;
|
|
13
|
+
per_page?: number;
|
|
14
|
+
removable?: boolean;
|
|
15
|
+
status?: number;
|
|
16
|
+
taglist_type?: "whitelist" | "blacklist";
|
|
17
|
+
updateddate_end?: string;
|
|
18
|
+
updateddate_start?: string;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface IShippingMethodResponse {
|
|
22
|
+
shipping_method_id: number;
|
|
23
|
+
name: string | null;
|
|
24
|
+
display_order: string;
|
|
25
|
+
from_address_id: number;
|
|
26
|
+
removable: number;
|
|
27
|
+
formula: string;
|
|
28
|
+
_class: string;
|
|
29
|
+
taglist_type: "whitelist" | "blacklist";
|
|
30
|
+
extra_data: string;
|
|
31
|
+
status: string;
|
|
32
|
+
}
|
package/src/API/Allmoxy/index.ts
CHANGED
package/src/IInventory.ts
CHANGED
|
@@ -52,4 +52,14 @@ export interface ILeanInventoryLocation {
|
|
|
52
52
|
_id: mongoose.Types.ObjectId;
|
|
53
53
|
name: string;
|
|
54
54
|
allmoxyId?: string;
|
|
55
|
+
shelves: IShelf[];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export interface IRack {
|
|
59
|
+
name: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export interface IShelf {
|
|
63
|
+
name: string;
|
|
64
|
+
racks: IRack[];
|
|
55
65
|
}
|
package/src/IOrder.ts
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { Document, Types } from "mongoose";
|
|
2
2
|
|
|
3
|
+
export interface INote {
|
|
4
|
+
text: string;
|
|
5
|
+
createdBy: {
|
|
6
|
+
userId: Types.ObjectId;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
};
|
|
10
|
+
createdAt?: Date;
|
|
11
|
+
updatedAt?: Date;
|
|
12
|
+
}
|
|
13
|
+
|
|
3
14
|
export interface IProductAttribute {
|
|
4
15
|
attributeName: string;
|
|
5
16
|
value: string | number;
|
|
@@ -50,6 +61,8 @@ export interface ILeanOrder {
|
|
|
50
61
|
orderTags: string[];
|
|
51
62
|
companyTags: string[];
|
|
52
63
|
status: string;
|
|
64
|
+
notes?: INote[];
|
|
65
|
+
shippingComplete?: boolean;
|
|
53
66
|
}
|
|
54
67
|
|
|
55
68
|
export interface IMeasurement {
|