@findatruck/shared-schemas 0.11.1 → 0.12.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/index.cjs +2 -3
- package/dist/index.d.cts +14 -17
- package/dist/index.d.ts +14 -17
- package/dist/index.js +2 -3
- 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
|
});
|
|
@@ -194,8 +194,7 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
|
|
|
194
194
|
var UpdateScrapeStatusMessage = import_zod3.default.object({
|
|
195
195
|
status: import_zod3.default.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
|
|
196
196
|
username: import_zod3.default.string().describe("The username of the driver whose status is being updated"),
|
|
197
|
-
|
|
198
|
-
password: import_zod3.default.string().describe("The encrypted password of the driver whose status is being updated")
|
|
197
|
+
provider_url: import_zod3.default.string().describe("The URL of the ELD provider")
|
|
199
198
|
}).describe("Schema for update status messages");
|
|
200
199
|
// Annotate the CommonJS export names for ESM import in node:
|
|
201
200
|
0 && (module.exports = {
|
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
|
}>;
|
|
@@ -159,8 +159,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
159
159
|
driver_current_location_longitude: z$1.ZodNumber;
|
|
160
160
|
driver_current_location_address: z$1.ZodString;
|
|
161
161
|
}, "strip", z$1.ZodTypeAny, {
|
|
162
|
-
username: string;
|
|
163
162
|
provider_url: string;
|
|
163
|
+
username: string;
|
|
164
164
|
driver_status: string;
|
|
165
165
|
time_remaining_in_shift: number;
|
|
166
166
|
time_remaining_till_break: number;
|
|
@@ -172,8 +172,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
172
172
|
driver_name?: string | undefined;
|
|
173
173
|
vehicle_id?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
username: string;
|
|
176
175
|
provider_url: string;
|
|
176
|
+
username: string;
|
|
177
177
|
driver_status: string;
|
|
178
178
|
time_remaining_in_shift: number;
|
|
179
179
|
time_remaining_till_break: number;
|
|
@@ -230,13 +230,13 @@ declare const DriverLogin: z$1.ZodObject<{
|
|
|
230
230
|
username: z$1.ZodString;
|
|
231
231
|
password: z$1.ZodString;
|
|
232
232
|
}, "strip", z$1.ZodTypeAny, {
|
|
233
|
-
providerUrl: string;
|
|
234
233
|
username: string;
|
|
235
234
|
password: string;
|
|
236
|
-
}, {
|
|
237
235
|
providerUrl: string;
|
|
236
|
+
}, {
|
|
238
237
|
username: string;
|
|
239
238
|
password: string;
|
|
239
|
+
providerUrl: string;
|
|
240
240
|
}>;
|
|
241
241
|
type DriverLogin = z$1.infer<typeof DriverLogin>;
|
|
242
242
|
declare const DriverIdentity: z$1.ZodObject<{
|
|
@@ -329,13 +329,13 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
329
329
|
username: z$1.ZodString;
|
|
330
330
|
password: z$1.ZodString;
|
|
331
331
|
}, "strip", z$1.ZodTypeAny, {
|
|
332
|
-
providerUrl: string;
|
|
333
332
|
username: string;
|
|
334
333
|
password: string;
|
|
335
|
-
}, {
|
|
336
334
|
providerUrl: string;
|
|
335
|
+
}, {
|
|
337
336
|
username: string;
|
|
338
337
|
password: string;
|
|
338
|
+
providerUrl: string;
|
|
339
339
|
}>;
|
|
340
340
|
}, "strip", z$1.ZodTypeAny, {
|
|
341
341
|
driver: {
|
|
@@ -362,9 +362,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
362
362
|
status: string;
|
|
363
363
|
};
|
|
364
364
|
driverLogin: {
|
|
365
|
-
providerUrl: string;
|
|
366
365
|
username: string;
|
|
367
366
|
password: string;
|
|
367
|
+
providerUrl: string;
|
|
368
368
|
};
|
|
369
369
|
}, {
|
|
370
370
|
driver: {
|
|
@@ -391,9 +391,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
391
391
|
status: string;
|
|
392
392
|
};
|
|
393
393
|
driverLogin: {
|
|
394
|
-
providerUrl: string;
|
|
395
394
|
username: string;
|
|
396
395
|
password: string;
|
|
396
|
+
providerUrl: string;
|
|
397
397
|
};
|
|
398
398
|
}>;
|
|
399
399
|
type ConvexUpdateNested = z$1.infer<typeof ConvexUpdateNested>;
|
|
@@ -413,17 +413,14 @@ declare enum ScrapeStatus {
|
|
|
413
413
|
declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
414
414
|
status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
|
|
415
415
|
username: z$1.ZodString;
|
|
416
|
-
|
|
417
|
-
password: z$1.ZodString;
|
|
416
|
+
provider_url: z$1.ZodString;
|
|
418
417
|
}, "strip", z$1.ZodTypeAny, {
|
|
419
|
-
|
|
418
|
+
provider_url: string;
|
|
420
419
|
username: string;
|
|
421
|
-
password: string;
|
|
422
420
|
status: ScrapeStatus;
|
|
423
421
|
}, {
|
|
424
|
-
|
|
422
|
+
provider_url: string;
|
|
425
423
|
username: string;
|
|
426
|
-
password: string;
|
|
427
424
|
status: ScrapeStatus;
|
|
428
425
|
}>;
|
|
429
426
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
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
|
}>;
|
|
@@ -159,8 +159,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
159
159
|
driver_current_location_longitude: z$1.ZodNumber;
|
|
160
160
|
driver_current_location_address: z$1.ZodString;
|
|
161
161
|
}, "strip", z$1.ZodTypeAny, {
|
|
162
|
-
username: string;
|
|
163
162
|
provider_url: string;
|
|
163
|
+
username: string;
|
|
164
164
|
driver_status: string;
|
|
165
165
|
time_remaining_in_shift: number;
|
|
166
166
|
time_remaining_till_break: number;
|
|
@@ -172,8 +172,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
172
172
|
driver_name?: string | undefined;
|
|
173
173
|
vehicle_id?: string | undefined;
|
|
174
174
|
}, {
|
|
175
|
-
username: string;
|
|
176
175
|
provider_url: string;
|
|
176
|
+
username: string;
|
|
177
177
|
driver_status: string;
|
|
178
178
|
time_remaining_in_shift: number;
|
|
179
179
|
time_remaining_till_break: number;
|
|
@@ -230,13 +230,13 @@ declare const DriverLogin: z$1.ZodObject<{
|
|
|
230
230
|
username: z$1.ZodString;
|
|
231
231
|
password: z$1.ZodString;
|
|
232
232
|
}, "strip", z$1.ZodTypeAny, {
|
|
233
|
-
providerUrl: string;
|
|
234
233
|
username: string;
|
|
235
234
|
password: string;
|
|
236
|
-
}, {
|
|
237
235
|
providerUrl: string;
|
|
236
|
+
}, {
|
|
238
237
|
username: string;
|
|
239
238
|
password: string;
|
|
239
|
+
providerUrl: string;
|
|
240
240
|
}>;
|
|
241
241
|
type DriverLogin = z$1.infer<typeof DriverLogin>;
|
|
242
242
|
declare const DriverIdentity: z$1.ZodObject<{
|
|
@@ -329,13 +329,13 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
329
329
|
username: z$1.ZodString;
|
|
330
330
|
password: z$1.ZodString;
|
|
331
331
|
}, "strip", z$1.ZodTypeAny, {
|
|
332
|
-
providerUrl: string;
|
|
333
332
|
username: string;
|
|
334
333
|
password: string;
|
|
335
|
-
}, {
|
|
336
334
|
providerUrl: string;
|
|
335
|
+
}, {
|
|
337
336
|
username: string;
|
|
338
337
|
password: string;
|
|
338
|
+
providerUrl: string;
|
|
339
339
|
}>;
|
|
340
340
|
}, "strip", z$1.ZodTypeAny, {
|
|
341
341
|
driver: {
|
|
@@ -362,9 +362,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
362
362
|
status: string;
|
|
363
363
|
};
|
|
364
364
|
driverLogin: {
|
|
365
|
-
providerUrl: string;
|
|
366
365
|
username: string;
|
|
367
366
|
password: string;
|
|
367
|
+
providerUrl: string;
|
|
368
368
|
};
|
|
369
369
|
}, {
|
|
370
370
|
driver: {
|
|
@@ -391,9 +391,9 @@ declare const ConvexUpdateNested: z$1.ZodObject<{
|
|
|
391
391
|
status: string;
|
|
392
392
|
};
|
|
393
393
|
driverLogin: {
|
|
394
|
-
providerUrl: string;
|
|
395
394
|
username: string;
|
|
396
395
|
password: string;
|
|
396
|
+
providerUrl: string;
|
|
397
397
|
};
|
|
398
398
|
}>;
|
|
399
399
|
type ConvexUpdateNested = z$1.infer<typeof ConvexUpdateNested>;
|
|
@@ -413,17 +413,14 @@ declare enum ScrapeStatus {
|
|
|
413
413
|
declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
414
414
|
status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
|
|
415
415
|
username: z$1.ZodString;
|
|
416
|
-
|
|
417
|
-
password: z$1.ZodString;
|
|
416
|
+
provider_url: z$1.ZodString;
|
|
418
417
|
}, "strip", z$1.ZodTypeAny, {
|
|
419
|
-
|
|
418
|
+
provider_url: string;
|
|
420
419
|
username: string;
|
|
421
|
-
password: string;
|
|
422
420
|
status: ScrapeStatus;
|
|
423
421
|
}, {
|
|
424
|
-
|
|
422
|
+
provider_url: string;
|
|
425
423
|
username: string;
|
|
426
|
-
password: string;
|
|
427
424
|
status: ScrapeStatus;
|
|
428
425
|
}>;
|
|
429
426
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
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
|
});
|
|
@@ -143,8 +143,7 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
|
|
|
143
143
|
var UpdateScrapeStatusMessage = z3.object({
|
|
144
144
|
status: z3.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
|
|
145
145
|
username: z3.string().describe("The username of the driver whose status is being updated"),
|
|
146
|
-
|
|
147
|
-
password: z3.string().describe("The encrypted password of the driver whose status is being updated")
|
|
146
|
+
provider_url: z3.string().describe("The URL of the ELD provider")
|
|
148
147
|
}).describe("Schema for update status messages");
|
|
149
148
|
export {
|
|
150
149
|
ConvexUpdate,
|