@findatruck/shared-schemas 0.9.0 → 0.11.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.cjs CHANGED
@@ -103,12 +103,9 @@ var UrlSchema2 = import_zod2.default.string().refine(
103
103
  { message: "Invalid URL" }
104
104
  );
105
105
  var ConvexUpdate = import_zod2.default.object({
106
- providerUrl: UrlSchema2.describe("The URL of the ELD provider"),
106
+ provider_url: UrlSchema2.describe("The URL of the ELD provider"),
107
107
  username: import_zod2.default.string().describe("The driver's login username"),
108
- password: import_zod2.default.string().describe("The driver's login password"),
109
108
  driver_id: import_zod2.default.string().optional().describe("The ELD's internal driver ID"),
110
- driver_first_name: import_zod2.default.string().optional().describe("The driver's first name"),
111
- driver_last_name: import_zod2.default.string().optional().describe("The driver's last name"),
112
109
  driver_name: import_zod2.default.string().optional().describe("The driver's full name"),
113
110
  vehicle_id: import_zod2.default.string().optional().describe("The vehicle ID"),
114
111
  driver_status: import_zod2.default.string().describe("The driver's duty status (direct from ELD)"),
package/dist/index.d.cts CHANGED
@@ -146,12 +146,9 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
146
146
  }>]>;
147
147
 
148
148
  declare const ConvexUpdate: z$1.ZodObject<{
149
- providerUrl: z$1.ZodEffects<z$1.ZodString, string, string>;
149
+ provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
150
150
  username: z$1.ZodString;
151
- password: z$1.ZodString;
152
151
  driver_id: z$1.ZodOptional<z$1.ZodString>;
153
- driver_first_name: z$1.ZodOptional<z$1.ZodString>;
154
- driver_last_name: z$1.ZodOptional<z$1.ZodString>;
155
152
  driver_name: z$1.ZodOptional<z$1.ZodString>;
156
153
  vehicle_id: z$1.ZodOptional<z$1.ZodString>;
157
154
  driver_status: z$1.ZodString;
@@ -163,9 +160,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
163
160
  driver_current_location_longitude: z$1.ZodNumber;
164
161
  driver_current_location_address: z$1.ZodString;
165
162
  }, "strip", z$1.ZodTypeAny, {
166
- providerUrl: string;
167
163
  username: string;
168
- password: string;
164
+ provider_url: string;
169
165
  driver_status: string;
170
166
  time_remaining_in_shift: number;
171
167
  time_remaining_till_break: number;
@@ -175,14 +171,11 @@ declare const ConvexUpdate: z$1.ZodObject<{
175
171
  driver_current_location_longitude: number;
176
172
  driver_current_location_address: string;
177
173
  driver_id?: string | undefined;
178
- driver_first_name?: string | undefined;
179
- driver_last_name?: string | undefined;
180
174
  driver_name?: string | undefined;
181
175
  vehicle_id?: string | undefined;
182
176
  }, {
183
- providerUrl: string;
184
177
  username: string;
185
- password: string;
178
+ provider_url: string;
186
179
  driver_status: string;
187
180
  time_remaining_in_shift: number;
188
181
  time_remaining_till_break: number;
@@ -192,8 +185,6 @@ declare const ConvexUpdate: z$1.ZodObject<{
192
185
  driver_current_location_longitude: number;
193
186
  driver_current_location_address: string;
194
187
  driver_id?: string | undefined;
195
- driver_first_name?: string | undefined;
196
- driver_last_name?: string | undefined;
197
188
  driver_name?: string | undefined;
198
189
  vehicle_id?: string | undefined;
199
190
  }>;
package/dist/index.d.ts CHANGED
@@ -146,12 +146,9 @@ declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
146
146
  }>]>;
147
147
 
148
148
  declare const ConvexUpdate: z$1.ZodObject<{
149
- providerUrl: z$1.ZodEffects<z$1.ZodString, string, string>;
149
+ provider_url: z$1.ZodEffects<z$1.ZodString, string, string>;
150
150
  username: z$1.ZodString;
151
- password: z$1.ZodString;
152
151
  driver_id: z$1.ZodOptional<z$1.ZodString>;
153
- driver_first_name: z$1.ZodOptional<z$1.ZodString>;
154
- driver_last_name: z$1.ZodOptional<z$1.ZodString>;
155
152
  driver_name: z$1.ZodOptional<z$1.ZodString>;
156
153
  vehicle_id: z$1.ZodOptional<z$1.ZodString>;
157
154
  driver_status: z$1.ZodString;
@@ -163,9 +160,8 @@ declare const ConvexUpdate: z$1.ZodObject<{
163
160
  driver_current_location_longitude: z$1.ZodNumber;
164
161
  driver_current_location_address: z$1.ZodString;
165
162
  }, "strip", z$1.ZodTypeAny, {
166
- providerUrl: string;
167
163
  username: string;
168
- password: string;
164
+ provider_url: string;
169
165
  driver_status: string;
170
166
  time_remaining_in_shift: number;
171
167
  time_remaining_till_break: number;
@@ -175,14 +171,11 @@ declare const ConvexUpdate: z$1.ZodObject<{
175
171
  driver_current_location_longitude: number;
176
172
  driver_current_location_address: string;
177
173
  driver_id?: string | undefined;
178
- driver_first_name?: string | undefined;
179
- driver_last_name?: string | undefined;
180
174
  driver_name?: string | undefined;
181
175
  vehicle_id?: string | undefined;
182
176
  }, {
183
- providerUrl: string;
184
177
  username: string;
185
- password: string;
178
+ provider_url: string;
186
179
  driver_status: string;
187
180
  time_remaining_in_shift: number;
188
181
  time_remaining_till_break: number;
@@ -192,8 +185,6 @@ declare const ConvexUpdate: z$1.ZodObject<{
192
185
  driver_current_location_longitude: number;
193
186
  driver_current_location_address: string;
194
187
  driver_id?: string | undefined;
195
- driver_first_name?: string | undefined;
196
- driver_last_name?: string | undefined;
197
188
  driver_name?: string | undefined;
198
189
  vehicle_id?: string | undefined;
199
190
  }>;
package/dist/index.js CHANGED
@@ -52,12 +52,9 @@ var UrlSchema2 = z2.string().refine(
52
52
  { message: "Invalid URL" }
53
53
  );
54
54
  var ConvexUpdate = z2.object({
55
- providerUrl: UrlSchema2.describe("The URL of the ELD provider"),
55
+ provider_url: UrlSchema2.describe("The URL of the ELD provider"),
56
56
  username: z2.string().describe("The driver's login username"),
57
- password: z2.string().describe("The driver's login password"),
58
57
  driver_id: z2.string().optional().describe("The ELD's internal driver ID"),
59
- driver_first_name: z2.string().optional().describe("The driver's first name"),
60
- driver_last_name: z2.string().optional().describe("The driver's last name"),
61
58
  driver_name: z2.string().optional().describe("The driver's full name"),
62
59
  vehicle_id: z2.string().optional().describe("The vehicle ID"),
63
60
  driver_status: z2.string().describe("The driver's duty status (direct from ELD)"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@findatruck/shared-schemas",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -33,6 +33,6 @@
33
33
  "tsup": "^8.0.0",
34
34
  "typescript": "^5.9.3",
35
35
  "vitest": "^3.2.4",
36
- "zod": "^3.23.0"
36
+ "zod": "^4.1.11"
37
37
  }
38
38
  }