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/geofence/gps_geofence_transaction_summary_service.ts
|
|
21
|
+
var gps_geofence_transaction_summary_service_exports = {};
|
|
22
|
+
__export(gps_geofence_transaction_summary_service_exports, {
|
|
23
|
+
GPSGeofenceTransactionSummaryQuerySchema: () => GPSGeofenceTransactionSummaryQuerySchema,
|
|
24
|
+
GPSGeofenceTransactionSummarySchema: () => GPSGeofenceTransactionSummarySchema,
|
|
25
|
+
createGPSGeofenceTransactionSummary: () => createGPSGeofenceTransactionSummary,
|
|
26
|
+
deleteGPSGeofenceTransactionSummary: () => deleteGPSGeofenceTransactionSummary,
|
|
27
|
+
findGPSGeofenceTransactionSummaries: () => findGPSGeofenceTransactionSummaries,
|
|
28
|
+
newGPSGeofenceTransactionSummaryPayload: () => newGPSGeofenceTransactionSummaryPayload,
|
|
29
|
+
toGPSGeofenceTransactionSummaryPayload: () => toGPSGeofenceTransactionSummaryPayload,
|
|
30
|
+
updateGPSGeofenceTransactionSummary: () => updateGPSGeofenceTransactionSummary
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(gps_geofence_transaction_summary_service_exports);
|
|
33
|
+
|
|
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_summary_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
dateOptional,
|
|
29
|
-
enumMandatory,
|
|
30
|
-
multi_select_optional,
|
|
31
|
-
numberOptional,
|
|
32
|
-
single_select_mandatory,
|
|
33
|
-
single_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) => {
|
|
@@ -49,33 +74,33 @@ var ENDPOINTS = {
|
|
|
49
74
|
update: (id) => `${URL}/${id}`,
|
|
50
75
|
delete: (id) => `${URL}/${id}`
|
|
51
76
|
};
|
|
52
|
-
var GPSGeofenceTransactionSummarySchema = z.object({
|
|
53
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
54
|
-
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
55
|
-
driver_id: single_select_optional("Driver ID"),
|
|
56
|
-
gps_geofence_id: single_select_mandatory("GPS Geofence ID"),
|
|
57
|
-
enter_gps_geofence_transaction_id: single_select_mandatory(
|
|
77
|
+
var GPSGeofenceTransactionSummarySchema = import_zod.z.object({
|
|
78
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
79
|
+
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
80
|
+
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
81
|
+
gps_geofence_id: (0, import_zod_utils.single_select_mandatory)("GPS Geofence ID"),
|
|
82
|
+
enter_gps_geofence_transaction_id: (0, import_zod_utils.single_select_mandatory)(
|
|
58
83
|
"Enter GPS Geofence Transaction ID"
|
|
59
84
|
),
|
|
60
|
-
exit_gps_geofence_transaction_id: single_select_optional(
|
|
85
|
+
exit_gps_geofence_transaction_id: (0, import_zod_utils.single_select_optional)(
|
|
61
86
|
"Exit GPS Geofence Transaction ID"
|
|
62
87
|
),
|
|
63
|
-
geofence_enter_date_time: dateMandatory("Geofence Enter Date Time"),
|
|
64
|
-
geofence_exit_date_time: dateOptional("Geofence Exit Date Time"),
|
|
65
|
-
duration_seconds: numberOptional("Duration Seconds"),
|
|
66
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
88
|
+
geofence_enter_date_time: (0, import_zod_utils.dateMandatory)("Geofence Enter Date Time"),
|
|
89
|
+
geofence_exit_date_time: (0, import_zod_utils.dateOptional)("Geofence Exit Date Time"),
|
|
90
|
+
duration_seconds: (0, import_zod_utils.numberOptional)("Duration Seconds"),
|
|
91
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
67
92
|
});
|
|
68
|
-
var GPSGeofenceTransactionSummaryQuerySchema = BaseQuerySchema.extend({
|
|
69
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
93
|
+
var GPSGeofenceTransactionSummaryQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
94
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
70
95
|
// ✅ Multi-selection -> UserOrganisation
|
|
71
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
96
|
+
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
72
97
|
// ✅ Multi-selection -> MasterVehicle
|
|
73
|
-
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
98
|
+
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
74
99
|
// ✅ Multi-selection -> Master Driver
|
|
75
|
-
gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
|
|
100
|
+
gps_geofence_ids: (0, import_zod_utils.multi_select_optional)("Gps Geofence IDs"),
|
|
76
101
|
// ✅ Multi-selection -> Gps Geofence
|
|
77
|
-
from_date: dateMandatory("From Date"),
|
|
78
|
-
to_date: dateMandatory("To Date")
|
|
102
|
+
from_date: (0, import_zod_utils.dateMandatory)("From Date"),
|
|
103
|
+
to_date: (0, import_zod_utils.dateMandatory)("To Date")
|
|
79
104
|
});
|
|
80
105
|
var toGPSGeofenceTransactionSummaryPayload = (data) => ({
|
|
81
106
|
organisation_id: data.organisation_id,
|
|
@@ -113,7 +138,8 @@ var updateGPSGeofenceTransactionSummary = async (id, data) => {
|
|
|
113
138
|
var deleteGPSGeofenceTransactionSummary = async (id) => {
|
|
114
139
|
return apiDelete(ENDPOINTS.delete(id));
|
|
115
140
|
};
|
|
116
|
-
export
|
|
141
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
142
|
+
0 && (module.exports = {
|
|
117
143
|
GPSGeofenceTransactionSummaryQuerySchema,
|
|
118
144
|
GPSGeofenceTransactionSummarySchema,
|
|
119
145
|
createGPSGeofenceTransactionSummary,
|
|
@@ -122,4 +148,4 @@ export {
|
|
|
122
148
|
newGPSGeofenceTransactionSummaryPayload,
|
|
123
149
|
toGPSGeofenceTransactionSummaryPayload,
|
|
124
150
|
updateGPSGeofenceTransactionSummary
|
|
125
|
-
};
|
|
151
|
+
});
|
|
@@ -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 'zod/zod_base_schema';
|
|
7
7
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
@@ -64,8 +64,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
65
|
status: Status;
|
|
66
66
|
organisation_id: string;
|
|
67
|
-
vehicle_id: string;
|
|
68
67
|
driver_id: string;
|
|
68
|
+
vehicle_id: string;
|
|
69
69
|
duration_seconds: number;
|
|
70
70
|
from_geofence_exit_date_time: string;
|
|
71
71
|
to_geofence_enter_date_time: string;
|
|
@@ -87,8 +87,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
87
87
|
}, {
|
|
88
88
|
status: Status;
|
|
89
89
|
organisation_id: string;
|
|
90
|
-
vehicle_id: string;
|
|
91
90
|
driver_id: string;
|
|
91
|
+
vehicle_id: string;
|
|
92
92
|
from_geofence_exit_date_time: string;
|
|
93
93
|
to_geofence_enter_date_time: string;
|
|
94
94
|
from_geofence_id: string;
|
|
@@ -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/trip_geofence_to_geofence_service.ts
|
|
21
|
+
var trip_geofence_to_geofence_service_exports = {};
|
|
22
|
+
__export(trip_geofence_to_geofence_service_exports, {
|
|
23
|
+
TripGeofenceToGeofenceQuerySchema: () => TripGeofenceToGeofenceQuerySchema,
|
|
24
|
+
TripGeofenceToGeofenceSchema: () => TripGeofenceToGeofenceSchema,
|
|
25
|
+
createTripGeofenceToGeofence: () => createTripGeofenceToGeofence,
|
|
26
|
+
deleteTripGeofenceToGeofence: () => deleteTripGeofenceToGeofence,
|
|
27
|
+
findTripGeofenceToGeofence: () => findTripGeofenceToGeofence,
|
|
28
|
+
newTripGeofenceToGeofencePayload: () => newTripGeofenceToGeofencePayload,
|
|
29
|
+
toTripGeofenceToGeofencePayload: () => toTripGeofenceToGeofencePayload,
|
|
30
|
+
updateTripGeofenceToGeofence: () => updateTripGeofenceToGeofence
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(trip_geofence_to_geofence_service_exports);
|
|
33
|
+
|
|
1
34
|
// src/core/sdk-config.ts
|
|
2
35
|
var axiosInstance;
|
|
3
36
|
var getAxiosInstance = () => {
|
|
@@ -22,18 +55,9 @@ var apiDelete = async (url) => {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
single_select_optional,
|
|
29
|
-
multi_select_optional,
|
|
30
|
-
numberMandatory,
|
|
31
|
-
numberOptional,
|
|
32
|
-
doubleOptional,
|
|
33
|
-
enumMandatory,
|
|
34
|
-
dateMandatory
|
|
35
|
-
} from "zod/zod_utils";
|
|
36
|
-
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");
|
|
37
61
|
|
|
38
62
|
// src/core/Enums.ts
|
|
39
63
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -50,44 +74,44 @@ var ENDPOINTS = {
|
|
|
50
74
|
update: (id) => `${URL}/${id}`,
|
|
51
75
|
delete: (id) => `${URL}/${id}`
|
|
52
76
|
};
|
|
53
|
-
var TripGeofenceToGeofenceSchema = z.object({
|
|
54
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
55
|
-
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
56
|
-
from_geofence_id: single_select_mandatory("From Geofence ID"),
|
|
57
|
-
to_geofence_id: single_select_mandatory("To Geofence ID"),
|
|
58
|
-
driver_id: single_select_optional("Driver ID"),
|
|
59
|
-
from_geofence_exit_date_time: dateMandatory("From Geofence Exit Date Time"),
|
|
60
|
-
to_geofence_enter_date_time: dateMandatory("To Geofence Enter Date Time"),
|
|
61
|
-
duration_seconds: numberMandatory("Duration Seconds"),
|
|
77
|
+
var TripGeofenceToGeofenceSchema = import_zod.z.object({
|
|
78
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
79
|
+
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Master Vehicle ID"),
|
|
80
|
+
from_geofence_id: (0, import_zod_utils.single_select_mandatory)("From Geofence ID"),
|
|
81
|
+
to_geofence_id: (0, import_zod_utils.single_select_mandatory)("To Geofence ID"),
|
|
82
|
+
driver_id: (0, import_zod_utils.single_select_optional)("Driver ID"),
|
|
83
|
+
from_geofence_exit_date_time: (0, import_zod_utils.dateMandatory)("From Geofence Exit Date Time"),
|
|
84
|
+
to_geofence_enter_date_time: (0, import_zod_utils.dateMandatory)("To Geofence Enter Date Time"),
|
|
85
|
+
duration_seconds: (0, import_zod_utils.numberMandatory)("Duration Seconds"),
|
|
62
86
|
// Optional analytics
|
|
63
|
-
travel_duration_seconds: numberOptional("Travel Duration Seconds"),
|
|
64
|
-
stopped_duration_seconds: numberOptional("Stopped Duration Seconds"),
|
|
65
|
-
distance_meters: doubleOptional("Distance KM"),
|
|
66
|
-
max_speed: numberOptional("Max Speed"),
|
|
67
|
-
avg_speed: numberOptional("Avg Speed"),
|
|
68
|
-
start_fuel_liters: doubleOptional("Start Fuel Liters"),
|
|
69
|
-
end_fuel_liters: doubleOptional("End Fuel Liters"),
|
|
70
|
-
consumed_fuel_liters: doubleOptional("Consumed Fuel Liters"),
|
|
71
|
-
refill_fuel_liters: doubleOptional("Refill Fuel Liters"),
|
|
72
|
-
removal_fuel_liters: doubleOptional("Removals Fuel Liters"),
|
|
73
|
-
refills_count: numberOptional("Refills Count"),
|
|
74
|
-
removals_count: numberOptional("Removals Count"),
|
|
75
|
-
mileage: doubleOptional("Mileage"),
|
|
76
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
87
|
+
travel_duration_seconds: (0, import_zod_utils.numberOptional)("Travel Duration Seconds"),
|
|
88
|
+
stopped_duration_seconds: (0, import_zod_utils.numberOptional)("Stopped Duration Seconds"),
|
|
89
|
+
distance_meters: (0, import_zod_utils.doubleOptional)("Distance KM"),
|
|
90
|
+
max_speed: (0, import_zod_utils.numberOptional)("Max Speed"),
|
|
91
|
+
avg_speed: (0, import_zod_utils.numberOptional)("Avg Speed"),
|
|
92
|
+
start_fuel_liters: (0, import_zod_utils.doubleOptional)("Start Fuel Liters"),
|
|
93
|
+
end_fuel_liters: (0, import_zod_utils.doubleOptional)("End Fuel Liters"),
|
|
94
|
+
consumed_fuel_liters: (0, import_zod_utils.doubleOptional)("Consumed Fuel Liters"),
|
|
95
|
+
refill_fuel_liters: (0, import_zod_utils.doubleOptional)("Refill Fuel Liters"),
|
|
96
|
+
removal_fuel_liters: (0, import_zod_utils.doubleOptional)("Removals Fuel Liters"),
|
|
97
|
+
refills_count: (0, import_zod_utils.numberOptional)("Refills Count"),
|
|
98
|
+
removals_count: (0, import_zod_utils.numberOptional)("Removals Count"),
|
|
99
|
+
mileage: (0, import_zod_utils.doubleOptional)("Mileage"),
|
|
100
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
77
101
|
});
|
|
78
|
-
var TripGeofenceToGeofenceQuerySchema = BaseQuerySchema.extend({
|
|
79
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
102
|
+
var TripGeofenceToGeofenceQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
103
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
80
104
|
// ✅ Multi-selection -> UserOrganisation
|
|
81
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
105
|
+
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
82
106
|
// ✅ Multi-selection -> MasterVehicle
|
|
83
|
-
driver_ids: multi_select_optional("Master Driver IDs"),
|
|
107
|
+
driver_ids: (0, import_zod_utils.multi_select_optional)("Master Driver IDs"),
|
|
84
108
|
// ✅ Multi-selection -> Master Driver
|
|
85
|
-
from_geofence_ids: multi_select_optional("From Geofence IDs"),
|
|
109
|
+
from_geofence_ids: (0, import_zod_utils.multi_select_optional)("From Geofence IDs"),
|
|
86
110
|
// ✅ Multi-selection -> From Geofence
|
|
87
|
-
to_geofence_ids: multi_select_optional("To Geofence IDs"),
|
|
111
|
+
to_geofence_ids: (0, import_zod_utils.multi_select_optional)("To Geofence IDs"),
|
|
88
112
|
// ✅ Multi-selection -> To Geofence
|
|
89
|
-
from_date: dateMandatory("From Date"),
|
|
90
|
-
to_date: dateMandatory("To Date")
|
|
113
|
+
from_date: (0, import_zod_utils.dateMandatory)("From Date"),
|
|
114
|
+
to_date: (0, import_zod_utils.dateMandatory)("To Date")
|
|
91
115
|
});
|
|
92
116
|
var toTripGeofenceToGeofencePayload = (data) => ({
|
|
93
117
|
organisation_id: data.organisation_id,
|
|
@@ -149,7 +173,8 @@ var updateTripGeofenceToGeofence = async (id, data) => {
|
|
|
149
173
|
var deleteTripGeofenceToGeofence = async (id) => {
|
|
150
174
|
return apiDelete(ENDPOINTS.delete(id));
|
|
151
175
|
};
|
|
152
|
-
export
|
|
176
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
177
|
+
0 && (module.exports = {
|
|
153
178
|
TripGeofenceToGeofenceQuerySchema,
|
|
154
179
|
TripGeofenceToGeofenceSchema,
|
|
155
180
|
createTripGeofenceToGeofence,
|
|
@@ -158,4 +183,4 @@ export {
|
|
|
158
183
|
newTripGeofenceToGeofencePayload,
|
|
159
184
|
toTripGeofenceToGeofencePayload,
|
|
160
185
|
updateTripGeofenceToGeofence
|
|
161
|
-
};
|
|
186
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkType, LinkStatus, Status, NotificationType, 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 } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } 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
|
|
|
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
42
42
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
43
43
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
gps_live_track_share_link_id: string;
|
|
45
46
|
status: Status;
|
|
46
47
|
organisation_id: string;
|
|
47
48
|
type: NotificationType;
|
|
48
49
|
to_recipients: string;
|
|
49
|
-
gps_live_track_share_link_id: string;
|
|
50
50
|
}, {
|
|
51
|
+
gps_live_track_share_link_id: string;
|
|
51
52
|
status: Status;
|
|
52
53
|
organisation_id: string;
|
|
53
54
|
type: NotificationType;
|
|
54
55
|
to_recipients: string;
|
|
55
|
-
gps_live_track_share_link_id: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
58
|
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
|
73
73
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
74
74
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
75
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
76
|
+
gps_live_track_share_link_id: string;
|
|
76
77
|
status: Status;
|
|
77
78
|
organisation_id: string;
|
|
78
79
|
type: NotificationType;
|
|
79
80
|
to_recipients: string;
|
|
80
|
-
gps_live_track_share_link_id: string;
|
|
81
81
|
}, {
|
|
82
|
+
gps_live_track_share_link_id: string;
|
|
82
83
|
status: Status;
|
|
83
84
|
organisation_id: string;
|
|
84
85
|
type: NotificationType;
|
|
85
86
|
to_recipients: string;
|
|
86
|
-
gps_live_track_share_link_id: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
+
link_type: LinkType;
|
|
90
|
+
location: string;
|
|
89
91
|
link_status: LinkStatus;
|
|
90
92
|
status: Status;
|
|
91
93
|
organisation_id: string;
|
|
92
94
|
vehicle_id: string;
|
|
93
95
|
trip_id: string;
|
|
96
|
+
expire_milliseconds: number;
|
|
94
97
|
notifications: {
|
|
98
|
+
gps_live_track_share_link_id: string;
|
|
95
99
|
status: Status;
|
|
96
100
|
organisation_id: string;
|
|
97
101
|
type: NotificationType;
|
|
98
102
|
to_recipients: string;
|
|
99
|
-
gps_live_track_share_link_id: string;
|
|
100
103
|
}[];
|
|
101
|
-
link_type: LinkType;
|
|
102
|
-
location: string;
|
|
103
|
-
expire_milliseconds: number;
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
+
link_type: LinkType;
|
|
107
108
|
link_status: LinkStatus;
|
|
108
109
|
status: Status;
|
|
109
110
|
organisation_id: string;
|
|
110
111
|
vehicle_id: string;
|
|
111
112
|
trip_id: string;
|
|
112
|
-
|
|
113
|
+
latitude?: unknown;
|
|
114
|
+
longitude?: unknown;
|
|
115
|
+
location?: string | undefined;
|
|
116
|
+
expire_milliseconds?: unknown;
|
|
113
117
|
notifications?: {
|
|
118
|
+
gps_live_track_share_link_id: string;
|
|
114
119
|
status: Status;
|
|
115
120
|
organisation_id: string;
|
|
116
121
|
type: NotificationType;
|
|
117
122
|
to_recipients: string;
|
|
118
|
-
gps_live_track_share_link_id: string;
|
|
119
123
|
}[] | undefined;
|
|
120
|
-
latitude?: unknown;
|
|
121
|
-
longitude?: unknown;
|
|
122
|
-
location?: string | undefined;
|
|
123
|
-
expire_milliseconds?: unknown;
|
|
124
124
|
}>;
|
|
125
125
|
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
126
|
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
@@ -176,6 +176,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
176
176
|
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
177
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
+
link_type: LinkType[];
|
|
179
180
|
link_status: LinkStatus[];
|
|
180
181
|
status: Status[];
|
|
181
182
|
search: string;
|
|
@@ -201,10 +202,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
201
202
|
organisation_ids: string[];
|
|
202
203
|
vehicle_ids: string[];
|
|
203
204
|
trip_ids: string[];
|
|
204
|
-
link_type: LinkType[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
+
link_type?: LinkType[] | undefined;
|
|
208
209
|
link_status?: LinkStatus[] | undefined;
|
|
209
210
|
status?: Status[] | undefined;
|
|
210
211
|
search?: string | undefined;
|
|
@@ -228,7 +229,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
228
229
|
organisation_ids?: string[] | undefined;
|
|
229
230
|
vehicle_ids?: string[] | undefined;
|
|
230
231
|
trip_ids?: string[] | undefined;
|
|
231
|
-
link_type?: LinkType[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
234
|
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/gps/features/gps_live_track_share_link_service.ts
|
|
21
|
+
var gps_live_track_share_link_service_exports = {};
|
|
22
|
+
__export(gps_live_track_share_link_service_exports, {
|
|
23
|
+
GPSLiveTrackShareLinkNotificationsSchema: () => GPSLiveTrackShareLinkNotificationsSchema,
|
|
24
|
+
GPSLiveTrackShareLinkQuerySchema: () => GPSLiveTrackShareLinkQuerySchema,
|
|
25
|
+
GPSLiveTrackShareLinkSchema: () => GPSLiveTrackShareLinkSchema,
|
|
26
|
+
GPSLiveTrackShareLinkStatusSchema: () => GPSLiveTrackShareLinkStatusSchema,
|
|
27
|
+
GPSLiveTrackShareLinkTimeSchema: () => GPSLiveTrackShareLinkTimeSchema,
|
|
28
|
+
createGPSLiveTrackNotification: () => createGPSLiveTrackNotification,
|
|
29
|
+
createGPSLiveTrackShareLink: () => createGPSLiveTrackShareLink,
|
|
30
|
+
deleteGPSLiveTrackShareLink: () => deleteGPSLiveTrackShareLink,
|
|
31
|
+
extendGPSLiveTrackLinkTime: () => extendGPSLiveTrackLinkTime,
|
|
32
|
+
findGPSLiveTrackShareLinks: () => findGPSLiveTrackShareLinks,
|
|
33
|
+
newGPSLiveTrackShareLinkPayload: () => newGPSLiveTrackShareLinkPayload,
|
|
34
|
+
toGPSLiveTrackShareLinkPayload: () => toGPSLiveTrackShareLinkPayload,
|
|
35
|
+
updateGPSLiveTrackLinkStatus: () => updateGPSLiveTrackLinkStatus,
|
|
36
|
+
updateGPSLiveTrackTripStatus: () => updateGPSLiveTrackTripStatus
|
|
37
|
+
});
|
|
38
|
+
module.exports = __toCommonJS(gps_live_track_share_link_service_exports);
|
|
39
|
+
|
|
1
40
|
// src/core/sdk-config.ts
|
|
2
41
|
var axiosInstance;
|
|
3
42
|
var getAxiosInstance = () => {
|
|
@@ -22,22 +61,9 @@ var apiDelete = async (url) => {
|
|
|
22
61
|
};
|
|
23
62
|
|
|
24
63
|
// src/services/gps/features/gps_live_track_share_link_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
stringMandatory,
|
|
29
|
-
stringOptional,
|
|
30
|
-
single_select_mandatory,
|
|
31
|
-
single_select_optional,
|
|
32
|
-
multi_select_optional,
|
|
33
|
-
enumArrayOptional,
|
|
34
|
-
numberOptional,
|
|
35
|
-
numberMandatory,
|
|
36
|
-
getAllEnums,
|
|
37
|
-
nestedArrayOfObjectsOptional,
|
|
38
|
-
doubleOptionalLatLng
|
|
39
|
-
} from "zod/zod_utils";
|
|
40
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
64
|
+
var import_zod = require("zod");
|
|
65
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
66
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
41
67
|
|
|
42
68
|
// src/core/Enums.ts
|
|
43
69
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -76,50 +102,50 @@ var ENDPOINTS = {
|
|
|
76
102
|
updateTripStatus: (id) => `${URL}/update_live_track_trip_link_status/${id}`,
|
|
77
103
|
createNotification: `${URL}/create_notifications`
|
|
78
104
|
};
|
|
79
|
-
var GPSLiveTrackShareLinkNotificationsSchema = z.object({
|
|
80
|
-
organisation_id: single_select_optional("Organisation ID"),
|
|
81
|
-
gps_live_track_share_link_id: single_select_optional(
|
|
105
|
+
var GPSLiveTrackShareLinkNotificationsSchema = import_zod.z.object({
|
|
106
|
+
organisation_id: (0, import_zod_utils.single_select_optional)("Organisation ID"),
|
|
107
|
+
gps_live_track_share_link_id: (0, import_zod_utils.single_select_optional)(
|
|
82
108
|
"GPS Live Track Share Link ID"
|
|
83
109
|
),
|
|
84
|
-
type: enumMandatory("Type", NotificationType, "Email" /* Email */),
|
|
85
|
-
to_recipients: stringMandatory("To Recipients", 3, 500),
|
|
86
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
110
|
+
type: (0, import_zod_utils.enumMandatory)("Type", NotificationType, "Email" /* Email */),
|
|
111
|
+
to_recipients: (0, import_zod_utils.stringMandatory)("To Recipients", 3, 500),
|
|
112
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
87
113
|
});
|
|
88
|
-
var GPSLiveTrackShareLinkSchema = z.object({
|
|
89
|
-
organisation_id: single_select_mandatory("Organisation ID"),
|
|
90
|
-
vehicle_id: single_select_mandatory("Vehicle ID"),
|
|
91
|
-
link_type: enumMandatory("Link Type", LinkType, "LiveLocation" /* LiveLocation */),
|
|
92
|
-
latitude: doubleOptionalLatLng("Latitude"),
|
|
93
|
-
longitude: doubleOptionalLatLng("Longitude"),
|
|
94
|
-
location: stringOptional("Location", 0, 500),
|
|
95
|
-
expire_milliseconds: numberOptional("Expire Milliseconds"),
|
|
96
|
-
trip_id: single_select_optional("Trip ID"),
|
|
97
|
-
link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */),
|
|
98
|
-
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
99
|
-
notifications: nestedArrayOfObjectsOptional(
|
|
114
|
+
var GPSLiveTrackShareLinkSchema = import_zod.z.object({
|
|
115
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation ID"),
|
|
116
|
+
vehicle_id: (0, import_zod_utils.single_select_mandatory)("Vehicle ID"),
|
|
117
|
+
link_type: (0, import_zod_utils.enumMandatory)("Link Type", LinkType, "LiveLocation" /* LiveLocation */),
|
|
118
|
+
latitude: (0, import_zod_utils.doubleOptionalLatLng)("Latitude"),
|
|
119
|
+
longitude: (0, import_zod_utils.doubleOptionalLatLng)("Longitude"),
|
|
120
|
+
location: (0, import_zod_utils.stringOptional)("Location", 0, 500),
|
|
121
|
+
expire_milliseconds: (0, import_zod_utils.numberOptional)("Expire Milliseconds"),
|
|
122
|
+
trip_id: (0, import_zod_utils.single_select_optional)("Trip ID"),
|
|
123
|
+
link_status: (0, import_zod_utils.enumMandatory)("Link Status", LinkStatus, "Active" /* Active */),
|
|
124
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */),
|
|
125
|
+
notifications: (0, import_zod_utils.nestedArrayOfObjectsOptional)(
|
|
100
126
|
"Notifications",
|
|
101
127
|
GPSLiveTrackShareLinkNotificationsSchema,
|
|
102
128
|
[]
|
|
103
129
|
)
|
|
104
130
|
});
|
|
105
|
-
var GPSLiveTrackShareLinkTimeSchema = z.object({
|
|
106
|
-
expire_milliseconds: numberMandatory("Expire Milliseconds")
|
|
131
|
+
var GPSLiveTrackShareLinkTimeSchema = import_zod.z.object({
|
|
132
|
+
expire_milliseconds: (0, import_zod_utils.numberMandatory)("Expire Milliseconds")
|
|
107
133
|
});
|
|
108
|
-
var GPSLiveTrackShareLinkStatusSchema = z.object({
|
|
109
|
-
link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */)
|
|
134
|
+
var GPSLiveTrackShareLinkStatusSchema = import_zod.z.object({
|
|
135
|
+
link_status: (0, import_zod_utils.enumMandatory)("Link Status", LinkStatus, "Active" /* Active */)
|
|
110
136
|
});
|
|
111
|
-
var GPSLiveTrackShareLinkQuerySchema = BaseQuerySchema.extend({
|
|
112
|
-
organisation_ids: multi_select_optional("User Organisation IDs"),
|
|
137
|
+
var GPSLiveTrackShareLinkQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
138
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("User Organisation IDs"),
|
|
113
139
|
// ✅ Multi-selection -> UserOrganisation
|
|
114
|
-
vehicle_ids: multi_select_optional("Master Vehicle IDs"),
|
|
140
|
+
vehicle_ids: (0, import_zod_utils.multi_select_optional)("Master Vehicle IDs"),
|
|
115
141
|
// ✅ Multi-selection -> MasterVehicle
|
|
116
|
-
trip_ids: multi_select_optional("Trip IDs"),
|
|
142
|
+
trip_ids: (0, import_zod_utils.multi_select_optional)("Trip IDs"),
|
|
117
143
|
// ✅ Multi-selection -> Trip
|
|
118
|
-
link_type: enumArrayOptional("Link Type", LinkType, getAllEnums(LinkType)),
|
|
119
|
-
link_status: enumArrayOptional(
|
|
144
|
+
link_type: (0, import_zod_utils.enumArrayOptional)("Link Type", LinkType, (0, import_zod_utils.getAllEnums)(LinkType)),
|
|
145
|
+
link_status: (0, import_zod_utils.enumArrayOptional)(
|
|
120
146
|
"Link Status",
|
|
121
147
|
LinkStatus,
|
|
122
|
-
getAllEnums(LinkStatus)
|
|
148
|
+
(0, import_zod_utils.getAllEnums)(LinkStatus)
|
|
123
149
|
)
|
|
124
150
|
});
|
|
125
151
|
var toGPSLiveTrackShareLinkPayload = (data) => ({
|
|
@@ -181,7 +207,8 @@ var createGPSLiveTrackNotification = async (data) => {
|
|
|
181
207
|
data
|
|
182
208
|
);
|
|
183
209
|
};
|
|
184
|
-
export
|
|
210
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
211
|
+
0 && (module.exports = {
|
|
185
212
|
GPSLiveTrackShareLinkNotificationsSchema,
|
|
186
213
|
GPSLiveTrackShareLinkQuerySchema,
|
|
187
214
|
GPSLiveTrackShareLinkSchema,
|
|
@@ -196,4 +223,4 @@ export {
|
|
|
196
223
|
toGPSLiveTrackShareLinkPayload,
|
|
197
224
|
updateGPSLiveTrackLinkStatus,
|
|
198
225
|
updateGPSLiveTrackTripStatus
|
|
199
|
-
};
|
|
226
|
+
});
|