truflow 0.0.137 → 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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "truflow",
3
- "version": "0.0.137",
3
+ "version": "0.0.138",
4
4
  "main": "./dist/index.js",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -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
+ }