vms-nest-prisma-api-document 199.0.0 → 202.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 +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- 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_admin_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- 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/main/vehicle/master_vehicle_service.js +72 -53
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_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 +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +9 -9
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +4 -127
- 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-D0C-0xuK.d.ts → user_organisation_service-BFKjwqM3.d.ts} +280 -20
- package/package.json +1 -1
|
@@ -34,41 +34,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
34
34
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
35
35
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
db_group: string;
|
|
38
|
-
db_instance: string;
|
|
39
|
-
night_driving: NightDriving;
|
|
40
37
|
search: string;
|
|
41
38
|
paging: PAGING;
|
|
42
39
|
page_count: number;
|
|
43
40
|
page_index: number;
|
|
41
|
+
login_from: LoginFrom;
|
|
44
42
|
date_format_id: string;
|
|
45
43
|
time_zone_id: string;
|
|
46
|
-
login_from: LoginFrom;
|
|
47
44
|
organisation_id: string;
|
|
45
|
+
db_instance: string;
|
|
46
|
+
db_group: string;
|
|
48
47
|
vehicle_ids: string[];
|
|
49
48
|
from_date: string;
|
|
50
49
|
to_date: string;
|
|
51
50
|
time_slot: TimeSlot;
|
|
51
|
+
night_driving: NightDriving;
|
|
52
52
|
over_speed: OverSpeed;
|
|
53
53
|
utilization_km: number;
|
|
54
54
|
vehicle_summary: YesNo;
|
|
55
55
|
driver_summary: YesNo;
|
|
56
56
|
}, {
|
|
57
|
-
|
|
58
|
-
db_instance: string;
|
|
57
|
+
login_from: LoginFrom;
|
|
59
58
|
date_format_id: string;
|
|
60
59
|
time_zone_id: string;
|
|
61
|
-
login_from: LoginFrom;
|
|
62
60
|
organisation_id: string;
|
|
61
|
+
db_instance: string;
|
|
62
|
+
db_group: string;
|
|
63
63
|
from_date: string;
|
|
64
64
|
to_date: string;
|
|
65
|
-
night_driving?: NightDriving | undefined;
|
|
66
65
|
search?: string | undefined;
|
|
67
66
|
paging?: PAGING | undefined;
|
|
68
67
|
page_count?: unknown;
|
|
69
68
|
page_index?: unknown;
|
|
70
69
|
vehicle_ids?: string[] | undefined;
|
|
71
70
|
time_slot?: TimeSlot | undefined;
|
|
71
|
+
night_driving?: NightDriving | undefined;
|
|
72
72
|
over_speed?: OverSpeed | undefined;
|
|
73
73
|
utilization_km?: unknown;
|
|
74
74
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -97,40 +97,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
97
97
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
98
98
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
db_group: string;
|
|
101
|
-
db_instance: string;
|
|
102
|
-
night_driving: NightDriving;
|
|
103
100
|
search: string;
|
|
104
101
|
paging: PAGING;
|
|
105
102
|
page_count: number;
|
|
106
103
|
page_index: number;
|
|
104
|
+
login_from: LoginFrom;
|
|
107
105
|
date_format_id: string;
|
|
108
106
|
time_zone_id: string;
|
|
109
|
-
login_from: LoginFrom;
|
|
110
107
|
organisation_id: string;
|
|
108
|
+
db_instance: string;
|
|
109
|
+
db_group: string;
|
|
111
110
|
from_date: string;
|
|
112
111
|
to_date: string;
|
|
113
112
|
time_slot: TimeSlot;
|
|
113
|
+
night_driving: NightDriving;
|
|
114
114
|
over_speed: OverSpeed;
|
|
115
115
|
utilization_km: number;
|
|
116
116
|
vehicle_summary: YesNo;
|
|
117
117
|
driver_summary: YesNo;
|
|
118
118
|
driver_ids: string[];
|
|
119
119
|
}, {
|
|
120
|
-
|
|
121
|
-
db_instance: string;
|
|
120
|
+
login_from: LoginFrom;
|
|
122
121
|
date_format_id: string;
|
|
123
122
|
time_zone_id: string;
|
|
124
|
-
login_from: LoginFrom;
|
|
125
123
|
organisation_id: string;
|
|
124
|
+
db_instance: string;
|
|
125
|
+
db_group: string;
|
|
126
126
|
from_date: string;
|
|
127
127
|
to_date: string;
|
|
128
|
-
night_driving?: NightDriving | undefined;
|
|
129
128
|
search?: string | undefined;
|
|
130
129
|
paging?: PAGING | undefined;
|
|
131
130
|
page_count?: unknown;
|
|
132
131
|
page_index?: unknown;
|
|
133
132
|
time_slot?: TimeSlot | undefined;
|
|
133
|
+
night_driving?: NightDriving | undefined;
|
|
134
134
|
over_speed?: OverSpeed | undefined;
|
|
135
135
|
utilization_km?: unknown;
|
|
136
136
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -157,16 +157,16 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
157
157
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
158
158
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
db_group: string;
|
|
161
|
-
db_instance: string;
|
|
162
160
|
search: string;
|
|
163
161
|
paging: PAGING;
|
|
164
162
|
page_count: number;
|
|
165
163
|
page_index: number;
|
|
164
|
+
login_from: LoginFrom;
|
|
166
165
|
date_format_id: string;
|
|
167
166
|
time_zone_id: string;
|
|
168
|
-
login_from: LoginFrom;
|
|
169
167
|
organisation_id: string;
|
|
168
|
+
db_instance: string;
|
|
169
|
+
db_group: string;
|
|
170
170
|
vehicle_ids: string[];
|
|
171
171
|
from_date: string;
|
|
172
172
|
to_date: string;
|
|
@@ -174,12 +174,12 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
174
174
|
interval_seconds: number;
|
|
175
175
|
boolean_type: BooleanType;
|
|
176
176
|
}, {
|
|
177
|
-
|
|
178
|
-
db_instance: string;
|
|
177
|
+
login_from: LoginFrom;
|
|
179
178
|
date_format_id: string;
|
|
180
179
|
time_zone_id: string;
|
|
181
|
-
login_from: LoginFrom;
|
|
182
180
|
organisation_id: string;
|
|
181
|
+
db_instance: string;
|
|
182
|
+
db_group: string;
|
|
183
183
|
from_date: string;
|
|
184
184
|
to_date: string;
|
|
185
185
|
gps_type: GPSType;
|
|
@@ -208,26 +208,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
208
208
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
209
209
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
db_group: string;
|
|
212
|
-
db_instance: string;
|
|
213
211
|
search: string;
|
|
214
212
|
paging: PAGING;
|
|
215
213
|
page_count: number;
|
|
216
214
|
page_index: number;
|
|
215
|
+
login_from: LoginFrom;
|
|
217
216
|
date_format_id: string;
|
|
218
217
|
time_zone_id: string;
|
|
219
|
-
login_from: LoginFrom;
|
|
220
218
|
organisation_id: string;
|
|
219
|
+
db_instance: string;
|
|
220
|
+
db_group: string;
|
|
221
221
|
vehicle_ids: string[];
|
|
222
222
|
utilization_km: number;
|
|
223
223
|
is12am: Is12AM;
|
|
224
224
|
}, {
|
|
225
|
-
|
|
226
|
-
db_instance: string;
|
|
225
|
+
login_from: LoginFrom;
|
|
227
226
|
date_format_id: string;
|
|
228
227
|
time_zone_id: string;
|
|
229
|
-
login_from: LoginFrom;
|
|
230
228
|
organisation_id: string;
|
|
229
|
+
db_instance: string;
|
|
230
|
+
db_group: string;
|
|
231
231
|
is12am: Is12AM;
|
|
232
232
|
search?: string | undefined;
|
|
233
233
|
paging?: PAGING | undefined;
|
|
@@ -254,27 +254,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
254
254
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
255
255
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
db_group: string;
|
|
258
|
-
db_instance: string;
|
|
259
257
|
search: string;
|
|
260
258
|
paging: PAGING;
|
|
261
259
|
page_count: number;
|
|
262
260
|
page_index: number;
|
|
261
|
+
login_from: LoginFrom;
|
|
263
262
|
date_format_id: string;
|
|
264
263
|
time_zone_id: string;
|
|
265
|
-
login_from: LoginFrom;
|
|
266
264
|
organisation_id: string;
|
|
265
|
+
db_instance: string;
|
|
266
|
+
db_group: string;
|
|
267
267
|
interval_seconds: number;
|
|
268
268
|
vehicle_id: string;
|
|
269
269
|
from_date_time: string;
|
|
270
270
|
to_date_time: string;
|
|
271
271
|
}, {
|
|
272
|
-
|
|
273
|
-
db_instance: string;
|
|
272
|
+
login_from: LoginFrom;
|
|
274
273
|
date_format_id: string;
|
|
275
274
|
time_zone_id: string;
|
|
276
|
-
login_from: LoginFrom;
|
|
277
275
|
organisation_id: string;
|
|
276
|
+
db_instance: string;
|
|
277
|
+
db_group: string;
|
|
278
278
|
vehicle_id: string;
|
|
279
279
|
from_date_time: string;
|
|
280
280
|
to_date_time: string;
|
|
@@ -299,24 +299,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
299
299
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
300
300
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
db_group: string;
|
|
303
|
-
db_instance: string;
|
|
304
302
|
search: string;
|
|
305
303
|
paging: PAGING;
|
|
306
304
|
page_count: number;
|
|
307
305
|
page_index: number;
|
|
306
|
+
login_from: LoginFrom;
|
|
308
307
|
date_format_id: string;
|
|
309
308
|
time_zone_id: string;
|
|
310
|
-
login_from: LoginFrom;
|
|
311
309
|
organisation_id: string;
|
|
310
|
+
db_instance: string;
|
|
311
|
+
db_group: string;
|
|
312
312
|
vehicle_id: string;
|
|
313
313
|
}, {
|
|
314
|
-
|
|
315
|
-
db_instance: string;
|
|
314
|
+
login_from: LoginFrom;
|
|
316
315
|
date_format_id: string;
|
|
317
316
|
time_zone_id: string;
|
|
318
|
-
login_from: LoginFrom;
|
|
319
317
|
organisation_id: string;
|
|
318
|
+
db_instance: string;
|
|
319
|
+
db_group: string;
|
|
320
320
|
vehicle_id: string;
|
|
321
321
|
search?: string | undefined;
|
|
322
322
|
paging?: PAGING | undefined;
|
|
@@ -346,16 +346,16 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
346
346
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
347
347
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
db_group: string;
|
|
350
|
-
db_instance: string;
|
|
351
349
|
search: string;
|
|
352
350
|
paging: PAGING;
|
|
353
351
|
page_count: number;
|
|
354
352
|
page_index: number;
|
|
353
|
+
login_from: LoginFrom;
|
|
355
354
|
date_format_id: string;
|
|
356
355
|
time_zone_id: string;
|
|
357
|
-
login_from: LoginFrom;
|
|
358
356
|
organisation_id: string;
|
|
357
|
+
db_instance: string;
|
|
358
|
+
db_group: string;
|
|
359
359
|
vehicle_ids: string[];
|
|
360
360
|
from_date: string;
|
|
361
361
|
to_date: string;
|
|
@@ -366,12 +366,12 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
366
366
|
alert_types: AlertType[];
|
|
367
367
|
alert_sub_types: AlertSubType[];
|
|
368
368
|
}, {
|
|
369
|
-
|
|
370
|
-
db_instance: string;
|
|
369
|
+
login_from: LoginFrom;
|
|
371
370
|
date_format_id: string;
|
|
372
371
|
time_zone_id: string;
|
|
373
|
-
login_from: LoginFrom;
|
|
374
372
|
organisation_id: string;
|
|
373
|
+
db_instance: string;
|
|
374
|
+
db_group: string;
|
|
375
375
|
from_date: string;
|
|
376
376
|
to_date: string;
|
|
377
377
|
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 { cZ as AssignRemoveDeviceHistory, d3 as DeviceSimLinkDTO, d2 as DeviceSimLinkSchema, c as MasterDevice, c$ as MasterDeviceDTO, d1 as MasterDeviceQueryDTO, d0 as MasterDeviceQuerySchema, c_ as MasterDeviceSchema, d7 as createMasterDevice, d9 as deleteMasterDevice, da as device_sim_link, db as device_sim_unlink, d6 as findMasterDevices, dd as get_device_sim_link_history_by_device, dc as get_device_sim_link_history_by_sim, d5 as newMasterDevicePayload, d4 as toMasterDevicePayload, d8 as updateMasterDevice } from '../../../user_organisation_service-
|
|
5
|
+
export { cZ as AssignRemoveDeviceHistory, d3 as DeviceSimLinkDTO, d2 as DeviceSimLinkSchema, c as MasterDevice, c$ as MasterDeviceDTO, d1 as MasterDeviceQueryDTO, d0 as MasterDeviceQuerySchema, c_ as MasterDeviceSchema, d7 as createMasterDevice, d9 as deleteMasterDevice, da as device_sim_link, db as device_sim_unlink, d6 as findMasterDevices, dd as get_device_sim_link_history_by_device, dc as get_device_sim_link_history_by_sim, d5 as newMasterDevicePayload, d4 as toMasterDevicePayload, d8 as updateMasterDevice } from '../../../user_organisation_service-BFKjwqM3.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -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 { bH as AssignRemoveDriverHistory, bI as DriverLoginPush, b as MasterDriver, bM as MasterDriverDTO, bG as MasterDriverFile, bK as MasterDriverFileDTO, bJ as MasterDriverFileSchema, bQ as MasterDriverLogoDTO, bP as MasterDriverLogoSchema, bS as MasterDriverProfileDTO, bR as MasterDriverProfileSchema, bO as MasterDriverQueryDTO, bN as MasterDriverQuerySchema, bL as MasterDriverSchema, bX as createMasterDriver, c5 as create_file, bZ as deleteMasterDriver, b$ as deleteMasterDriverLogo, bW as findMasterDriver, c1 as getMasterDriverCache, c2 as getMasterDriverCacheSimple, c3 as get_master_driver_presigned_url, c4 as get_master_driver_presigned_url_file, bV as newDriverPayload, c6 as remove_file, bT as toDriverPayload, bU as toDriverProfilePayload, bY as updateMasterDriver, b_ as updateMasterDriverLogo, c0 as updateMasterDriverProfile } from '../../../user_organisation_service-
|
|
5
|
+
export { bH as AssignRemoveDriverHistory, bI as DriverLoginPush, b as MasterDriver, bM as MasterDriverDTO, bG as MasterDriverFile, bK as MasterDriverFileDTO, bJ as MasterDriverFileSchema, bQ as MasterDriverLogoDTO, bP as MasterDriverLogoSchema, bS as MasterDriverProfileDTO, bR as MasterDriverProfileSchema, bO as MasterDriverQueryDTO, bN as MasterDriverQuerySchema, bL as MasterDriverSchema, bX as createMasterDriver, c5 as create_file, bZ as deleteMasterDriver, b$ as deleteMasterDriverLogo, bW as findMasterDriver, c1 as getMasterDriverCache, c2 as getMasterDriverCacheSimple, c3 as get_master_driver_presigned_url, c4 as get_master_driver_presigned_url_file, bV as newDriverPayload, c6 as remove_file, bT as toDriverPayload, bU as toDriverProfilePayload, bY as updateMasterDriver, b_ as updateMasterDriverLogo, c0 as updateMasterDriverProfile } from '../../../user_organisation_service-BFKjwqM3.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 { cO as AssignRemoveSimHistory, cN as MasterSim, cQ as MasterSimDTO, cS as MasterSimQueryDTO, cR as MasterSimQuerySchema, cP as MasterSimSchema, cW as createMasterSim, cY as deleteMasterSim, cV as findMasterSims, cU as newMasterSimPayload, cT as toMasterSimPayload, cX as updateMasterSim } from '../../../user_organisation_service-
|
|
4
|
+
export { cO as AssignRemoveSimHistory, cN as MasterSim, cQ as MasterSimDTO, cS as MasterSimQueryDTO, cR as MasterSimQuerySchema, cP as MasterSimSchema, cW as createMasterSim, cY as deleteMasterSim, cV as findMasterSims, cU as newMasterSimPayload, cT as toMasterSimPayload, cX as updateMasterSim } from '../../../user_organisation_service-BFKjwqM3.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, b as MasterDriver } from '../../../user_organisation_service-
|
|
3
|
+
import { a as User, b as MasterDriver } from '../../../user_organisation_service-BFKjwqM3.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';
|
|
@@ -2,7 +2,7 @@ import { AdminRole, Status, LoginFrom, PAGING, LoadParents, LoadChild, LoadChild
|
|
|
2
2
|
import { FBR, SBR, BR, AWSPresignedUrl, BaseCommonFile } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { a as User, U as UserOrganisation } from '../../../user_organisation_service-
|
|
5
|
+
import { a as User, U as UserOrganisation } from '../../../user_organisation_service-BFKjwqM3.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
8
|
interface UserAdmin extends Record<string, unknown> {
|
|
@@ -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, id as UserOrganisationDTO, ii as UserOrganisationLogoDTO, ih as UserOrganisationLogoSchema, ig as UserOrganisationQueryDTO, ie as UserOrganisationQuerySchema, ic as UserOrganisationSchema, ib as UserOrganisationSimple, im as createUserOrganisation, ip as deleteUserOrganisation, ir as deleteUserOrganisationLogo, il as findUserOrganisation, it as getUserOrganisationCache, iu as getUserOrganisationCacheSimple, is as get_user_organisation_presigned_url, ik as newUserOrganisationPayload, ij as toUserOrganisationPayload, io as updateUserOrganisation, iq as updateUserOrganisationLogo } from '../../../user_organisation_service-BFKjwqM3.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 { a as User,
|
|
4
|
+
export { a as User, hK as UserDTO, hW as UserDefaultDateFormatDTO, hV as UserDefaultDateFormatSchema, hS as UserDefaultLanguageDTO, hR as UserDefaultLanguageSchema, hU as UserDefaultTimeZoneDTO, hT as UserDefaultTimeZoneSchema, hI as UserLoginPush, hO as UserLogoDTO, hN as UserLogoSchema, hQ as UserProfileDTO, hP as UserProfileSchema, hM as UserQueryDTO, hL as UserQuerySchema, hJ as UserSchema, hH as UserVehicleLink, h$ as createUser, i1 as deleteUser, i3 as deleteUserLogo, h_ as findUser, i5 as getUserCache, i6 as getUserCacheSimple, i7 as get_user_presigned_url, hX as newUserPayload, hY as toUserPayload, hZ as toUserProfilePayload, i0 as updateUser, ia as updateUserDefaultDateformat, i8 as updateUserDefaultLanguage, i9 as updateUserDefaultTimezone, i2 as updateUserLogo, i4 as updateUserProfile } from '../../../user_organisation_service-BFKjwqM3.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-BFKjwqM3.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 {
|
|
5
|
+
export { fU as MasterDeviceFileDTO, fT as MasterDeviceFileSchema, M as MasterVehicle, ga as MasterVehicleDocumentFileDTO, g9 as MasterVehicleDocumentFileSchema, fC as MasterVehicleDropdown, fD as MasterVehicleFile, fO as MasterVehicleFileDTO, fN as MasterVehicleFileSchema, gi as SimpleFindQueryDTO, gh as SimpleFindQuerySchema, fS as VehicleBulkDTO, fR as VehicleBulkSchema, fQ as VehicleDTO, fG as VehicleDetailBody, g4 as VehicleDetailBodyDTO, g3 as VehicleDetailBodySchema, fE as VehicleDetailGPS, g0 as VehicleDetailGPSSensorDTO, f$ as VehicleDetailGPSSensorSchema, fH as VehicleDetailLifeCycle, g6 as VehicleDetailLifeCycleDto, g5 as VehicleDetailLifeCycleSchema, fI as VehicleDetailPurchase, g8 as VehicleDetailPurchaseDTO, g7 as VehicleDetailPurchaseSchema, fF as VehicleDetailTrip, g2 as VehicleDetailTripDTO, g1 as VehicleDetailTripSchema, fW as VehicleDeviceLinkDTO, fV as VehicleDeviceLinkSchema, fY as VehicleDeviceUnlinkDTO, fX as VehicleDeviceUnlinkSchema, fJ as VehicleDocument, gc as VehicleDocumentDTO, fL as VehicleDocumentExpiry, fK as VehicleDocumentFile, ge as VehicleDocumentQueryDTO, gd as VehicleDocumentQuerySchema, gb as VehicleDocumentSchema, f_ as VehicleDriverLinkDTO, fZ as VehicleDriverLinkSchema, gk as VehicleGPSQueryDTO, gj as VehicleGPSQuerySchema, fM as VehicleOdometerHistory, gg as VehicleQueryDTO, gf as VehicleQuerySchema, fP as VehicleSchema, gO as createDocument, gU as createFileDevice, gS as createFileVehicle, gW as createFileVehicleDocument, gy as createVehicle, gA as deleteVehicle, gP as findDocument, gx as findVehicleGPSDetails, gv as findVehicles, gw as findVehiclesLiveDashboard, gN as getDeviceLinkHistoryByDevice, gM as getDeviceLinkHistoryByVehicle, gJ as getDriverLinkHistoryByDriver, gI as getDriverLinkHistoryByVehicle, h1 as getVehicleByUserCache, gY as getVehicleCache, h3 as getVehicleParentByUserCache, g_ as getVehicleParentCache, h2 as getVehicleSimpleByUserCache, gZ as getVehicleSimpleCache, h4 as getVehicleSimpleDropdownByUserCustom, h0 as getVehicleSimpleDropdownCacheLiveData, g$ as getVehicleSimpleDropdownCustom, gt as get_device_presigned_url, gu as get_master_driver_presigned_url_file, gs as get_vehicle_presigned_url, gK as linkDeviceToVehicle, gG as linkDriverToVehicle, gm as newVehiclePayload, gR as removeDocument, gV as removeFileDevice, gT as removeFileVehicle, gX as removeFileVehicleDocument, gq as toVehicleDetailLifeCyclePayload, gr as toVehicleDetailPurchasePayload, gp as toVehicleDetailsBodyPayload, gn as toVehicleDetailsGPSPayload, go as toVehicleDetailsTripPayload, gl as toVehiclePayload, gL as unlinkDeviceFromVehicle, gH as unlinkDriverFromVehicle, gB as updateDetailsGpsSensor, gC as updateDetailsTrip, gQ as updateDocument, gz as updateVehicle, gD as updateVehicleBodyDetails, gE as updateVehicleLifeCycleDetails, gF as updateVehiclePurchaseDetails } from '../../../user_organisation_service-BFKjwqM3.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -549,12 +549,16 @@ var VehicleDeviceLinkSchema = z3.object({
|
|
|
549
549
|
)
|
|
550
550
|
});
|
|
551
551
|
var VehicleDeviceUnlinkSchema = z3.object({
|
|
552
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
553
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
552
554
|
vehicle_id: single_select_mandatory("MasterVehicle"),
|
|
553
555
|
// ✅ Single-Selection -> MasterVehicle
|
|
554
556
|
device_id: single_select_mandatory("MasterDevice")
|
|
555
557
|
// ✅ Single-Selection -> MasterDevice
|
|
556
558
|
});
|
|
557
559
|
var VehicleDriverLinkSchema = z3.object({
|
|
560
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
561
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
558
562
|
vehicle_id: single_select_mandatory("MasterVehicle"),
|
|
559
563
|
// ✅ Single-Selection -> MasterVehicle
|
|
560
564
|
driver_id: single_select_mandatory("MasterDriver")
|
|
@@ -988,11 +992,7 @@ var toVehicleDetailsGPSPayload = (vehicleGPS) => ({
|
|
|
988
992
|
dashcam_sensor: vehicleGPS?.dashcam_sensor ?? "No" /* No */,
|
|
989
993
|
is_rear_cam: vehicleGPS?.is_rear_cam ?? "No" /* No */,
|
|
990
994
|
is_front_cam: vehicleGPS?.is_front_cam ?? "No" /* No */,
|
|
991
|
-
camera_extra_count: vehicleGPS?.camera_extra_count ?? 0
|
|
992
|
-
status: vehicleGPS ? vehicleGPS?.status : "Active" /* Active */,
|
|
993
|
-
vehicle_details_gps_id: "",
|
|
994
|
-
added_date_time: "",
|
|
995
|
-
modified_date_time: ""
|
|
995
|
+
camera_extra_count: vehicleGPS?.camera_extra_count ?? 0
|
|
996
996
|
});
|
|
997
997
|
var toVehicleDetailsTripPayload = (trip) => ({
|
|
998
998
|
trip_name: trip?.trip_name || "",
|
|
@@ -1007,104 +1007,123 @@ var toVehicleDetailsTripPayload = (trip) => ({
|
|
|
1007
1007
|
status: trip ? trip.status : "Active" /* Active */
|
|
1008
1008
|
});
|
|
1009
1009
|
var toVehicleDetailsBodyPayload = (vehicleBody) => ({
|
|
1010
|
+
// 📦 Body & Dimension (Common)
|
|
1010
1011
|
vehicle_body_details: vehicleBody?.vehicle_body_details || "",
|
|
1011
1012
|
vehicle_height: vehicleBody?.vehicle_height || 0,
|
|
1012
1013
|
vehicle_width: vehicleBody?.vehicle_width || 0,
|
|
1013
1014
|
vehicle_length: vehicleBody?.vehicle_length || 0,
|
|
1014
|
-
|
|
1015
|
-
vehicle_cargo_volume: vehicleBody?.vehicle_cargo_volume || 0,
|
|
1016
|
-
vehicle_maximum_weight_capacity: vehicleBody?.vehicle_maximum_weight_capacity || 0,
|
|
1017
|
-
status: vehicleBody ? vehicleBody?.status : "Active" /* Active */,
|
|
1015
|
+
wheel_base: vehicleBody?.wheel_base || 0,
|
|
1018
1016
|
number_of_doors: 0,
|
|
1019
|
-
|
|
1017
|
+
// Passenger Configuration (Cars/Buses)
|
|
1018
|
+
vehicle_passenger_capacity: vehicleBody?.vehicle_passenger_capacity || 0,
|
|
1019
|
+
standing_passenger_capacity: vehicleBody?.standing_passenger_capacity || 0,
|
|
1020
1020
|
seat_configuration: "",
|
|
1021
|
-
has_air_conditioning: "
|
|
1022
|
-
has_heating_system: "
|
|
1023
|
-
has_reclining_seats: "
|
|
1024
|
-
has_safety_belts: "
|
|
1025
|
-
has_headrests: "
|
|
1026
|
-
has_armrests: "
|
|
1027
|
-
has_infotainment_system: "
|
|
1021
|
+
has_air_conditioning: vehicleBody?.has_air_conditioning || "No" /* No */,
|
|
1022
|
+
has_heating_system: vehicleBody?.has_heating_system || "No" /* No */,
|
|
1023
|
+
has_reclining_seats: vehicleBody?.has_reclining_seats || "No" /* No */,
|
|
1024
|
+
has_safety_belts: vehicleBody?.has_safety_belts || "No" /* No */,
|
|
1025
|
+
has_headrests: vehicleBody?.has_headrests || "No" /* No */,
|
|
1026
|
+
has_armrests: vehicleBody?.has_armrests || "No" /* No */,
|
|
1027
|
+
has_infotainment_system: vehicleBody?.has_infotainment_system || "No" /* No */,
|
|
1028
1028
|
infotainment_type: "",
|
|
1029
|
-
has_individual_lighting: "
|
|
1030
|
-
has_overhead_luggage_storage: "
|
|
1031
|
-
wheelchair_accessible: "
|
|
1029
|
+
has_individual_lighting: vehicleBody?.has_individual_lighting || "No" /* No */,
|
|
1030
|
+
has_overhead_luggage_storage: vehicleBody?.has_overhead_luggage_storage || "No" /* No */,
|
|
1031
|
+
wheelchair_accessible: vehicleBody?.wheelchair_accessible || "No" /* No */,
|
|
1032
|
+
// Cargo Configuration (Trucks/Vans)
|
|
1033
|
+
vehicle_cargo_volume: vehicleBody?.vehicle_cargo_volume || 0,
|
|
1034
|
+
vehicle_maximum_weight_capacity: vehicleBody?.vehicle_maximum_weight_capacity || 0,
|
|
1032
1035
|
cargo_area_type: "",
|
|
1033
|
-
has_lift_gate: "
|
|
1034
|
-
has_refrigeration_unit: "
|
|
1036
|
+
has_lift_gate: vehicleBody?.has_lift_gate || "No" /* No */,
|
|
1037
|
+
has_refrigeration_unit: vehicleBody?.has_refrigeration_unit || "No" /* No */,
|
|
1035
1038
|
refrigeration_temperature_range: "",
|
|
1039
|
+
cargo_bed_length: vehicleBody?.cargo_bed_length || 0,
|
|
1040
|
+
cargo_bed_width: vehicleBody?.cargo_bed_width || 0,
|
|
1041
|
+
cargo_bed_height: vehicleBody?.cargo_bed_height || 0,
|
|
1036
1042
|
cargo_floor_material: "",
|
|
1037
|
-
has_side_doors: "
|
|
1038
|
-
has_roof_hatch: "
|
|
1043
|
+
has_side_doors: vehicleBody?.has_side_doors || "No" /* No */,
|
|
1044
|
+
has_roof_hatch: vehicleBody?.has_roof_hatch || "No" /* No */,
|
|
1039
1045
|
cargo_tie_down_hooks_count: 0,
|
|
1040
|
-
is_custom_body_built: "
|
|
1046
|
+
is_custom_body_built: vehicleBody?.is_custom_body_built || "No" /* No */,
|
|
1047
|
+
// 🛞 Wheel & Suspension
|
|
1041
1048
|
number_of_axles: 0,
|
|
1042
1049
|
axle_configuration: "",
|
|
1043
|
-
has_dual_rear_wheels: "
|
|
1050
|
+
has_dual_rear_wheels: vehicleBody?.has_dual_rear_wheels || "No" /* No */,
|
|
1044
1051
|
suspension_type: "",
|
|
1045
|
-
suspension_adjustability: "
|
|
1052
|
+
suspension_adjustability: vehicleBody?.suspension_adjustability || "No" /* No */,
|
|
1053
|
+
ground_clearance_mm: vehicleBody?.ground_clearance_mm || 0,
|
|
1046
1054
|
tire_size: "",
|
|
1047
|
-
has_spare_tire: "
|
|
1048
|
-
has_all_terrain_tires: "
|
|
1049
|
-
has_run_flat_tires: "
|
|
1050
|
-
steering_type: "Manual" /* Manual */,
|
|
1051
|
-
wheel_drive_type: "FWD" /* FWD */,
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1055
|
+
has_spare_tire: vehicleBody?.has_spare_tire || "No" /* No */,
|
|
1056
|
+
has_all_terrain_tires: vehicleBody?.has_all_terrain_tires || "No" /* No */,
|
|
1057
|
+
has_run_flat_tires: vehicleBody?.has_run_flat_tires || "No" /* No */,
|
|
1058
|
+
steering_type: vehicleBody?.steering_type || "Manual" /* Manual */,
|
|
1059
|
+
wheel_drive_type: vehicleBody?.wheel_drive_type || "FWD" /* FWD */,
|
|
1060
|
+
// 🛡️ Safety Features
|
|
1061
|
+
has_abs: vehicleBody?.has_abs || "No" /* No */,
|
|
1062
|
+
has_airbags: vehicleBody?.has_airbags || "No" /* No */,
|
|
1063
|
+
has_speed_limiter: vehicleBody?.has_speed_limiter || "No" /* No */,
|
|
1064
|
+
has_gps_tracker: vehicleBody?.has_gps_tracker || "No" /* No */,
|
|
1065
|
+
has_parking_sensors: vehicleBody?.has_parking_sensors || "No" /* No */,
|
|
1066
|
+
has_rear_camera: vehicleBody?.has_rear_camera || "No" /* No */,
|
|
1067
|
+
has_lane_assist: vehicleBody?.has_lane_assist || "No" /* No */,
|
|
1068
|
+
has_automatic_emergency_brake: vehicleBody?.has_automatic_emergency_brake || "No" /* No */,
|
|
1069
|
+
has_tire_pressure_monitoring: vehicleBody?.has_tire_pressure_monitoring || "No" /* No */,
|
|
1070
|
+
has_blind_spot_monitoring: vehicleBody?.has_blind_spot_monitoring || "No" /* No */,
|
|
1071
|
+
has_collision_warning_system: vehicleBody?.has_collision_warning_system || "No" /* No */,
|
|
1072
|
+
has_immobilizer: vehicleBody?.has_immobilizer || "No" /* No */,
|
|
1073
|
+
has_dashcam: vehicleBody?.has_dashcam || "No" /* No */,
|
|
1074
|
+
has_emergency_exit: vehicleBody?.has_emergency_exit || "No" /* No */,
|
|
1075
|
+
status: vehicleBody ? vehicleBody?.status : "Active" /* Active */
|
|
1066
1076
|
});
|
|
1067
1077
|
var toVehicleDetailLifeCyclePayload = (vehicleLifeCycle) => ({
|
|
1078
|
+
// Lifecycle Start
|
|
1068
1079
|
service_start_date: vehicleLifeCycle?.service_start_date || "",
|
|
1069
1080
|
service_start_odometer_reading: vehicleLifeCycle?.service_start_odometer_reading || 0,
|
|
1081
|
+
// Lifecycle End
|
|
1070
1082
|
service_end_date: vehicleLifeCycle?.service_end_date || "",
|
|
1071
1083
|
service_end_odometer_reading: vehicleLifeCycle?.service_end_odometer_reading || 0,
|
|
1084
|
+
// Estimated Life
|
|
1072
1085
|
life_estimate_max_month_year: vehicleLifeCycle?.life_estimate_max_month_year || "",
|
|
1073
1086
|
life_estimate_max_odometer_reading: vehicleLifeCycle?.life_estimate_max_odometer_reading || 0,
|
|
1087
|
+
// Lifecycle Status
|
|
1074
1088
|
life_expiry: vehicleLifeCycle?.life_expiry || "No" /* No */,
|
|
1089
|
+
is_extended_life_approved: vehicleLifeCycle?.is_extended_life_approved || "No" /* No */,
|
|
1090
|
+
life_status: "Active" /* Active */,
|
|
1075
1091
|
life_expiry_message: vehicleLifeCycle?.life_expiry_message || "",
|
|
1076
1092
|
life_expiry_note: vehicleLifeCycle?.life_expiry_note || "",
|
|
1077
|
-
status: vehicleLifeCycle ? vehicleLifeCycle.status : "Active" /* Active
|
|
1078
|
-
is_extended_life_approved: "Yes" /* Yes */,
|
|
1079
|
-
life_status: "Active" /* Active */
|
|
1093
|
+
status: vehicleLifeCycle ? vehicleLifeCycle.status : "Active" /* Active */
|
|
1080
1094
|
});
|
|
1081
1095
|
var toVehicleDetailPurchasePayload = (vehiclePurchase) => ({
|
|
1096
|
+
// Basic Purchase Info
|
|
1082
1097
|
purchase_date: vehiclePurchase?.purchase_date || "",
|
|
1083
|
-
purchase_vendor_id: vehiclePurchase?.purchase_vendor_id || "",
|
|
1084
1098
|
purchase_notes: vehiclePurchase?.purchase_notes || "",
|
|
1085
1099
|
purchase_vehicle_type: vehiclePurchase?.purchase_vehicle_type || "New" /* New */,
|
|
1086
1100
|
purchase_type: vehiclePurchase?.purchase_type || "NoFinance" /* NoFinance */,
|
|
1087
1101
|
purchase_total_amount: vehiclePurchase?.purchase_total_amount || 0,
|
|
1088
|
-
|
|
1102
|
+
// Loan Details
|
|
1089
1103
|
loan_amount: vehiclePurchase?.loan_amount || 0,
|
|
1090
1104
|
loan_down_payment: vehiclePurchase?.loan_down_payment || 0,
|
|
1091
1105
|
loan_interest_rate: vehiclePurchase?.loan_interest_rate || 0,
|
|
1106
|
+
loan_interest_type: vehiclePurchase?.loan_interest_type || "Simple" /* Simple */,
|
|
1092
1107
|
loan_no_of_installments: vehiclePurchase?.loan_no_of_installments || 0,
|
|
1093
1108
|
loan_first_payment_date: vehiclePurchase?.loan_first_payment_date || "",
|
|
1094
1109
|
loan_last_payment_date: vehiclePurchase?.loan_last_payment_date || "",
|
|
1095
1110
|
loan_monthly_emi: vehiclePurchase?.loan_monthly_emi || 0,
|
|
1096
1111
|
loan_emi_date: vehiclePurchase?.loan_emi_date || 0,
|
|
1097
|
-
|
|
1112
|
+
// Lease Details
|
|
1098
1113
|
lease_start_date: vehiclePurchase?.lease_start_date || "",
|
|
1099
1114
|
lease_end_date: vehiclePurchase?.lease_end_date || "",
|
|
1100
1115
|
lease_security_deposit_amount: vehiclePurchase?.lease_security_deposit_amount || 0,
|
|
1101
1116
|
lease_monthly_emi_amount: vehiclePurchase?.lease_monthly_emi_amount || 0,
|
|
1102
1117
|
lease_emi_date: vehiclePurchase?.lease_emi_date || 0,
|
|
1118
|
+
// Warranty Info
|
|
1103
1119
|
warranty_expiration_date: vehiclePurchase?.warranty_expiration_date || "",
|
|
1104
1120
|
warranty_max_odometer_reading: vehiclePurchase?.warranty_max_odometer_reading || 0,
|
|
1105
1121
|
warranty_exchange_date: vehiclePurchase?.warranty_exchange_date || "",
|
|
1106
1122
|
status: vehiclePurchase ? vehiclePurchase.status : "Active" /* Active */,
|
|
1107
|
-
|
|
1123
|
+
// Relations
|
|
1124
|
+
purchase_vendor_id: vehiclePurchase?.purchase_vendor_id || "",
|
|
1125
|
+
loan_lender_id: vehiclePurchase?.loan_lender_id || "",
|
|
1126
|
+
lease_vendor_id: vehiclePurchase?.lease_vendor_id || ""
|
|
1108
1127
|
});
|
|
1109
1128
|
var get_vehicle_presigned_url = async (fileName) => {
|
|
1110
1129
|
return apiGet(ENDPOINTS.vehicle_presigned_url(fileName));
|
|
@@ -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-BFKjwqM3.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-BFKjwqM3.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-BFKjwqM3.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-BFKjwqM3.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-BFKjwqM3.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-BFKjwqM3.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../main/master_main_sim_provider_service.js';
|
|
7
7
|
|