@routeflow/types 1.0.8 → 1.0.10
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 +12 -0
- package/dist/exports.d.ts.map +1 -1
- package/dist/index.d.ts +101 -41
- package/dist/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/exports.ts +20 -0
- package/src/index.ts +101 -41
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@routeflow/types","version":"1.0.
|
|
1
|
+
{"name":"@routeflow/types","version":"1.0.10","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
|
@@ -149,6 +149,22 @@ export type EmailAttachment = components['schemas']['EmailAttachmentResponseDto'
|
|
|
149
149
|
export type DocumentToSign = components['schemas']['DocumentToSignResponseDto'];
|
|
150
150
|
export type SignDocumentResponse = components['schemas']['SignDocumentResponseDto'];
|
|
151
151
|
|
|
152
|
+
// Auth Response
|
|
153
|
+
export type AuthResponse = components['schemas']['AuthResponseDto'];
|
|
154
|
+
|
|
155
|
+
// Today's Runs
|
|
156
|
+
export type TodaysRunsSummary = components['schemas']['TodaysRunsSummaryDto'];
|
|
157
|
+
export type TodaysRunsResponse = components['schemas']['TodaysRunsResponseDto'];
|
|
158
|
+
|
|
159
|
+
// Compliance Warnings
|
|
160
|
+
export type ComplianceWarning = components['schemas']['ComplianceWarningResponseDto'];
|
|
161
|
+
export type ComplianceWarningType = components['schemas']['ComplianceWarningResponseDto']['type'];
|
|
162
|
+
|
|
163
|
+
// Dispatcher Assignment History
|
|
164
|
+
export type DispatcherAssignmentHistory = components['schemas']['DispatcherAssignmentHistoryResponseDto'];
|
|
165
|
+
export type DispatcherInfo = components['schemas']['DispatcherInfoDto'];
|
|
166
|
+
export type AssignedByInfo = components['schemas']['AssignedByInfoDto'];
|
|
167
|
+
|
|
152
168
|
// ============================================================================
|
|
153
169
|
// REQUEST DTOs
|
|
154
170
|
// ============================================================================
|
|
@@ -272,9 +288,13 @@ export type CreateReferralRequest = CreateReferralDto;
|
|
|
272
288
|
export type UpdateReferralRequest = UpdateReferralDto;
|
|
273
289
|
export type CreateExpenseRequest = CreateExpenseDto;
|
|
274
290
|
export type UpdateExpenseRequest = UpdateExpenseDto;
|
|
291
|
+
export type AssociateExpenseRequest = AssociateExpenseDto;
|
|
292
|
+
export type RejectExpenseRequest = RejectExpenseDto;
|
|
275
293
|
export type SendInvitationRequest = SendInvitationDto;
|
|
276
294
|
export type CreateClientEmailRequest = CreateClientEmailDto;
|
|
277
295
|
export type UpdateClientEmailRequest = UpdateClientEmailDto;
|
|
296
|
+
export type SaveSignatureRequest = SaveSignatureDto;
|
|
297
|
+
export type SignDocumentRequest = SignDocumentDto;
|
|
278
298
|
|
|
279
299
|
// ============================================================================
|
|
280
300
|
// TYPE HELPERS
|
package/src/index.ts
CHANGED
|
@@ -2897,6 +2897,47 @@ export interface components {
|
|
|
2897
2897
|
/** @description Organization ID to join (for invitations) */
|
|
2898
2898
|
orgId?: string;
|
|
2899
2899
|
};
|
|
2900
|
+
OrganizationResponseDto: {
|
|
2901
|
+
id: string;
|
|
2902
|
+
name: string;
|
|
2903
|
+
settings: Record<string, never>;
|
|
2904
|
+
legalName?: string;
|
|
2905
|
+
dbaName?: string;
|
|
2906
|
+
mcNumber?: string;
|
|
2907
|
+
dotNumber?: string;
|
|
2908
|
+
address?: string;
|
|
2909
|
+
city?: string;
|
|
2910
|
+
state?: string;
|
|
2911
|
+
zipCode?: string;
|
|
2912
|
+
phone?: string;
|
|
2913
|
+
email?: string;
|
|
2914
|
+
/** Format: date-time */
|
|
2915
|
+
createdAt: string;
|
|
2916
|
+
/** Format: date-time */
|
|
2917
|
+
updatedAt: string;
|
|
2918
|
+
};
|
|
2919
|
+
UserResponseDto: {
|
|
2920
|
+
id: string;
|
|
2921
|
+
email?: string;
|
|
2922
|
+
name: string;
|
|
2923
|
+
phone?: string;
|
|
2924
|
+
/** @enum {string} */
|
|
2925
|
+
role: "ADMIN" | "OWNER" | "FLEET_MANAGER" | "DISPATCHER" | "ACCOUNTING" | "DRIVER" | "BROKER";
|
|
2926
|
+
telegramId?: string;
|
|
2927
|
+
language: string;
|
|
2928
|
+
isActive: boolean;
|
|
2929
|
+
orgId: string;
|
|
2930
|
+
org?: components["schemas"]["OrganizationResponseDto"];
|
|
2931
|
+
/** Format: date-time */
|
|
2932
|
+
createdAt: string;
|
|
2933
|
+
/** Format: date-time */
|
|
2934
|
+
updatedAt: string;
|
|
2935
|
+
};
|
|
2936
|
+
AuthResponseDto: {
|
|
2937
|
+
accessToken: string;
|
|
2938
|
+
refreshToken: string;
|
|
2939
|
+
user: components["schemas"]["UserResponseDto"];
|
|
2940
|
+
};
|
|
2900
2941
|
LoginDto: {
|
|
2901
2942
|
/** @example user@example.com */
|
|
2902
2943
|
email: string;
|
|
@@ -3148,42 +3189,6 @@ export interface components {
|
|
|
3148
3189
|
*/
|
|
3149
3190
|
commissionUserId?: string;
|
|
3150
3191
|
};
|
|
3151
|
-
OrganizationResponseDto: {
|
|
3152
|
-
id: string;
|
|
3153
|
-
name: string;
|
|
3154
|
-
settings: Record<string, never>;
|
|
3155
|
-
legalName?: string;
|
|
3156
|
-
dbaName?: string;
|
|
3157
|
-
mcNumber?: string;
|
|
3158
|
-
dotNumber?: string;
|
|
3159
|
-
address?: string;
|
|
3160
|
-
city?: string;
|
|
3161
|
-
state?: string;
|
|
3162
|
-
zipCode?: string;
|
|
3163
|
-
phone?: string;
|
|
3164
|
-
email?: string;
|
|
3165
|
-
/** Format: date-time */
|
|
3166
|
-
createdAt: string;
|
|
3167
|
-
/** Format: date-time */
|
|
3168
|
-
updatedAt: string;
|
|
3169
|
-
};
|
|
3170
|
-
UserResponseDto: {
|
|
3171
|
-
id: string;
|
|
3172
|
-
email?: string;
|
|
3173
|
-
name: string;
|
|
3174
|
-
phone?: string;
|
|
3175
|
-
/** @enum {string} */
|
|
3176
|
-
role: "ADMIN" | "OWNER" | "FLEET_MANAGER" | "DISPATCHER" | "ACCOUNTING" | "DRIVER" | "BROKER";
|
|
3177
|
-
telegramId?: string;
|
|
3178
|
-
language: string;
|
|
3179
|
-
isActive: boolean;
|
|
3180
|
-
orgId: string;
|
|
3181
|
-
org?: components["schemas"]["OrganizationResponseDto"];
|
|
3182
|
-
/** Format: date-time */
|
|
3183
|
-
createdAt: string;
|
|
3184
|
-
/** Format: date-time */
|
|
3185
|
-
updatedAt: string;
|
|
3186
|
-
};
|
|
3187
3192
|
DocumentResponseDto: {
|
|
3188
3193
|
id: string;
|
|
3189
3194
|
/** @enum {string} */
|
|
@@ -3282,6 +3287,19 @@ export interface components {
|
|
|
3282
3287
|
/** Format: date-time */
|
|
3283
3288
|
updatedAt: string;
|
|
3284
3289
|
};
|
|
3290
|
+
TodaysRunsSummaryDto: {
|
|
3291
|
+
total: number;
|
|
3292
|
+
draft: number;
|
|
3293
|
+
queued: number;
|
|
3294
|
+
dispatched: number;
|
|
3295
|
+
inProgress: number;
|
|
3296
|
+
completed: number;
|
|
3297
|
+
cancelled: number;
|
|
3298
|
+
};
|
|
3299
|
+
TodaysRunsResponseDto: {
|
|
3300
|
+
runs: components["schemas"]["RunResponseDto"][];
|
|
3301
|
+
summary: components["schemas"]["TodaysRunsSummaryDto"];
|
|
3302
|
+
};
|
|
3285
3303
|
RunSummaryResponseDto: {
|
|
3286
3304
|
id: string;
|
|
3287
3305
|
name: string;
|
|
@@ -4145,6 +4163,27 @@ export interface components {
|
|
|
4145
4163
|
*/
|
|
4146
4164
|
reason?: string;
|
|
4147
4165
|
};
|
|
4166
|
+
DispatcherInfoDto: {
|
|
4167
|
+
id: string;
|
|
4168
|
+
name: string;
|
|
4169
|
+
email?: string;
|
|
4170
|
+
};
|
|
4171
|
+
AssignedByInfoDto: {
|
|
4172
|
+
id: string;
|
|
4173
|
+
name: string;
|
|
4174
|
+
};
|
|
4175
|
+
DispatcherAssignmentHistoryResponseDto: {
|
|
4176
|
+
id: string;
|
|
4177
|
+
driverId: string;
|
|
4178
|
+
dispatcherId: string;
|
|
4179
|
+
dispatcher: components["schemas"]["DispatcherInfoDto"];
|
|
4180
|
+
assignedBy?: components["schemas"]["AssignedByInfoDto"];
|
|
4181
|
+
assignedById?: string;
|
|
4182
|
+
/** Format: date-time */
|
|
4183
|
+
unassignedAt?: string;
|
|
4184
|
+
/** Format: date-time */
|
|
4185
|
+
createdAt: string;
|
|
4186
|
+
};
|
|
4148
4187
|
LinkTeamDriverDto: {
|
|
4149
4188
|
/**
|
|
4150
4189
|
* @description ID of the co-driver to link as team partner
|
|
@@ -4157,6 +4196,17 @@ export interface components {
|
|
|
4157
4196
|
*/
|
|
4158
4197
|
asTeamLead?: boolean;
|
|
4159
4198
|
};
|
|
4199
|
+
ComplianceWarningResponseDto: {
|
|
4200
|
+
driverId: string;
|
|
4201
|
+
driverName: string;
|
|
4202
|
+
/** @enum {string} */
|
|
4203
|
+
type: "CDL" | "MEDICAL";
|
|
4204
|
+
/** Format: date-time */
|
|
4205
|
+
expiryDate: string;
|
|
4206
|
+
daysUntilExpiry: number;
|
|
4207
|
+
/** @enum {string} */
|
|
4208
|
+
status: "COMPLIANT" | "WARNING" | "EXPIRED" | "PENDING";
|
|
4209
|
+
};
|
|
4160
4210
|
DriverLocationResponseDto: {
|
|
4161
4211
|
id: string;
|
|
4162
4212
|
lat: number;
|
|
@@ -4824,7 +4874,9 @@ export interface operations {
|
|
|
4824
4874
|
headers: {
|
|
4825
4875
|
[name: string]: unknown;
|
|
4826
4876
|
};
|
|
4827
|
-
content
|
|
4877
|
+
content: {
|
|
4878
|
+
"application/json": components["schemas"]["AuthResponseDto"];
|
|
4879
|
+
};
|
|
4828
4880
|
};
|
|
4829
4881
|
};
|
|
4830
4882
|
};
|
|
@@ -4846,7 +4898,9 @@ export interface operations {
|
|
|
4846
4898
|
headers: {
|
|
4847
4899
|
[name: string]: unknown;
|
|
4848
4900
|
};
|
|
4849
|
-
content
|
|
4901
|
+
content: {
|
|
4902
|
+
"application/json": components["schemas"]["AuthResponseDto"];
|
|
4903
|
+
};
|
|
4850
4904
|
};
|
|
4851
4905
|
};
|
|
4852
4906
|
};
|
|
@@ -5738,7 +5792,9 @@ export interface operations {
|
|
|
5738
5792
|
headers: {
|
|
5739
5793
|
[name: string]: unknown;
|
|
5740
5794
|
};
|
|
5741
|
-
content
|
|
5795
|
+
content: {
|
|
5796
|
+
"application/json": components["schemas"]["TodaysRunsResponseDto"];
|
|
5797
|
+
};
|
|
5742
5798
|
};
|
|
5743
5799
|
};
|
|
5744
5800
|
};
|
|
@@ -7856,7 +7912,9 @@ export interface operations {
|
|
|
7856
7912
|
headers: {
|
|
7857
7913
|
[name: string]: unknown;
|
|
7858
7914
|
};
|
|
7859
|
-
content
|
|
7915
|
+
content: {
|
|
7916
|
+
"application/json": components["schemas"]["DispatcherAssignmentHistoryResponseDto"][];
|
|
7917
|
+
};
|
|
7860
7918
|
};
|
|
7861
7919
|
};
|
|
7862
7920
|
};
|
|
@@ -7918,7 +7976,9 @@ export interface operations {
|
|
|
7918
7976
|
headers: {
|
|
7919
7977
|
[name: string]: unknown;
|
|
7920
7978
|
};
|
|
7921
|
-
content
|
|
7979
|
+
content: {
|
|
7980
|
+
"application/json": components["schemas"]["ComplianceWarningResponseDto"][];
|
|
7981
|
+
};
|
|
7922
7982
|
};
|
|
7923
7983
|
};
|
|
7924
7984
|
};
|