vms-nest-prisma-api-document 18.0.0 → 20.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/core/Enums.d.ts +2 -2
- package/dist/core/Enums.js +17 -17
- package/dist/services/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/ticket_service.d.ts +17 -17
- 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 +21 -23
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +25 -31
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +17 -17
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +7 -7
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +10 -10
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +1 -1
- package/dist/services/gps/features/user_report_preferences.service.d.ts +41 -7
- package/dist/services/gps/features/user_report_preferences.service.js +18 -18
- 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_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/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_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- 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 +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{user_organisation_service-D2pCLN2b.d.ts → user_organisation_service-djKCoZTQ.d.ts} +3 -3
package/dist/core/Enums.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare enum NotificationType {
|
|
|
140
140
|
Email = "Email",
|
|
141
141
|
Push = "Push"
|
|
142
142
|
}
|
|
143
|
-
declare enum
|
|
143
|
+
declare enum ReportList {
|
|
144
144
|
AllVehiclesFullAnalysisReport = "AllVehiclesFullAnalysisReport",
|
|
145
145
|
AllDriversPerformanceReport = "AllDriversPerformanceReport",
|
|
146
146
|
MonthlyKilometersSummaryReport = "MonthlyKilometersSummaryReport",
|
|
@@ -626,4 +626,4 @@ declare enum PaymentMode {
|
|
|
626
626
|
Other = "Other"
|
|
627
627
|
}
|
|
628
628
|
|
|
629
|
-
export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationPreference, NotificationType, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType,
|
|
629
|
+
export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationPreference, NotificationType, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
|
package/dist/core/Enums.js
CHANGED
|
@@ -168,22 +168,22 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
|
168
168
|
NotificationType2["Push"] = "Push";
|
|
169
169
|
return NotificationType2;
|
|
170
170
|
})(NotificationType || {});
|
|
171
|
-
var
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
return
|
|
186
|
-
})(
|
|
171
|
+
var ReportList = /* @__PURE__ */ ((ReportList2) => {
|
|
172
|
+
ReportList2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
|
|
173
|
+
ReportList2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
|
|
174
|
+
ReportList2["MonthlyKilometersSummaryReport"] = "MonthlyKilometersSummaryReport";
|
|
175
|
+
ReportList2["VehicleStoppageReport"] = "VehicleStoppageReport";
|
|
176
|
+
ReportList2["GeofenceReport"] = "GeofenceReport";
|
|
177
|
+
ReportList2["GeofenceToGeofenceReport"] = "GeofenceToGeofenceReport";
|
|
178
|
+
ReportList2["VehicleIgnitionActivityLogReport"] = "VehicleIgnitionActivityLogReport";
|
|
179
|
+
ReportList2["AllVehiclesIgnitionTimeSummaryReport"] = "AllVehiclesIgnitionTimeSummaryReport";
|
|
180
|
+
ReportList2["AllVehiclesOverSpeedViolationReport"] = "AllVehiclesOverSpeedViolationReport";
|
|
181
|
+
ReportList2["MonthlyOverSpeedSummaryReport"] = "MonthlyOverSpeedSummaryReport";
|
|
182
|
+
ReportList2["FuelConsumptionReport"] = "FuelConsumptionReport";
|
|
183
|
+
ReportList2["FuelRefillReport"] = "FuelRefillReport";
|
|
184
|
+
ReportList2["FuelRemovalReport"] = "FuelRemovalReport";
|
|
185
|
+
return ReportList2;
|
|
186
|
+
})(ReportList || {});
|
|
187
187
|
var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
|
|
188
188
|
NotificationPreference2["VehicleMoving"] = "VehicleMoving";
|
|
189
189
|
NotificationPreference2["VehicleStopped"] = "VehicleStopped";
|
|
@@ -757,7 +757,7 @@ export {
|
|
|
757
757
|
ReminderSource,
|
|
758
758
|
ReminderStatus,
|
|
759
759
|
ReminderTriggerType,
|
|
760
|
-
|
|
760
|
+
ReportList,
|
|
761
761
|
ReportType,
|
|
762
762
|
RequestType,
|
|
763
763
|
RetreadingMethod,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuType, 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-djKCoZTQ.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -40,12 +40,9 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
40
40
|
sub_item_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
status: Status;
|
|
44
|
-
organisation_id: string;
|
|
45
|
-
user_id: string;
|
|
46
|
-
group_name: string;
|
|
47
43
|
module_name: string;
|
|
48
44
|
menu_type: MenuType;
|
|
45
|
+
group_name: string;
|
|
49
46
|
group_name_language: string;
|
|
50
47
|
group_icon: string;
|
|
51
48
|
group_url: string;
|
|
@@ -53,16 +50,19 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
53
50
|
sub_item_name_language: string;
|
|
54
51
|
sub_item_icon: string;
|
|
55
52
|
sub_item_url: string;
|
|
56
|
-
}, {
|
|
57
53
|
status: Status;
|
|
58
54
|
organisation_id: string;
|
|
59
55
|
user_id: string;
|
|
60
|
-
|
|
56
|
+
}, {
|
|
61
57
|
module_name: string;
|
|
62
58
|
menu_type: MenuType;
|
|
59
|
+
group_name: string;
|
|
63
60
|
group_name_language: string;
|
|
64
61
|
group_icon: string;
|
|
65
62
|
group_url: string;
|
|
63
|
+
status: Status;
|
|
64
|
+
organisation_id: string;
|
|
65
|
+
user_id: string;
|
|
66
66
|
sub_item_name?: string | undefined;
|
|
67
67
|
sub_item_name_language?: string | undefined;
|
|
68
68
|
sub_item_icon?: string | undefined;
|
|
@@ -105,6 +105,7 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
105
105
|
bookmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
106
|
menu_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MenuType>, "many">>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
+
menu_type: MenuType[];
|
|
108
109
|
status: Status[];
|
|
109
110
|
search: string;
|
|
110
111
|
paging: PAGING;
|
|
@@ -128,11 +129,11 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
128
129
|
time_zone_id: string;
|
|
129
130
|
organisation_ids: string[];
|
|
130
131
|
user_ids: string[];
|
|
131
|
-
menu_type: MenuType[];
|
|
132
132
|
bookmark_ids: string[];
|
|
133
133
|
}, {
|
|
134
134
|
date_format_id: string;
|
|
135
135
|
time_zone_id: string;
|
|
136
|
+
menu_type?: MenuType[] | undefined;
|
|
136
137
|
status?: Status[] | undefined;
|
|
137
138
|
search?: string | undefined;
|
|
138
139
|
paging?: PAGING | undefined;
|
|
@@ -154,7 +155,6 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
154
155
|
include_master_data?: YesNo | undefined;
|
|
155
156
|
organisation_ids?: string[] | undefined;
|
|
156
157
|
user_ids?: string[] | undefined;
|
|
157
|
-
menu_type?: MenuType[] | undefined;
|
|
158
158
|
bookmark_ids?: string[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
type BookMarkQueryDTO = z.infer<typeof BookMarkQuerySchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileType, Status, TicketStatus, 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-djKCoZTQ.js';
|
|
5
5
|
import { UserAdmin } from '../main/users/user_admin_service.js';
|
|
6
6
|
import '../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
@@ -50,19 +50,19 @@ declare const TicketFileSchema: z.ZodObject<{
|
|
|
50
50
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
51
51
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
status: Status;
|
|
54
|
+
organisation_id: string;
|
|
53
55
|
file_type: FileType;
|
|
54
56
|
file_url: string;
|
|
55
57
|
file_key: string;
|
|
56
58
|
file_description: string;
|
|
57
59
|
file_size: number;
|
|
58
60
|
file_metadata: Record<string, any>;
|
|
59
|
-
status: Status;
|
|
60
|
-
organisation_id: string;
|
|
61
61
|
ticket_id: string;
|
|
62
62
|
}, {
|
|
63
|
-
file_type: FileType;
|
|
64
63
|
status: Status;
|
|
65
64
|
organisation_id: string;
|
|
65
|
+
file_type: FileType;
|
|
66
66
|
ticket_id: string;
|
|
67
67
|
file_url?: string | undefined;
|
|
68
68
|
file_key?: string | undefined;
|
|
@@ -90,19 +90,19 @@ declare const TicketSchema: z.ZodObject<{
|
|
|
90
90
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
91
91
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
92
92
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
93
|
+
status: Status;
|
|
94
|
+
organisation_id: string;
|
|
93
95
|
file_type: FileType;
|
|
94
96
|
file_url: string;
|
|
95
97
|
file_key: string;
|
|
96
98
|
file_description: string;
|
|
97
99
|
file_size: number;
|
|
98
100
|
file_metadata: Record<string, any>;
|
|
99
|
-
status: Status;
|
|
100
|
-
organisation_id: string;
|
|
101
101
|
ticket_id: string;
|
|
102
102
|
}, {
|
|
103
|
-
file_type: FileType;
|
|
104
103
|
status: Status;
|
|
105
104
|
organisation_id: string;
|
|
105
|
+
file_type: FileType;
|
|
106
106
|
ticket_id: string;
|
|
107
107
|
file_url?: string | undefined;
|
|
108
108
|
file_key?: string | undefined;
|
|
@@ -114,36 +114,36 @@ declare const TicketSchema: z.ZodObject<{
|
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
status: Status;
|
|
116
116
|
organisation_id: string;
|
|
117
|
-
|
|
117
|
+
user_id: string;
|
|
118
118
|
description: string;
|
|
119
|
+
admin_id: string;
|
|
120
|
+
subject: string;
|
|
119
121
|
admin_message: string;
|
|
120
122
|
ticket_status: TicketStatus;
|
|
121
|
-
user_id: string;
|
|
122
|
-
admin_id: string;
|
|
123
123
|
ticket_files: {
|
|
124
|
+
status: Status;
|
|
125
|
+
organisation_id: string;
|
|
124
126
|
file_type: FileType;
|
|
125
127
|
file_url: string;
|
|
126
128
|
file_key: string;
|
|
127
129
|
file_description: string;
|
|
128
130
|
file_size: number;
|
|
129
131
|
file_metadata: Record<string, any>;
|
|
130
|
-
status: Status;
|
|
131
|
-
organisation_id: string;
|
|
132
132
|
ticket_id: string;
|
|
133
133
|
}[];
|
|
134
134
|
}, {
|
|
135
135
|
status: Status;
|
|
136
136
|
organisation_id: string;
|
|
137
|
-
subject: string;
|
|
138
|
-
ticket_status: TicketStatus;
|
|
139
137
|
user_id: string;
|
|
140
138
|
admin_id: string;
|
|
139
|
+
subject: string;
|
|
140
|
+
ticket_status: TicketStatus;
|
|
141
141
|
description?: string | undefined;
|
|
142
142
|
admin_message?: string | undefined;
|
|
143
143
|
ticket_files?: {
|
|
144
|
-
file_type: FileType;
|
|
145
144
|
status: Status;
|
|
146
145
|
organisation_id: string;
|
|
146
|
+
file_type: FileType;
|
|
147
147
|
ticket_id: string;
|
|
148
148
|
file_url?: string | undefined;
|
|
149
149
|
file_key?: string | undefined;
|
|
@@ -191,7 +191,6 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
191
191
|
ticket_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TicketStatus>, "many">>>;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
status: Status[];
|
|
194
|
-
ticket_status: TicketStatus[];
|
|
195
194
|
search: string;
|
|
196
195
|
paging: PAGING;
|
|
197
196
|
page_count: number;
|
|
@@ -215,12 +214,12 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
215
214
|
organisation_ids: string[];
|
|
216
215
|
user_ids: string[];
|
|
217
216
|
admin_ids: string[];
|
|
217
|
+
ticket_status: TicketStatus[];
|
|
218
218
|
ticket_ids: string[];
|
|
219
219
|
}, {
|
|
220
220
|
date_format_id: string;
|
|
221
221
|
time_zone_id: string;
|
|
222
222
|
status?: Status[] | undefined;
|
|
223
|
-
ticket_status?: TicketStatus[] | undefined;
|
|
224
223
|
search?: string | undefined;
|
|
225
224
|
paging?: PAGING | undefined;
|
|
226
225
|
page_count?: unknown;
|
|
@@ -242,6 +241,7 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
242
241
|
organisation_ids?: string[] | undefined;
|
|
243
242
|
user_ids?: string[] | undefined;
|
|
244
243
|
admin_ids?: string[] | undefined;
|
|
244
|
+
ticket_status?: TicketStatus[] | undefined;
|
|
245
245
|
ticket_ids?: string[] | undefined;
|
|
246
246
|
}>;
|
|
247
247
|
type TicketQueryDTO = z.infer<typeof TicketQuerySchema>;
|
|
@@ -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, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
5
5
|
import { FuelConsumptionMonthly } from '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -2,7 +2,7 @@ import { GPSFuelApproveStatus, RefillEntrySource, RefillMethod, PaymentMode, Pay
|
|
|
2
2
|
import { BaseCommionFile, FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, d as MasterVehicleFuelType, e as MasterVehicleFuelUnit } from '../../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, d as MasterVehicleFuelType, e as MasterVehicleFuelUnit } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
6
6
|
import { MasterMainLandmark } from '../../master/main/master_main_landmark_service.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { GPSFuelApproveStatus, RefillEntrySource, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
|
-
import { FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
2
|
+
import { BaseCommionFile, FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, d as MasterVehicleFuelType, e as MasterVehicleFuelUnit } from '../../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice, d as MasterVehicleFuelType, e as MasterVehicleFuelUnit } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
6
6
|
import { MasterMainLandmark } from '../../master/main/master_main_landmark_service.js';
|
|
7
7
|
import { MasterVehicleFuelRemovalReason } from '../../master/vehicle/master_vehicle_fuel_removal_reason_service.js';
|
|
8
8
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -65,26 +65,13 @@ interface FleetFuelRemoval extends Record<string, unknown> {
|
|
|
65
65
|
FleetFuelRemovalFile?: number;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
-
interface FleetFuelRemovalFile extends
|
|
68
|
+
interface FleetFuelRemovalFile extends BaseCommionFile {
|
|
69
69
|
fleet_fuel_removal_file_id: string;
|
|
70
|
-
file_type: FileType;
|
|
71
|
-
file_url?: string;
|
|
72
|
-
file_key?: string;
|
|
73
|
-
file_name?: string;
|
|
74
|
-
file_description?: string;
|
|
75
|
-
file_size?: number;
|
|
76
|
-
file_metadata?: Record<string, unknown>;
|
|
77
|
-
status: Status;
|
|
78
|
-
added_date_time: string;
|
|
79
|
-
modified_date_time: string;
|
|
80
|
-
organisation_id: string;
|
|
81
|
-
UserOrganisation?: UserOrganisation;
|
|
82
70
|
fleet_fuel_removal_id: string;
|
|
83
|
-
|
|
71
|
+
organisation_id: string;
|
|
84
72
|
}
|
|
85
73
|
declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
86
|
-
|
|
87
|
-
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
74
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
88
75
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
89
76
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
90
77
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -93,9 +80,13 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
93
80
|
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
94
81
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
95
82
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
83
|
+
} & {
|
|
84
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
85
|
+
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
96
86
|
}, "strip", z.ZodTypeAny, {
|
|
97
87
|
status: Status;
|
|
98
88
|
organisation_id: string;
|
|
89
|
+
usage_type: string;
|
|
99
90
|
file_type: FileType;
|
|
100
91
|
file_url: string;
|
|
101
92
|
file_key: string;
|
|
@@ -107,6 +98,7 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
107
98
|
}, {
|
|
108
99
|
status: Status;
|
|
109
100
|
organisation_id: string;
|
|
101
|
+
usage_type: string;
|
|
110
102
|
file_type: FileType;
|
|
111
103
|
fleet_fuel_removal_id: string;
|
|
112
104
|
file_url?: string | undefined;
|
|
@@ -146,9 +138,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
146
138
|
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
147
139
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
148
140
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
141
|
+
FleetFuelRemovalFile: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
142
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
152
143
|
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
153
144
|
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
154
145
|
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -157,9 +148,13 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
157
148
|
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
158
149
|
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
159
150
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
151
|
+
} & {
|
|
152
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
153
|
+
fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
|
|
160
154
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
161
155
|
status: Status;
|
|
162
156
|
organisation_id: string;
|
|
157
|
+
usage_type: string;
|
|
163
158
|
file_type: FileType;
|
|
164
159
|
file_url: string;
|
|
165
160
|
file_key: string;
|
|
@@ -171,6 +166,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
171
166
|
}, {
|
|
172
167
|
status: Status;
|
|
173
168
|
organisation_id: string;
|
|
169
|
+
usage_type: string;
|
|
174
170
|
file_type: FileType;
|
|
175
171
|
fleet_fuel_removal_id: string;
|
|
176
172
|
file_url?: string | undefined;
|
|
@@ -200,9 +196,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
200
196
|
time_zone_id: string;
|
|
201
197
|
fuel_removal_reason_id: string;
|
|
202
198
|
removal_details: string;
|
|
203
|
-
|
|
199
|
+
FleetFuelRemovalFile: {
|
|
204
200
|
status: Status;
|
|
205
201
|
organisation_id: string;
|
|
202
|
+
usage_type: string;
|
|
206
203
|
file_type: FileType;
|
|
207
204
|
file_url: string;
|
|
208
205
|
file_key: string;
|
|
@@ -250,9 +247,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
250
247
|
verified_removal_quantity?: unknown;
|
|
251
248
|
diff_removal_quantity?: unknown;
|
|
252
249
|
removal_details?: string | undefined;
|
|
253
|
-
|
|
250
|
+
FleetFuelRemovalFile?: {
|
|
254
251
|
status: Status;
|
|
255
252
|
organisation_id: string;
|
|
253
|
+
usage_type: string;
|
|
256
254
|
file_type: FileType;
|
|
257
255
|
fleet_fuel_removal_id: string;
|
|
258
256
|
file_url?: string | undefined;
|
|
@@ -230,12 +230,12 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
230
230
|
Status2["Inactive"] = "Inactive";
|
|
231
231
|
return Status2;
|
|
232
232
|
})(Status || {});
|
|
233
|
-
var FileType = /* @__PURE__ */ ((
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
return
|
|
233
|
+
var FileType = /* @__PURE__ */ ((FileType3) => {
|
|
234
|
+
FileType3["NoFile"] = "NoFile";
|
|
235
|
+
FileType3["Image"] = "Image";
|
|
236
|
+
FileType3["Video"] = "Video";
|
|
237
|
+
FileType3["PDF"] = "PDF";
|
|
238
|
+
return FileType3;
|
|
239
239
|
})(FileType || {});
|
|
240
240
|
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
241
241
|
YesNo2["Yes"] = "Yes";
|
|
@@ -325,19 +325,11 @@ var ENDPOINTS = {
|
|
|
325
325
|
create_file: `${URL}/create_file`,
|
|
326
326
|
remove_file: (id) => `${URL}/remove_file/${id}`
|
|
327
327
|
};
|
|
328
|
-
var FleetFuelRemovalFileSchema =
|
|
329
|
-
organisation_id:
|
|
328
|
+
var FleetFuelRemovalFileSchema = BaseFileSchema.extend({
|
|
329
|
+
organisation_id: single_select_optional("UserOrganisation"),
|
|
330
330
|
// ✅ Single-Selection -> UserOrganisation
|
|
331
|
-
fleet_fuel_removal_id:
|
|
331
|
+
fleet_fuel_removal_id: single_select_optional("FleetFuelRemoval")
|
|
332
332
|
// ✅ Single-Selection -> FleetFuelRemoval
|
|
333
|
-
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
334
|
-
file_url: stringOptional("File URL", 0, 300),
|
|
335
|
-
file_key: stringOptional("File Key", 0, 300),
|
|
336
|
-
file_name: stringOptional("File Name", 0, 300),
|
|
337
|
-
file_description: stringOptional("File Description", 0, 2e3),
|
|
338
|
-
file_size: numberOptional("File Size"),
|
|
339
|
-
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
340
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
341
333
|
});
|
|
342
334
|
var FleetFuelRemovalSchema = z3.object({
|
|
343
335
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
@@ -396,8 +388,8 @@ var FleetFuelRemovalSchema = z3.object({
|
|
|
396
388
|
google_location: stringOptional("Google Location", 0, 500),
|
|
397
389
|
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
398
390
|
time_zone_id: single_select_mandatory("MasterMainTimeZone"),
|
|
399
|
-
|
|
400
|
-
"
|
|
391
|
+
FleetFuelRemovalFile: nestedArrayOfObjectsOptional(
|
|
392
|
+
"FleetFuelRemovalFile",
|
|
401
393
|
FleetFuelRemovalFileSchema,
|
|
402
394
|
[]
|
|
403
395
|
)
|
|
@@ -470,17 +462,19 @@ var toFleetFuelRemovalPayload = (row) => ({
|
|
|
470
462
|
time_zone_id: "",
|
|
471
463
|
// provide from context
|
|
472
464
|
// map child files -> DTO shape
|
|
473
|
-
|
|
474
|
-
organisation_id:
|
|
475
|
-
fleet_fuel_removal_id:
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
465
|
+
FleetFuelRemovalFile: row.FleetFuelRemovalFile?.map((file) => ({
|
|
466
|
+
organisation_id: file.organisation_id ?? "",
|
|
467
|
+
fleet_fuel_removal_id: file.fleet_fuel_removal_id ?? "",
|
|
468
|
+
fleet_fuel_removal_file_id: file.fleet_fuel_removal_file_id ?? "",
|
|
469
|
+
usage_type: file.usage_type,
|
|
470
|
+
file_type: file.file_type,
|
|
471
|
+
file_url: file.file_url || "",
|
|
472
|
+
file_key: file.file_key || "",
|
|
473
|
+
file_name: file.file_name || "",
|
|
474
|
+
file_description: file.file_description || "",
|
|
475
|
+
file_size: file.file_size ?? 0,
|
|
476
|
+
file_metadata: file.file_metadata ?? {},
|
|
477
|
+
status: file.status
|
|
484
478
|
})) ?? []
|
|
485
479
|
});
|
|
486
480
|
var newFleetFuelRemovalPayload = () => ({
|
|
@@ -522,7 +516,7 @@ var newFleetFuelRemovalPayload = () => ({
|
|
|
522
516
|
// Required
|
|
523
517
|
time_zone_id: "",
|
|
524
518
|
// Children
|
|
525
|
-
|
|
519
|
+
FleetFuelRemovalFile: []
|
|
526
520
|
});
|
|
527
521
|
var findFleetFuelRemoval = async (data) => {
|
|
528
522
|
return apiPost(ENDPOINTS.find, data);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofencePurposeType, GeofenceType, 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 } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation } from '../../../../user_organisation_service-djKCoZTQ.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -82,6 +82,9 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
82
82
|
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
83
83
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
status: Status;
|
|
86
|
+
organisation_id: string;
|
|
87
|
+
country_code: string;
|
|
85
88
|
geofence_name: string;
|
|
86
89
|
geofence_purpose_type: GeofencePurposeType;
|
|
87
90
|
geofence_description: string;
|
|
@@ -99,25 +102,23 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
99
102
|
state_province_region: string;
|
|
100
103
|
postal_code: string;
|
|
101
104
|
country: string;
|
|
102
|
-
country_code: string;
|
|
103
105
|
google_location: string;
|
|
104
|
-
status: Status;
|
|
105
|
-
organisation_id: string;
|
|
106
|
-
radius_m?: number | undefined;
|
|
107
|
-
radius_km?: number | undefined;
|
|
108
106
|
latitude?: number | undefined;
|
|
109
107
|
longitude?: number | undefined;
|
|
108
|
+
radius_m?: number | undefined;
|
|
109
|
+
radius_km?: number | undefined;
|
|
110
110
|
}, {
|
|
111
|
+
status: Status;
|
|
112
|
+
organisation_id: string;
|
|
111
113
|
geofence_name: string;
|
|
112
114
|
geofence_purpose_type: GeofencePurposeType;
|
|
113
115
|
geofence_type: GeofenceType;
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
country_code?: string | undefined;
|
|
117
|
+
latitude?: unknown;
|
|
118
|
+
longitude?: unknown;
|
|
116
119
|
geofence_description?: string | undefined;
|
|
117
120
|
radius_m?: unknown;
|
|
118
121
|
radius_km?: unknown;
|
|
119
|
-
latitude?: unknown;
|
|
120
|
-
longitude?: unknown;
|
|
121
122
|
poliline_data?: {
|
|
122
123
|
latitude?: unknown;
|
|
123
124
|
longitude?: unknown;
|
|
@@ -131,7 +132,6 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
131
132
|
state_province_region?: string | undefined;
|
|
132
133
|
postal_code?: string | undefined;
|
|
133
134
|
country?: string | undefined;
|
|
134
|
-
country_code?: string | undefined;
|
|
135
135
|
google_location?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
|
|
@@ -171,9 +171,8 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
171
171
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
172
172
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
175
|
-
geofence_type: GeofenceType[];
|
|
176
174
|
status: Status[];
|
|
175
|
+
time_zone_id: string;
|
|
177
176
|
search: string;
|
|
178
177
|
paging: PAGING;
|
|
179
178
|
page_count: number;
|
|
@@ -193,14 +192,13 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
193
192
|
}[];
|
|
194
193
|
include_master_data: YesNo;
|
|
195
194
|
date_format_id: string;
|
|
196
|
-
time_zone_id: string;
|
|
197
195
|
organisation_ids: string[];
|
|
198
196
|
gps_geofence_ids: string[];
|
|
197
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
198
|
+
geofence_type: GeofenceType[];
|
|
199
199
|
}, {
|
|
200
|
-
date_format_id: string;
|
|
201
200
|
time_zone_id: string;
|
|
202
|
-
|
|
203
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
201
|
+
date_format_id: string;
|
|
204
202
|
status?: Status[] | undefined;
|
|
205
203
|
search?: string | undefined;
|
|
206
204
|
paging?: PAGING | undefined;
|
|
@@ -222,6 +220,8 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
222
220
|
include_master_data?: YesNo | undefined;
|
|
223
221
|
organisation_ids?: string[] | undefined;
|
|
224
222
|
gps_geofence_ids?: string[] | undefined;
|
|
223
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
224
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
227
227
|
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|