vms-nest-prisma-api-document 11.0.0 → 12.0.1

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 (21) hide show
  1. package/dist/core/Enums.d.ts +7 -1
  2. package/dist/core/Enums.js +8 -0
  3. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +4 -4
  4. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
  5. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -15
  6. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +10 -10
  7. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +6 -6
  8. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +16 -16
  9. package/dist/services/gps/features/gps_live_track_share_link_service.js +2 -0
  10. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +9 -9
  11. package/dist/services/gps/features/gps_track_history_share_link_service.js +2 -0
  12. package/dist/services/gps/features/{preferences/user_notification_preferences.service.d.ts → user_notification_preferences.service.d.ts} +28 -28
  13. package/dist/services/gps/features/{preferences/user_notification_preferences.service.js → user_notification_preferences.service.js} +18 -11
  14. package/dist/services/gps/features/{preferences/user_report_preferences.service.d.ts → user_report_preferences.service.d.ts} +23 -23
  15. package/dist/services/gps/features/{preferences/user_report_preferences.service.js → user_report_preferences.service.js} +15 -10
  16. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  17. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  18. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  19. package/dist/services/website/faq_service.d.ts +1 -1
  20. package/dist/services/website/static_pages_service.d.ts +1 -1
  21. package/package.json +1 -1
@@ -81,6 +81,10 @@ declare enum YesNo {
81
81
  Yes = "Yes",
82
82
  No = "No"
83
83
  }
84
+ declare enum OnOff {
85
+ On = "On",
86
+ Off = "Off"
87
+ }
84
88
  declare enum IssueSource {
85
89
  Direct = "Direct",
86
90
  Inspection = "Inspection",
@@ -131,6 +135,8 @@ declare enum DeviceType {
131
135
  Web = "Web"
132
136
  }
133
137
  declare enum NotificationType {
138
+ Whatsapp = "Whatsapp",
139
+ Message = "Message",
134
140
  Email = "Email",
135
141
  Push = "Push"
136
142
  }
@@ -602,4 +608,4 @@ declare enum PaymentMode {
602
608
  Other = "Other"
603
609
  }
604
610
 
605
- 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, 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 };
611
+ 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 };
@@ -99,6 +99,11 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
99
99
  YesNo2["No"] = "No";
100
100
  return YesNo2;
101
101
  })(YesNo || {});
102
+ var OnOff = /* @__PURE__ */ ((OnOff2) => {
103
+ OnOff2["On"] = "On";
104
+ OnOff2["Off"] = "Off";
105
+ return OnOff2;
106
+ })(OnOff || {});
102
107
  var IssueSource = /* @__PURE__ */ ((IssueSource2) => {
103
108
  IssueSource2["Direct"] = "Direct";
104
109
  IssueSource2["Inspection"] = "Inspection";
@@ -157,6 +162,8 @@ var DeviceType = /* @__PURE__ */ ((DeviceType2) => {
157
162
  return DeviceType2;
158
163
  })(DeviceType || {});
159
164
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
165
+ NotificationType2["Whatsapp"] = "Whatsapp";
166
+ NotificationType2["Message"] = "Message";
160
167
  NotificationType2["Email"] = "Email";
161
168
  NotificationType2["Push"] = "Push";
162
169
  return NotificationType2;
@@ -716,6 +723,7 @@ export {
716
723
  NotificationPreference,
717
724
  NotificationType,
718
725
  OdometerSource,
726
+ OnOff,
719
727
  OrderBy,
720
728
  OverSpeed,
721
729
  PAGING,
@@ -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";
@@ -82,9 +82,6 @@ declare const GPSGeofenceSchema: z.ZodObject<{
82
82
  google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
83
83
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
84
84
  }, "strip", z.ZodTypeAny, {
85
- status: Status;
86
- organisation_id: string;
87
- country_code: string;
88
85
  geofence_name: string;
89
86
  geofence_purpose_type: GeofencePurposeType;
90
87
  geofence_description: string;
@@ -102,23 +99,25 @@ declare const GPSGeofenceSchema: z.ZodObject<{
102
99
  state_province_region: string;
103
100
  postal_code: string;
104
101
  country: string;
102
+ country_code: string;
105
103
  google_location: string;
106
- latitude?: number | undefined;
107
- longitude?: number | undefined;
104
+ status: Status;
105
+ organisation_id: string;
108
106
  radius_m?: number | undefined;
109
107
  radius_km?: number | undefined;
108
+ latitude?: number | undefined;
109
+ longitude?: number | undefined;
110
110
  }, {
111
- status: Status;
112
- organisation_id: string;
113
111
  geofence_name: string;
114
112
  geofence_purpose_type: GeofencePurposeType;
115
113
  geofence_type: GeofenceType;
116
- country_code?: string | undefined;
117
- latitude?: unknown;
118
- longitude?: unknown;
114
+ status: Status;
115
+ organisation_id: string;
119
116
  geofence_description?: string | undefined;
120
117
  radius_m?: unknown;
121
118
  radius_km?: unknown;
119
+ latitude?: unknown;
120
+ longitude?: unknown;
122
121
  poliline_data?: {
123
122
  latitude?: unknown;
124
123
  longitude?: unknown;
@@ -132,6 +131,7 @@ declare const GPSGeofenceSchema: z.ZodObject<{
132
131
  state_province_region?: string | undefined;
133
132
  postal_code?: string | undefined;
134
133
  country?: string | undefined;
134
+ country_code?: string | undefined;
135
135
  google_location?: string | undefined;
136
136
  }>;
137
137
  type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
@@ -171,8 +171,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
171
171
  geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
172
172
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
173
173
  }, "strip", z.ZodTypeAny, {
174
+ geofence_purpose_type: GeofencePurposeType[];
175
+ geofence_type: GeofenceType[];
174
176
  status: Status[];
175
- time_zone_id: string;
176
177
  search: string;
177
178
  paging: PAGING;
178
179
  page_count: number;
@@ -192,13 +193,14 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
192
193
  }[];
193
194
  include_master_data: YesNo;
194
195
  date_format_id: string;
196
+ time_zone_id: string;
195
197
  organisation_ids: string[];
196
198
  gps_geofence_ids: string[];
197
- geofence_purpose_type: GeofencePurposeType[];
198
- geofence_type: GeofenceType[];
199
199
  }, {
200
- time_zone_id: string;
201
200
  date_format_id: string;
201
+ time_zone_id: string;
202
+ geofence_purpose_type?: GeofencePurposeType[] | undefined;
203
+ geofence_type?: GeofenceType[] | undefined;
202
204
  status?: Status[] | undefined;
203
205
  search?: string | undefined;
204
206
  paging?: PAGING | undefined;
@@ -220,8 +222,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
220
222
  include_master_data?: YesNo | undefined;
221
223
  organisation_ids?: string[] | undefined;
222
224
  gps_geofence_ids?: string[] | undefined;
223
- geofence_purpose_type?: GeofencePurposeType[] | undefined;
224
- geofence_type?: GeofenceType[] | 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
+ gps_geofence_id: string;
41
40
  status: Status;
42
41
  organisation_id: string;
43
- vehicle_id: string;
44
- driver_id: string;
45
- gps_geofence_id: string;
46
42
  time_zone_id: string;
47
- }, {
43
+ driver_id: string;
44
+ vehicle_id: string;
48
45
  geofence_status_type: GeofenceStatusType;
49
46
  geofence_time: string;
47
+ }, {
48
+ gps_geofence_id: string;
50
49
  status: Status;
51
50
  organisation_id: string;
52
- vehicle_id: string;
53
- driver_id: string;
54
- gps_geofence_id: string;
55
51
  time_zone_id: string;
52
+ driver_id: string;
53
+ vehicle_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,9 +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[];
98
97
  status: Status[];
99
- time_zone_id: string;
100
98
  search: string;
101
99
  paging: PAGING;
102
100
  page_count: number;
@@ -116,18 +114,19 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
116
114
  }[];
117
115
  include_master_data: YesNo;
118
116
  date_format_id: string;
117
+ time_zone_id: string;
119
118
  organisation_ids: string[];
119
+ gps_geofence_ids: string[];
120
120
  vehicle_ids: string[];
121
121
  driver_ids: string[];
122
- gps_geofence_ids: string[];
122
+ geofence_status_type: GeofenceStatusType[];
123
123
  from_date: string;
124
124
  to_date: string;
125
125
  }, {
126
- time_zone_id: string;
127
126
  date_format_id: string;
127
+ time_zone_id: string;
128
128
  from_date: string;
129
129
  to_date: string;
130
- geofence_status_type?: GeofenceStatusType[] | undefined;
131
130
  status?: Status[] | undefined;
132
131
  search?: string | undefined;
133
132
  paging?: PAGING | undefined;
@@ -148,9 +147,10 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
148
147
  }[] | undefined;
149
148
  include_master_data?: YesNo | undefined;
150
149
  organisation_ids?: string[] | undefined;
150
+ gps_geofence_ids?: string[] | undefined;
151
151
  vehicle_ids?: string[] | undefined;
152
152
  driver_ids?: string[] | undefined;
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,24 +46,24 @@ 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
+ gps_geofence_id: string;
49
50
  status: Status;
50
51
  organisation_id: string;
51
- vehicle_id: string;
52
- driver_id: string;
53
- gps_geofence_id: string;
54
52
  time_zone_id: string;
53
+ driver_id: string;
54
+ vehicle_id: string;
55
55
  geofence_enter_date_time: string;
56
56
  geofence_exit_date_time: string;
57
57
  duration_seconds: number;
58
58
  enter_gps_geofence_transaction_id: string;
59
59
  exit_gps_geofence_transaction_id: string;
60
60
  }, {
61
+ gps_geofence_id: string;
61
62
  status: Status;
62
63
  organisation_id: string;
63
- vehicle_id: string;
64
- driver_id: string;
65
- gps_geofence_id: string;
66
64
  time_zone_id: string;
65
+ driver_id: string;
66
+ vehicle_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;
@@ -110,7 +110,6 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
110
110
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
111
111
  }, "strip", z.ZodTypeAny, {
112
112
  status: Status[];
113
- time_zone_id: string;
114
113
  search: string;
115
114
  paging: PAGING;
116
115
  page_count: number;
@@ -130,15 +129,16 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
130
129
  }[];
131
130
  include_master_data: YesNo;
132
131
  date_format_id: string;
132
+ time_zone_id: string;
133
133
  organisation_ids: string[];
134
+ gps_geofence_ids: string[];
134
135
  vehicle_ids: string[];
135
136
  driver_ids: string[];
136
- gps_geofence_ids: string[];
137
137
  from_date: string;
138
138
  to_date: string;
139
139
  }, {
140
- time_zone_id: string;
141
140
  date_format_id: string;
141
+ time_zone_id: string;
142
142
  from_date: string;
143
143
  to_date: string;
144
144
  status?: Status[] | undefined;
@@ -161,9 +161,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
161
161
  }[] | undefined;
162
162
  include_master_data?: YesNo | undefined;
163
163
  organisation_ids?: string[] | undefined;
164
+ gps_geofence_ids?: string[] | undefined;
164
165
  vehicle_ids?: string[] | undefined;
165
166
  driver_ids?: string[] | undefined;
166
- gps_geofence_ids?: string[] | undefined;
167
167
  }>;
168
168
  type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
169
169
  declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
@@ -57,9 +57,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
57
57
  }, "strip", z.ZodTypeAny, {
58
58
  status: Status;
59
59
  organisation_id: string;
60
- vehicle_id: string;
61
- driver_id: string;
62
60
  time_zone_id: string;
61
+ driver_id: string;
62
+ vehicle_id: string;
63
63
  duration_seconds: number;
64
64
  from_geofence_exit_date_time: string;
65
65
  to_geofence_enter_date_time: string;
@@ -73,9 +73,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
73
73
  }, {
74
74
  status: Status;
75
75
  organisation_id: string;
76
- vehicle_id: string;
77
- driver_id: string;
78
76
  time_zone_id: string;
77
+ driver_id: string;
78
+ vehicle_id: string;
79
79
  from_geofence_exit_date_time: string;
80
80
  to_geofence_enter_date_time: string;
81
81
  from_geofence_id: string;
@@ -128,7 +128,6 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
128
128
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
129
129
  }, "strip", z.ZodTypeAny, {
130
130
  status: Status[];
131
- time_zone_id: string;
132
131
  search: string;
133
132
  paging: PAGING;
134
133
  page_count: number;
@@ -148,6 +147,7 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
148
147
  }[];
149
148
  include_master_data: YesNo;
150
149
  date_format_id: string;
150
+ time_zone_id: string;
151
151
  organisation_ids: string[];
152
152
  vehicle_ids: string[];
153
153
  driver_ids: string[];
@@ -156,8 +156,8 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
156
156
  from_geofence_ids: string[];
157
157
  to_geofence_ids: string[];
158
158
  }, {
159
- time_zone_id: string;
160
159
  date_format_id: string;
160
+ time_zone_id: string;
161
161
  from_date: string;
162
162
  to_date: string;
163
163
  status?: Status[] | undefined;
@@ -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;
@@ -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;
@@ -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>;
@@ -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,20 +1,20 @@
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 { OnOff, NotificationType, NotificationPreference, YesNo, 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;
10
10
  notification_name: string;
11
- notification_status: YesNo;
11
+ notification_status: OnOff;
12
12
  notification_type: NotificationType;
13
13
  mobile_numbers?: string;
14
14
  email_ids?: string;
15
15
  cc_email_ids?: string;
16
16
  notification_list: NotificationPreference[];
17
- is_all_vehicles: YesNo;
17
+ all_vehicles: YesNo;
18
18
  status: Status;
19
19
  added_date_time: string;
20
20
  modified_date_time: string;
@@ -52,42 +52,42 @@ interface UserNotificationPreferenceUserLink extends Record<string, unknown> {
52
52
  declare const UserNotificationPreferencesSchema: z.ZodObject<{
53
53
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
54
54
  notification_name: z.ZodEffects<z.ZodString, string, string>;
55
- notification_status: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
55
+ notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
56
56
  notification_type: z.ZodType<NotificationType, z.ZodTypeDef, NotificationType>;
57
57
  mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
58
58
  email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
59
59
  cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
60
- is_all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
60
+ all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
61
61
  notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationPreference>, "many">>;
62
62
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
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
- notification_status: YesNo;
71
+ notification_status: OnOff;
68
72
  notification_type: NotificationType;
69
73
  mobile_numbers: string;
70
74
  email_ids: string;
71
75
  cc_email_ids: string;
72
76
  notification_list: NotificationPreference[];
73
- is_all_vehicles: YesNo;
77
+ 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
- notification_status: YesNo;
82
+ notification_status: OnOff;
81
83
  notification_type: NotificationType;
82
- is_all_vehicles: YesNo;
83
- status: Status;
84
- organisation_id: string;
84
+ all_vehicles: YesNo;
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<{
@@ -123,13 +123,10 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
123
123
  } & {
124
124
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
125
125
  notification_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
126
- notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
126
+ notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
127
127
  notification_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>>;
128
- is_all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
128
+ 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: OnOff[];
153
+ notification_type: NotificationType[];
154
+ 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?: OnOff[] | undefined;
180
+ notification_type?: NotificationType[] | undefined;
181
+ 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
@@ -196,7 +196,14 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
196
196
  YesNo2["No"] = "No";
197
197
  return YesNo2;
198
198
  })(YesNo || {});
199
+ var OnOff = /* @__PURE__ */ ((OnOff2) => {
200
+ OnOff2["On"] = "On";
201
+ OnOff2["Off"] = "Off";
202
+ return OnOff2;
203
+ })(OnOff || {});
199
204
  var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
205
+ NotificationType2["Whatsapp"] = "Whatsapp";
206
+ NotificationType2["Message"] = "Message";
200
207
  NotificationType2["Email"] = "Email";
201
208
  NotificationType2["Push"] = "Push";
202
209
  return NotificationType2;
@@ -258,7 +265,7 @@ var MongoBaseQuerySchema = z2.object({
258
265
  // ✅ Single-selection -> MasterMainTimeZone
259
266
  });
260
267
 
261
- // src/services/gps/features/preferences/user_notification_preferences.service.ts
268
+ // src/services/gps/features/user_notification_preferences.service.ts
262
269
  var URL = "gps/features/user_notification_preferences";
263
270
  var ENDPOINTS = {
264
271
  find: `${URL}/search`,
@@ -269,7 +276,7 @@ var ENDPOINTS = {
269
276
  var UserNotificationPreferencesSchema = z3.object({
270
277
  organisation_id: single_select_mandatory("UserOrganisation"),
271
278
  notification_name: stringMandatory("Notification Name", 3, 100),
272
- notification_status: enumMandatory("Notification Status", YesNo, "No" /* No */),
279
+ notification_status: enumMandatory("Notification Status", OnOff, "On" /* On */),
273
280
  notification_type: enumMandatory(
274
281
  "Notification Type",
275
282
  NotificationType,
@@ -278,7 +285,7 @@ var UserNotificationPreferencesSchema = z3.object({
278
285
  mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
279
286
  email_ids: stringOptional("Email IDs", 0, 300),
280
287
  cc_email_ids: stringOptional("CC email IDs", 0, 300),
281
- is_all_vehicles: enumMandatory("Is All Vehicles", YesNo, "No" /* No */),
288
+ all_vehicles: enumMandatory("All Vehicles", YesNo, "Yes" /* Yes */),
282
289
  notification_list: enumArrayMandatory(
283
290
  "Notification List",
284
291
  NotificationPreference,
@@ -299,16 +306,16 @@ var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
299
306
  // ✅ Multi-Selection -> UserNotificationPreferences
300
307
  notification_status: enumArrayOptional(
301
308
  "Notification Status",
302
- YesNo,
303
- getAllEnums(YesNo)
309
+ OnOff,
310
+ getAllEnums(OnOff)
304
311
  ),
305
312
  notification_type: enumArrayOptional(
306
313
  "Notification Type",
307
314
  NotificationType,
308
315
  getAllEnums(NotificationType)
309
316
  ),
310
- is_all_vehicles: enumArrayOptional(
311
- "Is All Vehicles",
317
+ all_vehicles: enumArrayOptional(
318
+ "All Vehicles",
312
319
  YesNo,
313
320
  getAllEnums(YesNo)
314
321
  )
@@ -322,7 +329,7 @@ var toUserNotificationPreferencesPayload = (data) => ({
322
329
  email_ids: data.email_ids ?? "",
323
330
  cc_email_ids: data.cc_email_ids ?? "",
324
331
  notification_list: data.notification_list ?? [],
325
- is_all_vehicles: data.is_all_vehicles,
332
+ all_vehicles: data.all_vehicles,
326
333
  status: data.status,
327
334
  vehicle_ids: data.UserNotificationPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? [],
328
335
  user_ids: data.UserNotificationPreferenceUserLink?.map((v) => v.user_id) ?? []
@@ -330,13 +337,13 @@ var toUserNotificationPreferencesPayload = (data) => ({
330
337
  var newUserNotificationPreferencesPayload = () => ({
331
338
  organisation_id: "",
332
339
  notification_name: "",
333
- notification_status: "No" /* No */,
340
+ notification_status: "On" /* On */,
334
341
  notification_type: "Push" /* Push */,
335
342
  mobile_numbers: "",
336
343
  email_ids: "",
337
344
  cc_email_ids: "",
338
345
  notification_list: [],
339
- is_all_vehicles: "No" /* No */,
346
+ all_vehicles: "Yes" /* Yes */,
340
347
  vehicle_ids: [],
341
348
  user_ids: [],
342
349
  status: "Active" /* Active */
@@ -1,19 +1,19 @@
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 { OnOff, ReportType, ReportPreference, YesNo, 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;
10
10
  report_name: string;
11
- report_status: YesNo;
11
+ report_status: OnOff;
12
12
  report_type: ReportType;
13
13
  email_ids: string;
14
14
  cc_email_ids?: string;
15
15
  report_list: ReportPreference[];
16
- is_all_vehicles: YesNo;
16
+ all_vehicles: YesNo;
17
17
  status: Status;
18
18
  added_date_time: string;
19
19
  modified_date_time: string;
@@ -39,35 +39,35 @@ interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
39
39
  declare const UserReportPreferencesSchema: z.ZodObject<{
40
40
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
41
41
  report_name: z.ZodEffects<z.ZodString, string, string>;
42
- report_status: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
42
+ report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
43
43
  report_type: z.ZodType<ReportType, z.ZodTypeDef, ReportType>;
44
44
  email_ids: z.ZodEffects<z.ZodString, string, string>;
45
45
  cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
46
- is_all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
46
+ all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
47
47
  report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportPreference>, "many">>;
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
+ all_vehicles: YesNo;
57
57
  report_name: string;
58
- report_status: YesNo;
58
+ report_status: OnOff;
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
+ all_vehicles: YesNo;
66
66
  report_name: string;
67
- report_status: YesNo;
67
+ report_status: OnOff;
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>;
@@ -104,11 +104,10 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
104
104
  } & {
105
105
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
106
106
  report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
107
- report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
107
+ report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
108
108
  report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
109
- is_all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
109
+ 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[];
134
- report_status: YesNo[];
133
+ all_vehicles: YesNo[];
134
+ report_status: OnOff[];
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,7 +157,8 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
158
157
  }[] | undefined;
159
158
  include_master_data?: YesNo | undefined;
160
159
  organisation_ids?: string[] | undefined;
161
- report_status?: YesNo[] | undefined;
160
+ all_vehicles?: YesNo[] | undefined;
161
+ report_status?: OnOff[] | undefined;
162
162
  report_type?: ReportType[] | undefined;
163
163
  report_preference_ids?: string[] | undefined;
164
164
  }>;
@@ -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
@@ -196,6 +196,11 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
196
196
  YesNo2["No"] = "No";
197
197
  return YesNo2;
198
198
  })(YesNo || {});
199
+ var OnOff = /* @__PURE__ */ ((OnOff2) => {
200
+ OnOff2["On"] = "On";
201
+ OnOff2["Off"] = "Off";
202
+ return OnOff2;
203
+ })(OnOff || {});
199
204
  var ReportPreference = /* @__PURE__ */ ((ReportPreference2) => {
200
205
  ReportPreference2["FleetFuelRefillReport"] = "FleetFuelRefillReport";
201
206
  ReportPreference2["FleetFuelRemovalReport"] = "FleetFuelRemovalReport";
@@ -256,7 +261,7 @@ var MongoBaseQuerySchema = z2.object({
256
261
  // ✅ Single-selection -> MasterMainTimeZone
257
262
  });
258
263
 
259
- // src/services/gps/features/preferences/user_report_preferences.service.ts
264
+ // src/services/gps/features/user_report_preferences.service.ts
260
265
  var URL = "gps/features/user_report_preferences";
261
266
  var ENDPOINTS = {
262
267
  find: `${URL}/search`,
@@ -267,11 +272,11 @@ var ENDPOINTS = {
267
272
  var UserReportPreferencesSchema = z3.object({
268
273
  organisation_id: single_select_mandatory("UserOrganisation"),
269
274
  report_name: stringMandatory("Report Name", 3, 100),
270
- report_status: enumMandatory("Report Status", YesNo, "No" /* No */),
275
+ report_status: enumMandatory("Report Status", OnOff, "On" /* On */),
271
276
  report_type: enumMandatory("Report Type", ReportType, "Daily" /* Daily */),
272
277
  email_ids: stringMandatory("Email IDs", 3, 300),
273
278
  cc_email_ids: stringOptional("CC email IDs", 0, 300),
274
- is_all_vehicles: enumMandatory("Is All Vehicles", YesNo, "No" /* No */),
279
+ all_vehicles: enumMandatory("All Vehicles", YesNo, "Yes" /* Yes */),
275
280
  report_list: enumArrayMandatory(
276
281
  "Report List",
277
282
  ReportPreference,
@@ -286,14 +291,14 @@ var UserReportPreferencesQuerySchema = BaseQuerySchema.extend({
286
291
  // ✅ Multi-Selection -> UserOrganisation
287
292
  report_preference_ids: multi_select_optional("UserReportPreferences"),
288
293
  // ✅ Multi-Selection -> UserNotificationPreferences
289
- report_status: enumArrayOptional("Report Status", YesNo, getAllEnums(YesNo)),
294
+ report_status: enumArrayOptional("Report Status", OnOff, getAllEnums(OnOff)),
290
295
  report_type: enumArrayOptional(
291
296
  "Report Type",
292
297
  ReportType,
293
298
  getAllEnums(ReportType)
294
299
  ),
295
- is_all_vehicles: enumArrayOptional(
296
- "Is All Vehicles",
300
+ all_vehicles: enumArrayOptional(
301
+ "All Vehicles",
297
302
  YesNo,
298
303
  getAllEnums(YesNo)
299
304
  )
@@ -305,7 +310,7 @@ var toUserReportsPreferencesPayload = (data) => ({
305
310
  report_type: data.report_type,
306
311
  email_ids: data.email_ids,
307
312
  cc_email_ids: data.report_name,
308
- is_all_vehicles: data.is_all_vehicles,
313
+ all_vehicles: data.all_vehicles,
309
314
  report_list: data.report_list,
310
315
  vehicle_ids: data.UserReportsPreferencesVehicleLink?.map((v) => v.vehicle_id) ?? [],
311
316
  status: "Active" /* Active */
@@ -313,11 +318,11 @@ var toUserReportsPreferencesPayload = (data) => ({
313
318
  var newUserReportsPreferencesPayload = () => ({
314
319
  organisation_id: "",
315
320
  report_name: "",
316
- report_status: "Yes" /* Yes */,
321
+ report_status: "On" /* On */,
317
322
  report_type: "Daily" /* Daily */,
318
323
  email_ids: "",
319
324
  cc_email_ids: "",
320
- is_all_vehicles: "Yes" /* Yes */,
325
+ all_vehicles: "Yes" /* Yes */,
321
326
  report_list: [],
322
327
  vehicle_ids: [],
323
328
  status: "Active" /* Active */
@@ -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;
40
37
  search: string;
41
38
  paging: PAGING;
42
39
  page_count: number;
43
40
  page_index: number;
41
+ login_from: LoginFrom;
44
42
  date_format_id: string;
45
43
  time_zone_id: string;
46
- login_from: LoginFrom;
47
44
  organisation_id: string;
45
+ db_instance: string;
46
+ db_group: string;
48
47
  vehicle_ids: string[];
49
48
  from_date: string;
50
49
  to_date: string;
51
50
  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
- db_group: string;
58
- db_instance: string;
57
+ login_from: LoginFrom;
59
58
  date_format_id: string;
60
59
  time_zone_id: string;
61
- login_from: LoginFrom;
62
60
  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;
66
65
  search?: string | undefined;
67
66
  paging?: PAGING | undefined;
68
67
  page_count?: unknown;
69
68
  page_index?: unknown;
70
69
  vehicle_ids?: string[] | undefined;
71
70
  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;
103
100
  search: string;
104
101
  paging: PAGING;
105
102
  page_count: number;
106
103
  page_index: number;
104
+ login_from: LoginFrom;
107
105
  date_format_id: string;
108
106
  time_zone_id: string;
109
- login_from: LoginFrom;
110
107
  organisation_id: string;
108
+ db_instance: string;
109
+ db_group: string;
111
110
  from_date: string;
112
111
  to_date: string;
113
112
  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
- db_group: string;
121
- db_instance: string;
120
+ login_from: LoginFrom;
122
121
  date_format_id: string;
123
122
  time_zone_id: string;
124
- login_from: LoginFrom;
125
123
  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;
129
128
  search?: string | undefined;
130
129
  paging?: PAGING | undefined;
131
130
  page_count?: unknown;
132
131
  page_index?: unknown;
133
132
  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;
162
160
  search: string;
163
161
  paging: PAGING;
164
162
  page_count: number;
165
163
  page_index: number;
164
+ login_from: LoginFrom;
166
165
  date_format_id: string;
167
166
  time_zone_id: string;
168
- login_from: LoginFrom;
169
167
  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
- db_group: string;
178
- db_instance: string;
177
+ login_from: LoginFrom;
179
178
  date_format_id: string;
180
179
  time_zone_id: string;
181
- login_from: LoginFrom;
182
180
  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;
213
211
  search: string;
214
212
  paging: PAGING;
215
213
  page_count: number;
216
214
  page_index: number;
215
+ login_from: LoginFrom;
217
216
  date_format_id: string;
218
217
  time_zone_id: string;
219
- login_from: LoginFrom;
220
218
  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
- db_group: string;
226
- db_instance: string;
225
+ login_from: LoginFrom;
227
226
  date_format_id: string;
228
227
  time_zone_id: string;
229
- login_from: LoginFrom;
230
228
  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;
259
257
  search: string;
260
258
  paging: PAGING;
261
259
  page_count: number;
262
260
  page_index: number;
261
+ login_from: LoginFrom;
263
262
  date_format_id: string;
264
263
  time_zone_id: string;
265
- login_from: LoginFrom;
266
264
  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
- db_group: string;
273
- db_instance: string;
272
+ login_from: LoginFrom;
274
273
  date_format_id: string;
275
274
  time_zone_id: string;
276
- login_from: LoginFrom;
277
275
  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;
304
302
  search: string;
305
303
  paging: PAGING;
306
304
  page_count: number;
307
305
  page_index: number;
306
+ login_from: LoginFrom;
308
307
  date_format_id: string;
309
308
  time_zone_id: string;
310
- login_from: LoginFrom;
311
309
  organisation_id: string;
310
+ db_instance: string;
311
+ db_group: string;
312
312
  vehicle_id: string;
313
313
  }, {
314
- db_group: string;
315
- db_instance: string;
314
+ login_from: LoginFrom;
316
315
  date_format_id: string;
317
316
  time_zone_id: string;
318
- login_from: LoginFrom;
319
317
  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;
351
349
  search: string;
352
350
  paging: PAGING;
353
351
  page_count: number;
354
352
  page_index: number;
353
+ login_from: LoginFrom;
355
354
  date_format_id: string;
356
355
  time_zone_id: string;
357
- login_from: LoginFrom;
358
356
  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
- db_group: string;
370
- db_instance: string;
369
+ login_from: LoginFrom;
371
370
  date_format_id: string;
372
371
  time_zone_id: string;
373
- login_from: LoginFrom;
374
372
  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;
@@ -15,12 +15,12 @@ declare const MasterMainEwayBillProviderSchema: z.ZodObject<{
15
15
  provider_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
16
16
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
17
17
  }, "strip", z.ZodTypeAny, {
18
- status: Status;
19
18
  provider_name: string;
20
19
  provider_code: string;
21
- }, {
22
20
  status: Status;
21
+ }, {
23
22
  provider_name: string;
23
+ status: Status;
24
24
  provider_code?: string | undefined;
25
25
  }>;
26
26
  type MasterMainEwayBillProviderDTO = z.infer<typeof MasterMainEwayBillProviderSchema>;
@@ -15,12 +15,12 @@ declare const MasterMainFasttagBankSchema: z.ZodObject<{
15
15
  bank_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
16
16
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
17
17
  }, "strip", z.ZodTypeAny, {
18
+ status: Status;
18
19
  bank_name: string;
19
20
  bank_code: string;
20
- status: Status;
21
21
  }, {
22
- bank_name: string;
23
22
  status: Status;
23
+ bank_name: string;
24
24
  bank_code?: string | undefined;
25
25
  }>;
26
26
  type MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
@@ -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;
@@ -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": "11.0.0",
3
+ "version": "12.0.1",
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",