@nerdjs/sales-kit 2.0.45 → 2.0.47

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 (145) hide show
  1. package/dist/entities/cargoConsolidation/cargoConsolidation.d.ts +120 -0
  2. package/dist/entities/cargoConsolidation/cargoConsolidation.js +268 -0
  3. package/dist/entities/cargoConsolidation/cargoConsolidation.js.map +1 -0
  4. package/dist/entities/cargoConsolidation/helper.d.ts +5 -0
  5. package/dist/entities/cargoConsolidation/helper.js +16 -0
  6. package/dist/entities/cargoConsolidation/helper.js.map +1 -0
  7. package/dist/entities/cargoConsolidation/index.d.ts +2 -0
  8. package/dist/entities/cargoConsolidation/index.js +3 -0
  9. package/dist/entities/cargoConsolidation/index.js.map +1 -0
  10. package/dist/entities/claim/claim.d.ts +43 -0
  11. package/dist/entities/claim/claim.js +103 -0
  12. package/dist/entities/claim/claim.js.map +1 -0
  13. package/dist/entities/claim/helper.d.ts +5 -0
  14. package/dist/entities/claim/helper.js +16 -0
  15. package/dist/entities/claim/helper.js.map +1 -0
  16. package/dist/entities/claim/index.d.ts +2 -0
  17. package/dist/entities/claim/index.js +3 -0
  18. package/dist/entities/claim/index.js.map +1 -0
  19. package/dist/entities/claimResponse/claimResponse.d.ts +14 -0
  20. package/dist/entities/claimResponse/claimResponse.js +45 -0
  21. package/dist/entities/claimResponse/claimResponse.js.map +1 -0
  22. package/dist/entities/claimResponse/helper.d.ts +5 -0
  23. package/dist/entities/claimResponse/helper.js +16 -0
  24. package/dist/entities/claimResponse/helper.js.map +1 -0
  25. package/dist/entities/claimResponse/index.d.ts +2 -0
  26. package/dist/entities/claimResponse/index.js +3 -0
  27. package/dist/entities/claimResponse/index.js.map +1 -0
  28. package/dist/entities/claimStatus/claimStatus.d.ts +6 -0
  29. package/dist/entities/claimStatus/claimStatus.js +29 -0
  30. package/dist/entities/claimStatus/claimStatus.js.map +1 -0
  31. package/dist/entities/claimStatus/helper.d.ts +5 -0
  32. package/dist/entities/claimStatus/helper.js +16 -0
  33. package/dist/entities/claimStatus/helper.js.map +1 -0
  34. package/dist/entities/claimStatus/index.d.ts +2 -0
  35. package/dist/entities/claimStatus/index.js +3 -0
  36. package/dist/entities/claimStatus/index.js.map +1 -0
  37. package/dist/entities/dispatch/dispatch.d.ts +48 -0
  38. package/dist/entities/dispatch/dispatch.js +113 -0
  39. package/dist/entities/dispatch/dispatch.js.map +1 -0
  40. package/dist/entities/dispatch/helper.d.ts +5 -0
  41. package/dist/entities/dispatch/helper.js +16 -0
  42. package/dist/entities/dispatch/helper.js.map +1 -0
  43. package/dist/entities/dispatch/index.d.ts +2 -0
  44. package/dist/entities/dispatch/index.js +3 -0
  45. package/dist/entities/dispatch/index.js.map +1 -0
  46. package/dist/entities/ediTransaction/ediTransaction.d.ts +22 -0
  47. package/dist/entities/ediTransaction/ediTransaction.js +62 -0
  48. package/dist/entities/ediTransaction/ediTransaction.js.map +1 -0
  49. package/dist/entities/ediTransaction/helper.d.ts +5 -0
  50. package/dist/entities/ediTransaction/helper.js +16 -0
  51. package/dist/entities/ediTransaction/helper.js.map +1 -0
  52. package/dist/entities/ediTransaction/index.d.ts +2 -0
  53. package/dist/entities/ediTransaction/index.js +3 -0
  54. package/dist/entities/ediTransaction/index.js.map +1 -0
  55. package/dist/entities/index.d.ts +7 -0
  56. package/dist/entities/index.js +7 -0
  57. package/dist/entities/index.js.map +1 -1
  58. package/dist/entities/shipcon/shipcon.d.ts +34 -3
  59. package/dist/entities/shipcon/shipcon.js +22 -6
  60. package/dist/entities/shipcon/shipcon.js.map +1 -1
  61. package/dist/entities/userNotification/helper.d.ts +5 -0
  62. package/dist/entities/userNotification/helper.js +16 -0
  63. package/dist/entities/userNotification/helper.js.map +1 -0
  64. package/dist/entities/userNotification/index.d.ts +2 -0
  65. package/dist/entities/userNotification/index.js +3 -0
  66. package/dist/entities/userNotification/index.js.map +1 -0
  67. package/dist/entities/userNotification/userNotification.d.ts +17 -0
  68. package/dist/entities/userNotification/userNotification.js +52 -0
  69. package/dist/entities/userNotification/userNotification.js.map +1 -0
  70. package/dist/hooks/quote/helpers.js +6 -0
  71. package/dist/hooks/quote/helpers.js.map +1 -1
  72. package/dist/hooks/quote/result.js +10 -9
  73. package/dist/hooks/quote/result.js.map +1 -1
  74. package/dist/hooks/tender/form.js +2 -21
  75. package/dist/hooks/tender/form.js.map +1 -1
  76. package/dist/redux/api/salesApi.d.ts +1 -1
  77. package/dist/redux/api/salesApi.js +6 -0
  78. package/dist/redux/api/salesApi.js.map +1 -1
  79. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  80. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  81. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  82. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  83. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  84. package/dist/redux/archerFile/archerFileEndpoints.d.ts +13 -13
  85. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
  86. package/dist/redux/claim/claimEndpoints.d.ts +50 -0
  87. package/dist/redux/claim/claimEndpoints.js +90 -0
  88. package/dist/redux/claim/claimEndpoints.js.map +1 -0
  89. package/dist/redux/claim/index.d.ts +2 -0
  90. package/dist/redux/claim/index.js +3 -0
  91. package/dist/redux/claim/index.js.map +1 -0
  92. package/dist/redux/claimStatus/claimStatusEndpoints.d.ts +24 -0
  93. package/dist/redux/claimStatus/claimStatusEndpoints.js +64 -0
  94. package/dist/redux/claimStatus/claimStatusEndpoints.js.map +1 -0
  95. package/dist/redux/claimStatus/index.d.ts +2 -0
  96. package/dist/redux/claimStatus/index.js +3 -0
  97. package/dist/redux/claimStatus/index.js.map +1 -0
  98. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  99. package/dist/redux/contact/contactEndpoints.d.ts +10 -10
  100. package/dist/redux/customer/customerEndpoints.d.ts +16 -16
  101. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +9 -9
  102. package/dist/redux/dispatch/dispatchEndpoints.d.ts +36 -0
  103. package/dist/redux/dispatch/dispatchEndpoints.js +64 -0
  104. package/dist/redux/dispatch/dispatchEndpoints.js.map +1 -0
  105. package/dist/redux/dispatch/index.d.ts +2 -0
  106. package/dist/redux/dispatch/index.js +3 -0
  107. package/dist/redux/dispatch/index.js.map +1 -0
  108. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  109. package/dist/redux/flag/flagEndpoints.d.ts +9 -9
  110. package/dist/redux/genericTender/genericTenderEndpoints.d.ts +10 -10
  111. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  112. package/dist/redux/index.d.ts +3 -0
  113. package/dist/redux/index.js +3 -0
  114. package/dist/redux/index.js.map +1 -1
  115. package/dist/redux/load/loadEndpoints.d.ts +11 -11
  116. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  117. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  118. package/dist/redux/loadTender/loadTenderEndpoints.d.ts +12 -12
  119. package/dist/redux/loadV1/loadV1Endpoints.d.ts +86 -38
  120. package/dist/redux/loadV1/loadV1Endpoints.js +60 -1
  121. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  122. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  123. package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
  124. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  125. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  126. package/dist/redux/notification/notificationEndpoints.d.ts +14 -13
  127. package/dist/redux/notification/notificationEndpoints.js +8 -1
  128. package/dist/redux/notification/notificationEndpoints.js.map +1 -1
  129. package/dist/redux/person/personEndpoints.d.ts +11 -11
  130. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  131. package/dist/redux/quote/quoteEndpoints.d.ts +22 -22
  132. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  133. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  134. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  135. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +10 -10
  136. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  137. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +16 -16
  138. package/dist/redux/shipconV1/shipconV1Endpoints.js +4 -3
  139. package/dist/redux/shipconV1/shipconV1Endpoints.js.map +1 -1
  140. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  141. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  142. package/dist/redux/types.d.ts +2 -2
  143. package/dist/redux/unitV1/unitV1Endpoints.d.ts +9 -9
  144. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
  145. package/package.json +1 -1
@@ -0,0 +1,120 @@
1
+ export default class CargoConsolidation_Entity {
2
+ static requiredFields: never[];
3
+ constructor(cargoConsolidationJson?: unknown);
4
+ id?: number;
5
+ asset_id?: number;
6
+ driver_id?: number;
7
+ node_id?: number;
8
+ employee_id?: number;
9
+ consolidation_date?: string;
10
+ seal?: string;
11
+ temperature?: string;
12
+ appointment_trip_id?: number;
13
+ loaded?: boolean;
14
+ carrier_id?: number;
15
+ trip_baserate?: number;
16
+ trip_fuel_surcharge?: number;
17
+ processed_date?: string;
18
+ next_cargo_consolidation_id?: number;
19
+ trip_detail?: string;
20
+ for_delivery?: boolean;
21
+ override_dispatch_path_edge_id?: number;
22
+ notes?: string;
23
+ review?: boolean;
24
+ dropped_to_dock?: boolean;
25
+ workflow_driver_assignment_id?: number;
26
+ start_area_id?: number;
27
+ assignment_order?: number;
28
+ perform_date?: string;
29
+ empty_workflow_move?: boolean;
30
+ return_temporary?: boolean;
31
+ start_time?: string;
32
+ end_time?: string;
33
+ loaded_workflow_move?: boolean;
34
+ warehouse_notes?: string;
35
+ total_cost?: number;
36
+ loading_status?: string;
37
+ pallet_manifest_id?: number;
38
+ unload_node_id?: number;
39
+ person_id?: number;
40
+ otr_posted?: boolean;
41
+ start_brokerage_rate?: number;
42
+ max_brokerage_rate?: number;
43
+ calc_area_id?: number;
44
+ pieces?: number;
45
+ pallets?: number;
46
+ feet?: number;
47
+ weight?: number;
48
+ next_node_id?: number;
49
+ fill_percent?: number;
50
+ pallets_to_go?: number;
51
+ weight_to_go?: number;
52
+ outbound_dispatch_type?: string;
53
+ dispatch_path_edge_id?: number;
54
+ next_node_type?: string;
55
+ asset_code?: string;
56
+ next_node_name?: string;
57
+ dest_area_id?: number;
58
+ current_eta?: string;
59
+ dest_node_id?: number;
60
+ next_dispatch_type?: string;
61
+ node_type?: string;
62
+ trip_total_cost?: string;
63
+ scac?: string;
64
+ waybill?: string;
65
+ cached_eta?: string;
66
+ reefer_last_contact?: string;
67
+ reefer_temp?: number;
68
+ reefer_fuel_level?: number;
69
+ pickup_number?: string;
70
+ destination_states?: string;
71
+ destination_areas?: string;
72
+ dest_node_type?: string;
73
+ next_leg_dispatch_type?: string;
74
+ next_waybill?: string;
75
+ has_rail_tender?: boolean;
76
+ has_next_rail_tender?: boolean;
77
+ next_dest_node_id?: number;
78
+ load_numbers?: string;
79
+ has_splits?: boolean;
80
+ has_ingated?: boolean;
81
+ next_has_ingated?: boolean;
82
+ trailer_expire?: string;
83
+ current_carrier_tender_id?: number;
84
+ next_scac?: string;
85
+ long_distance?: boolean;
86
+ origin_areas?: string;
87
+ earliest_delivery_date?: string;
88
+ total_planned_cost?: number;
89
+ edges_until_end?: number;
90
+ node_name?: string;
91
+ pallet_position_to_go?: number;
92
+ do_not_break_seal?: boolean;
93
+ asset_status?: string;
94
+ status_description?: string;
95
+ expedited?: boolean;
96
+ local_move?: boolean;
97
+ load_count?: number;
98
+ active_rail_tender_id?: number;
99
+ status_code?: string;
100
+ service_level?: string;
101
+ destination_locations?: string[];
102
+ carrier_pay_source_type?: string;
103
+ consolidation_flag_id?: number;
104
+ assigned_names?: string;
105
+ next_node_sub_area_id?: number;
106
+ max_weight?: boolean;
107
+ next_node_timezone?: string;
108
+ next_node_timezone_offset?: string;
109
+ westbound?: boolean;
110
+ customer_rank_based_on_sales?: string;
111
+ customer_ids?: number[];
112
+ destination_sub_areas?: string;
113
+ cutoff_time?: string;
114
+ tanker_required?: boolean;
115
+ next_driver_id?: number;
116
+ next_carrier_id?: number;
117
+ next_perform_date?: string;
118
+ intermodal_contract?: string;
119
+ storage_consolidation?: boolean;
120
+ }
@@ -0,0 +1,268 @@
1
+ /**
2
+ * CargoConsolidation_Entity type guard.
3
+ *
4
+ * @param {any} cargoConsolidationJson CargoConsolidation object from API
5
+ * @returns {boolean} Return true if type is CargoConsolidation_Entity
6
+ */
7
+ function validator(cargoConsolidationJson) {
8
+ if (typeof cargoConsolidationJson === "object" &&
9
+ cargoConsolidationJson != null) {
10
+ CargoConsolidation_Entity.requiredFields.forEach((element) => {
11
+ if (!Object.keys(cargoConsolidationJson).includes(element))
12
+ throw new Error(`Field ${element} is null or undefined`);
13
+ });
14
+ }
15
+ return true;
16
+ }
17
+ export default class CargoConsolidation_Entity {
18
+ static requiredFields = [];
19
+ constructor(cargoConsolidationJson) {
20
+ if (validator(cargoConsolidationJson)) {
21
+ this.id = cargoConsolidationJson.id;
22
+ this.asset_id = cargoConsolidationJson.asset_id;
23
+ this.driver_id = cargoConsolidationJson.driver_id;
24
+ this.node_id = cargoConsolidationJson.node_id;
25
+ this.employee_id = cargoConsolidationJson.employee_id;
26
+ this.consolidation_date = cargoConsolidationJson.consolidation_date;
27
+ this.seal = cargoConsolidationJson.seal;
28
+ this.temperature = cargoConsolidationJson.temperature;
29
+ this.appointment_trip_id = cargoConsolidationJson.appointment_trip_id;
30
+ this.loaded = cargoConsolidationJson.loaded;
31
+ this.carrier_id = cargoConsolidationJson.carrier_id;
32
+ this.trip_baserate = cargoConsolidationJson.trip_baserate;
33
+ this.trip_fuel_surcharge = cargoConsolidationJson.trip_fuel_surcharge;
34
+ this.processed_date = cargoConsolidationJson.processed_date;
35
+ this.next_cargo_consolidation_id =
36
+ cargoConsolidationJson.next_cargo_consolidation_id;
37
+ this.trip_detail = cargoConsolidationJson.trip_detail;
38
+ this.for_delivery = cargoConsolidationJson.for_delivery;
39
+ this.override_dispatch_path_edge_id =
40
+ cargoConsolidationJson.override_dispatch_path_edge_id;
41
+ this.notes = cargoConsolidationJson.notes;
42
+ this.review = cargoConsolidationJson.review;
43
+ this.dropped_to_dock = cargoConsolidationJson.dropped_to_dock;
44
+ this.workflow_driver_assignment_id =
45
+ cargoConsolidationJson.workflow_driver_assignment_id;
46
+ this.start_area_id = cargoConsolidationJson.start_area_id;
47
+ this.assignment_order = cargoConsolidationJson.assignment_order;
48
+ this.perform_date = cargoConsolidationJson.perform_date;
49
+ this.empty_workflow_move = cargoConsolidationJson.empty_workflow_move;
50
+ this.return_temporary = cargoConsolidationJson.return_temporary;
51
+ this.start_time = cargoConsolidationJson.start_time;
52
+ this.end_time = cargoConsolidationJson.end_time;
53
+ this.loaded_workflow_move = cargoConsolidationJson.loaded_workflow_move;
54
+ this.warehouse_notes = cargoConsolidationJson.warehouse_notes;
55
+ this.total_cost = cargoConsolidationJson.total_cost;
56
+ this.loading_status = cargoConsolidationJson.loading_status;
57
+ this.pallet_manifest_id = cargoConsolidationJson.pallet_manifest_id;
58
+ this.unload_node_id = cargoConsolidationJson.unload_node_id;
59
+ this.person_id = cargoConsolidationJson.person_id;
60
+ this.otr_posted = cargoConsolidationJson.otr_posted;
61
+ this.start_brokerage_rate = cargoConsolidationJson.start_brokerage_rate;
62
+ this.max_brokerage_rate = cargoConsolidationJson.max_brokerage_rate;
63
+ this.calc_area_id = cargoConsolidationJson.calc_area_id;
64
+ this.pieces = cargoConsolidationJson.pieces;
65
+ this.pallets = cargoConsolidationJson.pallets;
66
+ this.feet = cargoConsolidationJson.feet;
67
+ this.weight = cargoConsolidationJson.weight;
68
+ this.next_node_id = cargoConsolidationJson.next_node_id;
69
+ this.fill_percent = cargoConsolidationJson.fill_percent;
70
+ this.pallets_to_go = cargoConsolidationJson.pallets_to_go;
71
+ this.weight_to_go = cargoConsolidationJson.weight_to_go;
72
+ this.outbound_dispatch_type =
73
+ cargoConsolidationJson.outbound_dispatch_type;
74
+ this.dispatch_path_edge_id = cargoConsolidationJson.dispatch_path_edge_id;
75
+ this.next_node_type = cargoConsolidationJson.next_node_type;
76
+ this.asset_code = cargoConsolidationJson.asset_code;
77
+ this.next_node_name = cargoConsolidationJson.next_node_name;
78
+ this.dest_area_id = cargoConsolidationJson.dest_area_id;
79
+ this.current_eta = cargoConsolidationJson.current_eta;
80
+ this.dest_node_id = cargoConsolidationJson.dest_node_id;
81
+ this.next_dispatch_type = cargoConsolidationJson.next_dispatch_type;
82
+ this.node_type = cargoConsolidationJson.node_type;
83
+ this.trip_total_cost = cargoConsolidationJson.trip_total_cost;
84
+ this.scac = cargoConsolidationJson.scac;
85
+ this.waybill = cargoConsolidationJson.waybill;
86
+ this.cached_eta = cargoConsolidationJson.cached_eta;
87
+ this.reefer_last_contact = cargoConsolidationJson.reefer_last_contact;
88
+ this.reefer_temp = cargoConsolidationJson.reefer_temp;
89
+ this.reefer_fuel_level = cargoConsolidationJson.reefer_fuel_level;
90
+ this.pickup_number = cargoConsolidationJson.pickup_number;
91
+ this.destination_states = cargoConsolidationJson.destination_states;
92
+ this.destination_areas = cargoConsolidationJson.destination_areas;
93
+ this.dest_node_type = cargoConsolidationJson.dest_node_type;
94
+ this.next_leg_dispatch_type =
95
+ cargoConsolidationJson.next_leg_dispatch_type;
96
+ this.next_waybill = cargoConsolidationJson.next_waybill;
97
+ this.has_rail_tender = cargoConsolidationJson.has_rail_tender;
98
+ this.has_next_rail_tender = cargoConsolidationJson.has_next_rail_tender;
99
+ this.next_dest_node_id = cargoConsolidationJson.next_dest_node_id;
100
+ this.load_numbers = cargoConsolidationJson.load_numbers;
101
+ this.has_splits = cargoConsolidationJson.has_splits;
102
+ this.has_ingated = cargoConsolidationJson.has_ingated;
103
+ this.next_has_ingated = cargoConsolidationJson.next_has_ingated;
104
+ this.trailer_expire = cargoConsolidationJson.trailer_expire;
105
+ this.current_carrier_tender_id =
106
+ cargoConsolidationJson.current_carrier_tender_id;
107
+ this.next_scac = cargoConsolidationJson.next_scac;
108
+ this.long_distance = cargoConsolidationJson.long_distance;
109
+ this.origin_areas = cargoConsolidationJson.origin_areas;
110
+ this.earliest_delivery_date =
111
+ cargoConsolidationJson.earliest_delivery_date;
112
+ this.total_planned_cost = cargoConsolidationJson.total_planned_cost;
113
+ this.edges_until_end = cargoConsolidationJson.edges_until_end;
114
+ this.node_name = cargoConsolidationJson.node_name;
115
+ this.pallet_position_to_go = cargoConsolidationJson.pallet_position_to_go;
116
+ this.do_not_break_seal = cargoConsolidationJson.do_not_break_seal;
117
+ this.asset_status = cargoConsolidationJson.asset_status;
118
+ this.status_description = cargoConsolidationJson.status_description;
119
+ this.expedited = cargoConsolidationJson.expedited;
120
+ this.local_move = cargoConsolidationJson.local_move;
121
+ this.load_count = cargoConsolidationJson.load_count;
122
+ this.active_rail_tender_id = cargoConsolidationJson.active_rail_tender_id;
123
+ this.status_code = cargoConsolidationJson.status_code;
124
+ this.service_level = cargoConsolidationJson.service_level;
125
+ this.destination_locations = cargoConsolidationJson.destination_locations;
126
+ this.carrier_pay_source_type =
127
+ cargoConsolidationJson.carrier_pay_source_type;
128
+ this.consolidation_flag_id = cargoConsolidationJson.consolidation_flag_id;
129
+ this.assigned_names = cargoConsolidationJson.assigned_names;
130
+ this.next_node_sub_area_id = cargoConsolidationJson.next_node_sub_area_id;
131
+ this.max_weight = cargoConsolidationJson.max_weight;
132
+ this.next_node_timezone = cargoConsolidationJson.next_node_timezone;
133
+ this.next_node_timezone_offset =
134
+ cargoConsolidationJson.next_node_timezone_offset;
135
+ this.westbound = cargoConsolidationJson.westbound;
136
+ this.customer_rank_based_on_sales =
137
+ cargoConsolidationJson.customer_rank_based_on_sales;
138
+ this.customer_ids = cargoConsolidationJson.customer_ids;
139
+ this.destination_sub_areas = cargoConsolidationJson.destination_sub_areas;
140
+ this.cutoff_time = cargoConsolidationJson.cutoff_time;
141
+ this.tanker_required = cargoConsolidationJson.tanker_required;
142
+ this.next_driver_id = cargoConsolidationJson.next_driver_id;
143
+ this.next_carrier_id = cargoConsolidationJson.next_carrier_id;
144
+ this.next_perform_date = cargoConsolidationJson.next_perform_date;
145
+ this.intermodal_contract = cargoConsolidationJson.intermodal_contract;
146
+ this.storage_consolidation = cargoConsolidationJson.storage_consolidation;
147
+ }
148
+ else
149
+ throw new Error(`Failed to create new instance of ${CargoConsolidation_Entity.name}`);
150
+ }
151
+ id;
152
+ asset_id;
153
+ driver_id;
154
+ node_id;
155
+ employee_id;
156
+ consolidation_date;
157
+ seal;
158
+ temperature;
159
+ appointment_trip_id;
160
+ loaded;
161
+ carrier_id;
162
+ trip_baserate;
163
+ trip_fuel_surcharge;
164
+ processed_date;
165
+ next_cargo_consolidation_id;
166
+ trip_detail;
167
+ for_delivery;
168
+ override_dispatch_path_edge_id;
169
+ notes;
170
+ review;
171
+ dropped_to_dock;
172
+ workflow_driver_assignment_id;
173
+ start_area_id;
174
+ assignment_order;
175
+ perform_date;
176
+ empty_workflow_move;
177
+ return_temporary;
178
+ start_time;
179
+ end_time;
180
+ loaded_workflow_move;
181
+ warehouse_notes;
182
+ total_cost;
183
+ loading_status;
184
+ pallet_manifest_id;
185
+ unload_node_id;
186
+ person_id;
187
+ otr_posted;
188
+ start_brokerage_rate;
189
+ max_brokerage_rate;
190
+ calc_area_id;
191
+ pieces;
192
+ pallets;
193
+ feet;
194
+ weight;
195
+ next_node_id;
196
+ fill_percent;
197
+ pallets_to_go;
198
+ weight_to_go;
199
+ outbound_dispatch_type;
200
+ dispatch_path_edge_id;
201
+ next_node_type;
202
+ asset_code;
203
+ next_node_name;
204
+ dest_area_id;
205
+ current_eta;
206
+ dest_node_id;
207
+ next_dispatch_type;
208
+ node_type;
209
+ trip_total_cost;
210
+ scac;
211
+ waybill;
212
+ cached_eta;
213
+ reefer_last_contact;
214
+ reefer_temp;
215
+ reefer_fuel_level;
216
+ pickup_number;
217
+ destination_states;
218
+ destination_areas;
219
+ dest_node_type;
220
+ next_leg_dispatch_type;
221
+ next_waybill;
222
+ has_rail_tender;
223
+ has_next_rail_tender;
224
+ next_dest_node_id;
225
+ load_numbers;
226
+ has_splits;
227
+ has_ingated;
228
+ next_has_ingated;
229
+ trailer_expire;
230
+ current_carrier_tender_id;
231
+ next_scac;
232
+ long_distance;
233
+ origin_areas;
234
+ earliest_delivery_date;
235
+ total_planned_cost;
236
+ edges_until_end;
237
+ node_name;
238
+ pallet_position_to_go;
239
+ do_not_break_seal;
240
+ asset_status;
241
+ status_description;
242
+ expedited;
243
+ local_move;
244
+ load_count;
245
+ active_rail_tender_id;
246
+ status_code;
247
+ service_level;
248
+ destination_locations;
249
+ carrier_pay_source_type;
250
+ consolidation_flag_id;
251
+ assigned_names;
252
+ next_node_sub_area_id;
253
+ max_weight;
254
+ next_node_timezone;
255
+ next_node_timezone_offset;
256
+ westbound;
257
+ customer_rank_based_on_sales;
258
+ customer_ids;
259
+ destination_sub_areas;
260
+ cutoff_time;
261
+ tanker_required;
262
+ next_driver_id;
263
+ next_carrier_id;
264
+ next_perform_date;
265
+ intermodal_contract;
266
+ storage_consolidation;
267
+ }
268
+ //# sourceMappingURL=cargoConsolidation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cargoConsolidation.js","sourceRoot":"","sources":["../../../src/entities/cargoConsolidation/cargoConsolidation.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,sBAA+B;IAE/B,IACE,OAAO,sBAAsB,KAAK,QAAQ;QAC1C,sBAAsB,IAAI,IAAI,EAC9B;QACA,yBAAyB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC3D,IAAI,CA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tB,eAAe,CAAW;IAC1B,oBAAoB,CAAW;IAC/B,iBAAiB,CAAU;IAC3B,YAAY,CAAU;IACtB,UAAU,CAAW;IACrB,WAAW,CAAW;IACtB,gBAAgB,CAAW;IAC3B,cAAc,CAAU;IACxB,yBAAyB,CAAU;IACnC,SAAS,CAAU;IACnB,aAAa,CAAW;IACxB,YAAY,CAAU;IACtB,sBAAsB,CAAU;IAChC,kBAAkB,CAAU;IAC5B,eAAe,CAAU;IACzB,SAAS,CAAU;IACnB,qBAAqB,CAAU;IAC/B,iBAAiB,CAAW;IAC5B,YAAY,CAAU;IACtB,kBAAkB,CAAU;IAC5B,SAAS,CAAW;IACpB,UAAU,CAAW;IACrB,UAAU,CAAU;IACpB,qBAAqB,CAAU;IAC/B,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,qBAAqB,CAAY;IACjC,uBAAuB,CAAU;IACjC,qBAAqB,CAAU;IAC/B,cAAc,CAAU;IACxB,qBAAqB,CAAU;IAC/B,UAAU,CAAW;IACrB,kBAAkB,CAAU;IAC5B,yBAAyB,CAAU;IACnC,SAAS,CAAW;IACpB,4BAA4B,CAAU;IACtC,YAAY,CAAY;IACxB,qBAAqB,CAAU;IAC/B,WAAW,CAAU;IACrB,eAAe,CAAW;IAC1B,cAAc,CAAU;IACxB,eAAe,CAAU;IACzB,iBAAiB,CAAU;IAC3B,mBAAmB,CAAU;IAC7B,qBAAqB,CAAW"}
@@ -0,0 +1,5 @@
1
+ import CargoConsolidation_Entity from "./cargoConsolidation";
2
+ export default class CargoConsolidation extends CargoConsolidation_Entity {
3
+ static fromList(cargoConsolidationsJSON: unknown): Array<CargoConsolidation>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import CargoConsolidation_Entity from "./cargoConsolidation";
2
+ export default class CargoConsolidation extends CargoConsolidation_Entity {
3
+ static fromList(cargoConsolidationsJSON) {
4
+ const cargoConsolidations = [];
5
+ if (cargoConsolidationsJSON)
6
+ Array.isArray(cargoConsolidationsJSON) &&
7
+ cargoConsolidationsJSON.forEach((cargoConsolidationJSON) => {
8
+ cargoConsolidations.push(new CargoConsolidation(cargoConsolidationJSON));
9
+ });
10
+ return cargoConsolidations;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/cargoConsolidation/helper.ts"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,MAAM,sBAAsB,CAAC;AAC7D,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,yBAAyB;IACvE,MAAM,CAAC,QAAQ,CAAC,uBAAgC;QAC9C,MAAM,mBAAmB,GAAyB,EAAE,CAAC;QACrD,IAAI,uBAAuB;YACzB,KAAK,CAAC,OAAO,CAAC,uBAAuB,CAAC;gBACpC,uBAAuB,CAAC,OAAO,CAAC,CAAC,sBAAsB,EAAE,EAAE;oBACzD,mBAAmB,CAAC,IAAI,CACtB,IAAI,kBAAkB,CAAC,sBAAsB,CAAC,CAC/C,CAAC;gBACJ,CAAC,CAAC,CAAC;QACP,OAAO,mBAAmB,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as CargoConsolidation } from "./helper";
2
+ export { default as CargoConsolidation_Entity } from "./cargoConsolidation";
@@ -0,0 +1,3 @@
1
+ export { default as CargoConsolidation } from "./helper";
2
+ export { default as CargoConsolidation_Entity } from "./cargoConsolidation";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/cargoConsolidation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACzD,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,sBAAsB,CAAC"}
@@ -0,0 +1,43 @@
1
+ export default class Claim_Entity {
2
+ static requiredFields: never[];
3
+ constructor(claimJson: unknown);
4
+ id?: number;
5
+ load_id?: number;
6
+ claim_category_id?: number;
7
+ claim_type_id?: number;
8
+ bill_signed?: string;
9
+ incident_date?: string;
10
+ customer_claim_reference?: string;
11
+ driver_id?: number;
12
+ person_id?: number;
13
+ picture?: boolean;
14
+ product_location?: string;
15
+ notes?: string;
16
+ node_id?: number;
17
+ load_type?: string;
18
+ claim_status_id?: number;
19
+ created_at?: string;
20
+ customer_id?: number;
21
+ customer_name?: string;
22
+ customer_email?: string;
23
+ customer_phone?: string;
24
+ origin?: string;
25
+ destination?: string;
26
+ claim_value?: number;
27
+ claim_paid?: number;
28
+ days_left?: number;
29
+ reference_number?: number;
30
+ days_to_close?: number;
31
+ seven_day_update?: boolean;
32
+ days_since_last_update?: number;
33
+ has_picture?: boolean;
34
+ last_response_note?: string;
35
+ labels?: string;
36
+ last_response_date?: string;
37
+ node_name?: string;
38
+ type_name?: string;
39
+ claim_type_name?: string;
40
+ claim_status_name?: string;
41
+ customer_osd_notes?: string;
42
+ customer_osd_tms?: string;
43
+ }
@@ -0,0 +1,103 @@
1
+ /**
2
+ * Claim_Entity type guard.
3
+ *
4
+ * @param {any} claimJson Claim object from API
5
+ * @returns {boolean} Return true if type is Claim_Entity
6
+ */
7
+ function validator(claimJson) {
8
+ if (typeof claimJson === "object" && claimJson != null) {
9
+ Claim_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(claimJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Claim_Entity {
17
+ static requiredFields = [];
18
+ constructor(claimJson) {
19
+ if (validator(claimJson)) {
20
+ this.id = claimJson.id;
21
+ this.load_id = claimJson.load_id;
22
+ this.claim_category_id = claimJson.claim_category_id;
23
+ this.claim_type_id = claimJson.claim_type_id;
24
+ this.bill_signed = claimJson.bill_signed;
25
+ this.incident_date = claimJson.incident_date;
26
+ this.customer_claim_reference = claimJson.customer_claim_reference;
27
+ this.driver_id = claimJson.driver_id;
28
+ this.person_id = claimJson.person_id;
29
+ this.picture = claimJson.picture;
30
+ this.product_location = claimJson.product_location;
31
+ this.notes = claimJson.notes;
32
+ this.node_id = claimJson.node_id;
33
+ this.load_type = claimJson.load_type;
34
+ this.claim_status_id = claimJson.claim_status_id;
35
+ this.created_at = claimJson.created_at;
36
+ this.customer_id = claimJson.customer_id;
37
+ this.customer_name = claimJson.customer_name;
38
+ this.customer_email = claimJson.customer_email;
39
+ this.customer_phone = claimJson.customer_phone;
40
+ this.origin = claimJson.origin;
41
+ this.destination = claimJson.destination;
42
+ this.claim_value = claimJson.claim_value;
43
+ this.claim_paid = claimJson.claim_paid;
44
+ this.days_left = claimJson.days_left;
45
+ this.reference_number = claimJson.reference_number;
46
+ this.days_to_close = claimJson.days_to_close;
47
+ this.seven_day_update = claimJson.seven_day_update;
48
+ this.days_since_last_update = claimJson.days_since_last_update;
49
+ this.has_picture = claimJson.has_picture;
50
+ this.last_response_note = claimJson.last_response_note;
51
+ this.labels = claimJson.labels;
52
+ this.last_response_date = claimJson.last_response_date;
53
+ this.node_name = claimJson.node_name;
54
+ this.type_name = claimJson.type_name;
55
+ this.claim_type_name = claimJson.claim_type_name;
56
+ this.claim_status_name = claimJson.claim_status_name;
57
+ this.customer_osd_notes = claimJson.customer_osd_notes;
58
+ this.customer_osd_tms = claimJson.customer_osd_tms;
59
+ }
60
+ else
61
+ throw new Error(`Failed to create new instance of ${Claim_Entity.name}`);
62
+ }
63
+ id;
64
+ load_id;
65
+ claim_category_id;
66
+ claim_type_id;
67
+ bill_signed;
68
+ incident_date;
69
+ customer_claim_reference;
70
+ driver_id;
71
+ person_id;
72
+ picture;
73
+ product_location;
74
+ notes;
75
+ node_id;
76
+ load_type;
77
+ claim_status_id;
78
+ created_at;
79
+ customer_id;
80
+ customer_name;
81
+ customer_email;
82
+ customer_phone;
83
+ origin;
84
+ destination;
85
+ claim_value;
86
+ claim_paid;
87
+ days_left;
88
+ reference_number;
89
+ days_to_close;
90
+ seven_day_update;
91
+ days_since_last_update;
92
+ has_picture;
93
+ last_response_note;
94
+ labels;
95
+ last_response_date;
96
+ node_name;
97
+ type_name;
98
+ claim_type_name;
99
+ claim_status_name;
100
+ customer_osd_notes;
101
+ customer_osd_tms;
102
+ }
103
+ //# sourceMappingURL=claim.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"claim.js","sourceRoot":"","sources":["../../../src/entities/claim/claim.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,SAAkB;IACnC,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,IAAI,IAAI,EAAE;QACtD,YAAY,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC9C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC3C,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,OAAO,OAAO,YAAY;IAC/B,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3B,YAAY,SAAkB;QAC5B,IAAI,SAAS,CAAC,SAAS,CAAC,EAAE;YACxB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC;YACvB,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;YACjC,IAAI,CAAC,iBAAiB,GAAG,SAAS,CAAC,iBAAiB,CAAC;YACrD,IAAI,CAAC,aAAa,GAAG,SAAS,CAAC,aAAa,CAAC;YAC7C,IAAI,CAAC,WAAW,GAAG,SAAS,CAAC,WAAW,CAAC;YACzC,IAAI,CAAC,aAAa,GAAG,SAAS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BAAgB,CAAW;IAC3B,sBAAsB,CAAU;IAChC,WAAW,CAAW;IACtB,kBAAkB,CAAU;IAC5B,MAAM,CAAU;IAChB,kBAAkB,CAAU;IAC5B,SAAS,CAAU;IACnB,SAAS,CAAU;IACnB,eAAe,CAAU;IACzB,iBAAiB,CAAU;IAC3B,kBAAkB,CAAU;IAC5B,gBAAgB,CAAU"}
@@ -0,0 +1,5 @@
1
+ import Claim_Entity from "./claim";
2
+ export default class Claim extends Claim_Entity {
3
+ static fromList(claimsJSON: unknown): Array<Claim>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Claim_Entity from "./claim";
2
+ export default class Claim extends Claim_Entity {
3
+ static fromList(claimsJSON) {
4
+ const claims = [];
5
+ if (claimsJSON)
6
+ Array.isArray(claimsJSON) &&
7
+ claimsJSON.forEach((claimJSON) => {
8
+ claims.push(new Claim(claimJSON));
9
+ });
10
+ return claims;
11
+ }
12
+ toJson() {
13
+ return JSON.stringify(this);
14
+ }
15
+ }
16
+ //# sourceMappingURL=helper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../src/entities/claim/helper.ts"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,SAAS,CAAC;AACnC,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,YAAY;IAC7C,MAAM,CAAC,QAAQ,CAAC,UAAmB;QACjC,MAAM,MAAM,GAAY,EAAE,CAAC;QAC3B,IAAI,UAAU;YACZ,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC;gBACvB,UAAU,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;oBAC/B,MAAM,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;gBACpC,CAAC,CAAC,CAAC;QACP,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as Claim } from "./helper";
2
+ export { default as Claim_Entity } from "./claim";
@@ -0,0 +1,3 @@
1
+ export { default as Claim } from "./helper";
2
+ export { default as Claim_Entity } from "./claim";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/claim/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,14 @@
1
+ export default class ClaimResponse_Entity {
2
+ static requiredFields: never[];
3
+ constructor(claimResponseJson: unknown);
4
+ id?: number;
5
+ claim_id?: number;
6
+ response_date?: string;
7
+ person_id?: number;
8
+ claim_status_id?: number;
9
+ claim_value?: number;
10
+ claim_paid?: number;
11
+ notes?: string;
12
+ action?: string;
13
+ further_action?: string;
14
+ }