@findatruck/shared-schemas 2.8.0 → 2.9.1

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.
@@ -1,171 +1,243 @@
1
1
  import z$1, { z } from 'zod';
2
2
 
3
- declare const NewLoginRequest: z.ZodObject<{
4
- providerUrl: z.ZodEffects<z.ZodString, string, string>;
5
- username: z.ZodString;
6
- encryptedPassword: z.ZodString;
7
- ownerId: z.ZodString;
8
- externalProviderAccountId: z.ZodString;
9
- convexUpdateUrl: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
3
+ interface NewLoginRequestData {
11
4
  providerUrl: string;
12
5
  username: string;
13
6
  encryptedPassword: string;
14
7
  ownerId: string;
15
8
  externalProviderAccountId: string;
16
9
  convexUpdateUrl: string;
17
- }, {
18
- providerUrl: string;
10
+ }
11
+ interface PublicUserData {
12
+ id: string;
19
13
  username: string;
20
- encryptedPassword: string;
21
- ownerId: string;
22
- externalProviderAccountId: string;
23
- convexUpdateUrl: string;
24
- }>;
25
- type NewLoginRequest = z.infer<typeof NewLoginRequest>;
14
+ created_at: Date;
15
+ updated_at: Date;
16
+ }
17
+ interface PublicProviderData {
18
+ name: string;
19
+ url: string;
20
+ }
21
+ interface NewLoginResponseSuccessData {
22
+ success?: boolean;
23
+ message: string;
24
+ user: PublicUserData;
25
+ provider: PublicProviderData;
26
+ driverIds: string[];
27
+ organizationId?: string;
28
+ honkUserId?: string;
29
+ }
30
+ interface NewLoginResponseFailureData {
31
+ success?: boolean;
32
+ error: string;
33
+ }
34
+ type NewLoginResponseData = NewLoginResponseSuccessData | NewLoginResponseFailureData;
35
+ declare const NewLoginRequestSchema: z.ZodObject<{
36
+ providerUrl: z.ZodString;
37
+ username: z.ZodString;
38
+ encryptedPassword: z.ZodString;
39
+ ownerId: z.ZodString;
40
+ externalProviderAccountId: z.ZodString;
41
+ convexUpdateUrl: z.ZodString;
42
+ }, z.core.$strip>;
43
+ declare const NewLoginResponseSuccessSchema: z.ZodObject<{
44
+ success: z.ZodOptional<z.ZodBoolean>;
45
+ message: z.ZodString;
46
+ user: z.ZodObject<{
47
+ id: z.ZodString;
48
+ username: z.ZodString;
49
+ created_at: z.ZodCoercedDate<unknown>;
50
+ updated_at: z.ZodCoercedDate<unknown>;
51
+ }, z.core.$strip>;
52
+ provider: z.ZodObject<{
53
+ name: z.ZodString;
54
+ url: z.ZodString;
55
+ }, z.core.$strip>;
56
+ driverIds: z.ZodArray<z.ZodString>;
57
+ organizationId: z.ZodOptional<z.ZodString>;
58
+ honkUserId: z.ZodOptional<z.ZodString>;
59
+ }, z.core.$strip>;
60
+ declare const NewLoginResponseFailureSchema: z.ZodObject<{
61
+ success: z.ZodOptional<z.ZodBoolean>;
62
+ error: z.ZodString;
63
+ }, z.core.$strip>;
64
+ declare const NewLoginResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
65
+ success: z.ZodOptional<z.ZodBoolean>;
66
+ message: z.ZodString;
67
+ user: z.ZodObject<{
68
+ id: z.ZodString;
69
+ username: z.ZodString;
70
+ created_at: z.ZodCoercedDate<unknown>;
71
+ updated_at: z.ZodCoercedDate<unknown>;
72
+ }, z.core.$strip>;
73
+ provider: z.ZodObject<{
74
+ name: z.ZodString;
75
+ url: z.ZodString;
76
+ }, z.core.$strip>;
77
+ driverIds: z.ZodArray<z.ZodString>;
78
+ organizationId: z.ZodOptional<z.ZodString>;
79
+ honkUserId: z.ZodOptional<z.ZodString>;
80
+ }, z.core.$strip>, z.ZodObject<{
81
+ success: z.ZodOptional<z.ZodBoolean>;
82
+ error: z.ZodString;
83
+ }, z.core.$strip>]>;
84
+ declare const NewLoginRequest: z.ZodObject<{
85
+ providerUrl: z.ZodString;
86
+ username: z.ZodString;
87
+ encryptedPassword: z.ZodString;
88
+ ownerId: z.ZodString;
89
+ externalProviderAccountId: z.ZodString;
90
+ convexUpdateUrl: z.ZodString;
91
+ }, z.core.$strip>;
92
+ type NewLoginRequest = NewLoginRequestData;
26
93
  declare const NewLoginResponseSuccess: z.ZodObject<{
94
+ success: z.ZodOptional<z.ZodBoolean>;
27
95
  message: z.ZodString;
28
96
  user: z.ZodObject<{
29
97
  id: z.ZodString;
30
98
  username: z.ZodString;
31
- created_at: z.ZodDate;
32
- updated_at: z.ZodDate;
33
- }, "strip", z.ZodTypeAny, {
34
- username: string;
35
- id: string;
36
- created_at: Date;
37
- updated_at: Date;
38
- }, {
39
- username: string;
40
- id: string;
41
- created_at: Date;
42
- updated_at: Date;
43
- }>;
99
+ created_at: z.ZodCoercedDate<unknown>;
100
+ updated_at: z.ZodCoercedDate<unknown>;
101
+ }, z.core.$strip>;
44
102
  provider: z.ZodObject<{
45
103
  name: z.ZodString;
46
- url: z.ZodEffects<z.ZodString, string, string>;
47
- }, "strip", z.ZodTypeAny, {
48
- name: string;
49
- url: string;
50
- }, {
51
- name: string;
52
- url: string;
53
- }>;
54
- driverIds: z.ZodArray<z.ZodString, "many">;
104
+ url: z.ZodString;
105
+ }, z.core.$strip>;
106
+ driverIds: z.ZodArray<z.ZodString>;
55
107
  organizationId: z.ZodOptional<z.ZodString>;
56
108
  honkUserId: z.ZodOptional<z.ZodString>;
57
- }, "strip", z.ZodTypeAny, {
58
- message: string;
59
- user: {
60
- username: string;
61
- id: string;
62
- created_at: Date;
63
- updated_at: Date;
64
- };
65
- provider: {
66
- name: string;
67
- url: string;
68
- };
69
- driverIds: string[];
70
- organizationId?: string | undefined;
71
- honkUserId?: string | undefined;
72
- }, {
73
- message: string;
74
- user: {
75
- username: string;
76
- id: string;
77
- created_at: Date;
78
- updated_at: Date;
79
- };
80
- provider: {
81
- name: string;
82
- url: string;
83
- };
84
- driverIds: string[];
85
- organizationId?: string | undefined;
86
- honkUserId?: string | undefined;
87
- }>;
88
- type NewLoginResponseSuccess = z.infer<typeof NewLoginResponseSuccess>;
109
+ }, z.core.$strip>;
110
+ type NewLoginResponseSuccess = NewLoginResponseSuccessData;
89
111
  declare const NewLoginResponseFailure: z.ZodObject<{
112
+ success: z.ZodOptional<z.ZodBoolean>;
90
113
  error: z.ZodString;
91
- }, "strip", z.ZodTypeAny, {
92
- error: string;
93
- }, {
94
- error: string;
95
- }>;
96
- type NewLoginResponseFailure = z.infer<typeof NewLoginResponseFailure>;
97
- declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
114
+ }, z.core.$strip>;
115
+ type NewLoginResponseFailure = NewLoginResponseFailureData;
116
+ declare const NewLoginResponse: z.ZodUnion<readonly [z.ZodObject<{
117
+ success: z.ZodOptional<z.ZodBoolean>;
98
118
  message: z.ZodString;
99
119
  user: z.ZodObject<{
100
120
  id: z.ZodString;
101
121
  username: z.ZodString;
102
- created_at: z.ZodDate;
103
- updated_at: z.ZodDate;
104
- }, "strip", z.ZodTypeAny, {
105
- username: string;
106
- id: string;
107
- created_at: Date;
108
- updated_at: Date;
109
- }, {
110
- username: string;
111
- id: string;
112
- created_at: Date;
113
- updated_at: Date;
114
- }>;
122
+ created_at: z.ZodCoercedDate<unknown>;
123
+ updated_at: z.ZodCoercedDate<unknown>;
124
+ }, z.core.$strip>;
115
125
  provider: z.ZodObject<{
116
126
  name: z.ZodString;
117
- url: z.ZodEffects<z.ZodString, string, string>;
118
- }, "strip", z.ZodTypeAny, {
119
- name: string;
120
- url: string;
121
- }, {
122
- name: string;
123
- url: string;
124
- }>;
125
- driverIds: z.ZodArray<z.ZodString, "many">;
127
+ url: z.ZodString;
128
+ }, z.core.$strip>;
129
+ driverIds: z.ZodArray<z.ZodString>;
126
130
  organizationId: z.ZodOptional<z.ZodString>;
127
131
  honkUserId: z.ZodOptional<z.ZodString>;
128
- }, "strip", z.ZodTypeAny, {
129
- message: string;
130
- user: {
131
- username: string;
132
- id: string;
133
- created_at: Date;
134
- updated_at: Date;
135
- };
136
- provider: {
137
- name: string;
138
- url: string;
139
- };
140
- driverIds: string[];
141
- organizationId?: string | undefined;
142
- honkUserId?: string | undefined;
143
- }, {
144
- message: string;
145
- user: {
146
- username: string;
147
- id: string;
148
- created_at: Date;
149
- updated_at: Date;
150
- };
151
- provider: {
152
- name: string;
153
- url: string;
154
- };
155
- driverIds: string[];
156
- organizationId?: string | undefined;
157
- honkUserId?: string | undefined;
158
- }>, z.ZodObject<{
132
+ }, z.core.$strip>, z.ZodObject<{
133
+ success: z.ZodOptional<z.ZodBoolean>;
159
134
  error: z.ZodString;
160
- }, "strip", z.ZodTypeAny, {
161
- error: string;
162
- }, {
163
- error: string;
164
- }>]>;
165
- type NewLoginResponse = z.infer<typeof NewLoginResponse>;
135
+ }, z.core.$strip>]>;
136
+ type NewLoginResponse = NewLoginResponseData;
166
137
 
138
+ interface ConvexDriverData {
139
+ driver_name?: string;
140
+ vehicle_id?: string;
141
+ driver_status: string;
142
+ time_remaining_in_shift: number;
143
+ time_remaining_till_break: number;
144
+ time_remaining_in_week: number;
145
+ time_remaining_in_drive: number;
146
+ driver_current_location_latitude: number;
147
+ driver_current_location_longitude: number;
148
+ driver_current_location_address: string;
149
+ license_number?: string;
150
+ license_state?: string;
151
+ speed?: number;
152
+ odometer?: number;
153
+ convex_provider_account_id: string;
154
+ external_provider_account_id: string;
155
+ external_driver_id: string;
156
+ mileage_since_last_update?: number;
157
+ }
158
+ interface ConvexUpdateData {
159
+ provider_url: string;
160
+ username: string;
161
+ drivers: ConvexDriverData[];
162
+ version?: string;
163
+ }
164
+ interface BatchConvexUpdateData {
165
+ updates: ConvexUpdateData[];
166
+ }
167
+ declare const ConvexDriverSchema: z$1.ZodObject<{
168
+ driver_name: z$1.ZodOptional<z$1.ZodString>;
169
+ vehicle_id: z$1.ZodOptional<z$1.ZodString>;
170
+ driver_status: z$1.ZodString;
171
+ time_remaining_in_shift: z$1.ZodNumber;
172
+ time_remaining_till_break: z$1.ZodNumber;
173
+ time_remaining_in_week: z$1.ZodNumber;
174
+ time_remaining_in_drive: z$1.ZodNumber;
175
+ driver_current_location_latitude: z$1.ZodNumber;
176
+ driver_current_location_longitude: z$1.ZodNumber;
177
+ driver_current_location_address: z$1.ZodString;
178
+ license_number: z$1.ZodOptional<z$1.ZodString>;
179
+ license_state: z$1.ZodOptional<z$1.ZodString>;
180
+ speed: z$1.ZodOptional<z$1.ZodNumber>;
181
+ odometer: z$1.ZodOptional<z$1.ZodNumber>;
182
+ convex_provider_account_id: z$1.ZodString;
183
+ external_provider_account_id: z$1.ZodString;
184
+ external_driver_id: z$1.ZodString;
185
+ mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
186
+ }, z$1.core.$strip>;
187
+ declare const ConvexUpdateSchema: z$1.ZodObject<{
188
+ provider_url: z$1.ZodString;
189
+ username: z$1.ZodString;
190
+ drivers: z$1.ZodArray<z$1.ZodObject<{
191
+ driver_name: z$1.ZodOptional<z$1.ZodString>;
192
+ vehicle_id: z$1.ZodOptional<z$1.ZodString>;
193
+ driver_status: z$1.ZodString;
194
+ time_remaining_in_shift: z$1.ZodNumber;
195
+ time_remaining_till_break: z$1.ZodNumber;
196
+ time_remaining_in_week: z$1.ZodNumber;
197
+ time_remaining_in_drive: z$1.ZodNumber;
198
+ driver_current_location_latitude: z$1.ZodNumber;
199
+ driver_current_location_longitude: z$1.ZodNumber;
200
+ driver_current_location_address: z$1.ZodString;
201
+ license_number: z$1.ZodOptional<z$1.ZodString>;
202
+ license_state: z$1.ZodOptional<z$1.ZodString>;
203
+ speed: z$1.ZodOptional<z$1.ZodNumber>;
204
+ odometer: z$1.ZodOptional<z$1.ZodNumber>;
205
+ convex_provider_account_id: z$1.ZodString;
206
+ external_provider_account_id: z$1.ZodString;
207
+ external_driver_id: z$1.ZodString;
208
+ mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
209
+ }, z$1.core.$strip>>;
210
+ version: z$1.ZodDefault<z$1.ZodString>;
211
+ }, z$1.core.$strip>;
212
+ declare const BatchConvexUpdateSchema: z$1.ZodObject<{
213
+ updates: z$1.ZodArray<z$1.ZodObject<{
214
+ provider_url: z$1.ZodString;
215
+ username: z$1.ZodString;
216
+ drivers: z$1.ZodArray<z$1.ZodObject<{
217
+ driver_name: z$1.ZodOptional<z$1.ZodString>;
218
+ vehicle_id: z$1.ZodOptional<z$1.ZodString>;
219
+ driver_status: z$1.ZodString;
220
+ time_remaining_in_shift: z$1.ZodNumber;
221
+ time_remaining_till_break: z$1.ZodNumber;
222
+ time_remaining_in_week: z$1.ZodNumber;
223
+ time_remaining_in_drive: z$1.ZodNumber;
224
+ driver_current_location_latitude: z$1.ZodNumber;
225
+ driver_current_location_longitude: z$1.ZodNumber;
226
+ driver_current_location_address: z$1.ZodString;
227
+ license_number: z$1.ZodOptional<z$1.ZodString>;
228
+ license_state: z$1.ZodOptional<z$1.ZodString>;
229
+ speed: z$1.ZodOptional<z$1.ZodNumber>;
230
+ odometer: z$1.ZodOptional<z$1.ZodNumber>;
231
+ convex_provider_account_id: z$1.ZodString;
232
+ external_provider_account_id: z$1.ZodString;
233
+ external_driver_id: z$1.ZodString;
234
+ mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
235
+ }, z$1.core.$strip>>;
236
+ version: z$1.ZodDefault<z$1.ZodString>;
237
+ }, z$1.core.$strip>>;
238
+ }, z$1.core.$strip>;
167
239
  declare const ConvexUpdate: z$1.ZodObject<{
168
- provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
240
+ provider_url: z$1.ZodString;
169
241
  username: z$1.ZodString;
170
242
  drivers: z$1.ZodArray<z$1.ZodObject<{
171
243
  driver_name: z$1.ZodOptional<z$1.ZodString>;
@@ -186,99 +258,13 @@ declare const ConvexUpdate: z$1.ZodObject<{
186
258
  external_provider_account_id: z$1.ZodString;
187
259
  external_driver_id: z$1.ZodString;
188
260
  mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
189
- }, "strip", z$1.ZodTypeAny, {
190
- driver_status: string;
191
- time_remaining_in_shift: number;
192
- time_remaining_till_break: number;
193
- time_remaining_in_week: number;
194
- time_remaining_in_drive: number;
195
- driver_current_location_latitude: number;
196
- driver_current_location_longitude: number;
197
- driver_current_location_address: string;
198
- convex_provider_account_id: string;
199
- external_provider_account_id: string;
200
- external_driver_id: string;
201
- driver_name?: string | undefined;
202
- vehicle_id?: string | undefined;
203
- license_number?: string | undefined;
204
- license_state?: string | undefined;
205
- speed?: number | undefined;
206
- odometer?: number | undefined;
207
- mileage_since_last_update?: number | undefined;
208
- }, {
209
- driver_status: string;
210
- time_remaining_in_shift: number;
211
- time_remaining_till_break: number;
212
- time_remaining_in_week: number;
213
- time_remaining_in_drive: number;
214
- driver_current_location_latitude: number;
215
- driver_current_location_longitude: number;
216
- driver_current_location_address: string;
217
- convex_provider_account_id: string;
218
- external_provider_account_id: string;
219
- external_driver_id: string;
220
- driver_name?: string | undefined;
221
- vehicle_id?: string | undefined;
222
- license_number?: string | undefined;
223
- license_state?: string | undefined;
224
- speed?: number | undefined;
225
- odometer?: number | undefined;
226
- mileage_since_last_update?: number | undefined;
227
- }>, "many">;
261
+ }, z$1.core.$strip>>;
228
262
  version: z$1.ZodDefault<z$1.ZodString>;
229
- }, "strip", z$1.ZodTypeAny, {
230
- username: string;
231
- provider_url: string;
232
- drivers: {
233
- driver_status: string;
234
- time_remaining_in_shift: number;
235
- time_remaining_till_break: number;
236
- time_remaining_in_week: number;
237
- time_remaining_in_drive: number;
238
- driver_current_location_latitude: number;
239
- driver_current_location_longitude: number;
240
- driver_current_location_address: string;
241
- convex_provider_account_id: string;
242
- external_provider_account_id: string;
243
- external_driver_id: string;
244
- driver_name?: string | undefined;
245
- vehicle_id?: string | undefined;
246
- license_number?: string | undefined;
247
- license_state?: string | undefined;
248
- speed?: number | undefined;
249
- odometer?: number | undefined;
250
- mileage_since_last_update?: number | undefined;
251
- }[];
252
- version: string;
253
- }, {
254
- username: string;
255
- provider_url: string;
256
- drivers: {
257
- driver_status: string;
258
- time_remaining_in_shift: number;
259
- time_remaining_till_break: number;
260
- time_remaining_in_week: number;
261
- time_remaining_in_drive: number;
262
- driver_current_location_latitude: number;
263
- driver_current_location_longitude: number;
264
- driver_current_location_address: string;
265
- convex_provider_account_id: string;
266
- external_provider_account_id: string;
267
- external_driver_id: string;
268
- driver_name?: string | undefined;
269
- vehicle_id?: string | undefined;
270
- license_number?: string | undefined;
271
- license_state?: string | undefined;
272
- speed?: number | undefined;
273
- odometer?: number | undefined;
274
- mileage_since_last_update?: number | undefined;
275
- }[];
276
- version?: string | undefined;
277
- }>;
278
- type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
263
+ }, z$1.core.$strip>;
264
+ type ConvexUpdate = ConvexUpdateData;
279
265
  declare const BatchConvexUpdate: z$1.ZodObject<{
280
266
  updates: z$1.ZodArray<z$1.ZodObject<{
281
- provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
267
+ provider_url: z$1.ZodString;
282
268
  username: z$1.ZodString;
283
269
  drivers: z$1.ZodArray<z$1.ZodObject<{
284
270
  driver_name: z$1.ZodOptional<z$1.ZodString>;
@@ -299,149 +285,11 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
299
285
  external_provider_account_id: z$1.ZodString;
300
286
  external_driver_id: z$1.ZodString;
301
287
  mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
302
- }, "strip", z$1.ZodTypeAny, {
303
- driver_status: string;
304
- time_remaining_in_shift: number;
305
- time_remaining_till_break: number;
306
- time_remaining_in_week: number;
307
- time_remaining_in_drive: number;
308
- driver_current_location_latitude: number;
309
- driver_current_location_longitude: number;
310
- driver_current_location_address: string;
311
- convex_provider_account_id: string;
312
- external_provider_account_id: string;
313
- external_driver_id: string;
314
- driver_name?: string | undefined;
315
- vehicle_id?: string | undefined;
316
- license_number?: string | undefined;
317
- license_state?: string | undefined;
318
- speed?: number | undefined;
319
- odometer?: number | undefined;
320
- mileage_since_last_update?: number | undefined;
321
- }, {
322
- driver_status: string;
323
- time_remaining_in_shift: number;
324
- time_remaining_till_break: number;
325
- time_remaining_in_week: number;
326
- time_remaining_in_drive: number;
327
- driver_current_location_latitude: number;
328
- driver_current_location_longitude: number;
329
- driver_current_location_address: string;
330
- convex_provider_account_id: string;
331
- external_provider_account_id: string;
332
- external_driver_id: string;
333
- driver_name?: string | undefined;
334
- vehicle_id?: string | undefined;
335
- license_number?: string | undefined;
336
- license_state?: string | undefined;
337
- speed?: number | undefined;
338
- odometer?: number | undefined;
339
- mileage_since_last_update?: number | undefined;
340
- }>, "many">;
288
+ }, z$1.core.$strip>>;
341
289
  version: z$1.ZodDefault<z$1.ZodString>;
342
- }, "strip", z$1.ZodTypeAny, {
343
- username: string;
344
- provider_url: string;
345
- drivers: {
346
- driver_status: string;
347
- time_remaining_in_shift: number;
348
- time_remaining_till_break: number;
349
- time_remaining_in_week: number;
350
- time_remaining_in_drive: number;
351
- driver_current_location_latitude: number;
352
- driver_current_location_longitude: number;
353
- driver_current_location_address: string;
354
- convex_provider_account_id: string;
355
- external_provider_account_id: string;
356
- external_driver_id: string;
357
- driver_name?: string | undefined;
358
- vehicle_id?: string | undefined;
359
- license_number?: string | undefined;
360
- license_state?: string | undefined;
361
- speed?: number | undefined;
362
- odometer?: number | undefined;
363
- mileage_since_last_update?: number | undefined;
364
- }[];
365
- version: string;
366
- }, {
367
- username: string;
368
- provider_url: string;
369
- drivers: {
370
- driver_status: string;
371
- time_remaining_in_shift: number;
372
- time_remaining_till_break: number;
373
- time_remaining_in_week: number;
374
- time_remaining_in_drive: number;
375
- driver_current_location_latitude: number;
376
- driver_current_location_longitude: number;
377
- driver_current_location_address: string;
378
- convex_provider_account_id: string;
379
- external_provider_account_id: string;
380
- external_driver_id: string;
381
- driver_name?: string | undefined;
382
- vehicle_id?: string | undefined;
383
- license_number?: string | undefined;
384
- license_state?: string | undefined;
385
- speed?: number | undefined;
386
- odometer?: number | undefined;
387
- mileage_since_last_update?: number | undefined;
388
- }[];
389
- version?: string | undefined;
390
- }>, "many">;
391
- }, "strip", z$1.ZodTypeAny, {
392
- updates: {
393
- username: string;
394
- provider_url: string;
395
- drivers: {
396
- driver_status: string;
397
- time_remaining_in_shift: number;
398
- time_remaining_till_break: number;
399
- time_remaining_in_week: number;
400
- time_remaining_in_drive: number;
401
- driver_current_location_latitude: number;
402
- driver_current_location_longitude: number;
403
- driver_current_location_address: string;
404
- convex_provider_account_id: string;
405
- external_provider_account_id: string;
406
- external_driver_id: string;
407
- driver_name?: string | undefined;
408
- vehicle_id?: string | undefined;
409
- license_number?: string | undefined;
410
- license_state?: string | undefined;
411
- speed?: number | undefined;
412
- odometer?: number | undefined;
413
- mileage_since_last_update?: number | undefined;
414
- }[];
415
- version: string;
416
- }[];
417
- }, {
418
- updates: {
419
- username: string;
420
- provider_url: string;
421
- drivers: {
422
- driver_status: string;
423
- time_remaining_in_shift: number;
424
- time_remaining_till_break: number;
425
- time_remaining_in_week: number;
426
- time_remaining_in_drive: number;
427
- driver_current_location_latitude: number;
428
- driver_current_location_longitude: number;
429
- driver_current_location_address: string;
430
- convex_provider_account_id: string;
431
- external_provider_account_id: string;
432
- external_driver_id: string;
433
- driver_name?: string | undefined;
434
- vehicle_id?: string | undefined;
435
- license_number?: string | undefined;
436
- license_state?: string | undefined;
437
- speed?: number | undefined;
438
- odometer?: number | undefined;
439
- mileage_since_last_update?: number | undefined;
440
- }[];
441
- version?: string | undefined;
442
- }[];
443
- }>;
444
- type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
290
+ }, z$1.core.$strip>>;
291
+ }, z$1.core.$strip>;
292
+ type BatchConvexUpdate = BatchConvexUpdateData;
445
293
 
446
294
  declare enum ScrapeStatus {
447
295
  NEW_LOGIN_RECEIVED = "NEW_LOGIN_RECEIVED",
@@ -453,53 +301,33 @@ declare enum ScrapeStatus {
453
301
  DATA_FETCH_FAILED = "DATA_FETCH_FAILED"
454
302
  }
455
303
  declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
456
- status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
304
+ status: z$1.ZodEnum<typeof ScrapeStatus>;
457
305
  correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
458
306
  externalProviderAccountId: z$1.ZodString;
459
307
  username: z$1.ZodString;
460
308
  provider_url: z$1.ZodString;
461
309
  driverCount: z$1.ZodOptional<z$1.ZodNumber>;
462
310
  providerSlug: z$1.ZodOptional<z$1.ZodString>;
463
- }, "strip", z$1.ZodTypeAny, {
464
- username: string;
465
- externalProviderAccountId: string;
466
- status: ScrapeStatus;
467
- provider_url: string;
468
- correctPassword?: boolean | undefined;
469
- driverCount?: number | undefined;
470
- providerSlug?: string | undefined;
471
- }, {
472
- username: string;
473
- externalProviderAccountId: string;
474
- status: ScrapeStatus;
475
- provider_url: string;
476
- correctPassword?: boolean | undefined;
477
- driverCount?: number | undefined;
478
- providerSlug?: string | undefined;
479
- }>;
311
+ }, z$1.core.$strip>;
480
312
  type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
481
313
 
314
+ interface ValidatePasswordRequestData {
315
+ providerAccountId: string;
316
+ encryptedPassword: string;
317
+ }
318
+ interface ValidatePasswordResponseData {
319
+ isValid: boolean;
320
+ driverIds: string[];
321
+ }
482
322
  declare const ValidatePasswordRequestSchema: z.ZodObject<{
483
323
  providerAccountId: z.ZodString;
484
324
  encryptedPassword: z.ZodString;
485
- }, "strip", z.ZodTypeAny, {
486
- encryptedPassword: string;
487
- providerAccountId: string;
488
- }, {
489
- encryptedPassword: string;
490
- providerAccountId: string;
491
- }>;
492
- type ValidatePasswordRequest = z.infer<typeof ValidatePasswordRequestSchema>;
325
+ }, z.core.$strip>;
493
326
  declare const ValidatePasswordResponseSchema: z.ZodObject<{
494
327
  isValid: z.ZodBoolean;
495
- driverIds: z.ZodArray<z.ZodString, "many">;
496
- }, "strip", z.ZodTypeAny, {
497
- driverIds: string[];
498
- isValid: boolean;
499
- }, {
500
- driverIds: string[];
501
- isValid: boolean;
502
- }>;
503
- type ValidatePasswordResponse = z.infer<typeof ValidatePasswordResponseSchema>;
328
+ driverIds: z.ZodArray<z.ZodString>;
329
+ }, z.core.$strip>;
330
+ type ValidatePasswordRequest = ValidatePasswordRequestData;
331
+ type ValidatePasswordResponse = ValidatePasswordResponseData;
504
332
 
505
- export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
333
+ export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };