vms-nest-prisma-api-document 6.0.51 → 7.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/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- 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 +50 -50
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +35 -35
- package/dist/services/gps/features/geofence/{gps_geofence_data_service.d.ts → gps_geofence_service.d.ts} +46 -39
- package/dist/services/gps/features/geofence/{gps_geofence_data_service.js → gps_geofence_service.js} +44 -39
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +22 -13
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +17 -12
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +18 -15
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +13 -10
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +11 -9
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -8
- 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/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_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_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/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/faq_service.d.ts +1 -1
- package/package.json +1 -1
- package/dist/{user_organisation_service-D3GhFJqI.d.ts → user_organisation_service-BmevBmkg.d.ts} +3 -3
|
@@ -2,7 +2,7 @@ import { RefillEntrySource, GPSFuelApproveStatus, Status, FileType, PAGING, Load
|
|
|
2
2
|
import { 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-BmevBmkg.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';
|
|
@@ -96,10 +96,10 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
97
|
status: Status;
|
|
98
98
|
organisation_id: string;
|
|
99
|
+
file_name: string;
|
|
99
100
|
file_type: FileType;
|
|
100
101
|
file_url: string;
|
|
101
102
|
file_key: string;
|
|
102
|
-
file_name: string;
|
|
103
103
|
file_description: string;
|
|
104
104
|
file_size: number;
|
|
105
105
|
file_metadata: Record<string, any>;
|
|
@@ -109,9 +109,9 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
|
|
|
109
109
|
organisation_id: string;
|
|
110
110
|
file_type: FileType;
|
|
111
111
|
fleet_fuel_removal_id: string;
|
|
112
|
+
file_name?: string | undefined;
|
|
112
113
|
file_url?: string | undefined;
|
|
113
114
|
file_key?: string | undefined;
|
|
114
|
-
file_name?: string | undefined;
|
|
115
115
|
file_description?: string | undefined;
|
|
116
116
|
file_size?: unknown;
|
|
117
117
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -160,10 +160,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
160
160
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
161
161
|
status: Status;
|
|
162
162
|
organisation_id: string;
|
|
163
|
+
file_name: string;
|
|
163
164
|
file_type: FileType;
|
|
164
165
|
file_url: string;
|
|
165
166
|
file_key: string;
|
|
166
|
-
file_name: string;
|
|
167
167
|
file_description: string;
|
|
168
168
|
file_size: number;
|
|
169
169
|
file_metadata: Record<string, any>;
|
|
@@ -173,77 +173,77 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
173
173
|
organisation_id: string;
|
|
174
174
|
file_type: FileType;
|
|
175
175
|
fleet_fuel_removal_id: string;
|
|
176
|
+
file_name?: string | undefined;
|
|
176
177
|
file_url?: string | undefined;
|
|
177
178
|
file_key?: string | undefined;
|
|
178
|
-
file_name?: string | undefined;
|
|
179
179
|
file_description?: string | undefined;
|
|
180
180
|
file_size?: unknown;
|
|
181
181
|
file_metadata?: Record<string, any> | undefined;
|
|
182
182
|
}>, "many">>>;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
odometer_reading: number;
|
|
185
|
-
date_time: string;
|
|
186
|
-
entry_source: RefillEntrySource;
|
|
187
|
-
source_reference_id: string;
|
|
188
|
-
source_notes: string;
|
|
189
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
190
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
191
|
-
google_location: string;
|
|
192
184
|
status: Status;
|
|
193
185
|
organisation_id: string;
|
|
194
186
|
user_id: string;
|
|
195
187
|
vehicle_id: string;
|
|
196
188
|
driver_id: string;
|
|
197
189
|
device_id: string;
|
|
190
|
+
time_zone_id: string;
|
|
198
191
|
vehicle_fuel_type_id: string;
|
|
199
192
|
vehicle_fuel_unit_id: string;
|
|
200
|
-
|
|
193
|
+
odometer_reading: number;
|
|
194
|
+
google_location: string;
|
|
195
|
+
date_time: string;
|
|
196
|
+
entry_source: RefillEntrySource;
|
|
197
|
+
source_reference_id: string;
|
|
198
|
+
source_notes: string;
|
|
199
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
200
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
201
201
|
fuel_removal_reason_id: string;
|
|
202
202
|
removal_details: string;
|
|
203
203
|
removal_files: {
|
|
204
204
|
status: Status;
|
|
205
205
|
organisation_id: string;
|
|
206
|
+
file_name: string;
|
|
206
207
|
file_type: FileType;
|
|
207
208
|
file_url: string;
|
|
208
209
|
file_key: string;
|
|
209
|
-
file_name: string;
|
|
210
210
|
file_description: string;
|
|
211
211
|
file_size: number;
|
|
212
212
|
file_metadata: Record<string, any>;
|
|
213
213
|
fleet_fuel_removal_id: string;
|
|
214
214
|
}[];
|
|
215
|
-
cost_per_unit?: number | undefined;
|
|
216
|
-
total_cost?: number | undefined;
|
|
217
215
|
latitude?: number | undefined;
|
|
218
216
|
longitude?: number | undefined;
|
|
217
|
+
cost_per_unit?: number | undefined;
|
|
218
|
+
total_cost?: number | undefined;
|
|
219
219
|
before_removal_quantity?: number | undefined;
|
|
220
220
|
after_removal_quantity?: number | undefined;
|
|
221
221
|
removal_quantity?: number | undefined;
|
|
222
222
|
verified_removal_quantity?: number | undefined;
|
|
223
223
|
diff_removal_quantity?: number | undefined;
|
|
224
224
|
}, {
|
|
225
|
-
date_time: string;
|
|
226
|
-
admin_verify_status: GPSFuelApproveStatus;
|
|
227
|
-
transporter_verify_status: GPSFuelApproveStatus;
|
|
228
225
|
status: Status;
|
|
229
226
|
organisation_id: string;
|
|
230
227
|
user_id: string;
|
|
231
228
|
vehicle_id: string;
|
|
232
229
|
driver_id: string;
|
|
233
230
|
device_id: string;
|
|
231
|
+
time_zone_id: string;
|
|
234
232
|
vehicle_fuel_type_id: string;
|
|
235
233
|
vehicle_fuel_unit_id: string;
|
|
236
|
-
|
|
234
|
+
date_time: string;
|
|
235
|
+
admin_verify_status: GPSFuelApproveStatus;
|
|
236
|
+
transporter_verify_status: GPSFuelApproveStatus;
|
|
237
237
|
fuel_removal_reason_id: string;
|
|
238
238
|
odometer_reading?: unknown;
|
|
239
|
+
latitude?: unknown;
|
|
240
|
+
longitude?: unknown;
|
|
241
|
+
google_location?: string | undefined;
|
|
239
242
|
cost_per_unit?: unknown;
|
|
240
243
|
total_cost?: unknown;
|
|
241
244
|
entry_source?: RefillEntrySource | undefined;
|
|
242
245
|
source_reference_id?: string | undefined;
|
|
243
246
|
source_notes?: string | undefined;
|
|
244
|
-
latitude?: unknown;
|
|
245
|
-
longitude?: unknown;
|
|
246
|
-
google_location?: string | undefined;
|
|
247
247
|
before_removal_quantity?: unknown;
|
|
248
248
|
after_removal_quantity?: unknown;
|
|
249
249
|
removal_quantity?: unknown;
|
|
@@ -255,9 +255,9 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
|
|
|
255
255
|
organisation_id: string;
|
|
256
256
|
file_type: FileType;
|
|
257
257
|
fleet_fuel_removal_id: string;
|
|
258
|
+
file_name?: string | undefined;
|
|
258
259
|
file_url?: string | undefined;
|
|
259
260
|
file_key?: string | undefined;
|
|
260
|
-
file_name?: string | undefined;
|
|
261
261
|
file_description?: string | undefined;
|
|
262
262
|
file_size?: unknown;
|
|
263
263
|
file_metadata?: Record<string, any> | undefined;
|
|
@@ -309,11 +309,7 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
309
309
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
310
310
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
311
311
|
}, "strip", z.ZodTypeAny, {
|
|
312
|
-
entry_source: RefillEntrySource[];
|
|
313
|
-
admin_verify_status: GPSFuelApproveStatus[];
|
|
314
|
-
transporter_verify_status: GPSFuelApproveStatus[];
|
|
315
312
|
status: Status[];
|
|
316
|
-
time_zone_id: string;
|
|
317
313
|
search: string;
|
|
318
314
|
paging: PAGING;
|
|
319
315
|
page_count: number;
|
|
@@ -333,24 +329,25 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
333
329
|
}[];
|
|
334
330
|
include_master_data: YesNo;
|
|
335
331
|
date_format_id: string;
|
|
332
|
+
time_zone_id: string;
|
|
336
333
|
organisation_ids: string[];
|
|
337
334
|
user_ids: string[];
|
|
338
335
|
vehicle_ids: string[];
|
|
339
336
|
driver_ids: string[];
|
|
340
337
|
device_ids: string[];
|
|
341
|
-
vehicle_fuel_type_ids: string[];
|
|
342
|
-
vehicle_fuel_unit_ids: string[];
|
|
343
338
|
from_date: string;
|
|
344
339
|
to_date: string;
|
|
340
|
+
vehicle_fuel_type_ids: string[];
|
|
341
|
+
entry_source: RefillEntrySource[];
|
|
342
|
+
admin_verify_status: GPSFuelApproveStatus[];
|
|
343
|
+
transporter_verify_status: GPSFuelApproveStatus[];
|
|
344
|
+
vehicle_fuel_unit_ids: string[];
|
|
345
345
|
fuel_removal_reason_ids: string[];
|
|
346
346
|
}, {
|
|
347
|
-
time_zone_id: string;
|
|
348
347
|
date_format_id: string;
|
|
348
|
+
time_zone_id: string;
|
|
349
349
|
from_date: string;
|
|
350
350
|
to_date: string;
|
|
351
|
-
entry_source?: RefillEntrySource[] | undefined;
|
|
352
|
-
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
353
|
-
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
354
351
|
status?: Status[] | undefined;
|
|
355
352
|
search?: string | undefined;
|
|
356
353
|
paging?: PAGING | undefined;
|
|
@@ -376,6 +373,9 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
|
|
|
376
373
|
driver_ids?: string[] | undefined;
|
|
377
374
|
device_ids?: string[] | undefined;
|
|
378
375
|
vehicle_fuel_type_ids?: string[] | undefined;
|
|
376
|
+
entry_source?: RefillEntrySource[] | undefined;
|
|
377
|
+
admin_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
378
|
+
transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
|
|
379
379
|
vehicle_fuel_unit_ids?: string[] | undefined;
|
|
380
380
|
fuel_removal_reason_ids?: string[] | undefined;
|
|
381
381
|
}>;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
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-BmevBmkg.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
interface GPSGeofence extends Record<string, unknown> {
|
|
9
9
|
gps_geofence_id: string;
|
|
10
10
|
geofence_name: string;
|
|
11
|
-
|
|
11
|
+
geofence_purpose_type: GeofencePurposeType;
|
|
12
|
+
geofence_description?: string;
|
|
13
|
+
geofence_location: string;
|
|
12
14
|
geofence_type: GeofenceType;
|
|
15
|
+
radius_m?: number;
|
|
13
16
|
radius_km?: number;
|
|
14
17
|
latitude?: number;
|
|
15
18
|
longitude?: number;
|
|
16
19
|
poliline_data?: GPSGeofencePolilineData[];
|
|
17
|
-
geofence_description?: string;
|
|
18
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
19
20
|
status: Status;
|
|
20
21
|
added_date_time: string;
|
|
21
22
|
modified_date_time: string;
|
|
@@ -38,12 +39,15 @@ declare const GPSGeofencePolilineDataSchema: z.ZodObject<{
|
|
|
38
39
|
longitude?: unknown;
|
|
39
40
|
}>;
|
|
40
41
|
type GPSGeofencePolilineDataDTO = z.infer<typeof GPSGeofencePolilineDataSchema>;
|
|
41
|
-
declare const
|
|
42
|
+
declare const GPSGeofenceSchema: z.ZodObject<{
|
|
42
43
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
43
44
|
geofence_name: z.ZodEffects<z.ZodString, string, string>;
|
|
44
|
-
|
|
45
|
+
geofence_location: z.ZodEffects<z.ZodString, string, string>;
|
|
46
|
+
geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
47
|
+
geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
|
|
45
48
|
geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
|
|
46
49
|
radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
50
|
+
radius_m: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
47
51
|
latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
48
52
|
longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
49
53
|
poliline_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -56,42 +60,42 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
|
|
|
56
60
|
latitude?: unknown;
|
|
57
61
|
longitude?: unknown;
|
|
58
62
|
}>, "many">>>;
|
|
59
|
-
geofence_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
60
|
-
geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
|
|
61
63
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
62
64
|
}, "strip", z.ZodTypeAny, {
|
|
65
|
+
status: Status;
|
|
66
|
+
organisation_id: string;
|
|
63
67
|
geofence_name: string;
|
|
64
|
-
|
|
68
|
+
geofence_purpose_type: GeofencePurposeType;
|
|
69
|
+
geofence_description: string;
|
|
70
|
+
geofence_location: string;
|
|
65
71
|
geofence_type: GeofenceType;
|
|
66
72
|
poliline_data: {
|
|
67
73
|
latitude: number;
|
|
68
74
|
longitude: number;
|
|
69
75
|
}[];
|
|
70
|
-
geofence_description: string;
|
|
71
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
72
|
-
status: Status;
|
|
73
|
-
organisation_id: string;
|
|
74
|
-
radius_km?: number | undefined;
|
|
75
76
|
latitude?: number | undefined;
|
|
76
77
|
longitude?: number | undefined;
|
|
78
|
+
radius_m?: number | undefined;
|
|
79
|
+
radius_km?: number | undefined;
|
|
77
80
|
}, {
|
|
78
|
-
geofence_name: string;
|
|
79
|
-
location_name: string;
|
|
80
|
-
geofence_type: GeofenceType;
|
|
81
|
-
geofence_purpose_type: GeofencePurposeType;
|
|
82
81
|
status: Status;
|
|
83
82
|
organisation_id: string;
|
|
84
|
-
|
|
83
|
+
geofence_name: string;
|
|
84
|
+
geofence_purpose_type: GeofencePurposeType;
|
|
85
|
+
geofence_location: string;
|
|
86
|
+
geofence_type: GeofenceType;
|
|
85
87
|
latitude?: unknown;
|
|
86
88
|
longitude?: unknown;
|
|
89
|
+
geofence_description?: string | undefined;
|
|
90
|
+
radius_m?: unknown;
|
|
91
|
+
radius_km?: unknown;
|
|
87
92
|
poliline_data?: {
|
|
88
93
|
latitude?: unknown;
|
|
89
94
|
longitude?: unknown;
|
|
90
95
|
}[] | undefined;
|
|
91
|
-
geofence_description?: string | undefined;
|
|
92
96
|
}>;
|
|
93
|
-
type
|
|
94
|
-
declare const
|
|
97
|
+
type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
|
|
98
|
+
declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
95
99
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
96
100
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
97
101
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -123,12 +127,12 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
123
127
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
124
128
|
} & {
|
|
125
129
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
126
|
-
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
127
130
|
geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
|
|
131
|
+
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
132
|
+
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
128
133
|
}, "strip", z.ZodTypeAny, {
|
|
129
|
-
geofence_type: GeofenceType[];
|
|
130
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
131
134
|
status: Status[];
|
|
135
|
+
time_zone_id: string;
|
|
132
136
|
search: string;
|
|
133
137
|
paging: PAGING;
|
|
134
138
|
page_count: number;
|
|
@@ -148,13 +152,13 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
148
152
|
}[];
|
|
149
153
|
include_master_data: YesNo;
|
|
150
154
|
date_format_id: string;
|
|
151
|
-
time_zone_id: string;
|
|
152
155
|
organisation_ids: string[];
|
|
156
|
+
gps_geofence_ids: string[];
|
|
157
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
158
|
+
geofence_type: GeofenceType[];
|
|
153
159
|
}, {
|
|
154
|
-
date_format_id: string;
|
|
155
160
|
time_zone_id: string;
|
|
156
|
-
|
|
157
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
161
|
+
date_format_id: string;
|
|
158
162
|
status?: Status[] | undefined;
|
|
159
163
|
search?: string | undefined;
|
|
160
164
|
paging?: PAGING | undefined;
|
|
@@ -175,13 +179,16 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
|
|
|
175
179
|
}[] | undefined;
|
|
176
180
|
include_master_data?: YesNo | undefined;
|
|
177
181
|
organisation_ids?: string[] | undefined;
|
|
182
|
+
gps_geofence_ids?: string[] | undefined;
|
|
183
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
184
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
178
185
|
}>;
|
|
179
|
-
type
|
|
180
|
-
declare const
|
|
181
|
-
declare const
|
|
182
|
-
declare const
|
|
183
|
-
declare const
|
|
184
|
-
declare const
|
|
185
|
-
declare const
|
|
186
|
+
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
187
|
+
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|
|
188
|
+
declare const newGPSGeofencePayload: () => GPSGeofenceDTO;
|
|
189
|
+
declare const findGPSGeofence: (data: GPSGeofenceQueryDTO) => Promise<FBR<GPSGeofence[]>>;
|
|
190
|
+
declare const createGPSGeofence: (data: GPSGeofenceDTO) => Promise<SBR>;
|
|
191
|
+
declare const updateGPSGeofence: (id: string, data: GPSGeofenceDTO) => Promise<SBR>;
|
|
192
|
+
declare const deleteGPSGeofence: (id: string) => Promise<SBR>;
|
|
186
193
|
|
|
187
|
-
export { type
|
|
194
|
+
export { type GPSGeofence, type GPSGeofenceDTO, type GPSGeofencePolilineData, type GPSGeofencePolilineDataDTO, GPSGeofencePolilineDataSchema, type GPSGeofenceQueryDTO, GPSGeofenceQuerySchema, GPSGeofenceSchema, createGPSGeofence, deleteGPSGeofence, findGPSGeofence, newGPSGeofencePayload, toGPSGeofencePayload, updateGPSGeofence };
|
package/dist/services/gps/features/geofence/{gps_geofence_data_service.js → gps_geofence_service.js}
RENAMED
|
@@ -22,7 +22,7 @@ var apiDelete = async (url) => {
|
|
|
22
22
|
return response.data;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
// src/services/gps/features/geofence/
|
|
25
|
+
// src/services/gps/features/geofence/gps_geofence_service.ts
|
|
26
26
|
import { z as z3 } from "zod";
|
|
27
27
|
|
|
28
28
|
// src/zod_utils/zod_utils.ts
|
|
@@ -347,8 +347,8 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
347
347
|
// ✅ Single-selection -> MasterMainTimeZone
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
// src/services/gps/features/geofence/
|
|
351
|
-
var URL = "gps/features/
|
|
350
|
+
// src/services/gps/features/geofence/gps_geofence_service.ts
|
|
351
|
+
var URL = "gps/features/gps_geofence";
|
|
352
352
|
var ENDPOINTS = {
|
|
353
353
|
find: `${URL}/search`,
|
|
354
354
|
create: URL,
|
|
@@ -359,16 +359,23 @@ var GPSGeofencePolilineDataSchema = z3.object({
|
|
|
359
359
|
latitude: doubleMandatoryLatLng("latitude"),
|
|
360
360
|
longitude: doubleMandatoryLatLng("longitude")
|
|
361
361
|
});
|
|
362
|
-
var
|
|
363
|
-
organisation_id: single_select_mandatory("
|
|
362
|
+
var GPSGeofenceSchema = z3.object({
|
|
363
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
364
364
|
geofence_name: stringMandatory("Geofence Name", 3, 100),
|
|
365
|
-
|
|
365
|
+
geofence_location: stringMandatory("Geofence Location", 3, 200),
|
|
366
|
+
geofence_description: stringOptional("Geofence Description", 0, 500),
|
|
367
|
+
geofence_purpose_type: enumMandatory(
|
|
368
|
+
"Geofence Purpuse Type",
|
|
369
|
+
GeofencePurposeType,
|
|
370
|
+
"TripSourceLocation" /* TripSourceLocation */
|
|
371
|
+
),
|
|
366
372
|
geofence_type: enumMandatory(
|
|
367
373
|
"Geofence Type",
|
|
368
374
|
GeofenceType,
|
|
369
375
|
"Circle" /* Circle */
|
|
370
376
|
),
|
|
371
377
|
radius_km: doubleOptional("radius_km"),
|
|
378
|
+
radius_m: doubleOptional("radius_m"),
|
|
372
379
|
latitude: doubleOptionalLatLng("latitude"),
|
|
373
380
|
longitude: doubleOptionalLatLng("longitude"),
|
|
374
381
|
poliline_data: nestedArrayOfObjectsOptional(
|
|
@@ -376,74 +383,72 @@ var GPSGeofenceDataSchema = z3.object({
|
|
|
376
383
|
GPSGeofencePolilineDataSchema,
|
|
377
384
|
[]
|
|
378
385
|
),
|
|
379
|
-
geofence_description: stringOptional("Geofence Description", 0, 500),
|
|
380
|
-
geofence_purpose_type: enumMandatory(
|
|
381
|
-
"Geofence Purpuse Type",
|
|
382
|
-
GeofencePurposeType,
|
|
383
|
-
"TripSourceLocation" /* TripSourceLocation */
|
|
384
|
-
),
|
|
385
386
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
386
387
|
});
|
|
387
|
-
var
|
|
388
|
-
organisation_ids: multi_select_optional("
|
|
388
|
+
var GPSGeofenceQuerySchema = BaseQuerySchema.extend({
|
|
389
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
389
390
|
// ✅ Multi-selection -> UserOrganisation
|
|
391
|
+
geofence_purpose_type: enumArrayOptional(
|
|
392
|
+
"Geofence Purpose Type",
|
|
393
|
+
GeofencePurposeType,
|
|
394
|
+
getAllEnums(GeofencePurposeType)
|
|
395
|
+
),
|
|
390
396
|
geofence_type: enumArrayOptional(
|
|
391
397
|
"Geofence Type",
|
|
392
398
|
GeofenceType,
|
|
393
399
|
getAllEnums(GeofenceType)
|
|
394
400
|
),
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
GeofencePurposeType,
|
|
398
|
-
getAllEnums(GeofencePurposeType)
|
|
399
|
-
)
|
|
401
|
+
gps_geofence_ids: multi_select_optional("GPSGeofence")
|
|
402
|
+
// ✅ Multi-selection -> GPSGeofence
|
|
400
403
|
});
|
|
401
|
-
var
|
|
404
|
+
var toGPSGeofencePayload = (data) => ({
|
|
402
405
|
organisation_id: data.organisation_id,
|
|
403
406
|
geofence_name: data.geofence_name,
|
|
404
|
-
|
|
407
|
+
geofence_location: data.geofence_location,
|
|
408
|
+
geofence_description: data.geofence_description ?? "",
|
|
409
|
+
geofence_purpose_type: data.geofence_purpose_type,
|
|
405
410
|
geofence_type: data.geofence_type,
|
|
411
|
+
radius_m: data.radius_m,
|
|
406
412
|
radius_km: data.radius_km,
|
|
407
413
|
latitude: data.latitude,
|
|
408
414
|
longitude: data.longitude,
|
|
409
415
|
poliline_data: data.poliline_data ?? [],
|
|
410
|
-
geofence_description: data.geofence_description ?? "",
|
|
411
|
-
geofence_purpose_type: data.geofence_purpose_type,
|
|
412
416
|
status: data.status
|
|
413
417
|
});
|
|
414
|
-
var
|
|
418
|
+
var newGPSGeofencePayload = () => ({
|
|
415
419
|
organisation_id: "",
|
|
416
420
|
geofence_name: "",
|
|
417
|
-
|
|
421
|
+
geofence_location: "",
|
|
422
|
+
geofence_description: "",
|
|
423
|
+
geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
|
|
418
424
|
geofence_type: "Circle" /* Circle */,
|
|
425
|
+
radius_m: 0,
|
|
419
426
|
radius_km: 0,
|
|
420
427
|
latitude: 0,
|
|
421
428
|
longitude: 0,
|
|
422
429
|
poliline_data: [],
|
|
423
|
-
geofence_description: "",
|
|
424
|
-
geofence_purpose_type: "TripSourceLocation" /* TripSourceLocation */,
|
|
425
430
|
status: "Active" /* Active */
|
|
426
431
|
});
|
|
427
|
-
var
|
|
432
|
+
var findGPSGeofence = async (data) => {
|
|
428
433
|
return apiPost(ENDPOINTS.find, data);
|
|
429
434
|
};
|
|
430
|
-
var
|
|
435
|
+
var createGPSGeofence = async (data) => {
|
|
431
436
|
return apiPost(ENDPOINTS.create, data);
|
|
432
437
|
};
|
|
433
|
-
var
|
|
438
|
+
var updateGPSGeofence = async (id, data) => {
|
|
434
439
|
return apiPatch(ENDPOINTS.update(id), data);
|
|
435
440
|
};
|
|
436
|
-
var
|
|
441
|
+
var deleteGPSGeofence = async (id) => {
|
|
437
442
|
return apiDelete(ENDPOINTS.delete(id));
|
|
438
443
|
};
|
|
439
444
|
export {
|
|
440
|
-
GPSGeofenceDataQuerySchema,
|
|
441
|
-
GPSGeofenceDataSchema,
|
|
442
445
|
GPSGeofencePolilineDataSchema,
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
446
|
+
GPSGeofenceQuerySchema,
|
|
447
|
+
GPSGeofenceSchema,
|
|
448
|
+
createGPSGeofence,
|
|
449
|
+
deleteGPSGeofence,
|
|
450
|
+
findGPSGeofence,
|
|
451
|
+
newGPSGeofencePayload,
|
|
452
|
+
toGPSGeofencePayload,
|
|
453
|
+
updateGPSGeofence
|
|
449
454
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
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-
|
|
5
|
-
import {
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-BmevBmkg.js';
|
|
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';
|
|
8
8
|
|
|
@@ -23,7 +23,7 @@ interface GPSGeofenceTransaction extends Record<string, unknown> {
|
|
|
23
23
|
MasterDriver?: MasterDriver;
|
|
24
24
|
driver_details?: string;
|
|
25
25
|
gps_geofence_id: string;
|
|
26
|
-
GPSGeofenceData?:
|
|
26
|
+
GPSGeofenceData?: GPSGeofence;
|
|
27
27
|
geofence_details?: string;
|
|
28
28
|
}
|
|
29
29
|
declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
@@ -34,20 +34,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
34
34
|
geofence_status_type: z.ZodType<GeofenceStatusType, z.ZodTypeDef, GeofenceStatusType>;
|
|
35
35
|
geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
37
38
|
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
gps_geofence_id: string;
|
|
39
39
|
status: Status;
|
|
40
40
|
organisation_id: string;
|
|
41
|
-
driver_id: string;
|
|
42
41
|
vehicle_id: string;
|
|
42
|
+
driver_id: string;
|
|
43
|
+
gps_geofence_id: string;
|
|
44
|
+
time_zone_id: string;
|
|
43
45
|
geofence_status_type: GeofenceStatusType;
|
|
44
46
|
geofence_time: string;
|
|
45
47
|
}, {
|
|
46
|
-
gps_geofence_id: string;
|
|
47
48
|
status: Status;
|
|
48
49
|
organisation_id: string;
|
|
49
|
-
driver_id: string;
|
|
50
50
|
vehicle_id: string;
|
|
51
|
+
driver_id: string;
|
|
52
|
+
gps_geofence_id: string;
|
|
53
|
+
time_zone_id: string;
|
|
51
54
|
geofence_status_type: GeofenceStatusType;
|
|
52
55
|
geofence_time: string;
|
|
53
56
|
}>;
|
|
@@ -88,8 +91,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
88
91
|
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
89
92
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
90
93
|
geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
|
|
94
|
+
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
|
+
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
91
96
|
}, "strip", z.ZodTypeAny, {
|
|
92
97
|
status: Status[];
|
|
98
|
+
time_zone_id: string;
|
|
93
99
|
search: string;
|
|
94
100
|
paging: PAGING;
|
|
95
101
|
page_count: number;
|
|
@@ -109,15 +115,18 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
109
115
|
}[];
|
|
110
116
|
include_master_data: YesNo;
|
|
111
117
|
date_format_id: string;
|
|
112
|
-
time_zone_id: string;
|
|
113
118
|
organisation_ids: string[];
|
|
114
119
|
vehicle_ids: string[];
|
|
115
120
|
driver_ids: string[];
|
|
116
|
-
geofence_status_type: GeofenceStatusType[];
|
|
117
121
|
gps_geofence_ids: string[];
|
|
122
|
+
from_date: string;
|
|
123
|
+
to_date: string;
|
|
124
|
+
geofence_status_type: GeofenceStatusType[];
|
|
118
125
|
}, {
|
|
119
|
-
date_format_id: string;
|
|
120
126
|
time_zone_id: string;
|
|
127
|
+
date_format_id: string;
|
|
128
|
+
from_date: string;
|
|
129
|
+
to_date: string;
|
|
121
130
|
status?: Status[] | undefined;
|
|
122
131
|
search?: string | undefined;
|
|
123
132
|
paging?: PAGING | undefined;
|
|
@@ -140,15 +149,15 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
140
149
|
organisation_ids?: string[] | undefined;
|
|
141
150
|
vehicle_ids?: string[] | undefined;
|
|
142
151
|
driver_ids?: string[] | undefined;
|
|
143
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
144
152
|
gps_geofence_ids?: string[] | undefined;
|
|
153
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
145
154
|
}>;
|
|
146
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
147
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
148
157
|
declare const newGPSGeofenceTransactionPayload: () => GPSGeofenceTransactionDTO;
|
|
149
|
-
declare const
|
|
158
|
+
declare const findGPSGeofenceTransaction: (data: GPSGeofenceTransactionQueryDTO) => Promise<FBR<GPSGeofenceTransaction[]>>;
|
|
150
159
|
declare const createGPSGeofenceTransaction: (data: GPSGeofenceTransactionDTO) => Promise<SBR>;
|
|
151
160
|
declare const updateGPSGeofenceTransaction: (id: string, data: GPSGeofenceTransactionDTO) => Promise<SBR>;
|
|
152
161
|
declare const deleteGPSGeofenceTransaction: (id: string) => Promise<SBR>;
|
|
153
162
|
|
|
154
|
-
export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction,
|
|
163
|
+
export { type GPSGeofenceTransaction, type GPSGeofenceTransactionDTO, type GPSGeofenceTransactionQueryDTO, GPSGeofenceTransactionQuerySchema, GPSGeofenceTransactionSchema, createGPSGeofenceTransaction, deleteGPSGeofenceTransaction, findGPSGeofenceTransaction, newGPSGeofenceTransactionPayload, toGPSGeofenceTransactionPayload, updateGPSGeofenceTransaction };
|