vms-nest-prisma-api-document 10.0.0 → 12.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 (20) hide show
  1. package/dist/core/Enums.d.ts +2 -0
  2. package/dist/core/Enums.js +2 -0
  3. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +56 -56
  4. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +62 -60
  5. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +11 -11
  6. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +15 -15
  7. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +2 -2
  8. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +8 -8
  9. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
  10. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +11 -11
  11. package/dist/services/gps/features/gps_live_track_share_link_service.js +2 -0
  12. package/dist/services/gps/features/gps_track_history_share_link_service.js +2 -0
  13. package/dist/services/gps/features/{preferences/user_notification_preferences.service.d.ts → user_notification_preferences.service.d.ts} +18 -18
  14. package/dist/services/gps/features/{preferences/user_notification_preferences.service.js → user_notification_preferences.service.js} +4 -2
  15. package/dist/services/gps/features/{preferences/user_report_preferences.service.d.ts → user_report_preferences.service.d.ts} +13 -13
  16. package/dist/services/gps/features/{preferences/user_report_preferences.service.js → user_report_preferences.service.js} +2 -2
  17. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  18. package/dist/services/website/contact_us_detail_service.d.ts +1 -1
  19. package/dist/services/website/faq_service.d.ts +1 -1
  20. package/package.json +1 -1
@@ -131,6 +131,8 @@ declare enum DeviceType {
131
131
  Web = "Web"
132
132
  }
133
133
  declare enum NotificationType {
134
+ Whatsapp = "Whatsapp",
135
+ Message = "Message",
134
136
  Email = "Email",
135
137
  Push = "Push"
136
138
  }
@@ -157,6 +157,8 @@ var DeviceType = /* @__PURE__ */ ((DeviceType2) => {
157
157
  return DeviceType2;
158
158
  })(DeviceType || {});
159
159
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
160
+ NotificationType2["Whatsapp"] = "Whatsapp";
161
+ NotificationType2["Message"] = "Message";
160
162
  NotificationType2["Email"] = "Email";
161
163
  NotificationType2["Push"] = "Push";
162
164
  return NotificationType2;
@@ -1,4 +1,4 @@
1
- import { YesNo, PaymentMode, PaymentStatus, RefillMethod, RefillEntrySource, GPSFuelApproveStatus, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
1
+ import { GPSFuelApproveStatus, RefillEntrySource, RefillMethod, PaymentMode, PaymentStatus, YesNo, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } 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';
@@ -13,35 +13,26 @@ interface FleetFuelRefill extends Record<string, unknown> {
13
13
  refill_quantity: number;
14
14
  verified_refill_quantity: number;
15
15
  diff_refill_quantity: number;
16
- odometer_reading?: number;
17
- is_full_tank: YesNo;
18
- is_previous_entries_missed: YesNo;
19
16
  date_time: string;
20
17
  date?: string;
21
18
  date_f?: string;
22
19
  date_time_f?: string;
20
+ admin_verify_status: GPSFuelApproveStatus;
21
+ transporter_verify_status: GPSFuelApproveStatus;
23
22
  cost_per_unit?: number;
24
23
  total_cost?: number;
24
+ entry_source: RefillEntrySource;
25
+ source_reference_id?: string;
26
+ source_notes?: string;
27
+ refill_method?: RefillMethod;
28
+ refill_details?: string;
29
+ filled_by_person?: string;
25
30
  invoice_number?: string;
26
31
  payment_mode: PaymentMode;
27
32
  payment_status: PaymentStatus;
28
33
  payment_reference_number?: string;
29
34
  fuel_card_number?: string;
30
35
  payment_notes?: string;
31
- refill_method?: RefillMethod;
32
- refill_details?: string;
33
- payment_details?: string;
34
- filled_by_person?: string;
35
- entry_source: RefillEntrySource;
36
- source_reference_id?: string;
37
- source_notes?: string;
38
- admin_verify_status: GPSFuelApproveStatus;
39
- transporter_verify_status: GPSFuelApproveStatus;
40
- last_refill_date?: string;
41
- last_odometer_reading?: number;
42
- last_refill_quantity?: number;
43
- diff_distance?: number;
44
- fuel_efficiency?: number;
45
36
  latitude?: number;
46
37
  longitude?: number;
47
38
  google_location?: string;
@@ -49,6 +40,15 @@ interface FleetFuelRefill extends Record<string, unknown> {
49
40
  MasterMainLandmark?: MasterMainLandmark;
50
41
  landmark_location?: string;
51
42
  landmark_distance?: number;
43
+ odometer_reading?: number;
44
+ tank_size?: number;
45
+ is_full_tank: YesNo;
46
+ is_previous_entries_missed: YesNo;
47
+ last_refill_date?: string;
48
+ last_odometer_reading?: number;
49
+ last_refill_quantity?: number;
50
+ diff_distance?: number;
51
+ fuel_efficiency?: number;
52
52
  status: Status;
53
53
  added_date_time: string;
54
54
  modified_date_time: string;
@@ -149,30 +149,30 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
149
149
  refill_quantity: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
150
150
  verified_refill_quantity: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
151
151
  diff_refill_quantity: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
152
- odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
153
- is_full_tank: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
154
- is_previous_entries_missed: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
155
152
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
153
+ admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
154
+ transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
156
155
  cost_per_unit: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
157
156
  total_cost: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
157
+ entry_source: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof RefillEntrySource>>>;
158
+ source_reference_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
159
+ source_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
160
+ refill_method: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof RefillMethod>>>;
161
+ refill_details: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
162
+ filled_by_person: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
158
163
  invoice_number: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
159
164
  payment_mode: z.ZodType<PaymentMode, z.ZodTypeDef, PaymentMode>;
160
165
  payment_status: z.ZodType<PaymentStatus, z.ZodTypeDef, PaymentStatus>;
161
166
  payment_reference_number: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
162
167
  fuel_card_number: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
163
168
  payment_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
164
- refill_method: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof RefillMethod>>>;
165
- refill_details: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
166
- payment_details: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
167
- filled_by_person: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
168
- entry_source: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof RefillEntrySource>>>;
169
- source_reference_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
170
- source_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
171
- admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
172
- transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
173
169
  latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
174
170
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
175
171
  google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
172
+ odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
173
+ tank_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
174
+ is_full_tank: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
175
+ is_previous_entries_missed: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
176
176
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
177
177
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
178
178
  refill_files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -210,26 +210,26 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
210
210
  file_metadata?: Record<string, any> | undefined;
211
211
  }>, "many">>>;
212
212
  }, "strip", z.ZodTypeAny, {
213
- odometer_reading: number;
214
- is_full_tank: YesNo;
215
- is_previous_entries_missed: YesNo;
216
213
  date_time: string;
214
+ admin_verify_status: GPSFuelApproveStatus;
215
+ transporter_verify_status: GPSFuelApproveStatus;
216
+ entry_source: RefillEntrySource;
217
+ source_reference_id: string;
218
+ source_notes: string;
219
+ refill_method: RefillMethod;
220
+ refill_details: string;
221
+ filled_by_person: string;
217
222
  invoice_number: string;
218
223
  payment_mode: PaymentMode;
219
224
  payment_status: PaymentStatus;
220
225
  payment_reference_number: string;
221
226
  fuel_card_number: string;
222
227
  payment_notes: string;
223
- refill_method: RefillMethod;
224
- refill_details: string;
225
- payment_details: string;
226
- filled_by_person: string;
227
- entry_source: RefillEntrySource;
228
- source_reference_id: string;
229
- source_notes: string;
230
- admin_verify_status: GPSFuelApproveStatus;
231
- transporter_verify_status: GPSFuelApproveStatus;
232
228
  google_location: string;
229
+ odometer_reading: number;
230
+ tank_size: number;
231
+ is_full_tank: YesNo;
232
+ is_previous_entries_missed: YesNo;
233
233
  status: Status;
234
234
  organisation_id: string;
235
235
  user_id: string;
@@ -263,13 +263,13 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
263
263
  latitude?: number | undefined;
264
264
  longitude?: number | undefined;
265
265
  }, {
266
- is_full_tank: YesNo;
267
- is_previous_entries_missed: YesNo;
268
266
  date_time: string;
269
- payment_mode: PaymentMode;
270
- payment_status: PaymentStatus;
271
267
  admin_verify_status: GPSFuelApproveStatus;
272
268
  transporter_verify_status: GPSFuelApproveStatus;
269
+ payment_mode: PaymentMode;
270
+ payment_status: PaymentStatus;
271
+ is_full_tank: YesNo;
272
+ is_previous_entries_missed: YesNo;
273
273
  status: Status;
274
274
  organisation_id: string;
275
275
  user_id: string;
@@ -286,23 +286,23 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
286
286
  refill_quantity?: unknown;
287
287
  verified_refill_quantity?: unknown;
288
288
  diff_refill_quantity?: unknown;
289
- odometer_reading?: unknown;
290
289
  cost_per_unit?: unknown;
291
290
  total_cost?: unknown;
291
+ entry_source?: RefillEntrySource | undefined;
292
+ source_reference_id?: string | undefined;
293
+ source_notes?: string | undefined;
294
+ refill_method?: RefillMethod | undefined;
295
+ refill_details?: string | undefined;
296
+ filled_by_person?: string | undefined;
292
297
  invoice_number?: string | undefined;
293
298
  payment_reference_number?: string | undefined;
294
299
  fuel_card_number?: string | undefined;
295
300
  payment_notes?: string | undefined;
296
- refill_method?: RefillMethod | undefined;
297
- refill_details?: string | undefined;
298
- payment_details?: string | undefined;
299
- filled_by_person?: string | undefined;
300
- entry_source?: RefillEntrySource | undefined;
301
- source_reference_id?: string | undefined;
302
- source_notes?: string | undefined;
303
301
  latitude?: unknown;
304
302
  longitude?: unknown;
305
303
  google_location?: string | undefined;
304
+ odometer_reading?: unknown;
305
+ tank_size?: unknown;
306
306
  refill_files?: {
307
307
  fleet_fuel_refill_id: string;
308
308
  status: Status;
@@ -364,9 +364,9 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
364
364
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
365
365
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
366
366
  }, "strip", z.ZodTypeAny, {
367
- entry_source: RefillEntrySource[];
368
367
  admin_verify_status: GPSFuelApproveStatus[];
369
368
  transporter_verify_status: GPSFuelApproveStatus[];
369
+ entry_source: RefillEntrySource[];
370
370
  status: Status[];
371
371
  time_zone_id: string;
372
372
  search: string;
@@ -405,9 +405,9 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
405
405
  date_format_id: string;
406
406
  from_date: string;
407
407
  to_date: string;
408
- entry_source?: RefillEntrySource[] | undefined;
409
408
  admin_verify_status?: GPSFuelApproveStatus[] | undefined;
410
409
  transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
410
+ entry_source?: RefillEntrySource[] | undefined;
411
411
  status?: Status[] | undefined;
412
412
  search?: string | undefined;
413
413
  paging?: PAGING | undefined;
@@ -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;
@@ -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>>;
@@ -181,14 +181,14 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
181
181
  file_metadata?: Record<string, any> | undefined;
182
182
  }>, "many">>>;
183
183
  }, "strip", z.ZodTypeAny, {
184
- odometer_reading: number;
185
184
  date_time: string;
185
+ admin_verify_status: GPSFuelApproveStatus;
186
+ transporter_verify_status: GPSFuelApproveStatus;
186
187
  entry_source: RefillEntrySource;
187
188
  source_reference_id: string;
188
189
  source_notes: string;
189
- admin_verify_status: GPSFuelApproveStatus;
190
- transporter_verify_status: GPSFuelApproveStatus;
191
190
  google_location: string;
191
+ odometer_reading: number;
192
192
  status: Status;
193
193
  organisation_id: string;
194
194
  user_id: string;
@@ -235,7 +235,6 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
235
235
  vehicle_fuel_unit_id: string;
236
236
  time_zone_id: string;
237
237
  fuel_removal_reason_id: string;
238
- odometer_reading?: unknown;
239
238
  cost_per_unit?: unknown;
240
239
  total_cost?: unknown;
241
240
  entry_source?: RefillEntrySource | undefined;
@@ -244,6 +243,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
244
243
  latitude?: unknown;
245
244
  longitude?: unknown;
246
245
  google_location?: string | undefined;
246
+ odometer_reading?: unknown;
247
247
  before_removal_quantity?: unknown;
248
248
  after_removal_quantity?: unknown;
249
249
  removal_quantity?: unknown;
@@ -309,9 +309,9 @@ 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
312
  admin_verify_status: GPSFuelApproveStatus[];
314
313
  transporter_verify_status: GPSFuelApproveStatus[];
314
+ entry_source: RefillEntrySource[];
315
315
  status: Status[];
316
316
  time_zone_id: string;
317
317
  search: string;
@@ -348,9 +348,9 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
348
348
  date_format_id: string;
349
349
  from_date: string;
350
350
  to_date: string;
351
- entry_source?: RefillEntrySource[] | undefined;
352
351
  admin_verify_status?: GPSFuelApproveStatus[] | undefined;
353
352
  transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
353
+ entry_source?: RefillEntrySource[] | undefined;
354
354
  status?: Status[] | undefined;
355
355
  search?: string | undefined;
356
356
  paging?: PAGING | undefined;
@@ -237,10 +237,10 @@ var FileType = /* @__PURE__ */ ((FileType2) => {
237
237
  FileType2["PDF"] = "PDF";
238
238
  return FileType2;
239
239
  })(FileType || {});
240
- var YesNo = /* @__PURE__ */ ((YesNo3) => {
241
- YesNo3["Yes"] = "Yes";
242
- YesNo3["No"] = "No";
243
- return YesNo3;
240
+ var YesNo = /* @__PURE__ */ ((YesNo2) => {
241
+ YesNo2["Yes"] = "Yes";
242
+ YesNo2["No"] = "No";
243
+ return YesNo2;
244
244
  })(YesNo || {});
245
245
  var GPSFuelApproveStatus = /* @__PURE__ */ ((GPSFuelApproveStatus2) => {
246
246
  GPSFuelApproveStatus2["Pending"] = "Pending";
@@ -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;
@@ -221,6 +221,8 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
221
221
  return YesNo2;
222
222
  })(YesNo || {});
223
223
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
224
+ NotificationType2["Whatsapp"] = "Whatsapp";
225
+ NotificationType2["Message"] = "Message";
224
226
  NotificationType2["Email"] = "Email";
225
227
  NotificationType2["Push"] = "Push";
226
228
  return NotificationType2;
@@ -193,6 +193,8 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
193
193
  return YesNo2;
194
194
  })(YesNo || {});
195
195
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
196
+ NotificationType2["Whatsapp"] = "Whatsapp";
197
+ NotificationType2["Message"] = "Message";
196
198
  NotificationType2["Email"] = "Email";
197
199
  NotificationType2["Push"] = "Push";
198
200
  return NotificationType2;
@@ -1,9 +1,9 @@
1
- import { YesNo, NotificationType, NotificationPreference, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../../core/BaseResponse.js';
1
+ import { YesNo, NotificationType, NotificationPreference, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
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-djKCoZTQ.js';
5
- import '../../../../zod_utils/zod_base_schema.js';
6
- import '../../../master/main/master_main_sim_provider_service.js';
4
+ import { U as UserOrganisation, a as User, M as MasterVehicle } from '../../../user_organisation_service-djKCoZTQ.js';
5
+ import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../master/main/master_main_sim_provider_service.js';
7
7
 
8
8
  interface UserNotificationPreferences extends Record<string, unknown> {
9
9
  notification_preference_id: string;
@@ -63,6 +63,10 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
63
63
  vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
64
64
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
65
65
  }, "strip", z.ZodTypeAny, {
66
+ status: Status;
67
+ organisation_id: string;
68
+ vehicle_ids: string[];
69
+ user_ids: string[];
66
70
  notification_name: string;
67
71
  notification_status: YesNo;
68
72
  notification_type: NotificationType;
@@ -71,23 +75,19 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
71
75
  cc_email_ids: string;
72
76
  notification_list: NotificationPreference[];
73
77
  is_all_vehicles: YesNo;
78
+ }, {
74
79
  status: Status;
75
80
  organisation_id: string;
76
- vehicle_ids: string[];
77
- user_ids: string[];
78
- }, {
79
81
  notification_name: string;
80
82
  notification_status: YesNo;
81
83
  notification_type: NotificationType;
82
84
  is_all_vehicles: YesNo;
83
- status: Status;
84
- organisation_id: string;
85
+ vehicle_ids?: string[] | undefined;
86
+ user_ids?: string[] | undefined;
85
87
  mobile_numbers?: string | undefined;
86
88
  email_ids?: string | undefined;
87
89
  cc_email_ids?: string | undefined;
88
90
  notification_list?: NotificationPreference[] | undefined;
89
- vehicle_ids?: string[] | undefined;
90
- user_ids?: string[] | undefined;
91
91
  }>;
92
92
  type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
93
93
  declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
@@ -127,9 +127,6 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
127
127
  notification_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>>;
128
128
  is_all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
129
129
  }, "strip", z.ZodTypeAny, {
130
- notification_status: YesNo[];
131
- notification_type: NotificationType[];
132
- is_all_vehicles: YesNo[];
133
130
  status: Status[];
134
131
  search: string;
135
132
  paging: PAGING;
@@ -152,13 +149,13 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
152
149
  date_format_id: string;
153
150
  time_zone_id: string;
154
151
  organisation_ids: string[];
152
+ notification_status: YesNo[];
153
+ notification_type: NotificationType[];
154
+ is_all_vehicles: YesNo[];
155
155
  notification_preference_ids: string[];
156
156
  }, {
157
157
  date_format_id: string;
158
158
  time_zone_id: string;
159
- notification_status?: YesNo[] | undefined;
160
- notification_type?: NotificationType[] | undefined;
161
- is_all_vehicles?: YesNo[] | undefined;
162
159
  status?: Status[] | undefined;
163
160
  search?: string | undefined;
164
161
  paging?: PAGING | undefined;
@@ -179,6 +176,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
179
176
  }[] | undefined;
180
177
  include_master_data?: YesNo | undefined;
181
178
  organisation_ids?: string[] | undefined;
179
+ notification_status?: YesNo[] | undefined;
180
+ notification_type?: NotificationType[] | undefined;
181
+ is_all_vehicles?: YesNo[] | undefined;
182
182
  notification_preference_ids?: string[] | undefined;
183
183
  }>;
184
184
  type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
@@ -22,7 +22,7 @@ var apiDelete = async (url) => {
22
22
  return response.data;
23
23
  };
24
24
 
25
- // src/services/gps/features/preferences/user_notification_preferences.service.ts
25
+ // src/services/gps/features/user_notification_preferences.service.ts
26
26
  import { z as z3 } from "zod";
27
27
 
28
28
  // src/zod_utils/zod_utils.ts
@@ -197,6 +197,8 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
197
197
  return YesNo2;
198
198
  })(YesNo || {});
199
199
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
200
+ NotificationType2["Whatsapp"] = "Whatsapp";
201
+ NotificationType2["Message"] = "Message";
200
202
  NotificationType2["Email"] = "Email";
201
203
  NotificationType2["Push"] = "Push";
202
204
  return NotificationType2;
@@ -258,7 +260,7 @@ var MongoBaseQuerySchema = z2.object({
258
260
  // ✅ Single-selection -> MasterMainTimeZone
259
261
  });
260
262
 
261
- // src/services/gps/features/preferences/user_notification_preferences.service.ts
263
+ // src/services/gps/features/user_notification_preferences.service.ts
262
264
  var URL = "gps/features/user_notification_preferences";
263
265
  var ENDPOINTS = {
264
266
  find: `${URL}/search`,
@@ -1,9 +1,9 @@
1
- import { YesNo, ReportType, ReportPreference, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../../core/Enums.js';
2
- import { FBR, SBR } from '../../../../core/BaseResponse.js';
1
+ import { YesNo, ReportType, ReportPreference, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
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-djKCoZTQ.js';
5
- import '../../../../zod_utils/zod_base_schema.js';
6
- import '../../../master/main/master_main_sim_provider_service.js';
4
+ import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-djKCoZTQ.js';
5
+ import '../../../zod_utils/zod_base_schema.js';
6
+ import '../../master/main/master_main_sim_provider_service.js';
7
7
 
8
8
  interface UserReportsPreferences extends Record<string, unknown> {
9
9
  report_preference_id: string;
@@ -48,26 +48,26 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
48
48
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
49
49
  vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- email_ids: string;
52
- cc_email_ids: string;
53
- is_all_vehicles: YesNo;
54
51
  status: Status;
55
52
  organisation_id: string;
56
53
  vehicle_ids: string[];
54
+ email_ids: string;
55
+ cc_email_ids: string;
56
+ is_all_vehicles: YesNo;
57
57
  report_name: string;
58
58
  report_status: YesNo;
59
59
  report_type: ReportType;
60
60
  report_list: ReportPreference[];
61
61
  }, {
62
- email_ids: string;
63
- is_all_vehicles: YesNo;
64
62
  status: Status;
65
63
  organisation_id: string;
64
+ email_ids: string;
65
+ is_all_vehicles: YesNo;
66
66
  report_name: string;
67
67
  report_status: YesNo;
68
68
  report_type: ReportType;
69
- cc_email_ids?: string | undefined;
70
69
  vehicle_ids?: string[] | undefined;
70
+ cc_email_ids?: string | undefined;
71
71
  report_list?: ReportPreference[] | undefined;
72
72
  }>;
73
73
  type UserReportPreferencesDTO = z.infer<typeof UserReportPreferencesSchema>;
@@ -108,7 +108,6 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
108
108
  report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
109
109
  is_all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
110
110
  }, "strip", z.ZodTypeAny, {
111
- is_all_vehicles: YesNo[];
112
111
  status: Status[];
113
112
  search: string;
114
113
  paging: PAGING;
@@ -131,13 +130,13 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
131
130
  date_format_id: string;
132
131
  time_zone_id: string;
133
132
  organisation_ids: string[];
133
+ is_all_vehicles: YesNo[];
134
134
  report_status: YesNo[];
135
135
  report_type: ReportType[];
136
136
  report_preference_ids: string[];
137
137
  }, {
138
138
  date_format_id: string;
139
139
  time_zone_id: string;
140
- is_all_vehicles?: YesNo[] | undefined;
141
140
  status?: Status[] | undefined;
142
141
  search?: string | undefined;
143
142
  paging?: PAGING | undefined;
@@ -158,6 +157,7 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
158
157
  }[] | undefined;
159
158
  include_master_data?: YesNo | undefined;
160
159
  organisation_ids?: string[] | undefined;
160
+ is_all_vehicles?: YesNo[] | undefined;
161
161
  report_status?: YesNo[] | undefined;
162
162
  report_type?: ReportType[] | undefined;
163
163
  report_preference_ids?: string[] | undefined;
@@ -22,7 +22,7 @@ var apiDelete = async (url) => {
22
22
  return response.data;
23
23
  };
24
24
 
25
- // src/services/gps/features/preferences/user_report_preferences.service.ts
25
+ // src/services/gps/features/user_report_preferences.service.ts
26
26
  import { z as z3 } from "zod";
27
27
 
28
28
  // src/zod_utils/zod_utils.ts
@@ -256,7 +256,7 @@ var MongoBaseQuerySchema = z2.object({
256
256
  // ✅ Single-selection -> MasterMainTimeZone
257
257
  });
258
258
 
259
- // src/services/gps/features/preferences/user_report_preferences.service.ts
259
+ // src/services/gps/features/user_report_preferences.service.ts
260
260
  var URL = "gps/features/user_report_preferences";
261
261
  var ENDPOINTS = {
262
262
  find: `${URL}/search`,
@@ -34,41 +34,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
34
34
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
35
35
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
+ db_group: string;
38
+ db_instance: string;
39
+ night_driving: NightDriving;
37
40
  search: string;
38
41
  paging: PAGING;
39
42
  page_count: number;
40
43
  page_index: number;
41
- login_from: LoginFrom;
42
44
  date_format_id: string;
43
45
  time_zone_id: string;
46
+ login_from: LoginFrom;
44
47
  organisation_id: string;
45
- db_instance: string;
46
- db_group: string;
47
48
  vehicle_ids: string[];
48
49
  from_date: string;
49
50
  to_date: string;
50
51
  time_slot: TimeSlot;
51
- night_driving: NightDriving;
52
52
  over_speed: OverSpeed;
53
53
  utilization_km: number;
54
54
  vehicle_summary: YesNo;
55
55
  driver_summary: YesNo;
56
56
  }, {
57
- login_from: LoginFrom;
57
+ db_group: string;
58
+ db_instance: string;
58
59
  date_format_id: string;
59
60
  time_zone_id: string;
61
+ login_from: LoginFrom;
60
62
  organisation_id: string;
61
- db_instance: string;
62
- db_group: string;
63
63
  from_date: string;
64
64
  to_date: string;
65
+ night_driving?: NightDriving | undefined;
65
66
  search?: string | undefined;
66
67
  paging?: PAGING | undefined;
67
68
  page_count?: unknown;
68
69
  page_index?: unknown;
69
70
  vehicle_ids?: string[] | undefined;
70
71
  time_slot?: TimeSlot | undefined;
71
- night_driving?: NightDriving | undefined;
72
72
  over_speed?: OverSpeed | undefined;
73
73
  utilization_km?: unknown;
74
74
  vehicle_summary?: YesNo | undefined;
@@ -97,40 +97,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
97
97
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
98
98
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
99
99
  }, "strip", z.ZodTypeAny, {
100
+ db_group: string;
101
+ db_instance: string;
102
+ night_driving: NightDriving;
100
103
  search: string;
101
104
  paging: PAGING;
102
105
  page_count: number;
103
106
  page_index: number;
104
- login_from: LoginFrom;
105
107
  date_format_id: string;
106
108
  time_zone_id: string;
109
+ login_from: LoginFrom;
107
110
  organisation_id: string;
108
- db_instance: string;
109
- db_group: string;
110
111
  from_date: string;
111
112
  to_date: string;
112
113
  time_slot: TimeSlot;
113
- night_driving: NightDriving;
114
114
  over_speed: OverSpeed;
115
115
  utilization_km: number;
116
116
  vehicle_summary: YesNo;
117
117
  driver_summary: YesNo;
118
118
  driver_ids: string[];
119
119
  }, {
120
- login_from: LoginFrom;
120
+ db_group: string;
121
+ db_instance: string;
121
122
  date_format_id: string;
122
123
  time_zone_id: string;
124
+ login_from: LoginFrom;
123
125
  organisation_id: string;
124
- db_instance: string;
125
- db_group: string;
126
126
  from_date: string;
127
127
  to_date: string;
128
+ night_driving?: NightDriving | undefined;
128
129
  search?: string | undefined;
129
130
  paging?: PAGING | undefined;
130
131
  page_count?: unknown;
131
132
  page_index?: unknown;
132
133
  time_slot?: TimeSlot | undefined;
133
- night_driving?: NightDriving | undefined;
134
134
  over_speed?: OverSpeed | undefined;
135
135
  utilization_km?: unknown;
136
136
  vehicle_summary?: YesNo | undefined;
@@ -157,16 +157,16 @@ declare const SimpleReportSchema: z.ZodObject<{
157
157
  interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
158
158
  boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
159
159
  }, "strip", z.ZodTypeAny, {
160
+ db_group: string;
161
+ db_instance: string;
160
162
  search: string;
161
163
  paging: PAGING;
162
164
  page_count: number;
163
165
  page_index: number;
164
- login_from: LoginFrom;
165
166
  date_format_id: string;
166
167
  time_zone_id: string;
168
+ login_from: LoginFrom;
167
169
  organisation_id: string;
168
- db_instance: string;
169
- db_group: string;
170
170
  vehicle_ids: string[];
171
171
  from_date: string;
172
172
  to_date: string;
@@ -174,12 +174,12 @@ declare const SimpleReportSchema: z.ZodObject<{
174
174
  interval_seconds: number;
175
175
  boolean_type: BooleanType;
176
176
  }, {
177
- login_from: LoginFrom;
177
+ db_group: string;
178
+ db_instance: string;
178
179
  date_format_id: string;
179
180
  time_zone_id: string;
181
+ login_from: LoginFrom;
180
182
  organisation_id: string;
181
- db_instance: string;
182
- db_group: string;
183
183
  from_date: string;
184
184
  to_date: string;
185
185
  gps_type: GPSType;
@@ -208,26 +208,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
208
208
  utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
209
209
  is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
210
210
  }, "strip", z.ZodTypeAny, {
211
+ db_group: string;
212
+ db_instance: string;
211
213
  search: string;
212
214
  paging: PAGING;
213
215
  page_count: number;
214
216
  page_index: number;
215
- login_from: LoginFrom;
216
217
  date_format_id: string;
217
218
  time_zone_id: string;
219
+ login_from: LoginFrom;
218
220
  organisation_id: string;
219
- db_instance: string;
220
- db_group: string;
221
221
  vehicle_ids: string[];
222
222
  utilization_km: number;
223
223
  is12am: Is12AM;
224
224
  }, {
225
- login_from: LoginFrom;
225
+ db_group: string;
226
+ db_instance: string;
226
227
  date_format_id: string;
227
228
  time_zone_id: string;
229
+ login_from: LoginFrom;
228
230
  organisation_id: string;
229
- db_instance: string;
230
- db_group: string;
231
231
  is12am: Is12AM;
232
232
  search?: string | undefined;
233
233
  paging?: PAGING | undefined;
@@ -254,27 +254,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
254
254
  to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
255
255
  interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
256
256
  }, "strip", z.ZodTypeAny, {
257
+ db_group: string;
258
+ db_instance: string;
257
259
  search: string;
258
260
  paging: PAGING;
259
261
  page_count: number;
260
262
  page_index: number;
261
- login_from: LoginFrom;
262
263
  date_format_id: string;
263
264
  time_zone_id: string;
265
+ login_from: LoginFrom;
264
266
  organisation_id: string;
265
- db_instance: string;
266
- db_group: string;
267
267
  interval_seconds: number;
268
268
  vehicle_id: string;
269
269
  from_date_time: string;
270
270
  to_date_time: string;
271
271
  }, {
272
- login_from: LoginFrom;
272
+ db_group: string;
273
+ db_instance: string;
273
274
  date_format_id: string;
274
275
  time_zone_id: string;
276
+ login_from: LoginFrom;
275
277
  organisation_id: string;
276
- db_instance: string;
277
- db_group: string;
278
278
  vehicle_id: string;
279
279
  from_date_time: string;
280
280
  to_date_time: string;
@@ -299,24 +299,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
299
299
  db_group: z.ZodEffects<z.ZodString, string, string>;
300
300
  vehicle_id: z.ZodEffects<z.ZodString, string, string>;
301
301
  }, "strip", z.ZodTypeAny, {
302
+ db_group: string;
303
+ db_instance: string;
302
304
  search: string;
303
305
  paging: PAGING;
304
306
  page_count: number;
305
307
  page_index: number;
306
- login_from: LoginFrom;
307
308
  date_format_id: string;
308
309
  time_zone_id: string;
310
+ login_from: LoginFrom;
309
311
  organisation_id: string;
310
- db_instance: string;
311
- db_group: string;
312
312
  vehicle_id: string;
313
313
  }, {
314
- login_from: LoginFrom;
314
+ db_group: string;
315
+ db_instance: string;
315
316
  date_format_id: string;
316
317
  time_zone_id: string;
318
+ login_from: LoginFrom;
317
319
  organisation_id: string;
318
- db_instance: string;
319
- db_group: string;
320
320
  vehicle_id: string;
321
321
  search?: string | undefined;
322
322
  paging?: PAGING | undefined;
@@ -346,16 +346,16 @@ declare const AlertReportSchema: z.ZodObject<{
346
346
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
347
347
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
348
348
  }, "strip", z.ZodTypeAny, {
349
+ db_group: string;
350
+ db_instance: string;
349
351
  search: string;
350
352
  paging: PAGING;
351
353
  page_count: number;
352
354
  page_index: number;
353
- login_from: LoginFrom;
354
355
  date_format_id: string;
355
356
  time_zone_id: string;
357
+ login_from: LoginFrom;
356
358
  organisation_id: string;
357
- db_instance: string;
358
- db_group: string;
359
359
  vehicle_ids: string[];
360
360
  from_date: string;
361
361
  to_date: string;
@@ -366,12 +366,12 @@ declare const AlertReportSchema: z.ZodObject<{
366
366
  alert_types: AlertType[];
367
367
  alert_sub_types: AlertSubType[];
368
368
  }, {
369
- login_from: LoginFrom;
369
+ db_group: string;
370
+ db_instance: string;
370
371
  date_format_id: string;
371
372
  time_zone_id: string;
373
+ login_from: LoginFrom;
372
374
  organisation_id: string;
373
- db_instance: string;
374
- db_group: string;
375
375
  from_date: string;
376
376
  to_date: string;
377
377
  search?: string | undefined;
@@ -31,7 +31,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
31
31
  telegram_chat_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
32
32
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- status: Status;
35
34
  mobile_number: string;
36
35
  email: string;
37
36
  facebook_link: string;
@@ -42,6 +41,7 @@ declare const ContactUsDetailSchema: z.ZodObject<{
42
41
  pinterest_link: string;
43
42
  whats_app_chat_url: string;
44
43
  telegram_chat_url: string;
44
+ status: Status;
45
45
  }, {
46
46
  status: Status;
47
47
  mobile_number?: string | undefined;
@@ -17,10 +17,10 @@ declare const FaqSchema: z.ZodObject<{
17
17
  faq_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
18
18
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
19
19
  }, "strip", z.ZodTypeAny, {
20
+ status: Status;
20
21
  faq_section: string;
21
22
  faq_header: string;
22
23
  faq_content: string;
23
- status: Status;
24
24
  }, {
25
25
  status: Status;
26
26
  faq_section?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "10.0.0",
3
+ "version": "12.0.0",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",