@findatruck/shared-schemas 2.3.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 CHANGED
@@ -117,7 +117,8 @@ var ConvexUpdate = import_zod2.default.object({
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
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")
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")
121
122
  }).describe("Schema for updating driver ELD status information");
122
123
 
123
124
  // src/schemas/providerAccounts/update-status.ts
@@ -134,9 +135,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
134
135
  })(ScrapeStatus || {});
135
136
  var UpdateScrapeStatusMessage = import_zod3.default.object({
136
137
  status: import_zod3.default.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
137
- externalProviderAccountId: import_zod3.default.string().describe("The external identifier for the provider account"),
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)"),
138
140
  username: import_zod3.default.string().describe("The username of the provider account whose status is being updated"),
139
- 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")
140
144
  }).describe("Schema for update status messages");
141
145
 
142
146
  // src/schemas/providerAccounts/validate-password.ts
@@ -181,6 +181,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
181
181
  convex_provider_account_id: z$1.ZodString;
182
182
  external_provider_account_id: z$1.ZodString;
183
183
  external_driver_id: z$1.ZodString;
184
+ mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
184
185
  }, "strip", z$1.ZodTypeAny, {
185
186
  username: string;
186
187
  provider_url: string;
@@ -201,6 +202,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
201
202
  license_state?: string | undefined;
202
203
  speed?: number | undefined;
203
204
  odometer?: number | undefined;
205
+ mileage_since_last_update?: number | undefined;
204
206
  }, {
205
207
  username: string;
206
208
  provider_url: string;
@@ -221,6 +223,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
221
223
  license_state?: string | undefined;
222
224
  speed?: number | undefined;
223
225
  odometer?: number | undefined;
226
+ mileage_since_last_update?: number | undefined;
224
227
  }>;
225
228
  type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
226
229
 
@@ -235,19 +238,28 @@ declare enum ScrapeStatus {
235
238
  }
236
239
  declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
237
240
  status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
241
+ correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
238
242
  externalProviderAccountId: z$1.ZodString;
239
243
  username: z$1.ZodString;
240
244
  provider_url: z$1.ZodString;
245
+ driverCount: z$1.ZodOptional<z$1.ZodNumber>;
246
+ providerSlug: z$1.ZodOptional<z$1.ZodString>;
241
247
  }, "strip", z$1.ZodTypeAny, {
242
248
  username: string;
243
249
  externalProviderAccountId: string;
244
250
  status: ScrapeStatus;
245
251
  provider_url: string;
252
+ correctPassword?: boolean | undefined;
253
+ driverCount?: number | undefined;
254
+ providerSlug?: string | undefined;
246
255
  }, {
247
256
  username: string;
248
257
  externalProviderAccountId: string;
249
258
  status: ScrapeStatus;
250
259
  provider_url: string;
260
+ correctPassword?: boolean | undefined;
261
+ driverCount?: number | undefined;
262
+ providerSlug?: string | undefined;
251
263
  }>;
252
264
  type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
253
265
 
package/dist/browser.d.ts CHANGED
@@ -181,6 +181,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
181
181
  convex_provider_account_id: z$1.ZodString;
182
182
  external_provider_account_id: z$1.ZodString;
183
183
  external_driver_id: z$1.ZodString;
184
+ mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
184
185
  }, "strip", z$1.ZodTypeAny, {
185
186
  username: string;
186
187
  provider_url: string;
@@ -201,6 +202,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
201
202
  license_state?: string | undefined;
202
203
  speed?: number | undefined;
203
204
  odometer?: number | undefined;
205
+ mileage_since_last_update?: number | undefined;
204
206
  }, {
205
207
  username: string;
206
208
  provider_url: string;
@@ -221,6 +223,7 @@ declare const ConvexUpdate: z$1.ZodObject<{
221
223
  license_state?: string | undefined;
222
224
  speed?: number | undefined;
223
225
  odometer?: number | undefined;
226
+ mileage_since_last_update?: number | undefined;
224
227
  }>;
225
228
  type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
226
229
 
@@ -235,19 +238,28 @@ declare enum ScrapeStatus {
235
238
  }
236
239
  declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
237
240
  status: z$1.ZodNativeEnum<typeof ScrapeStatus>;
241
+ correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
238
242
  externalProviderAccountId: z$1.ZodString;
239
243
  username: z$1.ZodString;
240
244
  provider_url: z$1.ZodString;
245
+ driverCount: z$1.ZodOptional<z$1.ZodNumber>;
246
+ providerSlug: z$1.ZodOptional<z$1.ZodString>;
241
247
  }, "strip", z$1.ZodTypeAny, {
242
248
  username: string;
243
249
  externalProviderAccountId: string;
244
250
  status: ScrapeStatus;
245
251
  provider_url: string;
252
+ correctPassword?: boolean | undefined;
253
+ driverCount?: number | undefined;
254
+ providerSlug?: string | undefined;
246
255
  }, {
247
256
  username: string;
248
257
  externalProviderAccountId: string;
249
258
  status: ScrapeStatus;
250
259
  provider_url: string;
260
+ correctPassword?: boolean | undefined;
261
+ driverCount?: number | undefined;
262
+ providerSlug?: string | undefined;
251
263
  }>;
252
264
  type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
253
265
 
package/dist/browser.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  UpdateScrapeStatusMessage,
9
9
  ValidatePasswordRequestSchema,
10
10
  ValidatePasswordResponseSchema
11
- } from "./chunk-XRXOPSCS.js";
11
+ } from "./chunk-RDX5SWB6.js";
12
12
  export {
13
13
  ConvexUpdate,
14
14
  NewLoginRequest,
@@ -73,7 +73,8 @@ var ConvexUpdate = z2.object({
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
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")
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")
77
78
  }).describe("Schema for updating driver ELD status information");
78
79
 
79
80
  // src/schemas/providerAccounts/update-status.ts
@@ -90,9 +91,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
90
91
  })(ScrapeStatus || {});
91
92
  var UpdateScrapeStatusMessage = z3.object({
92
93
  status: z3.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
93
- externalProviderAccountId: z3.string().describe("The external identifier for the provider account"),
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)"),
94
96
  username: z3.string().describe("The username of the provider account whose status is being updated"),
95
- 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")
96
100
  }).describe("Schema for update status messages");
97
101
 
98
102
  // src/schemas/providerAccounts/validate-password.ts
package/dist/index.cjs CHANGED
@@ -119,7 +119,8 @@ var ConvexUpdate = import_zod2.default.object({
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
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")
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")
123
124
  }).describe("Schema for updating driver ELD status information");
124
125
 
125
126
  // src/security/transit-crypto.ts
@@ -162,9 +163,12 @@ var ScrapeStatus = /* @__PURE__ */ ((ScrapeStatus2) => {
162
163
  })(ScrapeStatus || {});
163
164
  var UpdateScrapeStatusMessage = import_zod3.default.object({
164
165
  status: import_zod3.default.nativeEnum(ScrapeStatus).describe("The current status of the scrape process"),
165
- externalProviderAccountId: import_zod3.default.string().describe("The external identifier for the provider account"),
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)"),
166
168
  username: import_zod3.default.string().describe("The username of the provider account whose status is being updated"),
167
- 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")
168
172
  }).describe("Schema for update status messages");
169
173
 
170
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-XRXOPSCS.js";
11
+ } from "./chunk-RDX5SWB6.js";
12
12
 
13
13
  // src/security/transit-crypto.ts
14
14
  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.3.0",
3
+ "version": "2.4.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",