vms-nest-prisma-api-document 1.1.5 → 1.1.9
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.cts +32 -32
- package/dist/services/account/bookmark_service.d.cts +9 -9
- package/dist/services/account/notification_service.d.cts +6 -6
- package/dist/services/account/ticket_service.d.cts +3 -3
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.cts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.cts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.cts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.cts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.cts +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.cts +4 -4
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.cts +10 -10
- package/dist/services/gps/features/gps_live_track_share_link_service.d.cts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.d.cts +1 -1
- package/dist/services/main/devices/master_device_service.d.cts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.cts +1 -1
- package/dist/services/main/sims/master_sim_service.d.cts +1 -1
- package/dist/services/main/users/auth_service.d.cts +1 -1
- package/dist/services/main/users/user_organisation_service.d.cts +1 -1
- package/dist/services/main/users/user_service.d.cts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.cts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.cts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.cts +1 -1
- package/dist/services/master/device/master_device_model_service.d.cts +1 -1
- package/dist/services/master/device/master_device_type_service.d.cts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.cts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.cts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.cts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.cts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.cts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.cts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.cts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.cts +1 -1
- package/dist/services/master/main/master_main_country_service.d.cts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.cts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.cts +1 -1
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.cts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.cts +2 -2
- package/dist/services/master/main/master_main_industry_service.d.cts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.cts +1 -1
- package/dist/services/master/main/master_main_language_service.d.cts +1 -1
- package/dist/services/master/main/master_main_state_service.d.cts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.cts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.cts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.cts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.cts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.cts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.cts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.cts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.cts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.cts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.cts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.cts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.cts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.cts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.cts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.cts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.cts +1 -1
- package/dist/services/master/user/master_user_role_service.d.cts +1 -1
- package/dist/services/master/user/master_user_status_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.cts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.cts +1 -1
- package/package.json +1 -1
- package/dist/core/BaseRequest.d.ts +0 -14
- package/dist/core/BaseRequest.js +0 -17
- package/dist/core/BaseResponse.d.ts +0 -45
- package/dist/core/BaseResponse.js +0 -7
- package/dist/core/Enums.d.ts +0 -470
- package/dist/core/Enums.js +0 -605
- package/dist/core/apiCall.d.ts +0 -6
- package/dist/core/apiCall.js +0 -32
- package/dist/core/sdk-config.d.ts +0 -6
- package/dist/core/sdk-config.js +0 -15
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -0
- package/dist/services/account/alert_service.d.ts +0 -271
- package/dist/services/account/alert_service.js +0 -231
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +0 -80
- package/dist/services/account/analytics/user_login_analytics_service.js +0 -95
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +0 -73
- package/dist/services/account/analytics/user_page_analytics_service.js +0 -75
- package/dist/services/account/bookmark_service.d.ts +0 -168
- package/dist/services/account/bookmark_service.js +0 -141
- package/dist/services/account/notification_service.d.ts +0 -181
- package/dist/services/account/notification_service.js +0 -161
- package/dist/services/account/ticket_service.d.ts +0 -260
- package/dist/services/account/ticket_service.js +0 -180
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +0 -281
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +0 -159
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +0 -223
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +0 -188
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +0 -223
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +0 -188
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +0 -186
- package/dist/services/gps/features/geofence/gps_geofence_data_service.js +0 -212
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +0 -150
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +0 -124
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +0 -168
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +0 -125
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +0 -217
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +0 -161
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +0 -244
- package/dist/services/gps/features/gps_live_track_share_link_service.js +0 -199
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +0 -212
- package/dist/services/gps/features/gps_track_history_share_link_service.js +0 -155
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.d.ts +0 -20
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.js +0 -0
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.d.ts +0 -45
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.js +0 -0
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.d.ts +0 -39
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.js +0 -0
- package/dist/services/gps/reports/gps_models/GpsAnalytics.d.ts +0 -133
- package/dist/services/gps/reports/gps_models/GpsAnalytics.js +0 -0
- package/dist/services/gps/reports/gps_models/GpsPacket.d.ts +0 -46
- package/dist/services/gps/reports/gps_models/GpsPacket.js +0 -0
- package/dist/services/gps/reports/gps_models/GpsSensor.d.ts +0 -37
- package/dist/services/gps/reports/gps_models/GpsSensor.js +0 -0
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.d.ts +0 -29
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.js +0 -0
- package/dist/services/gps/reports/gps_models/KilometerMonthly.d.ts +0 -44
- package/dist/services/gps/reports/gps_models/KilometerMonthly.js +0 -0
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.d.ts +0 -22
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.js +0 -0
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.d.ts +0 -62
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.js +0 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +0 -346
- package/dist/services/gps/reports/gps_reports_mongo_service.js +0 -341
- package/dist/services/gps/reports/gps_reports_postgre_service.d.ts +0 -2
- package/dist/services/gps/reports/gps_reports_postgre_service.js +0 -0
- package/dist/services/main/devices/master_device_service.d.ts +0 -6
- package/dist/services/main/devices/master_device_service.js +0 -190
- package/dist/services/main/drivers/master_driver_service.d.ts +0 -6
- package/dist/services/main/drivers/master_driver_service.js +0 -226
- package/dist/services/main/sims/master_sim_service.d.ts +0 -6
- package/dist/services/main/sims/master_sim_service.js +0 -133
- package/dist/services/main/users/auth_service.d.ts +0 -70
- package/dist/services/main/users/auth_service.js +0 -58
- package/dist/services/main/users/user_admin_service.d.ts +0 -138
- package/dist/services/main/users/user_admin_service.js +0 -123
- package/dist/services/main/users/user_organisation_service.d.ts +0 -6
- package/dist/services/main/users/user_organisation_service.js +0 -255
- package/dist/services/main/users/user_service.d.ts +0 -6
- package/dist/services/main/users/user_service.js +0 -373
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +0 -141
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +0 -129
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +0 -6
- package/dist/services/main/vehicle/master_vehicle_service.js +0 -744
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +0 -6
- package/dist/services/master/device/master_device_manufacturer_service.js +0 -108
- package/dist/services/master/device/master_device_model_service.d.ts +0 -6
- package/dist/services/master/device/master_device_model_service.js +0 -115
- package/dist/services/master/device/master_device_type_service.d.ts +0 -6
- package/dist/services/master/device/master_device_type_service.js +0 -124
- package/dist/services/master/expense/master_expense_name_service.d.ts +0 -6
- package/dist/services/master/expense/master_expense_name_service.js +0 -119
- package/dist/services/master/expense/master_expense_type_service.d.ts +0 -6
- package/dist/services/master/expense/master_expense_type_service.js +0 -101
- package/dist/services/master/expense/master_vendor_type_service.d.ts +0 -6
- package/dist/services/master/expense/master_vendor_type_service.js +0 -108
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +0 -101
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +0 -101
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +0 -6
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +0 -103
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +0 -6
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +0 -115
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +0 -6
- package/dist/services/master/fleet/master_fleet_service_task_service.js +0 -106
- package/dist/services/master/main/master_main_country_service.d.ts +0 -6
- package/dist/services/master/main/master_main_country_service.js +0 -108
- package/dist/services/master/main/master_main_currency_service.d.ts +0 -6
- package/dist/services/master/main/master_main_currency_service.js +0 -111
- package/dist/services/master/main/master_main_date_format_service.d.ts +0 -6
- package/dist/services/master/main/master_main_date_format_service.js +0 -100
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +0 -115
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +0 -100
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +0 -115
- package/dist/services/master/main/master_main_fasttag_bank_service.js +0 -100
- package/dist/services/master/main/master_main_industry_service.d.ts +0 -6
- package/dist/services/master/main/master_main_industry_service.js +0 -101
- package/dist/services/master/main/master_main_landmark_service.d.ts +0 -160
- package/dist/services/master/main/master_main_landmark_service.js +0 -124
- package/dist/services/master/main/master_main_language_service.d.ts +0 -6
- package/dist/services/master/main/master_main_language_service.js +0 -100
- package/dist/services/master/main/master_main_sim_provider_service.d.ts +0 -116
- package/dist/services/master/main/master_main_sim_provider_service.js +0 -100
- package/dist/services/master/main/master_main_state_service.d.ts +0 -6
- package/dist/services/master/main/master_main_state_service.js +0 -108
- package/dist/services/master/main/master_main_timezone_service.d.ts +0 -6
- package/dist/services/master/main/master_main_timezone_service.js +0 -117
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +0 -6
- package/dist/services/master/main/master_main_unit_distance_service.js +0 -100
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +0 -6
- package/dist/services/master/main/master_main_unit_mileage_service.js +0 -100
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +0 -6
- package/dist/services/master/main/master_main_unit_volume_service.js +0 -100
- package/dist/services/master/organisation/organisation_branch_service.d.ts +0 -6
- package/dist/services/master/organisation/organisation_branch_service.js +0 -124
- package/dist/services/master/organisation/organisation_color_service.d.ts +0 -6
- package/dist/services/master/organisation/organisation_color_service.js +0 -121
- package/dist/services/master/organisation/organisation_group_service.d.ts +0 -6
- package/dist/services/master/organisation/organisation_group_service.js +0 -124
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +0 -6
- package/dist/services/master/organisation/organisation_sub_company_service.js +0 -132
- package/dist/services/master/organisation/organisation_tag_service.d.ts +0 -6
- package/dist/services/master/organisation/organisation_tag_service.js +0 -114
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +0 -6
- package/dist/services/master/spare_part/master_spare_part_category_service.js +0 -126
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +0 -6
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +0 -115
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +0 -6
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +0 -107
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +0 -6
- package/dist/services/master/trip/master_trip_party_type_service.js +0 -104
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +0 -6
- package/dist/services/master/tyre/master_tyre_grade_service.js +0 -104
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +0 -6
- package/dist/services/master/tyre/master_tyre_make_service.js +0 -119
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +0 -6
- package/dist/services/master/tyre/master_tyre_model_service.js +0 -112
- package/dist/services/master/user/master_user_role_service.d.ts +0 -6
- package/dist/services/master/user/master_user_role_service.js +0 -104
- package/dist/services/master/user/master_user_status_service.d.ts +0 -6
- package/dist/services/master/user/master_user_status_service.js +0 -104
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +0 -104
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_make_service.js +0 -116
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_model_service.js +0 -112
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +0 -106
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +0 -103
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +0 -119
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +0 -6
- package/dist/services/master/vehicle/master_vehicle_type_service.js +0 -116
- package/dist/services/website/contact_us_detail_service.d.ts +0 -146
- package/dist/services/website/contact_us_detail_service.js +0 -115
- package/dist/services/website/faq_service.d.ts +0 -118
- package/dist/services/website/faq_service.js +0 -91
- package/dist/services/website/static_pages_service.d.ts +0 -122
- package/dist/services/website/static_pages_service.js +0 -94
- package/dist/user_organisation_service-CNOJPhQD.d.ts +0 -7918
- package/dist/zod/zod_base_schema.d.ts +0 -120
- package/dist/zod/zod_base_schema.js +0 -181
- package/dist/zod/zod_utils.d.ts +0 -39
- package/dist/zod/zod_utils.js +0 -409
- package/dist/{user_organisation_service-BCzsKVT5.d.cts → user_organisation_service-4ODRejyM.d.cts} +20 -20
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { GeofenceType, GeofencePurposeType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
|
-
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation } from '../../../../user_organisation_service-CNOJPhQD.js';
|
|
5
|
-
import 'zod/zod_base_schema';
|
|
6
|
-
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
interface GPSGeofenceData extends Record<string, unknown> {
|
|
9
|
-
gps_geofence_id: string;
|
|
10
|
-
geofence_name: string;
|
|
11
|
-
location_name: string;
|
|
12
|
-
geofence_type: GeofenceType;
|
|
13
|
-
radius_km?: number;
|
|
14
|
-
latitude?: number;
|
|
15
|
-
longitude?: number;
|
|
16
|
-
poliline_data?: GPSGeofencePolilineData[];
|
|
17
|
-
geofence_description?: string;
|
|
18
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
19
|
-
status: Status;
|
|
20
|
-
added_date_time: string;
|
|
21
|
-
modified_date_time: string;
|
|
22
|
-
organisation_id: string;
|
|
23
|
-
UserOrganisation?: UserOrganisation;
|
|
24
|
-
}
|
|
25
|
-
interface GPSGeofencePolilineData {
|
|
26
|
-
latitude: number;
|
|
27
|
-
longitude: number;
|
|
28
|
-
}
|
|
29
|
-
declare const GPSGeofencePolilineDataSchema: z.ZodObject<{
|
|
30
|
-
latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
31
|
-
longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
32
|
-
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
latitude: number;
|
|
34
|
-
longitude: number;
|
|
35
|
-
}, {
|
|
36
|
-
latitude?: unknown;
|
|
37
|
-
longitude?: unknown;
|
|
38
|
-
}>;
|
|
39
|
-
type GPSGeofencePolilineDataDTO = z.infer<typeof GPSGeofencePolilineDataSchema>;
|
|
40
|
-
declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
41
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
42
|
-
geofence_name: z.ZodEffects<z.ZodString, string, string>;
|
|
43
|
-
location_name: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
|
|
45
|
-
radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
46
|
-
latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
47
|
-
longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
48
|
-
poliline_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
49
|
-
latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
50
|
-
longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
51
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
52
|
-
latitude: number;
|
|
53
|
-
longitude: number;
|
|
54
|
-
}, {
|
|
55
|
-
latitude?: unknown;
|
|
56
|
-
longitude?: unknown;
|
|
57
|
-
}>, "many">>>;
|
|
58
|
-
geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
-
geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
|
|
60
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
status: Status;
|
|
63
|
-
organisation_id: string;
|
|
64
|
-
geofence_name: string;
|
|
65
|
-
location_name: string;
|
|
66
|
-
geofence_type: GeofenceType;
|
|
67
|
-
poliline_data: {
|
|
68
|
-
latitude: number;
|
|
69
|
-
longitude: number;
|
|
70
|
-
}[];
|
|
71
|
-
geofence_description: string;
|
|
72
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
73
|
-
latitude?: number | undefined;
|
|
74
|
-
longitude?: number | undefined;
|
|
75
|
-
radius_km?: number | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
status: Status;
|
|
78
|
-
organisation_id: string;
|
|
79
|
-
geofence_name: string;
|
|
80
|
-
location_name: string;
|
|
81
|
-
geofence_type: GeofenceType;
|
|
82
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
83
|
-
latitude?: unknown;
|
|
84
|
-
longitude?: unknown;
|
|
85
|
-
radius_km?: unknown;
|
|
86
|
-
poliline_data?: {
|
|
87
|
-
latitude?: unknown;
|
|
88
|
-
longitude?: unknown;
|
|
89
|
-
}[] | undefined;
|
|
90
|
-
geofence_description?: string | undefined;
|
|
91
|
-
}>;
|
|
92
|
-
type GPSGeofenceDataDTO = z.infer<typeof GPSGeofenceDataSchema>;
|
|
93
|
-
declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
94
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
95
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
96
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
97
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
98
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
99
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
100
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
101
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
102
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
103
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
104
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
105
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
106
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
107
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
108
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
109
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
110
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
|
112
|
-
name: string;
|
|
113
|
-
field: string;
|
|
114
|
-
direction: OrderBy;
|
|
115
|
-
}, {
|
|
116
|
-
name: string;
|
|
117
|
-
field: string;
|
|
118
|
-
direction: OrderBy;
|
|
119
|
-
}>, "many">>>;
|
|
120
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
121
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
122
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
123
|
-
} & {
|
|
124
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
125
|
-
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
126
|
-
geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
status: Status[];
|
|
129
|
-
search: string;
|
|
130
|
-
paging: PAGING;
|
|
131
|
-
page_count: number;
|
|
132
|
-
page_index: number;
|
|
133
|
-
load_parents: LoadParents;
|
|
134
|
-
load_parents_list: string[];
|
|
135
|
-
load_child: LoadChild;
|
|
136
|
-
load_child_list: string[];
|
|
137
|
-
load_child_count: LoadChildCount;
|
|
138
|
-
load_child_count_list: string[];
|
|
139
|
-
include_details: Record<string, any>;
|
|
140
|
-
where_relations: Record<string, any>;
|
|
141
|
-
order_by: {
|
|
142
|
-
name: string;
|
|
143
|
-
field: string;
|
|
144
|
-
direction: OrderBy;
|
|
145
|
-
}[];
|
|
146
|
-
include_master_data: YesNo;
|
|
147
|
-
date_format_id: string;
|
|
148
|
-
time_zone_id: string;
|
|
149
|
-
organisation_ids: string[];
|
|
150
|
-
geofence_type: GeofenceType[];
|
|
151
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
152
|
-
}, {
|
|
153
|
-
date_format_id: string;
|
|
154
|
-
time_zone_id: string;
|
|
155
|
-
status?: Status[] | undefined;
|
|
156
|
-
search?: string | undefined;
|
|
157
|
-
paging?: PAGING | undefined;
|
|
158
|
-
page_count?: unknown;
|
|
159
|
-
page_index?: unknown;
|
|
160
|
-
load_parents?: LoadParents | undefined;
|
|
161
|
-
load_parents_list?: string[] | undefined;
|
|
162
|
-
load_child?: LoadChild | undefined;
|
|
163
|
-
load_child_list?: string[] | undefined;
|
|
164
|
-
load_child_count?: LoadChildCount | undefined;
|
|
165
|
-
load_child_count_list?: string[] | undefined;
|
|
166
|
-
include_details?: Record<string, any> | undefined;
|
|
167
|
-
where_relations?: Record<string, any> | undefined;
|
|
168
|
-
order_by?: {
|
|
169
|
-
name: string;
|
|
170
|
-
field: string;
|
|
171
|
-
direction: OrderBy;
|
|
172
|
-
}[] | undefined;
|
|
173
|
-
include_master_data?: YesNo | undefined;
|
|
174
|
-
organisation_ids?: string[] | undefined;
|
|
175
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
176
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
177
|
-
}>;
|
|
178
|
-
type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
|
|
179
|
-
declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
|
|
180
|
-
declare const newGPSGeofenceDataPayload: () => GPSGeofenceDataDTO;
|
|
181
|
-
declare const findGPSGeofenceData: (data: GPSGeofenceDataQueryDTO) => Promise<FBR<GPSGeofenceData[]>>;
|
|
182
|
-
declare const createGPSGeofenceData: (data: GPSGeofenceDataDTO) => Promise<SBR>;
|
|
183
|
-
declare const updateGPSGeofenceData: (id: string, data: GPSGeofenceDataDTO) => Promise<SBR>;
|
|
184
|
-
declare const deleteGPSGeofenceData: (id: string) => Promise<SBR>;
|
|
185
|
-
|
|
186
|
-
export { type GPSGeofenceData, type GPSGeofenceDataDTO, type GPSGeofenceDataQueryDTO, GPSGeofenceDataQuerySchema, GPSGeofenceDataSchema, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, createGPSGeofenceData, deleteGPSGeofenceData, findGPSGeofenceData, newGPSGeofenceDataPayload, toGPSGeofenceDataPayload, updateGPSGeofenceData };
|
|
@@ -1,212 +0,0 @@
|
|
|
1
|
-
// src/core/sdk-config.ts
|
|
2
|
-
var axiosInstance;
|
|
3
|
-
var getAxiosInstance = () => {
|
|
4
|
-
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
|
|
6
|
-
}
|
|
7
|
-
return axiosInstance;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// src/core/apiCall.ts
|
|
11
|
-
var apiPost = async (url, data) => {
|
|
12
|
-
const response = await getAxiosInstance().post(url, data);
|
|
13
|
-
return response.data;
|
|
14
|
-
};
|
|
15
|
-
var apiPatch = async (url, data) => {
|
|
16
|
-
const response = await getAxiosInstance().patch(url, data);
|
|
17
|
-
return response.data;
|
|
18
|
-
};
|
|
19
|
-
var apiDelete = async (url) => {
|
|
20
|
-
const response = await getAxiosInstance().delete(url);
|
|
21
|
-
return response.data;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/services/gps/features/geofence/gps_geofence_data_service.ts
|
|
25
|
-
import { z } from "zod";
|
|
26
|
-
import {
|
|
27
|
-
stringMandatory,
|
|
28
|
-
stringOptional,
|
|
29
|
-
enumMandatory,
|
|
30
|
-
enumArrayOptional,
|
|
31
|
-
multi_select_optional,
|
|
32
|
-
single_select_mandatory,
|
|
33
|
-
doubleOptional,
|
|
34
|
-
doubleMandatoryLatLng,
|
|
35
|
-
nestedArrayOfObjectsOptional,
|
|
36
|
-
getAllEnums,
|
|
37
|
-
doubleOptionalLatLng
|
|
38
|
-
} from "zod/zod_utils";
|
|
39
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
40
|
-
|
|
41
|
-
// src/core/Enums.ts
|
|
42
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
43
|
-
Status2["Active"] = "Active";
|
|
44
|
-
Status2["Inactive"] = "Inactive";
|
|
45
|
-
return Status2;
|
|
46
|
-
})(Status || {});
|
|
47
|
-
var GeofenceType = /* @__PURE__ */ ((GeofenceType2) => {
|
|
48
|
-
GeofenceType2["Polygon"] = "Polygon";
|
|
49
|
-
GeofenceType2["Circle"] = "Circle";
|
|
50
|
-
return GeofenceType2;
|
|
51
|
-
})(GeofenceType || {});
|
|
52
|
-
var GeofencePurposeType = /* @__PURE__ */ ((GeofencePurposeType2) => {
|
|
53
|
-
GeofencePurposeType2["TripSourceLocation"] = "TripSourceLocation";
|
|
54
|
-
GeofencePurposeType2["TripEndLocation"] = "TripEndLocation";
|
|
55
|
-
GeofencePurposeType2["IntermediateStop"] = "IntermediateStop";
|
|
56
|
-
GeofencePurposeType2["LoadingPoint"] = "LoadingPoint";
|
|
57
|
-
GeofencePurposeType2["UnloadingPoint"] = "UnloadingPoint";
|
|
58
|
-
GeofencePurposeType2["Warehouse"] = "Warehouse";
|
|
59
|
-
GeofencePurposeType2["Plant"] = "Plant";
|
|
60
|
-
GeofencePurposeType2["DistributionHub"] = "DistributionHub";
|
|
61
|
-
GeofencePurposeType2["CustomerLocation"] = "CustomerLocation";
|
|
62
|
-
GeofencePurposeType2["VendorLocation"] = "VendorLocation";
|
|
63
|
-
GeofencePurposeType2["ParkingYard"] = "ParkingYard";
|
|
64
|
-
GeofencePurposeType2["Depot"] = "Depot";
|
|
65
|
-
GeofencePurposeType2["LogisticsPark"] = "LogisticsPark";
|
|
66
|
-
GeofencePurposeType2["Factory"] = "Factory";
|
|
67
|
-
GeofencePurposeType2["Port"] = "Port";
|
|
68
|
-
GeofencePurposeType2["AirportCargoZone"] = "AirportCargoZone";
|
|
69
|
-
GeofencePurposeType2["WeighBridge"] = "WeighBridge";
|
|
70
|
-
GeofencePurposeType2["SecurityGate"] = "SecurityGate";
|
|
71
|
-
GeofencePurposeType2["ScrapYard"] = "ScrapYard";
|
|
72
|
-
GeofencePurposeType2["Checkpost"] = "Checkpost";
|
|
73
|
-
GeofencePurposeType2["TollBooth"] = "TollBooth";
|
|
74
|
-
GeofencePurposeType2["BusStop"] = "BusStop";
|
|
75
|
-
GeofencePurposeType2["BusDepot"] = "BusDepot";
|
|
76
|
-
GeofencePurposeType2["CabPickupPoint"] = "CabPickupPoint";
|
|
77
|
-
GeofencePurposeType2["CabDropPoint"] = "CabDropPoint";
|
|
78
|
-
GeofencePurposeType2["SchoolPickupZone"] = "SchoolPickupZone";
|
|
79
|
-
GeofencePurposeType2["SchoolDropZone"] = "SchoolDropZone";
|
|
80
|
-
GeofencePurposeType2["Terminal"] = "Terminal";
|
|
81
|
-
GeofencePurposeType2["Station"] = "Station";
|
|
82
|
-
GeofencePurposeType2["Office"] = "Office";
|
|
83
|
-
GeofencePurposeType2["ResidentialArea"] = "ResidentialArea";
|
|
84
|
-
GeofencePurposeType2["ColdStorage"] = "ColdStorage";
|
|
85
|
-
GeofencePurposeType2["TemperatureSensitiveZone"] = "TemperatureSensitiveZone";
|
|
86
|
-
GeofencePurposeType2["PharmaDeliveryPoint"] = "PharmaDeliveryPoint";
|
|
87
|
-
GeofencePurposeType2["VaccineDropLocation"] = "VaccineDropLocation";
|
|
88
|
-
GeofencePurposeType2["ChargingStation"] = "ChargingStation";
|
|
89
|
-
GeofencePurposeType2["BatterySwapStation"] = "BatterySwapStation";
|
|
90
|
-
GeofencePurposeType2["FuelStation"] = "FuelStation";
|
|
91
|
-
GeofencePurposeType2["ServiceCenter"] = "ServiceCenter";
|
|
92
|
-
GeofencePurposeType2["MaintenanceBay"] = "MaintenanceBay";
|
|
93
|
-
GeofencePurposeType2["RestrictedArea"] = "RestrictedArea";
|
|
94
|
-
GeofencePurposeType2["SpeedLimitZone"] = "SpeedLimitZone";
|
|
95
|
-
GeofencePurposeType2["NoParkingZone"] = "NoParkingZone";
|
|
96
|
-
GeofencePurposeType2["AccidentProneZone"] = "AccidentProneZone";
|
|
97
|
-
GeofencePurposeType2["SchoolZone"] = "SchoolZone";
|
|
98
|
-
GeofencePurposeType2["Farm"] = "Farm";
|
|
99
|
-
GeofencePurposeType2["CollectionCenter"] = "CollectionCenter";
|
|
100
|
-
GeofencePurposeType2["RuralDeliveryPoint"] = "RuralDeliveryPoint";
|
|
101
|
-
GeofencePurposeType2["MiningZone"] = "MiningZone";
|
|
102
|
-
GeofencePurposeType2["Quarry"] = "Quarry";
|
|
103
|
-
GeofencePurposeType2["MaterialPickup"] = "MaterialPickup";
|
|
104
|
-
GeofencePurposeType2["MaterialDumpingZone"] = "MaterialDumpingZone";
|
|
105
|
-
GeofencePurposeType2["BorderCheckpost"] = "BorderCheckpost";
|
|
106
|
-
GeofencePurposeType2["PoliceStation"] = "PoliceStation";
|
|
107
|
-
GeofencePurposeType2["FireStation"] = "FireStation";
|
|
108
|
-
GeofencePurposeType2["EmergencyResponseZone"] = "EmergencyResponseZone";
|
|
109
|
-
GeofencePurposeType2["Custom"] = "Custom";
|
|
110
|
-
return GeofencePurposeType2;
|
|
111
|
-
})(GeofencePurposeType || {});
|
|
112
|
-
|
|
113
|
-
// src/services/gps/features/geofence/gps_geofence_data_service.ts
|
|
114
|
-
var URL = "gps/features/gps_geofence_data";
|
|
115
|
-
var ENDPOINTS = {
|
|
116
|
-
find: `${URL}/search`,
|
|
117
|
-
create: URL,
|
|
118
|
-
update: (id) => `${URL}/${id}`,
|
|
119
|
-
delete: (id) => `${URL}/${id}`
|
|
120
|
-
};
|
|
121
|
-
var GPSGeofencePolilineDataSchema = z.object({
|
|
122
|
-
latitude: doubleMandatoryLatLng("latitude"),
|
|
123
|
-
longitude: doubleMandatoryLatLng("longitude")
|
|
124
|
-
});
|
|
125
|
-
var GPSGeofenceDataSchema = z.object({
|
|
126
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
127
|
-
geofence_name: stringMandatory("Geofence Name", 3, 100),
|
|
128
|
-
location_name: stringMandatory("Location Name", 3, 100),
|
|
129
|
-
geofence_type: enumMandatory(
|
|
130
|
-
"Geofence Type",
|
|
131
|
-
GeofenceType,
|
|
132
|
-
"Circle" /* Circle */
|
|
133
|
-
),
|
|
134
|
-
radius_km: doubleOptional("radius_km"),
|
|
135
|
-
latitude: doubleOptionalLatLng("latitude"),
|
|
136
|
-
longitude: doubleOptionalLatLng("longitude"),
|
|
137
|
-
poliline_data: nestedArrayOfObjectsOptional(
|
|
138
|
-
"Polyline Data",
|
|
139
|
-
GPSGeofencePolilineDataSchema,
|
|
140
|
-
[]
|
|
141
|
-
),
|
|
142
|
-
geofence_description: stringOptional("Geofence Description", 0, 500),
|
|
143
|
-
geofence_purpose_type: enumMandatory(
|
|
144
|
-
"Geofence Purpuse Type",
|
|
145
|
-
GeofencePurposeType,
|
|
146
|
-
"TripSourceLocation" /* TripSourceLocation */
|
|
147
|
-
),
|
|
148
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
149
|
-
});
|
|
150
|
-
var GPSGeofenceDataQuerySchema = BaseQuerySchema.extend({
|
|
151
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
152
|
-
// ✅ Multi-selection -> UserOrganisation
|
|
153
|
-
geofence_type: enumArrayOptional(
|
|
154
|
-
"Geofence Type",
|
|
155
|
-
GeofenceType,
|
|
156
|
-
getAllEnums(GeofenceType)
|
|
157
|
-
),
|
|
158
|
-
geofence_purpose_type: enumArrayOptional(
|
|
159
|
-
"Geofence Purpose Type",
|
|
160
|
-
GeofencePurposeType,
|
|
161
|
-
getAllEnums(GeofencePurposeType)
|
|
162
|
-
)
|
|
163
|
-
});
|
|
164
|
-
var toGPSGeofenceDataPayload = (data) => ({
|
|
165
|
-
organisation_id: data.organisation_id,
|
|
166
|
-
geofence_name: data.geofence_name,
|
|
167
|
-
location_name: data.location_name,
|
|
168
|
-
geofence_type: data.geofence_type,
|
|
169
|
-
radius_km: data.radius_km,
|
|
170
|
-
latitude: data.latitude,
|
|
171
|
-
longitude: data.longitude,
|
|
172
|
-
poliline_data: data.poliline_data ?? [],
|
|
173
|
-
geofence_description: data.geofence_description ?? "",
|
|
174
|
-
geofence_purpose_type: data.geofence_purpose_type,
|
|
175
|
-
status: data.status
|
|
176
|
-
});
|
|
177
|
-
var newGPSGeofenceDataPayload = () => ({
|
|
178
|
-
organisation_id: "",
|
|
179
|
-
geofence_name: "",
|
|
180
|
-
location_name: "",
|
|
181
|
-
geofence_type: "Circle" /* Circle */,
|
|
182
|
-
radius_km: 0,
|
|
183
|
-
latitude: 0,
|
|
184
|
-
longitude: 0,
|
|
185
|
-
poliline_data: [],
|
|
186
|
-
geofence_description: "",
|
|
187
|
-
geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
|
|
188
|
-
status: "Active" /* Active */
|
|
189
|
-
});
|
|
190
|
-
var findGPSGeofenceData = async (data) => {
|
|
191
|
-
return apiPost(ENDPOINTS.find, data);
|
|
192
|
-
};
|
|
193
|
-
var createGPSGeofenceData = async (data) => {
|
|
194
|
-
return apiPost(ENDPOINTS.create, data);
|
|
195
|
-
};
|
|
196
|
-
var updateGPSGeofenceData = async (id, data) => {
|
|
197
|
-
return apiPatch(ENDPOINTS.update(id), data);
|
|
198
|
-
};
|
|
199
|
-
var deleteGPSGeofenceData = async (id) => {
|
|
200
|
-
return apiDelete(ENDPOINTS.delete(id));
|
|
201
|
-
};
|
|
202
|
-
export {
|
|
203
|
-
GPSGeofenceDataQuerySchema,
|
|
204
|
-
GPSGeofenceDataSchema,
|
|
205
|
-
GPSGeofencePolilineDataSchema,
|
|
206
|
-
createGPSGeofenceData,
|
|
207
|
-
deleteGPSGeofenceData,
|
|
208
|
-
findGPSGeofenceData,
|
|
209
|
-
newGPSGeofenceDataPayload,
|
|
210
|
-
toGPSGeofenceDataPayload,
|
|
211
|
-
updateGPSGeofenceData
|
|
212
|
-
};
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import { GeofenceStatusType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
|
-
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
|
-
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-CNOJPhQD.js';
|
|
5
|
-
import { GPSGeofenceData } from './gps_geofence_data_service.js';
|
|
6
|
-
import 'zod/zod_base_schema';
|
|
7
|
-
import '../../../master/main/master_main_sim_provider_service.js';
|
|
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
|
-
geofence_status_type: GeofenceStatusType;
|
|
35
|
-
geofence_time: string;
|
|
36
|
-
status: Status;
|
|
37
|
-
organisation_id: string;
|
|
38
|
-
vehicle_id: string;
|
|
39
|
-
driver_id: string;
|
|
40
|
-
gps_geofence_id: string;
|
|
41
|
-
}, {
|
|
42
|
-
geofence_status_type: GeofenceStatusType;
|
|
43
|
-
geofence_time: string;
|
|
44
|
-
status: Status;
|
|
45
|
-
organisation_id: string;
|
|
46
|
-
vehicle_id: string;
|
|
47
|
-
driver_id: string;
|
|
48
|
-
gps_geofence_id: 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
|
-
geofence_status_type: GeofenceStatusType[];
|
|
89
|
-
status: Status[];
|
|
90
|
-
search: string;
|
|
91
|
-
paging: PAGING;
|
|
92
|
-
page_count: number;
|
|
93
|
-
page_index: number;
|
|
94
|
-
load_parents: LoadParents;
|
|
95
|
-
load_parents_list: string[];
|
|
96
|
-
load_child: LoadChild;
|
|
97
|
-
load_child_list: string[];
|
|
98
|
-
load_child_count: LoadChildCount;
|
|
99
|
-
load_child_count_list: string[];
|
|
100
|
-
include_details: Record<string, any>;
|
|
101
|
-
where_relations: Record<string, any>;
|
|
102
|
-
order_by: {
|
|
103
|
-
name: string;
|
|
104
|
-
field: string;
|
|
105
|
-
direction: OrderBy;
|
|
106
|
-
}[];
|
|
107
|
-
include_master_data: YesNo;
|
|
108
|
-
date_format_id: string;
|
|
109
|
-
time_zone_id: string;
|
|
110
|
-
organisation_ids: string[];
|
|
111
|
-
vehicle_ids: string[];
|
|
112
|
-
driver_ids: string[];
|
|
113
|
-
gps_geofence_ids: string[];
|
|
114
|
-
}, {
|
|
115
|
-
date_format_id: string;
|
|
116
|
-
time_zone_id: string;
|
|
117
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
118
|
-
status?: Status[] | undefined;
|
|
119
|
-
search?: string | undefined;
|
|
120
|
-
paging?: PAGING | undefined;
|
|
121
|
-
page_count?: unknown;
|
|
122
|
-
page_index?: unknown;
|
|
123
|
-
load_parents?: LoadParents | undefined;
|
|
124
|
-
load_parents_list?: string[] | undefined;
|
|
125
|
-
load_child?: LoadChild | undefined;
|
|
126
|
-
load_child_list?: string[] | undefined;
|
|
127
|
-
load_child_count?: LoadChildCount | undefined;
|
|
128
|
-
load_child_count_list?: string[] | undefined;
|
|
129
|
-
include_details?: Record<string, any> | undefined;
|
|
130
|
-
where_relations?: Record<string, any> | undefined;
|
|
131
|
-
order_by?: {
|
|
132
|
-
name: string;
|
|
133
|
-
field: string;
|
|
134
|
-
direction: OrderBy;
|
|
135
|
-
}[] | undefined;
|
|
136
|
-
include_master_data?: YesNo | undefined;
|
|
137
|
-
organisation_ids?: string[] | undefined;
|
|
138
|
-
vehicle_ids?: string[] | undefined;
|
|
139
|
-
driver_ids?: string[] | 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,124 +0,0 @@
|
|
|
1
|
-
// src/core/sdk-config.ts
|
|
2
|
-
var axiosInstance;
|
|
3
|
-
var getAxiosInstance = () => {
|
|
4
|
-
if (!axiosInstance) {
|
|
5
|
-
throw new Error("\u274C Axios instance not configured. Call setupSdk() first.");
|
|
6
|
-
}
|
|
7
|
-
return axiosInstance;
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
// src/core/apiCall.ts
|
|
11
|
-
var apiPost = async (url, data) => {
|
|
12
|
-
const response = await getAxiosInstance().post(url, data);
|
|
13
|
-
return response.data;
|
|
14
|
-
};
|
|
15
|
-
var apiPatch = async (url, data) => {
|
|
16
|
-
const response = await getAxiosInstance().patch(url, data);
|
|
17
|
-
return response.data;
|
|
18
|
-
};
|
|
19
|
-
var apiDelete = async (url) => {
|
|
20
|
-
const response = await getAxiosInstance().delete(url);
|
|
21
|
-
return response.data;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
// src/services/gps/features/geofence/gps_geofence_transaction_service.ts
|
|
25
|
-
import { z } from "zod";
|
|
26
|
-
import {
|
|
27
|
-
enumMandatory,
|
|
28
|
-
enumArrayOptional,
|
|
29
|
-
single_select_mandatory,
|
|
30
|
-
single_select_optional,
|
|
31
|
-
dateMandatory,
|
|
32
|
-
getAllEnums,
|
|
33
|
-
multi_select_optional
|
|
34
|
-
} from "zod/zod_utils";
|
|
35
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
36
|
-
|
|
37
|
-
// src/core/Enums.ts
|
|
38
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
39
|
-
Status2["Active"] = "Active";
|
|
40
|
-
Status2["Inactive"] = "Inactive";
|
|
41
|
-
return Status2;
|
|
42
|
-
})(Status || {});
|
|
43
|
-
var GeofenceStatusType = /* @__PURE__ */ ((GeofenceStatusType2) => {
|
|
44
|
-
GeofenceStatusType2["Enter"] = "Enter";
|
|
45
|
-
GeofenceStatusType2["Exit"] = "Exit";
|
|
46
|
-
return GeofenceStatusType2;
|
|
47
|
-
})(GeofenceStatusType || {});
|
|
48
|
-
|
|
49
|
-
// src/services/gps/features/geofence/gps_geofence_transaction_service.ts
|
|
50
|
-
var URL = "gps/features/gps_geofence_transaction";
|
|
51
|
-
var ENDPOINTS = {
|
|
52
|
-
find: `${URL}/search`,
|
|
53
|
-
create: URL,
|
|
54
|
-
update: (id) => `${URL}/${id}`,
|
|
55
|
-
delete: (id) => `${URL}/${id}`
|
|
56
|
-
};
|
|
57
|
-
var GPSGeofenceTransactionSchema = z.object({
|
|
58
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
59
|
-
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
60
|
-
gps_geofence_id: single_select_mandatory("GPS Geofence ID"),
|
|
61
|
-
driver_id: single_select_optional("Driver ID"),
|
|
62
|
-
geofence_status_type: enumMandatory(
|
|
63
|
-
"Geofence Status Type",
|
|
64
|
-
GeofenceStatusType,
|
|
65
|
-
"Enter" /* Enter */
|
|
66
|
-
),
|
|
67
|
-
geofence_time: dateMandatory("Geofence Time"),
|
|
68
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
69
|
-
});
|
|
70
|
-
var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
|
|
71
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
72
|
-
// ✅ Multi-selection -> UserOrganisation
|
|
73
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
74
|
-
// ✅ Multi-selection -> Master Vehicle
|
|
75
|
-
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
76
|
-
// ✅ Multi-selection -> Master Driver
|
|
77
|
-
gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
|
|
78
|
-
// ✅ Multi-selection -> Gps Geofence
|
|
79
|
-
geofence_status_type: enumArrayOptional(
|
|
80
|
-
"Geofence Status Type",
|
|
81
|
-
GeofenceStatusType,
|
|
82
|
-
getAllEnums(GeofenceStatusType)
|
|
83
|
-
)
|
|
84
|
-
});
|
|
85
|
-
var toGPSGeofenceTransactionPayload = (data) => ({
|
|
86
|
-
organisation_id: data.organisation_id,
|
|
87
|
-
vehicle_id: data.vehicle_id,
|
|
88
|
-
gps_geofence_id: data.gps_geofence_id,
|
|
89
|
-
driver_id: data.driver_id || "",
|
|
90
|
-
geofence_status_type: data.geofence_status_type,
|
|
91
|
-
geofence_time: data.geofence_time,
|
|
92
|
-
status: data.status
|
|
93
|
-
});
|
|
94
|
-
var newGPSGeofenceTransactionPayload = () => ({
|
|
95
|
-
organisation_id: "",
|
|
96
|
-
vehicle_id: "",
|
|
97
|
-
gps_geofence_id: "",
|
|
98
|
-
driver_id: "",
|
|
99
|
-
geofence_status_type: "Enter" /* Enter */,
|
|
100
|
-
geofence_time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
101
|
-
status: "Active" /* Active */
|
|
102
|
-
});
|
|
103
|
-
var findGPSGeofenceTransactions = async (data) => {
|
|
104
|
-
return apiPost(ENDPOINTS.find, data);
|
|
105
|
-
};
|
|
106
|
-
var createGPSGeofenceTransaction = async (data) => {
|
|
107
|
-
return apiPost(ENDPOINTS.create, data);
|
|
108
|
-
};
|
|
109
|
-
var updateGPSGeofenceTransaction = async (id, data) => {
|
|
110
|
-
return apiPatch(ENDPOINTS.update(id), data);
|
|
111
|
-
};
|
|
112
|
-
var deleteGPSGeofenceTransaction = async (id) => {
|
|
113
|
-
return apiDelete(ENDPOINTS.delete(id));
|
|
114
|
-
};
|
|
115
|
-
export {
|
|
116
|
-
GPSGeofenceTransactionQuerySchema,
|
|
117
|
-
GPSGeofenceTransactionSchema,
|
|
118
|
-
createGPSGeofenceTransaction,
|
|
119
|
-
deleteGPSGeofenceTransaction,
|
|
120
|
-
findGPSGeofenceTransactions,
|
|
121
|
-
newGPSGeofenceTransactionPayload,
|
|
122
|
-
toGPSGeofenceTransactionPayload,
|
|
123
|
-
updateGPSGeofenceTransaction
|
|
124
|
-
};
|