@findatruck/shared-schemas 2.4.0 → 2.6.0
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/browser.cjs +26 -19
- package/dist/browser.d.cts +260 -55
- package/dist/browser.d.ts +260 -55
- package/dist/browser.js +3 -1
- package/dist/{chunk-RDX5SWB6.js → chunk-GCTM3QSH.js} +25 -19
- package/dist/index.cjs +26 -19
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/browser.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/browser.ts
|
|
31
31
|
var browser_exports = {};
|
|
32
32
|
__export(browser_exports, {
|
|
33
|
+
BatchConvexUpdate: () => BatchConvexUpdate,
|
|
33
34
|
ConvexUpdate: () => ConvexUpdate,
|
|
34
35
|
NewLoginRequest: () => NewLoginRequest,
|
|
35
36
|
NewLoginResponse: () => NewLoginResponse,
|
|
@@ -100,26 +101,31 @@ var UrlSchema2 = import_zod2.default.string().refine(
|
|
|
100
101
|
);
|
|
101
102
|
var ConvexUpdate = import_zod2.default.object({
|
|
102
103
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
103
|
-
username: import_zod2.default.string().describe("The
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
104
|
+
username: import_zod2.default.string().describe("The ELD account's login username"),
|
|
105
|
+
drivers: import_zod2.default.array(import_zod2.default.object({
|
|
106
|
+
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
107
|
+
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
108
|
+
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
|
109
|
+
time_remaining_in_shift: import_zod2.default.number().describe("Seconds remaining in current shift"),
|
|
110
|
+
time_remaining_till_break: import_zod2.default.number().describe("Seconds remaining until next required break"),
|
|
111
|
+
time_remaining_in_week: import_zod2.default.number().describe("Seconds remaining in current cycle/week"),
|
|
112
|
+
time_remaining_in_drive: import_zod2.default.number().describe("Seconds remaining in current drive period"),
|
|
113
|
+
driver_current_location_latitude: import_zod2.default.number().describe("Driver's current latitude"),
|
|
114
|
+
driver_current_location_longitude: import_zod2.default.number().describe("Driver's current longitude"),
|
|
115
|
+
driver_current_location_address: import_zod2.default.string().describe("Driver's current address"),
|
|
116
|
+
license_number: import_zod2.default.string().optional().describe("The driver's license number"),
|
|
117
|
+
license_state: import_zod2.default.string().optional().describe("The state that issued the driver's license"),
|
|
118
|
+
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
119
|
+
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
120
|
+
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
121
|
+
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
122
|
+
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
123
|
+
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
124
|
+
}).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates")
|
|
122
125
|
}).describe("Schema for updating driver ELD status information");
|
|
126
|
+
var BatchConvexUpdate = import_zod2.default.object({
|
|
127
|
+
updates: import_zod2.default.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
|
|
128
|
+
}).describe("Schema for batch updating driver ELD status information");
|
|
123
129
|
|
|
124
130
|
// src/schemas/providerAccounts/update-status.ts
|
|
125
131
|
var import_zod3 = __toESM(require("zod"), 1);
|
|
@@ -155,6 +161,7 @@ var ValidatePasswordResponseSchema = import_zod4.z.object({
|
|
|
155
161
|
}).describe("Response schema for password validation");
|
|
156
162
|
// Annotate the CommonJS export names for ESM import in node:
|
|
157
163
|
0 && (module.exports = {
|
|
164
|
+
BatchConvexUpdate,
|
|
158
165
|
ConvexUpdate,
|
|
159
166
|
NewLoginRequest,
|
|
160
167
|
NewLoginResponse,
|
package/dist/browser.d.cts
CHANGED
|
@@ -164,68 +164,273 @@ type NewLoginResponse = z.infer<typeof NewLoginResponse>;
|
|
|
164
164
|
declare const ConvexUpdate: z$1.ZodObject<{
|
|
165
165
|
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
166
166
|
username: z$1.ZodString;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
167
|
+
drivers: z$1.ZodArray<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
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
187
|
+
driver_status: string;
|
|
188
|
+
time_remaining_in_shift: number;
|
|
189
|
+
time_remaining_till_break: number;
|
|
190
|
+
time_remaining_in_week: number;
|
|
191
|
+
time_remaining_in_drive: number;
|
|
192
|
+
driver_current_location_latitude: number;
|
|
193
|
+
driver_current_location_longitude: number;
|
|
194
|
+
driver_current_location_address: string;
|
|
195
|
+
convex_provider_account_id: string;
|
|
196
|
+
external_provider_account_id: string;
|
|
197
|
+
external_driver_id: string;
|
|
198
|
+
driver_name?: string | undefined;
|
|
199
|
+
vehicle_id?: string | undefined;
|
|
200
|
+
license_number?: string | undefined;
|
|
201
|
+
license_state?: string | undefined;
|
|
202
|
+
speed?: number | undefined;
|
|
203
|
+
odometer?: number | undefined;
|
|
204
|
+
mileage_since_last_update?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
driver_status: string;
|
|
207
|
+
time_remaining_in_shift: number;
|
|
208
|
+
time_remaining_till_break: number;
|
|
209
|
+
time_remaining_in_week: number;
|
|
210
|
+
time_remaining_in_drive: number;
|
|
211
|
+
driver_current_location_latitude: number;
|
|
212
|
+
driver_current_location_longitude: number;
|
|
213
|
+
driver_current_location_address: string;
|
|
214
|
+
convex_provider_account_id: string;
|
|
215
|
+
external_provider_account_id: string;
|
|
216
|
+
external_driver_id: string;
|
|
217
|
+
driver_name?: string | undefined;
|
|
218
|
+
vehicle_id?: string | undefined;
|
|
219
|
+
license_number?: string | undefined;
|
|
220
|
+
license_state?: string | undefined;
|
|
221
|
+
speed?: number | undefined;
|
|
222
|
+
odometer?: number | undefined;
|
|
223
|
+
mileage_since_last_update?: number | undefined;
|
|
224
|
+
}>, "many">;
|
|
185
225
|
}, "strip", z$1.ZodTypeAny, {
|
|
186
226
|
username: string;
|
|
187
227
|
provider_url: string;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
drivers: {
|
|
229
|
+
driver_status: string;
|
|
230
|
+
time_remaining_in_shift: number;
|
|
231
|
+
time_remaining_till_break: number;
|
|
232
|
+
time_remaining_in_week: number;
|
|
233
|
+
time_remaining_in_drive: number;
|
|
234
|
+
driver_current_location_latitude: number;
|
|
235
|
+
driver_current_location_longitude: number;
|
|
236
|
+
driver_current_location_address: string;
|
|
237
|
+
convex_provider_account_id: string;
|
|
238
|
+
external_provider_account_id: string;
|
|
239
|
+
external_driver_id: string;
|
|
240
|
+
driver_name?: string | undefined;
|
|
241
|
+
vehicle_id?: string | undefined;
|
|
242
|
+
license_number?: string | undefined;
|
|
243
|
+
license_state?: string | undefined;
|
|
244
|
+
speed?: number | undefined;
|
|
245
|
+
odometer?: number | undefined;
|
|
246
|
+
mileage_since_last_update?: number | undefined;
|
|
247
|
+
}[];
|
|
206
248
|
}, {
|
|
207
249
|
username: string;
|
|
208
250
|
provider_url: string;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
251
|
+
drivers: {
|
|
252
|
+
driver_status: string;
|
|
253
|
+
time_remaining_in_shift: number;
|
|
254
|
+
time_remaining_till_break: number;
|
|
255
|
+
time_remaining_in_week: number;
|
|
256
|
+
time_remaining_in_drive: number;
|
|
257
|
+
driver_current_location_latitude: number;
|
|
258
|
+
driver_current_location_longitude: number;
|
|
259
|
+
driver_current_location_address: string;
|
|
260
|
+
convex_provider_account_id: string;
|
|
261
|
+
external_provider_account_id: string;
|
|
262
|
+
external_driver_id: string;
|
|
263
|
+
driver_name?: string | undefined;
|
|
264
|
+
vehicle_id?: string | undefined;
|
|
265
|
+
license_number?: string | undefined;
|
|
266
|
+
license_state?: string | undefined;
|
|
267
|
+
speed?: number | undefined;
|
|
268
|
+
odometer?: number | undefined;
|
|
269
|
+
mileage_since_last_update?: number | undefined;
|
|
270
|
+
}[];
|
|
227
271
|
}>;
|
|
228
272
|
type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
|
|
273
|
+
declare const BatchConvexUpdate: z$1.ZodObject<{
|
|
274
|
+
updates: z$1.ZodArray<z$1.ZodObject<{
|
|
275
|
+
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
276
|
+
username: z$1.ZodString;
|
|
277
|
+
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
278
|
+
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
279
|
+
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
280
|
+
driver_status: z$1.ZodString;
|
|
281
|
+
time_remaining_in_shift: z$1.ZodNumber;
|
|
282
|
+
time_remaining_till_break: z$1.ZodNumber;
|
|
283
|
+
time_remaining_in_week: z$1.ZodNumber;
|
|
284
|
+
time_remaining_in_drive: z$1.ZodNumber;
|
|
285
|
+
driver_current_location_latitude: z$1.ZodNumber;
|
|
286
|
+
driver_current_location_longitude: z$1.ZodNumber;
|
|
287
|
+
driver_current_location_address: z$1.ZodString;
|
|
288
|
+
license_number: z$1.ZodOptional<z$1.ZodString>;
|
|
289
|
+
license_state: z$1.ZodOptional<z$1.ZodString>;
|
|
290
|
+
speed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
291
|
+
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
292
|
+
convex_provider_account_id: z$1.ZodString;
|
|
293
|
+
external_provider_account_id: z$1.ZodString;
|
|
294
|
+
external_driver_id: z$1.ZodString;
|
|
295
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
296
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
297
|
+
driver_status: string;
|
|
298
|
+
time_remaining_in_shift: number;
|
|
299
|
+
time_remaining_till_break: number;
|
|
300
|
+
time_remaining_in_week: number;
|
|
301
|
+
time_remaining_in_drive: number;
|
|
302
|
+
driver_current_location_latitude: number;
|
|
303
|
+
driver_current_location_longitude: number;
|
|
304
|
+
driver_current_location_address: string;
|
|
305
|
+
convex_provider_account_id: string;
|
|
306
|
+
external_provider_account_id: string;
|
|
307
|
+
external_driver_id: string;
|
|
308
|
+
driver_name?: string | undefined;
|
|
309
|
+
vehicle_id?: string | undefined;
|
|
310
|
+
license_number?: string | undefined;
|
|
311
|
+
license_state?: string | undefined;
|
|
312
|
+
speed?: number | undefined;
|
|
313
|
+
odometer?: number | undefined;
|
|
314
|
+
mileage_since_last_update?: number | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
driver_status: string;
|
|
317
|
+
time_remaining_in_shift: number;
|
|
318
|
+
time_remaining_till_break: number;
|
|
319
|
+
time_remaining_in_week: number;
|
|
320
|
+
time_remaining_in_drive: number;
|
|
321
|
+
driver_current_location_latitude: number;
|
|
322
|
+
driver_current_location_longitude: number;
|
|
323
|
+
driver_current_location_address: string;
|
|
324
|
+
convex_provider_account_id: string;
|
|
325
|
+
external_provider_account_id: string;
|
|
326
|
+
external_driver_id: string;
|
|
327
|
+
driver_name?: string | undefined;
|
|
328
|
+
vehicle_id?: string | undefined;
|
|
329
|
+
license_number?: string | undefined;
|
|
330
|
+
license_state?: string | undefined;
|
|
331
|
+
speed?: number | undefined;
|
|
332
|
+
odometer?: number | undefined;
|
|
333
|
+
mileage_since_last_update?: number | undefined;
|
|
334
|
+
}>, "many">;
|
|
335
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
336
|
+
username: string;
|
|
337
|
+
provider_url: string;
|
|
338
|
+
drivers: {
|
|
339
|
+
driver_status: string;
|
|
340
|
+
time_remaining_in_shift: number;
|
|
341
|
+
time_remaining_till_break: number;
|
|
342
|
+
time_remaining_in_week: number;
|
|
343
|
+
time_remaining_in_drive: number;
|
|
344
|
+
driver_current_location_latitude: number;
|
|
345
|
+
driver_current_location_longitude: number;
|
|
346
|
+
driver_current_location_address: string;
|
|
347
|
+
convex_provider_account_id: string;
|
|
348
|
+
external_provider_account_id: string;
|
|
349
|
+
external_driver_id: string;
|
|
350
|
+
driver_name?: string | undefined;
|
|
351
|
+
vehicle_id?: string | undefined;
|
|
352
|
+
license_number?: string | undefined;
|
|
353
|
+
license_state?: string | undefined;
|
|
354
|
+
speed?: number | undefined;
|
|
355
|
+
odometer?: number | undefined;
|
|
356
|
+
mileage_since_last_update?: number | undefined;
|
|
357
|
+
}[];
|
|
358
|
+
}, {
|
|
359
|
+
username: string;
|
|
360
|
+
provider_url: string;
|
|
361
|
+
drivers: {
|
|
362
|
+
driver_status: string;
|
|
363
|
+
time_remaining_in_shift: number;
|
|
364
|
+
time_remaining_till_break: number;
|
|
365
|
+
time_remaining_in_week: number;
|
|
366
|
+
time_remaining_in_drive: number;
|
|
367
|
+
driver_current_location_latitude: number;
|
|
368
|
+
driver_current_location_longitude: number;
|
|
369
|
+
driver_current_location_address: string;
|
|
370
|
+
convex_provider_account_id: string;
|
|
371
|
+
external_provider_account_id: string;
|
|
372
|
+
external_driver_id: string;
|
|
373
|
+
driver_name?: string | undefined;
|
|
374
|
+
vehicle_id?: string | undefined;
|
|
375
|
+
license_number?: string | undefined;
|
|
376
|
+
license_state?: string | undefined;
|
|
377
|
+
speed?: number | undefined;
|
|
378
|
+
odometer?: number | undefined;
|
|
379
|
+
mileage_since_last_update?: number | undefined;
|
|
380
|
+
}[];
|
|
381
|
+
}>, "many">;
|
|
382
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
383
|
+
updates: {
|
|
384
|
+
username: string;
|
|
385
|
+
provider_url: string;
|
|
386
|
+
drivers: {
|
|
387
|
+
driver_status: string;
|
|
388
|
+
time_remaining_in_shift: number;
|
|
389
|
+
time_remaining_till_break: number;
|
|
390
|
+
time_remaining_in_week: number;
|
|
391
|
+
time_remaining_in_drive: number;
|
|
392
|
+
driver_current_location_latitude: number;
|
|
393
|
+
driver_current_location_longitude: number;
|
|
394
|
+
driver_current_location_address: string;
|
|
395
|
+
convex_provider_account_id: string;
|
|
396
|
+
external_provider_account_id: string;
|
|
397
|
+
external_driver_id: string;
|
|
398
|
+
driver_name?: string | undefined;
|
|
399
|
+
vehicle_id?: string | undefined;
|
|
400
|
+
license_number?: string | undefined;
|
|
401
|
+
license_state?: string | undefined;
|
|
402
|
+
speed?: number | undefined;
|
|
403
|
+
odometer?: number | undefined;
|
|
404
|
+
mileage_since_last_update?: number | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
}[];
|
|
407
|
+
}, {
|
|
408
|
+
updates: {
|
|
409
|
+
username: string;
|
|
410
|
+
provider_url: string;
|
|
411
|
+
drivers: {
|
|
412
|
+
driver_status: string;
|
|
413
|
+
time_remaining_in_shift: number;
|
|
414
|
+
time_remaining_till_break: number;
|
|
415
|
+
time_remaining_in_week: number;
|
|
416
|
+
time_remaining_in_drive: number;
|
|
417
|
+
driver_current_location_latitude: number;
|
|
418
|
+
driver_current_location_longitude: number;
|
|
419
|
+
driver_current_location_address: string;
|
|
420
|
+
convex_provider_account_id: string;
|
|
421
|
+
external_provider_account_id: string;
|
|
422
|
+
external_driver_id: string;
|
|
423
|
+
driver_name?: string | undefined;
|
|
424
|
+
vehicle_id?: string | undefined;
|
|
425
|
+
license_number?: string | undefined;
|
|
426
|
+
license_state?: string | undefined;
|
|
427
|
+
speed?: number | undefined;
|
|
428
|
+
odometer?: number | undefined;
|
|
429
|
+
mileage_since_last_update?: number | undefined;
|
|
430
|
+
}[];
|
|
431
|
+
}[];
|
|
432
|
+
}>;
|
|
433
|
+
type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
|
|
229
434
|
|
|
230
435
|
declare enum ScrapeStatus {
|
|
231
436
|
NEW_LOGIN_RECEIVED = "NEW_LOGIN_RECEIVED",
|
|
@@ -286,4 +491,4 @@ declare const ValidatePasswordResponseSchema: z.ZodObject<{
|
|
|
286
491
|
}>;
|
|
287
492
|
type ValidatePasswordResponse = z.infer<typeof ValidatePasswordResponseSchema>;
|
|
288
493
|
|
|
289
|
-
export { ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
|
|
494
|
+
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
|
package/dist/browser.d.ts
CHANGED
|
@@ -164,68 +164,273 @@ type NewLoginResponse = z.infer<typeof NewLoginResponse>;
|
|
|
164
164
|
declare const ConvexUpdate: z$1.ZodObject<{
|
|
165
165
|
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
166
166
|
username: z$1.ZodString;
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
167
|
+
drivers: z$1.ZodArray<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
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
187
|
+
driver_status: string;
|
|
188
|
+
time_remaining_in_shift: number;
|
|
189
|
+
time_remaining_till_break: number;
|
|
190
|
+
time_remaining_in_week: number;
|
|
191
|
+
time_remaining_in_drive: number;
|
|
192
|
+
driver_current_location_latitude: number;
|
|
193
|
+
driver_current_location_longitude: number;
|
|
194
|
+
driver_current_location_address: string;
|
|
195
|
+
convex_provider_account_id: string;
|
|
196
|
+
external_provider_account_id: string;
|
|
197
|
+
external_driver_id: string;
|
|
198
|
+
driver_name?: string | undefined;
|
|
199
|
+
vehicle_id?: string | undefined;
|
|
200
|
+
license_number?: string | undefined;
|
|
201
|
+
license_state?: string | undefined;
|
|
202
|
+
speed?: number | undefined;
|
|
203
|
+
odometer?: number | undefined;
|
|
204
|
+
mileage_since_last_update?: number | undefined;
|
|
205
|
+
}, {
|
|
206
|
+
driver_status: string;
|
|
207
|
+
time_remaining_in_shift: number;
|
|
208
|
+
time_remaining_till_break: number;
|
|
209
|
+
time_remaining_in_week: number;
|
|
210
|
+
time_remaining_in_drive: number;
|
|
211
|
+
driver_current_location_latitude: number;
|
|
212
|
+
driver_current_location_longitude: number;
|
|
213
|
+
driver_current_location_address: string;
|
|
214
|
+
convex_provider_account_id: string;
|
|
215
|
+
external_provider_account_id: string;
|
|
216
|
+
external_driver_id: string;
|
|
217
|
+
driver_name?: string | undefined;
|
|
218
|
+
vehicle_id?: string | undefined;
|
|
219
|
+
license_number?: string | undefined;
|
|
220
|
+
license_state?: string | undefined;
|
|
221
|
+
speed?: number | undefined;
|
|
222
|
+
odometer?: number | undefined;
|
|
223
|
+
mileage_since_last_update?: number | undefined;
|
|
224
|
+
}>, "many">;
|
|
185
225
|
}, "strip", z$1.ZodTypeAny, {
|
|
186
226
|
username: string;
|
|
187
227
|
provider_url: string;
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
228
|
+
drivers: {
|
|
229
|
+
driver_status: string;
|
|
230
|
+
time_remaining_in_shift: number;
|
|
231
|
+
time_remaining_till_break: number;
|
|
232
|
+
time_remaining_in_week: number;
|
|
233
|
+
time_remaining_in_drive: number;
|
|
234
|
+
driver_current_location_latitude: number;
|
|
235
|
+
driver_current_location_longitude: number;
|
|
236
|
+
driver_current_location_address: string;
|
|
237
|
+
convex_provider_account_id: string;
|
|
238
|
+
external_provider_account_id: string;
|
|
239
|
+
external_driver_id: string;
|
|
240
|
+
driver_name?: string | undefined;
|
|
241
|
+
vehicle_id?: string | undefined;
|
|
242
|
+
license_number?: string | undefined;
|
|
243
|
+
license_state?: string | undefined;
|
|
244
|
+
speed?: number | undefined;
|
|
245
|
+
odometer?: number | undefined;
|
|
246
|
+
mileage_since_last_update?: number | undefined;
|
|
247
|
+
}[];
|
|
206
248
|
}, {
|
|
207
249
|
username: string;
|
|
208
250
|
provider_url: string;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
251
|
+
drivers: {
|
|
252
|
+
driver_status: string;
|
|
253
|
+
time_remaining_in_shift: number;
|
|
254
|
+
time_remaining_till_break: number;
|
|
255
|
+
time_remaining_in_week: number;
|
|
256
|
+
time_remaining_in_drive: number;
|
|
257
|
+
driver_current_location_latitude: number;
|
|
258
|
+
driver_current_location_longitude: number;
|
|
259
|
+
driver_current_location_address: string;
|
|
260
|
+
convex_provider_account_id: string;
|
|
261
|
+
external_provider_account_id: string;
|
|
262
|
+
external_driver_id: string;
|
|
263
|
+
driver_name?: string | undefined;
|
|
264
|
+
vehicle_id?: string | undefined;
|
|
265
|
+
license_number?: string | undefined;
|
|
266
|
+
license_state?: string | undefined;
|
|
267
|
+
speed?: number | undefined;
|
|
268
|
+
odometer?: number | undefined;
|
|
269
|
+
mileage_since_last_update?: number | undefined;
|
|
270
|
+
}[];
|
|
227
271
|
}>;
|
|
228
272
|
type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
|
|
273
|
+
declare const BatchConvexUpdate: z$1.ZodObject<{
|
|
274
|
+
updates: z$1.ZodArray<z$1.ZodObject<{
|
|
275
|
+
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
276
|
+
username: z$1.ZodString;
|
|
277
|
+
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
278
|
+
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
279
|
+
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
280
|
+
driver_status: z$1.ZodString;
|
|
281
|
+
time_remaining_in_shift: z$1.ZodNumber;
|
|
282
|
+
time_remaining_till_break: z$1.ZodNumber;
|
|
283
|
+
time_remaining_in_week: z$1.ZodNumber;
|
|
284
|
+
time_remaining_in_drive: z$1.ZodNumber;
|
|
285
|
+
driver_current_location_latitude: z$1.ZodNumber;
|
|
286
|
+
driver_current_location_longitude: z$1.ZodNumber;
|
|
287
|
+
driver_current_location_address: z$1.ZodString;
|
|
288
|
+
license_number: z$1.ZodOptional<z$1.ZodString>;
|
|
289
|
+
license_state: z$1.ZodOptional<z$1.ZodString>;
|
|
290
|
+
speed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
291
|
+
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
292
|
+
convex_provider_account_id: z$1.ZodString;
|
|
293
|
+
external_provider_account_id: z$1.ZodString;
|
|
294
|
+
external_driver_id: z$1.ZodString;
|
|
295
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
296
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
297
|
+
driver_status: string;
|
|
298
|
+
time_remaining_in_shift: number;
|
|
299
|
+
time_remaining_till_break: number;
|
|
300
|
+
time_remaining_in_week: number;
|
|
301
|
+
time_remaining_in_drive: number;
|
|
302
|
+
driver_current_location_latitude: number;
|
|
303
|
+
driver_current_location_longitude: number;
|
|
304
|
+
driver_current_location_address: string;
|
|
305
|
+
convex_provider_account_id: string;
|
|
306
|
+
external_provider_account_id: string;
|
|
307
|
+
external_driver_id: string;
|
|
308
|
+
driver_name?: string | undefined;
|
|
309
|
+
vehicle_id?: string | undefined;
|
|
310
|
+
license_number?: string | undefined;
|
|
311
|
+
license_state?: string | undefined;
|
|
312
|
+
speed?: number | undefined;
|
|
313
|
+
odometer?: number | undefined;
|
|
314
|
+
mileage_since_last_update?: number | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
driver_status: string;
|
|
317
|
+
time_remaining_in_shift: number;
|
|
318
|
+
time_remaining_till_break: number;
|
|
319
|
+
time_remaining_in_week: number;
|
|
320
|
+
time_remaining_in_drive: number;
|
|
321
|
+
driver_current_location_latitude: number;
|
|
322
|
+
driver_current_location_longitude: number;
|
|
323
|
+
driver_current_location_address: string;
|
|
324
|
+
convex_provider_account_id: string;
|
|
325
|
+
external_provider_account_id: string;
|
|
326
|
+
external_driver_id: string;
|
|
327
|
+
driver_name?: string | undefined;
|
|
328
|
+
vehicle_id?: string | undefined;
|
|
329
|
+
license_number?: string | undefined;
|
|
330
|
+
license_state?: string | undefined;
|
|
331
|
+
speed?: number | undefined;
|
|
332
|
+
odometer?: number | undefined;
|
|
333
|
+
mileage_since_last_update?: number | undefined;
|
|
334
|
+
}>, "many">;
|
|
335
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
336
|
+
username: string;
|
|
337
|
+
provider_url: string;
|
|
338
|
+
drivers: {
|
|
339
|
+
driver_status: string;
|
|
340
|
+
time_remaining_in_shift: number;
|
|
341
|
+
time_remaining_till_break: number;
|
|
342
|
+
time_remaining_in_week: number;
|
|
343
|
+
time_remaining_in_drive: number;
|
|
344
|
+
driver_current_location_latitude: number;
|
|
345
|
+
driver_current_location_longitude: number;
|
|
346
|
+
driver_current_location_address: string;
|
|
347
|
+
convex_provider_account_id: string;
|
|
348
|
+
external_provider_account_id: string;
|
|
349
|
+
external_driver_id: string;
|
|
350
|
+
driver_name?: string | undefined;
|
|
351
|
+
vehicle_id?: string | undefined;
|
|
352
|
+
license_number?: string | undefined;
|
|
353
|
+
license_state?: string | undefined;
|
|
354
|
+
speed?: number | undefined;
|
|
355
|
+
odometer?: number | undefined;
|
|
356
|
+
mileage_since_last_update?: number | undefined;
|
|
357
|
+
}[];
|
|
358
|
+
}, {
|
|
359
|
+
username: string;
|
|
360
|
+
provider_url: string;
|
|
361
|
+
drivers: {
|
|
362
|
+
driver_status: string;
|
|
363
|
+
time_remaining_in_shift: number;
|
|
364
|
+
time_remaining_till_break: number;
|
|
365
|
+
time_remaining_in_week: number;
|
|
366
|
+
time_remaining_in_drive: number;
|
|
367
|
+
driver_current_location_latitude: number;
|
|
368
|
+
driver_current_location_longitude: number;
|
|
369
|
+
driver_current_location_address: string;
|
|
370
|
+
convex_provider_account_id: string;
|
|
371
|
+
external_provider_account_id: string;
|
|
372
|
+
external_driver_id: string;
|
|
373
|
+
driver_name?: string | undefined;
|
|
374
|
+
vehicle_id?: string | undefined;
|
|
375
|
+
license_number?: string | undefined;
|
|
376
|
+
license_state?: string | undefined;
|
|
377
|
+
speed?: number | undefined;
|
|
378
|
+
odometer?: number | undefined;
|
|
379
|
+
mileage_since_last_update?: number | undefined;
|
|
380
|
+
}[];
|
|
381
|
+
}>, "many">;
|
|
382
|
+
}, "strip", z$1.ZodTypeAny, {
|
|
383
|
+
updates: {
|
|
384
|
+
username: string;
|
|
385
|
+
provider_url: string;
|
|
386
|
+
drivers: {
|
|
387
|
+
driver_status: string;
|
|
388
|
+
time_remaining_in_shift: number;
|
|
389
|
+
time_remaining_till_break: number;
|
|
390
|
+
time_remaining_in_week: number;
|
|
391
|
+
time_remaining_in_drive: number;
|
|
392
|
+
driver_current_location_latitude: number;
|
|
393
|
+
driver_current_location_longitude: number;
|
|
394
|
+
driver_current_location_address: string;
|
|
395
|
+
convex_provider_account_id: string;
|
|
396
|
+
external_provider_account_id: string;
|
|
397
|
+
external_driver_id: string;
|
|
398
|
+
driver_name?: string | undefined;
|
|
399
|
+
vehicle_id?: string | undefined;
|
|
400
|
+
license_number?: string | undefined;
|
|
401
|
+
license_state?: string | undefined;
|
|
402
|
+
speed?: number | undefined;
|
|
403
|
+
odometer?: number | undefined;
|
|
404
|
+
mileage_since_last_update?: number | undefined;
|
|
405
|
+
}[];
|
|
406
|
+
}[];
|
|
407
|
+
}, {
|
|
408
|
+
updates: {
|
|
409
|
+
username: string;
|
|
410
|
+
provider_url: string;
|
|
411
|
+
drivers: {
|
|
412
|
+
driver_status: string;
|
|
413
|
+
time_remaining_in_shift: number;
|
|
414
|
+
time_remaining_till_break: number;
|
|
415
|
+
time_remaining_in_week: number;
|
|
416
|
+
time_remaining_in_drive: number;
|
|
417
|
+
driver_current_location_latitude: number;
|
|
418
|
+
driver_current_location_longitude: number;
|
|
419
|
+
driver_current_location_address: string;
|
|
420
|
+
convex_provider_account_id: string;
|
|
421
|
+
external_provider_account_id: string;
|
|
422
|
+
external_driver_id: string;
|
|
423
|
+
driver_name?: string | undefined;
|
|
424
|
+
vehicle_id?: string | undefined;
|
|
425
|
+
license_number?: string | undefined;
|
|
426
|
+
license_state?: string | undefined;
|
|
427
|
+
speed?: number | undefined;
|
|
428
|
+
odometer?: number | undefined;
|
|
429
|
+
mileage_since_last_update?: number | undefined;
|
|
430
|
+
}[];
|
|
431
|
+
}[];
|
|
432
|
+
}>;
|
|
433
|
+
type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
|
|
229
434
|
|
|
230
435
|
declare enum ScrapeStatus {
|
|
231
436
|
NEW_LOGIN_RECEIVED = "NEW_LOGIN_RECEIVED",
|
|
@@ -286,4 +491,4 @@ declare const ValidatePasswordResponseSchema: z.ZodObject<{
|
|
|
286
491
|
}>;
|
|
287
492
|
type ValidatePasswordResponse = z.infer<typeof ValidatePasswordResponseSchema>;
|
|
288
493
|
|
|
289
|
-
export { ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
|
|
494
|
+
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
|
package/dist/browser.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BatchConvexUpdate,
|
|
2
3
|
ConvexUpdate,
|
|
3
4
|
NewLoginRequest,
|
|
4
5
|
NewLoginResponse,
|
|
@@ -8,8 +9,9 @@ import {
|
|
|
8
9
|
UpdateScrapeStatusMessage,
|
|
9
10
|
ValidatePasswordRequestSchema,
|
|
10
11
|
ValidatePasswordResponseSchema
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GCTM3QSH.js";
|
|
12
13
|
export {
|
|
14
|
+
BatchConvexUpdate,
|
|
13
15
|
ConvexUpdate,
|
|
14
16
|
NewLoginRequest,
|
|
15
17
|
NewLoginResponse,
|
|
@@ -56,26 +56,31 @@ var UrlSchema2 = z2.string().refine(
|
|
|
56
56
|
);
|
|
57
57
|
var ConvexUpdate = z2.object({
|
|
58
58
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
59
|
-
username: z2.string().describe("The
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
59
|
+
username: z2.string().describe("The ELD account's login username"),
|
|
60
|
+
drivers: z2.array(z2.object({
|
|
61
|
+
driver_name: z2.string().optional().describe("The driver's full name"),
|
|
62
|
+
vehicle_id: z2.string().optional().describe("The vehicle ID"),
|
|
63
|
+
driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
|
|
64
|
+
time_remaining_in_shift: z2.number().describe("Seconds remaining in current shift"),
|
|
65
|
+
time_remaining_till_break: z2.number().describe("Seconds remaining until next required break"),
|
|
66
|
+
time_remaining_in_week: z2.number().describe("Seconds remaining in current cycle/week"),
|
|
67
|
+
time_remaining_in_drive: z2.number().describe("Seconds remaining in current drive period"),
|
|
68
|
+
driver_current_location_latitude: z2.number().describe("Driver's current latitude"),
|
|
69
|
+
driver_current_location_longitude: z2.number().describe("Driver's current longitude"),
|
|
70
|
+
driver_current_location_address: z2.string().describe("Driver's current address"),
|
|
71
|
+
license_number: z2.string().optional().describe("The driver's license number"),
|
|
72
|
+
license_state: z2.string().optional().describe("The state that issued the driver's license"),
|
|
73
|
+
speed: z2.number().optional().describe("The vehicle's current speed in mph"),
|
|
74
|
+
odometer: z2.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
75
|
+
convex_provider_account_id: z2.string().describe("The Convex ELD provider account ID"),
|
|
76
|
+
external_provider_account_id: z2.string().describe("The provider account ID on backend"),
|
|
77
|
+
external_driver_id: z2.string().describe("The driver ID on backend"),
|
|
78
|
+
mileage_since_last_update: z2.number().optional().describe("Mileage since last update in miles")
|
|
79
|
+
}).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates")
|
|
78
80
|
}).describe("Schema for updating driver ELD status information");
|
|
81
|
+
var BatchConvexUpdate = z2.object({
|
|
82
|
+
updates: z2.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
|
|
83
|
+
}).describe("Schema for batch updating driver ELD status information");
|
|
79
84
|
|
|
80
85
|
// src/schemas/providerAccounts/update-status.ts
|
|
81
86
|
import z3 from "zod";
|
|
@@ -116,6 +121,7 @@ export {
|
|
|
116
121
|
NewLoginResponseFailure,
|
|
117
122
|
NewLoginResponse,
|
|
118
123
|
ConvexUpdate,
|
|
124
|
+
BatchConvexUpdate,
|
|
119
125
|
ScrapeStatus,
|
|
120
126
|
UpdateScrapeStatusMessage,
|
|
121
127
|
ValidatePasswordRequestSchema,
|
package/dist/index.cjs
CHANGED
|
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// src/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
+
BatchConvexUpdate: () => BatchConvexUpdate,
|
|
33
34
|
ConvexUpdate: () => ConvexUpdate,
|
|
34
35
|
NewLoginRequest: () => NewLoginRequest,
|
|
35
36
|
NewLoginResponse: () => NewLoginResponse,
|
|
@@ -102,26 +103,31 @@ var UrlSchema2 = import_zod2.default.string().refine(
|
|
|
102
103
|
);
|
|
103
104
|
var ConvexUpdate = import_zod2.default.object({
|
|
104
105
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
105
|
-
username: import_zod2.default.string().describe("The
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
106
|
+
username: import_zod2.default.string().describe("The ELD account's login username"),
|
|
107
|
+
drivers: import_zod2.default.array(import_zod2.default.object({
|
|
108
|
+
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
109
|
+
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
110
|
+
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
|
111
|
+
time_remaining_in_shift: import_zod2.default.number().describe("Seconds remaining in current shift"),
|
|
112
|
+
time_remaining_till_break: import_zod2.default.number().describe("Seconds remaining until next required break"),
|
|
113
|
+
time_remaining_in_week: import_zod2.default.number().describe("Seconds remaining in current cycle/week"),
|
|
114
|
+
time_remaining_in_drive: import_zod2.default.number().describe("Seconds remaining in current drive period"),
|
|
115
|
+
driver_current_location_latitude: import_zod2.default.number().describe("Driver's current latitude"),
|
|
116
|
+
driver_current_location_longitude: import_zod2.default.number().describe("Driver's current longitude"),
|
|
117
|
+
driver_current_location_address: import_zod2.default.string().describe("Driver's current address"),
|
|
118
|
+
license_number: import_zod2.default.string().optional().describe("The driver's license number"),
|
|
119
|
+
license_state: import_zod2.default.string().optional().describe("The state that issued the driver's license"),
|
|
120
|
+
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
121
|
+
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
122
|
+
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
123
|
+
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
124
|
+
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
125
|
+
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
126
|
+
}).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates")
|
|
124
127
|
}).describe("Schema for updating driver ELD status information");
|
|
128
|
+
var BatchConvexUpdate = import_zod2.default.object({
|
|
129
|
+
updates: import_zod2.default.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
|
|
130
|
+
}).describe("Schema for batch updating driver ELD status information");
|
|
125
131
|
|
|
126
132
|
// src/security/transit-crypto.ts
|
|
127
133
|
var import_node_crypto = require("crypto");
|
|
@@ -183,6 +189,7 @@ var ValidatePasswordResponseSchema = import_zod4.z.object({
|
|
|
183
189
|
}).describe("Response schema for password validation");
|
|
184
190
|
// Annotate the CommonJS export names for ESM import in node:
|
|
185
191
|
0 && (module.exports = {
|
|
192
|
+
BatchConvexUpdate,
|
|
186
193
|
ConvexUpdate,
|
|
187
194
|
NewLoginRequest,
|
|
188
195
|
NewLoginResponse,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.cjs';
|
|
1
|
+
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.cjs';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare function encryptRsaOaepSha256ToB64(plaintext: string, publicKeyPem: string): string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.js';
|
|
1
|
+
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseSchema } from './browser.js';
|
|
2
2
|
import 'zod';
|
|
3
3
|
|
|
4
4
|
declare function encryptRsaOaepSha256ToB64(plaintext: string, publicKeyPem: string): string;
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BatchConvexUpdate,
|
|
2
3
|
ConvexUpdate,
|
|
3
4
|
NewLoginRequest,
|
|
4
5
|
NewLoginResponse,
|
|
@@ -8,7 +9,7 @@ import {
|
|
|
8
9
|
UpdateScrapeStatusMessage,
|
|
9
10
|
ValidatePasswordRequestSchema,
|
|
10
11
|
ValidatePasswordResponseSchema
|
|
11
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GCTM3QSH.js";
|
|
12
13
|
|
|
13
14
|
// src/security/transit-crypto.ts
|
|
14
15
|
import { publicEncrypt, privateDecrypt, constants } from "crypto";
|
|
@@ -36,6 +37,7 @@ function decryptRsaOaepSha256B64(ciphertextB64, privateKeyPem, passphrase) {
|
|
|
36
37
|
return plaintext.toString("utf8");
|
|
37
38
|
}
|
|
38
39
|
export {
|
|
40
|
+
BatchConvexUpdate,
|
|
39
41
|
ConvexUpdate,
|
|
40
42
|
NewLoginRequest,
|
|
41
43
|
NewLoginResponse,
|