vms-nest-prisma-api-document 1.1.3 → 1.1.7
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/alert_service.d.ts +32 -32
- 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/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/notification_service.d.ts +6 -6
- package/dist/services/account/ticket_service.d.ts +3 -3
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +13 -13
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +23 -23
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +29 -29
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +3 -3
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/faq_service.d.ts +1 -1
- package/package.json +1 -1
- package/dist/core/BaseRequest.cjs +0 -43
- package/dist/core/BaseRequest.d.cts +0 -14
- package/dist/core/BaseResponse.cjs +0 -32
- package/dist/core/BaseResponse.d.cts +0 -45
- package/dist/core/Enums.cjs +0 -696
- package/dist/core/Enums.d.cts +0 -470
- package/dist/core/apiCall.cjs +0 -62
- package/dist/core/apiCall.d.cts +0 -6
- package/dist/core/sdk-config.cjs +0 -41
- package/dist/core/sdk-config.d.cts +0 -6
- package/dist/index.cjs +0 -1
- package/dist/index.d.cts +0 -2
- package/dist/services/account/alert_service.cjs +0 -257
- package/dist/services/account/alert_service.d.cts +0 -271
- package/dist/services/account/analytics/user_login_analytics_service.cjs +0 -123
- package/dist/services/account/analytics/user_login_analytics_service.d.cts +0 -80
- package/dist/services/account/analytics/user_page_analytics_service.cjs +0 -108
- package/dist/services/account/analytics/user_page_analytics_service.d.cts +0 -73
- package/dist/services/account/bookmark_service.cjs +0 -167
- package/dist/services/account/bookmark_service.d.cts +0 -168
- package/dist/services/account/notification_service.cjs +0 -186
- package/dist/services/account/notification_service.d.cts +0 -181
- package/dist/services/account/ticket_service.cjs +0 -206
- package/dist/services/account/ticket_service.d.cts +0 -260
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.cjs +0 -186
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.cts +0 -281
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.cjs +0 -209
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.cts +0 -223
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.cjs +0 -209
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.cts +0 -223
- package/dist/services/gps/features/geofence/gps_geofence_data_service.cjs +0 -235
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.cts +0 -186
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.cjs +0 -150
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.cts +0 -150
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.cjs +0 -151
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.cts +0 -168
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.cjs +0 -186
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.cts +0 -217
- package/dist/services/gps/features/gps_live_track_share_link_service.cjs +0 -226
- package/dist/services/gps/features/gps_live_track_share_link_service.d.cts +0 -244
- package/dist/services/gps/features/gps_track_history_share_link_service.cjs +0 -182
- package/dist/services/gps/features/gps_track_history_share_link_service.d.cts +0 -212
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.cjs +0 -18
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.d.cts +0 -20
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.cjs +0 -18
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.d.cts +0 -45
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.cjs +0 -18
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.d.cts +0 -39
- package/dist/services/gps/reports/gps_models/GpsAnalytics.cjs +0 -18
- package/dist/services/gps/reports/gps_models/GpsAnalytics.d.cts +0 -133
- package/dist/services/gps/reports/gps_models/GpsPacket.cjs +0 -18
- package/dist/services/gps/reports/gps_models/GpsPacket.d.cts +0 -46
- package/dist/services/gps/reports/gps_models/GpsSensor.cjs +0 -18
- package/dist/services/gps/reports/gps_models/GpsSensor.d.cts +0 -37
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.cjs +0 -18
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.d.cts +0 -29
- package/dist/services/gps/reports/gps_models/KilometerMonthly.cjs +0 -18
- package/dist/services/gps/reports/gps_models/KilometerMonthly.d.cts +0 -44
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.cjs +0 -18
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.d.cts +0 -22
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.cjs +0 -18
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.d.cts +0 -62
- package/dist/services/gps/reports/gps_reports_mongo_service.cjs +0 -382
- package/dist/services/gps/reports/gps_reports_mongo_service.d.cts +0 -346
- package/dist/services/gps/reports/gps_reports_postgre_service.cjs +0 -1
- package/dist/services/gps/reports/gps_reports_postgre_service.d.cts +0 -2
- package/dist/services/main/devices/master_device_service.cjs +0 -221
- package/dist/services/main/devices/master_device_service.d.cts +0 -6
- package/dist/services/main/drivers/master_driver_service.cjs +0 -256
- package/dist/services/main/drivers/master_driver_service.d.cts +0 -6
- package/dist/services/main/sims/master_sim_service.cjs +0 -160
- package/dist/services/main/sims/master_sim_service.d.cts +0 -6
- package/dist/services/main/users/auth_service.cjs +0 -90
- package/dist/services/main/users/auth_service.d.cts +0 -70
- package/dist/services/main/users/user_admin_service.cjs +0 -154
- package/dist/services/main/users/user_admin_service.d.cts +0 -138
- package/dist/services/main/users/user_organisation_service.cjs +0 -284
- package/dist/services/main/users/user_organisation_service.d.cts +0 -6
- package/dist/services/main/users/user_service.cjs +0 -417
- package/dist/services/main/users/user_service.d.cts +0 -6
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.cjs +0 -157
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.cts +0 -141
- package/dist/services/main/vehicle/master_vehicle_service.cjs +0 -799
- package/dist/services/main/vehicle/master_vehicle_service.d.cts +0 -6
- package/dist/services/master/device/master_device_manufacturer_service.cjs +0 -140
- package/dist/services/master/device/master_device_manufacturer_service.d.cts +0 -6
- package/dist/services/master/device/master_device_model_service.cjs +0 -146
- package/dist/services/master/device/master_device_model_service.d.cts +0 -6
- package/dist/services/master/device/master_device_type_service.cjs +0 -155
- package/dist/services/master/device/master_device_type_service.d.cts +0 -6
- package/dist/services/master/expense/master_expense_name_service.cjs +0 -148
- package/dist/services/master/expense/master_expense_name_service.d.cts +0 -6
- package/dist/services/master/expense/master_expense_type_service.cjs +0 -131
- package/dist/services/master/expense/master_expense_type_service.d.cts +0 -6
- package/dist/services/master/expense/master_vendor_type_service.cjs +0 -137
- package/dist/services/master/expense/master_vendor_type_service.d.cts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_severity_service.cjs +0 -131
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.cts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_status_service.cjs +0 -131
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.cts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_type_service.cjs +0 -133
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.cts +0 -6
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.cjs +0 -145
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.cts +0 -6
- package/dist/services/master/fleet/master_fleet_service_task_service.cjs +0 -136
- package/dist/services/master/fleet/master_fleet_service_task_service.d.cts +0 -6
- package/dist/services/master/main/master_main_country_service.cjs +0 -140
- package/dist/services/master/main/master_main_country_service.d.cts +0 -6
- package/dist/services/master/main/master_main_currency_service.cjs +0 -140
- package/dist/services/master/main/master_main_currency_service.d.cts +0 -6
- package/dist/services/master/main/master_main_date_format_service.cjs +0 -131
- package/dist/services/master/main/master_main_date_format_service.d.cts +0 -6
- package/dist/services/master/main/master_main_eway_bill_provider_service.cjs +0 -130
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.cts +0 -115
- package/dist/services/master/main/master_main_fasttag_bank_service.cjs +0 -130
- package/dist/services/master/main/master_main_fasttag_bank_service.d.cts +0 -115
- package/dist/services/master/main/master_main_industry_service.cjs +0 -131
- package/dist/services/master/main/master_main_industry_service.d.cts +0 -6
- package/dist/services/master/main/master_main_landmark_service.cjs +0 -151
- package/dist/services/master/main/master_main_landmark_service.d.cts +0 -160
- package/dist/services/master/main/master_main_language_service.cjs +0 -131
- package/dist/services/master/main/master_main_language_service.d.cts +0 -6
- package/dist/services/master/main/master_main_sim_provider_service.cjs +0 -131
- package/dist/services/master/main/master_main_sim_provider_service.d.cts +0 -116
- package/dist/services/master/main/master_main_state_service.cjs +0 -137
- package/dist/services/master/main/master_main_state_service.d.cts +0 -6
- package/dist/services/master/main/master_main_timezone_service.cjs +0 -146
- package/dist/services/master/main/master_main_timezone_service.d.cts +0 -6
- package/dist/services/master/main/master_main_unit_distance_service.cjs +0 -131
- package/dist/services/master/main/master_main_unit_distance_service.d.cts +0 -6
- package/dist/services/master/main/master_main_unit_mileage_service.cjs +0 -131
- package/dist/services/master/main/master_main_unit_mileage_service.d.cts +0 -6
- package/dist/services/master/main/master_main_unit_volume_service.cjs +0 -131
- package/dist/services/master/main/master_main_unit_volume_service.d.cts +0 -6
- package/dist/services/master/organisation/organisation_branch_service.cjs +0 -156
- package/dist/services/master/organisation/organisation_branch_service.d.cts +0 -6
- package/dist/services/master/organisation/organisation_color_service.cjs +0 -153
- package/dist/services/master/organisation/organisation_color_service.d.cts +0 -6
- package/dist/services/master/organisation/organisation_group_service.cjs +0 -156
- package/dist/services/master/organisation/organisation_group_service.d.cts +0 -6
- package/dist/services/master/organisation/organisation_sub_company_service.cjs +0 -163
- package/dist/services/master/organisation/organisation_sub_company_service.d.cts +0 -6
- package/dist/services/master/organisation/organisation_tag_service.cjs +0 -146
- package/dist/services/master/organisation/organisation_tag_service.d.cts +0 -6
- package/dist/services/master/spare_part/master_spare_part_category_service.cjs +0 -159
- package/dist/services/master/spare_part/master_spare_part_category_service.d.cts +0 -6
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.cjs +0 -145
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.cts +0 -6
- package/dist/services/master/spare_part/master_spare_part_unit_service.cjs +0 -137
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.cts +0 -6
- package/dist/services/master/trip/master_trip_party_type_service.cjs +0 -134
- package/dist/services/master/trip/master_trip_party_type_service.d.cts +0 -6
- package/dist/services/master/tyre/master_tyre_grade_service.cjs +0 -134
- package/dist/services/master/tyre/master_tyre_grade_service.d.cts +0 -6
- package/dist/services/master/tyre/master_tyre_make_service.cjs +0 -152
- package/dist/services/master/tyre/master_tyre_make_service.d.cts +0 -6
- package/dist/services/master/tyre/master_tyre_model_service.cjs +0 -142
- package/dist/services/master/tyre/master_tyre_model_service.d.cts +0 -6
- package/dist/services/master/user/master_user_role_service.cjs +0 -134
- package/dist/services/master/user/master_user_role_service.d.cts +0 -6
- package/dist/services/master/user/master_user_status_service.cjs +0 -134
- package/dist/services/master/user/master_user_status_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.cjs +0 -134
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_make_service.cjs +0 -148
- package/dist/services/master/vehicle/master_vehicle_make_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_model_service.cjs +0 -142
- package/dist/services/master/vehicle/master_vehicle_model_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.cjs +0 -136
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_status_type_service.cjs +0 -133
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.cjs +0 -149
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.cts +0 -6
- package/dist/services/master/vehicle/master_vehicle_type_service.cjs +0 -148
- package/dist/services/master/vehicle/master_vehicle_type_service.d.cts +0 -6
- package/dist/services/website/contact_us_detail_service.cjs +0 -145
- package/dist/services/website/contact_us_detail_service.d.cts +0 -146
- package/dist/services/website/faq_service.cjs +0 -121
- package/dist/services/website/faq_service.d.cts +0 -118
- package/dist/services/website/static_pages_service.cjs +0 -124
- package/dist/services/website/static_pages_service.d.cts +0 -122
- package/dist/user_organisation_service-BCzsKVT5.d.cts +0 -7918
- package/dist/zod/zod_base_schema.cjs +0 -208
- package/dist/zod/zod_base_schema.d.cts +0 -120
- package/dist/zod/zod_utils.cjs +0 -468
- package/dist/zod/zod_utils.d.cts +0 -39
- package/dist/{user_organisation_service-CNOJPhQD.d.ts → user_organisation_service-umUoNvpJ.d.ts} +20 -20
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { GeofenceStatusType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.cjs';
|
|
2
|
-
import { FBR, SBR } from '../../../../core/BaseResponse.cjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BCzsKVT5.cjs';
|
|
5
|
-
import { GPSGeofenceData } from './gps_geofence_data_service.cjs';
|
|
6
|
-
import 'zod/zod_base_schema';
|
|
7
|
-
import '../../../master/main/master_main_sim_provider_service.cjs';
|
|
8
|
-
|
|
9
|
-
interface GPSGeofenceTransaction extends Record<string, unknown> {
|
|
10
|
-
gps_geofence_transaction_id: string;
|
|
11
|
-
geofence_status_type: GeofenceStatusType;
|
|
12
|
-
geofence_time: string;
|
|
13
|
-
status: Status;
|
|
14
|
-
added_date_time: string;
|
|
15
|
-
modified_date_time: string;
|
|
16
|
-
organisation_id: string;
|
|
17
|
-
UserOrganisation?: UserOrganisation;
|
|
18
|
-
vehicle_id: string;
|
|
19
|
-
MasterVehicle?: MasterVehicle;
|
|
20
|
-
driver_id?: string;
|
|
21
|
-
MasterDriver?: MasterDriver;
|
|
22
|
-
gps_geofence_id: string;
|
|
23
|
-
GPSGeofenceData?: GPSGeofenceData;
|
|
24
|
-
}
|
|
25
|
-
declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
26
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
27
|
-
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
28
|
-
gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
|
|
29
|
-
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
30
|
-
geofence_status_type: z.ZodType<GeofenceStatusType, z.ZodTypeDef, GeofenceStatusType>;
|
|
31
|
-
geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
32
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
33
|
-
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
gps_geofence_id: string;
|
|
35
|
-
status: Status;
|
|
36
|
-
organisation_id: string;
|
|
37
|
-
driver_id: string;
|
|
38
|
-
vehicle_id: string;
|
|
39
|
-
geofence_status_type: GeofenceStatusType;
|
|
40
|
-
geofence_time: string;
|
|
41
|
-
}, {
|
|
42
|
-
gps_geofence_id: string;
|
|
43
|
-
status: Status;
|
|
44
|
-
organisation_id: string;
|
|
45
|
-
driver_id: string;
|
|
46
|
-
vehicle_id: string;
|
|
47
|
-
geofence_status_type: GeofenceStatusType;
|
|
48
|
-
geofence_time: string;
|
|
49
|
-
}>;
|
|
50
|
-
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
51
|
-
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
52
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
53
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
54
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
55
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
56
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
57
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
58
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
59
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
60
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
61
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
62
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
63
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
64
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
65
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
67
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
68
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
69
|
-
}, "strip", z.ZodTypeAny, {
|
|
70
|
-
name: string;
|
|
71
|
-
field: string;
|
|
72
|
-
direction: OrderBy;
|
|
73
|
-
}, {
|
|
74
|
-
name: string;
|
|
75
|
-
field: string;
|
|
76
|
-
direction: OrderBy;
|
|
77
|
-
}>, "many">>>;
|
|
78
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
79
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
80
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
81
|
-
} & {
|
|
82
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
83
|
-
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
84
|
-
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
85
|
-
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
86
|
-
geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
status: Status[];
|
|
89
|
-
search: string;
|
|
90
|
-
paging: PAGING;
|
|
91
|
-
page_count: number;
|
|
92
|
-
page_index: number;
|
|
93
|
-
load_parents: LoadParents;
|
|
94
|
-
load_parents_list: string[];
|
|
95
|
-
load_child: LoadChild;
|
|
96
|
-
load_child_list: string[];
|
|
97
|
-
load_child_count: LoadChildCount;
|
|
98
|
-
load_child_count_list: string[];
|
|
99
|
-
include_details: Record<string, any>;
|
|
100
|
-
where_relations: Record<string, any>;
|
|
101
|
-
order_by: {
|
|
102
|
-
name: string;
|
|
103
|
-
field: string;
|
|
104
|
-
direction: OrderBy;
|
|
105
|
-
}[];
|
|
106
|
-
include_master_data: YesNo;
|
|
107
|
-
date_format_id: string;
|
|
108
|
-
time_zone_id: string;
|
|
109
|
-
organisation_ids: string[];
|
|
110
|
-
vehicle_ids: string[];
|
|
111
|
-
driver_ids: string[];
|
|
112
|
-
geofence_status_type: GeofenceStatusType[];
|
|
113
|
-
gps_geofence_ids: string[];
|
|
114
|
-
}, {
|
|
115
|
-
date_format_id: string;
|
|
116
|
-
time_zone_id: string;
|
|
117
|
-
status?: Status[] | undefined;
|
|
118
|
-
search?: string | undefined;
|
|
119
|
-
paging?: PAGING | undefined;
|
|
120
|
-
page_count?: unknown;
|
|
121
|
-
page_index?: unknown;
|
|
122
|
-
load_parents?: LoadParents | undefined;
|
|
123
|
-
load_parents_list?: string[] | undefined;
|
|
124
|
-
load_child?: LoadChild | undefined;
|
|
125
|
-
load_child_list?: string[] | undefined;
|
|
126
|
-
load_child_count?: LoadChildCount | undefined;
|
|
127
|
-
load_child_count_list?: string[] | undefined;
|
|
128
|
-
include_details?: Record<string, any> | undefined;
|
|
129
|
-
where_relations?: Record<string, any> | undefined;
|
|
130
|
-
order_by?: {
|
|
131
|
-
name: string;
|
|
132
|
-
field: string;
|
|
133
|
-
direction: OrderBy;
|
|
134
|
-
}[] | undefined;
|
|
135
|
-
include_master_data?: YesNo | undefined;
|
|
136
|
-
organisation_ids?: string[] | undefined;
|
|
137
|
-
vehicle_ids?: string[] | undefined;
|
|
138
|
-
driver_ids?: string[] | undefined;
|
|
139
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
140
|
-
gps_geofence_ids?: string[] | undefined;
|
|
141
|
-
}>;
|
|
142
|
-
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
143
|
-
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
144
|
-
declare const newGPSGeofenceTransactionPayload: () => GPSGeofenceTransactionDTO;
|
|
145
|
-
declare const findGPSGeofenceTransactions: (data: GPSGeofenceTransactionQueryDTO) => Promise<FBR<GPSGeofenceTransaction[]>>;
|
|
146
|
-
declare const createGPSGeofenceTransaction: (data: GPSGeofenceTransactionDTO) => Promise<SBR>;
|
|
147
|
-
declare const updateGPSGeofenceTransaction: (id: string, data: GPSGeofenceTransactionDTO) => Promise<SBR>;
|
|
148
|
-
declare const deleteGPSGeofenceTransaction: (id: string) => Promise<SBR>;
|
|
149
|
-
|
|
150
|
-
export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction, findGPSGeofenceTransactions, newGPSGeofenceTransactionPayload, toGPSGeofenceTransactionPayload, updateGPSGeofenceTransaction };
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
|
|
21
|
-
var gps_geofence_transaction_summary_service_exports = {};
|
|
22
|
-
__export(gps_geofence_transaction_summary_service_exports, {
|
|
23
|
-
GPSGeofenceTransactionSummaryQuerySchema: () => GPSGeofenceTransactionSummaryQuerySchema,
|
|
24
|
-
GPSGeofenceTransactionSummarySchema: () => GPSGeofenceTransactionSummarySchema,
|
|
25
|
-
createGPSGeofenceTransactionSummary: () => createGPSGeofenceTransactionSummary,
|
|
26
|
-
deleteGPSGeofenceTransactionSummary: () => deleteGPSGeofenceTransactionSummary,
|
|
27
|
-
findGPSGeofenceTransactionSummaries: () => findGPSGeofenceTransactionSummaries,
|
|
28
|
-
newGPSGeofenceTransactionSummaryPayload: () => newGPSGeofenceTransactionSummaryPayload,
|
|
29
|
-
toGPSGeofenceTransactionSummaryPayload: () => toGPSGeofenceTransactionSummaryPayload,
|
|
30
|
-
updateGPSGeofenceTransactionSummary: () => updateGPSGeofenceTransactionSummary
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(gps_geofence_transaction_summary_service_exports);
|
|
33
|
-
|
|
34
|
-
// src/core/sdk-config.ts
|
|
35
|
-
var axiosInstance;
|
|
36
|
-
var getAxiosInstance = () => {
|
|
37
|
-
if (!axiosInstance) {
|
|
38
|
-
throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
|
|
39
|
-
}
|
|
40
|
-
return axiosInstance;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// src/core/apiCall.ts
|
|
44
|
-
var apiPost = async (url, data) => {
|
|
45
|
-
const response = await getAxiosInstance().post(url, data);
|
|
46
|
-
return response.data;
|
|
47
|
-
};
|
|
48
|
-
var apiPatch = async (url, data) => {
|
|
49
|
-
const response = await getAxiosInstance().patch(url, data);
|
|
50
|
-
return response.data;
|
|
51
|
-
};
|
|
52
|
-
var apiDelete = async (url) => {
|
|
53
|
-
const response = await getAxiosInstance().delete(url);
|
|
54
|
-
return response.data;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
|
|
58
|
-
var import_zod = require("zod");
|
|
59
|
-
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
-
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
61
|
-
|
|
62
|
-
// src/core/Enums.ts
|
|
63
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
64
|
-
Status2["Active"] = "Active";
|
|
65
|
-
Status2["Inactive"] = "Inactive";
|
|
66
|
-
return Status2;
|
|
67
|
-
})(Status || {});
|
|
68
|
-
|
|
69
|
-
// src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
|
|
70
|
-
var URL = "gps/features/gps_geofence_transaction_summary";
|
|
71
|
-
var ENDPOINTS = {
|
|
72
|
-
find: `${URL}/search`,
|
|
73
|
-
create: URL,
|
|
74
|
-
update: (id) => `${URL}/${id}`,
|
|
75
|
-
delete: (id) => `${URL}/${id}`
|
|
76
|
-
};
|
|
77
|
-
var GPSGeofenceTransactionSummarySchema = import_zod.z.object({
|
|
78
|
-
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
79
|
-
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
80
|
-
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
81
|
-
gps_geofence_id: (0, import_zod_utils.single_select_mandatory)("GPS Geofence ID"),
|
|
82
|
-
enter_gps_geofence_transaction_id: (0, import_zod_utils.single_select_mandatory)(
|
|
83
|
-
"Enter GPS Geofence Transaction ID"
|
|
84
|
-
),
|
|
85
|
-
exit_gps_geofence_transaction_id: (0, import_zod_utils.single_select_optional)(
|
|
86
|
-
"Exit GPS Geofence Transaction ID"
|
|
87
|
-
),
|
|
88
|
-
geofence_enter_date_time: (0, import_zod_utils.dateMandatory)("Geofence Enter Date Time"),
|
|
89
|
-
geofence_exit_date_time: (0, import_zod_utils.dateOptional)("Geofence Exit Date Time"),
|
|
90
|
-
duration_seconds: (0, import_zod_utils.numberOptional)("Duration Seconds"),
|
|
91
|
-
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
92
|
-
});
|
|
93
|
-
var GPSGeofenceTransactionSummaryQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
94
|
-
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
95
|
-
// ✅ Multi-selection -> UserOrganisation
|
|
96
|
-
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
97
|
-
// ✅ Multi-selection -> MasterVehicle
|
|
98
|
-
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
99
|
-
// ✅ Multi-selection -> Master Driver
|
|
100
|
-
gps_geofence_ids: (0, import_zod_utils.multi_select_optional)("Gps Geofence IDs"),
|
|
101
|
-
// ✅ Multi-selection -> Gps Geofence
|
|
102
|
-
from_date: (0, import_zod_utils.dateMandatory)("From Date"),
|
|
103
|
-
to_date: (0, import_zod_utils.dateMandatory)("To Date")
|
|
104
|
-
});
|
|
105
|
-
var toGPSGeofenceTransactionSummaryPayload = (data) => ({
|
|
106
|
-
organisation_id: data.organisation_id,
|
|
107
|
-
vehicle_id: data.vehicle_id,
|
|
108
|
-
driver_id: data.driver_id || "",
|
|
109
|
-
gps_geofence_id: data.gps_geofence_id,
|
|
110
|
-
enter_gps_geofence_transaction_id: data.enter_gps_geofence_transaction_id,
|
|
111
|
-
exit_gps_geofence_transaction_id: data.exit_gps_geofence_transaction_id || "",
|
|
112
|
-
geofence_enter_date_time: data.geofence_enter_date_time,
|
|
113
|
-
geofence_exit_date_time: data.geofence_exit_date_time || "",
|
|
114
|
-
duration_seconds: data.duration_seconds || 0,
|
|
115
|
-
status: data.status
|
|
116
|
-
});
|
|
117
|
-
var newGPSGeofenceTransactionSummaryPayload = () => ({
|
|
118
|
-
organisation_id: "",
|
|
119
|
-
vehicle_id: "",
|
|
120
|
-
driver_id: "",
|
|
121
|
-
gps_geofence_id: "",
|
|
122
|
-
enter_gps_geofence_transaction_id: "",
|
|
123
|
-
exit_gps_geofence_transaction_id: "",
|
|
124
|
-
geofence_enter_date_time: "",
|
|
125
|
-
geofence_exit_date_time: "",
|
|
126
|
-
duration_seconds: 0,
|
|
127
|
-
status: "Active" /* Active */
|
|
128
|
-
});
|
|
129
|
-
var findGPSGeofenceTransactionSummaries = async (data) => {
|
|
130
|
-
return apiPost(ENDPOINTS.find, data);
|
|
131
|
-
};
|
|
132
|
-
var createGPSGeofenceTransactionSummary = async (data) => {
|
|
133
|
-
return apiPost(ENDPOINTS.create, data);
|
|
134
|
-
};
|
|
135
|
-
var updateGPSGeofenceTransactionSummary = async (id, data) => {
|
|
136
|
-
return apiPatch(ENDPOINTS.update(id), data);
|
|
137
|
-
};
|
|
138
|
-
var deleteGPSGeofenceTransactionSummary = async (id) => {
|
|
139
|
-
return apiDelete(ENDPOINTS.delete(id));
|
|
140
|
-
};
|
|
141
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
-
0 && (module.exports = {
|
|
143
|
-
GPSGeofenceTransactionSummaryQuerySchema,
|
|
144
|
-
GPSGeofenceTransactionSummarySchema,
|
|
145
|
-
createGPSGeofenceTransactionSummary,
|
|
146
|
-
deleteGPSGeofenceTransactionSummary,
|
|
147
|
-
findGPSGeofenceTransactionSummaries,
|
|
148
|
-
newGPSGeofenceTransactionSummaryPayload,
|
|
149
|
-
toGPSGeofenceTransactionSummaryPayload,
|
|
150
|
-
updateGPSGeofenceTransactionSummary
|
|
151
|
-
});
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.cjs';
|
|
2
|
-
import { FBR, SBR } from '../../../../core/BaseResponse.cjs';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BCzsKVT5.cjs';
|
|
5
|
-
import { GPSGeofenceData } from './gps_geofence_data_service.cjs';
|
|
6
|
-
import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.cjs';
|
|
7
|
-
import 'zod/zod_base_schema';
|
|
8
|
-
import '../../../master/main/master_main_sim_provider_service.cjs';
|
|
9
|
-
|
|
10
|
-
interface GPSGeofenceTransactionSummary extends Record<string, unknown> {
|
|
11
|
-
gps_geofence_transaction_summary_id: string;
|
|
12
|
-
geofence_enter_date_time: string;
|
|
13
|
-
geofence_exit_date_time?: string;
|
|
14
|
-
duration_seconds?: number;
|
|
15
|
-
status: Status;
|
|
16
|
-
added_date_time: string;
|
|
17
|
-
modified_date_time: string;
|
|
18
|
-
organisation_id: string;
|
|
19
|
-
UserOrganisation?: UserOrganisation;
|
|
20
|
-
vehicle_id: string;
|
|
21
|
-
MasterVehicle?: MasterVehicle;
|
|
22
|
-
driver_id?: string;
|
|
23
|
-
MasterDriver?: MasterDriver;
|
|
24
|
-
gps_geofence_id: string;
|
|
25
|
-
GPSGeofenceData?: GPSGeofenceData;
|
|
26
|
-
enter_gps_geofence_transaction_id: string;
|
|
27
|
-
EnterGPSGeofenceTransaction?: GPSGeofenceTransaction;
|
|
28
|
-
exit_gps_geofence_transaction_id?: string;
|
|
29
|
-
ExitGPSGeofenceTransaction?: GPSGeofenceTransaction;
|
|
30
|
-
}
|
|
31
|
-
declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
32
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
33
|
-
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
34
|
-
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
35
|
-
gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
|
|
36
|
-
enter_gps_geofence_transaction_id: z.ZodEffects<z.ZodString, string, string>;
|
|
37
|
-
exit_gps_geofence_transaction_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
|
-
geofence_enter_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
39
|
-
geofence_exit_date_time: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
40
|
-
duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
41
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
gps_geofence_id: string;
|
|
44
|
-
status: Status;
|
|
45
|
-
organisation_id: string;
|
|
46
|
-
driver_id: string;
|
|
47
|
-
vehicle_id: string;
|
|
48
|
-
geofence_enter_date_time: string;
|
|
49
|
-
geofence_exit_date_time: string;
|
|
50
|
-
duration_seconds: number;
|
|
51
|
-
enter_gps_geofence_transaction_id: string;
|
|
52
|
-
exit_gps_geofence_transaction_id: string;
|
|
53
|
-
}, {
|
|
54
|
-
gps_geofence_id: string;
|
|
55
|
-
status: Status;
|
|
56
|
-
organisation_id: string;
|
|
57
|
-
driver_id: string;
|
|
58
|
-
vehicle_id: string;
|
|
59
|
-
geofence_enter_date_time: string;
|
|
60
|
-
enter_gps_geofence_transaction_id: string;
|
|
61
|
-
exit_gps_geofence_transaction_id: string;
|
|
62
|
-
geofence_exit_date_time?: string | undefined;
|
|
63
|
-
duration_seconds?: unknown;
|
|
64
|
-
}>;
|
|
65
|
-
type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
|
|
66
|
-
declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
67
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
68
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
69
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
70
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
71
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
72
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
73
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
74
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
75
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
76
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
77
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
78
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
79
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
80
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
82
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
83
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
84
|
-
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
name: string;
|
|
86
|
-
field: string;
|
|
87
|
-
direction: OrderBy;
|
|
88
|
-
}, {
|
|
89
|
-
name: string;
|
|
90
|
-
field: string;
|
|
91
|
-
direction: OrderBy;
|
|
92
|
-
}>, "many">>>;
|
|
93
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
94
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
95
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
96
|
-
} & {
|
|
97
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
98
|
-
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
99
|
-
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
100
|
-
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
101
|
-
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
102
|
-
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
103
|
-
}, "strip", z.ZodTypeAny, {
|
|
104
|
-
status: Status[];
|
|
105
|
-
search: string;
|
|
106
|
-
paging: PAGING;
|
|
107
|
-
page_count: number;
|
|
108
|
-
page_index: number;
|
|
109
|
-
load_parents: LoadParents;
|
|
110
|
-
load_parents_list: string[];
|
|
111
|
-
load_child: LoadChild;
|
|
112
|
-
load_child_list: string[];
|
|
113
|
-
load_child_count: LoadChildCount;
|
|
114
|
-
load_child_count_list: string[];
|
|
115
|
-
include_details: Record<string, any>;
|
|
116
|
-
where_relations: Record<string, any>;
|
|
117
|
-
order_by: {
|
|
118
|
-
name: string;
|
|
119
|
-
field: string;
|
|
120
|
-
direction: OrderBy;
|
|
121
|
-
}[];
|
|
122
|
-
include_master_data: YesNo;
|
|
123
|
-
date_format_id: string;
|
|
124
|
-
time_zone_id: string;
|
|
125
|
-
organisation_ids: string[];
|
|
126
|
-
vehicle_ids: string[];
|
|
127
|
-
driver_ids: string[];
|
|
128
|
-
gps_geofence_ids: string[];
|
|
129
|
-
from_date: string;
|
|
130
|
-
to_date: string;
|
|
131
|
-
}, {
|
|
132
|
-
date_format_id: string;
|
|
133
|
-
time_zone_id: string;
|
|
134
|
-
from_date: string;
|
|
135
|
-
to_date: string;
|
|
136
|
-
status?: Status[] | undefined;
|
|
137
|
-
search?: string | undefined;
|
|
138
|
-
paging?: PAGING | undefined;
|
|
139
|
-
page_count?: unknown;
|
|
140
|
-
page_index?: unknown;
|
|
141
|
-
load_parents?: LoadParents | undefined;
|
|
142
|
-
load_parents_list?: string[] | undefined;
|
|
143
|
-
load_child?: LoadChild | undefined;
|
|
144
|
-
load_child_list?: string[] | undefined;
|
|
145
|
-
load_child_count?: LoadChildCount | undefined;
|
|
146
|
-
load_child_count_list?: string[] | undefined;
|
|
147
|
-
include_details?: Record<string, any> | undefined;
|
|
148
|
-
where_relations?: Record<string, any> | undefined;
|
|
149
|
-
order_by?: {
|
|
150
|
-
name: string;
|
|
151
|
-
field: string;
|
|
152
|
-
direction: OrderBy;
|
|
153
|
-
}[] | undefined;
|
|
154
|
-
include_master_data?: YesNo | undefined;
|
|
155
|
-
organisation_ids?: string[] | undefined;
|
|
156
|
-
vehicle_ids?: string[] | undefined;
|
|
157
|
-
driver_ids?: string[] | undefined;
|
|
158
|
-
gps_geofence_ids?: string[] | undefined;
|
|
159
|
-
}>;
|
|
160
|
-
type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
|
|
161
|
-
declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
|
|
162
|
-
declare const newGPSGeofenceTransactionSummaryPayload: () => GPSGeofenceTransactionSummaryDTO;
|
|
163
|
-
declare const findGPSGeofenceTransactionSummaries: (data: GPSGeofenceTransactionSummaryQueryDTO) => Promise<FBR<GPSGeofenceTransactionSummary[]>>;
|
|
164
|
-
declare const createGPSGeofenceTransactionSummary: (data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
|
|
165
|
-
declare const updateGPSGeofenceTransactionSummary: (id: string, data: GPSGeofenceTransactionSummaryDTO) => Promise<SBR>;
|
|
166
|
-
declare const deleteGPSGeofenceTransactionSummary: (id: string) => Promise<SBR>;
|
|
167
|
-
|
|
168
|
-
export { type GPSGeofenceTransactionSummary, type GPSGeofenceTransactionSummaryDTO, type GPSGeofenceTransactionSummaryQueryDTO, GPSGeofenceTransactionSummaryQuerySchema, GPSGeofenceTransactionSummarySchema, createGPSGeofenceTransactionSummary, deleteGPSGeofenceTransactionSummary, findGPSGeofenceTransactionSummaries, newGPSGeofenceTransactionSummaryPayload, toGPSGeofenceTransactionSummaryPayload, updateGPSGeofenceTransactionSummary };
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
21
|
-
var trip_geofence_to_geofence_service_exports = {};
|
|
22
|
-
__export(trip_geofence_to_geofence_service_exports, {
|
|
23
|
-
TripGeofenceToGeofenceQuerySchema: () => TripGeofenceToGeofenceQuerySchema,
|
|
24
|
-
TripGeofenceToGeofenceSchema: () => TripGeofenceToGeofenceSchema,
|
|
25
|
-
createTripGeofenceToGeofence: () => createTripGeofenceToGeofence,
|
|
26
|
-
deleteTripGeofenceToGeofence: () => deleteTripGeofenceToGeofence,
|
|
27
|
-
findTripGeofenceToGeofence: () => findTripGeofenceToGeofence,
|
|
28
|
-
newTripGeofenceToGeofencePayload: () => newTripGeofenceToGeofencePayload,
|
|
29
|
-
toTripGeofenceToGeofencePayload: () => toTripGeofenceToGeofencePayload,
|
|
30
|
-
updateTripGeofenceToGeofence: () => updateTripGeofenceToGeofence
|
|
31
|
-
});
|
|
32
|
-
module.exports = __toCommonJS(trip_geofence_to_geofence_service_exports);
|
|
33
|
-
|
|
34
|
-
// src/core/sdk-config.ts
|
|
35
|
-
var axiosInstance;
|
|
36
|
-
var getAxiosInstance = () => {
|
|
37
|
-
if (!axiosInstance) {
|
|
38
|
-
throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
|
|
39
|
-
}
|
|
40
|
-
return axiosInstance;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
// src/core/apiCall.ts
|
|
44
|
-
var apiPost = async (url, data) => {
|
|
45
|
-
const response = await getAxiosInstance().post(url, data);
|
|
46
|
-
return response.data;
|
|
47
|
-
};
|
|
48
|
-
var apiPatch = async (url, data) => {
|
|
49
|
-
const response = await getAxiosInstance().patch(url, data);
|
|
50
|
-
return response.data;
|
|
51
|
-
};
|
|
52
|
-
var apiDelete = async (url) => {
|
|
53
|
-
const response = await getAxiosInstance().delete(url);
|
|
54
|
-
return response.data;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
58
|
-
var import_zod = require("zod");
|
|
59
|
-
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
-
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
61
|
-
|
|
62
|
-
// src/core/Enums.ts
|
|
63
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
64
|
-
Status2["Active"] = "Active";
|
|
65
|
-
Status2["Inactive"] = "Inactive";
|
|
66
|
-
return Status2;
|
|
67
|
-
})(Status || {});
|
|
68
|
-
|
|
69
|
-
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
70
|
-
var URL = "gps/features/trip_geofence_to_geofence";
|
|
71
|
-
var ENDPOINTS = {
|
|
72
|
-
find: `${URL}/search`,
|
|
73
|
-
create: URL,
|
|
74
|
-
update: (id) => `${URL}/${id}`,
|
|
75
|
-
delete: (id) => `${URL}/${id}`
|
|
76
|
-
};
|
|
77
|
-
var TripGeofenceToGeofenceSchema = import_zod.z.object({
|
|
78
|
-
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
79
|
-
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
80
|
-
from_geofence_id: (0, import_zod_utils.single_select_mandatory)("From Geofence ID"),
|
|
81
|
-
to_geofence_id: (0, import_zod_utils.single_select_mandatory)("To Geofence ID"),
|
|
82
|
-
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
83
|
-
from_geofence_exit_date_time: (0, import_zod_utils.dateMandatory)("From Geofence Exit Date Time"),
|
|
84
|
-
to_geofence_enter_date_time: (0, import_zod_utils.dateMandatory)("To Geofence Enter Date Time"),
|
|
85
|
-
duration_seconds: (0, import_zod_utils.numberMandatory)("Duration Seconds"),
|
|
86
|
-
// Optional analytics
|
|
87
|
-
travel_duration_seconds: (0, import_zod_utils.numberOptional)("Travel Duration Seconds"),
|
|
88
|
-
stopped_duration_seconds: (0, import_zod_utils.numberOptional)("Stopped Duration Seconds"),
|
|
89
|
-
distance_meters: (0, import_zod_utils.doubleOptional)("Distance KM"),
|
|
90
|
-
max_speed: (0, import_zod_utils.numberOptional)("Max Speed"),
|
|
91
|
-
avg_speed: (0, import_zod_utils.numberOptional)("Avg Speed"),
|
|
92
|
-
start_fuel_liters: (0, import_zod_utils.doubleOptional)("Start Fuel Liters"),
|
|
93
|
-
end_fuel_liters: (0, import_zod_utils.doubleOptional)("End Fuel Liters"),
|
|
94
|
-
consumed_fuel_liters: (0, import_zod_utils.doubleOptional)("Consumed Fuel Liters"),
|
|
95
|
-
refill_fuel_liters: (0, import_zod_utils.doubleOptional)("Refill Fuel Liters"),
|
|
96
|
-
removal_fuel_liters: (0, import_zod_utils.doubleOptional)("Removals Fuel Liters"),
|
|
97
|
-
refills_count: (0, import_zod_utils.numberOptional)("Refills Count"),
|
|
98
|
-
removals_count: (0, import_zod_utils.numberOptional)("Removals Count"),
|
|
99
|
-
mileage: (0, import_zod_utils.doubleOptional)("Mileage"),
|
|
100
|
-
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
101
|
-
});
|
|
102
|
-
var TripGeofenceToGeofenceQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
103
|
-
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
104
|
-
// ✅ Multi-selection -> UserOrganisation
|
|
105
|
-
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
106
|
-
// ✅ Multi-selection -> MasterVehicle
|
|
107
|
-
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
108
|
-
// ✅ Multi-selection -> Master Driver
|
|
109
|
-
from_geofence_ids: (0, import_zod_utils.multi_select_optional)("From Geofence IDs"),
|
|
110
|
-
// ✅ Multi-selection -> From Geofence
|
|
111
|
-
to_geofence_ids: (0, import_zod_utils.multi_select_optional)("To Geofence IDs"),
|
|
112
|
-
// ✅ Multi-selection -> To Geofence
|
|
113
|
-
from_date: (0, import_zod_utils.dateMandatory)("From Date"),
|
|
114
|
-
to_date: (0, import_zod_utils.dateMandatory)("To Date")
|
|
115
|
-
});
|
|
116
|
-
var toTripGeofenceToGeofencePayload = (data) => ({
|
|
117
|
-
organisation_id: data.organisation_id,
|
|
118
|
-
vehicle_id: data.vehicle_id,
|
|
119
|
-
driver_id: data.driver_id || "",
|
|
120
|
-
from_geofence_id: data.from_geofence_id,
|
|
121
|
-
to_geofence_id: data.to_geofence_id,
|
|
122
|
-
from_geofence_exit_date_time: data.from_geofence_exit_date_time,
|
|
123
|
-
to_geofence_enter_date_time: data.to_geofence_enter_date_time,
|
|
124
|
-
duration_seconds: data.duration_seconds,
|
|
125
|
-
travel_duration_seconds: data.travel_duration_seconds || 0,
|
|
126
|
-
stopped_duration_seconds: data.stopped_duration_seconds || 0,
|
|
127
|
-
distance_meters: data.distance_meters,
|
|
128
|
-
max_speed: data.max_speed || 0,
|
|
129
|
-
avg_speed: data.avg_speed || 0,
|
|
130
|
-
start_fuel_liters: data.start_fuel_liters,
|
|
131
|
-
end_fuel_liters: data.end_fuel_liters,
|
|
132
|
-
consumed_fuel_liters: data.consumed_fuel_liters,
|
|
133
|
-
refill_fuel_liters: data.refill_fuel_liters,
|
|
134
|
-
removal_fuel_liters: data.removal_fuel_liters,
|
|
135
|
-
refills_count: data.refills_count || 0,
|
|
136
|
-
removals_count: data.removals_count || 0,
|
|
137
|
-
mileage: data.mileage,
|
|
138
|
-
status: data.status
|
|
139
|
-
});
|
|
140
|
-
var newTripGeofenceToGeofencePayload = () => ({
|
|
141
|
-
organisation_id: "",
|
|
142
|
-
vehicle_id: "",
|
|
143
|
-
driver_id: "",
|
|
144
|
-
from_geofence_id: "",
|
|
145
|
-
to_geofence_id: "",
|
|
146
|
-
from_geofence_exit_date_time: "",
|
|
147
|
-
to_geofence_enter_date_time: "",
|
|
148
|
-
duration_seconds: 0,
|
|
149
|
-
travel_duration_seconds: 0,
|
|
150
|
-
stopped_duration_seconds: 0,
|
|
151
|
-
distance_meters: 0,
|
|
152
|
-
max_speed: 0,
|
|
153
|
-
avg_speed: 0,
|
|
154
|
-
start_fuel_liters: 0,
|
|
155
|
-
end_fuel_liters: 0,
|
|
156
|
-
consumed_fuel_liters: 0,
|
|
157
|
-
refill_fuel_liters: 0,
|
|
158
|
-
removal_fuel_liters: 0,
|
|
159
|
-
refills_count: 0,
|
|
160
|
-
removals_count: 0,
|
|
161
|
-
mileage: 0,
|
|
162
|
-
status: "Active" /* Active */
|
|
163
|
-
});
|
|
164
|
-
var findTripGeofenceToGeofence = async (data) => {
|
|
165
|
-
return apiPost(ENDPOINTS.find, data);
|
|
166
|
-
};
|
|
167
|
-
var createTripGeofenceToGeofence = async (data) => {
|
|
168
|
-
return apiPost(ENDPOINTS.create, data);
|
|
169
|
-
};
|
|
170
|
-
var updateTripGeofenceToGeofence = async (id, data) => {
|
|
171
|
-
return apiPatch(ENDPOINTS.update(id), data);
|
|
172
|
-
};
|
|
173
|
-
var deleteTripGeofenceToGeofence = async (id) => {
|
|
174
|
-
return apiDelete(ENDPOINTS.delete(id));
|
|
175
|
-
};
|
|
176
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
177
|
-
0 && (module.exports = {
|
|
178
|
-
TripGeofenceToGeofenceQuerySchema,
|
|
179
|
-
TripGeofenceToGeofenceSchema,
|
|
180
|
-
createTripGeofenceToGeofence,
|
|
181
|
-
deleteTripGeofenceToGeofence,
|
|
182
|
-
findTripGeofenceToGeofence,
|
|
183
|
-
newTripGeofenceToGeofencePayload,
|
|
184
|
-
toTripGeofenceToGeofencePayload,
|
|
185
|
-
updateTripGeofenceToGeofence
|
|
186
|
-
});
|