vms-nest-prisma-api-document 1.1.5 → 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 +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
- 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/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- 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_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/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,217 +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 'zod/zod_base_schema';
|
|
7
|
-
import '../../../master/main/master_main_sim_provider_service.cjs';
|
|
8
|
-
|
|
9
|
-
interface TripGeofenceToGeofence extends Record<string, unknown> {
|
|
10
|
-
trip_geofence_to_geofence_id: string;
|
|
11
|
-
from_geofence_exit_date_time: string;
|
|
12
|
-
to_geofence_enter_date_time: string;
|
|
13
|
-
duration_seconds: number;
|
|
14
|
-
travel_duration_seconds?: number;
|
|
15
|
-
stopped_duration_seconds?: number;
|
|
16
|
-
distance_meters?: number;
|
|
17
|
-
max_speed?: number;
|
|
18
|
-
avg_speed?: number;
|
|
19
|
-
start_fuel_liters?: number;
|
|
20
|
-
end_fuel_liters?: number;
|
|
21
|
-
consumed_fuel_liters?: number;
|
|
22
|
-
refill_fuel_liters?: number;
|
|
23
|
-
removal_fuel_liters?: number;
|
|
24
|
-
refills_count?: number;
|
|
25
|
-
removals_count?: number;
|
|
26
|
-
mileage?: number;
|
|
27
|
-
status: Status;
|
|
28
|
-
added_date_time: string;
|
|
29
|
-
modified_date_time: string;
|
|
30
|
-
organisation_id: string;
|
|
31
|
-
UserOrganisation?: UserOrganisation;
|
|
32
|
-
vehicle_id: string;
|
|
33
|
-
MasterVehicle?: MasterVehicle;
|
|
34
|
-
driver_id?: string;
|
|
35
|
-
MasterDriver?: MasterDriver;
|
|
36
|
-
from_geofence_id: string;
|
|
37
|
-
FromGeofence?: GPSGeofenceData;
|
|
38
|
-
to_geofence_id: string;
|
|
39
|
-
ToGeofence?: GPSGeofenceData;
|
|
40
|
-
}
|
|
41
|
-
declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
42
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
from_geofence_id: z.ZodEffects<z.ZodString, string, string>;
|
|
45
|
-
to_geofence_id: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
-
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
-
from_geofence_exit_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
48
|
-
to_geofence_enter_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
49
|
-
duration_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
50
|
-
travel_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
51
|
-
stopped_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
52
|
-
distance_meters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
53
|
-
max_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
54
|
-
avg_speed: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
55
|
-
start_fuel_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
56
|
-
end_fuel_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
57
|
-
consumed_fuel_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
58
|
-
refill_fuel_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
59
|
-
removal_fuel_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
60
|
-
refills_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
61
|
-
removals_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
62
|
-
mileage: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
63
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
64
|
-
}, "strip", z.ZodTypeAny, {
|
|
65
|
-
status: Status;
|
|
66
|
-
organisation_id: string;
|
|
67
|
-
vehicle_id: string;
|
|
68
|
-
driver_id: string;
|
|
69
|
-
duration_seconds: number;
|
|
70
|
-
from_geofence_exit_date_time: string;
|
|
71
|
-
to_geofence_enter_date_time: string;
|
|
72
|
-
travel_duration_seconds: number;
|
|
73
|
-
stopped_duration_seconds: number;
|
|
74
|
-
max_speed: number;
|
|
75
|
-
avg_speed: number;
|
|
76
|
-
refills_count: number;
|
|
77
|
-
removals_count: number;
|
|
78
|
-
from_geofence_id: string;
|
|
79
|
-
to_geofence_id: string;
|
|
80
|
-
distance_meters?: number | undefined;
|
|
81
|
-
start_fuel_liters?: number | undefined;
|
|
82
|
-
end_fuel_liters?: number | undefined;
|
|
83
|
-
consumed_fuel_liters?: number | undefined;
|
|
84
|
-
refill_fuel_liters?: number | undefined;
|
|
85
|
-
removal_fuel_liters?: number | undefined;
|
|
86
|
-
mileage?: number | undefined;
|
|
87
|
-
}, {
|
|
88
|
-
status: Status;
|
|
89
|
-
organisation_id: string;
|
|
90
|
-
vehicle_id: string;
|
|
91
|
-
driver_id: string;
|
|
92
|
-
from_geofence_exit_date_time: string;
|
|
93
|
-
to_geofence_enter_date_time: string;
|
|
94
|
-
from_geofence_id: string;
|
|
95
|
-
to_geofence_id: string;
|
|
96
|
-
duration_seconds?: unknown;
|
|
97
|
-
travel_duration_seconds?: unknown;
|
|
98
|
-
stopped_duration_seconds?: unknown;
|
|
99
|
-
distance_meters?: unknown;
|
|
100
|
-
max_speed?: unknown;
|
|
101
|
-
avg_speed?: unknown;
|
|
102
|
-
start_fuel_liters?: unknown;
|
|
103
|
-
end_fuel_liters?: unknown;
|
|
104
|
-
consumed_fuel_liters?: unknown;
|
|
105
|
-
refill_fuel_liters?: unknown;
|
|
106
|
-
removal_fuel_liters?: unknown;
|
|
107
|
-
refills_count?: unknown;
|
|
108
|
-
removals_count?: unknown;
|
|
109
|
-
mileage?: unknown;
|
|
110
|
-
}>;
|
|
111
|
-
type TripGeofenceToGeofenceDTO = z.infer<typeof TripGeofenceToGeofenceSchema>;
|
|
112
|
-
declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
113
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
114
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
115
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
116
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
117
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
118
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
119
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
120
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
121
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
122
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
123
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
124
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
125
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
126
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
128
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
129
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
name: string;
|
|
132
|
-
field: string;
|
|
133
|
-
direction: OrderBy;
|
|
134
|
-
}, {
|
|
135
|
-
name: string;
|
|
136
|
-
field: string;
|
|
137
|
-
direction: OrderBy;
|
|
138
|
-
}>, "many">>>;
|
|
139
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
140
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
141
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
142
|
-
} & {
|
|
143
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
144
|
-
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
145
|
-
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
146
|
-
from_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
147
|
-
to_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
148
|
-
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
149
|
-
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
150
|
-
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
status: Status[];
|
|
152
|
-
search: string;
|
|
153
|
-
paging: PAGING;
|
|
154
|
-
page_count: number;
|
|
155
|
-
page_index: number;
|
|
156
|
-
load_parents: LoadParents;
|
|
157
|
-
load_parents_list: string[];
|
|
158
|
-
load_child: LoadChild;
|
|
159
|
-
load_child_list: string[];
|
|
160
|
-
load_child_count: LoadChildCount;
|
|
161
|
-
load_child_count_list: string[];
|
|
162
|
-
include_details: Record<string, any>;
|
|
163
|
-
where_relations: Record<string, any>;
|
|
164
|
-
order_by: {
|
|
165
|
-
name: string;
|
|
166
|
-
field: string;
|
|
167
|
-
direction: OrderBy;
|
|
168
|
-
}[];
|
|
169
|
-
include_master_data: YesNo;
|
|
170
|
-
date_format_id: string;
|
|
171
|
-
time_zone_id: string;
|
|
172
|
-
organisation_ids: string[];
|
|
173
|
-
vehicle_ids: string[];
|
|
174
|
-
driver_ids: string[];
|
|
175
|
-
from_date: string;
|
|
176
|
-
to_date: string;
|
|
177
|
-
from_geofence_ids: string[];
|
|
178
|
-
to_geofence_ids: string[];
|
|
179
|
-
}, {
|
|
180
|
-
date_format_id: string;
|
|
181
|
-
time_zone_id: string;
|
|
182
|
-
from_date: string;
|
|
183
|
-
to_date: string;
|
|
184
|
-
status?: Status[] | undefined;
|
|
185
|
-
search?: string | undefined;
|
|
186
|
-
paging?: PAGING | undefined;
|
|
187
|
-
page_count?: unknown;
|
|
188
|
-
page_index?: unknown;
|
|
189
|
-
load_parents?: LoadParents | undefined;
|
|
190
|
-
load_parents_list?: string[] | undefined;
|
|
191
|
-
load_child?: LoadChild | undefined;
|
|
192
|
-
load_child_list?: string[] | undefined;
|
|
193
|
-
load_child_count?: LoadChildCount | undefined;
|
|
194
|
-
load_child_count_list?: string[] | undefined;
|
|
195
|
-
include_details?: Record<string, any> | undefined;
|
|
196
|
-
where_relations?: Record<string, any> | undefined;
|
|
197
|
-
order_by?: {
|
|
198
|
-
name: string;
|
|
199
|
-
field: string;
|
|
200
|
-
direction: OrderBy;
|
|
201
|
-
}[] | undefined;
|
|
202
|
-
include_master_data?: YesNo | undefined;
|
|
203
|
-
organisation_ids?: string[] | undefined;
|
|
204
|
-
vehicle_ids?: string[] | undefined;
|
|
205
|
-
driver_ids?: string[] | undefined;
|
|
206
|
-
from_geofence_ids?: string[] | undefined;
|
|
207
|
-
to_geofence_ids?: string[] | undefined;
|
|
208
|
-
}>;
|
|
209
|
-
type TripGeofenceToGeofenceQueryDTO = z.infer<typeof TripGeofenceToGeofenceQuerySchema>;
|
|
210
|
-
declare const toTripGeofenceToGeofencePayload: (data: TripGeofenceToGeofence) => TripGeofenceToGeofenceDTO;
|
|
211
|
-
declare const newTripGeofenceToGeofencePayload: () => TripGeofenceToGeofenceDTO;
|
|
212
|
-
declare const findTripGeofenceToGeofence: (data: TripGeofenceToGeofenceQueryDTO) => Promise<FBR<TripGeofenceToGeofence[]>>;
|
|
213
|
-
declare const createTripGeofenceToGeofence: (data: TripGeofenceToGeofenceDTO) => Promise<SBR>;
|
|
214
|
-
declare const updateTripGeofenceToGeofence: (id: string, data: TripGeofenceToGeofenceDTO) => Promise<SBR>;
|
|
215
|
-
declare const deleteTripGeofenceToGeofence: (id: string) => Promise<SBR>;
|
|
216
|
-
|
|
217
|
-
export { type TripGeofenceToGeofence, type TripGeofenceToGeofenceDTO, type TripGeofenceToGeofenceQueryDTO, TripGeofenceToGeofenceQuerySchema, TripGeofenceToGeofenceSchema, createTripGeofenceToGeofence, deleteTripGeofenceToGeofence, findTripGeofenceToGeofence, newTripGeofenceToGeofencePayload, toTripGeofenceToGeofencePayload, updateTripGeofenceToGeofence };
|
|
@@ -1,226 +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/gps_live_track_share_link_service.ts
|
|
21
|
-
var gps_live_track_share_link_service_exports = {};
|
|
22
|
-
__export(gps_live_track_share_link_service_exports, {
|
|
23
|
-
GPSLiveTrackShareLinkNotificationsSchema: () => GPSLiveTrackShareLinkNotificationsSchema,
|
|
24
|
-
GPSLiveTrackShareLinkQuerySchema: () => GPSLiveTrackShareLinkQuerySchema,
|
|
25
|
-
GPSLiveTrackShareLinkSchema: () => GPSLiveTrackShareLinkSchema,
|
|
26
|
-
GPSLiveTrackShareLinkStatusSchema: () => GPSLiveTrackShareLinkStatusSchema,
|
|
27
|
-
GPSLiveTrackShareLinkTimeSchema: () => GPSLiveTrackShareLinkTimeSchema,
|
|
28
|
-
createGPSLiveTrackNotification: () => createGPSLiveTrackNotification,
|
|
29
|
-
createGPSLiveTrackShareLink: () => createGPSLiveTrackShareLink,
|
|
30
|
-
deleteGPSLiveTrackShareLink: () => deleteGPSLiveTrackShareLink,
|
|
31
|
-
extendGPSLiveTrackLinkTime: () => extendGPSLiveTrackLinkTime,
|
|
32
|
-
findGPSLiveTrackShareLinks: () => findGPSLiveTrackShareLinks,
|
|
33
|
-
newGPSLiveTrackShareLinkPayload: () => newGPSLiveTrackShareLinkPayload,
|
|
34
|
-
toGPSLiveTrackShareLinkPayload: () => toGPSLiveTrackShareLinkPayload,
|
|
35
|
-
updateGPSLiveTrackLinkStatus: () => updateGPSLiveTrackLinkStatus,
|
|
36
|
-
updateGPSLiveTrackTripStatus: () => updateGPSLiveTrackTripStatus
|
|
37
|
-
});
|
|
38
|
-
module.exports = __toCommonJS(gps_live_track_share_link_service_exports);
|
|
39
|
-
|
|
40
|
-
// src/core/sdk-config.ts
|
|
41
|
-
var axiosInstance;
|
|
42
|
-
var getAxiosInstance = () => {
|
|
43
|
-
if (!axiosInstance) {
|
|
44
|
-
throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
|
|
45
|
-
}
|
|
46
|
-
return axiosInstance;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// src/core/apiCall.ts
|
|
50
|
-
var apiPost = async (url, data) => {
|
|
51
|
-
const response = await getAxiosInstance().post(url, data);
|
|
52
|
-
return response.data;
|
|
53
|
-
};
|
|
54
|
-
var apiPatch = async (url, data) => {
|
|
55
|
-
const response = await getAxiosInstance().patch(url, data);
|
|
56
|
-
return response.data;
|
|
57
|
-
};
|
|
58
|
-
var apiDelete = async (url) => {
|
|
59
|
-
const response = await getAxiosInstance().delete(url);
|
|
60
|
-
return response.data;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
// src/services/gps/features/gps_live_track_share_link_service.ts
|
|
64
|
-
var import_zod = require("zod");
|
|
65
|
-
var import_zod_utils = require("zod/zod_utils");
|
|
66
|
-
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
67
|
-
|
|
68
|
-
// src/core/Enums.ts
|
|
69
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
70
|
-
Status2["Active"] = "Active";
|
|
71
|
-
Status2["Inactive"] = "Inactive";
|
|
72
|
-
return Status2;
|
|
73
|
-
})(Status || {});
|
|
74
|
-
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
75
|
-
NotificationType2["Whatsapp"] = "Whatsapp";
|
|
76
|
-
NotificationType2["Message"] = "Message";
|
|
77
|
-
NotificationType2["Email"] = "Email";
|
|
78
|
-
return NotificationType2;
|
|
79
|
-
})(NotificationType || {});
|
|
80
|
-
var LinkType = /* @__PURE__ */ ((LinkType2) => {
|
|
81
|
-
LinkType2["CurrentLocation"] = "CurrentLocation";
|
|
82
|
-
LinkType2["LiveLocation"] = "LiveLocation";
|
|
83
|
-
LinkType2["Trip"] = "Trip";
|
|
84
|
-
return LinkType2;
|
|
85
|
-
})(LinkType || {});
|
|
86
|
-
var LinkStatus = /* @__PURE__ */ ((LinkStatus2) => {
|
|
87
|
-
LinkStatus2["Active"] = "Active";
|
|
88
|
-
LinkStatus2["Inactive"] = "Inactive";
|
|
89
|
-
LinkStatus2["Expired"] = "Expired";
|
|
90
|
-
LinkStatus2["TripEnded"] = "TripEnded";
|
|
91
|
-
return LinkStatus2;
|
|
92
|
-
})(LinkStatus || {});
|
|
93
|
-
|
|
94
|
-
// src/services/gps/features/gps_live_track_share_link_service.ts
|
|
95
|
-
var URL = "gps/features/gps_live_track_share_link";
|
|
96
|
-
var ENDPOINTS = {
|
|
97
|
-
find: `${URL}/search`,
|
|
98
|
-
create: URL,
|
|
99
|
-
delete: (id) => `${URL}/${id}`,
|
|
100
|
-
extend: (id) => `${URL}/extend_live_track_link_time/${id}`,
|
|
101
|
-
updateLinkStatus: (id) => `${URL}/update_live_track_link_status/${id}`,
|
|
102
|
-
updateTripStatus: (id) => `${URL}/update_live_track_trip_link_status/${id}`,
|
|
103
|
-
createNotification: `${URL}/create_notifications`
|
|
104
|
-
};
|
|
105
|
-
var GPSLiveTrackShareLinkNotificationsSchema = import_zod.z.object({
|
|
106
|
-
organisation_id: (0, import_zod_utils.single_select_optional)("Organisation ID"),
|
|
107
|
-
gps_live_track_share_link_id: (0, import_zod_utils.single_select_optional)(
|
|
108
|
-
"GPS Live Track Share Link ID"
|
|
109
|
-
),
|
|
110
|
-
type: (0, import_zod_utils.enumMandatory)("Type", NotificationType, "Email" /* Email */),
|
|
111
|
-
to_recipients: (0, import_zod_utils.stringMandatory)("To Recipients", 3, 500),
|
|
112
|
-
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
113
|
-
});
|
|
114
|
-
var GPSLiveTrackShareLinkSchema = import_zod.z.object({
|
|
115
|
-
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
116
|
-
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Vehicle ID"),
|
|
117
|
-
link_type: (0, import_zod_utils.enumMandatory)("Link Type", LinkType, "LiveLocation" /* LiveLocation */),
|
|
118
|
-
latitude: (0, import_zod_utils.doubleOptionalLatLng)("Latitude"),
|
|
119
|
-
longitude: (0, import_zod_utils.doubleOptionalLatLng)("Longitude"),
|
|
120
|
-
location: (0, import_zod_utils.stringOptional)("Location", 0, 500),
|
|
121
|
-
expire_milliseconds: (0, import_zod_utils.numberOptional)("Expire Milliseconds"),
|
|
122
|
-
trip_id: (0, import_zod_utils.single_select_optional)("Trip ID"),
|
|
123
|
-
link_status: (0, import_zod_utils.enumMandatory)("Link Status", LinkStatus, "Active" /* Active */),
|
|
124
|
-
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */),
|
|
125
|
-
notifications: (0, import_zod_utils.nestedArrayOfObjectsOptional)(
|
|
126
|
-
"Notifications",
|
|
127
|
-
GPSLiveTrackShareLinkNotificationsSchema,
|
|
128
|
-
[]
|
|
129
|
-
)
|
|
130
|
-
});
|
|
131
|
-
var GPSLiveTrackShareLinkTimeSchema = import_zod.z.object({
|
|
132
|
-
expire_milliseconds: (0, import_zod_utils.numberMandatory)("Expire Milliseconds")
|
|
133
|
-
});
|
|
134
|
-
var GPSLiveTrackShareLinkStatusSchema = import_zod.z.object({
|
|
135
|
-
link_status: (0, import_zod_utils.enumMandatory)("Link Status", LinkStatus, "Active" /* Active */)
|
|
136
|
-
});
|
|
137
|
-
var GPSLiveTrackShareLinkQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
138
|
-
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
139
|
-
// ✅ Multi-selection -> UserOrganisation
|
|
140
|
-
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
141
|
-
// ✅ Multi-selection -> MasterVehicle
|
|
142
|
-
trip_ids: (0, import_zod_utils.multi_select_optional)("Trip IDs"),
|
|
143
|
-
// ✅ Multi-selection -> Trip
|
|
144
|
-
link_type: (0, import_zod_utils.enumArrayOptional)("Link Type", LinkType, (0, import_zod_utils.getAllEnums)(LinkType)),
|
|
145
|
-
link_status: (0, import_zod_utils.enumArrayOptional)(
|
|
146
|
-
"Link Status",
|
|
147
|
-
LinkStatus,
|
|
148
|
-
(0, import_zod_utils.getAllEnums)(LinkStatus)
|
|
149
|
-
)
|
|
150
|
-
});
|
|
151
|
-
var toGPSLiveTrackShareLinkPayload = (data) => ({
|
|
152
|
-
organisation_id: data.organisation_id,
|
|
153
|
-
vehicle_id: data.vehicle_id,
|
|
154
|
-
link_type: data.link_type,
|
|
155
|
-
latitude: data.latitude,
|
|
156
|
-
longitude: data.longitude,
|
|
157
|
-
location: data.location || "",
|
|
158
|
-
expire_milliseconds: 0,
|
|
159
|
-
trip_id: data.trip_id || "",
|
|
160
|
-
link_status: data.link_status,
|
|
161
|
-
status: data.status,
|
|
162
|
-
notifications: []
|
|
163
|
-
});
|
|
164
|
-
var newGPSLiveTrackShareLinkPayload = () => ({
|
|
165
|
-
organisation_id: "",
|
|
166
|
-
vehicle_id: "",
|
|
167
|
-
link_type: "CurrentLocation" /* CurrentLocation */,
|
|
168
|
-
latitude: void 0,
|
|
169
|
-
longitude: void 0,
|
|
170
|
-
location: "",
|
|
171
|
-
expire_milliseconds: 0,
|
|
172
|
-
trip_id: "",
|
|
173
|
-
link_status: "Active" /* Active */,
|
|
174
|
-
status: "Active" /* Active */,
|
|
175
|
-
notifications: []
|
|
176
|
-
});
|
|
177
|
-
var findGPSLiveTrackShareLinks = async (data) => {
|
|
178
|
-
return apiPost(
|
|
179
|
-
ENDPOINTS.find,
|
|
180
|
-
data
|
|
181
|
-
);
|
|
182
|
-
};
|
|
183
|
-
var createGPSLiveTrackShareLink = async (data) => {
|
|
184
|
-
return apiPost(ENDPOINTS.create, data);
|
|
185
|
-
};
|
|
186
|
-
var deleteGPSLiveTrackShareLink = async (id) => {
|
|
187
|
-
return apiDelete(ENDPOINTS.delete(id));
|
|
188
|
-
};
|
|
189
|
-
var extendGPSLiveTrackLinkTime = async (id, data) => {
|
|
190
|
-
return apiPatch(
|
|
191
|
-
ENDPOINTS.extend(id),
|
|
192
|
-
data
|
|
193
|
-
);
|
|
194
|
-
};
|
|
195
|
-
var updateGPSLiveTrackLinkStatus = async (id, data) => {
|
|
196
|
-
return apiPatch(
|
|
197
|
-
ENDPOINTS.updateLinkStatus(id),
|
|
198
|
-
data
|
|
199
|
-
);
|
|
200
|
-
};
|
|
201
|
-
var updateGPSLiveTrackTripStatus = async (id) => {
|
|
202
|
-
return apiPatch(ENDPOINTS.updateTripStatus(id), {});
|
|
203
|
-
};
|
|
204
|
-
var createGPSLiveTrackNotification = async (data) => {
|
|
205
|
-
return apiPost(
|
|
206
|
-
ENDPOINTS.createNotification,
|
|
207
|
-
data
|
|
208
|
-
);
|
|
209
|
-
};
|
|
210
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
211
|
-
0 && (module.exports = {
|
|
212
|
-
GPSLiveTrackShareLinkNotificationsSchema,
|
|
213
|
-
GPSLiveTrackShareLinkQuerySchema,
|
|
214
|
-
GPSLiveTrackShareLinkSchema,
|
|
215
|
-
GPSLiveTrackShareLinkStatusSchema,
|
|
216
|
-
GPSLiveTrackShareLinkTimeSchema,
|
|
217
|
-
createGPSLiveTrackNotification,
|
|
218
|
-
createGPSLiveTrackShareLink,
|
|
219
|
-
deleteGPSLiveTrackShareLink,
|
|
220
|
-
extendGPSLiveTrackLinkTime,
|
|
221
|
-
findGPSLiveTrackShareLinks,
|
|
222
|
-
newGPSLiveTrackShareLinkPayload,
|
|
223
|
-
toGPSLiveTrackShareLinkPayload,
|
|
224
|
-
updateGPSLiveTrackLinkStatus,
|
|
225
|
-
updateGPSLiveTrackTripStatus
|
|
226
|
-
});
|
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { LinkType, LinkStatus, Status, NotificationType, 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 } from '../../../user_organisation_service-BCzsKVT5.cjs';
|
|
5
|
-
import 'zod/zod_base_schema';
|
|
6
|
-
import '../../master/main/master_main_sim_provider_service.cjs';
|
|
7
|
-
|
|
8
|
-
interface GPSLiveTrackShareLink extends Record<string, unknown> {
|
|
9
|
-
gps_live_track_share_link_id: string;
|
|
10
|
-
link_type: LinkType;
|
|
11
|
-
latitude?: number;
|
|
12
|
-
longitude?: number;
|
|
13
|
-
location?: string;
|
|
14
|
-
expiry_date_time: string;
|
|
15
|
-
link_status: LinkStatus;
|
|
16
|
-
status: Status;
|
|
17
|
-
added_date_time: string;
|
|
18
|
-
modified_date_time: string;
|
|
19
|
-
organisation_id: string;
|
|
20
|
-
UserOrganisation?: UserOrganisation;
|
|
21
|
-
vehicle_id: string;
|
|
22
|
-
MasterVehicle?: MasterVehicle;
|
|
23
|
-
trip_id?: string;
|
|
24
|
-
GPSLiveTrackShareLinkNotifications?: GPSLiveTrackShareLinkNotification[];
|
|
25
|
-
}
|
|
26
|
-
interface GPSLiveTrackShareLinkNotification extends Record<string, unknown> {
|
|
27
|
-
gps_live_track_share_link_notifications_id: string;
|
|
28
|
-
type: NotificationType;
|
|
29
|
-
to_recipients: string;
|
|
30
|
-
status: Status;
|
|
31
|
-
added_date_time: string;
|
|
32
|
-
modified_date_time: string;
|
|
33
|
-
organisation_id: string;
|
|
34
|
-
UserOrganisation?: UserOrganisation;
|
|
35
|
-
gps_live_track_share_link_id: string;
|
|
36
|
-
GPSLiveTrackShareLink?: GPSLiveTrackShareLink;
|
|
37
|
-
}
|
|
38
|
-
declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
39
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
40
|
-
gps_live_track_share_link_id: z.ZodEffects<z.ZodString, string, string>;
|
|
41
|
-
type: z.ZodType<NotificationType, z.ZodTypeDef, NotificationType>;
|
|
42
|
-
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
status: Status;
|
|
46
|
-
organisation_id: string;
|
|
47
|
-
type: NotificationType;
|
|
48
|
-
to_recipients: string;
|
|
49
|
-
gps_live_track_share_link_id: string;
|
|
50
|
-
}, {
|
|
51
|
-
status: Status;
|
|
52
|
-
organisation_id: string;
|
|
53
|
-
type: NotificationType;
|
|
54
|
-
to_recipients: string;
|
|
55
|
-
gps_live_track_share_link_id: string;
|
|
56
|
-
}>;
|
|
57
|
-
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
|
-
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
59
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
60
|
-
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
61
|
-
link_type: z.ZodType<LinkType, z.ZodTypeDef, LinkType>;
|
|
62
|
-
latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
63
|
-
longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
64
|
-
location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
65
|
-
expire_milliseconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
66
|
-
trip_id: z.ZodEffects<z.ZodString, string, string>;
|
|
67
|
-
link_status: z.ZodType<LinkStatus, z.ZodTypeDef, LinkStatus>;
|
|
68
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
69
|
-
notifications: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
70
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
71
|
-
gps_live_track_share_link_id: z.ZodEffects<z.ZodString, string, string>;
|
|
72
|
-
type: z.ZodType<NotificationType, z.ZodTypeDef, NotificationType>;
|
|
73
|
-
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
76
|
-
status: Status;
|
|
77
|
-
organisation_id: string;
|
|
78
|
-
type: NotificationType;
|
|
79
|
-
to_recipients: string;
|
|
80
|
-
gps_live_track_share_link_id: string;
|
|
81
|
-
}, {
|
|
82
|
-
status: Status;
|
|
83
|
-
organisation_id: string;
|
|
84
|
-
type: NotificationType;
|
|
85
|
-
to_recipients: string;
|
|
86
|
-
gps_live_track_share_link_id: string;
|
|
87
|
-
}>, "many">>>;
|
|
88
|
-
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
link_status: LinkStatus;
|
|
90
|
-
status: Status;
|
|
91
|
-
organisation_id: string;
|
|
92
|
-
vehicle_id: string;
|
|
93
|
-
trip_id: string;
|
|
94
|
-
notifications: {
|
|
95
|
-
status: Status;
|
|
96
|
-
organisation_id: string;
|
|
97
|
-
type: NotificationType;
|
|
98
|
-
to_recipients: string;
|
|
99
|
-
gps_live_track_share_link_id: string;
|
|
100
|
-
}[];
|
|
101
|
-
link_type: LinkType;
|
|
102
|
-
location: string;
|
|
103
|
-
expire_milliseconds: number;
|
|
104
|
-
latitude?: number | undefined;
|
|
105
|
-
longitude?: number | undefined;
|
|
106
|
-
}, {
|
|
107
|
-
link_status: LinkStatus;
|
|
108
|
-
status: Status;
|
|
109
|
-
organisation_id: string;
|
|
110
|
-
vehicle_id: string;
|
|
111
|
-
trip_id: string;
|
|
112
|
-
link_type: LinkType;
|
|
113
|
-
notifications?: {
|
|
114
|
-
status: Status;
|
|
115
|
-
organisation_id: string;
|
|
116
|
-
type: NotificationType;
|
|
117
|
-
to_recipients: string;
|
|
118
|
-
gps_live_track_share_link_id: string;
|
|
119
|
-
}[] | undefined;
|
|
120
|
-
latitude?: unknown;
|
|
121
|
-
longitude?: unknown;
|
|
122
|
-
location?: string | undefined;
|
|
123
|
-
expire_milliseconds?: unknown;
|
|
124
|
-
}>;
|
|
125
|
-
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
|
-
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
127
|
-
expire_milliseconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
128
|
-
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
expire_milliseconds: number;
|
|
130
|
-
}, {
|
|
131
|
-
expire_milliseconds?: unknown;
|
|
132
|
-
}>;
|
|
133
|
-
type GPSLiveTrackShareLinkTimeDTO = z.infer<typeof GPSLiveTrackShareLinkTimeSchema>;
|
|
134
|
-
declare const GPSLiveTrackShareLinkStatusSchema: z.ZodObject<{
|
|
135
|
-
link_status: z.ZodType<LinkStatus, z.ZodTypeDef, LinkStatus>;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
link_status: LinkStatus;
|
|
138
|
-
}, {
|
|
139
|
-
link_status: LinkStatus;
|
|
140
|
-
}>;
|
|
141
|
-
type GPSLiveTrackShareLinkStatusDTO = z.infer<typeof GPSLiveTrackShareLinkStatusSchema>;
|
|
142
|
-
declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
143
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
144
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
145
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
146
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
147
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
148
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
149
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
150
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
151
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
152
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
153
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
154
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
155
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
156
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
157
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
158
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
159
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
160
|
-
}, "strip", z.ZodTypeAny, {
|
|
161
|
-
name: string;
|
|
162
|
-
field: string;
|
|
163
|
-
direction: OrderBy;
|
|
164
|
-
}, {
|
|
165
|
-
name: string;
|
|
166
|
-
field: string;
|
|
167
|
-
direction: OrderBy;
|
|
168
|
-
}>, "many">>>;
|
|
169
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
170
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
171
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
172
|
-
} & {
|
|
173
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
174
|
-
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
175
|
-
trip_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
176
|
-
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
|
-
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
|
-
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
link_status: LinkStatus[];
|
|
180
|
-
status: Status[];
|
|
181
|
-
search: string;
|
|
182
|
-
paging: PAGING;
|
|
183
|
-
page_count: number;
|
|
184
|
-
page_index: number;
|
|
185
|
-
load_parents: LoadParents;
|
|
186
|
-
load_parents_list: string[];
|
|
187
|
-
load_child: LoadChild;
|
|
188
|
-
load_child_list: string[];
|
|
189
|
-
load_child_count: LoadChildCount;
|
|
190
|
-
load_child_count_list: string[];
|
|
191
|
-
include_details: Record<string, any>;
|
|
192
|
-
where_relations: Record<string, any>;
|
|
193
|
-
order_by: {
|
|
194
|
-
name: string;
|
|
195
|
-
field: string;
|
|
196
|
-
direction: OrderBy;
|
|
197
|
-
}[];
|
|
198
|
-
include_master_data: YesNo;
|
|
199
|
-
date_format_id: string;
|
|
200
|
-
time_zone_id: string;
|
|
201
|
-
organisation_ids: string[];
|
|
202
|
-
vehicle_ids: string[];
|
|
203
|
-
trip_ids: string[];
|
|
204
|
-
link_type: LinkType[];
|
|
205
|
-
}, {
|
|
206
|
-
date_format_id: string;
|
|
207
|
-
time_zone_id: string;
|
|
208
|
-
link_status?: LinkStatus[] | undefined;
|
|
209
|
-
status?: Status[] | undefined;
|
|
210
|
-
search?: string | undefined;
|
|
211
|
-
paging?: PAGING | undefined;
|
|
212
|
-
page_count?: unknown;
|
|
213
|
-
page_index?: unknown;
|
|
214
|
-
load_parents?: LoadParents | undefined;
|
|
215
|
-
load_parents_list?: string[] | undefined;
|
|
216
|
-
load_child?: LoadChild | undefined;
|
|
217
|
-
load_child_list?: string[] | undefined;
|
|
218
|
-
load_child_count?: LoadChildCount | undefined;
|
|
219
|
-
load_child_count_list?: string[] | undefined;
|
|
220
|
-
include_details?: Record<string, any> | undefined;
|
|
221
|
-
where_relations?: Record<string, any> | undefined;
|
|
222
|
-
order_by?: {
|
|
223
|
-
name: string;
|
|
224
|
-
field: string;
|
|
225
|
-
direction: OrderBy;
|
|
226
|
-
}[] | undefined;
|
|
227
|
-
include_master_data?: YesNo | undefined;
|
|
228
|
-
organisation_ids?: string[] | undefined;
|
|
229
|
-
vehicle_ids?: string[] | undefined;
|
|
230
|
-
trip_ids?: string[] | undefined;
|
|
231
|
-
link_type?: LinkType[] | undefined;
|
|
232
|
-
}>;
|
|
233
|
-
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
|
-
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|
|
235
|
-
declare const newGPSLiveTrackShareLinkPayload: () => GPSLiveTrackShareLinkDTO;
|
|
236
|
-
declare const findGPSLiveTrackShareLinks: (data: GPSLiveTrackShareLinkQueryDTO) => Promise<FBR<GPSLiveTrackShareLink[]>>;
|
|
237
|
-
declare const createGPSLiveTrackShareLink: (data: GPSLiveTrackShareLinkDTO) => Promise<SBR>;
|
|
238
|
-
declare const deleteGPSLiveTrackShareLink: (id: string) => Promise<SBR>;
|
|
239
|
-
declare const extendGPSLiveTrackLinkTime: (id: string, data: GPSLiveTrackShareLinkTimeDTO) => Promise<SBR>;
|
|
240
|
-
declare const updateGPSLiveTrackLinkStatus: (id: string, data: GPSLiveTrackShareLinkStatusDTO) => Promise<SBR>;
|
|
241
|
-
declare const updateGPSLiveTrackTripStatus: (id: string) => Promise<SBR>;
|
|
242
|
-
declare const createGPSLiveTrackNotification: (data: GPSLiveTrackShareLinkNotificationsDTO) => Promise<SBR>;
|
|
243
|
-
|
|
244
|
-
export { type GPSLiveTrackShareLink, type GPSLiveTrackShareLinkDTO, type GPSLiveTrackShareLinkNotification, type GPSLiveTrackShareLinkNotificationsDTO, GPSLiveTrackShareLinkNotificationsSchema, type GPSLiveTrackShareLinkQueryDTO, GPSLiveTrackShareLinkQuerySchema, GPSLiveTrackShareLinkSchema, type GPSLiveTrackShareLinkStatusDTO, GPSLiveTrackShareLinkStatusSchema, type GPSLiveTrackShareLinkTimeDTO, GPSLiveTrackShareLinkTimeSchema, createGPSLiveTrackNotification, createGPSLiveTrackShareLink, deleteGPSLiveTrackShareLink, extendGPSLiveTrackLinkTime, findGPSLiveTrackShareLinks, newGPSLiveTrackShareLinkPayload, toGPSLiveTrackShareLinkPayload, updateGPSLiveTrackLinkStatus, updateGPSLiveTrackTripStatus };
|