@openeld/openeld 0.1.0 → 0.1.1

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 (102) hide show
  1. package/README.md +166 -24
  2. package/dist/index.d.ts +8045 -0
  3. package/dist/index.js +2072 -0
  4. package/docs/README.md +71 -0
  5. package/docs/architecture/README.md +4 -0
  6. package/docs/concepts/schema-and-generated-bindings.md +74 -0
  7. package/docs/decisions/README.md +4 -0
  8. package/docs/getting-started/quickstart.md +62 -0
  9. package/docs/guides/normalization.md +106 -0
  10. package/docs/guides/query-and-sync.md +59 -0
  11. package/docs/guides/transports-and-remote-services.md +79 -0
  12. package/docs/protobuf/README.md +15 -11
  13. package/docs/providers/README.md +35 -54
  14. package/docs/providers/capability-matrix.md +2 -0
  15. package/docs/providers/geotab.md +55 -23
  16. package/docs/providers/keeptruckin.md +32 -22
  17. package/docs/providers/motive.md +52 -21
  18. package/docs/providers/provider-template.md +2 -0
  19. package/docs/providers/samsara.md +57 -25
  20. package/docs/providers/verification-matrix.md +2 -0
  21. package/docs/services/README.md +4 -0
  22. package/examples/ts/README.md +67 -1
  23. package/gen/README.md +8 -0
  24. package/gen/ts/common/metadata/audit_pb.d.ts +84 -0
  25. package/gen/ts/common/metadata/audit_pb.js +27 -0
  26. package/gen/ts/common/metadata/source_pb.d.ts +128 -0
  27. package/gen/ts/common/metadata/source_pb.js +34 -0
  28. package/gen/ts/common/primitives/ids_pb.d.ts +81 -0
  29. package/gen/ts/common/primitives/ids_pb.js +33 -0
  30. package/gen/ts/common/primitives/location_pb.d.ts +91 -0
  31. package/gen/ts/common/primitives/location_pb.js +33 -0
  32. package/gen/ts/common/primitives/time_pb.d.ts +82 -0
  33. package/gen/ts/common/primitives/time_pb.js +34 -0
  34. package/gen/ts/common/units/measurements_pb.d.ts +102 -0
  35. package/gen/ts/common/units/measurements_pb.js +47 -0
  36. package/gen/ts/logistics/asset_location_pb.d.ts +64 -0
  37. package/gen/ts/logistics/asset_location_pb.js +23 -0
  38. package/gen/ts/logistics/asset_pb.d.ts +93 -0
  39. package/gen/ts/logistics/asset_pb.js +22 -0
  40. package/gen/ts/logistics/carrier_pb.d.ts +67 -0
  41. package/gen/ts/logistics/carrier_pb.js +21 -0
  42. package/gen/ts/logistics/data_consent_pb.d.ts +89 -0
  43. package/gen/ts/logistics/data_consent_pb.js +23 -0
  44. package/gen/ts/logistics/driver_pb.d.ts +109 -0
  45. package/gen/ts/logistics/driver_pb.js +23 -0
  46. package/gen/ts/logistics/dvir_pb.d.ts +132 -0
  47. package/gen/ts/logistics/dvir_pb.js +30 -0
  48. package/gen/ts/logistics/enums_pb.d.ts +837 -0
  49. package/gen/ts/logistics/enums_pb.js +264 -0
  50. package/gen/ts/logistics/gps_location_pb.d.ts +85 -0
  51. package/gen/ts/logistics/gps_location_pb.js +24 -0
  52. package/gen/ts/logistics/hos_daily_summary_pb.d.ts +139 -0
  53. package/gen/ts/logistics/hos_daily_summary_pb.js +32 -0
  54. package/gen/ts/logistics/hos_event_pb.d.ts +159 -0
  55. package/gen/ts/logistics/hos_event_pb.js +32 -0
  56. package/gen/ts/logistics/ifta_trip_pb.d.ts +85 -0
  57. package/gen/ts/logistics/ifta_trip_pb.js +24 -0
  58. package/gen/ts/logistics/safety_event_pb.d.ts +96 -0
  59. package/gen/ts/logistics/safety_event_pb.js +25 -0
  60. package/gen/ts/logistics/vehicle_assignment_pb.d.ts +91 -0
  61. package/gen/ts/logistics/vehicle_assignment_pb.js +29 -0
  62. package/gen/ts/logistics/vehicle_pb.d.ts +98 -0
  63. package/gen/ts/logistics/vehicle_pb.js +22 -0
  64. package/gen/ts/providers/eld/geotab/contracts_pb.d.ts +453 -0
  65. package/gen/ts/providers/eld/geotab/contracts_pb.js +70 -0
  66. package/gen/ts/providers/eld/keeptruckin/contracts_pb.d.ts +443 -0
  67. package/gen/ts/providers/eld/keeptruckin/contracts_pb.js +70 -0
  68. package/gen/ts/providers/eld/motive/contracts_pb.d.ts +468 -0
  69. package/gen/ts/providers/eld/motive/contracts_pb.js +70 -0
  70. package/gen/ts/providers/eld/samsara/contracts_pb.d.ts +474 -0
  71. package/gen/ts/providers/eld/samsara/contracts_pb.js +71 -0
  72. package/gen/ts/providers/eld/shared/common_pb.d.ts +752 -0
  73. package/gen/ts/providers/eld/shared/common_pb.js +113 -0
  74. package/gen/ts/providers/telematics/fleet_complete/contracts_pb.d.ts +46 -0
  75. package/gen/ts/providers/telematics/fleet_complete/contracts_pb.js +20 -0
  76. package/gen/ts/providers/telematics/fourkites/contracts_pb.d.ts +46 -0
  77. package/gen/ts/providers/telematics/fourkites/contracts_pb.js +20 -0
  78. package/gen/ts/providers/telematics/project44/contracts_pb.d.ts +46 -0
  79. package/gen/ts/providers/telematics/project44/contracts_pb.js +20 -0
  80. package/gen/ts/providers/telematics/shared/common_pb.d.ts +192 -0
  81. package/gen/ts/providers/telematics/shared/common_pb.js +43 -0
  82. package/gen/ts/providers/telematics/verizon_connect/contracts_pb.d.ts +46 -0
  83. package/gen/ts/providers/telematics/verizon_connect/contracts_pb.js +20 -0
  84. package/gen/ts/services/ingestion/service_pb.d.ts +128 -0
  85. package/gen/ts/services/ingestion/service_pb.js +40 -0
  86. package/gen/ts/services/normalization/service_pb.d.ts +201 -0
  87. package/gen/ts/services/normalization/service_pb.js +53 -0
  88. package/gen/ts/services/query/service_pb.d.ts +1018 -0
  89. package/gen/ts/services/query/service_pb.js +278 -0
  90. package/gen/ts/services/sync/service_pb.d.ts +361 -0
  91. package/gen/ts/services/sync/service_pb.js +97 -0
  92. package/gen/ts/v1/openeld_pb.d.ts +11 -0
  93. package/gen/ts/v1/openeld_pb.js +46 -0
  94. package/package.json +45 -11
  95. package/src/clients/.gitkeep +0 -0
  96. package/src/fixture-normalization.ts +0 -471
  97. package/src/generated/README.md +0 -3
  98. package/src/generated/ts/.gitkeep +0 -0
  99. package/src/index.ts +0 -1
  100. package/src/mappers/.gitkeep +0 -0
  101. package/src/registry/.gitkeep +0 -0
  102. /package/{src/adapters/providers → gen/ts}/.gitkeep +0 -0
@@ -0,0 +1,159 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/hos_event.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import type { DutyStatus, EventOrigin, EventType, HosEventCode, MalfunctionCode, RecordStatus } from "./enums_pb";
9
+ import type { GeoPoint } from "../common/primitives/location_pb";
10
+ import type { EngineHours, OdometerReading } from "../common/units/measurements_pb";
11
+ import type { SourceRecord } from "../common/metadata/source_pb";
12
+ import type { AuditMetadata } from "../common/metadata/audit_pb";
13
+
14
+ /**
15
+ * Describes the file logistics/hos_event.proto.
16
+ */
17
+ export declare const file_logistics_hos_event: GenFile;
18
+
19
+ /**
20
+ * * Represents a normalized HOS annotation or remark.
21
+ *
22
+ * @generated from message openeld.logistics.v1.HosAnnotation
23
+ */
24
+ export declare type HosAnnotation = Message<"openeld.logistics.v1.HosAnnotation"> & {
25
+ /**
26
+ * @generated from field: string text = 1;
27
+ */
28
+ text: string;
29
+
30
+ /**
31
+ * @generated from field: optional string author_driver_id = 2;
32
+ */
33
+ authorDriverId?: string;
34
+ };
35
+
36
+ /**
37
+ * Describes the message openeld.logistics.v1.HosAnnotation.
38
+ * Use `create(HosAnnotationSchema)` to create a new message.
39
+ */
40
+ export declare const HosAnnotationSchema: GenMessage<HosAnnotation>;
41
+
42
+ /**
43
+ * * Represents a normalized HOS event as defined by FMCSA concepts.
44
+ *
45
+ * @generated from message openeld.logistics.v1.HosEvent
46
+ */
47
+ export declare type HosEvent = Message<"openeld.logistics.v1.HosEvent"> & {
48
+ /**
49
+ * @generated from field: string event_id = 1;
50
+ */
51
+ eventId: string;
52
+
53
+ /**
54
+ * @generated from field: string driver_id = 2;
55
+ */
56
+ driverId: string;
57
+
58
+ /**
59
+ * @generated from field: optional string vehicle_id = 3;
60
+ */
61
+ vehicleId?: string;
62
+
63
+ /**
64
+ * @generated from field: google.protobuf.Timestamp event_timestamp = 4;
65
+ */
66
+ eventTimestamp?: Timestamp;
67
+
68
+ /**
69
+ * @generated from field: optional google.protobuf.Timestamp event_end_time = 5;
70
+ */
71
+ eventEndTime?: Timestamp;
72
+
73
+ /**
74
+ * @generated from field: openeld.logistics.v1.EventType event_type = 6;
75
+ */
76
+ eventType: EventType;
77
+
78
+ /**
79
+ * @generated from field: openeld.logistics.v1.HosEventCode event_code = 7;
80
+ */
81
+ eventCode: HosEventCode;
82
+
83
+ /**
84
+ * @generated from field: openeld.logistics.v1.DutyStatus duty_status = 8;
85
+ */
86
+ dutyStatus: DutyStatus;
87
+
88
+ /**
89
+ * @generated from field: optional openeld.common.primitives.v1.GeoPoint position = 9;
90
+ */
91
+ position?: GeoPoint;
92
+
93
+ /**
94
+ * @generated from field: optional string location_description = 10;
95
+ */
96
+ locationDescription?: string;
97
+
98
+ /**
99
+ * @generated from field: optional openeld.common.units.v1.OdometerReading odometer = 11;
100
+ */
101
+ odometer?: OdometerReading;
102
+
103
+ /**
104
+ * @generated from field: optional openeld.common.units.v1.EngineHours engine_hours = 12;
105
+ */
106
+ engineHours?: EngineHours;
107
+
108
+ /**
109
+ * @generated from field: openeld.logistics.v1.EventOrigin origin = 13;
110
+ */
111
+ origin: EventOrigin;
112
+
113
+ /**
114
+ * @generated from field: openeld.logistics.v1.RecordStatus record_status = 14;
115
+ */
116
+ recordStatus: RecordStatus;
117
+
118
+ /**
119
+ * @generated from field: optional openeld.logistics.v1.HosAnnotation annotation = 15;
120
+ */
121
+ annotation?: HosAnnotation;
122
+
123
+ /**
124
+ * @generated from field: bool certified = 16;
125
+ */
126
+ certified: boolean;
127
+
128
+ /**
129
+ * @generated from field: optional string edited_by_driver_id = 17;
130
+ */
131
+ editedByDriverId?: string;
132
+
133
+ /**
134
+ * @generated from field: uint32 sequence_number = 18;
135
+ */
136
+ sequenceNumber: number;
137
+
138
+ /**
139
+ * @generated from field: repeated openeld.logistics.v1.MalfunctionCode malfunction_codes = 19;
140
+ */
141
+ malfunctionCodes: MalfunctionCode[];
142
+
143
+ /**
144
+ * @generated from field: optional openeld.common.metadata.v1.SourceRecord source = 20;
145
+ */
146
+ source?: SourceRecord;
147
+
148
+ /**
149
+ * @generated from field: optional openeld.common.metadata.v1.AuditMetadata audit = 21;
150
+ */
151
+ audit?: AuditMetadata;
152
+ };
153
+
154
+ /**
155
+ * Describes the message openeld.logistics.v1.HosEvent.
156
+ * Use `create(HosEventSchema)` to create a new message.
157
+ */
158
+ export declare const HosEventSchema: GenMessage<HosEvent>;
159
+
@@ -0,0 +1,32 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/hos_event.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_common_metadata_audit } from "../common/metadata/audit_pb";
7
+ import { file_common_metadata_source } from "../common/metadata/source_pb";
8
+ import { file_common_primitives_location } from "../common/primitives/location_pb";
9
+ import { file_common_units_measurements } from "../common/units/measurements_pb";
10
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
+ import { file_logistics_enums } from "./enums_pb";
12
+
13
+ /**
14
+ * Describes the file logistics/hos_event.proto.
15
+ */
16
+ export const file_logistics_hos_event = /*@__PURE__*/
17
+ fileDesc("Chlsb2dpc3RpY3MvaG9zX2V2ZW50LnByb3RvEhRvcGVuZWxkLmxvZ2lzdGljcy52MSJRCg1Ib3NBbm5vdGF0aW9uEgwKBHRleHQYASABKAkSHQoQYXV0aG9yX2RyaXZlcl9pZBgCIAEoCUgAiAEBQhMKEV9hdXRob3JfZHJpdmVyX2lkIpoJCghIb3NFdmVudBIQCghldmVudF9pZBgBIAEoCRIRCglkcml2ZXJfaWQYAiABKAkSFwoKdmVoaWNsZV9pZ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NYWxmdW5jdGlvbkNvZGUSPQoGc291cmNlGBQgASgLMigub3BlbmVsZC5jb21tb24ubWV0YWRhdGEudjEuU291cmNlUmVjb3JkSAiIAQESPQoFYXVkaXQYFSABKAsyKS5vcGVuZWxkLmNvbW1vbi5tZXRhZGF0YS52MS5BdWRpdE1ldGFkYXRhSAmIAQFCDQoLX3ZlaGljbGVfaWRCEQoPX2V2ZW50X2VuZF90aW1lQgsKCV9wb3NpdGlvbkIXChVfbG9jYXRpb25fZGVzY3JpcHRpb25CCwoJX29kb21ldGVyQg8KDV9lbmdpbmVfaG91cnNCDQoLX2Fubm90YXRpb25CFgoUX2VkaXRlZF9ieV9kcml2ZXJfaWRCCQoHX3NvdXJjZUIICgZfYXVkaXRiBnByb3RvMw", [file_common_metadata_audit, file_common_metadata_source, file_common_primitives_location, file_common_units_measurements, file_google_protobuf_timestamp, file_logistics_enums]);
18
+
19
+ /**
20
+ * Describes the message openeld.logistics.v1.HosAnnotation.
21
+ * Use `create(HosAnnotationSchema)` to create a new message.
22
+ */
23
+ export const HosAnnotationSchema = /*@__PURE__*/
24
+ messageDesc(file_logistics_hos_event, 0);
25
+
26
+ /**
27
+ * Describes the message openeld.logistics.v1.HosEvent.
28
+ * Use `create(HosEventSchema)` to create a new message.
29
+ */
30
+ export const HosEventSchema = /*@__PURE__*/
31
+ messageDesc(file_logistics_hos_event, 1);
32
+
@@ -0,0 +1,85 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/ifta_trip.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
8
+ import type { Distance } from "../common/units/measurements_pb";
9
+ import type { FuelType } from "./enums_pb";
10
+ import type { SourceRecord } from "../common/metadata/source_pb";
11
+ import type { AuditMetadata } from "../common/metadata/audit_pb";
12
+
13
+ /**
14
+ * Describes the file logistics/ifta_trip.proto.
15
+ */
16
+ export declare const file_logistics_ifta_trip: GenFile;
17
+
18
+ /**
19
+ * * Represents a normalized IFTA mileage record for a jurisdiction and time range.
20
+ *
21
+ * @generated from message openeld.logistics.v1.IftaTrip
22
+ */
23
+ export declare type IftaTrip = Message<"openeld.logistics.v1.IftaTrip"> & {
24
+ /**
25
+ * @generated from field: string ifta_trip_id = 1;
26
+ */
27
+ iftaTripId: string;
28
+
29
+ /**
30
+ * @generated from field: string vehicle_id = 2;
31
+ */
32
+ vehicleId: string;
33
+
34
+ /**
35
+ * @generated from field: optional string driver_id = 3;
36
+ */
37
+ driverId?: string;
38
+
39
+ /**
40
+ * @generated from field: google.protobuf.Timestamp start_time = 4;
41
+ */
42
+ startTime?: Timestamp;
43
+
44
+ /**
45
+ * @generated from field: google.protobuf.Timestamp end_time = 5;
46
+ */
47
+ endTime?: Timestamp;
48
+
49
+ /**
50
+ * @generated from field: string jurisdiction = 6;
51
+ */
52
+ jurisdiction: string;
53
+
54
+ /**
55
+ * @generated from field: openeld.common.units.v1.Distance distance = 7;
56
+ */
57
+ distance?: Distance;
58
+
59
+ /**
60
+ * @generated from field: optional double fuel_consumed_liters = 8;
61
+ */
62
+ fuelConsumedLiters?: number;
63
+
64
+ /**
65
+ * @generated from field: openeld.logistics.v1.FuelType fuel_type = 9;
66
+ */
67
+ fuelType: FuelType;
68
+
69
+ /**
70
+ * @generated from field: optional openeld.common.metadata.v1.SourceRecord source = 20;
71
+ */
72
+ source?: SourceRecord;
73
+
74
+ /**
75
+ * @generated from field: optional openeld.common.metadata.v1.AuditMetadata audit = 21;
76
+ */
77
+ audit?: AuditMetadata;
78
+ };
79
+
80
+ /**
81
+ * Describes the message openeld.logistics.v1.IftaTrip.
82
+ * Use `create(IftaTripSchema)` to create a new message.
83
+ */
84
+ export declare const IftaTripSchema: GenMessage<IftaTrip>;
85
+
@@ -0,0 +1,24 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/ifta_trip.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_common_metadata_audit } from "../common/metadata/audit_pb";
7
+ import { file_common_metadata_source } from "../common/metadata/source_pb";
8
+ import { file_common_units_measurements } from "../common/units/measurements_pb";
9
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
10
+ import { file_logistics_enums } from "./enums_pb";
11
+
12
+ /**
13
+ * Describes the file logistics/ifta_trip.proto.
14
+ */
15
+ export const file_logistics_ifta_trip = /*@__PURE__*/
16
+ fileDesc("Chlsb2dpc3RpY3MvaWZ0YV90cmlwLnByb3RvEhRvcGVuZWxkLmxvZ2lzdGljcy52MSKFBAoISWZ0YVRyaXASFAoMaWZ0YV90cmlwX2lkGAEgASgJEhIKCnZlaGljbGVfaWQYAiABKAkSFgoJZHJpdmVyX2lkGAMgASgJSACIAQESLgoKc3RhcnRfdGltZRgEIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXASLAoIZW5kX3RpbWUYBSABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhQKDGp1cmlzZGljdGlvbhgGIAEoCRIzCghkaXN0YW5jZRgHIAEoCzIhLm9wZW5lbGQuY29tbW9uLnVuaXRzLnYxLkRpc3RhbmNlEiEKFGZ1ZWxfY29uc3VtZWRfbGl0ZXJzGAggASgBSAGIAQESMQoJZnVlbF90eXBlGAkgASgOMh4ub3BlbmVsZC5sb2dpc3RpY3MudjEuRnVlbFR5cGUSPQoGc291cmNlGBQgASgLMigub3BlbmVsZC5jb21tb24ubWV0YWRhdGEudjEuU291cmNlUmVjb3JkSAKIAQESPQoFYXVkaXQYFSABKAsyKS5vcGVuZWxkLmNvbW1vbi5tZXRhZGF0YS52MS5BdWRpdE1ldGFkYXRhSAOIAQFCDAoKX2RyaXZlcl9pZEIXChVfZnVlbF9jb25zdW1lZF9saXRlcnNCCQoHX3NvdXJjZUIICgZfYXVkaXRiBnByb3RvMw", [file_common_metadata_audit, file_common_metadata_source, file_common_units_measurements, file_google_protobuf_timestamp, file_logistics_enums]);
17
+
18
+ /**
19
+ * Describes the message openeld.logistics.v1.IftaTrip.
20
+ * Use `create(IftaTripSchema)` to create a new message.
21
+ */
22
+ export const IftaTripSchema = /*@__PURE__*/
23
+ messageDesc(file_logistics_ifta_trip, 0);
24
+
@@ -0,0 +1,96 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/safety_event.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { SafetyEventType, SafetySeverity } from "./enums_pb";
8
+ import type { Timestamp } from "@bufbuild/protobuf/wkt";
9
+ import type { GeoPoint } from "../common/primitives/location_pb";
10
+ import type { Speed } from "../common/units/measurements_pb";
11
+ import type { SourceRecord } from "../common/metadata/source_pb";
12
+ import type { AuditMetadata } from "../common/metadata/audit_pb";
13
+
14
+ /**
15
+ * Describes the file logistics/safety_event.proto.
16
+ */
17
+ export declare const file_logistics_safety_event: GenFile;
18
+
19
+ /**
20
+ * * Represents a normalized telematics safety event.
21
+ *
22
+ * @generated from message openeld.logistics.v1.SafetyEvent
23
+ */
24
+ export declare type SafetyEvent = Message<"openeld.logistics.v1.SafetyEvent"> & {
25
+ /**
26
+ * @generated from field: string safety_event_id = 1;
27
+ */
28
+ safetyEventId: string;
29
+
30
+ /**
31
+ * @generated from field: optional string driver_id = 2;
32
+ */
33
+ driverId?: string;
34
+
35
+ /**
36
+ * @generated from field: optional string vehicle_id = 3;
37
+ */
38
+ vehicleId?: string;
39
+
40
+ /**
41
+ * @generated from field: openeld.logistics.v1.SafetyEventType event_type = 4;
42
+ */
43
+ eventType: SafetyEventType;
44
+
45
+ /**
46
+ * @generated from field: google.protobuf.Timestamp event_time = 5;
47
+ */
48
+ eventTime?: Timestamp;
49
+
50
+ /**
51
+ * @generated from field: optional openeld.common.primitives.v1.GeoPoint position = 6;
52
+ */
53
+ position?: GeoPoint;
54
+
55
+ /**
56
+ * @generated from field: openeld.logistics.v1.SafetySeverity severity = 7;
57
+ */
58
+ severity: SafetySeverity;
59
+
60
+ /**
61
+ * @generated from field: optional openeld.common.units.v1.Speed speed = 8;
62
+ */
63
+ speed?: Speed;
64
+
65
+ /**
66
+ * @generated from field: optional openeld.common.units.v1.Speed speed_limit = 9;
67
+ */
68
+ speedLimit?: Speed;
69
+
70
+ /**
71
+ * @generated from field: optional double g_force = 10;
72
+ */
73
+ gForce?: number;
74
+
75
+ /**
76
+ * @generated from field: optional string provider_event_label = 11;
77
+ */
78
+ providerEventLabel?: string;
79
+
80
+ /**
81
+ * @generated from field: optional openeld.common.metadata.v1.SourceRecord source = 20;
82
+ */
83
+ source?: SourceRecord;
84
+
85
+ /**
86
+ * @generated from field: optional openeld.common.metadata.v1.AuditMetadata audit = 21;
87
+ */
88
+ audit?: AuditMetadata;
89
+ };
90
+
91
+ /**
92
+ * Describes the message openeld.logistics.v1.SafetyEvent.
93
+ * Use `create(SafetyEventSchema)` to create a new message.
94
+ */
95
+ export declare const SafetyEventSchema: GenMessage<SafetyEvent>;
96
+
@@ -0,0 +1,25 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/safety_event.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_common_metadata_audit } from "../common/metadata/audit_pb";
7
+ import { file_common_metadata_source } from "../common/metadata/source_pb";
8
+ import { file_common_primitives_location } from "../common/primitives/location_pb";
9
+ import { file_common_units_measurements } from "../common/units/measurements_pb";
10
+ import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
11
+ import { file_logistics_enums } from "./enums_pb";
12
+
13
+ /**
14
+ * Describes the file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udF9sYWJlbEIJCgdfc291cmNlQggKBl9hdWRpdGIGcHJvdG8z", [file_common_metadata_audit, file_common_metadata_source, file_common_primitives_location, file_common_units_measurements, file_google_protobuf_timestamp, file_logistics_enums]);
18
+
19
+ /**
20
+ * Describes the message openeld.logistics.v1.SafetyEvent.
21
+ * Use `create(SafetyEventSchema)` to create a new message.
22
+ */
23
+ export const SafetyEventSchema = /*@__PURE__*/
24
+ messageDesc(file_logistics_safety_event, 0);
25
+
@@ -0,0 +1,91 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/vehicle_assignment.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { TimeRange } from "../common/primitives/time_pb";
8
+ import type { SourceRecord } from "../common/metadata/source_pb";
9
+ import type { AuditMetadata } from "../common/metadata/audit_pb";
10
+
11
+ /**
12
+ * Describes the file logistics/vehicle_assignment.proto.
13
+ */
14
+ export declare const file_logistics_vehicle_assignment: GenFile;
15
+
16
+ /**
17
+ * * Identifies a trailer associated with an assignment.
18
+ *
19
+ * @generated from message openeld.logistics.v1.TrailerReference
20
+ */
21
+ export declare type TrailerReference = Message<"openeld.logistics.v1.TrailerReference"> & {
22
+ /**
23
+ * @generated from field: string name = 1;
24
+ */
25
+ name: string;
26
+ };
27
+
28
+ /**
29
+ * Describes the message openeld.logistics.v1.TrailerReference.
30
+ * Use `create(TrailerReferenceSchema)` to create a new message.
31
+ */
32
+ export declare const TrailerReferenceSchema: GenMessage<TrailerReference>;
33
+
34
+ /**
35
+ * * Associates a driver with a vehicle during a time range.
36
+ *
37
+ * @generated from message openeld.logistics.v1.VehicleAssignment
38
+ */
39
+ export declare type VehicleAssignment = Message<"openeld.logistics.v1.VehicleAssignment"> & {
40
+ /**
41
+ * @generated from field: string assignment_id = 1;
42
+ */
43
+ assignmentId: string;
44
+
45
+ /**
46
+ * @generated from field: string driver_id = 2;
47
+ */
48
+ driverId: string;
49
+
50
+ /**
51
+ * @generated from field: string vehicle_id = 3;
52
+ */
53
+ vehicleId: string;
54
+
55
+ /**
56
+ * @generated from field: optional string codriver_id = 4;
57
+ */
58
+ codriverId?: string;
59
+
60
+ /**
61
+ * @generated from field: optional openeld.common.primitives.v1.TimeRange assignment_time_range = 5;
62
+ */
63
+ assignmentTimeRange?: TimeRange;
64
+
65
+ /**
66
+ * @generated from field: repeated openeld.logistics.v1.TrailerReference trailers = 6;
67
+ */
68
+ trailers: TrailerReference[];
69
+
70
+ /**
71
+ * @generated from field: optional string shipping_doc_number = 7;
72
+ */
73
+ shippingDocNumber?: string;
74
+
75
+ /**
76
+ * @generated from field: optional openeld.common.metadata.v1.SourceRecord source = 20;
77
+ */
78
+ source?: SourceRecord;
79
+
80
+ /**
81
+ * @generated from field: optional openeld.common.metadata.v1.AuditMetadata audit = 21;
82
+ */
83
+ audit?: AuditMetadata;
84
+ };
85
+
86
+ /**
87
+ * Describes the message openeld.logistics.v1.VehicleAssignment.
88
+ * Use `create(VehicleAssignmentSchema)` to create a new message.
89
+ */
90
+ export declare const VehicleAssignmentSchema: GenMessage<VehicleAssignment>;
91
+
@@ -0,0 +1,29 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/vehicle_assignment.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_common_metadata_audit } from "../common/metadata/audit_pb";
7
+ import { file_common_metadata_source } from "../common/metadata/source_pb";
8
+ import { file_common_primitives_time } from "../common/primitives/time_pb";
9
+
10
+ /**
11
+ * Describes the file logistics/vehicle_assignment.proto.
12
+ */
13
+ export const file_logistics_vehicle_assignment = /*@__PURE__*/
14
+ fileDesc("CiJsb2dpc3RpY3MvdmVoaWNsZV9hc3NpZ25tZW50LnByb3RvEhRvcGVuZWxkLmxvZ2lzdGljcy52MSIgChBUcmFpbGVyUmVmZXJlbmNlEgwKBG5hbWUYASABKAki6QMKEVZlaGljbGVBc3NpZ25tZW50EhUKDWFzc2lnbm1lbnRfaWQYASABKAkSEQoJZHJpdmVyX2lkGAIgASgJEhIKCnZlaGljbGVfaWQYAyABKAkSGAoLY29kcml2ZXJfaWQYBCABKAlIAIgBARJLChVhc3NpZ25tZW50X3RpbWVfcmFuZ2UYBSABKAsyJy5vcGVuZWxkLmNvbW1vbi5wcmltaXRpdmVzLnYxLlRpbWVSYW5nZUgBiAEBEjgKCHRyYWlsZXJzGAYgAygLMiYub3BlbmVsZC5sb2dpc3RpY3MudjEuVHJhaWxlclJlZmVyZW5jZRIgChNzaGlwcGluZ19kb2NfbnVtYmVyGAcgASgJSAKIAQESPQoGc291cmNlGBQgASgLMigub3BlbmVsZC5jb21tb24ubWV0YWRhdGEudjEuU291cmNlUmVjb3JkSAOIAQESPQoFYXVkaXQYFSABKAsyKS5vcGVuZWxkLmNvbW1vbi5tZXRhZGF0YS52MS5BdWRpdE1ldGFkYXRhSASIAQFCDgoMX2NvZHJpdmVyX2lkQhgKFl9hc3NpZ25tZW50X3RpbWVfcmFuZ2VCFgoUX3NoaXBwaW5nX2RvY19udW1iZXJCCQoHX3NvdXJjZUIICgZfYXVkaXRiBnByb3RvMw", [file_common_metadata_audit, file_common_metadata_source, file_common_primitives_time]);
15
+
16
+ /**
17
+ * Describes the message openeld.logistics.v1.TrailerReference.
18
+ * Use `create(TrailerReferenceSchema)` to create a new message.
19
+ */
20
+ export const TrailerReferenceSchema = /*@__PURE__*/
21
+ messageDesc(file_logistics_vehicle_assignment, 0);
22
+
23
+ /**
24
+ * Describes the message openeld.logistics.v1.VehicleAssignment.
25
+ * Use `create(VehicleAssignmentSchema)` to create a new message.
26
+ */
27
+ export const VehicleAssignmentSchema = /*@__PURE__*/
28
+ messageDesc(file_logistics_vehicle_assignment, 1);
29
+
@@ -0,0 +1,98 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/vehicle.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import type { GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
6
+ import type { Message } from "@bufbuild/protobuf";
7
+ import type { EngineHours, OdometerReading } from "../common/units/measurements_pb";
8
+ import type { SourceRecord } from "../common/metadata/source_pb";
9
+ import type { AuditMetadata } from "../common/metadata/audit_pb";
10
+
11
+ /**
12
+ * Describes the file logistics/vehicle.proto.
13
+ */
14
+ export declare const file_logistics_vehicle: GenFile;
15
+
16
+ /**
17
+ * * Represents a commercial motor vehicle in the normalized model.
18
+ *
19
+ * @generated from message openeld.logistics.v1.Vehicle
20
+ */
21
+ export declare type Vehicle = Message<"openeld.logistics.v1.Vehicle"> & {
22
+ /**
23
+ * @generated from field: string vehicle_id = 1;
24
+ */
25
+ vehicleId: string;
26
+
27
+ /**
28
+ * @generated from field: string carrier_id = 2;
29
+ */
30
+ carrierId: string;
31
+
32
+ /**
33
+ * @generated from field: string vin = 3;
34
+ */
35
+ vin: string;
36
+
37
+ /**
38
+ * @generated from field: string name = 4;
39
+ */
40
+ name: string;
41
+
42
+ /**
43
+ * @generated from field: optional string license_plate = 5;
44
+ */
45
+ licensePlate?: string;
46
+
47
+ /**
48
+ * @generated from field: optional string license_state = 6;
49
+ */
50
+ licenseState?: string;
51
+
52
+ /**
53
+ * @generated from field: optional string make = 7;
54
+ */
55
+ make?: string;
56
+
57
+ /**
58
+ * @generated from field: optional string model = 8;
59
+ */
60
+ model?: string;
61
+
62
+ /**
63
+ * @generated from field: optional int32 year = 9;
64
+ */
65
+ year?: number;
66
+
67
+ /**
68
+ * @generated from field: optional openeld.common.units.v1.OdometerReading odometer = 10;
69
+ */
70
+ odometer?: OdometerReading;
71
+
72
+ /**
73
+ * @generated from field: optional openeld.common.units.v1.EngineHours engine_hours = 11;
74
+ */
75
+ engineHours?: EngineHours;
76
+
77
+ /**
78
+ * @generated from field: optional string eld_device_id = 12;
79
+ */
80
+ eldDeviceId?: string;
81
+
82
+ /**
83
+ * @generated from field: optional openeld.common.metadata.v1.SourceRecord source = 20;
84
+ */
85
+ source?: SourceRecord;
86
+
87
+ /**
88
+ * @generated from field: optional openeld.common.metadata.v1.AuditMetadata audit = 21;
89
+ */
90
+ audit?: AuditMetadata;
91
+ };
92
+
93
+ /**
94
+ * Describes the message openeld.logistics.v1.Vehicle.
95
+ * Use `create(VehicleSchema)` to create a new message.
96
+ */
97
+ export declare const VehicleSchema: GenMessage<Vehicle>;
98
+
@@ -0,0 +1,22 @@
1
+ // @generated by protoc-gen-es v2.11.0
2
+ // @generated from file logistics/vehicle.proto (package openeld.logistics.v1, syntax proto3)
3
+ /* eslint-disable */
4
+
5
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
+ import { file_common_metadata_audit } from "../common/metadata/audit_pb";
7
+ import { file_common_metadata_source } from "../common/metadata/source_pb";
8
+ import { file_common_units_measurements } from "../common/units/measurements_pb";
9
+
10
+ /**
11
+ * Describes the file logistics/vehicle.proto.
12
+ */
13
+ export const file_logistics_vehicle = /*@__PURE__*/
14
+ fileDesc("Chdsb2dpc3RpY3MvdmVoaWNsZS5wcm90bxIUb3BlbmVsZC5sb2dpc3RpY3MudjEi3wQKB1ZlaGljbGUSEgoKdmVoaWNsZV9pZBgBIAEoCRISCgpjYXJyaWVyX2lkGAIgASgJEgsKA3ZpbhgDIAEoCRIMCgRuYW1lGAQgASgJEhoKDWxpY2Vuc2VfcGxhdGUYBSABKAlIAIgBARIaCg1saWNlbnNlX3N0YXRlGAYgASgJSAGIAQESEQoEbWFrZRgHIAEoCUgCiAEBEhIKBW1vZGVsGAggASgJSAOIAQESEQoEeWVhchgJIAEoBUgEiAEBEj8KCG9kb21ldGVyGAogASgLMigub3BlbmVsZC5jb21tb24udW5pdHMudjEuT2RvbWV0ZXJSZWFkaW5nSAWIAQESPwoMZW5naW5lX2hvdXJzGAsgASgLMiQub3BlbmVsZC5jb21tb24udW5pdHMudjEuRW5naW5lSG91cnNIBogBARIaCg1lbGRfZGV2aWNlX2lkGAwgASgJSAeIAQESPQoGc291cmNlGBQgASgLMigub3BlbmVsZC5jb21tb24ubWV0YWRhdGEudjEuU291cmNlUmVjb3JkSAiIAQESPQoFYXVkaXQYFSABKAsyKS5vcGVuZWxkLmNvbW1vbi5tZXRhZGF0YS52MS5BdWRpdE1ldGFkYXRhSAmIAQFCEAoOX2xpY2Vuc2VfcGxhdGVCEAoOX2xpY2Vuc2Vfc3RhdGVCBwoFX21ha2VCCAoGX21vZGVsQgcKBV95ZWFyQgsKCV9vZG9tZXRlckIPCg1fZW5naW5lX2hvdXJzQhAKDl9lbGRfZGV2aWNlX2lkQgkKB19zb3VyY2VCCAoGX2F1ZGl0YgZwcm90bzM", [file_common_metadata_audit, file_common_metadata_source, file_common_units_measurements]);
15
+
16
+ /**
17
+ * Describes the message openeld.logistics.v1.Vehicle.
18
+ * Use `create(VehicleSchema)` to create a new message.
19
+ */
20
+ export const VehicleSchema = /*@__PURE__*/
21
+ messageDesc(file_logistics_vehicle, 0);
22
+