@findatruck/shared-schemas 2.2.0 → 2.4.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 +8 -3
- package/dist/browser.d.cts +15 -0
- package/dist/browser.d.ts +15 -0
- package/dist/browser.js +1 -1
- package/dist/{chunk-5RIRHBSP.js → chunk-RDX5SWB6.js} +8 -3
- package/dist/index.cjs +8 -3
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/browser.cjs
CHANGED
|
@@ -116,7 +116,9 @@ var ConvexUpdate = import_zod2.default.object({
|
|
|
116
116
|
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
117
117
|
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
118
118
|
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
119
|
-
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend")
|
|
119
|
+
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
120
|
+
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
121
|
+
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
120
122
|
}).describe("Schema for updating driver ELD status information");
|
|
121
123
|
|
|
122
124
|
// src/schemas/providerAccounts/update-status.ts
|
|
@@ -133,9 +135,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
|
|
|
133
135
|
})(ScrapeStatus || {});
|
|
134
136
|
var UpdateScrapeStatusMessage = import_zod3.default.object({
|
|
135
137
|
status: import_zod3.default.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
|
|
136
|
-
|
|
138
|
+
correctPassword: import_zod3.default.boolean().optional().describe("Indicates if the provided password was correct, if applicable"),
|
|
139
|
+
externalProviderAccountId: import_zod3.default.string().describe("The external identifier for the provider account (convex ID or similar)"),
|
|
137
140
|
username: import_zod3.default.string().describe("The username of the provider account whose status is being updated"),
|
|
138
|
-
provider_url: import_zod3.default.string().describe("The URL of the ELD provider")
|
|
141
|
+
provider_url: import_zod3.default.string().describe("The URL of the ELD provider"),
|
|
142
|
+
driverCount: import_zod3.default.number().optional().describe("The number of drivers associated with the account, if applicable"),
|
|
143
|
+
providerSlug: import_zod3.default.string().optional().describe("The slug identifier for the provider")
|
|
139
144
|
}).describe("Schema for update status messages");
|
|
140
145
|
|
|
141
146
|
// src/schemas/providerAccounts/validate-password.ts
|
package/dist/browser.d.cts
CHANGED
|
@@ -180,6 +180,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
180
180
|
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
181
181
|
convex_provider_account_id: z$1.ZodString;
|
|
182
182
|
external_provider_account_id: z$1.ZodString;
|
|
183
|
+
external_driver_id: z$1.ZodString;
|
|
184
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
183
185
|
}, "strip", z$1.ZodTypeAny, {
|
|
184
186
|
username: string;
|
|
185
187
|
provider_url: string;
|
|
@@ -193,12 +195,14 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
193
195
|
driver_current_location_address: string;
|
|
194
196
|
convex_provider_account_id: string;
|
|
195
197
|
external_provider_account_id: string;
|
|
198
|
+
external_driver_id: string;
|
|
196
199
|
driver_name?: string | undefined;
|
|
197
200
|
vehicle_id?: string | undefined;
|
|
198
201
|
license_number?: string | undefined;
|
|
199
202
|
license_state?: string | undefined;
|
|
200
203
|
speed?: number | undefined;
|
|
201
204
|
odometer?: number | undefined;
|
|
205
|
+
mileage_since_last_update?: number | undefined;
|
|
202
206
|
}, {
|
|
203
207
|
username: string;
|
|
204
208
|
provider_url: string;
|
|
@@ -212,12 +216,14 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
212
216
|
driver_current_location_address: string;
|
|
213
217
|
convex_provider_account_id: string;
|
|
214
218
|
external_provider_account_id: string;
|
|
219
|
+
external_driver_id: string;
|
|
215
220
|
driver_name?: string | undefined;
|
|
216
221
|
vehicle_id?: string | undefined;
|
|
217
222
|
license_number?: string | undefined;
|
|
218
223
|
license_state?: string | undefined;
|
|
219
224
|
speed?: number | undefined;
|
|
220
225
|
odometer?: number | undefined;
|
|
226
|
+
mileage_since_last_update?: number | undefined;
|
|
221
227
|
}>;
|
|
222
228
|
type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
|
|
223
229
|
|
|
@@ -232,19 +238,28 @@ declare enum ScrapeStatus {
|
|
|
232
238
|
}
|
|
233
239
|
declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
234
240
|
status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
|
|
241
|
+
correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
235
242
|
externalProviderAccountId: z$1.ZodString;
|
|
236
243
|
username: z$1.ZodString;
|
|
237
244
|
provider_url: z$1.ZodString;
|
|
245
|
+
driverCount: z$1.ZodOptional<z$1.ZodNumber>;
|
|
246
|
+
providerSlug: z$1.ZodOptional<z$1.ZodString>;
|
|
238
247
|
}, "strip", z$1.ZodTypeAny, {
|
|
239
248
|
username: string;
|
|
240
249
|
externalProviderAccountId: string;
|
|
241
250
|
status: ScrapeStatus;
|
|
242
251
|
provider_url: string;
|
|
252
|
+
correctPassword?: boolean | undefined;
|
|
253
|
+
driverCount?: number | undefined;
|
|
254
|
+
providerSlug?: string | undefined;
|
|
243
255
|
}, {
|
|
244
256
|
username: string;
|
|
245
257
|
externalProviderAccountId: string;
|
|
246
258
|
status: ScrapeStatus;
|
|
247
259
|
provider_url: string;
|
|
260
|
+
correctPassword?: boolean | undefined;
|
|
261
|
+
driverCount?: number | undefined;
|
|
262
|
+
providerSlug?: string | undefined;
|
|
248
263
|
}>;
|
|
249
264
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
|
250
265
|
|
package/dist/browser.d.ts
CHANGED
|
@@ -180,6 +180,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
180
180
|
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
181
181
|
convex_provider_account_id: z$1.ZodString;
|
|
182
182
|
external_provider_account_id: z$1.ZodString;
|
|
183
|
+
external_driver_id: z$1.ZodString;
|
|
184
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
183
185
|
}, "strip", z$1.ZodTypeAny, {
|
|
184
186
|
username: string;
|
|
185
187
|
provider_url: string;
|
|
@@ -193,12 +195,14 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
193
195
|
driver_current_location_address: string;
|
|
194
196
|
convex_provider_account_id: string;
|
|
195
197
|
external_provider_account_id: string;
|
|
198
|
+
external_driver_id: string;
|
|
196
199
|
driver_name?: string | undefined;
|
|
197
200
|
vehicle_id?: string | undefined;
|
|
198
201
|
license_number?: string | undefined;
|
|
199
202
|
license_state?: string | undefined;
|
|
200
203
|
speed?: number | undefined;
|
|
201
204
|
odometer?: number | undefined;
|
|
205
|
+
mileage_since_last_update?: number | undefined;
|
|
202
206
|
}, {
|
|
203
207
|
username: string;
|
|
204
208
|
provider_url: string;
|
|
@@ -212,12 +216,14 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
212
216
|
driver_current_location_address: string;
|
|
213
217
|
convex_provider_account_id: string;
|
|
214
218
|
external_provider_account_id: string;
|
|
219
|
+
external_driver_id: string;
|
|
215
220
|
driver_name?: string | undefined;
|
|
216
221
|
vehicle_id?: string | undefined;
|
|
217
222
|
license_number?: string | undefined;
|
|
218
223
|
license_state?: string | undefined;
|
|
219
224
|
speed?: number | undefined;
|
|
220
225
|
odometer?: number | undefined;
|
|
226
|
+
mileage_since_last_update?: number | undefined;
|
|
221
227
|
}>;
|
|
222
228
|
type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
|
|
223
229
|
|
|
@@ -232,19 +238,28 @@ declare enum ScrapeStatus {
|
|
|
232
238
|
}
|
|
233
239
|
declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
234
240
|
status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
|
|
241
|
+
correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
235
242
|
externalProviderAccountId: z$1.ZodString;
|
|
236
243
|
username: z$1.ZodString;
|
|
237
244
|
provider_url: z$1.ZodString;
|
|
245
|
+
driverCount: z$1.ZodOptional<z$1.ZodNumber>;
|
|
246
|
+
providerSlug: z$1.ZodOptional<z$1.ZodString>;
|
|
238
247
|
}, "strip", z$1.ZodTypeAny, {
|
|
239
248
|
username: string;
|
|
240
249
|
externalProviderAccountId: string;
|
|
241
250
|
status: ScrapeStatus;
|
|
242
251
|
provider_url: string;
|
|
252
|
+
correctPassword?: boolean | undefined;
|
|
253
|
+
driverCount?: number | undefined;
|
|
254
|
+
providerSlug?: string | undefined;
|
|
243
255
|
}, {
|
|
244
256
|
username: string;
|
|
245
257
|
externalProviderAccountId: string;
|
|
246
258
|
status: ScrapeStatus;
|
|
247
259
|
provider_url: string;
|
|
260
|
+
correctPassword?: boolean | undefined;
|
|
261
|
+
driverCount?: number | undefined;
|
|
262
|
+
providerSlug?: string | undefined;
|
|
248
263
|
}>;
|
|
249
264
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
|
250
265
|
|
package/dist/browser.js
CHANGED
|
@@ -72,7 +72,9 @@ var ConvexUpdate = z2.object({
|
|
|
72
72
|
speed: z2.number().optional().describe("The vehicle's current speed in mph"),
|
|
73
73
|
odometer: z2.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
74
74
|
convex_provider_account_id: z2.string().describe("The Convex ELD provider account ID"),
|
|
75
|
-
external_provider_account_id: z2.string().describe("The provider account ID on backend")
|
|
75
|
+
external_provider_account_id: z2.string().describe("The provider account ID on backend"),
|
|
76
|
+
external_driver_id: z2.string().describe("The driver ID on backend"),
|
|
77
|
+
mileage_since_last_update: z2.number().optional().describe("Mileage since last update in miles")
|
|
76
78
|
}).describe("Schema for updating driver ELD status information");
|
|
77
79
|
|
|
78
80
|
// src/schemas/providerAccounts/update-status.ts
|
|
@@ -89,9 +91,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
|
|
|
89
91
|
})(ScrapeStatus || {});
|
|
90
92
|
var UpdateScrapeStatusMessage = z3.object({
|
|
91
93
|
status: z3.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
|
|
92
|
-
|
|
94
|
+
correctPassword: z3.boolean().optional().describe("Indicates if the provided password was correct, if applicable"),
|
|
95
|
+
externalProviderAccountId: z3.string().describe("The external identifier for the provider account (convex ID or similar)"),
|
|
93
96
|
username: z3.string().describe("The username of the provider account whose status is being updated"),
|
|
94
|
-
provider_url: z3.string().describe("The URL of the ELD provider")
|
|
97
|
+
provider_url: z3.string().describe("The URL of the ELD provider"),
|
|
98
|
+
driverCount: z3.number().optional().describe("The number of drivers associated with the account, if applicable"),
|
|
99
|
+
providerSlug: z3.string().optional().describe("The slug identifier for the provider")
|
|
95
100
|
}).describe("Schema for update status messages");
|
|
96
101
|
|
|
97
102
|
// src/schemas/providerAccounts/validate-password.ts
|
package/dist/index.cjs
CHANGED
|
@@ -118,7 +118,9 @@ var ConvexUpdate = import_zod2.default.object({
|
|
|
118
118
|
speed: import_zod2.default.number().optional().describe("The vehicle's current speed in mph"),
|
|
119
119
|
odometer: import_zod2.default.number().optional().describe("The vehicle's current odometer reading in miles"),
|
|
120
120
|
convex_provider_account_id: import_zod2.default.string().describe("The Convex ELD provider account ID"),
|
|
121
|
-
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend")
|
|
121
|
+
external_provider_account_id: import_zod2.default.string().describe("The provider account ID on backend"),
|
|
122
|
+
external_driver_id: import_zod2.default.string().describe("The driver ID on backend"),
|
|
123
|
+
mileage_since_last_update: import_zod2.default.number().optional().describe("Mileage since last update in miles")
|
|
122
124
|
}).describe("Schema for updating driver ELD status information");
|
|
123
125
|
|
|
124
126
|
// src/security/transit-crypto.ts
|
|
@@ -161,9 +163,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
|
|
|
161
163
|
})(ScrapeStatus || {});
|
|
162
164
|
var UpdateScrapeStatusMessage = import_zod3.default.object({
|
|
163
165
|
status: import_zod3.default.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
|
|
164
|
-
|
|
166
|
+
correctPassword: import_zod3.default.boolean().optional().describe("Indicates if the provided password was correct, if applicable"),
|
|
167
|
+
externalProviderAccountId: import_zod3.default.string().describe("The external identifier for the provider account (convex ID or similar)"),
|
|
165
168
|
username: import_zod3.default.string().describe("The username of the provider account whose status is being updated"),
|
|
166
|
-
provider_url: import_zod3.default.string().describe("The URL of the ELD provider")
|
|
169
|
+
provider_url: import_zod3.default.string().describe("The URL of the ELD provider"),
|
|
170
|
+
driverCount: import_zod3.default.number().optional().describe("The number of drivers associated with the account, if applicable"),
|
|
171
|
+
providerSlug: import_zod3.default.string().optional().describe("The slug identifier for the provider")
|
|
167
172
|
}).describe("Schema for update status messages");
|
|
168
173
|
|
|
169
174
|
// src/schemas/providerAccounts/validate-password.ts
|
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
UpdateScrapeStatusMessage,
|
|
9
9
|
ValidatePasswordRequestSchema,
|
|
10
10
|
ValidatePasswordResponseSchema
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-RDX5SWB6.js";
|
|
12
12
|
|
|
13
13
|
// src/security/transit-crypto.ts
|
|
14
14
|
import { publicEncrypt, privateDecrypt, constants } from "crypto";
|