truflow 0.0.140 → 0.0.142

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.
Files changed (56) hide show
  1. package/dist/IAllmoxy.d.ts +2 -2
  2. package/dist/IOrder.d.ts +2 -3
  3. package/package.json +15 -15
  4. package/src/API/Allmoxy/IAnnouncement.ts +41 -41
  5. package/src/API/Allmoxy/ICompany.ts +199 -199
  6. package/src/API/Allmoxy/IGeneric.ts +111 -111
  7. package/src/API/Allmoxy/IInventoryItem.ts +56 -56
  8. package/src/API/Allmoxy/IInventoryOrder.ts +43 -43
  9. package/src/API/Allmoxy/ILocation.ts +19 -19
  10. package/src/API/Allmoxy/IOrder.ts +89 -89
  11. package/src/API/Allmoxy/IOrderProductItems.ts +92 -92
  12. package/src/API/Allmoxy/IOrderProducts.ts +46 -46
  13. package/src/API/Allmoxy/IProduct.ts +88 -88
  14. package/src/API/Allmoxy/IProductAttribute.ts +21 -21
  15. package/src/API/Allmoxy/IProductAttributeOptions.ts +30 -30
  16. package/src/API/Allmoxy/IProductProductAttribute.ts +23 -23
  17. package/src/API/Allmoxy/ITrigger.ts +52 -52
  18. package/src/API/Allmoxy/index.ts +14 -14
  19. package/src/Classes/ICRUDRouter.ts +6 -6
  20. package/src/Classes/ILogger.ts +17 -17
  21. package/src/Events/IDateEntryMoved.ts +13 -13
  22. package/src/Events/INegativeValue.ts +10 -10
  23. package/src/Events/IOrderDetails.ts +12 -12
  24. package/src/Events/IOrderMoved.ts +14 -14
  25. package/src/Events/IOrderProcessed.ts +6 -6
  26. package/src/Helpers/IAdministration.ts +9 -9
  27. package/src/Helpers/IAllmoxy.ts +4 -4
  28. package/src/Helpers/IEvents.ts +23 -23
  29. package/src/Helpers/IExporters.ts +45 -45
  30. package/src/Helpers/IOrders/IMoveDateEntry.ts +21 -21
  31. package/src/Helpers/IOrders/IMoveOrder.ts +28 -28
  32. package/src/Helpers/IOrders/IUpdateFullDailyTotal.ts +13 -13
  33. package/src/Helpers/IOrders/IUpdateIndividualDailyTotal.ts +8 -8
  34. package/src/Helpers/IOrders/index.ts +10 -10
  35. package/src/Helpers/ITotals.ts +16 -16
  36. package/src/Helpers/IZapier/index.ts +54 -54
  37. package/src/IAllmoxy.ts +12 -12
  38. package/src/IConfig.ts +11 -11
  39. package/src/IDailyTotal.ts +9 -9
  40. package/src/IEvent.ts +21 -21
  41. package/src/IExporter.ts +20 -20
  42. package/src/IExpress.ts +14 -14
  43. package/src/IIntegration.ts +30 -30
  44. package/src/IJWT.ts +4 -4
  45. package/src/IMailCache.ts +19 -19
  46. package/src/INotification.ts +11 -11
  47. package/src/IOrder.ts +41 -42
  48. package/src/IScript.ts +10 -10
  49. package/src/ISetting.ts +83 -83
  50. package/src/IUser.ts +13 -13
  51. package/src/IWebsocket.ts +7 -7
  52. package/src/Routes/IOrderRoutes.ts +37 -37
  53. package/src/Routes/IZapierRoutes.ts +12 -12
  54. package/src/Templates/IDailyTotals.ts +4 -4
  55. package/src/index.ts +28 -28
  56. package/tsconfig.json +11 -11
@@ -1,92 +1,92 @@
1
- export interface IOrderProductItems {
2
- completed: boolean; // Indicates whether or not the order was completed.
3
- createddate_end: string; // The end date in a range of dates when the item was created.
4
- createddate_start: string; // The start date in a range of dates when the item was created.
5
- line_id: number; // Indicates where the order product item should be displayed.
6
- op_id: number; // Foreign key, the ID of the associated order product.
7
- ordering: string; // Ordering.
8
- page: number; // Page number of the results.
9
- per_page: number; // The number of results that should populate per page.
10
- updateddate_end: string; // The end date in a range of dates when the item was last updated.
11
- updateddate_start: string; // The start date in a range of dates when the item was last updated.
12
- }
13
-
14
- export interface IOrderProductItemsResponse {
15
- opi_id: number;
16
- op_id: number;
17
- line_id: number | null;
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
- };
50
- qty: number | null;
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;
56
- completed: number;
57
- createdby: string | null;
58
- createdbyid: number | null;
59
- createddate: string | null;
60
- updatedby: string | null;
61
- updatedbyid: number | null;
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;
92
- }
1
+ export interface IOrderProductItems {
2
+ completed: boolean; // Indicates whether or not the order was completed.
3
+ createddate_end: string; // The end date in a range of dates when the item was created.
4
+ createddate_start: string; // The start date in a range of dates when the item was created.
5
+ line_id: number; // Indicates where the order product item should be displayed.
6
+ op_id: number; // Foreign key, the ID of the associated order product.
7
+ ordering: string; // Ordering.
8
+ page: number; // Page number of the results.
9
+ per_page: number; // The number of results that should populate per page.
10
+ updateddate_end: string; // The end date in a range of dates when the item was last updated.
11
+ updateddate_start: string; // The start date in a range of dates when the item was last updated.
12
+ }
13
+
14
+ export interface IOrderProductItemsResponse {
15
+ opi_id: number;
16
+ op_id: number;
17
+ line_id: number | null;
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
+ };
50
+ qty: number | null;
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;
56
+ completed: number;
57
+ createdby: string | null;
58
+ createdbyid: number | null;
59
+ createddate: string | null;
60
+ updatedby: string | null;
61
+ updatedbyid: number | null;
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;
92
+ }
@@ -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,88 +1,88 @@
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;
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
- createddate_end: string;
34
- createddate_start: string;
35
- export_class: string;
36
- include_in_designer: boolean;
37
- line_id: number;
38
- name: string;
39
- ordering: string;
40
- page: number;
41
- per_page: number;
42
- related_objects: any;
43
- status: number;
44
- updateddate_end: string;
45
- updateddate_start: string;
46
- }
47
-
48
- export interface IProductResponse {
49
- product_id: number;
50
- line_id: number;
51
- name: string;
52
- uses_groups: number;
53
- formula: string;
54
- formula_pieces: {
55
- [key: string]: string;
56
- };
57
- price_precision: number;
58
- minimum_price: null | number;
59
- default_qty: null | number;
60
- qty_label: string;
61
- validations: IValidation[];
62
- sums: ISum[];
63
- shipping_template: null | any;
64
- weight: string;
65
- weight_pieces: {
66
- [key: string]: string;
67
- };
68
- default_image: number;
69
- image_position: string;
70
- priority_sort: number;
71
- attribute_sort_order: string[];
72
- repeat_headers: number;
73
- help: string;
74
- export_class: string;
75
- company_exclusive: null | any; // string value? not sure
76
- include_in_designer: number;
77
- allow_b2b: number;
78
- sub_id: null | number;
79
- status: number;
80
- timestamp: string;
81
- createdby: null | string;
82
- createdbyid: null | number;
83
- createddate: null | string;
84
- updatedby: string;
85
- updatedbyid: number;
86
- updateddate: string;
87
- production_line_name: string;
88
- }
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;
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
+ createddate_end: string;
34
+ createddate_start: string;
35
+ export_class: string;
36
+ include_in_designer: boolean;
37
+ line_id: number;
38
+ name: string;
39
+ ordering: string;
40
+ page: number;
41
+ per_page: number;
42
+ related_objects: any;
43
+ status: number;
44
+ updateddate_end: string;
45
+ updateddate_start: string;
46
+ }
47
+
48
+ export interface IProductResponse {
49
+ product_id: number;
50
+ line_id: number;
51
+ name: string;
52
+ uses_groups: number;
53
+ formula: string;
54
+ formula_pieces: {
55
+ [key: string]: string;
56
+ };
57
+ price_precision: number;
58
+ minimum_price: null | number;
59
+ default_qty: null | number;
60
+ qty_label: string;
61
+ validations: IValidation[];
62
+ sums: ISum[];
63
+ shipping_template: null | any;
64
+ weight: string;
65
+ weight_pieces: {
66
+ [key: string]: string;
67
+ };
68
+ default_image: number;
69
+ image_position: string;
70
+ priority_sort: number;
71
+ attribute_sort_order: string[];
72
+ repeat_headers: number;
73
+ help: string;
74
+ export_class: string;
75
+ company_exclusive: null | any; // string value? not sure
76
+ include_in_designer: number;
77
+ allow_b2b: number;
78
+ sub_id: null | number;
79
+ status: number;
80
+ timestamp: string;
81
+ createdby: null | string;
82
+ createdbyid: null | number;
83
+ createddate: null | string;
84
+ updatedby: string;
85
+ updatedbyid: number;
86
+ updateddate: string;
87
+ production_line_name: string;
88
+ }
@@ -1,21 +1,21 @@
1
- export interface IProductAttributeResponse {
2
- attribute_id: number;
3
- attribute_type: string;
4
- name: string;
5
- display_name: string;
6
- comment: string;
7
- num_pictures: number;
8
- data: string;
9
- help: string;
10
- is_presettable: number;
11
- preset_use_default: number;
12
- preset_order: string;
13
- status: number;
14
- timestamp: string;
15
- createdby: string;
16
- createdbyid: number;
17
- createddate: string;
18
- updatedby: string;
19
- updatedbyid: number;
20
- updateddate: string;
21
- }
1
+ export interface IProductAttributeResponse {
2
+ attribute_id: number;
3
+ attribute_type: string;
4
+ name: string;
5
+ display_name: string;
6
+ comment: string;
7
+ num_pictures: number;
8
+ data: string;
9
+ help: string;
10
+ is_presettable: number;
11
+ preset_use_default: number;
12
+ preset_order: string;
13
+ status: number;
14
+ timestamp: string;
15
+ createdby: string;
16
+ createdbyid: number;
17
+ createddate: string;
18
+ updatedby: string;
19
+ updatedbyid: number;
20
+ updateddate: string;
21
+ }
@@ -1,30 +1,30 @@
1
- export interface IProductAttributeOption {
2
- attribute_id: number;
3
- name: string;
4
- sort_order: number;
5
- default_values: any;
6
- location_id: number;
7
- item_id: number;
8
- picture?: string;
9
- status: number;
10
- }
11
-
12
- export interface IProductAttributeOptionResponse {
13
- attribute_name: string;
14
- option_id: number;
15
- attribute_id: number | null;
16
- name: string;
17
- sort_order: number | null;
18
- default_values: string;
19
- location_id: number | null;
20
- item_id: number | null;
21
- picture: string | null;
22
- status: number;
23
- timestamp: string;
24
- createdby: string | null;
25
- createdbyid: number | null;
26
- createddate: string | null;
27
- updatedby: string | null;
28
- updatedbyid: number | null;
29
- updateddate: string | null;
30
- }
1
+ export interface IProductAttributeOption {
2
+ attribute_id: number;
3
+ name: string;
4
+ sort_order: number;
5
+ default_values: any;
6
+ location_id: number;
7
+ item_id: number;
8
+ picture?: string;
9
+ status: number;
10
+ }
11
+
12
+ export interface IProductAttributeOptionResponse {
13
+ attribute_name: string;
14
+ option_id: number;
15
+ attribute_id: number | null;
16
+ name: string;
17
+ sort_order: number | null;
18
+ default_values: string;
19
+ location_id: number | null;
20
+ item_id: number | null;
21
+ picture: string | null;
22
+ status: number;
23
+ timestamp: string;
24
+ createdby: string | null;
25
+ createdbyid: number | null;
26
+ createddate: string | null;
27
+ updatedby: string | null;
28
+ updatedbyid: number | null;
29
+ updateddate: string | null;
30
+ }
@@ -1,23 +1,23 @@
1
- export interface IProductProductAttribute {
2
- attribute_id: number;
3
- page: number;
4
- per_page: number;
5
- product_id: number;
6
- }
7
-
8
- export interface IProductProductAttributeResponse {
9
- pa_id: number;
10
- product_id: number | null;
11
- attribute_id: number | null;
12
- classification: string | null;
13
- category: string | null;
14
- cat_collapse: number;
15
- data: string;
16
- display_order: number;
17
- createdby: string | null;
18
- createdbyid: number | null;
19
- createddate: Date | null;
20
- updatedby: string | null;
21
- updatedbyid: number | null;
22
- updateddate: Date | null;
23
- }
1
+ export interface IProductProductAttribute {
2
+ attribute_id: number;
3
+ page: number;
4
+ per_page: number;
5
+ product_id: number;
6
+ }
7
+
8
+ export interface IProductProductAttributeResponse {
9
+ pa_id: number;
10
+ product_id: number | null;
11
+ attribute_id: number | null;
12
+ classification: string | null;
13
+ category: string | null;
14
+ cat_collapse: number;
15
+ data: string;
16
+ display_order: number;
17
+ createdby: string | null;
18
+ createdbyid: number | null;
19
+ createddate: Date | null;
20
+ updatedby: string | null;
21
+ updatedbyid: number | null;
22
+ updateddate: Date | null;
23
+ }