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
package/dist/core/Enums.d.ts
CHANGED
|
@@ -136,12 +136,6 @@ declare enum DeviceType {
|
|
|
136
136
|
IPhone = "IPhone",
|
|
137
137
|
Web = "Web"
|
|
138
138
|
}
|
|
139
|
-
declare enum NotificationType {
|
|
140
|
-
Whatsapp = "Whatsapp",
|
|
141
|
-
Message = "Message",
|
|
142
|
-
Email = "Email",
|
|
143
|
-
Push = "Push"
|
|
144
|
-
}
|
|
145
139
|
declare enum ReportList {
|
|
146
140
|
AllVehiclesFullAnalysisReport = "AllVehiclesFullAnalysisReport",
|
|
147
141
|
AllDriversPerformanceReport = "AllDriversPerformanceReport",
|
|
@@ -157,6 +151,33 @@ declare enum ReportList {
|
|
|
157
151
|
FuelRefillReport = "FuelRefillReport",
|
|
158
152
|
FuelRemovalReport = "FuelRemovalReport"
|
|
159
153
|
}
|
|
154
|
+
declare enum NotificationList {
|
|
155
|
+
VehicleMoving = "VehicleMoving",
|
|
156
|
+
VehicleStopped = "VehicleStopped",
|
|
157
|
+
IgnitionOn = "IgnitionOn",
|
|
158
|
+
IgnitionOff = "IgnitionOff",
|
|
159
|
+
GeofenceEnter = "GeofenceEnter",
|
|
160
|
+
GeofenceExit = "GeofenceExit",
|
|
161
|
+
FuelSuddenIncrease = "FuelSuddenIncrease",
|
|
162
|
+
FuelSuddenDecrease = "FuelSuddenDecrease",
|
|
163
|
+
OverSpeed = "OverSpeed"
|
|
164
|
+
}
|
|
165
|
+
declare enum NotificationChannel {
|
|
166
|
+
Push = "Push",
|
|
167
|
+
WhatsApp = "WhatsApp",
|
|
168
|
+
SMS = "SMS",
|
|
169
|
+
Email = "Email"
|
|
170
|
+
}
|
|
171
|
+
declare enum ReportChannel {
|
|
172
|
+
WhatsApp = "WhatsApp",
|
|
173
|
+
SMS = "SMS",
|
|
174
|
+
Email = "Email"
|
|
175
|
+
}
|
|
176
|
+
declare enum ReportType {
|
|
177
|
+
Daily = "Daily",
|
|
178
|
+
Weekly = "Weekly",
|
|
179
|
+
Monthly = "Monthly"
|
|
180
|
+
}
|
|
160
181
|
declare enum NotificationPreference {
|
|
161
182
|
VehicleMoving = "VehicleMoving",
|
|
162
183
|
VehicleStopped = "VehicleStopped",
|
|
@@ -173,11 +194,6 @@ declare enum NotificationPreference {
|
|
|
173
194
|
OverSpeed110 = "OverSpeed110",
|
|
174
195
|
OverSpeed120 = "OverSpeed120"
|
|
175
196
|
}
|
|
176
|
-
declare enum ReportType {
|
|
177
|
-
Daily = "Daily",
|
|
178
|
-
Weekly = "Weekly",
|
|
179
|
-
Monthly = "Monthly"
|
|
180
|
-
}
|
|
181
197
|
declare enum GeofenceType {
|
|
182
198
|
Polygon = "Polygon",
|
|
183
199
|
Circle = "Circle"
|
|
@@ -628,4 +644,4 @@ declare enum PaymentMode {
|
|
|
628
644
|
Other = "Other"
|
|
629
645
|
}
|
|
630
646
|
|
|
631
|
-
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,
|
|
647
|
+
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, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceType, SimStatus, Status, StockType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TyreStatus, VerifyStatus, YesNo };
|
package/dist/core/Enums.js
CHANGED
|
@@ -163,13 +163,6 @@ var DeviceType = /* @__PURE__ */ ((DeviceType2) => {
|
|
|
163
163
|
DeviceType2["Web"] = "Web";
|
|
164
164
|
return DeviceType2;
|
|
165
165
|
})(DeviceType || {});
|
|
166
|
-
var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
167
|
-
NotificationType2["Whatsapp"] = "Whatsapp";
|
|
168
|
-
NotificationType2["Message"] = "Message";
|
|
169
|
-
NotificationType2["Email"] = "Email";
|
|
170
|
-
NotificationType2["Push"] = "Push";
|
|
171
|
-
return NotificationType2;
|
|
172
|
-
})(NotificationType || {});
|
|
173
166
|
var ReportList = /* @__PURE__ */ ((ReportList2) => {
|
|
174
167
|
ReportList2["AllVehiclesFullAnalysisReport"] = "AllVehiclesFullAnalysisReport";
|
|
175
168
|
ReportList2["AllDriversPerformanceReport"] = "AllDriversPerformanceReport";
|
|
@@ -186,6 +179,37 @@ var ReportList = /* @__PURE__ */ ((ReportList2) => {
|
|
|
186
179
|
ReportList2["FuelRemovalReport"] = "FuelRemovalReport";
|
|
187
180
|
return ReportList2;
|
|
188
181
|
})(ReportList || {});
|
|
182
|
+
var NotificationList = /* @__PURE__ */ ((NotificationList2) => {
|
|
183
|
+
NotificationList2["VehicleMoving"] = "VehicleMoving";
|
|
184
|
+
NotificationList2["VehicleStopped"] = "VehicleStopped";
|
|
185
|
+
NotificationList2["IgnitionOn"] = "IgnitionOn";
|
|
186
|
+
NotificationList2["IgnitionOff"] = "IgnitionOff";
|
|
187
|
+
NotificationList2["GeofenceEnter"] = "GeofenceEnter";
|
|
188
|
+
NotificationList2["GeofenceExit"] = "GeofenceExit";
|
|
189
|
+
NotificationList2["FuelSuddenIncrease"] = "FuelSuddenIncrease";
|
|
190
|
+
NotificationList2["FuelSuddenDecrease"] = "FuelSuddenDecrease";
|
|
191
|
+
NotificationList2["OverSpeed"] = "OverSpeed";
|
|
192
|
+
return NotificationList2;
|
|
193
|
+
})(NotificationList || {});
|
|
194
|
+
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
195
|
+
NotificationChannel2["Push"] = "Push";
|
|
196
|
+
NotificationChannel2["WhatsApp"] = "WhatsApp";
|
|
197
|
+
NotificationChannel2["SMS"] = "SMS";
|
|
198
|
+
NotificationChannel2["Email"] = "Email";
|
|
199
|
+
return NotificationChannel2;
|
|
200
|
+
})(NotificationChannel || {});
|
|
201
|
+
var ReportChannel = /* @__PURE__ */ ((ReportChannel2) => {
|
|
202
|
+
ReportChannel2["WhatsApp"] = "WhatsApp";
|
|
203
|
+
ReportChannel2["SMS"] = "SMS";
|
|
204
|
+
ReportChannel2["Email"] = "Email";
|
|
205
|
+
return ReportChannel2;
|
|
206
|
+
})(ReportChannel || {});
|
|
207
|
+
var ReportType = /* @__PURE__ */ ((ReportType2) => {
|
|
208
|
+
ReportType2["Daily"] = "Daily";
|
|
209
|
+
ReportType2["Weekly"] = "Weekly";
|
|
210
|
+
ReportType2["Monthly"] = "Monthly";
|
|
211
|
+
return ReportType2;
|
|
212
|
+
})(ReportType || {});
|
|
189
213
|
var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
|
|
190
214
|
NotificationPreference2["VehicleMoving"] = "VehicleMoving";
|
|
191
215
|
NotificationPreference2["VehicleStopped"] = "VehicleStopped";
|
|
@@ -203,12 +227,6 @@ var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
|
|
|
203
227
|
NotificationPreference2["OverSpeed120"] = "OverSpeed120";
|
|
204
228
|
return NotificationPreference2;
|
|
205
229
|
})(NotificationPreference || {});
|
|
206
|
-
var ReportType = /* @__PURE__ */ ((ReportType2) => {
|
|
207
|
-
ReportType2["Daily"] = "Daily";
|
|
208
|
-
ReportType2["Weekly"] = "Weekly";
|
|
209
|
-
ReportType2["Monthly"] = "Monthly";
|
|
210
|
-
return ReportType2;
|
|
211
|
-
})(ReportType || {});
|
|
212
230
|
var GeofenceType = /* @__PURE__ */ ((GeofenceType2) => {
|
|
213
231
|
GeofenceType2["Polygon"] = "Polygon";
|
|
214
232
|
GeofenceType2["Circle"] = "Circle";
|
|
@@ -740,8 +758,9 @@ export {
|
|
|
740
758
|
MenuType,
|
|
741
759
|
Module,
|
|
742
760
|
NightDriving,
|
|
761
|
+
NotificationChannel,
|
|
762
|
+
NotificationList,
|
|
743
763
|
NotificationPreference,
|
|
744
|
-
NotificationType,
|
|
745
764
|
OdometerSource,
|
|
746
765
|
OnOff,
|
|
747
766
|
OrderBy,
|
|
@@ -759,6 +778,7 @@ export {
|
|
|
759
778
|
ReminderSource,
|
|
760
779
|
ReminderStatus,
|
|
761
780
|
ReminderTriggerType,
|
|
781
|
+
ReportChannel,
|
|
762
782
|
ReportList,
|
|
763
783
|
ReportType,
|
|
764
784
|
RequestType,
|
|
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
user_id: string;
|
|
24
24
|
organisation_id: string;
|
|
25
|
-
country_id: string;
|
|
26
25
|
login_from: LoginFrom;
|
|
26
|
+
country_id: string;
|
|
27
27
|
os_details: Record<string, any>;
|
|
28
28
|
ip_details: Record<string, any>;
|
|
29
29
|
}, {
|
|
30
30
|
user_id: string;
|
|
31
31
|
organisation_id: string;
|
|
32
|
-
country_id: string;
|
|
33
32
|
login_from: LoginFrom;
|
|
33
|
+
country_id: string;
|
|
34
34
|
os_details?: Record<string, any> | undefined;
|
|
35
35
|
ip_details?: Record<string, any> | undefined;
|
|
36
36
|
}>;
|
|
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
login_from: LoginFrom;
|
|
52
51
|
search: string;
|
|
53
52
|
paging: PAGING;
|
|
54
53
|
page_count: number;
|
|
55
54
|
page_index: number;
|
|
55
|
+
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
|
|
|
43
43
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
44
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
login_from: LoginFrom;
|
|
47
46
|
search: string;
|
|
48
47
|
paging: PAGING;
|
|
49
48
|
page_count: number;
|
|
50
49
|
page_index: number;
|
|
50
|
+
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../user_organisation_service-DL7cDTcV.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -40,9 +40,12 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
40
40
|
sub_item_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: Status;
|
|
44
|
+
organisation_id: string;
|
|
45
|
+
group_name: string;
|
|
46
|
+
user_id: string;
|
|
43
47
|
module_name: string;
|
|
44
48
|
menu_type: MenuType;
|
|
45
|
-
group_name: string;
|
|
46
49
|
group_name_language: string;
|
|
47
50
|
group_icon: string;
|
|
48
51
|
group_url: string;
|
|
@@ -50,19 +53,16 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
50
53
|
sub_item_name_language: string;
|
|
51
54
|
sub_item_icon: string;
|
|
52
55
|
sub_item_url: string;
|
|
56
|
+
}, {
|
|
53
57
|
status: Status;
|
|
54
58
|
organisation_id: string;
|
|
59
|
+
group_name: string;
|
|
55
60
|
user_id: string;
|
|
56
|
-
}, {
|
|
57
61
|
module_name: string;
|
|
58
62
|
menu_type: MenuType;
|
|
59
|
-
group_name: string;
|
|
60
63
|
group_name_language: string;
|
|
61
64
|
group_icon: string;
|
|
62
65
|
group_url: string;
|
|
63
|
-
status: Status;
|
|
64
|
-
organisation_id: string;
|
|
65
|
-
user_id: string;
|
|
66
66
|
sub_item_name?: string | undefined;
|
|
67
67
|
sub_item_name_language?: string | undefined;
|
|
68
68
|
sub_item_icon?: string | undefined;
|
|
@@ -105,7 +105,6 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
105
105
|
bookmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
106
|
menu_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MenuType>, "many">>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
menu_type: MenuType[];
|
|
109
108
|
status: Status[];
|
|
110
109
|
search: string;
|
|
111
110
|
paging: PAGING;
|
|
@@ -129,11 +128,11 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
129
128
|
time_zone_id: string;
|
|
130
129
|
organisation_ids: string[];
|
|
131
130
|
user_ids: string[];
|
|
131
|
+
menu_type: MenuType[];
|
|
132
132
|
bookmark_ids: string[];
|
|
133
133
|
}, {
|
|
134
134
|
date_format_id: string;
|
|
135
135
|
time_zone_id: string;
|
|
136
|
-
menu_type?: MenuType[] | undefined;
|
|
137
136
|
status?: Status[] | undefined;
|
|
138
137
|
search?: string | undefined;
|
|
139
138
|
paging?: PAGING | undefined;
|
|
@@ -155,6 +154,7 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
155
154
|
include_master_data?: YesNo | undefined;
|
|
156
155
|
organisation_ids?: string[] | undefined;
|
|
157
156
|
user_ids?: string[] | undefined;
|
|
157
|
+
menu_type?: MenuType[] | undefined;
|
|
158
158
|
bookmark_ids?: string[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
type BookMarkQueryDTO = z.infer<typeof BookMarkQuerySchema>;
|
|
@@ -1,97 +1,126 @@
|
|
|
1
|
-
import { OnOff,
|
|
2
|
-
import { FBR, SBR } from '
|
|
1
|
+
import { OnOff, NotificationChannel, YesNo, NotificationList, 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,
|
|
5
|
-
import '
|
|
6
|
-
import '../../
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, a as User } from '../../user_organisation_service-DL7cDTcV.js';
|
|
5
|
+
import { GPSGeofence } from '../gps/features/geofence/gps_geofence_service.js';
|
|
6
|
+
import '../../zod_utils/zod_base_schema.js';
|
|
7
|
+
import '../master/main/master_main_sim_provider_service.js';
|
|
7
8
|
|
|
8
|
-
interface
|
|
9
|
+
interface OrganisationNotificationPreference extends Record<string, unknown> {
|
|
9
10
|
notification_preference_id: string;
|
|
10
11
|
notification_name: string;
|
|
11
12
|
notification_status: OnOff;
|
|
12
|
-
|
|
13
|
-
notification_list: NotificationPreference[];
|
|
13
|
+
notification_channels: NotificationChannel[];
|
|
14
14
|
mobile_numbers?: string;
|
|
15
15
|
email_ids?: string;
|
|
16
16
|
cc_email_ids?: string;
|
|
17
|
+
all_users: YesNo;
|
|
18
|
+
notification_list: NotificationList[];
|
|
19
|
+
over_speed_limit?: number;
|
|
20
|
+
all_geofences: YesNo;
|
|
17
21
|
all_vehicles: YesNo;
|
|
18
22
|
status: Status;
|
|
19
23
|
added_date_time: string;
|
|
20
24
|
modified_date_time: string;
|
|
21
25
|
organisation_id: string;
|
|
22
26
|
UserOrganisation?: UserOrganisation;
|
|
23
|
-
|
|
24
|
-
|
|
27
|
+
OrganisationNotificationPreferenceVehicleLink: OrganisationNotificationPreferenceVehicleLink[];
|
|
28
|
+
OrganisationNotificationPreferenceGeofenceLink: OrganisationNotificationPreferenceGeofenceLink[];
|
|
29
|
+
OrganisationNotificationPreferenceUserLink: OrganisationNotificationPreferenceUserLink[];
|
|
25
30
|
_count?: {
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
OrganisationNotificationPreferenceVehicleLink: number;
|
|
32
|
+
OrganisationNotificationPreferenceGeofenceLink: number;
|
|
33
|
+
OrganisationNotificationPreferenceUserLink: number;
|
|
28
34
|
};
|
|
29
35
|
}
|
|
30
|
-
interface
|
|
31
|
-
|
|
36
|
+
interface OrganisationNotificationPreferenceVehicleLink extends Record<string, unknown> {
|
|
37
|
+
notification_preference_geofence_id: string;
|
|
32
38
|
status: Status;
|
|
33
39
|
added_date_time: string;
|
|
34
40
|
modified_date_time: string;
|
|
41
|
+
notification_preference_id: string;
|
|
42
|
+
OrganisationNotificationPreference?: OrganisationNotificationPreference;
|
|
35
43
|
vehicle_id: string;
|
|
36
44
|
MasterVehicle?: MasterVehicle;
|
|
37
45
|
vehicle_number?: string;
|
|
38
46
|
vehicle_type?: string;
|
|
47
|
+
}
|
|
48
|
+
interface OrganisationNotificationPreferenceGeofenceLink extends Record<string, unknown> {
|
|
49
|
+
notification_preference_geofence_id: string;
|
|
50
|
+
status: Status;
|
|
51
|
+
added_date_time: string;
|
|
52
|
+
modified_date_time: string;
|
|
39
53
|
notification_preference_id: string;
|
|
40
|
-
|
|
54
|
+
OrganisationNotificationPreference?: OrganisationNotificationPreference;
|
|
55
|
+
gps_geofence_id: string;
|
|
56
|
+
GPSGeofence?: GPSGeofence;
|
|
57
|
+
geofence_details?: string;
|
|
41
58
|
}
|
|
42
|
-
interface
|
|
43
|
-
|
|
59
|
+
interface OrganisationNotificationPreferenceUserLink extends Record<string, unknown> {
|
|
60
|
+
notification_preference_user_id: string;
|
|
44
61
|
status: Status;
|
|
45
62
|
added_date_time: string;
|
|
46
63
|
modified_date_time: string;
|
|
64
|
+
notification_preference_id: string;
|
|
65
|
+
OrganisationNotificationPreference?: OrganisationNotificationPreference;
|
|
47
66
|
user_id: string;
|
|
48
67
|
User?: User;
|
|
49
68
|
user_details?: string;
|
|
50
|
-
notification_preference_id: string;
|
|
51
|
-
UserNotificationPreferences?: UserNotificationPreferences;
|
|
52
69
|
}
|
|
53
|
-
declare const
|
|
70
|
+
declare const OrganisationNotificationPreferenceSchema: z.ZodObject<{
|
|
54
71
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
55
72
|
notification_name: z.ZodEffects<z.ZodString, string, string>;
|
|
56
73
|
notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
57
|
-
|
|
58
|
-
notification_types: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>;
|
|
74
|
+
notification_channels: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationChannel>, "many">>;
|
|
59
75
|
mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
60
76
|
email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
61
77
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
78
|
+
all_users: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
62
79
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
80
|
+
notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationList>, "many">>;
|
|
81
|
+
over_speed_limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
82
|
+
all_geofences: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
83
|
+
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
63
84
|
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
64
85
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
65
86
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
66
87
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
notification_name: string;
|
|
68
|
-
notification_status: OnOff;
|
|
69
|
-
notification_types: NotificationType[];
|
|
70
|
-
notification_list: NotificationPreference[];
|
|
71
88
|
mobile_numbers: string;
|
|
72
89
|
email_ids: string;
|
|
73
90
|
cc_email_ids: string;
|
|
74
91
|
all_vehicles: YesNo;
|
|
75
92
|
status: Status;
|
|
76
93
|
organisation_id: string;
|
|
77
|
-
user_ids: string[];
|
|
78
94
|
vehicle_ids: string[];
|
|
79
|
-
|
|
95
|
+
user_ids: string[];
|
|
96
|
+
gps_geofence_ids: string[];
|
|
80
97
|
notification_name: string;
|
|
81
98
|
notification_status: OnOff;
|
|
99
|
+
notification_channels: NotificationChannel[];
|
|
100
|
+
all_users: YesNo;
|
|
101
|
+
notification_list: NotificationList[];
|
|
102
|
+
over_speed_limit: number;
|
|
103
|
+
all_geofences: YesNo;
|
|
104
|
+
}, {
|
|
82
105
|
all_vehicles: YesNo;
|
|
83
106
|
status: Status;
|
|
84
107
|
organisation_id: string;
|
|
85
|
-
|
|
86
|
-
|
|
108
|
+
notification_name: string;
|
|
109
|
+
notification_status: OnOff;
|
|
110
|
+
all_users: YesNo;
|
|
111
|
+
all_geofences: YesNo;
|
|
87
112
|
mobile_numbers?: string | undefined;
|
|
88
113
|
email_ids?: string | undefined;
|
|
89
114
|
cc_email_ids?: string | undefined;
|
|
90
|
-
user_ids?: string[] | undefined;
|
|
91
115
|
vehicle_ids?: string[] | undefined;
|
|
116
|
+
user_ids?: string[] | undefined;
|
|
117
|
+
gps_geofence_ids?: string[] | undefined;
|
|
118
|
+
notification_channels?: NotificationChannel[] | undefined;
|
|
119
|
+
notification_list?: NotificationList[] | undefined;
|
|
120
|
+
over_speed_limit?: unknown;
|
|
92
121
|
}>;
|
|
93
|
-
type
|
|
94
|
-
declare const
|
|
122
|
+
type OrganisationNotificationPreferenceDTO = z.infer<typeof OrganisationNotificationPreferenceSchema>;
|
|
123
|
+
declare const OrganisationNotificationPreferenceQuerySchema: z.ZodObject<{
|
|
95
124
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
96
125
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
97
126
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -125,10 +154,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
125
154
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
126
155
|
notification_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
127
156
|
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
128
|
-
|
|
157
|
+
notification_channels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationChannel>, "many">>>;
|
|
158
|
+
notification_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationList>, "many">>>;
|
|
129
159
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
notification_status: OnOff[];
|
|
131
|
-
all_vehicles: YesNo[];
|
|
132
160
|
status: Status[];
|
|
133
161
|
search: string;
|
|
134
162
|
paging: PAGING;
|
|
@@ -151,12 +179,13 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
151
179
|
date_format_id: string;
|
|
152
180
|
time_zone_id: string;
|
|
153
181
|
organisation_ids: string[];
|
|
182
|
+
notification_status: OnOff[];
|
|
183
|
+
notification_channels: NotificationChannel[];
|
|
184
|
+
notification_list: NotificationList[];
|
|
154
185
|
notification_preference_ids: string[];
|
|
155
186
|
}, {
|
|
156
187
|
date_format_id: string;
|
|
157
188
|
time_zone_id: string;
|
|
158
|
-
notification_status?: OnOff[] | undefined;
|
|
159
|
-
all_vehicles?: YesNo[] | undefined;
|
|
160
189
|
status?: Status[] | undefined;
|
|
161
190
|
search?: string | undefined;
|
|
162
191
|
paging?: PAGING | undefined;
|
|
@@ -177,14 +206,17 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
177
206
|
}[] | undefined;
|
|
178
207
|
include_master_data?: YesNo | undefined;
|
|
179
208
|
organisation_ids?: string[] | undefined;
|
|
209
|
+
notification_status?: OnOff[] | undefined;
|
|
210
|
+
notification_channels?: NotificationChannel[] | undefined;
|
|
211
|
+
notification_list?: NotificationList[] | undefined;
|
|
180
212
|
notification_preference_ids?: string[] | undefined;
|
|
181
213
|
}>;
|
|
182
|
-
type
|
|
183
|
-
declare const
|
|
184
|
-
declare const
|
|
185
|
-
declare const
|
|
186
|
-
declare const
|
|
187
|
-
declare const
|
|
188
|
-
declare const
|
|
214
|
+
type OrganisationNotificationPreferenceQueryDTO = z.infer<typeof OrganisationNotificationPreferenceQuerySchema>;
|
|
215
|
+
declare const toOrganisationNotificationPreferencePayload: (data: OrganisationNotificationPreference) => OrganisationNotificationPreferenceDTO;
|
|
216
|
+
declare const newOrganisationNotificationPreferencePayload: () => OrganisationNotificationPreferenceDTO;
|
|
217
|
+
declare const findOrganisationNotificationPreference: (data: OrganisationNotificationPreferenceQueryDTO) => Promise<FBR<OrganisationNotificationPreference[]>>;
|
|
218
|
+
declare const createOrganisationNotificationPreference: (data: OrganisationNotificationPreferenceDTO) => Promise<SBR>;
|
|
219
|
+
declare const updateOrganisationNotificationPreference: (id: string, data: OrganisationNotificationPreferenceDTO) => Promise<SBR>;
|
|
220
|
+
declare const deleteOrganisationNotificationPreference: (id: string) => Promise<SBR>;
|
|
189
221
|
|
|
190
|
-
export { type
|
|
222
|
+
export { type OrganisationNotificationPreference, type OrganisationNotificationPreferenceDTO, type OrganisationNotificationPreferenceGeofenceLink, type OrganisationNotificationPreferenceQueryDTO, OrganisationNotificationPreferenceQuerySchema, OrganisationNotificationPreferenceSchema, type OrganisationNotificationPreferenceUserLink, type OrganisationNotificationPreferenceVehicleLink, createOrganisationNotificationPreference, deleteOrganisationNotificationPreference, findOrganisationNotificationPreference, newOrganisationNotificationPreferencePayload, toOrganisationNotificationPreferencePayload, updateOrganisationNotificationPreference };
|