@nerdjs/sales-kit 2.0.44 → 2.0.46

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 (93) 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/dispatch/dispatch.d.ts +48 -0
  11. package/dist/entities/dispatch/dispatch.js +113 -0
  12. package/dist/entities/dispatch/dispatch.js.map +1 -0
  13. package/dist/entities/dispatch/helper.d.ts +5 -0
  14. package/dist/entities/dispatch/helper.js +16 -0
  15. package/dist/entities/dispatch/helper.js.map +1 -0
  16. package/dist/entities/dispatch/index.d.ts +2 -0
  17. package/dist/entities/dispatch/index.js +3 -0
  18. package/dist/entities/dispatch/index.js.map +1 -0
  19. package/dist/entities/ediTransaction/ediTransaction.d.ts +22 -0
  20. package/dist/entities/ediTransaction/ediTransaction.js +62 -0
  21. package/dist/entities/ediTransaction/ediTransaction.js.map +1 -0
  22. package/dist/entities/ediTransaction/helper.d.ts +5 -0
  23. package/dist/entities/ediTransaction/helper.js +16 -0
  24. package/dist/entities/ediTransaction/helper.js.map +1 -0
  25. package/dist/entities/ediTransaction/index.d.ts +2 -0
  26. package/dist/entities/ediTransaction/index.js +3 -0
  27. package/dist/entities/ediTransaction/index.js.map +1 -0
  28. package/dist/entities/index.d.ts +3 -0
  29. package/dist/entities/index.js +3 -0
  30. package/dist/entities/index.js.map +1 -1
  31. package/dist/entities/shipcon/shipcon.d.ts +34 -3
  32. package/dist/entities/shipcon/shipcon.js +22 -6
  33. package/dist/entities/shipcon/shipcon.js.map +1 -1
  34. package/dist/hooks/quote/result.js +24 -31
  35. package/dist/hooks/quote/result.js.map +1 -1
  36. package/dist/hooks/tender/form.js +2 -21
  37. package/dist/hooks/tender/form.js.map +1 -1
  38. package/dist/redux/api/salesApi.d.ts +1 -1
  39. package/dist/redux/api/salesApi.js +3 -0
  40. package/dist/redux/api/salesApi.js.map +1 -1
  41. package/dist/redux/appointmentIssue/appointmentIssueEndpoints.d.ts +10 -10
  42. package/dist/redux/appointmentIssueCategory/appointmentIssueCategoryEndpoints.d.ts +11 -11
  43. package/dist/redux/appointmentIssueSubcategory/appointmentIssueSubcategoryEndpoints.d.ts +10 -10
  44. package/dist/redux/appointmentNote/appointmentNoteEndpoints.d.ts +10 -10
  45. package/dist/redux/appointmentNoteType/appointmentNoteTypeEndpoints.d.ts +10 -10
  46. package/dist/redux/archerFile/archerFileEndpoints.d.ts +13 -13
  47. package/dist/redux/carrierName/carrierNameEndpoints.d.ts +10 -10
  48. package/dist/redux/commodityV1/commodityV1Endpoints.d.ts +11 -11
  49. package/dist/redux/contact/contactEndpoints.d.ts +10 -10
  50. package/dist/redux/customer/customerEndpoints.d.ts +16 -16
  51. package/dist/redux/customersAccessorial/customersAccessorialEndpoints.d.ts +9 -9
  52. package/dist/redux/dispatch/dispatchEndpoints.d.ts +36 -0
  53. package/dist/redux/dispatch/dispatchEndpoints.js +64 -0
  54. package/dist/redux/dispatch/dispatchEndpoints.js.map +1 -0
  55. package/dist/redux/dispatch/index.d.ts +2 -0
  56. package/dist/redux/dispatch/index.js +3 -0
  57. package/dist/redux/dispatch/index.js.map +1 -0
  58. package/dist/redux/driverName/driverNameEndpoints.d.ts +9 -9
  59. package/dist/redux/flag/flagEndpoints.d.ts +9 -9
  60. package/dist/redux/genericTender/genericTenderEndpoints.d.ts +10 -10
  61. package/dist/redux/holiday/holidayEndpoints.d.ts +10 -10
  62. package/dist/redux/index.d.ts +1 -0
  63. package/dist/redux/index.js +1 -0
  64. package/dist/redux/index.js.map +1 -1
  65. package/dist/redux/load/loadEndpoints.d.ts +11 -11
  66. package/dist/redux/loadAdjustment/loadAdjustmentEndpoints.d.ts +10 -10
  67. package/dist/redux/loadAdjustmentV1/loadAdjustmentV1Endpoints.d.ts +10 -10
  68. package/dist/redux/loadTender/loadTenderEndpoints.d.ts +12 -12
  69. package/dist/redux/loadV1/loadV1Endpoints.d.ts +76 -38
  70. package/dist/redux/loadV1/loadV1Endpoints.js +54 -1
  71. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  72. package/dist/redux/location/locationEndpoints.d.ts +14 -14
  73. package/dist/redux/locationV1/locationV1Endpoints.d.ts +19 -19
  74. package/dist/redux/nmfcClass/nmfcClassEndpoints.d.ts +9 -9
  75. package/dist/redux/nodeName/nodeNameEndpoints.d.ts +10 -10
  76. package/dist/redux/notification/notificationEndpoints.d.ts +12 -12
  77. package/dist/redux/person/personEndpoints.d.ts +11 -11
  78. package/dist/redux/personName/personNameEndpoints.d.ts +10 -10
  79. package/dist/redux/quote/quoteEndpoints.d.ts +22 -22
  80. package/dist/redux/quote/quoteHooks.d.ts +2 -2
  81. package/dist/redux/quoteAccessorial/quoteAccessorialEndpoints.d.ts +9 -9
  82. package/dist/redux/quoteAccessorialV1/quoteAccessorialV1Endpoints.d.ts +10 -10
  83. package/dist/redux/rateReview/rateReviewEndpoints.d.ts +10 -10
  84. package/dist/redux/shipcon/shipconEndpoints.d.ts +10 -10
  85. package/dist/redux/shipconV1/shipconV1Endpoints.d.ts +16 -16
  86. package/dist/redux/shipconV1/shipconV1Endpoints.js +4 -3
  87. package/dist/redux/shipconV1/shipconV1Endpoints.js.map +1 -1
  88. package/dist/redux/tender/tenderEndpoints.d.ts +9 -9
  89. package/dist/redux/trailerAvailability/customerEndpoints.d.ts +4 -4
  90. package/dist/redux/types.d.ts +2 -2
  91. package/dist/redux/unitV1/unitV1Endpoints.d.ts +9 -9
  92. package/dist/redux/userNoteV1/userNoteV1Endpoints.d.ts +10 -10
  93. 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,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACxD,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,yBAAyB;IAC5C,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3B,YAAY,sBAAgC;QAC1C,IAAI,SAAS,CAAC,sBAAsB,CAAC,EAAE;YACrC,IAAI,CAAC,EAAE,GAAG,sBAAsB,CAAC,EAAE,CAAC;YACpC,IAAI,CAAC,QAAQ,GAAG,sBAAsB,CAAC,QAAQ,CAAC;YAChD,IAAI,CAAC,SAAS,GAAG,sBAAsB,CAAC,SAAS,CAAC;YAClD,IAAI,CAAC,OAAO,GAAG,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AqB,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,48 @@
1
+ export default class Dispatch_Entity {
2
+ static requiredFields: never[];
3
+ constructor(dispatchJson: unknown);
4
+ id?: number;
5
+ asset_id?: number;
6
+ commodity_piece_id?: number;
7
+ driver_id?: number;
8
+ carrier_id?: number;
9
+ quote_path_edge_id?: number;
10
+ dispatch_path_edge_id?: number;
11
+ leg_id?: number;
12
+ destination_node?: string;
13
+ dispatch_type?: string;
14
+ dispatch_date?: string;
15
+ processed_date?: string;
16
+ edi_processed?: boolean;
17
+ warehouse_order?: number;
18
+ cached_eta?: string;
19
+ pickup_number?: string;
20
+ person_id?: number;
21
+ trailer_expire?: string;
22
+ planned_cost?: number;
23
+ real_cost?: number;
24
+ created_at?: string;
25
+ updated_at?: string;
26
+ terminal_dispatch?: boolean;
27
+ calc_area_id?: number;
28
+ load_id?: number;
29
+ start_name?: string;
30
+ end_name?: string;
31
+ asset_code?: string;
32
+ driver_name?: string;
33
+ carrier_name?: string;
34
+ start_area_id?: number;
35
+ leg_type?: string;
36
+ end_area_id?: number;
37
+ previous_carrier_id?: number;
38
+ previous_driver_id?: number;
39
+ previous_driver_phone?: string;
40
+ start_node_id?: number;
41
+ end_node_id?: number;
42
+ express_load_id?: number;
43
+ pallets?: number;
44
+ shipper_city?: string;
45
+ consignee_city?: string;
46
+ consignee_state?: string;
47
+ edges_until_end?: number;
48
+ }
@@ -0,0 +1,113 @@
1
+ /**
2
+ * Dispatch_Entity type guard.
3
+ *
4
+ * @param {any} dispatchJson Dispatch object from API
5
+ * @returns {boolean} Return true if type is Dispatch_Entity
6
+ */
7
+ function validator(dispatchJson) {
8
+ if (typeof dispatchJson === "object" && dispatchJson != null) {
9
+ Dispatch_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(dispatchJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class Dispatch_Entity {
17
+ static requiredFields = [];
18
+ constructor(dispatchJson) {
19
+ if (validator(dispatchJson)) {
20
+ this.id = dispatchJson.id;
21
+ this.asset_id = dispatchJson.asset_id;
22
+ this.commodity_piece_id = dispatchJson.commodity_piece_id;
23
+ this.driver_id = dispatchJson.driver_id;
24
+ this.carrier_id = dispatchJson.carrier_id;
25
+ this.quote_path_edge_id = dispatchJson.quote_path_edge_id;
26
+ this.dispatch_path_edge_id = dispatchJson.dispatch_path_edge_id;
27
+ this.leg_id = dispatchJson.leg_id;
28
+ this.destination_node = dispatchJson.destination_node;
29
+ this.dispatch_type = dispatchJson.dispatch_type;
30
+ this.dispatch_date = dispatchJson.dispatch_date;
31
+ this.processed_date = dispatchJson.processed_date;
32
+ this.edi_processed = dispatchJson.edi_processed;
33
+ this.warehouse_order = dispatchJson.warehouse_order;
34
+ this.cached_eta = dispatchJson.cached_eta;
35
+ this.pickup_number = dispatchJson.pickup_number;
36
+ this.person_id = dispatchJson.person_id;
37
+ this.trailer_expire = dispatchJson.trailer_expire;
38
+ this.planned_cost = dispatchJson.planned_cost;
39
+ this.real_cost = dispatchJson.real_cost;
40
+ this.created_at = dispatchJson.created_at;
41
+ this.updated_at = dispatchJson.updated_at;
42
+ this.terminal_dispatch = dispatchJson.terminal_dispatch;
43
+ this.calc_area_id = dispatchJson.calc_area_id;
44
+ this.load_id = dispatchJson.load_id;
45
+ this.start_name = dispatchJson.start_name;
46
+ this.end_name = dispatchJson.end_name;
47
+ this.asset_code = dispatchJson.asset_code;
48
+ this.driver_name = dispatchJson.driver_name;
49
+ this.carrier_name = dispatchJson.carrier_name;
50
+ this.start_area_id = dispatchJson.start_area_id;
51
+ this.leg_type = dispatchJson.leg_type;
52
+ this.end_area_id = dispatchJson.end_area_id;
53
+ this.previous_carrier_id = dispatchJson.previous_carrier_id;
54
+ this.previous_driver_id = dispatchJson.previous_driver_id;
55
+ this.previous_driver_phone = dispatchJson.previous_driver_phone;
56
+ this.start_node_id = dispatchJson.start_node_id;
57
+ this.end_node_id = dispatchJson.end_node_id;
58
+ this.express_load_id = dispatchJson.express_load_id;
59
+ this.pallets = dispatchJson.pallets;
60
+ this.shipper_city = dispatchJson.shipper_city;
61
+ this.consignee_city = dispatchJson.consignee_city;
62
+ this.consignee_state = dispatchJson.consignee_state;
63
+ this.edges_until_end = dispatchJson.edges_until_end;
64
+ }
65
+ else
66
+ throw new Error(`Failed to create new instance of ${Dispatch_Entity.name}`);
67
+ }
68
+ id;
69
+ asset_id;
70
+ commodity_piece_id;
71
+ driver_id;
72
+ carrier_id;
73
+ quote_path_edge_id;
74
+ dispatch_path_edge_id;
75
+ leg_id;
76
+ destination_node;
77
+ dispatch_type;
78
+ dispatch_date;
79
+ processed_date;
80
+ edi_processed;
81
+ warehouse_order;
82
+ cached_eta;
83
+ pickup_number;
84
+ person_id;
85
+ trailer_expire;
86
+ planned_cost;
87
+ real_cost;
88
+ created_at;
89
+ updated_at;
90
+ terminal_dispatch;
91
+ calc_area_id;
92
+ load_id;
93
+ start_name;
94
+ end_name;
95
+ asset_code;
96
+ driver_name;
97
+ carrier_name;
98
+ start_area_id;
99
+ leg_type;
100
+ end_area_id;
101
+ previous_carrier_id;
102
+ previous_driver_id;
103
+ previous_driver_phone;
104
+ start_node_id;
105
+ end_node_id;
106
+ express_load_id;
107
+ pallets;
108
+ shipper_city;
109
+ consignee_city;
110
+ consignee_state;
111
+ edges_until_end;
112
+ }
113
+ //# sourceMappingURL=dispatch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dispatch.js","sourceRoot":"","sources":["../../../src/entities/dispatch/dispatch.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,YAAqB;IACtC,IAAI,OAAO,YAAY,KAAK,QAAQ,IAAI,YAAY,IAAI,IAAI,EAAE;QAC5D,eAAe,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACjD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC9C,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,eAAe;IAClC,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC;IAE3B,YAAY,YAAqB;QAC/B,IAAI,SAAS,CAAC,YAAY,CAAC,EAAE;YAC3B,IAAI,CAAC,EAAE,GAAG,YAAY,CAAC,EAAE,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;YACtC,IAAI,CAAC,kBAAkB,GAAG,YAAY,CAAC,kBAAkB,CAAC;YAC1D,IAAI,CAAC,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC;YACxC,IAAI,CAAC,UAAU,GAAG,YAAY,CAA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CAAU;IACvB,aAAa,CAAU;IACvB,cAAc,CAAU;IACxB,aAAa,CAAW;IACxB,eAAe,CAAU;IACzB,UAAU,CAAU;IACpB,aAAa,CAAU;IACvB,SAAS,CAAU;IACnB,cAAc,CAAU;IACxB,YAAY,CAAU;IACtB,SAAS,CAAU;IACnB,UAAU,CAAU;IACpB,UAAU,CAAU;IACpB,iBAAiB,CAAW;IAC5B,YAAY,CAAU;IACtB,OAAO,CAAU;IACjB,UAAU,CAAU;IACpB,QAAQ,CAAU;IAClB,UAAU,CAAU;IACpB,WAAW,CAAU;IACrB,YAAY,CAAU;IACtB,aAAa,CAAU;IACvB,QAAQ,CAAU;IAClB,WAAW,CAAU;IACrB,mBAAmB,CAAU;IAC7B,kBAAkB,CAAU;IAC5B,qBAAqB,CAAU;IAC/B,aAAa,CAAU;IACvB,WAAW,CAAU;IACrB,eAAe,CAAU;IACzB,OAAO,CAAU;IACjB,YAAY,CAAU;IACtB,cAAc,CAAU;IACxB,eAAe,CAAU;IACzB,eAAe,CAAU"}
@@ -0,0 +1,5 @@
1
+ import Dispatch_Entity from "./dispatch";
2
+ export default class Dispatch extends Dispatch_Entity {
3
+ static fromList(dispatchsJSON: unknown): Array<Dispatch>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import Dispatch_Entity from "./dispatch";
2
+ export default class Dispatch extends Dispatch_Entity {
3
+ static fromList(dispatchsJSON) {
4
+ const dispatchs = [];
5
+ if (dispatchsJSON)
6
+ Array.isArray(dispatchsJSON) &&
7
+ dispatchsJSON.forEach((dispatchJSON) => {
8
+ dispatchs.push(new Dispatch(dispatchJSON));
9
+ });
10
+ return dispatchs;
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/dispatch/helper.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,YAAY,CAAC;AACzC,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,eAAe;IACnD,MAAM,CAAC,QAAQ,CAAC,aAAsB;QACpC,MAAM,SAAS,GAAe,EAAE,CAAC;QACjC,IAAI,aAAa;YACf,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC;gBAC1B,aAAa,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,EAAE;oBACrC,SAAS,CAAC,IAAI,CAAC,IAAI,QAAQ,CAAC,YAAY,CAAC,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAC;QACP,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as Dispatch } from "./helper";
2
+ export { default as Dispatch_Entity } from "./dispatch";
@@ -0,0 +1,3 @@
1
+ export { default as Dispatch } from "./helper";
2
+ export { default as Dispatch_Entity } from "./dispatch";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/dispatch/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,YAAY,CAAC"}