vms-nest-prisma-api-document 12.0.0 → 12.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Enums.d.ts +5 -1
- package/dist/core/Enums.js +6 -0
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +50 -50
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +35 -35
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -15
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +6 -6
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +15 -15
- package/dist/services/gps/features/user_notification_preferences.service.js +14 -9
- package/dist/services/gps/features/user_report_preferences.service.d.ts +15 -15
- package/dist/services/gps/features/user_report_preferences.service.js +13 -8
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
- 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_landmark_service.d.ts +6 -6
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -82,9 +82,6 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
82
82
|
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
83
83
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
|
85
|
-
status: Status;
|
|
86
|
-
organisation_id: string;
|
|
87
|
-
country_code: string;
|
|
88
85
|
geofence_name: string;
|
|
89
86
|
geofence_purpose_type: GeofencePurposeType;
|
|
90
87
|
geofence_description: string;
|
|
@@ -102,23 +99,25 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
102
99
|
state_province_region: string;
|
|
103
100
|
postal_code: string;
|
|
104
101
|
country: string;
|
|
102
|
+
country_code: string;
|
|
105
103
|
google_location: string;
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
status: Status;
|
|
105
|
+
organisation_id: string;
|
|
108
106
|
radius_m?: number | undefined;
|
|
109
107
|
radius_km?: number | undefined;
|
|
108
|
+
latitude?: number | undefined;
|
|
109
|
+
longitude?: number | undefined;
|
|
110
110
|
}, {
|
|
111
|
-
status: Status;
|
|
112
|
-
organisation_id: string;
|
|
113
111
|
geofence_name: string;
|
|
114
112
|
geofence_purpose_type: GeofencePurposeType;
|
|
115
113
|
geofence_type: GeofenceType;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
longitude?: unknown;
|
|
114
|
+
status: Status;
|
|
115
|
+
organisation_id: string;
|
|
119
116
|
geofence_description?: string | undefined;
|
|
120
117
|
radius_m?: unknown;
|
|
121
118
|
radius_km?: unknown;
|
|
119
|
+
latitude?: unknown;
|
|
120
|
+
longitude?: unknown;
|
|
122
121
|
poliline_data?: {
|
|
123
122
|
latitude?: unknown;
|
|
124
123
|
longitude?: unknown;
|
|
@@ -132,6 +131,7 @@ declare const GPSGeofenceSchema: z.ZodObject<{
|
|
|
132
131
|
state_province_region?: string | undefined;
|
|
133
132
|
postal_code?: string | undefined;
|
|
134
133
|
country?: string | undefined;
|
|
134
|
+
country_code?: string | undefined;
|
|
135
135
|
google_location?: string | undefined;
|
|
136
136
|
}>;
|
|
137
137
|
type GPSGeofenceDTO = z.infer<typeof GPSGeofenceSchema>;
|
|
@@ -171,8 +171,9 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
171
171
|
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
172
172
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
geofence_purpose_type: GeofencePurposeType[];
|
|
175
|
+
geofence_type: GeofenceType[];
|
|
174
176
|
status: Status[];
|
|
175
|
-
time_zone_id: string;
|
|
176
177
|
search: string;
|
|
177
178
|
paging: PAGING;
|
|
178
179
|
page_count: number;
|
|
@@ -192,13 +193,14 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
192
193
|
}[];
|
|
193
194
|
include_master_data: YesNo;
|
|
194
195
|
date_format_id: string;
|
|
196
|
+
time_zone_id: string;
|
|
195
197
|
organisation_ids: string[];
|
|
196
198
|
gps_geofence_ids: string[];
|
|
197
|
-
geofence_purpose_type: GeofencePurposeType[];
|
|
198
|
-
geofence_type: GeofenceType[];
|
|
199
199
|
}, {
|
|
200
|
-
time_zone_id: string;
|
|
201
200
|
date_format_id: string;
|
|
201
|
+
time_zone_id: string;
|
|
202
|
+
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
203
|
+
geofence_type?: GeofenceType[] | undefined;
|
|
202
204
|
status?: Status[] | undefined;
|
|
203
205
|
search?: string | undefined;
|
|
204
206
|
paging?: PAGING | undefined;
|
|
@@ -220,8 +222,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
220
222
|
include_master_data?: YesNo | undefined;
|
|
221
223
|
organisation_ids?: string[] | undefined;
|
|
222
224
|
gps_geofence_ids?: string[] | undefined;
|
|
223
|
-
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
224
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
227
227
|
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|
|
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
37
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
|
|
40
|
-
geofence_time: string;
|
|
39
|
+
gps_geofence_id: string;
|
|
41
40
|
status: Status;
|
|
42
41
|
organisation_id: string;
|
|
43
|
-
vehicle_id: string;
|
|
44
|
-
driver_id: string;
|
|
45
|
-
gps_geofence_id: string;
|
|
46
42
|
time_zone_id: string;
|
|
47
|
-
|
|
43
|
+
driver_id: string;
|
|
44
|
+
vehicle_id: string;
|
|
48
45
|
geofence_status_type: GeofenceStatusType;
|
|
49
46
|
geofence_time: string;
|
|
47
|
+
}, {
|
|
48
|
+
gps_geofence_id: string;
|
|
50
49
|
status: Status;
|
|
51
50
|
organisation_id: string;
|
|
52
|
-
vehicle_id: string;
|
|
53
|
-
driver_id: string;
|
|
54
|
-
gps_geofence_id: string;
|
|
55
51
|
time_zone_id: string;
|
|
52
|
+
driver_id: string;
|
|
53
|
+
vehicle_id: string;
|
|
54
|
+
geofence_status_type: GeofenceStatusType;
|
|
55
|
+
geofence_time: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
58
58
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -94,9 +94,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
94
94
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
geofence_status_type: GeofenceStatusType[];
|
|
98
97
|
status: Status[];
|
|
99
|
-
time_zone_id: string;
|
|
100
98
|
search: string;
|
|
101
99
|
paging: PAGING;
|
|
102
100
|
page_count: number;
|
|
@@ -116,18 +114,19 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
116
114
|
}[];
|
|
117
115
|
include_master_data: YesNo;
|
|
118
116
|
date_format_id: string;
|
|
117
|
+
time_zone_id: string;
|
|
119
118
|
organisation_ids: string[];
|
|
119
|
+
gps_geofence_ids: string[];
|
|
120
120
|
vehicle_ids: string[];
|
|
121
121
|
driver_ids: string[];
|
|
122
|
-
|
|
122
|
+
geofence_status_type: GeofenceStatusType[];
|
|
123
123
|
from_date: string;
|
|
124
124
|
to_date: string;
|
|
125
125
|
}, {
|
|
126
|
-
time_zone_id: string;
|
|
127
126
|
date_format_id: string;
|
|
127
|
+
time_zone_id: string;
|
|
128
128
|
from_date: string;
|
|
129
129
|
to_date: string;
|
|
130
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
131
130
|
status?: Status[] | undefined;
|
|
132
131
|
search?: string | undefined;
|
|
133
132
|
paging?: PAGING | undefined;
|
|
@@ -148,9 +147,10 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
148
147
|
}[] | undefined;
|
|
149
148
|
include_master_data?: YesNo | undefined;
|
|
150
149
|
organisation_ids?: string[] | undefined;
|
|
150
|
+
gps_geofence_ids?: string[] | undefined;
|
|
151
151
|
vehicle_ids?: string[] | undefined;
|
|
152
152
|
driver_ids?: string[] | undefined;
|
|
153
|
-
|
|
153
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
156
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
@@ -46,24 +46,24 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
46
46
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
47
47
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
gps_geofence_id: string;
|
|
49
50
|
status: Status;
|
|
50
51
|
organisation_id: string;
|
|
51
|
-
vehicle_id: string;
|
|
52
|
-
driver_id: string;
|
|
53
|
-
gps_geofence_id: string;
|
|
54
52
|
time_zone_id: string;
|
|
53
|
+
driver_id: string;
|
|
54
|
+
vehicle_id: string;
|
|
55
55
|
geofence_enter_date_time: string;
|
|
56
56
|
geofence_exit_date_time: string;
|
|
57
57
|
duration_seconds: number;
|
|
58
58
|
enter_gps_geofence_transaction_id: string;
|
|
59
59
|
exit_gps_geofence_transaction_id: string;
|
|
60
60
|
}, {
|
|
61
|
+
gps_geofence_id: string;
|
|
61
62
|
status: Status;
|
|
62
63
|
organisation_id: string;
|
|
63
|
-
vehicle_id: string;
|
|
64
|
-
driver_id: string;
|
|
65
|
-
gps_geofence_id: string;
|
|
66
64
|
time_zone_id: string;
|
|
65
|
+
driver_id: string;
|
|
66
|
+
vehicle_id: string;
|
|
67
67
|
geofence_enter_date_time: string;
|
|
68
68
|
enter_gps_geofence_transaction_id: string;
|
|
69
69
|
exit_gps_geofence_transaction_id: string;
|
|
@@ -110,7 +110,6 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
110
110
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
111
111
|
}, "strip", z.ZodTypeAny, {
|
|
112
112
|
status: Status[];
|
|
113
|
-
time_zone_id: string;
|
|
114
113
|
search: string;
|
|
115
114
|
paging: PAGING;
|
|
116
115
|
page_count: number;
|
|
@@ -130,15 +129,16 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
130
129
|
}[];
|
|
131
130
|
include_master_data: YesNo;
|
|
132
131
|
date_format_id: string;
|
|
132
|
+
time_zone_id: string;
|
|
133
133
|
organisation_ids: string[];
|
|
134
|
+
gps_geofence_ids: string[];
|
|
134
135
|
vehicle_ids: string[];
|
|
135
136
|
driver_ids: string[];
|
|
136
|
-
gps_geofence_ids: string[];
|
|
137
137
|
from_date: string;
|
|
138
138
|
to_date: string;
|
|
139
139
|
}, {
|
|
140
|
-
time_zone_id: string;
|
|
141
140
|
date_format_id: string;
|
|
141
|
+
time_zone_id: string;
|
|
142
142
|
from_date: string;
|
|
143
143
|
to_date: string;
|
|
144
144
|
status?: Status[] | undefined;
|
|
@@ -161,9 +161,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
|
|
|
161
161
|
}[] | undefined;
|
|
162
162
|
include_master_data?: YesNo | undefined;
|
|
163
163
|
organisation_ids?: string[] | undefined;
|
|
164
|
+
gps_geofence_ids?: string[] | undefined;
|
|
164
165
|
vehicle_ids?: string[] | undefined;
|
|
165
166
|
driver_ids?: string[] | undefined;
|
|
166
|
-
gps_geofence_ids?: string[] | undefined;
|
|
167
167
|
}>;
|
|
168
168
|
type GPSGeofenceTransactionSummaryQueryDTO = z.infer<typeof GPSGeofenceTransactionSummaryQuerySchema>;
|
|
169
169
|
declare const toGPSGeofenceTransactionSummaryPayload: (data: GPSGeofenceTransactionSummary) => GPSGeofenceTransactionSummaryDTO;
|
|
@@ -57,9 +57,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
58
|
status: Status;
|
|
59
59
|
organisation_id: string;
|
|
60
|
-
vehicle_id: string;
|
|
61
|
-
driver_id: string;
|
|
62
60
|
time_zone_id: string;
|
|
61
|
+
driver_id: string;
|
|
62
|
+
vehicle_id: string;
|
|
63
63
|
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
@@ -73,9 +73,9 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
73
73
|
}, {
|
|
74
74
|
status: Status;
|
|
75
75
|
organisation_id: string;
|
|
76
|
-
vehicle_id: string;
|
|
77
|
-
driver_id: string;
|
|
78
76
|
time_zone_id: string;
|
|
77
|
+
driver_id: string;
|
|
78
|
+
vehicle_id: string;
|
|
79
79
|
from_geofence_exit_date_time: string;
|
|
80
80
|
to_geofence_enter_date_time: string;
|
|
81
81
|
from_geofence_id: string;
|
|
@@ -128,7 +128,6 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
128
128
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
status: Status[];
|
|
131
|
-
time_zone_id: string;
|
|
132
131
|
search: string;
|
|
133
132
|
paging: PAGING;
|
|
134
133
|
page_count: number;
|
|
@@ -148,6 +147,7 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
148
147
|
}[];
|
|
149
148
|
include_master_data: YesNo;
|
|
150
149
|
date_format_id: string;
|
|
150
|
+
time_zone_id: string;
|
|
151
151
|
organisation_ids: string[];
|
|
152
152
|
vehicle_ids: string[];
|
|
153
153
|
driver_ids: string[];
|
|
@@ -156,8 +156,8 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
|
|
|
156
156
|
from_geofence_ids: string[];
|
|
157
157
|
to_geofence_ids: string[];
|
|
158
158
|
}, {
|
|
159
|
-
time_zone_id: string;
|
|
160
159
|
date_format_id: string;
|
|
160
|
+
time_zone_id: string;
|
|
161
161
|
from_date: string;
|
|
162
162
|
to_date: string;
|
|
163
163
|
status?: Status[] | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
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
4
|
import { U as UserOrganisation, a as User, M as MasterVehicle } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
@@ -8,13 +8,13 @@ import '../../master/main/master_main_sim_provider_service.js';
|
|
|
8
8
|
interface UserNotificationPreferences extends Record<string, unknown> {
|
|
9
9
|
notification_preference_id: string;
|
|
10
10
|
notification_name: string;
|
|
11
|
-
notification_status:
|
|
11
|
+
notification_status: OnOff;
|
|
12
12
|
notification_type: NotificationType;
|
|
13
13
|
mobile_numbers?: string;
|
|
14
14
|
email_ids?: string;
|
|
15
15
|
cc_email_ids?: string;
|
|
16
16
|
notification_list: NotificationPreference[];
|
|
17
|
-
|
|
17
|
+
all_vehicles: YesNo;
|
|
18
18
|
status: Status;
|
|
19
19
|
added_date_time: string;
|
|
20
20
|
modified_date_time: string;
|
|
@@ -52,12 +52,12 @@ interface UserNotificationPreferenceUserLink extends Record<string, unknown> {
|
|
|
52
52
|
declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
53
53
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
54
54
|
notification_name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
notification_status: z.ZodType<
|
|
55
|
+
notification_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
56
56
|
notification_type: z.ZodType<NotificationType, z.ZodTypeDef, NotificationType>;
|
|
57
57
|
mobile_numbers: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
58
58
|
email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
59
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
60
|
-
|
|
60
|
+
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
61
61
|
notification_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof NotificationPreference>, "many">>;
|
|
62
62
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
63
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -68,20 +68,20 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
68
68
|
vehicle_ids: string[];
|
|
69
69
|
user_ids: string[];
|
|
70
70
|
notification_name: string;
|
|
71
|
-
notification_status:
|
|
71
|
+
notification_status: OnOff;
|
|
72
72
|
notification_type: NotificationType;
|
|
73
73
|
mobile_numbers: string;
|
|
74
74
|
email_ids: string;
|
|
75
75
|
cc_email_ids: string;
|
|
76
76
|
notification_list: NotificationPreference[];
|
|
77
|
-
|
|
77
|
+
all_vehicles: YesNo;
|
|
78
78
|
}, {
|
|
79
79
|
status: Status;
|
|
80
80
|
organisation_id: string;
|
|
81
81
|
notification_name: string;
|
|
82
|
-
notification_status:
|
|
82
|
+
notification_status: OnOff;
|
|
83
83
|
notification_type: NotificationType;
|
|
84
|
-
|
|
84
|
+
all_vehicles: YesNo;
|
|
85
85
|
vehicle_ids?: string[] | undefined;
|
|
86
86
|
user_ids?: string[] | undefined;
|
|
87
87
|
mobile_numbers?: string | undefined;
|
|
@@ -123,9 +123,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
123
123
|
} & {
|
|
124
124
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
125
125
|
notification_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
126
|
-
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof
|
|
126
|
+
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
127
127
|
notification_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof NotificationType>, "many">>>;
|
|
128
|
-
|
|
128
|
+
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
130
|
status: Status[];
|
|
131
131
|
search: string;
|
|
@@ -149,9 +149,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
149
149
|
date_format_id: string;
|
|
150
150
|
time_zone_id: string;
|
|
151
151
|
organisation_ids: string[];
|
|
152
|
-
notification_status:
|
|
152
|
+
notification_status: OnOff[];
|
|
153
153
|
notification_type: NotificationType[];
|
|
154
|
-
|
|
154
|
+
all_vehicles: YesNo[];
|
|
155
155
|
notification_preference_ids: string[];
|
|
156
156
|
}, {
|
|
157
157
|
date_format_id: string;
|
|
@@ -176,9 +176,9 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
176
176
|
}[] | undefined;
|
|
177
177
|
include_master_data?: YesNo | undefined;
|
|
178
178
|
organisation_ids?: string[] | undefined;
|
|
179
|
-
notification_status?:
|
|
179
|
+
notification_status?: OnOff[] | undefined;
|
|
180
180
|
notification_type?: NotificationType[] | undefined;
|
|
181
|
-
|
|
181
|
+
all_vehicles?: YesNo[] | undefined;
|
|
182
182
|
notification_preference_ids?: string[] | undefined;
|
|
183
183
|
}>;
|
|
184
184
|
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";
|
|
@@ -271,7 +276,7 @@ var ENDPOINTS = {
|
|
|
271
276
|
var UserNotificationPreferencesSchema = z3.object({
|
|
272
277
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
273
278
|
notification_name: stringMandatory("Notification Name", 3, 100),
|
|
274
|
-
notification_status: enumMandatory("Notification Status",
|
|
279
|
+
notification_status: enumMandatory("Notification Status", OnOff, "On" /* On */),
|
|
275
280
|
notification_type: enumMandatory(
|
|
276
281
|
"Notification Type",
|
|
277
282
|
NotificationType,
|
|
@@ -280,7 +285,7 @@ var UserNotificationPreferencesSchema = z3.object({
|
|
|
280
285
|
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
281
286
|
email_ids: stringOptional("Email IDs", 0, 300),
|
|
282
287
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
283
|
-
|
|
288
|
+
all_vehicles: enumMandatory("All Vehicles", YesNo, "Yes" /* Yes */),
|
|
284
289
|
notification_list: enumArrayMandatory(
|
|
285
290
|
"Notification List",
|
|
286
291
|
NotificationPreference,
|
|
@@ -301,16 +306,16 @@ var UserNotificationPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
|
301
306
|
// ✅ Multi-Selection -> UserNotificationPreferences
|
|
302
307
|
notification_status: enumArrayOptional(
|
|
303
308
|
"Notification Status",
|
|
304
|
-
|
|
305
|
-
getAllEnums(
|
|
309
|
+
OnOff,
|
|
310
|
+
getAllEnums(OnOff)
|
|
306
311
|
),
|
|
307
312
|
notification_type: enumArrayOptional(
|
|
308
313
|
"Notification Type",
|
|
309
314
|
NotificationType,
|
|
310
315
|
getAllEnums(NotificationType)
|
|
311
316
|
),
|
|
312
|
-
|
|
313
|
-
"
|
|
317
|
+
all_vehicles: enumArrayOptional(
|
|
318
|
+
"All Vehicles",
|
|
314
319
|
YesNo,
|
|
315
320
|
getAllEnums(YesNo)
|
|
316
321
|
)
|
|
@@ -324,7 +329,7 @@ var toUserNotificationPreferencesPayload = (data) => ({
|
|
|
324
329
|
email_ids: data.email_ids ?? "",
|
|
325
330
|
cc_email_ids: data.cc_email_ids ?? "",
|
|
326
331
|
notification_list: data.notification_list ?? [],
|
|
327
|
-
|
|
332
|
+
all_vehicles: data.all_vehicles,
|
|
328
333
|
status: data.status,
|
|
329
334
|
vehicle_ids: data.UserNotificationPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
330
335
|
user_ids: data.UserNotificationPreferenceUserLink?.map((v) => v.user_id) ?? []
|
|
@@ -332,13 +337,13 @@ var toUserNotificationPreferencesPayload = (data) => ({
|
|
|
332
337
|
var newUserNotificationPreferencesPayload = () => ({
|
|
333
338
|
organisation_id: "",
|
|
334
339
|
notification_name: "",
|
|
335
|
-
notification_status: "
|
|
340
|
+
notification_status: "On" /* On */,
|
|
336
341
|
notification_type: "Push" /* Push */,
|
|
337
342
|
mobile_numbers: "",
|
|
338
343
|
email_ids: "",
|
|
339
344
|
cc_email_ids: "",
|
|
340
345
|
notification_list: [],
|
|
341
|
-
|
|
346
|
+
all_vehicles: "Yes" /* Yes */,
|
|
342
347
|
vehicle_ids: [],
|
|
343
348
|
user_ids: [],
|
|
344
349
|
status: "Active" /* Active */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnOff, ReportType, ReportPreference, 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
4
|
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-djKCoZTQ.js';
|
|
@@ -8,12 +8,12 @@ import '../../master/main/master_main_sim_provider_service.js';
|
|
|
8
8
|
interface UserReportsPreferences extends Record<string, unknown> {
|
|
9
9
|
report_preference_id: string;
|
|
10
10
|
report_name: string;
|
|
11
|
-
report_status:
|
|
11
|
+
report_status: OnOff;
|
|
12
12
|
report_type: ReportType;
|
|
13
13
|
email_ids: string;
|
|
14
14
|
cc_email_ids?: string;
|
|
15
15
|
report_list: ReportPreference[];
|
|
16
|
-
|
|
16
|
+
all_vehicles: YesNo;
|
|
17
17
|
status: Status;
|
|
18
18
|
added_date_time: string;
|
|
19
19
|
modified_date_time: string;
|
|
@@ -39,11 +39,11 @@ interface UserReportsPreferencesVehicleLink extends Record<string, unknown> {
|
|
|
39
39
|
declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
40
40
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
report_name: z.ZodEffects<z.ZodString, string, string>;
|
|
42
|
-
report_status: z.ZodType<
|
|
42
|
+
report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
43
43
|
report_type: z.ZodType<ReportType, z.ZodTypeDef, ReportType>;
|
|
44
44
|
email_ids: z.ZodEffects<z.ZodString, string, string>;
|
|
45
45
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
46
|
-
|
|
46
|
+
all_vehicles: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
47
47
|
report_list: z.ZodDefault<z.ZodArray<z.ZodNativeEnum<typeof ReportPreference>, "many">>;
|
|
48
48
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
49
49
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
@@ -53,18 +53,18 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
53
53
|
vehicle_ids: string[];
|
|
54
54
|
email_ids: string;
|
|
55
55
|
cc_email_ids: string;
|
|
56
|
-
|
|
56
|
+
all_vehicles: YesNo;
|
|
57
57
|
report_name: string;
|
|
58
|
-
report_status:
|
|
58
|
+
report_status: OnOff;
|
|
59
59
|
report_type: ReportType;
|
|
60
60
|
report_list: ReportPreference[];
|
|
61
61
|
}, {
|
|
62
62
|
status: Status;
|
|
63
63
|
organisation_id: string;
|
|
64
64
|
email_ids: string;
|
|
65
|
-
|
|
65
|
+
all_vehicles: YesNo;
|
|
66
66
|
report_name: string;
|
|
67
|
-
report_status:
|
|
67
|
+
report_status: OnOff;
|
|
68
68
|
report_type: ReportType;
|
|
69
69
|
vehicle_ids?: string[] | undefined;
|
|
70
70
|
cc_email_ids?: string | undefined;
|
|
@@ -104,9 +104,9 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
104
104
|
} & {
|
|
105
105
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
106
|
report_preference_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
107
|
-
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof
|
|
107
|
+
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
108
108
|
report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
109
|
-
|
|
109
|
+
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
status: Status[];
|
|
112
112
|
search: string;
|
|
@@ -130,8 +130,8 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
130
130
|
date_format_id: string;
|
|
131
131
|
time_zone_id: string;
|
|
132
132
|
organisation_ids: string[];
|
|
133
|
-
|
|
134
|
-
report_status:
|
|
133
|
+
all_vehicles: YesNo[];
|
|
134
|
+
report_status: OnOff[];
|
|
135
135
|
report_type: ReportType[];
|
|
136
136
|
report_preference_ids: string[];
|
|
137
137
|
}, {
|
|
@@ -157,8 +157,8 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
157
157
|
}[] | undefined;
|
|
158
158
|
include_master_data?: YesNo | undefined;
|
|
159
159
|
organisation_ids?: string[] | undefined;
|
|
160
|
-
|
|
161
|
-
report_status?:
|
|
160
|
+
all_vehicles?: YesNo[] | undefined;
|
|
161
|
+
report_status?: OnOff[] | undefined;
|
|
162
162
|
report_type?: ReportType[] | undefined;
|
|
163
163
|
report_preference_ids?: string[] | undefined;
|
|
164
164
|
}>;
|
|
@@ -196,6 +196,11 @@ var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
|
196
196
|
YesNo2["No"] = "No";
|
|
197
197
|
return YesNo2;
|
|
198
198
|
})(YesNo || {});
|
|
199
|
+
var OnOff = /* @__PURE__ */ ((OnOff2) => {
|
|
200
|
+
OnOff2["On"] = "On";
|
|
201
|
+
OnOff2["Off"] = "Off";
|
|
202
|
+
return OnOff2;
|
|
203
|
+
})(OnOff || {});
|
|
199
204
|
var ReportPreference = /* @__PURE__ */ ((ReportPreference2) => {
|
|
200
205
|
ReportPreference2["FleetFuelRefillReport"] = "FleetFuelRefillReport";
|
|
201
206
|
ReportPreference2["FleetFuelRemovalReport"] = "FleetFuelRemovalReport";
|
|
@@ -267,11 +272,11 @@ var ENDPOINTS = {
|
|
|
267
272
|
var UserReportPreferencesSchema = z3.object({
|
|
268
273
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
269
274
|
report_name: stringMandatory("Report Name", 3, 100),
|
|
270
|
-
report_status: enumMandatory("Report Status",
|
|
275
|
+
report_status: enumMandatory("Report Status", OnOff, "On" /* On */),
|
|
271
276
|
report_type: enumMandatory("Report Type", ReportType, "Daily" /* Daily */),
|
|
272
277
|
email_ids: stringMandatory("Email IDs", 3, 300),
|
|
273
278
|
cc_email_ids: stringOptional("CC email IDs", 0, 300),
|
|
274
|
-
|
|
279
|
+
all_vehicles: enumMandatory("All Vehicles", YesNo, "Yes" /* Yes */),
|
|
275
280
|
report_list: enumArrayMandatory(
|
|
276
281
|
"Report List",
|
|
277
282
|
ReportPreference,
|
|
@@ -286,14 +291,14 @@ var UserReportPreferencesQuerySchema = BaseQuerySchema.extend({
|
|
|
286
291
|
// ✅ Multi-Selection -> UserOrganisation
|
|
287
292
|
report_preference_ids: multi_select_optional("UserReportPreferences"),
|
|
288
293
|
// ✅ Multi-Selection -> UserNotificationPreferences
|
|
289
|
-
report_status: enumArrayOptional("Report Status",
|
|
294
|
+
report_status: enumArrayOptional("Report Status", OnOff, getAllEnums(OnOff)),
|
|
290
295
|
report_type: enumArrayOptional(
|
|
291
296
|
"Report Type",
|
|
292
297
|
ReportType,
|
|
293
298
|
getAllEnums(ReportType)
|
|
294
299
|
),
|
|
295
|
-
|
|
296
|
-
"
|
|
300
|
+
all_vehicles: enumArrayOptional(
|
|
301
|
+
"All Vehicles",
|
|
297
302
|
YesNo,
|
|
298
303
|
getAllEnums(YesNo)
|
|
299
304
|
)
|
|
@@ -305,7 +310,7 @@ var toUserReportsPreferencesPayload = (data) => ({
|
|
|
305
310
|
report_type: data.report_type,
|
|
306
311
|
email_ids: data.email_ids,
|
|
307
312
|
cc_email_ids: data.report_name,
|
|
308
|
-
|
|
313
|
+
all_vehicles: data.all_vehicles,
|
|
309
314
|
report_list: data.report_list,
|
|
310
315
|
vehicle_ids: data.UserReportsPreferencesVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
311
316
|
status: "Active" /* Active */
|
|
@@ -313,11 +318,11 @@ var toUserReportsPreferencesPayload = (data) => ({
|
|
|
313
318
|
var newUserReportsPreferencesPayload = () => ({
|
|
314
319
|
organisation_id: "",
|
|
315
320
|
report_name: "",
|
|
316
|
-
report_status: "
|
|
321
|
+
report_status: "On" /* On */,
|
|
317
322
|
report_type: "Daily" /* Daily */,
|
|
318
323
|
email_ids: "",
|
|
319
324
|
cc_email_ids: "",
|
|
320
|
-
|
|
325
|
+
all_vehicles: "Yes" /* Yes */,
|
|
321
326
|
report_list: [],
|
|
322
327
|
vehicle_ids: [],
|
|
323
328
|
status: "Active" /* Active */
|