vms-nest-prisma-api-document 19.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 +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +45 -45
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +50 -52
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +25 -31
- 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/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 +6 -6
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +3 -3
- 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 +7 -7
- 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 +3 -3
- 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
|
@@ -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;
|
|
@@ -181,28 +177,29 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
181
177
|
file_metadata?: Record<string, any> | undefined;
|
|
182
178
|
}>, "many">>>;
|
|
183
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
|
+
date_time: string;
|
|
181
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
182
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
183
|
+
entry_source: RefillEntrySource;
|
|
184
|
+
source_reference_id: string;
|
|
185
|
+
source_notes: string;
|
|
186
|
+
google_location: string;
|
|
187
|
+
odometer_reading: number;
|
|
184
188
|
status: Status;
|
|
185
189
|
organisation_id: string;
|
|
186
190
|
user_id: string;
|
|
187
191
|
vehicle_id: string;
|
|
188
192
|
driver_id: string;
|
|
189
193
|
device_id: string;
|
|
190
|
-
time_zone_id: string;
|
|
191
194
|
vehicle_fuel_type_id: string;
|
|
192
195
|
vehicle_fuel_unit_id: string;
|
|
193
|
-
|
|
194
|
-
google_location: string;
|
|
195
|
-
date_time: string;
|
|
196
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
197
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
198
|
-
entry_source: RefillEntrySource;
|
|
199
|
-
source_reference_id: string;
|
|
200
|
-
source_notes: string;
|
|
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;
|
|
@@ -212,47 +209,48 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
212
209
|
file_metadata: Record<string, any>;
|
|
213
210
|
fleet_fuel_removal_id: string;
|
|
214
211
|
}[];
|
|
215
|
-
latitude?: number | undefined;
|
|
216
|
-
longitude?: number | undefined;
|
|
217
212
|
cost_per_unit?: number | undefined;
|
|
218
213
|
total_cost?: number | undefined;
|
|
214
|
+
latitude?: number | undefined;
|
|
215
|
+
longitude?: number | undefined;
|
|
219
216
|
before_removal_quantity?: number | undefined;
|
|
220
217
|
after_removal_quantity?: number | undefined;
|
|
221
218
|
removal_quantity?: number | undefined;
|
|
222
219
|
verified_removal_quantity?: number | undefined;
|
|
223
220
|
diff_removal_quantity?: number | undefined;
|
|
224
221
|
}, {
|
|
222
|
+
date_time: string;
|
|
223
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
224
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
225
225
|
status: Status;
|
|
226
226
|
organisation_id: string;
|
|
227
227
|
user_id: string;
|
|
228
228
|
vehicle_id: string;
|
|
229
229
|
driver_id: string;
|
|
230
230
|
device_id: string;
|
|
231
|
-
time_zone_id: string;
|
|
232
231
|
vehicle_fuel_type_id: string;
|
|
233
232
|
vehicle_fuel_unit_id: string;
|
|
234
|
-
|
|
235
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
236
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
233
|
+
time_zone_id: string;
|
|
237
234
|
fuel_removal_reason_id: string;
|
|
238
|
-
odometer_reading?: unknown;
|
|
239
|
-
latitude?: unknown;
|
|
240
|
-
longitude?: unknown;
|
|
241
|
-
google_location?: string | undefined;
|
|
242
235
|
cost_per_unit?: unknown;
|
|
243
236
|
total_cost?: unknown;
|
|
244
237
|
entry_source?: RefillEntrySource | undefined;
|
|
245
238
|
source_reference_id?: string | undefined;
|
|
246
239
|
source_notes?: string | undefined;
|
|
240
|
+
latitude?: unknown;
|
|
241
|
+
longitude?: unknown;
|
|
242
|
+
google_location?: string | undefined;
|
|
243
|
+
odometer_reading?: unknown;
|
|
247
244
|
before_removal_quantity?: unknown;
|
|
248
245
|
after_removal_quantity?: unknown;
|
|
249
246
|
removal_quantity?: unknown;
|
|
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;
|
|
@@ -309,7 +307,11 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
309
307
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
310
308
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
311
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
admin_verify_status: GPSFuelApproveStatus[];
|
|
311
|
+
transporter_verify_status: GPSFuelApproveStatus[];
|
|
312
|
+
entry_source: RefillEntrySource[];
|
|
312
313
|
status: Status[];
|
|
314
|
+
time_zone_id: string;
|
|
313
315
|
search: string;
|
|
314
316
|
paging: PAGING;
|
|
315
317
|
page_count: number;
|
|
@@ -329,25 +331,24 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
329
331
|
}[];
|
|
330
332
|
include_master_data: YesNo;
|
|
331
333
|
date_format_id: string;
|
|
332
|
-
time_zone_id: string;
|
|
333
334
|
organisation_ids: string[];
|
|
334
335
|
user_ids: string[];
|
|
335
336
|
vehicle_ids: string[];
|
|
336
337
|
driver_ids: string[];
|
|
337
338
|
device_ids: string[];
|
|
338
|
-
from_date: string;
|
|
339
|
-
to_date: string;
|
|
340
339
|
vehicle_fuel_type_ids: string[];
|
|
341
|
-
admin_verify_status: GPSFuelApproveStatus[];
|
|
342
|
-
transporter_verify_status: GPSFuelApproveStatus[];
|
|
343
|
-
entry_source: RefillEntrySource[];
|
|
344
340
|
vehicle_fuel_unit_ids: string[];
|
|
341
|
+
from_date: string;
|
|
342
|
+
to_date: string;
|
|
345
343
|
fuel_removal_reason_ids: string[];
|
|
346
344
|
}, {
|
|
347
|
-
date_format_id: string;
|
|
348
345
|
time_zone_id: string;
|
|
346
|
+
date_format_id: string;
|
|
349
347
|
from_date: string;
|
|
350
348
|
to_date: string;
|
|
349
|
+
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
350
|
+
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
351
|
+
entry_source?: RefillEntrySource[] | undefined;
|
|
351
352
|
status?: Status[] | undefined;
|
|
352
353
|
search?: string | undefined;
|
|
353
354
|
paging?: PAGING | undefined;
|
|
@@ -373,9 +374,6 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
373
374
|
driver_ids?: string[] | undefined;
|
|
374
375
|
device_ids?: string[] | undefined;
|
|
375
376
|
vehicle_fuel_type_ids?: string[] | undefined;
|
|
376
|
-
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
377
|
-
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
378
|
-
entry_source?: RefillEntrySource[] | undefined;
|
|
379
377
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
380
378
|
fuel_removal_reason_ids?: string[] | undefined;
|
|
381
379
|
}>;
|
|
@@ -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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofenceStatusType, 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, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-djKCoZTQ.js';
|
|
5
5
|
import { GPSGeofence } from './gps_geofence_service.js';
|
|
6
6
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
37
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
geofence_status_type: GeofenceStatusType;
|
|
40
|
+
geofence_time: string;
|
|
39
41
|
status: Status;
|
|
40
42
|
organisation_id: string;
|
|
41
43
|
vehicle_id: string;
|
|
42
44
|
driver_id: string;
|
|
43
45
|
gps_geofence_id: string;
|
|
44
46
|
time_zone_id: string;
|
|
47
|
+
}, {
|
|
45
48
|
geofence_status_type: GeofenceStatusType;
|
|
46
49
|
geofence_time: string;
|
|
47
|
-
}, {
|
|
48
50
|
status: Status;
|
|
49
51
|
organisation_id: string;
|
|
50
52
|
vehicle_id: string;
|
|
51
53
|
driver_id: string;
|
|
52
54
|
gps_geofence_id: string;
|
|
53
55
|
time_zone_id: string;
|
|
54
|
-
geofence_status_type: GeofenceStatusType;
|
|
55
|
-
geofence_time: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
58
58
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -94,6 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
94
94
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
geofence_status_type: GeofenceStatusType[];
|
|
97
98
|
status: Status[];
|
|
98
99
|
time_zone_id: string;
|
|
99
100
|
search: string;
|
|
@@ -121,12 +122,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
121
122
|
gps_geofence_ids: string[];
|
|
122
123
|
from_date: string;
|
|
123
124
|
to_date: string;
|
|
124
|
-
geofence_status_type: GeofenceStatusType[];
|
|
125
125
|
}, {
|
|
126
126
|
time_zone_id: string;
|
|
127
127
|
date_format_id: string;
|
|
128
128
|
from_date: string;
|
|
129
129
|
to_date: string;
|
|
130
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
130
131
|
status?: Status[] | undefined;
|
|
131
132
|
search?: string | undefined;
|
|
132
133
|
paging?: PAGING | undefined;
|
|
@@ -150,7 +151,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
150
151
|
vehicle_ids?: string[] | undefined;
|
|
151
152
|
driver_ids?: string[] | undefined;
|
|
152
153
|
gps_geofence_ids?: string[] | undefined;
|
|
153
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
156
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
@@ -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, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-djKCoZTQ.js';
|
|
5
5
|
import { GPSGeofence } from './gps_geofence_service.js';
|
|
6
6
|
import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
|
|
7
7
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
46
46
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
47
47
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
geofence_enter_date_time: string;
|
|
50
|
-
geofence_exit_date_time: string;
|
|
51
|
-
duration_seconds: number;
|
|
52
49
|
status: Status;
|
|
53
50
|
organisation_id: string;
|
|
54
51
|
vehicle_id: string;
|
|
55
52
|
driver_id: string;
|
|
56
53
|
gps_geofence_id: string;
|
|
54
|
+
time_zone_id: string;
|
|
55
|
+
geofence_enter_date_time: string;
|
|
56
|
+
geofence_exit_date_time: string;
|
|
57
|
+
duration_seconds: number;
|
|
57
58
|
enter_gps_geofence_transaction_id: string;
|
|
58
59
|
exit_gps_geofence_transaction_id: string;
|
|
59
|
-
time_zone_id: string;
|
|
60
60
|
}, {
|
|
61
|
-
geofence_enter_date_time: string;
|
|
62
61
|
status: Status;
|
|
63
62
|
organisation_id: string;
|
|
64
63
|
vehicle_id: string;
|
|
65
64
|
driver_id: string;
|
|
66
65
|
gps_geofence_id: string;
|
|
66
|
+
time_zone_id: string;
|
|
67
|
+
geofence_enter_date_time: string;
|
|
67
68
|
enter_gps_geofence_transaction_id: string;
|
|
68
69
|
exit_gps_geofence_transaction_id: string;
|
|
69
|
-
time_zone_id: string;
|
|
70
70
|
geofence_exit_date_time?: string | undefined;
|
|
71
71
|
duration_seconds?: unknown;
|
|
72
72
|
}>;
|
|
@@ -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, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } 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
|
|
|
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
55
55
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
56
56
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
duration_seconds: number;
|
|
59
58
|
status: Status;
|
|
60
59
|
organisation_id: string;
|
|
61
60
|
vehicle_id: string;
|
|
62
61
|
driver_id: string;
|
|
63
62
|
time_zone_id: string;
|
|
63
|
+
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
66
66
|
travel_duration_seconds: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkType, LinkStatus, Status, NotificationType, 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-djKCoZTQ.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TrackHistoryLinkStatus, Status, NotificationType, 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-djKCoZTQ.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnOff, NotificationType, NotificationPreference, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } 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 } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle } 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
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OnOff, ReportType,
|
|
1
|
+
import { OnOff, ReportType, ReportList, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } 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-djKCoZTQ.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -10,7 +10,7 @@ interface UserReportsPreferences extends Record<string, unknown> {
|
|
|
10
10
|
report_name: string;
|
|
11
11
|
report_status: OnOff;
|
|
12
12
|
report_types: ReportType[];
|
|
13
|
-
report_list:
|
|
13
|
+
report_list: ReportList[];
|
|
14
14
|
email_ids: string;
|
|
15
15
|
cc_email_ids?: string;
|
|
16
16
|
all_vehicles: YesNo;
|
|
@@ -20,8 +20,10 @@ interface UserReportsPreferences extends Record<string, unknown> {
|
|
|
20
20
|
organisation_id: string;
|
|
21
21
|
UserOrganisation?: UserOrganisation;
|
|
22
22
|
UserReportsPreferencesVehicleLink: UserReportsPreferencesVehicleLink[];
|
|
23
|
+
UserReportsAutomationMail: UserReportsAutomationMail[];
|
|
23
24
|
_count?: {
|
|
24
25
|
UserReportsPreferencesVehicleLink: number;
|
|
26
|
+
UserReportsAutomationMail: number;
|
|
25
27
|
};
|
|
26
28
|
}
|
|
27
29
|
interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
|
|
@@ -36,12 +38,44 @@ interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
|
|
|
36
38
|
report_preference_id: string;
|
|
37
39
|
UserReportsPreferences?: UserReportsPreferences;
|
|
38
40
|
}
|
|
41
|
+
interface UserReportsAutomationMail extends Record<string, unknown> {
|
|
42
|
+
automation_mail_id: string;
|
|
43
|
+
report_name: string;
|
|
44
|
+
report_type: ReportType;
|
|
45
|
+
from_date: string;
|
|
46
|
+
to_date: string;
|
|
47
|
+
date: string;
|
|
48
|
+
all_vehicles: YesNo;
|
|
49
|
+
status: Status;
|
|
50
|
+
added_date_time: string;
|
|
51
|
+
modified_date_time: string;
|
|
52
|
+
organisation_id: string;
|
|
53
|
+
UserOrganisation?: UserOrganisation;
|
|
54
|
+
report_preference_id: string;
|
|
55
|
+
UserReportsPreferences?: UserReportsPreferences;
|
|
56
|
+
UserReportsAutomationVehicleLink: UserReportsAutomationVehicleLink[];
|
|
57
|
+
_count?: {
|
|
58
|
+
UserReportsAutomationVehicleLink: number;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
interface UserReportsAutomationVehicleLink extends Record<string, unknown> {
|
|
62
|
+
automation_vehicle_id: string;
|
|
63
|
+
status: Status;
|
|
64
|
+
added_date_time: string;
|
|
65
|
+
modified_date_time: string;
|
|
66
|
+
vehicle_id: string;
|
|
67
|
+
MasterVehicle?: MasterVehicle;
|
|
68
|
+
vehicle_number?: string;
|
|
69
|
+
vehicle_type?: string;
|
|
70
|
+
automation_mail_id: string;
|
|
71
|
+
UserReportsAutomationMail?: UserReportsAutomationMail;
|
|
72
|
+
}
|
|
39
73
|
declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
40
74
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
41
75
|
report_name: z.ZodEffects<z.ZodString, string, string>;
|
|
42
76
|
report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
43
77
|
report_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>;
|
|
44
|
-
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof
|
|
78
|
+
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportList>, "many">>;
|
|
45
79
|
email_ids: z.ZodEffects<z.ZodString, string, string>;
|
|
46
80
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
47
81
|
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
@@ -57,7 +91,7 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
57
91
|
report_name: string;
|
|
58
92
|
report_status: OnOff;
|
|
59
93
|
report_types: ReportType[];
|
|
60
|
-
report_list:
|
|
94
|
+
report_list: ReportList[];
|
|
61
95
|
}, {
|
|
62
96
|
status: Status;
|
|
63
97
|
organisation_id: string;
|
|
@@ -68,7 +102,7 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
68
102
|
vehicle_ids?: string[] | undefined;
|
|
69
103
|
cc_email_ids?: string | undefined;
|
|
70
104
|
report_types?: ReportType[] | undefined;
|
|
71
|
-
report_list?:
|
|
105
|
+
report_list?: ReportList[] | undefined;
|
|
72
106
|
}>;
|
|
73
107
|
type UserReportPreferencesDTO = z.infer<typeof UserReportPreferencesSchema>;
|
|
74
108
|
declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
@@ -167,4 +201,4 @@ declare const createUserReportsPreferences: (data: UserReportPreferencesDTO) =>
|
|
|
167
201
|
declare const updateUserReportsPreferences: (id: string, data: UserReportPreferencesDTO) => Promise<SBR>;
|
|
168
202
|
declare const deleteUserReportsPreferences: (id: string) => Promise<SBR>;
|
|
169
203
|
|
|
170
|
-
export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
|
|
204
|
+
export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsAutomationMail, type UserReportsAutomationVehicleLink, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
|