@findatruck/shared-schemas 2.6.0 → 2.8.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 CHANGED
@@ -61,7 +61,8 @@ var NewLoginRequest = import_zod.z.object({
61
61
  username: import_zod.z.string().min(1),
62
62
  encryptedPassword: import_zod.z.string().min(1),
63
63
  ownerId: import_zod.z.string(),
64
- externalProviderAccountId: import_zod.z.string()
64
+ externalProviderAccountId: import_zod.z.string(),
65
+ convexUpdateUrl: import_zod.z.string().url().describe("The Convex function URL to send updates to")
65
66
  });
66
67
  var PublicUser = import_zod.z.object({
67
68
  id: import_zod.z.string(),
@@ -121,7 +122,8 @@ var ConvexUpdate = import_zod2.default.object({
121
122
  external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
122
123
  external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
123
124
  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")
125
+ }).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates"),
126
+ version: import_zod2.default.string().default("2.7.0").describe("The version of the Convex ELD API being used")
125
127
  }).describe("Schema for updating driver ELD status information");
126
128
  var BatchConvexUpdate = import_zod2.default.object({
127
129
  updates: import_zod2.default.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
@@ -6,18 +6,21 @@ declare const NewLoginRequest: z.ZodObject<{
6
6
  encryptedPassword: z.ZodString;
7
7
  ownerId: z.ZodString;
8
8
  externalProviderAccountId: z.ZodString;
9
+ convexUpdateUrl: z.ZodString;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  providerUrl: string;
11
12
  username: string;
12
13
  encryptedPassword: string;
13
14
  ownerId: string;
14
15
  externalProviderAccountId: string;
16
+ convexUpdateUrl: string;
15
17
  }, {
16
18
  providerUrl: string;
17
19
  username: string;
18
20
  encryptedPassword: string;
19
21
  ownerId: string;
20
22
  externalProviderAccountId: string;
23
+ convexUpdateUrl: string;
21
24
  }>;
22
25
  type NewLoginRequest = z.infer<typeof NewLoginRequest>;
23
26
  declare const NewLoginResponseSuccess: z.ZodObject<{
@@ -222,6 +225,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
222
225
  odometer?: number | undefined;
223
226
  mileage_since_last_update?: number | undefined;
224
227
  }>, "many">;
228
+ version: z$1.ZodDefault<z$1.ZodString>;
225
229
  }, "strip", z$1.ZodTypeAny, {
226
230
  username: string;
227
231
  provider_url: string;
@@ -245,6 +249,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
245
249
  odometer?: number | undefined;
246
250
  mileage_since_last_update?: number | undefined;
247
251
  }[];
252
+ version: string;
248
253
  }, {
249
254
  username: string;
250
255
  provider_url: string;
@@ -268,6 +273,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
268
273
  odometer?: number | undefined;
269
274
  mileage_since_last_update?: number | undefined;
270
275
  }[];
276
+ version?: string | undefined;
271
277
  }>;
272
278
  type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
273
279
  declare const BatchConvexUpdate: z$1.ZodObject<{
@@ -332,6 +338,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
332
338
  odometer?: number | undefined;
333
339
  mileage_since_last_update?: number | undefined;
334
340
  }>, "many">;
341
+ version: z$1.ZodDefault<z$1.ZodString>;
335
342
  }, "strip", z$1.ZodTypeAny, {
336
343
  username: string;
337
344
  provider_url: string;
@@ -355,6 +362,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
355
362
  odometer?: number | undefined;
356
363
  mileage_since_last_update?: number | undefined;
357
364
  }[];
365
+ version: string;
358
366
  }, {
359
367
  username: string;
360
368
  provider_url: string;
@@ -378,6 +386,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
378
386
  odometer?: number | undefined;
379
387
  mileage_since_last_update?: number | undefined;
380
388
  }[];
389
+ version?: string | undefined;
381
390
  }>, "many">;
382
391
  }, "strip", z$1.ZodTypeAny, {
383
392
  updates: {
@@ -403,6 +412,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
403
412
  odometer?: number | undefined;
404
413
  mileage_since_last_update?: number | undefined;
405
414
  }[];
415
+ version: string;
406
416
  }[];
407
417
  }, {
408
418
  updates: {
@@ -428,6 +438,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
428
438
  odometer?: number | undefined;
429
439
  mileage_since_last_update?: number | undefined;
430
440
  }[];
441
+ version?: string | undefined;
431
442
  }[];
432
443
  }>;
433
444
  type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
package/dist/browser.d.ts CHANGED
@@ -6,18 +6,21 @@ declare const NewLoginRequest: z.ZodObject<{
6
6
  encryptedPassword: z.ZodString;
7
7
  ownerId: z.ZodString;
8
8
  externalProviderAccountId: z.ZodString;
9
+ convexUpdateUrl: z.ZodString;
9
10
  }, "strip", z.ZodTypeAny, {
10
11
  providerUrl: string;
11
12
  username: string;
12
13
  encryptedPassword: string;
13
14
  ownerId: string;
14
15
  externalProviderAccountId: string;
16
+ convexUpdateUrl: string;
15
17
  }, {
16
18
  providerUrl: string;
17
19
  username: string;
18
20
  encryptedPassword: string;
19
21
  ownerId: string;
20
22
  externalProviderAccountId: string;
23
+ convexUpdateUrl: string;
21
24
  }>;
22
25
  type NewLoginRequest = z.infer<typeof NewLoginRequest>;
23
26
  declare const NewLoginResponseSuccess: z.ZodObject<{
@@ -222,6 +225,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
222
225
  odometer?: number | undefined;
223
226
  mileage_since_last_update?: number | undefined;
224
227
  }>, "many">;
228
+ version: z$1.ZodDefault<z$1.ZodString>;
225
229
  }, "strip", z$1.ZodTypeAny, {
226
230
  username: string;
227
231
  provider_url: string;
@@ -245,6 +249,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
245
249
  odometer?: number | undefined;
246
250
  mileage_since_last_update?: number | undefined;
247
251
  }[];
252
+ version: string;
248
253
  }, {
249
254
  username: string;
250
255
  provider_url: string;
@@ -268,6 +273,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
268
273
  odometer?: number | undefined;
269
274
  mileage_since_last_update?: number | undefined;
270
275
  }[];
276
+ version?: string | undefined;
271
277
  }>;
272
278
  type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
273
279
  declare const BatchConvexUpdate: z$1.ZodObject<{
@@ -332,6 +338,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
332
338
  odometer?: number | undefined;
333
339
  mileage_since_last_update?: number | undefined;
334
340
  }>, "many">;
341
+ version: z$1.ZodDefault<z$1.ZodString>;
335
342
  }, "strip", z$1.ZodTypeAny, {
336
343
  username: string;
337
344
  provider_url: string;
@@ -355,6 +362,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
355
362
  odometer?: number | undefined;
356
363
  mileage_since_last_update?: number | undefined;
357
364
  }[];
365
+ version: string;
358
366
  }, {
359
367
  username: string;
360
368
  provider_url: string;
@@ -378,6 +386,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
378
386
  odometer?: number | undefined;
379
387
  mileage_since_last_update?: number | undefined;
380
388
  }[];
389
+ version?: string | undefined;
381
390
  }>, "many">;
382
391
  }, "strip", z$1.ZodTypeAny, {
383
392
  updates: {
@@ -403,6 +412,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
403
412
  odometer?: number | undefined;
404
413
  mileage_since_last_update?: number | undefined;
405
414
  }[];
415
+ version: string;
406
416
  }[];
407
417
  }, {
408
418
  updates: {
@@ -428,6 +438,7 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
428
438
  odometer?: number | undefined;
429
439
  mileage_since_last_update?: number | undefined;
430
440
  }[];
441
+ version?: string | undefined;
431
442
  }[];
432
443
  }>;
433
444
  type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
package/dist/browser.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  UpdateScrapeStatusMessage,
10
10
  ValidatePasswordRequestSchema,
11
11
  ValidatePasswordResponseSchema
12
- } from "./chunk-GCTM3QSH.js";
12
+ } from "./chunk-3CDH5DV5.js";
13
13
  export {
14
14
  BatchConvexUpdate,
15
15
  ConvexUpdate,
@@ -16,7 +16,8 @@ var NewLoginRequest = z.object({
16
16
  username: z.string().min(1),
17
17
  encryptedPassword: z.string().min(1),
18
18
  ownerId: z.string(),
19
- externalProviderAccountId: z.string()
19
+ externalProviderAccountId: z.string(),
20
+ convexUpdateUrl: z.string().url().describe("The Convex function URL to send updates to")
20
21
  });
21
22
  var PublicUser = z.object({
22
23
  id: z.string(),
@@ -76,7 +77,8 @@ var ConvexUpdate = z2.object({
76
77
  external_provider_account_id: z2.string().describe("The provider account ID on backend"),
77
78
  external_driver_id: z2.string().describe("The driver ID on backend"),
78
79
  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")
80
+ }).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates"),
81
+ version: z2.string().default("2.7.0").describe("The version of the Convex ELD API being used")
80
82
  }).describe("Schema for updating driver ELD status information");
81
83
  var BatchConvexUpdate = z2.object({
82
84
  updates: z2.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
package/dist/index.cjs CHANGED
@@ -63,7 +63,8 @@ var NewLoginRequest = import_zod.z.object({
63
63
  username: import_zod.z.string().min(1),
64
64
  encryptedPassword: import_zod.z.string().min(1),
65
65
  ownerId: import_zod.z.string(),
66
- externalProviderAccountId: import_zod.z.string()
66
+ externalProviderAccountId: import_zod.z.string(),
67
+ convexUpdateUrl: import_zod.z.string().url().describe("The Convex function URL to send updates to")
67
68
  });
68
69
  var PublicUser = import_zod.z.object({
69
70
  id: import_zod.z.string(),
@@ -123,7 +124,8 @@ var ConvexUpdate = import_zod2.default.object({
123
124
  external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
124
125
  external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
125
126
  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")
127
+ }).describe("An object containing driver ELD status information")).describe("An array of driver ELD status updates"),
128
+ version: import_zod2.default.string().default("2.7.0").describe("The version of the Convex ELD API being used")
127
129
  }).describe("Schema for updating driver ELD status information");
128
130
  var BatchConvexUpdate = import_zod2.default.object({
129
131
  updates: import_zod2.default.array(ConvexUpdate).describe("An array of Convex ELD driver updates")
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import {
9
9
  UpdateScrapeStatusMessage,
10
10
  ValidatePasswordRequestSchema,
11
11
  ValidatePasswordResponseSchema
12
- } from "./chunk-GCTM3QSH.js";
12
+ } from "./chunk-3CDH5DV5.js";
13
13
 
14
14
  // src/security/transit-crypto.ts
15
15
  import { publicEncrypt, privateDecrypt, constants } from "crypto";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findatruck/shared-schemas",
3
- "version": "2.6.0",
3
+ "version": "2.8.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",