@findatruck/shared-schemas 0.11.0 → 0.11.2
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/index.cjs +1 -2
- package/dist/index.d.cts +13 -16
- package/dist/index.d.ts +13 -16
- package/dist/index.js +1 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -63,7 +63,7 @@ var UrlSchema = import_zod.z.string().refine(
|
|
|
63
63
|
{ message: "Invalid URL" }
|
|
64
64
|
);
|
|
65
65
|
var NewLoginRequest = import_zod.z.object({
|
|
66
|
-
|
|
66
|
+
provider_url: UrlSchema,
|
|
67
67
|
username: import_zod.z.string().min(1),
|
|
68
68
|
password: import_zod.z.string().min(1)
|
|
69
69
|
});
|
|
@@ -105,7 +105,6 @@ var UrlSchema2 = import_zod2.default.string().refine(
|
|
|
105
105
|
var ConvexUpdate = import_zod2.default.object({
|
|
106
106
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
107
107
|
username: import_zod2.default.string().describe("The driver's login username"),
|
|
108
|
-
driver_id: import_zod2.default.string().optional().describe("The ELD's internal driver ID"),
|
|
109
108
|
driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
|
|
110
109
|
vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
|
|
111
110
|
driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
|
package/dist/index.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const NewLoginRequest: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
provider_url: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
username: z.ZodString;
|
|
6
6
|
password: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
|
|
8
|
+
provider_url: string;
|
|
9
9
|
username: string;
|
|
10
10
|
password: string;
|
|
11
11
|
}, {
|
|
12
|
-
|
|
12
|
+
provider_url: string;
|
|
13
13
|
username: string;
|
|
14
14
|
password: string;
|
|
15
15
|
}>;
|
|
@@ -148,7 +148,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
148
148
|
declare const ConvexUpdate: z$1.ZodObject<{
|
|
149
149
|
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
150
150
|
username: z$1.ZodString;
|
|
151
|
-
driver_id: z$1.ZodOptional<z$1.ZodString>;
|
|
152
151
|
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
153
152
|
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
154
153
|
driver_status: z$1.ZodString;
|
|
@@ -160,8 +159,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
160
159
|
driver_current_location_longitude: z$1.ZodNumber;
|
|
161
160
|
driver_current_location_address: z$1.ZodString;
|
|
162
161
|
}, "strip", z$1.ZodTypeAny, {
|
|
163
|
-
username: string;
|
|
164
162
|
provider_url: string;
|
|
163
|
+
username: string;
|
|
165
164
|
driver_status: string;
|
|
166
165
|
time_remaining_in_shift: number;
|
|
167
166
|
time_remaining_till_break: number;
|
|
@@ -170,12 +169,11 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
170
169
|
driver_current_location_latitude: number;
|
|
171
170
|
driver_current_location_longitude: number;
|
|
172
171
|
driver_current_location_address: string;
|
|
173
|
-
driver_id?: string | undefined;
|
|
174
172
|
driver_name?: string | undefined;
|
|
175
173
|
vehicle_id?: string | undefined;
|
|
176
174
|
}, {
|
|
177
|
-
username: string;
|
|
178
175
|
provider_url: string;
|
|
176
|
+
username: string;
|
|
179
177
|
driver_status: string;
|
|
180
178
|
time_remaining_in_shift: number;
|
|
181
179
|
time_remaining_till_break: number;
|
|
@@ -184,7 +182,6 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
184
182
|
driver_current_location_latitude: number;
|
|
185
183
|
driver_current_location_longitude: number;
|
|
186
184
|
driver_current_location_address: string;
|
|
187
|
-
driver_id?: string | undefined;
|
|
188
185
|
driver_name?: string | undefined;
|
|
189
186
|
vehicle_id?: string | undefined;
|
|
190
187
|
}>;
|
|
@@ -233,13 +230,13 @@ declare const DriverLogin: z$1.ZodObject<{
|
|
|
233
230
|
username: z$1.ZodString;
|
|
234
231
|
password: z$1.ZodString;
|
|
235
232
|
}, "strip", z$1.ZodTypeAny, {
|
|
236
|
-
providerUrl: string;
|
|
237
233
|
username: string;
|
|
238
234
|
password: string;
|
|
239
|
-
}, {
|
|
240
235
|
providerUrl: string;
|
|
236
|
+
}, {
|
|
241
237
|
username: string;
|
|
242
238
|
password: string;
|
|
239
|
+
providerUrl: string;
|
|
243
240
|
}>;
|
|
244
241
|
type DriverLogin = z$1.infer<typeof DriverLogin>;
|
|
245
242
|
declare const DriverIdentity: z$1.ZodObject<{
|
|
@@ -332,13 +329,13 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
332
329
|
username: z$1.ZodString;
|
|
333
330
|
password: z$1.ZodString;
|
|
334
331
|
}, "strip", z$1.ZodTypeAny, {
|
|
335
|
-
providerUrl: string;
|
|
336
332
|
username: string;
|
|
337
333
|
password: string;
|
|
338
|
-
}, {
|
|
339
334
|
providerUrl: string;
|
|
335
|
+
}, {
|
|
340
336
|
username: string;
|
|
341
337
|
password: string;
|
|
338
|
+
providerUrl: string;
|
|
342
339
|
}>;
|
|
343
340
|
}, "strip", z$1.ZodTypeAny, {
|
|
344
341
|
driver: {
|
|
@@ -365,9 +362,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
365
362
|
status: string;
|
|
366
363
|
};
|
|
367
364
|
driverLogin: {
|
|
368
|
-
providerUrl: string;
|
|
369
365
|
username: string;
|
|
370
366
|
password: string;
|
|
367
|
+
providerUrl: string;
|
|
371
368
|
};
|
|
372
369
|
}, {
|
|
373
370
|
driver: {
|
|
@@ -394,9 +391,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
394
391
|
status: string;
|
|
395
392
|
};
|
|
396
393
|
driverLogin: {
|
|
397
|
-
providerUrl: string;
|
|
398
394
|
username: string;
|
|
399
395
|
password: string;
|
|
396
|
+
providerUrl: string;
|
|
400
397
|
};
|
|
401
398
|
}>;
|
|
402
399
|
type ConvexUpdateNested = z$1.infer<typeof ConvexUpdateNested>;
|
|
@@ -419,15 +416,15 @@ declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
|
419
416
|
providerUrl: z$1.ZodString;
|
|
420
417
|
password: z$1.ZodString;
|
|
421
418
|
}, "strip", z$1.ZodTypeAny, {
|
|
422
|
-
providerUrl: string;
|
|
423
419
|
username: string;
|
|
424
420
|
password: string;
|
|
425
421
|
status: ScrapeStatus;
|
|
426
|
-
}, {
|
|
427
422
|
providerUrl: string;
|
|
423
|
+
}, {
|
|
428
424
|
username: string;
|
|
429
425
|
password: string;
|
|
430
426
|
status: ScrapeStatus;
|
|
427
|
+
providerUrl: string;
|
|
431
428
|
}>;
|
|
432
429
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
|
433
430
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
3
|
declare const NewLoginRequest: z.ZodObject<{
|
|
4
|
-
|
|
4
|
+
provider_url: z.ZodEffects<z.ZodString, string, string>;
|
|
5
5
|
username: z.ZodString;
|
|
6
6
|
password: z.ZodString;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
|
|
8
|
+
provider_url: string;
|
|
9
9
|
username: string;
|
|
10
10
|
password: string;
|
|
11
11
|
}, {
|
|
12
|
-
|
|
12
|
+
provider_url: string;
|
|
13
13
|
username: string;
|
|
14
14
|
password: string;
|
|
15
15
|
}>;
|
|
@@ -148,7 +148,6 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
|
|
|
148
148
|
declare const ConvexUpdate: z$1.ZodObject<{
|
|
149
149
|
provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
|
|
150
150
|
username: z$1.ZodString;
|
|
151
|
-
driver_id: z$1.ZodOptional<z$1.ZodString>;
|
|
152
151
|
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
153
152
|
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
154
153
|
driver_status: z$1.ZodString;
|
|
@@ -160,8 +159,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
160
159
|
driver_current_location_longitude: z$1.ZodNumber;
|
|
161
160
|
driver_current_location_address: z$1.ZodString;
|
|
162
161
|
}, "strip", z$1.ZodTypeAny, {
|
|
163
|
-
username: string;
|
|
164
162
|
provider_url: string;
|
|
163
|
+
username: string;
|
|
165
164
|
driver_status: string;
|
|
166
165
|
time_remaining_in_shift: number;
|
|
167
166
|
time_remaining_till_break: number;
|
|
@@ -170,12 +169,11 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
170
169
|
driver_current_location_latitude: number;
|
|
171
170
|
driver_current_location_longitude: number;
|
|
172
171
|
driver_current_location_address: string;
|
|
173
|
-
driver_id?: string | undefined;
|
|
174
172
|
driver_name?: string | undefined;
|
|
175
173
|
vehicle_id?: string | undefined;
|
|
176
174
|
}, {
|
|
177
|
-
username: string;
|
|
178
175
|
provider_url: string;
|
|
176
|
+
username: string;
|
|
179
177
|
driver_status: string;
|
|
180
178
|
time_remaining_in_shift: number;
|
|
181
179
|
time_remaining_till_break: number;
|
|
@@ -184,7 +182,6 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
184
182
|
driver_current_location_latitude: number;
|
|
185
183
|
driver_current_location_longitude: number;
|
|
186
184
|
driver_current_location_address: string;
|
|
187
|
-
driver_id?: string | undefined;
|
|
188
185
|
driver_name?: string | undefined;
|
|
189
186
|
vehicle_id?: string | undefined;
|
|
190
187
|
}>;
|
|
@@ -233,13 +230,13 @@ declare const DriverLogin: z$1.ZodObject<{
|
|
|
233
230
|
username: z$1.ZodString;
|
|
234
231
|
password: z$1.ZodString;
|
|
235
232
|
}, "strip", z$1.ZodTypeAny, {
|
|
236
|
-
providerUrl: string;
|
|
237
233
|
username: string;
|
|
238
234
|
password: string;
|
|
239
|
-
}, {
|
|
240
235
|
providerUrl: string;
|
|
236
|
+
}, {
|
|
241
237
|
username: string;
|
|
242
238
|
password: string;
|
|
239
|
+
providerUrl: string;
|
|
243
240
|
}>;
|
|
244
241
|
type DriverLogin = z$1.infer<typeof DriverLogin>;
|
|
245
242
|
declare const DriverIdentity: z$1.ZodObject<{
|
|
@@ -332,13 +329,13 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
332
329
|
username: z$1.ZodString;
|
|
333
330
|
password: z$1.ZodString;
|
|
334
331
|
}, "strip", z$1.ZodTypeAny, {
|
|
335
|
-
providerUrl: string;
|
|
336
332
|
username: string;
|
|
337
333
|
password: string;
|
|
338
|
-
}, {
|
|
339
334
|
providerUrl: string;
|
|
335
|
+
}, {
|
|
340
336
|
username: string;
|
|
341
337
|
password: string;
|
|
338
|
+
providerUrl: string;
|
|
342
339
|
}>;
|
|
343
340
|
}, "strip", z$1.ZodTypeAny, {
|
|
344
341
|
driver: {
|
|
@@ -365,9 +362,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
365
362
|
status: string;
|
|
366
363
|
};
|
|
367
364
|
driverLogin: {
|
|
368
|
-
providerUrl: string;
|
|
369
365
|
username: string;
|
|
370
366
|
password: string;
|
|
367
|
+
providerUrl: string;
|
|
371
368
|
};
|
|
372
369
|
}, {
|
|
373
370
|
driver: {
|
|
@@ -394,9 +391,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
394
391
|
status: string;
|
|
395
392
|
};
|
|
396
393
|
driverLogin: {
|
|
397
|
-
providerUrl: string;
|
|
398
394
|
username: string;
|
|
399
395
|
password: string;
|
|
396
|
+
providerUrl: string;
|
|
400
397
|
};
|
|
401
398
|
}>;
|
|
402
399
|
type ConvexUpdateNested = z$1.infer<typeof ConvexUpdateNested>;
|
|
@@ -419,15 +416,15 @@ declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
|
419
416
|
providerUrl: z$1.ZodString;
|
|
420
417
|
password: z$1.ZodString;
|
|
421
418
|
}, "strip", z$1.ZodTypeAny, {
|
|
422
|
-
providerUrl: string;
|
|
423
419
|
username: string;
|
|
424
420
|
password: string;
|
|
425
421
|
status: ScrapeStatus;
|
|
426
|
-
}, {
|
|
427
422
|
providerUrl: string;
|
|
423
|
+
}, {
|
|
428
424
|
username: string;
|
|
429
425
|
password: string;
|
|
430
426
|
status: ScrapeStatus;
|
|
427
|
+
providerUrl: string;
|
|
431
428
|
}>;
|
|
432
429
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
|
433
430
|
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ var UrlSchema = z.string().refine(
|
|
|
12
12
|
{ message: "Invalid URL" }
|
|
13
13
|
);
|
|
14
14
|
var NewLoginRequest = z.object({
|
|
15
|
-
|
|
15
|
+
provider_url: UrlSchema,
|
|
16
16
|
username: z.string().min(1),
|
|
17
17
|
password: z.string().min(1)
|
|
18
18
|
});
|
|
@@ -54,7 +54,6 @@ var UrlSchema2 = z2.string().refine(
|
|
|
54
54
|
var ConvexUpdate = z2.object({
|
|
55
55
|
provider_url: UrlSchema2.describe("The URL of the ELD provider"),
|
|
56
56
|
username: z2.string().describe("The driver's login username"),
|
|
57
|
-
driver_id: z2.string().optional().describe("The ELD's internal driver ID"),
|
|
58
57
|
driver_name: z2.string().optional().describe("The driver's full name"),
|
|
59
58
|
vehicle_id: z2.string().optional().describe("The vehicle ID"),
|
|
60
59
|
driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
|