@routeflow/types 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@routeflow/types","version":"1.0.6","description":"Auto-generated TypeScript types from the RouteFlow API OpenAPI specification","main":"dist/exports.js","types":"dist/exports.d.ts","exports":{".":{"types":"./dist/exports.d.ts","default":"./dist/exports.js"},"./raw":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"files":["dist","src"],"scripts":{"generate":"openapi-typescript http://localhost:3001/api/docs-json -o src/index.ts","generate:prod":"openapi-typescript https://api.routeflow.app/api/docs-json -o src/index.ts","build":"tsc","type-check":"tsc --noEmit","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/souldevsoul/routeflow-types.git"},"keywords":["routeflow","api","types","typescript","openapi"],"author":"S2S Engineering","license":"MIT","devDependencies":{"openapi-typescript":"^7.4.3","typescript":"^5.7.2"},"publishConfig":{"access":"public"}}
1
+ {"name":"@routeflow/types","version":"1.0.7","description":"Auto-generated TypeScript types from the RouteFlow API OpenAPI specification","main":"dist/exports.js","types":"dist/exports.d.ts","exports":{".":{"types":"./dist/exports.d.ts","default":"./dist/exports.js"},"./raw":{"types":"./dist/index.d.ts","default":"./dist/index.js"}},"files":["dist","src"],"scripts":{"generate":"openapi-typescript http://localhost:3001/api/docs-json -o src/index.ts","generate:prod":"openapi-typescript https://api.routeflow.app/api/docs-json -o src/index.ts","build":"tsc","type-check":"tsc --noEmit","prepublishOnly":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/souldevsoul/routeflow-types.git"},"keywords":["routeflow","api","types","typescript","openapi"],"author":"S2S Engineering","license":"MIT","devDependencies":{"openapi-typescript":"^7.4.3","typescript":"^5.7.2"},"publishConfig":{"access":"public"}}
package/src/exports.ts CHANGED
@@ -83,6 +83,12 @@ export type DriverDispatchStatus =
83
83
 
84
84
  export type CustomerType = 'BROKER' | 'SHIPPER' | 'CARRIER';
85
85
 
86
+ // New Driver Profile Enums
87
+ export type EmploymentStatus = 'ACTIVE' | 'TERMINATED' | 'APPLICANT';
88
+ export type CdlClass = 'A' | 'B' | 'C';
89
+ export type ComplianceStatus = 'COMPLIANT' | 'WARNING' | 'EXPIRED' | 'PENDING';
90
+ export type DriverType = 'SOLO' | 'TEAM';
91
+
86
92
  // export type StatementStatus = 'DRAFT' | 'PENDING' | 'APPROVED' | 'PAID';
87
93
 
88
94
  export type MessageType = 'TEXT' | 'IMAGE' | 'DOCUMENT' | 'SYSTEM';
@@ -193,6 +199,51 @@ export interface Driver {
193
199
  createdAt: string;
194
200
  updatedAt: string;
195
201
  user?: User;
202
+
203
+ // Address
204
+ streetAddress?: string | null;
205
+ city?: string | null;
206
+ state?: string | null;
207
+ zipCode?: string | null;
208
+ country?: string | null;
209
+
210
+ // Emergency Contact
211
+ emergencyName?: string | null;
212
+ emergencyPhone?: string | null;
213
+
214
+ // Employment
215
+ employmentStatus?: EmploymentStatus;
216
+ hireDate?: string | null;
217
+ terminationDate?: string | null;
218
+
219
+ // Compliance - CDL
220
+ cdlNumber?: string | null;
221
+ cdlState?: string | null;
222
+ cdlClass?: CdlClass | null;
223
+ cdlExpiry?: string | null;
224
+ cdlEndorsements?: string[];
225
+
226
+ // Compliance - Medical
227
+ medicalCardNumber?: string | null;
228
+ medicalCardExpiry?: string | null;
229
+ medicalExamDate?: string | null;
230
+ medicalExaminer?: string | null;
231
+
232
+ // Computed compliance status
233
+ complianceStatus?: ComplianceStatus;
234
+ complianceNotes?: string | null;
235
+
236
+ // Team driver
237
+ teamDriverId?: string | null;
238
+ teamDriver?: Driver | null;
239
+ teamPartner?: Driver | null;
240
+ isTeamLead?: boolean;
241
+ teamStartDate?: string | null;
242
+ driverType?: DriverType;
243
+
244
+ // Dispatcher
245
+ assignedDispatcherId?: string | null;
246
+ assignedDispatcher?: User | null;
196
247
  }
197
248
 
198
249
  export interface Run {
@@ -661,6 +712,36 @@ export type MergeExtractionDto = components['schemas']['MergeExtractionDto'];
661
712
  export type BulkApproveDto = components['schemas']['BulkApproveDto'];
662
713
  export type BulkRejectDto = components['schemas']['BulkRejectDto'];
663
714
 
715
+ // Driver Management DTOs (new)
716
+ export type UpdateDriverDto = components['schemas']['UpdateDriverDto'];
717
+ export type UpdateComplianceDto = components['schemas']['UpdateComplianceDto'];
718
+ export type AssignDispatcherDto = components['schemas']['AssignDispatcherDto'];
719
+ export type LinkTeamDriverDto = components['schemas']['LinkTeamDriverDto'];
720
+ export type ReactivateRunDto = components['schemas']['ReactivateRunDto'];
721
+ export type CancelRunDto = components['schemas']['CancelRunDto'];
722
+
723
+ // Compliance Warning Response
724
+ export interface ComplianceWarning {
725
+ driverId: string;
726
+ driverName: string;
727
+ type: 'CDL' | 'MEDICAL';
728
+ expiryDate: string;
729
+ daysUntilExpiry: number;
730
+ status: ComplianceStatus;
731
+ }
732
+
733
+ // Dispatcher Assignment History
734
+ export interface DispatcherAssignmentHistory {
735
+ id: string;
736
+ driverId: string;
737
+ dispatcherId: string | null;
738
+ dispatcher?: User | null;
739
+ assignedById: string;
740
+ assignedBy?: User;
741
+ reason?: string | null;
742
+ createdAt: string;
743
+ }
744
+
664
745
  // ============================================================================
665
746
  // EMAIL-TO-RUN REQUEST DTOs (manual until OpenAPI regeneration)
666
747
  // ============================================================================