@findatruck/shared-schemas 2.7.0 → 2.9.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 +56 -32
- package/dist/browser.d.cts +234 -403
- package/dist/browser.d.ts +234 -403
- package/dist/browser.js +15 -1
- package/dist/{chunk-5AS6K3Q5.js → chunk-CUV2KQXS.js} +49 -32
- package/dist/index.cjs +56 -32
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/package.json +1 -1
package/dist/browser.d.cts
CHANGED
|
@@ -1,168 +1,243 @@
|
|
|
1
1
|
import z$1, { z } from 'zod';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
providerUrl: z.ZodEffects<z.ZodString, string, string>;
|
|
5
|
-
username: z.ZodString;
|
|
6
|
-
encryptedPassword: z.ZodString;
|
|
7
|
-
ownerId: z.ZodString;
|
|
8
|
-
externalProviderAccountId: z.ZodString;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
3
|
+
interface NewLoginRequestData {
|
|
10
4
|
providerUrl: string;
|
|
11
5
|
username: string;
|
|
12
6
|
encryptedPassword: string;
|
|
13
7
|
ownerId: string;
|
|
14
8
|
externalProviderAccountId: string;
|
|
15
|
-
|
|
16
|
-
|
|
9
|
+
convexUpdateUrl: string;
|
|
10
|
+
}
|
|
11
|
+
interface PublicUserData {
|
|
12
|
+
id: string;
|
|
17
13
|
username: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
created_at: Date;
|
|
15
|
+
updated_at: Date;
|
|
16
|
+
}
|
|
17
|
+
interface PublicProviderData {
|
|
18
|
+
name: string;
|
|
19
|
+
url: string;
|
|
20
|
+
}
|
|
21
|
+
interface NewLoginResponseSuccessData {
|
|
22
|
+
success?: boolean;
|
|
23
|
+
message: string;
|
|
24
|
+
user: PublicUserData;
|
|
25
|
+
provider: PublicProviderData;
|
|
26
|
+
driverIds: string[];
|
|
27
|
+
organizationId?: string;
|
|
28
|
+
honkUserId?: string;
|
|
29
|
+
}
|
|
30
|
+
interface NewLoginResponseFailureData {
|
|
31
|
+
success?: boolean;
|
|
32
|
+
error: string;
|
|
33
|
+
}
|
|
34
|
+
type NewLoginResponseData = NewLoginResponseSuccessData | NewLoginResponseFailureData;
|
|
35
|
+
declare const NewLoginRequestSchema: z.ZodObject<{
|
|
36
|
+
providerUrl: z.ZodString;
|
|
37
|
+
username: z.ZodString;
|
|
38
|
+
encryptedPassword: z.ZodString;
|
|
39
|
+
ownerId: z.ZodString;
|
|
40
|
+
externalProviderAccountId: z.ZodString;
|
|
41
|
+
convexUpdateUrl: z.ZodString;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
declare const NewLoginResponseSuccessSchema: z.ZodObject<{
|
|
44
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
message: z.ZodString;
|
|
46
|
+
user: z.ZodObject<{
|
|
47
|
+
id: z.ZodString;
|
|
48
|
+
username: z.ZodString;
|
|
49
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
50
|
+
updated_at: z.ZodCoercedDate<unknown>;
|
|
51
|
+
}, z.core.$strip>;
|
|
52
|
+
provider: z.ZodObject<{
|
|
53
|
+
name: z.ZodString;
|
|
54
|
+
url: z.ZodString;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
driverIds: z.ZodArray<z.ZodString>;
|
|
57
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
honkUserId: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
declare const NewLoginResponseFailureSchema: z.ZodObject<{
|
|
61
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
error: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
declare const NewLoginResponseSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
65
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
message: z.ZodString;
|
|
67
|
+
user: z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
username: z.ZodString;
|
|
70
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
71
|
+
updated_at: z.ZodCoercedDate<unknown>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
provider: z.ZodObject<{
|
|
74
|
+
name: z.ZodString;
|
|
75
|
+
url: z.ZodString;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
driverIds: z.ZodArray<z.ZodString>;
|
|
78
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
honkUserId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
+
error: z.ZodString;
|
|
83
|
+
}, z.core.$strip>]>;
|
|
84
|
+
declare const NewLoginRequest: z.ZodObject<{
|
|
85
|
+
providerUrl: z.ZodString;
|
|
86
|
+
username: z.ZodString;
|
|
87
|
+
encryptedPassword: z.ZodString;
|
|
88
|
+
ownerId: z.ZodString;
|
|
89
|
+
externalProviderAccountId: z.ZodString;
|
|
90
|
+
convexUpdateUrl: z.ZodString;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
type NewLoginRequest = NewLoginRequestData;
|
|
23
93
|
declare const NewLoginResponseSuccess: z.ZodObject<{
|
|
94
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
24
95
|
message: z.ZodString;
|
|
25
96
|
user: z.ZodObject<{
|
|
26
97
|
id: z.ZodString;
|
|
27
98
|
username: z.ZodString;
|
|
28
|
-
created_at: z.
|
|
29
|
-
updated_at: z.
|
|
30
|
-
},
|
|
31
|
-
username: string;
|
|
32
|
-
id: string;
|
|
33
|
-
created_at: Date;
|
|
34
|
-
updated_at: Date;
|
|
35
|
-
}, {
|
|
36
|
-
username: string;
|
|
37
|
-
id: string;
|
|
38
|
-
created_at: Date;
|
|
39
|
-
updated_at: Date;
|
|
40
|
-
}>;
|
|
99
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
100
|
+
updated_at: z.ZodCoercedDate<unknown>;
|
|
101
|
+
}, z.core.$strip>;
|
|
41
102
|
provider: z.ZodObject<{
|
|
42
103
|
name: z.ZodString;
|
|
43
|
-
url: z.
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
url: string;
|
|
47
|
-
}, {
|
|
48
|
-
name: string;
|
|
49
|
-
url: string;
|
|
50
|
-
}>;
|
|
51
|
-
driverIds: z.ZodArray<z.ZodString, "many">;
|
|
104
|
+
url: z.ZodString;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
driverIds: z.ZodArray<z.ZodString>;
|
|
52
107
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
53
108
|
honkUserId: z.ZodOptional<z.ZodString>;
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
user: {
|
|
57
|
-
username: string;
|
|
58
|
-
id: string;
|
|
59
|
-
created_at: Date;
|
|
60
|
-
updated_at: Date;
|
|
61
|
-
};
|
|
62
|
-
provider: {
|
|
63
|
-
name: string;
|
|
64
|
-
url: string;
|
|
65
|
-
};
|
|
66
|
-
driverIds: string[];
|
|
67
|
-
organizationId?: string | undefined;
|
|
68
|
-
honkUserId?: string | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
message: string;
|
|
71
|
-
user: {
|
|
72
|
-
username: string;
|
|
73
|
-
id: string;
|
|
74
|
-
created_at: Date;
|
|
75
|
-
updated_at: Date;
|
|
76
|
-
};
|
|
77
|
-
provider: {
|
|
78
|
-
name: string;
|
|
79
|
-
url: string;
|
|
80
|
-
};
|
|
81
|
-
driverIds: string[];
|
|
82
|
-
organizationId?: string | undefined;
|
|
83
|
-
honkUserId?: string | undefined;
|
|
84
|
-
}>;
|
|
85
|
-
type NewLoginResponseSuccess = z.infer<typeof NewLoginResponseSuccess>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
type NewLoginResponseSuccess = NewLoginResponseSuccessData;
|
|
86
111
|
declare const NewLoginResponseFailure: z.ZodObject<{
|
|
112
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
87
113
|
error: z.ZodString;
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
}>;
|
|
93
|
-
type NewLoginResponseFailure = z.infer<typeof NewLoginResponseFailure>;
|
|
94
|
-
declare const NewLoginResponse: z.ZodUnion<[z.ZodObject<{
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
type NewLoginResponseFailure = NewLoginResponseFailureData;
|
|
116
|
+
declare const NewLoginResponse: z.ZodUnion<readonly [z.ZodObject<{
|
|
117
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
95
118
|
message: z.ZodString;
|
|
96
119
|
user: z.ZodObject<{
|
|
97
120
|
id: z.ZodString;
|
|
98
121
|
username: z.ZodString;
|
|
99
|
-
created_at: z.
|
|
100
|
-
updated_at: z.
|
|
101
|
-
},
|
|
102
|
-
username: string;
|
|
103
|
-
id: string;
|
|
104
|
-
created_at: Date;
|
|
105
|
-
updated_at: Date;
|
|
106
|
-
}, {
|
|
107
|
-
username: string;
|
|
108
|
-
id: string;
|
|
109
|
-
created_at: Date;
|
|
110
|
-
updated_at: Date;
|
|
111
|
-
}>;
|
|
122
|
+
created_at: z.ZodCoercedDate<unknown>;
|
|
123
|
+
updated_at: z.ZodCoercedDate<unknown>;
|
|
124
|
+
}, z.core.$strip>;
|
|
112
125
|
provider: z.ZodObject<{
|
|
113
126
|
name: z.ZodString;
|
|
114
|
-
url: z.
|
|
115
|
-
},
|
|
116
|
-
|
|
117
|
-
url: string;
|
|
118
|
-
}, {
|
|
119
|
-
name: string;
|
|
120
|
-
url: string;
|
|
121
|
-
}>;
|
|
122
|
-
driverIds: z.ZodArray<z.ZodString, "many">;
|
|
127
|
+
url: z.ZodString;
|
|
128
|
+
}, z.core.$strip>;
|
|
129
|
+
driverIds: z.ZodArray<z.ZodString>;
|
|
123
130
|
organizationId: z.ZodOptional<z.ZodString>;
|
|
124
131
|
honkUserId: z.ZodOptional<z.ZodString>;
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
user: {
|
|
128
|
-
username: string;
|
|
129
|
-
id: string;
|
|
130
|
-
created_at: Date;
|
|
131
|
-
updated_at: Date;
|
|
132
|
-
};
|
|
133
|
-
provider: {
|
|
134
|
-
name: string;
|
|
135
|
-
url: string;
|
|
136
|
-
};
|
|
137
|
-
driverIds: string[];
|
|
138
|
-
organizationId?: string | undefined;
|
|
139
|
-
honkUserId?: string | undefined;
|
|
140
|
-
}, {
|
|
141
|
-
message: string;
|
|
142
|
-
user: {
|
|
143
|
-
username: string;
|
|
144
|
-
id: string;
|
|
145
|
-
created_at: Date;
|
|
146
|
-
updated_at: Date;
|
|
147
|
-
};
|
|
148
|
-
provider: {
|
|
149
|
-
name: string;
|
|
150
|
-
url: string;
|
|
151
|
-
};
|
|
152
|
-
driverIds: string[];
|
|
153
|
-
organizationId?: string | undefined;
|
|
154
|
-
honkUserId?: string | undefined;
|
|
155
|
-
}>, z.ZodObject<{
|
|
132
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
133
|
+
success: z.ZodOptional<z.ZodBoolean>;
|
|
156
134
|
error: z.ZodString;
|
|
157
|
-
},
|
|
158
|
-
|
|
159
|
-
}, {
|
|
160
|
-
error: string;
|
|
161
|
-
}>]>;
|
|
162
|
-
type NewLoginResponse = z.infer<typeof NewLoginResponse>;
|
|
135
|
+
}, z.core.$strip>]>;
|
|
136
|
+
type NewLoginResponse = NewLoginResponseData;
|
|
163
137
|
|
|
138
|
+
interface ConvexDriverData {
|
|
139
|
+
driver_name?: string;
|
|
140
|
+
vehicle_id?: string;
|
|
141
|
+
driver_status: string;
|
|
142
|
+
time_remaining_in_shift: number;
|
|
143
|
+
time_remaining_till_break: number;
|
|
144
|
+
time_remaining_in_week: number;
|
|
145
|
+
time_remaining_in_drive: number;
|
|
146
|
+
driver_current_location_latitude: number;
|
|
147
|
+
driver_current_location_longitude: number;
|
|
148
|
+
driver_current_location_address: string;
|
|
149
|
+
license_number?: string;
|
|
150
|
+
license_state?: string;
|
|
151
|
+
speed?: number;
|
|
152
|
+
odometer?: number;
|
|
153
|
+
convex_provider_account_id: string;
|
|
154
|
+
external_provider_account_id: string;
|
|
155
|
+
external_driver_id: string;
|
|
156
|
+
mileage_since_last_update?: number;
|
|
157
|
+
}
|
|
158
|
+
interface ConvexUpdateData {
|
|
159
|
+
provider_url: string;
|
|
160
|
+
username: string;
|
|
161
|
+
drivers: ConvexDriverData[];
|
|
162
|
+
version?: string;
|
|
163
|
+
}
|
|
164
|
+
interface BatchConvexUpdateData {
|
|
165
|
+
updates: ConvexUpdateData[];
|
|
166
|
+
}
|
|
167
|
+
declare const ConvexDriverSchema: z$1.ZodObject<{
|
|
168
|
+
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
169
|
+
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
170
|
+
driver_status: z$1.ZodString;
|
|
171
|
+
time_remaining_in_shift: z$1.ZodNumber;
|
|
172
|
+
time_remaining_till_break: z$1.ZodNumber;
|
|
173
|
+
time_remaining_in_week: z$1.ZodNumber;
|
|
174
|
+
time_remaining_in_drive: z$1.ZodNumber;
|
|
175
|
+
driver_current_location_latitude: z$1.ZodNumber;
|
|
176
|
+
driver_current_location_longitude: z$1.ZodNumber;
|
|
177
|
+
driver_current_location_address: z$1.ZodString;
|
|
178
|
+
license_number: z$1.ZodOptional<z$1.ZodString>;
|
|
179
|
+
license_state: z$1.ZodOptional<z$1.ZodString>;
|
|
180
|
+
speed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
181
|
+
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
182
|
+
convex_provider_account_id: z$1.ZodString;
|
|
183
|
+
external_provider_account_id: z$1.ZodString;
|
|
184
|
+
external_driver_id: z$1.ZodString;
|
|
185
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
186
|
+
}, z$1.core.$strip>;
|
|
187
|
+
declare const ConvexUpdateSchema: z$1.ZodObject<{
|
|
188
|
+
provider_url: z$1.ZodString;
|
|
189
|
+
username: z$1.ZodString;
|
|
190
|
+
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
191
|
+
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
192
|
+
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
193
|
+
driver_status: z$1.ZodString;
|
|
194
|
+
time_remaining_in_shift: z$1.ZodNumber;
|
|
195
|
+
time_remaining_till_break: z$1.ZodNumber;
|
|
196
|
+
time_remaining_in_week: z$1.ZodNumber;
|
|
197
|
+
time_remaining_in_drive: z$1.ZodNumber;
|
|
198
|
+
driver_current_location_latitude: z$1.ZodNumber;
|
|
199
|
+
driver_current_location_longitude: z$1.ZodNumber;
|
|
200
|
+
driver_current_location_address: z$1.ZodString;
|
|
201
|
+
license_number: z$1.ZodOptional<z$1.ZodString>;
|
|
202
|
+
license_state: z$1.ZodOptional<z$1.ZodString>;
|
|
203
|
+
speed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
204
|
+
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
205
|
+
convex_provider_account_id: z$1.ZodString;
|
|
206
|
+
external_provider_account_id: z$1.ZodString;
|
|
207
|
+
external_driver_id: z$1.ZodString;
|
|
208
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
209
|
+
}, z$1.core.$strip>>;
|
|
210
|
+
version: z$1.ZodDefault<z$1.ZodString>;
|
|
211
|
+
}, z$1.core.$strip>;
|
|
212
|
+
declare const BatchConvexUpdateSchema: z$1.ZodObject<{
|
|
213
|
+
updates: z$1.ZodArray<z$1.ZodObject<{
|
|
214
|
+
provider_url: z$1.ZodString;
|
|
215
|
+
username: z$1.ZodString;
|
|
216
|
+
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
217
|
+
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
218
|
+
vehicle_id: z$1.ZodOptional<z$1.ZodString>;
|
|
219
|
+
driver_status: z$1.ZodString;
|
|
220
|
+
time_remaining_in_shift: z$1.ZodNumber;
|
|
221
|
+
time_remaining_till_break: z$1.ZodNumber;
|
|
222
|
+
time_remaining_in_week: z$1.ZodNumber;
|
|
223
|
+
time_remaining_in_drive: z$1.ZodNumber;
|
|
224
|
+
driver_current_location_latitude: z$1.ZodNumber;
|
|
225
|
+
driver_current_location_longitude: z$1.ZodNumber;
|
|
226
|
+
driver_current_location_address: z$1.ZodString;
|
|
227
|
+
license_number: z$1.ZodOptional<z$1.ZodString>;
|
|
228
|
+
license_state: z$1.ZodOptional<z$1.ZodString>;
|
|
229
|
+
speed: z$1.ZodOptional<z$1.ZodNumber>;
|
|
230
|
+
odometer: z$1.ZodOptional<z$1.ZodNumber>;
|
|
231
|
+
convex_provider_account_id: z$1.ZodString;
|
|
232
|
+
external_provider_account_id: z$1.ZodString;
|
|
233
|
+
external_driver_id: z$1.ZodString;
|
|
234
|
+
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
235
|
+
}, z$1.core.$strip>>;
|
|
236
|
+
version: z$1.ZodDefault<z$1.ZodString>;
|
|
237
|
+
}, z$1.core.$strip>>;
|
|
238
|
+
}, z$1.core.$strip>;
|
|
164
239
|
declare const ConvexUpdate: z$1.ZodObject<{
|
|
165
|
-
provider_url: z$1.
|
|
240
|
+
provider_url: z$1.ZodString;
|
|
166
241
|
username: z$1.ZodString;
|
|
167
242
|
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
168
243
|
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -183,99 +258,13 @@ declare const ConvexUpdate: z$1.ZodObject<{
|
|
|
183
258
|
external_provider_account_id: z$1.ZodString;
|
|
184
259
|
external_driver_id: z$1.ZodString;
|
|
185
260
|
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
186
|
-
},
|
|
187
|
-
driver_status: string;
|
|
188
|
-
time_remaining_in_shift: number;
|
|
189
|
-
time_remaining_till_break: number;
|
|
190
|
-
time_remaining_in_week: number;
|
|
191
|
-
time_remaining_in_drive: number;
|
|
192
|
-
driver_current_location_latitude: number;
|
|
193
|
-
driver_current_location_longitude: number;
|
|
194
|
-
driver_current_location_address: string;
|
|
195
|
-
convex_provider_account_id: string;
|
|
196
|
-
external_provider_account_id: string;
|
|
197
|
-
external_driver_id: string;
|
|
198
|
-
driver_name?: string | undefined;
|
|
199
|
-
vehicle_id?: string | undefined;
|
|
200
|
-
license_number?: string | undefined;
|
|
201
|
-
license_state?: string | undefined;
|
|
202
|
-
speed?: number | undefined;
|
|
203
|
-
odometer?: number | undefined;
|
|
204
|
-
mileage_since_last_update?: number | undefined;
|
|
205
|
-
}, {
|
|
206
|
-
driver_status: string;
|
|
207
|
-
time_remaining_in_shift: number;
|
|
208
|
-
time_remaining_till_break: number;
|
|
209
|
-
time_remaining_in_week: number;
|
|
210
|
-
time_remaining_in_drive: number;
|
|
211
|
-
driver_current_location_latitude: number;
|
|
212
|
-
driver_current_location_longitude: number;
|
|
213
|
-
driver_current_location_address: string;
|
|
214
|
-
convex_provider_account_id: string;
|
|
215
|
-
external_provider_account_id: string;
|
|
216
|
-
external_driver_id: string;
|
|
217
|
-
driver_name?: string | undefined;
|
|
218
|
-
vehicle_id?: string | undefined;
|
|
219
|
-
license_number?: string | undefined;
|
|
220
|
-
license_state?: string | undefined;
|
|
221
|
-
speed?: number | undefined;
|
|
222
|
-
odometer?: number | undefined;
|
|
223
|
-
mileage_since_last_update?: number | undefined;
|
|
224
|
-
}>, "many">;
|
|
261
|
+
}, z$1.core.$strip>>;
|
|
225
262
|
version: z$1.ZodDefault<z$1.ZodString>;
|
|
226
|
-
},
|
|
227
|
-
|
|
228
|
-
provider_url: string;
|
|
229
|
-
drivers: {
|
|
230
|
-
driver_status: string;
|
|
231
|
-
time_remaining_in_shift: number;
|
|
232
|
-
time_remaining_till_break: number;
|
|
233
|
-
time_remaining_in_week: number;
|
|
234
|
-
time_remaining_in_drive: number;
|
|
235
|
-
driver_current_location_latitude: number;
|
|
236
|
-
driver_current_location_longitude: number;
|
|
237
|
-
driver_current_location_address: string;
|
|
238
|
-
convex_provider_account_id: string;
|
|
239
|
-
external_provider_account_id: string;
|
|
240
|
-
external_driver_id: string;
|
|
241
|
-
driver_name?: string | undefined;
|
|
242
|
-
vehicle_id?: string | undefined;
|
|
243
|
-
license_number?: string | undefined;
|
|
244
|
-
license_state?: string | undefined;
|
|
245
|
-
speed?: number | undefined;
|
|
246
|
-
odometer?: number | undefined;
|
|
247
|
-
mileage_since_last_update?: number | undefined;
|
|
248
|
-
}[];
|
|
249
|
-
version: string;
|
|
250
|
-
}, {
|
|
251
|
-
username: string;
|
|
252
|
-
provider_url: string;
|
|
253
|
-
drivers: {
|
|
254
|
-
driver_status: string;
|
|
255
|
-
time_remaining_in_shift: number;
|
|
256
|
-
time_remaining_till_break: number;
|
|
257
|
-
time_remaining_in_week: number;
|
|
258
|
-
time_remaining_in_drive: number;
|
|
259
|
-
driver_current_location_latitude: number;
|
|
260
|
-
driver_current_location_longitude: number;
|
|
261
|
-
driver_current_location_address: string;
|
|
262
|
-
convex_provider_account_id: string;
|
|
263
|
-
external_provider_account_id: string;
|
|
264
|
-
external_driver_id: string;
|
|
265
|
-
driver_name?: string | undefined;
|
|
266
|
-
vehicle_id?: string | undefined;
|
|
267
|
-
license_number?: string | undefined;
|
|
268
|
-
license_state?: string | undefined;
|
|
269
|
-
speed?: number | undefined;
|
|
270
|
-
odometer?: number | undefined;
|
|
271
|
-
mileage_since_last_update?: number | undefined;
|
|
272
|
-
}[];
|
|
273
|
-
version?: string | undefined;
|
|
274
|
-
}>;
|
|
275
|
-
type ConvexUpdate = z$1.infer<typeof ConvexUpdate>;
|
|
263
|
+
}, z$1.core.$strip>;
|
|
264
|
+
type ConvexUpdate = ConvexUpdateData;
|
|
276
265
|
declare const BatchConvexUpdate: z$1.ZodObject<{
|
|
277
266
|
updates: z$1.ZodArray<z$1.ZodObject<{
|
|
278
|
-
provider_url: z$1.
|
|
267
|
+
provider_url: z$1.ZodString;
|
|
279
268
|
username: z$1.ZodString;
|
|
280
269
|
drivers: z$1.ZodArray<z$1.ZodObject<{
|
|
281
270
|
driver_name: z$1.ZodOptional<z$1.ZodString>;
|
|
@@ -296,149 +285,11 @@ declare const BatchConvexUpdate: z$1.ZodObject<{
|
|
|
296
285
|
external_provider_account_id: z$1.ZodString;
|
|
297
286
|
external_driver_id: z$1.ZodString;
|
|
298
287
|
mileage_since_last_update: z$1.ZodOptional<z$1.ZodNumber>;
|
|
299
|
-
},
|
|
300
|
-
driver_status: string;
|
|
301
|
-
time_remaining_in_shift: number;
|
|
302
|
-
time_remaining_till_break: number;
|
|
303
|
-
time_remaining_in_week: number;
|
|
304
|
-
time_remaining_in_drive: number;
|
|
305
|
-
driver_current_location_latitude: number;
|
|
306
|
-
driver_current_location_longitude: number;
|
|
307
|
-
driver_current_location_address: string;
|
|
308
|
-
convex_provider_account_id: string;
|
|
309
|
-
external_provider_account_id: string;
|
|
310
|
-
external_driver_id: string;
|
|
311
|
-
driver_name?: string | undefined;
|
|
312
|
-
vehicle_id?: string | undefined;
|
|
313
|
-
license_number?: string | undefined;
|
|
314
|
-
license_state?: string | undefined;
|
|
315
|
-
speed?: number | undefined;
|
|
316
|
-
odometer?: number | undefined;
|
|
317
|
-
mileage_since_last_update?: number | undefined;
|
|
318
|
-
}, {
|
|
319
|
-
driver_status: string;
|
|
320
|
-
time_remaining_in_shift: number;
|
|
321
|
-
time_remaining_till_break: number;
|
|
322
|
-
time_remaining_in_week: number;
|
|
323
|
-
time_remaining_in_drive: number;
|
|
324
|
-
driver_current_location_latitude: number;
|
|
325
|
-
driver_current_location_longitude: number;
|
|
326
|
-
driver_current_location_address: string;
|
|
327
|
-
convex_provider_account_id: string;
|
|
328
|
-
external_provider_account_id: string;
|
|
329
|
-
external_driver_id: string;
|
|
330
|
-
driver_name?: string | undefined;
|
|
331
|
-
vehicle_id?: string | undefined;
|
|
332
|
-
license_number?: string | undefined;
|
|
333
|
-
license_state?: string | undefined;
|
|
334
|
-
speed?: number | undefined;
|
|
335
|
-
odometer?: number | undefined;
|
|
336
|
-
mileage_since_last_update?: number | undefined;
|
|
337
|
-
}>, "many">;
|
|
288
|
+
}, z$1.core.$strip>>;
|
|
338
289
|
version: z$1.ZodDefault<z$1.ZodString>;
|
|
339
|
-
},
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
drivers: {
|
|
343
|
-
driver_status: string;
|
|
344
|
-
time_remaining_in_shift: number;
|
|
345
|
-
time_remaining_till_break: number;
|
|
346
|
-
time_remaining_in_week: number;
|
|
347
|
-
time_remaining_in_drive: number;
|
|
348
|
-
driver_current_location_latitude: number;
|
|
349
|
-
driver_current_location_longitude: number;
|
|
350
|
-
driver_current_location_address: string;
|
|
351
|
-
convex_provider_account_id: string;
|
|
352
|
-
external_provider_account_id: string;
|
|
353
|
-
external_driver_id: string;
|
|
354
|
-
driver_name?: string | undefined;
|
|
355
|
-
vehicle_id?: string | undefined;
|
|
356
|
-
license_number?: string | undefined;
|
|
357
|
-
license_state?: string | undefined;
|
|
358
|
-
speed?: number | undefined;
|
|
359
|
-
odometer?: number | undefined;
|
|
360
|
-
mileage_since_last_update?: number | undefined;
|
|
361
|
-
}[];
|
|
362
|
-
version: string;
|
|
363
|
-
}, {
|
|
364
|
-
username: string;
|
|
365
|
-
provider_url: string;
|
|
366
|
-
drivers: {
|
|
367
|
-
driver_status: string;
|
|
368
|
-
time_remaining_in_shift: number;
|
|
369
|
-
time_remaining_till_break: number;
|
|
370
|
-
time_remaining_in_week: number;
|
|
371
|
-
time_remaining_in_drive: number;
|
|
372
|
-
driver_current_location_latitude: number;
|
|
373
|
-
driver_current_location_longitude: number;
|
|
374
|
-
driver_current_location_address: string;
|
|
375
|
-
convex_provider_account_id: string;
|
|
376
|
-
external_provider_account_id: string;
|
|
377
|
-
external_driver_id: string;
|
|
378
|
-
driver_name?: string | undefined;
|
|
379
|
-
vehicle_id?: string | undefined;
|
|
380
|
-
license_number?: string | undefined;
|
|
381
|
-
license_state?: string | undefined;
|
|
382
|
-
speed?: number | undefined;
|
|
383
|
-
odometer?: number | undefined;
|
|
384
|
-
mileage_since_last_update?: number | undefined;
|
|
385
|
-
}[];
|
|
386
|
-
version?: string | undefined;
|
|
387
|
-
}>, "many">;
|
|
388
|
-
}, "strip", z$1.ZodTypeAny, {
|
|
389
|
-
updates: {
|
|
390
|
-
username: string;
|
|
391
|
-
provider_url: string;
|
|
392
|
-
drivers: {
|
|
393
|
-
driver_status: string;
|
|
394
|
-
time_remaining_in_shift: number;
|
|
395
|
-
time_remaining_till_break: number;
|
|
396
|
-
time_remaining_in_week: number;
|
|
397
|
-
time_remaining_in_drive: number;
|
|
398
|
-
driver_current_location_latitude: number;
|
|
399
|
-
driver_current_location_longitude: number;
|
|
400
|
-
driver_current_location_address: string;
|
|
401
|
-
convex_provider_account_id: string;
|
|
402
|
-
external_provider_account_id: string;
|
|
403
|
-
external_driver_id: string;
|
|
404
|
-
driver_name?: string | undefined;
|
|
405
|
-
vehicle_id?: string | undefined;
|
|
406
|
-
license_number?: string | undefined;
|
|
407
|
-
license_state?: string | undefined;
|
|
408
|
-
speed?: number | undefined;
|
|
409
|
-
odometer?: number | undefined;
|
|
410
|
-
mileage_since_last_update?: number | undefined;
|
|
411
|
-
}[];
|
|
412
|
-
version: string;
|
|
413
|
-
}[];
|
|
414
|
-
}, {
|
|
415
|
-
updates: {
|
|
416
|
-
username: string;
|
|
417
|
-
provider_url: string;
|
|
418
|
-
drivers: {
|
|
419
|
-
driver_status: string;
|
|
420
|
-
time_remaining_in_shift: number;
|
|
421
|
-
time_remaining_till_break: number;
|
|
422
|
-
time_remaining_in_week: number;
|
|
423
|
-
time_remaining_in_drive: number;
|
|
424
|
-
driver_current_location_latitude: number;
|
|
425
|
-
driver_current_location_longitude: number;
|
|
426
|
-
driver_current_location_address: string;
|
|
427
|
-
convex_provider_account_id: string;
|
|
428
|
-
external_provider_account_id: string;
|
|
429
|
-
external_driver_id: string;
|
|
430
|
-
driver_name?: string | undefined;
|
|
431
|
-
vehicle_id?: string | undefined;
|
|
432
|
-
license_number?: string | undefined;
|
|
433
|
-
license_state?: string | undefined;
|
|
434
|
-
speed?: number | undefined;
|
|
435
|
-
odometer?: number | undefined;
|
|
436
|
-
mileage_since_last_update?: number | undefined;
|
|
437
|
-
}[];
|
|
438
|
-
version?: string | undefined;
|
|
439
|
-
}[];
|
|
440
|
-
}>;
|
|
441
|
-
type BatchConvexUpdate = z$1.infer<typeof BatchConvexUpdate>;
|
|
290
|
+
}, z$1.core.$strip>>;
|
|
291
|
+
}, z$1.core.$strip>;
|
|
292
|
+
type BatchConvexUpdate = BatchConvexUpdateData;
|
|
442
293
|
|
|
443
294
|
declare enum ScrapeStatus {
|
|
444
295
|
NEW_LOGIN_RECEIVED = "NEW_LOGIN_RECEIVED",
|
|
@@ -450,53 +301,33 @@ declare enum ScrapeStatus {
|
|
|
450
301
|
DATA_FETCH_FAILED = "DATA_FETCH_FAILED"
|
|
451
302
|
}
|
|
452
303
|
declare const UpdateScrapeStatusMessage: z$1.ZodObject<{
|
|
453
|
-
status: z$1.
|
|
304
|
+
status: z$1.ZodEnum<typeof ScrapeStatus>;
|
|
454
305
|
correctPassword: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
455
306
|
externalProviderAccountId: z$1.ZodString;
|
|
456
307
|
username: z$1.ZodString;
|
|
457
308
|
provider_url: z$1.ZodString;
|
|
458
309
|
driverCount: z$1.ZodOptional<z$1.ZodNumber>;
|
|
459
310
|
providerSlug: z$1.ZodOptional<z$1.ZodString>;
|
|
460
|
-
},
|
|
461
|
-
username: string;
|
|
462
|
-
externalProviderAccountId: string;
|
|
463
|
-
status: ScrapeStatus;
|
|
464
|
-
provider_url: string;
|
|
465
|
-
correctPassword?: boolean | undefined;
|
|
466
|
-
driverCount?: number | undefined;
|
|
467
|
-
providerSlug?: string | undefined;
|
|
468
|
-
}, {
|
|
469
|
-
username: string;
|
|
470
|
-
externalProviderAccountId: string;
|
|
471
|
-
status: ScrapeStatus;
|
|
472
|
-
provider_url: string;
|
|
473
|
-
correctPassword?: boolean | undefined;
|
|
474
|
-
driverCount?: number | undefined;
|
|
475
|
-
providerSlug?: string | undefined;
|
|
476
|
-
}>;
|
|
311
|
+
}, z$1.core.$strip>;
|
|
477
312
|
type UpdateScrapeStatusMessage = z$1.infer<typeof UpdateScrapeStatusMessage>;
|
|
478
313
|
|
|
314
|
+
interface ValidatePasswordRequestData {
|
|
315
|
+
providerAccountId: string;
|
|
316
|
+
encryptedPassword: string;
|
|
317
|
+
}
|
|
318
|
+
interface ValidatePasswordResponseData {
|
|
319
|
+
isValid: boolean;
|
|
320
|
+
driverIds: string[];
|
|
321
|
+
}
|
|
479
322
|
declare const ValidatePasswordRequestSchema: z.ZodObject<{
|
|
480
323
|
providerAccountId: z.ZodString;
|
|
481
324
|
encryptedPassword: z.ZodString;
|
|
482
|
-
},
|
|
483
|
-
encryptedPassword: string;
|
|
484
|
-
providerAccountId: string;
|
|
485
|
-
}, {
|
|
486
|
-
encryptedPassword: string;
|
|
487
|
-
providerAccountId: string;
|
|
488
|
-
}>;
|
|
489
|
-
type ValidatePasswordRequest = z.infer<typeof ValidatePasswordRequestSchema>;
|
|
325
|
+
}, z.core.$strip>;
|
|
490
326
|
declare const ValidatePasswordResponseSchema: z.ZodObject<{
|
|
491
327
|
isValid: z.ZodBoolean;
|
|
492
|
-
driverIds: z.ZodArray<z.ZodString
|
|
493
|
-
},
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
}, {
|
|
497
|
-
driverIds: string[];
|
|
498
|
-
isValid: boolean;
|
|
499
|
-
}>;
|
|
500
|
-
type ValidatePasswordResponse = z.infer<typeof ValidatePasswordResponseSchema>;
|
|
328
|
+
driverIds: z.ZodArray<z.ZodString>;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
type ValidatePasswordRequest = ValidatePasswordRequestData;
|
|
331
|
+
type ValidatePasswordResponse = ValidatePasswordResponseData;
|
|
501
332
|
|
|
502
|
-
export { BatchConvexUpdate, ConvexUpdate, NewLoginRequest, NewLoginResponse, NewLoginResponseFailure, NewLoginResponseSuccess, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, ValidatePasswordRequestSchema, type ValidatePasswordResponse, ValidatePasswordResponseSchema };
|
|
333
|
+
export { BatchConvexUpdate, type BatchConvexUpdateData, BatchConvexUpdateSchema, type ConvexDriverData, ConvexDriverSchema, ConvexUpdate, type ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, type NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, type NewLoginResponseData, NewLoginResponseFailure, type NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, type NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, type PublicProviderData, type PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, type ValidatePasswordRequest, type ValidatePasswordRequestData, ValidatePasswordRequestSchema, type ValidatePasswordResponse, type ValidatePasswordResponseData, ValidatePasswordResponseSchema };
|