vms-nest-prisma-api-document 12.0.1 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Enums.d.ts +27 -9
- package/dist/core/Enums.js +28 -10
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +50 -50
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +35 -35
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +6 -6
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +22 -24
- package/dist/services/gps/features/user_notification_preferences.service.js +28 -29
- package/dist/services/gps/features/user_report_preferences.service.d.ts +15 -18
- package/dist/services/gps/features/user_report_preferences.service.js +29 -24
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -42,16 +42,16 @@ 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;
|
|
46
45
|
status: Status;
|
|
47
46
|
organisation_id: string;
|
|
48
47
|
type: NotificationType;
|
|
48
|
+
gps_live_track_share_link_id: string;
|
|
49
49
|
to_recipients: string;
|
|
50
50
|
}, {
|
|
51
|
-
gps_live_track_share_link_id: string;
|
|
52
51
|
status: Status;
|
|
53
52
|
organisation_id: string;
|
|
54
53
|
type: NotificationType;
|
|
54
|
+
gps_live_track_share_link_id: string;
|
|
55
55
|
to_recipients: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
@@ -73,52 +73,52 @@ 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;
|
|
77
76
|
status: Status;
|
|
78
77
|
organisation_id: string;
|
|
79
78
|
type: NotificationType;
|
|
79
|
+
gps_live_track_share_link_id: string;
|
|
80
80
|
to_recipients: string;
|
|
81
81
|
}, {
|
|
82
|
-
gps_live_track_share_link_id: string;
|
|
83
82
|
status: Status;
|
|
84
83
|
organisation_id: string;
|
|
85
84
|
type: NotificationType;
|
|
85
|
+
gps_live_track_share_link_id: string;
|
|
86
86
|
to_recipients: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
link_type: LinkType;
|
|
90
|
-
location: string;
|
|
91
|
-
link_status: LinkStatus;
|
|
92
89
|
status: Status;
|
|
93
90
|
organisation_id: string;
|
|
94
91
|
vehicle_id: string;
|
|
92
|
+
link_type: LinkType;
|
|
93
|
+
location: string;
|
|
94
|
+
link_status: LinkStatus;
|
|
95
95
|
trip_id: string;
|
|
96
96
|
expire_milliseconds: number;
|
|
97
97
|
notifications: {
|
|
98
|
-
gps_live_track_share_link_id: string;
|
|
99
98
|
status: Status;
|
|
100
99
|
organisation_id: string;
|
|
101
100
|
type: NotificationType;
|
|
101
|
+
gps_live_track_share_link_id: string;
|
|
102
102
|
to_recipients: string;
|
|
103
103
|
}[];
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
-
link_type: LinkType;
|
|
108
|
-
link_status: LinkStatus;
|
|
109
107
|
status: Status;
|
|
110
108
|
organisation_id: string;
|
|
111
109
|
vehicle_id: string;
|
|
110
|
+
link_type: LinkType;
|
|
111
|
+
link_status: LinkStatus;
|
|
112
112
|
trip_id: string;
|
|
113
113
|
latitude?: unknown;
|
|
114
114
|
longitude?: unknown;
|
|
115
115
|
location?: string | undefined;
|
|
116
116
|
expire_milliseconds?: unknown;
|
|
117
117
|
notifications?: {
|
|
118
|
-
gps_live_track_share_link_id: string;
|
|
119
118
|
status: Status;
|
|
120
119
|
organisation_id: string;
|
|
121
120
|
type: NotificationType;
|
|
121
|
+
gps_live_track_share_link_id: string;
|
|
122
122
|
to_recipients: string;
|
|
123
123
|
}[] | undefined;
|
|
124
124
|
}>;
|
|
@@ -176,9 +176,8 @@ 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[];
|
|
180
|
-
link_status: LinkStatus[];
|
|
181
179
|
status: Status[];
|
|
180
|
+
vehicle_ids: string[];
|
|
182
181
|
search: string;
|
|
183
182
|
paging: PAGING;
|
|
184
183
|
page_count: number;
|
|
@@ -200,14 +199,14 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
200
199
|
date_format_id: string;
|
|
201
200
|
time_zone_id: string;
|
|
202
201
|
organisation_ids: string[];
|
|
203
|
-
|
|
202
|
+
link_type: LinkType[];
|
|
203
|
+
link_status: LinkStatus[];
|
|
204
204
|
trip_ids: string[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
-
link_type?: LinkType[] | undefined;
|
|
209
|
-
link_status?: LinkStatus[] | undefined;
|
|
210
208
|
status?: Status[] | undefined;
|
|
209
|
+
vehicle_ids?: string[] | undefined;
|
|
211
210
|
search?: string | undefined;
|
|
212
211
|
paging?: PAGING | undefined;
|
|
213
212
|
page_count?: unknown;
|
|
@@ -227,7 +226,8 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
227
226
|
}[] | undefined;
|
|
228
227
|
include_master_data?: YesNo | undefined;
|
|
229
228
|
organisation_ids?: string[] | undefined;
|
|
230
|
-
|
|
229
|
+
link_type?: LinkType[] | undefined;
|
|
230
|
+
link_status?: LinkStatus[] | undefined;
|
|
231
231
|
trip_ids?: string[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
@@ -81,10 +81,10 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
81
81
|
gps_track_history_share_link_id: string;
|
|
82
82
|
}>, "many">>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
-
link_status: TrackHistoryLinkStatus;
|
|
85
84
|
status: Status;
|
|
86
85
|
organisation_id: string;
|
|
87
86
|
vehicle_id: string;
|
|
87
|
+
link_status: TrackHistoryLinkStatus;
|
|
88
88
|
trip_id: string;
|
|
89
89
|
notifications: {
|
|
90
90
|
status: Status;
|
|
@@ -96,10 +96,10 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
96
96
|
from_date_time: string;
|
|
97
97
|
to_date_time: string;
|
|
98
98
|
}, {
|
|
99
|
-
link_status: TrackHistoryLinkStatus;
|
|
100
99
|
status: Status;
|
|
101
100
|
organisation_id: string;
|
|
102
101
|
vehicle_id: string;
|
|
102
|
+
link_status: TrackHistoryLinkStatus;
|
|
103
103
|
trip_id: string;
|
|
104
104
|
from_date_time: string;
|
|
105
105
|
to_date_time: string;
|
|
@@ -148,8 +148,8 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
148
148
|
trip_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
149
149
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TrackHistoryLinkStatus>, "many">>>;
|
|
150
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
link_status: TrackHistoryLinkStatus[];
|
|
152
151
|
status: Status[];
|
|
152
|
+
vehicle_ids: string[];
|
|
153
153
|
search: string;
|
|
154
154
|
paging: PAGING;
|
|
155
155
|
page_count: number;
|
|
@@ -171,13 +171,13 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
171
171
|
date_format_id: string;
|
|
172
172
|
time_zone_id: string;
|
|
173
173
|
organisation_ids: string[];
|
|
174
|
-
|
|
174
|
+
link_status: TrackHistoryLinkStatus[];
|
|
175
175
|
trip_ids: string[];
|
|
176
176
|
}, {
|
|
177
177
|
date_format_id: string;
|
|
178
178
|
time_zone_id: string;
|
|
179
|
-
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
180
179
|
status?: Status[] | undefined;
|
|
180
|
+
vehicle_ids?: string[] | undefined;
|
|
181
181
|
search?: string | undefined;
|
|
182
182
|
paging?: PAGING | undefined;
|
|
183
183
|
page_count?: unknown;
|
|
@@ -197,7 +197,7 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
197
197
|
}[] | undefined;
|
|
198
198
|
include_master_data?: YesNo | undefined;
|
|
199
199
|
organisation_ids?: string[] | undefined;
|
|
200
|
-
|
|
200
|
+
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
201
201
|
trip_ids?: string[] | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
type GPSTrackHistoryShareLinkQueryDTO = z.infer<typeof GPSTrackHistoryShareLinkQuerySchema>;
|
|
@@ -9,11 +9,11 @@ interface UserNotificationPreferences extends Record<string, unknown> {
|
|
|
9
9
|
notification_preference_id: string;
|
|
10
10
|
notification_name: string;
|
|
11
11
|
notification_status: OnOff;
|
|
12
|
-
|
|
12
|
+
notification_types: NotificationType[];
|
|
13
|
+
notification_list: NotificationPreference[];
|
|
13
14
|
mobile_numbers?: string;
|
|
14
15
|
email_ids?: string;
|
|
15
16
|
cc_email_ids?: string;
|
|
16
|
-
notification_list: NotificationPreference[];
|
|
17
17
|
all_vehicles: YesNo;
|
|
18
18
|
status: Status;
|
|
19
19
|
added_date_time: string;
|
|
@@ -46,6 +46,7 @@ interface UserNotificationPreferenceUserLink extends Record<string, unknown> {
|
|
|
46
46
|
modified_date_time: string;
|
|
47
47
|
user_id: string;
|
|
48
48
|
User?: User;
|
|
49
|
+
user_details?: string;
|
|
49
50
|
notification_preference_id: string;
|
|
50
51
|
UserNotificationPreferences?: UserNotificationPreferences;
|
|
51
52
|
}
|
|
@@ -53,41 +54,41 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
53
54
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
54
55
|
notification_name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
56
|
notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
56
|
-
|
|
57
|
+
notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationPreference>, "many">>;
|
|
58
|
+
notification_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>;
|
|
57
59
|
mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
60
|
email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
61
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
62
|
+
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
60
63
|
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
61
|
-
notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationPreference>, "many">>;
|
|
62
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
64
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
64
|
-
|
|
65
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
65
66
|
}, "strip", z.ZodTypeAny, {
|
|
66
|
-
status: Status;
|
|
67
|
-
organisation_id: string;
|
|
68
|
-
vehicle_ids: string[];
|
|
69
|
-
user_ids: string[];
|
|
70
67
|
notification_name: string;
|
|
71
68
|
notification_status: OnOff;
|
|
72
|
-
|
|
69
|
+
notification_types: NotificationType[];
|
|
70
|
+
notification_list: NotificationPreference[];
|
|
73
71
|
mobile_numbers: string;
|
|
74
72
|
email_ids: string;
|
|
75
73
|
cc_email_ids: string;
|
|
76
|
-
notification_list: NotificationPreference[];
|
|
77
74
|
all_vehicles: YesNo;
|
|
78
|
-
}, {
|
|
79
75
|
status: Status;
|
|
80
76
|
organisation_id: string;
|
|
77
|
+
user_ids: string[];
|
|
78
|
+
vehicle_ids: string[];
|
|
79
|
+
}, {
|
|
81
80
|
notification_name: string;
|
|
82
81
|
notification_status: OnOff;
|
|
83
|
-
notification_type: NotificationType;
|
|
84
82
|
all_vehicles: YesNo;
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
status: Status;
|
|
84
|
+
organisation_id: string;
|
|
85
|
+
notification_types?: NotificationType[] | undefined;
|
|
86
|
+
notification_list?: NotificationPreference[] | undefined;
|
|
87
87
|
mobile_numbers?: string | undefined;
|
|
88
88
|
email_ids?: string | undefined;
|
|
89
89
|
cc_email_ids?: string | undefined;
|
|
90
|
-
|
|
90
|
+
user_ids?: string[] | undefined;
|
|
91
|
+
vehicle_ids?: string[] | undefined;
|
|
91
92
|
}>;
|
|
92
93
|
type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
|
|
93
94
|
declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
@@ -124,9 +125,10 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
124
125
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
125
126
|
notification_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
126
127
|
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
127
|
-
notification_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>>;
|
|
128
128
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
+
notification_status: OnOff[];
|
|
131
|
+
all_vehicles: YesNo[];
|
|
130
132
|
status: Status[];
|
|
131
133
|
search: string;
|
|
132
134
|
paging: PAGING;
|
|
@@ -149,13 +151,12 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
149
151
|
date_format_id: string;
|
|
150
152
|
time_zone_id: string;
|
|
151
153
|
organisation_ids: string[];
|
|
152
|
-
notification_status: OnOff[];
|
|
153
|
-
notification_type: NotificationType[];
|
|
154
|
-
all_vehicles: YesNo[];
|
|
155
154
|
notification_preference_ids: string[];
|
|
156
155
|
}, {
|
|
157
156
|
date_format_id: string;
|
|
158
157
|
time_zone_id: string;
|
|
158
|
+
notification_status?: OnOff[] | undefined;
|
|
159
|
+
all_vehicles?: YesNo[] | undefined;
|
|
159
160
|
status?: Status[] | undefined;
|
|
160
161
|
search?: string | undefined;
|
|
161
162
|
paging?: PAGING | undefined;
|
|
@@ -176,9 +177,6 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
176
177
|
}[] | undefined;
|
|
177
178
|
include_master_data?: YesNo | undefined;
|
|
178
179
|
organisation_ids?: string[] | undefined;
|
|
179
|
-
notification_status?: OnOff[] | undefined;
|
|
180
|
-
notification_type?: NotificationType[] | undefined;
|
|
181
|
-
all_vehicles?: YesNo[] | undefined;
|
|
182
180
|
notification_preference_ids?: string[] | undefined;
|
|
183
181
|
}>;
|
|
184
182
|
type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
|
|
@@ -209,12 +209,20 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
|
209
209
|
return NotificationType2;
|
|
210
210
|
})(NotificationType || {});
|
|
211
211
|
var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
|
|
212
|
-
NotificationPreference2["
|
|
213
|
-
NotificationPreference2["
|
|
214
|
-
NotificationPreference2["FuelRemoval"] = "FuelRemoval";
|
|
215
|
-
NotificationPreference2["FuelRefill"] = "FuelRefill";
|
|
212
|
+
NotificationPreference2["VehicleMoving"] = "VehicleMoving";
|
|
213
|
+
NotificationPreference2["VehicleStopped"] = "VehicleStopped";
|
|
216
214
|
NotificationPreference2["IgnitionOn"] = "IgnitionOn";
|
|
217
215
|
NotificationPreference2["IgnitionOff"] = "IgnitionOff";
|
|
216
|
+
NotificationPreference2["GeofenceEnter"] = "GeofenceEnter";
|
|
217
|
+
NotificationPreference2["GeofenceExit"] = "GeofenceExit";
|
|
218
|
+
NotificationPreference2["FuelSuddenIncrease"] = "FuelSuddenIncrease";
|
|
219
|
+
NotificationPreference2["FuelSuddenDecrease"] = "FuelSuddenDecrease";
|
|
220
|
+
NotificationPreference2["OverSpeed70"] = "OverSpeed70";
|
|
221
|
+
NotificationPreference2["OverSpeed80"] = "OverSpeed80";
|
|
222
|
+
NotificationPreference2["OverSpeed90"] = "OverSpeed90";
|
|
223
|
+
NotificationPreference2["OverSpeed100"] = "OverSpeed100";
|
|
224
|
+
NotificationPreference2["OverSpeed110"] = "OverSpeed110";
|
|
225
|
+
NotificationPreference2["OverSpeed120"] = "OverSpeed120";
|
|
218
226
|
return NotificationPreference2;
|
|
219
227
|
})(NotificationPreference || {});
|
|
220
228
|
|
|
@@ -277,25 +285,25 @@ var UserNotificationPreferencesSchema = z3.object({
|
|
|
277
285
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
278
286
|
notification_name: stringMandatory("Notification Name", 3, 100),
|
|
279
287
|
notification_status: enumMandatory("Notification Status", OnOff, "On" /* On */),
|
|
280
|
-
|
|
288
|
+
notification_list: enumArrayMandatory(
|
|
289
|
+
"Notification List",
|
|
290
|
+
NotificationPreference,
|
|
291
|
+
getAllEnums(NotificationPreference)
|
|
292
|
+
),
|
|
293
|
+
notification_types: enumArrayMandatory(
|
|
281
294
|
"Notification Type",
|
|
282
295
|
NotificationType,
|
|
283
|
-
|
|
296
|
+
getAllEnums(NotificationType)
|
|
284
297
|
),
|
|
285
298
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
286
299
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
287
300
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
NotificationPreference,
|
|
292
|
-
getAllEnums(NotificationPreference)
|
|
293
|
-
),
|
|
294
|
-
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
301
|
+
user_ids: multi_select_optional("User"),
|
|
302
|
+
// Multi selection -> User
|
|
303
|
+
all_vehicles: enumMandatory("All Vehicles", YesNo, "No" /* No */),
|
|
295
304
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
296
305
|
// Multi selection -> MasterVehicle
|
|
297
|
-
|
|
298
|
-
// Multi selection -> User
|
|
306
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
299
307
|
});
|
|
300
308
|
var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
301
309
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
@@ -309,26 +317,17 @@ var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
|
309
317
|
OnOff,
|
|
310
318
|
getAllEnums(OnOff)
|
|
311
319
|
),
|
|
312
|
-
|
|
313
|
-
"Notification Type",
|
|
314
|
-
NotificationType,
|
|
315
|
-
getAllEnums(NotificationType)
|
|
316
|
-
),
|
|
317
|
-
all_vehicles: enumArrayOptional(
|
|
318
|
-
"All Vehicles",
|
|
319
|
-
YesNo,
|
|
320
|
-
getAllEnums(YesNo)
|
|
321
|
-
)
|
|
320
|
+
all_vehicles: enumArrayOptional("All Vehicles", YesNo, getAllEnums(YesNo))
|
|
322
321
|
});
|
|
323
322
|
var toUserNotificationPreferencesPayload = (data) => ({
|
|
324
323
|
organisation_id: data.organisation_id,
|
|
325
324
|
notification_name: data.notification_name,
|
|
326
325
|
notification_status: data.notification_status,
|
|
327
|
-
|
|
326
|
+
notification_types: data.notification_types ?? [],
|
|
327
|
+
notification_list: data.notification_list ?? [],
|
|
328
328
|
mobile_numbers: data.mobile_numbers ?? "",
|
|
329
329
|
email_ids: data.email_ids ?? "",
|
|
330
330
|
cc_email_ids: data.cc_email_ids ?? "",
|
|
331
|
-
notification_list: data.notification_list ?? [],
|
|
332
331
|
all_vehicles: data.all_vehicles,
|
|
333
332
|
status: data.status,
|
|
334
333
|
vehicle_ids: data.UserNotificationPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
@@ -338,11 +337,11 @@ var newUserNotificationPreferencesPayload = () => ({
|
|
|
338
337
|
organisation_id: "",
|
|
339
338
|
notification_name: "",
|
|
340
339
|
notification_status: "On" /* On */,
|
|
341
|
-
|
|
340
|
+
notification_types: [],
|
|
341
|
+
notification_list: [],
|
|
342
342
|
mobile_numbers: "",
|
|
343
343
|
email_ids: "",
|
|
344
344
|
cc_email_ids: "",
|
|
345
|
-
notification_list: [],
|
|
346
345
|
all_vehicles: "Yes" /* Yes */,
|
|
347
346
|
vehicle_ids: [],
|
|
348
347
|
user_ids: [],
|
|
@@ -9,10 +9,10 @@ interface UserReportsPreferences extends Record<string, unknown> {
|
|
|
9
9
|
report_preference_id: string;
|
|
10
10
|
report_name: string;
|
|
11
11
|
report_status: OnOff;
|
|
12
|
-
|
|
12
|
+
report_types: ReportType[];
|
|
13
|
+
report_list: ReportPreference[];
|
|
13
14
|
email_ids: string;
|
|
14
15
|
cc_email_ids?: string;
|
|
15
|
-
report_list: ReportPreference[];
|
|
16
16
|
all_vehicles: YesNo;
|
|
17
17
|
status: Status;
|
|
18
18
|
added_date_time: string;
|
|
@@ -40,34 +40,34 @@ 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
42
|
report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
43
|
-
|
|
43
|
+
report_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>;
|
|
44
|
+
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportPreference>, "many">>;
|
|
44
45
|
email_ids: z.ZodEffects<z.ZodString, string, string>;
|
|
45
46
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
46
47
|
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
47
|
-
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportPreference>, "many">>;
|
|
48
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
49
48
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
status: Status;
|
|
52
|
-
organisation_id: string;
|
|
53
|
-
vehicle_ids: string[];
|
|
54
51
|
email_ids: string;
|
|
55
52
|
cc_email_ids: string;
|
|
56
53
|
all_vehicles: YesNo;
|
|
54
|
+
status: Status;
|
|
55
|
+
organisation_id: string;
|
|
56
|
+
vehicle_ids: string[];
|
|
57
57
|
report_name: string;
|
|
58
58
|
report_status: OnOff;
|
|
59
|
-
|
|
59
|
+
report_types: ReportType[];
|
|
60
60
|
report_list: ReportPreference[];
|
|
61
61
|
}, {
|
|
62
|
-
status: Status;
|
|
63
|
-
organisation_id: string;
|
|
64
62
|
email_ids: string;
|
|
65
63
|
all_vehicles: YesNo;
|
|
64
|
+
status: Status;
|
|
65
|
+
organisation_id: string;
|
|
66
66
|
report_name: string;
|
|
67
67
|
report_status: OnOff;
|
|
68
|
-
report_type: ReportType;
|
|
69
|
-
vehicle_ids?: string[] | undefined;
|
|
70
68
|
cc_email_ids?: string | undefined;
|
|
69
|
+
vehicle_ids?: string[] | undefined;
|
|
70
|
+
report_types?: ReportType[] | undefined;
|
|
71
71
|
report_list?: ReportPreference[] | undefined;
|
|
72
72
|
}>;
|
|
73
73
|
type UserReportPreferencesDTO = z.infer<typeof UserReportPreferencesSchema>;
|
|
@@ -105,9 +105,9 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
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
107
|
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
108
|
-
report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
109
108
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
110
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
+
all_vehicles: YesNo[];
|
|
111
111
|
status: Status[];
|
|
112
112
|
search: string;
|
|
113
113
|
paging: PAGING;
|
|
@@ -130,13 +130,12 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
130
130
|
date_format_id: string;
|
|
131
131
|
time_zone_id: string;
|
|
132
132
|
organisation_ids: string[];
|
|
133
|
-
all_vehicles: YesNo[];
|
|
134
133
|
report_status: OnOff[];
|
|
135
|
-
report_type: ReportType[];
|
|
136
134
|
report_preference_ids: string[];
|
|
137
135
|
}, {
|
|
138
136
|
date_format_id: string;
|
|
139
137
|
time_zone_id: string;
|
|
138
|
+
all_vehicles?: YesNo[] | undefined;
|
|
140
139
|
status?: Status[] | undefined;
|
|
141
140
|
search?: string | undefined;
|
|
142
141
|
paging?: PAGING | undefined;
|
|
@@ -157,9 +156,7 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
157
156
|
}[] | undefined;
|
|
158
157
|
include_master_data?: YesNo | undefined;
|
|
159
158
|
organisation_ids?: string[] | undefined;
|
|
160
|
-
all_vehicles?: YesNo[] | undefined;
|
|
161
159
|
report_status?: OnOff[] | undefined;
|
|
162
|
-
report_type?: ReportType[] | undefined;
|
|
163
160
|
report_preference_ids?: string[] | undefined;
|
|
164
161
|
}>;
|
|
165
162
|
type UserReportPreferencesQueryDTO = z.infer<typeof UserReportPreferencesQuerySchema>;
|
|
@@ -202,9 +202,19 @@ var OnOff = /* @__PURE__ */ ((OnOff2) => {
|
|
|
202
202
|
return OnOff2;
|
|
203
203
|
})(OnOff || {});
|
|
204
204
|
var ReportPreference = /* @__PURE__ */ ((ReportPreference2) => {
|
|
205
|
-
ReportPreference2["
|
|
206
|
-
ReportPreference2["
|
|
207
|
-
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";
|
|
208
218
|
return ReportPreference2;
|
|
209
219
|
})(ReportPreference || {});
|
|
210
220
|
var ReportType = /* @__PURE__ */ ((ReportType2) => {
|
|
@@ -273,45 +283,40 @@ var UserReportPreferencesSchema = z3.object({
|
|
|
273
283
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
274
284
|
report_name: stringMandatory("Report Name", 3, 100),
|
|
275
285
|
report_status: enumMandatory("Report Status", OnOff, "On" /* On */),
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
286
|
+
report_types: enumArrayMandatory(
|
|
287
|
+
"Report Type",
|
|
288
|
+
ReportType,
|
|
289
|
+
getAllEnums(ReportType)
|
|
290
|
+
),
|
|
280
291
|
report_list: enumArrayMandatory(
|
|
281
292
|
"Report List",
|
|
282
293
|
ReportPreference,
|
|
283
294
|
getAllEnums(ReportPreference)
|
|
284
295
|
),
|
|
285
|
-
|
|
286
|
-
|
|
296
|
+
email_ids: stringMandatory("Email IDs", 3, 300),
|
|
297
|
+
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
298
|
+
all_vehicles: enumMandatory("All Vehicles", YesNo, "No" /* No */),
|
|
299
|
+
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
287
300
|
// Multi selection -> MasterVehicle
|
|
301
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
288
302
|
});
|
|
289
303
|
var UserReportPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
290
304
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
291
305
|
// ✅ Multi-Selection -> UserOrganisation
|
|
292
306
|
report_preference_ids: multi_select_optional("UserReportPreferences"),
|
|
293
|
-
// ✅ Multi-Selection ->
|
|
307
|
+
// ✅ Multi-Selection -> UserReportPreferences
|
|
294
308
|
report_status: enumArrayOptional("Report Status", OnOff, getAllEnums(OnOff)),
|
|
295
|
-
|
|
296
|
-
"Report Type",
|
|
297
|
-
ReportType,
|
|
298
|
-
getAllEnums(ReportType)
|
|
299
|
-
),
|
|
300
|
-
all_vehicles: enumArrayOptional(
|
|
301
|
-
"All Vehicles",
|
|
302
|
-
YesNo,
|
|
303
|
-
getAllEnums(YesNo)
|
|
304
|
-
)
|
|
309
|
+
all_vehicles: enumArrayOptional("All Vehicles", YesNo, getAllEnums(YesNo))
|
|
305
310
|
});
|
|
306
311
|
var toUserReportsPreferencesPayload = (data) => ({
|
|
307
312
|
organisation_id: data.organisation_id,
|
|
308
313
|
report_name: data.report_name,
|
|
309
314
|
report_status: data.report_status,
|
|
310
|
-
|
|
315
|
+
report_types: data.report_types,
|
|
316
|
+
report_list: data.report_list,
|
|
311
317
|
email_ids: data.email_ids,
|
|
312
318
|
cc_email_ids: data.report_name,
|
|
313
319
|
all_vehicles: data.all_vehicles,
|
|
314
|
-
report_list: data.report_list,
|
|
315
320
|
vehicle_ids: data.UserReportsPreferencesVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
316
321
|
status: "Active" /* Active */
|
|
317
322
|
});
|
|
@@ -319,11 +324,11 @@ var newUserReportsPreferencesPayload = () => ({
|
|
|
319
324
|
organisation_id: "",
|
|
320
325
|
report_name: "",
|
|
321
326
|
report_status: "On" /* On */,
|
|
322
|
-
|
|
327
|
+
report_types: [],
|
|
328
|
+
report_list: [],
|
|
323
329
|
email_ids: "",
|
|
324
330
|
cc_email_ids: "",
|
|
325
331
|
all_vehicles: "Yes" /* Yes */,
|
|
326
|
-
report_list: [],
|
|
327
332
|
vehicle_ids: [],
|
|
328
333
|
status: "Active" /* Active */
|
|
329
334
|
});
|