vms-nest-prisma-api-document 20.0.0 → 23.0.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/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +41 -41
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +23 -23
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -15
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +6 -6
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +22 -22
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +15 -15
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +11 -11
- package/dist/services/gps/features/user_report_preferences.service.d.ts +102 -9
- package/dist/services/gps/features/user_report_preferences.service.js +21 -0
- package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
user_id: string;
|
|
24
24
|
organisation_id: string;
|
|
25
|
-
country_id: string;
|
|
26
25
|
login_from: LoginFrom;
|
|
26
|
+
country_id: string;
|
|
27
27
|
os_details: Record<string, any>;
|
|
28
28
|
ip_details: Record<string, any>;
|
|
29
29
|
}, {
|
|
30
30
|
user_id: string;
|
|
31
31
|
organisation_id: string;
|
|
32
|
-
country_id: string;
|
|
33
32
|
login_from: LoginFrom;
|
|
33
|
+
country_id: string;
|
|
34
34
|
os_details?: Record<string, any> | undefined;
|
|
35
35
|
ip_details?: Record<string, any> | undefined;
|
|
36
36
|
}>;
|
|
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
login_from: LoginFrom;
|
|
52
51
|
search: string;
|
|
53
52
|
paging: PAGING;
|
|
54
53
|
page_count: number;
|
|
55
54
|
page_index: number;
|
|
55
|
+
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
|
|
|
43
43
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
44
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
login_from: LoginFrom;
|
|
47
46
|
search: string;
|
|
48
47
|
paging: PAGING;
|
|
49
48
|
page_count: number;
|
|
50
49
|
page_index: number;
|
|
50
|
+
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -101,7 +101,6 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
|
101
101
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
102
102
|
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
103
103
|
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
fleet_fuel_refill_id: string;
|
|
105
104
|
status: Status;
|
|
106
105
|
organisation_id: string;
|
|
107
106
|
usage_type: string;
|
|
@@ -112,12 +111,13 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
|
|
|
112
111
|
file_description: string;
|
|
113
112
|
file_size: number;
|
|
114
113
|
file_metadata: Record<string, any>;
|
|
115
|
-
}, {
|
|
116
114
|
fleet_fuel_refill_id: string;
|
|
115
|
+
}, {
|
|
117
116
|
status: Status;
|
|
118
117
|
organisation_id: string;
|
|
119
118
|
usage_type: string;
|
|
120
119
|
file_type: FileType;
|
|
120
|
+
fleet_fuel_refill_id: string;
|
|
121
121
|
file_url?: string | undefined;
|
|
122
122
|
file_key?: string | undefined;
|
|
123
123
|
file_name?: string | undefined;
|
|
@@ -181,7 +181,6 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
181
181
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
182
182
|
fleet_fuel_refill_id: z.ZodEffects<z.ZodString, string, string>;
|
|
183
183
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
184
|
-
fleet_fuel_refill_id: string;
|
|
185
184
|
status: Status;
|
|
186
185
|
organisation_id: string;
|
|
187
186
|
usage_type: string;
|
|
@@ -192,12 +191,13 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
192
191
|
file_description: string;
|
|
193
192
|
file_size: number;
|
|
194
193
|
file_metadata: Record<string, any>;
|
|
195
|
-
}, {
|
|
196
194
|
fleet_fuel_refill_id: string;
|
|
195
|
+
}, {
|
|
197
196
|
status: Status;
|
|
198
197
|
organisation_id: string;
|
|
199
198
|
usage_type: string;
|
|
200
199
|
file_type: FileType;
|
|
200
|
+
fleet_fuel_refill_id: string;
|
|
201
201
|
file_url?: string | undefined;
|
|
202
202
|
file_key?: string | undefined;
|
|
203
203
|
file_name?: string | undefined;
|
|
@@ -206,12 +206,23 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
206
206
|
file_metadata?: Record<string, any> | undefined;
|
|
207
207
|
}>, "many">>>;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
odometer_reading: number;
|
|
209
210
|
date_time: string;
|
|
210
211
|
admin_verify_status: GPSFuelApproveStatus;
|
|
211
212
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
212
213
|
entry_source: RefillEntrySource;
|
|
213
214
|
source_reference_id: string;
|
|
214
215
|
source_notes: string;
|
|
216
|
+
google_location: string;
|
|
217
|
+
status: Status;
|
|
218
|
+
organisation_id: string;
|
|
219
|
+
user_id: string;
|
|
220
|
+
vehicle_id: string;
|
|
221
|
+
driver_id: string;
|
|
222
|
+
device_id: string;
|
|
223
|
+
vehicle_fuel_type_id: string;
|
|
224
|
+
vehicle_fuel_unit_id: string;
|
|
225
|
+
time_zone_id: string;
|
|
215
226
|
refill_method: RefillMethod;
|
|
216
227
|
refill_details: string;
|
|
217
228
|
filled_by_person: string;
|
|
@@ -221,23 +232,12 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
221
232
|
payment_reference_number: string;
|
|
222
233
|
fuel_card_number: string;
|
|
223
234
|
payment_notes: string;
|
|
224
|
-
google_location: string;
|
|
225
|
-
odometer_reading: number;
|
|
226
235
|
tank_size: number;
|
|
227
236
|
is_full_tank: YesNo;
|
|
228
237
|
is_previous_entries_missed: YesNo;
|
|
229
|
-
status: Status;
|
|
230
|
-
organisation_id: string;
|
|
231
|
-
user_id: string;
|
|
232
|
-
vehicle_id: string;
|
|
233
|
-
driver_id: string;
|
|
234
|
-
device_id: string;
|
|
235
238
|
vendor_id: string;
|
|
236
239
|
fuel_station_id: string;
|
|
237
|
-
vehicle_fuel_type_id: string;
|
|
238
|
-
vehicle_fuel_unit_id: string;
|
|
239
240
|
FleetFuelRefillFile: {
|
|
240
|
-
fleet_fuel_refill_id: string;
|
|
241
241
|
status: Status;
|
|
242
242
|
organisation_id: string;
|
|
243
243
|
usage_type: string;
|
|
@@ -248,46 +248,50 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
248
248
|
file_description: string;
|
|
249
249
|
file_size: number;
|
|
250
250
|
file_metadata: Record<string, any>;
|
|
251
|
+
fleet_fuel_refill_id: string;
|
|
251
252
|
}[];
|
|
252
|
-
|
|
253
|
+
cost_per_unit?: number | undefined;
|
|
254
|
+
total_cost?: number | undefined;
|
|
255
|
+
latitude?: number | undefined;
|
|
256
|
+
longitude?: number | undefined;
|
|
253
257
|
before_refill_quantity?: number | undefined;
|
|
254
258
|
after_refill_quantity?: number | undefined;
|
|
255
259
|
refill_quantity?: number | undefined;
|
|
256
260
|
verified_refill_quantity?: number | undefined;
|
|
257
261
|
diff_refill_quantity?: number | undefined;
|
|
258
|
-
cost_per_unit?: number | undefined;
|
|
259
|
-
total_cost?: number | undefined;
|
|
260
|
-
latitude?: number | undefined;
|
|
261
|
-
longitude?: number | undefined;
|
|
262
262
|
}, {
|
|
263
263
|
date_time: string;
|
|
264
264
|
admin_verify_status: GPSFuelApproveStatus;
|
|
265
265
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
266
|
-
payment_mode: PaymentMode;
|
|
267
|
-
payment_status: PaymentStatus;
|
|
268
|
-
is_full_tank: YesNo;
|
|
269
|
-
is_previous_entries_missed: YesNo;
|
|
270
266
|
status: Status;
|
|
271
267
|
organisation_id: string;
|
|
272
268
|
user_id: string;
|
|
273
269
|
vehicle_id: string;
|
|
274
270
|
driver_id: string;
|
|
275
271
|
device_id: string;
|
|
276
|
-
vendor_id: string;
|
|
277
|
-
fuel_station_id: string;
|
|
278
272
|
vehicle_fuel_type_id: string;
|
|
279
273
|
vehicle_fuel_unit_id: string;
|
|
280
274
|
time_zone_id: string;
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
275
|
+
payment_mode: PaymentMode;
|
|
276
|
+
payment_status: PaymentStatus;
|
|
277
|
+
is_full_tank: YesNo;
|
|
278
|
+
is_previous_entries_missed: YesNo;
|
|
279
|
+
vendor_id: string;
|
|
280
|
+
fuel_station_id: string;
|
|
281
|
+
odometer_reading?: unknown;
|
|
286
282
|
cost_per_unit?: unknown;
|
|
287
283
|
total_cost?: unknown;
|
|
288
284
|
entry_source?: RefillEntrySource | undefined;
|
|
289
285
|
source_reference_id?: string | undefined;
|
|
290
286
|
source_notes?: string | undefined;
|
|
287
|
+
latitude?: unknown;
|
|
288
|
+
longitude?: unknown;
|
|
289
|
+
google_location?: string | undefined;
|
|
290
|
+
before_refill_quantity?: unknown;
|
|
291
|
+
after_refill_quantity?: unknown;
|
|
292
|
+
refill_quantity?: unknown;
|
|
293
|
+
verified_refill_quantity?: unknown;
|
|
294
|
+
diff_refill_quantity?: unknown;
|
|
291
295
|
refill_method?: RefillMethod | undefined;
|
|
292
296
|
refill_details?: string | undefined;
|
|
293
297
|
filled_by_person?: string | undefined;
|
|
@@ -295,17 +299,13 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
|
|
|
295
299
|
payment_reference_number?: string | undefined;
|
|
296
300
|
fuel_card_number?: string | undefined;
|
|
297
301
|
payment_notes?: string | undefined;
|
|
298
|
-
latitude?: unknown;
|
|
299
|
-
longitude?: unknown;
|
|
300
|
-
google_location?: string | undefined;
|
|
301
|
-
odometer_reading?: unknown;
|
|
302
302
|
tank_size?: unknown;
|
|
303
303
|
FleetFuelRefillFile?: {
|
|
304
|
-
fleet_fuel_refill_id: string;
|
|
305
304
|
status: Status;
|
|
306
305
|
organisation_id: string;
|
|
307
306
|
usage_type: string;
|
|
308
307
|
file_type: FileType;
|
|
308
|
+
fleet_fuel_refill_id: string;
|
|
309
309
|
file_url?: string | undefined;
|
|
310
310
|
file_key?: string | undefined;
|
|
311
311
|
file_name?: string | undefined;
|
|
@@ -391,13 +391,13 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
|
|
|
391
391
|
vehicle_ids: string[];
|
|
392
392
|
driver_ids: string[];
|
|
393
393
|
device_ids: string[];
|
|
394
|
-
vendor_ids: string[];
|
|
395
|
-
fuel_station_ids: string[];
|
|
396
394
|
vehicle_fuel_type_ids: string[];
|
|
397
395
|
vehicle_fuel_unit_ids: string[];
|
|
398
|
-
fleet_fuel_refill_ids: string[];
|
|
399
396
|
from_date: string;
|
|
400
397
|
to_date: string;
|
|
398
|
+
vendor_ids: string[];
|
|
399
|
+
fuel_station_ids: string[];
|
|
400
|
+
fleet_fuel_refill_ids: string[];
|
|
401
401
|
}, {
|
|
402
402
|
time_zone_id: string;
|
|
403
403
|
date_format_id: string;
|
|
@@ -430,10 +430,10 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
|
|
|
430
430
|
vehicle_ids?: string[] | undefined;
|
|
431
431
|
driver_ids?: string[] | undefined;
|
|
432
432
|
device_ids?: string[] | undefined;
|
|
433
|
-
vendor_ids?: string[] | undefined;
|
|
434
|
-
fuel_station_ids?: string[] | undefined;
|
|
435
433
|
vehicle_fuel_type_ids?: string[] | undefined;
|
|
436
434
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
435
|
+
vendor_ids?: string[] | undefined;
|
|
436
|
+
fuel_station_ids?: string[] | undefined;
|
|
437
437
|
fleet_fuel_refill_ids?: string[] | undefined;
|
|
438
438
|
}>;
|
|
439
439
|
type FleetFuelRefillQueryDTO = z.infer<typeof FleetFuelRefillQuerySchema>;
|
|
@@ -84,6 +84,7 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
84
84
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
85
85
|
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
fleet_fuel_removal_id: string;
|
|
87
88
|
status: Status;
|
|
88
89
|
organisation_id: string;
|
|
89
90
|
usage_type: string;
|
|
@@ -94,13 +95,12 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
94
95
|
file_description: string;
|
|
95
96
|
file_size: number;
|
|
96
97
|
file_metadata: Record<string, any>;
|
|
97
|
-
fleet_fuel_removal_id: string;
|
|
98
98
|
}, {
|
|
99
|
+
fleet_fuel_removal_id: string;
|
|
99
100
|
status: Status;
|
|
100
101
|
organisation_id: string;
|
|
101
102
|
usage_type: string;
|
|
102
103
|
file_type: FileType;
|
|
103
|
-
fleet_fuel_removal_id: string;
|
|
104
104
|
file_url?: string | undefined;
|
|
105
105
|
file_key?: string | undefined;
|
|
106
106
|
file_name?: string | undefined;
|
|
@@ -152,6 +152,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
152
152
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
153
153
|
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
154
154
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
155
|
+
fleet_fuel_removal_id: string;
|
|
155
156
|
status: Status;
|
|
156
157
|
organisation_id: string;
|
|
157
158
|
usage_type: string;
|
|
@@ -162,13 +163,12 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
162
163
|
file_description: string;
|
|
163
164
|
file_size: number;
|
|
164
165
|
file_metadata: Record<string, any>;
|
|
165
|
-
fleet_fuel_removal_id: string;
|
|
166
166
|
}, {
|
|
167
|
+
fleet_fuel_removal_id: string;
|
|
167
168
|
status: Status;
|
|
168
169
|
organisation_id: string;
|
|
169
170
|
usage_type: string;
|
|
170
171
|
file_type: FileType;
|
|
171
|
-
fleet_fuel_removal_id: string;
|
|
172
172
|
file_url?: string | undefined;
|
|
173
173
|
file_key?: string | undefined;
|
|
174
174
|
file_name?: string | undefined;
|
|
@@ -177,14 +177,16 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
177
177
|
file_metadata?: Record<string, any> | undefined;
|
|
178
178
|
}>, "many">>>;
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
odometer_reading: number;
|
|
180
181
|
date_time: string;
|
|
181
182
|
admin_verify_status: GPSFuelApproveStatus;
|
|
182
183
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
184
|
+
fuel_removal_reason_id: string;
|
|
185
|
+
removal_details: string;
|
|
183
186
|
entry_source: RefillEntrySource;
|
|
184
187
|
source_reference_id: string;
|
|
185
188
|
source_notes: string;
|
|
186
189
|
google_location: string;
|
|
187
|
-
odometer_reading: number;
|
|
188
190
|
status: Status;
|
|
189
191
|
organisation_id: string;
|
|
190
192
|
user_id: string;
|
|
@@ -193,10 +195,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
193
195
|
device_id: string;
|
|
194
196
|
vehicle_fuel_type_id: string;
|
|
195
197
|
vehicle_fuel_unit_id: string;
|
|
196
|
-
time_zone_id: string;
|
|
197
|
-
fuel_removal_reason_id: string;
|
|
198
|
-
removal_details: string;
|
|
199
198
|
FleetFuelRemovalFile: {
|
|
199
|
+
fleet_fuel_removal_id: string;
|
|
200
200
|
status: Status;
|
|
201
201
|
organisation_id: string;
|
|
202
202
|
usage_type: string;
|
|
@@ -207,21 +207,22 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
207
207
|
file_description: string;
|
|
208
208
|
file_size: number;
|
|
209
209
|
file_metadata: Record<string, any>;
|
|
210
|
-
fleet_fuel_removal_id: string;
|
|
211
210
|
}[];
|
|
212
|
-
|
|
213
|
-
total_cost?: number | undefined;
|
|
214
|
-
latitude?: number | undefined;
|
|
215
|
-
longitude?: number | undefined;
|
|
211
|
+
time_zone_id: string;
|
|
216
212
|
before_removal_quantity?: number | undefined;
|
|
217
213
|
after_removal_quantity?: number | undefined;
|
|
218
214
|
removal_quantity?: number | undefined;
|
|
219
215
|
verified_removal_quantity?: number | undefined;
|
|
220
216
|
diff_removal_quantity?: number | undefined;
|
|
217
|
+
cost_per_unit?: number | undefined;
|
|
218
|
+
total_cost?: number | undefined;
|
|
219
|
+
latitude?: number | undefined;
|
|
220
|
+
longitude?: number | undefined;
|
|
221
221
|
}, {
|
|
222
222
|
date_time: string;
|
|
223
223
|
admin_verify_status: GPSFuelApproveStatus;
|
|
224
224
|
transporter_verify_status: GPSFuelApproveStatus;
|
|
225
|
+
fuel_removal_reason_id: string;
|
|
225
226
|
status: Status;
|
|
226
227
|
organisation_id: string;
|
|
227
228
|
user_id: string;
|
|
@@ -231,28 +232,27 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
231
232
|
vehicle_fuel_type_id: string;
|
|
232
233
|
vehicle_fuel_unit_id: string;
|
|
233
234
|
time_zone_id: string;
|
|
234
|
-
|
|
235
|
+
before_removal_quantity?: unknown;
|
|
236
|
+
after_removal_quantity?: unknown;
|
|
237
|
+
removal_quantity?: unknown;
|
|
238
|
+
verified_removal_quantity?: unknown;
|
|
239
|
+
diff_removal_quantity?: unknown;
|
|
240
|
+
odometer_reading?: unknown;
|
|
235
241
|
cost_per_unit?: unknown;
|
|
236
242
|
total_cost?: unknown;
|
|
243
|
+
removal_details?: string | undefined;
|
|
237
244
|
entry_source?: RefillEntrySource | undefined;
|
|
238
245
|
source_reference_id?: string | undefined;
|
|
239
246
|
source_notes?: string | undefined;
|
|
240
247
|
latitude?: unknown;
|
|
241
248
|
longitude?: unknown;
|
|
242
249
|
google_location?: string | undefined;
|
|
243
|
-
odometer_reading?: unknown;
|
|
244
|
-
before_removal_quantity?: unknown;
|
|
245
|
-
after_removal_quantity?: unknown;
|
|
246
|
-
removal_quantity?: unknown;
|
|
247
|
-
verified_removal_quantity?: unknown;
|
|
248
|
-
diff_removal_quantity?: unknown;
|
|
249
|
-
removal_details?: string | undefined;
|
|
250
250
|
FleetFuelRemovalFile?: {
|
|
251
|
+
fleet_fuel_removal_id: string;
|
|
251
252
|
status: Status;
|
|
252
253
|
organisation_id: string;
|
|
253
254
|
usage_type: string;
|
|
254
255
|
file_type: FileType;
|
|
255
|
-
fleet_fuel_removal_id: string;
|
|
256
256
|
file_url?: string | undefined;
|
|
257
257
|
file_key?: string | undefined;
|
|
258
258
|
file_name?: string | undefined;
|
|
@@ -338,9 +338,9 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
338
338
|
device_ids: string[];
|
|
339
339
|
vehicle_fuel_type_ids: string[];
|
|
340
340
|
vehicle_fuel_unit_ids: string[];
|
|
341
|
+
fuel_removal_reason_ids: string[];
|
|
341
342
|
from_date: string;
|
|
342
343
|
to_date: string;
|
|
343
|
-
fuel_removal_reason_ids: string[];
|
|
344
344
|
}, {
|
|
345
345
|
time_zone_id: string;
|
|
346
346
|
date_format_id: string;
|
|
@@ -82,9 +82,6 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
82
82
|
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
83
83
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: Status;
|
|
86
|
-
organisation_id: string;
|
|
87
|
-
country_code: string;
|
|
88
85
|
geofence_name: string;
|
|
89
86
|
geofence_purpose_type: GeofencePurposeType;
|
|
90
87
|
geofence_description: string;
|
|
@@ -102,23 +99,25 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
102
99
|
state_province_region: string;
|
|
103
100
|
postal_code: string;
|
|
104
101
|
country: string;
|
|
102
|
+
country_code: string;
|
|
105
103
|
google_location: string;
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
status: Status;
|
|
105
|
+
organisation_id: string;
|
|
108
106
|
radius_m?: number | undefined;
|
|
109
107
|
radius_km?: number | undefined;
|
|
108
|
+
latitude?: number | undefined;
|
|
109
|
+
longitude?: number | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
status: Status;
|
|
112
|
-
organisation_id: string;
|
|
113
111
|
geofence_name: string;
|
|
114
112
|
geofence_purpose_type: GeofencePurposeType;
|
|
115
113
|
geofence_type: GeofenceType;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
longitude?: unknown;
|
|
114
|
+
status: Status;
|
|
115
|
+
organisation_id: string;
|
|
119
116
|
geofence_description?: string | undefined;
|
|
120
117
|
radius_m?: unknown;
|
|
121
118
|
radius_km?: unknown;
|
|
119
|
+
latitude?: unknown;
|
|
120
|
+
longitude?: unknown;
|
|
122
121
|
poliline_data?: {
|
|
123
122
|
latitude?: unknown;
|
|
124
123
|
longitude?: unknown;
|
|
@@ -132,6 +131,7 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
132
131
|
state_province_region?: string | undefined;
|
|
133
132
|
postal_code?: string | undefined;
|
|
134
133
|
country?: string | undefined;
|
|
134
|
+
country_code?: string | undefined;
|
|
135
135
|
google_location?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
|
|
@@ -171,8 +171,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
171
171
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
172
172
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
175
|
+
geofence_type: GeofenceType[];
|
|
174
176
|
status: Status[];
|
|
175
|
-
time_zone_id: string;
|
|
176
177
|
search: string;
|
|
177
178
|
paging: PAGING;
|
|
178
179
|
page_count: number;
|
|
@@ -192,13 +193,14 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
192
193
|
}[];
|
|
193
194
|
include_master_data: YesNo;
|
|
194
195
|
date_format_id: string;
|
|
196
|
+
time_zone_id: string;
|
|
195
197
|
organisation_ids: string[];
|
|
196
198
|
gps_geofence_ids: string[];
|
|
197
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
198
|
-
geofence_type: GeofenceType[];
|
|
199
199
|
}, {
|
|
200
|
-
time_zone_id: string;
|
|
201
200
|
date_format_id: string;
|
|
201
|
+
time_zone_id: string;
|
|
202
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
203
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
202
204
|
status?: Status[] | undefined;
|
|
203
205
|
search?: string | undefined;
|
|
204
206
|
paging?: PAGING | undefined;
|
|
@@ -220,8 +222,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
220
222
|
include_master_data?: YesNo | undefined;
|
|
221
223
|
organisation_ids?: string[] | undefined;
|
|
222
224
|
gps_geofence_ids?: string[] | undefined;
|
|
223
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
224
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
227
227
|
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|
|
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
37
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
|
|
40
|
-
geofence_time: string;
|
|
39
|
+
gps_geofence_id: string;
|
|
41
40
|
status: Status;
|
|
42
41
|
organisation_id: string;
|
|
43
|
-
vehicle_id: string;
|
|
44
|
-
driver_id: string;
|
|
45
|
-
gps_geofence_id: string;
|
|
46
42
|
time_zone_id: string;
|
|
47
|
-
|
|
43
|
+
driver_id: string;
|
|
44
|
+
vehicle_id: string;
|
|
48
45
|
geofence_status_type: GeofenceStatusType;
|
|
49
46
|
geofence_time: string;
|
|
47
|
+
}, {
|
|
48
|
+
gps_geofence_id: string;
|
|
50
49
|
status: Status;
|
|
51
50
|
organisation_id: string;
|
|
52
|
-
vehicle_id: string;
|
|
53
|
-
driver_id: string;
|
|
54
|
-
gps_geofence_id: string;
|
|
55
51
|
time_zone_id: string;
|
|
52
|
+
driver_id: string;
|
|
53
|
+
vehicle_id: string;
|
|
54
|
+
geofence_status_type: GeofenceStatusType;
|
|
55
|
+
geofence_time: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
58
58
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -94,9 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
94
94
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
geofence_status_type: GeofenceStatusType[];
|
|
98
97
|
status: Status[];
|
|
99
|
-
time_zone_id: string;
|
|
100
98
|
search: string;
|
|
101
99
|
paging: PAGING;
|
|
102
100
|
page_count: number;
|
|
@@ -116,18 +114,19 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
116
114
|
}[];
|
|
117
115
|
include_master_data: YesNo;
|
|
118
116
|
date_format_id: string;
|
|
117
|
+
time_zone_id: string;
|
|
119
118
|
organisation_ids: string[];
|
|
119
|
+
gps_geofence_ids: string[];
|
|
120
120
|
vehicle_ids: string[];
|
|
121
121
|
driver_ids: string[];
|
|
122
|
-
|
|
122
|
+
geofence_status_type: GeofenceStatusType[];
|
|
123
123
|
from_date: string;
|
|
124
124
|
to_date: string;
|
|
125
125
|
}, {
|
|
126
|
-
time_zone_id: string;
|
|
127
126
|
date_format_id: string;
|
|
127
|
+
time_zone_id: string;
|
|
128
128
|
from_date: string;
|
|
129
129
|
to_date: string;
|
|
130
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
131
130
|
status?: Status[] | undefined;
|
|
132
131
|
search?: string | undefined;
|
|
133
132
|
paging?: PAGING | undefined;
|
|
@@ -148,9 +147,10 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
148
147
|
}[] | undefined;
|
|
149
148
|
include_master_data?: YesNo | undefined;
|
|
150
149
|
organisation_ids?: string[] | undefined;
|
|
150
|
+
gps_geofence_ids?: string[] | undefined;
|
|
151
151
|
vehicle_ids?: string[] | undefined;
|
|
152
152
|
driver_ids?: string[] | undefined;
|
|
153
|
-
|
|
153
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
156
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
@@ -46,24 +46,24 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
46
46
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
47
47
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
gps_geofence_id: string;
|
|
49
50
|
status: Status;
|
|
50
51
|
organisation_id: string;
|
|
51
|
-
vehicle_id: string;
|
|
52
|
-
driver_id: string;
|
|
53
|
-
gps_geofence_id: string;
|
|
54
52
|
time_zone_id: string;
|
|
53
|
+
driver_id: string;
|
|
54
|
+
vehicle_id: string;
|
|
55
55
|
geofence_enter_date_time: string;
|
|
56
56
|
geofence_exit_date_time: string;
|
|
57
57
|
duration_seconds: number;
|
|
58
58
|
enter_gps_geofence_transaction_id: string;
|
|
59
59
|
exit_gps_geofence_transaction_id: string;
|
|
60
60
|
}, {
|
|
61
|
+
gps_geofence_id: string;
|
|
61
62
|
status: Status;
|
|
62
63
|
organisation_id: string;
|
|
63
|
-
vehicle_id: string;
|
|
64
|
-
driver_id: string;
|
|
65
|
-
gps_geofence_id: string;
|
|
66
64
|
time_zone_id: string;
|
|
65
|
+
driver_id: string;
|
|
66
|
+
vehicle_id: string;
|
|
67
67
|
geofence_enter_date_time: string;
|
|
68
68
|
enter_gps_geofence_transaction_id: string;
|
|
69
69
|
exit_gps_geofence_transaction_id: string;
|
|
@@ -110,7 +110,6 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
110
110
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
status: Status[];
|
|
113
|
-
time_zone_id: string;
|
|
114
113
|
search: string;
|
|
115
114
|
paging: PAGING;
|
|
116
115
|
page_count: number;
|
|
@@ -130,15 +129,16 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
130
129
|
}[];
|
|
131
130
|
include_master_data: YesNo;
|
|
132
131
|
date_format_id: string;
|
|
132
|
+
time_zone_id: string;
|
|
133
133
|
organisation_ids: string[];
|
|
134
|
+
gps_geofence_ids: string[];
|
|
134
135
|
vehicle_ids: string[];
|
|
135
136
|
driver_ids: string[];
|
|
136
|
-
gps_geofence_ids: string[];
|
|
137
137
|
from_date: string;
|
|
138
138
|
to_date: string;
|
|
139
139
|
}, {
|
|
140
|
-
time_zone_id: string;
|
|
141
140
|
date_format_id: string;
|
|
141
|
+
time_zone_id: string;
|
|
142
142
|
from_date: string;
|
|
143
143
|
to_date: string;
|
|
144
144
|
status?: Status[] | undefined;
|
|
@@ -161,9 +161,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
161
161
|
}[] | undefined;
|
|
162
162
|
include_master_data?: YesNo | undefined;
|
|
163
163
|
organisation_ids?: string[] | undefined;
|
|
164
|
+
gps_geofence_ids?: string[] | undefined;
|
|
164
165
|
vehicle_ids?: string[] | undefined;
|
|
165
166
|
driver_ids?: string[] | undefined;
|
|
166
|
-
gps_geofence_ids?: string[] | undefined;
|
|
167
167
|
}>;
|
|
168
168
|
type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
|
|
169
169
|
declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
|
|
@@ -57,9 +57,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
status: Status;
|
|
59
59
|
organisation_id: string;
|
|
60
|
-
vehicle_id: string;
|
|
61
|
-
driver_id: string;
|
|
62
60
|
time_zone_id: string;
|
|
61
|
+
driver_id: string;
|
|
62
|
+
vehicle_id: string;
|
|
63
63
|
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
@@ -73,9 +73,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
73
73
|
}, {
|
|
74
74
|
status: Status;
|
|
75
75
|
organisation_id: string;
|
|
76
|
-
vehicle_id: string;
|
|
77
|
-
driver_id: string;
|
|
78
76
|
time_zone_id: string;
|
|
77
|
+
driver_id: string;
|
|
78
|
+
vehicle_id: string;
|
|
79
79
|
from_geofence_exit_date_time: string;
|
|
80
80
|
to_geofence_enter_date_time: string;
|
|
81
81
|
from_geofence_id: string;
|
|
@@ -128,7 +128,6 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
128
128
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
status: Status[];
|
|
131
|
-
time_zone_id: string;
|
|
132
131
|
search: string;
|
|
133
132
|
paging: PAGING;
|
|
134
133
|
page_count: number;
|
|
@@ -148,6 +147,7 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
148
147
|
}[];
|
|
149
148
|
include_master_data: YesNo;
|
|
150
149
|
date_format_id: string;
|
|
150
|
+
time_zone_id: string;
|
|
151
151
|
organisation_ids: string[];
|
|
152
152
|
vehicle_ids: string[];
|
|
153
153
|
driver_ids: string[];
|
|
@@ -156,8 +156,8 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
156
156
|
from_geofence_ids: string[];
|
|
157
157
|
to_geofence_ids: string[];
|
|
158
158
|
}, {
|
|
159
|
-
time_zone_id: string;
|
|
160
159
|
date_format_id: string;
|
|
160
|
+
time_zone_id: string;
|
|
161
161
|
from_date: string;
|
|
162
162
|
to_date: string;
|
|
163
163
|
status?: Status[] | undefined;
|
|
@@ -45,14 +45,14 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
45
45
|
status: Status;
|
|
46
46
|
organisation_id: string;
|
|
47
47
|
type: NotificationType;
|
|
48
|
-
to_recipients: string;
|
|
49
48
|
gps_live_track_share_link_id: string;
|
|
49
|
+
to_recipients: string;
|
|
50
50
|
}, {
|
|
51
51
|
status: Status;
|
|
52
52
|
organisation_id: string;
|
|
53
53
|
type: NotificationType;
|
|
54
|
-
to_recipients: string;
|
|
55
54
|
gps_live_track_share_link_id: string;
|
|
55
|
+
to_recipients: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
58
|
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
@@ -76,51 +76,51 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
|
76
76
|
status: Status;
|
|
77
77
|
organisation_id: string;
|
|
78
78
|
type: NotificationType;
|
|
79
|
-
to_recipients: string;
|
|
80
79
|
gps_live_track_share_link_id: string;
|
|
80
|
+
to_recipients: string;
|
|
81
81
|
}, {
|
|
82
82
|
status: Status;
|
|
83
83
|
organisation_id: string;
|
|
84
84
|
type: NotificationType;
|
|
85
|
-
to_recipients: string;
|
|
86
85
|
gps_live_track_share_link_id: string;
|
|
86
|
+
to_recipients: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
link_status: LinkStatus;
|
|
90
89
|
status: Status;
|
|
91
90
|
organisation_id: string;
|
|
92
91
|
vehicle_id: string;
|
|
92
|
+
link_type: LinkType;
|
|
93
|
+
location: string;
|
|
94
|
+
link_status: LinkStatus;
|
|
93
95
|
trip_id: string;
|
|
96
|
+
expire_milliseconds: number;
|
|
94
97
|
notifications: {
|
|
95
98
|
status: Status;
|
|
96
99
|
organisation_id: string;
|
|
97
100
|
type: NotificationType;
|
|
98
|
-
to_recipients: string;
|
|
99
101
|
gps_live_track_share_link_id: string;
|
|
102
|
+
to_recipients: string;
|
|
100
103
|
}[];
|
|
101
|
-
link_type: LinkType;
|
|
102
|
-
location: string;
|
|
103
|
-
expire_milliseconds: number;
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
-
link_status: LinkStatus;
|
|
108
107
|
status: Status;
|
|
109
108
|
organisation_id: string;
|
|
110
109
|
vehicle_id: string;
|
|
111
|
-
trip_id: string;
|
|
112
110
|
link_type: LinkType;
|
|
111
|
+
link_status: LinkStatus;
|
|
112
|
+
trip_id: string;
|
|
113
|
+
latitude?: unknown;
|
|
114
|
+
longitude?: unknown;
|
|
115
|
+
location?: string | undefined;
|
|
116
|
+
expire_milliseconds?: unknown;
|
|
113
117
|
notifications?: {
|
|
114
118
|
status: Status;
|
|
115
119
|
organisation_id: string;
|
|
116
120
|
type: NotificationType;
|
|
117
|
-
to_recipients: string;
|
|
118
121
|
gps_live_track_share_link_id: string;
|
|
122
|
+
to_recipients: string;
|
|
119
123
|
}[] | undefined;
|
|
120
|
-
latitude?: unknown;
|
|
121
|
-
longitude?: unknown;
|
|
122
|
-
location?: string | undefined;
|
|
123
|
-
expire_milliseconds?: unknown;
|
|
124
124
|
}>;
|
|
125
125
|
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
126
|
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
@@ -176,8 +176,8 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
176
176
|
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
177
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
link_status: LinkStatus[];
|
|
180
179
|
status: Status[];
|
|
180
|
+
vehicle_ids: string[];
|
|
181
181
|
search: string;
|
|
182
182
|
paging: PAGING;
|
|
183
183
|
page_count: number;
|
|
@@ -199,14 +199,14 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
199
199
|
date_format_id: string;
|
|
200
200
|
time_zone_id: string;
|
|
201
201
|
organisation_ids: string[];
|
|
202
|
-
vehicle_ids: string[];
|
|
203
|
-
trip_ids: string[];
|
|
204
202
|
link_type: LinkType[];
|
|
203
|
+
link_status: LinkStatus[];
|
|
204
|
+
trip_ids: string[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
-
link_status?: LinkStatus[] | undefined;
|
|
209
208
|
status?: Status[] | undefined;
|
|
209
|
+
vehicle_ids?: string[] | undefined;
|
|
210
210
|
search?: string | undefined;
|
|
211
211
|
paging?: PAGING | undefined;
|
|
212
212
|
page_count?: unknown;
|
|
@@ -226,9 +226,9 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
226
226
|
}[] | undefined;
|
|
227
227
|
include_master_data?: YesNo | undefined;
|
|
228
228
|
organisation_ids?: string[] | undefined;
|
|
229
|
-
vehicle_ids?: string[] | undefined;
|
|
230
|
-
trip_ids?: string[] | undefined;
|
|
231
229
|
link_type?: LinkType[] | undefined;
|
|
230
|
+
link_status?: LinkStatus[] | undefined;
|
|
231
|
+
trip_ids?: string[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
234
|
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|
|
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
40
40
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
gps_track_history_share_link_id: string;
|
|
44
43
|
status: Status;
|
|
45
44
|
organisation_id: string;
|
|
46
45
|
type: NotificationType;
|
|
47
46
|
to_recipients: string;
|
|
48
|
-
}, {
|
|
49
47
|
gps_track_history_share_link_id: string;
|
|
48
|
+
}, {
|
|
50
49
|
status: Status;
|
|
51
50
|
organisation_id: string;
|
|
52
51
|
type: NotificationType;
|
|
53
52
|
to_recipients: string;
|
|
53
|
+
gps_track_history_share_link_id: string;
|
|
54
54
|
}>;
|
|
55
55
|
type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
|
|
56
56
|
declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
68
68
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
69
69
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
70
70
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
71
|
-
gps_track_history_share_link_id: string;
|
|
72
71
|
status: Status;
|
|
73
72
|
organisation_id: string;
|
|
74
73
|
type: NotificationType;
|
|
75
74
|
to_recipients: string;
|
|
76
|
-
}, {
|
|
77
75
|
gps_track_history_share_link_id: string;
|
|
76
|
+
}, {
|
|
78
77
|
status: Status;
|
|
79
78
|
organisation_id: string;
|
|
80
79
|
type: NotificationType;
|
|
81
80
|
to_recipients: string;
|
|
81
|
+
gps_track_history_share_link_id: string;
|
|
82
82
|
}>, "many">>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
from_date_time: string;
|
|
85
|
-
to_date_time: string;
|
|
86
|
-
link_status: TrackHistoryLinkStatus;
|
|
87
84
|
status: Status;
|
|
88
85
|
organisation_id: string;
|
|
89
86
|
vehicle_id: string;
|
|
87
|
+
link_status: TrackHistoryLinkStatus;
|
|
90
88
|
trip_id: string;
|
|
91
89
|
notifications: {
|
|
92
|
-
gps_track_history_share_link_id: string;
|
|
93
90
|
status: Status;
|
|
94
91
|
organisation_id: string;
|
|
95
92
|
type: NotificationType;
|
|
96
93
|
to_recipients: string;
|
|
94
|
+
gps_track_history_share_link_id: string;
|
|
97
95
|
}[];
|
|
98
|
-
}, {
|
|
99
96
|
from_date_time: string;
|
|
100
97
|
to_date_time: string;
|
|
101
|
-
|
|
98
|
+
}, {
|
|
102
99
|
status: Status;
|
|
103
100
|
organisation_id: string;
|
|
104
101
|
vehicle_id: string;
|
|
102
|
+
link_status: TrackHistoryLinkStatus;
|
|
105
103
|
trip_id: string;
|
|
104
|
+
from_date_time: string;
|
|
105
|
+
to_date_time: string;
|
|
106
106
|
notifications?: {
|
|
107
|
-
gps_track_history_share_link_id: string;
|
|
108
107
|
status: Status;
|
|
109
108
|
organisation_id: string;
|
|
110
109
|
type: NotificationType;
|
|
111
110
|
to_recipients: string;
|
|
111
|
+
gps_track_history_share_link_id: string;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
@@ -148,8 +148,8 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
148
148
|
trip_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
149
149
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TrackHistoryLinkStatus>, "many">>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
link_status: TrackHistoryLinkStatus[];
|
|
152
151
|
status: Status[];
|
|
152
|
+
vehicle_ids: string[];
|
|
153
153
|
search: string;
|
|
154
154
|
paging: PAGING;
|
|
155
155
|
page_count: number;
|
|
@@ -171,13 +171,13 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
171
171
|
date_format_id: string;
|
|
172
172
|
time_zone_id: string;
|
|
173
173
|
organisation_ids: string[];
|
|
174
|
-
|
|
174
|
+
link_status: TrackHistoryLinkStatus[];
|
|
175
175
|
trip_ids: string[];
|
|
176
176
|
}, {
|
|
177
177
|
date_format_id: string;
|
|
178
178
|
time_zone_id: string;
|
|
179
|
-
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
180
179
|
status?: Status[] | undefined;
|
|
180
|
+
vehicle_ids?: string[] | undefined;
|
|
181
181
|
search?: string | undefined;
|
|
182
182
|
paging?: PAGING | undefined;
|
|
183
183
|
page_count?: unknown;
|
|
@@ -197,7 +197,7 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
197
197
|
}[] | undefined;
|
|
198
198
|
include_master_data?: YesNo | undefined;
|
|
199
199
|
organisation_ids?: string[] | undefined;
|
|
200
|
-
|
|
200
|
+
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
201
201
|
trip_ids?: string[] | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
type GPSTrackHistoryShareLinkQueryDTO = z.infer<typeof GPSTrackHistoryShareLinkQuerySchema>;
|
|
@@ -64,10 +64,6 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
64
64
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
65
65
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
status: Status;
|
|
68
|
-
organisation_id: string;
|
|
69
|
-
vehicle_ids: string[];
|
|
70
|
-
user_ids: string[];
|
|
71
67
|
notification_name: string;
|
|
72
68
|
notification_status: OnOff;
|
|
73
69
|
notification_types: NotificationType[];
|
|
@@ -76,19 +72,23 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
76
72
|
email_ids: string;
|
|
77
73
|
cc_email_ids: string;
|
|
78
74
|
all_vehicles: YesNo;
|
|
79
|
-
}, {
|
|
80
75
|
status: Status;
|
|
81
76
|
organisation_id: string;
|
|
77
|
+
user_ids: string[];
|
|
78
|
+
vehicle_ids: string[];
|
|
79
|
+
}, {
|
|
82
80
|
notification_name: string;
|
|
83
81
|
notification_status: OnOff;
|
|
84
82
|
all_vehicles: YesNo;
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
status: Status;
|
|
84
|
+
organisation_id: string;
|
|
87
85
|
notification_types?: NotificationType[] | undefined;
|
|
88
86
|
notification_list?: NotificationPreference[] | undefined;
|
|
89
87
|
mobile_numbers?: string | undefined;
|
|
90
88
|
email_ids?: string | undefined;
|
|
91
89
|
cc_email_ids?: string | undefined;
|
|
90
|
+
user_ids?: string[] | undefined;
|
|
91
|
+
vehicle_ids?: string[] | undefined;
|
|
92
92
|
}>;
|
|
93
93
|
type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
|
|
94
94
|
declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
@@ -127,6 +127,8 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
127
127
|
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
128
128
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
notification_status: OnOff[];
|
|
131
|
+
all_vehicles: YesNo[];
|
|
130
132
|
status: Status[];
|
|
131
133
|
search: string;
|
|
132
134
|
paging: PAGING;
|
|
@@ -149,12 +151,12 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
149
151
|
date_format_id: string;
|
|
150
152
|
time_zone_id: string;
|
|
151
153
|
organisation_ids: string[];
|
|
152
|
-
notification_status: OnOff[];
|
|
153
|
-
all_vehicles: YesNo[];
|
|
154
154
|
notification_preference_ids: string[];
|
|
155
155
|
}, {
|
|
156
156
|
date_format_id: string;
|
|
157
157
|
time_zone_id: string;
|
|
158
|
+
notification_status?: OnOff[] | undefined;
|
|
159
|
+
all_vehicles?: YesNo[] | undefined;
|
|
158
160
|
status?: Status[] | undefined;
|
|
159
161
|
search?: string | undefined;
|
|
160
162
|
paging?: PAGING | undefined;
|
|
@@ -175,8 +177,6 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
175
177
|
}[] | undefined;
|
|
176
178
|
include_master_data?: YesNo | undefined;
|
|
177
179
|
organisation_ids?: string[] | undefined;
|
|
178
|
-
notification_status?: OnOff[] | undefined;
|
|
179
|
-
all_vehicles?: YesNo[] | undefined;
|
|
180
180
|
notification_preference_ids?: string[] | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
|
|
@@ -70,6 +70,98 @@ interface UserReportsAutomationVehicleLink extends Record<string, unknown> {
|
|
|
70
70
|
automation_mail_id: string;
|
|
71
71
|
UserReportsAutomationMail?: UserReportsAutomationMail;
|
|
72
72
|
}
|
|
73
|
+
declare const UserReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
74
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
75
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
76
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
77
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
78
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
79
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
80
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
81
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
82
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
83
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
84
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
85
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
86
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
87
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
89
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
90
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
91
|
+
}, "strip", z.ZodTypeAny, {
|
|
92
|
+
name: string;
|
|
93
|
+
field: string;
|
|
94
|
+
direction: OrderBy;
|
|
95
|
+
}, {
|
|
96
|
+
name: string;
|
|
97
|
+
field: string;
|
|
98
|
+
direction: OrderBy;
|
|
99
|
+
}>, "many">>>;
|
|
100
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
101
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
102
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
103
|
+
} & {
|
|
104
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
105
|
+
report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
|
+
automation_mail_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
107
|
+
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
108
|
+
report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
109
|
+
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
all_vehicles: YesNo[];
|
|
111
|
+
status: Status[];
|
|
112
|
+
search: string;
|
|
113
|
+
paging: PAGING;
|
|
114
|
+
page_count: number;
|
|
115
|
+
page_index: number;
|
|
116
|
+
load_parents: LoadParents;
|
|
117
|
+
load_parents_list: string[];
|
|
118
|
+
load_child: LoadChild;
|
|
119
|
+
load_child_list: string[];
|
|
120
|
+
load_child_count: LoadChildCount;
|
|
121
|
+
load_child_count_list: string[];
|
|
122
|
+
include_details: Record<string, any>;
|
|
123
|
+
where_relations: Record<string, any>;
|
|
124
|
+
order_by: {
|
|
125
|
+
name: string;
|
|
126
|
+
field: string;
|
|
127
|
+
direction: OrderBy;
|
|
128
|
+
}[];
|
|
129
|
+
include_master_data: YesNo;
|
|
130
|
+
date_format_id: string;
|
|
131
|
+
time_zone_id: string;
|
|
132
|
+
organisation_ids: string[];
|
|
133
|
+
report_type: ReportType[];
|
|
134
|
+
report_preference_ids: string[];
|
|
135
|
+
automation_mail_ids: string[];
|
|
136
|
+
}, {
|
|
137
|
+
date_format_id: string;
|
|
138
|
+
time_zone_id: string;
|
|
139
|
+
all_vehicles?: YesNo[] | undefined;
|
|
140
|
+
status?: Status[] | undefined;
|
|
141
|
+
search?: string | undefined;
|
|
142
|
+
paging?: PAGING | undefined;
|
|
143
|
+
page_count?: unknown;
|
|
144
|
+
page_index?: unknown;
|
|
145
|
+
load_parents?: LoadParents | undefined;
|
|
146
|
+
load_parents_list?: string[] | undefined;
|
|
147
|
+
load_child?: LoadChild | undefined;
|
|
148
|
+
load_child_list?: string[] | undefined;
|
|
149
|
+
load_child_count?: LoadChildCount | undefined;
|
|
150
|
+
load_child_count_list?: string[] | undefined;
|
|
151
|
+
include_details?: Record<string, any> | undefined;
|
|
152
|
+
where_relations?: Record<string, any> | undefined;
|
|
153
|
+
order_by?: {
|
|
154
|
+
name: string;
|
|
155
|
+
field: string;
|
|
156
|
+
direction: OrderBy;
|
|
157
|
+
}[] | undefined;
|
|
158
|
+
include_master_data?: YesNo | undefined;
|
|
159
|
+
organisation_ids?: string[] | undefined;
|
|
160
|
+
report_type?: ReportType[] | undefined;
|
|
161
|
+
report_preference_ids?: string[] | undefined;
|
|
162
|
+
automation_mail_ids?: string[] | undefined;
|
|
163
|
+
}>;
|
|
164
|
+
type UserReportsAutomationMailQueryDTO = z.infer<typeof UserReportsAutomationMailQuerySchema>;
|
|
73
165
|
declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
74
166
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
75
167
|
report_name: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -82,25 +174,25 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
82
174
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
83
175
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
84
176
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: Status;
|
|
86
|
-
organisation_id: string;
|
|
87
|
-
vehicle_ids: string[];
|
|
88
177
|
email_ids: string;
|
|
89
178
|
cc_email_ids: string;
|
|
90
179
|
all_vehicles: YesNo;
|
|
180
|
+
status: Status;
|
|
181
|
+
organisation_id: string;
|
|
182
|
+
vehicle_ids: string[];
|
|
91
183
|
report_name: string;
|
|
92
184
|
report_status: OnOff;
|
|
93
185
|
report_types: ReportType[];
|
|
94
186
|
report_list: ReportList[];
|
|
95
187
|
}, {
|
|
96
|
-
status: Status;
|
|
97
|
-
organisation_id: string;
|
|
98
188
|
email_ids: string;
|
|
99
189
|
all_vehicles: YesNo;
|
|
190
|
+
status: Status;
|
|
191
|
+
organisation_id: string;
|
|
100
192
|
report_name: string;
|
|
101
193
|
report_status: OnOff;
|
|
102
|
-
vehicle_ids?: string[] | undefined;
|
|
103
194
|
cc_email_ids?: string | undefined;
|
|
195
|
+
vehicle_ids?: string[] | undefined;
|
|
104
196
|
report_types?: ReportType[] | undefined;
|
|
105
197
|
report_list?: ReportList[] | undefined;
|
|
106
198
|
}>;
|
|
@@ -141,6 +233,7 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
141
233
|
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
142
234
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
143
235
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
+
all_vehicles: YesNo[];
|
|
144
237
|
status: Status[];
|
|
145
238
|
search: string;
|
|
146
239
|
paging: PAGING;
|
|
@@ -163,12 +256,12 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
163
256
|
date_format_id: string;
|
|
164
257
|
time_zone_id: string;
|
|
165
258
|
organisation_ids: string[];
|
|
166
|
-
all_vehicles: YesNo[];
|
|
167
259
|
report_status: OnOff[];
|
|
168
260
|
report_preference_ids: string[];
|
|
169
261
|
}, {
|
|
170
262
|
date_format_id: string;
|
|
171
263
|
time_zone_id: string;
|
|
264
|
+
all_vehicles?: YesNo[] | undefined;
|
|
172
265
|
status?: Status[] | undefined;
|
|
173
266
|
search?: string | undefined;
|
|
174
267
|
paging?: PAGING | undefined;
|
|
@@ -189,7 +282,6 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
189
282
|
}[] | undefined;
|
|
190
283
|
include_master_data?: YesNo | undefined;
|
|
191
284
|
organisation_ids?: string[] | undefined;
|
|
192
|
-
all_vehicles?: YesNo[] | undefined;
|
|
193
285
|
report_status?: OnOff[] | undefined;
|
|
194
286
|
report_preference_ids?: string[] | undefined;
|
|
195
287
|
}>;
|
|
@@ -200,5 +292,6 @@ declare const findUserReportsPreferences: (data: UserReportPreferencesQueryDTO)
|
|
|
200
292
|
declare const createUserReportsPreferences: (data: UserReportPreferencesDTO) => Promise<SBR>;
|
|
201
293
|
declare const updateUserReportsPreferences: (id: string, data: UserReportPreferencesDTO) => Promise<SBR>;
|
|
202
294
|
declare const deleteUserReportsPreferences: (id: string) => Promise<SBR>;
|
|
295
|
+
declare const findUserReportsAutomationMail: (data: UserReportsAutomationMailQueryDTO) => Promise<FBR<UserReportsAutomationMail[]>>;
|
|
203
296
|
|
|
204
|
-
export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsAutomationMail, type UserReportsAutomationVehicleLink, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
|
|
297
|
+
export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsAutomationMail, type UserReportsAutomationMailQueryDTO, UserReportsAutomationMailQuerySchema, type UserReportsAutomationVehicleLink, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsAutomationMail, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
|
|
@@ -284,12 +284,28 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
284
284
|
|
|
285
285
|
// src/services/gps/features/user_report_preferences.service.ts
|
|
286
286
|
var URL = "gps/features/user_report_preferences";
|
|
287
|
+
var URL_AUTOMATION_MAIL = "gps/features/user_report_preferences_automation_mail";
|
|
287
288
|
var ENDPOINTS = {
|
|
288
289
|
find: `${URL}/search`,
|
|
290
|
+
find_automation_mail: `${URL_AUTOMATION_MAIL}/search`,
|
|
289
291
|
create: URL,
|
|
290
292
|
update: (id) => `${URL}/${id}`,
|
|
291
293
|
delete: (id) => `${URL}/${id}`
|
|
292
294
|
};
|
|
295
|
+
var UserReportsAutomationMailQuerySchema = BaseQuerySchema.extend({
|
|
296
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
297
|
+
// ✅ Multi-Selection -> UserOrganisation
|
|
298
|
+
report_preference_ids: multi_select_optional("UserReportPreferences"),
|
|
299
|
+
// ✅ Multi-Selection -> UserReportPreferences
|
|
300
|
+
automation_mail_ids: multi_select_optional("UserReportPreferences"),
|
|
301
|
+
// ✅ Multi-Selection -> UserReportsAutomationMail
|
|
302
|
+
all_vehicles: enumArrayOptional("All Vehicles", YesNo, getAllEnums(YesNo)),
|
|
303
|
+
report_type: enumArrayOptional(
|
|
304
|
+
"Report Type",
|
|
305
|
+
ReportType,
|
|
306
|
+
getAllEnums(ReportType)
|
|
307
|
+
)
|
|
308
|
+
});
|
|
293
309
|
var UserReportPreferencesSchema = z3.object({
|
|
294
310
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
295
311
|
report_name: stringMandatory("Report Name", 3, 100),
|
|
@@ -355,11 +371,16 @@ var updateUserReportsPreferences = async (id, data) => {
|
|
|
355
371
|
var deleteUserReportsPreferences = async (id) => {
|
|
356
372
|
return apiDelete(ENDPOINTS.delete(id));
|
|
357
373
|
};
|
|
374
|
+
var findUserReportsAutomationMail = async (data) => {
|
|
375
|
+
return apiPost(ENDPOINTS.find_automation_mail, data);
|
|
376
|
+
};
|
|
358
377
|
export {
|
|
359
378
|
UserReportPreferencesQuerySchema,
|
|
360
379
|
UserReportPreferencesSchema,
|
|
380
|
+
UserReportsAutomationMailQuerySchema,
|
|
361
381
|
createUserReportsPreferences,
|
|
362
382
|
deleteUserReportsPreferences,
|
|
383
|
+
findUserReportsAutomationMail,
|
|
363
384
|
findUserReportsPreferences,
|
|
364
385
|
newUserReportsPreferencesPayload,
|
|
365
386
|
toUserReportsPreferencesPayload,
|
|
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
|
|
|
28
28
|
logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
29
29
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
company_name: string;
|
|
31
32
|
description: string;
|
|
33
|
+
logo_url: string;
|
|
34
|
+
logo_key: string;
|
|
32
35
|
status: Status;
|
|
33
36
|
organisation_id: string;
|
|
34
37
|
country_id: string;
|
|
35
|
-
logo_key: string;
|
|
36
|
-
logo_url: string;
|
|
37
|
-
company_name: string;
|
|
38
38
|
}, {
|
|
39
|
+
company_name: string;
|
|
39
40
|
status: Status;
|
|
40
41
|
organisation_id: string;
|
|
41
42
|
country_id: string;
|
|
42
|
-
company_name: string;
|
|
43
43
|
description?: string | undefined;
|
|
44
|
-
logo_key?: string | undefined;
|
|
45
44
|
logo_url?: string | undefined;
|
|
45
|
+
logo_key?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
|
|
48
48
|
declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
|
|
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
|
|
|
21
21
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
22
22
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
-
document_type: string;
|
|
25
24
|
description: string;
|
|
26
25
|
status: Status;
|
|
27
26
|
organisation_id: string;
|
|
28
|
-
}, {
|
|
29
27
|
document_type: string;
|
|
28
|
+
}, {
|
|
30
29
|
status: Status;
|
|
31
30
|
organisation_id: string;
|
|
31
|
+
document_type: string;
|
|
32
32
|
description?: string | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
|
|
@@ -15,12 +15,12 @@ declare const MasterMainEwayBillProviderSchema: z.ZodObject<{
|
|
|
15
15
|
provider_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
16
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
status: Status;
|
|
19
18
|
provider_name: string;
|
|
20
19
|
provider_code: string;
|
|
21
|
-
}, {
|
|
22
20
|
status: Status;
|
|
21
|
+
}, {
|
|
23
22
|
provider_name: string;
|
|
23
|
+
status: Status;
|
|
24
24
|
provider_code?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type MasterMainEwayBillProviderDTO = z.infer<typeof MasterMainEwayBillProviderSchema>;
|
|
@@ -15,12 +15,12 @@ declare const MasterMainFasttagBankSchema: z.ZodObject<{
|
|
|
15
15
|
bank_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
16
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
status: Status;
|
|
18
19
|
bank_name: string;
|
|
19
20
|
bank_code: string;
|
|
20
|
-
status: Status;
|
|
21
21
|
}, {
|
|
22
|
-
bank_name: string;
|
|
23
22
|
status: Status;
|
|
23
|
+
bank_name: string;
|
|
24
24
|
bank_code?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
|
|
@@ -24,14 +24,14 @@ declare const MasterVehicleFuelRemovalReasonSchema: z.ZodObject<{
|
|
|
24
24
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
25
25
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
removal_reason: string;
|
|
27
28
|
status: Status;
|
|
28
29
|
organisation_id: string;
|
|
29
30
|
description: string;
|
|
30
|
-
removal_reason: string;
|
|
31
31
|
}, {
|
|
32
|
+
removal_reason: string;
|
|
32
33
|
status: Status;
|
|
33
34
|
organisation_id: string;
|
|
34
|
-
removal_reason: string;
|
|
35
35
|
description?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
type MasterVehicleFuelRemovalReasonDTO = z.infer<typeof MasterVehicleFuelRemovalReasonSchema>;
|
package/package.json
CHANGED