@findatruck/shared-schemas 2.13.0 → 2.14.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 +141 -113
- package/dist/index.d.cts +251 -209
- package/dist/index.d.ts +251 -209
- package/dist/index.js +121 -97
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
export { BatchConvexUpdate, BatchConvexUpdateData, BatchConvexUpdateSchema, ConvexDriverData, ConvexDriverSchema, ConvexUpdate, ConvexUpdateData, ConvexUpdateSchema, NewLoginRequest, NewLoginRequestData, NewLoginRequestSchema, NewLoginResponse, NewLoginResponseData, NewLoginResponseFailure, NewLoginResponseFailureData, NewLoginResponseFailureSchema, NewLoginResponseSchema, NewLoginResponseSuccess, NewLoginResponseSuccessData, NewLoginResponseSuccessSchema, PublicProviderData, PublicUserData, ScrapeStatus, UpdateScrapeStatusMessage, ValidatePasswordRequest, ValidatePasswordRequestData, ValidatePasswordRequestSchema, ValidatePasswordResponse, ValidatePasswordResponseData, ValidatePasswordResponseSchema } from './browser.cjs';
|
|
2
|
-
import { z } from 'zod';
|
|
2
|
+
import z, { z as z$1 } from 'zod';
|
|
3
|
+
|
|
4
|
+
interface CreateAnonymousDriverBodyData {
|
|
5
|
+
convex_user_id: string;
|
|
6
|
+
}
|
|
7
|
+
interface AnonymousDriverResponseData {
|
|
8
|
+
driver_id: string;
|
|
9
|
+
}
|
|
10
|
+
interface AnonymousDriverErrorResponseData {
|
|
11
|
+
error: string;
|
|
12
|
+
}
|
|
13
|
+
declare const CreateAnonymousDriverBodySchema: z.ZodObject<{
|
|
14
|
+
convex_user_id: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const AnonymousDriverResponseSchema: z.ZodObject<{
|
|
17
|
+
driver_id: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const AnonymousDriverErrorResponseSchema: z.ZodObject<{
|
|
20
|
+
error: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
type CreateAnonymousDriverBody = z.infer<typeof CreateAnonymousDriverBodySchema>;
|
|
23
|
+
type AnonymousDriverResponse = z.infer<typeof AnonymousDriverResponseSchema>;
|
|
24
|
+
type AnonymousDriverErrorResponse = z.infer<typeof AnonymousDriverErrorResponseSchema>;
|
|
3
25
|
|
|
4
26
|
interface DeleteProviderAccountRequestData {
|
|
5
27
|
providerAccountId: string;
|
|
@@ -7,12 +29,12 @@ interface DeleteProviderAccountRequestData {
|
|
|
7
29
|
interface DeleteProviderAccountResponseData {
|
|
8
30
|
success: boolean;
|
|
9
31
|
}
|
|
10
|
-
declare const DeleteProviderAccountRequestSchema: z.ZodObject<{
|
|
11
|
-
providerAccountId: z.ZodString;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
declare const DeleteProviderAccountResponseSchema: z.ZodObject<{
|
|
14
|
-
success: z.ZodBoolean;
|
|
15
|
-
}, z.core.$strip>;
|
|
32
|
+
declare const DeleteProviderAccountRequestSchema: z$1.ZodObject<{
|
|
33
|
+
providerAccountId: z$1.ZodString;
|
|
34
|
+
}, z$1.core.$strip>;
|
|
35
|
+
declare const DeleteProviderAccountResponseSchema: z$1.ZodObject<{
|
|
36
|
+
success: z$1.ZodBoolean;
|
|
37
|
+
}, z$1.core.$strip>;
|
|
16
38
|
type DeleteProviderAccountRequest = DeleteProviderAccountRequestData;
|
|
17
39
|
type DeleteProviderAccountResponse = DeleteProviderAccountResponseData;
|
|
18
40
|
|
|
@@ -28,23 +50,23 @@ interface DriverRankingData {
|
|
|
28
50
|
total_miles: number;
|
|
29
51
|
}
|
|
30
52
|
type DriverRankingsResponseData = DriverRankingData[];
|
|
31
|
-
declare const DriverRankingsRequestSchema: z.ZodObject<{
|
|
32
|
-
start_date: z.ZodString;
|
|
33
|
-
end_date: z.ZodString;
|
|
34
|
-
state: z.ZodOptional<z.ZodString>;
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
declare const DriverRankingSchema: z.ZodObject<{
|
|
37
|
-
rank: z.ZodNumber;
|
|
38
|
-
driver_id: z.ZodString;
|
|
39
|
-
driver_name: z.ZodString;
|
|
40
|
-
total_miles: z.ZodNumber;
|
|
41
|
-
}, z.core.$strip>;
|
|
42
|
-
declare const DriverRankingsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
43
|
-
rank: z.ZodNumber;
|
|
44
|
-
driver_id: z.ZodString;
|
|
45
|
-
driver_name: z.ZodString;
|
|
46
|
-
total_miles: z.ZodNumber;
|
|
47
|
-
}, z.core.$strip>>;
|
|
53
|
+
declare const DriverRankingsRequestSchema: z$1.ZodObject<{
|
|
54
|
+
start_date: z$1.ZodString;
|
|
55
|
+
end_date: z$1.ZodString;
|
|
56
|
+
state: z$1.ZodOptional<z$1.ZodString>;
|
|
57
|
+
}, z$1.core.$strip>;
|
|
58
|
+
declare const DriverRankingSchema: z$1.ZodObject<{
|
|
59
|
+
rank: z$1.ZodNumber;
|
|
60
|
+
driver_id: z$1.ZodString;
|
|
61
|
+
driver_name: z$1.ZodString;
|
|
62
|
+
total_miles: z$1.ZodNumber;
|
|
63
|
+
}, z$1.core.$strip>;
|
|
64
|
+
declare const DriverRankingsResponseSchema: z$1.ZodArray<z$1.ZodObject<{
|
|
65
|
+
rank: z$1.ZodNumber;
|
|
66
|
+
driver_id: z$1.ZodString;
|
|
67
|
+
driver_name: z$1.ZodString;
|
|
68
|
+
total_miles: z$1.ZodNumber;
|
|
69
|
+
}, z$1.core.$strip>>;
|
|
48
70
|
type DriverRankingsRequest = DriverRankingsRequestData;
|
|
49
71
|
type DriverRanking = DriverRankingData;
|
|
50
72
|
type DriverRankingsResponse = DriverRankingsResponseData;
|
|
@@ -59,126 +81,126 @@ interface StateHeatmapEntryData {
|
|
|
59
81
|
percentage: number;
|
|
60
82
|
}
|
|
61
83
|
type StateHeatmapResponseData = Record<string, StateHeatmapEntryData>;
|
|
62
|
-
declare const StateHeatmapRequestSchema: z.ZodObject<{
|
|
63
|
-
driver_id: z.ZodString;
|
|
64
|
-
start_date: z.ZodString;
|
|
65
|
-
end_date: z.ZodString;
|
|
66
|
-
}, z.core.$strip>;
|
|
67
|
-
declare const StateHeatmapEntrySchema: z.ZodObject<{
|
|
68
|
-
count: z.ZodNumber;
|
|
69
|
-
percentage: z.ZodNumber;
|
|
70
|
-
}, z.core.$strip>;
|
|
71
|
-
declare const StateHeatmapResponseSchema: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
72
|
-
count: z.ZodNumber;
|
|
73
|
-
percentage: z.ZodNumber;
|
|
74
|
-
}, z.core.$strip>>;
|
|
84
|
+
declare const StateHeatmapRequestSchema: z$1.ZodObject<{
|
|
85
|
+
driver_id: z$1.ZodString;
|
|
86
|
+
start_date: z$1.ZodString;
|
|
87
|
+
end_date: z$1.ZodString;
|
|
88
|
+
}, z$1.core.$strip>;
|
|
89
|
+
declare const StateHeatmapEntrySchema: z$1.ZodObject<{
|
|
90
|
+
count: z$1.ZodNumber;
|
|
91
|
+
percentage: z$1.ZodNumber;
|
|
92
|
+
}, z$1.core.$strip>;
|
|
93
|
+
declare const StateHeatmapResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.ZodObject<{
|
|
94
|
+
count: z$1.ZodNumber;
|
|
95
|
+
percentage: z$1.ZodNumber;
|
|
96
|
+
}, z$1.core.$strip>>;
|
|
75
97
|
type StateHeatmapRequest = StateHeatmapRequestData;
|
|
76
98
|
type StateHeatmapEntry = StateHeatmapEntryData;
|
|
77
99
|
type StateHeatmapResponse = StateHeatmapResponseData;
|
|
78
100
|
|
|
79
|
-
declare const ManualBatchEntrySchema: z.ZodObject<{
|
|
80
|
-
driver_id: z.ZodString;
|
|
81
|
-
timestamp: z.ZodString;
|
|
82
|
-
location_latitude: z.ZodNumber;
|
|
83
|
-
location_longitude: z.ZodNumber;
|
|
84
|
-
location_address: z.ZodOptional<z.ZodString>;
|
|
85
|
-
vehicle_odometer_miles: z.ZodOptional<z.ZodNumber>;
|
|
86
|
-
}, z.core.$strip>;
|
|
87
|
-
declare const ManualBatchRequestSchema: z.ZodObject<{
|
|
88
|
-
entries: z.ZodArray<z.ZodObject<{
|
|
89
|
-
driver_id: z.ZodString;
|
|
90
|
-
timestamp: z.ZodString;
|
|
91
|
-
location_latitude: z.ZodNumber;
|
|
92
|
-
location_longitude: z.ZodNumber;
|
|
93
|
-
location_address: z.ZodOptional<z.ZodString>;
|
|
94
|
-
vehicle_odometer_miles: z.ZodOptional<z.ZodNumber>;
|
|
95
|
-
}, z.core.$strip>>;
|
|
96
|
-
}, z.core.$strip>;
|
|
97
|
-
declare const ManualBatchTelemetrySchema: z.ZodObject<{
|
|
98
|
-
id: z.ZodNumber;
|
|
99
|
-
driver_id: z.ZodString;
|
|
100
|
-
timestamp: z.ZodUnion<readonly [z.ZodString, z.ZodDate]>;
|
|
101
|
-
remaining_drive_time_in_seconds: z.ZodNumber;
|
|
102
|
-
remaining_shift_time_in_seconds: z.ZodNumber;
|
|
103
|
-
remaining_cycle_time_in_seconds: z.ZodNumber;
|
|
104
|
-
remaining_break_time_in_seconds: z.ZodNumber;
|
|
105
|
-
location_latitude: z.ZodNumber;
|
|
106
|
-
location_longitude: z.ZodNumber;
|
|
107
|
-
previous_location_latitude: z.ZodNullable<z.ZodNumber>;
|
|
108
|
-
previous_location_longitude: z.ZodNullable<z.ZodNumber>;
|
|
109
|
-
location_address: z.ZodNullable<z.ZodString>;
|
|
110
|
-
location_state: z.ZodNullable<z.ZodString>;
|
|
111
|
-
vehicle_odometer_miles: z.ZodNullable<z.ZodNumber>;
|
|
112
|
-
source: z.ZodEnum<{
|
|
101
|
+
declare const ManualBatchEntrySchema: z$1.ZodObject<{
|
|
102
|
+
driver_id: z$1.ZodString;
|
|
103
|
+
timestamp: z$1.ZodString;
|
|
104
|
+
location_latitude: z$1.ZodNumber;
|
|
105
|
+
location_longitude: z$1.ZodNumber;
|
|
106
|
+
location_address: z$1.ZodOptional<z$1.ZodString>;
|
|
107
|
+
vehicle_odometer_miles: z$1.ZodOptional<z$1.ZodNumber>;
|
|
108
|
+
}, z$1.core.$strip>;
|
|
109
|
+
declare const ManualBatchRequestSchema: z$1.ZodObject<{
|
|
110
|
+
entries: z$1.ZodArray<z$1.ZodObject<{
|
|
111
|
+
driver_id: z$1.ZodString;
|
|
112
|
+
timestamp: z$1.ZodString;
|
|
113
|
+
location_latitude: z$1.ZodNumber;
|
|
114
|
+
location_longitude: z$1.ZodNumber;
|
|
115
|
+
location_address: z$1.ZodOptional<z$1.ZodString>;
|
|
116
|
+
vehicle_odometer_miles: z$1.ZodOptional<z$1.ZodNumber>;
|
|
117
|
+
}, z$1.core.$strip>>;
|
|
118
|
+
}, z$1.core.$strip>;
|
|
119
|
+
declare const ManualBatchTelemetrySchema: z$1.ZodObject<{
|
|
120
|
+
id: z$1.ZodNumber;
|
|
121
|
+
driver_id: z$1.ZodString;
|
|
122
|
+
timestamp: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
123
|
+
remaining_drive_time_in_seconds: z$1.ZodNumber;
|
|
124
|
+
remaining_shift_time_in_seconds: z$1.ZodNumber;
|
|
125
|
+
remaining_cycle_time_in_seconds: z$1.ZodNumber;
|
|
126
|
+
remaining_break_time_in_seconds: z$1.ZodNumber;
|
|
127
|
+
location_latitude: z$1.ZodNumber;
|
|
128
|
+
location_longitude: z$1.ZodNumber;
|
|
129
|
+
previous_location_latitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
130
|
+
previous_location_longitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
131
|
+
location_address: z$1.ZodNullable<z$1.ZodString>;
|
|
132
|
+
location_state: z$1.ZodNullable<z$1.ZodString>;
|
|
133
|
+
vehicle_odometer_miles: z$1.ZodNullable<z$1.ZodNumber>;
|
|
134
|
+
source: z$1.ZodEnum<{
|
|
113
135
|
eld: "eld";
|
|
114
136
|
manual: "manual";
|
|
115
137
|
}>;
|
|
116
|
-
}, z.core.$strip>;
|
|
117
|
-
declare const ManualBatchResponseSchema: z.ZodObject<{
|
|
118
|
-
message: z.ZodString;
|
|
119
|
-
inserted_count: z.ZodNumber;
|
|
120
|
-
telemetry: z.ZodArray<z.ZodObject<{
|
|
121
|
-
id: z.ZodNumber;
|
|
122
|
-
driver_id: z.ZodString;
|
|
123
|
-
timestamp: z.ZodUnion<readonly [z.ZodString, z.ZodDate]>;
|
|
124
|
-
remaining_drive_time_in_seconds: z.ZodNumber;
|
|
125
|
-
remaining_shift_time_in_seconds: z.ZodNumber;
|
|
126
|
-
remaining_cycle_time_in_seconds: z.ZodNumber;
|
|
127
|
-
remaining_break_time_in_seconds: z.ZodNumber;
|
|
128
|
-
location_latitude: z.ZodNumber;
|
|
129
|
-
location_longitude: z.ZodNumber;
|
|
130
|
-
previous_location_latitude: z.ZodNullable<z.ZodNumber>;
|
|
131
|
-
previous_location_longitude: z.ZodNullable<z.ZodNumber>;
|
|
132
|
-
location_address: z.ZodNullable<z.ZodString>;
|
|
133
|
-
location_state: z.ZodNullable<z.ZodString>;
|
|
134
|
-
vehicle_odometer_miles: z.ZodNullable<z.ZodNumber>;
|
|
135
|
-
source: z.ZodEnum<{
|
|
138
|
+
}, z$1.core.$strip>;
|
|
139
|
+
declare const ManualBatchResponseSchema: z$1.ZodObject<{
|
|
140
|
+
message: z$1.ZodString;
|
|
141
|
+
inserted_count: z$1.ZodNumber;
|
|
142
|
+
telemetry: z$1.ZodArray<z$1.ZodObject<{
|
|
143
|
+
id: z$1.ZodNumber;
|
|
144
|
+
driver_id: z$1.ZodString;
|
|
145
|
+
timestamp: z$1.ZodUnion<readonly [z$1.ZodString, z$1.ZodDate]>;
|
|
146
|
+
remaining_drive_time_in_seconds: z$1.ZodNumber;
|
|
147
|
+
remaining_shift_time_in_seconds: z$1.ZodNumber;
|
|
148
|
+
remaining_cycle_time_in_seconds: z$1.ZodNumber;
|
|
149
|
+
remaining_break_time_in_seconds: z$1.ZodNumber;
|
|
150
|
+
location_latitude: z$1.ZodNumber;
|
|
151
|
+
location_longitude: z$1.ZodNumber;
|
|
152
|
+
previous_location_latitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
153
|
+
previous_location_longitude: z$1.ZodNullable<z$1.ZodNumber>;
|
|
154
|
+
location_address: z$1.ZodNullable<z$1.ZodString>;
|
|
155
|
+
location_state: z$1.ZodNullable<z$1.ZodString>;
|
|
156
|
+
vehicle_odometer_miles: z$1.ZodNullable<z$1.ZodNumber>;
|
|
157
|
+
source: z$1.ZodEnum<{
|
|
136
158
|
eld: "eld";
|
|
137
159
|
manual: "manual";
|
|
138
160
|
}>;
|
|
139
|
-
}, z.core.$strip>>;
|
|
140
|
-
}, z.core.$strip>;
|
|
141
|
-
type ManualBatchEntry = z.infer<typeof ManualBatchEntrySchema>;
|
|
142
|
-
type ManualBatchRequest = z.infer<typeof ManualBatchRequestSchema>;
|
|
143
|
-
type ManualBatchTelemetry = z.infer<typeof ManualBatchTelemetrySchema>;
|
|
144
|
-
type ManualBatchResponse = z.infer<typeof ManualBatchResponseSchema>;
|
|
161
|
+
}, z$1.core.$strip>>;
|
|
162
|
+
}, z$1.core.$strip>;
|
|
163
|
+
type ManualBatchEntry = z$1.infer<typeof ManualBatchEntrySchema>;
|
|
164
|
+
type ManualBatchRequest = z$1.infer<typeof ManualBatchRequestSchema>;
|
|
165
|
+
type ManualBatchTelemetry = z$1.infer<typeof ManualBatchTelemetrySchema>;
|
|
166
|
+
type ManualBatchResponse = z$1.infer<typeof ManualBatchResponseSchema>;
|
|
145
167
|
|
|
146
|
-
declare const GomotiveAuthDataSchema: z.ZodObject<{
|
|
147
|
-
kind: z.ZodLiteral<"gomotive">;
|
|
148
|
-
token: z.ZodString;
|
|
149
|
-
ownerOperator: z.ZodBoolean;
|
|
150
|
-
}, z.core.$strip>;
|
|
151
|
-
type GomotiveAuthData = z.infer<typeof GomotiveAuthDataSchema>;
|
|
152
|
-
declare const VistaAuthDataSchema: z.ZodObject<{
|
|
153
|
-
kind: z.ZodLiteral<"vista">;
|
|
154
|
-
driverId: z.ZodString;
|
|
155
|
-
cookie: z.ZodString;
|
|
156
|
-
}, z.core.$strip>;
|
|
157
|
-
type VistaAuthData = z.infer<typeof VistaAuthDataSchema>;
|
|
158
|
-
declare const MockAuthDataSchema: z.ZodObject<{
|
|
159
|
-
kind: z.ZodLiteral<"mock">;
|
|
160
|
-
cookie: z.ZodString;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
type MockAuthData = z.infer<typeof MockAuthDataSchema>;
|
|
163
|
-
declare const NoneAuthDataSchema: z.ZodObject<{
|
|
164
|
-
kind: z.ZodLiteral<"none">;
|
|
165
|
-
}, z.core.$strip>;
|
|
166
|
-
type NoneAuthData = z.infer<typeof NoneAuthDataSchema>;
|
|
167
|
-
declare const ProviderAuthDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
168
|
-
kind: z.ZodLiteral<"gomotive">;
|
|
169
|
-
token: z.ZodString;
|
|
170
|
-
ownerOperator: z.ZodBoolean;
|
|
171
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
172
|
-
kind: z.ZodLiteral<"vista">;
|
|
173
|
-
driverId: z.ZodString;
|
|
174
|
-
cookie: z.ZodString;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
kind: z.ZodLiteral<"mock">;
|
|
177
|
-
cookie: z.ZodString;
|
|
178
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
-
kind: z.ZodLiteral<"none">;
|
|
180
|
-
}, z.core.$strip>], "kind">;
|
|
181
|
-
type ProviderAuthData = z.infer<typeof ProviderAuthDataSchema>;
|
|
168
|
+
declare const GomotiveAuthDataSchema: z$1.ZodObject<{
|
|
169
|
+
kind: z$1.ZodLiteral<"gomotive">;
|
|
170
|
+
token: z$1.ZodString;
|
|
171
|
+
ownerOperator: z$1.ZodBoolean;
|
|
172
|
+
}, z$1.core.$strip>;
|
|
173
|
+
type GomotiveAuthData = z$1.infer<typeof GomotiveAuthDataSchema>;
|
|
174
|
+
declare const VistaAuthDataSchema: z$1.ZodObject<{
|
|
175
|
+
kind: z$1.ZodLiteral<"vista">;
|
|
176
|
+
driverId: z$1.ZodString;
|
|
177
|
+
cookie: z$1.ZodString;
|
|
178
|
+
}, z$1.core.$strip>;
|
|
179
|
+
type VistaAuthData = z$1.infer<typeof VistaAuthDataSchema>;
|
|
180
|
+
declare const MockAuthDataSchema: z$1.ZodObject<{
|
|
181
|
+
kind: z$1.ZodLiteral<"mock">;
|
|
182
|
+
cookie: z$1.ZodString;
|
|
183
|
+
}, z$1.core.$strip>;
|
|
184
|
+
type MockAuthData = z$1.infer<typeof MockAuthDataSchema>;
|
|
185
|
+
declare const NoneAuthDataSchema: z$1.ZodObject<{
|
|
186
|
+
kind: z$1.ZodLiteral<"none">;
|
|
187
|
+
}, z$1.core.$strip>;
|
|
188
|
+
type NoneAuthData = z$1.infer<typeof NoneAuthDataSchema>;
|
|
189
|
+
declare const ProviderAuthDataSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
190
|
+
kind: z$1.ZodLiteral<"gomotive">;
|
|
191
|
+
token: z$1.ZodString;
|
|
192
|
+
ownerOperator: z$1.ZodBoolean;
|
|
193
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
194
|
+
kind: z$1.ZodLiteral<"vista">;
|
|
195
|
+
driverId: z$1.ZodString;
|
|
196
|
+
cookie: z$1.ZodString;
|
|
197
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
198
|
+
kind: z$1.ZodLiteral<"mock">;
|
|
199
|
+
cookie: z$1.ZodString;
|
|
200
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
201
|
+
kind: z$1.ZodLiteral<"none">;
|
|
202
|
+
}, z$1.core.$strip>], "kind">;
|
|
203
|
+
type ProviderAuthData = z$1.infer<typeof ProviderAuthDataSchema>;
|
|
182
204
|
/**
|
|
183
205
|
* Serializes ProviderAuthData to a string for storage.
|
|
184
206
|
* Returns null for 'none' kind since there's nothing to cache.
|
|
@@ -192,80 +214,100 @@ declare function serializeAuthData(data: ProviderAuthData): string | null;
|
|
|
192
214
|
*/
|
|
193
215
|
declare function deserializeAuthData(authToken: string | null): ProviderAuthData;
|
|
194
216
|
|
|
195
|
-
declare const
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
}, z.core.$strip>;
|
|
201
|
-
type
|
|
202
|
-
declare const
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
kind: z.ZodLiteral<"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}, z.core.$strip
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}, z.core.$strip
|
|
259
|
-
|
|
260
|
-
success: z.ZodLiteral<
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
217
|
+
declare const CapturedTrafficEntrySchema: z$1.ZodObject<{
|
|
218
|
+
method: z$1.ZodString;
|
|
219
|
+
url: z$1.ZodString;
|
|
220
|
+
status: z$1.ZodNumber;
|
|
221
|
+
responseBody: z$1.ZodOptional<z$1.ZodString>;
|
|
222
|
+
}, z$1.core.$strip>;
|
|
223
|
+
type CapturedTrafficEntry = z$1.infer<typeof CapturedTrafficEntrySchema>;
|
|
224
|
+
declare const BrowserAuthRequestSchema: z$1.ZodObject<{
|
|
225
|
+
providerStub: z$1.ZodString;
|
|
226
|
+
providerUrl: z$1.ZodString;
|
|
227
|
+
username: z$1.ZodString;
|
|
228
|
+
encryptedPassword: z$1.ZodString;
|
|
229
|
+
captureTraffic: z$1.ZodOptional<z$1.ZodBoolean>;
|
|
230
|
+
}, z$1.core.$strip>;
|
|
231
|
+
type BrowserAuthRequest = z$1.infer<typeof BrowserAuthRequestSchema>;
|
|
232
|
+
declare const BrowserAuthSuccessSchema: z$1.ZodObject<{
|
|
233
|
+
success: z$1.ZodLiteral<true>;
|
|
234
|
+
authData: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
235
|
+
kind: z$1.ZodLiteral<"gomotive">;
|
|
236
|
+
token: z$1.ZodString;
|
|
237
|
+
ownerOperator: z$1.ZodBoolean;
|
|
238
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
239
|
+
kind: z$1.ZodLiteral<"vista">;
|
|
240
|
+
driverId: z$1.ZodString;
|
|
241
|
+
cookie: z$1.ZodString;
|
|
242
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
243
|
+
kind: z$1.ZodLiteral<"mock">;
|
|
244
|
+
cookie: z$1.ZodString;
|
|
245
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
246
|
+
kind: z$1.ZodLiteral<"none">;
|
|
247
|
+
}, z$1.core.$strip>], "kind">;
|
|
248
|
+
capturedTraffic: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
249
|
+
method: z$1.ZodString;
|
|
250
|
+
url: z$1.ZodString;
|
|
251
|
+
status: z$1.ZodNumber;
|
|
252
|
+
responseBody: z$1.ZodOptional<z$1.ZodString>;
|
|
253
|
+
}, z$1.core.$strip>>>;
|
|
254
|
+
}, z$1.core.$strip>;
|
|
255
|
+
declare const BrowserAuthFailureSchema: z$1.ZodObject<{
|
|
256
|
+
success: z$1.ZodLiteral<false>;
|
|
257
|
+
error: z$1.ZodString;
|
|
258
|
+
}, z$1.core.$strip>;
|
|
259
|
+
declare const BrowserAuthResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
260
|
+
success: z$1.ZodLiteral<true>;
|
|
261
|
+
authData: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
262
|
+
kind: z$1.ZodLiteral<"gomotive">;
|
|
263
|
+
token: z$1.ZodString;
|
|
264
|
+
ownerOperator: z$1.ZodBoolean;
|
|
265
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
266
|
+
kind: z$1.ZodLiteral<"vista">;
|
|
267
|
+
driverId: z$1.ZodString;
|
|
268
|
+
cookie: z$1.ZodString;
|
|
269
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
270
|
+
kind: z$1.ZodLiteral<"mock">;
|
|
271
|
+
cookie: z$1.ZodString;
|
|
272
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
273
|
+
kind: z$1.ZodLiteral<"none">;
|
|
274
|
+
}, z$1.core.$strip>], "kind">;
|
|
275
|
+
capturedTraffic: z$1.ZodOptional<z$1.ZodArray<z$1.ZodObject<{
|
|
276
|
+
method: z$1.ZodString;
|
|
277
|
+
url: z$1.ZodString;
|
|
278
|
+
status: z$1.ZodNumber;
|
|
279
|
+
responseBody: z$1.ZodOptional<z$1.ZodString>;
|
|
280
|
+
}, z$1.core.$strip>>>;
|
|
281
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
282
|
+
success: z$1.ZodLiteral<false>;
|
|
283
|
+
error: z$1.ZodString;
|
|
284
|
+
}, z$1.core.$strip>], "success">;
|
|
285
|
+
type BrowserAuthResponse = z$1.infer<typeof BrowserAuthResponseSchema>;
|
|
286
|
+
declare const CrawlPageSchema: z$1.ZodObject<{
|
|
287
|
+
url: z$1.ZodString;
|
|
288
|
+
html: z$1.ZodString;
|
|
289
|
+
}, z$1.core.$strip>;
|
|
290
|
+
declare const BrowserCrawlSuccessSchema: z$1.ZodObject<{
|
|
291
|
+
success: z$1.ZodLiteral<true>;
|
|
292
|
+
pages: z$1.ZodArray<z$1.ZodObject<{
|
|
293
|
+
url: z$1.ZodString;
|
|
294
|
+
html: z$1.ZodString;
|
|
295
|
+
}, z$1.core.$strip>>;
|
|
296
|
+
}, z$1.core.$strip>;
|
|
297
|
+
declare const BrowserCrawlFailureSchema: z$1.ZodObject<{
|
|
298
|
+
success: z$1.ZodLiteral<false>;
|
|
299
|
+
error: z$1.ZodString;
|
|
300
|
+
}, z$1.core.$strip>;
|
|
301
|
+
declare const BrowserCrawlResponseSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
|
|
302
|
+
success: z$1.ZodLiteral<true>;
|
|
303
|
+
pages: z$1.ZodArray<z$1.ZodObject<{
|
|
304
|
+
url: z$1.ZodString;
|
|
305
|
+
html: z$1.ZodString;
|
|
306
|
+
}, z$1.core.$strip>>;
|
|
307
|
+
}, z$1.core.$strip>, z$1.ZodObject<{
|
|
308
|
+
success: z$1.ZodLiteral<false>;
|
|
309
|
+
error: z$1.ZodString;
|
|
310
|
+
}, z$1.core.$strip>], "success">;
|
|
311
|
+
type BrowserCrawlResponse = z$1.infer<typeof BrowserCrawlResponseSchema>;
|
|
270
312
|
|
|
271
|
-
export { BrowserAuthFailureSchema, type BrowserAuthRequest, BrowserAuthRequestSchema, type BrowserAuthResponse, BrowserAuthResponseSchema, BrowserAuthSuccessSchema, BrowserCrawlFailureSchema, type BrowserCrawlResponse, BrowserCrawlResponseSchema, BrowserCrawlSuccessSchema, CrawlPageSchema, type DeleteProviderAccountRequest, type DeleteProviderAccountRequestData, DeleteProviderAccountRequestSchema, type DeleteProviderAccountResponse, type DeleteProviderAccountResponseData, DeleteProviderAccountResponseSchema, type DriverRanking, type DriverRankingData, DriverRankingSchema, type DriverRankingsRequest, type DriverRankingsRequestData, DriverRankingsRequestSchema, type DriverRankingsResponse, type DriverRankingsResponseData, DriverRankingsResponseSchema, type GomotiveAuthData, GomotiveAuthDataSchema, type ManualBatchEntry, ManualBatchEntrySchema, type ManualBatchRequest, ManualBatchRequestSchema, type ManualBatchResponse, ManualBatchResponseSchema, type ManualBatchTelemetry, ManualBatchTelemetrySchema, type MockAuthData, MockAuthDataSchema, type NoneAuthData, NoneAuthDataSchema, type ProviderAuthData, ProviderAuthDataSchema, type StateHeatmapEntry, type StateHeatmapEntryData, StateHeatmapEntrySchema, type StateHeatmapRequest, type StateHeatmapRequestData, StateHeatmapRequestSchema, type StateHeatmapResponse, type StateHeatmapResponseData, StateHeatmapResponseSchema, type VistaAuthData, VistaAuthDataSchema, deserializeAuthData, serializeAuthData };
|
|
313
|
+
export { type AnonymousDriverErrorResponse, type AnonymousDriverErrorResponseData, AnonymousDriverErrorResponseSchema, type AnonymousDriverResponse, type AnonymousDriverResponseData, AnonymousDriverResponseSchema, BrowserAuthFailureSchema, type BrowserAuthRequest, BrowserAuthRequestSchema, type BrowserAuthResponse, BrowserAuthResponseSchema, BrowserAuthSuccessSchema, BrowserCrawlFailureSchema, type BrowserCrawlResponse, BrowserCrawlResponseSchema, BrowserCrawlSuccessSchema, type CapturedTrafficEntry, CapturedTrafficEntrySchema, CrawlPageSchema, type CreateAnonymousDriverBody, type CreateAnonymousDriverBodyData, CreateAnonymousDriverBodySchema, type DeleteProviderAccountRequest, type DeleteProviderAccountRequestData, DeleteProviderAccountRequestSchema, type DeleteProviderAccountResponse, type DeleteProviderAccountResponseData, DeleteProviderAccountResponseSchema, type DriverRanking, type DriverRankingData, DriverRankingSchema, type DriverRankingsRequest, type DriverRankingsRequestData, DriverRankingsRequestSchema, type DriverRankingsResponse, type DriverRankingsResponseData, DriverRankingsResponseSchema, type GomotiveAuthData, GomotiveAuthDataSchema, type ManualBatchEntry, ManualBatchEntrySchema, type ManualBatchRequest, ManualBatchRequestSchema, type ManualBatchResponse, ManualBatchResponseSchema, type ManualBatchTelemetry, ManualBatchTelemetrySchema, type MockAuthData, MockAuthDataSchema, type NoneAuthData, NoneAuthDataSchema, type ProviderAuthData, ProviderAuthDataSchema, type StateHeatmapEntry, type StateHeatmapEntryData, StateHeatmapEntrySchema, type StateHeatmapRequest, type StateHeatmapRequestData, StateHeatmapRequestSchema, type StateHeatmapResponse, type StateHeatmapResponseData, StateHeatmapResponseSchema, type VistaAuthData, VistaAuthDataSchema, deserializeAuthData, serializeAuthData };
|