truflow 0.0.120 → 0.0.122
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/IGeneric.d.ts +2 -2
- package/dist/API/Allmoxy/IProductProductAttribute.d.ts +22 -0
- package/dist/API/Allmoxy/IProductProductAttribute.js +2 -0
- package/dist/API/Allmoxy/index.d.ts +1 -0
- package/dist/API/Allmoxy/index.js +1 -0
- package/package.json +15 -15
- package/src/API/Allmoxy/IAnnouncement.ts +41 -41
- package/src/API/Allmoxy/ICompany.ts +199 -199
- package/src/API/Allmoxy/IGeneric.ts +13 -13
- package/src/API/Allmoxy/IInventoryItem.ts +56 -56
- package/src/API/Allmoxy/IInventoryOrder.ts +43 -43
- package/src/API/Allmoxy/ILocation.ts +19 -19
- package/src/API/Allmoxy/IOrder.ts +89 -89
- package/src/API/Allmoxy/IOrderProducts.ts +46 -46
- package/src/API/Allmoxy/IProduct.ts +72 -72
- package/src/API/Allmoxy/IProductAttribute.ts +21 -21
- package/src/API/Allmoxy/IProductAttributeOptions.ts +30 -30
- package/src/API/Allmoxy/IProductProductAttribute.ts +23 -0
- package/src/API/Allmoxy/index.ts +12 -11
- package/src/Classes/ICRUDRouter.ts +6 -6
- package/src/Classes/ILogger.ts +17 -17
- package/src/Events/IDateEntryMoved.ts +13 -13
- package/src/Events/INegativeValue.ts +10 -10
- package/src/Events/IOrderDetails.ts +12 -12
- package/src/Events/IOrderMoved.ts +14 -14
- package/src/Events/IOrderProcessed.ts +6 -6
- package/src/Helpers/IAdministration.ts +9 -9
- package/src/Helpers/IAllmoxy.ts +4 -4
- package/src/Helpers/IEvents.ts +23 -23
- package/src/Helpers/IExporters.ts +45 -45
- package/src/Helpers/IOrders/IMoveDateEntry.ts +21 -21
- package/src/Helpers/IOrders/IMoveOrder.ts +28 -28
- package/src/Helpers/IOrders/IUpdateFullDailyTotal.ts +13 -13
- package/src/Helpers/IOrders/IUpdateIndividualDailyTotal.ts +8 -8
- package/src/Helpers/IOrders/index.ts +10 -10
- package/src/Helpers/ITotals.ts +16 -16
- package/src/Helpers/IZapier/index.ts +54 -54
- package/src/IConfig.ts +11 -11
- package/src/IDailyTotal.ts +9 -9
- package/src/IEvent.ts +21 -21
- package/src/IExporter.ts +20 -20
- package/src/IExpress.ts +14 -14
- package/src/IIntegration.ts +17 -17
- package/src/IJWT.ts +4 -4
- package/src/IMailCache.ts +19 -19
- package/src/INotification.ts +11 -11
- package/src/IOrder.ts +27 -27
- package/src/IScript.ts +10 -10
- package/src/ISetting.ts +83 -83
- package/src/IUser.ts +13 -13
- package/src/IWebsocket.ts +7 -7
- package/src/Routes/IOrderRoutes.ts +37 -37
- package/src/Routes/IZapierRoutes.ts +12 -12
- package/src/Templates/IDailyTotals.ts +4 -4
- package/src/index.ts +27 -27
- package/tsconfig.json +11 -11
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
export interface IInventoryItem {
|
|
2
|
-
item_id: number;
|
|
3
|
-
line_id: number;
|
|
4
|
-
name: string | null;
|
|
5
|
-
piece_size: string | null;
|
|
6
|
-
picture_filename: string | null;
|
|
7
|
-
associate_to_orders: boolean;
|
|
8
|
-
available_for_sale: boolean;
|
|
9
|
-
allow_b2b: boolean;
|
|
10
|
-
showcust: boolean;
|
|
11
|
-
auto_checkout: boolean;
|
|
12
|
-
sale_name: string | null;
|
|
13
|
-
sale_desc: string;
|
|
14
|
-
sale_sku: string | null;
|
|
15
|
-
sale_price: number | null;
|
|
16
|
-
sale_weight: number | null;
|
|
17
|
-
sale_allocation: number | null;
|
|
18
|
-
sale_price_precision: number;
|
|
19
|
-
priority_sort: number | null;
|
|
20
|
-
export_class: string | null;
|
|
21
|
-
company_exclusive: string | null;
|
|
22
|
-
status: number;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface IInventoryItemResponse {
|
|
26
|
-
item_id: number;
|
|
27
|
-
line_id: number;
|
|
28
|
-
name: string;
|
|
29
|
-
piece_size: string;
|
|
30
|
-
picture_filename: string | null;
|
|
31
|
-
associate_to_orders: boolean;
|
|
32
|
-
available_for_sale: boolean;
|
|
33
|
-
allow_b2b: boolean;
|
|
34
|
-
showcust: boolean;
|
|
35
|
-
auto_checkout: boolean;
|
|
36
|
-
sale_name: string | null;
|
|
37
|
-
sale_desc: string;
|
|
38
|
-
sale_sku: string;
|
|
39
|
-
sale_price: number | null;
|
|
40
|
-
sale_weight: number | null;
|
|
41
|
-
sale_allocation: number | null;
|
|
42
|
-
sale_price_precision: number;
|
|
43
|
-
priority_sort: number | null;
|
|
44
|
-
export_class: string | null;
|
|
45
|
-
company_exclusive: string | null;
|
|
46
|
-
status: number;
|
|
47
|
-
timestamp: string;
|
|
48
|
-
createdby: string;
|
|
49
|
-
createdbyid: number;
|
|
50
|
-
createddate: string;
|
|
51
|
-
updatedby: string;
|
|
52
|
-
updatedbyid: number;
|
|
53
|
-
updateddate: string;
|
|
54
|
-
production_line_name: string;
|
|
55
|
-
production_line_status: number;
|
|
56
|
-
}
|
|
1
|
+
export interface IInventoryItem {
|
|
2
|
+
item_id: number;
|
|
3
|
+
line_id: number;
|
|
4
|
+
name: string | null;
|
|
5
|
+
piece_size: string | null;
|
|
6
|
+
picture_filename: string | null;
|
|
7
|
+
associate_to_orders: boolean;
|
|
8
|
+
available_for_sale: boolean;
|
|
9
|
+
allow_b2b: boolean;
|
|
10
|
+
showcust: boolean;
|
|
11
|
+
auto_checkout: boolean;
|
|
12
|
+
sale_name: string | null;
|
|
13
|
+
sale_desc: string;
|
|
14
|
+
sale_sku: string | null;
|
|
15
|
+
sale_price: number | null;
|
|
16
|
+
sale_weight: number | null;
|
|
17
|
+
sale_allocation: number | null;
|
|
18
|
+
sale_price_precision: number;
|
|
19
|
+
priority_sort: number | null;
|
|
20
|
+
export_class: string | null;
|
|
21
|
+
company_exclusive: string | null;
|
|
22
|
+
status: number;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface IInventoryItemResponse {
|
|
26
|
+
item_id: number;
|
|
27
|
+
line_id: number;
|
|
28
|
+
name: string;
|
|
29
|
+
piece_size: string;
|
|
30
|
+
picture_filename: string | null;
|
|
31
|
+
associate_to_orders: boolean;
|
|
32
|
+
available_for_sale: boolean;
|
|
33
|
+
allow_b2b: boolean;
|
|
34
|
+
showcust: boolean;
|
|
35
|
+
auto_checkout: boolean;
|
|
36
|
+
sale_name: string | null;
|
|
37
|
+
sale_desc: string;
|
|
38
|
+
sale_sku: string;
|
|
39
|
+
sale_price: number | null;
|
|
40
|
+
sale_weight: number | null;
|
|
41
|
+
sale_allocation: number | null;
|
|
42
|
+
sale_price_precision: number;
|
|
43
|
+
priority_sort: number | null;
|
|
44
|
+
export_class: string | null;
|
|
45
|
+
company_exclusive: string | null;
|
|
46
|
+
status: number;
|
|
47
|
+
timestamp: string;
|
|
48
|
+
createdby: string;
|
|
49
|
+
createdbyid: number;
|
|
50
|
+
createddate: string;
|
|
51
|
+
updatedby: string;
|
|
52
|
+
updatedbyid: number;
|
|
53
|
+
updateddate: string;
|
|
54
|
+
production_line_name: string;
|
|
55
|
+
production_line_status: number;
|
|
56
|
+
}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export interface IInventoryOrderResponse {
|
|
2
|
-
order_id: number;
|
|
3
|
-
item_id: number;
|
|
4
|
-
po_id: number;
|
|
5
|
-
location_id: number;
|
|
6
|
-
company_id: number;
|
|
7
|
-
part_num: string;
|
|
8
|
-
qty: number;
|
|
9
|
-
received_qty: number;
|
|
10
|
-
price: string;
|
|
11
|
-
date_ordered: string;
|
|
12
|
-
date_received: string;
|
|
13
|
-
void: number;
|
|
14
|
-
timestamp: string;
|
|
15
|
-
createdby: string;
|
|
16
|
-
createdbyid: number;
|
|
17
|
-
createddate: string;
|
|
18
|
-
updatedby: string;
|
|
19
|
-
updatedbyid: number;
|
|
20
|
-
updateddate: string;
|
|
21
|
-
company_name: string;
|
|
22
|
-
company_status: number;
|
|
23
|
-
inventory_item_name: string;
|
|
24
|
-
inventory_item_piece_size: string;
|
|
25
|
-
location_name: string;
|
|
26
|
-
location_status: number;
|
|
27
|
-
purchase_order_name: string | null;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface IInventoryOrder {
|
|
31
|
-
order_id: number;
|
|
32
|
-
item_id: number | null;
|
|
33
|
-
po_id: number | null;
|
|
34
|
-
location_id: number | null;
|
|
35
|
-
company_id: number;
|
|
36
|
-
part_num: string | null;
|
|
37
|
-
qty: number | null;
|
|
38
|
-
received_qty: number;
|
|
39
|
-
price: string | null;
|
|
40
|
-
date_ordered: string | null;
|
|
41
|
-
date_received: string | null;
|
|
42
|
-
void: number;
|
|
43
|
-
}
|
|
1
|
+
export interface IInventoryOrderResponse {
|
|
2
|
+
order_id: number;
|
|
3
|
+
item_id: number;
|
|
4
|
+
po_id: number;
|
|
5
|
+
location_id: number;
|
|
6
|
+
company_id: number;
|
|
7
|
+
part_num: string;
|
|
8
|
+
qty: number;
|
|
9
|
+
received_qty: number;
|
|
10
|
+
price: string;
|
|
11
|
+
date_ordered: string;
|
|
12
|
+
date_received: string;
|
|
13
|
+
void: number;
|
|
14
|
+
timestamp: string;
|
|
15
|
+
createdby: string;
|
|
16
|
+
createdbyid: number;
|
|
17
|
+
createddate: string;
|
|
18
|
+
updatedby: string;
|
|
19
|
+
updatedbyid: number;
|
|
20
|
+
updateddate: string;
|
|
21
|
+
company_name: string;
|
|
22
|
+
company_status: number;
|
|
23
|
+
inventory_item_name: string;
|
|
24
|
+
inventory_item_piece_size: string;
|
|
25
|
+
location_name: string;
|
|
26
|
+
location_status: number;
|
|
27
|
+
purchase_order_name: string | null;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface IInventoryOrder {
|
|
31
|
+
order_id: number;
|
|
32
|
+
item_id: number | null;
|
|
33
|
+
po_id: number | null;
|
|
34
|
+
location_id: number | null;
|
|
35
|
+
company_id: number;
|
|
36
|
+
part_num: string | null;
|
|
37
|
+
qty: number | null;
|
|
38
|
+
received_qty: number;
|
|
39
|
+
price: string | null;
|
|
40
|
+
date_ordered: string | null;
|
|
41
|
+
date_received: string | null;
|
|
42
|
+
void: number;
|
|
43
|
+
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
export interface ILocationResponse {
|
|
2
|
-
location_id: number;
|
|
3
|
-
name: string;
|
|
4
|
-
display_order: number;
|
|
5
|
-
status: number;
|
|
6
|
-
timestamp: string;
|
|
7
|
-
createdby: string;
|
|
8
|
-
createdbyid: number;
|
|
9
|
-
createddate: string;
|
|
10
|
-
updatedby: string;
|
|
11
|
-
updatedbyid: number;
|
|
12
|
-
updateddate: string;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export interface ILocation {
|
|
16
|
-
name: string | null;
|
|
17
|
-
display_order: number | null;
|
|
18
|
-
status: number;
|
|
19
|
-
}
|
|
1
|
+
export interface ILocationResponse {
|
|
2
|
+
location_id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
display_order: number;
|
|
5
|
+
status: number;
|
|
6
|
+
timestamp: string;
|
|
7
|
+
createdby: string;
|
|
8
|
+
createdbyid: number;
|
|
9
|
+
createddate: string;
|
|
10
|
+
updatedby: string;
|
|
11
|
+
updatedbyid: number;
|
|
12
|
+
updateddate: string;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface ILocation {
|
|
16
|
+
name: string | null;
|
|
17
|
+
display_order: number | null;
|
|
18
|
+
status: number;
|
|
19
|
+
}
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
interface IShippingData {
|
|
2
|
-
fq_carrier_name: string;
|
|
3
|
-
fq_quote_id: string;
|
|
4
|
-
fq_carrier_option_id: string;
|
|
5
|
-
fq_shipping_price: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
interface ISavedPresets {
|
|
9
|
-
top_rail_width: number;
|
|
10
|
-
double_width: number;
|
|
11
|
-
bottom_rail_width: number;
|
|
12
|
-
left_stile_width: number;
|
|
13
|
-
side_by_side_width: number;
|
|
14
|
-
right_stile_width: number;
|
|
15
|
-
finish_color: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export interface IOrderResponse {
|
|
19
|
-
order_id: number;
|
|
20
|
-
name: string;
|
|
21
|
-
description: string | null;
|
|
22
|
-
company_id: number;
|
|
23
|
-
contact_id: number;
|
|
24
|
-
entered_by_id: number;
|
|
25
|
-
order_type: string;
|
|
26
|
-
tax_rate: number | null;
|
|
27
|
-
tax_rate_override: number | null;
|
|
28
|
-
gst_rate: number;
|
|
29
|
-
gst_rate_override: number | null;
|
|
30
|
-
pst_rate: number;
|
|
31
|
-
pst_rate_override: number | null;
|
|
32
|
-
shipping: number;
|
|
33
|
-
shipping_override: number | null;
|
|
34
|
-
profit: number | null;
|
|
35
|
-
discount_percent: number | null;
|
|
36
|
-
price: number;
|
|
37
|
-
b2b_subtotal: number | null;
|
|
38
|
-
b2b_shipping: number | null;
|
|
39
|
-
entered_date: string;
|
|
40
|
-
last_edit_date: string;
|
|
41
|
-
last_edit_id: number;
|
|
42
|
-
last_edit_ip: string;
|
|
43
|
-
start_date: string | null;
|
|
44
|
-
finish_date: string | null;
|
|
45
|
-
desired_delivery_date: string | null;
|
|
46
|
-
actual_delivery_date: string;
|
|
47
|
-
billing_name: string;
|
|
48
|
-
billing_address1: string;
|
|
49
|
-
billing_address2: string | null;
|
|
50
|
-
billing_address3: string | null;
|
|
51
|
-
billing_city: string;
|
|
52
|
-
billing_state: string;
|
|
53
|
-
billing_zip: string;
|
|
54
|
-
billing_country: string;
|
|
55
|
-
shipping_same_as_billing: boolean;
|
|
56
|
-
shipping_name: string | null;
|
|
57
|
-
shipping_attn: string | null;
|
|
58
|
-
shipping_address1: string | null;
|
|
59
|
-
shipping_address2: string | null;
|
|
60
|
-
shipping_address3: string | null;
|
|
61
|
-
shipping_city: string | null;
|
|
62
|
-
shipping_state: string | null;
|
|
63
|
-
shipping_zip: string | null;
|
|
64
|
-
shipping_country: string | null;
|
|
65
|
-
shipping_instructions: string | null;
|
|
66
|
-
shipping_method: number;
|
|
67
|
-
shipping_data: IShippingData;
|
|
68
|
-
tracking_data: string | null;
|
|
69
|
-
tax_shipping: boolean;
|
|
70
|
-
is_remake: number;
|
|
71
|
-
b2b_guest: string | null;
|
|
72
|
-
b2b_dropship: boolean;
|
|
73
|
-
b2b_reseller_agree: boolean;
|
|
74
|
-
designer_project_id: string | null;
|
|
75
|
-
saved_presets: ISavedPresets;
|
|
76
|
-
status: string;
|
|
77
|
-
timestamp: string;
|
|
78
|
-
createdby: string;
|
|
79
|
-
createdbyid: number;
|
|
80
|
-
createddate: string;
|
|
81
|
-
updatedby: string;
|
|
82
|
-
updatedbyid: number;
|
|
83
|
-
updateddate: string;
|
|
84
|
-
contact_first_name: string;
|
|
85
|
-
contact_last_name: string;
|
|
86
|
-
company_name: string;
|
|
87
|
-
entered_by_first_name: string;
|
|
88
|
-
entered_by_last_name: string;
|
|
89
|
-
}
|
|
1
|
+
interface IShippingData {
|
|
2
|
+
fq_carrier_name: string;
|
|
3
|
+
fq_quote_id: string;
|
|
4
|
+
fq_carrier_option_id: string;
|
|
5
|
+
fq_shipping_price: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface ISavedPresets {
|
|
9
|
+
top_rail_width: number;
|
|
10
|
+
double_width: number;
|
|
11
|
+
bottom_rail_width: number;
|
|
12
|
+
left_stile_width: number;
|
|
13
|
+
side_by_side_width: number;
|
|
14
|
+
right_stile_width: number;
|
|
15
|
+
finish_color: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface IOrderResponse {
|
|
19
|
+
order_id: number;
|
|
20
|
+
name: string;
|
|
21
|
+
description: string | null;
|
|
22
|
+
company_id: number;
|
|
23
|
+
contact_id: number;
|
|
24
|
+
entered_by_id: number;
|
|
25
|
+
order_type: string;
|
|
26
|
+
tax_rate: number | null;
|
|
27
|
+
tax_rate_override: number | null;
|
|
28
|
+
gst_rate: number;
|
|
29
|
+
gst_rate_override: number | null;
|
|
30
|
+
pst_rate: number;
|
|
31
|
+
pst_rate_override: number | null;
|
|
32
|
+
shipping: number;
|
|
33
|
+
shipping_override: number | null;
|
|
34
|
+
profit: number | null;
|
|
35
|
+
discount_percent: number | null;
|
|
36
|
+
price: number;
|
|
37
|
+
b2b_subtotal: number | null;
|
|
38
|
+
b2b_shipping: number | null;
|
|
39
|
+
entered_date: string;
|
|
40
|
+
last_edit_date: string;
|
|
41
|
+
last_edit_id: number;
|
|
42
|
+
last_edit_ip: string;
|
|
43
|
+
start_date: string | null;
|
|
44
|
+
finish_date: string | null;
|
|
45
|
+
desired_delivery_date: string | null;
|
|
46
|
+
actual_delivery_date: string;
|
|
47
|
+
billing_name: string;
|
|
48
|
+
billing_address1: string;
|
|
49
|
+
billing_address2: string | null;
|
|
50
|
+
billing_address3: string | null;
|
|
51
|
+
billing_city: string;
|
|
52
|
+
billing_state: string;
|
|
53
|
+
billing_zip: string;
|
|
54
|
+
billing_country: string;
|
|
55
|
+
shipping_same_as_billing: boolean;
|
|
56
|
+
shipping_name: string | null;
|
|
57
|
+
shipping_attn: string | null;
|
|
58
|
+
shipping_address1: string | null;
|
|
59
|
+
shipping_address2: string | null;
|
|
60
|
+
shipping_address3: string | null;
|
|
61
|
+
shipping_city: string | null;
|
|
62
|
+
shipping_state: string | null;
|
|
63
|
+
shipping_zip: string | null;
|
|
64
|
+
shipping_country: string | null;
|
|
65
|
+
shipping_instructions: string | null;
|
|
66
|
+
shipping_method: number;
|
|
67
|
+
shipping_data: IShippingData;
|
|
68
|
+
tracking_data: string | null;
|
|
69
|
+
tax_shipping: boolean;
|
|
70
|
+
is_remake: number;
|
|
71
|
+
b2b_guest: string | null;
|
|
72
|
+
b2b_dropship: boolean;
|
|
73
|
+
b2b_reseller_agree: boolean;
|
|
74
|
+
designer_project_id: string | null;
|
|
75
|
+
saved_presets: ISavedPresets;
|
|
76
|
+
status: string;
|
|
77
|
+
timestamp: string;
|
|
78
|
+
createdby: string;
|
|
79
|
+
createdbyid: number;
|
|
80
|
+
createddate: string;
|
|
81
|
+
updatedby: string;
|
|
82
|
+
updatedbyid: number;
|
|
83
|
+
updateddate: string;
|
|
84
|
+
contact_first_name: string;
|
|
85
|
+
contact_last_name: string;
|
|
86
|
+
company_name: string;
|
|
87
|
+
entered_by_first_name: string;
|
|
88
|
+
entered_by_last_name: string;
|
|
89
|
+
}
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
interface IGroupData {
|
|
2
|
-
[key: string]: string | number;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
interface IConstraint {
|
|
6
|
-
name: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ITotal {
|
|
10
|
-
constraints: IConstraint[];
|
|
11
|
-
value: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
interface ISumsData {
|
|
15
|
-
[key: string]: {
|
|
16
|
-
Total: ITotal;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface IOrderProductsResponse {
|
|
21
|
-
op_id: number;
|
|
22
|
-
order_id: number;
|
|
23
|
-
oc_id: number | null;
|
|
24
|
-
cp_id: number | null;
|
|
25
|
-
product_id: number;
|
|
26
|
-
group_id: number;
|
|
27
|
-
group_data: IGroupData;
|
|
28
|
-
sums: ISumsData;
|
|
29
|
-
manual_edited: number;
|
|
30
|
-
is_designer: number;
|
|
31
|
-
folder_id: number;
|
|
32
|
-
resell_id: number | null;
|
|
33
|
-
status: string;
|
|
34
|
-
timestamp: string;
|
|
35
|
-
createdby: string;
|
|
36
|
-
createdbyid: number;
|
|
37
|
-
createddate: string;
|
|
38
|
-
updatedby: string;
|
|
39
|
-
updatedbyid: number;
|
|
40
|
-
updateddate: string;
|
|
41
|
-
order_name: string;
|
|
42
|
-
order_status: string;
|
|
43
|
-
product_name: string;
|
|
44
|
-
product_formula_pieces: Record<string, string>;
|
|
45
|
-
product_qty_label: string;
|
|
46
|
-
}
|
|
1
|
+
interface IGroupData {
|
|
2
|
+
[key: string]: string | number;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
interface IConstraint {
|
|
6
|
+
name: string;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
interface ITotal {
|
|
10
|
+
constraints: IConstraint[];
|
|
11
|
+
value: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ISumsData {
|
|
15
|
+
[key: string]: {
|
|
16
|
+
Total: ITotal;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface IOrderProductsResponse {
|
|
21
|
+
op_id: number;
|
|
22
|
+
order_id: number;
|
|
23
|
+
oc_id: number | null;
|
|
24
|
+
cp_id: number | null;
|
|
25
|
+
product_id: number;
|
|
26
|
+
group_id: number;
|
|
27
|
+
group_data: IGroupData;
|
|
28
|
+
sums: ISumsData;
|
|
29
|
+
manual_edited: number;
|
|
30
|
+
is_designer: number;
|
|
31
|
+
folder_id: number;
|
|
32
|
+
resell_id: number | null;
|
|
33
|
+
status: string;
|
|
34
|
+
timestamp: string;
|
|
35
|
+
createdby: string;
|
|
36
|
+
createdbyid: number;
|
|
37
|
+
createddate: string;
|
|
38
|
+
updatedby: string;
|
|
39
|
+
updatedbyid: number;
|
|
40
|
+
updateddate: string;
|
|
41
|
+
order_name: string;
|
|
42
|
+
order_status: string;
|
|
43
|
+
product_name: string;
|
|
44
|
+
product_formula_pieces: Record<string, string>;
|
|
45
|
+
product_qty_label: string;
|
|
46
|
+
}
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
type IValidationGroup = {
|
|
2
|
-
[key: string]: {
|
|
3
|
-
attribute: string;
|
|
4
|
-
operator: string;
|
|
5
|
-
avalue?: string;
|
|
6
|
-
value: string;
|
|
7
|
-
v_type?: string;
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
type IValidation = {
|
|
12
|
-
name: string;
|
|
13
|
-
groups: {
|
|
14
|
-
[key: string]: IValidationGroup;
|
|
15
|
-
};
|
|
16
|
-
actions: {
|
|
17
|
-
action_type: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}[];
|
|
20
|
-
conditions: null | any; // adjust according to your conditions structure
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
type ISum = {
|
|
24
|
-
name: string;
|
|
25
|
-
sorder: string;
|
|
26
|
-
parts: string[];
|
|
27
|
-
groups: string[];
|
|
28
|
-
lists: string[];
|
|
29
|
-
formula: string;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export interface IProduct {
|
|
33
|
-
product_id: number;
|
|
34
|
-
line_id: number;
|
|
35
|
-
name: string;
|
|
36
|
-
uses_groups: number;
|
|
37
|
-
formula: string;
|
|
38
|
-
formula_pieces: {
|
|
39
|
-
[key: string]: string;
|
|
40
|
-
};
|
|
41
|
-
price_precision: number;
|
|
42
|
-
minimum_price: null | number;
|
|
43
|
-
default_qty: null | number;
|
|
44
|
-
qty_label: string;
|
|
45
|
-
validations: IValidation[];
|
|
46
|
-
sums: ISum[];
|
|
47
|
-
shipping_template: null | any;
|
|
48
|
-
weight: string;
|
|
49
|
-
weight_pieces: {
|
|
50
|
-
[key: string]: string;
|
|
51
|
-
};
|
|
52
|
-
default_image: number;
|
|
53
|
-
image_position: string;
|
|
54
|
-
priority_sort: number;
|
|
55
|
-
attribute_sort_order: string[];
|
|
56
|
-
repeat_headers: number;
|
|
57
|
-
help: string;
|
|
58
|
-
export_class: string;
|
|
59
|
-
company_exclusive: null | any; // string value? not sure
|
|
60
|
-
include_in_designer: number;
|
|
61
|
-
allow_b2b: number;
|
|
62
|
-
sub_id: null | number;
|
|
63
|
-
status: number;
|
|
64
|
-
timestamp: string;
|
|
65
|
-
createdby: null | string;
|
|
66
|
-
createdbyid: null | number;
|
|
67
|
-
createddate: null | string;
|
|
68
|
-
updatedby: string;
|
|
69
|
-
updatedbyid: number;
|
|
70
|
-
updateddate: string;
|
|
71
|
-
production_line_name: string;
|
|
72
|
-
}
|
|
1
|
+
type IValidationGroup = {
|
|
2
|
+
[key: string]: {
|
|
3
|
+
attribute: string;
|
|
4
|
+
operator: string;
|
|
5
|
+
avalue?: string;
|
|
6
|
+
value: string;
|
|
7
|
+
v_type?: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
type IValidation = {
|
|
12
|
+
name: string;
|
|
13
|
+
groups: {
|
|
14
|
+
[key: string]: IValidationGroup;
|
|
15
|
+
};
|
|
16
|
+
actions: {
|
|
17
|
+
action_type: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
20
|
+
conditions: null | any; // adjust according to your conditions structure
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
type ISum = {
|
|
24
|
+
name: string;
|
|
25
|
+
sorder: string;
|
|
26
|
+
parts: string[];
|
|
27
|
+
groups: string[];
|
|
28
|
+
lists: string[];
|
|
29
|
+
formula: string;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export interface IProduct {
|
|
33
|
+
product_id: number;
|
|
34
|
+
line_id: number;
|
|
35
|
+
name: string;
|
|
36
|
+
uses_groups: number;
|
|
37
|
+
formula: string;
|
|
38
|
+
formula_pieces: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
price_precision: number;
|
|
42
|
+
minimum_price: null | number;
|
|
43
|
+
default_qty: null | number;
|
|
44
|
+
qty_label: string;
|
|
45
|
+
validations: IValidation[];
|
|
46
|
+
sums: ISum[];
|
|
47
|
+
shipping_template: null | any;
|
|
48
|
+
weight: string;
|
|
49
|
+
weight_pieces: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
default_image: number;
|
|
53
|
+
image_position: string;
|
|
54
|
+
priority_sort: number;
|
|
55
|
+
attribute_sort_order: string[];
|
|
56
|
+
repeat_headers: number;
|
|
57
|
+
help: string;
|
|
58
|
+
export_class: string;
|
|
59
|
+
company_exclusive: null | any; // string value? not sure
|
|
60
|
+
include_in_designer: number;
|
|
61
|
+
allow_b2b: number;
|
|
62
|
+
sub_id: null | number;
|
|
63
|
+
status: number;
|
|
64
|
+
timestamp: string;
|
|
65
|
+
createdby: null | string;
|
|
66
|
+
createdbyid: null | number;
|
|
67
|
+
createddate: null | string;
|
|
68
|
+
updatedby: string;
|
|
69
|
+
updatedbyid: number;
|
|
70
|
+
updateddate: string;
|
|
71
|
+
production_line_name: string;
|
|
72
|
+
}
|