vms-nest-prisma-api-document 19.0.0 → 22.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.
@@ -140,7 +140,7 @@ declare enum NotificationType {
140
140
  Email = "Email",
141
141
  Push = "Push"
142
142
  }
143
- declare enum ReportPreference {
143
+ declare enum ReportList {
144
144
  AllVehiclesFullAnalysisReport = "AllVehiclesFullAnalysisReport",
145
145
  AllDriversPerformanceReport = "AllDriversPerformanceReport",
146
146
  MonthlyKilometersSummaryReport = "MonthlyKilometersSummaryReport",
@@ -626,4 +626,4 @@ declare enum PaymentMode {
626
626
  Other = "Other"
627
627
  }
628
628
 
629
- export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationPreference, NotificationType, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportPreference, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
629
+ export { AdminRole, AlertSubType, AlertType, BillingStatus, BooleanType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, ExpenseCategory, FileType, FleetSize, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoginFrom, MenuType, Module, NightDriving, NotificationPreference, NotificationType, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
@@ -168,22 +168,22 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
168
168
  NotificationType2["Push"] = "Push";
169
169
  return NotificationType2;
170
170
  })(NotificationType || {});
171
- var ReportPreference = /* @__PURE__ */ ((ReportPreference2) => {
172
- ReportPreference2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
173
- ReportPreference2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
174
- ReportPreference2["MonthlyKilometersSummaryReport"] = "MonthlyKilometersSummaryReport";
175
- ReportPreference2["VehicleStoppageReport"] = "VehicleStoppageReport";
176
- ReportPreference2["GeofenceReport"] = "GeofenceReport";
177
- ReportPreference2["GeofenceToGeofenceReport"] = "GeofenceToGeofenceReport";
178
- ReportPreference2["VehicleIgnitionActivityLogReport"] = "VehicleIgnitionActivityLogReport";
179
- ReportPreference2["AllVehiclesIgnitionTimeSummaryReport"] = "AllVehiclesIgnitionTimeSummaryReport";
180
- ReportPreference2["AllVehiclesOverSpeedViolationReport"] = "AllVehiclesOverSpeedViolationReport";
181
- ReportPreference2["MonthlyOverSpeedSummaryReport"] = "MonthlyOverSpeedSummaryReport";
182
- ReportPreference2["FuelConsumptionReport"] = "FuelConsumptionReport";
183
- ReportPreference2["FuelRefillReport"] = "FuelRefillReport";
184
- ReportPreference2["FuelRemovalReport"] = "FuelRemovalReport";
185
- return ReportPreference2;
186
- })(ReportPreference || {});
171
+ var ReportList = /* @__PURE__ */ ((ReportList2) => {
172
+ ReportList2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
173
+ ReportList2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
174
+ ReportList2["MonthlyKilometersSummaryReport"] = "MonthlyKilometersSummaryReport";
175
+ ReportList2["VehicleStoppageReport"] = "VehicleStoppageReport";
176
+ ReportList2["GeofenceReport"] = "GeofenceReport";
177
+ ReportList2["GeofenceToGeofenceReport"] = "GeofenceToGeofenceReport";
178
+ ReportList2["VehicleIgnitionActivityLogReport"] = "VehicleIgnitionActivityLogReport";
179
+ ReportList2["AllVehiclesIgnitionTimeSummaryReport"] = "AllVehiclesIgnitionTimeSummaryReport";
180
+ ReportList2["AllVehiclesOverSpeedViolationReport"] = "AllVehiclesOverSpeedViolationReport";
181
+ ReportList2["MonthlyOverSpeedSummaryReport"] = "MonthlyOverSpeedSummaryReport";
182
+ ReportList2["FuelConsumptionReport"] = "FuelConsumptionReport";
183
+ ReportList2["FuelRefillReport"] = "FuelRefillReport";
184
+ ReportList2["FuelRemovalReport"] = "FuelRemovalReport";
185
+ return ReportList2;
186
+ })(ReportList || {});
187
187
  var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
188
188
  NotificationPreference2["VehicleMoving"] = "VehicleMoving";
189
189
  NotificationPreference2["VehicleStopped"] = "VehicleStopped";
@@ -757,7 +757,7 @@ export {
757
757
  ReminderSource,
758
758
  ReminderStatus,
759
759
  ReminderTriggerType,
760
- ReportPreference,
760
+ ReportList,
761
761
  ReportType,
762
762
  RequestType,
763
763
  RetreadingMethod,
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- country_id: string;
26
25
  login_from: LoginFrom;
26
+ country_id: string;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- country_id: string;
33
32
  login_from: LoginFrom;
33
+ country_id: string;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
- login_from: LoginFrom;
52
51
  search: string;
53
52
  paging: PAGING;
54
53
  page_count: number;
55
54
  page_index: number;
55
+ login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- login_from: LoginFrom;
47
46
  search: string;
48
47
  paging: PAGING;
49
48
  page_count: number;
50
49
  page_index: number;
50
+ login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -1,5 +1,5 @@
1
1
  import { GPSFuelApproveStatus, RefillEntrySource, Status, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
2
- import { FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
2
+ import { BaseCommionFile, FBR, SBR, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
5
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-D2pCLN2b.js';
@@ -65,26 +65,13 @@ interface FleetFuelRemoval extends Record<string, unknown> {
65
65
  FleetFuelRemovalFile?: number;
66
66
  };
67
67
  }
68
- interface FleetFuelRemovalFile extends Record<string, unknown> {
68
+ interface FleetFuelRemovalFile extends BaseCommionFile {
69
69
  fleet_fuel_removal_file_id: string;
70
- file_type: FileType;
71
- file_url?: string;
72
- file_key?: string;
73
- file_name?: string;
74
- file_description?: string;
75
- file_size?: number;
76
- file_metadata?: Record<string, unknown>;
77
- status: Status;
78
- added_date_time: string;
79
- modified_date_time: string;
80
- organisation_id: string;
81
- UserOrganisation?: UserOrganisation;
82
70
  fleet_fuel_removal_id: string;
83
- FleetFuelRemoval?: FleetFuelRemoval;
71
+ organisation_id: string;
84
72
  }
85
73
  declare const FleetFuelRemovalFileSchema: z.ZodObject<{
86
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
87
- fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
74
+ usage_type: z.ZodEffects<z.ZodString, string, string>;
88
75
  file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
89
76
  file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
90
77
  file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -93,9 +80,13 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
93
80
  file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
94
81
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
95
82
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
83
+ } & {
84
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
85
+ fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
96
86
  }, "strip", z.ZodTypeAny, {
97
87
  status: Status;
98
88
  organisation_id: string;
89
+ usage_type: string;
99
90
  file_type: FileType;
100
91
  file_url: string;
101
92
  file_key: string;
@@ -107,6 +98,7 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
107
98
  }, {
108
99
  status: Status;
109
100
  organisation_id: string;
101
+ usage_type: string;
110
102
  file_type: FileType;
111
103
  fleet_fuel_removal_id: string;
112
104
  file_url?: string | undefined;
@@ -146,9 +138,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
146
138
  google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
147
139
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
148
140
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
149
- removal_files: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
150
- organisation_id: z.ZodEffects<z.ZodString, string, string>;
151
- fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
141
+ FleetFuelRemovalFile: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
142
+ usage_type: z.ZodEffects<z.ZodString, string, string>;
152
143
  file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
153
144
  file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
154
145
  file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -157,9 +148,13 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
157
148
  file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
158
149
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
159
150
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
151
+ } & {
152
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
153
+ fleet_fuel_removal_id: z.ZodEffects<z.ZodString, string, string>;
160
154
  }, z.UnknownKeysParam, z.ZodTypeAny, {
161
155
  status: Status;
162
156
  organisation_id: string;
157
+ usage_type: string;
163
158
  file_type: FileType;
164
159
  file_url: string;
165
160
  file_key: string;
@@ -171,6 +166,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
171
166
  }, {
172
167
  status: Status;
173
168
  organisation_id: string;
169
+ usage_type: string;
174
170
  file_type: FileType;
175
171
  fleet_fuel_removal_id: string;
176
172
  file_url?: string | undefined;
@@ -200,9 +196,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
200
196
  source_notes: string;
201
197
  fuel_removal_reason_id: string;
202
198
  removal_details: string;
203
- removal_files: {
199
+ FleetFuelRemovalFile: {
204
200
  status: Status;
205
201
  organisation_id: string;
202
+ usage_type: string;
206
203
  file_type: FileType;
207
204
  file_url: string;
208
205
  file_key: string;
@@ -250,9 +247,10 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
250
247
  verified_removal_quantity?: unknown;
251
248
  diff_removal_quantity?: unknown;
252
249
  removal_details?: string | undefined;
253
- removal_files?: {
250
+ FleetFuelRemovalFile?: {
254
251
  status: Status;
255
252
  organisation_id: string;
253
+ usage_type: string;
256
254
  file_type: FileType;
257
255
  fleet_fuel_removal_id: string;
258
256
  file_url?: string | undefined;
@@ -230,12 +230,12 @@ var Status = /* @__PURE__ */ ((Status2) => {
230
230
  Status2["Inactive"] = "Inactive";
231
231
  return Status2;
232
232
  })(Status || {});
233
- var FileType = /* @__PURE__ */ ((FileType2) => {
234
- FileType2["NoFile"] = "NoFile";
235
- FileType2["Image"] = "Image";
236
- FileType2["Video"] = "Video";
237
- FileType2["PDF"] = "PDF";
238
- return FileType2;
233
+ var FileType = /* @__PURE__ */ ((FileType3) => {
234
+ FileType3["NoFile"] = "NoFile";
235
+ FileType3["Image"] = "Image";
236
+ FileType3["Video"] = "Video";
237
+ FileType3["PDF"] = "PDF";
238
+ return FileType3;
239
239
  })(FileType || {});
240
240
  var YesNo = /* @__PURE__ */ ((YesNo2) => {
241
241
  YesNo2["Yes"] = "Yes";
@@ -325,19 +325,11 @@ var ENDPOINTS = {
325
325
  create_file: `${URL}/create_file`,
326
326
  remove_file: (id) => `${URL}/remove_file/${id}`
327
327
  };
328
- var FleetFuelRemovalFileSchema = z3.object({
329
- organisation_id: single_select_mandatory("UserOrganisation"),
328
+ var FleetFuelRemovalFileSchema = BaseFileSchema.extend({
329
+ organisation_id: single_select_optional("UserOrganisation"),
330
330
  // ✅ Single-Selection -> UserOrganisation
331
- fleet_fuel_removal_id: single_select_mandatory("FleetFuelRemoval"),
331
+ fleet_fuel_removal_id: single_select_optional("FleetFuelRemoval")
332
332
  // ✅ Single-Selection -> FleetFuelRemoval
333
- file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
334
- file_url: stringOptional("File URL", 0, 300),
335
- file_key: stringOptional("File Key", 0, 300),
336
- file_name: stringOptional("File Name", 0, 300),
337
- file_description: stringOptional("File Description", 0, 2e3),
338
- file_size: numberOptional("File Size"),
339
- file_metadata: dynamicJsonSchema("File Metadata", {}),
340
- status: enumMandatory("Status", Status, "Active" /* Active */)
341
333
  });
342
334
  var FleetFuelRemovalSchema = z3.object({
343
335
  organisation_id: single_select_mandatory("UserOrganisation"),
@@ -396,8 +388,8 @@ var FleetFuelRemovalSchema = z3.object({
396
388
  google_location: stringOptional("Google Location", 0, 500),
397
389
  status: enumMandatory("Status", Status, "Active" /* Active */),
398
390
  time_zone_id: single_select_mandatory("MasterMainTimeZone"),
399
- removal_files: nestedArrayOfObjectsOptional(
400
- "Removal Files",
391
+ FleetFuelRemovalFile: nestedArrayOfObjectsOptional(
392
+ "FleetFuelRemovalFile",
401
393
  FleetFuelRemovalFileSchema,
402
394
  []
403
395
  )
@@ -470,17 +462,19 @@ var toFleetFuelRemovalPayload = (row) => ({
470
462
  time_zone_id: "",
471
463
  // provide from context
472
464
  // map child files -> DTO shape
473
- removal_files: row.FleetFuelRemovalFile?.map((f) => ({
474
- organisation_id: f.organisation_id ?? "",
475
- fleet_fuel_removal_id: f.fleet_fuel_removal_id ?? "",
476
- file_type: f.file_type,
477
- file_url: f.file_url || "",
478
- file_key: f.file_key || "",
479
- file_name: f.file_name || "",
480
- file_description: f.file_description || "",
481
- file_size: f.file_size ?? 0,
482
- file_metadata: f.file_metadata ?? {},
483
- status: f.status
465
+ FleetFuelRemovalFile: row.FleetFuelRemovalFile?.map((file) => ({
466
+ organisation_id: file.organisation_id ?? "",
467
+ fleet_fuel_removal_id: file.fleet_fuel_removal_id ?? "",
468
+ fleet_fuel_removal_file_id: file.fleet_fuel_removal_file_id ?? "",
469
+ usage_type: file.usage_type,
470
+ file_type: file.file_type,
471
+ file_url: file.file_url || "",
472
+ file_key: file.file_key || "",
473
+ file_name: file.file_name || "",
474
+ file_description: file.file_description || "",
475
+ file_size: file.file_size ?? 0,
476
+ file_metadata: file.file_metadata ?? {},
477
+ status: file.status
484
478
  })) ?? []
485
479
  });
486
480
  var newFleetFuelRemovalPayload = () => ({
@@ -522,7 +516,7 @@ var newFleetFuelRemovalPayload = () => ({
522
516
  // Required
523
517
  time_zone_id: "",
524
518
  // Children
525
- removal_files: []
519
+ FleetFuelRemovalFile: []
526
520
  });
527
521
  var findFleetFuelRemoval = async (data) => {
528
522
  return apiPost(ENDPOINTS.find, data);
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
36
36
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
37
37
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
38
38
  }, "strip", z.ZodTypeAny, {
39
+ geofence_status_type: GeofenceStatusType;
40
+ geofence_time: string;
39
41
  status: Status;
40
42
  organisation_id: string;
41
43
  vehicle_id: string;
42
44
  driver_id: string;
43
45
  gps_geofence_id: string;
44
46
  time_zone_id: string;
47
+ }, {
45
48
  geofence_status_type: GeofenceStatusType;
46
49
  geofence_time: string;
47
- }, {
48
50
  status: Status;
49
51
  organisation_id: string;
50
52
  vehicle_id: string;
51
53
  driver_id: string;
52
54
  gps_geofence_id: string;
53
55
  time_zone_id: string;
54
- geofence_status_type: GeofenceStatusType;
55
- geofence_time: string;
56
56
  }>;
57
57
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
58
58
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -94,6 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
94
94
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
95
95
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
96
96
  }, "strip", z.ZodTypeAny, {
97
+ geofence_status_type: GeofenceStatusType[];
97
98
  status: Status[];
98
99
  time_zone_id: string;
99
100
  search: string;
@@ -121,12 +122,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
121
122
  gps_geofence_ids: string[];
122
123
  from_date: string;
123
124
  to_date: string;
124
- geofence_status_type: GeofenceStatusType[];
125
125
  }, {
126
126
  time_zone_id: string;
127
127
  date_format_id: string;
128
128
  from_date: string;
129
129
  to_date: string;
130
+ geofence_status_type?: GeofenceStatusType[] | undefined;
130
131
  status?: Status[] | undefined;
131
132
  search?: string | undefined;
132
133
  paging?: PAGING | undefined;
@@ -150,7 +151,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
150
151
  vehicle_ids?: string[] | undefined;
151
152
  driver_ids?: string[] | undefined;
152
153
  gps_geofence_ids?: string[] | undefined;
153
- geofence_status_type?: GeofenceStatusType[] | undefined;
154
154
  }>;
155
155
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
156
156
  declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
46
46
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
47
47
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- geofence_enter_date_time: string;
50
- geofence_exit_date_time: string;
51
- duration_seconds: number;
52
49
  status: Status;
53
50
  organisation_id: string;
54
51
  vehicle_id: string;
55
52
  driver_id: string;
56
53
  gps_geofence_id: string;
54
+ time_zone_id: string;
55
+ geofence_enter_date_time: string;
56
+ geofence_exit_date_time: string;
57
+ duration_seconds: number;
57
58
  enter_gps_geofence_transaction_id: string;
58
59
  exit_gps_geofence_transaction_id: string;
59
- time_zone_id: string;
60
60
  }, {
61
- geofence_enter_date_time: string;
62
61
  status: Status;
63
62
  organisation_id: string;
64
63
  vehicle_id: string;
65
64
  driver_id: string;
66
65
  gps_geofence_id: string;
66
+ time_zone_id: string;
67
+ geofence_enter_date_time: string;
67
68
  enter_gps_geofence_transaction_id: string;
68
69
  exit_gps_geofence_transaction_id: string;
69
- time_zone_id: string;
70
70
  geofence_exit_date_time?: string | undefined;
71
71
  duration_seconds?: unknown;
72
72
  }>;
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
55
55
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
56
56
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- duration_seconds: number;
59
58
  status: Status;
60
59
  organisation_id: string;
61
60
  vehicle_id: string;
62
61
  driver_id: string;
63
62
  time_zone_id: string;
63
+ duration_seconds: number;
64
64
  from_geofence_exit_date_time: string;
65
65
  to_geofence_enter_date_time: string;
66
66
  travel_duration_seconds: number;
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
42
42
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
43
43
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
44
44
  }, "strip", z.ZodTypeAny, {
45
+ gps_live_track_share_link_id: string;
45
46
  status: Status;
46
47
  organisation_id: string;
47
48
  type: NotificationType;
48
49
  to_recipients: string;
49
- gps_live_track_share_link_id: string;
50
50
  }, {
51
+ gps_live_track_share_link_id: string;
51
52
  status: Status;
52
53
  organisation_id: string;
53
54
  type: NotificationType;
54
55
  to_recipients: string;
55
- gps_live_track_share_link_id: string;
56
56
  }>;
57
57
  type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
58
58
  declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
73
73
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
74
74
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
75
75
  }, z.UnknownKeysParam, z.ZodTypeAny, {
76
+ gps_live_track_share_link_id: string;
76
77
  status: Status;
77
78
  organisation_id: string;
78
79
  type: NotificationType;
79
80
  to_recipients: string;
80
- gps_live_track_share_link_id: string;
81
81
  }, {
82
+ gps_live_track_share_link_id: string;
82
83
  status: Status;
83
84
  organisation_id: string;
84
85
  type: NotificationType;
85
86
  to_recipients: string;
86
- gps_live_track_share_link_id: string;
87
87
  }>, "many">>>;
88
88
  }, "strip", z.ZodTypeAny, {
89
+ link_type: LinkType;
90
+ location: string;
89
91
  link_status: LinkStatus;
90
92
  status: Status;
91
93
  organisation_id: string;
92
94
  vehicle_id: string;
93
95
  trip_id: string;
96
+ expire_milliseconds: number;
94
97
  notifications: {
98
+ gps_live_track_share_link_id: string;
95
99
  status: Status;
96
100
  organisation_id: string;
97
101
  type: NotificationType;
98
102
  to_recipients: string;
99
- gps_live_track_share_link_id: string;
100
103
  }[];
101
- link_type: LinkType;
102
- location: string;
103
- expire_milliseconds: number;
104
104
  latitude?: number | undefined;
105
105
  longitude?: number | undefined;
106
106
  }, {
107
+ link_type: LinkType;
107
108
  link_status: LinkStatus;
108
109
  status: Status;
109
110
  organisation_id: string;
110
111
  vehicle_id: string;
111
112
  trip_id: string;
112
- link_type: LinkType;
113
+ latitude?: unknown;
114
+ longitude?: unknown;
115
+ location?: string | undefined;
116
+ expire_milliseconds?: unknown;
113
117
  notifications?: {
118
+ gps_live_track_share_link_id: string;
114
119
  status: Status;
115
120
  organisation_id: string;
116
121
  type: NotificationType;
117
122
  to_recipients: string;
118
- gps_live_track_share_link_id: string;
119
123
  }[] | undefined;
120
- latitude?: unknown;
121
- longitude?: unknown;
122
- location?: string | undefined;
123
- expire_milliseconds?: unknown;
124
124
  }>;
125
125
  type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
126
126
  declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
@@ -176,6 +176,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
176
176
  link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
177
177
  link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
+ link_type: LinkType[];
179
180
  link_status: LinkStatus[];
180
181
  status: Status[];
181
182
  search: string;
@@ -201,10 +202,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
201
202
  organisation_ids: string[];
202
203
  vehicle_ids: string[];
203
204
  trip_ids: string[];
204
- link_type: LinkType[];
205
205
  }, {
206
206
  date_format_id: string;
207
207
  time_zone_id: string;
208
+ link_type?: LinkType[] | undefined;
208
209
  link_status?: LinkStatus[] | undefined;
209
210
  status?: Status[] | undefined;
210
211
  search?: string | undefined;
@@ -228,7 +229,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
228
229
  organisation_ids?: string[] | undefined;
229
230
  vehicle_ids?: string[] | undefined;
230
231
  trip_ids?: string[] | undefined;
231
- link_type?: LinkType[] | undefined;
232
232
  }>;
233
233
  type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
234
234
  declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
40
40
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- gps_track_history_share_link_id: string;
44
43
  status: Status;
45
44
  organisation_id: string;
46
45
  type: NotificationType;
47
46
  to_recipients: string;
48
- }, {
49
47
  gps_track_history_share_link_id: string;
48
+ }, {
50
49
  status: Status;
51
50
  organisation_id: string;
52
51
  type: NotificationType;
53
52
  to_recipients: string;
53
+ gps_track_history_share_link_id: string;
54
54
  }>;
55
55
  type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
56
56
  declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
68
68
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
69
69
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
70
70
  }, z.UnknownKeysParam, z.ZodTypeAny, {
71
- gps_track_history_share_link_id: string;
72
71
  status: Status;
73
72
  organisation_id: string;
74
73
  type: NotificationType;
75
74
  to_recipients: string;
76
- }, {
77
75
  gps_track_history_share_link_id: string;
76
+ }, {
78
77
  status: Status;
79
78
  organisation_id: string;
80
79
  type: NotificationType;
81
80
  to_recipients: string;
81
+ gps_track_history_share_link_id: string;
82
82
  }>, "many">>>;
83
83
  }, "strip", z.ZodTypeAny, {
84
- from_date_time: string;
85
- to_date_time: string;
86
84
  link_status: TrackHistoryLinkStatus;
87
85
  status: Status;
88
86
  organisation_id: string;
89
87
  vehicle_id: string;
90
88
  trip_id: string;
91
89
  notifications: {
92
- gps_track_history_share_link_id: string;
93
90
  status: Status;
94
91
  organisation_id: string;
95
92
  type: NotificationType;
96
93
  to_recipients: string;
94
+ gps_track_history_share_link_id: string;
97
95
  }[];
98
- }, {
99
96
  from_date_time: string;
100
97
  to_date_time: string;
98
+ }, {
101
99
  link_status: TrackHistoryLinkStatus;
102
100
  status: Status;
103
101
  organisation_id: string;
104
102
  vehicle_id: string;
105
103
  trip_id: string;
104
+ from_date_time: string;
105
+ to_date_time: string;
106
106
  notifications?: {
107
- gps_track_history_share_link_id: string;
108
107
  status: Status;
109
108
  organisation_id: string;
110
109
  type: NotificationType;
111
110
  to_recipients: string;
111
+ gps_track_history_share_link_id: string;
112
112
  }[] | undefined;
113
113
  }>;
114
114
  type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
@@ -1,4 +1,4 @@
1
- import { OnOff, ReportType, ReportPreference, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
1
+ import { OnOff, ReportType, ReportList, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
  import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-D2pCLN2b.js';
@@ -10,7 +10,7 @@ interface UserReportsPreferences extends Record<string, unknown> {
10
10
  report_name: string;
11
11
  report_status: OnOff;
12
12
  report_types: ReportType[];
13
- report_list: ReportPreference[];
13
+ report_list: ReportList[];
14
14
  email_ids: string;
15
15
  cc_email_ids?: string;
16
16
  all_vehicles: YesNo;
@@ -20,8 +20,10 @@ interface UserReportsPreferences extends Record<string, unknown> {
20
20
  organisation_id: string;
21
21
  UserOrganisation?: UserOrganisation;
22
22
  UserReportsPreferencesVehicleLink: UserReportsPreferencesVehicleLink[];
23
+ UserReportsAutomationMail: UserReportsAutomationMail[];
23
24
  _count?: {
24
25
  UserReportsPreferencesVehicleLink: number;
26
+ UserReportsAutomationMail: number;
25
27
  };
26
28
  }
27
29
  interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
@@ -36,12 +38,136 @@ interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
36
38
  report_preference_id: string;
37
39
  UserReportsPreferences?: UserReportsPreferences;
38
40
  }
41
+ interface UserReportsAutomationMail extends Record<string, unknown> {
42
+ automation_mail_id: string;
43
+ report_name: string;
44
+ report_type: ReportType;
45
+ from_date: string;
46
+ to_date: string;
47
+ date: string;
48
+ all_vehicles: YesNo;
49
+ status: Status;
50
+ added_date_time: string;
51
+ modified_date_time: string;
52
+ organisation_id: string;
53
+ UserOrganisation?: UserOrganisation;
54
+ report_preference_id: string;
55
+ UserReportsPreferences?: UserReportsPreferences;
56
+ UserReportsAutomationVehicleLink: UserReportsAutomationVehicleLink[];
57
+ _count?: {
58
+ UserReportsAutomationVehicleLink: number;
59
+ };
60
+ }
61
+ interface UserReportsAutomationVehicleLink extends Record<string, unknown> {
62
+ automation_vehicle_id: string;
63
+ status: Status;
64
+ added_date_time: string;
65
+ modified_date_time: string;
66
+ vehicle_id: string;
67
+ MasterVehicle?: MasterVehicle;
68
+ vehicle_number?: string;
69
+ vehicle_type?: string;
70
+ automation_mail_id: string;
71
+ UserReportsAutomationMail?: UserReportsAutomationMail;
72
+ }
73
+ declare const UserReportsAutomationMailQuerySchema: z.ZodObject<{
74
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
75
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
76
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
77
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
78
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
79
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
80
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
81
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
82
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
83
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
84
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
85
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
86
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
87
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
88
+ name: z.ZodEffects<z.ZodString, string, string>;
89
+ field: z.ZodEffects<z.ZodString, string, string>;
90
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
91
+ }, "strip", z.ZodTypeAny, {
92
+ name: string;
93
+ field: string;
94
+ direction: OrderBy;
95
+ }, {
96
+ name: string;
97
+ field: string;
98
+ direction: OrderBy;
99
+ }>, "many">>>;
100
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
101
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
102
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
103
+ } & {
104
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
105
+ report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
106
+ automation_mail_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
107
+ all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
108
+ report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
109
+ }, "strip", z.ZodTypeAny, {
110
+ status: Status[];
111
+ search: string;
112
+ paging: PAGING;
113
+ page_count: number;
114
+ page_index: number;
115
+ load_parents: LoadParents;
116
+ load_parents_list: string[];
117
+ load_child: LoadChild;
118
+ load_child_list: string[];
119
+ load_child_count: LoadChildCount;
120
+ load_child_count_list: string[];
121
+ include_details: Record<string, any>;
122
+ where_relations: Record<string, any>;
123
+ order_by: {
124
+ name: string;
125
+ field: string;
126
+ direction: OrderBy;
127
+ }[];
128
+ include_master_data: YesNo;
129
+ date_format_id: string;
130
+ time_zone_id: string;
131
+ organisation_ids: string[];
132
+ all_vehicles: YesNo[];
133
+ report_type: ReportType[];
134
+ report_preference_ids: string[];
135
+ automation_mail_ids: string[];
136
+ }, {
137
+ date_format_id: string;
138
+ time_zone_id: string;
139
+ status?: Status[] | undefined;
140
+ search?: string | undefined;
141
+ paging?: PAGING | undefined;
142
+ page_count?: unknown;
143
+ page_index?: unknown;
144
+ load_parents?: LoadParents | undefined;
145
+ load_parents_list?: string[] | undefined;
146
+ load_child?: LoadChild | undefined;
147
+ load_child_list?: string[] | undefined;
148
+ load_child_count?: LoadChildCount | undefined;
149
+ load_child_count_list?: string[] | undefined;
150
+ include_details?: Record<string, any> | undefined;
151
+ where_relations?: Record<string, any> | undefined;
152
+ order_by?: {
153
+ name: string;
154
+ field: string;
155
+ direction: OrderBy;
156
+ }[] | undefined;
157
+ include_master_data?: YesNo | undefined;
158
+ organisation_ids?: string[] | undefined;
159
+ all_vehicles?: YesNo[] | undefined;
160
+ report_type?: ReportType[] | undefined;
161
+ report_preference_ids?: string[] | undefined;
162
+ automation_mail_ids?: string[] | undefined;
163
+ }>;
164
+ type UserReportsAutomationMailQueryDTO = z.infer<typeof UserReportsAutomationMailQuerySchema>;
39
165
  declare const UserReportPreferencesSchema: z.ZodObject<{
40
166
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
41
167
  report_name: z.ZodEffects<z.ZodString, string, string>;
42
168
  report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
43
169
  report_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>;
44
- report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportPreference>, "many">>;
170
+ report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportList>, "many">>;
45
171
  email_ids: z.ZodEffects<z.ZodString, string, string>;
46
172
  cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
47
173
  all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
@@ -57,7 +183,7 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
57
183
  report_name: string;
58
184
  report_status: OnOff;
59
185
  report_types: ReportType[];
60
- report_list: ReportPreference[];
186
+ report_list: ReportList[];
61
187
  }, {
62
188
  status: Status;
63
189
  organisation_id: string;
@@ -68,7 +194,7 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
68
194
  vehicle_ids?: string[] | undefined;
69
195
  cc_email_ids?: string | undefined;
70
196
  report_types?: ReportType[] | undefined;
71
- report_list?: ReportPreference[] | undefined;
197
+ report_list?: ReportList[] | undefined;
72
198
  }>;
73
199
  type UserReportPreferencesDTO = z.infer<typeof UserReportPreferencesSchema>;
74
200
  declare const UserReportPreferencesQuerySchema: z.ZodObject<{
@@ -166,5 +292,6 @@ declare const findUserReportsPreferences: (data: UserReportPreferencesQueryDTO)
166
292
  declare const createUserReportsPreferences: (data: UserReportPreferencesDTO) => Promise<SBR>;
167
293
  declare const updateUserReportsPreferences: (id: string, data: UserReportPreferencesDTO) => Promise<SBR>;
168
294
  declare const deleteUserReportsPreferences: (id: string) => Promise<SBR>;
295
+ declare const findUserReportsAutomationMail: (data: UserReportsAutomationMailQueryDTO) => Promise<FBR<UserReportsAutomationMail[]>>;
169
296
 
170
- export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
297
+ export { type UserReportPreferencesDTO, type UserReportPreferencesQueryDTO, UserReportPreferencesQuerySchema, UserReportPreferencesSchema, type UserReportsAutomationMail, type UserReportsAutomationMailQueryDTO, UserReportsAutomationMailQuerySchema, type UserReportsAutomationVehicleLink, type UserReportsPreferences, type UserReportsPreferencesVehicleLink, createUserReportsPreferences, deleteUserReportsPreferences, findUserReportsAutomationMail, findUserReportsPreferences, newUserReportsPreferencesPayload, toUserReportsPreferencesPayload, updateUserReportsPreferences };
@@ -201,22 +201,22 @@ var OnOff = /* @__PURE__ */ ((OnOff2) => {
201
201
  OnOff2["Off"] = "Off";
202
202
  return OnOff2;
203
203
  })(OnOff || {});
204
- var ReportPreference = /* @__PURE__ */ ((ReportPreference2) => {
205
- ReportPreference2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
206
- ReportPreference2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
207
- ReportPreference2["MonthlyKilometersSummaryReport"] = "MonthlyKilometersSummaryReport";
208
- ReportPreference2["VehicleStoppageReport"] = "VehicleStoppageReport";
209
- ReportPreference2["GeofenceReport"] = "GeofenceReport";
210
- ReportPreference2["GeofenceToGeofenceReport"] = "GeofenceToGeofenceReport";
211
- ReportPreference2["VehicleIgnitionActivityLogReport"] = "VehicleIgnitionActivityLogReport";
212
- ReportPreference2["AllVehiclesIgnitionTimeSummaryReport"] = "AllVehiclesIgnitionTimeSummaryReport";
213
- ReportPreference2["AllVehiclesOverSpeedViolationReport"] = "AllVehiclesOverSpeedViolationReport";
214
- ReportPreference2["MonthlyOverSpeedSummaryReport"] = "MonthlyOverSpeedSummaryReport";
215
- ReportPreference2["FuelConsumptionReport"] = "FuelConsumptionReport";
216
- ReportPreference2["FuelRefillReport"] = "FuelRefillReport";
217
- ReportPreference2["FuelRemovalReport"] = "FuelRemovalReport";
218
- return ReportPreference2;
219
- })(ReportPreference || {});
204
+ var ReportList = /* @__PURE__ */ ((ReportList2) => {
205
+ ReportList2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
206
+ ReportList2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
207
+ ReportList2["MonthlyKilometersSummaryReport"] = "MonthlyKilometersSummaryReport";
208
+ ReportList2["VehicleStoppageReport"] = "VehicleStoppageReport";
209
+ ReportList2["GeofenceReport"] = "GeofenceReport";
210
+ ReportList2["GeofenceToGeofenceReport"] = "GeofenceToGeofenceReport";
211
+ ReportList2["VehicleIgnitionActivityLogReport"] = "VehicleIgnitionActivityLogReport";
212
+ ReportList2["AllVehiclesIgnitionTimeSummaryReport"] = "AllVehiclesIgnitionTimeSummaryReport";
213
+ ReportList2["AllVehiclesOverSpeedViolationReport"] = "AllVehiclesOverSpeedViolationReport";
214
+ ReportList2["MonthlyOverSpeedSummaryReport"] = "MonthlyOverSpeedSummaryReport";
215
+ ReportList2["FuelConsumptionReport"] = "FuelConsumptionReport";
216
+ ReportList2["FuelRefillReport"] = "FuelRefillReport";
217
+ ReportList2["FuelRemovalReport"] = "FuelRemovalReport";
218
+ return ReportList2;
219
+ })(ReportList || {});
220
220
  var ReportType = /* @__PURE__ */ ((ReportType2) => {
221
221
  ReportType2["Daily"] = "Daily";
222
222
  ReportType2["Weekly"] = "Weekly";
@@ -286,10 +286,25 @@ var MongoBaseQuerySchema = z2.object({
286
286
  var URL = "gps/features/user_report_preferences";
287
287
  var ENDPOINTS = {
288
288
  find: `${URL}/search`,
289
+ find_automation_mail: `${URL}/automation_mail/search`,
289
290
  create: URL,
290
291
  update: (id) => `${URL}/${id}`,
291
292
  delete: (id) => `${URL}/${id}`
292
293
  };
294
+ var UserReportsAutomationMailQuerySchema = BaseQuerySchema.extend({
295
+ organisation_ids: multi_select_optional("UserOrganisation"),
296
+ // ✅ Multi-Selection -> UserOrganisation
297
+ report_preference_ids: multi_select_optional("UserReportPreferences"),
298
+ // ✅ Multi-Selection -> UserReportPreferences
299
+ automation_mail_ids: multi_select_optional("UserReportPreferences"),
300
+ // ✅ Multi-Selection -> UserReportsAutomationMail
301
+ all_vehicles: enumArrayOptional("All Vehicles", YesNo, getAllEnums(YesNo)),
302
+ report_type: enumArrayOptional(
303
+ "Report Type",
304
+ ReportType,
305
+ getAllEnums(ReportType)
306
+ )
307
+ });
293
308
  var UserReportPreferencesSchema = z3.object({
294
309
  organisation_id: single_select_mandatory("UserOrganisation"),
295
310
  report_name: stringMandatory("Report Name", 3, 100),
@@ -301,8 +316,8 @@ var UserReportPreferencesSchema = z3.object({
301
316
  ),
302
317
  report_list: enumArrayMandatory(
303
318
  "Report List",
304
- ReportPreference,
305
- getAllEnums(ReportPreference)
319
+ ReportList,
320
+ getAllEnums(ReportList)
306
321
  ),
307
322
  email_ids: stringMandatory("Email IDs", 3, 300),
308
323
  cc_email_ids: stringOptional("CC email IDs", 0, 300),
@@ -355,11 +370,16 @@ var updateUserReportsPreferences = async (id, data) => {
355
370
  var deleteUserReportsPreferences = async (id) => {
356
371
  return apiDelete(ENDPOINTS.delete(id));
357
372
  };
373
+ var findUserReportsAutomationMail = async (data) => {
374
+ return apiPost(ENDPOINTS.find_automation_mail, data);
375
+ };
358
376
  export {
359
377
  UserReportPreferencesQuerySchema,
360
378
  UserReportPreferencesSchema,
379
+ UserReportsAutomationMailQuerySchema,
361
380
  createUserReportsPreferences,
362
381
  deleteUserReportsPreferences,
382
+ findUserReportsAutomationMail,
363
383
  findUserReportsPreferences,
364
384
  newUserReportsPreferencesPayload,
365
385
  toUserReportsPreferencesPayload,
@@ -31,6 +31,7 @@ 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;
34
35
  mobile_number: string;
35
36
  email: string;
36
37
  facebook_link: string;
@@ -41,7 +42,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
41
42
  pinterest_link: string;
42
43
  whats_app_chat_url: string;
43
44
  telegram_chat_url: string;
44
- status: Status;
45
45
  }, {
46
46
  status: Status;
47
47
  mobile_number?: string | undefined;
@@ -19,11 +19,11 @@ declare const StaticPageSchema: z.ZodObject<{
19
19
  page_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
20
20
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
21
21
  }, "strip", z.ZodTypeAny, {
22
- status: Status;
23
22
  page_name: string;
24
23
  page_code: string;
25
24
  page_url: string;
26
25
  page_content: string;
26
+ status: Status;
27
27
  }, {
28
28
  status: Status;
29
29
  page_name?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "19.0.0",
3
+ "version": "22.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",