vms-nest-prisma-api-document 12.0.0 → 13.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 +32 -10
- package/dist/core/Enums.js +34 -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/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/ticket_service.d.ts +17 -17
- 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 +51 -51
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +36 -36
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +17 -17
- 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 +18 -18
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +7 -7
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +34 -36
- package/dist/services/gps/features/user_notification_preferences.service.js +39 -35
- package/dist/services/gps/features/user_report_preferences.service.d.ts +27 -30
- package/dist/services/gps/features/user_report_preferences.service.js +39 -29
- 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_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 +6 -6
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +3 -3
- 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 +7 -7
- 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/package.json +1 -1
- package/dist/{user_organisation_service-djKCoZTQ.d.ts → user_organisation_service-D2pCLN2b.d.ts} +3 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { 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, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-D2pCLN2b.js';
|
|
5
5
|
import { GPSGeofence } from './gps_geofence_service.js';
|
|
6
6
|
import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
|
|
7
7
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { 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, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-D2pCLN2b.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkType, LinkStatus, Status, NotificationType, 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, M as MasterVehicle } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-D2pCLN2b.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -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>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TrackHistoryLinkStatus, Status, NotificationType, 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, M as MasterVehicle } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-D2pCLN2b.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -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>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnOff, NotificationType, NotificationPreference, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User, M as MasterVehicle } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle } from '../../../user_organisation_service-D2pCLN2b.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
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:
|
|
12
|
-
|
|
11
|
+
notification_status: OnOff;
|
|
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
|
-
|
|
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;
|
|
@@ -46,48 +46,49 @@ 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
|
}
|
|
52
53
|
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
|
-
notification_status: z.ZodType<
|
|
56
|
-
|
|
56
|
+
notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
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>>;
|
|
60
|
-
is_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
|
-
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
64
62
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
63
|
+
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
64
|
+
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
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
|
-
notification_status:
|
|
72
|
-
|
|
68
|
+
notification_status: OnOff;
|
|
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
|
-
|
|
77
|
-
is_all_vehicles: YesNo;
|
|
78
|
-
}, {
|
|
74
|
+
all_vehicles: YesNo;
|
|
79
75
|
status: Status;
|
|
80
76
|
organisation_id: string;
|
|
77
|
+
user_ids: string[];
|
|
78
|
+
vehicle_ids: string[];
|
|
79
|
+
}, {
|
|
81
80
|
notification_name: string;
|
|
82
|
-
notification_status:
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
81
|
+
notification_status: OnOff;
|
|
82
|
+
all_vehicles: YesNo;
|
|
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<{
|
|
@@ -123,10 +124,11 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
123
124
|
} & {
|
|
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
|
-
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof
|
|
127
|
-
|
|
128
|
-
is_all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
127
|
+
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
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: YesNo[];
|
|
153
|
-
notification_type: NotificationType[];
|
|
154
|
-
is_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?: YesNo[] | undefined;
|
|
180
|
-
notification_type?: NotificationType[] | undefined;
|
|
181
|
-
is_all_vehicles?: YesNo[] | undefined;
|
|
182
180
|
notification_preference_ids?: string[] | undefined;
|
|
183
181
|
}>;
|
|
184
182
|
type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
|
|
@@ -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 NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
200
205
|
NotificationType2["Whatsapp"] = "Whatsapp";
|
|
201
206
|
NotificationType2["Message"] = "Message";
|
|
@@ -204,12 +209,20 @@ var NotificationType = /* @__PURE__ */ ((NotificationType2) => {
|
|
|
204
209
|
return NotificationType2;
|
|
205
210
|
})(NotificationType || {});
|
|
206
211
|
var NotificationPreference = /* @__PURE__ */ ((NotificationPreference2) => {
|
|
207
|
-
NotificationPreference2["
|
|
208
|
-
NotificationPreference2["
|
|
209
|
-
NotificationPreference2["FuelRemoval"] = "FuelRemoval";
|
|
210
|
-
NotificationPreference2["FuelRefill"] = "FuelRefill";
|
|
212
|
+
NotificationPreference2["VehicleMoving"] = "VehicleMoving";
|
|
213
|
+
NotificationPreference2["VehicleStopped"] = "VehicleStopped";
|
|
211
214
|
NotificationPreference2["IgnitionOn"] = "IgnitionOn";
|
|
212
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";
|
|
213
226
|
return NotificationPreference2;
|
|
214
227
|
})(NotificationPreference || {});
|
|
215
228
|
|
|
@@ -271,26 +284,26 @@ var ENDPOINTS = {
|
|
|
271
284
|
var UserNotificationPreferencesSchema = z3.object({
|
|
272
285
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
273
286
|
notification_name: stringMandatory("Notification Name", 3, 100),
|
|
274
|
-
notification_status: enumMandatory("Notification Status",
|
|
275
|
-
|
|
287
|
+
notification_status: enumMandatory("Notification Status", OnOff, "On" /* On */),
|
|
288
|
+
notification_list: enumArrayMandatory(
|
|
289
|
+
"Notification List",
|
|
290
|
+
NotificationPreference,
|
|
291
|
+
getAllEnums(NotificationPreference)
|
|
292
|
+
),
|
|
293
|
+
notification_types: enumArrayMandatory(
|
|
276
294
|
"Notification Type",
|
|
277
295
|
NotificationType,
|
|
278
|
-
|
|
296
|
+
getAllEnums(NotificationType)
|
|
279
297
|
),
|
|
280
298
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
281
299
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
282
300
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
NotificationPreference,
|
|
287
|
-
getAllEnums(NotificationPreference)
|
|
288
|
-
),
|
|
289
|
-
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 */),
|
|
290
304
|
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
291
305
|
// Multi selection -> MasterVehicle
|
|
292
|
-
|
|
293
|
-
// Multi selection -> User
|
|
306
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
294
307
|
});
|
|
295
308
|
var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
296
309
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
@@ -301,30 +314,21 @@ var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
|
301
314
|
// ✅ Multi-Selection -> UserNotificationPreferences
|
|
302
315
|
notification_status: enumArrayOptional(
|
|
303
316
|
"Notification Status",
|
|
304
|
-
|
|
305
|
-
getAllEnums(
|
|
306
|
-
),
|
|
307
|
-
notification_type: enumArrayOptional(
|
|
308
|
-
"Notification Type",
|
|
309
|
-
NotificationType,
|
|
310
|
-
getAllEnums(NotificationType)
|
|
317
|
+
OnOff,
|
|
318
|
+
getAllEnums(OnOff)
|
|
311
319
|
),
|
|
312
|
-
|
|
313
|
-
"Is All Vehicles",
|
|
314
|
-
YesNo,
|
|
315
|
-
getAllEnums(YesNo)
|
|
316
|
-
)
|
|
320
|
+
all_vehicles: enumArrayOptional("All Vehicles", YesNo, getAllEnums(YesNo))
|
|
317
321
|
});
|
|
318
322
|
var toUserNotificationPreferencesPayload = (data) => ({
|
|
319
323
|
organisation_id: data.organisation_id,
|
|
320
324
|
notification_name: data.notification_name,
|
|
321
325
|
notification_status: data.notification_status,
|
|
322
|
-
|
|
326
|
+
notification_types: data.notification_types ?? [],
|
|
327
|
+
notification_list: data.notification_list ?? [],
|
|
323
328
|
mobile_numbers: data.mobile_numbers ?? "",
|
|
324
329
|
email_ids: data.email_ids ?? "",
|
|
325
330
|
cc_email_ids: data.cc_email_ids ?? "",
|
|
326
|
-
|
|
327
|
-
is_all_vehicles: data.is_all_vehicles,
|
|
331
|
+
all_vehicles: data.all_vehicles,
|
|
328
332
|
status: data.status,
|
|
329
333
|
vehicle_ids: data.UserNotificationPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
330
334
|
user_ids: data.UserNotificationPreferenceUserLink?.map((v) => v.user_id) ?? []
|
|
@@ -332,13 +336,13 @@ var toUserNotificationPreferencesPayload = (data) => ({
|
|
|
332
336
|
var newUserNotificationPreferencesPayload = () => ({
|
|
333
337
|
organisation_id: "",
|
|
334
338
|
notification_name: "",
|
|
335
|
-
notification_status: "
|
|
336
|
-
|
|
339
|
+
notification_status: "On" /* On */,
|
|
340
|
+
notification_types: [],
|
|
341
|
+
notification_list: [],
|
|
337
342
|
mobile_numbers: "",
|
|
338
343
|
email_ids: "",
|
|
339
344
|
cc_email_ids: "",
|
|
340
|
-
|
|
341
|
-
is_all_vehicles: "No" /* No */,
|
|
345
|
+
all_vehicles: "Yes" /* Yes */,
|
|
342
346
|
vehicle_ids: [],
|
|
343
347
|
user_ids: [],
|
|
344
348
|
status: "Active" /* Active */
|