@routeflow/types 1.0.7 → 1.0.9
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 +94 -576
- package/dist/exports.d.ts.map +1 -1
- package/dist/exports.js +4 -9
- package/dist/exports.js.map +1 -1
- package/dist/index.d.ts +1205 -113
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/exports.ts +144 -778
- package/src/index.ts +1205 -113
package/dist/exports.d.ts
CHANGED
|
@@ -1,47 +1,57 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Type exports from auto-generated OpenAPI types.
|
|
3
3
|
*
|
|
4
|
-
* Type Flow: Prisma → API DTOs →
|
|
4
|
+
* Type Flow: Prisma Schema → API DTOs → Swagger → /docs-json → openapi-typescript → here
|
|
5
5
|
*
|
|
6
|
-
* IMPORTANT:
|
|
7
|
-
* -
|
|
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 = '
|
|
17
|
-
export type RunStatus = '
|
|
18
|
-
export type
|
|
19
|
-
export type
|
|
20
|
-
export type
|
|
21
|
-
export type
|
|
22
|
-
export type
|
|
23
|
-
export type
|
|
24
|
-
export type
|
|
25
|
-
export type
|
|
26
|
-
export type
|
|
27
|
-
export type
|
|
28
|
-
export type
|
|
29
|
-
export type
|
|
30
|
-
export type
|
|
31
|
-
export type
|
|
32
|
-
export type
|
|
33
|
-
export type
|
|
34
|
-
export type
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
38
|
-
export type
|
|
39
|
-
export type
|
|
40
|
-
export type
|
|
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
|
+
}
|
|
41
48
|
export type Customer = components['schemas']['CustomerResponseDto'];
|
|
42
49
|
export type CustomerList = components['schemas']['CustomerListResponseDto'];
|
|
43
50
|
export type Message = components['schemas']['MessageResponseDto'];
|
|
44
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'];
|
|
45
55
|
export type Referral = components['schemas']['ReferralResponseDto'];
|
|
46
56
|
export type ReferralList = components['schemas']['ReferralListResponseDto'];
|
|
47
57
|
export type ReferralStats = components['schemas']['ReferralStatsDto'];
|
|
@@ -54,415 +64,32 @@ export type SmartParseDocument = components['schemas']['SmartParseDocumentDto'];
|
|
|
54
64
|
export type SmartParseResult = components['schemas']['SmartParseResultDto'];
|
|
55
65
|
export type SuggestedDriver = components['schemas']['SuggestedDriverDto'];
|
|
56
66
|
export type SuggestedCustomer = components['schemas']['SuggestedCustomerDto'];
|
|
57
|
-
export
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
export
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
updatedAt: string;
|
|
76
|
-
org?: Organization;
|
|
77
|
-
driver?: Driver;
|
|
78
|
-
}
|
|
79
|
-
export interface Driver {
|
|
80
|
-
id: string;
|
|
81
|
-
eldProvider: EldProvider;
|
|
82
|
-
eldDriverId: string | null;
|
|
83
|
-
hosAvailableMin: number | null;
|
|
84
|
-
hosUpdatedAt: string | null;
|
|
85
|
-
dispatchStatus: DriverDispatchStatus;
|
|
86
|
-
userId: string;
|
|
87
|
-
createdAt: string;
|
|
88
|
-
updatedAt: string;
|
|
89
|
-
user?: User;
|
|
90
|
-
streetAddress?: string | null;
|
|
91
|
-
city?: string | null;
|
|
92
|
-
state?: string | null;
|
|
93
|
-
zipCode?: string | null;
|
|
94
|
-
country?: string | null;
|
|
95
|
-
emergencyName?: string | null;
|
|
96
|
-
emergencyPhone?: string | null;
|
|
97
|
-
employmentStatus?: EmploymentStatus;
|
|
98
|
-
hireDate?: string | null;
|
|
99
|
-
terminationDate?: string | null;
|
|
100
|
-
cdlNumber?: string | null;
|
|
101
|
-
cdlState?: string | null;
|
|
102
|
-
cdlClass?: CdlClass | null;
|
|
103
|
-
cdlExpiry?: string | null;
|
|
104
|
-
cdlEndorsements?: string[];
|
|
105
|
-
medicalCardNumber?: string | null;
|
|
106
|
-
medicalCardExpiry?: string | null;
|
|
107
|
-
medicalExamDate?: string | null;
|
|
108
|
-
medicalExaminer?: string | null;
|
|
109
|
-
complianceStatus?: ComplianceStatus;
|
|
110
|
-
complianceNotes?: string | null;
|
|
111
|
-
teamDriverId?: string | null;
|
|
112
|
-
teamDriver?: Driver | null;
|
|
113
|
-
teamPartner?: Driver | null;
|
|
114
|
-
isTeamLead?: boolean;
|
|
115
|
-
teamStartDate?: string | null;
|
|
116
|
-
driverType?: DriverType;
|
|
117
|
-
assignedDispatcherId?: string | null;
|
|
118
|
-
assignedDispatcher?: User | null;
|
|
119
|
-
}
|
|
120
|
-
export interface Run {
|
|
121
|
-
id: string;
|
|
122
|
-
name: string;
|
|
123
|
-
loadNumber: string | null;
|
|
124
|
-
status: RunStatus;
|
|
125
|
-
plannedDate: string;
|
|
126
|
-
plannedEndDate: string | null;
|
|
127
|
-
startedAt: string | null;
|
|
128
|
-
completedAt: string | null;
|
|
129
|
-
cancelledAt: string | null;
|
|
130
|
-
cancellationReason: CancellationReason | null;
|
|
131
|
-
cancellationNotes: string | null;
|
|
132
|
-
totalDistance: number | null;
|
|
133
|
-
totalDuration: number | null;
|
|
134
|
-
totalPay: number | null;
|
|
135
|
-
equipmentType: string | null;
|
|
136
|
-
commodityDesc: string | null;
|
|
137
|
-
weight: number | null;
|
|
138
|
-
orgId: string;
|
|
139
|
-
driverId: string | null;
|
|
140
|
-
customerId: string | null;
|
|
141
|
-
createdById: string;
|
|
142
|
-
cancelledById: string | null;
|
|
143
|
-
createdAt: string;
|
|
144
|
-
updatedAt: string;
|
|
145
|
-
driver?: User;
|
|
146
|
-
customer?: Customer;
|
|
147
|
-
stops?: Stop[];
|
|
148
|
-
documents?: Document[];
|
|
149
|
-
}
|
|
150
|
-
export interface Stop {
|
|
151
|
-
id: string;
|
|
152
|
-
sequence: number;
|
|
153
|
-
type: StopType;
|
|
154
|
-
status: StopStatus;
|
|
155
|
-
facilityName: string | null;
|
|
156
|
-
address: string;
|
|
157
|
-
lat: number;
|
|
158
|
-
lng: number;
|
|
159
|
-
contactName: string | null;
|
|
160
|
-
contactPhone: string | null;
|
|
161
|
-
notes: string | null;
|
|
162
|
-
referenceNumber: string | null;
|
|
163
|
-
timeWindowStart: string | null;
|
|
164
|
-
timeWindowEnd: string | null;
|
|
165
|
-
arrivedAt: string | null;
|
|
166
|
-
completedAt: string | null;
|
|
167
|
-
runId: string;
|
|
168
|
-
requiredDocs: DocumentType[];
|
|
169
|
-
createdAt: string;
|
|
170
|
-
updatedAt: string;
|
|
171
|
-
documents?: Document[];
|
|
172
|
-
}
|
|
173
|
-
export interface Document {
|
|
174
|
-
id: string;
|
|
175
|
-
type: DocumentType;
|
|
176
|
-
fileUrl: string;
|
|
177
|
-
fileName: string | null;
|
|
178
|
-
mimeType: string | null;
|
|
179
|
-
fileSize: number | null;
|
|
180
|
-
captureLat: number | null;
|
|
181
|
-
captureLng: number | null;
|
|
182
|
-
captureTime: string | null;
|
|
183
|
-
signatureData: string | null;
|
|
184
|
-
signedBy: string | null;
|
|
185
|
-
runId: string;
|
|
186
|
-
stopId: string | null;
|
|
187
|
-
uploadedById: string;
|
|
188
|
-
createdAt: string;
|
|
189
|
-
}
|
|
190
|
-
export interface DriverLocation {
|
|
191
|
-
id: string;
|
|
192
|
-
lat: number;
|
|
193
|
-
lng: number;
|
|
194
|
-
heading: number | null;
|
|
195
|
-
speed: number | null;
|
|
196
|
-
accuracy: number | null;
|
|
197
|
-
recordedAt: string;
|
|
198
|
-
driverId: string;
|
|
199
|
-
createdAt: string;
|
|
200
|
-
}
|
|
201
|
-
export interface MagicLink {
|
|
202
|
-
id: string;
|
|
203
|
-
token: string;
|
|
204
|
-
customerEmail: string | null;
|
|
205
|
-
customerPhone: string | null;
|
|
206
|
-
expiresAt: string;
|
|
207
|
-
runId: string;
|
|
208
|
-
stopId: string | null;
|
|
209
|
-
createdAt: string;
|
|
210
|
-
}
|
|
211
|
-
export interface Truck {
|
|
212
|
-
id: string;
|
|
213
|
-
truckNumber: string;
|
|
214
|
-
year: number | null;
|
|
215
|
-
make: string | null;
|
|
216
|
-
model: string | null;
|
|
217
|
-
vin: string | null;
|
|
218
|
-
licensePlate: string | null;
|
|
219
|
-
status: AssetStatus;
|
|
220
|
-
mileage: number | null;
|
|
221
|
-
fuelType: FuelType | null;
|
|
222
|
-
insuranceExpiry: string | null;
|
|
223
|
-
lastServiceDate: string | null;
|
|
224
|
-
notes: string | null;
|
|
225
|
-
orgId: string;
|
|
226
|
-
assignedDriverId: string | null;
|
|
227
|
-
createdAt: string;
|
|
228
|
-
updatedAt: string;
|
|
229
|
-
assignedDriver?: User;
|
|
230
|
-
}
|
|
231
|
-
export interface Trailer {
|
|
232
|
-
id: string;
|
|
233
|
-
trailerNumber: string;
|
|
234
|
-
type: TrailerType;
|
|
235
|
-
length: string | null;
|
|
236
|
-
weightCapacity: string | null;
|
|
237
|
-
status: AssetStatus;
|
|
238
|
-
vin: string | null;
|
|
239
|
-
licensePlate: string | null;
|
|
240
|
-
registrationExpiry: string | null;
|
|
241
|
-
lastInspectionDate: string | null;
|
|
242
|
-
notes: string | null;
|
|
243
|
-
orgId: string;
|
|
244
|
-
assignedDriverId: string | null;
|
|
245
|
-
createdAt: string;
|
|
246
|
-
updatedAt: string;
|
|
247
|
-
assignedDriver?: User;
|
|
248
|
-
}
|
|
249
|
-
export interface CompanyDocument {
|
|
250
|
-
id: string;
|
|
251
|
-
type: CompanyDocumentType;
|
|
252
|
-
name: string;
|
|
253
|
-
description: string | null;
|
|
254
|
-
fileUrl: string;
|
|
255
|
-
fileName: string | null;
|
|
256
|
-
mimeType: string | null;
|
|
257
|
-
fileSize: number | null;
|
|
258
|
-
expiryDate: string | null;
|
|
259
|
-
isActive: boolean;
|
|
260
|
-
orgId: string;
|
|
261
|
-
uploadedById: string;
|
|
262
|
-
createdAt: string;
|
|
263
|
-
updatedAt: string;
|
|
264
|
-
}
|
|
265
|
-
export interface ParsedDocument {
|
|
266
|
-
id: string;
|
|
267
|
-
originalFileUrl: string;
|
|
268
|
-
fileName: string | null;
|
|
269
|
-
mimeType: string | null;
|
|
270
|
-
fileSize: number | null;
|
|
271
|
-
status: ParsedDocumentStatus;
|
|
272
|
-
parsedData: Record<string, unknown> | null;
|
|
273
|
-
confidence: number | null;
|
|
274
|
-
errorMessage: string | null;
|
|
275
|
-
createdRunId: string | null;
|
|
276
|
-
matchedCustomerId: string | null;
|
|
277
|
-
suggestedDriverId: string | null;
|
|
278
|
-
uploadedById: string;
|
|
279
|
-
orgId: string;
|
|
280
|
-
createdAt: string;
|
|
281
|
-
updatedAt: string;
|
|
282
|
-
needsSignature: boolean;
|
|
283
|
-
signatureData: string | null;
|
|
284
|
-
signedAt: string | null;
|
|
285
|
-
signedByName: string | null;
|
|
286
|
-
signedByEmail: string | null;
|
|
287
|
-
signingToken: string | null;
|
|
288
|
-
signingTokenExp: string | null;
|
|
289
|
-
sourceType: DocumentSourceType;
|
|
290
|
-
sourceEmailId: string | null;
|
|
291
|
-
}
|
|
292
|
-
export interface UserSignature {
|
|
293
|
-
id: string;
|
|
294
|
-
signatureData: string;
|
|
295
|
-
userId: string;
|
|
296
|
-
createdAt: string;
|
|
297
|
-
updatedAt: string;
|
|
298
|
-
}
|
|
299
|
-
export interface ClientEmail {
|
|
300
|
-
id: string;
|
|
301
|
-
localPart: string;
|
|
302
|
-
isActive: boolean;
|
|
303
|
-
forwardTo: string[];
|
|
304
|
-
orgId: string;
|
|
305
|
-
customerId: string | null;
|
|
306
|
-
createdAt: string;
|
|
307
|
-
updatedAt: string;
|
|
308
|
-
fullEmail?: string;
|
|
309
|
-
customerName?: string;
|
|
310
|
-
emailCount?: number;
|
|
311
|
-
lastEmailAt?: string | null;
|
|
312
|
-
}
|
|
313
|
-
export interface InboundEmail {
|
|
314
|
-
id: string;
|
|
315
|
-
messageId: string;
|
|
316
|
-
fromEmail: string;
|
|
317
|
-
fromName: string | null;
|
|
318
|
-
subject: string | null;
|
|
319
|
-
textBody: string | null;
|
|
320
|
-
htmlBody: string | null;
|
|
321
|
-
receivedAt: string;
|
|
322
|
-
processedAt: string | null;
|
|
323
|
-
status: InboundEmailStatus;
|
|
324
|
-
errorMessage: string | null;
|
|
325
|
-
clientEmailId: string;
|
|
326
|
-
attachments?: EmailAttachment[];
|
|
327
|
-
clientEmailLocalPart?: string;
|
|
328
|
-
}
|
|
329
|
-
export interface EmailAttachment {
|
|
330
|
-
id: string;
|
|
331
|
-
fileName: string;
|
|
332
|
-
mimeType: string;
|
|
333
|
-
fileSize: number;
|
|
334
|
-
fileUrl: string;
|
|
335
|
-
inboundEmailId: string;
|
|
336
|
-
parsedDocumentId: string | null;
|
|
337
|
-
}
|
|
338
|
-
export interface Expense {
|
|
339
|
-
id: string;
|
|
340
|
-
type: ExpenseType;
|
|
341
|
-
amount: number;
|
|
342
|
-
description: string | null;
|
|
343
|
-
date: string;
|
|
344
|
-
vendor: string | null;
|
|
345
|
-
receiptUrl: string | null;
|
|
346
|
-
status: ExpenseStatus;
|
|
347
|
-
aiConfidence: number | null;
|
|
348
|
-
aiMatchNotes: string | null;
|
|
349
|
-
sourceEmailId: string | null;
|
|
350
|
-
approvedById: string | null;
|
|
351
|
-
approvedAt: string | null;
|
|
352
|
-
rejectedById: string | null;
|
|
353
|
-
rejectedAt: string | null;
|
|
354
|
-
rejectionReason: string | null;
|
|
355
|
-
orgId: string;
|
|
356
|
-
runId: string | null;
|
|
357
|
-
driverId: string | null;
|
|
358
|
-
truckId: string | null;
|
|
359
|
-
trailerId: string | null;
|
|
360
|
-
createdAt: string;
|
|
361
|
-
updatedAt: string;
|
|
362
|
-
driverName?: string;
|
|
363
|
-
truckNumber?: string;
|
|
364
|
-
trailerNumber?: string;
|
|
365
|
-
runName?: string;
|
|
366
|
-
aiSuggestion?: ExpenseAISuggestion;
|
|
367
|
-
}
|
|
368
|
-
export interface ExpenseAISuggestion {
|
|
369
|
-
driverId?: string;
|
|
370
|
-
driverName?: string;
|
|
371
|
-
truckId?: string;
|
|
372
|
-
truckNumber?: string;
|
|
373
|
-
trailerId?: string;
|
|
374
|
-
trailerNumber?: string;
|
|
375
|
-
runId?: string;
|
|
376
|
-
runName?: string;
|
|
377
|
-
confidence: number;
|
|
378
|
-
}
|
|
379
|
-
export interface ExpenseStats {
|
|
380
|
-
totalPending: number;
|
|
381
|
-
totalApproved: number;
|
|
382
|
-
pendingAmount: number;
|
|
383
|
-
approvedAmount: number;
|
|
384
|
-
byType: Record<ExpenseType, number>;
|
|
385
|
-
}
|
|
386
|
-
export interface DocumentToSign {
|
|
387
|
-
id: string;
|
|
388
|
-
documentUrl: string;
|
|
389
|
-
fileName: string | null;
|
|
390
|
-
mimeType: string | null;
|
|
391
|
-
isSigned: boolean;
|
|
392
|
-
signedAt: string | null;
|
|
393
|
-
isExpired: boolean;
|
|
394
|
-
expiresAt: string | null;
|
|
395
|
-
brokerName?: string;
|
|
396
|
-
loadNumber?: string;
|
|
397
|
-
rate?: number;
|
|
398
|
-
pickupLocation?: string;
|
|
399
|
-
deliveryLocation?: string;
|
|
400
|
-
pickupDate?: string;
|
|
401
|
-
deliveryDate?: string;
|
|
402
|
-
equipmentType?: string;
|
|
403
|
-
commodity?: string;
|
|
404
|
-
weight?: number;
|
|
405
|
-
organizationName: string;
|
|
406
|
-
hasSavedSignature?: boolean;
|
|
407
|
-
savedSignaturePreview?: string;
|
|
408
|
-
}
|
|
409
|
-
export interface SignDocumentResponse {
|
|
410
|
-
success: boolean;
|
|
411
|
-
message: string;
|
|
412
|
-
createdRunId?: string;
|
|
413
|
-
forwarded?: boolean;
|
|
414
|
-
forwardedTo?: string[];
|
|
415
|
-
}
|
|
416
|
-
export interface AuthResponse {
|
|
417
|
-
accessToken: string;
|
|
418
|
-
refreshToken: string;
|
|
419
|
-
user: User;
|
|
420
|
-
}
|
|
421
|
-
export interface LinkingCodeResponse {
|
|
422
|
-
code: string;
|
|
423
|
-
expiresAt: string;
|
|
424
|
-
}
|
|
425
|
-
export interface TrackingStatus {
|
|
426
|
-
runId: string;
|
|
427
|
-
runName: string;
|
|
428
|
-
status: RunStatus;
|
|
429
|
-
estimatedArrival: string | null;
|
|
430
|
-
currentStop: {
|
|
431
|
-
id: string;
|
|
432
|
-
address: string;
|
|
433
|
-
status: StopStatus;
|
|
434
|
-
} | null;
|
|
435
|
-
stopsTotal: number;
|
|
436
|
-
stopsCompleted: number;
|
|
437
|
-
}
|
|
438
|
-
export interface TrackingLocation {
|
|
439
|
-
lat: number;
|
|
440
|
-
lng: number;
|
|
441
|
-
updatedAt: string;
|
|
442
|
-
}
|
|
443
|
-
export interface RunSummary {
|
|
444
|
-
id: string;
|
|
445
|
-
name: string;
|
|
446
|
-
status: RunStatus;
|
|
447
|
-
plannedDate: string;
|
|
448
|
-
driverName: string | null;
|
|
449
|
-
stopsTotal: number;
|
|
450
|
-
stopsCompleted: number;
|
|
451
|
-
}
|
|
452
|
-
export interface TodaysRunsResponse {
|
|
453
|
-
runs: RunSummary[];
|
|
454
|
-
stats: {
|
|
455
|
-
total: number;
|
|
456
|
-
inProgress: number;
|
|
457
|
-
completed: number;
|
|
458
|
-
delayed: number;
|
|
459
|
-
};
|
|
460
|
-
}
|
|
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'];
|
|
461
85
|
export type RegisterDto = components['schemas']['RegisterDto'];
|
|
462
86
|
export type LoginDto = components['schemas']['LoginDto'];
|
|
463
87
|
export type TelegramAuthDto = components['schemas']['TelegramAuthDto'];
|
|
464
88
|
export type TelegramLinkDto = components['schemas']['TelegramLinkDto'];
|
|
465
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'];
|
|
466
93
|
export type CreateUserDto = components['schemas']['CreateUserDto'];
|
|
467
94
|
export type UpdateUserDto = components['schemas']['UpdateUserDto'];
|
|
468
95
|
export type LinkTelegramDto = components['schemas']['LinkTelegramDto'];
|
|
@@ -472,12 +99,16 @@ export type InviteUserDto = components['schemas']['InviteUserDto'];
|
|
|
472
99
|
export type CreateRunDto = components['schemas']['CreateRunDto'];
|
|
473
100
|
export type UpdateRunDto = components['schemas']['UpdateRunDto'];
|
|
474
101
|
export type AssignDriverDto = components['schemas']['AssignDriverDto'];
|
|
102
|
+
export type CancelRunDto = components['schemas']['CancelRunDto'];
|
|
103
|
+
export type ReactivateRunDto = components['schemas']['ReactivateRunDto'];
|
|
475
104
|
export type CreateStopDto = components['schemas']['CreateStopDto'];
|
|
476
105
|
export type UpdateStopDto = components['schemas']['UpdateStopDto'];
|
|
477
106
|
export type ReorderStopsDto = components['schemas']['ReorderStopsDto'];
|
|
478
107
|
export type UpdateStopStatusDto = components['schemas']['UpdateStopStatusDto'];
|
|
479
108
|
export type CreateDocumentDto = components['schemas']['CreateDocumentDto'];
|
|
480
109
|
export type CreateCompanyDocumentDto = components['schemas']['CreateCompanyDocumentDto'];
|
|
110
|
+
export type ParseRateConDto = components['schemas']['ParseRateConDto'];
|
|
111
|
+
export type ExtractAssetsDto = components['schemas']['ExtractAssetsDto'];
|
|
481
112
|
export type CreateMagicLinkDto = components['schemas']['CreateMagicLinkDto'];
|
|
482
113
|
export type CreateTruckDto = components['schemas']['CreateTruckDto'];
|
|
483
114
|
export type UpdateTruckDto = components['schemas']['UpdateTruckDto'];
|
|
@@ -488,10 +119,11 @@ export type CreateCustomerDto = components['schemas']['CreateCustomerDto'];
|
|
|
488
119
|
export type UpdateCustomerDto = components['schemas']['UpdateCustomerDto'];
|
|
489
120
|
export type CreateMessageDto = components['schemas']['CreateMessageDto'];
|
|
490
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'];
|
|
491
125
|
export type CreateReferralDto = components['schemas']['CreateReferralDto'];
|
|
492
126
|
export type UpdateReferralDto = components['schemas']['UpdateReferralDto'];
|
|
493
|
-
export type ParseRateConDto = components['schemas']['ParseRateConDto'];
|
|
494
|
-
export type ExtractAssetsDto = components['schemas']['ExtractAssetsDto'];
|
|
495
127
|
export type ApproveExtractionDto = components['schemas']['ApproveExtractionDto'];
|
|
496
128
|
export type RejectExtractionDto = components['schemas']['RejectExtractionDto'];
|
|
497
129
|
export type MergeExtractionDto = components['schemas']['MergeExtractionDto'];
|
|
@@ -501,108 +133,19 @@ export type UpdateDriverDto = components['schemas']['UpdateDriverDto'];
|
|
|
501
133
|
export type UpdateComplianceDto = components['schemas']['UpdateComplianceDto'];
|
|
502
134
|
export type AssignDispatcherDto = components['schemas']['AssignDispatcherDto'];
|
|
503
135
|
export type LinkTeamDriverDto = components['schemas']['LinkTeamDriverDto'];
|
|
504
|
-
export type
|
|
505
|
-
export type
|
|
506
|
-
export
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
export
|
|
515
|
-
id: string;
|
|
516
|
-
driverId: string;
|
|
517
|
-
dispatcherId: string | null;
|
|
518
|
-
dispatcher?: User | null;
|
|
519
|
-
assignedById: string;
|
|
520
|
-
assignedBy?: User;
|
|
521
|
-
reason?: string | null;
|
|
522
|
-
createdAt: string;
|
|
523
|
-
}
|
|
524
|
-
export interface SaveSignatureRequest {
|
|
525
|
-
signatureData: string;
|
|
526
|
-
}
|
|
527
|
-
export interface CreateClientEmailRequest {
|
|
528
|
-
localPart: string;
|
|
529
|
-
customerId?: string;
|
|
530
|
-
forwardTo?: string[];
|
|
531
|
-
}
|
|
532
|
-
export interface UpdateClientEmailRequest {
|
|
533
|
-
localPart?: string;
|
|
534
|
-
customerId?: string;
|
|
535
|
-
forwardTo?: string[];
|
|
536
|
-
isActive?: boolean;
|
|
537
|
-
}
|
|
538
|
-
export interface SendInvitationRequest {
|
|
539
|
-
recipientEmail: string;
|
|
540
|
-
customMessage?: string;
|
|
541
|
-
}
|
|
542
|
-
export interface CreateExpenseRequest {
|
|
543
|
-
type: ExpenseType;
|
|
544
|
-
amount: number;
|
|
545
|
-
description?: string;
|
|
546
|
-
date: string;
|
|
547
|
-
vendor?: string;
|
|
548
|
-
receiptUrl?: string;
|
|
549
|
-
driverId?: string;
|
|
550
|
-
truckId?: string;
|
|
551
|
-
trailerId?: string;
|
|
552
|
-
runId?: string;
|
|
553
|
-
}
|
|
554
|
-
export interface UpdateExpenseRequest {
|
|
555
|
-
type?: ExpenseType;
|
|
556
|
-
amount?: number;
|
|
557
|
-
description?: string;
|
|
558
|
-
date?: string;
|
|
559
|
-
vendor?: string;
|
|
560
|
-
receiptUrl?: string;
|
|
561
|
-
driverId?: string;
|
|
562
|
-
truckId?: string;
|
|
563
|
-
trailerId?: string;
|
|
564
|
-
runId?: string;
|
|
565
|
-
}
|
|
566
|
-
export interface AssociateExpenseRequest {
|
|
567
|
-
driverId?: string;
|
|
568
|
-
truckId?: string;
|
|
569
|
-
trailerId?: string;
|
|
570
|
-
runId?: string;
|
|
571
|
-
}
|
|
572
|
-
export interface RejectExpenseRequest {
|
|
573
|
-
reason: string;
|
|
574
|
-
}
|
|
575
|
-
export interface ExpenseFilters {
|
|
576
|
-
type?: ExpenseType;
|
|
577
|
-
status?: ExpenseStatus;
|
|
578
|
-
driverId?: string;
|
|
579
|
-
truckId?: string;
|
|
580
|
-
runId?: string;
|
|
581
|
-
fromDate?: string;
|
|
582
|
-
toDate?: string;
|
|
583
|
-
search?: string;
|
|
584
|
-
page?: number;
|
|
585
|
-
limit?: number;
|
|
586
|
-
}
|
|
587
|
-
export interface SignDocumentRequest {
|
|
588
|
-
signatureData: string;
|
|
589
|
-
signedByName?: string;
|
|
590
|
-
signedByEmail?: string;
|
|
591
|
-
useSavedSignature?: boolean;
|
|
592
|
-
}
|
|
593
|
-
export interface InboundEmailFilters {
|
|
594
|
-
status?: InboundEmailStatus;
|
|
595
|
-
clientEmailId?: string;
|
|
596
|
-
fromDate?: string;
|
|
597
|
-
toDate?: string;
|
|
598
|
-
search?: string;
|
|
599
|
-
page?: number;
|
|
600
|
-
limit?: number;
|
|
601
|
-
}
|
|
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'];
|
|
602
147
|
export type LoginRequest = LoginDto;
|
|
603
|
-
export type LoginResponse = AuthResponse;
|
|
604
148
|
export type RegisterRequest = RegisterDto;
|
|
605
|
-
export type RegisterResponse = AuthResponse;
|
|
606
149
|
export type CreateRunRequest = CreateRunDto;
|
|
607
150
|
export type UpdateRunRequest = UpdateRunDto;
|
|
608
151
|
export type CreateStopRequest = CreateStopDto;
|
|
@@ -610,44 +153,19 @@ export type UpdateStopRequest = UpdateStopDto;
|
|
|
610
153
|
export type CreateCustomerRequest = CreateCustomerDto;
|
|
611
154
|
export type UpdateCustomerRequest = UpdateCustomerDto;
|
|
612
155
|
export type CreateMessageRequest = CreateMessageDto;
|
|
156
|
+
export type CreateStatementRequest = CreateStatementDto;
|
|
157
|
+
export type UpdateStatementRequest = UpdateStatementDto;
|
|
613
158
|
export type CreateReferralRequest = CreateReferralDto;
|
|
614
159
|
export type UpdateReferralRequest = UpdateReferralDto;
|
|
615
|
-
export
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
export
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
}
|
|
625
|
-
export type PaginatedRuns = PaginatedResponse<Run>;
|
|
626
|
-
export type PaginatedStops = PaginatedResponse<Stop>;
|
|
627
|
-
export type PaginatedDrivers = PaginatedResponse<User>;
|
|
628
|
-
export type PaginatedTrucks = PaginatedResponse<Truck>;
|
|
629
|
-
export type PaginatedTrailers = PaginatedResponse<Trailer>;
|
|
630
|
-
export type PaginatedCustomers = PaginatedResponse<Customer>;
|
|
631
|
-
export type PaginatedMessages = PaginatedResponse<Message>;
|
|
632
|
-
export type PaginatedExpenses = PaginatedResponse<Expense>;
|
|
633
|
-
export type PaginatedInboundEmails = PaginatedResponse<InboundEmail>;
|
|
634
|
-
export interface ClientEmailListResponse {
|
|
635
|
-
data: ClientEmail[];
|
|
636
|
-
total: number;
|
|
637
|
-
}
|
|
638
|
-
export interface InboundEmailListResponse {
|
|
639
|
-
data: InboundEmail[];
|
|
640
|
-
total: number;
|
|
641
|
-
page: number;
|
|
642
|
-
limit: number;
|
|
643
|
-
}
|
|
644
|
-
export interface ExpenseListResponse {
|
|
645
|
-
data: Expense[];
|
|
646
|
-
total: number;
|
|
647
|
-
page: number;
|
|
648
|
-
limit: number;
|
|
649
|
-
pendingCount?: number;
|
|
650
|
-
}
|
|
160
|
+
export type CreateExpenseRequest = CreateExpenseDto;
|
|
161
|
+
export type UpdateExpenseRequest = UpdateExpenseDto;
|
|
162
|
+
export type AssociateExpenseRequest = AssociateExpenseDto;
|
|
163
|
+
export type RejectExpenseRequest = RejectExpenseDto;
|
|
164
|
+
export type SendInvitationRequest = SendInvitationDto;
|
|
165
|
+
export type CreateClientEmailRequest = CreateClientEmailDto;
|
|
166
|
+
export type UpdateClientEmailRequest = UpdateClientEmailDto;
|
|
167
|
+
export type SaveSignatureRequest = SaveSignatureDto;
|
|
168
|
+
export type SignDocumentRequest = SignDocumentDto;
|
|
651
169
|
export type ApiPaths = paths;
|
|
652
170
|
export type PathParams<T extends keyof paths> = paths[T] extends {
|
|
653
171
|
parameters: {
|