vms-nest-prisma-api-document 520.0.0 → 600.0.0
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/{bookmark_service-D9H8yEp3.d.ts → bookmark_service-CAKgVh8C.d.ts} +554 -418
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/bookmark_service.d.ts +1 -1
- package/dist/services/account/notification_preferences.service.d.ts +1 -1
- package/dist/services/account/report_preferences.service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +34 -23
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +28 -22
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +29 -23
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
- package/dist/services/fleet/incident_management/incident_management_service.js +50 -37
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +10 -5
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +25 -18
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +12 -6
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +1 -1
- package/dist/services/fleet/issue_management/issue_management_service.js +40 -28
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -1
- package/dist/services/fleet/service_management/fleet_service_management_service.js +41 -39
- package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +1 -1
- package/dist/services/fleet/service_management/fleet_service_schedule_service.js +4 -4
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +15 -9
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +79 -45
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +13 -7
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -4
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +4 -4
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +4 -4
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +5 -5
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.js +18 -7
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.js +17 -7
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/devices/master_device_service.js +29 -22
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.js +37 -24
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.js +12 -6
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_admin_service.d.ts +1 -1
- package/dist/services/main/users/user_admin_service.js +16 -20
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.js +42 -34
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/users/user_service.js +40 -30
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +132 -113
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_sim_provider_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +4 -120
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -375,7 +375,9 @@ var GPSGeofencePolilineDataSchema = z3.object({
|
|
|
375
375
|
longitude: doubleMandatoryLatLng("longitude")
|
|
376
376
|
});
|
|
377
377
|
var GPSGeofenceSchema = z3.object({
|
|
378
|
+
// Relations - Parent
|
|
378
379
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
380
|
+
// Main Field Details
|
|
379
381
|
geofence_name: stringMandatory("Geofence Name", 3, 100),
|
|
380
382
|
geofence_purpose_type: enumMandatory(
|
|
381
383
|
"Geofence Purpuse Type",
|
|
@@ -397,6 +399,7 @@ var GPSGeofenceSchema = z3.object({
|
|
|
397
399
|
GPSGeofencePolilineDataSchema,
|
|
398
400
|
[]
|
|
399
401
|
),
|
|
402
|
+
// Address Details
|
|
400
403
|
address_line1: stringOptional("Address Line 1", 0, 150),
|
|
401
404
|
address_line2: stringOptional("Address Line 2", 0, 150),
|
|
402
405
|
locality_landmark: stringOptional("Locality / Landmark", 0, 150),
|
|
@@ -408,11 +411,17 @@ var GPSGeofenceSchema = z3.object({
|
|
|
408
411
|
country: stringOptional("Country", 0, 100),
|
|
409
412
|
country_code: stringOptional("Country Code", 0, 5),
|
|
410
413
|
google_location: stringOptional("Google Location", 0, 100),
|
|
414
|
+
// Metadata
|
|
411
415
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
412
416
|
});
|
|
413
417
|
var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
|
|
418
|
+
// Self Table
|
|
419
|
+
gps_geofence_ids: multi_select_optional("GPSGeofence"),
|
|
420
|
+
// Multi-selection -> GPSGeofence
|
|
421
|
+
// Relations - Parent
|
|
414
422
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
415
|
-
//
|
|
423
|
+
// Multi-selection -> UserOrganisation
|
|
424
|
+
// Enums
|
|
416
425
|
geofence_purpose_type: enumArrayOptional(
|
|
417
426
|
"Geofence Purpose Type",
|
|
418
427
|
GeofencePurposeType,
|
|
@@ -422,9 +431,7 @@ var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
|
|
|
422
431
|
"Geofence Type",
|
|
423
432
|
GeofenceType,
|
|
424
433
|
getAllEnums(GeofenceType)
|
|
425
|
-
)
|
|
426
|
-
gps_geofence_ids: multi_select_optional("GPSGeofence")
|
|
427
|
-
// ✅ Multi-selection -> GPSGeofence
|
|
434
|
+
)
|
|
428
435
|
});
|
|
429
436
|
var toGPSGeofencePayload = (row) => ({
|
|
430
437
|
organisation_id: row.organisation_id || "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../../core/Enums.js';
|
|
2
2
|
import '../../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bx as GPSGeofenceTransaction, bz as GPSGeofenceTransactionDTO, bB as GPSGeofenceTransactionQueryDTO, bA as GPSGeofenceTransactionQuerySchema, by as GPSGeofenceTransactionSchema, bF as createGPSGeofenceTransaction, bH as deleteGPSGeofenceTransaction, bE as findGPSGeofenceTransaction, bD as newGPSGeofenceTransactionPayload, bC as toGPSGeofenceTransactionPayload, bG as updateGPSGeofenceTransaction } from '../../../../bookmark_service-
|
|
4
|
+
export { bx as GPSGeofenceTransaction, bz as GPSGeofenceTransactionDTO, bB as GPSGeofenceTransactionQueryDTO, bA as GPSGeofenceTransactionQuerySchema, by as GPSGeofenceTransactionSchema, bF as createGPSGeofenceTransaction, bH as deleteGPSGeofenceTransaction, bE as findGPSGeofenceTransaction, bD as newGPSGeofenceTransactionPayload, bC as toGPSGeofenceTransactionPayload, bG as updateGPSGeofenceTransaction } from '../../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -294,13 +294,13 @@ var GPSGeofenceTransactionSchema = z3.object({
|
|
|
294
294
|
});
|
|
295
295
|
var GPSGeofenceTransactionQuerySchema = BaseQuerySchema.extend({
|
|
296
296
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
297
|
-
//
|
|
297
|
+
// Multi-selection -> UserOrganisation
|
|
298
298
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
299
|
-
//
|
|
299
|
+
// Multi-selection -> MasterVehicle
|
|
300
300
|
driver_ids: multi_select_optional("MasterDriver"),
|
|
301
|
-
//
|
|
301
|
+
// Multi-selection -> MasterDriver
|
|
302
302
|
gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
|
|
303
|
-
//
|
|
303
|
+
// Multi-selection -> Gps Geofence
|
|
304
304
|
geofence_status_type: enumArrayOptional(
|
|
305
305
|
"Geofence Status Type",
|
|
306
306
|
GeofenceStatusType,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../../core/Enums.js';
|
|
2
2
|
import '../../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bm as GPSGeofenceTransactionSummary, bo as GPSGeofenceTransactionSummaryDTO, bq as GPSGeofenceTransactionSummaryQueryDTO, bp as GPSGeofenceTransactionSummaryQuerySchema, bn as GPSGeofenceTransactionSummarySchema, bu as createGPSGeofenceTransactionSummary, bw as deleteGPSGeofenceTransactionSummary, bt as findGPSGeofenceTransactionSummary, bs as newGPSGeofenceTransactionSummaryPayload, br as toGPSGeofenceTransactionSummaryPayload, bv as updateGPSGeofenceTransactionSummary } from '../../../../bookmark_service-
|
|
4
|
+
export { bm as GPSGeofenceTransactionSummary, bo as GPSGeofenceTransactionSummaryDTO, bq as GPSGeofenceTransactionSummaryQueryDTO, bp as GPSGeofenceTransactionSummaryQuerySchema, bn as GPSGeofenceTransactionSummarySchema, bu as createGPSGeofenceTransactionSummary, bw as deleteGPSGeofenceTransactionSummary, bt as findGPSGeofenceTransactionSummary, bs as newGPSGeofenceTransactionSummaryPayload, br as toGPSGeofenceTransactionSummaryPayload, bv as updateGPSGeofenceTransactionSummary } from '../../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -308,13 +308,13 @@ var GPSGeofenceTransactionSummarySchema = z3.object({
|
|
|
308
308
|
});
|
|
309
309
|
var GPSGeofenceTransactionSummaryQuerySchema = BaseQuerySchema.extend({
|
|
310
310
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
311
|
-
//
|
|
311
|
+
// Multi-selection -> UserOrganisation
|
|
312
312
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
313
|
-
//
|
|
313
|
+
// Multi-selection -> MasterVehicle
|
|
314
314
|
driver_ids: multi_select_optional("MasterDriver"),
|
|
315
|
-
//
|
|
315
|
+
// Multi-selection -> MasterDriver
|
|
316
316
|
gps_geofence_ids: multi_select_optional("Gps Geofence IDs"),
|
|
317
|
-
//
|
|
317
|
+
// Multi-selection -> Gps Geofence
|
|
318
318
|
from_date: dateMandatory("From Date"),
|
|
319
319
|
to_date: dateMandatory("To Date")
|
|
320
320
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../../core/Enums.js';
|
|
2
2
|
import '../../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bI as TripGeofenceToGeofence, bK as TripGeofenceToGeofenceDTO, bM as TripGeofenceToGeofenceQueryDTO, bL as TripGeofenceToGeofenceQuerySchema, bJ as TripGeofenceToGeofenceSchema, bQ as createTripGeofenceToGeofence, bS as deleteTripGeofenceToGeofence, bP as findTripGeofenceToGeofence, bO as newTripGeofenceToGeofencePayload, bN as toTripGeofenceToGeofencePayload, bR as updateTripGeofenceToGeofence } from '../../../../bookmark_service-
|
|
4
|
+
export { bI as TripGeofenceToGeofence, bK as TripGeofenceToGeofenceDTO, bM as TripGeofenceToGeofenceQueryDTO, bL as TripGeofenceToGeofenceQuerySchema, bJ as TripGeofenceToGeofenceSchema, bQ as createTripGeofenceToGeofence, bS as deleteTripGeofenceToGeofence, bP as findTripGeofenceToGeofence, bO as newTripGeofenceToGeofencePayload, bN as toTripGeofenceToGeofencePayload, bR as updateTripGeofenceToGeofence } from '../../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -321,15 +321,15 @@ var TripGeofenceToGeofenceSchema = z3.object({
|
|
|
321
321
|
});
|
|
322
322
|
var TripGeofenceToGeofenceQuerySchema = BaseQuerySchema.extend({
|
|
323
323
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
324
|
-
//
|
|
324
|
+
// Multi-selection -> UserOrganisation
|
|
325
325
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
326
|
-
//
|
|
326
|
+
// Multi-selection -> MasterVehicle
|
|
327
327
|
driver_ids: multi_select_optional("MasterDriver"),
|
|
328
|
-
//
|
|
328
|
+
// Multi-selection -> MasterDriver
|
|
329
329
|
from_geofence_ids: multi_select_optional("From Geofence IDs"),
|
|
330
|
-
//
|
|
330
|
+
// Multi-selection -> From Geofence
|
|
331
331
|
to_geofence_ids: multi_select_optional("To Geofence IDs"),
|
|
332
|
-
//
|
|
332
|
+
// Multi-selection -> To Geofence
|
|
333
333
|
from_date: dateMandatory("From Date"),
|
|
334
334
|
to_date: dateMandatory("To Date")
|
|
335
335
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { sp as GPSLiveTrackShareLink, su as GPSLiveTrackShareLinkDTO, sq as GPSLiveTrackShareLinkNotification, ss as GPSLiveTrackShareLinkNotificationDTO, sr as GPSLiveTrackShareLinkNotificationSchema, sA as GPSLiveTrackShareLinkQueryDTO, sz as GPSLiveTrackShareLinkQuerySchema, st as GPSLiveTrackShareLinkSchema, sw as GPSLiveTrackShareLinkUpdateExpiryTimeDTO, sv as GPSLiveTrackShareLinkUpdateExpiryTimeSchema, sy as GPSLiveTrackShareLinkUpdateLinkStatusDTO, sx as GPSLiveTrackShareLinkUpdateLinkStatusSchema, sE as createGPSLiveTrackShareLink, sI as createGPSLiveTrackShareLinkNotification, sH as deleteGPSLiveTrackShareLink, sF as extendGPSLiveTrackLinkTime, sD as findGPSLiveTrackShareLink, sC as newGPSLiveTrackShareLinkPayload, sB as toGPSLiveTrackShareLinkPayload, sG as updateGPSLiveTrackLinkStatus } from '../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -294,10 +294,12 @@ var ENDPOINTS = {
|
|
|
294
294
|
delete: (id) => `${URL}/${id}`
|
|
295
295
|
};
|
|
296
296
|
var GPSLiveTrackShareLinkNotificationSchema = z3.object({
|
|
297
|
+
// Relations - Parent
|
|
297
298
|
organisation_id: single_select_optional("UserOrganisation"),
|
|
298
|
-
//
|
|
299
|
+
// Single-Selection -> UserOrganisation
|
|
299
300
|
gps_live_track_share_link_id: single_select_optional("GPSLiveTrackShareLink"),
|
|
300
|
-
//
|
|
301
|
+
// Single-Selection -> GPSLiveTrackShareLink
|
|
302
|
+
// Main Field Details
|
|
301
303
|
share_channels: enumArrayMandatory(
|
|
302
304
|
"Share Channels",
|
|
303
305
|
ShareChannel,
|
|
@@ -306,33 +308,42 @@ var GPSLiveTrackShareLinkNotificationSchema = z3.object({
|
|
|
306
308
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
307
309
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
308
310
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
311
|
+
// Metadata
|
|
309
312
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
310
313
|
});
|
|
311
314
|
var GPSLiveTrackShareLinkSchema = z3.object({
|
|
315
|
+
// Relations - Parent
|
|
312
316
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
313
317
|
vehicle_id: single_select_mandatory("Vehicle ID"),
|
|
318
|
+
// Main Field Details
|
|
314
319
|
expire_milliseconds: numberOptional("Expire Milliseconds"),
|
|
315
320
|
link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */),
|
|
321
|
+
// Metadata
|
|
316
322
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
317
323
|
});
|
|
318
324
|
var GPSLiveTrackShareLinkUpdateExpiryTimeSchema = z3.object({
|
|
325
|
+
// Main Field Details
|
|
319
326
|
expire_milliseconds: numberMandatory("Expire Milliseconds")
|
|
320
327
|
});
|
|
321
328
|
var GPSLiveTrackShareLinkUpdateLinkStatusSchema = z3.object({
|
|
329
|
+
// Main Field Details
|
|
322
330
|
link_status: enumMandatory("Link Status", LinkStatus, "Active" /* Active */)
|
|
323
331
|
});
|
|
324
332
|
var GPSLiveTrackShareLinkQuerySchema = BaseQuerySchema.extend({
|
|
333
|
+
// Self Table
|
|
334
|
+
gps_live_track_share_link_ids: multi_select_optional("GPSLiveTrackShareLink"),
|
|
335
|
+
// Multi-selection -> GPSLiveTrackShareLink
|
|
336
|
+
// Relations - Parent
|
|
325
337
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
326
|
-
//
|
|
338
|
+
// Multi-selection -> UserOrganisation
|
|
327
339
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
328
|
-
//
|
|
340
|
+
// Multi-selection -> MasterVehicle
|
|
341
|
+
// Enums
|
|
329
342
|
link_status: enumArrayOptional(
|
|
330
343
|
"Link Status",
|
|
331
344
|
LinkStatus,
|
|
332
345
|
getAllEnums(LinkStatus)
|
|
333
|
-
)
|
|
334
|
-
gps_live_track_share_link_ids: multi_select_optional("GPSLiveTrackShareLink")
|
|
335
|
-
// ✅ Multi-selection -> GPSLiveTrackShareLink
|
|
346
|
+
)
|
|
336
347
|
});
|
|
337
348
|
var toGPSLiveTrackShareLinkPayload = (data) => ({
|
|
338
349
|
organisation_id: data.organisation_id || "",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { sJ as GPSTrackHistoryShareLink, sO as GPSTrackHistoryShareLinkDTO, sK as GPSTrackHistoryShareLinkNotification, sM as GPSTrackHistoryShareLinkNotificationDTO, sL as GPSTrackHistoryShareLinkNotificationSchema, sS as GPSTrackHistoryShareLinkQueryDTO, sR as GPSTrackHistoryShareLinkQuerySchema, sN as GPSTrackHistoryShareLinkSchema, sQ as GPSTrackHistoryShareLinkUpdateLinkStatusDTO, sP as GPSTrackHistoryShareLinkUpdateLinkStatusSchema, sW as createGPSTrackHistoryShareLink, sZ as createGPSTrackHistoryShareLinkNotification, sY as deleteGPSTrackHistoryShareLink, sV as findGPSTrackHistoryShareLink, sU as newGPSTrackHistoryShareLinkPayload, sT as toGPSTrackHistoryShareLinkPayload, sX as updateTrackHistoryLinkStatus } from '../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -279,11 +279,13 @@ var ENDPOINTS = {
|
|
|
279
279
|
delete: (id) => `${URL}/${id}`
|
|
280
280
|
};
|
|
281
281
|
var GPSTrackHistoryShareLinkNotificationSchema = z3.object({
|
|
282
|
+
// Relations - Parent
|
|
282
283
|
organisation_id: single_select_optional("UserOrganisation"),
|
|
283
|
-
//
|
|
284
|
+
// Single-Selection -> UserOrganisation
|
|
284
285
|
gps_track_history_share_link_id: single_select_optional(
|
|
285
286
|
"GPSTrackHistoryShareLink"
|
|
286
287
|
),
|
|
288
|
+
// Main Field Details
|
|
287
289
|
share_channels: enumArrayMandatory(
|
|
288
290
|
"Share Channels",
|
|
289
291
|
ShareChannel,
|
|
@@ -292,11 +294,14 @@ var GPSTrackHistoryShareLinkNotificationSchema = z3.object({
|
|
|
292
294
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
293
295
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
294
296
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
297
|
+
// Metadata
|
|
295
298
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
296
299
|
});
|
|
297
300
|
var GPSTrackHistoryShareLinkSchema = z3.object({
|
|
301
|
+
// Relations - Parent
|
|
298
302
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
299
303
|
vehicle_id: single_select_mandatory("MasterVehicle"),
|
|
304
|
+
// Main Field Details
|
|
300
305
|
from_date_time: stringMandatory("From Date Time"),
|
|
301
306
|
to_date_time: stringMandatory("To Date Time"),
|
|
302
307
|
link_status: enumMandatory(
|
|
@@ -304,10 +309,12 @@ var GPSTrackHistoryShareLinkSchema = z3.object({
|
|
|
304
309
|
TrackHistoryLinkStatus,
|
|
305
310
|
"Active" /* Active */
|
|
306
311
|
),
|
|
312
|
+
// Metadata
|
|
307
313
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
308
314
|
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
309
315
|
});
|
|
310
316
|
var GPSTrackHistoryShareLinkUpdateLinkStatusSchema = z3.object({
|
|
317
|
+
// Main Field Details
|
|
311
318
|
link_status: enumMandatory(
|
|
312
319
|
"Track History Link Status",
|
|
313
320
|
TrackHistoryLinkStatus,
|
|
@@ -315,19 +322,22 @@ var GPSTrackHistoryShareLinkUpdateLinkStatusSchema = z3.object({
|
|
|
315
322
|
)
|
|
316
323
|
});
|
|
317
324
|
var GPSTrackHistoryShareLinkQuerySchema = BaseQuerySchema.extend({
|
|
325
|
+
// Self Table
|
|
326
|
+
gps_track_history_share_link_ids: multi_select_optional(
|
|
327
|
+
"GPSTrackHistoryShareLink"
|
|
328
|
+
),
|
|
329
|
+
// Multi-selection -> GPSTrackHistoryShareLink
|
|
330
|
+
// Relations - Parent
|
|
318
331
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
319
|
-
//
|
|
332
|
+
// Multi-selection -> UserOrganisation
|
|
320
333
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
321
|
-
//
|
|
334
|
+
// Multi-selection -> MasterVehicle
|
|
335
|
+
// Enums
|
|
322
336
|
link_status: enumArrayOptional(
|
|
323
337
|
"Track History Link Status",
|
|
324
338
|
TrackHistoryLinkStatus,
|
|
325
339
|
getAllEnums(TrackHistoryLinkStatus)
|
|
326
|
-
),
|
|
327
|
-
gps_track_history_share_link_ids: multi_select_optional(
|
|
328
|
-
"GPSTrackHistoryShareLink"
|
|
329
340
|
)
|
|
330
|
-
// ✅ Multi-selection -> GPSTrackHistoryShareLink
|
|
331
341
|
});
|
|
332
342
|
var toGPSTrackHistoryShareLinkPayload = (data) => ({
|
|
333
343
|
organisation_id: data.organisation_id || "",
|
|
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
|
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
export {
|
|
5
|
+
export { vN as AssignRemoveDeviceHistory, vU as DeviceSimLinkDTO, vT as DeviceSimLinkSchema, vM as MasterDevice, vQ as MasterDeviceDTO, vO as MasterDeviceFile, vS as MasterDeviceQueryDTO, vR as MasterDeviceQuerySchema, vP as MasterDeviceSchema, vY as createMasterDevice, v_ as deleteMasterDevice, v$ as device_sim_link, w0 as device_sim_unlink, vX as findMasterDevices, w2 as get_device_sim_link_history_by_device, w1 as get_device_sim_link_history_by_sim, vW as newMasterDevicePayload, vV as toMasterDevicePayload, vZ as updateMasterDevice } from '../../../bookmark_service-CAKgVh8C.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -274,33 +274,39 @@ var ENDPOINTS = {
|
|
|
274
274
|
DEVICE_SIM_LINK_HISTORY_BY_DEVICE: (id) => `${URL}/device_sim_link_history_by_device/${id}`
|
|
275
275
|
};
|
|
276
276
|
var MasterDeviceSchema = z3.object({
|
|
277
|
+
// Relations - Parent
|
|
277
278
|
device_manufacturer_id: single_select_mandatory("Device Manufacturer"),
|
|
278
|
-
//
|
|
279
|
-
device_model_id: single_select_mandatory("
|
|
280
|
-
//
|
|
279
|
+
// Single-Selection -> MasterDeviceManufacturer
|
|
280
|
+
device_model_id: single_select_mandatory("MasterDeviceModel"),
|
|
281
|
+
// Single-Selection -> MasterDeviceModel
|
|
282
|
+
// Main Field Details
|
|
281
283
|
device_gps_source: enumMandatory("Status", GPSSource, "Traccar" /* Traccar */),
|
|
282
284
|
device_identifier: stringMandatory("Device Identifier", 2, 100),
|
|
283
285
|
device_note_1: stringOptional("Device Note 1", 0, 100),
|
|
284
286
|
device_note_2: stringOptional("Device Identifier", 0, 100),
|
|
287
|
+
// Metadata
|
|
285
288
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
286
289
|
});
|
|
287
290
|
var MasterDeviceQuerySchema = BaseQuerySchema.extend({
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
//
|
|
292
|
-
|
|
293
|
-
//
|
|
291
|
+
// Self Table
|
|
292
|
+
device_ids: multi_select_optional("MasterDevice"),
|
|
293
|
+
// Multi-Selection -> MasterDevice
|
|
294
|
+
// Relations - Parent
|
|
295
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
296
|
+
// Multi-Selection -> UserOrganisation
|
|
297
|
+
country_ids: multi_select_optional("MasterMainCountry"),
|
|
298
|
+
// Multi-Selection -> MasterMainCountry
|
|
299
|
+
time_zone_ids: multi_select_optional("MasterMainTimeZone"),
|
|
300
|
+
// Multi-Selection -> MasterMainTimeZone
|
|
294
301
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
295
|
-
//
|
|
296
|
-
device_manufacturer_ids: multi_select_optional("
|
|
297
|
-
//
|
|
298
|
-
device_model_ids: multi_select_optional("
|
|
299
|
-
//
|
|
300
|
-
device_type_ids: multi_select_optional("
|
|
301
|
-
//
|
|
302
|
-
|
|
303
|
-
// ✅ Multi-selection -> MasterDevice
|
|
302
|
+
// Multi-Selection -> MasterVehicle
|
|
303
|
+
device_manufacturer_ids: multi_select_optional("MasterDeviceManufacturer"),
|
|
304
|
+
// Multi-Selection -> MasterDeviceManufacturer
|
|
305
|
+
device_model_ids: multi_select_optional("MasterDeviceModel"),
|
|
306
|
+
// Multi-Selection -> MasterDeviceModel
|
|
307
|
+
device_type_ids: multi_select_optional("MasterDeviceType"),
|
|
308
|
+
// Multi-Selection -> MasterDeviceType
|
|
309
|
+
// Enums
|
|
304
310
|
is_device_used: enumArrayOptional(
|
|
305
311
|
"Is Device Used",
|
|
306
312
|
DeviceStatus,
|
|
@@ -314,10 +320,11 @@ var MasterDeviceQuerySchema = BaseQuerySchema.extend({
|
|
|
314
320
|
)
|
|
315
321
|
});
|
|
316
322
|
var DeviceSimLinkSchema = z3.object({
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
323
|
+
// Relations - Parent
|
|
324
|
+
device_id: single_select_mandatory("MasterDevice"),
|
|
325
|
+
// Single-Selection -> MasterDevice
|
|
326
|
+
sim_id: single_select_mandatory("MasterSim")
|
|
327
|
+
// Single-Selection -> MasterSim
|
|
321
328
|
});
|
|
322
329
|
var toMasterDevicePayload = (row) => ({
|
|
323
330
|
device_manufacturer_id: row.device_manufacturer_id || "",
|
|
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
|
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
export {
|
|
5
|
+
export { ly as AssignRemoveDriverHistory, lz as DriverLoginPush, M as MasterDriver, lD as MasterDriverDTO, lx as MasterDriverFile, lB as MasterDriverFileDTO, lA as MasterDriverFileSchema, lH as MasterDriverLogoDTO, lG as MasterDriverLogoSchema, lJ as MasterDriverProfileDTO, lI as MasterDriverProfileSchema, lF as MasterDriverQueryDTO, lE as MasterDriverQuerySchema, lC as MasterDriverSchema, lU as createMasterDriver, lR as create_master_driver_file, lW as deleteMasterDriver, lY as deleteMasterDriverLogo, lQ as delete_master_driver_logo, lT as findMasterDriver, l_ as getMasterDriverCache, l$ as getMasterDriverCacheSimple, lO as get_master_driver_file_presigned_url, lN as get_master_driver_logo_presigned_url, lM as newDriverPayload, lS as remove_master_driver_file, lK as toDriverPayload, lL as toDriverProfilePayload, lV as updateMasterDriver, lX as updateMasterDriverLogo, lZ as updateMasterDriverProfile, lP as update_master_driver_logo } from '../../../bookmark_service-CAKgVh8C.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -287,22 +287,29 @@ var ENDPOINTS = {
|
|
|
287
287
|
cache_simple: (organisation_id) => `${URL}/cache_simple/${organisation_id}`
|
|
288
288
|
};
|
|
289
289
|
var MasterDriverFileSchema = BaseFileSchema.extend({
|
|
290
|
+
// Relations - Parent
|
|
290
291
|
organisation_id: single_select_optional("UserOrganisation"),
|
|
291
|
-
//
|
|
292
|
+
// Single-Selection -> UserOrganisation
|
|
292
293
|
driver_id: single_select_optional("MasterDriver")
|
|
293
|
-
//
|
|
294
|
+
// Single-Selection -> MasterDriver
|
|
294
295
|
});
|
|
295
296
|
var MasterDriverSchema = z3.object({
|
|
297
|
+
// Relations - Parent
|
|
296
298
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
297
|
-
//
|
|
299
|
+
// Single-Selection -> UserOrganisation
|
|
298
300
|
organisation_sub_company_id: single_select_optional("OrganisationSubCompany"),
|
|
299
|
-
//
|
|
301
|
+
// Single-Selection -> OrganisationSubCompany
|
|
300
302
|
organisation_branch_id: single_select_optional("OrganisationBranch"),
|
|
301
|
-
//
|
|
303
|
+
// Single-Selection -> OrganisationBranch
|
|
302
304
|
organisation_color_id: single_select_optional("OrganisationColor"),
|
|
303
|
-
//
|
|
305
|
+
// Single-Selection -> OrganisationColor
|
|
304
306
|
organisation_tag_id: single_select_optional("OrganisationTag"),
|
|
305
|
-
//
|
|
307
|
+
// Single-Selection -> OrganisationTag
|
|
308
|
+
// Profile Image/Logo
|
|
309
|
+
driver_image_url: stringOptional("Driver Image URL", 0, 300),
|
|
310
|
+
driver_image_key: stringOptional("Driver Image Key", 0, 300),
|
|
311
|
+
driver_image_name: stringOptional("Driver Image Name", 0, 300),
|
|
312
|
+
// Main Field Details
|
|
306
313
|
driver_code: stringOptional("Driver Code", 0, 50),
|
|
307
314
|
driver_first_name: stringMandatory("Driver First Name", 3, 100),
|
|
308
315
|
driver_last_name: stringOptional("Driver Last Name", 0, 100),
|
|
@@ -314,10 +321,9 @@ var MasterDriverSchema = z3.object({
|
|
|
314
321
|
password: stringOptional("Password", 0, 20),
|
|
315
322
|
can_login: enumMandatory("Can Login", YesNo, "No" /* No */),
|
|
316
323
|
driver_type: enumMandatory("Driver Type", DriverType, "Driver" /* Driver */),
|
|
317
|
-
|
|
318
|
-
driver_image_key: stringOptional("Driver Image Key", 0, 300),
|
|
319
|
-
driver_image_name: stringOptional("Driver Image Name", 0, 300),
|
|
324
|
+
// Metadata
|
|
320
325
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
326
|
+
// Additional Files
|
|
321
327
|
MasterDriverFileSchema: nestedArrayOfObjectsOptional(
|
|
322
328
|
"MasterDriverFileSchema",
|
|
323
329
|
MasterDriverFileSchema,
|
|
@@ -325,20 +331,23 @@ var MasterDriverSchema = z3.object({
|
|
|
325
331
|
)
|
|
326
332
|
});
|
|
327
333
|
var MasterDriverQuerySchema = BaseQuerySchema.extend({
|
|
334
|
+
// Self Table
|
|
335
|
+
driver_ids: multi_select_optional("MasterDriver"),
|
|
336
|
+
// Multi-Selection -> MasterDriver
|
|
337
|
+
// Relations - Parent
|
|
328
338
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
329
|
-
//
|
|
339
|
+
// Multi-Selection -> UserOrganisation
|
|
330
340
|
organisation_sub_company_ids: multi_select_optional("OrganisationSubCompany"),
|
|
331
|
-
//
|
|
341
|
+
// Multi-Selection -> OrganisationSubCompany
|
|
332
342
|
organisation_branch_ids: multi_select_optional("OrganisationBranch"),
|
|
333
|
-
//
|
|
343
|
+
// Multi-Selection -> OrganisationBranch
|
|
334
344
|
organisation_color_ids: multi_select_optional("OrganisationColor"),
|
|
335
|
-
//
|
|
345
|
+
// Multi-Selection -> OrganisationColor
|
|
336
346
|
organisation_tag_ids: multi_select_optional("OrganisationTag"),
|
|
337
|
-
//
|
|
347
|
+
// Multi-Selection -> OrganisationTag
|
|
338
348
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
339
|
-
//
|
|
340
|
-
|
|
341
|
-
// ✅ Multi-Selection -> MasterDriver
|
|
349
|
+
// Multi-Selection -> MasterVehicle
|
|
350
|
+
// Enums
|
|
342
351
|
can_login: enumArrayOptional("Can Login", YesNo, getAllEnums(YesNo)),
|
|
343
352
|
driver_type: enumArrayOptional(
|
|
344
353
|
"Driver Type",
|
|
@@ -352,11 +361,17 @@ var MasterDriverQuerySchema = BaseQuerySchema.extend({
|
|
|
352
361
|
)
|
|
353
362
|
});
|
|
354
363
|
var MasterDriverLogoSchema = z3.object({
|
|
364
|
+
// Profile Image/Logo
|
|
355
365
|
driver_image_url: stringMandatory("Driver Image URL", 0, 300),
|
|
356
366
|
driver_image_key: stringMandatory("Driver Image Key", 0, 300),
|
|
357
367
|
driver_image_name: stringMandatory("Driver Image Name", 0, 300)
|
|
358
368
|
});
|
|
359
369
|
var MasterDriverProfileSchema = z3.object({
|
|
370
|
+
// Profile Image/Logo
|
|
371
|
+
driver_image_url: stringOptional("Driver Image URL", 0, 300),
|
|
372
|
+
driver_image_key: stringOptional("Driver Image Key", 0, 300),
|
|
373
|
+
driver_image_name: stringOptional("Driver Image Name", 0, 300),
|
|
374
|
+
// Main Field Details
|
|
360
375
|
driver_code: stringOptional("Driver Code", 0, 50),
|
|
361
376
|
driver_first_name: stringMandatory("Driver First Name", 3, 100),
|
|
362
377
|
driver_last_name: stringOptional("Driver Last Name", 0, 100),
|
|
@@ -365,9 +380,7 @@ var MasterDriverProfileSchema = z3.object({
|
|
|
365
380
|
driver_license: stringOptional("Driver License", 0, 20),
|
|
366
381
|
driver_pan: stringOptional("Driver PAN", 0, 10),
|
|
367
382
|
driver_aadhaar: stringOptional("Driver Aadhaar", 0, 12),
|
|
368
|
-
|
|
369
|
-
driver_image_key: stringOptional("Driver Image Key", 0, 300),
|
|
370
|
-
driver_image_name: stringOptional("Driver Image Name", 0, 300),
|
|
383
|
+
// Additional Files
|
|
371
384
|
MasterDriverFileSchema: nestedArrayOfObjectsOptional(
|
|
372
385
|
"MasterDriverFileSchema",
|
|
373
386
|
MasterDriverFileSchema,
|
|
@@ -389,12 +402,12 @@ var toDriverPayload = (row) => ({
|
|
|
389
402
|
driver_image_url: row.driver_image_url || "",
|
|
390
403
|
driver_image_key: row.driver_image_key || "",
|
|
391
404
|
driver_image_name: row.driver_image_name || "",
|
|
392
|
-
status: row?.status || "Active" /* Active */,
|
|
393
405
|
organisation_id: row.organisation_id || "",
|
|
394
406
|
organisation_sub_company_id: row.organisation_sub_company_id || "",
|
|
395
407
|
organisation_branch_id: row.organisation_branch_id || "",
|
|
396
408
|
organisation_color_id: row.organisation_color_id || "",
|
|
397
409
|
organisation_tag_id: row.organisation_tag_id || "",
|
|
410
|
+
status: row?.status || "Active" /* Active */,
|
|
398
411
|
MasterDriverFileSchema: []
|
|
399
412
|
// MasterDriverFileSchema: row.MasterDriverFile?.map((file) => ({
|
|
400
413
|
// driver_file_id: file.driver_file_id || '',
|
|
@@ -455,13 +468,13 @@ var newDriverPayload = () => ({
|
|
|
455
468
|
driver_image_url: "",
|
|
456
469
|
driver_image_key: "",
|
|
457
470
|
driver_image_name: "",
|
|
458
|
-
status: "Active" /* Active */,
|
|
459
471
|
organisation_id: "",
|
|
460
472
|
organisation_sub_company_id: "",
|
|
461
473
|
organisation_branch_id: "",
|
|
462
474
|
organisation_color_id: "",
|
|
463
475
|
organisation_tag_id: "",
|
|
464
|
-
MasterDriverFileSchema: []
|
|
476
|
+
MasterDriverFileSchema: [],
|
|
477
|
+
status: "Active" /* Active */
|
|
465
478
|
});
|
|
466
479
|
var get_master_driver_logo_presigned_url = async (fileName) => {
|
|
467
480
|
return apiGet(ENDPOINTS.master_driver_logo_presigned_url(fileName));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export {
|
|
4
|
+
export { vB as AssignRemoveSimHistory, vA as MasterSim, vD as MasterSimDTO, vF as MasterSimQueryDTO, vE as MasterSimQuerySchema, vC as MasterSimSchema, vJ as createMasterSim, vL as deleteMasterSim, vI as findMasterSims, vH as newMasterSimPayload, vG as toMasterSimPayload, vK as updateMasterSim } from '../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -264,8 +264,10 @@ var ENDPOINTS = {
|
|
|
264
264
|
delete: (id) => `${URL}/${id}`
|
|
265
265
|
};
|
|
266
266
|
var MasterSimSchema = z3.object({
|
|
267
|
-
|
|
268
|
-
|
|
267
|
+
// Relations - Parent
|
|
268
|
+
sim_provider_id: single_select_mandatory("MasterMainSimProvider"),
|
|
269
|
+
// Single-Selection -> MasterMainSimProvider
|
|
270
|
+
// Main Field Details
|
|
269
271
|
sim_number: stringMandatory("Sim Number", 3, 50),
|
|
270
272
|
sim_imei: stringMandatory("Sim IMEI", 3, 50),
|
|
271
273
|
sim_serial_number: stringMandatory("Sim Serial Number", 3, 50),
|
|
@@ -275,13 +277,17 @@ var MasterSimSchema = z3.object({
|
|
|
275
277
|
BillingStatus,
|
|
276
278
|
"New" /* New */
|
|
277
279
|
),
|
|
280
|
+
// Metadata
|
|
278
281
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
279
282
|
});
|
|
280
283
|
var MasterSimQuerySchema = BaseQuerySchema.extend({
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
//
|
|
284
|
+
// Self Table
|
|
285
|
+
sim_ids: multi_select_optional("MasterSim"),
|
|
286
|
+
// Multi-selection -> MasterSim
|
|
287
|
+
// Relations - Parent
|
|
288
|
+
sim_provider_ids: multi_select_optional("MasterMainSimProvider"),
|
|
289
|
+
// Multi-selection -> MasterMainSimProvider
|
|
290
|
+
// Enums
|
|
285
291
|
sim_status: enumArrayOptional(
|
|
286
292
|
"Sim Status",
|
|
287
293
|
SimStatus,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BR, SBR } from '../../../core/BaseResponse.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { U as User, a as UserAdmin, M as MasterDriver } from '../../../bookmark_service-
|
|
3
|
+
import { U as User, a as UserAdmin, M as MasterDriver } from '../../../bookmark_service-CAKgVh8C.js';
|
|
4
4
|
import { LoginFrom } from '../../../core/Enums.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { a as UserAdmin, cl as UserAdminDTO, cj as UserAdminLoginPush, cn as UserAdminLogoDTO, cm as UserAdminLogoSchema, cp as UserAdminProfileDTO, co as UserAdminProfileSchema, cr as UserAdminQueryDTO, cq as UserAdminQuerySchema, ck as UserAdminSchema,
|
|
4
|
+
export { a as UserAdmin, cl as UserAdminDTO, cj as UserAdminLoginPush, cn as UserAdminLogoDTO, cm as UserAdminLogoSchema, cp as UserAdminProfileDTO, co as UserAdminProfileSchema, cr as UserAdminQueryDTO, cq as UserAdminQuerySchema, ck as UserAdminSchema, cy as createUserAdmin, cA as deleteUserAdmin, cw as delete_admin_image, cx as findUserAdmin, cC as getAdminUserCache, cu as get_admin_image_presigned_url, ct as newUserAdminPayload, cs as toUserAdminProfilePayload, cz as updateUserAdmin, cB as updateUserAdminProfile, cv as update_admin_image } from '../../../bookmark_service-CAKgVh8C.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|