vms-nest-prisma-api-document 14.0.0 → 16.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/BaseResponse.d.ts +16 -1
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_login_analytics_service.js +11 -0
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/analytics/user_page_analytics_service.js +11 -0
- package/dist/services/account/bookmark_service.js +11 -0
- package/dist/services/account/ticket_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +11 -0
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +64 -66
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +19 -14
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +29 -29
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +16 -16
- package/dist/services/gps/features/geofence/gps_geofence_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +15 -15
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +11 -0
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +11 -0
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +11 -0
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +22 -22
- package/dist/services/gps/features/gps_live_track_share_link_service.js +11 -0
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +15 -15
- package/dist/services/gps/features/gps_track_history_share_link_service.js +11 -0
- package/dist/services/gps/features/user_notification_preferences.service.d.ts +11 -11
- package/dist/services/gps/features/user_notification_preferences.service.js +11 -0
- package/dist/services/gps/features/user_report_preferences.service.d.ts +8 -8
- package/dist/services/gps/features/user_report_preferences.service.js +13 -2
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/gps/reports/gps_reports_mongo_service.js +11 -0
- package/dist/services/main/devices/master_device_service.js +11 -0
- package/dist/services/main/drivers/master_driver_service.js +11 -0
- package/dist/services/main/sims/master_sim_service.js +11 -0
- package/dist/services/main/users/user_admin_service.js +11 -0
- package/dist/services/main/users/user_organisation_service.js +11 -0
- package/dist/services/main/users/user_service.js +11 -0
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +11 -0
- package/dist/services/main/vehicle/master_vehicle_service.js +11 -0
- package/dist/services/master/device/master_device_manufacturer_service.js +11 -0
- package/dist/services/master/device/master_device_model_service.js +11 -0
- package/dist/services/master/device/master_device_type_service.js +11 -0
- package/dist/services/master/expense/master_expense_name_service.js +11 -0
- package/dist/services/master/expense/master_expense_type_service.js +11 -0
- package/dist/services/master/expense/master_fuel_company_service.js +11 -0
- package/dist/services/master/expense/master_vendor_document_type_service.js +11 -0
- package/dist/services/master/expense/master_vendor_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +11 -0
- package/dist/services/master/fleet/master_fleet_service_task_service.js +11 -0
- package/dist/services/master/main/master_main_country_service.js +11 -0
- package/dist/services/master/main/master_main_currency_service.js +11 -0
- package/dist/services/master/main/master_main_date_format_service.js +11 -0
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +11 -0
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +11 -0
- package/dist/services/master/main/master_main_industry_service.js +11 -0
- package/dist/services/master/main/master_main_landmark_service.d.ts +6 -6
- package/dist/services/master/main/master_main_landmark_service.js +11 -0
- package/dist/services/master/main/master_main_language_service.js +11 -0
- package/dist/services/master/main/master_main_sim_provider_service.js +11 -0
- package/dist/services/master/main/master_main_state_service.js +11 -0
- package/dist/services/master/main/master_main_timezone_service.js +11 -0
- package/dist/services/master/main/master_main_unit_distance_service.js +11 -0
- package/dist/services/master/main/master_main_unit_mileage_service.js +11 -0
- package/dist/services/master/main/master_main_unit_volume_service.js +11 -0
- package/dist/services/master/organisation/organisation_branch_service.js +11 -0
- package/dist/services/master/organisation/organisation_color_service.js +11 -0
- package/dist/services/master/organisation/organisation_group_service.js +11 -0
- package/dist/services/master/organisation/organisation_sub_company_service.js +11 -0
- package/dist/services/master/organisation/organisation_tag_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +11 -0
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +11 -0
- package/dist/services/master/trip/master_trip_party_type_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_grade_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_make_service.js +11 -0
- package/dist/services/master/tyre/master_tyre_model_service.js +11 -0
- package/dist/services/master/user/master_user_role_service.js +11 -0
- package/dist/services/master/user/master_user_status_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_make_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +11 -0
- package/dist/services/master/vehicle/master_vehicle_type_service.js +11 -0
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.js +11 -0
- package/dist/services/website/faq_service.js +11 -0
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.js +11 -0
- package/dist/zod_utils/zod_base_schema.d.ts +36 -4
- package/dist/zod_utils/zod_base_schema.js +12 -0
- package/package.json +1 -1
|
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
40
40
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
gps_track_history_share_link_id: string;
|
|
43
44
|
status: Status;
|
|
44
45
|
organisation_id: string;
|
|
45
46
|
type: NotificationType;
|
|
46
47
|
to_recipients: string;
|
|
47
|
-
gps_track_history_share_link_id: string;
|
|
48
48
|
}, {
|
|
49
|
+
gps_track_history_share_link_id: string;
|
|
49
50
|
status: Status;
|
|
50
51
|
organisation_id: string;
|
|
51
52
|
type: NotificationType;
|
|
52
53
|
to_recipients: string;
|
|
53
|
-
gps_track_history_share_link_id: string;
|
|
54
54
|
}>;
|
|
55
55
|
type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
|
|
56
56
|
declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
68
68
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
69
69
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
70
70
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
71
|
+
gps_track_history_share_link_id: string;
|
|
71
72
|
status: Status;
|
|
72
73
|
organisation_id: string;
|
|
73
74
|
type: NotificationType;
|
|
74
75
|
to_recipients: string;
|
|
75
|
-
gps_track_history_share_link_id: string;
|
|
76
76
|
}, {
|
|
77
|
+
gps_track_history_share_link_id: string;
|
|
77
78
|
status: Status;
|
|
78
79
|
organisation_id: string;
|
|
79
80
|
type: NotificationType;
|
|
80
81
|
to_recipients: string;
|
|
81
|
-
gps_track_history_share_link_id: string;
|
|
82
82
|
}>, "many">>>;
|
|
83
83
|
}, "strip", z.ZodTypeAny, {
|
|
84
|
+
from_date_time: string;
|
|
85
|
+
to_date_time: string;
|
|
86
|
+
link_status: TrackHistoryLinkStatus;
|
|
84
87
|
status: Status;
|
|
85
88
|
organisation_id: string;
|
|
86
89
|
vehicle_id: string;
|
|
87
|
-
link_status: TrackHistoryLinkStatus;
|
|
88
90
|
trip_id: string;
|
|
89
91
|
notifications: {
|
|
92
|
+
gps_track_history_share_link_id: string;
|
|
90
93
|
status: Status;
|
|
91
94
|
organisation_id: string;
|
|
92
95
|
type: NotificationType;
|
|
93
96
|
to_recipients: string;
|
|
94
|
-
gps_track_history_share_link_id: string;
|
|
95
97
|
}[];
|
|
98
|
+
}, {
|
|
96
99
|
from_date_time: string;
|
|
97
100
|
to_date_time: string;
|
|
98
|
-
|
|
101
|
+
link_status: TrackHistoryLinkStatus;
|
|
99
102
|
status: Status;
|
|
100
103
|
organisation_id: string;
|
|
101
104
|
vehicle_id: string;
|
|
102
|
-
link_status: TrackHistoryLinkStatus;
|
|
103
105
|
trip_id: string;
|
|
104
|
-
from_date_time: string;
|
|
105
|
-
to_date_time: string;
|
|
106
106
|
notifications?: {
|
|
107
|
+
gps_track_history_share_link_id: string;
|
|
107
108
|
status: Status;
|
|
108
109
|
organisation_id: string;
|
|
109
110
|
type: NotificationType;
|
|
110
111
|
to_recipients: string;
|
|
111
|
-
gps_track_history_share_link_id: string;
|
|
112
112
|
}[] | undefined;
|
|
113
113
|
}>;
|
|
114
114
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
@@ -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[];
|
|
151
152
|
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
|
+
vehicle_ids: string[];
|
|
175
175
|
trip_ids: string[];
|
|
176
176
|
}, {
|
|
177
177
|
date_format_id: string;
|
|
178
178
|
time_zone_id: string;
|
|
179
|
+
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
179
180
|
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
|
+
vehicle_ids?: string[] | undefined;
|
|
201
201
|
trip_ids?: string[] | undefined;
|
|
202
202
|
}>;
|
|
203
203
|
type GPSTrackHistoryShareLinkQueryDTO = z.infer<typeof GPSTrackHistoryShareLinkQuerySchema>;
|
|
@@ -214,6 +214,17 @@ var OrderBySchema = z2.array(
|
|
|
214
214
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
215
215
|
})
|
|
216
216
|
);
|
|
217
|
+
var BaseFileSchema = z2.object({
|
|
218
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
219
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
220
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
221
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
222
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
223
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
224
|
+
file_size: numberOptional("File Size"),
|
|
225
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
226
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
227
|
+
});
|
|
217
228
|
var BaseQuerySchema = z2.object({
|
|
218
229
|
search: stringOptional("Search", 0, 255, ""),
|
|
219
230
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -64,6 +64,10 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
64
64
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
65
65
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
status: Status;
|
|
68
|
+
organisation_id: string;
|
|
69
|
+
vehicle_ids: string[];
|
|
70
|
+
user_ids: string[];
|
|
67
71
|
notification_name: string;
|
|
68
72
|
notification_status: OnOff;
|
|
69
73
|
notification_types: NotificationType[];
|
|
@@ -72,23 +76,19 @@ declare const UserNotificationPreferencesSchema: z.ZodObject<{
|
|
|
72
76
|
email_ids: string;
|
|
73
77
|
cc_email_ids: string;
|
|
74
78
|
all_vehicles: YesNo;
|
|
79
|
+
}, {
|
|
75
80
|
status: Status;
|
|
76
81
|
organisation_id: string;
|
|
77
|
-
user_ids: string[];
|
|
78
|
-
vehicle_ids: string[];
|
|
79
|
-
}, {
|
|
80
82
|
notification_name: string;
|
|
81
83
|
notification_status: OnOff;
|
|
82
84
|
all_vehicles: YesNo;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
+
vehicle_ids?: string[] | undefined;
|
|
86
|
+
user_ids?: string[] | undefined;
|
|
85
87
|
notification_types?: NotificationType[] | undefined;
|
|
86
88
|
notification_list?: NotificationPreference[] | undefined;
|
|
87
89
|
mobile_numbers?: string | undefined;
|
|
88
90
|
email_ids?: string | undefined;
|
|
89
91
|
cc_email_ids?: string | undefined;
|
|
90
|
-
user_ids?: string[] | undefined;
|
|
91
|
-
vehicle_ids?: string[] | undefined;
|
|
92
92
|
}>;
|
|
93
93
|
type UserNotificationPreferencesDTO = z.infer<typeof UserNotificationPreferencesSchema>;
|
|
94
94
|
declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
@@ -127,8 +127,6 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
127
127
|
notification_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
128
128
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
129
129
|
}, "strip", z.ZodTypeAny, {
|
|
130
|
-
notification_status: OnOff[];
|
|
131
|
-
all_vehicles: YesNo[];
|
|
132
130
|
status: Status[];
|
|
133
131
|
search: string;
|
|
134
132
|
paging: PAGING;
|
|
@@ -151,12 +149,12 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
151
149
|
date_format_id: string;
|
|
152
150
|
time_zone_id: string;
|
|
153
151
|
organisation_ids: string[];
|
|
152
|
+
notification_status: OnOff[];
|
|
153
|
+
all_vehicles: YesNo[];
|
|
154
154
|
notification_preference_ids: string[];
|
|
155
155
|
}, {
|
|
156
156
|
date_format_id: string;
|
|
157
157
|
time_zone_id: string;
|
|
158
|
-
notification_status?: OnOff[] | undefined;
|
|
159
|
-
all_vehicles?: YesNo[] | undefined;
|
|
160
158
|
status?: Status[] | undefined;
|
|
161
159
|
search?: string | undefined;
|
|
162
160
|
paging?: PAGING | undefined;
|
|
@@ -177,6 +175,8 @@ declare const UserNotificationPreferencesQuerySchema: z.ZodObject<{
|
|
|
177
175
|
}[] | undefined;
|
|
178
176
|
include_master_data?: YesNo | undefined;
|
|
179
177
|
organisation_ids?: string[] | undefined;
|
|
178
|
+
notification_status?: OnOff[] | undefined;
|
|
179
|
+
all_vehicles?: YesNo[] | undefined;
|
|
180
180
|
notification_preference_ids?: string[] | undefined;
|
|
181
181
|
}>;
|
|
182
182
|
type UserNotificationPreferencesQueryDTO = z.infer<typeof UserNotificationPreferencesQuerySchema>;
|
|
@@ -234,6 +234,17 @@ var OrderBySchema = z2.array(
|
|
|
234
234
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
235
235
|
})
|
|
236
236
|
);
|
|
237
|
+
var BaseFileSchema = z2.object({
|
|
238
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
239
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
240
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
241
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
242
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
243
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
244
|
+
file_size: numberOptional("File Size"),
|
|
245
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
246
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
247
|
+
});
|
|
237
248
|
var BaseQuerySchema = z2.object({
|
|
238
249
|
search: stringOptional("Search", 0, 255, ""),
|
|
239
250
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -48,25 +48,25 @@ declare const UserReportPreferencesSchema: z.ZodObject<{
|
|
|
48
48
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
email_ids: string;
|
|
52
|
-
cc_email_ids: string;
|
|
53
|
-
all_vehicles: YesNo;
|
|
54
51
|
status: Status;
|
|
55
52
|
organisation_id: string;
|
|
56
53
|
vehicle_ids: string[];
|
|
54
|
+
email_ids: string;
|
|
55
|
+
cc_email_ids: string;
|
|
56
|
+
all_vehicles: YesNo;
|
|
57
57
|
report_name: string;
|
|
58
58
|
report_status: OnOff;
|
|
59
59
|
report_types: ReportType[];
|
|
60
60
|
report_list: ReportPreference[];
|
|
61
61
|
}, {
|
|
62
|
-
email_ids: string;
|
|
63
|
-
all_vehicles: YesNo;
|
|
64
62
|
status: Status;
|
|
65
63
|
organisation_id: string;
|
|
64
|
+
email_ids: string;
|
|
65
|
+
all_vehicles: YesNo;
|
|
66
66
|
report_name: string;
|
|
67
67
|
report_status: OnOff;
|
|
68
|
-
cc_email_ids?: string | undefined;
|
|
69
68
|
vehicle_ids?: string[] | undefined;
|
|
69
|
+
cc_email_ids?: string | undefined;
|
|
70
70
|
report_types?: ReportType[] | undefined;
|
|
71
71
|
report_list?: ReportPreference[] | undefined;
|
|
72
72
|
}>;
|
|
@@ -107,7 +107,6 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
107
107
|
report_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OnOff>, "many">>>;
|
|
108
108
|
all_vehicles: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
109
109
|
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
all_vehicles: YesNo[];
|
|
111
110
|
status: Status[];
|
|
112
111
|
search: string;
|
|
113
112
|
paging: PAGING;
|
|
@@ -130,12 +129,12 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
130
129
|
date_format_id: string;
|
|
131
130
|
time_zone_id: string;
|
|
132
131
|
organisation_ids: string[];
|
|
132
|
+
all_vehicles: YesNo[];
|
|
133
133
|
report_status: OnOff[];
|
|
134
134
|
report_preference_ids: string[];
|
|
135
135
|
}, {
|
|
136
136
|
date_format_id: string;
|
|
137
137
|
time_zone_id: string;
|
|
138
|
-
all_vehicles?: YesNo[] | undefined;
|
|
139
138
|
status?: Status[] | undefined;
|
|
140
139
|
search?: string | undefined;
|
|
141
140
|
paging?: PAGING | undefined;
|
|
@@ -156,6 +155,7 @@ declare const UserReportPreferencesQuerySchema: z.ZodObject<{
|
|
|
156
155
|
}[] | undefined;
|
|
157
156
|
include_master_data?: YesNo | undefined;
|
|
158
157
|
organisation_ids?: string[] | undefined;
|
|
158
|
+
all_vehicles?: YesNo[] | undefined;
|
|
159
159
|
report_status?: OnOff[] | undefined;
|
|
160
160
|
report_preference_ids?: string[] | undefined;
|
|
161
161
|
}>;
|
|
@@ -232,6 +232,17 @@ var OrderBySchema = z2.array(
|
|
|
232
232
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
233
233
|
})
|
|
234
234
|
);
|
|
235
|
+
var BaseFileSchema = z2.object({
|
|
236
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
237
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
238
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
239
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
240
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
241
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
242
|
+
file_size: numberOptional("File Size"),
|
|
243
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
244
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
245
|
+
});
|
|
235
246
|
var BaseQuerySchema = z2.object({
|
|
236
247
|
search: stringOptional("Search", 0, 255, ""),
|
|
237
248
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -314,8 +325,8 @@ var toUserReportsPreferencesPayload = (data) => ({
|
|
|
314
325
|
report_status: data.report_status,
|
|
315
326
|
report_types: data.report_types,
|
|
316
327
|
report_list: data.report_list,
|
|
317
|
-
email_ids: data.email_ids,
|
|
318
|
-
cc_email_ids: data.
|
|
328
|
+
email_ids: data.email_ids || "",
|
|
329
|
+
cc_email_ids: data.cc_email_ids || "",
|
|
319
330
|
all_vehicles: data.all_vehicles,
|
|
320
331
|
vehicle_ids: data.UserReportsPreferencesVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
321
332
|
status: "Active" /* Active */
|
|
@@ -34,41 +34,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
34
34
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
35
35
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
db_group: string;
|
|
38
|
-
db_instance: string;
|
|
39
|
-
night_driving: NightDriving;
|
|
40
37
|
search: string;
|
|
41
38
|
paging: PAGING;
|
|
42
39
|
page_count: number;
|
|
43
40
|
page_index: number;
|
|
41
|
+
login_from: LoginFrom;
|
|
44
42
|
date_format_id: string;
|
|
45
43
|
time_zone_id: string;
|
|
46
|
-
login_from: LoginFrom;
|
|
47
44
|
organisation_id: string;
|
|
45
|
+
db_instance: string;
|
|
46
|
+
db_group: string;
|
|
48
47
|
vehicle_ids: string[];
|
|
49
48
|
from_date: string;
|
|
50
49
|
to_date: string;
|
|
51
50
|
time_slot: TimeSlot;
|
|
51
|
+
night_driving: NightDriving;
|
|
52
52
|
over_speed: OverSpeed;
|
|
53
53
|
utilization_km: number;
|
|
54
54
|
vehicle_summary: YesNo;
|
|
55
55
|
driver_summary: YesNo;
|
|
56
56
|
}, {
|
|
57
|
-
|
|
58
|
-
db_instance: string;
|
|
57
|
+
login_from: LoginFrom;
|
|
59
58
|
date_format_id: string;
|
|
60
59
|
time_zone_id: string;
|
|
61
|
-
login_from: LoginFrom;
|
|
62
60
|
organisation_id: string;
|
|
61
|
+
db_instance: string;
|
|
62
|
+
db_group: string;
|
|
63
63
|
from_date: string;
|
|
64
64
|
to_date: string;
|
|
65
|
-
night_driving?: NightDriving | undefined;
|
|
66
65
|
search?: string | undefined;
|
|
67
66
|
paging?: PAGING | undefined;
|
|
68
67
|
page_count?: unknown;
|
|
69
68
|
page_index?: unknown;
|
|
70
69
|
vehicle_ids?: string[] | undefined;
|
|
71
70
|
time_slot?: TimeSlot | undefined;
|
|
71
|
+
night_driving?: NightDriving | undefined;
|
|
72
72
|
over_speed?: OverSpeed | undefined;
|
|
73
73
|
utilization_km?: unknown;
|
|
74
74
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -97,40 +97,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
97
97
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
98
98
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
db_group: string;
|
|
101
|
-
db_instance: string;
|
|
102
|
-
night_driving: NightDriving;
|
|
103
100
|
search: string;
|
|
104
101
|
paging: PAGING;
|
|
105
102
|
page_count: number;
|
|
106
103
|
page_index: number;
|
|
104
|
+
login_from: LoginFrom;
|
|
107
105
|
date_format_id: string;
|
|
108
106
|
time_zone_id: string;
|
|
109
|
-
login_from: LoginFrom;
|
|
110
107
|
organisation_id: string;
|
|
108
|
+
db_instance: string;
|
|
109
|
+
db_group: string;
|
|
111
110
|
from_date: string;
|
|
112
111
|
to_date: string;
|
|
113
112
|
time_slot: TimeSlot;
|
|
113
|
+
night_driving: NightDriving;
|
|
114
114
|
over_speed: OverSpeed;
|
|
115
115
|
utilization_km: number;
|
|
116
116
|
vehicle_summary: YesNo;
|
|
117
117
|
driver_summary: YesNo;
|
|
118
118
|
driver_ids: string[];
|
|
119
119
|
}, {
|
|
120
|
-
|
|
121
|
-
db_instance: string;
|
|
120
|
+
login_from: LoginFrom;
|
|
122
121
|
date_format_id: string;
|
|
123
122
|
time_zone_id: string;
|
|
124
|
-
login_from: LoginFrom;
|
|
125
123
|
organisation_id: string;
|
|
124
|
+
db_instance: string;
|
|
125
|
+
db_group: string;
|
|
126
126
|
from_date: string;
|
|
127
127
|
to_date: string;
|
|
128
|
-
night_driving?: NightDriving | undefined;
|
|
129
128
|
search?: string | undefined;
|
|
130
129
|
paging?: PAGING | undefined;
|
|
131
130
|
page_count?: unknown;
|
|
132
131
|
page_index?: unknown;
|
|
133
132
|
time_slot?: TimeSlot | undefined;
|
|
133
|
+
night_driving?: NightDriving | undefined;
|
|
134
134
|
over_speed?: OverSpeed | undefined;
|
|
135
135
|
utilization_km?: unknown;
|
|
136
136
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -157,16 +157,16 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
157
157
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
158
158
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
-
db_group: string;
|
|
161
|
-
db_instance: string;
|
|
162
160
|
search: string;
|
|
163
161
|
paging: PAGING;
|
|
164
162
|
page_count: number;
|
|
165
163
|
page_index: number;
|
|
164
|
+
login_from: LoginFrom;
|
|
166
165
|
date_format_id: string;
|
|
167
166
|
time_zone_id: string;
|
|
168
|
-
login_from: LoginFrom;
|
|
169
167
|
organisation_id: string;
|
|
168
|
+
db_instance: string;
|
|
169
|
+
db_group: string;
|
|
170
170
|
vehicle_ids: string[];
|
|
171
171
|
from_date: string;
|
|
172
172
|
to_date: string;
|
|
@@ -174,12 +174,12 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
174
174
|
interval_seconds: number;
|
|
175
175
|
boolean_type: BooleanType;
|
|
176
176
|
}, {
|
|
177
|
-
|
|
178
|
-
db_instance: string;
|
|
177
|
+
login_from: LoginFrom;
|
|
179
178
|
date_format_id: string;
|
|
180
179
|
time_zone_id: string;
|
|
181
|
-
login_from: LoginFrom;
|
|
182
180
|
organisation_id: string;
|
|
181
|
+
db_instance: string;
|
|
182
|
+
db_group: string;
|
|
183
183
|
from_date: string;
|
|
184
184
|
to_date: string;
|
|
185
185
|
gps_type: GPSType;
|
|
@@ -208,26 +208,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
208
208
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
209
209
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
db_group: string;
|
|
212
|
-
db_instance: string;
|
|
213
211
|
search: string;
|
|
214
212
|
paging: PAGING;
|
|
215
213
|
page_count: number;
|
|
216
214
|
page_index: number;
|
|
215
|
+
login_from: LoginFrom;
|
|
217
216
|
date_format_id: string;
|
|
218
217
|
time_zone_id: string;
|
|
219
|
-
login_from: LoginFrom;
|
|
220
218
|
organisation_id: string;
|
|
219
|
+
db_instance: string;
|
|
220
|
+
db_group: string;
|
|
221
221
|
vehicle_ids: string[];
|
|
222
222
|
utilization_km: number;
|
|
223
223
|
is12am: Is12AM;
|
|
224
224
|
}, {
|
|
225
|
-
|
|
226
|
-
db_instance: string;
|
|
225
|
+
login_from: LoginFrom;
|
|
227
226
|
date_format_id: string;
|
|
228
227
|
time_zone_id: string;
|
|
229
|
-
login_from: LoginFrom;
|
|
230
228
|
organisation_id: string;
|
|
229
|
+
db_instance: string;
|
|
230
|
+
db_group: string;
|
|
231
231
|
is12am: Is12AM;
|
|
232
232
|
search?: string | undefined;
|
|
233
233
|
paging?: PAGING | undefined;
|
|
@@ -254,27 +254,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
254
254
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
255
255
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
db_group: string;
|
|
258
|
-
db_instance: string;
|
|
259
257
|
search: string;
|
|
260
258
|
paging: PAGING;
|
|
261
259
|
page_count: number;
|
|
262
260
|
page_index: number;
|
|
261
|
+
login_from: LoginFrom;
|
|
263
262
|
date_format_id: string;
|
|
264
263
|
time_zone_id: string;
|
|
265
|
-
login_from: LoginFrom;
|
|
266
264
|
organisation_id: string;
|
|
265
|
+
db_instance: string;
|
|
266
|
+
db_group: string;
|
|
267
267
|
interval_seconds: number;
|
|
268
268
|
vehicle_id: string;
|
|
269
269
|
from_date_time: string;
|
|
270
270
|
to_date_time: string;
|
|
271
271
|
}, {
|
|
272
|
-
|
|
273
|
-
db_instance: string;
|
|
272
|
+
login_from: LoginFrom;
|
|
274
273
|
date_format_id: string;
|
|
275
274
|
time_zone_id: string;
|
|
276
|
-
login_from: LoginFrom;
|
|
277
275
|
organisation_id: string;
|
|
276
|
+
db_instance: string;
|
|
277
|
+
db_group: string;
|
|
278
278
|
vehicle_id: string;
|
|
279
279
|
from_date_time: string;
|
|
280
280
|
to_date_time: string;
|
|
@@ -299,24 +299,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
299
299
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
300
300
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
-
db_group: string;
|
|
303
|
-
db_instance: string;
|
|
304
302
|
search: string;
|
|
305
303
|
paging: PAGING;
|
|
306
304
|
page_count: number;
|
|
307
305
|
page_index: number;
|
|
306
|
+
login_from: LoginFrom;
|
|
308
307
|
date_format_id: string;
|
|
309
308
|
time_zone_id: string;
|
|
310
|
-
login_from: LoginFrom;
|
|
311
309
|
organisation_id: string;
|
|
310
|
+
db_instance: string;
|
|
311
|
+
db_group: string;
|
|
312
312
|
vehicle_id: string;
|
|
313
313
|
}, {
|
|
314
|
-
|
|
315
|
-
db_instance: string;
|
|
314
|
+
login_from: LoginFrom;
|
|
316
315
|
date_format_id: string;
|
|
317
316
|
time_zone_id: string;
|
|
318
|
-
login_from: LoginFrom;
|
|
319
317
|
organisation_id: string;
|
|
318
|
+
db_instance: string;
|
|
319
|
+
db_group: string;
|
|
320
320
|
vehicle_id: string;
|
|
321
321
|
search?: string | undefined;
|
|
322
322
|
paging?: PAGING | undefined;
|
|
@@ -346,16 +346,16 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
346
346
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
347
347
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
-
db_group: string;
|
|
350
|
-
db_instance: string;
|
|
351
349
|
search: string;
|
|
352
350
|
paging: PAGING;
|
|
353
351
|
page_count: number;
|
|
354
352
|
page_index: number;
|
|
353
|
+
login_from: LoginFrom;
|
|
355
354
|
date_format_id: string;
|
|
356
355
|
time_zone_id: string;
|
|
357
|
-
login_from: LoginFrom;
|
|
358
356
|
organisation_id: string;
|
|
357
|
+
db_instance: string;
|
|
358
|
+
db_group: string;
|
|
359
359
|
vehicle_ids: string[];
|
|
360
360
|
from_date: string;
|
|
361
361
|
to_date: string;
|
|
@@ -366,12 +366,12 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
366
366
|
alert_types: AlertType[];
|
|
367
367
|
alert_sub_types: AlertSubType[];
|
|
368
368
|
}, {
|
|
369
|
-
|
|
370
|
-
db_instance: string;
|
|
369
|
+
login_from: LoginFrom;
|
|
371
370
|
date_format_id: string;
|
|
372
371
|
time_zone_id: string;
|
|
373
|
-
login_from: LoginFrom;
|
|
374
372
|
organisation_id: string;
|
|
373
|
+
db_instance: string;
|
|
374
|
+
db_group: string;
|
|
375
375
|
from_date: string;
|
|
376
376
|
to_date: string;
|
|
377
377
|
search?: string | undefined;
|
|
@@ -419,6 +419,17 @@ var OrderBySchema = z2.array(
|
|
|
419
419
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
420
420
|
})
|
|
421
421
|
);
|
|
422
|
+
var BaseFileSchema = z2.object({
|
|
423
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
424
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
425
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
426
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
427
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
428
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
429
|
+
file_size: numberOptional("File Size"),
|
|
430
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
431
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
432
|
+
});
|
|
422
433
|
var BaseQuerySchema = z2.object({
|
|
423
434
|
search: stringOptional("Search", 0, 255, ""),
|
|
424
435
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -206,6 +206,17 @@ var OrderBySchema = z2.array(
|
|
|
206
206
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
207
207
|
})
|
|
208
208
|
);
|
|
209
|
+
var BaseFileSchema = z2.object({
|
|
210
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
211
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
212
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
213
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
214
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
215
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
216
|
+
file_size: numberOptional("File Size"),
|
|
217
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
218
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
219
|
+
});
|
|
209
220
|
var BaseQuerySchema = z2.object({
|
|
210
221
|
search: stringOptional("Search", 0, 255, ""),
|
|
211
222
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -193,6 +193,17 @@ var OrderBySchema = z2.array(
|
|
|
193
193
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
194
194
|
})
|
|
195
195
|
);
|
|
196
|
+
var BaseFileSchema = z2.object({
|
|
197
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
198
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
199
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
200
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
201
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
202
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
203
|
+
file_size: numberOptional("File Size"),
|
|
204
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
205
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
206
|
+
});
|
|
196
207
|
var BaseQuerySchema = z2.object({
|
|
197
208
|
search: stringOptional("Search", 0, 255, ""),
|
|
198
209
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -201,6 +201,17 @@ var OrderBySchema = z2.array(
|
|
|
201
201
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
202
202
|
})
|
|
203
203
|
);
|
|
204
|
+
var BaseFileSchema = z2.object({
|
|
205
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
206
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
207
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
208
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
209
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
210
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
211
|
+
file_size: numberOptional("File Size"),
|
|
212
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
213
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
214
|
+
});
|
|
204
215
|
var BaseQuerySchema = z2.object({
|
|
205
216
|
search: stringOptional("Search", 0, 255, ""),
|
|
206
217
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
@@ -194,6 +194,17 @@ var OrderBySchema = z2.array(
|
|
|
194
194
|
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
195
195
|
})
|
|
196
196
|
);
|
|
197
|
+
var BaseFileSchema = z2.object({
|
|
198
|
+
usage_type: stringOptional("Usage Type", 0, 100),
|
|
199
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
200
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
201
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
202
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
203
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
204
|
+
file_size: numberOptional("File Size"),
|
|
205
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
206
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
207
|
+
});
|
|
197
208
|
var BaseQuerySchema = z2.object({
|
|
198
209
|
search: stringOptional("Search", 0, 255, ""),
|
|
199
210
|
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|