vms-nest-prisma-api-document 10.0.0 → 11.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.
Files changed (19) hide show
  1. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  2. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  3. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
  4. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +98 -98
  5. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +62 -60
  6. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +39 -39
  7. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +11 -11
  8. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +2 -2
  9. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +8 -8
  10. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
  11. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +11 -11
  12. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +16 -16
  13. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +9 -9
  14. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  15. package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
  16. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
  17. package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
  18. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
  19. package/package.json +1 -1
@@ -379,38 +379,22 @@ var FleetFuelRefillSchema = z3.object({
379
379
  refill_quantity: doubleOptional("Refill Quantity"),
380
380
  verified_refill_quantity: doubleOptional("Verified Refill Quantity"),
381
381
  diff_refill_quantity: doubleOptional("Difference Refill Quantity", -100),
382
- odometer_reading: numberOptional("Odometer Reading"),
383
- is_full_tank: enumMandatory("Is Full Tank", YesNo, "No" /* No */),
384
- is_previous_entries_missed: enumMandatory(
385
- "Is Previous Entries Missed",
386
- YesNo,
387
- "No" /* No */
388
- ),
389
382
  // Event Time
390
383
  date_time: dateMandatory("Date Time"),
384
+ // Verification
385
+ admin_verify_status: enumMandatory(
386
+ "Admin Fuel Verify Status",
387
+ GPSFuelApproveStatus,
388
+ "Pending" /* Pending */
389
+ ),
390
+ transporter_verify_status: enumMandatory(
391
+ "Transporter Fuel Verify Status",
392
+ GPSFuelApproveStatus,
393
+ "Pending" /* Pending */
394
+ ),
391
395
  // Cost Details
392
396
  cost_per_unit: doubleOptional("Cost Per Unit"),
393
397
  total_cost: doubleOptional("Total Cost"),
394
- // Payment Info
395
- invoice_number: stringOptional("Invoice Number", 0, 100),
396
- payment_mode: enumMandatory("Payment Mode", PaymentMode, "Cash" /* Cash */),
397
- payment_status: enumMandatory(
398
- "Payment Status",
399
- PaymentStatus,
400
- "Paid" /* Paid */
401
- ),
402
- payment_reference_number: stringOptional("Payment Reference Number", 0, 100),
403
- fuel_card_number: stringOptional("Fuel Card Number", 0, 50),
404
- payment_notes: stringOptional("Payment Notes", 0, 500),
405
- //Other Details
406
- refill_method: enumOptional(
407
- "Refill Method",
408
- RefillMethod,
409
- "Dispenser" /* Dispenser */
410
- ),
411
- refill_details: stringOptional("Refill Details", 0, 300),
412
- payment_details: stringOptional("Payment Details", 0, 300),
413
- filled_by_person: stringOptional("Filled By Person", 0, 100),
414
398
  // Source Details
415
399
  entry_source: enumOptional(
416
400
  "Entry Source",
@@ -419,21 +403,39 @@ var FleetFuelRefillSchema = z3.object({
419
403
  ),
420
404
  source_reference_id: stringOptional("Source Reference ID", 0, 100),
421
405
  source_notes: stringOptional("Source Notes", 0, 500),
422
- // Verification
423
- admin_verify_status: enumMandatory(
424
- "Admin Fuel Verify Status",
425
- GPSFuelApproveStatus,
426
- "Pending" /* Pending */
406
+ // Refill Details
407
+ refill_method: enumOptional(
408
+ "Refill Method",
409
+ RefillMethod,
410
+ "Dispenser" /* Dispenser */
427
411
  ),
428
- transporter_verify_status: enumMandatory(
429
- "Transporter Fuel Verify Status",
430
- GPSFuelApproveStatus,
431
- "Pending" /* Pending */
412
+ refill_details: stringOptional("Refill Details", 0, 300),
413
+ filled_by_person: stringOptional("Filled By Person", 0, 100),
414
+ // Payment Details
415
+ invoice_number: stringOptional("Invoice Number", 0, 100),
416
+ payment_mode: enumMandatory("Payment Mode", PaymentMode, "Cash" /* Cash */),
417
+ payment_status: enumMandatory(
418
+ "Payment Status",
419
+ PaymentStatus,
420
+ "Paid" /* Paid */
432
421
  ),
422
+ payment_reference_number: stringOptional("Payment Reference Number", 0, 100),
423
+ fuel_card_number: stringOptional("Fuel Card Number", 0, 50),
424
+ payment_notes: stringOptional("Payment Notes", 0, 500),
433
425
  // Location Details
434
426
  latitude: doubleOptionalLatLng("Latitude"),
435
427
  longitude: doubleOptionalLatLng("Longitude"),
436
428
  google_location: stringOptional("Google Location", 0, 500),
429
+ // Analytics Fields
430
+ odometer_reading: numberOptional("Odometer Reading"),
431
+ tank_size: numberOptional("Tank Size"),
432
+ is_full_tank: enumMandatory("Is Full Tank", YesNo, "No" /* No */),
433
+ is_previous_entries_missed: enumMandatory(
434
+ "Is Previous Entries Missed",
435
+ YesNo,
436
+ "No" /* No */
437
+ ),
438
+ // Other
437
439
  status: enumMandatory("Status", Status, "Active" /* Active */),
438
440
  time_zone_id: single_select_mandatory("MasterMainTimeZone"),
439
441
  refill_files: nestedArrayOfObjectsOptional(
@@ -496,30 +498,30 @@ var toFleetFuelRefillPayload = (row) => ({
496
498
  refill_quantity: row.refill_quantity,
497
499
  verified_refill_quantity: row.verified_refill_quantity,
498
500
  diff_refill_quantity: row.diff_refill_quantity ?? 0,
499
- odometer_reading: row.odometer_reading ?? 0,
500
- is_full_tank: row.is_full_tank,
501
- is_previous_entries_missed: row.is_previous_entries_missed,
502
501
  date_time: row.date_time,
502
+ admin_verify_status: row.admin_verify_status,
503
+ transporter_verify_status: row.transporter_verify_status,
503
504
  cost_per_unit: row.cost_per_unit ?? 0,
504
505
  total_cost: row.total_cost ?? 0,
506
+ entry_source: row.entry_source ?? "Manual" /* Manual */,
507
+ source_reference_id: row.source_reference_id || "",
508
+ source_notes: row.source_notes || "",
509
+ refill_method: row.refill_method ?? "Dispenser" /* Dispenser */,
510
+ refill_details: row.refill_details || "",
511
+ filled_by_person: row.filled_by_person || "",
505
512
  invoice_number: row.invoice_number || "",
506
513
  payment_mode: row.payment_mode,
507
514
  payment_status: row.payment_status,
508
515
  payment_reference_number: row.payment_reference_number || "",
509
516
  fuel_card_number: row.fuel_card_number || "",
510
517
  payment_notes: row.payment_notes || "",
511
- refill_method: row.refill_method ?? "Dispenser" /* Dispenser */,
512
- refill_details: row.refill_details || "",
513
- payment_details: row.payment_details || "",
514
- filled_by_person: row.filled_by_person || "",
515
- entry_source: row.entry_source ?? "Manual" /* Manual */,
516
- source_reference_id: row.source_reference_id || "",
517
- source_notes: row.source_notes || "",
518
- admin_verify_status: row.admin_verify_status,
519
- transporter_verify_status: row.transporter_verify_status,
520
518
  latitude: row.latitude ?? 0,
521
519
  longitude: row.longitude ?? 0,
522
520
  google_location: row.google_location || "",
521
+ odometer_reading: row.odometer_reading ?? 0,
522
+ tank_size: row.tank_size ?? 0,
523
+ is_full_tank: row.is_full_tank,
524
+ is_previous_entries_missed: row.is_previous_entries_missed,
523
525
  status: row.status,
524
526
  time_zone_id: "",
525
527
  // Needs to be provided manually
@@ -551,30 +553,30 @@ var newFleetFuelRefillPayload = () => ({
551
553
  refill_quantity: 0,
552
554
  verified_refill_quantity: 0,
553
555
  diff_refill_quantity: 0,
554
- odometer_reading: 0,
555
- is_full_tank: "No" /* No */,
556
- is_previous_entries_missed: "No" /* No */,
557
556
  date_time: (/* @__PURE__ */ new Date()).toISOString(),
557
+ admin_verify_status: "Pending" /* Pending */,
558
+ transporter_verify_status: "Pending" /* Pending */,
558
559
  cost_per_unit: 0,
559
560
  total_cost: 0,
561
+ entry_source: "Manual" /* Manual */,
562
+ source_reference_id: "",
563
+ source_notes: "",
564
+ refill_method: "Dispenser" /* Dispenser */,
565
+ refill_details: "",
566
+ filled_by_person: "",
560
567
  invoice_number: "",
561
568
  payment_mode: "Cash" /* Cash */,
562
569
  payment_status: "Paid" /* Paid */,
563
570
  payment_reference_number: "",
564
571
  fuel_card_number: "",
565
572
  payment_notes: "",
566
- refill_method: "Dispenser" /* Dispenser */,
567
- refill_details: "",
568
- payment_details: "",
569
- filled_by_person: "",
570
- entry_source: "Manual" /* Manual */,
571
- source_reference_id: "",
572
- source_notes: "",
573
- admin_verify_status: "Pending" /* Pending */,
574
- transporter_verify_status: "Pending" /* Pending */,
575
573
  latitude: 0,
576
574
  longitude: 0,
577
575
  google_location: "",
576
+ odometer_reading: 0,
577
+ tank_size: 0,
578
+ is_full_tank: "No" /* No */,
579
+ is_previous_entries_missed: "No" /* No */,
578
580
  status: "Active" /* Active */,
579
581
  time_zone_id: "",
580
582
  refill_files: []
@@ -1,4 +1,4 @@
1
- import { RefillEntrySource, GPSFuelApproveStatus, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
1
+ import { GPSFuelApproveStatus, RefillEntrySource, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
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';
@@ -19,6 +19,8 @@ interface FleetFuelRemoval extends Record<string, unknown> {
19
19
  date?: string;
20
20
  date_f?: string;
21
21
  date_time_f?: string;
22
+ admin_verify_status: GPSFuelApproveStatus;
23
+ transporter_verify_status: GPSFuelApproveStatus;
22
24
  cost_per_unit?: number;
23
25
  total_cost?: number;
24
26
  fuel_removal_reason_id?: string;
@@ -28,8 +30,6 @@ interface FleetFuelRemoval extends Record<string, unknown> {
28
30
  entry_source: RefillEntrySource;
29
31
  source_reference_id?: string;
30
32
  source_notes?: string;
31
- admin_verify_status: GPSFuelApproveStatus;
32
- transporter_verify_status: GPSFuelApproveStatus;
33
33
  latitude?: number;
34
34
  longitude?: number;
35
35
  google_location?: string;
@@ -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;
@@ -133,14 +133,14 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
133
133
  diff_removal_quantity: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
134
134
  odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
135
135
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
136
+ admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
137
+ transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
136
138
  removal_details: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
137
139
  cost_per_unit: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
138
140
  total_cost: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
139
141
  entry_source: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof RefillEntrySource>>>;
140
142
  source_reference_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
141
143
  source_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
142
- admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
143
- transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
144
144
  latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
145
145
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
146
146
  google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -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
- time_zone_id: string;
193
+ odometer_reading: number;
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;
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
- time_zone_id: string;
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
+ admin_verify_status: GPSFuelApproveStatus[];
342
+ transporter_verify_status: GPSFuelApproveStatus[];
343
+ entry_source: RefillEntrySource[];
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
+ admin_verify_status?: GPSFuelApproveStatus[] | undefined;
377
+ transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
378
+ entry_source?: RefillEntrySource[] | undefined;
379
379
  vehicle_fuel_unit_ids?: string[] | undefined;
380
380
  fuel_removal_reason_ids?: string[] | undefined;
381
381
  }>;
@@ -356,6 +356,17 @@ var FleetFuelRemovalSchema = z3.object({
356
356
  odometer_reading: numberOptional("Odometer Reading"),
357
357
  // Event Time
358
358
  date_time: dateMandatory("Date Time"),
359
+ // Verification
360
+ admin_verify_status: enumMandatory(
361
+ "Admin Fuel Verify Status",
362
+ GPSFuelApproveStatus,
363
+ "Pending" /* Pending */
364
+ ),
365
+ transporter_verify_status: enumMandatory(
366
+ "Transporter Fuel Verify Status",
367
+ GPSFuelApproveStatus,
368
+ "Pending" /* Pending */
369
+ ),
359
370
  removal_details: stringOptional("Removal Details", 0, 300),
360
371
  // Cost Details
361
372
  cost_per_unit: doubleOptional("Cost Per Unit"),
@@ -368,17 +379,6 @@ var FleetFuelRemovalSchema = z3.object({
368
379
  ),
369
380
  source_reference_id: stringOptional("Source Reference ID", 0, 100),
370
381
  source_notes: stringOptional("Source Notes", 0, 500),
371
- // Verification
372
- admin_verify_status: enumMandatory(
373
- "Admin Fuel Verify Status",
374
- GPSFuelApproveStatus,
375
- "Pending" /* Pending */
376
- ),
377
- transporter_verify_status: enumMandatory(
378
- "Transporter Fuel Verify Status",
379
- GPSFuelApproveStatus,
380
- "Pending" /* Pending */
381
- ),
382
382
  // Location Details
383
383
  latitude: doubleOptionalLatLng("Latitude"),
384
384
  longitude: doubleOptionalLatLng("Longitude"),
@@ -193,9 +193,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
193
193
  include_master_data: YesNo;
194
194
  date_format_id: string;
195
195
  organisation_ids: string[];
196
+ gps_geofence_ids: string[];
196
197
  geofence_purpose_type: GeofencePurposeType[];
197
198
  geofence_type: GeofenceType[];
198
- gps_geofence_ids: string[];
199
199
  }, {
200
200
  time_zone_id: string;
201
201
  date_format_id: string;
@@ -219,9 +219,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
219
219
  }[] | undefined;
220
220
  include_master_data?: YesNo | undefined;
221
221
  organisation_ids?: string[] | undefined;
222
+ gps_geofence_ids?: string[] | undefined;
222
223
  geofence_purpose_type?: GeofencePurposeType[] | undefined;
223
224
  geofence_type?: GeofenceType[] | undefined;
224
- gps_geofence_ids?: string[] | undefined;
225
225
  }>;
226
226
  type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
227
227
  declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
@@ -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
- time_zone_id: string;
44
45
  gps_geofence_id: string;
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
- time_zone_id: string;
53
54
  gps_geofence_id: string;
54
- geofence_status_type: GeofenceStatusType;
55
- geofence_time: string;
55
+ time_zone_id: 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;
@@ -118,15 +119,15 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
118
119
  organisation_ids: string[];
119
120
  vehicle_ids: string[];
120
121
  driver_ids: string[];
122
+ gps_geofence_ids: string[];
121
123
  from_date: string;
122
124
  to_date: string;
123
- gps_geofence_ids: 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;
@@ -46,15 +46,15 @@ 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
- duration_seconds: number;
50
49
  status: Status;
51
50
  organisation_id: string;
52
51
  vehicle_id: string;
53
52
  driver_id: string;
54
- time_zone_id: string;
55
53
  gps_geofence_id: string;
54
+ time_zone_id: string;
56
55
  geofence_enter_date_time: string;
57
56
  geofence_exit_date_time: string;
57
+ duration_seconds: number;
58
58
  enter_gps_geofence_transaction_id: string;
59
59
  exit_gps_geofence_transaction_id: string;
60
60
  }, {
@@ -62,13 +62,13 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
62
62
  organisation_id: string;
63
63
  vehicle_id: string;
64
64
  driver_id: string;
65
- time_zone_id: string;
66
65
  gps_geofence_id: string;
66
+ time_zone_id: string;
67
67
  geofence_enter_date_time: string;
68
68
  enter_gps_geofence_transaction_id: string;
69
69
  exit_gps_geofence_transaction_id: string;
70
- duration_seconds?: unknown;
71
70
  geofence_exit_date_time?: string | undefined;
71
+ duration_seconds?: unknown;
72
72
  }>;
73
73
  type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
74
74
  declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
@@ -133,9 +133,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
133
133
  organisation_ids: string[];
134
134
  vehicle_ids: string[];
135
135
  driver_ids: string[];
136
+ gps_geofence_ids: string[];
136
137
  from_date: string;
137
138
  to_date: string;
138
- gps_geofence_ids: string[];
139
139
  }, {
140
140
  time_zone_id: string;
141
141
  date_format_id: string;
@@ -55,31 +55,31 @@ 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
+ status: Status;
59
+ organisation_id: string;
60
+ vehicle_id: string;
61
+ driver_id: string;
62
+ time_zone_id: string;
63
+ duration_seconds: number;
58
64
  from_geofence_exit_date_time: string;
59
65
  to_geofence_enter_date_time: string;
60
- duration_seconds: number;
61
66
  travel_duration_seconds: number;
62
67
  stopped_duration_seconds: number;
63
68
  max_speed: number;
64
69
  avg_speed: number;
65
- status: Status;
66
- organisation_id: string;
67
- vehicle_id: string;
68
- driver_id: string;
69
70
  from_geofence_id: string;
70
71
  to_geofence_id: string;
71
- time_zone_id: string;
72
72
  distance_meters?: number | undefined;
73
73
  }, {
74
- from_geofence_exit_date_time: string;
75
- to_geofence_enter_date_time: string;
76
74
  status: Status;
77
75
  organisation_id: string;
78
76
  vehicle_id: string;
79
77
  driver_id: string;
78
+ time_zone_id: string;
79
+ from_geofence_exit_date_time: string;
80
+ to_geofence_enter_date_time: string;
80
81
  from_geofence_id: string;
81
82
  to_geofence_id: string;
82
- time_zone_id: string;
83
83
  duration_seconds?: unknown;
84
84
  travel_duration_seconds?: unknown;
85
85
  stopped_duration_seconds?: unknown;
@@ -151,10 +151,10 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
151
151
  organisation_ids: string[];
152
152
  vehicle_ids: string[];
153
153
  driver_ids: string[];
154
- from_geofence_ids: string[];
155
- to_geofence_ids: string[];
156
154
  from_date: string;
157
155
  to_date: string;
156
+ from_geofence_ids: string[];
157
+ to_geofence_ids: string[];
158
158
  }, {
159
159
  time_zone_id: string;
160
160
  date_format_id: string;