vms-nest-prisma-api-document 24.0.0 → 26.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 +28 -12
- package/dist/core/Enums.js +34 -14
- 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/account/bookmark_service.d.ts +9 -9
- package/dist/services/{gps/features/user_notification_preferences.service.d.ts → account/notification_preferences.service.d.ts} +78 -46
- package/dist/services/{gps/features/user_notification_preferences.service.js → account/notification_preferences.service.js} +80 -63
- package/dist/services/{gps/features/user_report_preferences.service.d.ts → account/report_preferences.service.d.ts} +70 -59
- package/dist/services/{gps/features/user_report_preferences.service.js → account/report_preferences.service.js} +64 -31
- package/dist/services/account/ticket_service.d.ts +40 -32
- package/dist/services/account/ticket_service.js +27 -23
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +45 -45
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +28 -28
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +7 -7
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +79 -64
- package/dist/services/gps/features/gps_live_track_share_link_service.js +62 -84
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +69 -47
- package/dist/services/gps/features/gps_track_history_share_link_service.js +68 -44
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.js +73 -63
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/{user_organisation_service-C-FbPQmd.d.ts → user_organisation_service-DL7cDTcV.d.ts} +115 -89
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ var apiDelete = async (url) => {
|
|
|
22
22
|
return response.data;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
// src/services/
|
|
25
|
+
// src/services/account/notification_preferences.service.ts
|
|
26
26
|
import { z as z3 } from "zod";
|
|
27
27
|
|
|
28
28
|
// src/zod_utils/zod_utils.ts
|
|
@@ -203,30 +203,25 @@ var OnOff = /* @__PURE__ */ ((OnOff2) => {
|
|
|
203
203
|
OnOff2["Off"] = "Off";
|
|
204
204
|
return OnOff2;
|
|
205
205
|
})(OnOff || {});
|
|
206
|
-
var
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
NotificationPreference2["OverSpeed100"] = "OverSpeed100";
|
|
226
|
-
NotificationPreference2["OverSpeed110"] = "OverSpeed110";
|
|
227
|
-
NotificationPreference2["OverSpeed120"] = "OverSpeed120";
|
|
228
|
-
return NotificationPreference2;
|
|
229
|
-
})(NotificationPreference || {});
|
|
206
|
+
var NotificationList = /* @__PURE__ */ ((NotificationList2) => {
|
|
207
|
+
NotificationList2["VehicleMoving"] = "VehicleMoving";
|
|
208
|
+
NotificationList2["VehicleStopped"] = "VehicleStopped";
|
|
209
|
+
NotificationList2["IgnitionOn"] = "IgnitionOn";
|
|
210
|
+
NotificationList2["IgnitionOff"] = "IgnitionOff";
|
|
211
|
+
NotificationList2["GeofenceEnter"] = "GeofenceEnter";
|
|
212
|
+
NotificationList2["GeofenceExit"] = "GeofenceExit";
|
|
213
|
+
NotificationList2["FuelSuddenIncrease"] = "FuelSuddenIncrease";
|
|
214
|
+
NotificationList2["FuelSuddenDecrease"] = "FuelSuddenDecrease";
|
|
215
|
+
NotificationList2["OverSpeed"] = "OverSpeed";
|
|
216
|
+
return NotificationList2;
|
|
217
|
+
})(NotificationList || {});
|
|
218
|
+
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
219
|
+
NotificationChannel2["Push"] = "Push";
|
|
220
|
+
NotificationChannel2["WhatsApp"] = "WhatsApp";
|
|
221
|
+
NotificationChannel2["SMS"] = "SMS";
|
|
222
|
+
NotificationChannel2["Email"] = "Email";
|
|
223
|
+
return NotificationChannel2;
|
|
224
|
+
})(NotificationChannel || {});
|
|
230
225
|
|
|
231
226
|
// src/zod_utils/zod_base_schema.ts
|
|
232
227
|
var OrderBySchema = z2.array(
|
|
@@ -286,99 +281,121 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
286
281
|
// ✅ Single-selection -> MasterMainTimeZone
|
|
287
282
|
});
|
|
288
283
|
|
|
289
|
-
// src/services/
|
|
290
|
-
var URL = "
|
|
284
|
+
// src/services/account/notification_preferences.service.ts
|
|
285
|
+
var URL = "account/notification_preferences";
|
|
291
286
|
var ENDPOINTS = {
|
|
292
287
|
find: `${URL}/search`,
|
|
293
288
|
create: URL,
|
|
294
289
|
update: (id) => `${URL}/${id}`,
|
|
295
290
|
delete: (id) => `${URL}/${id}`
|
|
296
291
|
};
|
|
297
|
-
var
|
|
292
|
+
var OrganisationNotificationPreferenceSchema = z3.object({
|
|
298
293
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
299
294
|
notification_name: stringMandatory("Notification Name", 3, 100),
|
|
300
295
|
notification_status: enumMandatory("Notification Status", OnOff, "On" /* On */),
|
|
301
|
-
|
|
302
|
-
"Notification
|
|
303
|
-
|
|
304
|
-
getAllEnums(
|
|
305
|
-
),
|
|
306
|
-
notification_types: enumArrayMandatory(
|
|
307
|
-
"Notification Type",
|
|
308
|
-
NotificationType,
|
|
309
|
-
getAllEnums(NotificationType)
|
|
296
|
+
notification_channels: enumArrayMandatory(
|
|
297
|
+
"Notification Channels",
|
|
298
|
+
NotificationChannel,
|
|
299
|
+
getAllEnums(NotificationChannel)
|
|
310
300
|
),
|
|
311
301
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
312
302
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
313
303
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
304
|
+
all_users: enumMandatory("All Users", YesNo, "No" /* No */),
|
|
314
305
|
user_ids: multi_select_optional("User"),
|
|
315
306
|
// Multi selection -> User
|
|
307
|
+
notification_list: enumArrayMandatory(
|
|
308
|
+
"Notification List",
|
|
309
|
+
NotificationList,
|
|
310
|
+
getAllEnums(NotificationList)
|
|
311
|
+
),
|
|
312
|
+
over_speed_limit: numberOptional("Over Speed Limit"),
|
|
313
|
+
all_geofences: enumMandatory("All Geofences", YesNo, "No" /* No */),
|
|
314
|
+
gps_geofence_ids: multi_select_optional("GPSGeofence"),
|
|
315
|
+
// Multi selection -> GPSGeofence
|
|
316
316
|
all_vehicles: enumMandatory("All Vehicles", YesNo, "No" /* No */),
|
|
317
317
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
318
318
|
// Multi selection -> MasterVehicle
|
|
319
319
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
320
320
|
});
|
|
321
|
-
var
|
|
321
|
+
var OrganisationNotificationPreferenceQuerySchema = BaseQuerySchema.extend({
|
|
322
322
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
323
323
|
// ✅ Multi-Selection -> UserOrganisation
|
|
324
324
|
notification_preference_ids: multi_select_optional(
|
|
325
|
-
"
|
|
325
|
+
"OrganisationNotificationPreference"
|
|
326
326
|
),
|
|
327
|
-
// ✅ Multi-Selection ->
|
|
327
|
+
// ✅ Multi-Selection -> OrganisationNotificationPreference
|
|
328
328
|
notification_status: enumArrayOptional(
|
|
329
329
|
"Notification Status",
|
|
330
330
|
OnOff,
|
|
331
331
|
getAllEnums(OnOff)
|
|
332
332
|
),
|
|
333
|
-
|
|
333
|
+
notification_channels: enumArrayOptional(
|
|
334
|
+
"Notification Channels",
|
|
335
|
+
NotificationChannel,
|
|
336
|
+
getAllEnums(NotificationChannel)
|
|
337
|
+
),
|
|
338
|
+
notification_list: enumArrayOptional(
|
|
339
|
+
"Notification List",
|
|
340
|
+
NotificationList,
|
|
341
|
+
getAllEnums(NotificationList)
|
|
342
|
+
)
|
|
334
343
|
});
|
|
335
|
-
var
|
|
344
|
+
var toOrganisationNotificationPreferencePayload = (data) => ({
|
|
336
345
|
organisation_id: data.organisation_id,
|
|
337
346
|
notification_name: data.notification_name,
|
|
338
347
|
notification_status: data.notification_status,
|
|
339
|
-
|
|
340
|
-
notification_list: data.notification_list ?? [],
|
|
348
|
+
notification_channels: data.notification_channels ?? [],
|
|
341
349
|
mobile_numbers: data.mobile_numbers ?? "",
|
|
342
350
|
email_ids: data.email_ids ?? "",
|
|
343
351
|
cc_email_ids: data.cc_email_ids ?? "",
|
|
352
|
+
all_users: data.all_users,
|
|
353
|
+
notification_list: data.notification_list ?? [],
|
|
354
|
+
over_speed_limit: data.over_speed_limit ?? 60,
|
|
355
|
+
all_geofences: data.all_geofences,
|
|
344
356
|
all_vehicles: data.all_vehicles,
|
|
345
357
|
status: data.status,
|
|
346
|
-
|
|
347
|
-
|
|
358
|
+
user_ids: data.OrganisationNotificationPreferenceUserLink?.map((v) => v.user_id) ?? [],
|
|
359
|
+
gps_geofence_ids: data.OrganisationNotificationPreferenceGeofenceLink?.map((v) => v.gps_geofence_id) ?? [],
|
|
360
|
+
vehicle_ids: data.OrganisationNotificationPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? []
|
|
348
361
|
});
|
|
349
|
-
var
|
|
362
|
+
var newOrganisationNotificationPreferencePayload = () => ({
|
|
350
363
|
organisation_id: "",
|
|
351
364
|
notification_name: "",
|
|
352
365
|
notification_status: "On" /* On */,
|
|
353
|
-
|
|
354
|
-
notification_list: [],
|
|
366
|
+
notification_channels: [],
|
|
355
367
|
mobile_numbers: "",
|
|
356
368
|
email_ids: "",
|
|
357
369
|
cc_email_ids: "",
|
|
370
|
+
all_users: "Yes" /* Yes */,
|
|
371
|
+
notification_list: [],
|
|
372
|
+
over_speed_limit: 0,
|
|
373
|
+
all_geofences: "Yes" /* Yes */,
|
|
358
374
|
all_vehicles: "Yes" /* Yes */,
|
|
359
|
-
|
|
375
|
+
status: "Active" /* Active */,
|
|
360
376
|
user_ids: [],
|
|
361
|
-
|
|
377
|
+
gps_geofence_ids: [],
|
|
378
|
+
vehicle_ids: []
|
|
362
379
|
});
|
|
363
|
-
var
|
|
380
|
+
var findOrganisationNotificationPreference = async (data) => {
|
|
364
381
|
return apiPost(ENDPOINTS.find, data);
|
|
365
382
|
};
|
|
366
|
-
var
|
|
383
|
+
var createOrganisationNotificationPreference = async (data) => {
|
|
367
384
|
return apiPost(ENDPOINTS.create, data);
|
|
368
385
|
};
|
|
369
|
-
var
|
|
386
|
+
var updateOrganisationNotificationPreference = async (id, data) => {
|
|
370
387
|
return apiPatch(ENDPOINTS.update(id), data);
|
|
371
388
|
};
|
|
372
|
-
var
|
|
389
|
+
var deleteOrganisationNotificationPreference = async (id) => {
|
|
373
390
|
return apiDelete(ENDPOINTS.delete(id));
|
|
374
391
|
};
|
|
375
392
|
export {
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
393
|
+
OrganisationNotificationPreferenceQuerySchema,
|
|
394
|
+
OrganisationNotificationPreferenceSchema,
|
|
395
|
+
createOrganisationNotificationPreference,
|
|
396
|
+
deleteOrganisationNotificationPreference,
|
|
397
|
+
findOrganisationNotificationPreference,
|
|
398
|
+
newOrganisationNotificationPreferencePayload,
|
|
399
|
+
toOrganisationNotificationPreferencePayload,
|
|
400
|
+
updateOrganisationNotificationPreference
|
|
384
401
|
};
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { OnOff, ReportType, ReportList, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '
|
|
2
|
-
import { FBR, SBR } from '
|
|
1
|
+
import { OnOff, ReportType, ReportList, ReportChannel, 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 '
|
|
5
|
-
import '
|
|
6
|
-
import '
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../user_organisation_service-DL7cDTcV.js';
|
|
5
|
+
import '../../zod_utils/zod_base_schema.js';
|
|
6
|
+
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
interface OrganisationReportsPreference 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
13
|
report_list: ReportList[];
|
|
14
|
-
|
|
14
|
+
report_channels: ReportChannel[];
|
|
15
|
+
mobile_numbers?: string;
|
|
16
|
+
email_ids?: string;
|
|
15
17
|
cc_email_ids?: string;
|
|
16
18
|
all_vehicles: YesNo;
|
|
17
19
|
status: Status;
|
|
@@ -19,15 +21,15 @@ interface UserReportsPreferences extends Record<string, unknown> {
|
|
|
19
21
|
modified_date_time: string;
|
|
20
22
|
organisation_id: string;
|
|
21
23
|
UserOrganisation?: UserOrganisation;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
OrganisationReportsPreferenceVehicleLink: OrganisationReportsPreferenceVehicleLink[];
|
|
25
|
+
OrganisationReportsAutomationMail: OrganisationReportsAutomationMail[];
|
|
24
26
|
_count?: {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
OrganisationReportsPreferenceVehicleLink: number;
|
|
28
|
+
OrganisationReportsAutomationMail: number;
|
|
27
29
|
};
|
|
28
30
|
}
|
|
29
|
-
interface
|
|
30
|
-
|
|
31
|
+
interface OrganisationReportsPreferenceVehicleLink extends Record<string, unknown> {
|
|
32
|
+
report_preference_vehicle_id: string;
|
|
31
33
|
status: Status;
|
|
32
34
|
added_date_time: string;
|
|
33
35
|
modified_date_time: string;
|
|
@@ -36,15 +38,15 @@ interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
|
|
|
36
38
|
vehicle_number?: string;
|
|
37
39
|
vehicle_type?: string;
|
|
38
40
|
report_preference_id: string;
|
|
39
|
-
|
|
41
|
+
OrganisationReportsPreference?: OrganisationReportsPreference;
|
|
40
42
|
}
|
|
41
|
-
interface
|
|
42
|
-
|
|
43
|
+
interface OrganisationReportsAutomationMail extends Record<string, unknown> {
|
|
44
|
+
report_automation_mail_id: string;
|
|
43
45
|
report_name: string;
|
|
44
46
|
report_type: ReportType;
|
|
45
|
-
from_date
|
|
46
|
-
to_date
|
|
47
|
-
date
|
|
47
|
+
from_date?: string;
|
|
48
|
+
to_date?: string;
|
|
49
|
+
date?: string;
|
|
48
50
|
all_vehicles: YesNo;
|
|
49
51
|
status: Status;
|
|
50
52
|
added_date_time: string;
|
|
@@ -52,14 +54,14 @@ interface UserReportsAutomationMail extends Record<string, unknown> {
|
|
|
52
54
|
organisation_id: string;
|
|
53
55
|
UserOrganisation?: UserOrganisation;
|
|
54
56
|
report_preference_id: string;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
+
OrganisationReportsPreference?: OrganisationReportsPreference;
|
|
58
|
+
OrganisationReportsAutomationMailVehicleLink: OrganisationReportsAutomationMailVehicleLink[];
|
|
57
59
|
_count?: {
|
|
58
|
-
|
|
60
|
+
OrganisationReportsAutomationMailVehicleLink: number;
|
|
59
61
|
};
|
|
60
62
|
}
|
|
61
|
-
interface
|
|
62
|
-
|
|
63
|
+
interface OrganisationReportsAutomationMailVehicleLink extends Record<string, unknown> {
|
|
64
|
+
report_automation_mail_vehicle_id: string;
|
|
63
65
|
status: Status;
|
|
64
66
|
added_date_time: string;
|
|
65
67
|
modified_date_time: string;
|
|
@@ -68,9 +70,9 @@ interface UserReportsAutomationVehicleLink extends Record<string, unknown> {
|
|
|
68
70
|
vehicle_number?: string;
|
|
69
71
|
vehicle_type?: string;
|
|
70
72
|
automation_mail_id: string;
|
|
71
|
-
|
|
73
|
+
OrganisationReportsAutomationMail?: OrganisationReportsAutomationMail;
|
|
72
74
|
}
|
|
73
|
-
declare const
|
|
75
|
+
declare const OrganisationReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
74
76
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
75
77
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
76
78
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -103,12 +105,11 @@ declare const UserReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
103
105
|
} & {
|
|
104
106
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
105
107
|
report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
|
-
|
|
107
|
-
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
108
|
+
report_automation_mail_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
108
109
|
report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
109
110
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
all_vehicles: YesNo[];
|
|
111
111
|
status: Status[];
|
|
112
|
+
report_type: ReportType[];
|
|
112
113
|
search: string;
|
|
113
114
|
paging: PAGING;
|
|
114
115
|
page_count: number;
|
|
@@ -130,14 +131,13 @@ declare const UserReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
130
131
|
date_format_id: string;
|
|
131
132
|
time_zone_id: string;
|
|
132
133
|
organisation_ids: string[];
|
|
133
|
-
report_type: ReportType[];
|
|
134
134
|
report_preference_ids: string[];
|
|
135
|
-
|
|
135
|
+
report_automation_mail_ids: string[];
|
|
136
136
|
}, {
|
|
137
137
|
date_format_id: string;
|
|
138
138
|
time_zone_id: string;
|
|
139
|
-
all_vehicles?: YesNo[] | undefined;
|
|
140
139
|
status?: Status[] | undefined;
|
|
140
|
+
report_type?: ReportType[] | undefined;
|
|
141
141
|
search?: string | undefined;
|
|
142
142
|
paging?: PAGING | undefined;
|
|
143
143
|
page_count?: unknown;
|
|
@@ -157,47 +157,52 @@ declare const UserReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
include_master_data?: YesNo | undefined;
|
|
159
159
|
organisation_ids?: string[] | undefined;
|
|
160
|
-
report_type?: ReportType[] | undefined;
|
|
161
160
|
report_preference_ids?: string[] | undefined;
|
|
162
|
-
|
|
161
|
+
report_automation_mail_ids?: string[] | undefined;
|
|
163
162
|
}>;
|
|
164
|
-
type
|
|
165
|
-
declare const
|
|
163
|
+
type OrganisationReportsAutomationMailQueryDTO = z.infer<typeof OrganisationReportsAutomationMailQuerySchema>;
|
|
164
|
+
declare const OrganisationReportsPreferenceSchema: z.ZodObject<{
|
|
166
165
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
167
166
|
report_name: z.ZodEffects<z.ZodString, string, string>;
|
|
168
167
|
report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
169
168
|
report_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>;
|
|
170
169
|
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportList>, "many">>;
|
|
170
|
+
report_channels: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportChannel>, "many">>;
|
|
171
|
+
mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
171
172
|
email_ids: z.ZodEffects<z.ZodString, string, string>;
|
|
172
173
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
173
174
|
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
174
175
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
175
176
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
176
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
+
report_name: string;
|
|
179
|
+
report_status: OnOff;
|
|
180
|
+
report_types: ReportType[];
|
|
181
|
+
report_list: ReportList[];
|
|
182
|
+
report_channels: ReportChannel[];
|
|
183
|
+
mobile_numbers: string;
|
|
177
184
|
email_ids: string;
|
|
178
185
|
cc_email_ids: string;
|
|
179
186
|
all_vehicles: YesNo;
|
|
180
187
|
status: Status;
|
|
181
188
|
organisation_id: string;
|
|
182
189
|
vehicle_ids: string[];
|
|
190
|
+
}, {
|
|
183
191
|
report_name: string;
|
|
184
192
|
report_status: OnOff;
|
|
185
|
-
report_types: ReportType[];
|
|
186
|
-
report_list: ReportList[];
|
|
187
|
-
}, {
|
|
188
193
|
email_ids: string;
|
|
189
194
|
all_vehicles: YesNo;
|
|
190
195
|
status: Status;
|
|
191
196
|
organisation_id: string;
|
|
192
|
-
report_name: string;
|
|
193
|
-
report_status: OnOff;
|
|
194
|
-
cc_email_ids?: string | undefined;
|
|
195
|
-
vehicle_ids?: string[] | undefined;
|
|
196
197
|
report_types?: ReportType[] | undefined;
|
|
197
198
|
report_list?: ReportList[] | undefined;
|
|
199
|
+
report_channels?: ReportChannel[] | undefined;
|
|
200
|
+
mobile_numbers?: string | undefined;
|
|
201
|
+
cc_email_ids?: string | undefined;
|
|
202
|
+
vehicle_ids?: string[] | undefined;
|
|
198
203
|
}>;
|
|
199
|
-
type
|
|
200
|
-
declare const
|
|
204
|
+
type OrganisationReportsPreferenceDTO = z.infer<typeof OrganisationReportsPreferenceSchema>;
|
|
205
|
+
declare const OrganisationReportsPreferenceQuerySchema: z.ZodObject<{
|
|
201
206
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
202
207
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
203
208
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -231,9 +236,14 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
231
236
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
232
237
|
report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
233
238
|
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
234
|
-
|
|
239
|
+
report_types: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
240
|
+
report_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportList>, "many">>>;
|
|
241
|
+
report_channels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportChannel>, "many">>>;
|
|
235
242
|
}, "strip", z.ZodTypeAny, {
|
|
236
|
-
|
|
243
|
+
report_status: OnOff[];
|
|
244
|
+
report_types: ReportType[];
|
|
245
|
+
report_list: ReportList[];
|
|
246
|
+
report_channels: ReportChannel[];
|
|
237
247
|
status: Status[];
|
|
238
248
|
search: string;
|
|
239
249
|
paging: PAGING;
|
|
@@ -256,12 +266,14 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
256
266
|
date_format_id: string;
|
|
257
267
|
time_zone_id: string;
|
|
258
268
|
organisation_ids: string[];
|
|
259
|
-
report_status: OnOff[];
|
|
260
269
|
report_preference_ids: string[];
|
|
261
270
|
}, {
|
|
262
271
|
date_format_id: string;
|
|
263
272
|
time_zone_id: string;
|
|
264
|
-
|
|
273
|
+
report_status?: OnOff[] | undefined;
|
|
274
|
+
report_types?: ReportType[] | undefined;
|
|
275
|
+
report_list?: ReportList[] | undefined;
|
|
276
|
+
report_channels?: ReportChannel[] | undefined;
|
|
265
277
|
status?: Status[] | undefined;
|
|
266
278
|
search?: string | undefined;
|
|
267
279
|
paging?: PAGING | undefined;
|
|
@@ -282,16 +294,15 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
282
294
|
}[] | undefined;
|
|
283
295
|
include_master_data?: YesNo | undefined;
|
|
284
296
|
organisation_ids?: string[] | undefined;
|
|
285
|
-
report_status?: OnOff[] | undefined;
|
|
286
297
|
report_preference_ids?: string[] | undefined;
|
|
287
298
|
}>;
|
|
288
|
-
type
|
|
289
|
-
declare const
|
|
290
|
-
declare const
|
|
291
|
-
declare const
|
|
292
|
-
declare const
|
|
293
|
-
declare const
|
|
294
|
-
declare const
|
|
295
|
-
declare const findUserReportsAutomationMail: (data:
|
|
299
|
+
type OrganisationReportsPreferenceQueryDTO = z.infer<typeof OrganisationReportsPreferenceQuerySchema>;
|
|
300
|
+
declare const toOrganisationNotificationPreferencePayload: (data: OrganisationReportsPreference) => OrganisationReportsPreferenceDTO;
|
|
301
|
+
declare const newOrganisationNotificationPreferencePayload: () => OrganisationReportsPreferenceDTO;
|
|
302
|
+
declare const findOrganisationNotificationPreference: (data: OrganisationReportsPreferenceQueryDTO) => Promise<FBR<OrganisationReportsPreference[]>>;
|
|
303
|
+
declare const createOrganisationNotificationPreference: (data: OrganisationReportsPreferenceDTO) => Promise<SBR>;
|
|
304
|
+
declare const updateOrganisationNotificationPreference: (id: string, data: OrganisationReportsPreferenceDTO) => Promise<SBR>;
|
|
305
|
+
declare const deleteOrganisationNotificationPreference: (id: string) => Promise<SBR>;
|
|
306
|
+
declare const findUserReportsAutomationMail: (data: OrganisationReportsAutomationMailQueryDTO) => Promise<FBR<OrganisationReportsAutomationMail[]>>;
|
|
296
307
|
|
|
297
|
-
export { type
|
|
308
|
+
export { type OrganisationReportsAutomationMail, type OrganisationReportsAutomationMailQueryDTO, OrganisationReportsAutomationMailQuerySchema, type OrganisationReportsAutomationMailVehicleLink, type OrganisationReportsPreference, type OrganisationReportsPreferenceDTO, type OrganisationReportsPreferenceQueryDTO, OrganisationReportsPreferenceQuerySchema, OrganisationReportsPreferenceSchema, type OrganisationReportsPreferenceVehicleLink, createOrganisationNotificationPreference, deleteOrganisationNotificationPreference, findOrganisationNotificationPreference, findUserReportsAutomationMail, newOrganisationNotificationPreferencePayload, toOrganisationNotificationPreferencePayload, updateOrganisationNotificationPreference };
|