vms-nest-prisma-api-document 150.0.0 → 160.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/services/account/bookmark_service.d.ts +1 -1
- package/dist/services/account/notification_preferences.service.d.ts +1 -1
- package/dist/services/account/report_preferences.service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +21 -21
- package/dist/services/fleet/bus_mangement/calender.d.ts +7 -7
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +13 -13
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +9 -9
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +12 -12
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.js +83 -75
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +135 -4
- package/dist/services/master/expense/master_expense_type_service.d.ts +125 -4
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +124 -4
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +127 -4
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +127 -4
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +127 -4
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +127 -4
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +127 -4
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +269 -4
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +132 -4
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +127 -4
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +128 -4
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +261 -4
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/{user_organisation_service-CdoeXDR4.d.ts → user_organisation_service-DmtsKLFI.d.ts} +34 -1912
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TrackHistoryLinkStatus, Status, ShareChannel, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, BR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -48,17 +48,17 @@ declare const GPSTrackHistoryShareLinkNotificationSchema: z.ZodObject<{
|
|
|
48
48
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
49
49
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
gps_track_history_share_link_id: string;
|
|
52
51
|
status: Status;
|
|
53
52
|
organisation_id: string;
|
|
54
53
|
share_channels: ShareChannel.Email[];
|
|
55
54
|
mobile_numbers: string;
|
|
56
55
|
email_ids: string;
|
|
57
56
|
cc_email_ids: string;
|
|
58
|
-
}, {
|
|
59
57
|
gps_track_history_share_link_id: string;
|
|
58
|
+
}, {
|
|
60
59
|
status: Status;
|
|
61
60
|
organisation_id: string;
|
|
61
|
+
gps_track_history_share_link_id: string;
|
|
62
62
|
share_channels?: ShareChannel.Email[] | undefined;
|
|
63
63
|
mobile_numbers?: string | undefined;
|
|
64
64
|
email_ids?: string | undefined;
|
|
@@ -74,21 +74,21 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
74
74
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
75
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
from_date_time: string;
|
|
78
|
-
to_date_time: string;
|
|
79
77
|
link_status: TrackHistoryLinkStatus;
|
|
80
78
|
status: Status;
|
|
81
79
|
organisation_id: string;
|
|
82
80
|
vehicle_id: string;
|
|
83
81
|
time_zone_id: string;
|
|
84
|
-
}, {
|
|
85
82
|
from_date_time: string;
|
|
86
83
|
to_date_time: string;
|
|
84
|
+
}, {
|
|
87
85
|
link_status: TrackHistoryLinkStatus;
|
|
88
86
|
status: Status;
|
|
89
87
|
organisation_id: string;
|
|
90
88
|
vehicle_id: string;
|
|
91
89
|
time_zone_id: string;
|
|
90
|
+
from_date_time: string;
|
|
91
|
+
to_date_time: string;
|
|
92
92
|
}>;
|
|
93
93
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
94
94
|
declare const GPSTrackHistoryShareLinkUpdateLinkStatusSchema: z.ZodObject<{
|
|
@@ -137,7 +137,6 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
link_status: TrackHistoryLinkStatus[];
|
|
139
139
|
status: Status[];
|
|
140
|
-
time_zone_id: string;
|
|
141
140
|
search: string;
|
|
142
141
|
paging: PAGING;
|
|
143
142
|
page_count: number;
|
|
@@ -157,12 +156,13 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
157
156
|
}[];
|
|
158
157
|
include_master_data: YesNo;
|
|
159
158
|
date_format_id: string;
|
|
159
|
+
time_zone_id: string;
|
|
160
160
|
organisation_ids: string[];
|
|
161
161
|
vehicle_ids: string[];
|
|
162
162
|
gps_track_history_share_link_ids: string[];
|
|
163
163
|
}, {
|
|
164
|
-
time_zone_id: string;
|
|
165
164
|
date_format_id: string;
|
|
165
|
+
time_zone_id: string;
|
|
166
166
|
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
167
167
|
status?: Status[] | undefined;
|
|
168
168
|
search?: string | undefined;
|
|
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
|
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
export { c3 as AssignRemoveDeviceHistory, c9 as DeviceSimLinkDTO, c8 as DeviceSimLinkSchema, c as MasterDevice, c5 as MasterDeviceDTO, c7 as MasterDeviceQueryDTO, c6 as MasterDeviceQuerySchema, c4 as MasterDeviceSchema, cd as createMasterDevice, cf as deleteMasterDevice, cg as device_sim_link, ch as device_sim_unlink, cc as findMasterDevices, cj as get_device_sim_link_history_by_device, ci as get_device_sim_link_history_by_sim, cb as newMasterDevicePayload, ca as toMasterDevicePayload, ce as updateMasterDevice } from '../../../user_organisation_service-
|
|
5
|
+
export { c3 as AssignRemoveDeviceHistory, c9 as DeviceSimLinkDTO, c8 as DeviceSimLinkSchema, c as MasterDevice, c5 as MasterDeviceDTO, c7 as MasterDeviceQueryDTO, c6 as MasterDeviceQuerySchema, c4 as MasterDeviceSchema, cd as createMasterDevice, cf as deleteMasterDevice, cg as device_sim_link, ch as device_sim_unlink, cc as findMasterDevices, cj as get_device_sim_link_history_by_device, ci as get_device_sim_link_history_by_sim, cb as newMasterDevicePayload, ca as toMasterDevicePayload, ce as updateMasterDevice } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { a$ as AssignRemoveDriverHistory, b3 as DriverQueryDTO, b2 as DriverQuerySchema, b as MasterDriver, b1 as MasterDriverDTO, b0 as MasterDriverSchema, b7 as createDriver, b9 as deleteDriver, b6 as findDrivers, bb as getDriverCache, bc as getDriverSimpleCache, ba as getPresignedUrlForDriver, b5 as newDriverPayload, b4 as toDriverPayload, b8 as updateDriver } from '../../../user_organisation_service-
|
|
4
|
+
export { a$ as AssignRemoveDriverHistory, b3 as DriverQueryDTO, b2 as DriverQuerySchema, b as MasterDriver, b1 as MasterDriverDTO, b0 as MasterDriverSchema, b7 as createDriver, b9 as deleteDriver, b6 as findDrivers, bb as getDriverCache, bc as getDriverSimpleCache, ba as getPresignedUrlForDriver, b5 as newDriverPayload, b4 as toDriverPayload, b8 as updateDriver } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bU as AssignRemoveSimHistory, bT as MasterSim, bW as MasterSimDTO, bY as MasterSimQueryDTO, bX as MasterSimQuerySchema, bV as MasterSimSchema, c0 as createMasterSim, c2 as deleteMasterSim, b$ as findMasterSims, b_ as newMasterSimPayload, bZ as toMasterSimPayload, c1 as updateMasterSim } from '../../../user_organisation_service-
|
|
4
|
+
export { bU as AssignRemoveSimHistory, bT as MasterSim, bW as MasterSimDTO, bY as MasterSimQueryDTO, bX as MasterSimQuerySchema, bV as MasterSimSchema, c0 as createMasterSim, c2 as deleteMasterSim, b$ as findMasterSims, b_ as newMasterSimPayload, bZ as toMasterSimPayload, c1 as updateMasterSim } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BR, SBR } from '../../../core/BaseResponse.js';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { a as User } from '../../../user_organisation_service-
|
|
3
|
+
import { a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
4
4
|
import { UserAdmin } from './user_admin_service.js';
|
|
5
5
|
import { LoginFrom } from '../../../core/Enums.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { U as UserOrganisation,
|
|
4
|
+
export { U as UserOrganisation, ho as UserOrganisationDTO, hq as UserOrganisationQueryDTO, hp as UserOrganisationQuerySchema, hn as UserOrganisationSchema, hm as UserOrganisationSimple, hu as createUserOrganisation, hw as deleteUserOrganisation, ht as findUserOrganisations, hx as getUserOrganisationCache, hy as getUserOrganisationCacheSimple, hz as getUserOrganisationPresignedUrl, hs as newUserOrganisationPayload, hr as toUserOrganisationPayload, hv as updateUserOrganisation } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -267,18 +267,21 @@ var ENDPOINTS = {
|
|
|
267
267
|
};
|
|
268
268
|
var UserOrganisationSchema = z3.object({
|
|
269
269
|
organisation_name: stringMandatory("Organisation Name", 3, 100),
|
|
270
|
-
organisation_email:
|
|
270
|
+
organisation_email: stringOptional("Organisation Email", 0, 100),
|
|
271
271
|
organisation_mobile: stringOptional("Organisation Mobile", 0, 20),
|
|
272
|
+
organisation_code: stringOptional("Organisation Code", 0, 20),
|
|
273
|
+
organisation_utrack_id: stringOptional("Organisation UTrack ID", 0, 20),
|
|
272
274
|
fleet_size: enumMandatory(
|
|
273
275
|
"Fleet Size",
|
|
274
276
|
FleetSize,
|
|
275
277
|
"Fleet_1_to_50_Vehicles" /* Fleet_1_to_50_Vehicles */
|
|
276
278
|
),
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
logo_url: stringOptional("Logo URL", 0, 300),
|
|
280
|
+
logo_key: stringOptional("Logo Key", 0, 300),
|
|
281
|
+
logo_name: stringOptional("Logo Name", 0, 300),
|
|
280
282
|
company_cin: stringOptional("Company CIN", 0, 50),
|
|
281
283
|
company_tin_gstin: stringOptional("Company TIN/GSTIN", 0, 50),
|
|
284
|
+
// Billing Address
|
|
282
285
|
billing_address_line1: stringOptional("Billing Address Line 1", 0, 150),
|
|
283
286
|
billing_address_line2: stringOptional("Billing Address Line 2", 0, 150),
|
|
284
287
|
billing_locality_landmark: stringOptional(
|
|
@@ -309,72 +312,64 @@ var UserOrganisationSchema = z3.object({
|
|
|
309
312
|
country: stringOptional("Country", 0, 100),
|
|
310
313
|
country_code: stringOptional("Country Code", 0, 5),
|
|
311
314
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
312
|
-
industry_id: single_select_mandatory("
|
|
313
|
-
// Single
|
|
314
|
-
country_id: single_select_mandatory("
|
|
315
|
-
// Single
|
|
316
|
-
state_id: single_select_optional("
|
|
317
|
-
// Single
|
|
318
|
-
|
|
319
|
-
// Single
|
|
320
|
-
|
|
321
|
-
// Single
|
|
322
|
-
|
|
323
|
-
// Single
|
|
324
|
-
|
|
325
|
-
// Single
|
|
326
|
-
distance_unit_id: single_select_optional("
|
|
327
|
-
// Single
|
|
328
|
-
mileage_unit_id: single_select_optional("
|
|
329
|
-
// Single
|
|
330
|
-
volume_unit_id: single_select_optional("
|
|
331
|
-
// Single
|
|
315
|
+
industry_id: single_select_mandatory("MasterMainIndustry"),
|
|
316
|
+
// ✅ Single-Selection -> MasterMainIndustry
|
|
317
|
+
country_id: single_select_mandatory("MasterMainCountry"),
|
|
318
|
+
// ✅ Single-Selection -> MasterMainCountry
|
|
319
|
+
state_id: single_select_optional("MasterMainState"),
|
|
320
|
+
// ✅ Single-Selection -> MasterMainState
|
|
321
|
+
currency_id: single_select_optional("MasterMainCurrency"),
|
|
322
|
+
// ✅ Single-Selection -> MasterMainCurrency
|
|
323
|
+
language_id: single_select_optional("MasterMainLanguage"),
|
|
324
|
+
// ✅ Single-Selection -> MasterMainLanguage
|
|
325
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone"),
|
|
326
|
+
// ✅ Single-Selection -> MasterMainTimeZone
|
|
327
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
328
|
+
// ✅ Single-Selection -> MasterMainDateFormat
|
|
329
|
+
distance_unit_id: single_select_optional("MasterMainUnitDistance"),
|
|
330
|
+
// ✅ Single-Selection -> MasterMainUnitDistance
|
|
331
|
+
mileage_unit_id: single_select_optional("MasterMainUnitMileage"),
|
|
332
|
+
// ✅ Single-Selection -> MasterMainUnitMileage
|
|
333
|
+
volume_unit_id: single_select_optional("MasterMainUnitVolume")
|
|
334
|
+
// ✅ Single-Selection -> MasterMainUnitVolume
|
|
332
335
|
});
|
|
333
336
|
var UserOrganisationQuerySchema = BaseQuerySchema.extend({
|
|
334
|
-
industry_ids: multi_select_optional("
|
|
335
|
-
// Multi-
|
|
336
|
-
country_ids: multi_select_optional("
|
|
337
|
-
// Multi-
|
|
338
|
-
state_ids: multi_select_optional("
|
|
339
|
-
// Multi-
|
|
340
|
-
|
|
341
|
-
// Multi-
|
|
342
|
-
|
|
343
|
-
// Multi-
|
|
344
|
-
|
|
345
|
-
// Multi-
|
|
346
|
-
|
|
347
|
-
// Multi-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
// Multi-selection -> UserOrganisation
|
|
337
|
+
industry_ids: multi_select_optional("MasterMainIndustry"),
|
|
338
|
+
// ✅ Multi-Selection -> MasterMainIndustry
|
|
339
|
+
country_ids: multi_select_optional("MasterMainCountry"),
|
|
340
|
+
// ✅ Multi-Selection -> MasterMainCountry
|
|
341
|
+
state_ids: multi_select_optional("MasterMainState"),
|
|
342
|
+
// ✅ Multi-Selection -> MasterMainState
|
|
343
|
+
currency_ids: multi_select_optional("MasterMainCurrency"),
|
|
344
|
+
// ✅ Multi-Selection -> MasterMainCurrency
|
|
345
|
+
language_ids: multi_select_optional("MasterMainLanguage"),
|
|
346
|
+
// ✅ Multi-Selection -> MasterMainLanguage
|
|
347
|
+
time_zone_ids: multi_select_optional("MasterMainTimeZone"),
|
|
348
|
+
// ✅ Multi-Selection -> MasterMainTimeZone
|
|
349
|
+
date_format_ids: multi_select_optional("MasterMainDateFormat"),
|
|
350
|
+
// ✅ Multi-Selection -> MasterMainDateFormat
|
|
351
|
+
fleet_size: enumArrayOptional(
|
|
352
|
+
"Fleet Size",
|
|
353
|
+
FleetSize,
|
|
354
|
+
getAllEnums(FleetSize)
|
|
355
|
+
),
|
|
356
|
+
organisation_ids: multi_select_optional("UserOrganisation")
|
|
357
|
+
// ✅ Multi-Selection -> UserOrganisation
|
|
356
358
|
});
|
|
357
359
|
var toUserOrganisationPayload = (organisation) => ({
|
|
358
360
|
organisation_name: organisation.organisation_name,
|
|
359
|
-
organisation_email: organisation.organisation_email,
|
|
361
|
+
organisation_email: organisation.organisation_email ?? "",
|
|
360
362
|
organisation_mobile: organisation.organisation_mobile ?? "",
|
|
363
|
+
organisation_code: organisation.organisation_code ?? "",
|
|
364
|
+
organisation_utrack_id: organisation.organisation_utrack_id ?? "",
|
|
361
365
|
fleet_size: organisation.fleet_size,
|
|
362
|
-
|
|
363
|
-
|
|
366
|
+
logo_url: organisation.logo_url ?? "",
|
|
367
|
+
logo_key: organisation.logo_key ?? "",
|
|
368
|
+
logo_name: organisation.logo_name ?? "",
|
|
364
369
|
status: organisation.status,
|
|
365
|
-
industry_id: organisation.industry_id,
|
|
366
|
-
country_id: organisation.country_id,
|
|
367
|
-
state_id: organisation.state_id ?? "",
|
|
368
|
-
time_zone_id: organisation.time_zone_id ?? "",
|
|
369
|
-
currency_id: organisation.currency_id ?? "",
|
|
370
|
-
date_format_id: organisation.date_format_id ?? "",
|
|
371
|
-
language_id: organisation.language_id ?? "",
|
|
372
|
-
distance_unit_id: organisation.distance_unit_id ?? "",
|
|
373
|
-
mileage_unit_id: organisation.mileage_unit_id ?? "",
|
|
374
|
-
volume_unit_id: organisation.volume_unit_id ?? "",
|
|
375
|
-
// Billing Information
|
|
376
370
|
company_cin: organisation.company_cin ?? "",
|
|
377
371
|
company_tin_gstin: organisation.company_tin_gstin ?? "",
|
|
372
|
+
// Billing Address
|
|
378
373
|
billing_address_line1: organisation.billing_address_line1 ?? "",
|
|
379
374
|
billing_address_line2: organisation.billing_address_line2 ?? "",
|
|
380
375
|
billing_locality_landmark: organisation.billing_locality_landmark ?? "",
|
|
@@ -395,29 +390,32 @@ var toUserOrganisationPayload = (organisation) => ({
|
|
|
395
390
|
state_province_region: organisation.state_province_region ?? "",
|
|
396
391
|
postal_code: organisation.postal_code ?? "",
|
|
397
392
|
country: organisation.country ?? "",
|
|
398
|
-
country_code: organisation.country_code ?? ""
|
|
393
|
+
country_code: organisation.country_code ?? "",
|
|
394
|
+
industry_id: organisation.industry_id,
|
|
395
|
+
country_id: organisation.country_id,
|
|
396
|
+
state_id: organisation.state_id ?? "",
|
|
397
|
+
currency_id: organisation.currency_id ?? "",
|
|
398
|
+
language_id: organisation.language_id ?? "",
|
|
399
|
+
time_zone_id: organisation.time_zone_id ?? "",
|
|
400
|
+
date_format_id: organisation.date_format_id ?? "",
|
|
401
|
+
distance_unit_id: organisation.distance_unit_id ?? "",
|
|
402
|
+
mileage_unit_id: organisation.mileage_unit_id ?? "",
|
|
403
|
+
volume_unit_id: organisation.volume_unit_id ?? ""
|
|
399
404
|
});
|
|
400
405
|
var newUserOrganisationPayload = () => ({
|
|
401
406
|
organisation_name: "",
|
|
402
407
|
organisation_email: "",
|
|
403
408
|
organisation_mobile: "",
|
|
409
|
+
organisation_code: "",
|
|
410
|
+
organisation_utrack_id: "",
|
|
404
411
|
fleet_size: "Fleet_1_to_50_Vehicles" /* Fleet_1_to_50_Vehicles */,
|
|
405
|
-
|
|
406
|
-
|
|
412
|
+
logo_url: "",
|
|
413
|
+
logo_key: "",
|
|
414
|
+
logo_name: "",
|
|
407
415
|
status: "Active" /* Active */,
|
|
408
|
-
industry_id: "",
|
|
409
|
-
country_id: "",
|
|
410
|
-
state_id: "",
|
|
411
|
-
time_zone_id: "",
|
|
412
|
-
currency_id: "",
|
|
413
|
-
date_format_id: "",
|
|
414
|
-
language_id: "",
|
|
415
|
-
distance_unit_id: "",
|
|
416
|
-
mileage_unit_id: "",
|
|
417
|
-
volume_unit_id: "",
|
|
418
|
-
// Billing Information
|
|
419
416
|
company_cin: "",
|
|
420
417
|
company_tin_gstin: "",
|
|
418
|
+
// Billing Address
|
|
421
419
|
billing_address_line1: "",
|
|
422
420
|
billing_address_line2: "",
|
|
423
421
|
billing_locality_landmark: "",
|
|
@@ -438,7 +436,17 @@ var newUserOrganisationPayload = () => ({
|
|
|
438
436
|
state_province_region: "",
|
|
439
437
|
postal_code: "",
|
|
440
438
|
country: "",
|
|
441
|
-
country_code: ""
|
|
439
|
+
country_code: "",
|
|
440
|
+
industry_id: "",
|
|
441
|
+
country_id: "",
|
|
442
|
+
state_id: "",
|
|
443
|
+
currency_id: "",
|
|
444
|
+
language_id: "",
|
|
445
|
+
time_zone_id: "",
|
|
446
|
+
date_format_id: "",
|
|
447
|
+
distance_unit_id: "",
|
|
448
|
+
mileage_unit_id: "",
|
|
449
|
+
volume_unit_id: ""
|
|
442
450
|
});
|
|
443
451
|
var findUserOrganisations = async (data) => {
|
|
444
452
|
return apiPost(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { h1 as CreateUserDTO, h0 as CreateUserSchema, a as User, h9 as UserDefaultDateFormatDTO, h8 as UserDefaultDateFormatSchema, h5 as UserDefaultLanguageDTO, h4 as UserDefaultLanguageSchema, h7 as UserDefaultTimeZoneDTO, h6 as UserDefaultTimeZoneSchema, h3 as UserQueryDTO, h2 as UserQuerySchema, g$ as UserVehicleLink, hd as createUser, hf as deleteUser, hc as findUsers, hg as getUserCache, hh as getUserCacheSimple, hi as getUserPresignedUrl, ha as newUserPayload, hb as toUserPayload, he as updateUser, hl as updateUserDefaultDateformat, hj as updateUserDefaultLanguage, hk as updateUserDefaultTimezone } from '../../../user_organisation_service-
|
|
4
|
+
export { h1 as CreateUserDTO, h0 as CreateUserSchema, a as User, h9 as UserDefaultDateFormatDTO, h8 as UserDefaultDateFormatSchema, h5 as UserDefaultLanguageDTO, h4 as UserDefaultLanguageSchema, h7 as UserDefaultTimeZoneDTO, h6 as UserDefaultTimeZoneSchema, h3 as UserQueryDTO, h2 as UserQuerySchema, g$ as UserVehicleLink, hd as createUser, hf as deleteUser, hc as findUsers, hg as getUserCache, hh as getUserCacheSimple, hi as getUserPresignedUrl, ha as newUserPayload, hb as toUserPayload, he as updateUser, hl as updateUserDefaultDateformat, hj as updateUserDefaultLanguage, hk as updateUserDefaultTimezone } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OdometerSource, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -2,5 +2,5 @@ import '../../../core/Enums.js';
|
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
export { M as MasterVehicle, fn as MasterVehicleDropdown, fC as SimpleFindQueryDTO, fB as SimpleFindQuerySchema, fu as VehicleDTO, fo as VehicleDetailBody, fE as VehicleDetailBodyDTO, fD as VehicleDetailBodySchema, fr as VehicleDetailGPS, fK as VehicleDetailGPSAnalyticsDTO, fJ as VehicleDetailGPSAnalyticsSchema, fI as VehicleDetailGPSDataDTO, fH as VehicleDetailGPSDataSchema, fG as VehicleDetailGPSMainDTO, fF as VehicleDetailGPSMainSchema, fp as VehicleDetailLifeCycle, fM as VehicleDetailLifeCycleDto, fL as VehicleDetailLifeCycleSchema, fq as VehicleDetailPurchase, fO as VehicleDetailPurchaseDTO, fN as VehicleDetailPurchaseSchema, fs as VehicleDetailTrip, fQ as VehicleDetailTripDTO, fP as VehicleDetailTripSchema, fw as VehicleDeviceLinkDTO, fv as VehicleDeviceLinkSchema, fy as VehicleDeviceUnlinkDTO, fx as VehicleDeviceUnlinkSchema, fA as VehicleDriverLinkDTO, fz as VehicleDriverLinkSchema, fU as VehicleGPSQueryDTO, fT as VehicleGPSQuerySchema, fS as VehicleQueryDTO, fR as VehicleQuerySchema, ft as VehicleSchema, g2 as createVehicle, g4 as deleteVehicle, g1 as findVehicleGPSDetails, f$ as findVehicles, g0 as findVehiclesLiveDashboard, gj as getDeviceLinkHistoryByDevice, gi as getDeviceLinkHistoryByVehicle, gf as getDriverLinkHistoryByDriver, ge as getDriverLinkHistoryByVehicle, gk as getVehicleCache, go as getVehicleParentCache, gl as getVehicleSimpleCache, gn as getVehicleSimpleDropdownCacheLiveData, gm as getVehicleSimpleDropdownCustom, gg as linkDeviceToVehicle, gc as linkDriverToVehicle, fW as newVehiclePayload, f_ as toVehicleDetailLifeCyclePayload, fZ as toVehicleDetailPurchasePayload, fY as toVehicleDetailsBodyPayload, fX as toVehicleDetailsGPSPayload, fV as toVehiclePayload, gh as unlinkDeviceFromVehicle, gd as unlinkDriverFromVehicle, g3 as updateVehicle, g5 as updateVehicleBodyDetails, ga as updateVehicleGPSDetailsAnalytics, g9 as updateVehicleGPSDetailsData, g8 as updateVehicleGPSDetailsMain, g6 as updateVehicleLifeCycleDetails, g7 as updateVehiclePurchaseDetails, gb as updateVehicleTripDetails } from '../../../user_organisation_service-
|
|
5
|
+
export { M as MasterVehicle, fn as MasterVehicleDropdown, fC as SimpleFindQueryDTO, fB as SimpleFindQuerySchema, fu as VehicleDTO, fo as VehicleDetailBody, fE as VehicleDetailBodyDTO, fD as VehicleDetailBodySchema, fr as VehicleDetailGPS, fK as VehicleDetailGPSAnalyticsDTO, fJ as VehicleDetailGPSAnalyticsSchema, fI as VehicleDetailGPSDataDTO, fH as VehicleDetailGPSDataSchema, fG as VehicleDetailGPSMainDTO, fF as VehicleDetailGPSMainSchema, fp as VehicleDetailLifeCycle, fM as VehicleDetailLifeCycleDto, fL as VehicleDetailLifeCycleSchema, fq as VehicleDetailPurchase, fO as VehicleDetailPurchaseDTO, fN as VehicleDetailPurchaseSchema, fs as VehicleDetailTrip, fQ as VehicleDetailTripDTO, fP as VehicleDetailTripSchema, fw as VehicleDeviceLinkDTO, fv as VehicleDeviceLinkSchema, fy as VehicleDeviceUnlinkDTO, fx as VehicleDeviceUnlinkSchema, fA as VehicleDriverLinkDTO, fz as VehicleDriverLinkSchema, fU as VehicleGPSQueryDTO, fT as VehicleGPSQuerySchema, fS as VehicleQueryDTO, fR as VehicleQuerySchema, ft as VehicleSchema, g2 as createVehicle, g4 as deleteVehicle, g1 as findVehicleGPSDetails, f$ as findVehicles, g0 as findVehiclesLiveDashboard, gj as getDeviceLinkHistoryByDevice, gi as getDeviceLinkHistoryByVehicle, gf as getDriverLinkHistoryByDriver, ge as getDriverLinkHistoryByVehicle, gk as getVehicleCache, go as getVehicleParentCache, gl as getVehicleSimpleCache, gn as getVehicleSimpleDropdownCacheLiveData, gm as getVehicleSimpleDropdownCustom, gg as linkDeviceToVehicle, gc as linkDriverToVehicle, fW as newVehiclePayload, f_ as toVehicleDetailLifeCyclePayload, fZ as toVehicleDetailPurchasePayload, fY as toVehicleDetailsBodyPayload, fX as toVehicleDetailsGPSPayload, fV as toVehiclePayload, gh as unlinkDeviceFromVehicle, gd as unlinkDriverFromVehicle, g3 as updateVehicle, g5 as updateVehicleBodyDetails, ga as updateVehicleGPSDetailsAnalytics, g9 as updateVehicleGPSDetailsData, g8 as updateVehicleGPSDetailsMain, g6 as updateVehicleLifeCycleDetails, g7 as updateVehiclePurchaseDetails, gb as updateVehicleTripDetails } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bF as MasterDeviceManufacturer, bH as MasterDeviceManufacturerDTO, bJ as MasterDeviceManufacturerQueryDTO, bI as MasterDeviceManufacturerQuerySchema, bG as MasterDeviceManufacturerSchema, bN as createMasterDeviceManufacturer, bP as deleteMasterDeviceManufacturer, bM as findMasterDeviceManufacturers, bQ as getMasterDeviceManufacturerCache, bS as getMasterDeviceManufacturerCacheChild, bR as getMasterDeviceManufacturerCacheCount, bL as newMasterDeviceManufacturerPayload, bK as toMasterDeviceManufacturerPayload, bO as updateMasterDeviceManufacturer } from '../../../user_organisation_service-
|
|
4
|
+
export { bF as MasterDeviceManufacturer, bH as MasterDeviceManufacturerDTO, bJ as MasterDeviceManufacturerQueryDTO, bI as MasterDeviceManufacturerQuerySchema, bG as MasterDeviceManufacturerSchema, bN as createMasterDeviceManufacturer, bP as deleteMasterDeviceManufacturer, bM as findMasterDeviceManufacturers, bQ as getMasterDeviceManufacturerCache, bS as getMasterDeviceManufacturerCacheChild, bR as getMasterDeviceManufacturerCacheCount, bL as newMasterDeviceManufacturerPayload, bK as toMasterDeviceManufacturerPayload, bO as updateMasterDeviceManufacturer } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { br as MasterDeviceModel, bt as MasterDeviceModelDTO, bv as MasterDeviceModelQueryDTO, bu as MasterDeviceModelQuerySchema, bs as MasterDeviceModelSchema, bz as createMasterDeviceModel, bB as deleteMasterDeviceModel, by as findMasterDeviceModels, bC as getMasterDeviceModelCache, bE as getMasterDeviceModelCacheChild, bD as getMasterDeviceModelCacheCount, bx as newMasterDeviceModelPayload, bw as toMasterDeviceModelPayload, bA as updateMasterDeviceModel } from '../../../user_organisation_service-
|
|
4
|
+
export { br as MasterDeviceModel, bt as MasterDeviceModelDTO, bv as MasterDeviceModelQueryDTO, bu as MasterDeviceModelQuerySchema, bs as MasterDeviceModelSchema, bz as createMasterDeviceModel, bB as deleteMasterDeviceModel, by as findMasterDeviceModels, bC as getMasterDeviceModelCache, bE as getMasterDeviceModelCacheChild, bD as getMasterDeviceModelCacheCount, bx as newMasterDeviceModelPayload, bw as toMasterDeviceModelPayload, bA as updateMasterDeviceModel } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../../core/Enums.js';
|
|
2
2
|
import '../../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
|
-
export { bd as MasterDeviceType, bf as MasterDeviceTypeDTO, bh as MasterDeviceTypeQueryDTO, bg as MasterDeviceTypeQuerySchema, be as MasterDeviceTypeSchema, bl as createMasterDeviceType, bn as deleteMasterDeviceType, bk as findMasterDeviceTypes, bo as getMasterDeviceTypeCache, bq as getMasterDeviceTypeCacheChild, bp as getMasterDeviceTypeCacheCount, bj as newMasterDeviceTypePayload, bi as toMasterDeviceTypePayload, bm as updateMasterDeviceType } from '../../../user_organisation_service-
|
|
4
|
+
export { bd as MasterDeviceType, bf as MasterDeviceTypeDTO, bh as MasterDeviceTypeQueryDTO, bg as MasterDeviceTypeQuerySchema, be as MasterDeviceTypeSchema, bl as createMasterDeviceType, bn as deleteMasterDeviceType, bk as findMasterDeviceTypes, bo as getMasterDeviceTypeCache, bq as getMasterDeviceTypeCacheChild, bp as getMasterDeviceTypeCacheCount, bj as newMasterDeviceTypePayload, bi as toMasterDeviceTypePayload, bm as updateMasterDeviceType } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
@@ -1,6 +1,137 @@
|
|
|
1
|
-
import '../../../core/Enums.js';
|
|
2
|
-
import '../../../core/BaseResponse.js';
|
|
3
|
-
import 'zod';
|
|
4
|
-
|
|
1
|
+
import { ExpenseCategory, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
|
+
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { U as UserOrganisation } from '../../../user_organisation_service-DmtsKLFI.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
|
+
|
|
8
|
+
interface MasterExpenseName extends Record<string, unknown> {
|
|
9
|
+
expense_name_id: string;
|
|
10
|
+
expense_name: string;
|
|
11
|
+
expense_category: ExpenseCategory;
|
|
12
|
+
description?: string;
|
|
13
|
+
status: Status;
|
|
14
|
+
added_date_time: string;
|
|
15
|
+
modified_date_time: string;
|
|
16
|
+
organisation_id?: string;
|
|
17
|
+
UserOrganisation?: UserOrganisation;
|
|
18
|
+
_count?: {
|
|
19
|
+
VehicleDocument: number;
|
|
20
|
+
FleetIncidentManagementCost: number;
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
declare const MasterExpenseNameSchema: z.ZodObject<{
|
|
24
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
+
expense_name: z.ZodEffects<z.ZodString, string, string>;
|
|
26
|
+
expense_category: z.ZodType<ExpenseCategory, z.ZodTypeDef, ExpenseCategory>;
|
|
27
|
+
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
28
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
29
|
+
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
status: Status;
|
|
31
|
+
organisation_id: string;
|
|
32
|
+
description: string;
|
|
33
|
+
expense_name: string;
|
|
34
|
+
expense_category: ExpenseCategory;
|
|
35
|
+
}, {
|
|
36
|
+
status: Status;
|
|
37
|
+
organisation_id: string;
|
|
38
|
+
expense_name: string;
|
|
39
|
+
expense_category: ExpenseCategory;
|
|
40
|
+
description?: string | undefined;
|
|
41
|
+
}>;
|
|
42
|
+
type MasterExpenseNameDTO = z.infer<typeof MasterExpenseNameSchema>;
|
|
43
|
+
declare const MasterExpenseNameQuerySchema: z.ZodObject<{
|
|
44
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
45
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
46
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
47
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
48
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
49
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
50
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
51
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
52
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
53
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
54
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
55
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
56
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
57
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
58
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
59
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
60
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
name: string;
|
|
63
|
+
field: string;
|
|
64
|
+
direction: OrderBy;
|
|
65
|
+
}, {
|
|
66
|
+
name: string;
|
|
67
|
+
field: string;
|
|
68
|
+
direction: OrderBy;
|
|
69
|
+
}>, "many">>>;
|
|
70
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
71
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
72
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
73
|
+
} & {
|
|
74
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
75
|
+
expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
76
|
+
expense_category: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExpenseCategory>, "many">>>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
status: Status[];
|
|
79
|
+
search: string;
|
|
80
|
+
paging: PAGING;
|
|
81
|
+
page_count: number;
|
|
82
|
+
page_index: number;
|
|
83
|
+
load_parents: LoadParents;
|
|
84
|
+
load_parents_list: string[];
|
|
85
|
+
load_child: LoadChild;
|
|
86
|
+
load_child_list: string[];
|
|
87
|
+
load_child_count: LoadChildCount;
|
|
88
|
+
load_child_count_list: string[];
|
|
89
|
+
include_details: Record<string, any>;
|
|
90
|
+
where_relations: Record<string, any>;
|
|
91
|
+
order_by: {
|
|
92
|
+
name: string;
|
|
93
|
+
field: string;
|
|
94
|
+
direction: OrderBy;
|
|
95
|
+
}[];
|
|
96
|
+
include_master_data: YesNo;
|
|
97
|
+
date_format_id: string;
|
|
98
|
+
time_zone_id: string;
|
|
99
|
+
organisation_ids: string[];
|
|
100
|
+
expense_category: ExpenseCategory[];
|
|
101
|
+
expense_name_ids: string[];
|
|
102
|
+
}, {
|
|
103
|
+
date_format_id: string;
|
|
104
|
+
time_zone_id: string;
|
|
105
|
+
status?: Status[] | undefined;
|
|
106
|
+
search?: string | undefined;
|
|
107
|
+
paging?: PAGING | undefined;
|
|
108
|
+
page_count?: unknown;
|
|
109
|
+
page_index?: unknown;
|
|
110
|
+
load_parents?: LoadParents | undefined;
|
|
111
|
+
load_parents_list?: string[] | undefined;
|
|
112
|
+
load_child?: LoadChild | undefined;
|
|
113
|
+
load_child_list?: string[] | undefined;
|
|
114
|
+
load_child_count?: LoadChildCount | undefined;
|
|
115
|
+
load_child_count_list?: string[] | undefined;
|
|
116
|
+
include_details?: Record<string, any> | undefined;
|
|
117
|
+
where_relations?: Record<string, any> | undefined;
|
|
118
|
+
order_by?: {
|
|
119
|
+
name: string;
|
|
120
|
+
field: string;
|
|
121
|
+
direction: OrderBy;
|
|
122
|
+
}[] | undefined;
|
|
123
|
+
include_master_data?: YesNo | undefined;
|
|
124
|
+
organisation_ids?: string[] | undefined;
|
|
125
|
+
expense_category?: ExpenseCategory[] | undefined;
|
|
126
|
+
expense_name_ids?: string[] | undefined;
|
|
127
|
+
}>;
|
|
128
|
+
type MasterExpenseNameQueryDTO = z.infer<typeof MasterExpenseNameQuerySchema>;
|
|
129
|
+
declare const toMasterExpenseNamePayload: (row: MasterExpenseName) => MasterExpenseNameDTO;
|
|
130
|
+
declare const newMasterExpenseNamePayload: () => MasterExpenseNameDTO;
|
|
131
|
+
declare const findMasterExpenseNames: (data: MasterExpenseNameQueryDTO) => Promise<FBR<MasterExpenseName[]>>;
|
|
132
|
+
declare const createMasterExpenseName: (data: MasterExpenseNameDTO) => Promise<SBR>;
|
|
133
|
+
declare const updateMasterExpenseName: (id: string, data: MasterExpenseNameDTO) => Promise<SBR>;
|
|
134
|
+
declare const deleteMasterExpenseName: (id: string) => Promise<SBR>;
|
|
135
|
+
declare const getMasterExpenseNameCache: (organisation_id: string) => Promise<FBR<MasterExpenseName[]>>;
|
|
136
|
+
|
|
137
|
+
export { type MasterExpenseName, type MasterExpenseNameDTO, type MasterExpenseNameQueryDTO, MasterExpenseNameQuerySchema, MasterExpenseNameSchema, createMasterExpenseName, deleteMasterExpenseName, findMasterExpenseNames, getMasterExpenseNameCache, newMasterExpenseNamePayload, toMasterExpenseNamePayload, updateMasterExpenseName };
|