truflow 0.0.136 → 0.0.138
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.
|
@@ -10,3 +10,102 @@ export interface ICreateAPIInstance {
|
|
|
10
10
|
clientSecret: string;
|
|
11
11
|
contactKey: string;
|
|
12
12
|
}
|
|
13
|
+
export interface IStatusChangeTrigger {
|
|
14
|
+
b2b_shipping: string | null;
|
|
15
|
+
b2b_subtotal: string | null;
|
|
16
|
+
charge_date: string | null;
|
|
17
|
+
company_addresses: {
|
|
18
|
+
billing_name: string;
|
|
19
|
+
billing_address1: string;
|
|
20
|
+
billing_address2: string | null;
|
|
21
|
+
billing_address3: string | null;
|
|
22
|
+
billing_city: string;
|
|
23
|
+
billing_state: string;
|
|
24
|
+
billing_zip: string;
|
|
25
|
+
billing_country: string;
|
|
26
|
+
};
|
|
27
|
+
company_contact_email: string | null;
|
|
28
|
+
company_contact_name: string;
|
|
29
|
+
company_email: string;
|
|
30
|
+
company_id: string;
|
|
31
|
+
company_name: string;
|
|
32
|
+
company_tags: {
|
|
33
|
+
[key: string]: string;
|
|
34
|
+
};
|
|
35
|
+
contact_addresses: any[];
|
|
36
|
+
contact_email: string;
|
|
37
|
+
contact_name: string;
|
|
38
|
+
contact_phone_number_fax: string;
|
|
39
|
+
contact_phone_number_home: string;
|
|
40
|
+
contact_phone_number_mobile: string;
|
|
41
|
+
contact_phone_number_office: string;
|
|
42
|
+
contact_phone_number_other: string;
|
|
43
|
+
contact_tags: any[];
|
|
44
|
+
delivery_date: string;
|
|
45
|
+
due_date: string;
|
|
46
|
+
entered_date: string;
|
|
47
|
+
exported: string;
|
|
48
|
+
gst: string;
|
|
49
|
+
input_by_name: string;
|
|
50
|
+
instance_company_name: string;
|
|
51
|
+
instance_url: string;
|
|
52
|
+
invoice_date: string;
|
|
53
|
+
is_remake: string;
|
|
54
|
+
items: {
|
|
55
|
+
products: {
|
|
56
|
+
product_id: string;
|
|
57
|
+
group_id: string;
|
|
58
|
+
folder_id: string;
|
|
59
|
+
folder_name: string;
|
|
60
|
+
status: string;
|
|
61
|
+
product_name: string;
|
|
62
|
+
product_export_class: string | null;
|
|
63
|
+
product_group_data: {
|
|
64
|
+
id: string;
|
|
65
|
+
current_status: string;
|
|
66
|
+
folder_id: string;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
items: {
|
|
70
|
+
line_id: string;
|
|
71
|
+
price: string;
|
|
72
|
+
completed: string;
|
|
73
|
+
qty: string;
|
|
74
|
+
data: {
|
|
75
|
+
current_status: string;
|
|
76
|
+
width: number;
|
|
77
|
+
height: number;
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
}[];
|
|
81
|
+
}[];
|
|
82
|
+
total_products: number;
|
|
83
|
+
};
|
|
84
|
+
job_status: string;
|
|
85
|
+
order_name: string;
|
|
86
|
+
order_num: string;
|
|
87
|
+
order_total: string;
|
|
88
|
+
paid: string;
|
|
89
|
+
pst: string;
|
|
90
|
+
requested_ship_date: string;
|
|
91
|
+
ship_date: string | null;
|
|
92
|
+
shipping: string;
|
|
93
|
+
shipping_address1: string;
|
|
94
|
+
shipping_address2: string;
|
|
95
|
+
shipping_address3: string;
|
|
96
|
+
shipping_attn: string;
|
|
97
|
+
shipping_city: string;
|
|
98
|
+
shipping_country: string;
|
|
99
|
+
shipping_instructions: string;
|
|
100
|
+
shipping_method: string;
|
|
101
|
+
shipping_method_id: string;
|
|
102
|
+
shipping_method_name: string;
|
|
103
|
+
shipping_name: string;
|
|
104
|
+
shipping_state: string;
|
|
105
|
+
shipping_zip: string;
|
|
106
|
+
subtotal: string;
|
|
107
|
+
tags: string[];
|
|
108
|
+
tax: string;
|
|
109
|
+
tax_code: string | null;
|
|
110
|
+
total: string;
|
|
111
|
+
}
|
|
@@ -14,15 +14,44 @@ export interface IOrderProductItemsResponse {
|
|
|
14
14
|
opi_id: number;
|
|
15
15
|
op_id: number;
|
|
16
16
|
line_id: number | null;
|
|
17
|
-
data:
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
data: {
|
|
18
|
+
current_status: string;
|
|
19
|
+
is_dirty: string;
|
|
20
|
+
discount_is_dirty: string;
|
|
21
|
+
current_discount: string;
|
|
22
|
+
onload_discount: string;
|
|
23
|
+
width: number;
|
|
24
|
+
height: number;
|
|
25
|
+
cabinet_number: string;
|
|
26
|
+
hinge_drilling: string;
|
|
27
|
+
op3: string;
|
|
28
|
+
custom_info: string;
|
|
29
|
+
price_onload: string;
|
|
30
|
+
};
|
|
31
|
+
part_data: {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
};
|
|
34
|
+
adjustments: {
|
|
35
|
+
visible_adjustments: number;
|
|
36
|
+
base_price: number;
|
|
37
|
+
detail: {
|
|
38
|
+
discount_id: number;
|
|
39
|
+
name: string;
|
|
40
|
+
accumulate: number;
|
|
41
|
+
show_on_orders: boolean;
|
|
42
|
+
discount: number;
|
|
43
|
+
discount_amount: number;
|
|
44
|
+
price: number;
|
|
45
|
+
flat_rate: number | null;
|
|
46
|
+
is_negative: boolean;
|
|
47
|
+
}[];
|
|
48
|
+
};
|
|
20
49
|
qty: number | null;
|
|
21
|
-
original_price: number | null;
|
|
22
|
-
price: number | null;
|
|
23
|
-
price_override: number | null;
|
|
24
|
-
discount: number;
|
|
25
|
-
weight: number;
|
|
50
|
+
original_price: number | string | null;
|
|
51
|
+
price: number | string | null;
|
|
52
|
+
price_override: number | string | null;
|
|
53
|
+
discount: number | string;
|
|
54
|
+
weight: number | string;
|
|
26
55
|
completed: number;
|
|
27
56
|
createdby: string | null;
|
|
28
57
|
createdbyid: number | null;
|
|
@@ -30,4 +59,33 @@ export interface IOrderProductItemsResponse {
|
|
|
30
59
|
updatedby: string | null;
|
|
31
60
|
updatedbyid: number | null;
|
|
32
61
|
updateddate: string | null;
|
|
62
|
+
timestamp?: string;
|
|
63
|
+
order_products_order_id?: number;
|
|
64
|
+
order_products_product_id?: number;
|
|
65
|
+
order_products_group_data?: {
|
|
66
|
+
id: string;
|
|
67
|
+
is_designer: string;
|
|
68
|
+
is_dirty: string;
|
|
69
|
+
discount_is_dirty: string;
|
|
70
|
+
current_status: string;
|
|
71
|
+
current_discount: string;
|
|
72
|
+
onload_discount: string;
|
|
73
|
+
folder_id: string;
|
|
74
|
+
door_style: string;
|
|
75
|
+
inside_profiles: string;
|
|
76
|
+
applied_molding_option: string;
|
|
77
|
+
frame_type: string;
|
|
78
|
+
top_rail_width: number;
|
|
79
|
+
double_width: number;
|
|
80
|
+
bottom_rail_width: number;
|
|
81
|
+
left_stile_width: number;
|
|
82
|
+
side_by_side_width: number;
|
|
83
|
+
right_stile_width: number;
|
|
84
|
+
grain_direction: string;
|
|
85
|
+
cabinet_door_hinge_drilling: string;
|
|
86
|
+
finish_color: string;
|
|
87
|
+
comments: string;
|
|
88
|
+
};
|
|
89
|
+
order_products_status?: string;
|
|
90
|
+
order_products_product_name?: string;
|
|
33
91
|
}
|
package/package.json
CHANGED
|
@@ -11,3 +11,101 @@ export interface ICreateAPIInstance {
|
|
|
11
11
|
clientSecret: string;
|
|
12
12
|
contactKey: string;
|
|
13
13
|
}
|
|
14
|
+
|
|
15
|
+
export interface IStatusChangeTrigger {
|
|
16
|
+
b2b_shipping: string | null;
|
|
17
|
+
b2b_subtotal: string | null;
|
|
18
|
+
charge_date: string | null;
|
|
19
|
+
company_addresses: {
|
|
20
|
+
billing_name: string;
|
|
21
|
+
billing_address1: string;
|
|
22
|
+
billing_address2: string | null;
|
|
23
|
+
billing_address3: string | null;
|
|
24
|
+
billing_city: string;
|
|
25
|
+
billing_state: string;
|
|
26
|
+
billing_zip: string;
|
|
27
|
+
billing_country: string;
|
|
28
|
+
};
|
|
29
|
+
company_contact_email: string | null;
|
|
30
|
+
company_contact_name: string;
|
|
31
|
+
company_email: string;
|
|
32
|
+
company_id: string;
|
|
33
|
+
company_name: string;
|
|
34
|
+
company_tags: { [key: string]: string };
|
|
35
|
+
contact_addresses: any[];
|
|
36
|
+
contact_email: string;
|
|
37
|
+
contact_name: string;
|
|
38
|
+
contact_phone_number_fax: string;
|
|
39
|
+
contact_phone_number_home: string;
|
|
40
|
+
contact_phone_number_mobile: string;
|
|
41
|
+
contact_phone_number_office: string;
|
|
42
|
+
contact_phone_number_other: string;
|
|
43
|
+
contact_tags: any[];
|
|
44
|
+
delivery_date: string;
|
|
45
|
+
due_date: string;
|
|
46
|
+
entered_date: string;
|
|
47
|
+
exported: string;
|
|
48
|
+
gst: string;
|
|
49
|
+
input_by_name: string;
|
|
50
|
+
instance_company_name: string;
|
|
51
|
+
instance_url: string;
|
|
52
|
+
invoice_date: string;
|
|
53
|
+
is_remake: string;
|
|
54
|
+
items: {
|
|
55
|
+
products: {
|
|
56
|
+
product_id: string;
|
|
57
|
+
group_id: string;
|
|
58
|
+
folder_id: string;
|
|
59
|
+
folder_name: string;
|
|
60
|
+
status: string;
|
|
61
|
+
product_name: string;
|
|
62
|
+
product_export_class: string | null;
|
|
63
|
+
product_group_data: {
|
|
64
|
+
id: string;
|
|
65
|
+
current_status: string;
|
|
66
|
+
folder_id: string;
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
};
|
|
69
|
+
items: {
|
|
70
|
+
line_id: string;
|
|
71
|
+
price: string;
|
|
72
|
+
completed: string;
|
|
73
|
+
qty: string;
|
|
74
|
+
data: {
|
|
75
|
+
current_status: string;
|
|
76
|
+
width: number;
|
|
77
|
+
height: number;
|
|
78
|
+
[key: string]: any;
|
|
79
|
+
};
|
|
80
|
+
}[];
|
|
81
|
+
}[];
|
|
82
|
+
total_products: number;
|
|
83
|
+
};
|
|
84
|
+
job_status: string;
|
|
85
|
+
order_name: string;
|
|
86
|
+
order_num: string;
|
|
87
|
+
order_total: string;
|
|
88
|
+
paid: string;
|
|
89
|
+
pst: string;
|
|
90
|
+
requested_ship_date: string;
|
|
91
|
+
ship_date: string | null;
|
|
92
|
+
shipping: string;
|
|
93
|
+
shipping_address1: string;
|
|
94
|
+
shipping_address2: string;
|
|
95
|
+
shipping_address3: string;
|
|
96
|
+
shipping_attn: string;
|
|
97
|
+
shipping_city: string;
|
|
98
|
+
shipping_country: string;
|
|
99
|
+
shipping_instructions: string;
|
|
100
|
+
shipping_method: string;
|
|
101
|
+
shipping_method_id: string;
|
|
102
|
+
shipping_method_name: string;
|
|
103
|
+
shipping_name: string;
|
|
104
|
+
shipping_state: string;
|
|
105
|
+
shipping_zip: string;
|
|
106
|
+
subtotal: string;
|
|
107
|
+
tags: string[];
|
|
108
|
+
tax: string;
|
|
109
|
+
tax_code: string | null;
|
|
110
|
+
total: string;
|
|
111
|
+
}
|
|
@@ -15,15 +15,44 @@ export interface IOrderProductItemsResponse {
|
|
|
15
15
|
opi_id: number;
|
|
16
16
|
op_id: number;
|
|
17
17
|
line_id: number | null;
|
|
18
|
-
data:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
data: {
|
|
19
|
+
current_status: string;
|
|
20
|
+
is_dirty: string;
|
|
21
|
+
discount_is_dirty: string;
|
|
22
|
+
current_discount: string;
|
|
23
|
+
onload_discount: string;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
cabinet_number: string;
|
|
27
|
+
hinge_drilling: string;
|
|
28
|
+
op3: string;
|
|
29
|
+
custom_info: string;
|
|
30
|
+
price_onload: string;
|
|
31
|
+
};
|
|
32
|
+
part_data: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
adjustments: {
|
|
36
|
+
visible_adjustments: number;
|
|
37
|
+
base_price: number;
|
|
38
|
+
detail: {
|
|
39
|
+
discount_id: number;
|
|
40
|
+
name: string;
|
|
41
|
+
accumulate: number;
|
|
42
|
+
show_on_orders: boolean;
|
|
43
|
+
discount: number;
|
|
44
|
+
discount_amount: number;
|
|
45
|
+
price: number;
|
|
46
|
+
flat_rate: number | null;
|
|
47
|
+
is_negative: boolean;
|
|
48
|
+
}[];
|
|
49
|
+
};
|
|
21
50
|
qty: number | null;
|
|
22
|
-
original_price: number | null;
|
|
23
|
-
price: number | null;
|
|
24
|
-
price_override: number | null;
|
|
25
|
-
discount: number;
|
|
26
|
-
weight: number;
|
|
51
|
+
original_price: number | string | null;
|
|
52
|
+
price: number | string | null;
|
|
53
|
+
price_override: number | string | null;
|
|
54
|
+
discount: number | string;
|
|
55
|
+
weight: number | string;
|
|
27
56
|
completed: number;
|
|
28
57
|
createdby: string | null;
|
|
29
58
|
createdbyid: number | null;
|
|
@@ -31,4 +60,33 @@ export interface IOrderProductItemsResponse {
|
|
|
31
60
|
updatedby: string | null;
|
|
32
61
|
updatedbyid: number | null;
|
|
33
62
|
updateddate: string | null;
|
|
63
|
+
timestamp?: string;
|
|
64
|
+
order_products_order_id?: number;
|
|
65
|
+
order_products_product_id?: number;
|
|
66
|
+
order_products_group_data?: {
|
|
67
|
+
id: string;
|
|
68
|
+
is_designer: string;
|
|
69
|
+
is_dirty: string;
|
|
70
|
+
discount_is_dirty: string;
|
|
71
|
+
current_status: string;
|
|
72
|
+
current_discount: string;
|
|
73
|
+
onload_discount: string;
|
|
74
|
+
folder_id: string;
|
|
75
|
+
door_style: string;
|
|
76
|
+
inside_profiles: string;
|
|
77
|
+
applied_molding_option: string;
|
|
78
|
+
frame_type: string;
|
|
79
|
+
top_rail_width: number;
|
|
80
|
+
double_width: number;
|
|
81
|
+
bottom_rail_width: number;
|
|
82
|
+
left_stile_width: number;
|
|
83
|
+
side_by_side_width: number;
|
|
84
|
+
right_stile_width: number;
|
|
85
|
+
grain_direction: string;
|
|
86
|
+
cabinet_door_hinge_drilling: string;
|
|
87
|
+
finish_color: string;
|
|
88
|
+
comments: string;
|
|
89
|
+
};
|
|
90
|
+
order_products_status?: string;
|
|
91
|
+
order_products_product_name?: string;
|
|
34
92
|
}
|