vms-nest-prisma-api-document 150.0.0 → 170.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.
Files changed (93) hide show
  1. package/dist/core/Enums.d.ts +5 -1
  2. package/dist/core/Enums.js +6 -0
  3. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  4. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  5. package/dist/services/account/bookmark_service.d.ts +1 -1
  6. package/dist/services/account/notification_preferences.service.d.ts +1 -1
  7. package/dist/services/account/report_preferences.service.d.ts +1 -1
  8. package/dist/services/account/ticket_service.d.ts +1 -1
  9. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +21 -21
  10. package/dist/services/fleet/bus_mangement/calender.d.ts +7 -7
  11. package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
  12. package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
  13. package/dist/services/fleet/bus_mangement/student.d.ts +13 -13
  14. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
  15. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
  16. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
  17. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
  18. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +4 -4
  19. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +8 -8
  20. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +12 -12
  21. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
  22. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
  23. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  24. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  25. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  26. package/dist/services/main/drivers/master_driver_service.js +87 -12
  27. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  28. package/dist/services/main/users/auth_service.d.ts +1 -1
  29. package/dist/services/main/users/user_admin_service.d.ts +10 -3
  30. package/dist/services/main/users/user_admin_service.js +14 -5
  31. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  32. package/dist/services/main/users/user_organisation_service.js +83 -75
  33. package/dist/services/main/users/user_service.d.ts +1 -1
  34. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  35. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  36. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  37. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  38. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  39. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  40. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  41. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  42. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  43. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  44. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  45. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  46. package/dist/services/master/expense/master_expense_name_service.d.ts +135 -4
  47. package/dist/services/master/expense/master_expense_type_service.d.ts +125 -4
  48. package/dist/services/master/expense/master_fuel_company_service.d.ts +6 -6
  49. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +3 -3
  50. package/dist/services/master/expense/master_vendor_type_service.d.ts +124 -4
  51. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +127 -4
  52. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +127 -4
  53. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +127 -4
  54. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +127 -4
  55. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +127 -4
  56. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  57. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  58. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  59. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  60. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  61. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  62. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  63. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  64. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  65. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  66. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  67. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  68. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  69. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  70. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  71. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  72. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -1
  73. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +269 -4
  74. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +132 -4
  75. package/dist/services/master/trip/master_trip_party_type_service.d.ts +127 -4
  76. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +128 -4
  77. package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -1
  78. package/dist/services/master/tyre/master_tyre_model_service.d.ts +261 -4
  79. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  80. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  81. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  82. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  83. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
  84. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  85. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  86. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  87. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  88. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  89. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  90. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  91. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  92. package/dist/{user_organisation_service-CdoeXDR4.d.ts → user_organisation_service-CEtTkdF3.d.ts} +1107 -2922
  93. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo, SimStatus, BillingStatus, DeviceStatus, GPSSource, LifeExpiry, PurchaseVehicleType, PurchaseType, ExpenseCategory, FleetSize } from './core/Enums.js';
1
+ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo, DriverType, SimStatus, BillingStatus, DeviceStatus, GPSSource, LifeExpiry, PurchaseVehicleType, PurchaseType, FleetSize } from './core/Enums.js';
2
2
  import { FBR, SBR, BR } from './core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { BaseQueryDTO } from './zod_utils/zod_base_schema.js';
@@ -1083,155 +1083,44 @@ declare const updateMasterMainUnitVolume: (id: string, data: MasterMainUnitVolum
1083
1083
  declare const deleteMasterMainUnitVolume: (id: string) => Promise<SBR>;
1084
1084
  declare const getMasterMainUnitVolumeCache: () => Promise<FBR<MasterMainUnitVolume[]>>;
1085
1085
 
1086
- interface MasterDriver extends Record<string, unknown> {
1087
- driver_id: string;
1088
- driver_code?: string;
1089
- driver_first_name: string;
1090
- driver_last_name?: string;
1091
- driver_mobile?: string;
1092
- driver_email?: string;
1093
- driver_license?: string;
1094
- driver_pan?: string;
1095
- driver_aadhaar?: string;
1096
- driver_details?: string;
1097
- password?: string;
1098
- can_login: YesNo;
1099
- driver_image_url?: string;
1100
- driver_image_key?: string;
1101
- driver_aadhaar_front_image_url?: string;
1102
- driver_aadhaar_front_image_key?: string;
1103
- driver_aadhaar_back_image_url?: string;
1104
- driver_aadhaar_back_image_key?: string;
1105
- driver_pan_image_url?: string;
1106
- driver_pan_image_key?: string;
1107
- driver_license_back_image_url?: string;
1108
- driver_license_back_image_key?: string;
1109
- driver_license_front_image_url?: string;
1110
- driver_license_front_image_key?: string;
1086
+ interface OrganisationSubCompany extends Record<string, unknown> {
1087
+ organisation_sub_company_id: string;
1088
+ sub_company_name: string;
1089
+ sub_company_GSTIN: string;
1090
+ description?: string;
1091
+ logo_key?: string;
1092
+ logo_url?: string;
1111
1093
  status: Status;
1112
1094
  added_date_time: string;
1113
1095
  modified_date_time: string;
1114
- vehicle_id?: string;
1115
- MasterVehicle?: MasterVehicle;
1116
- assign_vehicle_date?: string;
1117
- is_vehicle_assigned: YesNo;
1118
- AssignRemoveDriverHistory?: AssignRemoveDriverHistory[];
1119
1096
  organisation_id: string;
1120
- UserOrganisation?: UserOrganisation;
1121
- Dummy_MasterVehicle?: MasterVehicle[];
1097
+ UserOrganisation: UserOrganisation;
1098
+ MasterVehicle: MasterVehicle[];
1122
1099
  _count?: {
1123
- AssignRemoveDriverHistory: number;
1124
- TripGeofenceToGeofence: number;
1125
- GPSGeofenceTransaction: number;
1126
- GPSFuelVehicleDailySummary: number;
1127
- GPSFuelVehicleRefill: number;
1128
- GPSFuelVehicleRemoval: number;
1129
- GPSLockRelayLog: number;
1130
- GPSLockDigitalDoorLog: number;
1131
- GPSGeofenceTransactionSummary: number;
1132
- Inspection: number;
1133
- IncidentManagement: number;
1134
- IssueManagement: number;
1135
- FleetServiceSchedule: number;
1136
- FleetServiceJobCard: number;
1137
- FleetReminders: number;
1138
- FleetFuelRefills: number;
1139
- FleetFuelRemovals: number;
1140
- FleetTyreDamageRepair: number;
1141
- FleetTyreRotation: number;
1142
- AlertDriverLink: number;
1100
+ MasterVehicle: number;
1143
1101
  };
1144
1102
  }
1145
- interface AssignRemoveDriverHistory extends Record<string, unknown> {
1146
- history_id: string;
1147
- assign_date?: string;
1148
- remove_date?: string;
1149
- status: Status;
1150
- added_date_time: string;
1151
- modified_date_time: string;
1152
- vehicle_id: string;
1153
- Vehicle?: MasterVehicle;
1154
- driver_id: string;
1155
- MasterDriver?: MasterDriver;
1156
- }
1157
- declare const MasterDriverSchema: z.ZodObject<{
1103
+ declare const OrganisationSubCompanySchema: z.ZodObject<{
1158
1104
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
1159
- driver_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1160
- driver_first_name: z.ZodEffects<z.ZodString, string, string>;
1161
- driver_last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1162
- driver_mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1163
- driver_email: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1164
- driver_license: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1165
- driver_pan: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1166
- driver_aadhaar: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1167
- password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1168
- can_login: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
1169
- driver_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1170
- driver_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1171
- driver_aadhaar_front_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1172
- driver_aadhaar_front_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1173
- driver_aadhaar_back_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1174
- driver_aadhaar_back_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1175
- driver_pan_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1176
- driver_pan_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1177
- driver_license_back_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1178
- driver_license_back_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1179
- driver_license_front_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1180
- driver_license_front_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1105
+ sub_company_name: z.ZodEffects<z.ZodString, string, string>;
1106
+ sub_company_GSTIN: z.ZodEffects<z.ZodString, string, string>;
1107
+ description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1181
1108
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1182
1109
  }, "strip", z.ZodTypeAny, {
1183
1110
  status: Status;
1184
1111
  organisation_id: string;
1185
- driver_code: string;
1186
- driver_first_name: string;
1187
- driver_last_name: string;
1188
- driver_mobile: string;
1189
- driver_email: string;
1190
- driver_license: string;
1191
- driver_pan: string;
1192
- driver_aadhaar: string;
1193
- password: string;
1194
- can_login: YesNo;
1195
- driver_image_url: string;
1196
- driver_image_key: string;
1197
- driver_aadhaar_front_image_url: string;
1198
- driver_aadhaar_front_image_key: string;
1199
- driver_aadhaar_back_image_url: string;
1200
- driver_aadhaar_back_image_key: string;
1201
- driver_pan_image_url: string;
1202
- driver_pan_image_key: string;
1203
- driver_license_back_image_url: string;
1204
- driver_license_back_image_key: string;
1205
- driver_license_front_image_url: string;
1206
- driver_license_front_image_key: string;
1112
+ description: string;
1113
+ sub_company_name: string;
1114
+ sub_company_GSTIN: string;
1207
1115
  }, {
1208
1116
  status: Status;
1209
1117
  organisation_id: string;
1210
- driver_first_name: string;
1211
- can_login: YesNo;
1212
- driver_code?: string | undefined;
1213
- driver_last_name?: string | undefined;
1214
- driver_mobile?: string | undefined;
1215
- driver_email?: string | undefined;
1216
- driver_license?: string | undefined;
1217
- driver_pan?: string | undefined;
1218
- driver_aadhaar?: string | undefined;
1219
- password?: string | undefined;
1220
- driver_image_url?: string | undefined;
1221
- driver_image_key?: string | undefined;
1222
- driver_aadhaar_front_image_url?: string | undefined;
1223
- driver_aadhaar_front_image_key?: string | undefined;
1224
- driver_aadhaar_back_image_url?: string | undefined;
1225
- driver_aadhaar_back_image_key?: string | undefined;
1226
- driver_pan_image_url?: string | undefined;
1227
- driver_pan_image_key?: string | undefined;
1228
- driver_license_back_image_url?: string | undefined;
1229
- driver_license_back_image_key?: string | undefined;
1230
- driver_license_front_image_url?: string | undefined;
1231
- driver_license_front_image_key?: string | undefined;
1118
+ sub_company_name: string;
1119
+ sub_company_GSTIN: string;
1120
+ description?: string | undefined;
1232
1121
  }>;
1233
- type MasterDriverDTO = z.infer<typeof MasterDriverSchema>;
1234
- declare const DriverQuerySchema: z.ZodObject<{
1122
+ type OrganisationSubCompanyDTO = z.infer<typeof OrganisationSubCompanySchema>;
1123
+ declare const OrganisationSubCompanyQuerySchema: z.ZodObject<{
1235
1124
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1236
1125
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1237
1126
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -1263,10 +1152,7 @@ declare const DriverQuerySchema: z.ZodObject<{
1263
1152
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1264
1153
  } & {
1265
1154
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1266
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1267
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1268
- can_login: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
1269
- is_vehicle_assigned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
1155
+ organisation_sub_company_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1270
1156
  }, "strip", z.ZodTypeAny, {
1271
1157
  status: Status[];
1272
1158
  search: string;
@@ -1290,10 +1176,7 @@ declare const DriverQuerySchema: z.ZodObject<{
1290
1176
  date_format_id: string;
1291
1177
  time_zone_id: string;
1292
1178
  organisation_ids: string[];
1293
- can_login: YesNo[];
1294
- is_vehicle_assigned: YesNo[];
1295
- vehicle_ids: string[];
1296
- driver_ids: string[];
1179
+ organisation_sub_company_ids: string[];
1297
1180
  }, {
1298
1181
  date_format_id: string;
1299
1182
  time_zone_id: string;
@@ -1317,63 +1200,59 @@ declare const DriverQuerySchema: z.ZodObject<{
1317
1200
  }[] | undefined;
1318
1201
  include_master_data?: YesNo | undefined;
1319
1202
  organisation_ids?: string[] | undefined;
1320
- can_login?: YesNo[] | undefined;
1321
- is_vehicle_assigned?: YesNo[] | undefined;
1322
- vehicle_ids?: string[] | undefined;
1323
- driver_ids?: string[] | undefined;
1203
+ organisation_sub_company_ids?: string[] | undefined;
1324
1204
  }>;
1325
- type DriverQueryDTO = z.infer<typeof DriverQuerySchema>;
1326
- declare const toDriverPayload: (driver?: MasterDriver) => MasterDriverDTO;
1327
- declare const newDriverPayload: () => MasterDriverDTO;
1328
- declare const findDrivers: (payload: DriverQueryDTO) => Promise<FBR<MasterDriver[]>>;
1329
- declare const createDriver: (payload: MasterDriverDTO) => Promise<SBR>;
1330
- declare const updateDriver: (id: string, payload: MasterDriverDTO) => Promise<SBR>;
1331
- declare const deleteDriver: (id: string) => Promise<SBR>;
1332
- declare const getPresignedUrlForDriver: (fileName: string) => Promise<SBR>;
1333
- declare const getDriverCache: (organisationId: string) => Promise<FBR<MasterDriver[]>>;
1334
- declare const getDriverSimpleCache: (organisationId: string) => Promise<FBR<MasterDriver[]>>;
1205
+ type OrganisationSubCompanyQueryDTO = z.infer<typeof OrganisationSubCompanyQuerySchema>;
1206
+ declare const toOrganisationSubCompanyPayload: (row: OrganisationSubCompany) => OrganisationSubCompanyDTO;
1207
+ declare const newOrganisationSubCompanyPayload: () => OrganisationSubCompanyDTO;
1208
+ declare const findOrganisationSubCompanyies: (data: OrganisationSubCompanyQueryDTO) => Promise<FBR<OrganisationSubCompany[]>>;
1209
+ declare const createOrganisationSubCompany: (data: OrganisationSubCompanyDTO) => Promise<SBR>;
1210
+ declare const updateOrganisationSubCompany: (id: string, data: OrganisationSubCompanyDTO) => Promise<SBR>;
1211
+ declare const deleteOrganisationSubCompany: (id: string) => Promise<SBR>;
1212
+ declare const getOrganisationSubCompanyCache: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
1213
+ declare const getOrganisationSubCompanyCacheCount: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
1214
+ declare const getOrganisationSubCompanyCacheChild: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
1335
1215
 
1336
- interface MasterDeviceType extends Record<string, unknown> {
1337
- device_type_id: string;
1338
- device_type_name: string;
1339
- device_type_code?: string;
1216
+ interface OrganisationBranch extends Record<string, unknown> {
1217
+ organisation_branch_id: string;
1218
+ branch_name: string;
1219
+ branch_city: string;
1220
+ branch_address: string;
1340
1221
  description?: string;
1341
1222
  status: Status;
1342
1223
  added_date_time: string;
1343
1224
  modified_date_time: string;
1344
- device_manufacturer_id: string;
1345
- MasterDeviceManufacturer?: MasterDeviceManufacturer;
1346
- device_model_id: string;
1347
- MasterDeviceModel?: MasterDeviceModel;
1348
- MasterDevice: MasterDevice[];
1225
+ organisation_id: string;
1226
+ UserOrganisation: UserOrganisation;
1227
+ MasterVehicle: MasterVehicle[];
1349
1228
  _count?: {
1350
- MasterDevice: number;
1229
+ MasterVehicle: number;
1351
1230
  };
1352
1231
  }
1353
- declare const MasterDeviceTypeSchema: z.ZodObject<{
1354
- device_manufacturer_id: z.ZodEffects<z.ZodString, string, string>;
1355
- device_model_id: z.ZodEffects<z.ZodString, string, string>;
1356
- device_type_name: z.ZodEffects<z.ZodString, string, string>;
1357
- device_type_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1232
+ declare const OrganisationBranchSchema: z.ZodObject<{
1233
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1234
+ branch_name: z.ZodEffects<z.ZodString, string, string>;
1235
+ branch_city: z.ZodEffects<z.ZodString, string, string>;
1236
+ branch_address: z.ZodEffects<z.ZodString, string, string>;
1358
1237
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1359
1238
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1360
1239
  }, "strip", z.ZodTypeAny, {
1361
1240
  status: Status;
1241
+ organisation_id: string;
1362
1242
  description: string;
1363
- device_type_name: string;
1364
- device_type_code: string;
1365
- device_manufacturer_id: string;
1366
- device_model_id: string;
1243
+ branch_name: string;
1244
+ branch_city: string;
1245
+ branch_address: string;
1367
1246
  }, {
1368
1247
  status: Status;
1369
- device_type_name: string;
1370
- device_manufacturer_id: string;
1371
- device_model_id: string;
1248
+ organisation_id: string;
1249
+ branch_name: string;
1250
+ branch_city: string;
1251
+ branch_address: string;
1372
1252
  description?: string | undefined;
1373
- device_type_code?: string | undefined;
1374
1253
  }>;
1375
- type MasterDeviceTypeDTO = z.infer<typeof MasterDeviceTypeSchema>;
1376
- declare const MasterDeviceTypeQuerySchema: z.ZodObject<{
1254
+ type OrganisationBranchDTO = z.infer<typeof OrganisationBranchSchema>;
1255
+ declare const OrganisationBranchQuerySchema: z.ZodObject<{
1377
1256
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1378
1257
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1379
1258
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -1404,9 +1283,8 @@ declare const MasterDeviceTypeQuerySchema: z.ZodObject<{
1404
1283
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
1405
1284
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1406
1285
  } & {
1407
- device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1408
- device_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1409
- device_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1286
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1287
+ organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1410
1288
  }, "strip", z.ZodTypeAny, {
1411
1289
  status: Status[];
1412
1290
  search: string;
@@ -1429,9 +1307,8 @@ declare const MasterDeviceTypeQuerySchema: z.ZodObject<{
1429
1307
  include_master_data: YesNo;
1430
1308
  date_format_id: string;
1431
1309
  time_zone_id: string;
1432
- device_manufacturer_ids: string[];
1433
- device_model_ids: string[];
1434
- device_type_ids: string[];
1310
+ organisation_ids: string[];
1311
+ organisation_branch_ids: string[];
1435
1312
  }, {
1436
1313
  date_format_id: string;
1437
1314
  time_zone_id: string;
@@ -1454,59 +1331,56 @@ declare const MasterDeviceTypeQuerySchema: z.ZodObject<{
1454
1331
  direction: OrderBy;
1455
1332
  }[] | undefined;
1456
1333
  include_master_data?: YesNo | undefined;
1457
- device_manufacturer_ids?: string[] | undefined;
1458
- device_model_ids?: string[] | undefined;
1459
- device_type_ids?: string[] | undefined;
1334
+ organisation_ids?: string[] | undefined;
1335
+ organisation_branch_ids?: string[] | undefined;
1460
1336
  }>;
1461
- type MasterDeviceTypeQueryDTO = z.infer<typeof MasterDeviceTypeQuerySchema>;
1462
- declare const toMasterDeviceTypePayload: (row: MasterDeviceType) => MasterDeviceTypeDTO;
1463
- declare const newMasterDeviceTypePayload: () => MasterDeviceTypeDTO;
1464
- declare const findMasterDeviceTypes: (data: MasterDeviceTypeQueryDTO) => Promise<FBR<MasterDeviceType[]>>;
1465
- declare const createMasterDeviceType: (data: MasterDeviceTypeDTO) => Promise<SBR>;
1466
- declare const updateMasterDeviceType: (id: string, data: MasterDeviceTypeDTO) => Promise<SBR>;
1467
- declare const deleteMasterDeviceType: (id: string) => Promise<SBR>;
1468
- declare const getMasterDeviceTypeCache: (device_model_id?: string) => Promise<FBR<MasterDeviceType[]>>;
1469
- declare const getMasterDeviceTypeCacheCount: (device_model_id?: string) => Promise<FBR<MasterDeviceType>>;
1470
- declare const getMasterDeviceTypeCacheChild: (device_model_id?: string) => Promise<FBR<MasterDeviceType[]>>;
1337
+ type OrganisationBranchQueryDTO = z.infer<typeof OrganisationBranchQuerySchema>;
1338
+ declare const toOrganisationBranchPayload: (row: OrganisationBranch) => OrganisationBranchDTO;
1339
+ declare const newOrganisationBranchPayload: () => OrganisationBranchDTO;
1340
+ declare const findOrganisationBranchs: (data: OrganisationBranchQueryDTO) => Promise<FBR<OrganisationBranch[]>>;
1341
+ declare const createOrganisationBranch: (data: OrganisationBranchDTO) => Promise<SBR>;
1342
+ declare const updateOrganisationBranch: (id: string, data: OrganisationBranchDTO) => Promise<SBR>;
1343
+ declare const deleteOrganisationBranch: (id: string) => Promise<SBR>;
1344
+ declare const getOrganisationBranchCache: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
1345
+ declare const getOrganisationBranchCacheCount: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
1346
+ declare const getOrganisationBranchCacheChild: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
1471
1347
 
1472
- interface MasterDeviceModel extends Record<string, unknown> {
1473
- device_model_id: string;
1474
- device_model_name: string;
1475
- device_model_code?: string;
1348
+ interface OrganisationColor extends Record<string, unknown> {
1349
+ organisation_color_id: string;
1350
+ color_name: string;
1351
+ color_code: string;
1476
1352
  description?: string;
1477
1353
  status: Status;
1478
1354
  added_date_time: string;
1479
1355
  modified_date_time: string;
1480
- device_manufacturer_id: string;
1481
- MasterDeviceManufacturer?: MasterDeviceManufacturer;
1482
- MasterDeviceType: MasterDeviceType[];
1483
- MasterDevice: MasterDevice[];
1356
+ organisation_id?: string;
1357
+ UserOrganisation?: UserOrganisation;
1358
+ MasterVehicle: MasterVehicle[];
1484
1359
  _count?: {
1485
- MasterDeviceType: number;
1486
- MasterDevice: number;
1360
+ MasterVehicle: number;
1487
1361
  };
1488
1362
  }
1489
- declare const MasterDeviceModelSchema: z.ZodObject<{
1490
- device_manufacturer_id: z.ZodEffects<z.ZodString, string, string>;
1491
- device_model_name: z.ZodEffects<z.ZodString, string, string>;
1492
- device_model_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1363
+ declare const OrganisationColorSchema: z.ZodObject<{
1364
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1365
+ color_name: z.ZodEffects<z.ZodString, string, string>;
1366
+ color_code: z.ZodEffects<z.ZodString, string, string>;
1493
1367
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1494
1368
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1495
1369
  }, "strip", z.ZodTypeAny, {
1496
1370
  status: Status;
1371
+ organisation_id: string;
1497
1372
  description: string;
1498
- device_manufacturer_id: string;
1499
- device_model_name: string;
1500
- device_model_code: string;
1373
+ color_name: string;
1374
+ color_code: string;
1501
1375
  }, {
1502
1376
  status: Status;
1503
- device_manufacturer_id: string;
1504
- device_model_name: string;
1377
+ organisation_id: string;
1378
+ color_name: string;
1379
+ color_code: string;
1505
1380
  description?: string | undefined;
1506
- device_model_code?: string | undefined;
1507
1381
  }>;
1508
- type MasterDeviceModelDTO = z.infer<typeof MasterDeviceModelSchema>;
1509
- declare const MasterDeviceModelQuerySchema: z.ZodObject<{
1382
+ type OrganisationColorDTO = z.infer<typeof OrganisationColorSchema>;
1383
+ declare const OrganisationColorQuerySchema: z.ZodObject<{
1510
1384
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1511
1385
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1512
1386
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -1537,8 +1411,8 @@ declare const MasterDeviceModelQuerySchema: z.ZodObject<{
1537
1411
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
1538
1412
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1539
1413
  } & {
1540
- device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1541
- device_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1414
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1415
+ organisation_color_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1542
1416
  }, "strip", z.ZodTypeAny, {
1543
1417
  status: Status[];
1544
1418
  search: string;
@@ -1561,8 +1435,8 @@ declare const MasterDeviceModelQuerySchema: z.ZodObject<{
1561
1435
  include_master_data: YesNo;
1562
1436
  date_format_id: string;
1563
1437
  time_zone_id: string;
1564
- device_manufacturer_ids: string[];
1565
- device_model_ids: string[];
1438
+ organisation_ids: string[];
1439
+ organisation_color_ids: string[];
1566
1440
  }, {
1567
1441
  date_format_id: string;
1568
1442
  time_zone_id: string;
@@ -1585,55 +1459,52 @@ declare const MasterDeviceModelQuerySchema: z.ZodObject<{
1585
1459
  direction: OrderBy;
1586
1460
  }[] | undefined;
1587
1461
  include_master_data?: YesNo | undefined;
1588
- device_manufacturer_ids?: string[] | undefined;
1589
- device_model_ids?: string[] | undefined;
1462
+ organisation_ids?: string[] | undefined;
1463
+ organisation_color_ids?: string[] | undefined;
1590
1464
  }>;
1591
- type MasterDeviceModelQueryDTO = z.infer<typeof MasterDeviceModelQuerySchema>;
1592
- declare const toMasterDeviceModelPayload: (row: MasterDeviceModel) => MasterDeviceModelDTO;
1593
- declare const newMasterDeviceModelPayload: () => MasterDeviceModelDTO;
1594
- declare const findMasterDeviceModels: (data: MasterDeviceModelQueryDTO) => Promise<FBR<MasterDeviceModel[]>>;
1595
- declare const createMasterDeviceModel: (data: MasterDeviceModelDTO) => Promise<SBR>;
1596
- declare const updateMasterDeviceModel: (id: string, data: MasterDeviceModelDTO) => Promise<SBR>;
1597
- declare const deleteMasterDeviceModel: (id: string) => Promise<SBR>;
1598
- declare const getMasterDeviceModelCache: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel[]>>;
1599
- declare const getMasterDeviceModelCacheCount: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel>>;
1600
- declare const getMasterDeviceModelCacheChild: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel[]>>;
1465
+ type OrganisationColorQueryDTO = z.infer<typeof OrganisationColorQuerySchema>;
1466
+ declare const toOrganisationColorPayload: (row: OrganisationColor) => OrganisationColorDTO;
1467
+ declare const newOrganisationColorPayload: () => OrganisationColorDTO;
1468
+ declare const findOrganisationColors: (data: OrganisationColorQueryDTO) => Promise<FBR<OrganisationColor[]>>;
1469
+ declare const createOrganisationColor: (data: OrganisationColorDTO) => Promise<SBR>;
1470
+ declare const updateOrganisationColor: (id: string, data: OrganisationColorDTO) => Promise<SBR>;
1471
+ declare const deleteOrganisationColor: (id: string) => Promise<SBR>;
1472
+ declare const getOrganisationColorCache: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
1473
+ declare const getOrganisationColorCacheCount: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
1474
+ declare const getOrganisationColorCacheChild: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
1601
1475
 
1602
- interface MasterDeviceManufacturer extends Record<string, unknown> {
1603
- device_manufacturer_id: string;
1604
- device_manufacturer_name: string;
1605
- device_manufacturer_code?: string;
1476
+ interface OrganisationTag extends Record<string, unknown> {
1477
+ organisation_tag_id: string;
1478
+ tag_name: string;
1606
1479
  description?: string;
1607
1480
  status: Status;
1608
1481
  added_date_time: string;
1609
1482
  modified_date_time: string;
1610
- MasterDeviceModel: MasterDeviceModel[];
1611
- MasterDeviceType: MasterDeviceType[];
1612
- MasterDevice: MasterDevice[];
1483
+ organisation_id: string;
1484
+ UserOrganisation: UserOrganisation;
1485
+ MasterVehicle: MasterVehicle[];
1613
1486
  _count?: {
1614
- MasterDeviceModel: number;
1615
- MasterDeviceType: number;
1616
- MasterDevice: number;
1487
+ MasterVehicle: number;
1617
1488
  };
1618
1489
  }
1619
- declare const MasterDeviceManufacturerSchema: z.ZodObject<{
1620
- device_manufacturer_name: z.ZodEffects<z.ZodString, string, string>;
1621
- device_manufacturer_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1490
+ declare const OrganisationTagSchema: z.ZodObject<{
1491
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1492
+ tag_name: z.ZodEffects<z.ZodString, string, string>;
1622
1493
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1623
1494
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1624
1495
  }, "strip", z.ZodTypeAny, {
1625
1496
  status: Status;
1497
+ organisation_id: string;
1626
1498
  description: string;
1627
- device_manufacturer_name: string;
1628
- device_manufacturer_code: string;
1499
+ tag_name: string;
1629
1500
  }, {
1630
1501
  status: Status;
1631
- device_manufacturer_name: string;
1502
+ organisation_id: string;
1503
+ tag_name: string;
1632
1504
  description?: string | undefined;
1633
- device_manufacturer_code?: string | undefined;
1634
1505
  }>;
1635
- type MasterDeviceManufacturerDTO = z.infer<typeof MasterDeviceManufacturerSchema>;
1636
- declare const MasterDeviceManufacturerQuerySchema: z.ZodObject<{
1506
+ type OrganisationTagDTO = z.infer<typeof OrganisationTagSchema>;
1507
+ declare const OrganisationTagQuerySchema: z.ZodObject<{
1637
1508
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1638
1509
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1639
1510
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -1664,7 +1535,8 @@ declare const MasterDeviceManufacturerQuerySchema: z.ZodObject<{
1664
1535
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
1665
1536
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1666
1537
  } & {
1667
- device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1538
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1539
+ organisation_tag_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1668
1540
  }, "strip", z.ZodTypeAny, {
1669
1541
  status: Status[];
1670
1542
  search: string;
@@ -1687,7 +1559,8 @@ declare const MasterDeviceManufacturerQuerySchema: z.ZodObject<{
1687
1559
  include_master_data: YesNo;
1688
1560
  date_format_id: string;
1689
1561
  time_zone_id: string;
1690
- device_manufacturer_ids: string[];
1562
+ organisation_ids: string[];
1563
+ organisation_tag_ids: string[];
1691
1564
  }, {
1692
1565
  date_format_id: string;
1693
1566
  time_zone_id: string;
@@ -1710,80 +1583,217 @@ declare const MasterDeviceManufacturerQuerySchema: z.ZodObject<{
1710
1583
  direction: OrderBy;
1711
1584
  }[] | undefined;
1712
1585
  include_master_data?: YesNo | undefined;
1713
- device_manufacturer_ids?: string[] | undefined;
1586
+ organisation_ids?: string[] | undefined;
1587
+ organisation_tag_ids?: string[] | undefined;
1714
1588
  }>;
1715
- type MasterDeviceManufacturerQueryDTO = z.infer<typeof MasterDeviceManufacturerQuerySchema>;
1716
- declare const toMasterDeviceManufacturerPayload: (row: MasterDeviceManufacturer) => MasterDeviceManufacturerDTO;
1717
- declare const newMasterDeviceManufacturerPayload: () => MasterDeviceManufacturerDTO;
1718
- declare const findMasterDeviceManufacturers: (data: MasterDeviceManufacturerQueryDTO) => Promise<FBR<MasterDeviceManufacturer[]>>;
1719
- declare const createMasterDeviceManufacturer: (data: MasterDeviceManufacturerDTO) => Promise<SBR>;
1720
- declare const updateMasterDeviceManufacturer: (id: string, data: MasterDeviceManufacturerDTO) => Promise<SBR>;
1721
- declare const deleteMasterDeviceManufacturer: (id: string) => Promise<SBR>;
1722
- declare const getMasterDeviceManufacturerCache: () => Promise<FBR<MasterDeviceManufacturer[]>>;
1723
- declare const getMasterDeviceManufacturerCacheCount: () => Promise<FBR<MasterDeviceManufacturer>>;
1724
- declare const getMasterDeviceManufacturerCacheChild: () => Promise<FBR<MasterDeviceManufacturer[]>>;
1589
+ type OrganisationTagQueryDTO = z.infer<typeof OrganisationTagQuerySchema>;
1590
+ declare const toOrganisationTagPayload: (row: OrganisationTag) => OrganisationTagDTO;
1591
+ declare const newOrganisationTagPayload: () => OrganisationTagDTO;
1592
+ declare const findOrganisationTags: (data: OrganisationTagQueryDTO) => Promise<FBR<OrganisationTag[]>>;
1593
+ declare const createOrganisationTag: (data: OrganisationTagDTO) => Promise<SBR>;
1594
+ declare const updateOrganisationTag: (id: string, data: OrganisationTagDTO) => Promise<SBR>;
1595
+ declare const deleteOrganisationTag: (id: string) => Promise<SBR>;
1596
+ declare const getOrganisationTagCache: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
1597
+ declare const getOrganisationTagCacheCount: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
1598
+ declare const getOrganisationTagCacheChild: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
1725
1599
 
1726
- interface MasterSim extends Record<string, unknown> {
1727
- sim_id: string;
1728
- sim_number: string;
1729
- sim_imei: string;
1730
- sim_serial_number: string;
1731
- sim_status: SimStatus;
1732
- billing_status: BillingStatus;
1600
+ interface MasterDriver extends Record<string, unknown> {
1601
+ driver_id: string;
1602
+ driver_code?: string;
1603
+ driver_first_name: string;
1604
+ driver_last_name?: string;
1605
+ driver_mobile?: string;
1606
+ driver_email?: string;
1607
+ driver_license?: string;
1608
+ driver_pan?: string;
1609
+ driver_aadhaar?: string;
1610
+ driver_details?: string;
1611
+ password?: string;
1612
+ can_login: YesNo;
1613
+ driver_type: DriverType;
1614
+ driver_image_url?: string;
1615
+ driver_image_key?: string;
1616
+ driver_image_name?: string;
1617
+ driver_aadhaar_front_image_url?: string;
1618
+ driver_aadhaar_front_image_key?: string;
1619
+ driver_aadhaar_front_image_name?: string;
1620
+ driver_aadhaar_back_image_url?: string;
1621
+ driver_aadhaar_back_image_key?: string;
1622
+ driver_aadhaar_back_image_name?: string;
1623
+ driver_pan_image_url?: string;
1624
+ driver_pan_image_key?: string;
1625
+ driver_pan_image_name?: string;
1626
+ driver_license_back_image_url?: string;
1627
+ driver_license_back_image_key?: string;
1628
+ driver_license_back_image_name?: string;
1629
+ driver_license_front_image_url?: string;
1630
+ driver_license_front_image_key?: string;
1631
+ driver_license_front_image_name?: string;
1733
1632
  status: Status;
1734
1633
  added_date_time: string;
1735
1634
  modified_date_time: string;
1736
- device_id?: string;
1737
- MasterDevice?: MasterDevice;
1738
- device_sim_link_date?: string;
1739
- AssignRemoveSimHistory: AssignRemoveSimHistory[];
1740
- Dummy_MasterDevice: MasterDevice[];
1741
- sim_provider_id: string;
1742
- MasterMainSimProvider: MasterMainSimProvider;
1635
+ vehicle_id?: string;
1636
+ MasterVehicle?: MasterVehicle;
1637
+ assign_vehicle_date?: string;
1638
+ is_vehicle_assigned: YesNo;
1639
+ AssignRemoveDriverHistory?: AssignRemoveDriverHistory[];
1640
+ organisation_id: string;
1641
+ UserOrganisation: UserOrganisation;
1642
+ organisation_sub_company_id?: string;
1643
+ OrganisationSubCompany?: OrganisationSubCompany;
1644
+ organisation_branch_id?: string;
1645
+ OrganisationBranch?: OrganisationBranch;
1646
+ organisation_color_id?: string;
1647
+ OrganisationColor?: OrganisationColor;
1648
+ organisation_tag_id?: string;
1649
+ OrganisationTag?: OrganisationTag;
1650
+ Dummy_MasterVehicle?: MasterVehicle[];
1743
1651
  _count?: {
1744
- AssignRemoveSimHistory: number;
1745
- Dummy_MasterDevice: number;
1652
+ AssignRemoveDriverHistory: number;
1653
+ TripGeofenceToGeofence: number;
1654
+ GPSGeofenceTransaction: number;
1655
+ GPSFuelVehicleDailySummary: number;
1656
+ GPSFuelVehicleRefill: number;
1657
+ GPSFuelVehicleRemoval: number;
1658
+ GPSLockRelayLog: number;
1659
+ GPSLockDigitalDoorLog: number;
1660
+ GPSGeofenceTransactionSummary: number;
1661
+ Inspection: number;
1662
+ IncidentManagement: number;
1663
+ IssueManagement: number;
1664
+ FleetServiceSchedule: number;
1665
+ FleetServiceJobCard: number;
1666
+ FleetReminders: number;
1667
+ FleetFuelRefills: number;
1668
+ FleetFuelRemovals: number;
1669
+ FleetTyreDamageRepair: number;
1670
+ FleetTyreRotation: number;
1671
+ AlertDriverLink: number;
1746
1672
  };
1747
1673
  }
1748
- interface AssignRemoveSimHistory extends Record<string, unknown> {
1674
+ interface AssignRemoveDriverHistory extends Record<string, unknown> {
1749
1675
  history_id: string;
1750
- device_sim_link_date?: string;
1751
- device_sim_unlink_date?: string;
1676
+ assign_date?: string;
1677
+ remove_date?: string;
1752
1678
  status: Status;
1753
1679
  added_date_time: string;
1754
1680
  modified_date_time: string;
1755
- sim_id: string;
1756
- MasterSim: MasterSim;
1757
- device_id: string;
1758
- MasterDevice: MasterDevice;
1681
+ vehicle_id: string;
1682
+ Vehicle?: MasterVehicle;
1683
+ driver_id: string;
1684
+ MasterDriver?: MasterDriver;
1759
1685
  }
1760
- declare const MasterSimSchema: z.ZodObject<{
1761
- sim_provider_id: z.ZodEffects<z.ZodString, string, string>;
1762
- sim_number: z.ZodEffects<z.ZodString, string, string>;
1763
- sim_imei: z.ZodEffects<z.ZodString, string, string>;
1764
- sim_serial_number: z.ZodEffects<z.ZodString, string, string>;
1765
- sim_status: z.ZodType<SimStatus, z.ZodTypeDef, SimStatus>;
1766
- billing_status: z.ZodType<BillingStatus, z.ZodTypeDef, BillingStatus>;
1767
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
1768
- }, "strip", z.ZodTypeAny, {
1769
- status: Status;
1770
- sim_provider_id: string;
1771
- sim_number: string;
1772
- sim_imei: string;
1773
- sim_serial_number: string;
1774
- sim_status: SimStatus;
1775
- billing_status: BillingStatus;
1686
+ declare const MasterDriverSchema: z.ZodObject<{
1687
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
1688
+ organisation_sub_company_id: z.ZodEffects<z.ZodString, string, string>;
1689
+ organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
1690
+ organisation_color_id: z.ZodEffects<z.ZodString, string, string>;
1691
+ organisation_tag_id: z.ZodEffects<z.ZodString, string, string>;
1692
+ driver_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1693
+ driver_first_name: z.ZodEffects<z.ZodString, string, string>;
1694
+ driver_last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1695
+ driver_mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1696
+ driver_email: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1697
+ driver_license: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1698
+ driver_pan: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1699
+ driver_aadhaar: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1700
+ password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1701
+ can_login: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
1702
+ driver_type: z.ZodType<DriverType, z.ZodTypeDef, DriverType>;
1703
+ driver_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1704
+ driver_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1705
+ driver_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1706
+ driver_aadhaar_front_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1707
+ driver_aadhaar_front_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1708
+ driver_aadhaar_front_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1709
+ driver_aadhaar_back_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1710
+ driver_aadhaar_back_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1711
+ driver_aadhaar_back_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1712
+ driver_pan_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1713
+ driver_pan_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1714
+ driver_pan_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1715
+ driver_license_back_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1716
+ driver_license_back_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1717
+ driver_license_back_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1718
+ driver_license_front_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1719
+ driver_license_front_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1720
+ driver_license_front_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1721
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
1722
+ }, "strip", z.ZodTypeAny, {
1723
+ status: Status;
1724
+ organisation_id: string;
1725
+ organisation_sub_company_id: string;
1726
+ organisation_branch_id: string;
1727
+ organisation_color_id: string;
1728
+ organisation_tag_id: string;
1729
+ driver_code: string;
1730
+ driver_first_name: string;
1731
+ driver_last_name: string;
1732
+ driver_mobile: string;
1733
+ driver_email: string;
1734
+ driver_license: string;
1735
+ driver_pan: string;
1736
+ driver_aadhaar: string;
1737
+ password: string;
1738
+ can_login: YesNo;
1739
+ driver_type: DriverType;
1740
+ driver_image_url: string;
1741
+ driver_image_key: string;
1742
+ driver_image_name: string;
1743
+ driver_aadhaar_front_image_url: string;
1744
+ driver_aadhaar_front_image_key: string;
1745
+ driver_aadhaar_front_image_name: string;
1746
+ driver_aadhaar_back_image_url: string;
1747
+ driver_aadhaar_back_image_key: string;
1748
+ driver_aadhaar_back_image_name: string;
1749
+ driver_pan_image_url: string;
1750
+ driver_pan_image_key: string;
1751
+ driver_pan_image_name: string;
1752
+ driver_license_back_image_url: string;
1753
+ driver_license_back_image_key: string;
1754
+ driver_license_back_image_name: string;
1755
+ driver_license_front_image_url: string;
1756
+ driver_license_front_image_key: string;
1757
+ driver_license_front_image_name: string;
1776
1758
  }, {
1777
1759
  status: Status;
1778
- sim_provider_id: string;
1779
- sim_number: string;
1780
- sim_imei: string;
1781
- sim_serial_number: string;
1782
- sim_status: SimStatus;
1783
- billing_status: BillingStatus;
1760
+ organisation_id: string;
1761
+ organisation_sub_company_id: string;
1762
+ organisation_branch_id: string;
1763
+ organisation_color_id: string;
1764
+ organisation_tag_id: string;
1765
+ driver_first_name: string;
1766
+ can_login: YesNo;
1767
+ driver_type: DriverType;
1768
+ driver_code?: string | undefined;
1769
+ driver_last_name?: string | undefined;
1770
+ driver_mobile?: string | undefined;
1771
+ driver_email?: string | undefined;
1772
+ driver_license?: string | undefined;
1773
+ driver_pan?: string | undefined;
1774
+ driver_aadhaar?: string | undefined;
1775
+ password?: string | undefined;
1776
+ driver_image_url?: string | undefined;
1777
+ driver_image_key?: string | undefined;
1778
+ driver_image_name?: string | undefined;
1779
+ driver_aadhaar_front_image_url?: string | undefined;
1780
+ driver_aadhaar_front_image_key?: string | undefined;
1781
+ driver_aadhaar_front_image_name?: string | undefined;
1782
+ driver_aadhaar_back_image_url?: string | undefined;
1783
+ driver_aadhaar_back_image_key?: string | undefined;
1784
+ driver_aadhaar_back_image_name?: string | undefined;
1785
+ driver_pan_image_url?: string | undefined;
1786
+ driver_pan_image_key?: string | undefined;
1787
+ driver_pan_image_name?: string | undefined;
1788
+ driver_license_back_image_url?: string | undefined;
1789
+ driver_license_back_image_key?: string | undefined;
1790
+ driver_license_back_image_name?: string | undefined;
1791
+ driver_license_front_image_url?: string | undefined;
1792
+ driver_license_front_image_key?: string | undefined;
1793
+ driver_license_front_image_name?: string | undefined;
1784
1794
  }>;
1785
- type MasterSimDTO = z.infer<typeof MasterSimSchema>;
1786
- declare const MasterSimQuerySchema: z.ZodObject<{
1795
+ type MasterDriverDTO = z.infer<typeof MasterDriverSchema>;
1796
+ declare const DriverQuerySchema: z.ZodObject<{
1787
1797
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1788
1798
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1789
1799
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -1814,10 +1824,16 @@ declare const MasterSimQuerySchema: z.ZodObject<{
1814
1824
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
1815
1825
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1816
1826
  } & {
1817
- sim_provider_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1818
- sim_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1819
- sim_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof SimStatus>, "many">>>;
1820
- billing_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BillingStatus>, "many">>>;
1827
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1828
+ organisation_sub_company_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1829
+ organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1830
+ organisation_color_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1831
+ organisation_tag_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1832
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1833
+ driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
1834
+ can_login: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
1835
+ driver_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DriverType>, "many">>>;
1836
+ is_vehicle_assigned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
1821
1837
  }, "strip", z.ZodTypeAny, {
1822
1838
  status: Status[];
1823
1839
  search: string;
@@ -1840,10 +1856,16 @@ declare const MasterSimQuerySchema: z.ZodObject<{
1840
1856
  include_master_data: YesNo;
1841
1857
  date_format_id: string;
1842
1858
  time_zone_id: string;
1843
- sim_provider_ids: string[];
1844
- sim_status: SimStatus[];
1845
- billing_status: BillingStatus[];
1846
- sim_ids: string[];
1859
+ organisation_ids: string[];
1860
+ organisation_sub_company_ids: string[];
1861
+ organisation_branch_ids: string[];
1862
+ organisation_color_ids: string[];
1863
+ organisation_tag_ids: string[];
1864
+ can_login: YesNo[];
1865
+ driver_type: DriverType[];
1866
+ is_vehicle_assigned: YesNo[];
1867
+ vehicle_ids: string[];
1868
+ driver_ids: string[];
1847
1869
  }, {
1848
1870
  date_format_id: string;
1849
1871
  time_zone_id: string;
@@ -1866,112 +1888,69 @@ declare const MasterSimQuerySchema: z.ZodObject<{
1866
1888
  direction: OrderBy;
1867
1889
  }[] | undefined;
1868
1890
  include_master_data?: YesNo | undefined;
1869
- sim_provider_ids?: string[] | undefined;
1870
- sim_status?: SimStatus[] | undefined;
1871
- billing_status?: BillingStatus[] | undefined;
1872
- sim_ids?: string[] | undefined;
1891
+ organisation_ids?: string[] | undefined;
1892
+ organisation_sub_company_ids?: string[] | undefined;
1893
+ organisation_branch_ids?: string[] | undefined;
1894
+ organisation_color_ids?: string[] | undefined;
1895
+ organisation_tag_ids?: string[] | undefined;
1896
+ can_login?: YesNo[] | undefined;
1897
+ driver_type?: DriverType[] | undefined;
1898
+ is_vehicle_assigned?: YesNo[] | undefined;
1899
+ vehicle_ids?: string[] | undefined;
1900
+ driver_ids?: string[] | undefined;
1873
1901
  }>;
1874
- type MasterSimQueryDTO = z.infer<typeof MasterSimQuerySchema>;
1875
- declare const toMasterSimPayload: (sim: MasterSim) => MasterSimDTO;
1876
- declare const newMasterSimPayload: () => MasterSimDTO;
1877
- declare const findMasterSims: (data: MasterSimQueryDTO) => Promise<FBR<MasterSim[]>>;
1878
- declare const createMasterSim: (data: MasterSimDTO) => Promise<SBR>;
1879
- declare const updateMasterSim: (id: string, data: MasterSimDTO) => Promise<SBR>;
1880
- declare const deleteMasterSim: (id: string) => Promise<SBR>;
1902
+ type DriverQueryDTO = z.infer<typeof DriverQuerySchema>;
1903
+ declare const toDriverPayload: (driver?: MasterDriver) => MasterDriverDTO;
1904
+ declare const newDriverPayload: () => MasterDriverDTO;
1905
+ declare const findDrivers: (payload: DriverQueryDTO) => Promise<FBR<MasterDriver[]>>;
1906
+ declare const createDriver: (payload: MasterDriverDTO) => Promise<SBR>;
1907
+ declare const updateDriver: (id: string, payload: MasterDriverDTO) => Promise<SBR>;
1908
+ declare const deleteDriver: (id: string) => Promise<SBR>;
1909
+ declare const getPresignedUrlForDriver: (fileName: string) => Promise<SBR>;
1910
+ declare const getDriverCache: (organisationId: string) => Promise<FBR<MasterDriver[]>>;
1911
+ declare const getDriverSimpleCache: (organisationId: string) => Promise<FBR<MasterDriver[]>>;
1881
1912
 
1882
- interface MasterDevice extends Record<string, unknown> {
1883
- device_id: string;
1884
- serial_no: number;
1885
- device_identifier: string;
1886
- device_note_1: string;
1887
- device_note_2: string;
1913
+ interface MasterDeviceType extends Record<string, unknown> {
1914
+ device_type_id: string;
1915
+ device_type_name: string;
1916
+ device_type_code?: string;
1917
+ description?: string;
1888
1918
  status: Status;
1889
1919
  added_date_time: string;
1890
1920
  modified_date_time: string;
1891
- is_sim_linked: YesNo;
1892
- sim_id?: string;
1893
- MasterSim?: MasterSim;
1894
- device_sim_link_date?: string;
1895
- AssignRemoveSimHistory: AssignRemoveSimHistory[];
1896
- is_device_used: DeviceStatus;
1897
- vehicle_id?: string;
1898
- MasterVehicle?: MasterVehicle;
1899
- assign_device_date?: string;
1900
- AssignRemoveDeviceHistory: AssignRemoveDeviceHistory[];
1901
- device_gps_source: GPSSource;
1902
- db_instance: string;
1903
- db_group: string;
1904
- device_image_url?: string;
1905
- device_image_key?: string;
1906
- vehicle_image_url?: string;
1907
- vehicle_image_key?: string;
1908
- sim_image_url?: string;
1909
- sim_image_key?: string;
1910
- device_manufacturer_id?: string;
1921
+ device_manufacturer_id: string;
1911
1922
  MasterDeviceManufacturer?: MasterDeviceManufacturer;
1912
- device_model_id?: string;
1923
+ device_model_id: string;
1913
1924
  MasterDeviceModel?: MasterDeviceModel;
1914
- device_type_id?: string;
1915
- MasterDeviceType?: MasterDeviceType;
1916
- organisation_id?: string;
1917
- UserOrganisation?: UserOrganisation;
1918
- country_id?: string;
1919
- MasterMainCountry?: MasterMainCountry;
1920
- time_zone_id?: string;
1921
- MasterMainTimeZone?: MasterMainTimeZone;
1922
- Dummy_MasterVehicle: MasterVehicle[];
1923
- Dummy_MasterSim: MasterSim[];
1925
+ MasterDevice: MasterDevice[];
1924
1926
  _count?: {
1925
- AssignRemoveSimHistory?: number;
1926
- AssignRemoveDeviceHistory?: number;
1927
- GPSFuelVehicleRemoval?: number;
1928
- GPSFuelVehicleDailySummary?: number;
1929
- GPSLockDigitalDoorLog?: number;
1930
- GPSLockRelayLog?: number;
1931
- GPSFuelVehicleRefill?: number;
1932
- Dummy_MasterVehicle?: number;
1933
- Dummy_MasterSim?: number;
1927
+ MasterDevice: number;
1934
1928
  };
1935
1929
  }
1936
- interface AssignRemoveDeviceHistory extends Record<string, unknown> {
1937
- history_id: string;
1938
- assign_date?: string;
1939
- remove_date?: string;
1940
- status: Status;
1941
- added_date_time: string;
1942
- modified_date_time: string;
1943
- vehicle_id: string;
1944
- Vehicle?: MasterVehicle;
1945
- device_id: string;
1946
- MasterDevice?: MasterDevice;
1947
- }
1948
- declare const MasterDeviceSchema: z.ZodObject<{
1930
+ declare const MasterDeviceTypeSchema: z.ZodObject<{
1949
1931
  device_manufacturer_id: z.ZodEffects<z.ZodString, string, string>;
1950
1932
  device_model_id: z.ZodEffects<z.ZodString, string, string>;
1951
- device_gps_source: z.ZodType<GPSSource, z.ZodTypeDef, GPSSource>;
1952
- device_identifier: z.ZodEffects<z.ZodString, string, string>;
1953
- device_note_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1954
- device_note_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1933
+ device_type_name: z.ZodEffects<z.ZodString, string, string>;
1934
+ device_type_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1935
+ description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1955
1936
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1956
1937
  }, "strip", z.ZodTypeAny, {
1957
1938
  status: Status;
1939
+ description: string;
1940
+ device_type_name: string;
1941
+ device_type_code: string;
1958
1942
  device_manufacturer_id: string;
1959
1943
  device_model_id: string;
1960
- device_identifier: string;
1961
- device_note_1: string;
1962
- device_note_2: string;
1963
- device_gps_source: GPSSource;
1964
1944
  }, {
1965
1945
  status: Status;
1946
+ device_type_name: string;
1966
1947
  device_manufacturer_id: string;
1967
1948
  device_model_id: string;
1968
- device_identifier: string;
1969
- device_gps_source: GPSSource;
1970
- device_note_1?: string | undefined;
1971
- device_note_2?: string | undefined;
1949
+ description?: string | undefined;
1950
+ device_type_code?: string | undefined;
1972
1951
  }>;
1973
- type MasterDeviceDTO = z.infer<typeof MasterDeviceSchema>;
1974
- declare const MasterDeviceQuerySchema: z.ZodObject<{
1952
+ type MasterDeviceTypeDTO = z.infer<typeof MasterDeviceTypeSchema>;
1953
+ declare const MasterDeviceTypeQuerySchema: z.ZodObject<{
1975
1954
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1976
1955
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
1977
1956
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -2002,17 +1981,9 @@ declare const MasterDeviceQuerySchema: z.ZodObject<{
2002
1981
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
2003
1982
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
2004
1983
  } & {
2005
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2006
- country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2007
- time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2008
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2009
1984
  device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2010
1985
  device_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2011
1986
  device_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2012
- device_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2013
- is_device_used: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DeviceStatus>, "many">>>;
2014
- is_sim_linked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
2015
- device_gps_source: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GPSSource>, "many">>>;
2016
1987
  }, "strip", z.ZodTypeAny, {
2017
1988
  status: Status[];
2018
1989
  search: string;
@@ -2035,17 +2006,9 @@ declare const MasterDeviceQuerySchema: z.ZodObject<{
2035
2006
  include_master_data: YesNo;
2036
2007
  date_format_id: string;
2037
2008
  time_zone_id: string;
2038
- organisation_ids: string[];
2039
- country_ids: string[];
2040
- time_zone_ids: string[];
2041
- vehicle_ids: string[];
2042
2009
  device_manufacturer_ids: string[];
2043
2010
  device_model_ids: string[];
2044
2011
  device_type_ids: string[];
2045
- is_sim_linked: YesNo[];
2046
- is_device_used: DeviceStatus[];
2047
- device_gps_source: GPSSource[];
2048
- device_ids: string[];
2049
2012
  }, {
2050
2013
  date_format_id: string;
2051
2014
  time_zone_id: string;
@@ -2068,79 +2031,59 @@ declare const MasterDeviceQuerySchema: z.ZodObject<{
2068
2031
  direction: OrderBy;
2069
2032
  }[] | undefined;
2070
2033
  include_master_data?: YesNo | undefined;
2071
- organisation_ids?: string[] | undefined;
2072
- country_ids?: string[] | undefined;
2073
- time_zone_ids?: string[] | undefined;
2074
- vehicle_ids?: string[] | undefined;
2075
2034
  device_manufacturer_ids?: string[] | undefined;
2076
2035
  device_model_ids?: string[] | undefined;
2077
2036
  device_type_ids?: string[] | undefined;
2078
- is_sim_linked?: YesNo[] | undefined;
2079
- is_device_used?: DeviceStatus[] | undefined;
2080
- device_gps_source?: GPSSource[] | undefined;
2081
- device_ids?: string[] | undefined;
2082
- }>;
2083
- type MasterDeviceQueryDTO = z.infer<typeof MasterDeviceQuerySchema>;
2084
- declare const DeviceSimLinkSchema: z.ZodObject<{
2085
- device_id: z.ZodEffects<z.ZodString, string, string>;
2086
- sim_id: z.ZodEffects<z.ZodString, string, string>;
2087
- }, "strip", z.ZodTypeAny, {
2088
- sim_id: string;
2089
- device_id: string;
2090
- }, {
2091
- sim_id: string;
2092
- device_id: string;
2093
2037
  }>;
2094
- type DeviceSimLinkDTO = z.infer<typeof DeviceSimLinkSchema>;
2095
- declare const toMasterDevicePayload: (device: MasterDevice) => MasterDeviceDTO;
2096
- declare const newMasterDevicePayload: () => MasterDeviceDTO;
2097
- declare const findMasterDevices: (data: MasterDeviceQueryDTO) => Promise<FBR<MasterDevice[]>>;
2098
- declare const createMasterDevice: (data: MasterDeviceDTO) => Promise<SBR>;
2099
- declare const updateMasterDevice: (id: string, data: MasterDeviceDTO) => Promise<SBR>;
2100
- declare const deleteMasterDevice: (id: string) => Promise<SBR>;
2101
- declare const device_sim_link: (payload: DeviceSimLinkDTO) => Promise<SBR>;
2102
- declare const device_sim_unlink: (payload: DeviceSimLinkDTO) => Promise<SBR>;
2103
- declare const get_device_sim_link_history_by_sim: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveSimHistory[]>>;
2104
- declare const get_device_sim_link_history_by_device: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveSimHistory[]>>;
2038
+ type MasterDeviceTypeQueryDTO = z.infer<typeof MasterDeviceTypeQuerySchema>;
2039
+ declare const toMasterDeviceTypePayload: (row: MasterDeviceType) => MasterDeviceTypeDTO;
2040
+ declare const newMasterDeviceTypePayload: () => MasterDeviceTypeDTO;
2041
+ declare const findMasterDeviceTypes: (data: MasterDeviceTypeQueryDTO) => Promise<FBR<MasterDeviceType[]>>;
2042
+ declare const createMasterDeviceType: (data: MasterDeviceTypeDTO) => Promise<SBR>;
2043
+ declare const updateMasterDeviceType: (id: string, data: MasterDeviceTypeDTO) => Promise<SBR>;
2044
+ declare const deleteMasterDeviceType: (id: string) => Promise<SBR>;
2045
+ declare const getMasterDeviceTypeCache: (device_model_id?: string) => Promise<FBR<MasterDeviceType[]>>;
2046
+ declare const getMasterDeviceTypeCacheCount: (device_model_id?: string) => Promise<FBR<MasterDeviceType>>;
2047
+ declare const getMasterDeviceTypeCacheChild: (device_model_id?: string) => Promise<FBR<MasterDeviceType[]>>;
2105
2048
 
2106
- interface OrganisationSubCompany extends Record<string, unknown> {
2107
- organisation_sub_company_id: string;
2108
- sub_company_name: string;
2109
- sub_company_GSTIN: string;
2049
+ interface MasterDeviceModel extends Record<string, unknown> {
2050
+ device_model_id: string;
2051
+ device_model_name: string;
2052
+ device_model_code?: string;
2110
2053
  description?: string;
2111
- logo_key?: string;
2112
- logo_url?: string;
2113
2054
  status: Status;
2114
2055
  added_date_time: string;
2115
2056
  modified_date_time: string;
2116
- organisation_id: string;
2117
- UserOrganisation: UserOrganisation;
2118
- MasterVehicle: MasterVehicle[];
2057
+ device_manufacturer_id: string;
2058
+ MasterDeviceManufacturer?: MasterDeviceManufacturer;
2059
+ MasterDeviceType: MasterDeviceType[];
2060
+ MasterDevice: MasterDevice[];
2119
2061
  _count?: {
2120
- MasterVehicle: number;
2062
+ MasterDeviceType: number;
2063
+ MasterDevice: number;
2121
2064
  };
2122
2065
  }
2123
- declare const OrganisationSubCompanySchema: z.ZodObject<{
2124
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
2125
- sub_company_name: z.ZodEffects<z.ZodString, string, string>;
2126
- sub_company_GSTIN: z.ZodEffects<z.ZodString, string, string>;
2066
+ declare const MasterDeviceModelSchema: z.ZodObject<{
2067
+ device_manufacturer_id: z.ZodEffects<z.ZodString, string, string>;
2068
+ device_model_name: z.ZodEffects<z.ZodString, string, string>;
2069
+ device_model_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2127
2070
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2128
2071
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
2129
2072
  }, "strip", z.ZodTypeAny, {
2130
2073
  status: Status;
2131
- organisation_id: string;
2132
2074
  description: string;
2133
- sub_company_name: string;
2134
- sub_company_GSTIN: string;
2075
+ device_manufacturer_id: string;
2076
+ device_model_name: string;
2077
+ device_model_code: string;
2135
2078
  }, {
2136
2079
  status: Status;
2137
- organisation_id: string;
2138
- sub_company_name: string;
2139
- sub_company_GSTIN: string;
2080
+ device_manufacturer_id: string;
2081
+ device_model_name: string;
2140
2082
  description?: string | undefined;
2083
+ device_model_code?: string | undefined;
2141
2084
  }>;
2142
- type OrganisationSubCompanyDTO = z.infer<typeof OrganisationSubCompanySchema>;
2143
- declare const OrganisationSubCompanyQuerySchema: z.ZodObject<{
2085
+ type MasterDeviceModelDTO = z.infer<typeof MasterDeviceModelSchema>;
2086
+ declare const MasterDeviceModelQuerySchema: z.ZodObject<{
2144
2087
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2145
2088
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
2146
2089
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -2171,8 +2114,8 @@ declare const OrganisationSubCompanyQuerySchema: z.ZodObject<{
2171
2114
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
2172
2115
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
2173
2116
  } & {
2174
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2175
- organisation_sub_company_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2117
+ device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2118
+ device_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2176
2119
  }, "strip", z.ZodTypeAny, {
2177
2120
  status: Status[];
2178
2121
  search: string;
@@ -2195,8 +2138,8 @@ declare const OrganisationSubCompanyQuerySchema: z.ZodObject<{
2195
2138
  include_master_data: YesNo;
2196
2139
  date_format_id: string;
2197
2140
  time_zone_id: string;
2198
- organisation_ids: string[];
2199
- organisation_sub_company_ids: string[];
2141
+ device_manufacturer_ids: string[];
2142
+ device_model_ids: string[];
2200
2143
  }, {
2201
2144
  date_format_id: string;
2202
2145
  time_zone_id: string;
@@ -2219,60 +2162,55 @@ declare const OrganisationSubCompanyQuerySchema: z.ZodObject<{
2219
2162
  direction: OrderBy;
2220
2163
  }[] | undefined;
2221
2164
  include_master_data?: YesNo | undefined;
2222
- organisation_ids?: string[] | undefined;
2223
- organisation_sub_company_ids?: string[] | undefined;
2165
+ device_manufacturer_ids?: string[] | undefined;
2166
+ device_model_ids?: string[] | undefined;
2224
2167
  }>;
2225
- type OrganisationSubCompanyQueryDTO = z.infer<typeof OrganisationSubCompanyQuerySchema>;
2226
- declare const toOrganisationSubCompanyPayload: (row: OrganisationSubCompany) => OrganisationSubCompanyDTO;
2227
- declare const newOrganisationSubCompanyPayload: () => OrganisationSubCompanyDTO;
2228
- declare const findOrganisationSubCompanyies: (data: OrganisationSubCompanyQueryDTO) => Promise<FBR<OrganisationSubCompany[]>>;
2229
- declare const createOrganisationSubCompany: (data: OrganisationSubCompanyDTO) => Promise<SBR>;
2230
- declare const updateOrganisationSubCompany: (id: string, data: OrganisationSubCompanyDTO) => Promise<SBR>;
2231
- declare const deleteOrganisationSubCompany: (id: string) => Promise<SBR>;
2232
- declare const getOrganisationSubCompanyCache: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
2233
- declare const getOrganisationSubCompanyCacheCount: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
2234
- declare const getOrganisationSubCompanyCacheChild: (organisation_id: string) => Promise<FBR<OrganisationSubCompany[]>>;
2168
+ type MasterDeviceModelQueryDTO = z.infer<typeof MasterDeviceModelQuerySchema>;
2169
+ declare const toMasterDeviceModelPayload: (row: MasterDeviceModel) => MasterDeviceModelDTO;
2170
+ declare const newMasterDeviceModelPayload: () => MasterDeviceModelDTO;
2171
+ declare const findMasterDeviceModels: (data: MasterDeviceModelQueryDTO) => Promise<FBR<MasterDeviceModel[]>>;
2172
+ declare const createMasterDeviceModel: (data: MasterDeviceModelDTO) => Promise<SBR>;
2173
+ declare const updateMasterDeviceModel: (id: string, data: MasterDeviceModelDTO) => Promise<SBR>;
2174
+ declare const deleteMasterDeviceModel: (id: string) => Promise<SBR>;
2175
+ declare const getMasterDeviceModelCache: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel[]>>;
2176
+ declare const getMasterDeviceModelCacheCount: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel>>;
2177
+ declare const getMasterDeviceModelCacheChild: (device_manufacturer_id?: string) => Promise<FBR<MasterDeviceModel[]>>;
2235
2178
 
2236
- interface OrganisationBranch extends Record<string, unknown> {
2237
- organisation_branch_id: string;
2238
- branch_name: string;
2239
- branch_city: string;
2240
- branch_address: string;
2179
+ interface MasterDeviceManufacturer extends Record<string, unknown> {
2180
+ device_manufacturer_id: string;
2181
+ device_manufacturer_name: string;
2182
+ device_manufacturer_code?: string;
2241
2183
  description?: string;
2242
2184
  status: Status;
2243
2185
  added_date_time: string;
2244
2186
  modified_date_time: string;
2245
- organisation_id: string;
2246
- UserOrganisation: UserOrganisation;
2247
- MasterVehicle: MasterVehicle[];
2187
+ MasterDeviceModel: MasterDeviceModel[];
2188
+ MasterDeviceType: MasterDeviceType[];
2189
+ MasterDevice: MasterDevice[];
2248
2190
  _count?: {
2249
- MasterVehicle: number;
2191
+ MasterDeviceModel: number;
2192
+ MasterDeviceType: number;
2193
+ MasterDevice: number;
2250
2194
  };
2251
2195
  }
2252
- declare const OrganisationBranchSchema: z.ZodObject<{
2253
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
2254
- branch_name: z.ZodEffects<z.ZodString, string, string>;
2255
- branch_city: z.ZodEffects<z.ZodString, string, string>;
2256
- branch_address: z.ZodEffects<z.ZodString, string, string>;
2196
+ declare const MasterDeviceManufacturerSchema: z.ZodObject<{
2197
+ device_manufacturer_name: z.ZodEffects<z.ZodString, string, string>;
2198
+ device_manufacturer_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2257
2199
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2258
2200
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
2259
2201
  }, "strip", z.ZodTypeAny, {
2260
2202
  status: Status;
2261
- organisation_id: string;
2262
2203
  description: string;
2263
- branch_name: string;
2264
- branch_city: string;
2265
- branch_address: string;
2204
+ device_manufacturer_name: string;
2205
+ device_manufacturer_code: string;
2266
2206
  }, {
2267
2207
  status: Status;
2268
- organisation_id: string;
2269
- branch_name: string;
2270
- branch_city: string;
2271
- branch_address: string;
2208
+ device_manufacturer_name: string;
2272
2209
  description?: string | undefined;
2210
+ device_manufacturer_code?: string | undefined;
2273
2211
  }>;
2274
- type OrganisationBranchDTO = z.infer<typeof OrganisationBranchSchema>;
2275
- declare const OrganisationBranchQuerySchema: z.ZodObject<{
2212
+ type MasterDeviceManufacturerDTO = z.infer<typeof MasterDeviceManufacturerSchema>;
2213
+ declare const MasterDeviceManufacturerQuerySchema: z.ZodObject<{
2276
2214
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2277
2215
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
2278
2216
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -2303,8 +2241,7 @@ declare const OrganisationBranchQuerySchema: z.ZodObject<{
2303
2241
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
2304
2242
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
2305
2243
  } & {
2306
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2307
- organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2244
+ device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2308
2245
  }, "strip", z.ZodTypeAny, {
2309
2246
  status: Status[];
2310
2247
  search: string;
@@ -2327,8 +2264,7 @@ declare const OrganisationBranchQuerySchema: z.ZodObject<{
2327
2264
  include_master_data: YesNo;
2328
2265
  date_format_id: string;
2329
2266
  time_zone_id: string;
2330
- organisation_ids: string[];
2331
- organisation_branch_ids: string[];
2267
+ device_manufacturer_ids: string[];
2332
2268
  }, {
2333
2269
  date_format_id: string;
2334
2270
  time_zone_id: string;
@@ -2351,56 +2287,80 @@ declare const OrganisationBranchQuerySchema: z.ZodObject<{
2351
2287
  direction: OrderBy;
2352
2288
  }[] | undefined;
2353
2289
  include_master_data?: YesNo | undefined;
2354
- organisation_ids?: string[] | undefined;
2355
- organisation_branch_ids?: string[] | undefined;
2290
+ device_manufacturer_ids?: string[] | undefined;
2356
2291
  }>;
2357
- type OrganisationBranchQueryDTO = z.infer<typeof OrganisationBranchQuerySchema>;
2358
- declare const toOrganisationBranchPayload: (row: OrganisationBranch) => OrganisationBranchDTO;
2359
- declare const newOrganisationBranchPayload: () => OrganisationBranchDTO;
2360
- declare const findOrganisationBranchs: (data: OrganisationBranchQueryDTO) => Promise<FBR<OrganisationBranch[]>>;
2361
- declare const createOrganisationBranch: (data: OrganisationBranchDTO) => Promise<SBR>;
2362
- declare const updateOrganisationBranch: (id: string, data: OrganisationBranchDTO) => Promise<SBR>;
2363
- declare const deleteOrganisationBranch: (id: string) => Promise<SBR>;
2364
- declare const getOrganisationBranchCache: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
2365
- declare const getOrganisationBranchCacheCount: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
2366
- declare const getOrganisationBranchCacheChild: (organisation_id: string) => Promise<FBR<OrganisationBranch[]>>;
2292
+ type MasterDeviceManufacturerQueryDTO = z.infer<typeof MasterDeviceManufacturerQuerySchema>;
2293
+ declare const toMasterDeviceManufacturerPayload: (row: MasterDeviceManufacturer) => MasterDeviceManufacturerDTO;
2294
+ declare const newMasterDeviceManufacturerPayload: () => MasterDeviceManufacturerDTO;
2295
+ declare const findMasterDeviceManufacturers: (data: MasterDeviceManufacturerQueryDTO) => Promise<FBR<MasterDeviceManufacturer[]>>;
2296
+ declare const createMasterDeviceManufacturer: (data: MasterDeviceManufacturerDTO) => Promise<SBR>;
2297
+ declare const updateMasterDeviceManufacturer: (id: string, data: MasterDeviceManufacturerDTO) => Promise<SBR>;
2298
+ declare const deleteMasterDeviceManufacturer: (id: string) => Promise<SBR>;
2299
+ declare const getMasterDeviceManufacturerCache: () => Promise<FBR<MasterDeviceManufacturer[]>>;
2300
+ declare const getMasterDeviceManufacturerCacheCount: () => Promise<FBR<MasterDeviceManufacturer>>;
2301
+ declare const getMasterDeviceManufacturerCacheChild: () => Promise<FBR<MasterDeviceManufacturer[]>>;
2367
2302
 
2368
- interface OrganisationColor extends Record<string, unknown> {
2369
- organisation_color_id: string;
2370
- color_name: string;
2371
- color_code: string;
2372
- description?: string;
2303
+ interface MasterSim extends Record<string, unknown> {
2304
+ sim_id: string;
2305
+ sim_number: string;
2306
+ sim_imei: string;
2307
+ sim_serial_number: string;
2308
+ sim_status: SimStatus;
2309
+ billing_status: BillingStatus;
2373
2310
  status: Status;
2374
2311
  added_date_time: string;
2375
2312
  modified_date_time: string;
2376
- organisation_id?: string;
2377
- UserOrganisation?: UserOrganisation;
2378
- MasterVehicle: MasterVehicle[];
2313
+ device_id?: string;
2314
+ MasterDevice?: MasterDevice;
2315
+ device_sim_link_date?: string;
2316
+ AssignRemoveSimHistory: AssignRemoveSimHistory[];
2317
+ Dummy_MasterDevice: MasterDevice[];
2318
+ sim_provider_id: string;
2319
+ MasterMainSimProvider: MasterMainSimProvider;
2379
2320
  _count?: {
2380
- MasterVehicle: number;
2321
+ AssignRemoveSimHistory: number;
2322
+ Dummy_MasterDevice: number;
2381
2323
  };
2382
2324
  }
2383
- declare const OrganisationColorSchema: z.ZodObject<{
2384
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
2385
- color_name: z.ZodEffects<z.ZodString, string, string>;
2386
- color_code: z.ZodEffects<z.ZodString, string, string>;
2387
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2325
+ interface AssignRemoveSimHistory extends Record<string, unknown> {
2326
+ history_id: string;
2327
+ device_sim_link_date?: string;
2328
+ device_sim_unlink_date?: string;
2329
+ status: Status;
2330
+ added_date_time: string;
2331
+ modified_date_time: string;
2332
+ sim_id: string;
2333
+ MasterSim: MasterSim;
2334
+ device_id: string;
2335
+ MasterDevice: MasterDevice;
2336
+ }
2337
+ declare const MasterSimSchema: z.ZodObject<{
2338
+ sim_provider_id: z.ZodEffects<z.ZodString, string, string>;
2339
+ sim_number: z.ZodEffects<z.ZodString, string, string>;
2340
+ sim_imei: z.ZodEffects<z.ZodString, string, string>;
2341
+ sim_serial_number: z.ZodEffects<z.ZodString, string, string>;
2342
+ sim_status: z.ZodType<SimStatus, z.ZodTypeDef, SimStatus>;
2343
+ billing_status: z.ZodType<BillingStatus, z.ZodTypeDef, BillingStatus>;
2388
2344
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
2389
2345
  }, "strip", z.ZodTypeAny, {
2390
2346
  status: Status;
2391
- organisation_id: string;
2392
- description: string;
2393
- color_name: string;
2394
- color_code: string;
2395
- }, {
2396
- status: Status;
2397
- organisation_id: string;
2398
- color_name: string;
2399
- color_code: string;
2400
- description?: string | undefined;
2347
+ sim_provider_id: string;
2348
+ sim_number: string;
2349
+ sim_imei: string;
2350
+ sim_serial_number: string;
2351
+ sim_status: SimStatus;
2352
+ billing_status: BillingStatus;
2353
+ }, {
2354
+ status: Status;
2355
+ sim_provider_id: string;
2356
+ sim_number: string;
2357
+ sim_imei: string;
2358
+ sim_serial_number: string;
2359
+ sim_status: SimStatus;
2360
+ billing_status: BillingStatus;
2401
2361
  }>;
2402
- type OrganisationColorDTO = z.infer<typeof OrganisationColorSchema>;
2403
- declare const OrganisationColorQuerySchema: z.ZodObject<{
2362
+ type MasterSimDTO = z.infer<typeof MasterSimSchema>;
2363
+ declare const MasterSimQuerySchema: z.ZodObject<{
2404
2364
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2405
2365
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
2406
2366
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -2431,8 +2391,10 @@ declare const OrganisationColorQuerySchema: z.ZodObject<{
2431
2391
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
2432
2392
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
2433
2393
  } & {
2434
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2435
- organisation_color_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2394
+ sim_provider_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2395
+ sim_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2396
+ sim_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof SimStatus>, "many">>>;
2397
+ billing_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BillingStatus>, "many">>>;
2436
2398
  }, "strip", z.ZodTypeAny, {
2437
2399
  status: Status[];
2438
2400
  search: string;
@@ -2455,8 +2417,10 @@ declare const OrganisationColorQuerySchema: z.ZodObject<{
2455
2417
  include_master_data: YesNo;
2456
2418
  date_format_id: string;
2457
2419
  time_zone_id: string;
2458
- organisation_ids: string[];
2459
- organisation_color_ids: string[];
2420
+ sim_provider_ids: string[];
2421
+ sim_status: SimStatus[];
2422
+ billing_status: BillingStatus[];
2423
+ sim_ids: string[];
2460
2424
  }, {
2461
2425
  date_format_id: string;
2462
2426
  time_zone_id: string;
@@ -2479,52 +2443,112 @@ declare const OrganisationColorQuerySchema: z.ZodObject<{
2479
2443
  direction: OrderBy;
2480
2444
  }[] | undefined;
2481
2445
  include_master_data?: YesNo | undefined;
2482
- organisation_ids?: string[] | undefined;
2483
- organisation_color_ids?: string[] | undefined;
2446
+ sim_provider_ids?: string[] | undefined;
2447
+ sim_status?: SimStatus[] | undefined;
2448
+ billing_status?: BillingStatus[] | undefined;
2449
+ sim_ids?: string[] | undefined;
2484
2450
  }>;
2485
- type OrganisationColorQueryDTO = z.infer<typeof OrganisationColorQuerySchema>;
2486
- declare const toOrganisationColorPayload: (row: OrganisationColor) => OrganisationColorDTO;
2487
- declare const newOrganisationColorPayload: () => OrganisationColorDTO;
2488
- declare const findOrganisationColors: (data: OrganisationColorQueryDTO) => Promise<FBR<OrganisationColor[]>>;
2489
- declare const createOrganisationColor: (data: OrganisationColorDTO) => Promise<SBR>;
2490
- declare const updateOrganisationColor: (id: string, data: OrganisationColorDTO) => Promise<SBR>;
2491
- declare const deleteOrganisationColor: (id: string) => Promise<SBR>;
2492
- declare const getOrganisationColorCache: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
2493
- declare const getOrganisationColorCacheCount: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
2494
- declare const getOrganisationColorCacheChild: (organisation_id: string) => Promise<FBR<OrganisationColor[]>>;
2451
+ type MasterSimQueryDTO = z.infer<typeof MasterSimQuerySchema>;
2452
+ declare const toMasterSimPayload: (sim: MasterSim) => MasterSimDTO;
2453
+ declare const newMasterSimPayload: () => MasterSimDTO;
2454
+ declare const findMasterSims: (data: MasterSimQueryDTO) => Promise<FBR<MasterSim[]>>;
2455
+ declare const createMasterSim: (data: MasterSimDTO) => Promise<SBR>;
2456
+ declare const updateMasterSim: (id: string, data: MasterSimDTO) => Promise<SBR>;
2457
+ declare const deleteMasterSim: (id: string) => Promise<SBR>;
2495
2458
 
2496
- interface OrganisationTag extends Record<string, unknown> {
2497
- organisation_tag_id: string;
2498
- tag_name: string;
2499
- description?: string;
2459
+ interface MasterDevice extends Record<string, unknown> {
2460
+ device_id: string;
2461
+ serial_no: number;
2462
+ device_identifier: string;
2463
+ device_note_1: string;
2464
+ device_note_2: string;
2500
2465
  status: Status;
2501
2466
  added_date_time: string;
2502
2467
  modified_date_time: string;
2503
- organisation_id: string;
2504
- UserOrganisation: UserOrganisation;
2505
- MasterVehicle: MasterVehicle[];
2468
+ is_sim_linked: YesNo;
2469
+ sim_id?: string;
2470
+ MasterSim?: MasterSim;
2471
+ device_sim_link_date?: string;
2472
+ AssignRemoveSimHistory: AssignRemoveSimHistory[];
2473
+ is_device_used: DeviceStatus;
2474
+ vehicle_id?: string;
2475
+ MasterVehicle?: MasterVehicle;
2476
+ assign_device_date?: string;
2477
+ AssignRemoveDeviceHistory: AssignRemoveDeviceHistory[];
2478
+ device_gps_source: GPSSource;
2479
+ db_instance: string;
2480
+ db_group: string;
2481
+ device_image_url?: string;
2482
+ device_image_key?: string;
2483
+ vehicle_image_url?: string;
2484
+ vehicle_image_key?: string;
2485
+ sim_image_url?: string;
2486
+ sim_image_key?: string;
2487
+ device_manufacturer_id?: string;
2488
+ MasterDeviceManufacturer?: MasterDeviceManufacturer;
2489
+ device_model_id?: string;
2490
+ MasterDeviceModel?: MasterDeviceModel;
2491
+ device_type_id?: string;
2492
+ MasterDeviceType?: MasterDeviceType;
2493
+ organisation_id?: string;
2494
+ UserOrganisation?: UserOrganisation;
2495
+ country_id?: string;
2496
+ MasterMainCountry?: MasterMainCountry;
2497
+ time_zone_id?: string;
2498
+ MasterMainTimeZone?: MasterMainTimeZone;
2499
+ Dummy_MasterVehicle: MasterVehicle[];
2500
+ Dummy_MasterSim: MasterSim[];
2506
2501
  _count?: {
2507
- MasterVehicle: number;
2502
+ AssignRemoveSimHistory?: number;
2503
+ AssignRemoveDeviceHistory?: number;
2504
+ GPSFuelVehicleRemoval?: number;
2505
+ GPSFuelVehicleDailySummary?: number;
2506
+ GPSLockDigitalDoorLog?: number;
2507
+ GPSLockRelayLog?: number;
2508
+ GPSFuelVehicleRefill?: number;
2509
+ Dummy_MasterVehicle?: number;
2510
+ Dummy_MasterSim?: number;
2508
2511
  };
2509
2512
  }
2510
- declare const OrganisationTagSchema: z.ZodObject<{
2511
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
2512
- tag_name: z.ZodEffects<z.ZodString, string, string>;
2513
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2513
+ interface AssignRemoveDeviceHistory extends Record<string, unknown> {
2514
+ history_id: string;
2515
+ assign_date?: string;
2516
+ remove_date?: string;
2517
+ status: Status;
2518
+ added_date_time: string;
2519
+ modified_date_time: string;
2520
+ vehicle_id: string;
2521
+ Vehicle?: MasterVehicle;
2522
+ device_id: string;
2523
+ MasterDevice?: MasterDevice;
2524
+ }
2525
+ declare const MasterDeviceSchema: z.ZodObject<{
2526
+ device_manufacturer_id: z.ZodEffects<z.ZodString, string, string>;
2527
+ device_model_id: z.ZodEffects<z.ZodString, string, string>;
2528
+ device_gps_source: z.ZodType<GPSSource, z.ZodTypeDef, GPSSource>;
2529
+ device_identifier: z.ZodEffects<z.ZodString, string, string>;
2530
+ device_note_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2531
+ device_note_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2514
2532
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
2515
2533
  }, "strip", z.ZodTypeAny, {
2516
2534
  status: Status;
2517
- organisation_id: string;
2518
- description: string;
2519
- tag_name: string;
2535
+ device_manufacturer_id: string;
2536
+ device_model_id: string;
2537
+ device_identifier: string;
2538
+ device_note_1: string;
2539
+ device_note_2: string;
2540
+ device_gps_source: GPSSource;
2520
2541
  }, {
2521
2542
  status: Status;
2522
- organisation_id: string;
2523
- tag_name: string;
2524
- description?: string | undefined;
2543
+ device_manufacturer_id: string;
2544
+ device_model_id: string;
2545
+ device_identifier: string;
2546
+ device_gps_source: GPSSource;
2547
+ device_note_1?: string | undefined;
2548
+ device_note_2?: string | undefined;
2525
2549
  }>;
2526
- type OrganisationTagDTO = z.infer<typeof OrganisationTagSchema>;
2527
- declare const OrganisationTagQuerySchema: z.ZodObject<{
2550
+ type MasterDeviceDTO = z.infer<typeof MasterDeviceSchema>;
2551
+ declare const MasterDeviceQuerySchema: z.ZodObject<{
2528
2552
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
2529
2553
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
2530
2554
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -2556,7 +2580,16 @@ declare const OrganisationTagQuerySchema: z.ZodObject<{
2556
2580
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
2557
2581
  } & {
2558
2582
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2559
- organisation_tag_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2583
+ country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2584
+ time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2585
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2586
+ device_manufacturer_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2587
+ device_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2588
+ device_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2589
+ device_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
2590
+ is_device_used: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DeviceStatus>, "many">>>;
2591
+ is_sim_linked: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
2592
+ device_gps_source: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GPSSource>, "many">>>;
2560
2593
  }, "strip", z.ZodTypeAny, {
2561
2594
  status: Status[];
2562
2595
  search: string;
@@ -2580,7 +2613,16 @@ declare const OrganisationTagQuerySchema: z.ZodObject<{
2580
2613
  date_format_id: string;
2581
2614
  time_zone_id: string;
2582
2615
  organisation_ids: string[];
2583
- organisation_tag_ids: string[];
2616
+ country_ids: string[];
2617
+ time_zone_ids: string[];
2618
+ vehicle_ids: string[];
2619
+ device_manufacturer_ids: string[];
2620
+ device_model_ids: string[];
2621
+ device_type_ids: string[];
2622
+ is_sim_linked: YesNo[];
2623
+ is_device_used: DeviceStatus[];
2624
+ device_gps_source: GPSSource[];
2625
+ device_ids: string[];
2584
2626
  }, {
2585
2627
  date_format_id: string;
2586
2628
  time_zone_id: string;
@@ -2604,18 +2646,39 @@ declare const OrganisationTagQuerySchema: z.ZodObject<{
2604
2646
  }[] | undefined;
2605
2647
  include_master_data?: YesNo | undefined;
2606
2648
  organisation_ids?: string[] | undefined;
2607
- organisation_tag_ids?: string[] | undefined;
2649
+ country_ids?: string[] | undefined;
2650
+ time_zone_ids?: string[] | undefined;
2651
+ vehicle_ids?: string[] | undefined;
2652
+ device_manufacturer_ids?: string[] | undefined;
2653
+ device_model_ids?: string[] | undefined;
2654
+ device_type_ids?: string[] | undefined;
2655
+ is_sim_linked?: YesNo[] | undefined;
2656
+ is_device_used?: DeviceStatus[] | undefined;
2657
+ device_gps_source?: GPSSource[] | undefined;
2658
+ device_ids?: string[] | undefined;
2608
2659
  }>;
2609
- type OrganisationTagQueryDTO = z.infer<typeof OrganisationTagQuerySchema>;
2610
- declare const toOrganisationTagPayload: (row: OrganisationTag) => OrganisationTagDTO;
2611
- declare const newOrganisationTagPayload: () => OrganisationTagDTO;
2612
- declare const findOrganisationTags: (data: OrganisationTagQueryDTO) => Promise<FBR<OrganisationTag[]>>;
2613
- declare const createOrganisationTag: (data: OrganisationTagDTO) => Promise<SBR>;
2614
- declare const updateOrganisationTag: (id: string, data: OrganisationTagDTO) => Promise<SBR>;
2615
- declare const deleteOrganisationTag: (id: string) => Promise<SBR>;
2616
- declare const getOrganisationTagCache: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
2617
- declare const getOrganisationTagCacheCount: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
2618
- declare const getOrganisationTagCacheChild: (organisation_id: string) => Promise<FBR<OrganisationTag[]>>;
2660
+ type MasterDeviceQueryDTO = z.infer<typeof MasterDeviceQuerySchema>;
2661
+ declare const DeviceSimLinkSchema: z.ZodObject<{
2662
+ device_id: z.ZodEffects<z.ZodString, string, string>;
2663
+ sim_id: z.ZodEffects<z.ZodString, string, string>;
2664
+ }, "strip", z.ZodTypeAny, {
2665
+ sim_id: string;
2666
+ device_id: string;
2667
+ }, {
2668
+ sim_id: string;
2669
+ device_id: string;
2670
+ }>;
2671
+ type DeviceSimLinkDTO = z.infer<typeof DeviceSimLinkSchema>;
2672
+ declare const toMasterDevicePayload: (device: MasterDevice) => MasterDeviceDTO;
2673
+ declare const newMasterDevicePayload: () => MasterDeviceDTO;
2674
+ declare const findMasterDevices: (data: MasterDeviceQueryDTO) => Promise<FBR<MasterDevice[]>>;
2675
+ declare const createMasterDevice: (data: MasterDeviceDTO) => Promise<SBR>;
2676
+ declare const updateMasterDevice: (id: string, data: MasterDeviceDTO) => Promise<SBR>;
2677
+ declare const deleteMasterDevice: (id: string) => Promise<SBR>;
2678
+ declare const device_sim_link: (payload: DeviceSimLinkDTO) => Promise<SBR>;
2679
+ declare const device_sim_unlink: (payload: DeviceSimLinkDTO) => Promise<SBR>;
2680
+ declare const get_device_sim_link_history_by_sim: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveSimHistory[]>>;
2681
+ declare const get_device_sim_link_history_by_device: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveSimHistory[]>>;
2619
2682
 
2620
2683
  interface OrganisationGroup extends Record<string, unknown> {
2621
2684
  organisation_group_id: string;
@@ -4901,2093 +4964,96 @@ declare const VehicleDetailPurchaseSchema: z.ZodObject<{
4901
4964
  warranty_max_odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
4902
4965
  warranty_exchange_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
4903
4966
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
4904
- }, "strip", z.ZodTypeAny, {
4905
- status: Status;
4906
- purchase_date: string;
4907
- purchase_notes: string;
4908
- purchase_vehicle_type: PurchaseVehicleType;
4909
- purchase_type: PurchaseType;
4910
- loan_no_of_installments: number;
4911
- loan_first_payment_date: string;
4912
- loan_last_payment_date: string;
4913
- loan_emi_date: number;
4914
- lease_start_date: string;
4915
- lease_end_date: string;
4916
- lease_emi_date: number;
4917
- warranty_expiration_date: string;
4918
- warranty_max_odometer_reading: number;
4919
- warranty_exchange_date: string;
4920
- purchase_vendor_id: string;
4921
- loan_lender_id: string;
4922
- lease_vendor_id: string;
4923
- purchase_total_amount?: number | undefined;
4924
- loan_amount?: number | undefined;
4925
- loan_down_payment?: number | undefined;
4926
- loan_interest_rate?: number | undefined;
4927
- loan_monthly_emi?: number | undefined;
4928
- lease_security_deposit_amount?: number | undefined;
4929
- lease_monthly_emi_amount?: number | undefined;
4930
- }, {
4931
- status: Status;
4932
- purchase_vendor_id: string;
4933
- loan_lender_id: string;
4934
- lease_vendor_id: string;
4935
- purchase_date?: string | undefined;
4936
- purchase_notes?: string | undefined;
4937
- purchase_vehicle_type?: PurchaseVehicleType | undefined;
4938
- purchase_type?: PurchaseType | undefined;
4939
- purchase_total_amount?: unknown;
4940
- loan_amount?: unknown;
4941
- loan_down_payment?: unknown;
4942
- loan_interest_rate?: unknown;
4943
- loan_no_of_installments?: unknown;
4944
- loan_first_payment_date?: string | undefined;
4945
- loan_last_payment_date?: string | undefined;
4946
- loan_monthly_emi?: unknown;
4947
- loan_emi_date?: unknown;
4948
- lease_start_date?: string | undefined;
4949
- lease_end_date?: string | undefined;
4950
- lease_security_deposit_amount?: unknown;
4951
- lease_monthly_emi_amount?: unknown;
4952
- lease_emi_date?: unknown;
4953
- warranty_expiration_date?: string | undefined;
4954
- warranty_max_odometer_reading?: unknown;
4955
- warranty_exchange_date?: string | undefined;
4956
- }>;
4957
- type VehicleDetailPurchaseDTO = z.infer<typeof VehicleDetailPurchaseSchema>;
4958
- declare const VehicleDetailTripSchema: z.ZodObject<{
4959
- trip_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4960
- trip_no: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4961
- eway_bill_number: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4962
- route_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4963
- trip_start_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
4964
- trip_end_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
4965
- trip_notes_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4966
- trip_notes_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4967
- trip_notes_3: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4968
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
4969
- }, "strip", z.ZodTypeAny, {
4970
- status: Status;
4971
- trip_name: string;
4972
- trip_no: string;
4973
- eway_bill_number: string;
4974
- route_name: string;
4975
- trip_start_date: string;
4976
- trip_end_date: string;
4977
- trip_notes_1: string;
4978
- trip_notes_2: string;
4979
- trip_notes_3: string;
4980
- }, {
4981
- status: Status;
4982
- trip_name?: string | undefined;
4983
- trip_no?: string | undefined;
4984
- eway_bill_number?: string | undefined;
4985
- route_name?: string | undefined;
4986
- trip_start_date?: string | undefined;
4987
- trip_end_date?: string | undefined;
4988
- trip_notes_1?: string | undefined;
4989
- trip_notes_2?: string | undefined;
4990
- trip_notes_3?: string | undefined;
4991
- }>;
4992
- type VehicleDetailTripDTO = z.infer<typeof VehicleDetailTripSchema>;
4993
- declare const VehicleQuerySchema: z.ZodObject<{
4994
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4995
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
4996
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
4997
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
4998
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
4999
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5000
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5001
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5002
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5003
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5004
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5005
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5006
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5007
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5008
- name: z.ZodEffects<z.ZodString, string, string>;
5009
- field: z.ZodEffects<z.ZodString, string, string>;
5010
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5011
- }, "strip", z.ZodTypeAny, {
5012
- name: string;
5013
- field: string;
5014
- direction: OrderBy;
5015
- }, {
5016
- name: string;
5017
- field: string;
5018
- direction: OrderBy;
5019
- }>, "many">>>;
5020
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5021
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5022
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5023
- } & {
5024
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5025
- driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5026
- device_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5027
- organisation_sub_company_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5028
- organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5029
- organisation_tag_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5030
- organisation_color_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5031
- vehicle_make_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5032
- vehicle_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5033
- vehicle_sub_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5034
- vehicle_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5035
- vehicle_status_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5036
- vehicle_ownership_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5037
- vehicle_fuel_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5038
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5039
- is_device_installed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5040
- is_driver_assigned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5041
- }, "strip", z.ZodTypeAny, {
5042
- status: Status[];
5043
- search: string;
5044
- paging: PAGING;
5045
- page_count: number;
5046
- page_index: number;
5047
- load_parents: LoadParents;
5048
- load_parents_list: string[];
5049
- load_child: LoadChild;
5050
- load_child_list: string[];
5051
- load_child_count: LoadChildCount;
5052
- load_child_count_list: string[];
5053
- include_details: Record<string, any>;
5054
- where_relations: Record<string, any>;
5055
- order_by: {
5056
- name: string;
5057
- field: string;
5058
- direction: OrderBy;
5059
- }[];
5060
- include_master_data: YesNo;
5061
- date_format_id: string;
5062
- time_zone_id: string;
5063
- organisation_ids: string[];
5064
- vehicle_ids: string[];
5065
- driver_ids: string[];
5066
- device_ids: string[];
5067
- organisation_sub_company_ids: string[];
5068
- organisation_branch_ids: string[];
5069
- organisation_color_ids: string[];
5070
- organisation_tag_ids: string[];
5071
- vehicle_make_ids: string[];
5072
- vehicle_model_ids: string[];
5073
- vehicle_sub_model_ids: string[];
5074
- vehicle_status_type_ids: string[];
5075
- vehicle_ownership_type_ids: string[];
5076
- vehicle_type_ids: string[];
5077
- is_driver_assigned: YesNo[];
5078
- is_device_installed: YesNo[];
5079
- vehicle_fuel_type_ids: string[];
5080
- }, {
5081
- date_format_id: string;
5082
- time_zone_id: string;
5083
- status?: Status[] | undefined;
5084
- search?: string | undefined;
5085
- paging?: PAGING | undefined;
5086
- page_count?: unknown;
5087
- page_index?: unknown;
5088
- load_parents?: LoadParents | undefined;
5089
- load_parents_list?: string[] | undefined;
5090
- load_child?: LoadChild | undefined;
5091
- load_child_list?: string[] | undefined;
5092
- load_child_count?: LoadChildCount | undefined;
5093
- load_child_count_list?: string[] | undefined;
5094
- include_details?: Record<string, any> | undefined;
5095
- where_relations?: Record<string, any> | undefined;
5096
- order_by?: {
5097
- name: string;
5098
- field: string;
5099
- direction: OrderBy;
5100
- }[] | undefined;
5101
- include_master_data?: YesNo | undefined;
5102
- organisation_ids?: string[] | undefined;
5103
- vehicle_ids?: string[] | undefined;
5104
- driver_ids?: string[] | undefined;
5105
- device_ids?: string[] | undefined;
5106
- organisation_sub_company_ids?: string[] | undefined;
5107
- organisation_branch_ids?: string[] | undefined;
5108
- organisation_color_ids?: string[] | undefined;
5109
- organisation_tag_ids?: string[] | undefined;
5110
- vehicle_make_ids?: string[] | undefined;
5111
- vehicle_model_ids?: string[] | undefined;
5112
- vehicle_sub_model_ids?: string[] | undefined;
5113
- vehicle_status_type_ids?: string[] | undefined;
5114
- vehicle_ownership_type_ids?: string[] | undefined;
5115
- vehicle_type_ids?: string[] | undefined;
5116
- is_driver_assigned?: YesNo[] | undefined;
5117
- is_device_installed?: YesNo[] | undefined;
5118
- vehicle_fuel_type_ids?: string[] | undefined;
5119
- }>;
5120
- type VehicleQueryDTO = z.infer<typeof VehicleQuerySchema>;
5121
- declare const VehicleGPSQuerySchema: z.ZodObject<{
5122
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5123
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5124
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5125
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5126
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5127
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5128
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5129
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5130
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5131
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5132
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5133
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5134
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5135
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5136
- name: z.ZodEffects<z.ZodString, string, string>;
5137
- field: z.ZodEffects<z.ZodString, string, string>;
5138
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5139
- }, "strip", z.ZodTypeAny, {
5140
- name: string;
5141
- field: string;
5142
- direction: OrderBy;
5143
- }, {
5144
- name: string;
5145
- field: string;
5146
- direction: OrderBy;
5147
- }>, "many">>>;
5148
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5149
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5150
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5151
- } & {
5152
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5153
- vehicle_id: z.ZodEffects<z.ZodString, string, string>;
5154
- }, "strip", z.ZodTypeAny, {
5155
- status: Status[];
5156
- organisation_id: string;
5157
- search: string;
5158
- paging: PAGING;
5159
- page_count: number;
5160
- page_index: number;
5161
- load_parents: LoadParents;
5162
- load_parents_list: string[];
5163
- load_child: LoadChild;
5164
- load_child_list: string[];
5165
- load_child_count: LoadChildCount;
5166
- load_child_count_list: string[];
5167
- include_details: Record<string, any>;
5168
- where_relations: Record<string, any>;
5169
- order_by: {
5170
- name: string;
5171
- field: string;
5172
- direction: OrderBy;
5173
- }[];
5174
- include_master_data: YesNo;
5175
- date_format_id: string;
5176
- time_zone_id: string;
5177
- vehicle_id: string;
5178
- }, {
5179
- organisation_id: string;
5180
- date_format_id: string;
5181
- time_zone_id: string;
5182
- vehicle_id: string;
5183
- status?: Status[] | undefined;
5184
- search?: string | undefined;
5185
- paging?: PAGING | undefined;
5186
- page_count?: unknown;
5187
- page_index?: unknown;
5188
- load_parents?: LoadParents | undefined;
5189
- load_parents_list?: string[] | undefined;
5190
- load_child?: LoadChild | undefined;
5191
- load_child_list?: string[] | undefined;
5192
- load_child_count?: LoadChildCount | undefined;
5193
- load_child_count_list?: string[] | undefined;
5194
- include_details?: Record<string, any> | undefined;
5195
- where_relations?: Record<string, any> | undefined;
5196
- order_by?: {
5197
- name: string;
5198
- field: string;
5199
- direction: OrderBy;
5200
- }[] | undefined;
5201
- include_master_data?: YesNo | undefined;
5202
- }>;
5203
- type VehicleGPSQueryDTO = z.infer<typeof VehicleGPSQuerySchema>;
5204
- declare const toVehiclePayload: (vehicle: MasterVehicle) => VehicleDTO;
5205
- declare const newVehiclePayload: () => VehicleDTO;
5206
- declare const toVehicleDetailsGPSPayload: (vehicleGPS?: VehicleDetailGPS) => VehicleDetailGPSMainDTO;
5207
- declare const toVehicleDetailsBodyPayload: (vehicleBody?: VehicleDetailBody) => VehicleDetailBodyDTO;
5208
- declare const toVehicleDetailPurchasePayload: (vehiclePurchase?: VehicleDetailPurchase) => VehicleDetailPurchaseDTO;
5209
- declare const toVehicleDetailLifeCyclePayload: (vehicleLifeCycle?: VehicleDetailLifeCycle) => VehicleDetailLifeCycleDto;
5210
- declare const findVehicles: (payload: VehicleQueryDTO) => Promise<FBR<MasterVehicle[]>>;
5211
- declare const findVehiclesLiveDashboard: (payload: VehicleQueryDTO) => Promise<FBR<MasterVehicle[]>>;
5212
- declare const findVehicleGPSDetails: (payload: VehicleGPSQueryDTO) => Promise<BR<VehicleDetailGPS>>;
5213
- declare const createVehicle: (payload: VehicleDTO) => Promise<SBR>;
5214
- declare const updateVehicle: (id: string, payload: VehicleDTO) => Promise<SBR>;
5215
- declare const deleteVehicle: (id: string) => Promise<SBR>;
5216
- declare const updateVehicleBodyDetails: (id: string, payload: VehicleDetailBodyDTO) => Promise<SBR>;
5217
- declare const updateVehicleLifeCycleDetails: (id: string, payload: VehicleDetailLifeCycleDto) => Promise<SBR>;
5218
- declare const updateVehiclePurchaseDetails: (id: string, payload: VehicleDetailPurchaseDTO) => Promise<SBR>;
5219
- declare const updateVehicleGPSDetailsMain: (id: string, payload: VehicleDetailGPSMainDTO) => Promise<SBR>;
5220
- declare const updateVehicleGPSDetailsData: (id: string, payload: VehicleDetailGPSDataDTO) => Promise<SBR>;
5221
- declare const updateVehicleGPSDetailsAnalytics: (id: string, payload: VehicleDetailGPSAnalyticsDTO) => Promise<SBR>;
5222
- declare const updateVehicleTripDetails: (id: string, payload: VehicleDetailTripDTO) => Promise<SBR>;
5223
- declare const linkDriverToVehicle: (payload: VehicleDriverLinkDTO) => Promise<SBR>;
5224
- declare const unlinkDriverFromVehicle: (payload: VehicleDriverLinkDTO) => Promise<SBR>;
5225
- declare const getDriverLinkHistoryByVehicle: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDriverHistory[]>>;
5226
- declare const getDriverLinkHistoryByDriver: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDriverHistory[]>>;
5227
- declare const linkDeviceToVehicle: (payload: VehicleDeviceLinkDTO) => Promise<SBR>;
5228
- declare const unlinkDeviceFromVehicle: (payload: VehicleDeviceUnlinkDTO) => Promise<SBR>;
5229
- declare const getDeviceLinkHistoryByVehicle: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDeviceHistory[]>>;
5230
- declare const getDeviceLinkHistoryByDevice: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDeviceHistory[]>>;
5231
- declare const getVehicleCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
5232
- declare const getVehicleSimpleCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
5233
- declare const getVehicleSimpleDropdownCustom: (organisationId: string) => Promise<FBR<MasterVehicleDropdown[]>>;
5234
- declare const getVehicleSimpleDropdownCacheLiveData: (organisationId: string) => Promise<FBR<MasterVehicleDropdown[]>>;
5235
- declare const getVehicleParentCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
5236
-
5237
- interface MasterUserRole extends Record<string, unknown> {
5238
- user_role_id: string;
5239
- user_role: string;
5240
- description?: string;
5241
- status: Status;
5242
- added_date_time: string;
5243
- modified_date_time: string;
5244
- organisation_id?: string;
5245
- UserOrganisation?: UserOrganisation;
5246
- User: User[];
5247
- _count?: {
5248
- User: number;
5249
- };
5250
- }
5251
- declare const MasterUserRoleSchema: z.ZodObject<{
5252
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5253
- user_role: z.ZodEffects<z.ZodString, string, string>;
5254
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5255
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5256
- }, "strip", z.ZodTypeAny, {
5257
- status: Status;
5258
- organisation_id: string;
5259
- description: string;
5260
- user_role: string;
5261
- }, {
5262
- status: Status;
5263
- organisation_id: string;
5264
- user_role: string;
5265
- description?: string | undefined;
5266
- }>;
5267
- type MasterUserRoleDTO = z.infer<typeof MasterUserRoleSchema>;
5268
- declare const MasterUserRoleQuerySchema: z.ZodObject<{
5269
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5270
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5271
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5272
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5273
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5274
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5275
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5276
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5277
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5278
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5279
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5280
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5281
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5282
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5283
- name: z.ZodEffects<z.ZodString, string, string>;
5284
- field: z.ZodEffects<z.ZodString, string, string>;
5285
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5286
- }, "strip", z.ZodTypeAny, {
5287
- name: string;
5288
- field: string;
5289
- direction: OrderBy;
5290
- }, {
5291
- name: string;
5292
- field: string;
5293
- direction: OrderBy;
5294
- }>, "many">>>;
5295
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5296
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5297
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5298
- } & {
5299
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5300
- user_role_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5301
- }, "strip", z.ZodTypeAny, {
5302
- status: Status[];
5303
- search: string;
5304
- paging: PAGING;
5305
- page_count: number;
5306
- page_index: number;
5307
- load_parents: LoadParents;
5308
- load_parents_list: string[];
5309
- load_child: LoadChild;
5310
- load_child_list: string[];
5311
- load_child_count: LoadChildCount;
5312
- load_child_count_list: string[];
5313
- include_details: Record<string, any>;
5314
- where_relations: Record<string, any>;
5315
- order_by: {
5316
- name: string;
5317
- field: string;
5318
- direction: OrderBy;
5319
- }[];
5320
- include_master_data: YesNo;
5321
- date_format_id: string;
5322
- time_zone_id: string;
5323
- organisation_ids: string[];
5324
- user_role_ids: string[];
5325
- }, {
5326
- date_format_id: string;
5327
- time_zone_id: string;
5328
- status?: Status[] | undefined;
5329
- search?: string | undefined;
5330
- paging?: PAGING | undefined;
5331
- page_count?: unknown;
5332
- page_index?: unknown;
5333
- load_parents?: LoadParents | undefined;
5334
- load_parents_list?: string[] | undefined;
5335
- load_child?: LoadChild | undefined;
5336
- load_child_list?: string[] | undefined;
5337
- load_child_count?: LoadChildCount | undefined;
5338
- load_child_count_list?: string[] | undefined;
5339
- include_details?: Record<string, any> | undefined;
5340
- where_relations?: Record<string, any> | undefined;
5341
- order_by?: {
5342
- name: string;
5343
- field: string;
5344
- direction: OrderBy;
5345
- }[] | undefined;
5346
- include_master_data?: YesNo | undefined;
5347
- organisation_ids?: string[] | undefined;
5348
- user_role_ids?: string[] | undefined;
5349
- }>;
5350
- type MasterUserRoleQueryDTO = z.infer<typeof MasterUserRoleQuerySchema>;
5351
- declare const toMasterUserRolePayload: (row: MasterUserRole) => MasterUserRoleDTO;
5352
- declare const newMasterUserRolePayload: () => MasterUserRoleDTO;
5353
- declare const findMasterUserRoles: (data: MasterUserRoleQueryDTO) => Promise<FBR<MasterUserRole[]>>;
5354
- declare const createMasterUserRole: (data: MasterUserRoleDTO) => Promise<SBR>;
5355
- declare const updateMasterUserRole: (id: string, data: MasterUserRoleDTO) => Promise<SBR>;
5356
- declare const deleteMasterUserRole: (id: string) => Promise<SBR>;
5357
- declare const getMasterUserRoleCache: (organisation_id: string) => Promise<FBR<MasterUserRole[]>>;
5358
- declare const getMasterUserRoleCacheCount: (organisation_id: string) => Promise<FBR<MasterUserRole>>;
5359
-
5360
- interface MasterUserStatus extends Record<string, unknown> {
5361
- user_status_id: string;
5362
- user_status: string;
5363
- description?: string;
5364
- status: Status;
5365
- added_date_time: string;
5366
- modified_date_time: string;
5367
- organisation_id?: string;
5368
- UserOrganisation?: UserOrganisation;
5369
- User: User[];
5370
- _count?: {
5371
- User: number;
5372
- };
5373
- }
5374
- declare const MasterUserStatusSchema: z.ZodObject<{
5375
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5376
- user_status: z.ZodEffects<z.ZodString, string, string>;
5377
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5378
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5379
- }, "strip", z.ZodTypeAny, {
5380
- status: Status;
5381
- organisation_id: string;
5382
- description: string;
5383
- user_status: string;
5384
- }, {
5385
- status: Status;
5386
- organisation_id: string;
5387
- user_status: string;
5388
- description?: string | undefined;
5389
- }>;
5390
- type MasterUserStatusDTO = z.infer<typeof MasterUserStatusSchema>;
5391
- declare const MasterUserStatusQuerySchema: z.ZodObject<{
5392
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5393
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5394
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5395
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5396
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5397
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5398
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5399
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5400
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5401
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5402
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5403
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5404
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5405
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5406
- name: z.ZodEffects<z.ZodString, string, string>;
5407
- field: z.ZodEffects<z.ZodString, string, string>;
5408
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5409
- }, "strip", z.ZodTypeAny, {
5410
- name: string;
5411
- field: string;
5412
- direction: OrderBy;
5413
- }, {
5414
- name: string;
5415
- field: string;
5416
- direction: OrderBy;
5417
- }>, "many">>>;
5418
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5419
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5420
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5421
- } & {
5422
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5423
- user_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5424
- }, "strip", z.ZodTypeAny, {
5425
- status: Status[];
5426
- search: string;
5427
- paging: PAGING;
5428
- page_count: number;
5429
- page_index: number;
5430
- load_parents: LoadParents;
5431
- load_parents_list: string[];
5432
- load_child: LoadChild;
5433
- load_child_list: string[];
5434
- load_child_count: LoadChildCount;
5435
- load_child_count_list: string[];
5436
- include_details: Record<string, any>;
5437
- where_relations: Record<string, any>;
5438
- order_by: {
5439
- name: string;
5440
- field: string;
5441
- direction: OrderBy;
5442
- }[];
5443
- include_master_data: YesNo;
5444
- date_format_id: string;
5445
- time_zone_id: string;
5446
- organisation_ids: string[];
5447
- user_status_ids: string[];
5448
- }, {
5449
- date_format_id: string;
5450
- time_zone_id: string;
5451
- status?: Status[] | undefined;
5452
- search?: string | undefined;
5453
- paging?: PAGING | undefined;
5454
- page_count?: unknown;
5455
- page_index?: unknown;
5456
- load_parents?: LoadParents | undefined;
5457
- load_parents_list?: string[] | undefined;
5458
- load_child?: LoadChild | undefined;
5459
- load_child_list?: string[] | undefined;
5460
- load_child_count?: LoadChildCount | undefined;
5461
- load_child_count_list?: string[] | undefined;
5462
- include_details?: Record<string, any> | undefined;
5463
- where_relations?: Record<string, any> | undefined;
5464
- order_by?: {
5465
- name: string;
5466
- field: string;
5467
- direction: OrderBy;
5468
- }[] | undefined;
5469
- include_master_data?: YesNo | undefined;
5470
- organisation_ids?: string[] | undefined;
5471
- user_status_ids?: string[] | undefined;
5472
- }>;
5473
- type MasterUserStatusQueryDTO = z.infer<typeof MasterUserStatusQuerySchema>;
5474
- declare const toMasterUserStatusPayload: (row: MasterUserStatus) => MasterUserStatusDTO;
5475
- declare const newMasterUserStatusPayload: () => MasterUserStatusDTO;
5476
- declare const findMasterUserStatuses: (data: MasterUserStatusQueryDTO) => Promise<FBR<MasterUserStatus[]>>;
5477
- declare const createMasterUserStatus: (data: MasterUserStatusDTO) => Promise<SBR>;
5478
- declare const updateMasterUserStatus: (id: string, data: MasterUserStatusDTO) => Promise<SBR>;
5479
- declare const deleteMasterUserStatus: (id: string) => Promise<SBR>;
5480
- declare const getMasterUserStatusCache: (organisation_id: string) => Promise<FBR<MasterUserStatus[]>>;
5481
- declare const getMasterUserStatusCacheCount: (organisation_id: string) => Promise<FBR<MasterUserStatus>>;
5482
-
5483
- interface MasterMainLanguage extends Record<string, unknown> {
5484
- language_id: string;
5485
- language_name: string;
5486
- language_code: string;
5487
- status: Status;
5488
- added_date_time: string;
5489
- modified_date_time: string;
5490
- User: User[];
5491
- _count?: {
5492
- User: number;
5493
- };
5494
- }
5495
- declare const MasterMainLanguageSchema: z.ZodObject<{
5496
- language_name: z.ZodEffects<z.ZodString, string, string>;
5497
- language_code: z.ZodEffects<z.ZodString, string, string>;
5498
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5499
- }, "strip", z.ZodTypeAny, {
5500
- status: Status;
5501
- language_name: string;
5502
- language_code: string;
5503
- }, {
5504
- status: Status;
5505
- language_name: string;
5506
- language_code: string;
5507
- }>;
5508
- type MasterMainLanguageDTO = z.infer<typeof MasterMainLanguageSchema>;
5509
- declare const MasterMainLanguageQuerySchema: z.ZodObject<{
5510
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5511
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5512
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5513
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5514
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5515
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5516
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5517
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5518
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5519
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5520
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5521
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5522
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5523
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5524
- name: z.ZodEffects<z.ZodString, string, string>;
5525
- field: z.ZodEffects<z.ZodString, string, string>;
5526
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5527
- }, "strip", z.ZodTypeAny, {
5528
- name: string;
5529
- field: string;
5530
- direction: OrderBy;
5531
- }, {
5532
- name: string;
5533
- field: string;
5534
- direction: OrderBy;
5535
- }>, "many">>>;
5536
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5537
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5538
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5539
- } & {
5540
- language_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5541
- }, "strip", z.ZodTypeAny, {
5542
- status: Status[];
5543
- search: string;
5544
- paging: PAGING;
5545
- page_count: number;
5546
- page_index: number;
5547
- load_parents: LoadParents;
5548
- load_parents_list: string[];
5549
- load_child: LoadChild;
5550
- load_child_list: string[];
5551
- load_child_count: LoadChildCount;
5552
- load_child_count_list: string[];
5553
- include_details: Record<string, any>;
5554
- where_relations: Record<string, any>;
5555
- order_by: {
5556
- name: string;
5557
- field: string;
5558
- direction: OrderBy;
5559
- }[];
5560
- include_master_data: YesNo;
5561
- date_format_id: string;
5562
- time_zone_id: string;
5563
- language_ids: string[];
5564
- }, {
5565
- date_format_id: string;
5566
- time_zone_id: string;
5567
- status?: Status[] | undefined;
5568
- search?: string | undefined;
5569
- paging?: PAGING | undefined;
5570
- page_count?: unknown;
5571
- page_index?: unknown;
5572
- load_parents?: LoadParents | undefined;
5573
- load_parents_list?: string[] | undefined;
5574
- load_child?: LoadChild | undefined;
5575
- load_child_list?: string[] | undefined;
5576
- load_child_count?: LoadChildCount | undefined;
5577
- load_child_count_list?: string[] | undefined;
5578
- include_details?: Record<string, any> | undefined;
5579
- where_relations?: Record<string, any> | undefined;
5580
- order_by?: {
5581
- name: string;
5582
- field: string;
5583
- direction: OrderBy;
5584
- }[] | undefined;
5585
- include_master_data?: YesNo | undefined;
5586
- language_ids?: string[] | undefined;
5587
- }>;
5588
- type MasterMainLanguageQueryDTO = z.infer<typeof MasterMainLanguageQuerySchema>;
5589
- declare const toMasterMainLanguagePayload: (row: MasterMainLanguage) => MasterMainLanguageDTO;
5590
- declare const newMasterMainLanguagePayload: () => MasterMainLanguageDTO;
5591
- declare const findMasterMainLanguages: (data: MasterMainLanguageQueryDTO) => Promise<FBR<MasterMainLanguage[]>>;
5592
- declare const createMasterMainLanguage: (data: MasterMainLanguageDTO) => Promise<SBR>;
5593
- declare const updateMasterMainLanguage: (id: string, data: MasterMainLanguageDTO) => Promise<SBR>;
5594
- declare const deleteMasterMainLanguage: (id: string) => Promise<SBR>;
5595
- declare const getMasterMainLanguageCache: () => Promise<FBR<MasterMainLanguage[]>>;
5596
-
5597
- interface User extends Record<string, unknown> {
5598
- user_id: string;
5599
- first_name: string;
5600
- last_name?: string;
5601
- email: string;
5602
- username?: string;
5603
- mobile?: string;
5604
- password?: string;
5605
- can_login: YesNo;
5606
- is_root_user: YesNo;
5607
- all_vehicles: YesNo;
5608
- user_details?: string;
5609
- user_image_url?: string;
5610
- user_image_key?: string;
5611
- status: Status;
5612
- added_date_time: string;
5613
- modified_date_time: string;
5614
- organisation_id?: string;
5615
- UserOrganisation?: UserOrganisation;
5616
- user_role_id?: string;
5617
- MasterUserRole?: MasterUserRole;
5618
- user_role?: string;
5619
- user_status_id?: string;
5620
- MasterUserStatus?: MasterUserStatus;
5621
- user_status?: string;
5622
- language_id?: string;
5623
- MasterMainLanguage?: MasterMainLanguage;
5624
- date_format_id?: string;
5625
- MasterMainDateFormat?: MasterMainDateFormat;
5626
- time_zone_id?: string;
5627
- MasterMainTimeZone?: MasterMainTimeZone;
5628
- UserVehicleLink: UserVehicleLink[];
5629
- _count?: {
5630
- UserVehicleLink: number;
5631
- };
5632
- }
5633
- interface UserVehicleLink extends Record<string, unknown> {
5634
- user_vehicle_id: string;
5635
- status: Status;
5636
- added_date_time: string;
5637
- modified_date_time: string;
5638
- vehicle_id: string;
5639
- MasterVehicle?: MasterVehicle;
5640
- vehicle_number?: string;
5641
- vehicle_type?: string;
5642
- user_id: string;
5643
- User?: User;
5644
- }
5645
- declare const CreateUserSchema: z.ZodObject<{
5646
- first_name: z.ZodEffects<z.ZodString, string, string>;
5647
- last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5648
- email: z.ZodEffects<z.ZodString, string, string>;
5649
- username: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5650
- mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5651
- password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5652
- can_login: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5653
- is_root_user: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5654
- all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5655
- vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5656
- user_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5657
- user_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5658
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5659
- user_role_id: z.ZodEffects<z.ZodString, string, string>;
5660
- user_status_id: z.ZodEffects<z.ZodString, string, string>;
5661
- language_id: z.ZodEffects<z.ZodString, string, string>;
5662
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5663
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5664
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5665
- }, "strip", z.ZodTypeAny, {
5666
- status: Status;
5667
- organisation_id: string;
5668
- date_format_id: string;
5669
- time_zone_id: string;
5670
- password: string;
5671
- can_login: YesNo;
5672
- vehicle_ids: string[];
5673
- user_role_id: string;
5674
- user_status_id: string;
5675
- language_id: string;
5676
- first_name: string;
5677
- last_name: string;
5678
- email: string;
5679
- username: string;
5680
- mobile: string;
5681
- is_root_user: YesNo;
5682
- all_vehicles: YesNo;
5683
- user_image_url: string;
5684
- user_image_key: string;
5685
- }, {
5686
- status: Status;
5687
- organisation_id: string;
5688
- date_format_id: string;
5689
- time_zone_id: string;
5690
- can_login: YesNo;
5691
- user_role_id: string;
5692
- user_status_id: string;
5693
- language_id: string;
5694
- first_name: string;
5695
- email: string;
5696
- is_root_user: YesNo;
5697
- all_vehicles: YesNo;
5698
- password?: string | undefined;
5699
- vehicle_ids?: string[] | undefined;
5700
- last_name?: string | undefined;
5701
- username?: string | undefined;
5702
- mobile?: string | undefined;
5703
- user_image_url?: string | undefined;
5704
- user_image_key?: string | undefined;
5705
- }>;
5706
- type CreateUserDTO = z.infer<typeof CreateUserSchema>;
5707
- declare const UserQuerySchema: z.ZodObject<{
5708
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5709
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5710
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5711
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5712
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5713
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5714
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5715
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5716
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5717
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5718
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5719
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5720
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5721
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5722
- name: z.ZodEffects<z.ZodString, string, string>;
5723
- field: z.ZodEffects<z.ZodString, string, string>;
5724
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5725
- }, "strip", z.ZodTypeAny, {
5726
- name: string;
5727
- field: string;
5728
- direction: OrderBy;
5729
- }, {
5730
- name: string;
5731
- field: string;
5732
- direction: OrderBy;
5733
- }>, "many">>>;
5734
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5735
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5736
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5737
- } & {
5738
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5739
- user_role_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5740
- user_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5741
- language_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5742
- time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5743
- date_format_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5744
- user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5745
- can_login: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5746
- is_root_user: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5747
- all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5748
- }, "strip", z.ZodTypeAny, {
5749
- status: Status[];
5750
- search: string;
5751
- paging: PAGING;
5752
- page_count: number;
5753
- page_index: number;
5754
- load_parents: LoadParents;
5755
- load_parents_list: string[];
5756
- load_child: LoadChild;
5757
- load_child_list: string[];
5758
- load_child_count: LoadChildCount;
5759
- load_child_count_list: string[];
5760
- include_details: Record<string, any>;
5761
- where_relations: Record<string, any>;
5762
- order_by: {
5763
- name: string;
5764
- field: string;
5765
- direction: OrderBy;
5766
- }[];
5767
- include_master_data: YesNo;
5768
- date_format_id: string;
5769
- time_zone_id: string;
5770
- organisation_ids: string[];
5771
- user_ids: string[];
5772
- time_zone_ids: string[];
5773
- date_format_ids: string[];
5774
- can_login: YesNo[];
5775
- user_role_ids: string[];
5776
- user_status_ids: string[];
5777
- language_ids: string[];
5778
- is_root_user: YesNo[];
5779
- all_vehicles: YesNo[];
5780
- }, {
5781
- date_format_id: string;
5782
- time_zone_id: string;
5783
- status?: Status[] | undefined;
5784
- search?: string | undefined;
5785
- paging?: PAGING | undefined;
5786
- page_count?: unknown;
5787
- page_index?: unknown;
5788
- load_parents?: LoadParents | undefined;
5789
- load_parents_list?: string[] | undefined;
5790
- load_child?: LoadChild | undefined;
5791
- load_child_list?: string[] | undefined;
5792
- load_child_count?: LoadChildCount | undefined;
5793
- load_child_count_list?: string[] | undefined;
5794
- include_details?: Record<string, any> | undefined;
5795
- where_relations?: Record<string, any> | undefined;
5796
- order_by?: {
5797
- name: string;
5798
- field: string;
5799
- direction: OrderBy;
5800
- }[] | undefined;
5801
- include_master_data?: YesNo | undefined;
5802
- organisation_ids?: string[] | undefined;
5803
- user_ids?: string[] | undefined;
5804
- time_zone_ids?: string[] | undefined;
5805
- date_format_ids?: string[] | undefined;
5806
- can_login?: YesNo[] | undefined;
5807
- user_role_ids?: string[] | undefined;
5808
- user_status_ids?: string[] | undefined;
5809
- language_ids?: string[] | undefined;
5810
- is_root_user?: YesNo[] | undefined;
5811
- all_vehicles?: YesNo[] | undefined;
5812
- }>;
5813
- type UserQueryDTO = z.infer<typeof UserQuerySchema>;
5814
- declare const UserDefaultLanguageSchema: z.ZodObject<{
5815
- language_id: z.ZodEffects<z.ZodString, string, string>;
5816
- }, "strip", z.ZodTypeAny, {
5817
- language_id: string;
5818
- }, {
5819
- language_id: string;
5820
- }>;
5821
- type UserDefaultLanguageDTO = z.infer<typeof UserDefaultLanguageSchema>;
5822
- declare const UserDefaultTimeZoneSchema: z.ZodObject<{
5823
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5824
- }, "strip", z.ZodTypeAny, {
5825
- time_zone_id: string;
5826
- }, {
5827
- time_zone_id: string;
5828
- }>;
5829
- type UserDefaultTimeZoneDTO = z.infer<typeof UserDefaultTimeZoneSchema>;
5830
- declare const UserDefaultDateFormatSchema: z.ZodObject<{
5831
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5832
- }, "strip", z.ZodTypeAny, {
5833
- date_format_id: string;
5834
- }, {
5835
- date_format_id: string;
5836
- }>;
5837
- type UserDefaultDateFormatDTO = z.infer<typeof UserDefaultDateFormatSchema>;
5838
- declare const newUserPayload: () => CreateUserDTO;
5839
- declare const toUserPayload: (data: User) => CreateUserDTO;
5840
- declare const findUsers: (data: UserQueryDTO) => Promise<FBR<User[]>>;
5841
- declare const createUser: (data: CreateUserDTO) => Promise<SBR>;
5842
- declare const updateUser: (id: string, data: CreateUserDTO) => Promise<SBR>;
5843
- declare const deleteUser: (id: string) => Promise<SBR>;
5844
- declare const getUserCache: (organisation_id: string) => Promise<FBR<User[]>>;
5845
- declare const getUserCacheSimple: (organisation_id: string) => Promise<FBR<User[]>>;
5846
- declare const getUserPresignedUrl: (fileName: string) => Promise<SBR>;
5847
- declare const updateUserDefaultLanguage: (id: string, data: UserDefaultLanguageDTO) => Promise<SBR>;
5848
- declare const updateUserDefaultTimezone: (id: string, data: UserDefaultTimeZoneDTO) => Promise<SBR>;
5849
- declare const updateUserDefaultDateformat: (id: string, data: UserDefaultDateFormatDTO) => Promise<SBR>;
5850
-
5851
- interface MasterExpenseName extends Record<string, unknown> {
5852
- expense_name_id: string;
5853
- expense_name: string;
5854
- expense_category: ExpenseCategory;
5855
- description?: string;
5856
- status: Status;
5857
- added_date_time: string;
5858
- modified_date_time: string;
5859
- organisation_id?: string;
5860
- UserOrganisation?: UserOrganisation;
5861
- _count?: {
5862
- VehicleDocument: number;
5863
- FleetIncidentManagementCost: number;
5864
- };
5865
- }
5866
- declare const MasterExpenseNameSchema: z.ZodObject<{
5867
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5868
- expense_name: z.ZodEffects<z.ZodString, string, string>;
5869
- expense_category: z.ZodType<ExpenseCategory, z.ZodTypeDef, ExpenseCategory>;
5870
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5871
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5872
- }, "strip", z.ZodTypeAny, {
5873
- status: Status;
5874
- organisation_id: string;
5875
- description: string;
5876
- expense_name: string;
5877
- expense_category: ExpenseCategory;
5878
- }, {
5879
- status: Status;
5880
- organisation_id: string;
5881
- expense_name: string;
5882
- expense_category: ExpenseCategory;
5883
- description?: string | undefined;
5884
- }>;
5885
- type MasterExpenseNameDTO = z.infer<typeof MasterExpenseNameSchema>;
5886
- declare const MasterExpenseNameQuerySchema: z.ZodObject<{
5887
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5888
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
5889
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
5890
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5891
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
5892
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
5893
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5894
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
5895
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5896
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
5897
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5898
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5899
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5900
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
5901
- name: z.ZodEffects<z.ZodString, string, string>;
5902
- field: z.ZodEffects<z.ZodString, string, string>;
5903
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
5904
- }, "strip", z.ZodTypeAny, {
5905
- name: string;
5906
- field: string;
5907
- direction: OrderBy;
5908
- }, {
5909
- name: string;
5910
- field: string;
5911
- direction: OrderBy;
5912
- }>, "many">>>;
5913
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
5914
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
5915
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5916
- } & {
5917
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5918
- expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5919
- expense_category: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExpenseCategory>, "many">>>;
5920
- }, "strip", z.ZodTypeAny, {
5921
- status: Status[];
5922
- search: string;
5923
- paging: PAGING;
5924
- page_count: number;
5925
- page_index: number;
5926
- load_parents: LoadParents;
5927
- load_parents_list: string[];
5928
- load_child: LoadChild;
5929
- load_child_list: string[];
5930
- load_child_count: LoadChildCount;
5931
- load_child_count_list: string[];
5932
- include_details: Record<string, any>;
5933
- where_relations: Record<string, any>;
5934
- order_by: {
5935
- name: string;
5936
- field: string;
5937
- direction: OrderBy;
5938
- }[];
5939
- include_master_data: YesNo;
5940
- date_format_id: string;
5941
- time_zone_id: string;
5942
- organisation_ids: string[];
5943
- expense_category: ExpenseCategory[];
5944
- expense_name_ids: string[];
5945
- }, {
5946
- date_format_id: string;
5947
- time_zone_id: string;
5948
- status?: Status[] | undefined;
5949
- search?: string | undefined;
5950
- paging?: PAGING | undefined;
5951
- page_count?: unknown;
5952
- page_index?: unknown;
5953
- load_parents?: LoadParents | undefined;
5954
- load_parents_list?: string[] | undefined;
5955
- load_child?: LoadChild | undefined;
5956
- load_child_list?: string[] | undefined;
5957
- load_child_count?: LoadChildCount | undefined;
5958
- load_child_count_list?: string[] | undefined;
5959
- include_details?: Record<string, any> | undefined;
5960
- where_relations?: Record<string, any> | undefined;
5961
- order_by?: {
5962
- name: string;
5963
- field: string;
5964
- direction: OrderBy;
5965
- }[] | undefined;
5966
- include_master_data?: YesNo | undefined;
5967
- organisation_ids?: string[] | undefined;
5968
- expense_category?: ExpenseCategory[] | undefined;
5969
- expense_name_ids?: string[] | undefined;
5970
- }>;
5971
- type MasterExpenseNameQueryDTO = z.infer<typeof MasterExpenseNameQuerySchema>;
5972
- declare const toMasterExpenseNamePayload: (row: MasterExpenseName) => MasterExpenseNameDTO;
5973
- declare const newMasterExpenseNamePayload: () => MasterExpenseNameDTO;
5974
- declare const findMasterExpenseNames: (data: MasterExpenseNameQueryDTO) => Promise<FBR<MasterExpenseName[]>>;
5975
- declare const createMasterExpenseName: (data: MasterExpenseNameDTO) => Promise<SBR>;
5976
- declare const updateMasterExpenseName: (id: string, data: MasterExpenseNameDTO) => Promise<SBR>;
5977
- declare const deleteMasterExpenseName: (id: string) => Promise<SBR>;
5978
- declare const getMasterExpenseNameCache: (organisation_id: string) => Promise<FBR<MasterExpenseName[]>>;
5979
-
5980
- interface MasterExpenseType extends Record<string, unknown> {
5981
- expense_type_id: string;
5982
- expense_type_name: string;
5983
- description?: string;
5984
- status: Status;
5985
- added_date_time: string;
5986
- modified_date_time: string;
5987
- organisation_id?: string;
5988
- UserOrganisation?: UserOrganisation;
5989
- _count?: object;
5990
- }
5991
- declare const MasterExpenseTypeSchema: z.ZodObject<{
5992
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
5993
- expense_type_name: z.ZodEffects<z.ZodString, string, string>;
5994
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5995
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
5996
- }, "strip", z.ZodTypeAny, {
5997
- status: Status;
5998
- organisation_id: string;
5999
- description: string;
6000
- expense_type_name: string;
6001
- }, {
6002
- status: Status;
6003
- organisation_id: string;
6004
- expense_type_name: string;
6005
- description?: string | undefined;
6006
- }>;
6007
- type MasterExpenseTypeDTO = z.infer<typeof MasterExpenseTypeSchema>;
6008
- declare const MasterExpenseTypeQuerySchema: z.ZodObject<{
6009
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6010
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6011
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6012
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6013
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6014
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6015
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6016
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6017
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6018
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6019
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6020
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6021
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6022
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6023
- name: z.ZodEffects<z.ZodString, string, string>;
6024
- field: z.ZodEffects<z.ZodString, string, string>;
6025
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6026
- }, "strip", z.ZodTypeAny, {
6027
- name: string;
6028
- field: string;
6029
- direction: OrderBy;
6030
- }, {
6031
- name: string;
6032
- field: string;
6033
- direction: OrderBy;
6034
- }>, "many">>>;
6035
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6036
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6037
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6038
- } & {
6039
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6040
- expense_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6041
- }, "strip", z.ZodTypeAny, {
6042
- status: Status[];
6043
- search: string;
6044
- paging: PAGING;
6045
- page_count: number;
6046
- page_index: number;
6047
- load_parents: LoadParents;
6048
- load_parents_list: string[];
6049
- load_child: LoadChild;
6050
- load_child_list: string[];
6051
- load_child_count: LoadChildCount;
6052
- load_child_count_list: string[];
6053
- include_details: Record<string, any>;
6054
- where_relations: Record<string, any>;
6055
- order_by: {
6056
- name: string;
6057
- field: string;
6058
- direction: OrderBy;
6059
- }[];
6060
- include_master_data: YesNo;
6061
- date_format_id: string;
6062
- time_zone_id: string;
6063
- organisation_ids: string[];
6064
- expense_type_ids: string[];
6065
- }, {
6066
- date_format_id: string;
6067
- time_zone_id: string;
6068
- status?: Status[] | undefined;
6069
- search?: string | undefined;
6070
- paging?: PAGING | undefined;
6071
- page_count?: unknown;
6072
- page_index?: unknown;
6073
- load_parents?: LoadParents | undefined;
6074
- load_parents_list?: string[] | undefined;
6075
- load_child?: LoadChild | undefined;
6076
- load_child_list?: string[] | undefined;
6077
- load_child_count?: LoadChildCount | undefined;
6078
- load_child_count_list?: string[] | undefined;
6079
- include_details?: Record<string, any> | undefined;
6080
- where_relations?: Record<string, any> | undefined;
6081
- order_by?: {
6082
- name: string;
6083
- field: string;
6084
- direction: OrderBy;
6085
- }[] | undefined;
6086
- include_master_data?: YesNo | undefined;
6087
- organisation_ids?: string[] | undefined;
6088
- expense_type_ids?: string[] | undefined;
6089
- }>;
6090
- type MasterExpenseTypeQueryDTO = z.infer<typeof MasterExpenseTypeQuerySchema>;
6091
- declare const toMasterExpenseTypePayload: (row: MasterExpenseType) => MasterExpenseTypeDTO;
6092
- declare const newMasterExpenseTypePayload: () => MasterExpenseTypeDTO;
6093
- declare const findMasterExpenseTypes: (data: MasterExpenseTypeQueryDTO) => Promise<FBR<MasterExpenseType[]>>;
6094
- declare const createMasterExpenseType: (data: MasterExpenseTypeDTO) => Promise<SBR>;
6095
- declare const updateMasterExpenseType: (id: string, data: MasterExpenseTypeDTO) => Promise<SBR>;
6096
- declare const deleteMasterExpenseType: (id: string) => Promise<SBR>;
6097
- declare const getMasterExpenseTypeCache: (organisation_id: string) => Promise<FBR<MasterExpenseType[]>>;
6098
-
6099
- interface MasterTyreGrade extends Record<string, unknown> {
6100
- tyre_grade_id: string;
6101
- tyre_grade: string;
6102
- description?: string;
6103
- status: Status;
6104
- added_date_time: string;
6105
- modified_date_time: string;
6106
- organisation_id?: string;
6107
- UserOrganisation?: UserOrganisation;
6108
- _count?: {
6109
- FleetTyreInventory: number;
6110
- };
6111
- }
6112
- declare const MasterTyreGradeSchema: z.ZodObject<{
6113
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6114
- tyre_grade: z.ZodEffects<z.ZodString, string, string>;
6115
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6116
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6117
- }, "strip", z.ZodTypeAny, {
6118
- status: Status;
6119
- organisation_id: string;
6120
- description: string;
6121
- tyre_grade: string;
6122
- }, {
6123
- status: Status;
6124
- organisation_id: string;
6125
- tyre_grade: string;
6126
- description?: string | undefined;
6127
- }>;
6128
- type MasterTyreGradeDTO = z.infer<typeof MasterTyreGradeSchema>;
6129
- declare const MasterTyreGradeQuerySchema: z.ZodObject<{
6130
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6131
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6132
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6133
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6134
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6135
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6136
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6137
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6138
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6139
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6140
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6141
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6142
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6143
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6144
- name: z.ZodEffects<z.ZodString, string, string>;
6145
- field: z.ZodEffects<z.ZodString, string, string>;
6146
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6147
- }, "strip", z.ZodTypeAny, {
6148
- name: string;
6149
- field: string;
6150
- direction: OrderBy;
6151
- }, {
6152
- name: string;
6153
- field: string;
6154
- direction: OrderBy;
6155
- }>, "many">>>;
6156
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6157
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6158
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6159
- } & {
6160
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6161
- tyre_grade_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6162
- }, "strip", z.ZodTypeAny, {
6163
- status: Status[];
6164
- search: string;
6165
- paging: PAGING;
6166
- page_count: number;
6167
- page_index: number;
6168
- load_parents: LoadParents;
6169
- load_parents_list: string[];
6170
- load_child: LoadChild;
6171
- load_child_list: string[];
6172
- load_child_count: LoadChildCount;
6173
- load_child_count_list: string[];
6174
- include_details: Record<string, any>;
6175
- where_relations: Record<string, any>;
6176
- order_by: {
6177
- name: string;
6178
- field: string;
6179
- direction: OrderBy;
6180
- }[];
6181
- include_master_data: YesNo;
6182
- date_format_id: string;
6183
- time_zone_id: string;
6184
- organisation_ids: string[];
6185
- tyre_grade_ids: string[];
6186
- }, {
6187
- date_format_id: string;
6188
- time_zone_id: string;
6189
- status?: Status[] | undefined;
6190
- search?: string | undefined;
6191
- paging?: PAGING | undefined;
6192
- page_count?: unknown;
6193
- page_index?: unknown;
6194
- load_parents?: LoadParents | undefined;
6195
- load_parents_list?: string[] | undefined;
6196
- load_child?: LoadChild | undefined;
6197
- load_child_list?: string[] | undefined;
6198
- load_child_count?: LoadChildCount | undefined;
6199
- load_child_count_list?: string[] | undefined;
6200
- include_details?: Record<string, any> | undefined;
6201
- where_relations?: Record<string, any> | undefined;
6202
- order_by?: {
6203
- name: string;
6204
- field: string;
6205
- direction: OrderBy;
6206
- }[] | undefined;
6207
- include_master_data?: YesNo | undefined;
6208
- organisation_ids?: string[] | undefined;
6209
- tyre_grade_ids?: string[] | undefined;
6210
- }>;
6211
- type MasterTyreGradeQueryDTO = z.infer<typeof MasterTyreGradeQuerySchema>;
6212
- declare const toMasterTyreGradePayload: (row: MasterTyreGrade) => MasterTyreGradeDTO;
6213
- declare const newMasterTyreGradePayload: () => MasterTyreGradeDTO;
6214
- declare const findMasterTyreGrades: (data: MasterTyreGradeQueryDTO) => Promise<FBR<MasterTyreGrade[]>>;
6215
- declare const createMasterTyreGrade: (data: MasterTyreGradeDTO) => Promise<SBR>;
6216
- declare const updateMasterTyreGrade: (id: string, data: MasterTyreGradeDTO) => Promise<SBR>;
6217
- declare const deleteMasterTyreGrade: (id: string) => Promise<SBR>;
6218
- declare const getMasterTyreGradeCache: (organisation_id: string) => Promise<FBR<MasterTyreGrade[]>>;
6219
- declare const getMasterTyreGradeCacheCount: (organisation_id: string) => Promise<FBR<MasterTyreGrade[]>>;
6220
-
6221
- interface MasterTyreModel extends Record<string, unknown> {
6222
- tyre_model_id: string;
6223
- tyre_model: string;
6224
- description?: string;
6225
- status: Status;
6226
- added_date_time: string;
6227
- modified_date_time: string;
6228
- organisation_id?: string;
6229
- UserOrganisation?: UserOrganisation;
6230
- tyre_make_id: string;
6231
- MasterTyreMake?: MasterTyreMake;
6232
- _count?: {
6233
- FleetTyreInventory: number;
6234
- };
6235
- }
6236
- declare const MasterTyreModelSchema: z.ZodObject<{
6237
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6238
- tyre_make_id: z.ZodEffects<z.ZodString, string, string>;
6239
- tyre_model: z.ZodEffects<z.ZodString, string, string>;
6240
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6241
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6242
- }, "strip", z.ZodTypeAny, {
6243
- status: Status;
6244
- organisation_id: string;
6245
- description: string;
6246
- tyre_model: string;
6247
- tyre_make_id: string;
6248
- }, {
6249
- status: Status;
6250
- organisation_id: string;
6251
- tyre_model: string;
6252
- tyre_make_id: string;
6253
- description?: string | undefined;
6254
- }>;
6255
- type MasterTyreModelDTO = z.infer<typeof MasterTyreModelSchema>;
6256
- declare const MasterTyreModelQuerySchema: z.ZodObject<{
6257
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6258
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6259
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6260
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6261
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6262
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6263
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6264
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6265
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6266
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6267
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6268
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6269
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6270
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6271
- name: z.ZodEffects<z.ZodString, string, string>;
6272
- field: z.ZodEffects<z.ZodString, string, string>;
6273
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6274
- }, "strip", z.ZodTypeAny, {
6275
- name: string;
6276
- field: string;
6277
- direction: OrderBy;
6278
- }, {
6279
- name: string;
6280
- field: string;
6281
- direction: OrderBy;
6282
- }>, "many">>>;
6283
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6284
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6285
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6286
- } & {
6287
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6288
- tyre_make_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6289
- tyre_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6290
- }, "strip", z.ZodTypeAny, {
6291
- status: Status[];
6292
- search: string;
6293
- paging: PAGING;
6294
- page_count: number;
6295
- page_index: number;
6296
- load_parents: LoadParents;
6297
- load_parents_list: string[];
6298
- load_child: LoadChild;
6299
- load_child_list: string[];
6300
- load_child_count: LoadChildCount;
6301
- load_child_count_list: string[];
6302
- include_details: Record<string, any>;
6303
- where_relations: Record<string, any>;
6304
- order_by: {
6305
- name: string;
6306
- field: string;
6307
- direction: OrderBy;
6308
- }[];
6309
- include_master_data: YesNo;
6310
- date_format_id: string;
6311
- time_zone_id: string;
6312
- organisation_ids: string[];
6313
- tyre_make_ids: string[];
6314
- tyre_model_ids: string[];
6315
- }, {
6316
- date_format_id: string;
6317
- time_zone_id: string;
6318
- status?: Status[] | undefined;
6319
- search?: string | undefined;
6320
- paging?: PAGING | undefined;
6321
- page_count?: unknown;
6322
- page_index?: unknown;
6323
- load_parents?: LoadParents | undefined;
6324
- load_parents_list?: string[] | undefined;
6325
- load_child?: LoadChild | undefined;
6326
- load_child_list?: string[] | undefined;
6327
- load_child_count?: LoadChildCount | undefined;
6328
- load_child_count_list?: string[] | undefined;
6329
- include_details?: Record<string, any> | undefined;
6330
- where_relations?: Record<string, any> | undefined;
6331
- order_by?: {
6332
- name: string;
6333
- field: string;
6334
- direction: OrderBy;
6335
- }[] | undefined;
6336
- include_master_data?: YesNo | undefined;
6337
- organisation_ids?: string[] | undefined;
6338
- tyre_make_ids?: string[] | undefined;
6339
- tyre_model_ids?: string[] | undefined;
6340
- }>;
6341
- type MasterTyreModelQueryDTO = z.infer<typeof MasterTyreModelQuerySchema>;
6342
- declare const toMasterTyreModelPayload: (row: MasterTyreModel) => MasterTyreModelDTO;
6343
- declare const newMasterTyreModelPayload: () => MasterTyreModelDTO;
6344
- declare const findMasterTyreModels: (data: MasterTyreModelQueryDTO) => Promise<FBR<MasterTyreModel[]>>;
6345
- declare const createMasterTyreModel: (data: MasterTyreModelDTO) => Promise<SBR>;
6346
- declare const updateMasterTyreModel: (id: string, data: MasterTyreModelDTO) => Promise<SBR>;
6347
- declare const deleteMasterTyreModel: (id: string) => Promise<SBR>;
6348
- declare const getMasterTyreModelCache: (organisation_id: string, tyre_make_id?: string) => Promise<FBR<MasterTyreModel[]>>;
6349
- declare const getMasterTyreModelCacheCount: (organisation_id: string, tyre_make_id?: string) => Promise<FBR<MasterTyreModel[]>>;
6350
-
6351
- interface MasterTyreMake extends Record<string, unknown> {
6352
- tyre_make_id: string;
6353
- tyre_make: string;
6354
- description?: string;
6355
- status: Status;
6356
- added_date_time: string;
6357
- modified_date_time: string;
6358
- organisation_id?: string;
6359
- UserOrganisation?: UserOrganisation;
6360
- MasterTyreModel: MasterTyreModel[];
6361
- _count?: {
6362
- MasterTyreModel: number;
6363
- FleetTyreInventory: number;
6364
- };
6365
- }
6366
- declare const MasterTyreMakeSchema: z.ZodObject<{
6367
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6368
- tyre_make: z.ZodEffects<z.ZodString, string, string>;
6369
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6370
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6371
- }, "strip", z.ZodTypeAny, {
6372
- status: Status;
6373
- organisation_id: string;
6374
- description: string;
6375
- tyre_make: string;
6376
- }, {
6377
- status: Status;
6378
- organisation_id: string;
6379
- tyre_make: string;
6380
- description?: string | undefined;
6381
- }>;
6382
- type MasterTyreMakeDTO = z.infer<typeof MasterTyreMakeSchema>;
6383
- declare const MasterTyreMakeQuerySchema: z.ZodObject<{
6384
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6385
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6386
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6387
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6388
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6389
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6390
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6391
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6392
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6393
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6394
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6395
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6396
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6397
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6398
- name: z.ZodEffects<z.ZodString, string, string>;
6399
- field: z.ZodEffects<z.ZodString, string, string>;
6400
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6401
- }, "strip", z.ZodTypeAny, {
6402
- name: string;
6403
- field: string;
6404
- direction: OrderBy;
6405
- }, {
6406
- name: string;
6407
- field: string;
6408
- direction: OrderBy;
6409
- }>, "many">>>;
6410
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6411
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6412
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6413
- } & {
6414
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6415
- tyre_make_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6416
- }, "strip", z.ZodTypeAny, {
6417
- status: Status[];
6418
- search: string;
6419
- paging: PAGING;
6420
- page_count: number;
6421
- page_index: number;
6422
- load_parents: LoadParents;
6423
- load_parents_list: string[];
6424
- load_child: LoadChild;
6425
- load_child_list: string[];
6426
- load_child_count: LoadChildCount;
6427
- load_child_count_list: string[];
6428
- include_details: Record<string, any>;
6429
- where_relations: Record<string, any>;
6430
- order_by: {
6431
- name: string;
6432
- field: string;
6433
- direction: OrderBy;
6434
- }[];
6435
- include_master_data: YesNo;
6436
- date_format_id: string;
6437
- time_zone_id: string;
6438
- organisation_ids: string[];
6439
- tyre_make_ids: string[];
6440
- }, {
6441
- date_format_id: string;
6442
- time_zone_id: string;
6443
- status?: Status[] | undefined;
6444
- search?: string | undefined;
6445
- paging?: PAGING | undefined;
6446
- page_count?: unknown;
6447
- page_index?: unknown;
6448
- load_parents?: LoadParents | undefined;
6449
- load_parents_list?: string[] | undefined;
6450
- load_child?: LoadChild | undefined;
6451
- load_child_list?: string[] | undefined;
6452
- load_child_count?: LoadChildCount | undefined;
6453
- load_child_count_list?: string[] | undefined;
6454
- include_details?: Record<string, any> | undefined;
6455
- where_relations?: Record<string, any> | undefined;
6456
- order_by?: {
6457
- name: string;
6458
- field: string;
6459
- direction: OrderBy;
6460
- }[] | undefined;
6461
- include_master_data?: YesNo | undefined;
6462
- organisation_ids?: string[] | undefined;
6463
- tyre_make_ids?: string[] | undefined;
6464
- }>;
6465
- type MasterTyreMakeQueryDTO = z.infer<typeof MasterTyreMakeQuerySchema>;
6466
- declare const toMasterTyreMakePayload: (row: MasterTyreMake) => MasterTyreMakeDTO;
6467
- declare const newMasterTyreMakePayload: () => MasterTyreMakeDTO;
6468
- declare const findMasterTyreMakes: (data: MasterTyreMakeQueryDTO) => Promise<FBR<MasterTyreMake[]>>;
6469
- declare const createMasterTyreMake: (data: MasterTyreMakeDTO) => Promise<SBR>;
6470
- declare const updateMasterTyreMake: (id: string, data: MasterTyreMakeDTO) => Promise<SBR>;
6471
- declare const deleteMasterTyreMake: (id: string) => Promise<SBR>;
6472
- declare const getMasterTyreMakeCache: (organisation_id: string) => Promise<FBR<MasterTyreMake[]>>;
6473
- declare const getMasterTyreMakeCacheCount: (organisation_id: string) => Promise<FBR<number>>;
6474
- declare const getMasterTyreMakeCacheChild: (organisation_id: string) => Promise<FBR<MasterTyreMake[]>>;
6475
-
6476
- interface MasterFleetIncidentType extends Record<string, unknown> {
6477
- fleet_incident_type_id: string;
6478
- fleet_incident_type: string;
6479
- description?: string;
6480
- status: Status;
6481
- added_date_time: string;
6482
- modified_date_time: string;
6483
- organisation_id?: string;
6484
- UserOrganisation?: UserOrganisation;
6485
- _count?: {
6486
- FleetIncidentManagement: number;
6487
- };
6488
- }
6489
- declare const MasterFleetIncidentTypeSchema: z.ZodObject<{
6490
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6491
- fleet_incident_type: z.ZodEffects<z.ZodString, string, string>;
6492
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6493
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6494
- }, "strip", z.ZodTypeAny, {
6495
- status: Status;
6496
- organisation_id: string;
6497
- description: string;
6498
- fleet_incident_type: string;
6499
- }, {
6500
- status: Status;
6501
- organisation_id: string;
6502
- fleet_incident_type: string;
6503
- description?: string | undefined;
6504
- }>;
6505
- type MasterFleetIncidentTypeDTO = z.infer<typeof MasterFleetIncidentTypeSchema>;
6506
- declare const MasterFleetIncidentTypeQuerySchema: z.ZodObject<{
6507
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6508
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6509
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6510
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6511
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6512
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6513
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6514
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6515
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6516
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6517
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6518
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6519
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6520
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6521
- name: z.ZodEffects<z.ZodString, string, string>;
6522
- field: z.ZodEffects<z.ZodString, string, string>;
6523
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6524
- }, "strip", z.ZodTypeAny, {
6525
- name: string;
6526
- field: string;
6527
- direction: OrderBy;
6528
- }, {
6529
- name: string;
6530
- field: string;
6531
- direction: OrderBy;
6532
- }>, "many">>>;
6533
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6534
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6535
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6536
- } & {
6537
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6538
- fleet_incident_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6539
- }, "strip", z.ZodTypeAny, {
6540
- status: Status[];
6541
- search: string;
6542
- paging: PAGING;
6543
- page_count: number;
6544
- page_index: number;
6545
- load_parents: LoadParents;
6546
- load_parents_list: string[];
6547
- load_child: LoadChild;
6548
- load_child_list: string[];
6549
- load_child_count: LoadChildCount;
6550
- load_child_count_list: string[];
6551
- include_details: Record<string, any>;
6552
- where_relations: Record<string, any>;
6553
- order_by: {
6554
- name: string;
6555
- field: string;
6556
- direction: OrderBy;
6557
- }[];
6558
- include_master_data: YesNo;
6559
- date_format_id: string;
6560
- time_zone_id: string;
6561
- organisation_ids: string[];
6562
- fleet_incident_type_ids: string[];
6563
- }, {
6564
- date_format_id: string;
6565
- time_zone_id: string;
6566
- status?: Status[] | undefined;
6567
- search?: string | undefined;
6568
- paging?: PAGING | undefined;
6569
- page_count?: unknown;
6570
- page_index?: unknown;
6571
- load_parents?: LoadParents | undefined;
6572
- load_parents_list?: string[] | undefined;
6573
- load_child?: LoadChild | undefined;
6574
- load_child_list?: string[] | undefined;
6575
- load_child_count?: LoadChildCount | undefined;
6576
- load_child_count_list?: string[] | undefined;
6577
- include_details?: Record<string, any> | undefined;
6578
- where_relations?: Record<string, any> | undefined;
6579
- order_by?: {
6580
- name: string;
6581
- field: string;
6582
- direction: OrderBy;
6583
- }[] | undefined;
6584
- include_master_data?: YesNo | undefined;
6585
- organisation_ids?: string[] | undefined;
6586
- fleet_incident_type_ids?: string[] | undefined;
6587
- }>;
6588
- type MasterFleetIncidentTypeQueryDTO = z.infer<typeof MasterFleetIncidentTypeQuerySchema>;
6589
- declare const toMasterFleetIncidentTypePayload: (row: MasterFleetIncidentType) => MasterFleetIncidentTypeDTO;
6590
- declare const newMasterFleetIncidentTypePayload: () => MasterFleetIncidentTypeDTO;
6591
- declare const findMasterFleetIncidentTypes: (data: MasterFleetIncidentTypeQueryDTO) => Promise<FBR<MasterFleetIncidentType[]>>;
6592
- declare const createMasterFleetIncidentType: (data: MasterFleetIncidentTypeDTO) => Promise<SBR>;
6593
- declare const updateMasterFleetIncidentType: (id: string, data: MasterFleetIncidentTypeDTO) => Promise<SBR>;
6594
- declare const deleteMasterFleetIncidentType: (id: string) => Promise<SBR>;
6595
- declare const getMasterFleetIncidentTypeCache: (organisation_id: string) => Promise<FBR<MasterFleetIncidentType[]>>;
6596
-
6597
- interface MasterFleetIncidentStatus extends Record<string, unknown> {
6598
- fleet_incident_status_id: string;
6599
- fleet_incident_status: string;
6600
- description?: string;
6601
- status: Status;
6602
- added_date_time: string;
6603
- modified_date_time: string;
6604
- organisation_id?: string;
6605
- UserOrganisation?: UserOrganisation;
6606
- _count?: {
6607
- FleetIncidentManagement: number;
6608
- };
6609
- }
6610
- declare const MasterFleetIncidentStatusSchema: z.ZodObject<{
6611
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6612
- fleet_incident_status: z.ZodEffects<z.ZodString, string, string>;
6613
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6614
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6615
- }, "strip", z.ZodTypeAny, {
6616
- status: Status;
6617
- organisation_id: string;
6618
- description: string;
6619
- fleet_incident_status: string;
6620
- }, {
6621
- status: Status;
6622
- organisation_id: string;
6623
- fleet_incident_status: string;
6624
- description?: string | undefined;
6625
- }>;
6626
- type MasterFleetIncidentStatusDTO = z.infer<typeof MasterFleetIncidentStatusSchema>;
6627
- declare const MasterFleetIncidentStatusQuerySchema: z.ZodObject<{
6628
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6629
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6630
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6631
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6632
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6633
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6634
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6635
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6636
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6637
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6638
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6639
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6640
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6641
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6642
- name: z.ZodEffects<z.ZodString, string, string>;
6643
- field: z.ZodEffects<z.ZodString, string, string>;
6644
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6645
- }, "strip", z.ZodTypeAny, {
6646
- name: string;
6647
- field: string;
6648
- direction: OrderBy;
6649
- }, {
6650
- name: string;
6651
- field: string;
6652
- direction: OrderBy;
6653
- }>, "many">>>;
6654
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6655
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6656
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6657
- } & {
6658
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6659
- fleet_incident_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6660
- }, "strip", z.ZodTypeAny, {
6661
- status: Status[];
6662
- search: string;
6663
- paging: PAGING;
6664
- page_count: number;
6665
- page_index: number;
6666
- load_parents: LoadParents;
6667
- load_parents_list: string[];
6668
- load_child: LoadChild;
6669
- load_child_list: string[];
6670
- load_child_count: LoadChildCount;
6671
- load_child_count_list: string[];
6672
- include_details: Record<string, any>;
6673
- where_relations: Record<string, any>;
6674
- order_by: {
6675
- name: string;
6676
- field: string;
6677
- direction: OrderBy;
6678
- }[];
6679
- include_master_data: YesNo;
6680
- date_format_id: string;
6681
- time_zone_id: string;
6682
- organisation_ids: string[];
6683
- fleet_incident_status_ids: string[];
6684
- }, {
6685
- date_format_id: string;
6686
- time_zone_id: string;
6687
- status?: Status[] | undefined;
6688
- search?: string | undefined;
6689
- paging?: PAGING | undefined;
6690
- page_count?: unknown;
6691
- page_index?: unknown;
6692
- load_parents?: LoadParents | undefined;
6693
- load_parents_list?: string[] | undefined;
6694
- load_child?: LoadChild | undefined;
6695
- load_child_list?: string[] | undefined;
6696
- load_child_count?: LoadChildCount | undefined;
6697
- load_child_count_list?: string[] | undefined;
6698
- include_details?: Record<string, any> | undefined;
6699
- where_relations?: Record<string, any> | undefined;
6700
- order_by?: {
6701
- name: string;
6702
- field: string;
6703
- direction: OrderBy;
6704
- }[] | undefined;
6705
- include_master_data?: YesNo | undefined;
6706
- organisation_ids?: string[] | undefined;
6707
- fleet_incident_status_ids?: string[] | undefined;
6708
- }>;
6709
- type MasterFleetIncidentStatusQueryDTO = z.infer<typeof MasterFleetIncidentStatusQuerySchema>;
6710
- declare const toMasterFleetIncidentStatusPayload: (row: MasterFleetIncidentStatus) => MasterFleetIncidentStatusDTO;
6711
- declare const newMasterFleetIncidentStatusPayload: () => MasterFleetIncidentStatusDTO;
6712
- declare const findMasterFleetIncidentStatuses: (data: MasterFleetIncidentStatusQueryDTO) => Promise<FBR<MasterFleetIncidentStatus[]>>;
6713
- declare const createMasterFleetIncidentStatus: (data: MasterFleetIncidentStatusDTO) => Promise<SBR>;
6714
- declare const updateMasterFleetIncidentStatus: (id: string, data: MasterFleetIncidentStatusDTO) => Promise<SBR>;
6715
- declare const deleteMasterFleetIncidentStatus: (id: string) => Promise<SBR>;
6716
- declare const getMasterFleetIncidentStatusCache: (organisation_id: string) => Promise<FBR<MasterFleetIncidentStatus[]>>;
6717
-
6718
- interface MasterFleetIncidentSeverity extends Record<string, unknown> {
6719
- fleet_incident_severity_id: string;
6720
- fleet_incident_severity: string;
6721
- description?: string;
6722
- status: Status;
6723
- added_date_time: string;
6724
- modified_date_time: string;
6725
- organisation_id?: string;
6726
- UserOrganisation?: UserOrganisation;
6727
- _count?: {
6728
- FleetIncidentManagement: number;
6729
- };
6730
- }
6731
- declare const MasterFleetIncidentSeveritySchema: z.ZodObject<{
6732
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6733
- fleet_incident_severity: z.ZodEffects<z.ZodString, string, string>;
6734
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6735
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6736
- }, "strip", z.ZodTypeAny, {
6737
- status: Status;
6738
- organisation_id: string;
6739
- description: string;
6740
- fleet_incident_severity: string;
6741
- }, {
6742
- status: Status;
6743
- organisation_id: string;
6744
- fleet_incident_severity: string;
6745
- description?: string | undefined;
6746
- }>;
6747
- type MasterFleetIncidentSeverityDTO = z.infer<typeof MasterFleetIncidentSeveritySchema>;
6748
- declare const MasterFleetIncidentSeverityQuerySchema: z.ZodObject<{
6749
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6750
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6751
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6752
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6753
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6754
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6755
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6756
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6757
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6758
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6759
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6760
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6761
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6762
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6763
- name: z.ZodEffects<z.ZodString, string, string>;
6764
- field: z.ZodEffects<z.ZodString, string, string>;
6765
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6766
- }, "strip", z.ZodTypeAny, {
6767
- name: string;
6768
- field: string;
6769
- direction: OrderBy;
6770
- }, {
6771
- name: string;
6772
- field: string;
6773
- direction: OrderBy;
6774
- }>, "many">>>;
6775
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6776
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6777
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6778
- } & {
6779
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6780
- fleet_incident_severity_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6781
- }, "strip", z.ZodTypeAny, {
6782
- status: Status[];
6783
- search: string;
6784
- paging: PAGING;
6785
- page_count: number;
6786
- page_index: number;
6787
- load_parents: LoadParents;
6788
- load_parents_list: string[];
6789
- load_child: LoadChild;
6790
- load_child_list: string[];
6791
- load_child_count: LoadChildCount;
6792
- load_child_count_list: string[];
6793
- include_details: Record<string, any>;
6794
- where_relations: Record<string, any>;
6795
- order_by: {
6796
- name: string;
6797
- field: string;
6798
- direction: OrderBy;
6799
- }[];
6800
- include_master_data: YesNo;
6801
- date_format_id: string;
6802
- time_zone_id: string;
6803
- organisation_ids: string[];
6804
- fleet_incident_severity_ids: string[];
6805
- }, {
6806
- date_format_id: string;
6807
- time_zone_id: string;
6808
- status?: Status[] | undefined;
6809
- search?: string | undefined;
6810
- paging?: PAGING | undefined;
6811
- page_count?: unknown;
6812
- page_index?: unknown;
6813
- load_parents?: LoadParents | undefined;
6814
- load_parents_list?: string[] | undefined;
6815
- load_child?: LoadChild | undefined;
6816
- load_child_list?: string[] | undefined;
6817
- load_child_count?: LoadChildCount | undefined;
6818
- load_child_count_list?: string[] | undefined;
6819
- include_details?: Record<string, any> | undefined;
6820
- where_relations?: Record<string, any> | undefined;
6821
- order_by?: {
6822
- name: string;
6823
- field: string;
6824
- direction: OrderBy;
6825
- }[] | undefined;
6826
- include_master_data?: YesNo | undefined;
6827
- organisation_ids?: string[] | undefined;
6828
- fleet_incident_severity_ids?: string[] | undefined;
6829
- }>;
6830
- type MasterFleetIncidentSeverityQueryDTO = z.infer<typeof MasterFleetIncidentSeverityQuerySchema>;
6831
- declare const toMasterFleetIncidentSeverityPayload: (row: MasterFleetIncidentSeverity) => MasterFleetIncidentSeverityDTO;
6832
- declare const newMasterFleetIncidentSeverityPayload: () => MasterFleetIncidentSeverityDTO;
6833
- declare const findMasterFleetIncidentSeverities: (data: MasterFleetIncidentSeverityQueryDTO) => Promise<FBR<MasterFleetIncidentSeverity[]>>;
6834
- declare const createMasterFleetIncidentSeverity: (data: MasterFleetIncidentSeverityDTO) => Promise<SBR>;
6835
- declare const updateMasterFleetIncidentSeverity: (id: string, data: MasterFleetIncidentSeverityDTO) => Promise<SBR>;
6836
- declare const deleteMasterFleetIncidentSeverity: (id: string) => Promise<SBR>;
6837
- declare const getMasterFleetIncidentSeverityCache: (organisation_id: string) => Promise<FBR<MasterFleetIncidentSeverity[]>>;
6838
-
6839
- interface MasterFleetInsuranceClaimStatus extends Record<string, unknown> {
6840
- fleet_insurance_claim_status_id: string;
6841
- fleet_insurance_claim_status: string;
6842
- description?: string;
6843
- status: Status;
6844
- added_date_time: string;
6845
- modified_date_time: string;
6846
- organisation_id?: string;
6847
- UserOrganisation?: UserOrganisation;
6848
- _count?: {
6849
- FleetIncidentManagement: number;
6850
- };
6851
- }
6852
- declare const MasterFleetInsuranceClaimStatusSchema: z.ZodObject<{
6853
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6854
- fleet_insurance_claim_status: z.ZodEffects<z.ZodString, string, string>;
6855
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6856
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
6857
- }, "strip", z.ZodTypeAny, {
6858
- status: Status;
6859
- organisation_id: string;
6860
- description: string;
6861
- fleet_insurance_claim_status: string;
6862
- }, {
6863
- status: Status;
6864
- organisation_id: string;
6865
- fleet_insurance_claim_status: string;
6866
- description?: string | undefined;
6867
- }>;
6868
- type MasterFleetInsuranceClaimStatusDTO = z.infer<typeof MasterFleetInsuranceClaimStatusSchema>;
6869
- declare const MasterFleetInsuranceClaimStatusQuerySchema: z.ZodObject<{
6870
- search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6871
- status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6872
- paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
6873
- page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6874
- page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
6875
- load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
6876
- load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6877
- load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
6878
- load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6879
- load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
6880
- load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6881
- include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6882
- where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
6883
- order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
6884
- name: z.ZodEffects<z.ZodString, string, string>;
6885
- field: z.ZodEffects<z.ZodString, string, string>;
6886
- direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
6887
- }, "strip", z.ZodTypeAny, {
6888
- name: string;
6889
- field: string;
6890
- direction: OrderBy;
6891
- }, {
6892
- name: string;
6893
- field: string;
6894
- direction: OrderBy;
6895
- }>, "many">>>;
6896
- include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
6897
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
6898
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6899
- } & {
6900
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6901
- fleet_insurance_claim_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6902
- }, "strip", z.ZodTypeAny, {
6903
- status: Status[];
6904
- search: string;
6905
- paging: PAGING;
6906
- page_count: number;
6907
- page_index: number;
6908
- load_parents: LoadParents;
6909
- load_parents_list: string[];
6910
- load_child: LoadChild;
6911
- load_child_list: string[];
6912
- load_child_count: LoadChildCount;
6913
- load_child_count_list: string[];
6914
- include_details: Record<string, any>;
6915
- where_relations: Record<string, any>;
6916
- order_by: {
6917
- name: string;
6918
- field: string;
6919
- direction: OrderBy;
6920
- }[];
6921
- include_master_data: YesNo;
6922
- date_format_id: string;
6923
- time_zone_id: string;
6924
- organisation_ids: string[];
6925
- fleet_insurance_claim_status_ids: string[];
4967
+ }, "strip", z.ZodTypeAny, {
4968
+ status: Status;
4969
+ purchase_date: string;
4970
+ purchase_notes: string;
4971
+ purchase_vehicle_type: PurchaseVehicleType;
4972
+ purchase_type: PurchaseType;
4973
+ loan_no_of_installments: number;
4974
+ loan_first_payment_date: string;
4975
+ loan_last_payment_date: string;
4976
+ loan_emi_date: number;
4977
+ lease_start_date: string;
4978
+ lease_end_date: string;
4979
+ lease_emi_date: number;
4980
+ warranty_expiration_date: string;
4981
+ warranty_max_odometer_reading: number;
4982
+ warranty_exchange_date: string;
4983
+ purchase_vendor_id: string;
4984
+ loan_lender_id: string;
4985
+ lease_vendor_id: string;
4986
+ purchase_total_amount?: number | undefined;
4987
+ loan_amount?: number | undefined;
4988
+ loan_down_payment?: number | undefined;
4989
+ loan_interest_rate?: number | undefined;
4990
+ loan_monthly_emi?: number | undefined;
4991
+ lease_security_deposit_amount?: number | undefined;
4992
+ lease_monthly_emi_amount?: number | undefined;
6926
4993
  }, {
6927
- date_format_id: string;
6928
- time_zone_id: string;
6929
- status?: Status[] | undefined;
6930
- search?: string | undefined;
6931
- paging?: PAGING | undefined;
6932
- page_count?: unknown;
6933
- page_index?: unknown;
6934
- load_parents?: LoadParents | undefined;
6935
- load_parents_list?: string[] | undefined;
6936
- load_child?: LoadChild | undefined;
6937
- load_child_list?: string[] | undefined;
6938
- load_child_count?: LoadChildCount | undefined;
6939
- load_child_count_list?: string[] | undefined;
6940
- include_details?: Record<string, any> | undefined;
6941
- where_relations?: Record<string, any> | undefined;
6942
- order_by?: {
6943
- name: string;
6944
- field: string;
6945
- direction: OrderBy;
6946
- }[] | undefined;
6947
- include_master_data?: YesNo | undefined;
6948
- organisation_ids?: string[] | undefined;
6949
- fleet_insurance_claim_status_ids?: string[] | undefined;
6950
- }>;
6951
- type MasterFleetInsuranceClaimStatusQueryDTO = z.infer<typeof MasterFleetInsuranceClaimStatusQuerySchema>;
6952
- declare const toMasterFleetInsuranceClaimStatusPayload: (row: MasterFleetInsuranceClaimStatus) => MasterFleetInsuranceClaimStatusDTO;
6953
- declare const newMasterFleetInsuranceClaimStatusPayload: () => MasterFleetInsuranceClaimStatusDTO;
6954
- declare const findMasterFleetInsuranceClaimStatuses: (data: MasterFleetInsuranceClaimStatusQueryDTO) => Promise<FBR<MasterFleetInsuranceClaimStatus[]>>;
6955
- declare const createMasterFleetInsuranceClaimStatus: (data: MasterFleetInsuranceClaimStatusDTO) => Promise<SBR>;
6956
- declare const updateMasterFleetInsuranceClaimStatus: (id: string, data: MasterFleetInsuranceClaimStatusDTO) => Promise<SBR>;
6957
- declare const deleteMasterFleetInsuranceClaimStatus: (id: string) => Promise<SBR>;
6958
- declare const getMasterFleetInsuranceClaimStatusCache: (organisation_id: string) => Promise<FBR<MasterFleetInsuranceClaimStatus[]>>;
6959
-
6960
- interface MasterFleetServiceTask extends Record<string, unknown> {
6961
- fleet_service_task_id: string;
6962
- fleet_service_task: string;
6963
- description?: string;
6964
4994
  status: Status;
6965
- added_date_time: string;
6966
- modified_date_time: string;
6967
- organisation_id?: string;
6968
- UserOrganisation?: UserOrganisation;
6969
- _count?: {
6970
- FleetServiceJobCardTask: number;
6971
- };
6972
- }
6973
- declare const MasterFleetServiceTaskSchema: z.ZodObject<{
6974
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
6975
- fleet_service_task: z.ZodEffects<z.ZodString, string, string>;
6976
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
4995
+ purchase_vendor_id: string;
4996
+ loan_lender_id: string;
4997
+ lease_vendor_id: string;
4998
+ purchase_date?: string | undefined;
4999
+ purchase_notes?: string | undefined;
5000
+ purchase_vehicle_type?: PurchaseVehicleType | undefined;
5001
+ purchase_type?: PurchaseType | undefined;
5002
+ purchase_total_amount?: unknown;
5003
+ loan_amount?: unknown;
5004
+ loan_down_payment?: unknown;
5005
+ loan_interest_rate?: unknown;
5006
+ loan_no_of_installments?: unknown;
5007
+ loan_first_payment_date?: string | undefined;
5008
+ loan_last_payment_date?: string | undefined;
5009
+ loan_monthly_emi?: unknown;
5010
+ loan_emi_date?: unknown;
5011
+ lease_start_date?: string | undefined;
5012
+ lease_end_date?: string | undefined;
5013
+ lease_security_deposit_amount?: unknown;
5014
+ lease_monthly_emi_amount?: unknown;
5015
+ lease_emi_date?: unknown;
5016
+ warranty_expiration_date?: string | undefined;
5017
+ warranty_max_odometer_reading?: unknown;
5018
+ warranty_exchange_date?: string | undefined;
5019
+ }>;
5020
+ type VehicleDetailPurchaseDTO = z.infer<typeof VehicleDetailPurchaseSchema>;
5021
+ declare const VehicleDetailTripSchema: z.ZodObject<{
5022
+ trip_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5023
+ trip_no: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5024
+ eway_bill_number: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5025
+ route_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5026
+ trip_start_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
5027
+ trip_end_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
5028
+ trip_notes_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5029
+ trip_notes_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5030
+ trip_notes_3: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6977
5031
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
6978
5032
  }, "strip", z.ZodTypeAny, {
6979
5033
  status: Status;
6980
- organisation_id: string;
6981
- description: string;
6982
- fleet_service_task: string;
5034
+ trip_name: string;
5035
+ trip_no: string;
5036
+ eway_bill_number: string;
5037
+ route_name: string;
5038
+ trip_start_date: string;
5039
+ trip_end_date: string;
5040
+ trip_notes_1: string;
5041
+ trip_notes_2: string;
5042
+ trip_notes_3: string;
6983
5043
  }, {
6984
5044
  status: Status;
6985
- organisation_id: string;
6986
- fleet_service_task: string;
6987
- description?: string | undefined;
5045
+ trip_name?: string | undefined;
5046
+ trip_no?: string | undefined;
5047
+ eway_bill_number?: string | undefined;
5048
+ route_name?: string | undefined;
5049
+ trip_start_date?: string | undefined;
5050
+ trip_end_date?: string | undefined;
5051
+ trip_notes_1?: string | undefined;
5052
+ trip_notes_2?: string | undefined;
5053
+ trip_notes_3?: string | undefined;
6988
5054
  }>;
6989
- type MasterFleetServiceTaskDTO = z.infer<typeof MasterFleetServiceTaskSchema>;
6990
- declare const MasterFleetServiceTaskQuerySchema: z.ZodObject<{
5055
+ type VehicleDetailTripDTO = z.infer<typeof VehicleDetailTripSchema>;
5056
+ declare const VehicleQuerySchema: z.ZodObject<{
6991
5057
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6992
5058
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
6993
5059
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7019,7 +5085,22 @@ declare const MasterFleetServiceTaskQuerySchema: z.ZodObject<{
7019
5085
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7020
5086
  } & {
7021
5087
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7022
- fleet_service_task_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5088
+ driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5089
+ device_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5090
+ organisation_sub_company_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5091
+ organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5092
+ organisation_tag_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5093
+ organisation_color_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5094
+ vehicle_make_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5095
+ vehicle_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5096
+ vehicle_sub_model_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5097
+ vehicle_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5098
+ vehicle_status_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5099
+ vehicle_ownership_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5100
+ vehicle_fuel_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5101
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5102
+ is_device_installed: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5103
+ is_driver_assigned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
7023
5104
  }, "strip", z.ZodTypeAny, {
7024
5105
  status: Status[];
7025
5106
  search: string;
@@ -7043,7 +5124,22 @@ declare const MasterFleetServiceTaskQuerySchema: z.ZodObject<{
7043
5124
  date_format_id: string;
7044
5125
  time_zone_id: string;
7045
5126
  organisation_ids: string[];
7046
- fleet_service_task_ids: string[];
5127
+ organisation_sub_company_ids: string[];
5128
+ organisation_branch_ids: string[];
5129
+ organisation_color_ids: string[];
5130
+ organisation_tag_ids: string[];
5131
+ vehicle_ids: string[];
5132
+ driver_ids: string[];
5133
+ device_ids: string[];
5134
+ vehicle_make_ids: string[];
5135
+ vehicle_model_ids: string[];
5136
+ vehicle_sub_model_ids: string[];
5137
+ vehicle_status_type_ids: string[];
5138
+ vehicle_ownership_type_ids: string[];
5139
+ vehicle_type_ids: string[];
5140
+ is_driver_assigned: YesNo[];
5141
+ is_device_installed: YesNo[];
5142
+ vehicle_fuel_type_ids: string[];
7047
5143
  }, {
7048
5144
  date_format_id: string;
7049
5145
  time_zone_id: string;
@@ -7067,48 +5163,25 @@ declare const MasterFleetServiceTaskQuerySchema: z.ZodObject<{
7067
5163
  }[] | undefined;
7068
5164
  include_master_data?: YesNo | undefined;
7069
5165
  organisation_ids?: string[] | undefined;
7070
- fleet_service_task_ids?: string[] | undefined;
7071
- }>;
7072
- type MasterFleetServiceTaskQueryDTO = z.infer<typeof MasterFleetServiceTaskQuerySchema>;
7073
- declare const toMasterFleetServiceTaskPayload: (row: MasterFleetServiceTask) => MasterFleetServiceTaskDTO;
7074
- declare const newMasterFleetServiceTaskPayload: () => MasterFleetServiceTaskDTO;
7075
- declare const findMasterFleetServiceTasks: (data: MasterFleetServiceTaskQueryDTO) => Promise<FBR<MasterFleetServiceTask[]>>;
7076
- declare const createMasterFleetServiceTask: (data: MasterFleetServiceTaskDTO) => Promise<SBR>;
7077
- declare const updateMasterFleetServiceTask: (id: string, data: MasterFleetServiceTaskDTO) => Promise<SBR>;
7078
- declare const deleteMasterFleetServiceTask: (id: string) => Promise<SBR>;
7079
- declare const getMasterFleetServiceTaskCache: (organisation_id: string) => Promise<FBR<MasterFleetServiceTask[]>>;
7080
-
7081
- interface MasterTripPartyType extends Record<string, unknown> {
7082
- party_type_id: string;
7083
- party_type: string;
7084
- description?: string;
7085
- status: Status;
7086
- added_date_time: string;
7087
- modified_date_time: string;
7088
- organisation_id?: string;
7089
- UserOrganisation?: UserOrganisation;
7090
- _count?: {
7091
- FleetTripParty: number;
7092
- };
7093
- }
7094
- declare const MasterTripPartyTypeSchema: z.ZodObject<{
7095
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
7096
- party_type: z.ZodEffects<z.ZodString, string, string>;
7097
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7098
- status: z.ZodType<Status, z.ZodTypeDef, Status>;
7099
- }, "strip", z.ZodTypeAny, {
7100
- status: Status;
7101
- organisation_id: string;
7102
- description: string;
7103
- party_type: string;
7104
- }, {
7105
- status: Status;
7106
- organisation_id: string;
7107
- party_type: string;
7108
- description?: string | undefined;
5166
+ organisation_sub_company_ids?: string[] | undefined;
5167
+ organisation_branch_ids?: string[] | undefined;
5168
+ organisation_color_ids?: string[] | undefined;
5169
+ organisation_tag_ids?: string[] | undefined;
5170
+ vehicle_ids?: string[] | undefined;
5171
+ driver_ids?: string[] | undefined;
5172
+ device_ids?: string[] | undefined;
5173
+ vehicle_make_ids?: string[] | undefined;
5174
+ vehicle_model_ids?: string[] | undefined;
5175
+ vehicle_sub_model_ids?: string[] | undefined;
5176
+ vehicle_status_type_ids?: string[] | undefined;
5177
+ vehicle_ownership_type_ids?: string[] | undefined;
5178
+ vehicle_type_ids?: string[] | undefined;
5179
+ is_driver_assigned?: YesNo[] | undefined;
5180
+ is_device_installed?: YesNo[] | undefined;
5181
+ vehicle_fuel_type_ids?: string[] | undefined;
7109
5182
  }>;
7110
- type MasterTripPartyTypeDTO = z.infer<typeof MasterTripPartyTypeSchema>;
7111
- declare const MasterTripPartyTypeQuerySchema: z.ZodObject<{
5183
+ type VehicleQueryDTO = z.infer<typeof VehicleQuerySchema>;
5184
+ declare const VehicleGPSQuerySchema: z.ZodObject<{
7112
5185
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7113
5186
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
7114
5187
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7139,10 +5212,11 @@ declare const MasterTripPartyTypeQuerySchema: z.ZodObject<{
7139
5212
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
7140
5213
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7141
5214
  } & {
7142
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7143
- party_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5215
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
5216
+ vehicle_id: z.ZodEffects<z.ZodString, string, string>;
7144
5217
  }, "strip", z.ZodTypeAny, {
7145
5218
  status: Status[];
5219
+ organisation_id: string;
7146
5220
  search: string;
7147
5221
  paging: PAGING;
7148
5222
  page_count: number;
@@ -7163,11 +5237,12 @@ declare const MasterTripPartyTypeQuerySchema: z.ZodObject<{
7163
5237
  include_master_data: YesNo;
7164
5238
  date_format_id: string;
7165
5239
  time_zone_id: string;
7166
- organisation_ids: string[];
7167
- party_type_ids: string[];
5240
+ vehicle_id: string;
7168
5241
  }, {
5242
+ organisation_id: string;
7169
5243
  date_format_id: string;
7170
5244
  time_zone_id: string;
5245
+ vehicle_id: string;
7171
5246
  status?: Status[] | undefined;
7172
5247
  search?: string | undefined;
7173
5248
  paging?: PAGING | undefined;
@@ -7187,46 +5262,73 @@ declare const MasterTripPartyTypeQuerySchema: z.ZodObject<{
7187
5262
  direction: OrderBy;
7188
5263
  }[] | undefined;
7189
5264
  include_master_data?: YesNo | undefined;
7190
- organisation_ids?: string[] | undefined;
7191
- party_type_ids?: string[] | undefined;
7192
5265
  }>;
7193
- type MasterTripPartyTypeQueryDTO = z.infer<typeof MasterTripPartyTypeQuerySchema>;
7194
- declare const toMasterTripPartyTypePayload: (row: MasterTripPartyType) => MasterTripPartyTypeDTO;
7195
- declare const newMasterTripPartyTypePayload: () => MasterTripPartyTypeDTO;
7196
- declare const findMasterTripPartyTypes: (data: MasterTripPartyTypeQueryDTO) => Promise<FBR<MasterTripPartyType[]>>;
7197
- declare const createMasterTripPartyType: (data: MasterTripPartyTypeDTO) => Promise<SBR>;
7198
- declare const updateMasterTripPartyType: (id: string, data: MasterTripPartyTypeDTO) => Promise<SBR>;
7199
- declare const deleteMasterTripPartyType: (id: string) => Promise<SBR>;
7200
- declare const getMasterTripPartyTypeCache: (organisation_id: string) => Promise<FBR<MasterTripPartyType[]>>;
5266
+ type VehicleGPSQueryDTO = z.infer<typeof VehicleGPSQuerySchema>;
5267
+ declare const toVehiclePayload: (vehicle: MasterVehicle) => VehicleDTO;
5268
+ declare const newVehiclePayload: () => VehicleDTO;
5269
+ declare const toVehicleDetailsGPSPayload: (vehicleGPS?: VehicleDetailGPS) => VehicleDetailGPSMainDTO;
5270
+ declare const toVehicleDetailsBodyPayload: (vehicleBody?: VehicleDetailBody) => VehicleDetailBodyDTO;
5271
+ declare const toVehicleDetailPurchasePayload: (vehiclePurchase?: VehicleDetailPurchase) => VehicleDetailPurchaseDTO;
5272
+ declare const toVehicleDetailLifeCyclePayload: (vehicleLifeCycle?: VehicleDetailLifeCycle) => VehicleDetailLifeCycleDto;
5273
+ declare const findVehicles: (payload: VehicleQueryDTO) => Promise<FBR<MasterVehicle[]>>;
5274
+ declare const findVehiclesLiveDashboard: (payload: VehicleQueryDTO) => Promise<FBR<MasterVehicle[]>>;
5275
+ declare const findVehicleGPSDetails: (payload: VehicleGPSQueryDTO) => Promise<BR<VehicleDetailGPS>>;
5276
+ declare const createVehicle: (payload: VehicleDTO) => Promise<SBR>;
5277
+ declare const updateVehicle: (id: string, payload: VehicleDTO) => Promise<SBR>;
5278
+ declare const deleteVehicle: (id: string) => Promise<SBR>;
5279
+ declare const updateVehicleBodyDetails: (id: string, payload: VehicleDetailBodyDTO) => Promise<SBR>;
5280
+ declare const updateVehicleLifeCycleDetails: (id: string, payload: VehicleDetailLifeCycleDto) => Promise<SBR>;
5281
+ declare const updateVehiclePurchaseDetails: (id: string, payload: VehicleDetailPurchaseDTO) => Promise<SBR>;
5282
+ declare const updateVehicleGPSDetailsMain: (id: string, payload: VehicleDetailGPSMainDTO) => Promise<SBR>;
5283
+ declare const updateVehicleGPSDetailsData: (id: string, payload: VehicleDetailGPSDataDTO) => Promise<SBR>;
5284
+ declare const updateVehicleGPSDetailsAnalytics: (id: string, payload: VehicleDetailGPSAnalyticsDTO) => Promise<SBR>;
5285
+ declare const updateVehicleTripDetails: (id: string, payload: VehicleDetailTripDTO) => Promise<SBR>;
5286
+ declare const linkDriverToVehicle: (payload: VehicleDriverLinkDTO) => Promise<SBR>;
5287
+ declare const unlinkDriverFromVehicle: (payload: VehicleDriverLinkDTO) => Promise<SBR>;
5288
+ declare const getDriverLinkHistoryByVehicle: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDriverHistory[]>>;
5289
+ declare const getDriverLinkHistoryByDriver: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDriverHistory[]>>;
5290
+ declare const linkDeviceToVehicle: (payload: VehicleDeviceLinkDTO) => Promise<SBR>;
5291
+ declare const unlinkDeviceFromVehicle: (payload: VehicleDeviceUnlinkDTO) => Promise<SBR>;
5292
+ declare const getDeviceLinkHistoryByVehicle: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDeviceHistory[]>>;
5293
+ declare const getDeviceLinkHistoryByDevice: (id: string, params: BaseQueryDTO) => Promise<FBR<AssignRemoveDeviceHistory[]>>;
5294
+ declare const getVehicleCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
5295
+ declare const getVehicleSimpleCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
5296
+ declare const getVehicleSimpleDropdownCustom: (organisationId: string) => Promise<FBR<MasterVehicleDropdown[]>>;
5297
+ declare const getVehicleSimpleDropdownCacheLiveData: (organisationId: string) => Promise<FBR<MasterVehicleDropdown[]>>;
5298
+ declare const getVehicleParentCache: (organisationId: string) => Promise<FBR<MasterVehicle[]>>;
7201
5299
 
7202
- interface MasterVendorType extends Record<string, unknown> {
7203
- vendor_type_id: string;
7204
- vendor_type: string;
5300
+ interface MasterUserRole extends Record<string, unknown> {
5301
+ user_role_id: string;
5302
+ user_role: string;
7205
5303
  description?: string;
7206
5304
  status: Status;
7207
5305
  added_date_time: string;
7208
5306
  modified_date_time: string;
7209
5307
  organisation_id?: string;
7210
5308
  UserOrganisation?: UserOrganisation;
5309
+ User: User[];
5310
+ _count?: {
5311
+ User: number;
5312
+ };
7211
5313
  }
7212
- declare const MasterVendorTypeSchema: z.ZodObject<{
5314
+ declare const MasterUserRoleSchema: z.ZodObject<{
7213
5315
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
7214
- vendor_type: z.ZodEffects<z.ZodString, string, string>;
5316
+ user_role: z.ZodEffects<z.ZodString, string, string>;
7215
5317
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7216
5318
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
7217
5319
  }, "strip", z.ZodTypeAny, {
7218
5320
  status: Status;
7219
5321
  organisation_id: string;
7220
5322
  description: string;
7221
- vendor_type: string;
5323
+ user_role: string;
7222
5324
  }, {
7223
5325
  status: Status;
7224
5326
  organisation_id: string;
7225
- vendor_type: string;
5327
+ user_role: string;
7226
5328
  description?: string | undefined;
7227
5329
  }>;
7228
- type MasterVendorTypeDTO = z.infer<typeof MasterVendorTypeSchema>;
7229
- declare const MasterVendorTypeQuerySchema: z.ZodObject<{
5330
+ type MasterUserRoleDTO = z.infer<typeof MasterUserRoleSchema>;
5331
+ declare const MasterUserRoleQuerySchema: z.ZodObject<{
7230
5332
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7231
5333
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
7232
5334
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7258,7 +5360,7 @@ declare const MasterVendorTypeQuerySchema: z.ZodObject<{
7258
5360
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7259
5361
  } & {
7260
5362
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7261
- vendor_type_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5363
+ user_role_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7262
5364
  }, "strip", z.ZodTypeAny, {
7263
5365
  status: Status[];
7264
5366
  search: string;
@@ -7282,7 +5384,7 @@ declare const MasterVendorTypeQuerySchema: z.ZodObject<{
7282
5384
  date_format_id: string;
7283
5385
  time_zone_id: string;
7284
5386
  organisation_ids: string[];
7285
- vendor_type_ids: string[];
5387
+ user_role_ids: string[];
7286
5388
  }, {
7287
5389
  date_format_id: string;
7288
5390
  time_zone_id: string;
@@ -7306,57 +5408,50 @@ declare const MasterVendorTypeQuerySchema: z.ZodObject<{
7306
5408
  }[] | undefined;
7307
5409
  include_master_data?: YesNo | undefined;
7308
5410
  organisation_ids?: string[] | undefined;
7309
- vendor_type_ids?: string[] | undefined;
5411
+ user_role_ids?: string[] | undefined;
7310
5412
  }>;
7311
- type MasterVendorTypeQueryDTO = z.infer<typeof MasterVendorTypeQuerySchema>;
7312
- declare const toMasterVendorTypePayload: (row: MasterVendorType) => MasterVendorTypeDTO;
7313
- declare const newMasterVendorTypePayload: () => MasterVendorTypeDTO;
7314
- declare const findMasterVendorTypes: (data: MasterVendorTypeQueryDTO) => Promise<FBR<MasterVendorType[]>>;
7315
- declare const createMasterVendorType: (data: MasterVendorTypeDTO) => Promise<SBR>;
7316
- declare const updateMasterVendorType: (id: string, data: MasterVendorTypeDTO) => Promise<SBR>;
7317
- declare const deleteMasterVendorType: (id: string) => Promise<SBR>;
7318
- declare const getMasterVendorTypeCache: (organisation_id: string) => Promise<FBR<MasterVendorType[]>>;
5413
+ type MasterUserRoleQueryDTO = z.infer<typeof MasterUserRoleQuerySchema>;
5414
+ declare const toMasterUserRolePayload: (row: MasterUserRole) => MasterUserRoleDTO;
5415
+ declare const newMasterUserRolePayload: () => MasterUserRoleDTO;
5416
+ declare const findMasterUserRoles: (data: MasterUserRoleQueryDTO) => Promise<FBR<MasterUserRole[]>>;
5417
+ declare const createMasterUserRole: (data: MasterUserRoleDTO) => Promise<SBR>;
5418
+ declare const updateMasterUserRole: (id: string, data: MasterUserRoleDTO) => Promise<SBR>;
5419
+ declare const deleteMasterUserRole: (id: string) => Promise<SBR>;
5420
+ declare const getMasterUserRoleCache: (organisation_id: string) => Promise<FBR<MasterUserRole[]>>;
5421
+ declare const getMasterUserRoleCacheCount: (organisation_id: string) => Promise<FBR<MasterUserRole>>;
7319
5422
 
7320
- interface MasterSparePartSubCategory extends Record<string, unknown> {
7321
- spare_part_sub_category_id: string;
7322
- sub_category_name: string;
7323
- sub_category_code: string;
5423
+ interface MasterUserStatus extends Record<string, unknown> {
5424
+ user_status_id: string;
5425
+ user_status: string;
7324
5426
  description?: string;
7325
5427
  status: Status;
7326
5428
  added_date_time: string;
7327
5429
  modified_date_time: string;
7328
5430
  organisation_id?: string;
7329
5431
  UserOrganisation?: UserOrganisation;
7330
- spare_part_category_id: string;
7331
- MasterSparePartCategory?: MasterSparePartCategory;
5432
+ User: User[];
7332
5433
  _count?: {
7333
- FleetSpareParts: number;
5434
+ User: number;
7334
5435
  };
7335
5436
  }
7336
- declare const MasterSparePartSubCategorySchema: z.ZodObject<{
5437
+ declare const MasterUserStatusSchema: z.ZodObject<{
7337
5438
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
7338
- spare_part_category_id: z.ZodEffects<z.ZodString, string, string>;
7339
- sub_category_name: z.ZodEffects<z.ZodString, string, string>;
7340
- sub_category_code: z.ZodEffects<z.ZodString, string, string>;
5439
+ user_status: z.ZodEffects<z.ZodString, string, string>;
7341
5440
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7342
5441
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
7343
5442
  }, "strip", z.ZodTypeAny, {
7344
5443
  status: Status;
7345
5444
  organisation_id: string;
7346
5445
  description: string;
7347
- sub_category_name: string;
7348
- sub_category_code: string;
7349
- spare_part_category_id: string;
5446
+ user_status: string;
7350
5447
  }, {
7351
5448
  status: Status;
7352
5449
  organisation_id: string;
7353
- sub_category_name: string;
7354
- sub_category_code: string;
7355
- spare_part_category_id: string;
5450
+ user_status: string;
7356
5451
  description?: string | undefined;
7357
5452
  }>;
7358
- type MasterSparePartSubCategoryDTO = z.infer<typeof MasterSparePartSubCategorySchema>;
7359
- declare const SparePartSubCategoryQuerySchema: z.ZodObject<{
5453
+ type MasterUserStatusDTO = z.infer<typeof MasterUserStatusSchema>;
5454
+ declare const MasterUserStatusQuerySchema: z.ZodObject<{
7360
5455
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7361
5456
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
7362
5457
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7388,8 +5483,7 @@ declare const SparePartSubCategoryQuerySchema: z.ZodObject<{
7388
5483
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7389
5484
  } & {
7390
5485
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7391
- spare_part_category_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7392
- spare_part_sub_category_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5486
+ user_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7393
5487
  }, "strip", z.ZodTypeAny, {
7394
5488
  status: Status[];
7395
5489
  search: string;
@@ -7413,8 +5507,7 @@ declare const SparePartSubCategoryQuerySchema: z.ZodObject<{
7413
5507
  date_format_id: string;
7414
5508
  time_zone_id: string;
7415
5509
  organisation_ids: string[];
7416
- spare_part_category_ids: string[];
7417
- spare_part_sub_category_ids: string[];
5510
+ user_status_ids: string[];
7418
5511
  }, {
7419
5512
  date_format_id: string;
7420
5513
  time_zone_id: string;
@@ -7438,56 +5531,45 @@ declare const SparePartSubCategoryQuerySchema: z.ZodObject<{
7438
5531
  }[] | undefined;
7439
5532
  include_master_data?: YesNo | undefined;
7440
5533
  organisation_ids?: string[] | undefined;
7441
- spare_part_category_ids?: string[] | undefined;
7442
- spare_part_sub_category_ids?: string[] | undefined;
5534
+ user_status_ids?: string[] | undefined;
7443
5535
  }>;
7444
- type SparePartSubCategoryQueryDTO = z.infer<typeof SparePartSubCategoryQuerySchema>;
7445
- declare const toMasterSparePartSubCategoryPayload: (row: MasterSparePartSubCategory) => MasterSparePartSubCategoryDTO;
7446
- declare const newMasterSparePartSubCategoryPayload: () => MasterSparePartSubCategoryDTO;
7447
- declare const findMasterSparePartSubCategories: (data: SparePartSubCategoryQueryDTO) => Promise<FBR<MasterSparePartSubCategory[]>>;
7448
- declare const createMasterSparePartSubCategory: (data: MasterSparePartSubCategoryDTO) => Promise<SBR>;
7449
- declare const updateMasterSparePartSubCategory: (id: string, data: MasterSparePartSubCategoryDTO) => Promise<SBR>;
7450
- declare const deleteMasterSparePartSubCategory: (id: string) => Promise<SBR>;
7451
- declare const getMasterSparePartSubCategoryCache: (organisation_id: string, spare_part_category_id?: string) => Promise<FBR<MasterSparePartSubCategory[]>>;
7452
- declare const getMasterSparePartSubCategoryCacheCount: (organisation_id: string, spare_part_category_id?: string) => Promise<FBR<MasterSparePartSubCategory[]>>;
5536
+ type MasterUserStatusQueryDTO = z.infer<typeof MasterUserStatusQuerySchema>;
5537
+ declare const toMasterUserStatusPayload: (row: MasterUserStatus) => MasterUserStatusDTO;
5538
+ declare const newMasterUserStatusPayload: () => MasterUserStatusDTO;
5539
+ declare const findMasterUserStatuses: (data: MasterUserStatusQueryDTO) => Promise<FBR<MasterUserStatus[]>>;
5540
+ declare const createMasterUserStatus: (data: MasterUserStatusDTO) => Promise<SBR>;
5541
+ declare const updateMasterUserStatus: (id: string, data: MasterUserStatusDTO) => Promise<SBR>;
5542
+ declare const deleteMasterUserStatus: (id: string) => Promise<SBR>;
5543
+ declare const getMasterUserStatusCache: (organisation_id: string) => Promise<FBR<MasterUserStatus[]>>;
5544
+ declare const getMasterUserStatusCacheCount: (organisation_id: string) => Promise<FBR<MasterUserStatus>>;
7453
5545
 
7454
- interface MasterSparePartCategory extends Record<string, unknown> {
7455
- spare_part_category_id: string;
7456
- category_name: string;
7457
- category_code: string;
7458
- description?: string;
5546
+ interface MasterMainLanguage extends Record<string, unknown> {
5547
+ language_id: string;
5548
+ language_name: string;
5549
+ language_code: string;
7459
5550
  status: Status;
7460
5551
  added_date_time: string;
7461
5552
  modified_date_time: string;
7462
- organisation_id?: string;
7463
- UserOrganisation?: UserOrganisation;
7464
- MasterSparePartSubCategory: MasterSparePartSubCategory[];
5553
+ User: User[];
7465
5554
  _count?: {
7466
- MasterSparePartSubCategory: number;
7467
- FleetSpareParts: number;
5555
+ User: number;
7468
5556
  };
7469
5557
  }
7470
- declare const MasterSparePartCategorySchema: z.ZodObject<{
7471
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
7472
- category_name: z.ZodEffects<z.ZodString, string, string>;
7473
- category_code: z.ZodEffects<z.ZodString, string, string>;
7474
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5558
+ declare const MasterMainLanguageSchema: z.ZodObject<{
5559
+ language_name: z.ZodEffects<z.ZodString, string, string>;
5560
+ language_code: z.ZodEffects<z.ZodString, string, string>;
7475
5561
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
7476
5562
  }, "strip", z.ZodTypeAny, {
7477
5563
  status: Status;
7478
- organisation_id: string;
7479
- description: string;
7480
- category_name: string;
7481
- category_code: string;
5564
+ language_name: string;
5565
+ language_code: string;
7482
5566
  }, {
7483
5567
  status: Status;
7484
- organisation_id: string;
7485
- category_name: string;
7486
- category_code: string;
7487
- description?: string | undefined;
5568
+ language_name: string;
5569
+ language_code: string;
7488
5570
  }>;
7489
- type MasterSparePartCategoryDTO = z.infer<typeof MasterSparePartCategorySchema>;
7490
- declare const SparePartCategoryQuerySchema: z.ZodObject<{
5571
+ type MasterMainLanguageDTO = z.infer<typeof MasterMainLanguageSchema>;
5572
+ declare const MasterMainLanguageQuerySchema: z.ZodObject<{
7491
5573
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7492
5574
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
7493
5575
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7518,8 +5600,7 @@ declare const SparePartCategoryQuerySchema: z.ZodObject<{
7518
5600
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
7519
5601
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7520
5602
  } & {
7521
- organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7522
- spare_part_category_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5603
+ language_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7523
5604
  }, "strip", z.ZodTypeAny, {
7524
5605
  status: Status[];
7525
5606
  search: string;
@@ -7542,8 +5623,7 @@ declare const SparePartCategoryQuerySchema: z.ZodObject<{
7542
5623
  include_master_data: YesNo;
7543
5624
  date_format_id: string;
7544
5625
  time_zone_id: string;
7545
- organisation_ids: string[];
7546
- spare_part_category_ids: string[];
5626
+ language_ids: string[];
7547
5627
  }, {
7548
5628
  date_format_id: string;
7549
5629
  time_zone_id: string;
@@ -7566,55 +5646,128 @@ declare const SparePartCategoryQuerySchema: z.ZodObject<{
7566
5646
  direction: OrderBy;
7567
5647
  }[] | undefined;
7568
5648
  include_master_data?: YesNo | undefined;
7569
- organisation_ids?: string[] | undefined;
7570
- spare_part_category_ids?: string[] | undefined;
5649
+ language_ids?: string[] | undefined;
7571
5650
  }>;
7572
- type SparePartCategoryQueryDTO = z.infer<typeof SparePartCategoryQuerySchema>;
7573
- declare const toMasterSparePartCategoryPayload: (row: MasterSparePartCategory) => MasterSparePartCategoryDTO;
7574
- declare const newMasterSparePartCategoryPayload: () => MasterSparePartCategoryDTO;
7575
- declare const findMasterSparePartCategories: (data: SparePartCategoryQueryDTO) => Promise<FBR<MasterSparePartCategory[]>>;
7576
- declare const createMasterSparePartCategory: (data: MasterSparePartCategoryDTO) => Promise<SBR>;
7577
- declare const updateMasterSparePartCategory: (id: string, data: MasterSparePartCategoryDTO) => Promise<SBR>;
7578
- declare const deleteMasterSparePartCategory: (id: string) => Promise<SBR>;
7579
- declare const getMasterSparePartCategoryCache: (organisation_id: string) => Promise<FBR<MasterSparePartCategory[]>>;
7580
- declare const getMasterSparePartCategoryCacheChild: (organisation_id: string) => Promise<FBR<MasterSparePartCategory[]>>;
7581
- declare const getMasterSparePartCategoryCacheCount: (organisation_id: string) => Promise<FBR<number>>;
5651
+ type MasterMainLanguageQueryDTO = z.infer<typeof MasterMainLanguageQuerySchema>;
5652
+ declare const toMasterMainLanguagePayload: (row: MasterMainLanguage) => MasterMainLanguageDTO;
5653
+ declare const newMasterMainLanguagePayload: () => MasterMainLanguageDTO;
5654
+ declare const findMasterMainLanguages: (data: MasterMainLanguageQueryDTO) => Promise<FBR<MasterMainLanguage[]>>;
5655
+ declare const createMasterMainLanguage: (data: MasterMainLanguageDTO) => Promise<SBR>;
5656
+ declare const updateMasterMainLanguage: (id: string, data: MasterMainLanguageDTO) => Promise<SBR>;
5657
+ declare const deleteMasterMainLanguage: (id: string) => Promise<SBR>;
5658
+ declare const getMasterMainLanguageCache: () => Promise<FBR<MasterMainLanguage[]>>;
7582
5659
 
7583
- interface MasterSparePartUnit extends Record<string, unknown> {
7584
- spare_part_unit_id: string;
7585
- unit_name: string;
7586
- unit_code: string;
7587
- description?: string;
5660
+ interface User extends Record<string, unknown> {
5661
+ user_id: string;
5662
+ first_name: string;
5663
+ last_name?: string;
5664
+ email: string;
5665
+ username?: string;
5666
+ mobile?: string;
5667
+ password?: string;
5668
+ can_login: YesNo;
5669
+ is_root_user: YesNo;
5670
+ all_vehicles: YesNo;
5671
+ user_details?: string;
5672
+ user_image_url?: string;
5673
+ user_image_key?: string;
7588
5674
  status: Status;
7589
5675
  added_date_time: string;
7590
5676
  modified_date_time: string;
7591
5677
  organisation_id?: string;
7592
5678
  UserOrganisation?: UserOrganisation;
5679
+ user_role_id?: string;
5680
+ MasterUserRole?: MasterUserRole;
5681
+ user_role?: string;
5682
+ user_status_id?: string;
5683
+ MasterUserStatus?: MasterUserStatus;
5684
+ user_status?: string;
5685
+ language_id?: string;
5686
+ MasterMainLanguage?: MasterMainLanguage;
5687
+ date_format_id?: string;
5688
+ MasterMainDateFormat?: MasterMainDateFormat;
5689
+ time_zone_id?: string;
5690
+ MasterMainTimeZone?: MasterMainTimeZone;
5691
+ UserVehicleLink: UserVehicleLink[];
7593
5692
  _count?: {
7594
- FleetSpareParts: number;
5693
+ UserVehicleLink: number;
7595
5694
  };
7596
5695
  }
7597
- declare const MasterSparePartUnitSchema: z.ZodObject<{
5696
+ interface UserVehicleLink extends Record<string, unknown> {
5697
+ user_vehicle_id: string;
5698
+ status: Status;
5699
+ added_date_time: string;
5700
+ modified_date_time: string;
5701
+ vehicle_id: string;
5702
+ MasterVehicle?: MasterVehicle;
5703
+ vehicle_number?: string;
5704
+ vehicle_type?: string;
5705
+ user_id: string;
5706
+ User?: User;
5707
+ }
5708
+ declare const CreateUserSchema: z.ZodObject<{
5709
+ first_name: z.ZodEffects<z.ZodString, string, string>;
5710
+ last_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5711
+ email: z.ZodEffects<z.ZodString, string, string>;
5712
+ username: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5713
+ mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5714
+ password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5715
+ can_login: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5716
+ is_root_user: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5717
+ all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
5718
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5719
+ user_image_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5720
+ user_image_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7598
5721
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
7599
- unit_name: z.ZodEffects<z.ZodString, string, string>;
7600
- unit_code: z.ZodEffects<z.ZodString, string, string>;
7601
- description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
5722
+ user_role_id: z.ZodEffects<z.ZodString, string, string>;
5723
+ user_status_id: z.ZodEffects<z.ZodString, string, string>;
5724
+ language_id: z.ZodEffects<z.ZodString, string, string>;
5725
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5726
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
7602
5727
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
7603
5728
  }, "strip", z.ZodTypeAny, {
7604
5729
  status: Status;
7605
5730
  organisation_id: string;
7606
- description: string;
7607
- unit_name: string;
7608
- unit_code: string;
5731
+ date_format_id: string;
5732
+ time_zone_id: string;
5733
+ password: string;
5734
+ can_login: YesNo;
5735
+ vehicle_ids: string[];
5736
+ user_role_id: string;
5737
+ user_status_id: string;
5738
+ language_id: string;
5739
+ first_name: string;
5740
+ last_name: string;
5741
+ email: string;
5742
+ username: string;
5743
+ mobile: string;
5744
+ is_root_user: YesNo;
5745
+ all_vehicles: YesNo;
5746
+ user_image_url: string;
5747
+ user_image_key: string;
7609
5748
  }, {
7610
5749
  status: Status;
7611
5750
  organisation_id: string;
7612
- unit_name: string;
7613
- unit_code: string;
7614
- description?: string | undefined;
5751
+ date_format_id: string;
5752
+ time_zone_id: string;
5753
+ can_login: YesNo;
5754
+ user_role_id: string;
5755
+ user_status_id: string;
5756
+ language_id: string;
5757
+ first_name: string;
5758
+ email: string;
5759
+ is_root_user: YesNo;
5760
+ all_vehicles: YesNo;
5761
+ password?: string | undefined;
5762
+ vehicle_ids?: string[] | undefined;
5763
+ last_name?: string | undefined;
5764
+ username?: string | undefined;
5765
+ mobile?: string | undefined;
5766
+ user_image_url?: string | undefined;
5767
+ user_image_key?: string | undefined;
7615
5768
  }>;
7616
- type MasterSparePartUnitDTO = z.infer<typeof MasterSparePartUnitSchema>;
7617
- declare const SparePartUnitQuerySchema: z.ZodObject<{
5769
+ type CreateUserDTO = z.infer<typeof CreateUserSchema>;
5770
+ declare const UserQuerySchema: z.ZodObject<{
7618
5771
  search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7619
5772
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
7620
5773
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
@@ -7646,7 +5799,15 @@ declare const SparePartUnitQuerySchema: z.ZodObject<{
7646
5799
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7647
5800
  } & {
7648
5801
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7649
- spare_part_unit_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5802
+ user_role_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5803
+ user_status_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5804
+ language_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5805
+ time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5806
+ date_format_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5807
+ user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
5808
+ can_login: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5809
+ is_root_user: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
5810
+ all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
7650
5811
  }, "strip", z.ZodTypeAny, {
7651
5812
  status: Status[];
7652
5813
  search: string;
@@ -7670,7 +5831,15 @@ declare const SparePartUnitQuerySchema: z.ZodObject<{
7670
5831
  date_format_id: string;
7671
5832
  time_zone_id: string;
7672
5833
  organisation_ids: string[];
7673
- spare_part_unit_ids: string[];
5834
+ user_ids: string[];
5835
+ time_zone_ids: string[];
5836
+ date_format_ids: string[];
5837
+ can_login: YesNo[];
5838
+ user_role_ids: string[];
5839
+ user_status_ids: string[];
5840
+ language_ids: string[];
5841
+ is_root_user: YesNo[];
5842
+ all_vehicles: YesNo[];
7674
5843
  }, {
7675
5844
  date_format_id: string;
7676
5845
  time_zone_id: string;
@@ -7694,30 +5863,67 @@ declare const SparePartUnitQuerySchema: z.ZodObject<{
7694
5863
  }[] | undefined;
7695
5864
  include_master_data?: YesNo | undefined;
7696
5865
  organisation_ids?: string[] | undefined;
7697
- spare_part_unit_ids?: string[] | undefined;
5866
+ user_ids?: string[] | undefined;
5867
+ time_zone_ids?: string[] | undefined;
5868
+ date_format_ids?: string[] | undefined;
5869
+ can_login?: YesNo[] | undefined;
5870
+ user_role_ids?: string[] | undefined;
5871
+ user_status_ids?: string[] | undefined;
5872
+ language_ids?: string[] | undefined;
5873
+ is_root_user?: YesNo[] | undefined;
5874
+ all_vehicles?: YesNo[] | undefined;
5875
+ }>;
5876
+ type UserQueryDTO = z.infer<typeof UserQuerySchema>;
5877
+ declare const UserDefaultLanguageSchema: z.ZodObject<{
5878
+ language_id: z.ZodEffects<z.ZodString, string, string>;
5879
+ }, "strip", z.ZodTypeAny, {
5880
+ language_id: string;
5881
+ }, {
5882
+ language_id: string;
5883
+ }>;
5884
+ type UserDefaultLanguageDTO = z.infer<typeof UserDefaultLanguageSchema>;
5885
+ declare const UserDefaultTimeZoneSchema: z.ZodObject<{
5886
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
5887
+ }, "strip", z.ZodTypeAny, {
5888
+ time_zone_id: string;
5889
+ }, {
5890
+ time_zone_id: string;
5891
+ }>;
5892
+ type UserDefaultTimeZoneDTO = z.infer<typeof UserDefaultTimeZoneSchema>;
5893
+ declare const UserDefaultDateFormatSchema: z.ZodObject<{
5894
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
5895
+ }, "strip", z.ZodTypeAny, {
5896
+ date_format_id: string;
5897
+ }, {
5898
+ date_format_id: string;
7698
5899
  }>;
7699
- type SparePartUnitQueryDTO = z.infer<typeof SparePartUnitQuerySchema>;
7700
- declare const toMasterSparePartUnitPayload: (row: MasterSparePartUnit) => MasterSparePartUnitDTO;
7701
- declare const newMasterSparePartUnitPayload: () => MasterSparePartUnitDTO;
7702
- declare const findMasterSparePartUnits: (data: SparePartUnitQueryDTO) => Promise<FBR<MasterSparePartUnit[]>>;
7703
- declare const createMasterSparePartUnit: (data: MasterSparePartUnitDTO) => Promise<SBR>;
7704
- declare const updateMasterSparePartUnit: (id: string, data: MasterSparePartUnitDTO) => Promise<SBR>;
7705
- declare const deleteMasterSparePartUnit: (id: string) => Promise<SBR>;
7706
- declare const getMasterSparePartUnitCache: (organisation_id: string) => Promise<FBR<MasterSparePartUnit[]>>;
7707
- declare const getMasterSparePartUnitCacheCount: (organisation_id: string) => Promise<FBR<MasterSparePartUnit[]>>;
5900
+ type UserDefaultDateFormatDTO = z.infer<typeof UserDefaultDateFormatSchema>;
5901
+ declare const newUserPayload: () => CreateUserDTO;
5902
+ declare const toUserPayload: (data: User) => CreateUserDTO;
5903
+ declare const findUsers: (data: UserQueryDTO) => Promise<FBR<User[]>>;
5904
+ declare const createUser: (data: CreateUserDTO) => Promise<SBR>;
5905
+ declare const updateUser: (id: string, data: CreateUserDTO) => Promise<SBR>;
5906
+ declare const deleteUser: (id: string) => Promise<SBR>;
5907
+ declare const getUserCache: (organisation_id: string) => Promise<FBR<User[]>>;
5908
+ declare const getUserCacheSimple: (organisation_id: string) => Promise<FBR<User[]>>;
5909
+ declare const getUserPresignedUrl: (fileName: string) => Promise<SBR>;
5910
+ declare const updateUserDefaultLanguage: (id: string, data: UserDefaultLanguageDTO) => Promise<SBR>;
5911
+ declare const updateUserDefaultTimezone: (id: string, data: UserDefaultTimeZoneDTO) => Promise<SBR>;
5912
+ declare const updateUserDefaultDateformat: (id: string, data: UserDefaultDateFormatDTO) => Promise<SBR>;
7708
5913
 
7709
5914
  interface UserOrganisation extends Record<string, unknown> {
7710
5915
  organisation_id: string;
7711
5916
  organisation_name: string;
7712
- organisation_email: string;
5917
+ organisation_email?: string;
7713
5918
  organisation_mobile?: string;
7714
5919
  organisation_code?: string;
7715
5920
  organisation_utrack_id?: string;
7716
5921
  fleet_size: FleetSize;
7717
5922
  db_instance: string;
7718
5923
  db_group: string;
7719
- organisation_logo_url?: string;
7720
- organisation_logo_key?: string;
5924
+ logo_url?: string;
5925
+ logo_key?: string;
5926
+ logo_name?: string;
7721
5927
  company_cin?: string;
7722
5928
  company_tin_gstin?: string;
7723
5929
  billing_address_line1?: string;
@@ -7749,14 +5955,14 @@ interface UserOrganisation extends Record<string, unknown> {
7749
5955
  MasterMainCountry?: MasterMainCountry;
7750
5956
  state_id?: string;
7751
5957
  MasterMainState?: MasterMainState;
7752
- time_zone_id?: string;
7753
- MasterMainTimeZone?: MasterMainTimeZone;
7754
5958
  currency_id?: string;
7755
5959
  MasterMainCurrency?: MasterMainCurrency;
7756
- date_format_id?: string;
7757
- MasterMainDateFormat?: MasterMainDateFormat;
7758
5960
  language_id?: string;
7759
5961
  MasterMainLanguage?: MasterMainLanguage;
5962
+ time_zone_id?: string;
5963
+ MasterMainTimeZone?: MasterMainTimeZone;
5964
+ date_format_id?: string;
5965
+ MasterMainDateFormat?: MasterMainDateFormat;
7760
5966
  distance_unit_id?: string;
7761
5967
  MasterMainUnitDistance?: MasterMainUnitDistance;
7762
5968
  mileage_unit_id?: string;
@@ -7772,30 +5978,6 @@ interface UserOrganisation extends Record<string, unknown> {
7772
5978
  OrganisationGroup: OrganisationGroup[];
7773
5979
  OrganisationSubCompany: OrganisationSubCompany[];
7774
5980
  OrganisationTag: OrganisationTag[];
7775
- MasterExpenseName: MasterExpenseName[];
7776
- MasterExpenseType: MasterExpenseType[];
7777
- MasterVendorType: MasterVendorType[];
7778
- MasterUserRole: MasterUserRole[];
7779
- MasterUserStatus: MasterUserStatus[];
7780
- MasterVehicleFuelType: MasterVehicleFuelType[];
7781
- MasterVehicleOwnershipType: MasterVehicleOwnershipType[];
7782
- MasterVehicleModel: MasterVehicleModel[];
7783
- MasterVehicleMake: MasterVehicleMake[];
7784
- MasterVehicleStatusType: MasterVehicleStatusType[];
7785
- MasterVehicleSubModel: MasterVehicleSubModel[];
7786
- MasterVehicleType: MasterVehicleType[];
7787
- MasterTyreGrade: MasterTyreGrade[];
7788
- MasterTyreMake: MasterTyreMake[];
7789
- MasterTyreModel: MasterTyreModel[];
7790
- MasterFleetIncidentType: MasterFleetIncidentType[];
7791
- MasterFleetIncidentStatus: MasterFleetIncidentStatus[];
7792
- MasterFleetIncidentSeverity: MasterFleetIncidentSeverity[];
7793
- MasterFleetInsuranceClaimStatus: MasterFleetInsuranceClaimStatus[];
7794
- MasterFleetServiceTask: MasterFleetServiceTask[];
7795
- MasterTripPartyType: MasterTripPartyType[];
7796
- MasterSparePartCategory: MasterSparePartCategory[];
7797
- MasterSparePartSubCategory: MasterSparePartSubCategory[];
7798
- MasterSparePartUnit: MasterSparePartUnit[];
7799
5981
  _count?: {
7800
5982
  User?: number;
7801
5983
  MasterVehicle?: number;
@@ -7821,11 +6003,14 @@ interface UserOrganisationSimple extends Record<string, unknown> {
7821
6003
  }
7822
6004
  declare const UserOrganisationSchema: z.ZodObject<{
7823
6005
  organisation_name: z.ZodEffects<z.ZodString, string, string>;
7824
- organisation_email: z.ZodEffects<z.ZodString, string, string>;
6006
+ organisation_email: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7825
6007
  organisation_mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6008
+ organisation_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6009
+ organisation_utrack_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7826
6010
  fleet_size: z.ZodType<FleetSize, z.ZodTypeDef, FleetSize>;
7827
- organisation_logo_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7828
- organisation_logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6011
+ logo_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6012
+ logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
6013
+ logo_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7829
6014
  company_cin: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7830
6015
  company_tin_gstin: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
7831
6016
  billing_address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -7852,10 +6037,10 @@ declare const UserOrganisationSchema: z.ZodObject<{
7852
6037
  industry_id: z.ZodEffects<z.ZodString, string, string>;
7853
6038
  country_id: z.ZodEffects<z.ZodString, string, string>;
7854
6039
  state_id: z.ZodEffects<z.ZodString, string, string>;
7855
- time_zone_id: z.ZodEffects<z.ZodString, string, string>;
7856
6040
  currency_id: z.ZodEffects<z.ZodString, string, string>;
7857
- date_format_id: z.ZodEffects<z.ZodString, string, string>;
7858
6041
  language_id: z.ZodEffects<z.ZodString, string, string>;
6042
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
6043
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
7859
6044
  distance_unit_id: z.ZodEffects<z.ZodString, string, string>;
7860
6045
  mileage_unit_id: z.ZodEffects<z.ZodString, string, string>;
7861
6046
  volume_unit_id: z.ZodEffects<z.ZodString, string, string>;
@@ -7868,13 +6053,16 @@ declare const UserOrganisationSchema: z.ZodObject<{
7868
6053
  country_id: string;
7869
6054
  state_id: string;
7870
6055
  country_code: string;
6056
+ logo_key: string;
6057
+ logo_url: string;
7871
6058
  language_id: string;
7872
6059
  organisation_name: string;
7873
6060
  organisation_email: string;
7874
6061
  organisation_mobile: string;
6062
+ organisation_code: string;
6063
+ organisation_utrack_id: string;
7875
6064
  fleet_size: FleetSize;
7876
- organisation_logo_url: string;
7877
- organisation_logo_key: string;
6065
+ logo_name: string;
7878
6066
  company_cin: string;
7879
6067
  company_tin_gstin: string;
7880
6068
  billing_address_line1: string;
@@ -7909,15 +6097,18 @@ declare const UserOrganisationSchema: z.ZodObject<{
7909
6097
  state_id: string;
7910
6098
  language_id: string;
7911
6099
  organisation_name: string;
7912
- organisation_email: string;
7913
6100
  fleet_size: FleetSize;
7914
6101
  distance_unit_id: string;
7915
6102
  mileage_unit_id: string;
7916
6103
  volume_unit_id: string;
7917
6104
  country_code?: string | undefined;
6105
+ logo_key?: string | undefined;
6106
+ logo_url?: string | undefined;
6107
+ organisation_email?: string | undefined;
7918
6108
  organisation_mobile?: string | undefined;
7919
- organisation_logo_url?: string | undefined;
7920
- organisation_logo_key?: string | undefined;
6109
+ organisation_code?: string | undefined;
6110
+ organisation_utrack_id?: string | undefined;
6111
+ logo_name?: string | undefined;
7921
6112
  company_cin?: string | undefined;
7922
6113
  company_tin_gstin?: string | undefined;
7923
6114
  billing_address_line1?: string | undefined;
@@ -7975,13 +6166,11 @@ declare const UserOrganisationQuerySchema: z.ZodObject<{
7975
6166
  industry_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7976
6167
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7977
6168
  state_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7978
- time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7979
6169
  currency_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7980
- date_format_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7981
6170
  language_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7982
- distance_unit_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7983
- mileage_unit_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7984
- volume_unit_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6171
+ time_zone_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6172
+ date_format_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
6173
+ fleet_size: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof FleetSize>, "many">>>;
7985
6174
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
7986
6175
  }, "strip", z.ZodTypeAny, {
7987
6176
  status: Status[];
@@ -8013,9 +6202,7 @@ declare const UserOrganisationQuerySchema: z.ZodObject<{
8013
6202
  state_ids: string[];
8014
6203
  date_format_ids: string[];
8015
6204
  language_ids: string[];
8016
- distance_unit_ids: string[];
8017
- mileage_unit_ids: string[];
8018
- volume_unit_ids: string[];
6205
+ fleet_size: FleetSize[];
8019
6206
  }, {
8020
6207
  date_format_id: string;
8021
6208
  time_zone_id: string;
@@ -8046,9 +6233,7 @@ declare const UserOrganisationQuerySchema: z.ZodObject<{
8046
6233
  state_ids?: string[] | undefined;
8047
6234
  date_format_ids?: string[] | undefined;
8048
6235
  language_ids?: string[] | undefined;
8049
- distance_unit_ids?: string[] | undefined;
8050
- mileage_unit_ids?: string[] | undefined;
8051
- volume_unit_ids?: string[] | undefined;
6236
+ fleet_size?: FleetSize[] | undefined;
8052
6237
  }>;
8053
6238
  type UserOrganisationQueryDTO = z.infer<typeof UserOrganisationQuerySchema>;
8054
6239
  declare const toUserOrganisationPayload: (organisation: UserOrganisation) => UserOrganisationDTO;
@@ -8061,4 +6246,4 @@ declare const getUserOrganisationCache: () => Promise<FBR<UserOrganisation[]>>;
8061
6246
  declare const getUserOrganisationCacheSimple: () => Promise<FBR<UserOrganisationSimple[]>>;
8062
6247
  declare const getUserOrganisationPresignedUrl: (fileName: string) => Promise<SBR>;
8063
6248
 
8064
- export { createMasterMainState as $, findMasterMainCurrencies as A, createMasterMainCurrency as B, updateMasterMainCurrency as C, deleteMasterMainCurrency as D, getMasterMainCurrencyCache as E, type MasterMainTimeZone as F, MasterMainTimeZoneSchema as G, type MasterMainTimeZoneDTO as H, MasterMainTimeZoneQuerySchema as I, type MasterMainTimeZoneQueryDTO as J, toMasterMainTimeZonePayload as K, newMasterMainTimeZonePayload as L, type MasterVehicle as M, findMasterMainTimeZones as N, type OrganisationBranch as O, createMasterMainTimeZone as P, updateMasterMainTimeZone as Q, deleteMasterMainTimeZone as R, getMasterMainTimeZoneCache as S, MasterMainStateSchema as T, type UserOrganisation as U, type MasterMainStateDTO as V, MasterMainStateQuerySchema as W, type MasterMainStateQueryDTO as X, toMasterMainStatePayload as Y, newMasterMainStatePayload as Z, findMasterMainStates as _, type User as a, type AssignRemoveDriverHistory as a$, updateMasterMainState as a0, deleteMasterMainState as a1, getMasterMainStateCache as a2, MasterMainCountrySchema as a3, type MasterMainCountryDTO as a4, MasterMainCountryQuerySchema as a5, type MasterMainCountryQueryDTO as a6, toMasterMainCountryPayload as a7, newMasterMainCountryPayload as a8, findMasterMainCountries as a9, updateMasterMainUnitDistance as aA, deleteMasterMainUnitDistance as aB, getMasterMainUnitDistanceCache as aC, type MasterMainUnitMileage as aD, MasterMainUnitMileageSchema as aE, type MasterMainUnitMileageDTO as aF, MasterMainUnitMileageQuerySchema as aG, type MasterMainUnitMileageQueryDTO as aH, toMasterMainUnitMileagePayload as aI, newMasterMainUnitMileagePayload as aJ, findMasterMainUnitMileages as aK, createMasterMainUnitMileage as aL, updateMasterMainUnitMileage as aM, deleteMasterMainUnitMileage as aN, getMasterMainUnitMileageCache as aO, type MasterMainUnitVolume as aP, MasterMainUnitVolumeSchema as aQ, type MasterMainUnitVolumeDTO as aR, MasterMainUnitVolumeQuerySchema as aS, type MasterMainUnitVolumeQueryDTO as aT, toMasterMainUnitVolumePayload as aU, newMasterMainUnitVolumePayload as aV, findMasterMainUnitVolumes as aW, createMasterMainUnitVolume as aX, updateMasterMainUnitVolume as aY, deleteMasterMainUnitVolume as aZ, getMasterMainUnitVolumeCache as a_, createMasterMainCountry as aa, updateMasterMainCountry as ab, deleteMasterMainCountry as ac, getMasterMainCountryCache as ad, getMasterMainCountryCacheChild as ae, type MasterMainDateFormat as af, MasterMainDateFormatSchema as ag, type MasterMainDateFormatDTO as ah, MasterMainDateFormatQuerySchema as ai, type MasterMainDateFormatQueryDTO as aj, toMasterMainDateFormatPayload as ak, newMasterMainDateFormatPayload as al, findMasterMainDateFormats as am, createMasterMainDateFormat as an, updateMasterMainDateFormat as ao, deleteMasterMainDateFormat as ap, getMasterMainDateFormatCache as aq, type MasterMainUnitDistance as ar, MasterMainUnitDistanceSchema as as, type MasterMainUnitDistanceDTO as at, MasterMainUnitDistanceQuerySchema as au, type MasterMainUnitDistanceQueryDTO as av, toMasterMainUnitDistancePayload as aw, newMasterMainUnitDistancePayload as ax, findMasterMainUnitDistances as ay, createMasterMainUnitDistance as az, type MasterDriver as b, findMasterSims as b$, MasterDriverSchema as b0, type MasterDriverDTO as b1, DriverQuerySchema as b2, type DriverQueryDTO as b3, toDriverPayload as b4, newDriverPayload as b5, findDrivers as b6, createDriver as b7, updateDriver as b8, deleteDriver as b9, updateMasterDeviceModel as bA, deleteMasterDeviceModel as bB, getMasterDeviceModelCache as bC, getMasterDeviceModelCacheCount as bD, getMasterDeviceModelCacheChild as bE, type MasterDeviceManufacturer as bF, MasterDeviceManufacturerSchema as bG, type MasterDeviceManufacturerDTO as bH, MasterDeviceManufacturerQuerySchema as bI, type MasterDeviceManufacturerQueryDTO as bJ, toMasterDeviceManufacturerPayload as bK, newMasterDeviceManufacturerPayload as bL, findMasterDeviceManufacturers as bM, createMasterDeviceManufacturer as bN, updateMasterDeviceManufacturer as bO, deleteMasterDeviceManufacturer as bP, getMasterDeviceManufacturerCache as bQ, getMasterDeviceManufacturerCacheCount as bR, getMasterDeviceManufacturerCacheChild as bS, type MasterSim as bT, type AssignRemoveSimHistory as bU, MasterSimSchema as bV, type MasterSimDTO as bW, MasterSimQuerySchema as bX, type MasterSimQueryDTO as bY, toMasterSimPayload as bZ, newMasterSimPayload as b_, getPresignedUrlForDriver as ba, getDriverCache as bb, getDriverSimpleCache as bc, type MasterDeviceType as bd, MasterDeviceTypeSchema as be, type MasterDeviceTypeDTO as bf, MasterDeviceTypeQuerySchema as bg, type MasterDeviceTypeQueryDTO as bh, toMasterDeviceTypePayload as bi, newMasterDeviceTypePayload as bj, findMasterDeviceTypes as bk, createMasterDeviceType as bl, updateMasterDeviceType as bm, deleteMasterDeviceType as bn, getMasterDeviceTypeCache as bo, getMasterDeviceTypeCacheCount as bp, getMasterDeviceTypeCacheChild as bq, type MasterDeviceModel as br, MasterDeviceModelSchema as bs, type MasterDeviceModelDTO as bt, MasterDeviceModelQuerySchema as bu, type MasterDeviceModelQueryDTO as bv, toMasterDeviceModelPayload as bw, newMasterDeviceModelPayload as bx, findMasterDeviceModels as by, createMasterDeviceModel as bz, type MasterDevice as c, type OrganisationTagDTO as c$, createMasterSim as c0, updateMasterSim as c1, deleteMasterSim as c2, type AssignRemoveDeviceHistory as c3, MasterDeviceSchema as c4, type MasterDeviceDTO as c5, MasterDeviceQuerySchema as c6, type MasterDeviceQueryDTO as c7, DeviceSimLinkSchema as c8, type DeviceSimLinkDTO as c9, OrganisationBranchQuerySchema as cA, type OrganisationBranchQueryDTO as cB, toOrganisationBranchPayload as cC, newOrganisationBranchPayload as cD, findOrganisationBranchs as cE, createOrganisationBranch as cF, updateOrganisationBranch as cG, deleteOrganisationBranch as cH, getOrganisationBranchCache as cI, getOrganisationBranchCacheCount as cJ, getOrganisationBranchCacheChild as cK, type OrganisationColor as cL, OrganisationColorSchema as cM, type OrganisationColorDTO as cN, OrganisationColorQuerySchema as cO, type OrganisationColorQueryDTO as cP, toOrganisationColorPayload as cQ, newOrganisationColorPayload as cR, findOrganisationColors as cS, createOrganisationColor as cT, updateOrganisationColor as cU, deleteOrganisationColor as cV, getOrganisationColorCache as cW, getOrganisationColorCacheCount as cX, getOrganisationColorCacheChild as cY, type OrganisationTag as cZ, OrganisationTagSchema as c_, toMasterDevicePayload as ca, newMasterDevicePayload as cb, findMasterDevices as cc, createMasterDevice as cd, updateMasterDevice as ce, deleteMasterDevice as cf, device_sim_link as cg, device_sim_unlink as ch, get_device_sim_link_history_by_sim as ci, get_device_sim_link_history_by_device as cj, type OrganisationSubCompany as ck, OrganisationSubCompanySchema as cl, type OrganisationSubCompanyDTO as cm, OrganisationSubCompanyQuerySchema as cn, type OrganisationSubCompanyQueryDTO as co, toOrganisationSubCompanyPayload as cp, newOrganisationSubCompanyPayload as cq, findOrganisationSubCompanyies as cr, createOrganisationSubCompany as cs, updateOrganisationSubCompany as ct, deleteOrganisationSubCompany as cu, getOrganisationSubCompanyCache as cv, getOrganisationSubCompanyCacheCount as cw, getOrganisationSubCompanyCacheChild as cx, OrganisationBranchSchema as cy, type OrganisationBranchDTO as cz, type MasterVehicleFuelType as d, createMasterVehicleMake as d$, OrganisationTagQuerySchema as d0, type OrganisationTagQueryDTO as d1, toOrganisationTagPayload as d2, newOrganisationTagPayload as d3, findOrganisationTags as d4, createOrganisationTag as d5, updateOrganisationTag as d6, deleteOrganisationTag as d7, getOrganisationTagCache as d8, getOrganisationTagCacheCount as d9, updateMasterVehicleSubModel as dA, deleteMasterVehicleSubModel as dB, getMasterVehicleSubModelCache as dC, getMasterVehicleSubModelCacheCount as dD, getMasterVehicleSubModelCacheChild as dE, type MasterVehicleModel as dF, MasterVehicleModelSchema as dG, type MasterVehicleModelDTO as dH, MasterVehicleModelQuerySchema as dI, type MasterVehicleModelQueryDTO as dJ, toMasterVehicleModelPayload as dK, newMasterVehicleModelPayload as dL, findMasterVehicleModels as dM, createMasterVehicleModel as dN, updateMasterVehicleModel as dO, deleteMasterVehicleModel as dP, getMasterVehicleModelCache as dQ, getMasterVehicleModelCacheCount as dR, getMasterVehicleModelCacheChild as dS, type MasterVehicleMake as dT, MasterVehicleMakeSchema as dU, type MasterVehicleMakeDTO as dV, MasterVehicleMakeQuerySchema as dW, type MasterVehicleMakeQueryDTO as dX, toMasterVehicleMakePayload as dY, newMasterVehicleMakePayload as dZ, findMasterVehicleMakes as d_, getOrganisationTagCacheChild as da, type OrganisationGroup as db, type VehicleOrganisationGroupLink as dc, OrganisationGroupSchema as dd, type OrganisationGroupDTO as de, OrganisationGroupQuerySchema as df, type OrganisationGroupQueryDTO as dg, toOrganisationGroupPayload as dh, newOrganisationGroupPayload as di, findOrganisationGroups as dj, createOrganisationGroup as dk, updateOrganisationGroup as dl, deleteOrganisationGroup as dm, getOrganisationGroupCache as dn, getOrganisationGroupCacheCount as dp, getOrganisationGroupCacheChild as dq, type MasterVehicleSubModel as dr, MasterVehicleSubModelSchema as ds, type MasterVehicleSubModelDTO as dt, MasterVehicleSubModelQuerySchema as du, type MasterVehicleSubModelQueryDTO as dv, toMasterVehicleSubModelPayload as dw, newMasterVehicleSubModelPayload as dx, findMasterVehicleSubModels as dy, createMasterVehicleSubModel as dz, type MasterVehicleFuelUnit as e, MasterVehicleAssociatedToQuerySchema as e$, updateMasterVehicleMake as e0, deleteMasterVehicleMake as e1, getMasterVehicleMakeCache as e2, getMasterVehicleMakeCacheCount as e3, getMasterVehicleMakeCacheChild as e4, type MasterVehicleStatusType as e5, MasterVehicleStatusTypeSchema as e6, type MasterVehicleStatusTypeDTO as e7, MasterVehicleStatusTypeQuerySchema as e8, type MasterVehicleStatusTypeQueryDTO as e9, MasterVehicleTypeQuerySchema as eA, type MasterVehicleTypeQueryDTO as eB, toMasterVehicleTypePayload as eC, newMasterVehicleTypePayload as eD, findMasterVehicleTypes as eE, createMasterVehicleType as eF, updateMasterVehicleType as eG, deleteMasterVehicleType as eH, getMasterVehicleTypeCache as eI, getMasterVehicleTypeCacheCount as eJ, getMasterVehicleTypeCacheChild as eK, MasterVehicleFuelTypeSchema as eL, type MasterVehicleFuelTypeDTO as eM, MasterVehicleFuelTypeQuerySchema as eN, type MasterVehicleFuelTypeQueryDTO as eO, toMasterVehicleFuelTypePayload as eP, newMasterVehicleFuelTypePayload as eQ, findMasterVehicleFuelTypes as eR, createMasterVehicleFuelType as eS, updateMasterVehicleFuelType as eT, deleteMasterVehicleFuelType as eU, getMasterVehicleFuelTypeCache as eV, getMasterVehicleFuelTypeCacheCount as eW, getMasterVehicleFuelTypeCacheChild as eX, type MasterVehicleAssociatedTo as eY, MasterVehicleAssociatedToSchema as eZ, type MasterVehicleAssociatedToDTO as e_, toMasterVehicleStatusTypePayload as ea, newMasterVehicleStatusTypePayload as eb, findMasterVehicleStatusTypes as ec, createMasterVehicleStatusType as ed, updateMasterVehicleStatusType as ee, deleteMasterVehicleStatusType as ef, getMasterVehicleStatusTypeCache as eg, getMasterVehicleStatusTypeCacheCount as eh, getMasterVehicleStatusTypeCacheChild as ei, type MasterVehicleOwnershipType as ej, MasterVehicleOwnershipTypeSchema as ek, type MasterVehicleOwnershipTypeDTO as el, MasterVehicleOwnershipTypeQuerySchema as em, type MasterVehicleOwnershipTypeQueryDTO as en, toMasterVehicleOwnershipTypePayload as eo, newMasterVehicleOwnershipTypePayload as ep, findMasterVehicleOwnershipTypes as eq, createMasterVehicleOwnershipType as er, updateMasterVehicleOwnershipType as es, deleteMasterVehicleOwnershipType as et, getMasterVehicleOwnershipTypeCache as eu, getMasterVehicleOwnershipTypeCacheCount as ev, getMasterVehicleOwnershipTypeCacheChild as ew, type MasterVehicleType as ex, MasterVehicleTypeSchema as ey, type MasterVehicleTypeDTO as ez, type MasterMainCountry as f, findVehicles as f$, type MasterVehicleAssociatedToQueryDTO as f0, toMasterVehicleAssociatedToPayload as f1, newMasterVehicleAssociatedToPayload as f2, findMasterVehicleAssociatedTos as f3, createMasterVehicleAssociatedTo as f4, updateMasterVehicleAssociatedTo as f5, deleteMasterVehicleAssociatedTo as f6, getMasterVehicleAssociatedToCache as f7, getMasterVehicleAssociatedToCacheCount as f8, getMasterVehicleAssociatedToCacheChild as f9, type VehicleDriverLinkDTO as fA, SimpleFindQuerySchema as fB, type SimpleFindQueryDTO as fC, VehicleDetailBodySchema as fD, type VehicleDetailBodyDTO as fE, VehicleDetailGPSMainSchema as fF, type VehicleDetailGPSMainDTO as fG, VehicleDetailGPSDataSchema as fH, type VehicleDetailGPSDataDTO as fI, VehicleDetailGPSAnalyticsSchema as fJ, type VehicleDetailGPSAnalyticsDTO as fK, VehicleDetailLifeCycleSchema as fL, type VehicleDetailLifeCycleDto as fM, VehicleDetailPurchaseSchema as fN, type VehicleDetailPurchaseDTO as fO, VehicleDetailTripSchema as fP, type VehicleDetailTripDTO as fQ, VehicleQuerySchema as fR, type VehicleQueryDTO as fS, VehicleGPSQuerySchema as fT, type VehicleGPSQueryDTO as fU, toVehiclePayload as fV, newVehiclePayload as fW, toVehicleDetailsGPSPayload as fX, toVehicleDetailsBodyPayload as fY, toVehicleDetailPurchasePayload as fZ, toVehicleDetailLifeCyclePayload as f_, MasterVehicleFuelUnitSchema as fa, type MasterVehicleFuelUnitDTO as fb, MasterVehicleFuelUnitQuerySchema as fc, type MasterVehicleFuelUnitQueryDTO as fd, toMasterVehicleFuelUnitPayload as fe, newMasterVehicleFuelUnitPayload as ff, findMasterVehicleFuelUnits as fg, createMasterVehicleFuelUnit as fh, updateMasterVehicleFuelUnit as fi, deleteMasterVehicleFuelUnit as fj, getMasterVehicleFuelUnitCache as fk, getMasterVehicleFuelUnitCacheCount as fl, getMasterVehicleFuelUnitCacheChild as fm, type MasterVehicleDropdown as fn, type VehicleDetailBody as fo, type VehicleDetailLifeCycle as fp, type VehicleDetailPurchase as fq, type VehicleDetailGPS as fr, type VehicleDetailTrip as fs, VehicleSchema as ft, type VehicleDTO as fu, VehicleDeviceLinkSchema as fv, type VehicleDeviceLinkDTO as fw, VehicleDeviceUnlinkSchema as fx, type VehicleDeviceUnlinkDTO as fy, VehicleDriverLinkSchema as fz, type MasterMainState as g, type UserVehicleLink as g$, findVehiclesLiveDashboard as g0, findVehicleGPSDetails as g1, createVehicle as g2, updateVehicle as g3, deleteVehicle as g4, updateVehicleBodyDetails as g5, updateVehicleLifeCycleDetails as g6, updateVehiclePurchaseDetails as g7, updateVehicleGPSDetailsMain as g8, updateVehicleGPSDetailsData as g9, getMasterUserRoleCache as gA, getMasterUserRoleCacheCount as gB, type MasterUserStatus as gC, MasterUserStatusSchema as gD, type MasterUserStatusDTO as gE, MasterUserStatusQuerySchema as gF, type MasterUserStatusQueryDTO as gG, toMasterUserStatusPayload as gH, newMasterUserStatusPayload as gI, findMasterUserStatuses as gJ, createMasterUserStatus as gK, updateMasterUserStatus as gL, deleteMasterUserStatus as gM, getMasterUserStatusCache as gN, getMasterUserStatusCacheCount as gO, type MasterMainLanguage as gP, MasterMainLanguageSchema as gQ, type MasterMainLanguageDTO as gR, MasterMainLanguageQuerySchema as gS, type MasterMainLanguageQueryDTO as gT, toMasterMainLanguagePayload as gU, newMasterMainLanguagePayload as gV, findMasterMainLanguages as gW, createMasterMainLanguage as gX, updateMasterMainLanguage as gY, deleteMasterMainLanguage as gZ, getMasterMainLanguageCache as g_, updateVehicleGPSDetailsAnalytics as ga, updateVehicleTripDetails as gb, linkDriverToVehicle as gc, unlinkDriverFromVehicle as gd, getDriverLinkHistoryByVehicle as ge, getDriverLinkHistoryByDriver as gf, linkDeviceToVehicle as gg, unlinkDeviceFromVehicle as gh, getDeviceLinkHistoryByVehicle as gi, getDeviceLinkHistoryByDevice as gj, getVehicleCache as gk, getVehicleSimpleCache as gl, getVehicleSimpleDropdownCustom as gm, getVehicleSimpleDropdownCacheLiveData as gn, getVehicleParentCache as go, type MasterUserRole as gp, MasterUserRoleSchema as gq, type MasterUserRoleDTO as gr, MasterUserRoleQuerySchema as gs, type MasterUserRoleQueryDTO as gt, toMasterUserRolePayload as gu, newMasterUserRolePayload as gv, findMasterUserRoles as gw, createMasterUserRole as gx, updateMasterUserRole as gy, deleteMasterUserRole as gz, type MasterMainIndustry as h, type MasterTyreModelQueryDTO as h$, CreateUserSchema as h0, type CreateUserDTO as h1, UserQuerySchema as h2, type UserQueryDTO as h3, UserDefaultLanguageSchema as h4, type UserDefaultLanguageDTO as h5, UserDefaultTimeZoneSchema as h6, type UserDefaultTimeZoneDTO as h7, UserDefaultDateFormatSchema as h8, type UserDefaultDateFormatDTO as h9, type MasterExpenseTypeDTO as hA, MasterExpenseTypeQuerySchema as hB, type MasterExpenseTypeQueryDTO as hC, toMasterExpenseTypePayload as hD, newMasterExpenseTypePayload as hE, findMasterExpenseTypes as hF, createMasterExpenseType as hG, updateMasterExpenseType as hH, deleteMasterExpenseType as hI, getMasterExpenseTypeCache as hJ, type MasterTyreGrade as hK, MasterTyreGradeSchema as hL, type MasterTyreGradeDTO as hM, MasterTyreGradeQuerySchema as hN, type MasterTyreGradeQueryDTO as hO, toMasterTyreGradePayload as hP, newMasterTyreGradePayload as hQ, findMasterTyreGrades as hR, createMasterTyreGrade as hS, updateMasterTyreGrade as hT, deleteMasterTyreGrade as hU, getMasterTyreGradeCache as hV, getMasterTyreGradeCacheCount as hW, type MasterTyreModel as hX, MasterTyreModelSchema as hY, type MasterTyreModelDTO as hZ, MasterTyreModelQuerySchema as h_, newUserPayload as ha, toUserPayload as hb, findUsers as hc, createUser as hd, updateUser as he, deleteUser as hf, getUserCache as hg, getUserCacheSimple as hh, getUserPresignedUrl as hi, updateUserDefaultLanguage as hj, updateUserDefaultTimezone as hk, updateUserDefaultDateformat as hl, type MasterExpenseName as hm, MasterExpenseNameSchema as hn, type MasterExpenseNameDTO as ho, MasterExpenseNameQuerySchema as hp, type MasterExpenseNameQueryDTO as hq, toMasterExpenseNamePayload as hr, newMasterExpenseNamePayload as hs, findMasterExpenseNames as ht, createMasterExpenseName as hu, updateMasterExpenseName as hv, deleteMasterExpenseName as hw, getMasterExpenseNameCache as hx, type MasterExpenseType as hy, MasterExpenseTypeSchema as hz, MasterMainIndustrySchema as i, MasterFleetInsuranceClaimStatusQuerySchema as i$, toMasterTyreModelPayload as i0, newMasterTyreModelPayload as i1, findMasterTyreModels as i2, createMasterTyreModel as i3, updateMasterTyreModel as i4, deleteMasterTyreModel as i5, getMasterTyreModelCache as i6, getMasterTyreModelCacheCount as i7, type MasterTyreMake as i8, MasterTyreMakeSchema as i9, type MasterFleetIncidentStatus as iA, MasterFleetIncidentStatusSchema as iB, type MasterFleetIncidentStatusDTO as iC, MasterFleetIncidentStatusQuerySchema as iD, type MasterFleetIncidentStatusQueryDTO as iE, toMasterFleetIncidentStatusPayload as iF, newMasterFleetIncidentStatusPayload as iG, findMasterFleetIncidentStatuses as iH, createMasterFleetIncidentStatus as iI, updateMasterFleetIncidentStatus as iJ, deleteMasterFleetIncidentStatus as iK, getMasterFleetIncidentStatusCache as iL, type MasterFleetIncidentSeverity as iM, MasterFleetIncidentSeveritySchema as iN, type MasterFleetIncidentSeverityDTO as iO, MasterFleetIncidentSeverityQuerySchema as iP, type MasterFleetIncidentSeverityQueryDTO as iQ, toMasterFleetIncidentSeverityPayload as iR, newMasterFleetIncidentSeverityPayload as iS, findMasterFleetIncidentSeverities as iT, createMasterFleetIncidentSeverity as iU, updateMasterFleetIncidentSeverity as iV, deleteMasterFleetIncidentSeverity as iW, getMasterFleetIncidentSeverityCache as iX, type MasterFleetInsuranceClaimStatus as iY, MasterFleetInsuranceClaimStatusSchema as iZ, type MasterFleetInsuranceClaimStatusDTO as i_, type MasterTyreMakeDTO as ia, MasterTyreMakeQuerySchema as ib, type MasterTyreMakeQueryDTO as ic, toMasterTyreMakePayload as id, newMasterTyreMakePayload as ie, findMasterTyreMakes as ig, createMasterTyreMake as ih, updateMasterTyreMake as ii, deleteMasterTyreMake as ij, getMasterTyreMakeCache as ik, getMasterTyreMakeCacheCount as il, getMasterTyreMakeCacheChild as im, type MasterFleetIncidentType as io, MasterFleetIncidentTypeSchema as ip, type MasterFleetIncidentTypeDTO as iq, MasterFleetIncidentTypeQuerySchema as ir, type MasterFleetIncidentTypeQueryDTO as is, toMasterFleetIncidentTypePayload as it, newMasterFleetIncidentTypePayload as iu, findMasterFleetIncidentTypes as iv, createMasterFleetIncidentType as iw, updateMasterFleetIncidentType as ix, deleteMasterFleetIncidentType as iy, getMasterFleetIncidentTypeCache as iz, type MasterMainIndustryDTO as j, newMasterSparePartCategoryPayload as j$, type MasterFleetInsuranceClaimStatusQueryDTO as j0, toMasterFleetInsuranceClaimStatusPayload as j1, newMasterFleetInsuranceClaimStatusPayload as j2, findMasterFleetInsuranceClaimStatuses as j3, createMasterFleetInsuranceClaimStatus as j4, updateMasterFleetInsuranceClaimStatus as j5, deleteMasterFleetInsuranceClaimStatus as j6, getMasterFleetInsuranceClaimStatusCache as j7, type MasterFleetServiceTask as j8, MasterFleetServiceTaskSchema as j9, type MasterVendorTypeQueryDTO as jA, toMasterVendorTypePayload as jB, newMasterVendorTypePayload as jC, findMasterVendorTypes as jD, createMasterVendorType as jE, updateMasterVendorType as jF, deleteMasterVendorType as jG, getMasterVendorTypeCache as jH, type MasterSparePartSubCategory as jI, MasterSparePartSubCategorySchema as jJ, type MasterSparePartSubCategoryDTO as jK, SparePartSubCategoryQuerySchema as jL, type SparePartSubCategoryQueryDTO as jM, toMasterSparePartSubCategoryPayload as jN, newMasterSparePartSubCategoryPayload as jO, findMasterSparePartSubCategories as jP, createMasterSparePartSubCategory as jQ, updateMasterSparePartSubCategory as jR, deleteMasterSparePartSubCategory as jS, getMasterSparePartSubCategoryCache as jT, getMasterSparePartSubCategoryCacheCount as jU, type MasterSparePartCategory as jV, MasterSparePartCategorySchema as jW, type MasterSparePartCategoryDTO as jX, SparePartCategoryQuerySchema as jY, type SparePartCategoryQueryDTO as jZ, toMasterSparePartCategoryPayload as j_, type MasterFleetServiceTaskDTO as ja, MasterFleetServiceTaskQuerySchema as jb, type MasterFleetServiceTaskQueryDTO as jc, toMasterFleetServiceTaskPayload as jd, newMasterFleetServiceTaskPayload as je, findMasterFleetServiceTasks as jf, createMasterFleetServiceTask as jg, updateMasterFleetServiceTask as jh, deleteMasterFleetServiceTask as ji, getMasterFleetServiceTaskCache as jj, type MasterTripPartyType as jk, MasterTripPartyTypeSchema as jl, type MasterTripPartyTypeDTO as jm, MasterTripPartyTypeQuerySchema as jn, type MasterTripPartyTypeQueryDTO as jo, toMasterTripPartyTypePayload as jp, newMasterTripPartyTypePayload as jq, findMasterTripPartyTypes as jr, createMasterTripPartyType as js, updateMasterTripPartyType as jt, deleteMasterTripPartyType as ju, getMasterTripPartyTypeCache as jv, type MasterVendorType as jw, MasterVendorTypeSchema as jx, type MasterVendorTypeDTO as jy, MasterVendorTypeQuerySchema as jz, MasterMainIndustryQuerySchema as k, findMasterSparePartCategories as k0, createMasterSparePartCategory as k1, updateMasterSparePartCategory as k2, deleteMasterSparePartCategory as k3, getMasterSparePartCategoryCache as k4, getMasterSparePartCategoryCacheChild as k5, getMasterSparePartCategoryCacheCount as k6, type MasterSparePartUnit as k7, MasterSparePartUnitSchema as k8, type MasterSparePartUnitDTO as k9, SparePartUnitQuerySchema as ka, type SparePartUnitQueryDTO as kb, toMasterSparePartUnitPayload as kc, newMasterSparePartUnitPayload as kd, findMasterSparePartUnits as ke, createMasterSparePartUnit as kf, updateMasterSparePartUnit as kg, deleteMasterSparePartUnit as kh, getMasterSparePartUnitCache as ki, getMasterSparePartUnitCacheCount as kj, type UserOrganisationSimple as kk, UserOrganisationSchema as kl, type UserOrganisationDTO as km, UserOrganisationQuerySchema as kn, type UserOrganisationQueryDTO as ko, toUserOrganisationPayload as kp, newUserOrganisationPayload as kq, findUserOrganisations as kr, createUserOrganisation as ks, updateUserOrganisation as kt, deleteUserOrganisation as ku, getUserOrganisationCache as kv, getUserOrganisationCacheSimple as kw, getUserOrganisationPresignedUrl as kx, type MasterMainIndustryQueryDTO as l, findMasterMainIndustrys as m, newMasterMainIndustryPayload as n, createMasterMainIndustry as o, deleteMasterMainIndustry as p, getMasterMainIndustryCache as q, type MasterMainCurrency as r, MasterMainCurrencySchema as s, toMasterMainIndustryPayload as t, updateMasterMainIndustry as u, type MasterMainCurrencyDTO as v, MasterMainCurrencyQuerySchema as w, type MasterMainCurrencyQueryDTO as x, toMasterMainCurrencyPayload as y, newMasterMainCurrencyPayload as z };
6249
+ export { createMasterMainState as $, findMasterMainCurrencies as A, createMasterMainCurrency as B, updateMasterMainCurrency as C, deleteMasterMainCurrency as D, getMasterMainCurrencyCache as E, type MasterMainTimeZone as F, MasterMainTimeZoneSchema as G, type MasterMainTimeZoneDTO as H, MasterMainTimeZoneQuerySchema as I, type MasterMainTimeZoneQueryDTO as J, toMasterMainTimeZonePayload as K, newMasterMainTimeZonePayload as L, type MasterVehicle as M, findMasterMainTimeZones as N, type OrganisationBranch as O, createMasterMainTimeZone as P, updateMasterMainTimeZone as Q, deleteMasterMainTimeZone as R, getMasterMainTimeZoneCache as S, MasterMainStateSchema as T, type UserOrganisation as U, type MasterMainStateDTO as V, MasterMainStateQuerySchema as W, type MasterMainStateQueryDTO as X, toMasterMainStatePayload as Y, newMasterMainStatePayload as Z, findMasterMainStates as _, type User as a, type OrganisationSubCompany as a$, updateMasterMainState as a0, deleteMasterMainState as a1, getMasterMainStateCache as a2, MasterMainCountrySchema as a3, type MasterMainCountryDTO as a4, MasterMainCountryQuerySchema as a5, type MasterMainCountryQueryDTO as a6, toMasterMainCountryPayload as a7, newMasterMainCountryPayload as a8, findMasterMainCountries as a9, updateMasterMainUnitDistance as aA, deleteMasterMainUnitDistance as aB, getMasterMainUnitDistanceCache as aC, type MasterMainUnitMileage as aD, MasterMainUnitMileageSchema as aE, type MasterMainUnitMileageDTO as aF, MasterMainUnitMileageQuerySchema as aG, type MasterMainUnitMileageQueryDTO as aH, toMasterMainUnitMileagePayload as aI, newMasterMainUnitMileagePayload as aJ, findMasterMainUnitMileages as aK, createMasterMainUnitMileage as aL, updateMasterMainUnitMileage as aM, deleteMasterMainUnitMileage as aN, getMasterMainUnitMileageCache as aO, type MasterMainUnitVolume as aP, MasterMainUnitVolumeSchema as aQ, type MasterMainUnitVolumeDTO as aR, MasterMainUnitVolumeQuerySchema as aS, type MasterMainUnitVolumeQueryDTO as aT, toMasterMainUnitVolumePayload as aU, newMasterMainUnitVolumePayload as aV, findMasterMainUnitVolumes as aW, createMasterMainUnitVolume as aX, updateMasterMainUnitVolume as aY, deleteMasterMainUnitVolume as aZ, getMasterMainUnitVolumeCache as a_, createMasterMainCountry as aa, updateMasterMainCountry as ab, deleteMasterMainCountry as ac, getMasterMainCountryCache as ad, getMasterMainCountryCacheChild as ae, type MasterMainDateFormat as af, MasterMainDateFormatSchema as ag, type MasterMainDateFormatDTO as ah, MasterMainDateFormatQuerySchema as ai, type MasterMainDateFormatQueryDTO as aj, toMasterMainDateFormatPayload as ak, newMasterMainDateFormatPayload as al, findMasterMainDateFormats as am, createMasterMainDateFormat as an, updateMasterMainDateFormat as ao, deleteMasterMainDateFormat as ap, getMasterMainDateFormatCache as aq, type MasterMainUnitDistance as ar, MasterMainUnitDistanceSchema as as, type MasterMainUnitDistanceDTO as at, MasterMainUnitDistanceQuerySchema as au, type MasterMainUnitDistanceQueryDTO as av, toMasterMainUnitDistancePayload as aw, newMasterMainUnitDistancePayload as ax, findMasterMainUnitDistances as ay, createMasterMainUnitDistance as az, type MasterDriver as b, updateDriver as b$, OrganisationSubCompanySchema as b0, type OrganisationSubCompanyDTO as b1, OrganisationSubCompanyQuerySchema as b2, type OrganisationSubCompanyQueryDTO as b3, toOrganisationSubCompanyPayload as b4, newOrganisationSubCompanyPayload as b5, findOrganisationSubCompanyies as b6, createOrganisationSubCompany as b7, updateOrganisationSubCompany as b8, deleteOrganisationSubCompany as b9, deleteOrganisationColor as bA, getOrganisationColorCache as bB, getOrganisationColorCacheCount as bC, getOrganisationColorCacheChild as bD, type OrganisationTag as bE, OrganisationTagSchema as bF, type OrganisationTagDTO as bG, OrganisationTagQuerySchema as bH, type OrganisationTagQueryDTO as bI, toOrganisationTagPayload as bJ, newOrganisationTagPayload as bK, findOrganisationTags as bL, createOrganisationTag as bM, updateOrganisationTag as bN, deleteOrganisationTag as bO, getOrganisationTagCache as bP, getOrganisationTagCacheCount as bQ, getOrganisationTagCacheChild as bR, type AssignRemoveDriverHistory as bS, MasterDriverSchema as bT, type MasterDriverDTO as bU, DriverQuerySchema as bV, type DriverQueryDTO as bW, toDriverPayload as bX, newDriverPayload as bY, findDrivers as bZ, createDriver as b_, getOrganisationSubCompanyCache as ba, getOrganisationSubCompanyCacheCount as bb, getOrganisationSubCompanyCacheChild as bc, OrganisationBranchSchema as bd, type OrganisationBranchDTO as be, OrganisationBranchQuerySchema as bf, type OrganisationBranchQueryDTO as bg, toOrganisationBranchPayload as bh, newOrganisationBranchPayload as bi, findOrganisationBranchs as bj, createOrganisationBranch as bk, updateOrganisationBranch as bl, deleteOrganisationBranch as bm, getOrganisationBranchCache as bn, getOrganisationBranchCacheCount as bo, getOrganisationBranchCacheChild as bp, type OrganisationColor as bq, OrganisationColorSchema as br, type OrganisationColorDTO as bs, OrganisationColorQuerySchema as bt, type OrganisationColorQueryDTO as bu, toOrganisationColorPayload as bv, newOrganisationColorPayload as bw, findOrganisationColors as bx, createOrganisationColor as by, updateOrganisationColor as bz, type MasterDevice as c, DeviceSimLinkSchema as c$, deleteDriver as c0, getPresignedUrlForDriver as c1, getDriverCache as c2, getDriverSimpleCache as c3, type MasterDeviceType as c4, MasterDeviceTypeSchema as c5, type MasterDeviceTypeDTO as c6, MasterDeviceTypeQuerySchema as c7, type MasterDeviceTypeQueryDTO as c8, toMasterDeviceTypePayload as c9, type MasterDeviceManufacturerQueryDTO as cA, toMasterDeviceManufacturerPayload as cB, newMasterDeviceManufacturerPayload as cC, findMasterDeviceManufacturers as cD, createMasterDeviceManufacturer as cE, updateMasterDeviceManufacturer as cF, deleteMasterDeviceManufacturer as cG, getMasterDeviceManufacturerCache as cH, getMasterDeviceManufacturerCacheCount as cI, getMasterDeviceManufacturerCacheChild as cJ, type MasterSim as cK, type AssignRemoveSimHistory as cL, MasterSimSchema as cM, type MasterSimDTO as cN, MasterSimQuerySchema as cO, type MasterSimQueryDTO as cP, toMasterSimPayload as cQ, newMasterSimPayload as cR, findMasterSims as cS, createMasterSim as cT, updateMasterSim as cU, deleteMasterSim as cV, type AssignRemoveDeviceHistory as cW, MasterDeviceSchema as cX, type MasterDeviceDTO as cY, MasterDeviceQuerySchema as cZ, type MasterDeviceQueryDTO as c_, newMasterDeviceTypePayload as ca, findMasterDeviceTypes as cb, createMasterDeviceType as cc, updateMasterDeviceType as cd, deleteMasterDeviceType as ce, getMasterDeviceTypeCache as cf, getMasterDeviceTypeCacheCount as cg, getMasterDeviceTypeCacheChild as ch, type MasterDeviceModel as ci, MasterDeviceModelSchema as cj, type MasterDeviceModelDTO as ck, MasterDeviceModelQuerySchema as cl, type MasterDeviceModelQueryDTO as cm, toMasterDeviceModelPayload as cn, newMasterDeviceModelPayload as co, findMasterDeviceModels as cp, createMasterDeviceModel as cq, updateMasterDeviceModel as cr, deleteMasterDeviceModel as cs, getMasterDeviceModelCache as ct, getMasterDeviceModelCacheCount as cu, getMasterDeviceModelCacheChild as cv, type MasterDeviceManufacturer as cw, MasterDeviceManufacturerSchema as cx, type MasterDeviceManufacturerDTO as cy, MasterDeviceManufacturerQuerySchema as cz, type MasterVehicleFuelType as d, createMasterVehicleMake as d$, type DeviceSimLinkDTO as d0, toMasterDevicePayload as d1, newMasterDevicePayload as d2, findMasterDevices as d3, createMasterDevice as d4, updateMasterDevice as d5, deleteMasterDevice as d6, device_sim_link as d7, device_sim_unlink as d8, get_device_sim_link_history_by_sim as d9, updateMasterVehicleSubModel as dA, deleteMasterVehicleSubModel as dB, getMasterVehicleSubModelCache as dC, getMasterVehicleSubModelCacheCount as dD, getMasterVehicleSubModelCacheChild as dE, type MasterVehicleModel as dF, MasterVehicleModelSchema as dG, type MasterVehicleModelDTO as dH, MasterVehicleModelQuerySchema as dI, type MasterVehicleModelQueryDTO as dJ, toMasterVehicleModelPayload as dK, newMasterVehicleModelPayload as dL, findMasterVehicleModels as dM, createMasterVehicleModel as dN, updateMasterVehicleModel as dO, deleteMasterVehicleModel as dP, getMasterVehicleModelCache as dQ, getMasterVehicleModelCacheCount as dR, getMasterVehicleModelCacheChild as dS, type MasterVehicleMake as dT, MasterVehicleMakeSchema as dU, type MasterVehicleMakeDTO as dV, MasterVehicleMakeQuerySchema as dW, type MasterVehicleMakeQueryDTO as dX, toMasterVehicleMakePayload as dY, newMasterVehicleMakePayload as dZ, findMasterVehicleMakes as d_, get_device_sim_link_history_by_device as da, type OrganisationGroup as db, type VehicleOrganisationGroupLink as dc, OrganisationGroupSchema as dd, type OrganisationGroupDTO as de, OrganisationGroupQuerySchema as df, type OrganisationGroupQueryDTO as dg, toOrganisationGroupPayload as dh, newOrganisationGroupPayload as di, findOrganisationGroups as dj, createOrganisationGroup as dk, updateOrganisationGroup as dl, deleteOrganisationGroup as dm, getOrganisationGroupCache as dn, getOrganisationGroupCacheCount as dp, getOrganisationGroupCacheChild as dq, type MasterVehicleSubModel as dr, MasterVehicleSubModelSchema as ds, type MasterVehicleSubModelDTO as dt, MasterVehicleSubModelQuerySchema as du, type MasterVehicleSubModelQueryDTO as dv, toMasterVehicleSubModelPayload as dw, newMasterVehicleSubModelPayload as dx, findMasterVehicleSubModels as dy, createMasterVehicleSubModel as dz, type MasterVehicleFuelUnit as e, MasterVehicleAssociatedToQuerySchema as e$, updateMasterVehicleMake as e0, deleteMasterVehicleMake as e1, getMasterVehicleMakeCache as e2, getMasterVehicleMakeCacheCount as e3, getMasterVehicleMakeCacheChild as e4, type MasterVehicleStatusType as e5, MasterVehicleStatusTypeSchema as e6, type MasterVehicleStatusTypeDTO as e7, MasterVehicleStatusTypeQuerySchema as e8, type MasterVehicleStatusTypeQueryDTO as e9, MasterVehicleTypeQuerySchema as eA, type MasterVehicleTypeQueryDTO as eB, toMasterVehicleTypePayload as eC, newMasterVehicleTypePayload as eD, findMasterVehicleTypes as eE, createMasterVehicleType as eF, updateMasterVehicleType as eG, deleteMasterVehicleType as eH, getMasterVehicleTypeCache as eI, getMasterVehicleTypeCacheCount as eJ, getMasterVehicleTypeCacheChild as eK, MasterVehicleFuelTypeSchema as eL, type MasterVehicleFuelTypeDTO as eM, MasterVehicleFuelTypeQuerySchema as eN, type MasterVehicleFuelTypeQueryDTO as eO, toMasterVehicleFuelTypePayload as eP, newMasterVehicleFuelTypePayload as eQ, findMasterVehicleFuelTypes as eR, createMasterVehicleFuelType as eS, updateMasterVehicleFuelType as eT, deleteMasterVehicleFuelType as eU, getMasterVehicleFuelTypeCache as eV, getMasterVehicleFuelTypeCacheCount as eW, getMasterVehicleFuelTypeCacheChild as eX, type MasterVehicleAssociatedTo as eY, MasterVehicleAssociatedToSchema as eZ, type MasterVehicleAssociatedToDTO as e_, toMasterVehicleStatusTypePayload as ea, newMasterVehicleStatusTypePayload as eb, findMasterVehicleStatusTypes as ec, createMasterVehicleStatusType as ed, updateMasterVehicleStatusType as ee, deleteMasterVehicleStatusType as ef, getMasterVehicleStatusTypeCache as eg, getMasterVehicleStatusTypeCacheCount as eh, getMasterVehicleStatusTypeCacheChild as ei, type MasterVehicleOwnershipType as ej, MasterVehicleOwnershipTypeSchema as ek, type MasterVehicleOwnershipTypeDTO as el, MasterVehicleOwnershipTypeQuerySchema as em, type MasterVehicleOwnershipTypeQueryDTO as en, toMasterVehicleOwnershipTypePayload as eo, newMasterVehicleOwnershipTypePayload as ep, findMasterVehicleOwnershipTypes as eq, createMasterVehicleOwnershipType as er, updateMasterVehicleOwnershipType as es, deleteMasterVehicleOwnershipType as et, getMasterVehicleOwnershipTypeCache as eu, getMasterVehicleOwnershipTypeCacheCount as ev, getMasterVehicleOwnershipTypeCacheChild as ew, type MasterVehicleType as ex, MasterVehicleTypeSchema as ey, type MasterVehicleTypeDTO as ez, type MasterMainCountry as f, findVehicles as f$, type MasterVehicleAssociatedToQueryDTO as f0, toMasterVehicleAssociatedToPayload as f1, newMasterVehicleAssociatedToPayload as f2, findMasterVehicleAssociatedTos as f3, createMasterVehicleAssociatedTo as f4, updateMasterVehicleAssociatedTo as f5, deleteMasterVehicleAssociatedTo as f6, getMasterVehicleAssociatedToCache as f7, getMasterVehicleAssociatedToCacheCount as f8, getMasterVehicleAssociatedToCacheChild as f9, type VehicleDriverLinkDTO as fA, SimpleFindQuerySchema as fB, type SimpleFindQueryDTO as fC, VehicleDetailBodySchema as fD, type VehicleDetailBodyDTO as fE, VehicleDetailGPSMainSchema as fF, type VehicleDetailGPSMainDTO as fG, VehicleDetailGPSDataSchema as fH, type VehicleDetailGPSDataDTO as fI, VehicleDetailGPSAnalyticsSchema as fJ, type VehicleDetailGPSAnalyticsDTO as fK, VehicleDetailLifeCycleSchema as fL, type VehicleDetailLifeCycleDto as fM, VehicleDetailPurchaseSchema as fN, type VehicleDetailPurchaseDTO as fO, VehicleDetailTripSchema as fP, type VehicleDetailTripDTO as fQ, VehicleQuerySchema as fR, type VehicleQueryDTO as fS, VehicleGPSQuerySchema as fT, type VehicleGPSQueryDTO as fU, toVehiclePayload as fV, newVehiclePayload as fW, toVehicleDetailsGPSPayload as fX, toVehicleDetailsBodyPayload as fY, toVehicleDetailPurchasePayload as fZ, toVehicleDetailLifeCyclePayload as f_, MasterVehicleFuelUnitSchema as fa, type MasterVehicleFuelUnitDTO as fb, MasterVehicleFuelUnitQuerySchema as fc, type MasterVehicleFuelUnitQueryDTO as fd, toMasterVehicleFuelUnitPayload as fe, newMasterVehicleFuelUnitPayload as ff, findMasterVehicleFuelUnits as fg, createMasterVehicleFuelUnit as fh, updateMasterVehicleFuelUnit as fi, deleteMasterVehicleFuelUnit as fj, getMasterVehicleFuelUnitCache as fk, getMasterVehicleFuelUnitCacheCount as fl, getMasterVehicleFuelUnitCacheChild as fm, type MasterVehicleDropdown as fn, type VehicleDetailBody as fo, type VehicleDetailLifeCycle as fp, type VehicleDetailPurchase as fq, type VehicleDetailGPS as fr, type VehicleDetailTrip as fs, VehicleSchema as ft, type VehicleDTO as fu, VehicleDeviceLinkSchema as fv, type VehicleDeviceLinkDTO as fw, VehicleDeviceUnlinkSchema as fx, type VehicleDeviceUnlinkDTO as fy, VehicleDriverLinkSchema as fz, type MasterMainState as g, type UserVehicleLink as g$, findVehiclesLiveDashboard as g0, findVehicleGPSDetails as g1, createVehicle as g2, updateVehicle as g3, deleteVehicle as g4, updateVehicleBodyDetails as g5, updateVehicleLifeCycleDetails as g6, updateVehiclePurchaseDetails as g7, updateVehicleGPSDetailsMain as g8, updateVehicleGPSDetailsData as g9, getMasterUserRoleCache as gA, getMasterUserRoleCacheCount as gB, type MasterUserStatus as gC, MasterUserStatusSchema as gD, type MasterUserStatusDTO as gE, MasterUserStatusQuerySchema as gF, type MasterUserStatusQueryDTO as gG, toMasterUserStatusPayload as gH, newMasterUserStatusPayload as gI, findMasterUserStatuses as gJ, createMasterUserStatus as gK, updateMasterUserStatus as gL, deleteMasterUserStatus as gM, getMasterUserStatusCache as gN, getMasterUserStatusCacheCount as gO, type MasterMainLanguage as gP, MasterMainLanguageSchema as gQ, type MasterMainLanguageDTO as gR, MasterMainLanguageQuerySchema as gS, type MasterMainLanguageQueryDTO as gT, toMasterMainLanguagePayload as gU, newMasterMainLanguagePayload as gV, findMasterMainLanguages as gW, createMasterMainLanguage as gX, updateMasterMainLanguage as gY, deleteMasterMainLanguage as gZ, getMasterMainLanguageCache as g_, updateVehicleGPSDetailsAnalytics as ga, updateVehicleTripDetails as gb, linkDriverToVehicle as gc, unlinkDriverFromVehicle as gd, getDriverLinkHistoryByVehicle as ge, getDriverLinkHistoryByDriver as gf, linkDeviceToVehicle as gg, unlinkDeviceFromVehicle as gh, getDeviceLinkHistoryByVehicle as gi, getDeviceLinkHistoryByDevice as gj, getVehicleCache as gk, getVehicleSimpleCache as gl, getVehicleSimpleDropdownCustom as gm, getVehicleSimpleDropdownCacheLiveData as gn, getVehicleParentCache as go, type MasterUserRole as gp, MasterUserRoleSchema as gq, type MasterUserRoleDTO as gr, MasterUserRoleQuerySchema as gs, type MasterUserRoleQueryDTO as gt, toMasterUserRolePayload as gu, newMasterUserRolePayload as gv, findMasterUserRoles as gw, createMasterUserRole as gx, updateMasterUserRole as gy, deleteMasterUserRole as gz, type MasterMainIndustry as h, CreateUserSchema as h0, type CreateUserDTO as h1, UserQuerySchema as h2, type UserQueryDTO as h3, UserDefaultLanguageSchema as h4, type UserDefaultLanguageDTO as h5, UserDefaultTimeZoneSchema as h6, type UserDefaultTimeZoneDTO as h7, UserDefaultDateFormatSchema as h8, type UserDefaultDateFormatDTO as h9, newUserPayload as ha, toUserPayload as hb, findUsers as hc, createUser as hd, updateUser as he, deleteUser as hf, getUserCache as hg, getUserCacheSimple as hh, getUserPresignedUrl as hi, updateUserDefaultLanguage as hj, updateUserDefaultTimezone as hk, updateUserDefaultDateformat as hl, type UserOrganisationSimple as hm, UserOrganisationSchema as hn, type UserOrganisationDTO as ho, UserOrganisationQuerySchema as hp, type UserOrganisationQueryDTO as hq, toUserOrganisationPayload as hr, newUserOrganisationPayload as hs, findUserOrganisations as ht, createUserOrganisation as hu, updateUserOrganisation as hv, deleteUserOrganisation as hw, getUserOrganisationCache as hx, getUserOrganisationCacheSimple as hy, getUserOrganisationPresignedUrl as hz, MasterMainIndustrySchema as i, type MasterMainIndustryDTO as j, MasterMainIndustryQuerySchema as k, type MasterMainIndustryQueryDTO as l, findMasterMainIndustrys as m, newMasterMainIndustryPayload as n, createMasterMainIndustry as o, deleteMasterMainIndustry as p, getMasterMainIndustryCache as q, type MasterMainCurrency as r, MasterMainCurrencySchema as s, toMasterMainIndustryPayload as t, updateMasterMainIndustry as u, type MasterMainCurrencyDTO as v, MasterMainCurrencyQuerySchema as w, type MasterMainCurrencyQueryDTO as x, toMasterMainCurrencyPayload as y, newMasterMainCurrencyPayload as z };