@findatruck/shared-schemas 2.17.0 → 2.19.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.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PublicProviderData, PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.cjs';
1
+ export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH, PatchDriverDriverResponse, PatchDriverDriverResponseSchema, PatchDriverRequest, PatchDriverRequestSchema, PatchDriverResponse, PatchDriverResponseSchema, PublicProviderData, PublicUserData, ScrapeStatus, SharedDriverResponse, SharedDriverResponseSchema, TruckTypeSchema, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.cjs';
2
2
  import z, { z as z$1 } from 'zod';
3
3
 
4
4
  interface CreateAnonymousDriverBodyData {
@@ -124,6 +124,10 @@ declare const ManualBatchEntrySchema: z$1.ZodObject<{
124
124
  speed_mph: z$1.ZodOptional<z$1.ZodNumber>;
125
125
  altitude_feet: z$1.ZodOptional<z$1.ZodNumber>;
126
126
  raw: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
127
+ driving_status: z$1.ZodOptional<z$1.ZodEnum<{
128
+ parked: "parked";
129
+ driving: "driving";
130
+ }>>;
127
131
  }, z$1.core.$strip>;
128
132
  declare const ManualBatchRequestSchema: z$1.ZodObject<{
129
133
  entries: z$1.ZodArray<z$1.ZodObject<{
@@ -137,6 +141,10 @@ declare const ManualBatchRequestSchema: z$1.ZodObject<{
137
141
  speed_mph: z$1.ZodOptional<z$1.ZodNumber>;
138
142
  altitude_feet: z$1.ZodOptional<z$1.ZodNumber>;
139
143
  raw: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
144
+ driving_status: z$1.ZodOptional<z$1.ZodEnum<{
145
+ parked: "parked";
146
+ driving: "driving";
147
+ }>>;
140
148
  }, z$1.core.$strip>>;
141
149
  }, z$1.core.$strip>;
142
150
  declare const ManualBatchTelemetrySchema: z$1.ZodObject<{
@@ -162,6 +170,10 @@ declare const ManualBatchTelemetrySchema: z$1.ZodObject<{
162
170
  eld: "eld";
163
171
  manual: "manual";
164
172
  }>;
173
+ driving_status: z$1.ZodNullable<z$1.ZodEnum<{
174
+ parked: "parked";
175
+ driving: "driving";
176
+ }>>;
165
177
  }, z$1.core.$strip>;
166
178
  declare const ManualBatchResponseSchema: z$1.ZodObject<{
167
179
  message: z$1.ZodString;
@@ -189,6 +201,10 @@ declare const ManualBatchResponseSchema: z$1.ZodObject<{
189
201
  eld: "eld";
190
202
  manual: "manual";
191
203
  }>;
204
+ driving_status: z$1.ZodNullable<z$1.ZodEnum<{
205
+ parked: "parked";
206
+ driving: "driving";
207
+ }>>;
192
208
  }, z$1.core.$strip>>;
193
209
  }, z$1.core.$strip>;
194
210
  type ManualBatchEntry = z$1.infer<typeof ManualBatchEntrySchema>;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PublicProviderData, PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.js';
1
+ export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH, PatchDriverDriverResponse, PatchDriverDriverResponseSchema, PatchDriverRequest, PatchDriverRequestSchema, PatchDriverResponse, PatchDriverResponseSchema, PublicProviderData, PublicUserData, ScrapeStatus, SharedDriverResponse, SharedDriverResponseSchema, TruckTypeSchema, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.js';
2
2
  import z, { z as z$1 } from 'zod';
3
3
 
4
4
  interface CreateAnonymousDriverBodyData {
@@ -124,6 +124,10 @@ declare const ManualBatchEntrySchema: z$1.ZodObject<{
124
124
  speed_mph: z$1.ZodOptional<z$1.ZodNumber>;
125
125
  altitude_feet: z$1.ZodOptional<z$1.ZodNumber>;
126
126
  raw: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
127
+ driving_status: z$1.ZodOptional<z$1.ZodEnum<{
128
+ parked: "parked";
129
+ driving: "driving";
130
+ }>>;
127
131
  }, z$1.core.$strip>;
128
132
  declare const ManualBatchRequestSchema: z$1.ZodObject<{
129
133
  entries: z$1.ZodArray<z$1.ZodObject<{
@@ -137,6 +141,10 @@ declare const ManualBatchRequestSchema: z$1.ZodObject<{
137
141
  speed_mph: z$1.ZodOptional<z$1.ZodNumber>;
138
142
  altitude_feet: z$1.ZodOptional<z$1.ZodNumber>;
139
143
  raw: z$1.ZodOptional<z$1.ZodRecord<z$1.ZodString, z$1.ZodUnknown>>;
144
+ driving_status: z$1.ZodOptional<z$1.ZodEnum<{
145
+ parked: "parked";
146
+ driving: "driving";
147
+ }>>;
140
148
  }, z$1.core.$strip>>;
141
149
  }, z$1.core.$strip>;
142
150
  declare const ManualBatchTelemetrySchema: z$1.ZodObject<{
@@ -162,6 +170,10 @@ declare const ManualBatchTelemetrySchema: z$1.ZodObject<{
162
170
  eld: "eld";
163
171
  manual: "manual";
164
172
  }>;
173
+ driving_status: z$1.ZodNullable<z$1.ZodEnum<{
174
+ parked: "parked";
175
+ driving: "driving";
176
+ }>>;
165
177
  }, z$1.core.$strip>;
166
178
  declare const ManualBatchResponseSchema: z$1.ZodObject<{
167
179
  message: z$1.ZodString;
@@ -189,6 +201,10 @@ declare const ManualBatchResponseSchema: z$1.ZodObject<{
189
201
  eld: "eld";
190
202
  manual: "manual";
191
203
  }>;
204
+ driving_status: z$1.ZodNullable<z$1.ZodEnum<{
205
+ parked: "parked";
206
+ driving: "driving";
207
+ }>>;
192
208
  }, z$1.core.$strip>>;
193
209
  }, z$1.core.$strip>;
194
210
  type ManualBatchEntry = z$1.infer<typeof ManualBatchEntrySchema>;
package/dist/index.js CHANGED
@@ -4,6 +4,8 @@ import {
4
4
  ConvexDriverSchema,
5
5
  ConvexUpdate,
6
6
  ConvexUpdateSchema,
7
+ DRIVER_NAME_FORBIDDEN_CHAR_PATTERN,
8
+ DriverNameSchema,
7
9
  NewLoginRequest,
8
10
  NewLoginRequestSchema,
9
11
  NewLoginResponse,
@@ -12,11 +14,18 @@ import {
12
14
  NewLoginResponseSchema,
13
15
  NewLoginResponseSuccess,
14
16
  NewLoginResponseSuccessSchema,
17
+ PATCH_DRIVER_NAME_MAX_LENGTH,
18
+ PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
19
+ PatchDriverDriverResponseSchema,
20
+ PatchDriverRequestSchema,
21
+ PatchDriverResponseSchema,
15
22
  ScrapeStatus,
23
+ SharedDriverResponseSchema,
24
+ TruckTypeSchema,
16
25
  UpdateScrapeStatusMessage,
17
26
  ValidatePasswordRequestSchema,
18
27
  ValidatePasswordResponseSchema
19
- } from "./chunk-S53TIE72.js";
28
+ } from "./chunk-P4S46OZI.js";
20
29
 
21
30
  // src/schemas/drivers/anonymous-driver.ts
22
31
  import z from "zod";
@@ -91,7 +100,8 @@ var ManualBatchEntrySchema = z5.object({
91
100
  heading: z5.number().min(0).max(360).optional().describe("Optional GPS heading in degrees (0-360)"),
92
101
  speed_mph: z5.number().min(0).optional().describe("Optional GPS speed in miles per hour"),
93
102
  altitude_feet: z5.number().optional().describe("Optional GPS altitude in feet"),
94
- raw: z5.record(z5.string(), z5.unknown()).optional().describe("Optional raw upstream JSON payload to archive alongside this entry")
103
+ raw: z5.record(z5.string(), z5.unknown()).optional().describe("Optional raw upstream JSON payload to archive alongside this entry"),
104
+ driving_status: z5.enum(["parked", "driving"]).optional().describe("Optional parked/driving status reported by the upstream system")
95
105
  }).describe("Single manual telemetry entry");
96
106
  var ManualBatchRequestSchema = z5.object({
97
107
  entries: z5.array(ManualBatchEntrySchema).min(1).max(1e3).describe("Array of manual telemetry entries (1-1000)")
@@ -115,7 +125,8 @@ var ManualBatchTelemetrySchema = z5.object({
115
125
  heading: z5.number().nullish(),
116
126
  speed_mph: z5.number().nullish(),
117
127
  altitude_feet: z5.number().nullish(),
118
- source: z5.enum(["eld", "manual"])
128
+ source: z5.enum(["eld", "manual"]),
129
+ driving_status: z5.enum(["parked", "driving"]).nullable()
119
130
  }).describe("Telemetry record returned from manual batch insertion");
120
131
  var ManualBatchResponseSchema = z5.object({
121
132
  message: z5.string().describe("Success message"),
@@ -318,6 +329,7 @@ export {
318
329
  ConvexUpdateSchema,
319
330
  CrawlPageSchema,
320
331
  CreateAnonymousDriverBodySchema,
332
+ DRIVER_NAME_FORBIDDEN_CHAR_PATTERN,
321
333
  DeleteAnonymousDriverParamsSchema,
322
334
  DeleteAnonymousDriverResponseSchema,
323
335
  DeleteProviderAccountRequestSchema,
@@ -326,6 +338,7 @@ export {
326
338
  DriverDailySummarySchema,
327
339
  DriverEnrichedSummariesRequestSchema,
328
340
  DriverEnrichedSummariesResponseSchema,
341
+ DriverNameSchema,
329
342
  DriverRankingSchema,
330
343
  DriverRankingsRequestSchema,
331
344
  DriverRankingsResponseSchema,
@@ -352,11 +365,18 @@ export {
352
365
  NewLoginResponseSuccess,
353
366
  NewLoginResponseSuccessSchema,
354
367
  NoneAuthDataSchema,
368
+ PATCH_DRIVER_NAME_MAX_LENGTH,
369
+ PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
370
+ PatchDriverDriverResponseSchema,
371
+ PatchDriverRequestSchema,
372
+ PatchDriverResponseSchema,
355
373
  ProviderAuthDataSchema,
356
374
  ScrapeStatus,
375
+ SharedDriverResponseSchema,
357
376
  StateHeatmapEntrySchema,
358
377
  StateHeatmapRequestSchema,
359
378
  StateHeatmapResponseSchema,
379
+ TruckTypeSchema,
360
380
  UpdateScrapeStatusMessage,
361
381
  ValidatePasswordRequestSchema,
362
382
  ValidatePasswordResponseSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findatruck/shared-schemas",
3
- "version": "2.17.0",
3
+ "version": "2.19.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",