@findatruck/shared-schemas 2.18.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/browser.cjs +14 -6
- package/dist/browser.d.cts +8 -3
- package/dist/browser.d.ts +8 -3
- package/dist/browser.js +5 -1
- package/dist/{chunk-BXCWZMK7.js → chunk-P4S46OZI.js} +12 -6
- package/dist/index.cjs +14 -6
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/browser.cjs
CHANGED
|
@@ -46,11 +46,13 @@ __export(browser_exports, {
|
|
|
46
46
|
NewLoginResponseSuccess: () => NewLoginResponseSuccess,
|
|
47
47
|
NewLoginResponseSuccessSchema: () => NewLoginResponseSuccessSchema,
|
|
48
48
|
PATCH_DRIVER_NAME_MAX_LENGTH: () => PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
49
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH: () => PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
49
50
|
PatchDriverDriverResponseSchema: () => PatchDriverDriverResponseSchema,
|
|
50
51
|
PatchDriverRequestSchema: () => PatchDriverRequestSchema,
|
|
51
52
|
PatchDriverResponseSchema: () => PatchDriverResponseSchema,
|
|
52
53
|
ScrapeStatus: () => ScrapeStatus,
|
|
53
54
|
SharedDriverResponseSchema: () => SharedDriverResponseSchema,
|
|
55
|
+
TruckTypeSchema: () => TruckTypeSchema,
|
|
54
56
|
UpdateScrapeStatusMessage: () => UpdateScrapeStatusMessage,
|
|
55
57
|
ValidatePasswordRequestSchema: () => ValidatePasswordRequestSchema,
|
|
56
58
|
ValidatePasswordResponseSchema: () => ValidatePasswordResponseSchema
|
|
@@ -171,6 +173,7 @@ var SharedDriverResponseSchema = import_zod3.default.object({
|
|
|
171
173
|
is_placeholder: import_zod3.default.boolean(),
|
|
172
174
|
created_at: import_zod3.default.union([import_zod3.default.string(), import_zod3.default.date()]),
|
|
173
175
|
updated_at: import_zod3.default.union([import_zod3.default.string(), import_zod3.default.date()]),
|
|
176
|
+
truck_type: import_zod3.default.string().nullable(),
|
|
174
177
|
last_location_latitude: import_zod3.default.number().nullable(),
|
|
175
178
|
last_location_longitude: import_zod3.default.number().nullable()
|
|
176
179
|
});
|
|
@@ -178,6 +181,7 @@ var SharedDriverResponseSchema = import_zod3.default.object({
|
|
|
178
181
|
// src/schemas/drivers/patch-driver.ts
|
|
179
182
|
var import_zod4 = __toESM(require("zod"), 1);
|
|
180
183
|
var PATCH_DRIVER_NAME_MAX_LENGTH = 255;
|
|
184
|
+
var PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH = 100;
|
|
181
185
|
var DRIVER_NAME_FORBIDDEN_RANGES = [
|
|
182
186
|
[0, 31],
|
|
183
187
|
// C0 controls (includes NUL, CR, LF, TAB)
|
|
@@ -208,19 +212,21 @@ var DriverNameSchema = import_zod4.default.string().trim().min(1).max(PATCH_DRIV
|
|
|
208
212
|
message: "name contains disallowed control, zero-width, or bidirectional-override characters"
|
|
209
213
|
}
|
|
210
214
|
);
|
|
215
|
+
var TruckTypeSchema = import_zod4.default.string().trim().min(1).max(PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH);
|
|
211
216
|
var PatchDriverRequestSchema = import_zod4.default.object({
|
|
212
217
|
driver_id: import_zod4.default.uuid(),
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
name: DriverNameSchema.optional(),
|
|
219
|
+
truck_type: TruckTypeSchema.nullable().optional()
|
|
220
|
+
}).refine(
|
|
221
|
+
(d) => d.name !== void 0 || d.truck_type !== void 0,
|
|
222
|
+
{ message: "At least one of name or truck_type must be provided" }
|
|
223
|
+
);
|
|
219
224
|
var PatchDriverDriverResponseSchema = SharedDriverResponseSchema.pick({
|
|
220
225
|
id: true,
|
|
221
226
|
name: true,
|
|
222
227
|
eld_external_id: true,
|
|
223
228
|
is_placeholder: true,
|
|
229
|
+
truck_type: true,
|
|
224
230
|
created_at: true,
|
|
225
231
|
updated_at: true
|
|
226
232
|
}).strict();
|
|
@@ -281,11 +287,13 @@ var ValidatePasswordResponseSchema = import_zod6.z.object({
|
|
|
281
287
|
NewLoginResponseSuccess,
|
|
282
288
|
NewLoginResponseSuccessSchema,
|
|
283
289
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
290
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
284
291
|
PatchDriverDriverResponseSchema,
|
|
285
292
|
PatchDriverRequestSchema,
|
|
286
293
|
PatchDriverResponseSchema,
|
|
287
294
|
ScrapeStatus,
|
|
288
295
|
SharedDriverResponseSchema,
|
|
296
|
+
TruckTypeSchema,
|
|
289
297
|
UpdateScrapeStatusMessage,
|
|
290
298
|
ValidatePasswordRequestSchema,
|
|
291
299
|
ValidatePasswordResponseSchema
|
package/dist/browser.d.cts
CHANGED
|
@@ -314,18 +314,21 @@ declare const SharedDriverResponseSchema: z$1.ZodObject<{
|
|
|
314
314
|
is_placeholder: z$1.ZodBoolean;
|
|
315
315
|
created_at: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
316
316
|
updated_at: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
317
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
317
318
|
last_location_latitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
318
319
|
last_location_longitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
319
320
|
}, z$1.core.$strip>;
|
|
320
321
|
type SharedDriverResponse = z$1.infer<typeof SharedDriverResponseSchema>;
|
|
321
322
|
|
|
322
323
|
declare const PATCH_DRIVER_NAME_MAX_LENGTH = 255;
|
|
324
|
+
declare const PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH = 100;
|
|
323
325
|
declare const DRIVER_NAME_FORBIDDEN_CHAR_PATTERN: RegExp;
|
|
324
326
|
declare const DriverNameSchema: z$1.ZodString;
|
|
327
|
+
declare const TruckTypeSchema: z$1.ZodString;
|
|
325
328
|
declare const PatchDriverRequestSchema: z$1.ZodObject<{
|
|
326
329
|
driver_id: z$1.ZodUUID;
|
|
327
|
-
|
|
328
|
-
|
|
330
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
331
|
+
truck_type: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
329
332
|
}, z$1.core.$strip>;
|
|
330
333
|
/**
|
|
331
334
|
* Slim driver shape returned from PATCH /drivers/:id.
|
|
@@ -356,6 +359,7 @@ declare const PatchDriverDriverResponseSchema: z$1.ZodObject<{
|
|
|
356
359
|
name: z$1.ZodString;
|
|
357
360
|
eld_external_id: z$1.ZodString;
|
|
358
361
|
is_placeholder: z$1.ZodBoolean;
|
|
362
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
359
363
|
}, z$1.core.$strict>;
|
|
360
364
|
declare const PatchDriverResponseSchema: z$1.ZodObject<{
|
|
361
365
|
message: z$1.ZodString;
|
|
@@ -366,6 +370,7 @@ declare const PatchDriverResponseSchema: z$1.ZodObject<{
|
|
|
366
370
|
name: z$1.ZodString;
|
|
367
371
|
eld_external_id: z$1.ZodString;
|
|
368
372
|
is_placeholder: z$1.ZodBoolean;
|
|
373
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
369
374
|
}, z$1.core.$strict>;
|
|
370
375
|
}, z$1.core.$strip>;
|
|
371
376
|
type PatchDriverRequest = z$1.infer<typeof PatchDriverRequestSchema>;
|
|
@@ -413,4 +418,4 @@ declare const ValidatePasswordResponseSchema: z.ZodObject<{
|
|
|
413
418
|
type ValidatePasswordRequest = ValidatePasswordRequestData;
|
|
414
419
|
type ValidatePasswordResponse = ValidatePasswordResponseData;
|
|
415
420
|
|
|
416
|
-
export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, type PatchDriverDriverResponse, PatchDriverDriverResponseSchema, type PatchDriverRequest, PatchDriverRequestSchema, type PatchDriverResponse, PatchDriverResponseSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, type SharedDriverResponse, SharedDriverResponseSchema, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };
|
|
421
|
+
export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH, type PatchDriverDriverResponse, PatchDriverDriverResponseSchema, type PatchDriverRequest, PatchDriverRequestSchema, type PatchDriverResponse, PatchDriverResponseSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, type SharedDriverResponse, SharedDriverResponseSchema, TruckTypeSchema, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };
|
package/dist/browser.d.ts
CHANGED
|
@@ -314,18 +314,21 @@ declare const SharedDriverResponseSchema: z$1.ZodObject<{
|
|
|
314
314
|
is_placeholder: z$1.ZodBoolean;
|
|
315
315
|
created_at: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
316
316
|
updated_at: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
317
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
317
318
|
last_location_latitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
318
319
|
last_location_longitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
319
320
|
}, z$1.core.$strip>;
|
|
320
321
|
type SharedDriverResponse = z$1.infer<typeof SharedDriverResponseSchema>;
|
|
321
322
|
|
|
322
323
|
declare const PATCH_DRIVER_NAME_MAX_LENGTH = 255;
|
|
324
|
+
declare const PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH = 100;
|
|
323
325
|
declare const DRIVER_NAME_FORBIDDEN_CHAR_PATTERN: RegExp;
|
|
324
326
|
declare const DriverNameSchema: z$1.ZodString;
|
|
327
|
+
declare const TruckTypeSchema: z$1.ZodString;
|
|
325
328
|
declare const PatchDriverRequestSchema: z$1.ZodObject<{
|
|
326
329
|
driver_id: z$1.ZodUUID;
|
|
327
|
-
|
|
328
|
-
|
|
330
|
+
name: z$1.ZodOptional<z$1.ZodString>;
|
|
331
|
+
truck_type: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodString>>;
|
|
329
332
|
}, z$1.core.$strip>;
|
|
330
333
|
/**
|
|
331
334
|
* Slim driver shape returned from PATCH /drivers/:id.
|
|
@@ -356,6 +359,7 @@ declare const PatchDriverDriverResponseSchema: z$1.ZodObject<{
|
|
|
356
359
|
name: z$1.ZodString;
|
|
357
360
|
eld_external_id: z$1.ZodString;
|
|
358
361
|
is_placeholder: z$1.ZodBoolean;
|
|
362
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
359
363
|
}, z$1.core.$strict>;
|
|
360
364
|
declare const PatchDriverResponseSchema: z$1.ZodObject<{
|
|
361
365
|
message: z$1.ZodString;
|
|
@@ -366,6 +370,7 @@ declare const PatchDriverResponseSchema: z$1.ZodObject<{
|
|
|
366
370
|
name: z$1.ZodString;
|
|
367
371
|
eld_external_id: z$1.ZodString;
|
|
368
372
|
is_placeholder: z$1.ZodBoolean;
|
|
373
|
+
truck_type: z$1.ZodNullable<z$1.ZodString>;
|
|
369
374
|
}, z$1.core.$strict>;
|
|
370
375
|
}, z$1.core.$strip>;
|
|
371
376
|
type PatchDriverRequest = z$1.infer<typeof PatchDriverRequestSchema>;
|
|
@@ -413,4 +418,4 @@ declare const ValidatePasswordResponseSchema: z.ZodObject<{
|
|
|
413
418
|
type ValidatePasswordRequest = ValidatePasswordRequestData;
|
|
414
419
|
type ValidatePasswordResponse = ValidatePasswordResponseData;
|
|
415
420
|
|
|
416
|
-
export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, type PatchDriverDriverResponse, PatchDriverDriverResponseSchema, type PatchDriverRequest, PatchDriverRequestSchema, type PatchDriverResponse, PatchDriverResponseSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, type SharedDriverResponse, SharedDriverResponseSchema, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };
|
|
421
|
+
export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, DRIVER_NAME_FORBIDDEN_CHAR_PATTERN, DriverNameSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PATCH_DRIVER_NAME_MAX_LENGTH, PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH, type PatchDriverDriverResponse, PatchDriverDriverResponseSchema, type PatchDriverRequest, PatchDriverRequestSchema, type PatchDriverResponse, PatchDriverResponseSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, type SharedDriverResponse, SharedDriverResponseSchema, TruckTypeSchema, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };
|
package/dist/browser.js
CHANGED
|
@@ -15,15 +15,17 @@ import {
|
|
|
15
15
|
NewLoginResponseSuccess,
|
|
16
16
|
NewLoginResponseSuccessSchema,
|
|
17
17
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
18
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
18
19
|
PatchDriverDriverResponseSchema,
|
|
19
20
|
PatchDriverRequestSchema,
|
|
20
21
|
PatchDriverResponseSchema,
|
|
21
22
|
ScrapeStatus,
|
|
22
23
|
SharedDriverResponseSchema,
|
|
24
|
+
TruckTypeSchema,
|
|
23
25
|
UpdateScrapeStatusMessage,
|
|
24
26
|
ValidatePasswordRequestSchema,
|
|
25
27
|
ValidatePasswordResponseSchema
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-P4S46OZI.js";
|
|
27
29
|
export {
|
|
28
30
|
BatchConvexUpdate,
|
|
29
31
|
BatchConvexUpdateSchema,
|
|
@@ -41,11 +43,13 @@ export {
|
|
|
41
43
|
NewLoginResponseSuccess,
|
|
42
44
|
NewLoginResponseSuccessSchema,
|
|
43
45
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
46
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
44
47
|
PatchDriverDriverResponseSchema,
|
|
45
48
|
PatchDriverRequestSchema,
|
|
46
49
|
PatchDriverResponseSchema,
|
|
47
50
|
ScrapeStatus,
|
|
48
51
|
SharedDriverResponseSchema,
|
|
52
|
+
TruckTypeSchema,
|
|
49
53
|
UpdateScrapeStatusMessage,
|
|
50
54
|
ValidatePasswordRequestSchema,
|
|
51
55
|
ValidatePasswordResponseSchema
|
|
@@ -112,6 +112,7 @@ var SharedDriverResponseSchema = z3.object({
|
|
|
112
112
|
is_placeholder: z3.boolean(),
|
|
113
113
|
created_at: z3.union([z3.string(), z3.date()]),
|
|
114
114
|
updated_at: z3.union([z3.string(), z3.date()]),
|
|
115
|
+
truck_type: z3.string().nullable(),
|
|
115
116
|
last_location_latitude: z3.number().nullable(),
|
|
116
117
|
last_location_longitude: z3.number().nullable()
|
|
117
118
|
});
|
|
@@ -119,6 +120,7 @@ var SharedDriverResponseSchema = z3.object({
|
|
|
119
120
|
// src/schemas/drivers/patch-driver.ts
|
|
120
121
|
import z4 from "zod";
|
|
121
122
|
var PATCH_DRIVER_NAME_MAX_LENGTH = 255;
|
|
123
|
+
var PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH = 100;
|
|
122
124
|
var DRIVER_NAME_FORBIDDEN_RANGES = [
|
|
123
125
|
[0, 31],
|
|
124
126
|
// C0 controls (includes NUL, CR, LF, TAB)
|
|
@@ -149,19 +151,21 @@ var DriverNameSchema = z4.string().trim().min(1).max(PATCH_DRIVER_NAME_MAX_LENGT
|
|
|
149
151
|
message: "name contains disallowed control, zero-width, or bidirectional-override characters"
|
|
150
152
|
}
|
|
151
153
|
);
|
|
154
|
+
var TruckTypeSchema = z4.string().trim().min(1).max(PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH);
|
|
152
155
|
var PatchDriverRequestSchema = z4.object({
|
|
153
156
|
driver_id: z4.uuid(),
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
157
|
+
name: DriverNameSchema.optional(),
|
|
158
|
+
truck_type: TruckTypeSchema.nullable().optional()
|
|
159
|
+
}).refine(
|
|
160
|
+
(d) => d.name !== void 0 || d.truck_type !== void 0,
|
|
161
|
+
{ message: "At least one of name or truck_type must be provided" }
|
|
162
|
+
);
|
|
160
163
|
var PatchDriverDriverResponseSchema = SharedDriverResponseSchema.pick({
|
|
161
164
|
id: true,
|
|
162
165
|
name: true,
|
|
163
166
|
eld_external_id: true,
|
|
164
167
|
is_placeholder: true,
|
|
168
|
+
truck_type: true,
|
|
165
169
|
created_at: true,
|
|
166
170
|
updated_at: true
|
|
167
171
|
}).strict();
|
|
@@ -221,8 +225,10 @@ export {
|
|
|
221
225
|
BatchConvexUpdate,
|
|
222
226
|
SharedDriverResponseSchema,
|
|
223
227
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
228
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
224
229
|
DRIVER_NAME_FORBIDDEN_CHAR_PATTERN,
|
|
225
230
|
DriverNameSchema,
|
|
231
|
+
TruckTypeSchema,
|
|
226
232
|
PatchDriverRequestSchema,
|
|
227
233
|
PatchDriverDriverResponseSchema,
|
|
228
234
|
PatchDriverResponseSchema,
|
package/dist/index.cjs
CHANGED
|
@@ -84,6 +84,7 @@ __export(index_exports, {
|
|
|
84
84
|
NewLoginResponseSuccessSchema: () => NewLoginResponseSuccessSchema,
|
|
85
85
|
NoneAuthDataSchema: () => NoneAuthDataSchema,
|
|
86
86
|
PATCH_DRIVER_NAME_MAX_LENGTH: () => PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
87
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH: () => PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
87
88
|
PatchDriverDriverResponseSchema: () => PatchDriverDriverResponseSchema,
|
|
88
89
|
PatchDriverRequestSchema: () => PatchDriverRequestSchema,
|
|
89
90
|
PatchDriverResponseSchema: () => PatchDriverResponseSchema,
|
|
@@ -93,6 +94,7 @@ __export(index_exports, {
|
|
|
93
94
|
StateHeatmapEntrySchema: () => StateHeatmapEntrySchema,
|
|
94
95
|
StateHeatmapRequestSchema: () => StateHeatmapRequestSchema,
|
|
95
96
|
StateHeatmapResponseSchema: () => StateHeatmapResponseSchema,
|
|
97
|
+
TruckTypeSchema: () => TruckTypeSchema,
|
|
96
98
|
UpdateScrapeStatusMessage: () => UpdateScrapeStatusMessage,
|
|
97
99
|
ValidatePasswordRequestSchema: () => ValidatePasswordRequestSchema,
|
|
98
100
|
ValidatePasswordResponseSchema: () => ValidatePasswordResponseSchema,
|
|
@@ -236,6 +238,7 @@ var SharedDriverResponseSchema = import_zod4.default.object({
|
|
|
236
238
|
is_placeholder: import_zod4.default.boolean(),
|
|
237
239
|
created_at: import_zod4.default.union([import_zod4.default.string(), import_zod4.default.date()]),
|
|
238
240
|
updated_at: import_zod4.default.union([import_zod4.default.string(), import_zod4.default.date()]),
|
|
241
|
+
truck_type: import_zod4.default.string().nullable(),
|
|
239
242
|
last_location_latitude: import_zod4.default.number().nullable(),
|
|
240
243
|
last_location_longitude: import_zod4.default.number().nullable()
|
|
241
244
|
});
|
|
@@ -243,6 +246,7 @@ var SharedDriverResponseSchema = import_zod4.default.object({
|
|
|
243
246
|
// src/schemas/drivers/patch-driver.ts
|
|
244
247
|
var import_zod5 = __toESM(require("zod"), 1);
|
|
245
248
|
var PATCH_DRIVER_NAME_MAX_LENGTH = 255;
|
|
249
|
+
var PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH = 100;
|
|
246
250
|
var DRIVER_NAME_FORBIDDEN_RANGES = [
|
|
247
251
|
[0, 31],
|
|
248
252
|
// C0 controls (includes NUL, CR, LF, TAB)
|
|
@@ -273,19 +277,21 @@ var DriverNameSchema = import_zod5.default.string().trim().min(1).max(PATCH_DRIV
|
|
|
273
277
|
message: "name contains disallowed control, zero-width, or bidirectional-override characters"
|
|
274
278
|
}
|
|
275
279
|
);
|
|
280
|
+
var TruckTypeSchema = import_zod5.default.string().trim().min(1).max(PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH);
|
|
276
281
|
var PatchDriverRequestSchema = import_zod5.default.object({
|
|
277
282
|
driver_id: import_zod5.default.uuid(),
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
283
|
+
name: DriverNameSchema.optional(),
|
|
284
|
+
truck_type: TruckTypeSchema.nullable().optional()
|
|
285
|
+
}).refine(
|
|
286
|
+
(d) => d.name !== void 0 || d.truck_type !== void 0,
|
|
287
|
+
{ message: "At least one of name or truck_type must be provided" }
|
|
288
|
+
);
|
|
284
289
|
var PatchDriverDriverResponseSchema = SharedDriverResponseSchema.pick({
|
|
285
290
|
id: true,
|
|
286
291
|
name: true,
|
|
287
292
|
eld_external_id: true,
|
|
288
293
|
is_placeholder: true,
|
|
294
|
+
truck_type: true,
|
|
289
295
|
created_at: true,
|
|
290
296
|
updated_at: true
|
|
291
297
|
}).strict();
|
|
@@ -649,6 +655,7 @@ var BrowserCrawlResponseSchema = import_zod15.z.discriminatedUnion("success", [
|
|
|
649
655
|
NewLoginResponseSuccessSchema,
|
|
650
656
|
NoneAuthDataSchema,
|
|
651
657
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
658
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
652
659
|
PatchDriverDriverResponseSchema,
|
|
653
660
|
PatchDriverRequestSchema,
|
|
654
661
|
PatchDriverResponseSchema,
|
|
@@ -658,6 +665,7 @@ var BrowserCrawlResponseSchema = import_zod15.z.discriminatedUnion("success", [
|
|
|
658
665
|
StateHeatmapEntrySchema,
|
|
659
666
|
StateHeatmapRequestSchema,
|
|
660
667
|
StateHeatmapResponseSchema,
|
|
668
|
+
TruckTypeSchema,
|
|
661
669
|
UpdateScrapeStatusMessage,
|
|
662
670
|
ValidatePasswordRequestSchema,
|
|
663
671
|
ValidatePasswordResponseSchema,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
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 {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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';
|
|
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 {
|
package/dist/index.js
CHANGED
|
@@ -15,15 +15,17 @@ import {
|
|
|
15
15
|
NewLoginResponseSuccess,
|
|
16
16
|
NewLoginResponseSuccessSchema,
|
|
17
17
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
18
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
18
19
|
PatchDriverDriverResponseSchema,
|
|
19
20
|
PatchDriverRequestSchema,
|
|
20
21
|
PatchDriverResponseSchema,
|
|
21
22
|
ScrapeStatus,
|
|
22
23
|
SharedDriverResponseSchema,
|
|
24
|
+
TruckTypeSchema,
|
|
23
25
|
UpdateScrapeStatusMessage,
|
|
24
26
|
ValidatePasswordRequestSchema,
|
|
25
27
|
ValidatePasswordResponseSchema
|
|
26
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-P4S46OZI.js";
|
|
27
29
|
|
|
28
30
|
// src/schemas/drivers/anonymous-driver.ts
|
|
29
31
|
import z from "zod";
|
|
@@ -364,6 +366,7 @@ export {
|
|
|
364
366
|
NewLoginResponseSuccessSchema,
|
|
365
367
|
NoneAuthDataSchema,
|
|
366
368
|
PATCH_DRIVER_NAME_MAX_LENGTH,
|
|
369
|
+
PATCH_DRIVER_TRUCK_TYPE_MAX_LENGTH,
|
|
367
370
|
PatchDriverDriverResponseSchema,
|
|
368
371
|
PatchDriverRequestSchema,
|
|
369
372
|
PatchDriverResponseSchema,
|
|
@@ -373,6 +376,7 @@ export {
|
|
|
373
376
|
StateHeatmapEntrySchema,
|
|
374
377
|
StateHeatmapRequestSchema,
|
|
375
378
|
StateHeatmapResponseSchema,
|
|
379
|
+
TruckTypeSchema,
|
|
376
380
|
UpdateScrapeStatusMessage,
|
|
377
381
|
ValidatePasswordRequestSchema,
|
|
378
382
|
ValidatePasswordResponseSchema,
|