@nerdjs/sales-kit 2.0.39 → 2.0.40

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 (77) hide show
  1. package/dist/entities/appointmentArrival/appointmentArrival.d.ts +36 -0
  2. package/dist/entities/appointmentArrival/appointmentArrival.js +90 -0
  3. package/dist/entities/appointmentArrival/appointmentArrival.js.map +1 -0
  4. package/dist/entities/appointmentArrival/helper.d.ts +5 -0
  5. package/dist/entities/appointmentArrival/helper.js +16 -0
  6. package/dist/entities/appointmentArrival/helper.js.map +1 -0
  7. package/dist/entities/appointmentArrival/index.d.ts +2 -0
  8. package/dist/entities/appointmentArrival/index.js +3 -0
  9. package/dist/entities/appointmentArrival/index.js.map +1 -0
  10. package/dist/entities/carrierTender/carrierTender.d.ts +69 -0
  11. package/dist/entities/carrierTender/carrierTender.js +160 -0
  12. package/dist/entities/carrierTender/carrierTender.js.map +1 -0
  13. package/dist/entities/carrierTender/helper.d.ts +5 -0
  14. package/dist/entities/carrierTender/helper.js +16 -0
  15. package/dist/entities/carrierTender/helper.js.map +1 -0
  16. package/dist/entities/carrierTender/index.d.ts +2 -0
  17. package/dist/entities/carrierTender/index.js +3 -0
  18. package/dist/entities/carrierTender/index.js.map +1 -0
  19. package/dist/entities/hosLog/helper.d.ts +5 -0
  20. package/dist/entities/hosLog/helper.js +16 -0
  21. package/dist/entities/hosLog/helper.js.map +1 -0
  22. package/dist/entities/hosLog/hosLog.d.ts +38 -0
  23. package/dist/entities/hosLog/hosLog.js +93 -0
  24. package/dist/entities/hosLog/hosLog.js.map +1 -0
  25. package/dist/entities/hosLog/index.d.ts +2 -0
  26. package/dist/entities/hosLog/index.js +3 -0
  27. package/dist/entities/hosLog/index.js.map +1 -0
  28. package/dist/entities/index.d.ts +6 -0
  29. package/dist/entities/index.js +6 -0
  30. package/dist/entities/index.js.map +1 -1
  31. package/dist/entities/loadChange/helper.d.ts +5 -0
  32. package/dist/entities/loadChange/helper.js +16 -0
  33. package/dist/entities/loadChange/helper.js.map +1 -0
  34. package/dist/entities/loadChange/index.d.ts +2 -0
  35. package/dist/entities/loadChange/index.js +3 -0
  36. package/dist/entities/loadChange/index.js.map +1 -0
  37. package/dist/entities/loadChange/loadChange.d.ts +11 -0
  38. package/dist/entities/loadChange/loadChange.js +39 -0
  39. package/dist/entities/loadChange/loadChange.js.map +1 -0
  40. package/dist/entities/location/location.js +2 -2
  41. package/dist/entities/location/location.js.map +1 -1
  42. package/dist/entities/quoteRateRecord/helper.d.ts +5 -0
  43. package/dist/entities/quoteRateRecord/helper.js +16 -0
  44. package/dist/entities/quoteRateRecord/helper.js.map +1 -0
  45. package/dist/entities/quoteRateRecord/index.d.ts +2 -0
  46. package/dist/entities/quoteRateRecord/index.js +3 -0
  47. package/dist/entities/quoteRateRecord/index.js.map +1 -0
  48. package/dist/entities/quoteRateRecord/quoteRateRecord.d.ts +50 -0
  49. package/dist/entities/quoteRateRecord/quoteRateRecord.js +121 -0
  50. package/dist/entities/quoteRateRecord/quoteRateRecord.js.map +1 -0
  51. package/dist/entities/workflowEvent/helper.d.ts +5 -0
  52. package/dist/entities/workflowEvent/helper.js +16 -0
  53. package/dist/entities/workflowEvent/helper.js.map +1 -0
  54. package/dist/entities/workflowEvent/index.d.ts +2 -0
  55. package/dist/entities/workflowEvent/index.js +3 -0
  56. package/dist/entities/workflowEvent/index.js.map +1 -0
  57. package/dist/entities/workflowEvent/workflowEvent.d.ts +34 -0
  58. package/dist/entities/workflowEvent/workflowEvent.js +87 -0
  59. package/dist/entities/workflowEvent/workflowEvent.js.map +1 -0
  60. package/dist/hooks/locationsForm/locationsForm.js +11 -6
  61. package/dist/hooks/locationsForm/locationsForm.js.map +1 -1
  62. package/dist/hooks/locationsForm/locationsFormSales.js +6 -8
  63. package/dist/hooks/locationsForm/locationsFormSales.js.map +1 -1
  64. package/dist/hooks/quote/form.js +10 -8
  65. package/dist/hooks/quote/form.js.map +1 -1
  66. package/dist/hooks/quote/helpers.d.ts +12 -10
  67. package/dist/hooks/quote/helpers.js +10 -8
  68. package/dist/hooks/quote/helpers.js.map +1 -1
  69. package/dist/hooks/tender/form.js +10 -10
  70. package/dist/hooks/tender/form.js.map +1 -1
  71. package/dist/hooks/tender/helpers.d.ts +4 -4
  72. package/dist/hooks/tender/helpers.js +1 -1
  73. package/dist/hooks/tender/helpers.js.map +1 -1
  74. package/dist/redux/loadV1/loadV1Endpoints.d.ts +62 -2
  75. package/dist/redux/loadV1/loadV1Endpoints.js +55 -1
  76. package/dist/redux/loadV1/loadV1Endpoints.js.map +1 -1
  77. package/package.json +2 -1
@@ -0,0 +1,36 @@
1
+ export default class AppointmentArrival_Entity {
2
+ static requiredFields: string[];
3
+ constructor(appointmentArrivalJson?: unknown);
4
+ id?: number;
5
+ ship_con_id?: number;
6
+ arrival_date?: string;
7
+ arrival_time?: string;
8
+ on_time?: boolean;
9
+ arrival_type?: string;
10
+ asset_id?: number;
11
+ from_geofence?: boolean;
12
+ depart_time?: string;
13
+ email_sent?: boolean;
14
+ notif_status?: string;
15
+ notif_arrival_time?: string;
16
+ notif_schedule_time?: string;
17
+ depart_date?: string;
18
+ location_id?: number;
19
+ customer_id?: number;
20
+ driver_id?: number;
21
+ location_name?: string;
22
+ customer_name?: string;
23
+ driver_name?: string;
24
+ load_id?: number;
25
+ carrier_name?: string;
26
+ loading_time?: number;
27
+ load_type?: string;
28
+ ship_con_time_from?: string;
29
+ ship_con_time_to?: string;
30
+ accessorials?: any;
31
+ downtime_amount?: number;
32
+ invoiced_amount?: number;
33
+ invoice_closed_date?: string;
34
+ real_on_time?: boolean;
35
+ person_id?: number;
36
+ }
@@ -0,0 +1,90 @@
1
+ /**
2
+ * AppointmentArrival_Entity type guard.
3
+ *
4
+ * @param {any} appointmentArrivalJson AppointmentArrival object from API
5
+ * @returns {boolean} Return true if type is AppointmentArrival_Entity
6
+ */
7
+ function validator(appointmentArrivalJson) {
8
+ if (typeof appointmentArrivalJson === "object" &&
9
+ appointmentArrivalJson != null) {
10
+ AppointmentArrival_Entity.requiredFields.forEach((element) => {
11
+ if (!Object.keys(appointmentArrivalJson).includes(element))
12
+ throw new Error(`Field ${element} is null or undefined`);
13
+ });
14
+ }
15
+ return true;
16
+ }
17
+ export default class AppointmentArrival_Entity {
18
+ static requiredFields = ["id"];
19
+ constructor(appointmentArrivalJson) {
20
+ if (validator(appointmentArrivalJson)) {
21
+ this.id = appointmentArrivalJson.id;
22
+ this.ship_con_id = appointmentArrivalJson.ship_con_id;
23
+ this.arrival_date = appointmentArrivalJson.arrival_date;
24
+ this.arrival_time = appointmentArrivalJson.arrival_time;
25
+ this.on_time = appointmentArrivalJson.on_time;
26
+ this.arrival_type = appointmentArrivalJson.arrival_type;
27
+ this.asset_id = appointmentArrivalJson.asset_id;
28
+ this.from_geofence = appointmentArrivalJson.from_geofence;
29
+ this.depart_time = appointmentArrivalJson.depart_time;
30
+ this.email_sent = appointmentArrivalJson.email_sent;
31
+ this.notif_status = appointmentArrivalJson.notif_status;
32
+ this.notif_arrival_time = appointmentArrivalJson.notif_arrival_time;
33
+ this.notif_schedule_time = appointmentArrivalJson.notif_schedule_time;
34
+ this.depart_date = appointmentArrivalJson.depart_date;
35
+ this.location_id = appointmentArrivalJson.location_id;
36
+ this.customer_id = appointmentArrivalJson.customer_id;
37
+ this.driver_id = appointmentArrivalJson.driver_id;
38
+ this.location_name = appointmentArrivalJson.location_name;
39
+ this.customer_name = appointmentArrivalJson.customer_name;
40
+ this.driver_name = appointmentArrivalJson.driver_name;
41
+ this.load_id = appointmentArrivalJson.load_id;
42
+ this.carrier_name = appointmentArrivalJson.carrier_name;
43
+ this.loading_time = appointmentArrivalJson.loading_time;
44
+ this.load_type = appointmentArrivalJson.load_type;
45
+ this.ship_con_time_from = appointmentArrivalJson.ship_con_time_from;
46
+ this.ship_con_time_to = appointmentArrivalJson.ship_con_time_to;
47
+ this.accessorials = appointmentArrivalJson.accessorials;
48
+ this.downtime_amount = appointmentArrivalJson.downtime_amount;
49
+ this.invoiced_amount = appointmentArrivalJson.invoiced_amount;
50
+ this.invoice_closed_date = appointmentArrivalJson.invoice_closed_date;
51
+ this.real_on_time = appointmentArrivalJson.real_on_time;
52
+ this.person_id = appointmentArrivalJson.person_id;
53
+ }
54
+ else
55
+ throw new Error(`Failed to create new instance of ${AppointmentArrival_Entity.name}`);
56
+ }
57
+ id;
58
+ ship_con_id;
59
+ arrival_date;
60
+ arrival_time;
61
+ on_time;
62
+ arrival_type;
63
+ asset_id;
64
+ from_geofence;
65
+ depart_time;
66
+ email_sent;
67
+ notif_status;
68
+ notif_arrival_time;
69
+ notif_schedule_time;
70
+ depart_date;
71
+ location_id;
72
+ customer_id;
73
+ driver_id;
74
+ location_name;
75
+ customer_name;
76
+ driver_name;
77
+ load_id;
78
+ carrier_name;
79
+ loading_time;
80
+ load_type;
81
+ ship_con_time_from;
82
+ ship_con_time_to;
83
+ accessorials;
84
+ downtime_amount;
85
+ invoiced_amount;
86
+ invoice_closed_date;
87
+ real_on_time;
88
+ person_id;
89
+ }
90
+ //# sourceMappingURL=appointmentArrival.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appointmentArrival.js","sourceRoot":"","sources":["../../../src/entities/appointmentArrival/appointmentArrival.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;I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ACtB,YAAY,CAAU;IACtB,SAAS,CAAU;IACnB,kBAAkB,CAAU;IAC5B,gBAAgB,CAAU;IAC1B,YAAY,CAAO;IACnB,eAAe,CAAU;IACzB,eAAe,CAAU;IACzB,mBAAmB,CAAU;IAC7B,YAAY,CAAW;IACvB,SAAS,CAAU"}
@@ -0,0 +1,5 @@
1
+ import AppointmentArrival_Entity from "./appointmentArrival";
2
+ export default class AppointmentArrival extends AppointmentArrival_Entity {
3
+ static fromList(appointmentArrivalsJSON: unknown): Array<AppointmentArrival>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import AppointmentArrival_Entity from "./appointmentArrival";
2
+ export default class AppointmentArrival extends AppointmentArrival_Entity {
3
+ static fromList(appointmentArrivalsJSON) {
4
+ const appointmentArrivals = [];
5
+ if (appointmentArrivalsJSON)
6
+ Array.isArray(appointmentArrivalsJSON) &&
7
+ appointmentArrivalsJSON.forEach((appointmentArrivalJSON) => {
8
+ appointmentArrivals.push(new AppointmentArrival(appointmentArrivalJSON));
9
+ });
10
+ return appointmentArrivals;
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/appointmentArrival/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 AppointmentArrival } from "./helper";
2
+ export { default as AppointmentArrival_Entity } from "./appointmentArrival";
@@ -0,0 +1,3 @@
1
+ export { default as AppointmentArrival } from "./helper";
2
+ export { default as AppointmentArrival_Entity } from "./appointmentArrival";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/appointmentArrival/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,69 @@
1
+ export default class CarrierTender_Entity {
2
+ static requiredFields: string[];
3
+ constructor(carrierTenderJson?: unknown);
4
+ id?: number;
5
+ carrier_id?: number;
6
+ base_rate?: number;
7
+ fuel_surcharge?: number;
8
+ tender_date?: string;
9
+ trip_type?: string;
10
+ trip_id?: number;
11
+ cancelled?: boolean;
12
+ asset_id?: number;
13
+ carrier_pay_source_type?: string;
14
+ notes?: string;
15
+ area_id?: number;
16
+ generated?: boolean;
17
+ carrier_driver_name?: string;
18
+ fuel_percent?: number;
19
+ carrier_invoice_id?: number;
20
+ performed_date?: string;
21
+ approved?: boolean;
22
+ needs_review?: boolean;
23
+ start_node_id?: number;
24
+ tender_emailed?: boolean;
25
+ tender_response?: boolean;
26
+ carrier_tender_status?: string;
27
+ rate_node_id?: number;
28
+ accessorial_only?: boolean;
29
+ person_id?: number;
30
+ revision_count?: number;
31
+ carrier_pay_contract_id?: number;
32
+ otr_edge?: boolean;
33
+ total_trip_miles?: number;
34
+ reminder_date?: string;
35
+ to_email?: string;
36
+ carrier_provided_reference?: string;
37
+ total_load_amount?: number;
38
+ end_node_id?: number;
39
+ credit_amount?: number;
40
+ credit_notes?: string;
41
+ driver_name?: string;
42
+ driver_phone?: string;
43
+ driver_tractor_number?: string;
44
+ driver_trailer_number?: string;
45
+ carrier_name?: string;
46
+ total_cost?: number;
47
+ contract_name?: string;
48
+ total_accessorials?: number;
49
+ total_deductions?: number;
50
+ load_reference_codes?: string;
51
+ type_of_loads?: string;
52
+ paid?: boolean;
53
+ load_ids?: string;
54
+ person_name?: string;
55
+ backup_doc_id?: number;
56
+ backup_doc_created_at?: string;
57
+ carrier_reference?: string;
58
+ load_invoice_dates?: string;
59
+ last_note?: string;
60
+ duplicate_invoice_file_id?: number;
61
+ duplicate_paid_invoice_file_id?: number;
62
+ dispatcher_email?: string;
63
+ credit_term_id?: number;
64
+ needs_cod_file?: boolean;
65
+ carrier_risk_assessment?: string;
66
+ carrier_factoring_company_name?: string;
67
+ single_load_customer_name?: string;
68
+ full_federal_name?: string;
69
+ }
@@ -0,0 +1,160 @@
1
+ /**
2
+ * CarrierTender_Entity type guard.
3
+ *
4
+ * @param {any} carrierTenderJson CarrierTender object from API
5
+ * @returns {boolean} Return true if type is CarrierTender_Entity
6
+ */
7
+ function validator(carrierTenderJson) {
8
+ if (typeof carrierTenderJson === "object" && carrierTenderJson != null) {
9
+ CarrierTender_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(carrierTenderJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class CarrierTender_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(carrierTenderJson) {
19
+ if (validator(carrierTenderJson)) {
20
+ this.id = carrierTenderJson.id;
21
+ this.carrier_id = carrierTenderJson.carrier_id;
22
+ this.base_rate = carrierTenderJson.base_rate;
23
+ this.fuel_surcharge = carrierTenderJson.fuel_surcharge;
24
+ this.tender_date = carrierTenderJson.tender_date;
25
+ this.trip_type = carrierTenderJson.trip_type;
26
+ this.trip_id = carrierTenderJson.trip_id;
27
+ this.cancelled = carrierTenderJson.cancelled;
28
+ this.asset_id = carrierTenderJson.asset_id;
29
+ this.carrier_pay_source_type = carrierTenderJson.carrier_pay_source_type;
30
+ this.notes = carrierTenderJson.notes;
31
+ this.area_id = carrierTenderJson.area_id;
32
+ this.generated = carrierTenderJson.generated;
33
+ this.carrier_driver_name = carrierTenderJson.carrier_driver_name;
34
+ this.fuel_percent = carrierTenderJson.fuel_percent;
35
+ this.carrier_invoice_id = carrierTenderJson.carrier_invoice_id;
36
+ this.performed_date = carrierTenderJson.performed_date;
37
+ this.approved = carrierTenderJson.approved;
38
+ this.needs_review = carrierTenderJson.needs_review;
39
+ this.start_node_id = carrierTenderJson.start_node_id;
40
+ this.tender_emailed = carrierTenderJson.tender_emailed;
41
+ this.tender_response = carrierTenderJson.tender_response;
42
+ this.carrier_tender_status = carrierTenderJson.carrier_tender_status;
43
+ this.rate_node_id = carrierTenderJson.rate_node_id;
44
+ this.accessorial_only = carrierTenderJson.accessorial_only;
45
+ this.person_id = carrierTenderJson.person_id;
46
+ this.revision_count = carrierTenderJson.revision_count;
47
+ this.carrier_pay_contract_id = carrierTenderJson.carrier_pay_contract_id;
48
+ this.otr_edge = carrierTenderJson.otr_edge;
49
+ this.total_trip_miles = carrierTenderJson.total_trip_miles;
50
+ this.reminder_date = carrierTenderJson.reminder_date;
51
+ this.to_email = carrierTenderJson.to_email;
52
+ this.carrier_provided_reference =
53
+ carrierTenderJson.carrier_provided_reference;
54
+ this.total_load_amount = carrierTenderJson.total_load_amount;
55
+ this.end_node_id = carrierTenderJson.end_node_id;
56
+ this.credit_amount = carrierTenderJson.credit_amount;
57
+ this.credit_notes = carrierTenderJson.credit_notes;
58
+ this.driver_name = carrierTenderJson.driver_name;
59
+ this.driver_phone = carrierTenderJson.driver_phone;
60
+ this.driver_tractor_number = carrierTenderJson.driver_tractor_number;
61
+ this.driver_trailer_number = carrierTenderJson.driver_trailer_number;
62
+ this.carrier_name = carrierTenderJson.carrier_name;
63
+ this.total_cost = carrierTenderJson.total_cost;
64
+ this.contract_name = carrierTenderJson.contract_name;
65
+ this.total_accessorials = carrierTenderJson.total_accessorials;
66
+ this.total_deductions = carrierTenderJson.total_deductions;
67
+ this.load_reference_codes = carrierTenderJson.load_reference_codes;
68
+ this.type_of_loads = carrierTenderJson.type_of_loads;
69
+ this.paid = carrierTenderJson.paid;
70
+ this.load_ids = carrierTenderJson.load_ids;
71
+ this.person_name = carrierTenderJson.person_name;
72
+ this.backup_doc_id = carrierTenderJson.backup_doc_id;
73
+ this.backup_doc_created_at = carrierTenderJson.backup_doc_created_at;
74
+ this.carrier_reference = carrierTenderJson.carrier_reference;
75
+ this.load_invoice_dates = carrierTenderJson.load_invoice_dates;
76
+ this.last_note = carrierTenderJson.last_note;
77
+ this.duplicate_invoice_file_id =
78
+ carrierTenderJson.duplicate_invoice_file_id;
79
+ this.duplicate_paid_invoice_file_id =
80
+ carrierTenderJson.duplicate_paid_invoice_file_id;
81
+ this.dispatcher_email = carrierTenderJson.dispatcher_email;
82
+ this.credit_term_id = carrierTenderJson.credit_term_id;
83
+ this.needs_cod_file = carrierTenderJson.needs_cod_file;
84
+ this.carrier_risk_assessment = carrierTenderJson.carrier_risk_assessment;
85
+ this.carrier_factoring_company_name =
86
+ carrierTenderJson.carrier_factoring_company_name;
87
+ this.single_load_customer_name =
88
+ carrierTenderJson.single_load_customer_name;
89
+ this.full_federal_name = carrierTenderJson.full_federal_name;
90
+ }
91
+ else
92
+ throw new Error(`Failed to create new instance of ${CarrierTender_Entity.name}`);
93
+ }
94
+ id;
95
+ carrier_id;
96
+ base_rate;
97
+ fuel_surcharge;
98
+ tender_date;
99
+ trip_type;
100
+ trip_id;
101
+ cancelled;
102
+ asset_id;
103
+ carrier_pay_source_type;
104
+ notes;
105
+ area_id;
106
+ generated;
107
+ carrier_driver_name;
108
+ fuel_percent;
109
+ carrier_invoice_id;
110
+ performed_date;
111
+ approved;
112
+ needs_review;
113
+ start_node_id;
114
+ tender_emailed;
115
+ tender_response;
116
+ carrier_tender_status;
117
+ rate_node_id;
118
+ accessorial_only;
119
+ person_id;
120
+ revision_count;
121
+ carrier_pay_contract_id;
122
+ otr_edge;
123
+ total_trip_miles;
124
+ reminder_date;
125
+ to_email;
126
+ carrier_provided_reference;
127
+ total_load_amount;
128
+ end_node_id;
129
+ credit_amount;
130
+ credit_notes;
131
+ driver_name;
132
+ driver_phone;
133
+ driver_tractor_number;
134
+ driver_trailer_number;
135
+ carrier_name;
136
+ total_cost;
137
+ contract_name;
138
+ total_accessorials;
139
+ total_deductions;
140
+ load_reference_codes;
141
+ type_of_loads;
142
+ paid;
143
+ load_ids;
144
+ person_name;
145
+ backup_doc_id;
146
+ backup_doc_created_at;
147
+ carrier_reference;
148
+ load_invoice_dates;
149
+ last_note;
150
+ duplicate_invoice_file_id;
151
+ duplicate_paid_invoice_file_id;
152
+ dispatcher_email;
153
+ credit_term_id;
154
+ needs_cod_file;
155
+ carrier_risk_assessment;
156
+ carrier_factoring_company_name;
157
+ single_load_customer_name;
158
+ full_federal_name;
159
+ }
160
+ //# sourceMappingURL=carrierTender.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"carrierTender.js","sourceRoot":"","sources":["../../../src/entities/carrierTender/carrierTender.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAChB,iBAA0B;IAE1B,IAAI,OAAO,iBAAiB,KAAK,QAAQ,IAAI,iBAAiB,IAAI,IAAI,EAAE;QACtE,oBAAoB,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACtD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBACnD,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,C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kB,CAAU;IAC5B,gBAAgB,CAAU;IAC1B,oBAAoB,CAAU;IAC9B,aAAa,CAAU;IACvB,IAAI,CAAW;IACf,QAAQ,CAAU;IAClB,WAAW,CAAU;IACrB,aAAa,CAAU;IACvB,qBAAqB,CAAU;IAC/B,iBAAiB,CAAU;IAC3B,kBAAkB,CAAU;IAC5B,SAAS,CAAU;IACnB,yBAAyB,CAAU;IACnC,8BAA8B,CAAU;IACxC,gBAAgB,CAAU;IAC1B,cAAc,CAAU;IACxB,cAAc,CAAW;IACzB,uBAAuB,CAAU;IACjC,8BAA8B,CAAU;IACxC,yBAAyB,CAAU;IACnC,iBAAiB,CAAU"}
@@ -0,0 +1,5 @@
1
+ import CarrierTender_Entity from "./carrierTender";
2
+ export default class CarrierTender extends CarrierTender_Entity {
3
+ static fromList(carrierTendersJSON: unknown): Array<CarrierTender>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import CarrierTender_Entity from "./carrierTender";
2
+ export default class CarrierTender extends CarrierTender_Entity {
3
+ static fromList(carrierTendersJSON) {
4
+ const carrierTenders = [];
5
+ if (carrierTendersJSON)
6
+ Array.isArray(carrierTendersJSON) &&
7
+ carrierTendersJSON.forEach((carrierTenderJSON) => {
8
+ carrierTenders.push(new CarrierTender(carrierTenderJSON));
9
+ });
10
+ return carrierTenders;
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/carrierTender/helper.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,MAAM,iBAAiB,CAAC;AACnD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,oBAAoB;IAC7D,MAAM,CAAC,QAAQ,CAAC,kBAA2B;QACzC,MAAM,cAAc,GAAoB,EAAE,CAAC;QAC3C,IAAI,kBAAkB;YACpB,KAAK,CAAC,OAAO,CAAC,kBAAkB,CAAC;gBAC/B,kBAAkB,CAAC,OAAO,CAAC,CAAC,iBAAiB,EAAE,EAAE;oBAC/C,cAAc,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,iBAAiB,CAAC,CAAC,CAAC;gBAC5D,CAAC,CAAC,CAAC;QACP,OAAO,cAAc,CAAC;IACxB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,2 @@
1
+ export { default as CarrierTender } from "./helper";
2
+ export { default as CarrierTender_Entity } from "./carrierTender";
@@ -0,0 +1,3 @@
1
+ export { default as CarrierTender } from "./helper";
2
+ export { default as CarrierTender_Entity } from "./carrierTender";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/carrierTender/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,iBAAiB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import HosLog_Entity from "./hosLog";
2
+ export default class HosLog extends HosLog_Entity {
3
+ static fromList(hosLogsJSON: unknown): Array<HosLog>;
4
+ toJson(): string;
5
+ }
@@ -0,0 +1,16 @@
1
+ import HosLog_Entity from "./hosLog";
2
+ export default class HosLog extends HosLog_Entity {
3
+ static fromList(hosLogsJSON) {
4
+ const hosLogs = [];
5
+ if (hosLogsJSON)
6
+ Array.isArray(hosLogsJSON) &&
7
+ hosLogsJSON.forEach((hosLogJSON) => {
8
+ hosLogs.push(new HosLog(hosLogJSON));
9
+ });
10
+ return hosLogs;
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/hosLog/helper.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,UAAU,CAAC;AACrC,MAAM,CAAC,OAAO,OAAO,MAAO,SAAQ,aAAa;IAC/C,MAAM,CAAC,QAAQ,CAAC,WAAoB;QAClC,MAAM,OAAO,GAAa,EAAE,CAAC;QAC7B,IAAI,WAAW;YACb,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;gBACxB,WAAW,CAAC,OAAO,CAAC,CAAC,UAAU,EAAE,EAAE;oBACjC,OAAO,CAAC,IAAI,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;gBACvC,CAAC,CAAC,CAAC;QACP,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM;QACJ,OAAO,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF"}
@@ -0,0 +1,38 @@
1
+ export default class HosLog_Entity {
2
+ static requiredFields: string[];
3
+ constructor(hosLogJson?: unknown);
4
+ id?: number;
5
+ index?: number;
6
+ lmcs_driver_key?: number;
7
+ start_date?: string;
8
+ node_id?: number;
9
+ driver_id?: number;
10
+ co_driver_id?: number;
11
+ drive_time?: number;
12
+ off_duty?: number;
13
+ on_duty?: number;
14
+ total_miles?: number;
15
+ utc_offset?: number;
16
+ certified?: boolean;
17
+ load_number?: number;
18
+ dot_number?: string;
19
+ has16hr_rule_applied?: boolean;
20
+ bill_of_lading_id?: number;
21
+ revision_id?: number;
22
+ extra_ptpt_approved?: boolean;
23
+ explanation?: string;
24
+ notes?: string;
25
+ created_at?: string;
26
+ updated_at?: string;
27
+ has_report_time?: boolean;
28
+ composed_on?: string;
29
+ cache_pre?: number;
30
+ cache_post?: number;
31
+ ptpt_total?: number;
32
+ asset_id?: number;
33
+ hours_drive_time?: number;
34
+ ship_con_name?: string;
35
+ hours_on_duty_time?: number;
36
+ hours_off_duty_time?: number;
37
+ archer_file_ids?: number[];
38
+ }
@@ -0,0 +1,93 @@
1
+ /**
2
+ * HosLog_Entity type guard.
3
+ *
4
+ * @param {any} hosLogJson HosLog object from API
5
+ * @returns {boolean} Return true if type is HosLog_Entity
6
+ */
7
+ function validator(hosLogJson) {
8
+ if (typeof hosLogJson === "object" && hosLogJson != null) {
9
+ HosLog_Entity.requiredFields.forEach((element) => {
10
+ if (!Object.keys(hosLogJson).includes(element))
11
+ throw new Error(`Field ${element} is null or undefined`);
12
+ });
13
+ }
14
+ return true;
15
+ }
16
+ export default class HosLog_Entity {
17
+ static requiredFields = ["id"];
18
+ constructor(hosLogJson) {
19
+ if (validator(hosLogJson)) {
20
+ this.id = hosLogJson.id;
21
+ this.index = hosLogJson.index;
22
+ this.lmcs_driver_key = hosLogJson.lmcs_driver_key;
23
+ this.start_date = hosLogJson.start_date;
24
+ this.node_id = hosLogJson.node_id;
25
+ this.driver_id = hosLogJson.driver_id;
26
+ this.co_driver_id = hosLogJson.co_driver_id;
27
+ this.drive_time = hosLogJson.drive_time;
28
+ this.off_duty = hosLogJson.off_duty;
29
+ this.on_duty = hosLogJson.on_duty;
30
+ this.total_miles = hosLogJson.total_miles;
31
+ this.utc_offset = hosLogJson.utc_offset;
32
+ this.certified = hosLogJson.certified;
33
+ this.load_number = hosLogJson.load_number;
34
+ this.dot_number = hosLogJson.dot_number;
35
+ this.has16hr_rule_applied = hosLogJson.has16hr_rule_applied;
36
+ this.bill_of_lading_id = hosLogJson.bill_of_lading_id;
37
+ this.revision_id = hosLogJson.revision_id;
38
+ this.extra_ptpt_approved = hosLogJson.extra_ptpt_approved;
39
+ this.explanation = hosLogJson.explanation;
40
+ this.notes = hosLogJson.notes;
41
+ this.created_at = hosLogJson.created_at;
42
+ this.updated_at = hosLogJson.updated_at;
43
+ this.has_report_time = hosLogJson.has_report_time;
44
+ this.composed_on = hosLogJson.composed_on;
45
+ this.cache_pre = hosLogJson.cache_pre;
46
+ this.cache_post = hosLogJson.cache_post;
47
+ this.ptpt_total = hosLogJson.ptpt_total;
48
+ this.asset_id = hosLogJson.asset_id;
49
+ this.hours_drive_time = hosLogJson.hours_drive_time;
50
+ this.ship_con_name = hosLogJson.ship_con_name;
51
+ this.hours_on_duty_time = hosLogJson.hours_on_duty_time;
52
+ this.hours_off_duty_time = hosLogJson.hours_off_duty_time;
53
+ this.archer_file_ids = hosLogJson.archer_file_ids;
54
+ }
55
+ else
56
+ throw new Error(`Failed to create new instance of ${HosLog_Entity.name}`);
57
+ }
58
+ id;
59
+ index;
60
+ lmcs_driver_key;
61
+ start_date;
62
+ node_id;
63
+ driver_id;
64
+ co_driver_id;
65
+ drive_time;
66
+ off_duty;
67
+ on_duty;
68
+ total_miles;
69
+ utc_offset;
70
+ certified;
71
+ load_number;
72
+ dot_number;
73
+ has16hr_rule_applied;
74
+ bill_of_lading_id;
75
+ revision_id;
76
+ extra_ptpt_approved;
77
+ explanation;
78
+ notes;
79
+ created_at;
80
+ updated_at;
81
+ has_report_time;
82
+ composed_on;
83
+ cache_pre;
84
+ cache_post;
85
+ ptpt_total;
86
+ asset_id;
87
+ hours_drive_time;
88
+ ship_con_name;
89
+ hours_on_duty_time;
90
+ hours_off_duty_time;
91
+ archer_file_ids;
92
+ }
93
+ //# sourceMappingURL=hosLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hosLog.js","sourceRoot":"","sources":["../../../src/entities/hosLog/hosLog.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,SAAS,SAAS,CAAC,UAAmB;IACpC,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,UAAU,IAAI,IAAI,EAAE;QACxD,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/C,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;gBAC5C,MAAM,IAAI,KAAK,CAAC,SAAS,OAAO,uBAAuB,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,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AAmB,CAAW;IAC9B,WAAW,CAAU;IACrB,KAAK,CAAU;IACf,UAAU,CAAU;IACpB,UAAU,CAAU;IACpB,eAAe,CAAW;IAC1B,WAAW,CAAU;IACrB,SAAS,CAAU;IACnB,UAAU,CAAU;IACpB,UAAU,CAAU;IACpB,QAAQ,CAAU;IAClB,gBAAgB,CAAU;IAC1B,aAAa,CAAU;IACvB,kBAAkB,CAAU;IAC5B,mBAAmB,CAAU;IAC7B,eAAe,CAAY"}
@@ -0,0 +1,2 @@
1
+ export { default as HosLog } from "./helper";
2
+ export { default as HosLog_Entity } from "./hosLog";
@@ -0,0 +1,3 @@
1
+ export { default as HosLog } from "./helper";
2
+ export { default as HosLog_Entity } from "./hosLog";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/entities/hosLog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -43,3 +43,9 @@ export * from "./company";
43
43
  export * from "./contact";
44
44
  export * from "./flag";
45
45
  export * from "./rateReview";
46
+ export * from "./carrierTender";
47
+ export * from "./hosLog";
48
+ export * from "./workflowEvent";
49
+ export * from "./appointmentArrival";
50
+ export * from "./quoteRateRecord";
51
+ export * from "./loadChange";