vms-nest-prisma-api-document 1.1.7 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/BaseRequest.js +28 -2
- package/dist/core/BaseResponse.js +27 -2
- package/dist/core/Enums.js +93 -2
- package/dist/core/apiCall.js +32 -2
- package/dist/core/sdk-config.js +28 -2
- package/dist/index.js +1 -0
- package/dist/services/account/alert_service.d.ts +32 -32
- package/dist/services/account/alert_service.js +84 -58
- package/dist/services/account/analytics/user_login_analytics_service.js +49 -21
- package/dist/services/account/analytics/user_page_analytics_service.js +47 -14
- package/dist/services/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/bookmark_service.js +59 -33
- package/dist/services/account/notification_service.d.ts +6 -6
- package/dist/services/account/notification_service.js +64 -39
- package/dist/services/account/ticket_service.d.ts +3 -3
- package/dist/services/account/ticket_service.js +70 -44
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +71 -44
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +11 -11
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +73 -52
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +11 -11
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +73 -52
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/gps_geofence_data_service.js +61 -38
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +54 -28
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +57 -31
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +3 -3
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +70 -45
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
- package/dist/services/gps/features/gps_live_track_share_link_service.js +74 -47
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +10 -10
- package/dist/services/gps/features/gps_track_history_share_link_service.js +62 -35
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.js +18 -0
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.js +18 -0
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsAnalytics.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsPacket.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsSensor.js +18 -0
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.js +18 -0
- package/dist/services/gps/reports/gps_models/KilometerMonthly.js +18 -0
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.js +18 -0
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.js +18 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- package/dist/services/gps/reports/gps_reports_mongo_service.js +111 -70
- package/dist/services/gps/reports/gps_reports_postgre_service.js +1 -0
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/devices/master_device_service.js +69 -38
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.js +73 -43
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.js +54 -27
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.js +47 -15
- package/dist/services/main/users/user_admin_service.js +52 -21
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.js +88 -59
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/users/user_service.js +142 -98
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +52 -24
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +282 -227
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.js +48 -16
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.js +50 -19
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.js +53 -22
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.js +49 -20
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.js +47 -17
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.js +48 -19
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.js +47 -17
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.js +48 -16
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.js +49 -20
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.js +46 -15
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +46 -16
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +46 -16
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.js +46 -16
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.js +55 -28
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.js +46 -15
- package/dist/services/master/main/master_main_sim_provider_service.js +46 -15
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.js +48 -19
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.js +51 -22
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.js +46 -15
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.js +46 -15
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.js +46 -15
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.js +51 -19
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.js +50 -18
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.js +51 -19
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.js +52 -21
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.js +49 -17
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.js +51 -18
- 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_sub_category_service.js +50 -20
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +48 -18
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.js +47 -17
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.js +47 -17
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.js +50 -17
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.js +49 -19
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.js +47 -17
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.js +49 -17
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.js +49 -19
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +51 -21
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.js +49 -17
- package/dist/services/website/contact_us_detail_service.js +53 -23
- package/dist/services/website/faq_service.js +46 -16
- package/dist/services/website/static_pages_service.js +47 -17
- package/dist/zod/zod_base_schema.js +47 -20
- package/dist/zod/zod_utils.js +108 -49
- package/package.json +2 -2
- package/dist/{user_organisation_service-umUoNvpJ.d.ts → user_organisation_service-CNOJPhQD.d.ts} +20 -20
|
@@ -1,3 +1,36 @@
|
|
|
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/fuel/gps_fuel_vehicle_removal_service.ts
|
|
21
|
+
var gps_fuel_vehicle_removal_service_exports = {};
|
|
22
|
+
__export(gps_fuel_vehicle_removal_service_exports, {
|
|
23
|
+
GPSFuelVehicleRemovalQuerySchema: () => GPSFuelVehicleRemovalQuerySchema,
|
|
24
|
+
GPSFuelVehicleRemovalSchema: () => GPSFuelVehicleRemovalSchema,
|
|
25
|
+
createGPSFuelVehicleRemoval: () => createGPSFuelVehicleRemoval,
|
|
26
|
+
deleteGPSFuelVehicleRemoval: () => deleteGPSFuelVehicleRemoval,
|
|
27
|
+
findGPSFuelVehicleRemovals: () => findGPSFuelVehicleRemovals,
|
|
28
|
+
newGPSFuelVehicleRemovalPayload: () => newGPSFuelVehicleRemovalPayload,
|
|
29
|
+
toGPSFuelVehicleRemovalPayload: () => toGPSFuelVehicleRemovalPayload,
|
|
30
|
+
updateGPSFuelVehicleRemoval: () => updateGPSFuelVehicleRemoval
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(gps_fuel_vehicle_removal_service_exports);
|
|
33
|
+
|
|
1
34
|
// src/core/sdk-config.ts
|
|
2
35
|
var axiosInstance;
|
|
3
36
|
var getAxiosInstance = () => {
|
|
@@ -22,22 +55,9 @@ var apiDelete = async (url) => {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/services/gps/features/fuel/gps_fuel_vehicle_removal_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
doubleOptional,
|
|
29
|
-
enumMandatory,
|
|
30
|
-
enumArrayOptional,
|
|
31
|
-
getAllEnums,
|
|
32
|
-
multi_select_optional,
|
|
33
|
-
single_select_mandatory,
|
|
34
|
-
single_select_optional,
|
|
35
|
-
stringOptional,
|
|
36
|
-
dateMandatory,
|
|
37
|
-
doubleOptionalLatLng,
|
|
38
|
-
numberOptional
|
|
39
|
-
} from "zod/zod_utils";
|
|
40
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
58
|
+
var import_zod = require("zod");
|
|
59
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
41
61
|
|
|
42
62
|
// src/core/Enums.ts
|
|
43
63
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -65,53 +85,53 @@ var ENDPOINTS = {
|
|
|
65
85
|
update: (id) => `${URL}/${id}`,
|
|
66
86
|
delete: (id) => `${URL}/${id}`
|
|
67
87
|
};
|
|
68
|
-
var GPSFuelVehicleRemovalSchema = z.object({
|
|
69
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
70
|
-
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
71
|
-
device_id: single_select_mandatory("Device ID"),
|
|
72
|
-
user_id: single_select_optional("User ID"),
|
|
73
|
-
driver_id: single_select_optional("Driver ID"),
|
|
74
|
-
before_remove_fuel_liters: doubleMandatory("Before Remove Fuel Liters"),
|
|
75
|
-
after_remove_fuel_liters: doubleMandatory("Before Remove Fuel Liters"),
|
|
76
|
-
gps_removal_liters: doubleMandatory("GPS Removal Liters"),
|
|
77
|
-
verified_removal_liters: doubleMandatory("Verified Removal Liters"),
|
|
78
|
-
verified: enumMandatory("Verified", YesNo, "Yes" /* Yes */),
|
|
79
|
-
approved: enumMandatory(
|
|
88
|
+
var GPSFuelVehicleRemovalSchema = import_zod.z.object({
|
|
89
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
90
|
+
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
91
|
+
device_id: (0, import_zod_utils.single_select_mandatory)("Device ID"),
|
|
92
|
+
user_id: (0, import_zod_utils.single_select_optional)("User ID"),
|
|
93
|
+
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
94
|
+
before_remove_fuel_liters: (0, import_zod_utils.doubleMandatory)("Before Remove Fuel Liters"),
|
|
95
|
+
after_remove_fuel_liters: (0, import_zod_utils.doubleMandatory)("Before Remove Fuel Liters"),
|
|
96
|
+
gps_removal_liters: (0, import_zod_utils.doubleMandatory)("GPS Removal Liters"),
|
|
97
|
+
verified_removal_liters: (0, import_zod_utils.doubleMandatory)("Verified Removal Liters"),
|
|
98
|
+
verified: (0, import_zod_utils.enumMandatory)("Verified", YesNo, "Yes" /* Yes */),
|
|
99
|
+
approved: (0, import_zod_utils.enumMandatory)(
|
|
80
100
|
"GPS Fuel Approve Status",
|
|
81
101
|
GPSFuelApproveStatus,
|
|
82
102
|
"Pending" /* Pending */
|
|
83
103
|
),
|
|
84
|
-
date_time: dateMandatory("Date Time"),
|
|
85
|
-
cost_per_liter: doubleOptional("Cost Per Liter"),
|
|
86
|
-
total_cost: doubleOptional("Total Cost"),
|
|
87
|
-
refill_details: stringOptional("Refill Details", 0, 300),
|
|
88
|
-
latitude: doubleOptionalLatLng("Latitude"),
|
|
89
|
-
longitude: doubleOptionalLatLng("Longitude"),
|
|
90
|
-
gl: stringOptional("GL", 0, 300),
|
|
91
|
-
lid: stringOptional("LID", 0, 300),
|
|
92
|
-
ll: stringOptional("LL", 0, 300),
|
|
93
|
-
ld: numberOptional("LD"),
|
|
94
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
104
|
+
date_time: (0, import_zod_utils.dateMandatory)("Date Time"),
|
|
105
|
+
cost_per_liter: (0, import_zod_utils.doubleOptional)("Cost Per Liter"),
|
|
106
|
+
total_cost: (0, import_zod_utils.doubleOptional)("Total Cost"),
|
|
107
|
+
refill_details: (0, import_zod_utils.stringOptional)("Refill Details", 0, 300),
|
|
108
|
+
latitude: (0, import_zod_utils.doubleOptionalLatLng)("Latitude"),
|
|
109
|
+
longitude: (0, import_zod_utils.doubleOptionalLatLng)("Longitude"),
|
|
110
|
+
gl: (0, import_zod_utils.stringOptional)("GL", 0, 300),
|
|
111
|
+
lid: (0, import_zod_utils.stringOptional)("LID", 0, 300),
|
|
112
|
+
ll: (0, import_zod_utils.stringOptional)("LL", 0, 300),
|
|
113
|
+
ld: (0, import_zod_utils.numberOptional)("LD"),
|
|
114
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
95
115
|
});
|
|
96
|
-
var GPSFuelVehicleRemovalQuerySchema = BaseQuerySchema.extend({
|
|
97
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
116
|
+
var GPSFuelVehicleRemovalQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
117
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
98
118
|
// ✅ Multi-selection -> UserOrganisation
|
|
99
|
-
user_ids: multi_select_optional("User IDs"),
|
|
119
|
+
user_ids: (0, import_zod_utils.multi_select_optional)("User IDs"),
|
|
100
120
|
// ✅ Multi-selection -> User
|
|
101
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
121
|
+
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
102
122
|
// ✅ Multi-selection -> MasterVehicle
|
|
103
|
-
device_ids: multi_select_optional("Master Device IDs"),
|
|
123
|
+
device_ids: (0, import_zod_utils.multi_select_optional)("Master Device IDs"),
|
|
104
124
|
// ✅ Multi-selection -> Master Device
|
|
105
|
-
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
125
|
+
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
106
126
|
// ✅ Multi-selection -> Master Driver
|
|
107
|
-
approved: enumArrayOptional(
|
|
127
|
+
approved: (0, import_zod_utils.enumArrayOptional)(
|
|
108
128
|
"Approved",
|
|
109
129
|
GPSFuelApproveStatus,
|
|
110
|
-
getAllEnums(GPSFuelApproveStatus)
|
|
130
|
+
(0, import_zod_utils.getAllEnums)(GPSFuelApproveStatus)
|
|
111
131
|
),
|
|
112
|
-
verified: enumArrayOptional("Verified", YesNo, getAllEnums(YesNo)),
|
|
113
|
-
from_date: dateMandatory("From Date"),
|
|
114
|
-
to_date: dateMandatory("To Date")
|
|
132
|
+
verified: (0, import_zod_utils.enumArrayOptional)("Verified", YesNo, (0, import_zod_utils.getAllEnums)(YesNo)),
|
|
133
|
+
from_date: (0, import_zod_utils.dateMandatory)("From Date"),
|
|
134
|
+
to_date: (0, import_zod_utils.dateMandatory)("To Date")
|
|
115
135
|
});
|
|
116
136
|
var toGPSFuelVehicleRemovalPayload = (item) => ({
|
|
117
137
|
organisation_id: item.organisation_id,
|
|
@@ -176,7 +196,8 @@ var updateGPSFuelVehicleRemoval = async (id, data) => {
|
|
|
176
196
|
var deleteGPSFuelVehicleRemoval = async (id) => {
|
|
177
197
|
return apiDelete(ENDPOINTS.delete(id));
|
|
178
198
|
};
|
|
179
|
-
export
|
|
199
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
200
|
+
0 && (module.exports = {
|
|
180
201
|
GPSFuelVehicleRemovalQuerySchema,
|
|
181
202
|
GPSFuelVehicleRemovalSchema,
|
|
182
203
|
createGPSFuelVehicleRemoval,
|
|
@@ -185,4 +206,4 @@ export {
|
|
|
185
206
|
newGPSFuelVehicleRemovalPayload,
|
|
186
207
|
toGPSFuelVehicleRemovalPayload,
|
|
187
208
|
updateGPSFuelVehicleRemoval
|
|
188
|
-
};
|
|
209
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofenceType, GeofencePurposeType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation } from '../../../../user_organisation_service-CNOJPhQD.js';
|
|
5
5
|
import 'zod/zod_base_schema';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -59,8 +59,6 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
59
59
|
geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
|
|
60
60
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
status: Status;
|
|
63
|
-
organisation_id: string;
|
|
64
62
|
geofence_name: string;
|
|
65
63
|
location_name: string;
|
|
66
64
|
geofence_type: GeofenceType;
|
|
@@ -70,19 +68,21 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
70
68
|
}[];
|
|
71
69
|
geofence_description: string;
|
|
72
70
|
geofence_purpose_type: GeofencePurposeType;
|
|
71
|
+
status: Status;
|
|
72
|
+
organisation_id: string;
|
|
73
|
+
radius_km?: number | undefined;
|
|
73
74
|
latitude?: number | undefined;
|
|
74
75
|
longitude?: number | undefined;
|
|
75
|
-
radius_km?: number | undefined;
|
|
76
76
|
}, {
|
|
77
|
-
status: Status;
|
|
78
|
-
organisation_id: string;
|
|
79
77
|
geofence_name: string;
|
|
80
78
|
location_name: string;
|
|
81
79
|
geofence_type: GeofenceType;
|
|
82
80
|
geofence_purpose_type: GeofencePurposeType;
|
|
81
|
+
status: Status;
|
|
82
|
+
organisation_id: string;
|
|
83
|
+
radius_km?: unknown;
|
|
83
84
|
latitude?: unknown;
|
|
84
85
|
longitude?: unknown;
|
|
85
|
-
radius_km?: unknown;
|
|
86
86
|
poliline_data?: {
|
|
87
87
|
latitude?: unknown;
|
|
88
88
|
longitude?: unknown;
|
|
@@ -125,6 +125,8 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
125
125
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
126
126
|
geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
|
|
127
127
|
}, "strip", z.ZodTypeAny, {
|
|
128
|
+
geofence_type: GeofenceType[];
|
|
129
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
128
130
|
status: Status[];
|
|
129
131
|
search: string;
|
|
130
132
|
paging: PAGING;
|
|
@@ -147,11 +149,11 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
147
149
|
date_format_id: string;
|
|
148
150
|
time_zone_id: string;
|
|
149
151
|
organisation_ids: string[];
|
|
150
|
-
geofence_type: GeofenceType[];
|
|
151
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
152
152
|
}, {
|
|
153
153
|
date_format_id: string;
|
|
154
154
|
time_zone_id: string;
|
|
155
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
156
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
155
157
|
status?: Status[] | undefined;
|
|
156
158
|
search?: string | undefined;
|
|
157
159
|
paging?: PAGING | undefined;
|
|
@@ -172,8 +174,6 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
172
174
|
}[] | undefined;
|
|
173
175
|
include_master_data?: YesNo | undefined;
|
|
174
176
|
organisation_ids?: string[] | undefined;
|
|
175
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
176
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
177
177
|
}>;
|
|
178
178
|
type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
|
|
179
179
|
declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
|
|
@@ -1,3 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/gps/features/geofence/gps_geofence_data_service.ts
|
|
21
|
+
var gps_geofence_data_service_exports = {};
|
|
22
|
+
__export(gps_geofence_data_service_exports, {
|
|
23
|
+
GPSGeofenceDataQuerySchema: () => GPSGeofenceDataQuerySchema,
|
|
24
|
+
GPSGeofenceDataSchema: () => GPSGeofenceDataSchema,
|
|
25
|
+
GPSGeofencePolilineDataSchema: () => GPSGeofencePolilineDataSchema,
|
|
26
|
+
createGPSGeofenceData: () => createGPSGeofenceData,
|
|
27
|
+
deleteGPSGeofenceData: () => deleteGPSGeofenceData,
|
|
28
|
+
findGPSGeofenceData: () => findGPSGeofenceData,
|
|
29
|
+
newGPSGeofenceDataPayload: () => newGPSGeofenceDataPayload,
|
|
30
|
+
toGPSGeofenceDataPayload: () => toGPSGeofenceDataPayload,
|
|
31
|
+
updateGPSGeofenceData: () => updateGPSGeofenceData
|
|
32
|
+
});
|
|
33
|
+
module.exports = __toCommonJS(gps_geofence_data_service_exports);
|
|
34
|
+
|
|
1
35
|
// src/core/sdk-config.ts
|
|
2
36
|
var axiosInstance;
|
|
3
37
|
var getAxiosInstance = () => {
|
|
@@ -22,21 +56,9 @@ var apiDelete = async (url) => {
|
|
|
22
56
|
};
|
|
23
57
|
|
|
24
58
|
// src/services/gps/features/geofence/gps_geofence_data_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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";
|
|
59
|
+
var import_zod = require("zod");
|
|
60
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
61
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
40
62
|
|
|
41
63
|
// src/core/Enums.ts
|
|
42
64
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -118,47 +140,47 @@ var ENDPOINTS = {
|
|
|
118
140
|
update: (id) => `${URL}/${id}`,
|
|
119
141
|
delete: (id) => `${URL}/${id}`
|
|
120
142
|
};
|
|
121
|
-
var GPSGeofencePolilineDataSchema = z.object({
|
|
122
|
-
latitude: doubleMandatoryLatLng("latitude"),
|
|
123
|
-
longitude: doubleMandatoryLatLng("longitude")
|
|
143
|
+
var GPSGeofencePolilineDataSchema = import_zod.z.object({
|
|
144
|
+
latitude: (0, import_zod_utils.doubleMandatoryLatLng)("latitude"),
|
|
145
|
+
longitude: (0, import_zod_utils.doubleMandatoryLatLng)("longitude")
|
|
124
146
|
});
|
|
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(
|
|
147
|
+
var GPSGeofenceDataSchema = import_zod.z.object({
|
|
148
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
149
|
+
geofence_name: (0, import_zod_utils.stringMandatory)("Geofence Name", 3, 100),
|
|
150
|
+
location_name: (0, import_zod_utils.stringMandatory)("Location Name", 3, 100),
|
|
151
|
+
geofence_type: (0, import_zod_utils.enumMandatory)(
|
|
130
152
|
"Geofence Type",
|
|
131
153
|
GeofenceType,
|
|
132
154
|
"Circle" /* Circle */
|
|
133
155
|
),
|
|
134
|
-
radius_km: doubleOptional("radius_km"),
|
|
135
|
-
latitude: doubleOptionalLatLng("latitude"),
|
|
136
|
-
longitude: doubleOptionalLatLng("longitude"),
|
|
137
|
-
poliline_data: nestedArrayOfObjectsOptional(
|
|
156
|
+
radius_km: (0, import_zod_utils.doubleOptional)("radius_km"),
|
|
157
|
+
latitude: (0, import_zod_utils.doubleOptionalLatLng)("latitude"),
|
|
158
|
+
longitude: (0, import_zod_utils.doubleOptionalLatLng)("longitude"),
|
|
159
|
+
poliline_data: (0, import_zod_utils.nestedArrayOfObjectsOptional)(
|
|
138
160
|
"Polyline Data",
|
|
139
161
|
GPSGeofencePolilineDataSchema,
|
|
140
162
|
[]
|
|
141
163
|
),
|
|
142
|
-
geofence_description: stringOptional("Geofence Description", 0, 500),
|
|
143
|
-
geofence_purpose_type: enumMandatory(
|
|
164
|
+
geofence_description: (0, import_zod_utils.stringOptional)("Geofence Description", 0, 500),
|
|
165
|
+
geofence_purpose_type: (0, import_zod_utils.enumMandatory)(
|
|
144
166
|
"Geofence Purpuse Type",
|
|
145
167
|
GeofencePurposeType,
|
|
146
168
|
"TripSourceLocation" /* TripSourceLocation */
|
|
147
169
|
),
|
|
148
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
170
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
149
171
|
});
|
|
150
|
-
var GPSGeofenceDataQuerySchema = BaseQuerySchema.extend({
|
|
151
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
172
|
+
var GPSGeofenceDataQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
173
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
152
174
|
// ✅ Multi-selection -> UserOrganisation
|
|
153
|
-
geofence_type: enumArrayOptional(
|
|
175
|
+
geofence_type: (0, import_zod_utils.enumArrayOptional)(
|
|
154
176
|
"Geofence Type",
|
|
155
177
|
GeofenceType,
|
|
156
|
-
getAllEnums(GeofenceType)
|
|
178
|
+
(0, import_zod_utils.getAllEnums)(GeofenceType)
|
|
157
179
|
),
|
|
158
|
-
geofence_purpose_type: enumArrayOptional(
|
|
180
|
+
geofence_purpose_type: (0, import_zod_utils.enumArrayOptional)(
|
|
159
181
|
"Geofence Purpose Type",
|
|
160
182
|
GeofencePurposeType,
|
|
161
|
-
getAllEnums(GeofencePurposeType)
|
|
183
|
+
(0, import_zod_utils.getAllEnums)(GeofencePurposeType)
|
|
162
184
|
)
|
|
163
185
|
});
|
|
164
186
|
var toGPSGeofenceDataPayload = (data) => ({
|
|
@@ -199,7 +221,8 @@ var updateGPSGeofenceData = async (id, data) => {
|
|
|
199
221
|
var deleteGPSGeofenceData = async (id) => {
|
|
200
222
|
return apiDelete(ENDPOINTS.delete(id));
|
|
201
223
|
};
|
|
202
|
-
export
|
|
224
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
225
|
+
0 && (module.exports = {
|
|
203
226
|
GPSGeofenceDataQuerySchema,
|
|
204
227
|
GPSGeofenceDataSchema,
|
|
205
228
|
GPSGeofencePolilineDataSchema,
|
|
@@ -209,4 +232,4 @@ export {
|
|
|
209
232
|
newGPSGeofenceDataPayload,
|
|
210
233
|
toGPSGeofenceDataPayload,
|
|
211
234
|
updateGPSGeofenceData
|
|
212
|
-
};
|
|
235
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofenceStatusType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-CNOJPhQD.js';
|
|
5
5
|
import { GPSGeofenceData } from './gps_geofence_data_service.js';
|
|
6
6
|
import 'zod/zod_base_schema';
|
|
7
7
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
@@ -31,21 +31,21 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
31
31
|
geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
32
32
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
|
|
35
|
-
geofence_time: string;
|
|
34
|
+
gps_geofence_id: string;
|
|
36
35
|
status: Status;
|
|
37
36
|
organisation_id: string;
|
|
38
|
-
vehicle_id: string;
|
|
39
37
|
driver_id: string;
|
|
40
|
-
|
|
41
|
-
}, {
|
|
38
|
+
vehicle_id: string;
|
|
42
39
|
geofence_status_type: GeofenceStatusType;
|
|
43
40
|
geofence_time: string;
|
|
41
|
+
}, {
|
|
42
|
+
gps_geofence_id: string;
|
|
44
43
|
status: Status;
|
|
45
44
|
organisation_id: string;
|
|
46
|
-
vehicle_id: string;
|
|
47
45
|
driver_id: string;
|
|
48
|
-
|
|
46
|
+
vehicle_id: string;
|
|
47
|
+
geofence_status_type: GeofenceStatusType;
|
|
48
|
+
geofence_time: string;
|
|
49
49
|
}>;
|
|
50
50
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
51
51
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -85,7 +85,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
85
85
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
86
86
|
geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
geofence_status_type: GeofenceStatusType[];
|
|
89
88
|
status: Status[];
|
|
90
89
|
search: string;
|
|
91
90
|
paging: PAGING;
|
|
@@ -110,11 +109,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
110
109
|
organisation_ids: string[];
|
|
111
110
|
vehicle_ids: string[];
|
|
112
111
|
driver_ids: string[];
|
|
112
|
+
geofence_status_type: GeofenceStatusType[];
|
|
113
113
|
gps_geofence_ids: string[];
|
|
114
114
|
}, {
|
|
115
115
|
date_format_id: string;
|
|
116
116
|
time_zone_id: string;
|
|
117
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
118
117
|
status?: Status[] | undefined;
|
|
119
118
|
search?: string | undefined;
|
|
120
119
|
paging?: PAGING | undefined;
|
|
@@ -137,6 +136,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
137
136
|
organisation_ids?: string[] | undefined;
|
|
138
137
|
vehicle_ids?: string[] | undefined;
|
|
139
138
|
driver_ids?: string[] | undefined;
|
|
139
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
140
140
|
gps_geofence_ids?: string[] | undefined;
|
|
141
141
|
}>;
|
|
142
142
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/gps/features/geofence/gps_geofence_transaction_service.ts
|
|
21
|
+
var gps_geofence_transaction_service_exports = {};
|
|
22
|
+
__export(gps_geofence_transaction_service_exports, {
|
|
23
|
+
GPSGeofenceTransactionQuerySchema: () => GPSGeofenceTransactionQuerySchema,
|
|
24
|
+
GPSGeofenceTransactionSchema: () => GPSGeofenceTransactionSchema,
|
|
25
|
+
createGPSGeofenceTransaction: () => createGPSGeofenceTransaction,
|
|
26
|
+
deleteGPSGeofenceTransaction: () => deleteGPSGeofenceTransaction,
|
|
27
|
+
findGPSGeofenceTransactions: () => findGPSGeofenceTransactions,
|
|
28
|
+
newGPSGeofenceTransactionPayload: () => newGPSGeofenceTransactionPayload,
|
|
29
|
+
toGPSGeofenceTransactionPayload: () => toGPSGeofenceTransactionPayload,
|
|
30
|
+
updateGPSGeofenceTransaction: () => updateGPSGeofenceTransaction
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(gps_geofence_transaction_service_exports);
|
|
33
|
+
|
|
1
34
|
// src/core/sdk-config.ts
|
|
2
35
|
var axiosInstance;
|
|
3
36
|
var getAxiosInstance = () => {
|
|
@@ -22,17 +55,9 @@ var apiDelete = async (url) => {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/services/gps/features/geofence/gps_geofence_transaction_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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";
|
|
58
|
+
var import_zod = require("zod");
|
|
59
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
36
61
|
|
|
37
62
|
// src/core/Enums.ts
|
|
38
63
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -54,32 +79,32 @@ var ENDPOINTS = {
|
|
|
54
79
|
update: (id) => `${URL}/${id}`,
|
|
55
80
|
delete: (id) => `${URL}/${id}`
|
|
56
81
|
};
|
|
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(
|
|
82
|
+
var GPSGeofenceTransactionSchema = import_zod.z.object({
|
|
83
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
84
|
+
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
85
|
+
gps_geofence_id: (0, import_zod_utils.single_select_mandatory)("GPS Geofence ID"),
|
|
86
|
+
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
87
|
+
geofence_status_type: (0, import_zod_utils.enumMandatory)(
|
|
63
88
|
"Geofence Status Type",
|
|
64
89
|
GeofenceStatusType,
|
|
65
90
|
"Enter" /* Enter */
|
|
66
91
|
),
|
|
67
|
-
geofence_time: dateMandatory("Geofence Time"),
|
|
68
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
92
|
+
geofence_time: (0, import_zod_utils.dateMandatory)("Geofence Time"),
|
|
93
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
69
94
|
});
|
|
70
|
-
var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
|
|
71
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
95
|
+
var GPSGeofenceTransactionQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
96
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
72
97
|
// ✅ Multi-selection -> UserOrganisation
|
|
73
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
98
|
+
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
74
99
|
// ✅ Multi-selection -> Master Vehicle
|
|
75
|
-
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
100
|
+
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
76
101
|
// ✅ Multi-selection -> Master Driver
|
|
77
|
-
gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
|
|
102
|
+
gps_geofence_ids: (0, import_zod_utils.multi_select_optional)("Gps Geofence IDs"),
|
|
78
103
|
// ✅ Multi-selection -> Gps Geofence
|
|
79
|
-
geofence_status_type: enumArrayOptional(
|
|
104
|
+
geofence_status_type: (0, import_zod_utils.enumArrayOptional)(
|
|
80
105
|
"Geofence Status Type",
|
|
81
106
|
GeofenceStatusType,
|
|
82
|
-
getAllEnums(GeofenceStatusType)
|
|
107
|
+
(0, import_zod_utils.getAllEnums)(GeofenceStatusType)
|
|
83
108
|
)
|
|
84
109
|
});
|
|
85
110
|
var toGPSGeofenceTransactionPayload = (data) => ({
|
|
@@ -112,7 +137,8 @@ var updateGPSGeofenceTransaction = async (id, data) => {
|
|
|
112
137
|
var deleteGPSGeofenceTransaction = async (id) => {
|
|
113
138
|
return apiDelete(ENDPOINTS.delete(id));
|
|
114
139
|
};
|
|
115
|
-
export
|
|
140
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
141
|
+
0 && (module.exports = {
|
|
116
142
|
GPSGeofenceTransactionQuerySchema,
|
|
117
143
|
GPSGeofenceTransactionSchema,
|
|
118
144
|
createGPSGeofenceTransaction,
|
|
@@ -121,4 +147,4 @@ export {
|
|
|
121
147
|
newGPSGeofenceTransactionPayload,
|
|
122
148
|
toGPSGeofenceTransactionPayload,
|
|
123
149
|
updateGPSGeofenceTransaction
|
|
124
|
-
};
|
|
150
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-CNOJPhQD.js';
|
|
5
5
|
import { GPSGeofenceData } from './gps_geofence_data_service.js';
|
|
6
6
|
import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
|
|
7
7
|
import 'zod/zod_base_schema';
|
|
@@ -40,22 +40,22 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
40
40
|
duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
gps_geofence_id: string;
|
|
43
44
|
status: Status;
|
|
44
45
|
organisation_id: string;
|
|
45
|
-
vehicle_id: string;
|
|
46
46
|
driver_id: string;
|
|
47
|
-
|
|
47
|
+
vehicle_id: string;
|
|
48
48
|
geofence_enter_date_time: string;
|
|
49
49
|
geofence_exit_date_time: string;
|
|
50
50
|
duration_seconds: number;
|
|
51
51
|
enter_gps_geofence_transaction_id: string;
|
|
52
52
|
exit_gps_geofence_transaction_id: string;
|
|
53
53
|
}, {
|
|
54
|
+
gps_geofence_id: string;
|
|
54
55
|
status: Status;
|
|
55
56
|
organisation_id: string;
|
|
56
|
-
vehicle_id: string;
|
|
57
57
|
driver_id: string;
|
|
58
|
-
|
|
58
|
+
vehicle_id: string;
|
|
59
59
|
geofence_enter_date_time: string;
|
|
60
60
|
enter_gps_geofence_transaction_id: string;
|
|
61
61
|
exit_gps_geofence_transaction_id: string;
|