@routeflow/types 1.0.0

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.
package/README.md ADDED
@@ -0,0 +1,119 @@
1
+ # @routeflow/types
2
+
3
+ Auto-generated TypeScript types from the RouteFlow API OpenAPI specification.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @routeflow/types
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ### Friendly Type Aliases
14
+
15
+ Import commonly used types from the `/exports` subpath:
16
+
17
+ ```typescript
18
+ import type { Run, Stop, Driver, CreateRunRequest } from '@routeflow/types/exports';
19
+
20
+ const run: Run = {
21
+ id: '123',
22
+ name: 'Morning Deliveries',
23
+ status: 'DRAFT',
24
+ // ...
25
+ };
26
+ ```
27
+
28
+ ### Raw OpenAPI Types
29
+
30
+ For advanced usage (path-based typing, type utilities):
31
+
32
+ ```typescript
33
+ import type { paths, components, operations } from '@routeflow/types';
34
+
35
+ // Extract request body for a specific endpoint
36
+ type CreateRunBody = paths['/api/runs']['post']['requestBody']['content']['application/json'];
37
+
38
+ // Access any schema directly
39
+ type RunSchema = components['schemas']['RunResponseDto'];
40
+ ```
41
+
42
+ ## Type Generation
43
+
44
+ Types are auto-generated from the RouteFlow API's OpenAPI specification using `openapi-typescript`.
45
+
46
+ ### Generate from Local API
47
+
48
+ ```bash
49
+ # Start the API first
50
+ cd ../routeflow-api && npm run start:dev
51
+
52
+ # Generate types
53
+ npm run generate
54
+ ```
55
+
56
+ ### Generate from Production API
57
+
58
+ ```bash
59
+ npm run generate:prod
60
+ ```
61
+
62
+ ## Package Structure
63
+
64
+ ```
65
+ routeflow-types/
66
+ ├── src/
67
+ │ ├── index.ts # Auto-generated types (DO NOT EDIT)
68
+ │ └── exports.ts # Friendly type aliases
69
+ ├── dist/ # Compiled output
70
+ ├── package.json
71
+ └── README.md
72
+ ```
73
+
74
+ ## Available Types
75
+
76
+ ### Entities
77
+ - `User`, `Organization`
78
+ - `Run`, `Stop`, `Driver`, `Document`
79
+ - `TrackingStatus`, `TrackingLocation`
80
+
81
+ ### Request Types
82
+ - `LoginRequest`, `RegisterRequest`
83
+ - `CreateRunRequest`, `UpdateRunRequest`
84
+ - `CreateStopRequest`, `UpdateStopRequest`
85
+ - `CreateDocumentRequest`
86
+
87
+ ### Enums
88
+ - `RunStatus` - DRAFT, ASSIGNED, IN_PROGRESS, COMPLETED, CANCELLED
89
+ - `StopStatus` - PENDING, EN_ROUTE, ARRIVED, DELIVERED, etc.
90
+ - `StopType` - PICKUP, DELIVERY, BOTH
91
+ - `DocumentType` - POD, PHOTO, SIGNATURE, etc.
92
+
93
+ ### Pagination
94
+ - `PaginatedRuns`, `PaginatedStops`, `PaginatedDrivers`
95
+
96
+ ### Raw Types
97
+ - `paths` - All API endpoints with their methods
98
+ - `components` - All schemas, parameters, responses
99
+ - `operations` - All operation definitions
100
+
101
+ ## Development
102
+
103
+ ```bash
104
+ # Install dependencies
105
+ npm install
106
+
107
+ # Generate types (requires API running on localhost:3001)
108
+ npm run generate
109
+
110
+ # Build
111
+ npm run build
112
+
113
+ # Type check
114
+ npm run type-check
115
+ ```
116
+
117
+ ## License
118
+
119
+ MIT
@@ -0,0 +1,301 @@
1
+ /**
2
+ * Friendly type exports from the auto-generated OpenAPI types.
3
+ *
4
+ * Type Flow: Prisma → API DTOs → OpenAPI → here → SDK → Client Apps
5
+ *
6
+ * NOTE: Response/Entity types are defined manually here until the API
7
+ * adds proper Response DTOs with @ApiResponse decorators. Once that's done,
8
+ * these can be replaced with generated types.
9
+ */
10
+ import type { components, paths, operations } from './index.js';
11
+ export type { components, paths, operations };
12
+ export type Role = 'ADMIN' | 'DISPATCHER' | 'DRIVER';
13
+ export type RunStatus = 'DRAFT' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELLED';
14
+ export type StopType = 'PICKUP' | 'DELIVERY';
15
+ export type StopStatus = 'PENDING' | 'EN_ROUTE' | 'ARRIVED' | 'LOADING' | 'LOADED' | 'DELIVERING' | 'DELIVERED' | 'EXCEPTION' | 'SKIPPED';
16
+ export type DocumentType = 'BOL' | 'POD' | 'PHOTO' | 'DAMAGE' | 'RATE_CONFIRMATION' | 'SIGNATURE';
17
+ export type EldProvider = 'SAMSARA' | 'GEOTAB' | 'MOTIVE' | 'MANUAL';
18
+ export type AssetStatus = 'ACTIVE' | 'IN_SHOP' | 'INACTIVE';
19
+ export type FuelType = 'DIESEL' | 'GASOLINE' | 'ELECTRIC' | 'HYBRID';
20
+ export type TrailerType = 'RGN' | 'SD' | 'FLATBED' | 'REEFER' | 'DRY_VAN' | 'STEP_DECK' | 'LOWBOY';
21
+ export type CompanyDocumentType = 'INSURANCE' | 'W9' | 'AUTHORITY' | 'NOA' | 'VOID_CHECK' | 'MC_CERTIFICATE' | 'DOT_CERTIFICATE' | 'CARGO_INSURANCE' | 'LIABILITY_INSURANCE' | 'OTHER';
22
+ export type DriverDispatchStatus = 'AVAILABLE' | 'HOME' | 'IN_TRANSIT' | 'INACTIVE' | 'SHOP' | 'REST' | 'DISPATCHED' | 'ASSIGNED';
23
+ export interface Organization {
24
+ id: string;
25
+ name: string;
26
+ settings: Record<string, unknown>;
27
+ createdAt: string;
28
+ updatedAt: string;
29
+ }
30
+ export interface User {
31
+ id: string;
32
+ email: string | null;
33
+ name: string;
34
+ phone: string | null;
35
+ role: Role;
36
+ telegramId: string | null;
37
+ language: string;
38
+ isActive: boolean;
39
+ orgId: string;
40
+ createdAt: string;
41
+ updatedAt: string;
42
+ org?: Organization;
43
+ driver?: Driver;
44
+ }
45
+ export interface Driver {
46
+ id: string;
47
+ eldProvider: EldProvider;
48
+ eldDriverId: string | null;
49
+ hosAvailableMin: number | null;
50
+ hosUpdatedAt: string | null;
51
+ dispatchStatus: DriverDispatchStatus;
52
+ userId: string;
53
+ createdAt: string;
54
+ updatedAt: string;
55
+ user?: User;
56
+ }
57
+ export interface Run {
58
+ id: string;
59
+ name: string;
60
+ status: RunStatus;
61
+ plannedDate: string;
62
+ plannedEndDate: string | null;
63
+ startedAt: string | null;
64
+ completedAt: string | null;
65
+ totalDistance: number | null;
66
+ totalDuration: number | null;
67
+ orgId: string;
68
+ driverId: string | null;
69
+ createdById: string;
70
+ createdAt: string;
71
+ updatedAt: string;
72
+ driver?: User;
73
+ stops?: Stop[];
74
+ documents?: Document[];
75
+ }
76
+ export interface Stop {
77
+ id: string;
78
+ sequence: number;
79
+ type: StopType;
80
+ status: StopStatus;
81
+ address: string;
82
+ lat: number;
83
+ lng: number;
84
+ contactName: string | null;
85
+ contactPhone: string | null;
86
+ notes: string | null;
87
+ timeWindowStart: string | null;
88
+ timeWindowEnd: string | null;
89
+ arrivedAt: string | null;
90
+ completedAt: string | null;
91
+ runId: string;
92
+ requiredDocs: DocumentType[];
93
+ createdAt: string;
94
+ updatedAt: string;
95
+ documents?: Document[];
96
+ }
97
+ export interface Document {
98
+ id: string;
99
+ type: DocumentType;
100
+ fileUrl: string;
101
+ fileName: string | null;
102
+ mimeType: string | null;
103
+ fileSize: number | null;
104
+ captureLat: number | null;
105
+ captureLng: number | null;
106
+ captureTime: string | null;
107
+ signatureData: string | null;
108
+ signedBy: string | null;
109
+ runId: string;
110
+ stopId: string | null;
111
+ uploadedById: string;
112
+ createdAt: string;
113
+ }
114
+ export interface DriverLocation {
115
+ id: string;
116
+ lat: number;
117
+ lng: number;
118
+ heading: number | null;
119
+ speed: number | null;
120
+ accuracy: number | null;
121
+ recordedAt: string;
122
+ driverId: string;
123
+ createdAt: string;
124
+ }
125
+ export interface MagicLink {
126
+ id: string;
127
+ token: string;
128
+ customerEmail: string | null;
129
+ customerPhone: string | null;
130
+ expiresAt: string;
131
+ runId: string;
132
+ stopId: string | null;
133
+ createdAt: string;
134
+ }
135
+ export interface Truck {
136
+ id: string;
137
+ truckNumber: string;
138
+ year: number | null;
139
+ make: string | null;
140
+ model: string | null;
141
+ vin: string | null;
142
+ licensePlate: string | null;
143
+ status: AssetStatus;
144
+ mileage: number | null;
145
+ fuelType: FuelType | null;
146
+ insuranceExpiry: string | null;
147
+ lastServiceDate: string | null;
148
+ notes: string | null;
149
+ orgId: string;
150
+ assignedDriverId: string | null;
151
+ createdAt: string;
152
+ updatedAt: string;
153
+ assignedDriver?: User;
154
+ }
155
+ export interface Trailer {
156
+ id: string;
157
+ trailerNumber: string;
158
+ type: TrailerType;
159
+ length: string | null;
160
+ weightCapacity: string | null;
161
+ status: AssetStatus;
162
+ vin: string | null;
163
+ licensePlate: string | null;
164
+ registrationExpiry: string | null;
165
+ lastInspectionDate: string | null;
166
+ notes: string | null;
167
+ orgId: string;
168
+ assignedDriverId: string | null;
169
+ createdAt: string;
170
+ updatedAt: string;
171
+ assignedDriver?: User;
172
+ }
173
+ export interface CompanyDocument {
174
+ id: string;
175
+ type: CompanyDocumentType;
176
+ name: string;
177
+ description: string | null;
178
+ fileUrl: string;
179
+ fileName: string | null;
180
+ mimeType: string | null;
181
+ fileSize: number | null;
182
+ expiryDate: string | null;
183
+ isActive: boolean;
184
+ orgId: string;
185
+ uploadedById: string;
186
+ createdAt: string;
187
+ updatedAt: string;
188
+ }
189
+ export interface AuthResponse {
190
+ accessToken: string;
191
+ refreshToken: string;
192
+ user: User;
193
+ }
194
+ export interface LinkingCodeResponse {
195
+ code: string;
196
+ expiresAt: string;
197
+ }
198
+ export interface TrackingStatus {
199
+ runId: string;
200
+ runName: string;
201
+ status: RunStatus;
202
+ estimatedArrival: string | null;
203
+ currentStop: {
204
+ id: string;
205
+ address: string;
206
+ status: StopStatus;
207
+ } | null;
208
+ stopsTotal: number;
209
+ stopsCompleted: number;
210
+ }
211
+ export interface TrackingLocation {
212
+ lat: number;
213
+ lng: number;
214
+ updatedAt: string;
215
+ }
216
+ export interface RunSummary {
217
+ id: string;
218
+ name: string;
219
+ status: RunStatus;
220
+ plannedDate: string;
221
+ driverName: string | null;
222
+ stopsTotal: number;
223
+ stopsCompleted: number;
224
+ }
225
+ export interface TodaysRunsResponse {
226
+ runs: RunSummary[];
227
+ stats: {
228
+ total: number;
229
+ inProgress: number;
230
+ completed: number;
231
+ delayed: number;
232
+ };
233
+ }
234
+ export type RegisterDto = components['schemas']['RegisterDto'];
235
+ export type LoginDto = components['schemas']['LoginDto'];
236
+ export type TelegramAuthDto = components['schemas']['TelegramAuthDto'];
237
+ export type TelegramLinkDto = components['schemas']['TelegramLinkDto'];
238
+ export type RefreshTokenDto = components['schemas']['RefreshTokenDto'];
239
+ export type CreateUserDto = components['schemas']['CreateUserDto'];
240
+ export type UpdateUserDto = components['schemas']['UpdateUserDto'];
241
+ export type LinkTelegramDto = components['schemas']['LinkTelegramDto'];
242
+ export type CreateOrgDto = components['schemas']['CreateOrgDto'];
243
+ export type UpdateOrgDto = components['schemas']['UpdateOrgDto'];
244
+ export type InviteUserDto = components['schemas']['InviteUserDto'];
245
+ export type CreateRunDto = components['schemas']['CreateRunDto'];
246
+ export type UpdateRunDto = components['schemas']['UpdateRunDto'];
247
+ export type AssignDriverDto = components['schemas']['AssignDriverDto'];
248
+ export type CreateStopDto = components['schemas']['CreateStopDto'];
249
+ export type UpdateStopDto = components['schemas']['UpdateStopDto'];
250
+ export type ReorderStopsDto = components['schemas']['ReorderStopsDto'];
251
+ export type UpdateStopStatusDto = components['schemas']['UpdateStopStatusDto'];
252
+ export type CreateDocumentDto = components['schemas']['CreateDocumentDto'];
253
+ export type CreateCompanyDocumentDto = components['schemas']['CreateCompanyDocumentDto'];
254
+ export type CreateMagicLinkDto = components['schemas']['CreateMagicLinkDto'];
255
+ export type CreateTruckDto = components['schemas']['CreateTruckDto'];
256
+ export type UpdateTruckDto = components['schemas']['UpdateTruckDto'];
257
+ export type CreateTrailerDto = components['schemas']['CreateTrailerDto'];
258
+ export type UpdateTrailerDto = components['schemas']['UpdateTrailerDto'];
259
+ export type AssignAssetDto = components['schemas']['AssignAssetDto'];
260
+ export type LoginRequest = LoginDto;
261
+ export type LoginResponse = AuthResponse;
262
+ export type RegisterRequest = RegisterDto;
263
+ export type RegisterResponse = AuthResponse;
264
+ export type CreateRunRequest = CreateRunDto;
265
+ export type UpdateRunRequest = UpdateRunDto;
266
+ export type CreateStopRequest = CreateStopDto;
267
+ export type UpdateStopRequest = UpdateStopDto;
268
+ export interface PaginationMeta {
269
+ total: number;
270
+ page: number;
271
+ limit: number;
272
+ totalPages: number;
273
+ }
274
+ export interface PaginatedResponse<T> {
275
+ data: T[];
276
+ meta: PaginationMeta;
277
+ }
278
+ export type PaginatedRuns = PaginatedResponse<Run>;
279
+ export type PaginatedStops = PaginatedResponse<Stop>;
280
+ export type PaginatedDrivers = PaginatedResponse<User>;
281
+ export type PaginatedTrucks = PaginatedResponse<Truck>;
282
+ export type PaginatedTrailers = PaginatedResponse<Trailer>;
283
+ export type ApiPaths = paths;
284
+ export type PathParams<T extends keyof paths> = paths[T] extends {
285
+ parameters: {
286
+ path: infer P;
287
+ };
288
+ } ? P : never;
289
+ export type QueryParams<T extends keyof paths, M extends keyof paths[T]> = paths[T][M] extends {
290
+ parameters: {
291
+ query: infer Q;
292
+ };
293
+ } ? Q : never;
294
+ export type RequestBody<T extends keyof paths, M extends keyof paths[T]> = paths[T][M] extends {
295
+ requestBody: {
296
+ content: {
297
+ 'application/json': infer B;
298
+ };
299
+ };
300
+ } ? B : never;
301
+ //# sourceMappingURL=exports.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.d.ts","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGhE,YAAY,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;AAM9C,MAAM,MAAM,IAAI,GAAG,OAAO,GAAG,YAAY,GAAG,QAAQ,CAAC;AAErD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,GAAG,WAAW,GAAG,WAAW,CAAC;AAEzF,MAAM,MAAM,QAAQ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ErE,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,KAAK,EAAE,CAAC,SAAS,MAAM,KAAK,CAAC,CAAC,CAAC,IACrE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;IAAE,WAAW,EAAE;QAAE,OAAO,EAAE;YAAE,kBAAkB,EAAE,MAAM,CAAC,CAAA;SAAE,CAAA;KAAE,CAAA;CAAE,GAAG,CAAC,GAAG,KAAK,CAAC"}
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ /**
3
+ * Friendly type exports from the auto-generated OpenAPI types.
4
+ *
5
+ * Type Flow: Prisma → API DTOs → OpenAPI → here → SDK → Client Apps
6
+ *
7
+ * NOTE: Response/Entity types are defined manually here until the API
8
+ * adds proper Response DTOs with @ApiResponse decorators. Once that's done,
9
+ * these can be replaced with generated types.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ //# sourceMappingURL=exports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exports.js","sourceRoot":"","sources":["../src/exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}