@findatruck/shared-schemas 2.17.0 → 2.18.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 +107 -16
- package/dist/browser.d.cts +82 -1
- package/dist/browser.d.ts +82 -1
- package/dist/browser.js +15 -1
- package/dist/{chunk-S53TIE72.js → chunk-BXCWZMK7.js} +100 -16
- package/dist/index.cjs +283 -190
- package/dist/index.d.cts +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +19 -3
- package/package.json +1 -1
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, PatchDriverDriverResponse, PatchDriverDriverResponseSchema, PatchDriverRequest, PatchDriverRequestSchema, PatchDriverResponse, PatchDriverResponseSchema, PublicProviderData, PublicUserData, ScrapeStatus, SharedDriverResponse, SharedDriverResponseSchema, 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, PatchDriverDriverResponse, PatchDriverDriverResponseSchema, PatchDriverRequest, PatchDriverRequestSchema, PatchDriverResponse, PatchDriverResponseSchema, PublicProviderData, PublicUserData, ScrapeStatus, SharedDriverResponse, SharedDriverResponseSchema, 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,16 @@ import {
|
|
|
12
14
|
NewLoginResponseSchema,
|
|
13
15
|
NewLoginResponseSuccess,
|
|
14
16
|
NewLoginResponseSuccessSchema,
|
|
17
|
+
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
18
|
+
PatchDriverDriverResponseSchema,
|
|
19
|
+
PatchDriverRequestSchema,
|
|
20
|
+
PatchDriverResponseSchema,
|
|
15
21
|
ScrapeStatus,
|
|
22
|
+
SharedDriverResponseSchema,
|
|
16
23
|
UpdateScrapeStatusMessage,
|
|
17
24
|
ValidatePasswordRequestSchema,
|
|
18
25
|
ValidatePasswordResponseSchema
|
|
19
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-BXCWZMK7.js";
|
|
20
27
|
|
|
21
28
|
// src/schemas/drivers/anonymous-driver.ts
|
|
22
29
|
import z from "zod";
|
|
@@ -91,7 +98,8 @@ var ManualBatchEntrySchema = z5.object({
|
|
|
91
98
|
heading: z5.number().min(0).max(360).optional().describe("Optional GPS heading in degrees (0-360)"),
|
|
92
99
|
speed_mph: z5.number().min(0).optional().describe("Optional GPS speed in miles per hour"),
|
|
93
100
|
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")
|
|
101
|
+
raw: z5.record(z5.string(), z5.unknown()).optional().describe("Optional raw upstream JSON payload to archive alongside this entry"),
|
|
102
|
+
driving_status: z5.enum(["parked", "driving"]).optional().describe("Optional parked/driving status reported by the upstream system")
|
|
95
103
|
}).describe("Single manual telemetry entry");
|
|
96
104
|
var ManualBatchRequestSchema = z5.object({
|
|
97
105
|
entries: z5.array(ManualBatchEntrySchema).min(1).max(1e3).describe("Array of manual telemetry entries (1-1000)")
|
|
@@ -115,7 +123,8 @@ var ManualBatchTelemetrySchema = z5.object({
|
|
|
115
123
|
heading: z5.number().nullish(),
|
|
116
124
|
speed_mph: z5.number().nullish(),
|
|
117
125
|
altitude_feet: z5.number().nullish(),
|
|
118
|
-
source: z5.enum(["eld", "manual"])
|
|
126
|
+
source: z5.enum(["eld", "manual"]),
|
|
127
|
+
driving_status: z5.enum(["parked", "driving"]).nullable()
|
|
119
128
|
}).describe("Telemetry record returned from manual batch insertion");
|
|
120
129
|
var ManualBatchResponseSchema = z5.object({
|
|
121
130
|
message: z5.string().describe("Success message"),
|
|
@@ -318,6 +327,7 @@ export {
|
|
|
318
327
|
ConvexUpdateSchema,
|
|
319
328
|
CrawlPageSchema,
|
|
320
329
|
CreateAnonymousDriverBodySchema,
|
|
330
|
+
DRIVER_NAME_FORBIDDEN_CHAR_PATTERN,
|
|
321
331
|
DeleteAnonymousDriverParamsSchema,
|
|
322
332
|
DeleteAnonymousDriverResponseSchema,
|
|
323
333
|
DeleteProviderAccountRequestSchema,
|
|
@@ -326,6 +336,7 @@ export {
|
|
|
326
336
|
DriverDailySummarySchema,
|
|
327
337
|
DriverEnrichedSummariesRequestSchema,
|
|
328
338
|
DriverEnrichedSummariesResponseSchema,
|
|
339
|
+
DriverNameSchema,
|
|
329
340
|
DriverRankingSchema,
|
|
330
341
|
DriverRankingsRequestSchema,
|
|
331
342
|
DriverRankingsResponseSchema,
|
|
@@ -352,8 +363,13 @@ export {
|
|
|
352
363
|
NewLoginResponseSuccess,
|
|
353
364
|
NewLoginResponseSuccessSchema,
|
|
354
365
|
NoneAuthDataSchema,
|
|
366
|
+
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
367
|
+
PatchDriverDriverResponseSchema,
|
|
368
|
+
PatchDriverRequestSchema,
|
|
369
|
+
PatchDriverResponseSchema,
|
|
355
370
|
ProviderAuthDataSchema,
|
|
356
371
|
ScrapeStatus,
|
|
372
|
+
SharedDriverResponseSchema,
|
|
357
373
|
StateHeatmapEntrySchema,
|
|
358
374
|
StateHeatmapRequestSchema,
|
|
359
375
|
StateHeatmapResponseSchema,
|