@routeflow/types 1.0.6 → 1.0.8

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/dist/exports.d.ts CHANGED
@@ -1,43 +1,57 @@
1
1
  /**
2
- * Friendly type exports from the auto-generated OpenAPI types.
2
+ * Type exports from auto-generated OpenAPI types.
3
3
  *
4
- * Type Flow: Prisma → API DTOs → OpenAPIhereSDKClient Apps
4
+ * Type Flow: Prisma Schema → API DTOs → Swagger/docs-jsonopenapi-typescripthere
5
5
  *
6
- * IMPORTANT:
7
- * - Types that have Response DTOs in API are re-exported from generated types
8
- * - Types WITHOUT Response DTOs (Organization, User, Driver, Run, Stop, etc.)
9
- * are temporarily defined manually until API adds proper Response DTOs
10
- *
11
- * TODO: Once API adds Response DTOs for all entities, convert ALL manual
12
- * definitions to re-exports from components['schemas']
6
+ * IMPORTANT: ALL types in this file are re-exports from the generated index.ts
7
+ * NEVER define types manually here - if a type is missing, add a Response DTO to the API.
13
8
  */
14
9
  import type { components, paths, operations } from './index.js';
15
10
  export type { components, paths, operations };
16
- export type Role = 'ADMIN' | 'OWNER' | 'FLEET_MANAGER' | 'DISPATCHER' | 'ACCOUNTING' | 'DRIVER' | 'BROKER';
17
- export type RunStatus = 'DRAFT' | 'ASSIGNED' | 'IN_PROGRESS' | 'COMPLETED' | 'CANCELLED';
18
- export type CancellationReason = 'CUSTOMER_CANCELLED' | 'DRIVER_CANCELLED' | 'EQUIPMENT_ISSUE' | 'WEATHER' | 'RATE_DISPUTE' | 'SCHEDULING_CONFLICT' | 'NO_SHOW' | 'OTHER';
19
- export type StopType = 'PICKUP' | 'DELIVERY';
20
- export type StopStatus = 'PENDING' | 'EN_ROUTE' | 'ARRIVED' | 'LOADING' | 'LOADED' | 'DELIVERING' | 'DELIVERED' | 'EXCEPTION' | 'SKIPPED';
21
- export type DocumentType = 'BOL' | 'POD' | 'PHOTO' | 'DAMAGE' | 'RATE_CONFIRMATION' | 'SIGNATURE';
22
- export type EldProvider = 'SAMSARA' | 'GEOTAB' | 'MOTIVE' | 'MANUAL';
23
- export type AssetStatus = 'ACTIVE' | 'IN_SHOP' | 'INACTIVE';
24
- export type FuelType = 'DIESEL' | 'GASOLINE' | 'ELECTRIC' | 'HYBRID';
25
- export type TrailerType = 'RGN' | 'SD' | 'FLATBED' | 'REEFER' | 'DRY_VAN' | 'STEP_DECK' | 'LOWBOY';
26
- export type CompanyDocumentType = 'INSURANCE' | 'W9' | 'AUTHORITY' | 'NOA' | 'VOID_CHECK' | 'MC_CERTIFICATE' | 'DOT_CERTIFICATE' | 'CARGO_INSURANCE' | 'LIABILITY_INSURANCE' | 'OTHER';
27
- export type DriverDispatchStatus = 'AVAILABLE' | 'HOME' | 'IN_TRANSIT' | 'INACTIVE' | 'SHOP' | 'REST' | 'DISPATCHED' | 'ASSIGNED';
28
- export type CustomerType = 'BROKER' | 'SHIPPER' | 'CARRIER';
29
- export type MessageType = 'TEXT' | 'IMAGE' | 'DOCUMENT' | 'SYSTEM';
30
- export type ParsedDocumentStatus = 'PENDING' | 'PROCESSED' | 'FAILED' | 'NEEDS_REVIEW';
31
- export type ExtractedAssetType = 'DRIVER' | 'TRUCK' | 'TRAILER';
32
- export type ExtractedAssetStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'MERGED';
33
- export type InboundEmailStatus = 'RECEIVED' | 'PROCESSING' | 'AWAITING_SIGNATURE' | 'SIGNED' | 'FORWARDED' | 'COMPLETED' | 'FAILED';
34
- export type DocumentSourceType = 'UPLOAD' | 'TELEGRAM' | 'EMAIL' | 'API';
35
- export type ExpenseType = 'FUEL' | 'REPAIR' | 'MAINTENANCE' | 'TOLL' | 'PARKING' | 'SCALE' | 'LUMPER' | 'DETENTION' | 'INSURANCE' | 'OTHER';
36
- export type ExpenseStatus = 'PENDING' | 'APPROVED' | 'REJECTED' | 'PAID';
11
+ export type Role = components['schemas']['UserResponseDto']['role'];
12
+ export type RunStatus = components['schemas']['RunResponseDto']['status'];
13
+ export type StopType = components['schemas']['StopResponseDto']['type'];
14
+ export type StopStatus = components['schemas']['StopResponseDto']['status'];
15
+ export type DocumentType = components['schemas']['DocumentResponseDto']['type'];
16
+ export type CustomerType = components['schemas']['CustomerResponseDto']['type'];
17
+ export type MessageType = components['schemas']['MessageResponseDto']['type'];
18
+ export type StatementStatus = components['schemas']['StatementResponseDto']['status'];
19
+ export type ExpenseType = components['schemas']['ExpenseResponseDto']['type'];
20
+ export type ExpenseStatus = components['schemas']['ExpenseResponseDto']['status'];
21
+ export type InboundEmailStatus = components['schemas']['InboundEmailResponseDto']['status'];
22
+ export type Organization = components['schemas']['OrganizationResponseDto'];
23
+ export type User = components['schemas']['UserResponseDto'];
24
+ export type Run = components['schemas']['RunResponseDto'];
25
+ export type Stop = components['schemas']['StopResponseDto'];
26
+ export type Document = components['schemas']['DocumentResponseDto'];
27
+ export type Driver = components['schemas']['DriverResponseDto'];
28
+ export type DriverDispatchStatus = components['schemas']['DriverResponseDto']['dispatchStatus'];
29
+ export type Truck = components['schemas']['TruckResponseDto'];
30
+ export type Trailer = components['schemas']['TrailerResponseDto'];
31
+ export type MagicLink = components['schemas']['MagicLinkResponseDto'];
32
+ export type TrackingStatus = components['schemas']['TrackingStatusResponseDto'];
33
+ export type TrackingLocation = components['schemas']['TrackingLocationResponseDto'];
34
+ export type CompanyDocument = components['schemas']['CompanyDocumentResponseDto'];
35
+ export type DriverLocation = components['schemas']['DriverLocationResponseDto'];
36
+ export type ParsedDocument = components['schemas']['ParsedDocumentResponseDto'];
37
+ export type RunSummary = components['schemas']['RunSummaryResponseDto'];
38
+ export interface PaginationMeta {
39
+ total: number;
40
+ page: number;
41
+ limit: number;
42
+ totalPages: number;
43
+ }
44
+ export interface PaginatedResponse<T> {
45
+ data: T[];
46
+ meta: PaginationMeta;
47
+ }
37
48
  export type Customer = components['schemas']['CustomerResponseDto'];
38
49
  export type CustomerList = components['schemas']['CustomerListResponseDto'];
39
50
  export type Message = components['schemas']['MessageResponseDto'];
40
51
  export type MessageList = components['schemas']['MessageListResponseDto'];
52
+ export type DriverStatement = components['schemas']['StatementResponseDto'];
53
+ export type StatementList = components['schemas']['StatementListResponseDto'];
54
+ export type StatementLineItem = components['schemas']['StatementLineItem'];
41
55
  export type Referral = components['schemas']['ReferralResponseDto'];
42
56
  export type ReferralList = components['schemas']['ReferralListResponseDto'];
43
57
  export type ReferralStats = components['schemas']['ReferralStatsDto'];
@@ -50,386 +64,32 @@ export type SmartParseDocument = components['schemas']['SmartParseDocumentDto'];
50
64
  export type SmartParseResult = components['schemas']['SmartParseResultDto'];
51
65
  export type SuggestedDriver = components['schemas']['SuggestedDriverDto'];
52
66
  export type SuggestedCustomer = components['schemas']['SuggestedCustomerDto'];
53
- export interface Organization {
54
- id: string;
55
- name: string;
56
- settings: Record<string, unknown>;
57
- createdAt: string;
58
- updatedAt: string;
59
- }
60
- export interface User {
61
- id: string;
62
- email: string | null;
63
- name: string;
64
- phone: string | null;
65
- role: Role;
66
- telegramId: string | null;
67
- language: string;
68
- isActive: boolean;
69
- orgId: string;
70
- createdAt: string;
71
- updatedAt: string;
72
- org?: Organization;
73
- driver?: Driver;
74
- }
75
- export interface Driver {
76
- id: string;
77
- eldProvider: EldProvider;
78
- eldDriverId: string | null;
79
- hosAvailableMin: number | null;
80
- hosUpdatedAt: string | null;
81
- dispatchStatus: DriverDispatchStatus;
82
- userId: string;
83
- createdAt: string;
84
- updatedAt: string;
85
- user?: User;
86
- }
87
- export interface Run {
88
- id: string;
89
- name: string;
90
- loadNumber: string | null;
91
- status: RunStatus;
92
- plannedDate: string;
93
- plannedEndDate: string | null;
94
- startedAt: string | null;
95
- completedAt: string | null;
96
- cancelledAt: string | null;
97
- cancellationReason: CancellationReason | null;
98
- cancellationNotes: string | null;
99
- totalDistance: number | null;
100
- totalDuration: number | null;
101
- totalPay: number | null;
102
- equipmentType: string | null;
103
- commodityDesc: string | null;
104
- weight: number | null;
105
- orgId: string;
106
- driverId: string | null;
107
- customerId: string | null;
108
- createdById: string;
109
- cancelledById: string | null;
110
- createdAt: string;
111
- updatedAt: string;
112
- driver?: User;
113
- customer?: Customer;
114
- stops?: Stop[];
115
- documents?: Document[];
116
- }
117
- export interface Stop {
118
- id: string;
119
- sequence: number;
120
- type: StopType;
121
- status: StopStatus;
122
- facilityName: string | null;
123
- address: string;
124
- lat: number;
125
- lng: number;
126
- contactName: string | null;
127
- contactPhone: string | null;
128
- notes: string | null;
129
- referenceNumber: string | null;
130
- timeWindowStart: string | null;
131
- timeWindowEnd: string | null;
132
- arrivedAt: string | null;
133
- completedAt: string | null;
134
- runId: string;
135
- requiredDocs: DocumentType[];
136
- createdAt: string;
137
- updatedAt: string;
138
- documents?: Document[];
139
- }
140
- export interface Document {
141
- id: string;
142
- type: DocumentType;
143
- fileUrl: string;
144
- fileName: string | null;
145
- mimeType: string | null;
146
- fileSize: number | null;
147
- captureLat: number | null;
148
- captureLng: number | null;
149
- captureTime: string | null;
150
- signatureData: string | null;
151
- signedBy: string | null;
152
- runId: string;
153
- stopId: string | null;
154
- uploadedById: string;
155
- createdAt: string;
156
- }
157
- export interface DriverLocation {
158
- id: string;
159
- lat: number;
160
- lng: number;
161
- heading: number | null;
162
- speed: number | null;
163
- accuracy: number | null;
164
- recordedAt: string;
165
- driverId: string;
166
- createdAt: string;
167
- }
168
- export interface MagicLink {
169
- id: string;
170
- token: string;
171
- customerEmail: string | null;
172
- customerPhone: string | null;
173
- expiresAt: string;
174
- runId: string;
175
- stopId: string | null;
176
- createdAt: string;
177
- }
178
- export interface Truck {
179
- id: string;
180
- truckNumber: string;
181
- year: number | null;
182
- make: string | null;
183
- model: string | null;
184
- vin: string | null;
185
- licensePlate: string | null;
186
- status: AssetStatus;
187
- mileage: number | null;
188
- fuelType: FuelType | null;
189
- insuranceExpiry: string | null;
190
- lastServiceDate: string | null;
191
- notes: string | null;
192
- orgId: string;
193
- assignedDriverId: string | null;
194
- createdAt: string;
195
- updatedAt: string;
196
- assignedDriver?: User;
197
- }
198
- export interface Trailer {
199
- id: string;
200
- trailerNumber: string;
201
- type: TrailerType;
202
- length: string | null;
203
- weightCapacity: string | null;
204
- status: AssetStatus;
205
- vin: string | null;
206
- licensePlate: string | null;
207
- registrationExpiry: string | null;
208
- lastInspectionDate: string | null;
209
- notes: string | null;
210
- orgId: string;
211
- assignedDriverId: string | null;
212
- createdAt: string;
213
- updatedAt: string;
214
- assignedDriver?: User;
215
- }
216
- export interface CompanyDocument {
217
- id: string;
218
- type: CompanyDocumentType;
219
- name: string;
220
- description: string | null;
221
- fileUrl: string;
222
- fileName: string | null;
223
- mimeType: string | null;
224
- fileSize: number | null;
225
- expiryDate: string | null;
226
- isActive: boolean;
227
- orgId: string;
228
- uploadedById: string;
229
- createdAt: string;
230
- updatedAt: string;
231
- }
232
- export interface ParsedDocument {
233
- id: string;
234
- originalFileUrl: string;
235
- fileName: string | null;
236
- mimeType: string | null;
237
- fileSize: number | null;
238
- status: ParsedDocumentStatus;
239
- parsedData: Record<string, unknown> | null;
240
- confidence: number | null;
241
- errorMessage: string | null;
242
- createdRunId: string | null;
243
- matchedCustomerId: string | null;
244
- suggestedDriverId: string | null;
245
- uploadedById: string;
246
- orgId: string;
247
- createdAt: string;
248
- updatedAt: string;
249
- needsSignature: boolean;
250
- signatureData: string | null;
251
- signedAt: string | null;
252
- signedByName: string | null;
253
- signedByEmail: string | null;
254
- signingToken: string | null;
255
- signingTokenExp: string | null;
256
- sourceType: DocumentSourceType;
257
- sourceEmailId: string | null;
258
- }
259
- export interface UserSignature {
260
- id: string;
261
- signatureData: string;
262
- userId: string;
263
- createdAt: string;
264
- updatedAt: string;
265
- }
266
- export interface ClientEmail {
267
- id: string;
268
- localPart: string;
269
- isActive: boolean;
270
- forwardTo: string[];
271
- orgId: string;
272
- customerId: string | null;
273
- createdAt: string;
274
- updatedAt: string;
275
- fullEmail?: string;
276
- customerName?: string;
277
- emailCount?: number;
278
- lastEmailAt?: string | null;
279
- }
280
- export interface InboundEmail {
281
- id: string;
282
- messageId: string;
283
- fromEmail: string;
284
- fromName: string | null;
285
- subject: string | null;
286
- textBody: string | null;
287
- htmlBody: string | null;
288
- receivedAt: string;
289
- processedAt: string | null;
290
- status: InboundEmailStatus;
291
- errorMessage: string | null;
292
- clientEmailId: string;
293
- attachments?: EmailAttachment[];
294
- clientEmailLocalPart?: string;
295
- }
296
- export interface EmailAttachment {
297
- id: string;
298
- fileName: string;
299
- mimeType: string;
300
- fileSize: number;
301
- fileUrl: string;
302
- inboundEmailId: string;
303
- parsedDocumentId: string | null;
304
- }
305
- export interface Expense {
306
- id: string;
307
- type: ExpenseType;
308
- amount: number;
309
- description: string | null;
310
- date: string;
311
- vendor: string | null;
312
- receiptUrl: string | null;
313
- status: ExpenseStatus;
314
- aiConfidence: number | null;
315
- aiMatchNotes: string | null;
316
- sourceEmailId: string | null;
317
- approvedById: string | null;
318
- approvedAt: string | null;
319
- rejectedById: string | null;
320
- rejectedAt: string | null;
321
- rejectionReason: string | null;
322
- orgId: string;
323
- runId: string | null;
324
- driverId: string | null;
325
- truckId: string | null;
326
- trailerId: string | null;
327
- createdAt: string;
328
- updatedAt: string;
329
- driverName?: string;
330
- truckNumber?: string;
331
- trailerNumber?: string;
332
- runName?: string;
333
- aiSuggestion?: ExpenseAISuggestion;
334
- }
335
- export interface ExpenseAISuggestion {
336
- driverId?: string;
337
- driverName?: string;
338
- truckId?: string;
339
- truckNumber?: string;
340
- trailerId?: string;
341
- trailerNumber?: string;
342
- runId?: string;
343
- runName?: string;
344
- confidence: number;
345
- }
346
- export interface ExpenseStats {
347
- totalPending: number;
348
- totalApproved: number;
349
- pendingAmount: number;
350
- approvedAmount: number;
351
- byType: Record<ExpenseType, number>;
352
- }
353
- export interface DocumentToSign {
354
- id: string;
355
- documentUrl: string;
356
- fileName: string | null;
357
- mimeType: string | null;
358
- isSigned: boolean;
359
- signedAt: string | null;
360
- isExpired: boolean;
361
- expiresAt: string | null;
362
- brokerName?: string;
363
- loadNumber?: string;
364
- rate?: number;
365
- pickupLocation?: string;
366
- deliveryLocation?: string;
367
- pickupDate?: string;
368
- deliveryDate?: string;
369
- equipmentType?: string;
370
- commodity?: string;
371
- weight?: number;
372
- organizationName: string;
373
- hasSavedSignature?: boolean;
374
- savedSignaturePreview?: string;
375
- }
376
- export interface SignDocumentResponse {
377
- success: boolean;
378
- message: string;
379
- createdRunId?: string;
380
- forwarded?: boolean;
381
- forwardedTo?: string[];
382
- }
383
- export interface AuthResponse {
384
- accessToken: string;
385
- refreshToken: string;
386
- user: User;
387
- }
388
- export interface LinkingCodeResponse {
389
- code: string;
390
- expiresAt: string;
391
- }
392
- export interface TrackingStatus {
393
- runId: string;
394
- runName: string;
395
- status: RunStatus;
396
- estimatedArrival: string | null;
397
- currentStop: {
398
- id: string;
399
- address: string;
400
- status: StopStatus;
401
- } | null;
402
- stopsTotal: number;
403
- stopsCompleted: number;
404
- }
405
- export interface TrackingLocation {
406
- lat: number;
407
- lng: number;
408
- updatedAt: string;
409
- }
410
- export interface RunSummary {
411
- id: string;
412
- name: string;
413
- status: RunStatus;
414
- plannedDate: string;
415
- driverName: string | null;
416
- stopsTotal: number;
417
- stopsCompleted: number;
418
- }
419
- export interface TodaysRunsResponse {
420
- runs: RunSummary[];
421
- stats: {
422
- total: number;
423
- inProgress: number;
424
- completed: number;
425
- delayed: number;
426
- };
427
- }
67
+ export type UserSignature = components['schemas']['SignatureResponseDto'];
68
+ export type SignatureExists = components['schemas']['SignatureExistsResponseDto'];
69
+ export type Expense = components['schemas']['ExpenseResponseDto'];
70
+ export type ExpenseList = components['schemas']['ExpenseListResponseDto'];
71
+ export type ExpenseListResponse = components['schemas']['ExpenseListResponseDto'];
72
+ export type PaginatedExpenses = components['schemas']['ExpenseListResponseDto'];
73
+ export type ExpenseStats = components['schemas']['ExpenseStatsDto'];
74
+ export type AISuggestion = components['schemas']['AISuggestionDto'];
75
+ export type ClientEmail = components['schemas']['ClientEmailResponseDto'];
76
+ export type ClientEmailList = components['schemas']['ClientEmailListResponseDto'];
77
+ export type ClientEmailListResponse = components['schemas']['ClientEmailListResponseDto'];
78
+ export type InboundEmail = components['schemas']['InboundEmailResponseDto'];
79
+ export type InboundEmailList = components['schemas']['InboundEmailListResponseDto'];
80
+ export type InboundEmailListResponse = components['schemas']['InboundEmailListResponseDto'];
81
+ export type PaginatedInboundEmails = components['schemas']['InboundEmailListResponseDto'];
82
+ export type EmailAttachment = components['schemas']['EmailAttachmentResponseDto'];
83
+ export type DocumentToSign = components['schemas']['DocumentToSignResponseDto'];
84
+ export type SignDocumentResponse = components['schemas']['SignDocumentResponseDto'];
428
85
  export type RegisterDto = components['schemas']['RegisterDto'];
429
86
  export type LoginDto = components['schemas']['LoginDto'];
430
87
  export type TelegramAuthDto = components['schemas']['TelegramAuthDto'];
431
88
  export type TelegramLinkDto = components['schemas']['TelegramLinkDto'];
432
89
  export type RefreshTokenDto = components['schemas']['RefreshTokenDto'];
90
+ export type VerifyEmailDto = components['schemas']['VerifyEmailDto'];
91
+ export type ForgotPasswordDto = components['schemas']['ForgotPasswordDto'];
92
+ export type ResetPasswordDto = components['schemas']['ResetPasswordDto'];
433
93
  export type CreateUserDto = components['schemas']['CreateUserDto'];
434
94
  export type UpdateUserDto = components['schemas']['UpdateUserDto'];
435
95
  export type LinkTelegramDto = components['schemas']['LinkTelegramDto'];
@@ -439,12 +99,16 @@ export type InviteUserDto = components['schemas']['InviteUserDto'];
439
99
  export type CreateRunDto = components['schemas']['CreateRunDto'];
440
100
  export type UpdateRunDto = components['schemas']['UpdateRunDto'];
441
101
  export type AssignDriverDto = components['schemas']['AssignDriverDto'];
102
+ export type CancelRunDto = components['schemas']['CancelRunDto'];
103
+ export type ReactivateRunDto = components['schemas']['ReactivateRunDto'];
442
104
  export type CreateStopDto = components['schemas']['CreateStopDto'];
443
105
  export type UpdateStopDto = components['schemas']['UpdateStopDto'];
444
106
  export type ReorderStopsDto = components['schemas']['ReorderStopsDto'];
445
107
  export type UpdateStopStatusDto = components['schemas']['UpdateStopStatusDto'];
446
108
  export type CreateDocumentDto = components['schemas']['CreateDocumentDto'];
447
109
  export type CreateCompanyDocumentDto = components['schemas']['CreateCompanyDocumentDto'];
110
+ export type ParseRateConDto = components['schemas']['ParseRateConDto'];
111
+ export type ExtractAssetsDto = components['schemas']['ExtractAssetsDto'];
448
112
  export type CreateMagicLinkDto = components['schemas']['CreateMagicLinkDto'];
449
113
  export type CreateTruckDto = components['schemas']['CreateTruckDto'];
450
114
  export type UpdateTruckDto = components['schemas']['UpdateTruckDto'];
@@ -455,97 +119,33 @@ export type CreateCustomerDto = components['schemas']['CreateCustomerDto'];
455
119
  export type UpdateCustomerDto = components['schemas']['UpdateCustomerDto'];
456
120
  export type CreateMessageDto = components['schemas']['CreateMessageDto'];
457
121
  export type MarkReadDto = components['schemas']['MarkReadDto'];
122
+ export type CreateStatementDto = components['schemas']['CreateStatementDto'];
123
+ export type UpdateStatementDto = components['schemas']['UpdateStatementDto'];
124
+ export type GenerateStatementDto = components['schemas']['GenerateStatementDto'];
458
125
  export type CreateReferralDto = components['schemas']['CreateReferralDto'];
459
126
  export type UpdateReferralDto = components['schemas']['UpdateReferralDto'];
460
- export type ParseRateConDto = components['schemas']['ParseRateConDto'];
461
- export type ExtractAssetsDto = components['schemas']['ExtractAssetsDto'];
462
127
  export type ApproveExtractionDto = components['schemas']['ApproveExtractionDto'];
463
128
  export type RejectExtractionDto = components['schemas']['RejectExtractionDto'];
464
129
  export type MergeExtractionDto = components['schemas']['MergeExtractionDto'];
465
130
  export type BulkApproveDto = components['schemas']['BulkApproveDto'];
466
131
  export type BulkRejectDto = components['schemas']['BulkRejectDto'];
467
- export interface SaveSignatureRequest {
468
- signatureData: string;
469
- }
470
- export interface CreateClientEmailRequest {
471
- localPart: string;
472
- customerId?: string;
473
- forwardTo?: string[];
474
- }
475
- export interface UpdateClientEmailRequest {
476
- localPart?: string;
477
- customerId?: string;
478
- forwardTo?: string[];
479
- isActive?: boolean;
480
- }
481
- export interface SendInvitationRequest {
482
- recipientEmail: string;
483
- customMessage?: string;
484
- }
485
- export interface CreateExpenseRequest {
486
- type: ExpenseType;
487
- amount: number;
488
- description?: string;
489
- date: string;
490
- vendor?: string;
491
- receiptUrl?: string;
492
- driverId?: string;
493
- truckId?: string;
494
- trailerId?: string;
495
- runId?: string;
496
- }
497
- export interface UpdateExpenseRequest {
498
- type?: ExpenseType;
499
- amount?: number;
500
- description?: string;
501
- date?: string;
502
- vendor?: string;
503
- receiptUrl?: string;
504
- driverId?: string;
505
- truckId?: string;
506
- trailerId?: string;
507
- runId?: string;
508
- }
509
- export interface AssociateExpenseRequest {
510
- driverId?: string;
511
- truckId?: string;
512
- trailerId?: string;
513
- runId?: string;
514
- }
515
- export interface RejectExpenseRequest {
516
- reason: string;
517
- }
518
- export interface ExpenseFilters {
519
- type?: ExpenseType;
520
- status?: ExpenseStatus;
521
- driverId?: string;
522
- truckId?: string;
523
- runId?: string;
524
- fromDate?: string;
525
- toDate?: string;
526
- search?: string;
527
- page?: number;
528
- limit?: number;
529
- }
530
- export interface SignDocumentRequest {
531
- signatureData: string;
532
- signedByName?: string;
533
- signedByEmail?: string;
534
- useSavedSignature?: boolean;
535
- }
536
- export interface InboundEmailFilters {
537
- status?: InboundEmailStatus;
538
- clientEmailId?: string;
539
- fromDate?: string;
540
- toDate?: string;
541
- search?: string;
542
- page?: number;
543
- limit?: number;
544
- }
132
+ export type UpdateDriverDto = components['schemas']['UpdateDriverDto'];
133
+ export type UpdateComplianceDto = components['schemas']['UpdateComplianceDto'];
134
+ export type AssignDispatcherDto = components['schemas']['AssignDispatcherDto'];
135
+ export type LinkTeamDriverDto = components['schemas']['LinkTeamDriverDto'];
136
+ export type SaveSignatureDto = components['schemas']['SaveSignatureDto'];
137
+ export type CreateExpenseDto = components['schemas']['CreateExpenseDto'];
138
+ export type UpdateExpenseDto = components['schemas']['UpdateExpenseDto'];
139
+ export type AssociateExpenseDto = components['schemas']['AssociateExpenseDto'];
140
+ export type RejectExpenseDto = components['schemas']['RejectExpenseDto'];
141
+ export type CreateClientEmailDto = components['schemas']['CreateClientEmailDto'];
142
+ export type UpdateClientEmailDto = components['schemas']['UpdateClientEmailDto'];
143
+ export type SendInvitationDto = components['schemas']['SendInvitationDto'];
144
+ export type SignDocumentDto = components['schemas']['SignDocumentDto'];
145
+ export type UpdateManualHosDto = components['schemas']['UpdateManualHosDto'];
146
+ export type LinkEldProviderDto = components['schemas']['LinkEldProviderDto'];
545
147
  export type LoginRequest = LoginDto;
546
- export type LoginResponse = AuthResponse;
547
148
  export type RegisterRequest = RegisterDto;
548
- export type RegisterResponse = AuthResponse;
549
149
  export type CreateRunRequest = CreateRunDto;
550
150
  export type UpdateRunRequest = UpdateRunDto;
551
151
  export type CreateStopRequest = CreateStopDto;
@@ -553,44 +153,15 @@ export type UpdateStopRequest = UpdateStopDto;
553
153
  export type CreateCustomerRequest = CreateCustomerDto;
554
154
  export type UpdateCustomerRequest = UpdateCustomerDto;
555
155
  export type CreateMessageRequest = CreateMessageDto;
156
+ export type CreateStatementRequest = CreateStatementDto;
157
+ export type UpdateStatementRequest = UpdateStatementDto;
556
158
  export type CreateReferralRequest = CreateReferralDto;
557
159
  export type UpdateReferralRequest = UpdateReferralDto;
558
- export interface PaginationMeta {
559
- total: number;
560
- page: number;
561
- limit: number;
562
- totalPages: number;
563
- }
564
- export interface PaginatedResponse<T> {
565
- data: T[];
566
- meta: PaginationMeta;
567
- }
568
- export type PaginatedRuns = PaginatedResponse<Run>;
569
- export type PaginatedStops = PaginatedResponse<Stop>;
570
- export type PaginatedDrivers = PaginatedResponse<User>;
571
- export type PaginatedTrucks = PaginatedResponse<Truck>;
572
- export type PaginatedTrailers = PaginatedResponse<Trailer>;
573
- export type PaginatedCustomers = PaginatedResponse<Customer>;
574
- export type PaginatedMessages = PaginatedResponse<Message>;
575
- export type PaginatedExpenses = PaginatedResponse<Expense>;
576
- export type PaginatedInboundEmails = PaginatedResponse<InboundEmail>;
577
- export interface ClientEmailListResponse {
578
- data: ClientEmail[];
579
- total: number;
580
- }
581
- export interface InboundEmailListResponse {
582
- data: InboundEmail[];
583
- total: number;
584
- page: number;
585
- limit: number;
586
- }
587
- export interface ExpenseListResponse {
588
- data: Expense[];
589
- total: number;
590
- page: number;
591
- limit: number;
592
- pendingCount?: number;
593
- }
160
+ export type CreateExpenseRequest = CreateExpenseDto;
161
+ export type UpdateExpenseRequest = UpdateExpenseDto;
162
+ export type SendInvitationRequest = SendInvitationDto;
163
+ export type CreateClientEmailRequest = CreateClientEmailDto;
164
+ export type UpdateClientEmailRequest = UpdateClientEmailDto;
594
165
  export type ApiPaths = paths;
595
166
  export type PathParams<T extends keyof paths> = paths[T] extends {
596
167
  parameters: {