@routeflow/types 1.0.19 → 1.0.20

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/index.d.ts CHANGED
@@ -224,6 +224,40 @@ export interface paths {
224
224
  patch?: never;
225
225
  trace?: never;
226
226
  };
227
+ "/api/auth/e2e/verification-code": {
228
+ parameters: {
229
+ query?: never;
230
+ header?: never;
231
+ path?: never;
232
+ cookie?: never;
233
+ };
234
+ /** [E2E Test] Get verification code for email */
235
+ get: operations["AuthController_getVerificationCodeForE2E"];
236
+ put?: never;
237
+ post?: never;
238
+ delete?: never;
239
+ options?: never;
240
+ head?: never;
241
+ patch?: never;
242
+ trace?: never;
243
+ };
244
+ "/api/auth/e2e/user": {
245
+ parameters: {
246
+ query?: never;
247
+ header?: never;
248
+ path?: never;
249
+ cookie?: never;
250
+ };
251
+ get?: never;
252
+ put?: never;
253
+ post?: never;
254
+ /** [E2E Test] Delete test user and their organization */
255
+ delete: operations["AuthController_deleteUserForE2E"];
256
+ options?: never;
257
+ head?: never;
258
+ patch?: never;
259
+ trace?: never;
260
+ };
227
261
  "/api/users": {
228
262
  parameters: {
229
263
  query?: never;
@@ -931,6 +965,23 @@ export interface paths {
931
965
  patch?: never;
932
966
  trace?: never;
933
967
  };
968
+ "/api/runs/{id}/stops/{stopId}/revert": {
969
+ parameters: {
970
+ query?: never;
971
+ header?: never;
972
+ path?: never;
973
+ cookie?: never;
974
+ };
975
+ get?: never;
976
+ put?: never;
977
+ /** Revert stop status to previous status (undo) */
978
+ post: operations["RunsController_revertStopStatus"];
979
+ delete?: never;
980
+ options?: never;
981
+ head?: never;
982
+ patch?: never;
983
+ trace?: never;
984
+ };
934
985
  "/api/runs/{id}/geocode-stops": {
935
986
  parameters: {
936
987
  query?: never;
@@ -2951,6 +3002,23 @@ export interface paths {
2951
3002
  patch?: never;
2952
3003
  trace?: never;
2953
3004
  };
3005
+ "/api/search": {
3006
+ parameters: {
3007
+ query?: never;
3008
+ header?: never;
3009
+ path?: never;
3010
+ cookie?: never;
3011
+ };
3012
+ /** Global search across runs, drivers, trucks, trailers, and customers */
3013
+ get: operations["SearchController_search"];
3014
+ put?: never;
3015
+ post?: never;
3016
+ delete?: never;
3017
+ options?: never;
3018
+ head?: never;
3019
+ patch?: never;
3020
+ trace?: never;
3021
+ };
2954
3022
  }
2955
3023
  export type webhooks = Record<string, never>;
2956
3024
  export interface components {
@@ -3509,6 +3577,16 @@ export interface components {
3509
3577
  * @example uuid
3510
3578
  */
3511
3579
  commissionUserId?: string;
3580
+ /**
3581
+ * @description Empty miles from driver location to first pickup
3582
+ * @example 150
3583
+ */
3584
+ emptyMiles?: number;
3585
+ /**
3586
+ * @description Starting location for empty miles calculation
3587
+ * @example Chicago, IL
3588
+ */
3589
+ emptyMilesLocation?: string;
3512
3590
  };
3513
3591
  AssignDriverDto: {
3514
3592
  /** @example clxxx... */
@@ -3656,7 +3734,7 @@ export interface components {
3656
3734
  * @example ARRIVED
3657
3735
  * @enum {string}
3658
3736
  */
3659
- status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED";
3737
+ status: "PENDING" | "EN_ROUTE" | "ARRIVED" | "LOADING" | "LOADED" | "DELIVERING" | "DELIVERED" | "EXCEPTION" | "SKIPPED" | "CANCELLED";
3660
3738
  /** @example 40.7128 */
3661
3739
  lat?: number;
3662
3740
  /** @example -74.006 */
@@ -3664,6 +3742,10 @@ export interface components {
3664
3742
  /** @example Customer not available, left at door */
3665
3743
  notes?: string;
3666
3744
  };
3745
+ RevertStopStatusDto: {
3746
+ /** @example Driver marked arrived by mistake */
3747
+ reason?: string;
3748
+ };
3667
3749
  RunChargeCreatedByDto: {
3668
3750
  id: string;
3669
3751
  name: string;
@@ -4218,6 +4300,52 @@ export interface components {
4218
4300
  lastServiceDate?: string;
4219
4301
  /** @example New tires installed */
4220
4302
  notes?: string;
4303
+ /**
4304
+ * @description License plate state
4305
+ * @example TX
4306
+ */
4307
+ licenseState?: string;
4308
+ /**
4309
+ * @description Truck color
4310
+ * @example White
4311
+ */
4312
+ color?: string;
4313
+ /**
4314
+ * @description Registration expiry date
4315
+ * @example 2025-12-31
4316
+ */
4317
+ registrationExpiry?: string;
4318
+ /**
4319
+ * @description URL to registration document
4320
+ * @example https://storage.example.com/registration.pdf
4321
+ */
4322
+ registrationFileUrl?: string;
4323
+ /**
4324
+ * @description Annual inspection expiry date
4325
+ * @example 2025-06-30
4326
+ */
4327
+ annualInspectionExpiry?: string;
4328
+ /**
4329
+ * @description URL to annual inspection document
4330
+ * @example https://storage.example.com/inspection.pdf
4331
+ */
4332
+ annualInspectionFileUrl?: string;
4333
+ /**
4334
+ * @description Fleet status
4335
+ * @example AVAILABLE
4336
+ * @enum {string}
4337
+ */
4338
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4339
+ /**
4340
+ * @description Ownership type
4341
+ * @example COMPANY
4342
+ * @enum {string}
4343
+ */
4344
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4345
+ /** @description Owner ID for owner operator trucks */
4346
+ ownerId?: string;
4347
+ /** @description Notes about ownership */
4348
+ ownerNotes?: string;
4221
4349
  };
4222
4350
  TruckListResponseDto: {
4223
4351
  items: components["schemas"]["TruckResponseDto"][];
@@ -4257,6 +4385,52 @@ export interface components {
4257
4385
  lastServiceDate?: string;
4258
4386
  /** @example New tires installed */
4259
4387
  notes?: string;
4388
+ /**
4389
+ * @description License plate state
4390
+ * @example TX
4391
+ */
4392
+ licenseState?: string;
4393
+ /**
4394
+ * @description Truck color
4395
+ * @example White
4396
+ */
4397
+ color?: string;
4398
+ /**
4399
+ * @description Registration expiry date
4400
+ * @example 2025-12-31
4401
+ */
4402
+ registrationExpiry?: string;
4403
+ /**
4404
+ * @description URL to registration document
4405
+ * @example https://storage.example.com/registration.pdf
4406
+ */
4407
+ registrationFileUrl?: string;
4408
+ /**
4409
+ * @description Annual inspection expiry date
4410
+ * @example 2025-06-30
4411
+ */
4412
+ annualInspectionExpiry?: string;
4413
+ /**
4414
+ * @description URL to annual inspection document
4415
+ * @example https://storage.example.com/inspection.pdf
4416
+ */
4417
+ annualInspectionFileUrl?: string;
4418
+ /**
4419
+ * @description Fleet status
4420
+ * @example AVAILABLE
4421
+ * @enum {string}
4422
+ */
4423
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4424
+ /**
4425
+ * @description Ownership type
4426
+ * @example COMPANY
4427
+ * @enum {string}
4428
+ */
4429
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4430
+ /** @description Owner ID for owner operator trucks */
4431
+ ownerId?: string;
4432
+ /** @description Notes about ownership */
4433
+ ownerNotes?: string;
4260
4434
  };
4261
4435
  AssignAssetDto: {
4262
4436
  /** @example driver-cuid-123 */
@@ -4289,6 +4463,42 @@ export interface components {
4289
4463
  lastInspectionDate?: string;
4290
4464
  /** @example New brakes installed */
4291
4465
  notes?: string;
4466
+ /**
4467
+ * @description License plate state
4468
+ * @example TX
4469
+ */
4470
+ licenseState?: string;
4471
+ /**
4472
+ * @description URL to registration document
4473
+ * @example https://storage.example.com/registration.pdf
4474
+ */
4475
+ registrationFileUrl?: string;
4476
+ /**
4477
+ * @description Annual inspection expiry date
4478
+ * @example 2025-06-30
4479
+ */
4480
+ annualInspectionExpiry?: string;
4481
+ /**
4482
+ * @description URL to annual inspection document
4483
+ * @example https://storage.example.com/inspection.pdf
4484
+ */
4485
+ annualInspectionFileUrl?: string;
4486
+ /**
4487
+ * @description Fleet status
4488
+ * @example AVAILABLE
4489
+ * @enum {string}
4490
+ */
4491
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4492
+ /**
4493
+ * @description Ownership type
4494
+ * @example COMPANY
4495
+ * @enum {string}
4496
+ */
4497
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4498
+ /** @description Owner ID for owner operator trailers */
4499
+ ownerId?: string;
4500
+ /** @description Notes about ownership */
4501
+ ownerNotes?: string;
4292
4502
  };
4293
4503
  TrailerListResponseDto: {
4294
4504
  items: components["schemas"]["TrailerResponseDto"][];
@@ -4324,6 +4534,42 @@ export interface components {
4324
4534
  lastInspectionDate?: string;
4325
4535
  /** @example New brakes installed */
4326
4536
  notes?: string;
4537
+ /**
4538
+ * @description License plate state
4539
+ * @example TX
4540
+ */
4541
+ licenseState?: string;
4542
+ /**
4543
+ * @description URL to registration document
4544
+ * @example https://storage.example.com/registration.pdf
4545
+ */
4546
+ registrationFileUrl?: string;
4547
+ /**
4548
+ * @description Annual inspection expiry date
4549
+ * @example 2025-06-30
4550
+ */
4551
+ annualInspectionExpiry?: string;
4552
+ /**
4553
+ * @description URL to annual inspection document
4554
+ * @example https://storage.example.com/inspection.pdf
4555
+ */
4556
+ annualInspectionFileUrl?: string;
4557
+ /**
4558
+ * @description Fleet status
4559
+ * @example AVAILABLE
4560
+ * @enum {string}
4561
+ */
4562
+ fleetStatus?: "AVAILABLE" | "UNASSIGNED" | "SHOP" | "SOLD";
4563
+ /**
4564
+ * @description Ownership type
4565
+ * @example COMPANY
4566
+ * @enum {string}
4567
+ */
4568
+ ownershipType?: "COMPANY" | "OWNER_OPERATOR";
4569
+ /** @description Owner ID for owner operator trailers */
4570
+ ownerId?: string;
4571
+ /** @description Notes about ownership */
4572
+ ownerNotes?: string;
4327
4573
  };
4328
4574
  AssignedRunSummaryResponseDto: {
4329
4575
  id: string;
@@ -4636,6 +4882,31 @@ export interface components {
4636
4882
  messages: components["schemas"]["ChatHistoryMessageDto"][];
4637
4883
  sessionId?: string;
4638
4884
  };
4885
+ CustomerContactDto: {
4886
+ /** @description Contact ID (for updates) */
4887
+ id?: string;
4888
+ /** @example John Smith */
4889
+ name: string;
4890
+ /**
4891
+ * Format: email
4892
+ * @example john@example.com
4893
+ */
4894
+ email?: string;
4895
+ /** @example +1-555-123-4567 */
4896
+ phone?: string;
4897
+ /**
4898
+ * @description Role/department of the contact
4899
+ * @example Dispatch
4900
+ */
4901
+ role?: string;
4902
+ /**
4903
+ * @description Whether this is the primary contact
4904
+ * @example true
4905
+ */
4906
+ isPrimary?: boolean;
4907
+ /** @description Notes about this contact */
4908
+ notes?: string;
4909
+ };
4639
4910
  CreateCustomerDto: {
4640
4911
  /**
4641
4912
  * @default BROKER
@@ -4668,6 +4939,8 @@ export interface components {
4668
4939
  /** @example US */
4669
4940
  country?: string;
4670
4941
  notes?: string;
4942
+ /** @description Array of contacts for this customer */
4943
+ contacts?: components["schemas"]["CustomerContactDto"][];
4671
4944
  };
4672
4945
  CustomerResponseDto: {
4673
4946
  id: string;
@@ -4735,6 +5008,8 @@ export interface components {
4735
5008
  /** @example US */
4736
5009
  country?: string;
4737
5010
  notes?: string;
5011
+ /** @description Array of contacts for this customer */
5012
+ contacts?: components["schemas"]["CustomerContactDto"][];
4738
5013
  isActive?: boolean;
4739
5014
  };
4740
5015
  CreateMessageDto: {
@@ -4986,6 +5261,8 @@ export interface components {
4986
5261
  truckId?: string;
4987
5262
  trailerId?: string;
4988
5263
  runId?: string;
5264
+ /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
5265
+ stopId?: string;
4989
5266
  };
4990
5267
  ExpenseResponseDto: {
4991
5268
  id: string;
@@ -5058,6 +5335,8 @@ export interface components {
5058
5335
  truckId?: string;
5059
5336
  trailerId?: string;
5060
5337
  runId?: string;
5338
+ /** @description Stop ID for stop-specific fees (lumper, escort, etc.) */
5339
+ stopId?: string;
5061
5340
  };
5062
5341
  AssociateExpenseDto: {
5063
5342
  driverId?: string;
@@ -5273,6 +5552,33 @@ export interface components {
5273
5552
  forwardedTo?: string[];
5274
5553
  signedPdfUrl?: string;
5275
5554
  };
5555
+ SearchResultItemDto: {
5556
+ /** @description Entity ID */
5557
+ id: string;
5558
+ /**
5559
+ * @description Entity type
5560
+ * @enum {string}
5561
+ */
5562
+ type: "run" | "driver" | "truck" | "trailer" | "customer";
5563
+ /** @description Display title */
5564
+ title: string;
5565
+ /** @description Secondary display text */
5566
+ subtitle?: string;
5567
+ /** @description Navigation URL */
5568
+ url: string;
5569
+ };
5570
+ SearchResultDto: {
5571
+ /** @description Matching runs */
5572
+ runs: components["schemas"]["SearchResultItemDto"][];
5573
+ /** @description Matching drivers */
5574
+ drivers: components["schemas"]["SearchResultItemDto"][];
5575
+ /** @description Matching trucks */
5576
+ trucks: components["schemas"]["SearchResultItemDto"][];
5577
+ /** @description Matching trailers */
5578
+ trailers: components["schemas"]["SearchResultItemDto"][];
5579
+ /** @description Matching customers */
5580
+ customers: components["schemas"]["SearchResultItemDto"][];
5581
+ };
5276
5582
  };
5277
5583
  responses: never;
5278
5584
  parameters: never;
@@ -5590,6 +5896,62 @@ export interface operations {
5590
5896
  };
5591
5897
  };
5592
5898
  };
5899
+ AuthController_getVerificationCodeForE2E: {
5900
+ parameters: {
5901
+ query: {
5902
+ email: string;
5903
+ secret: string;
5904
+ };
5905
+ header?: never;
5906
+ path?: never;
5907
+ cookie?: never;
5908
+ };
5909
+ requestBody?: never;
5910
+ responses: {
5911
+ /** @description Verification code returned */
5912
+ 200: {
5913
+ headers: {
5914
+ [name: string]: unknown;
5915
+ };
5916
+ content?: never;
5917
+ };
5918
+ /** @description Invalid E2E test secret */
5919
+ 401: {
5920
+ headers: {
5921
+ [name: string]: unknown;
5922
+ };
5923
+ content?: never;
5924
+ };
5925
+ };
5926
+ };
5927
+ AuthController_deleteUserForE2E: {
5928
+ parameters: {
5929
+ query: {
5930
+ email: string;
5931
+ secret: string;
5932
+ };
5933
+ header?: never;
5934
+ path?: never;
5935
+ cookie?: never;
5936
+ };
5937
+ requestBody?: never;
5938
+ responses: {
5939
+ /** @description User deleted */
5940
+ 200: {
5941
+ headers: {
5942
+ [name: string]: unknown;
5943
+ };
5944
+ content?: never;
5945
+ };
5946
+ /** @description Invalid E2E test secret */
5947
+ 401: {
5948
+ headers: {
5949
+ [name: string]: unknown;
5950
+ };
5951
+ content?: never;
5952
+ };
5953
+ };
5954
+ };
5593
5955
  UsersController_findAll: {
5594
5956
  parameters: {
5595
5957
  query: {
@@ -6754,6 +7116,37 @@ export interface operations {
6754
7116
  };
6755
7117
  };
6756
7118
  };
7119
+ RunsController_revertStopStatus: {
7120
+ parameters: {
7121
+ query?: never;
7122
+ header?: never;
7123
+ path: {
7124
+ id: string;
7125
+ stopId: string;
7126
+ };
7127
+ cookie?: never;
7128
+ };
7129
+ requestBody: {
7130
+ content: {
7131
+ "application/json": components["schemas"]["RevertStopStatusDto"];
7132
+ };
7133
+ };
7134
+ responses: {
7135
+ /** @description Stop status reverted successfully */
7136
+ 200: {
7137
+ headers: {
7138
+ [name: string]: unknown;
7139
+ };
7140
+ content?: never;
7141
+ };
7142
+ 201: {
7143
+ headers: {
7144
+ [name: string]: unknown;
7145
+ };
7146
+ content?: never;
7147
+ };
7148
+ };
7149
+ };
6757
7150
  RunsController_geocodeStops: {
6758
7151
  parameters: {
6759
7152
  query?: never;
@@ -9970,7 +10363,14 @@ export interface operations {
9970
10363
  };
9971
10364
  ClientEmailController_findAll: {
9972
10365
  parameters: {
9973
- query?: never;
10366
+ query?: {
10367
+ /** @description Filter by active status */
10368
+ isActive?: boolean;
10369
+ /** @description Filter by associated run status (DISPATCHED, IN_PROGRESS, COMPLETED, etc.) */
10370
+ runStatus?: string;
10371
+ /** @description Search by local part or customer name */
10372
+ search?: string;
10373
+ };
9974
10374
  header?: never;
9975
10375
  path?: never;
9976
10376
  cookie?: never;
@@ -10294,5 +10694,30 @@ export interface operations {
10294
10694
  };
10295
10695
  };
10296
10696
  };
10697
+ SearchController_search: {
10698
+ parameters: {
10699
+ query: {
10700
+ /** @description Search term (min 2 characters) */
10701
+ q: string;
10702
+ /** @description Max results per category (default: 10) */
10703
+ limit?: number;
10704
+ };
10705
+ header?: never;
10706
+ path?: never;
10707
+ cookie?: never;
10708
+ };
10709
+ requestBody?: never;
10710
+ responses: {
10711
+ /** @description Search results grouped by entity type */
10712
+ 200: {
10713
+ headers: {
10714
+ [name: string]: unknown;
10715
+ };
10716
+ content: {
10717
+ "application/json": components["schemas"]["SearchResultDto"];
10718
+ };
10719
+ };
10720
+ };
10721
+ };
10297
10722
  }
10298
10723
  //# sourceMappingURL=index.d.ts.map