@routeflow/types 1.0.15 → 1.0.17

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.15","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.17","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
@@ -36,6 +36,7 @@ export type InboundEmailStatus = components['schemas']['InboundEmailResponseDto'
36
36
  export type Organization = components['schemas']['OrganizationResponseDto'];
37
37
  export type User = components['schemas']['UserResponseDto'];
38
38
  export type Run = components['schemas']['RunResponseDto'];
39
+ export type RunList = components['schemas']['RunListResponseDto'];
39
40
  export type Stop = components['schemas']['StopResponseDto'];
40
41
  export type Document = components['schemas']['DocumentResponseDto'];
41
42
 
@@ -45,7 +46,9 @@ export type DriverDispatchStatus = components['schemas']['DriverResponseDto']['d
45
46
 
46
47
  // Assets
47
48
  export type Truck = components['schemas']['TruckResponseDto'];
49
+ export type TruckList = components['schemas']['TruckListResponseDto'];
48
50
  export type Trailer = components['schemas']['TrailerResponseDto'];
51
+ export type TrailerList = components['schemas']['TrailerListResponseDto'];
49
52
 
50
53
  // ============================================================================
51
54
  // TYPES NOW GENERATED FROM SWAGGER
@@ -218,6 +221,8 @@ export type CreateDocumentDto = components['schemas']['CreateDocumentDto'];
218
221
  export type CreateCompanyDocumentDto = components['schemas']['CreateCompanyDocumentDto'];
219
222
  export type ParseRateConDto = components['schemas']['ParseRateConDto'];
220
223
  export type ExtractAssetsDto = components['schemas']['ExtractAssetsDto'];
224
+ export type UnifiedUploadDto = components['schemas']['UnifiedUploadDto'];
225
+ export type UnifiedUploadResult = components['schemas']['UnifiedUploadResultDto'];
221
226
 
222
227
  // Magic Link DTOs
223
228
  export type CreateMagicLinkDto = components['schemas']['CreateMagicLinkDto'];
@@ -324,3 +329,72 @@ export type RequestBody<T extends keyof paths, M extends keyof paths[T]> =
324
329
 
325
330
  export type ResponseBody<T extends keyof paths, M extends keyof paths[T]> =
326
331
  paths[T][M] extends { responses: { 200: { content: { 'application/json': infer R } } } } ? R : never;
332
+
333
+ // ============================================================================
334
+ // TELEGRAM BOT TYPES
335
+ // ============================================================================
336
+
337
+ // Telegram user from Telegram's API
338
+ export interface TelegramUser {
339
+ id: number;
340
+ first_name: string;
341
+ last_name?: string;
342
+ username?: string;
343
+ language_code?: string;
344
+ }
345
+
346
+ // Session data for Telegram bot
347
+ export interface TelegramSessionData {
348
+ userId?: string;
349
+ currentRunId?: string;
350
+ currentStopId?: string;
351
+ awaitingPhoto?: boolean;
352
+ photoType?: string;
353
+ pendingStatus?: string;
354
+ contactless?: boolean;
355
+ exceptionReason?: string;
356
+ awaitingExceptionPhoto?: boolean;
357
+ awaitingLinkingCode?: boolean;
358
+ lastLocation?: { lat: number; lng: number };
359
+ locationSharingDuration?: number;
360
+ // Email-to-Run session data
361
+ pendingSignDocumentToken?: string;
362
+ awaitingSignature?: boolean;
363
+ }
364
+
365
+ // Notification payloads for Email-to-Run Telegram notifications
366
+ export interface EmailReceivedNotification {
367
+ inboundEmailId: string;
368
+ fromEmail: string;
369
+ subject: string;
370
+ clientEmailLocalPart: string;
371
+ attachmentsCount: number;
372
+ signToken?: string;
373
+ parsedData?: {
374
+ documentType?: string;
375
+ brokerName?: string;
376
+ rate?: number;
377
+ pickupCity?: string;
378
+ deliveryCity?: string;
379
+ };
380
+ }
381
+
382
+ export interface ExpenseCreatedNotification {
383
+ expenseId: string;
384
+ type: string;
385
+ amount: number;
386
+ vendor?: string;
387
+ description?: string;
388
+ needsReview: boolean;
389
+ suggestedDriver?: string;
390
+ suggestedTruck?: string;
391
+ suggestedRun?: string;
392
+ }
393
+
394
+ export interface DocumentSignedNotification {
395
+ inboundEmailId: string;
396
+ runId?: string;
397
+ runName?: string;
398
+ documentType: string;
399
+ sentTo: string[];
400
+ }