vms-nest-prisma-api-document 30.0.0 → 40.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 +0 -4
- package/dist/core/Enums.js +0 -4
- package/dist/services/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/notification_preferences.service.d.ts +11 -11
- package/dist/services/account/notification_preferences.service.js +0 -2
- package/dist/services/account/report_preferences.service.d.ts +52 -52
- package/dist/services/account/report_preferences.service.js +27 -29
- package/dist/services/account/ticket_service.d.ts +2 -2
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +45 -45
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.js +0 -2
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -1
- package/dist/services/gps/features/gps_track_history_share_link_service.js +0 -2
- 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/users/user_service.js +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +5 -5
- 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-DqZC6EYi.d.ts → user_organisation_service-BSw_aKUy.d.ts} +25 -25
package/dist/core/Enums.d.ts
CHANGED
|
@@ -164,13 +164,9 @@ declare enum NotificationList {
|
|
|
164
164
|
}
|
|
165
165
|
declare enum NotificationChannel {
|
|
166
166
|
Push = "Push",
|
|
167
|
-
WhatsApp = "WhatsApp",
|
|
168
|
-
SMS = "SMS",
|
|
169
167
|
Email = "Email"
|
|
170
168
|
}
|
|
171
169
|
declare enum ReportChannel {
|
|
172
|
-
WhatsApp = "WhatsApp",
|
|
173
|
-
SMS = "SMS",
|
|
174
170
|
Email = "Email"
|
|
175
171
|
}
|
|
176
172
|
declare enum ReportType {
|
package/dist/core/Enums.js
CHANGED
|
@@ -193,14 +193,10 @@ var NotificationList = /* @__PURE__ */ ((NotificationList2) => {
|
|
|
193
193
|
})(NotificationList || {});
|
|
194
194
|
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
195
195
|
NotificationChannel2["Push"] = "Push";
|
|
196
|
-
NotificationChannel2["WhatsApp"] = "WhatsApp";
|
|
197
|
-
NotificationChannel2["SMS"] = "SMS";
|
|
198
196
|
NotificationChannel2["Email"] = "Email";
|
|
199
197
|
return NotificationChannel2;
|
|
200
198
|
})(NotificationChannel || {});
|
|
201
199
|
var ReportChannel = /* @__PURE__ */ ((ReportChannel2) => {
|
|
202
|
-
ReportChannel2["WhatsApp"] = "WhatsApp";
|
|
203
|
-
ReportChannel2["SMS"] = "SMS";
|
|
204
200
|
ReportChannel2["Email"] = "Email";
|
|
205
201
|
return ReportChannel2;
|
|
206
202
|
})(ReportChannel || {});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, a as User } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../user_organisation_service-BSw_aKUy.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -40,9 +40,12 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
40
40
|
sub_item_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: Status;
|
|
44
|
+
organisation_id: string;
|
|
45
|
+
group_name: string;
|
|
46
|
+
user_id: string;
|
|
43
47
|
module_name: string;
|
|
44
48
|
menu_type: MenuType;
|
|
45
|
-
group_name: string;
|
|
46
49
|
group_name_language: string;
|
|
47
50
|
group_icon: string;
|
|
48
51
|
group_url: string;
|
|
@@ -50,19 +53,16 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
50
53
|
sub_item_name_language: string;
|
|
51
54
|
sub_item_icon: string;
|
|
52
55
|
sub_item_url: string;
|
|
56
|
+
}, {
|
|
53
57
|
status: Status;
|
|
54
58
|
organisation_id: string;
|
|
59
|
+
group_name: string;
|
|
55
60
|
user_id: string;
|
|
56
|
-
}, {
|
|
57
61
|
module_name: string;
|
|
58
62
|
menu_type: MenuType;
|
|
59
|
-
group_name: string;
|
|
60
63
|
group_name_language: string;
|
|
61
64
|
group_icon: string;
|
|
62
65
|
group_url: string;
|
|
63
|
-
status: Status;
|
|
64
|
-
organisation_id: string;
|
|
65
|
-
user_id: string;
|
|
66
66
|
sub_item_name?: string | undefined;
|
|
67
67
|
sub_item_name_language?: string | undefined;
|
|
68
68
|
sub_item_icon?: string | undefined;
|
|
@@ -105,7 +105,6 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
105
105
|
bookmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
106
|
menu_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MenuType>, "many">>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
menu_type: MenuType[];
|
|
109
108
|
status: Status[];
|
|
110
109
|
search: string;
|
|
111
110
|
paging: PAGING;
|
|
@@ -129,11 +128,11 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
129
128
|
time_zone_id: string;
|
|
130
129
|
organisation_ids: string[];
|
|
131
130
|
user_ids: string[];
|
|
131
|
+
menu_type: MenuType[];
|
|
132
132
|
bookmark_ids: string[];
|
|
133
133
|
}, {
|
|
134
134
|
date_format_id: string;
|
|
135
135
|
time_zone_id: string;
|
|
136
|
-
menu_type?: MenuType[] | undefined;
|
|
137
136
|
status?: Status[] | undefined;
|
|
138
137
|
search?: string | undefined;
|
|
139
138
|
paging?: PAGING | undefined;
|
|
@@ -155,6 +154,7 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
155
154
|
include_master_data?: YesNo | undefined;
|
|
156
155
|
organisation_ids?: string[] | undefined;
|
|
157
156
|
user_ids?: string[] | undefined;
|
|
157
|
+
menu_type?: MenuType[] | undefined;
|
|
158
158
|
bookmark_ids?: string[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
type BookMarkQueryDTO = z.infer<typeof BookMarkQuerySchema>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnOff, NotificationChannel, YesNo, NotificationList, 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, M as MasterVehicle, a as User } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, a as User } from '../../user_organisation_service-BSw_aKUy.js';
|
|
5
5
|
import { GPSGeofence } from '../gps/features/geofence/gps_geofence_service.js';
|
|
6
6
|
import '../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
@@ -85,37 +85,37 @@ declare const OrganisationNotificationPreferenceSchema: z.ZodObject<{
|
|
|
85
85
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
86
86
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
+
mobile_numbers: string;
|
|
89
|
+
email_ids: string;
|
|
90
|
+
cc_email_ids: string;
|
|
91
|
+
all_vehicles: YesNo;
|
|
88
92
|
status: Status;
|
|
89
93
|
organisation_id: string;
|
|
90
|
-
user_ids: string[];
|
|
91
94
|
vehicle_ids: string[];
|
|
92
|
-
|
|
95
|
+
user_ids: string[];
|
|
93
96
|
gps_geofence_ids: string[];
|
|
94
97
|
notification_name: string;
|
|
95
98
|
notification_status: OnOff;
|
|
96
99
|
notification_channels: NotificationChannel[];
|
|
97
|
-
mobile_numbers: string;
|
|
98
|
-
email_ids: string;
|
|
99
|
-
cc_email_ids: string;
|
|
100
100
|
all_users: YesNo;
|
|
101
101
|
notification_list: NotificationList[];
|
|
102
102
|
over_speed_limit: number;
|
|
103
103
|
all_geofences: YesNo;
|
|
104
104
|
}, {
|
|
105
|
+
all_vehicles: YesNo;
|
|
105
106
|
status: Status;
|
|
106
107
|
organisation_id: string;
|
|
107
|
-
all_vehicles: YesNo;
|
|
108
108
|
notification_name: string;
|
|
109
109
|
notification_status: OnOff;
|
|
110
110
|
all_users: YesNo;
|
|
111
111
|
all_geofences: YesNo;
|
|
112
|
-
user_ids?: string[] | undefined;
|
|
113
|
-
vehicle_ids?: string[] | undefined;
|
|
114
|
-
gps_geofence_ids?: string[] | undefined;
|
|
115
|
-
notification_channels?: NotificationChannel[] | undefined;
|
|
116
112
|
mobile_numbers?: string | undefined;
|
|
117
113
|
email_ids?: string | undefined;
|
|
118
114
|
cc_email_ids?: string | undefined;
|
|
115
|
+
vehicle_ids?: string[] | undefined;
|
|
116
|
+
user_ids?: string[] | undefined;
|
|
117
|
+
gps_geofence_ids?: string[] | undefined;
|
|
118
|
+
notification_channels?: NotificationChannel[] | undefined;
|
|
119
119
|
notification_list?: NotificationList[] | undefined;
|
|
120
120
|
over_speed_limit?: unknown;
|
|
121
121
|
}>;
|
|
@@ -217,8 +217,6 @@ var NotificationList = /* @__PURE__ */ ((NotificationList2) => {
|
|
|
217
217
|
})(NotificationList || {});
|
|
218
218
|
var NotificationChannel = /* @__PURE__ */ ((NotificationChannel2) => {
|
|
219
219
|
NotificationChannel2["Push"] = "Push";
|
|
220
|
-
NotificationChannel2["WhatsApp"] = "WhatsApp";
|
|
221
|
-
NotificationChannel2["SMS"] = "SMS";
|
|
222
220
|
NotificationChannel2["Email"] = "Email";
|
|
223
221
|
return NotificationChannel2;
|
|
224
222
|
})(NotificationChannel || {});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnOff, ReportType, ReportList, ReportChannel, 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, M as MasterVehicle } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../user_organisation_service-BSw_aKUy.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
|
-
interface
|
|
8
|
+
interface OrganisationReportPreference extends Record<string, unknown> {
|
|
9
9
|
report_preference_id: string;
|
|
10
10
|
report_name: string;
|
|
11
11
|
report_status: OnOff;
|
|
@@ -21,14 +21,14 @@ interface OrganisationReportsPreference extends Record<string, unknown> {
|
|
|
21
21
|
modified_date_time: string;
|
|
22
22
|
organisation_id: string;
|
|
23
23
|
UserOrganisation?: UserOrganisation;
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
OrganisationReportPreferenceVehicleLink: OrganisationReportPreferenceVehicleLink[];
|
|
25
|
+
OrganisationReportAutomationMail: OrganisationReportAutomationMail[];
|
|
26
26
|
_count?: {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
OrganisationReportPreferenceVehicleLink: number;
|
|
28
|
+
OrganisationReportAutomationMail: number;
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
interface
|
|
31
|
+
interface OrganisationReportPreferenceVehicleLink extends Record<string, unknown> {
|
|
32
32
|
report_preference_vehicle_id: string;
|
|
33
33
|
status: Status;
|
|
34
34
|
added_date_time: string;
|
|
@@ -38,9 +38,9 @@ interface OrganisationReportsPreferenceVehicleLink extends Record<string, unknow
|
|
|
38
38
|
vehicle_number?: string;
|
|
39
39
|
vehicle_type?: string;
|
|
40
40
|
report_preference_id: string;
|
|
41
|
-
|
|
41
|
+
OrganisationReportPreference?: OrganisationReportPreference;
|
|
42
42
|
}
|
|
43
|
-
interface
|
|
43
|
+
interface OrganisationReportAutomationMail extends Record<string, unknown> {
|
|
44
44
|
report_automation_mail_id: string;
|
|
45
45
|
report_name: string;
|
|
46
46
|
report_type: ReportType;
|
|
@@ -54,13 +54,13 @@ interface OrganisationReportsAutomationMail extends Record<string, unknown> {
|
|
|
54
54
|
organisation_id: string;
|
|
55
55
|
UserOrganisation?: UserOrganisation;
|
|
56
56
|
report_preference_id: string;
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
OrganisationReportPreference?: OrganisationReportPreference;
|
|
58
|
+
OrganisationReportAutomationMailVehicleLink: OrganisationReportAutomationMailVehicleLink[];
|
|
59
59
|
_count?: {
|
|
60
|
-
|
|
60
|
+
OrganisationReportAutomationMailVehicleLink: number;
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
interface
|
|
63
|
+
interface OrganisationReportAutomationMailVehicleLink extends Record<string, unknown> {
|
|
64
64
|
report_automation_mail_vehicle_id: string;
|
|
65
65
|
status: Status;
|
|
66
66
|
added_date_time: string;
|
|
@@ -70,9 +70,9 @@ interface OrganisationReportsAutomationMailVehicleLink extends Record<string, un
|
|
|
70
70
|
vehicle_number?: string;
|
|
71
71
|
vehicle_type?: string;
|
|
72
72
|
automation_mail_id: string;
|
|
73
|
-
|
|
73
|
+
OrganisationReportAutomationMail?: OrganisationReportAutomationMail;
|
|
74
74
|
}
|
|
75
|
-
declare const
|
|
75
|
+
declare const OrganisationReportAutomationMailQuerySchema: z.ZodObject<{
|
|
76
76
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
77
77
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
78
78
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -109,6 +109,7 @@ declare const OrganisationReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
109
109
|
report_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportType>, "many">>>;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
status: Status[];
|
|
112
|
+
report_type: ReportType[];
|
|
112
113
|
search: string;
|
|
113
114
|
paging: PAGING;
|
|
114
115
|
page_count: number;
|
|
@@ -130,13 +131,13 @@ declare const OrganisationReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
130
131
|
date_format_id: string;
|
|
131
132
|
time_zone_id: string;
|
|
132
133
|
organisation_ids: string[];
|
|
133
|
-
report_type: ReportType[];
|
|
134
134
|
report_preference_ids: string[];
|
|
135
135
|
report_automation_mail_ids: string[];
|
|
136
136
|
}, {
|
|
137
137
|
date_format_id: string;
|
|
138
138
|
time_zone_id: string;
|
|
139
139
|
status?: Status[] | undefined;
|
|
140
|
+
report_type?: ReportType[] | undefined;
|
|
140
141
|
search?: string | undefined;
|
|
141
142
|
paging?: PAGING | undefined;
|
|
142
143
|
page_count?: unknown;
|
|
@@ -156,12 +157,11 @@ declare const OrganisationReportsAutomationMailQuerySchema: z.ZodObject<{
|
|
|
156
157
|
}[] | undefined;
|
|
157
158
|
include_master_data?: YesNo | undefined;
|
|
158
159
|
organisation_ids?: string[] | undefined;
|
|
159
|
-
report_type?: ReportType[] | undefined;
|
|
160
160
|
report_preference_ids?: string[] | undefined;
|
|
161
161
|
report_automation_mail_ids?: string[] | undefined;
|
|
162
162
|
}>;
|
|
163
|
-
type
|
|
164
|
-
declare const
|
|
163
|
+
type OrganisationReportAutomationMailQueryDTO = z.infer<typeof OrganisationReportAutomationMailQuerySchema>;
|
|
164
|
+
declare const OrganisationReportPreferenceSchema: z.ZodObject<{
|
|
165
165
|
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
166
166
|
report_name: z.ZodEffects<z.ZodString, string, string>;
|
|
167
167
|
report_status: z.ZodType<OnOff, z.ZodTypeDef, OnOff>;
|
|
@@ -175,34 +175,34 @@ declare const OrganisationReportsPreferenceSchema: z.ZodObject<{
|
|
|
175
175
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
176
176
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
177
177
|
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
status: Status;
|
|
179
|
-
organisation_id: string;
|
|
180
|
-
vehicle_ids: string[];
|
|
181
|
-
all_vehicles: YesNo;
|
|
182
|
-
mobile_numbers: string;
|
|
183
|
-
email_ids: string;
|
|
184
|
-
cc_email_ids: string;
|
|
185
178
|
report_name: string;
|
|
186
179
|
report_status: OnOff;
|
|
187
180
|
report_types: ReportType[];
|
|
188
181
|
report_list: ReportList[];
|
|
189
|
-
report_channels: ReportChannel[];
|
|
190
|
-
|
|
182
|
+
report_channels: ReportChannel.Email[];
|
|
183
|
+
mobile_numbers: string;
|
|
184
|
+
email_ids: string;
|
|
185
|
+
cc_email_ids: string;
|
|
186
|
+
all_vehicles: YesNo;
|
|
191
187
|
status: Status;
|
|
192
188
|
organisation_id: string;
|
|
193
|
-
|
|
189
|
+
vehicle_ids: string[];
|
|
190
|
+
}, {
|
|
194
191
|
report_name: string;
|
|
195
192
|
report_status: OnOff;
|
|
196
|
-
|
|
193
|
+
all_vehicles: YesNo;
|
|
194
|
+
status: Status;
|
|
195
|
+
organisation_id: string;
|
|
196
|
+
report_types?: ReportType[] | undefined;
|
|
197
|
+
report_list?: ReportList[] | undefined;
|
|
198
|
+
report_channels?: ReportChannel.Email[] | undefined;
|
|
197
199
|
mobile_numbers?: string | undefined;
|
|
198
200
|
email_ids?: string | undefined;
|
|
199
201
|
cc_email_ids?: string | undefined;
|
|
200
|
-
|
|
201
|
-
report_list?: ReportList[] | undefined;
|
|
202
|
-
report_channels?: ReportChannel[] | undefined;
|
|
202
|
+
vehicle_ids?: string[] | undefined;
|
|
203
203
|
}>;
|
|
204
|
-
type
|
|
205
|
-
declare const
|
|
204
|
+
type OrganisationReportPreferenceDTO = z.infer<typeof OrganisationReportPreferenceSchema>;
|
|
205
|
+
declare const OrganisationReportPreferenceQuerySchema: z.ZodObject<{
|
|
206
206
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
207
207
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
208
208
|
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
@@ -240,6 +240,10 @@ declare const OrganisationReportsPreferenceQuerySchema: z.ZodObject<{
|
|
|
240
240
|
report_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportList>, "many">>>;
|
|
241
241
|
report_channels: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ReportChannel>, "many">>>;
|
|
242
242
|
}, "strip", z.ZodTypeAny, {
|
|
243
|
+
report_status: OnOff[];
|
|
244
|
+
report_types: ReportType[];
|
|
245
|
+
report_list: ReportList[];
|
|
246
|
+
report_channels: ReportChannel.Email[];
|
|
243
247
|
status: Status[];
|
|
244
248
|
search: string;
|
|
245
249
|
paging: PAGING;
|
|
@@ -262,14 +266,14 @@ declare const OrganisationReportsPreferenceQuerySchema: z.ZodObject<{
|
|
|
262
266
|
date_format_id: string;
|
|
263
267
|
time_zone_id: string;
|
|
264
268
|
organisation_ids: string[];
|
|
265
|
-
report_status: OnOff[];
|
|
266
|
-
report_types: ReportType[];
|
|
267
|
-
report_list: ReportList[];
|
|
268
|
-
report_channels: ReportChannel[];
|
|
269
269
|
report_preference_ids: string[];
|
|
270
270
|
}, {
|
|
271
271
|
date_format_id: string;
|
|
272
272
|
time_zone_id: string;
|
|
273
|
+
report_status?: OnOff[] | undefined;
|
|
274
|
+
report_types?: ReportType[] | undefined;
|
|
275
|
+
report_list?: ReportList[] | undefined;
|
|
276
|
+
report_channels?: ReportChannel.Email[] | undefined;
|
|
273
277
|
status?: Status[] | undefined;
|
|
274
278
|
search?: string | undefined;
|
|
275
279
|
paging?: PAGING | undefined;
|
|
@@ -290,19 +294,15 @@ declare const OrganisationReportsPreferenceQuerySchema: z.ZodObject<{
|
|
|
290
294
|
}[] | undefined;
|
|
291
295
|
include_master_data?: YesNo | undefined;
|
|
292
296
|
organisation_ids?: string[] | undefined;
|
|
293
|
-
report_status?: OnOff[] | undefined;
|
|
294
|
-
report_types?: ReportType[] | undefined;
|
|
295
|
-
report_list?: ReportList[] | undefined;
|
|
296
|
-
report_channels?: ReportChannel[] | undefined;
|
|
297
297
|
report_preference_ids?: string[] | undefined;
|
|
298
298
|
}>;
|
|
299
|
-
type
|
|
300
|
-
declare const
|
|
301
|
-
declare const
|
|
302
|
-
declare const
|
|
303
|
-
declare const
|
|
304
|
-
declare const
|
|
305
|
-
declare const
|
|
306
|
-
declare const
|
|
299
|
+
type OrganisationReportPreferenceQueryDTO = z.infer<typeof OrganisationReportPreferenceQuerySchema>;
|
|
300
|
+
declare const toOrganisationReportPreferencePayload: (data: OrganisationReportPreference) => OrganisationReportPreferenceDTO;
|
|
301
|
+
declare const newOrganisationReportPreferencePayload: () => OrganisationReportPreferenceDTO;
|
|
302
|
+
declare const findOrganisationReportPreference: (data: OrganisationReportPreferenceQueryDTO) => Promise<FBR<OrganisationReportPreference[]>>;
|
|
303
|
+
declare const createOrganisationReportPreference: (data: OrganisationReportPreferenceDTO) => Promise<SBR>;
|
|
304
|
+
declare const updateOrganisationReportPreference: (id: string, data: OrganisationReportPreferenceDTO) => Promise<SBR>;
|
|
305
|
+
declare const deleteOrganisationReportPreference: (id: string) => Promise<SBR>;
|
|
306
|
+
declare const findUserReportAutomationMail: (data: OrganisationReportAutomationMailQueryDTO) => Promise<FBR<OrganisationReportAutomationMail[]>>;
|
|
307
307
|
|
|
308
|
-
export { type
|
|
308
|
+
export { type OrganisationReportAutomationMail, type OrganisationReportAutomationMailQueryDTO, OrganisationReportAutomationMailQuerySchema, type OrganisationReportAutomationMailVehicleLink, type OrganisationReportPreference, type OrganisationReportPreferenceDTO, type OrganisationReportPreferenceQueryDTO, OrganisationReportPreferenceQuerySchema, OrganisationReportPreferenceSchema, type OrganisationReportPreferenceVehicleLink, createOrganisationReportPreference, deleteOrganisationReportPreference, findOrganisationReportPreference, findUserReportAutomationMail, newOrganisationReportPreferencePayload, toOrganisationReportPreferencePayload, updateOrganisationReportPreference };
|
|
@@ -220,8 +220,6 @@ var ReportList = /* @__PURE__ */ ((ReportList2) => {
|
|
|
220
220
|
return ReportList2;
|
|
221
221
|
})(ReportList || {});
|
|
222
222
|
var ReportChannel = /* @__PURE__ */ ((ReportChannel2) => {
|
|
223
|
-
ReportChannel2["WhatsApp"] = "WhatsApp";
|
|
224
|
-
ReportChannel2["SMS"] = "SMS";
|
|
225
223
|
ReportChannel2["Email"] = "Email";
|
|
226
224
|
return ReportChannel2;
|
|
227
225
|
})(ReportChannel || {});
|
|
@@ -300,24 +298,24 @@ var ENDPOINTS = {
|
|
|
300
298
|
update: (id) => `${URL}/${id}`,
|
|
301
299
|
delete: (id) => `${URL}/${id}`
|
|
302
300
|
};
|
|
303
|
-
var
|
|
301
|
+
var OrganisationReportAutomationMailQuerySchema = BaseQuerySchema.extend({
|
|
304
302
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
305
303
|
// ✅ Multi-Selection -> UserOrganisation
|
|
306
304
|
report_preference_ids: multi_select_optional(
|
|
307
|
-
"
|
|
305
|
+
"OrganisationReportPreference"
|
|
308
306
|
),
|
|
309
|
-
// ✅ Multi-Selection ->
|
|
307
|
+
// ✅ Multi-Selection -> OrganisationReportPreference
|
|
310
308
|
report_automation_mail_ids: multi_select_optional(
|
|
311
|
-
"
|
|
309
|
+
"OrganisationReportAutomationMail"
|
|
312
310
|
),
|
|
313
|
-
// ✅ Multi-Selection ->
|
|
311
|
+
// ✅ Multi-Selection -> OrganisationReportAutomationMail
|
|
314
312
|
report_type: enumArrayOptional(
|
|
315
313
|
"Report Type",
|
|
316
314
|
ReportType,
|
|
317
315
|
getAllEnums(ReportType)
|
|
318
316
|
)
|
|
319
317
|
});
|
|
320
|
-
var
|
|
318
|
+
var OrganisationReportPreferenceSchema = z3.object({
|
|
321
319
|
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
322
320
|
report_name: stringMandatory("Report Name", 3, 100),
|
|
323
321
|
report_status: enumMandatory("Report Status", OnOff, "On" /* On */),
|
|
@@ -344,11 +342,11 @@ var OrganisationReportsPreferenceSchema = z3.object({
|
|
|
344
342
|
// Multi selection -> MasterVehicle
|
|
345
343
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
346
344
|
});
|
|
347
|
-
var
|
|
345
|
+
var OrganisationReportPreferenceQuerySchema = BaseQuerySchema.extend({
|
|
348
346
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
349
347
|
// ✅ Multi-Selection -> UserOrganisation
|
|
350
|
-
report_preference_ids: multi_select_optional("
|
|
351
|
-
// ✅ Multi-Selection ->
|
|
348
|
+
report_preference_ids: multi_select_optional("OrganisationReportPreference"),
|
|
349
|
+
// ✅ Multi-Selection -> OrganisationReportPreference
|
|
352
350
|
report_status: enumArrayOptional("Report Status", OnOff, getAllEnums(OnOff)),
|
|
353
351
|
report_types: enumArrayOptional(
|
|
354
352
|
"Report Type",
|
|
@@ -366,7 +364,7 @@ var OrganisationReportsPreferenceQuerySchema = BaseQuerySchema.extend({
|
|
|
366
364
|
getAllEnums(ReportChannel)
|
|
367
365
|
)
|
|
368
366
|
});
|
|
369
|
-
var
|
|
367
|
+
var toOrganisationReportPreferencePayload = (data) => ({
|
|
370
368
|
organisation_id: data.organisation_id,
|
|
371
369
|
report_name: data.report_name,
|
|
372
370
|
report_status: data.report_status,
|
|
@@ -377,10 +375,10 @@ var toOrganisationReportsPreferencePayload = (data) => ({
|
|
|
377
375
|
email_ids: data.email_ids || "",
|
|
378
376
|
cc_email_ids: data.cc_email_ids || "",
|
|
379
377
|
all_vehicles: data.all_vehicles,
|
|
380
|
-
vehicle_ids: data.
|
|
378
|
+
vehicle_ids: data.OrganisationReportPreferenceVehicleLink?.map((v) => v.vehicle_id) ?? [],
|
|
381
379
|
status: "Active" /* Active */
|
|
382
380
|
});
|
|
383
|
-
var
|
|
381
|
+
var newOrganisationReportPreferencePayload = () => ({
|
|
384
382
|
organisation_id: "",
|
|
385
383
|
report_name: "",
|
|
386
384
|
report_status: "On" /* On */,
|
|
@@ -394,30 +392,30 @@ var newOrganisationReportsPreferencePayload = () => ({
|
|
|
394
392
|
vehicle_ids: [],
|
|
395
393
|
status: "Active" /* Active */
|
|
396
394
|
});
|
|
397
|
-
var
|
|
395
|
+
var findOrganisationReportPreference = async (data) => {
|
|
398
396
|
return apiPost(ENDPOINTS.find, data);
|
|
399
397
|
};
|
|
400
|
-
var
|
|
398
|
+
var createOrganisationReportPreference = async (data) => {
|
|
401
399
|
return apiPost(ENDPOINTS.create, data);
|
|
402
400
|
};
|
|
403
|
-
var
|
|
401
|
+
var updateOrganisationReportPreference = async (id, data) => {
|
|
404
402
|
return apiPatch(ENDPOINTS.update(id), data);
|
|
405
403
|
};
|
|
406
|
-
var
|
|
404
|
+
var deleteOrganisationReportPreference = async (id) => {
|
|
407
405
|
return apiDelete(ENDPOINTS.delete(id));
|
|
408
406
|
};
|
|
409
|
-
var
|
|
407
|
+
var findUserReportAutomationMail = async (data) => {
|
|
410
408
|
return apiPost(ENDPOINTS.find_automation_mail, data);
|
|
411
409
|
};
|
|
412
410
|
export {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
411
|
+
OrganisationReportAutomationMailQuerySchema,
|
|
412
|
+
OrganisationReportPreferenceQuerySchema,
|
|
413
|
+
OrganisationReportPreferenceSchema,
|
|
414
|
+
createOrganisationReportPreference,
|
|
415
|
+
deleteOrganisationReportPreference,
|
|
416
|
+
findOrganisationReportPreference,
|
|
417
|
+
findUserReportAutomationMail,
|
|
418
|
+
newOrganisationReportPreferencePayload,
|
|
419
|
+
toOrganisationReportPreferencePayload,
|
|
420
|
+
updateOrganisationReportPreference
|
|
423
421
|
};
|
|
@@ -2,7 +2,7 @@ import { TicketStatus, Status, FileType, PAGING, LoadParents, LoadChild, LoadChi
|
|
|
2
2
|
import { BaseCommionFile, FBR, SBR, BR, AWSPresignedUrl } from '../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { FilePresignedUrlDTO } from '../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import { U as UserOrganisation, a as User } from '../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User } from '../../user_organisation_service-BSw_aKUy.js';
|
|
6
6
|
import { UserAdmin } from '../main/users/user_admin_service.js';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
|
|
@@ -120,8 +120,8 @@ declare const TicketSchema: z.ZodObject<{
|
|
|
120
120
|
}, "strip", z.ZodTypeAny, {
|
|
121
121
|
status: Status;
|
|
122
122
|
organisation_id: string;
|
|
123
|
-
user_id: string;
|
|
124
123
|
description: string;
|
|
124
|
+
user_id: string;
|
|
125
125
|
admin_id: string;
|
|
126
126
|
subject: string;
|
|
127
127
|
admin_message: string;
|
|
@@ -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, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver, c as MasterDevice } from '../../../user_organisation_service-BSw_aKUy.js';
|
|
5
5
|
import { FuelConsumptionMonthly } from '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
|
|
6
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
@@ -62,22 +62,22 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
|
|
|
62
62
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
date: string;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
user_id: string;
|
|
68
|
-
vehicle_id: string;
|
|
69
|
-
driver_id: string;
|
|
70
|
-
device_id: string;
|
|
65
|
+
start_fuel_liters: number;
|
|
66
|
+
end_fuel_liters: number;
|
|
71
67
|
total_km: number;
|
|
72
68
|
consumed_fuel_liters: number;
|
|
73
69
|
refills_count: number;
|
|
74
|
-
start_fuel_liters: number;
|
|
75
|
-
end_fuel_liters: number;
|
|
76
70
|
refill_liters: number;
|
|
77
71
|
removals_count: number;
|
|
78
72
|
removal_liters: number;
|
|
79
73
|
mileage_kmpl: number;
|
|
80
74
|
liters_per_100km: number;
|
|
75
|
+
status: Status;
|
|
76
|
+
organisation_id: string;
|
|
77
|
+
user_id: string;
|
|
78
|
+
vehicle_id: string;
|
|
79
|
+
driver_id: string;
|
|
80
|
+
device_id: string;
|
|
81
81
|
}, {
|
|
82
82
|
date: string;
|
|
83
83
|
status: Status;
|
|
@@ -86,11 +86,11 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
|
|
|
86
86
|
vehicle_id: string;
|
|
87
87
|
driver_id: string;
|
|
88
88
|
device_id: string;
|
|
89
|
+
start_fuel_liters?: unknown;
|
|
90
|
+
end_fuel_liters?: unknown;
|
|
89
91
|
total_km?: unknown;
|
|
90
92
|
consumed_fuel_liters?: unknown;
|
|
91
93
|
refills_count?: unknown;
|
|
92
|
-
start_fuel_liters?: unknown;
|
|
93
|
-
end_fuel_liters?: unknown;
|
|
94
94
|
refill_liters?: unknown;
|
|
95
95
|
removals_count?: unknown;
|
|
96
96
|
removal_liters?: unknown;
|
|
@@ -140,7 +140,6 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
140
140
|
day_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
141
141
|
}, "strip", z.ZodTypeAny, {
|
|
142
142
|
status: Status[];
|
|
143
|
-
time_zone_id: string;
|
|
144
143
|
search: string;
|
|
145
144
|
paging: PAGING;
|
|
146
145
|
page_count: number;
|
|
@@ -160,6 +159,7 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
160
159
|
}[];
|
|
161
160
|
include_master_data: YesNo;
|
|
162
161
|
date_format_id: string;
|
|
162
|
+
time_zone_id: string;
|
|
163
163
|
organisation_ids: string[];
|
|
164
164
|
user_ids: string[];
|
|
165
165
|
vehicle_ids: string[];
|
|
@@ -170,8 +170,8 @@ declare const FleetFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
170
170
|
vehicle_summary: YesNo;
|
|
171
171
|
day_summary: YesNo;
|
|
172
172
|
}, {
|
|
173
|
-
time_zone_id: string;
|
|
174
173
|
date_format_id: string;
|
|
174
|
+
time_zone_id: string;
|
|
175
175
|
from_date: string;
|
|
176
176
|
to_date: string;
|
|
177
177
|
status?: Status[] | undefined;
|
|
@@ -239,7 +239,6 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
|
|
|
239
239
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
240
240
|
}, "strip", z.ZodTypeAny, {
|
|
241
241
|
status: Status[];
|
|
242
|
-
time_zone_id: string;
|
|
243
242
|
search: string;
|
|
244
243
|
paging: PAGING;
|
|
245
244
|
page_count: number;
|
|
@@ -259,13 +258,14 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
|
|
|
259
258
|
}[];
|
|
260
259
|
include_master_data: YesNo;
|
|
261
260
|
date_format_id: string;
|
|
261
|
+
time_zone_id: string;
|
|
262
262
|
organisation_ids: string[];
|
|
263
263
|
vehicle_ids: string[];
|
|
264
264
|
from_date: string;
|
|
265
265
|
to_date: string;
|
|
266
266
|
}, {
|
|
267
|
-
time_zone_id: string;
|
|
268
267
|
date_format_id: string;
|
|
268
|
+
time_zone_id: string;
|
|
269
269
|
from_date: string;
|
|
270
270
|
to_date: string;
|
|
271
271
|
status?: Status[] | undefined;
|
|
@@ -327,7 +327,6 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
327
327
|
}, "strip", z.ZodTypeAny, {
|
|
328
328
|
date: string;
|
|
329
329
|
status: Status[];
|
|
330
|
-
time_zone_id: string;
|
|
331
330
|
search: string;
|
|
332
331
|
paging: PAGING;
|
|
333
332
|
page_count: number;
|
|
@@ -347,11 +346,12 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
|
|
|
347
346
|
}[];
|
|
348
347
|
include_master_data: YesNo;
|
|
349
348
|
date_format_id: string;
|
|
349
|
+
time_zone_id: string;
|
|
350
350
|
organisation_utrack_id: string;
|
|
351
351
|
}, {
|
|
352
352
|
date: string;
|
|
353
|
-
time_zone_id: string;
|
|
354
353
|
date_format_id: string;
|
|
354
|
+
time_zone_id: string;
|
|
355
355
|
organisation_utrack_id: string;
|
|
356
356
|
status?: Status[] | undefined;
|
|
357
357
|
search?: string | undefined;
|