vms-nest-prisma-api-document 15.0.0 → 17.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/core/BaseResponse.d.ts +16 -1
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_login_analytics_service.js +11 -0
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.js +11 -0
- package/dist/services/account/bookmark_service.js +11 -0
- package/dist/services/account/ticket_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +70 -72
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +19 -14
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +35 -35
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +14 -14
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +11 -0
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -0
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +22 -22
- package/dist/services/gps/features/gps_live_track_share_link_service.js +11 -0
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +15 -15
- package/dist/services/gps/features/gps_track_history_share_link_service.js +11 -0
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +11 -11
- package/dist/services/gps/features/user_notification_preferences.service.js +11 -0
- package/dist/services/gps/features/user_report_preferences.service.d.ts +8 -8
- package/dist/services/gps/features/user_report_preferences.service.js +11 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.js +11 -0
- package/dist/services/main/devices/master_device_service.js +11 -0
- package/dist/services/main/drivers/master_driver_service.js +11 -0
- package/dist/services/main/sims/master_sim_service.js +11 -0
- package/dist/services/main/users/user_admin_service.js +11 -0
- package/dist/services/main/users/user_organisation_service.js +11 -0
- package/dist/services/main/users/user_service.js +11 -0
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +11 -0
- package/dist/services/main/vehicle/master_vehicle_service.js +11 -0
- package/dist/services/master/device/master_device_manufacturer_service.js +11 -0
- package/dist/services/master/device/master_device_model_service.js +11 -0
- package/dist/services/master/device/master_device_type_service.js +11 -0
- package/dist/services/master/expense/master_expense_name_service.js +11 -0
- package/dist/services/master/expense/master_expense_type_service.js +11 -0
- package/dist/services/master/expense/master_fuel_company_service.js +11 -0
- package/dist/services/master/expense/master_vendor_document_type_service.js +11 -0
- package/dist/services/master/expense/master_vendor_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_service_task_service.js +11 -0
- package/dist/services/master/main/master_main_country_service.js +11 -0
- package/dist/services/master/main/master_main_currency_service.js +11 -0
- package/dist/services/master/main/master_main_date_format_service.js +11 -0
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +11 -0
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +11 -0
- package/dist/services/master/main/master_main_industry_service.js +11 -0
- package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
- package/dist/services/master/main/master_main_landmark_service.js +11 -0
- package/dist/services/master/main/master_main_language_service.js +11 -0
- package/dist/services/master/main/master_main_sim_provider_service.js +11 -0
- package/dist/services/master/main/master_main_state_service.js +11 -0
- package/dist/services/master/main/master_main_timezone_service.js +11 -0
- package/dist/services/master/main/master_main_unit_distance_service.js +11 -0
- package/dist/services/master/main/master_main_unit_mileage_service.js +11 -0
- package/dist/services/master/main/master_main_unit_volume_service.js +11 -0
- package/dist/services/master/organisation/organisation_branch_service.js +11 -0
- package/dist/services/master/organisation/organisation_color_service.js +11 -0
- package/dist/services/master/organisation/organisation_group_service.js +11 -0
- package/dist/services/master/organisation/organisation_sub_company_service.js +11 -0
- package/dist/services/master/organisation/organisation_tag_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +11 -0
- package/dist/services/master/trip/master_trip_party_type_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_grade_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_make_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_model_service.js +11 -0
- package/dist/services/master/user/master_user_role_service.js +11 -0
- package/dist/services/master/user/master_user_status_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_make_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_type_service.js +11 -0
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.js +11 -0
- package/dist/services/website/faq_service.js +11 -0
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.js +11 -0
- package/dist/zod_utils/zod_base_schema.d.ts +36 -4
- package/dist/zod_utils/zod_base_schema.js +12 -0
- package/package.json +1 -1
|
@@ -96,10 +96,10 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
status: Status;
|
|
98
98
|
organisation_id: string;
|
|
99
|
-
file_name: string;
|
|
100
99
|
file_type: FileType;
|
|
101
100
|
file_url: string;
|
|
102
101
|
file_key: string;
|
|
102
|
+
file_name: string;
|
|
103
103
|
file_description: string;
|
|
104
104
|
file_size: number;
|
|
105
105
|
file_metadata: Record<string, any>;
|
|
@@ -109,9 +109,9 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
109
109
|
organisation_id: string;
|
|
110
110
|
file_type: FileType;
|
|
111
111
|
fleet_fuel_removal_id: string;
|
|
112
|
-
file_name?: string | undefined;
|
|
113
112
|
file_url?: string | undefined;
|
|
114
113
|
file_key?: string | undefined;
|
|
114
|
+
file_name?: string | undefined;
|
|
115
115
|
file_description?: string | undefined;
|
|
116
116
|
file_size?: unknown;
|
|
117
117
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -160,10 +160,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
160
160
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
161
161
|
status: Status;
|
|
162
162
|
organisation_id: string;
|
|
163
|
-
file_name: string;
|
|
164
163
|
file_type: FileType;
|
|
165
164
|
file_url: string;
|
|
166
165
|
file_key: string;
|
|
166
|
+
file_name: string;
|
|
167
167
|
file_description: string;
|
|
168
168
|
file_size: number;
|
|
169
169
|
file_metadata: Record<string, any>;
|
|
@@ -173,77 +173,77 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
173
173
|
organisation_id: string;
|
|
174
174
|
file_type: FileType;
|
|
175
175
|
fleet_fuel_removal_id: string;
|
|
176
|
-
file_name?: string | undefined;
|
|
177
176
|
file_url?: string | undefined;
|
|
178
177
|
file_key?: string | undefined;
|
|
178
|
+
file_name?: string | undefined;
|
|
179
179
|
file_description?: string | undefined;
|
|
180
180
|
file_size?: unknown;
|
|
181
181
|
file_metadata?: Record<string, any> | undefined;
|
|
182
182
|
}>, "many">>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
date_time: string;
|
|
185
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
186
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
187
|
+
entry_source: RefillEntrySource;
|
|
188
|
+
source_reference_id: string;
|
|
189
|
+
source_notes: string;
|
|
190
|
+
google_location: string;
|
|
191
|
+
odometer_reading: number;
|
|
184
192
|
status: Status;
|
|
185
193
|
organisation_id: string;
|
|
186
194
|
user_id: string;
|
|
187
195
|
vehicle_id: string;
|
|
188
196
|
driver_id: string;
|
|
189
197
|
device_id: string;
|
|
190
|
-
time_zone_id: string;
|
|
191
198
|
vehicle_fuel_type_id: string;
|
|
192
199
|
vehicle_fuel_unit_id: string;
|
|
193
|
-
|
|
194
|
-
google_location: string;
|
|
195
|
-
date_time: string;
|
|
196
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
197
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
198
|
-
entry_source: RefillEntrySource;
|
|
199
|
-
source_reference_id: string;
|
|
200
|
-
source_notes: string;
|
|
200
|
+
time_zone_id: string;
|
|
201
201
|
fuel_removal_reason_id: string;
|
|
202
202
|
removal_details: string;
|
|
203
203
|
removal_files: {
|
|
204
204
|
status: Status;
|
|
205
205
|
organisation_id: string;
|
|
206
|
-
file_name: string;
|
|
207
206
|
file_type: FileType;
|
|
208
207
|
file_url: string;
|
|
209
208
|
file_key: string;
|
|
209
|
+
file_name: string;
|
|
210
210
|
file_description: string;
|
|
211
211
|
file_size: number;
|
|
212
212
|
file_metadata: Record<string, any>;
|
|
213
213
|
fleet_fuel_removal_id: string;
|
|
214
214
|
}[];
|
|
215
|
-
latitude?: number | undefined;
|
|
216
|
-
longitude?: number | undefined;
|
|
217
215
|
cost_per_unit?: number | undefined;
|
|
218
216
|
total_cost?: number | undefined;
|
|
217
|
+
latitude?: number | undefined;
|
|
218
|
+
longitude?: number | undefined;
|
|
219
219
|
before_removal_quantity?: number | undefined;
|
|
220
220
|
after_removal_quantity?: number | undefined;
|
|
221
221
|
removal_quantity?: number | undefined;
|
|
222
222
|
verified_removal_quantity?: number | undefined;
|
|
223
223
|
diff_removal_quantity?: number | undefined;
|
|
224
224
|
}, {
|
|
225
|
+
date_time: string;
|
|
226
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
227
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
225
228
|
status: Status;
|
|
226
229
|
organisation_id: string;
|
|
227
230
|
user_id: string;
|
|
228
231
|
vehicle_id: string;
|
|
229
232
|
driver_id: string;
|
|
230
233
|
device_id: string;
|
|
231
|
-
time_zone_id: string;
|
|
232
234
|
vehicle_fuel_type_id: string;
|
|
233
235
|
vehicle_fuel_unit_id: string;
|
|
234
|
-
|
|
235
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
236
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
236
|
+
time_zone_id: string;
|
|
237
237
|
fuel_removal_reason_id: string;
|
|
238
|
-
odometer_reading?: unknown;
|
|
239
|
-
latitude?: unknown;
|
|
240
|
-
longitude?: unknown;
|
|
241
|
-
google_location?: string | undefined;
|
|
242
238
|
cost_per_unit?: unknown;
|
|
243
239
|
total_cost?: unknown;
|
|
244
240
|
entry_source?: RefillEntrySource | undefined;
|
|
245
241
|
source_reference_id?: string | undefined;
|
|
246
242
|
source_notes?: string | undefined;
|
|
243
|
+
latitude?: unknown;
|
|
244
|
+
longitude?: unknown;
|
|
245
|
+
google_location?: string | undefined;
|
|
246
|
+
odometer_reading?: unknown;
|
|
247
247
|
before_removal_quantity?: unknown;
|
|
248
248
|
after_removal_quantity?: unknown;
|
|
249
249
|
removal_quantity?: unknown;
|
|
@@ -255,9 +255,9 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
255
255
|
organisation_id: string;
|
|
256
256
|
file_type: FileType;
|
|
257
257
|
fleet_fuel_removal_id: string;
|
|
258
|
-
file_name?: string | undefined;
|
|
259
258
|
file_url?: string | undefined;
|
|
260
259
|
file_key?: string | undefined;
|
|
260
|
+
file_name?: string | undefined;
|
|
261
261
|
file_description?: string | undefined;
|
|
262
262
|
file_size?: unknown;
|
|
263
263
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -309,7 +309,11 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
309
309
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
310
310
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
+
admin_verify_status: GPSFuelApproveStatus[];
|
|
313
|
+
transporter_verify_status: GPSFuelApproveStatus[];
|
|
314
|
+
entry_source: RefillEntrySource[];
|
|
312
315
|
status: Status[];
|
|
316
|
+
time_zone_id: string;
|
|
313
317
|
search: string;
|
|
314
318
|
paging: PAGING;
|
|
315
319
|
page_count: number;
|
|
@@ -329,25 +333,24 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
329
333
|
}[];
|
|
330
334
|
include_master_data: YesNo;
|
|
331
335
|
date_format_id: string;
|
|
332
|
-
time_zone_id: string;
|
|
333
336
|
organisation_ids: string[];
|
|
334
337
|
user_ids: string[];
|
|
335
338
|
vehicle_ids: string[];
|
|
336
339
|
driver_ids: string[];
|
|
337
340
|
device_ids: string[];
|
|
338
|
-
from_date: string;
|
|
339
|
-
to_date: string;
|
|
340
341
|
vehicle_fuel_type_ids: string[];
|
|
341
|
-
admin_verify_status: GPSFuelApproveStatus[];
|
|
342
|
-
transporter_verify_status: GPSFuelApproveStatus[];
|
|
343
|
-
entry_source: RefillEntrySource[];
|
|
344
342
|
vehicle_fuel_unit_ids: string[];
|
|
343
|
+
from_date: string;
|
|
344
|
+
to_date: string;
|
|
345
345
|
fuel_removal_reason_ids: string[];
|
|
346
346
|
}, {
|
|
347
|
-
date_format_id: string;
|
|
348
347
|
time_zone_id: string;
|
|
348
|
+
date_format_id: string;
|
|
349
349
|
from_date: string;
|
|
350
350
|
to_date: string;
|
|
351
|
+
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
352
|
+
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
353
|
+
entry_source?: RefillEntrySource[] | undefined;
|
|
351
354
|
status?: Status[] | undefined;
|
|
352
355
|
search?: string | undefined;
|
|
353
356
|
paging?: PAGING | undefined;
|
|
@@ -373,9 +376,6 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
373
376
|
driver_ids?: string[] | undefined;
|
|
374
377
|
device_ids?: string[] | undefined;
|
|
375
378
|
vehicle_fuel_type_ids?: string[] | undefined;
|
|
376
|
-
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
377
|
-
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
378
|
-
entry_source?: RefillEntrySource[] | undefined;
|
|
379
379
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
380
380
|
fuel_removal_reason_ids?: string[] | undefined;
|
|
381
381
|
}>;
|
|
@@ -264,6 +264,17 @@ var OrderBySchema = z2.array(
|
|
|
264
264
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
265
265
|
})
|
|
266
266
|
);
|
|
267
|
+
var BaseFileSchema = z2.object({
|
|
268
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
269
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
270
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
271
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
272
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
273
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
274
|
+
file_size: numberOptional("File Size"),
|
|
275
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
276
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
277
|
+
});
|
|
267
278
|
var BaseQuerySchema = z2.object({
|
|
268
279
|
search: stringOptional("Search", 0, 255, ""),
|
|
269
280
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -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;
|
|
@@ -308,6 +308,17 @@ var OrderBySchema = z2.array(
|
|
|
308
308
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
309
309
|
})
|
|
310
310
|
);
|
|
311
|
+
var BaseFileSchema = z2.object({
|
|
312
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
313
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
314
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
315
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
316
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
317
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
318
|
+
file_size: numberOptional("File Size"),
|
|
319
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
320
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
321
|
+
});
|
|
311
322
|
var BaseQuerySchema = z2.object({
|
|
312
323
|
search: stringOptional("Search", 0, 255, ""),
|
|
313
324
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -36,21 +36,21 @@ 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
|
+
gps_geofence_id: string;
|
|
39
40
|
status: Status;
|
|
40
41
|
organisation_id: string;
|
|
41
|
-
vehicle_id: string;
|
|
42
|
-
driver_id: string;
|
|
43
|
-
gps_geofence_id: string;
|
|
44
42
|
time_zone_id: string;
|
|
43
|
+
driver_id: string;
|
|
44
|
+
vehicle_id: string;
|
|
45
45
|
geofence_status_type: GeofenceStatusType;
|
|
46
46
|
geofence_time: string;
|
|
47
47
|
}, {
|
|
48
|
+
gps_geofence_id: string;
|
|
48
49
|
status: Status;
|
|
49
50
|
organisation_id: string;
|
|
50
|
-
vehicle_id: string;
|
|
51
|
-
driver_id: string;
|
|
52
|
-
gps_geofence_id: string;
|
|
53
51
|
time_zone_id: string;
|
|
52
|
+
driver_id: string;
|
|
53
|
+
vehicle_id: string;
|
|
54
54
|
geofence_status_type: GeofenceStatusType;
|
|
55
55
|
geofence_time: string;
|
|
56
56
|
}>;
|
|
@@ -95,7 +95,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
status: Status[];
|
|
98
|
-
time_zone_id: string;
|
|
99
98
|
search: string;
|
|
100
99
|
paging: PAGING;
|
|
101
100
|
page_count: number;
|
|
@@ -115,16 +114,17 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
115
114
|
}[];
|
|
116
115
|
include_master_data: YesNo;
|
|
117
116
|
date_format_id: string;
|
|
117
|
+
time_zone_id: string;
|
|
118
118
|
organisation_ids: string[];
|
|
119
|
+
gps_geofence_ids: string[];
|
|
119
120
|
vehicle_ids: string[];
|
|
120
121
|
driver_ids: string[];
|
|
121
|
-
|
|
122
|
+
geofence_status_type: GeofenceStatusType[];
|
|
122
123
|
from_date: string;
|
|
123
124
|
to_date: string;
|
|
124
|
-
geofence_status_type: GeofenceStatusType[];
|
|
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
130
|
status?: Status[] | undefined;
|
|
@@ -147,9 +147,9 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
147
147
|
}[] | undefined;
|
|
148
148
|
include_master_data?: YesNo | undefined;
|
|
149
149
|
organisation_ids?: string[] | undefined;
|
|
150
|
+
gps_geofence_ids?: string[] | undefined;
|
|
150
151
|
vehicle_ids?: string[] | undefined;
|
|
151
152
|
driver_ids?: string[] | undefined;
|
|
152
|
-
gps_geofence_ids?: string[] | undefined;
|
|
153
153
|
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
@@ -216,6 +216,17 @@ var OrderBySchema = z2.array(
|
|
|
216
216
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
217
217
|
})
|
|
218
218
|
);
|
|
219
|
+
var BaseFileSchema = z2.object({
|
|
220
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
221
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
222
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
223
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
224
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
225
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
226
|
+
file_size: numberOptional("File Size"),
|
|
227
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
228
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
229
|
+
});
|
|
219
230
|
var BaseQuerySchema = z2.object({
|
|
220
231
|
search: stringOptional("Search", 0, 255, ""),
|
|
221
232
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -46,27 +46,27 @@ 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
|
-
|
|
50
|
-
geofence_exit_date_time: string;
|
|
51
|
-
duration_seconds: number;
|
|
49
|
+
gps_geofence_id: string;
|
|
52
50
|
status: Status;
|
|
53
51
|
organisation_id: string;
|
|
54
|
-
|
|
52
|
+
time_zone_id: string;
|
|
55
53
|
driver_id: string;
|
|
56
|
-
|
|
54
|
+
vehicle_id: string;
|
|
55
|
+
geofence_enter_date_time: string;
|
|
56
|
+
geofence_exit_date_time: string;
|
|
57
|
+
duration_seconds: number;
|
|
57
58
|
enter_gps_geofence_transaction_id: string;
|
|
58
59
|
exit_gps_geofence_transaction_id: string;
|
|
59
|
-
time_zone_id: string;
|
|
60
60
|
}, {
|
|
61
|
-
|
|
61
|
+
gps_geofence_id: string;
|
|
62
62
|
status: Status;
|
|
63
63
|
organisation_id: string;
|
|
64
|
-
|
|
64
|
+
time_zone_id: string;
|
|
65
65
|
driver_id: string;
|
|
66
|
-
|
|
66
|
+
vehicle_id: string;
|
|
67
|
+
geofence_enter_date_time: string;
|
|
67
68
|
enter_gps_geofence_transaction_id: string;
|
|
68
69
|
exit_gps_geofence_transaction_id: string;
|
|
69
|
-
time_zone_id: string;
|
|
70
70
|
geofence_exit_date_time?: string | undefined;
|
|
71
71
|
duration_seconds?: unknown;
|
|
72
72
|
}>;
|
|
@@ -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;
|
|
@@ -227,6 +227,17 @@ var OrderBySchema = z2.array(
|
|
|
227
227
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
228
228
|
})
|
|
229
229
|
);
|
|
230
|
+
var BaseFileSchema = z2.object({
|
|
231
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
232
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
233
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
234
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
235
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
236
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
237
|
+
file_size: numberOptional("File Size"),
|
|
238
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
239
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
240
|
+
});
|
|
230
241
|
var BaseQuerySchema = z2.object({
|
|
231
242
|
search: stringOptional("Search", 0, 255, ""),
|
|
232
243
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
55
55
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
56
56
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
duration_seconds: number;
|
|
59
58
|
status: Status;
|
|
60
59
|
organisation_id: string;
|
|
61
|
-
vehicle_id: string;
|
|
62
|
-
driver_id: string;
|
|
63
60
|
time_zone_id: string;
|
|
61
|
+
driver_id: string;
|
|
62
|
+
vehicle_id: string;
|
|
63
|
+
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
66
66
|
travel_duration_seconds: number;
|
|
@@ -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;
|
|
@@ -239,6 +239,17 @@ var OrderBySchema = z2.array(
|
|
|
239
239
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
240
240
|
})
|
|
241
241
|
);
|
|
242
|
+
var BaseFileSchema = z2.object({
|
|
243
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
244
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
245
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
246
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
247
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
248
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
249
|
+
file_size: numberOptional("File Size"),
|
|
250
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
251
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
252
|
+
});
|
|
242
253
|
var BaseQuerySchema = z2.object({
|
|
243
254
|
search: stringOptional("Search", 0, 255, ""),
|
|
244
255
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|