vms-nest-prisma-api-document 213.0.0 → 216.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 +8 -1
- package/dist/core/Enums.js +9 -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/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/notification_preferences.service.d.ts +1 -1
- package/dist/services/account/report_preferences.service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +1 -1
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +494 -0
- package/dist/services/fleet/issue_management/issue_management_service.js +559 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +290 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +442 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1220 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +957 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +314 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +447 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
- 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_admin_service.d.ts +20 -20
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +16 -16
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_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 +6 -6
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +7 -7
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +126 -0
- package/dist/services/master/expense/master_vendor_tag_service.js +307 -0
- package/dist/services/master/expense/master_vendor_type_service.d.ts +5 -5
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +3 -3
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +3 -3
- 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_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- 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 +9 -9
- 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 +7 -7
- 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 +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/{user_organisation_service-NFqqAGYh.d.ts → user_organisation_service-C186BM9A.d.ts} +51 -51
- package/package.json +1 -1
|
@@ -0,0 +1,494 @@
|
|
|
1
|
+
import { IssueStatus, Priority, IssueSeverity, IssueSource, Status, YesNo, FileType, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
|
|
2
|
+
import { BaseCommonFile, BR, AWSPresignedUrl, FBR, SBR } from '../../../core/BaseResponse.js';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
|
|
5
|
+
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-C186BM9A.js';
|
|
6
|
+
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
|
+
|
|
8
|
+
interface FleetIssueManagement extends Record<string, unknown> {
|
|
9
|
+
vehicle_issue_id: string;
|
|
10
|
+
vehicle_sub_issue_id: number;
|
|
11
|
+
issue_code?: string;
|
|
12
|
+
issue_title: string;
|
|
13
|
+
issue_description?: string;
|
|
14
|
+
issue_status: IssueStatus;
|
|
15
|
+
issue_priority: Priority;
|
|
16
|
+
issue_severity: IssueSeverity;
|
|
17
|
+
report_date: string;
|
|
18
|
+
report_date_f: string;
|
|
19
|
+
resolved_date?: string;
|
|
20
|
+
resolved_date_f?: string;
|
|
21
|
+
odometer_reading?: number;
|
|
22
|
+
due_date?: string;
|
|
23
|
+
due_date_f?: string;
|
|
24
|
+
due_odometer_reading?: number;
|
|
25
|
+
issue_source: IssueSource;
|
|
26
|
+
status: Status;
|
|
27
|
+
added_date_time: string;
|
|
28
|
+
modified_date_time: string;
|
|
29
|
+
organisation_id: string;
|
|
30
|
+
UserOrganisation?: UserOrganisation;
|
|
31
|
+
user_id: string;
|
|
32
|
+
User?: User;
|
|
33
|
+
vehicle_id: string;
|
|
34
|
+
MasterVehicle?: MasterVehicle;
|
|
35
|
+
vehicle_number?: string;
|
|
36
|
+
vehicle_type?: string;
|
|
37
|
+
driver_id?: string;
|
|
38
|
+
MasterDriver?: MasterDriver;
|
|
39
|
+
driver_details?: string;
|
|
40
|
+
vehicle_incident_id?: string;
|
|
41
|
+
inspection_id?: string;
|
|
42
|
+
job_card_id?: string;
|
|
43
|
+
FleetIssueManagementFile: FleetIssueManagementFile[];
|
|
44
|
+
_count?: {
|
|
45
|
+
FleetIssueManagementComment: number;
|
|
46
|
+
FleetIssueManagementFile: number;
|
|
47
|
+
FleetIssueManagementHistory: number;
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
interface FleetIssueManagementHistory extends Record<string, unknown> {
|
|
51
|
+
vehicle_issue_history_id: string;
|
|
52
|
+
old_issue_status: IssueStatus;
|
|
53
|
+
new_issue_status: IssueStatus;
|
|
54
|
+
change_reason?: string;
|
|
55
|
+
change_notes?: string;
|
|
56
|
+
change_date: string;
|
|
57
|
+
change_date_f: string;
|
|
58
|
+
status: Status;
|
|
59
|
+
added_date_time: string;
|
|
60
|
+
modified_date_time: string;
|
|
61
|
+
vehicle_issue_id: string;
|
|
62
|
+
FleetIssueManagement?: FleetIssueManagement;
|
|
63
|
+
_count?: {};
|
|
64
|
+
}
|
|
65
|
+
interface FleetIssueManagementComment extends Record<string, unknown> {
|
|
66
|
+
vehicle_issue_comment_id: string;
|
|
67
|
+
comment_text: string;
|
|
68
|
+
is_internal: YesNo;
|
|
69
|
+
pinned: YesNo;
|
|
70
|
+
status: Status;
|
|
71
|
+
added_date_time: string;
|
|
72
|
+
modified_date_time: string;
|
|
73
|
+
organisation_id: string;
|
|
74
|
+
UserOrganisation?: UserOrganisation;
|
|
75
|
+
vehicle_issue_id: string;
|
|
76
|
+
FleetIssueManagement?: FleetIssueManagement;
|
|
77
|
+
_count?: {};
|
|
78
|
+
}
|
|
79
|
+
interface FleetIssueManagementFile extends BaseCommonFile {
|
|
80
|
+
vehicle_issue_file_id: string;
|
|
81
|
+
organisation_id: string;
|
|
82
|
+
UserOrganisation?: UserOrganisation;
|
|
83
|
+
vehicle_issue_id: string;
|
|
84
|
+
FleetIssueManagement?: FleetIssueManagement;
|
|
85
|
+
}
|
|
86
|
+
declare const VehicleIssueFileSchema: z.ZodObject<{
|
|
87
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
88
|
+
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
89
|
+
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
90
|
+
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
91
|
+
file_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
92
|
+
file_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
93
|
+
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
94
|
+
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
95
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
96
|
+
} & {
|
|
97
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
98
|
+
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
99
|
+
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
vehicle_issue_id: string;
|
|
101
|
+
status: Status;
|
|
102
|
+
organisation_id: string;
|
|
103
|
+
usage_type: string;
|
|
104
|
+
file_type: FileType;
|
|
105
|
+
file_url: string;
|
|
106
|
+
file_key: string;
|
|
107
|
+
file_name: string;
|
|
108
|
+
file_description: string;
|
|
109
|
+
file_size: number;
|
|
110
|
+
file_metadata: Record<string, any>;
|
|
111
|
+
}, {
|
|
112
|
+
vehicle_issue_id: string;
|
|
113
|
+
status: Status;
|
|
114
|
+
organisation_id: string;
|
|
115
|
+
usage_type: string;
|
|
116
|
+
file_type: FileType;
|
|
117
|
+
file_url?: string | undefined;
|
|
118
|
+
file_key?: string | undefined;
|
|
119
|
+
file_name?: string | undefined;
|
|
120
|
+
file_description?: string | undefined;
|
|
121
|
+
file_size?: unknown;
|
|
122
|
+
file_metadata?: Record<string, any> | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
type VehicleIssueFileDTO = z.infer<typeof VehicleIssueFileSchema>;
|
|
125
|
+
declare const IssueManagementSchema: z.ZodObject<{
|
|
126
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
127
|
+
user_id: z.ZodEffects<z.ZodString, string, string>;
|
|
128
|
+
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
129
|
+
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
130
|
+
vehicle_incident_id: z.ZodEffects<z.ZodString, string, string>;
|
|
131
|
+
inspection_id: z.ZodEffects<z.ZodString, string, string>;
|
|
132
|
+
job_card_id: z.ZodEffects<z.ZodString, string, string>;
|
|
133
|
+
issue_title: z.ZodEffects<z.ZodString, string, string>;
|
|
134
|
+
issue_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
135
|
+
issue_status: z.ZodType<IssueStatus, z.ZodTypeDef, IssueStatus>;
|
|
136
|
+
issue_priority: z.ZodType<Priority, z.ZodTypeDef, Priority>;
|
|
137
|
+
issue_severity: z.ZodType<IssueSeverity, z.ZodTypeDef, IssueSeverity>;
|
|
138
|
+
report_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
139
|
+
resolved_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
140
|
+
odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
141
|
+
due_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
|
|
142
|
+
due_odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
143
|
+
issue_source: z.ZodType<IssueSource, z.ZodTypeDef, IssueSource>;
|
|
144
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
145
|
+
VehicleIssueFileSchema: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
146
|
+
usage_type: z.ZodEffects<z.ZodString, string, string>;
|
|
147
|
+
file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
|
|
148
|
+
file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
149
|
+
file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
150
|
+
file_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
151
|
+
file_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
152
|
+
file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
153
|
+
file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
154
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
155
|
+
} & {
|
|
156
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
157
|
+
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
158
|
+
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
159
|
+
vehicle_issue_id: string;
|
|
160
|
+
status: Status;
|
|
161
|
+
organisation_id: string;
|
|
162
|
+
usage_type: string;
|
|
163
|
+
file_type: FileType;
|
|
164
|
+
file_url: string;
|
|
165
|
+
file_key: string;
|
|
166
|
+
file_name: string;
|
|
167
|
+
file_description: string;
|
|
168
|
+
file_size: number;
|
|
169
|
+
file_metadata: Record<string, any>;
|
|
170
|
+
}, {
|
|
171
|
+
vehicle_issue_id: string;
|
|
172
|
+
status: Status;
|
|
173
|
+
organisation_id: string;
|
|
174
|
+
usage_type: string;
|
|
175
|
+
file_type: FileType;
|
|
176
|
+
file_url?: string | undefined;
|
|
177
|
+
file_key?: string | undefined;
|
|
178
|
+
file_name?: string | undefined;
|
|
179
|
+
file_description?: string | undefined;
|
|
180
|
+
file_size?: unknown;
|
|
181
|
+
file_metadata?: Record<string, any> | undefined;
|
|
182
|
+
}>, "many">>>;
|
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
|
184
|
+
issue_title: string;
|
|
185
|
+
issue_description: string;
|
|
186
|
+
issue_status: IssueStatus;
|
|
187
|
+
issue_priority: Priority;
|
|
188
|
+
issue_severity: IssueSeverity;
|
|
189
|
+
report_date: string;
|
|
190
|
+
resolved_date: string;
|
|
191
|
+
odometer_reading: number;
|
|
192
|
+
due_date: string;
|
|
193
|
+
due_odometer_reading: number;
|
|
194
|
+
issue_source: IssueSource;
|
|
195
|
+
status: Status;
|
|
196
|
+
organisation_id: string;
|
|
197
|
+
user_id: string;
|
|
198
|
+
vehicle_id: string;
|
|
199
|
+
driver_id: string;
|
|
200
|
+
vehicle_incident_id: string;
|
|
201
|
+
inspection_id: string;
|
|
202
|
+
job_card_id: string;
|
|
203
|
+
VehicleIssueFileSchema: {
|
|
204
|
+
vehicle_issue_id: string;
|
|
205
|
+
status: Status;
|
|
206
|
+
organisation_id: string;
|
|
207
|
+
usage_type: string;
|
|
208
|
+
file_type: FileType;
|
|
209
|
+
file_url: string;
|
|
210
|
+
file_key: string;
|
|
211
|
+
file_name: string;
|
|
212
|
+
file_description: string;
|
|
213
|
+
file_size: number;
|
|
214
|
+
file_metadata: Record<string, any>;
|
|
215
|
+
}[];
|
|
216
|
+
}, {
|
|
217
|
+
issue_title: string;
|
|
218
|
+
issue_status: IssueStatus;
|
|
219
|
+
issue_priority: Priority;
|
|
220
|
+
issue_severity: IssueSeverity;
|
|
221
|
+
report_date: string;
|
|
222
|
+
issue_source: IssueSource;
|
|
223
|
+
status: Status;
|
|
224
|
+
organisation_id: string;
|
|
225
|
+
user_id: string;
|
|
226
|
+
vehicle_id: string;
|
|
227
|
+
driver_id: string;
|
|
228
|
+
vehicle_incident_id: string;
|
|
229
|
+
inspection_id: string;
|
|
230
|
+
job_card_id: string;
|
|
231
|
+
issue_description?: string | undefined;
|
|
232
|
+
resolved_date?: string | undefined;
|
|
233
|
+
odometer_reading?: unknown;
|
|
234
|
+
due_date?: string | undefined;
|
|
235
|
+
due_odometer_reading?: unknown;
|
|
236
|
+
VehicleIssueFileSchema?: {
|
|
237
|
+
vehicle_issue_id: string;
|
|
238
|
+
status: Status;
|
|
239
|
+
organisation_id: string;
|
|
240
|
+
usage_type: string;
|
|
241
|
+
file_type: FileType;
|
|
242
|
+
file_url?: string | undefined;
|
|
243
|
+
file_key?: string | undefined;
|
|
244
|
+
file_name?: string | undefined;
|
|
245
|
+
file_description?: string | undefined;
|
|
246
|
+
file_size?: unknown;
|
|
247
|
+
file_metadata?: Record<string, any> | undefined;
|
|
248
|
+
}[] | undefined;
|
|
249
|
+
}>;
|
|
250
|
+
type IssueManagementDTO = z.infer<typeof IssueManagementSchema>;
|
|
251
|
+
declare const IssueManagementQuerySchema: z.ZodObject<{
|
|
252
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
253
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
254
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
255
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
256
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
257
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
258
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
259
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
260
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
261
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
262
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
263
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
264
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
265
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
266
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
267
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
268
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
269
|
+
}, "strip", z.ZodTypeAny, {
|
|
270
|
+
name: string;
|
|
271
|
+
field: string;
|
|
272
|
+
direction: OrderBy;
|
|
273
|
+
}, {
|
|
274
|
+
name: string;
|
|
275
|
+
field: string;
|
|
276
|
+
direction: OrderBy;
|
|
277
|
+
}>, "many">>>;
|
|
278
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
279
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
280
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
281
|
+
} & {
|
|
282
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
283
|
+
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
284
|
+
vehicle_issue_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
285
|
+
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
286
|
+
driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
287
|
+
issue_priority: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Priority>, "many">>>;
|
|
288
|
+
issue_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof IssueStatus>, "many">>>;
|
|
289
|
+
issue_severity: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof IssueSeverity>, "many">>>;
|
|
290
|
+
issue_source: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof IssueSource>, "many">>>;
|
|
291
|
+
vehicle_incident_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
292
|
+
inspection_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
293
|
+
job_card_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
294
|
+
}, "strip", z.ZodTypeAny, {
|
|
295
|
+
issue_status: IssueStatus[];
|
|
296
|
+
issue_priority: Priority[];
|
|
297
|
+
issue_severity: IssueSeverity[];
|
|
298
|
+
issue_source: IssueSource[];
|
|
299
|
+
status: Status[];
|
|
300
|
+
search: string;
|
|
301
|
+
paging: PAGING;
|
|
302
|
+
page_count: number;
|
|
303
|
+
page_index: number;
|
|
304
|
+
load_parents: LoadParents;
|
|
305
|
+
load_parents_list: string[];
|
|
306
|
+
load_child: LoadChild;
|
|
307
|
+
load_child_list: string[];
|
|
308
|
+
load_child_count: LoadChildCount;
|
|
309
|
+
load_child_count_list: string[];
|
|
310
|
+
include_details: Record<string, any>;
|
|
311
|
+
where_relations: Record<string, any>;
|
|
312
|
+
order_by: {
|
|
313
|
+
name: string;
|
|
314
|
+
field: string;
|
|
315
|
+
direction: OrderBy;
|
|
316
|
+
}[];
|
|
317
|
+
include_master_data: YesNo;
|
|
318
|
+
date_format_id: string;
|
|
319
|
+
time_zone_id: string;
|
|
320
|
+
organisation_ids: string[];
|
|
321
|
+
user_ids: string[];
|
|
322
|
+
vehicle_issue_ids: string[];
|
|
323
|
+
vehicle_ids: string[];
|
|
324
|
+
driver_ids: string[];
|
|
325
|
+
vehicle_incident_ids: string[];
|
|
326
|
+
inspection_ids: string[];
|
|
327
|
+
job_card_ids: string[];
|
|
328
|
+
}, {
|
|
329
|
+
date_format_id: string;
|
|
330
|
+
time_zone_id: string;
|
|
331
|
+
issue_status?: IssueStatus[] | undefined;
|
|
332
|
+
issue_priority?: Priority[] | undefined;
|
|
333
|
+
issue_severity?: IssueSeverity[] | undefined;
|
|
334
|
+
issue_source?: IssueSource[] | undefined;
|
|
335
|
+
status?: Status[] | undefined;
|
|
336
|
+
search?: string | undefined;
|
|
337
|
+
paging?: PAGING | undefined;
|
|
338
|
+
page_count?: unknown;
|
|
339
|
+
page_index?: unknown;
|
|
340
|
+
load_parents?: LoadParents | undefined;
|
|
341
|
+
load_parents_list?: string[] | undefined;
|
|
342
|
+
load_child?: LoadChild | undefined;
|
|
343
|
+
load_child_list?: string[] | undefined;
|
|
344
|
+
load_child_count?: LoadChildCount | undefined;
|
|
345
|
+
load_child_count_list?: string[] | undefined;
|
|
346
|
+
include_details?: Record<string, any> | undefined;
|
|
347
|
+
where_relations?: Record<string, any> | undefined;
|
|
348
|
+
order_by?: {
|
|
349
|
+
name: string;
|
|
350
|
+
field: string;
|
|
351
|
+
direction: OrderBy;
|
|
352
|
+
}[] | undefined;
|
|
353
|
+
include_master_data?: YesNo | undefined;
|
|
354
|
+
organisation_ids?: string[] | undefined;
|
|
355
|
+
user_ids?: string[] | undefined;
|
|
356
|
+
vehicle_issue_ids?: string[] | undefined;
|
|
357
|
+
vehicle_ids?: string[] | undefined;
|
|
358
|
+
driver_ids?: string[] | undefined;
|
|
359
|
+
vehicle_incident_ids?: string[] | undefined;
|
|
360
|
+
inspection_ids?: string[] | undefined;
|
|
361
|
+
job_card_ids?: string[] | undefined;
|
|
362
|
+
}>;
|
|
363
|
+
type IssueManagementQueryDTO = z.infer<typeof IssueManagementQuerySchema>;
|
|
364
|
+
declare const FleetIssueManagementCommentSchema: z.ZodObject<{
|
|
365
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
366
|
+
vehicle_issue_id: z.ZodEffects<z.ZodString, string, string>;
|
|
367
|
+
comment_text: z.ZodEffects<z.ZodString, string, string>;
|
|
368
|
+
is_internal: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
369
|
+
pinned: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
370
|
+
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
371
|
+
}, "strip", z.ZodTypeAny, {
|
|
372
|
+
vehicle_issue_id: string;
|
|
373
|
+
status: Status;
|
|
374
|
+
organisation_id: string;
|
|
375
|
+
comment_text: string;
|
|
376
|
+
is_internal: YesNo;
|
|
377
|
+
pinned: YesNo;
|
|
378
|
+
}, {
|
|
379
|
+
vehicle_issue_id: string;
|
|
380
|
+
status: Status;
|
|
381
|
+
organisation_id: string;
|
|
382
|
+
comment_text: string;
|
|
383
|
+
is_internal: YesNo;
|
|
384
|
+
pinned: YesNo;
|
|
385
|
+
}>;
|
|
386
|
+
type FleetIssueManagementCommentDTO = z.infer<typeof FleetIssueManagementCommentSchema>;
|
|
387
|
+
declare const FleetIssueManagementCommentQuerySchema: z.ZodObject<{
|
|
388
|
+
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
389
|
+
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
390
|
+
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
391
|
+
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
392
|
+
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
393
|
+
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
394
|
+
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
395
|
+
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
396
|
+
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
397
|
+
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
398
|
+
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
399
|
+
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
400
|
+
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
401
|
+
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
402
|
+
name: z.ZodEffects<z.ZodString, string, string>;
|
|
403
|
+
field: z.ZodEffects<z.ZodString, string, string>;
|
|
404
|
+
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
405
|
+
}, "strip", z.ZodTypeAny, {
|
|
406
|
+
name: string;
|
|
407
|
+
field: string;
|
|
408
|
+
direction: OrderBy;
|
|
409
|
+
}, {
|
|
410
|
+
name: string;
|
|
411
|
+
field: string;
|
|
412
|
+
direction: OrderBy;
|
|
413
|
+
}>, "many">>>;
|
|
414
|
+
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
415
|
+
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
416
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
417
|
+
} & {
|
|
418
|
+
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
419
|
+
vehicle_issue_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
420
|
+
vehicle_issue_comment_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
421
|
+
is_internal: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
422
|
+
pinned: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
status: Status[];
|
|
425
|
+
is_internal: YesNo[];
|
|
426
|
+
pinned: YesNo[];
|
|
427
|
+
search: string;
|
|
428
|
+
paging: PAGING;
|
|
429
|
+
page_count: number;
|
|
430
|
+
page_index: number;
|
|
431
|
+
load_parents: LoadParents;
|
|
432
|
+
load_parents_list: string[];
|
|
433
|
+
load_child: LoadChild;
|
|
434
|
+
load_child_list: string[];
|
|
435
|
+
load_child_count: LoadChildCount;
|
|
436
|
+
load_child_count_list: string[];
|
|
437
|
+
include_details: Record<string, any>;
|
|
438
|
+
where_relations: Record<string, any>;
|
|
439
|
+
order_by: {
|
|
440
|
+
name: string;
|
|
441
|
+
field: string;
|
|
442
|
+
direction: OrderBy;
|
|
443
|
+
}[];
|
|
444
|
+
include_master_data: YesNo;
|
|
445
|
+
date_format_id: string;
|
|
446
|
+
time_zone_id: string;
|
|
447
|
+
organisation_ids: string[];
|
|
448
|
+
vehicle_issue_ids: string[];
|
|
449
|
+
vehicle_issue_comment_ids: string[];
|
|
450
|
+
}, {
|
|
451
|
+
date_format_id: string;
|
|
452
|
+
time_zone_id: string;
|
|
453
|
+
status?: Status[] | undefined;
|
|
454
|
+
is_internal?: YesNo[] | undefined;
|
|
455
|
+
pinned?: YesNo[] | undefined;
|
|
456
|
+
search?: string | undefined;
|
|
457
|
+
paging?: PAGING | undefined;
|
|
458
|
+
page_count?: unknown;
|
|
459
|
+
page_index?: unknown;
|
|
460
|
+
load_parents?: LoadParents | undefined;
|
|
461
|
+
load_parents_list?: string[] | undefined;
|
|
462
|
+
load_child?: LoadChild | undefined;
|
|
463
|
+
load_child_list?: string[] | undefined;
|
|
464
|
+
load_child_count?: LoadChildCount | undefined;
|
|
465
|
+
load_child_count_list?: string[] | undefined;
|
|
466
|
+
include_details?: Record<string, any> | undefined;
|
|
467
|
+
where_relations?: Record<string, any> | undefined;
|
|
468
|
+
order_by?: {
|
|
469
|
+
name: string;
|
|
470
|
+
field: string;
|
|
471
|
+
direction: OrderBy;
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
include_master_data?: YesNo | undefined;
|
|
474
|
+
organisation_ids?: string[] | undefined;
|
|
475
|
+
vehicle_issue_ids?: string[] | undefined;
|
|
476
|
+
vehicle_issue_comment_ids?: string[] | undefined;
|
|
477
|
+
}>;
|
|
478
|
+
type FleetIssueManagementCommentQueryDTO = z.infer<typeof FleetIssueManagementCommentQuerySchema>;
|
|
479
|
+
declare const toFleetIssueManagementPayload: (issueManagement: FleetIssueManagement) => IssueManagementDTO;
|
|
480
|
+
declare const newFleetIssueManagementPayload: () => IssueManagementDTO;
|
|
481
|
+
declare const toFleetIssueManagementCommentPayload: (issueManagementComment: FleetIssueManagementComment) => FleetIssueManagementCommentDTO;
|
|
482
|
+
declare const newFleetIssueManagementCommentPayload: () => FleetIssueManagementCommentDTO;
|
|
483
|
+
declare const presigned_url_file: (data: FilePresignedUrlDTO) => Promise<BR<AWSPresignedUrl>>;
|
|
484
|
+
declare const findIssueManagement: (data: IssueManagementQueryDTO) => Promise<FBR<FleetIssueManagement[]>>;
|
|
485
|
+
declare const createIssueManagement: (data: IssueManagementDTO) => Promise<SBR>;
|
|
486
|
+
declare const updateIssueManagement: (id: string, data: IssueManagementDTO) => Promise<SBR>;
|
|
487
|
+
declare const deleteIssueManagement: (id: string) => Promise<SBR>;
|
|
488
|
+
declare const create_file: (data: VehicleIssueFileDTO) => Promise<SBR>;
|
|
489
|
+
declare const remove_file: (id: string) => Promise<SBR>;
|
|
490
|
+
declare const findIssueManagementComment: (data: FleetIssueManagementCommentQueryDTO) => Promise<FBR<FleetIssueManagementComment[]>>;
|
|
491
|
+
declare const createIssueManagementComment: (data: FleetIssueManagementCommentDTO) => Promise<SBR>;
|
|
492
|
+
declare const deleteIssueManagementComment: (id: string) => Promise<SBR>;
|
|
493
|
+
|
|
494
|
+
export { type FleetIssueManagement, type FleetIssueManagementComment, type FleetIssueManagementCommentDTO, type FleetIssueManagementCommentQueryDTO, FleetIssueManagementCommentQuerySchema, FleetIssueManagementCommentSchema, type FleetIssueManagementFile, type FleetIssueManagementHistory, type IssueManagementDTO, type IssueManagementQueryDTO, IssueManagementQuerySchema, IssueManagementSchema, type VehicleIssueFileDTO, VehicleIssueFileSchema, createIssueManagement, createIssueManagementComment, create_file, deleteIssueManagement, deleteIssueManagementComment, findIssueManagement, findIssueManagementComment, newFleetIssueManagementCommentPayload, newFleetIssueManagementPayload, presigned_url_file, remove_file, toFleetIssueManagementCommentPayload, toFleetIssueManagementPayload, updateIssueManagement };
|