vms-nest-prisma-api-document 229.0.0 → 230.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.
Files changed (26) hide show
  1. package/dist/core/Enums.d.ts +12 -1
  2. package/dist/core/Enums.js +15 -0
  3. package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
  4. package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
  5. package/dist/services/fleet/incident_management/incident_management_service.d.ts +70 -70
  6. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +16 -0
  7. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +308 -0
  8. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +16 -0
  9. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +501 -0
  10. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +697 -0
  11. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +340 -0
  12. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +179 -46
  13. package/dist/services/fleet/service_management/fleet_service_management_service.js +86 -11
  14. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +166 -0
  15. package/dist/services/fleet/service_management/fleet_service_schedule_service.js +338 -0
  16. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  17. package/dist/services/master/expense/master_expense_name_service.d.ts +2 -2
  18. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  19. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  20. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  21. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  22. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  23. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +8 -8
  24. package/dist/services/website/faq_service.d.ts +1 -1
  25. package/dist/services/website/static_pages_service.d.ts +1 -1
  26. package/package.json +1 -1
@@ -0,0 +1,697 @@
1
+ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo, InspectionType, InspectionPriority, InspectionStatus, FileType, InspectionActionStatus } from '../../../core/Enums.js';
2
+ import { FBR, SBR, BaseCommonFile, BR, AWSPresignedUrl } from '../../../core/BaseResponse.js';
3
+ import { z } from 'zod';
4
+ import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-KwfWBPXf.js';
5
+ import { FilePresignedUrlDTO } from '../../../zod_utils/zod_base_schema.js';
6
+ import { FleetIssueManagement } from '../issue_management/issue_management_service.js';
7
+ import { FleetServiceManagement } from '../service_management/fleet_service_management_service.js';
8
+ import '../../master/main/master_main_sim_provider_service.js';
9
+ import '../incident_management/incident_management_service.js';
10
+ import '../../master/fleet/master_fleet_insurance_claim_status_service.js';
11
+ import '../../master/fleet/master_fleet_incident_severity_service.js';
12
+ import '../../master/fleet/master_fleet_incident_status_service.js';
13
+ import '../../master/fleet/master_fleet_incident_type_service.js';
14
+ import '../../master/expense/master_expense_name_service.js';
15
+ import '../../master/fleet/master_fleet_service_task_service.js';
16
+
17
+ interface FleetInspectionSchedule extends Record<string, unknown> {
18
+ inspection_schedule_id: string;
19
+ inspection_schedule_name?: string;
20
+ inspection_schedule_description?: string;
21
+ inspection_schedule_start_date?: string;
22
+ inspection_schedule_start_date_f?: string;
23
+ inspection_schedule_due_date?: string;
24
+ inspection_schedule_due_date_f?: string;
25
+ status: Status;
26
+ added_date_time: string;
27
+ modified_date_time: string;
28
+ organisation_id: string;
29
+ UserOrganisation?: UserOrganisation;
30
+ user_id: string;
31
+ User?: User;
32
+ FleetInspection: FleetInspection[];
33
+ FleetInspectionScheduleVehicleLink: FleetInspectionScheduleVehicleLink[];
34
+ _count?: {
35
+ FleetInspection: number;
36
+ FleetInspectionScheduleVehicleLink: number;
37
+ };
38
+ }
39
+ interface FleetInspectionScheduleVehicleLink extends Record<string, unknown> {
40
+ inspection_schedule_vehicle_link_id: string;
41
+ status: Status;
42
+ added_date_time: string;
43
+ modified_date_time: string;
44
+ inspection_schedule_id: string;
45
+ FleetInspectionSchedule?: FleetInspectionSchedule;
46
+ vehicle_id: string;
47
+ MasterVehicle?: MasterVehicle;
48
+ vehicle_number?: string;
49
+ vehicle_type?: string;
50
+ }
51
+ declare const FleetInspectionScheduleSchema: z.ZodObject<{
52
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
53
+ user_id: z.ZodEffects<z.ZodString, string, string>;
54
+ inspection_schedule_name: z.ZodEffects<z.ZodString, string, string>;
55
+ inspection_schedule_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
56
+ inspection_schedule_start_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
57
+ inspection_schedule_due_date: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
58
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
59
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
60
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
61
+ }, "strip", z.ZodTypeAny, {
62
+ status: Status;
63
+ organisation_id: string;
64
+ time_zone_id: string;
65
+ vehicle_ids: string[];
66
+ user_id: string;
67
+ inspection_schedule_name: string;
68
+ inspection_schedule_description: string;
69
+ inspection_schedule_start_date: string;
70
+ inspection_schedule_due_date: string;
71
+ }, {
72
+ status: Status;
73
+ organisation_id: string;
74
+ time_zone_id: string;
75
+ user_id: string;
76
+ inspection_schedule_name: string;
77
+ vehicle_ids?: string[] | undefined;
78
+ inspection_schedule_description?: string | undefined;
79
+ inspection_schedule_start_date?: string | undefined;
80
+ inspection_schedule_due_date?: string | undefined;
81
+ }>;
82
+ type FleetInspectionScheduleDTO = z.infer<typeof FleetInspectionScheduleSchema>;
83
+ declare const FleetInspectionScheduleQuerySchema: z.ZodObject<{
84
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
85
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
86
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
87
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
88
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
89
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
90
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
91
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
92
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
93
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
94
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
95
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
96
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
97
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
98
+ name: z.ZodEffects<z.ZodString, string, string>;
99
+ field: z.ZodEffects<z.ZodString, string, string>;
100
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ name: string;
103
+ field: string;
104
+ direction: OrderBy;
105
+ }, {
106
+ name: string;
107
+ field: string;
108
+ direction: OrderBy;
109
+ }>, "many">>>;
110
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
111
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
112
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
113
+ } & {
114
+ inspection_schedule_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
115
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ status: Status[];
118
+ search: string;
119
+ paging: PAGING;
120
+ page_count: number;
121
+ page_index: number;
122
+ load_parents: LoadParents;
123
+ load_parents_list: string[];
124
+ load_child: LoadChild;
125
+ load_child_list: string[];
126
+ load_child_count: LoadChildCount;
127
+ load_child_count_list: string[];
128
+ include_details: Record<string, any>;
129
+ where_relations: Record<string, any>;
130
+ order_by: {
131
+ name: string;
132
+ field: string;
133
+ direction: OrderBy;
134
+ }[];
135
+ include_master_data: YesNo;
136
+ date_format_id: string;
137
+ time_zone_id: string;
138
+ organisation_ids: string[];
139
+ inspection_schedule_ids: string[];
140
+ }, {
141
+ date_format_id: string;
142
+ time_zone_id: string;
143
+ status?: Status[] | undefined;
144
+ search?: string | undefined;
145
+ paging?: PAGING | undefined;
146
+ page_count?: unknown;
147
+ page_index?: unknown;
148
+ load_parents?: LoadParents | undefined;
149
+ load_parents_list?: string[] | undefined;
150
+ load_child?: LoadChild | undefined;
151
+ load_child_list?: string[] | undefined;
152
+ load_child_count?: LoadChildCount | undefined;
153
+ load_child_count_list?: string[] | undefined;
154
+ include_details?: Record<string, any> | undefined;
155
+ where_relations?: Record<string, any> | undefined;
156
+ order_by?: {
157
+ name: string;
158
+ field: string;
159
+ direction: OrderBy;
160
+ }[] | undefined;
161
+ include_master_data?: YesNo | undefined;
162
+ organisation_ids?: string[] | undefined;
163
+ inspection_schedule_ids?: string[] | undefined;
164
+ }>;
165
+ type FleetInspectionScheduleQueryDTO = z.infer<typeof FleetInspectionScheduleQuerySchema>;
166
+ declare const toFleetInspectionSchedulePayload: (row: FleetInspectionSchedule) => FleetInspectionScheduleDTO;
167
+ declare const newFleetInspectionSchedulePayload: () => FleetInspectionScheduleDTO;
168
+ declare const findFleetInspectionSchedule: (data: FleetInspectionScheduleQueryDTO) => Promise<FBR<FleetInspectionSchedule[]>>;
169
+ declare const createFleetInspectionSchedule: (data: FleetInspectionScheduleDTO) => Promise<SBR>;
170
+ declare const updateFleetInspectionSchedule: (id: string, data: FleetInspectionScheduleDTO) => Promise<SBR>;
171
+ declare const deleteFleetInspectionSchedule: (id: string) => Promise<SBR>;
172
+
173
+ interface FleetInspection extends Record<string, unknown> {
174
+ inspection_id: string;
175
+ inspection_type: InspectionType;
176
+ inspection_date: string;
177
+ inspection_date_f: string;
178
+ inspection_priority: InspectionPriority;
179
+ inspection_status: InspectionStatus;
180
+ odometer_reading: number;
181
+ status: Status;
182
+ added_date_time: string;
183
+ modified_date_time: string;
184
+ organisation_id: string;
185
+ UserOrganisation?: UserOrganisation;
186
+ vehicle_id: string;
187
+ MasterVehicle?: MasterVehicle;
188
+ vehicle_number?: string;
189
+ vehicle_type?: string;
190
+ driver_id?: string;
191
+ MasterDriver?: MasterDriver;
192
+ driver_details?: string;
193
+ inspector_id: string;
194
+ InspectorUser?: User;
195
+ inspection_form_id?: string;
196
+ FleetInspectionForm?: FleetInspectionForm;
197
+ inspection_form_name?: string;
198
+ inspection_data: Record<string, unknown>;
199
+ service_management_id?: string;
200
+ FleetServiceManagement?: FleetServiceManagement;
201
+ inspection_schedule_id?: string;
202
+ FleetInspectionSchedule?: FleetInspectionSchedule;
203
+ inspection_schedule_name?: string;
204
+ inspection_schedule_start_date?: string;
205
+ inspection_schedule_due_date?: string;
206
+ FleetIssueManagement: FleetIssueManagement[];
207
+ FleetInspectionFile: FleetInspectionFile[];
208
+ _count?: {
209
+ FleetInspectionFile: number;
210
+ FleetIssueManagement: number;
211
+ };
212
+ }
213
+ interface FleetInspectionFile extends BaseCommonFile {
214
+ fleet_inspection_file_id: string;
215
+ organisation_id: string;
216
+ UserOrganisation?: UserOrganisation;
217
+ inspection_id: string;
218
+ FleetInspection?: FleetInspection;
219
+ }
220
+ declare const FleetInspectionFileSchema: z.ZodObject<{
221
+ usage_type: z.ZodEffects<z.ZodString, string, string>;
222
+ file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
223
+ file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
224
+ file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
225
+ file_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
226
+ file_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
227
+ file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
228
+ file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
229
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
230
+ } & {
231
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
232
+ inspection_id: z.ZodEffects<z.ZodString, string, string>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ status: Status;
235
+ organisation_id: string;
236
+ usage_type: string;
237
+ file_type: FileType;
238
+ file_url: string;
239
+ file_key: string;
240
+ file_name: string;
241
+ file_description: string;
242
+ file_size: number;
243
+ file_metadata: Record<string, any>;
244
+ inspection_id: string;
245
+ }, {
246
+ status: Status;
247
+ organisation_id: string;
248
+ usage_type: string;
249
+ file_type: FileType;
250
+ inspection_id: string;
251
+ file_url?: string | undefined;
252
+ file_key?: string | undefined;
253
+ file_name?: string | undefined;
254
+ file_description?: string | undefined;
255
+ file_size?: unknown;
256
+ file_metadata?: Record<string, any> | undefined;
257
+ }>;
258
+ type FleetInspectionFileDTO = z.infer<typeof FleetInspectionFileSchema>;
259
+ declare const FleetInspectionSchema: z.ZodObject<{
260
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
261
+ vehicle_id: z.ZodEffects<z.ZodString, string, string>;
262
+ driver_id: z.ZodEffects<z.ZodString, string, string>;
263
+ inspector_id: z.ZodEffects<z.ZodString, string, string>;
264
+ inspection_form_id: z.ZodEffects<z.ZodString, string, string>;
265
+ service_management_id: z.ZodEffects<z.ZodString, string, string>;
266
+ inspection_type: z.ZodType<InspectionType, z.ZodTypeDef, InspectionType>;
267
+ inspection_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
268
+ inspection_priority: z.ZodType<InspectionPriority, z.ZodTypeDef, InspectionPriority>;
269
+ inspection_status: z.ZodType<InspectionStatus, z.ZodTypeDef, InspectionStatus>;
270
+ inspection_data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
271
+ odometer_reading: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
272
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
273
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
274
+ FleetInspectionFileSchema: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
275
+ usage_type: z.ZodEffects<z.ZodString, string, string>;
276
+ file_type: z.ZodType<FileType, z.ZodTypeDef, FileType>;
277
+ file_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
278
+ file_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
279
+ file_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
280
+ file_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
281
+ file_size: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
282
+ file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
283
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
284
+ } & {
285
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
286
+ inspection_id: z.ZodEffects<z.ZodString, string, string>;
287
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
288
+ status: Status;
289
+ organisation_id: string;
290
+ usage_type: string;
291
+ file_type: FileType;
292
+ file_url: string;
293
+ file_key: string;
294
+ file_name: string;
295
+ file_description: string;
296
+ file_size: number;
297
+ file_metadata: Record<string, any>;
298
+ inspection_id: string;
299
+ }, {
300
+ status: Status;
301
+ organisation_id: string;
302
+ usage_type: string;
303
+ file_type: FileType;
304
+ inspection_id: string;
305
+ file_url?: string | undefined;
306
+ file_key?: string | undefined;
307
+ file_name?: string | undefined;
308
+ file_description?: string | undefined;
309
+ file_size?: unknown;
310
+ file_metadata?: Record<string, any> | undefined;
311
+ }>, "many">>>;
312
+ }, "strip", z.ZodTypeAny, {
313
+ inspection_form_id: string;
314
+ status: Status;
315
+ organisation_id: string;
316
+ time_zone_id: string;
317
+ driver_id: string;
318
+ vehicle_id: string;
319
+ odometer_reading: number;
320
+ service_management_id: string;
321
+ inspection_type: InspectionType;
322
+ inspection_date: string;
323
+ inspection_priority: InspectionPriority;
324
+ inspection_status: InspectionStatus;
325
+ inspector_id: string;
326
+ inspection_data: Record<string, any>;
327
+ FleetInspectionFileSchema: {
328
+ status: Status;
329
+ organisation_id: string;
330
+ usage_type: string;
331
+ file_type: FileType;
332
+ file_url: string;
333
+ file_key: string;
334
+ file_name: string;
335
+ file_description: string;
336
+ file_size: number;
337
+ file_metadata: Record<string, any>;
338
+ inspection_id: string;
339
+ }[];
340
+ }, {
341
+ inspection_form_id: string;
342
+ status: Status;
343
+ organisation_id: string;
344
+ time_zone_id: string;
345
+ driver_id: string;
346
+ vehicle_id: string;
347
+ service_management_id: string;
348
+ inspection_type: InspectionType;
349
+ inspection_date: string;
350
+ inspection_priority: InspectionPriority;
351
+ inspection_status: InspectionStatus;
352
+ inspector_id: string;
353
+ odometer_reading?: unknown;
354
+ inspection_data?: Record<string, any> | undefined;
355
+ FleetInspectionFileSchema?: {
356
+ status: Status;
357
+ organisation_id: string;
358
+ usage_type: string;
359
+ file_type: FileType;
360
+ inspection_id: string;
361
+ file_url?: string | undefined;
362
+ file_key?: string | undefined;
363
+ file_name?: string | undefined;
364
+ file_description?: string | undefined;
365
+ file_size?: unknown;
366
+ file_metadata?: Record<string, any> | undefined;
367
+ }[] | undefined;
368
+ }>;
369
+ type FleetInspectionDTO = z.infer<typeof FleetInspectionSchema>;
370
+ declare const FleetInspectionQuerySchema: z.ZodObject<{
371
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
372
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
373
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
374
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
375
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
376
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
377
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
378
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
379
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
380
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
381
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
382
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
383
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
384
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
385
+ name: z.ZodEffects<z.ZodString, string, string>;
386
+ field: z.ZodEffects<z.ZodString, string, string>;
387
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
388
+ }, "strip", z.ZodTypeAny, {
389
+ name: string;
390
+ field: string;
391
+ direction: OrderBy;
392
+ }, {
393
+ name: string;
394
+ field: string;
395
+ direction: OrderBy;
396
+ }>, "many">>>;
397
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
398
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
399
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
400
+ } & {
401
+ inspection_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
402
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
403
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
404
+ driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
405
+ inspection_form_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
406
+ service_management_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
407
+ inspection_schedule_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
408
+ inspection_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionType>, "many">>>;
409
+ inspection_priority: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionPriority>, "many">>>;
410
+ inspection_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionStatus>, "many">>>;
411
+ inspection_action_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof InspectionActionStatus>, "many">>>;
412
+ }, "strip", z.ZodTypeAny, {
413
+ status: Status[];
414
+ search: string;
415
+ paging: PAGING;
416
+ page_count: number;
417
+ page_index: number;
418
+ load_parents: LoadParents;
419
+ load_parents_list: string[];
420
+ load_child: LoadChild;
421
+ load_child_list: string[];
422
+ load_child_count: LoadChildCount;
423
+ load_child_count_list: string[];
424
+ include_details: Record<string, any>;
425
+ where_relations: Record<string, any>;
426
+ order_by: {
427
+ name: string;
428
+ field: string;
429
+ direction: OrderBy;
430
+ }[];
431
+ include_master_data: YesNo;
432
+ date_format_id: string;
433
+ time_zone_id: string;
434
+ organisation_ids: string[];
435
+ inspection_form_ids: string[];
436
+ vehicle_ids: string[];
437
+ driver_ids: string[];
438
+ service_management_ids: string[];
439
+ inspection_ids: string[];
440
+ inspection_schedule_ids: string[];
441
+ inspection_type: InspectionType[];
442
+ inspection_priority: InspectionPriority[];
443
+ inspection_status: InspectionStatus[];
444
+ inspection_action_status: InspectionActionStatus[];
445
+ }, {
446
+ date_format_id: string;
447
+ time_zone_id: string;
448
+ status?: Status[] | undefined;
449
+ search?: string | undefined;
450
+ paging?: PAGING | undefined;
451
+ page_count?: unknown;
452
+ page_index?: unknown;
453
+ load_parents?: LoadParents | undefined;
454
+ load_parents_list?: string[] | undefined;
455
+ load_child?: LoadChild | undefined;
456
+ load_child_list?: string[] | undefined;
457
+ load_child_count?: LoadChildCount | undefined;
458
+ load_child_count_list?: string[] | undefined;
459
+ include_details?: Record<string, any> | undefined;
460
+ where_relations?: Record<string, any> | undefined;
461
+ order_by?: {
462
+ name: string;
463
+ field: string;
464
+ direction: OrderBy;
465
+ }[] | undefined;
466
+ include_master_data?: YesNo | undefined;
467
+ organisation_ids?: string[] | undefined;
468
+ inspection_form_ids?: string[] | undefined;
469
+ vehicle_ids?: string[] | undefined;
470
+ driver_ids?: string[] | undefined;
471
+ service_management_ids?: string[] | undefined;
472
+ inspection_ids?: string[] | undefined;
473
+ inspection_schedule_ids?: string[] | undefined;
474
+ inspection_type?: InspectionType[] | undefined;
475
+ inspection_priority?: InspectionPriority[] | undefined;
476
+ inspection_status?: InspectionStatus[] | undefined;
477
+ inspection_action_status?: InspectionActionStatus[] | undefined;
478
+ }>;
479
+ type FleetInspectionQueryDTO = z.infer<typeof FleetInspectionQuerySchema>;
480
+ declare const FleetInspectionCheckPendingQuerySchema: z.ZodObject<{
481
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
482
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
483
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
484
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
485
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
486
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
487
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
488
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
489
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
490
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
491
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
492
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
493
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
494
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
495
+ name: z.ZodEffects<z.ZodString, string, string>;
496
+ field: z.ZodEffects<z.ZodString, string, string>;
497
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ name: string;
500
+ field: string;
501
+ direction: OrderBy;
502
+ }, {
503
+ name: string;
504
+ field: string;
505
+ direction: OrderBy;
506
+ }>, "many">>>;
507
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
508
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
509
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
510
+ } & {
511
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
512
+ }, "strip", z.ZodTypeAny, {
513
+ status: Status[];
514
+ search: string;
515
+ paging: PAGING;
516
+ page_count: number;
517
+ page_index: number;
518
+ load_parents: LoadParents;
519
+ load_parents_list: string[];
520
+ load_child: LoadChild;
521
+ load_child_list: string[];
522
+ load_child_count: LoadChildCount;
523
+ load_child_count_list: string[];
524
+ include_details: Record<string, any>;
525
+ where_relations: Record<string, any>;
526
+ order_by: {
527
+ name: string;
528
+ field: string;
529
+ direction: OrderBy;
530
+ }[];
531
+ include_master_data: YesNo;
532
+ date_format_id: string;
533
+ time_zone_id: string;
534
+ vehicle_ids: string[];
535
+ }, {
536
+ date_format_id: string;
537
+ time_zone_id: string;
538
+ status?: Status[] | undefined;
539
+ search?: string | undefined;
540
+ paging?: PAGING | undefined;
541
+ page_count?: unknown;
542
+ page_index?: unknown;
543
+ load_parents?: LoadParents | undefined;
544
+ load_parents_list?: string[] | undefined;
545
+ load_child?: LoadChild | undefined;
546
+ load_child_list?: string[] | undefined;
547
+ load_child_count?: LoadChildCount | undefined;
548
+ load_child_count_list?: string[] | undefined;
549
+ include_details?: Record<string, any> | undefined;
550
+ where_relations?: Record<string, any> | undefined;
551
+ order_by?: {
552
+ name: string;
553
+ field: string;
554
+ direction: OrderBy;
555
+ }[] | undefined;
556
+ include_master_data?: YesNo | undefined;
557
+ vehicle_ids?: string[] | undefined;
558
+ }>;
559
+ type FleetInspectionCheckPendingQueryDTO = z.infer<typeof FleetInspectionCheckPendingQuerySchema>;
560
+ declare const toFleetInspectionPayload: (row: FleetInspection) => FleetInspectionDTO;
561
+ declare const newFleetInspectionPayload: () => FleetInspectionDTO;
562
+ declare const get_inspection_file_presigned_url: (data: FilePresignedUrlDTO) => Promise<BR<AWSPresignedUrl>>;
563
+ declare const create_service_file: (data: FleetInspectionFileDTO) => Promise<SBR>;
564
+ declare const remove_service_file: (id: string) => Promise<SBR>;
565
+ declare const findFleetInspection: (data: FleetInspectionQueryDTO) => Promise<FBR<FleetInspection[]>>;
566
+ declare const find_check_pending: (data: FleetInspectionCheckPendingQueryDTO) => Promise<FBR<FleetInspection[]>>;
567
+ declare const createFleetInspection: (data: FleetInspectionDTO) => Promise<SBR>;
568
+ declare const updateFleetInspection: (id: string, data: FleetInspectionDTO) => Promise<SBR>;
569
+ declare const deleteFleetInspection: (id: string) => Promise<SBR>;
570
+
571
+ interface FleetInspectionForm extends Record<string, unknown> {
572
+ inspection_form_id: string;
573
+ inspection_form_name: string;
574
+ inspection_form_fields: Record<string, unknown>;
575
+ status: Status;
576
+ added_date_time: string;
577
+ modified_date_time: string;
578
+ organisation_id: string;
579
+ UserOrganisation?: UserOrganisation;
580
+ FleetInspection: FleetInspection[];
581
+ _count?: {
582
+ FleetInspection: number;
583
+ };
584
+ }
585
+ interface FleetInspectionFormSimple extends Record<string, unknown> {
586
+ inspection_form_id: string;
587
+ inspection_form_name: string;
588
+ }
589
+ declare const FleetInspectionFormSchema: z.ZodObject<{
590
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
591
+ inspection_form_name: z.ZodEffects<z.ZodString, string, string>;
592
+ inspection_form_fields: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
593
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
594
+ }, "strip", z.ZodTypeAny, {
595
+ inspection_form_name: string;
596
+ inspection_form_fields: Record<string, any>;
597
+ status: Status;
598
+ organisation_id: string;
599
+ }, {
600
+ inspection_form_name: string;
601
+ status: Status;
602
+ organisation_id: string;
603
+ inspection_form_fields?: Record<string, any> | undefined;
604
+ }>;
605
+ type FleetInspectionFormDTO = z.infer<typeof FleetInspectionFormSchema>;
606
+ declare const FleetInspectionFormQuerySchema: z.ZodObject<{
607
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
608
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
609
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
610
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
611
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
612
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
613
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
614
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
615
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
616
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
617
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
618
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
619
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
620
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
621
+ name: z.ZodEffects<z.ZodString, string, string>;
622
+ field: z.ZodEffects<z.ZodString, string, string>;
623
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
624
+ }, "strip", z.ZodTypeAny, {
625
+ name: string;
626
+ field: string;
627
+ direction: OrderBy;
628
+ }, {
629
+ name: string;
630
+ field: string;
631
+ direction: OrderBy;
632
+ }>, "many">>>;
633
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
634
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
635
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
636
+ } & {
637
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
638
+ inspection_form_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
639
+ }, "strip", z.ZodTypeAny, {
640
+ status: Status[];
641
+ search: string;
642
+ paging: PAGING;
643
+ page_count: number;
644
+ page_index: number;
645
+ load_parents: LoadParents;
646
+ load_parents_list: string[];
647
+ load_child: LoadChild;
648
+ load_child_list: string[];
649
+ load_child_count: LoadChildCount;
650
+ load_child_count_list: string[];
651
+ include_details: Record<string, any>;
652
+ where_relations: Record<string, any>;
653
+ order_by: {
654
+ name: string;
655
+ field: string;
656
+ direction: OrderBy;
657
+ }[];
658
+ include_master_data: YesNo;
659
+ date_format_id: string;
660
+ time_zone_id: string;
661
+ organisation_ids: string[];
662
+ inspection_form_ids: string[];
663
+ }, {
664
+ date_format_id: string;
665
+ time_zone_id: string;
666
+ status?: Status[] | undefined;
667
+ search?: string | undefined;
668
+ paging?: PAGING | undefined;
669
+ page_count?: unknown;
670
+ page_index?: unknown;
671
+ load_parents?: LoadParents | undefined;
672
+ load_parents_list?: string[] | undefined;
673
+ load_child?: LoadChild | undefined;
674
+ load_child_list?: string[] | undefined;
675
+ load_child_count?: LoadChildCount | undefined;
676
+ load_child_count_list?: string[] | undefined;
677
+ include_details?: Record<string, any> | undefined;
678
+ where_relations?: Record<string, any> | undefined;
679
+ order_by?: {
680
+ name: string;
681
+ field: string;
682
+ direction: OrderBy;
683
+ }[] | undefined;
684
+ include_master_data?: YesNo | undefined;
685
+ organisation_ids?: string[] | undefined;
686
+ inspection_form_ids?: string[] | undefined;
687
+ }>;
688
+ type FleetInspectionFormQueryDTO = z.infer<typeof FleetInspectionFormQuerySchema>;
689
+ declare const toFleetInspectionFormPayload: (row: FleetInspectionForm) => FleetInspectionFormDTO;
690
+ declare const newFleetInspectionFormPayload: () => FleetInspectionFormDTO;
691
+ declare const findFleetInspectionForm: (data: FleetInspectionFormQueryDTO) => Promise<FBR<FleetInspectionForm[]>>;
692
+ declare const createFleetInspectionForm: (data: FleetInspectionFormDTO) => Promise<SBR>;
693
+ declare const updateFleetInspectionForm: (id: string, data: FleetInspectionFormDTO) => Promise<SBR>;
694
+ declare const deleteFleetInspectionForm: (id: string) => Promise<SBR>;
695
+ declare const getFleetInspectionFormCacheSimple: (organisation_id: string) => Promise<BR<FleetInspectionFormSimple[]>>;
696
+
697
+ export { newFleetInspectionFormPayload as A, findFleetInspectionForm as B, createFleetInspectionForm as C, updateFleetInspectionForm as D, deleteFleetInspectionForm as E, type FleetInspection as F, type FleetInspectionSchedule, type FleetInspectionScheduleDTO, type FleetInspectionScheduleQueryDTO, FleetInspectionScheduleQuerySchema, FleetInspectionScheduleSchema, type FleetInspectionScheduleVehicleLink, getFleetInspectionFormCacheSimple as G, type FleetInspectionFile as a, FleetInspectionFileSchema as b, type FleetInspectionFileDTO as c, createFleetInspectionSchedule, FleetInspectionSchema as d, deleteFleetInspectionSchedule, type FleetInspectionDTO as e, FleetInspectionQuerySchema as f, findFleetInspectionSchedule, type FleetInspectionQueryDTO as g, FleetInspectionCheckPendingQuerySchema as h, type FleetInspectionCheckPendingQueryDTO as i, get_inspection_file_presigned_url as j, create_service_file as k, findFleetInspection as l, find_check_pending as m, newFleetInspectionPayload as n, newFleetInspectionSchedulePayload, createFleetInspection as o, deleteFleetInspection as p, type FleetInspectionForm as q, remove_service_file as r, type FleetInspectionFormSimple as s, toFleetInspectionPayload as t, toFleetInspectionSchedulePayload, updateFleetInspection as u, updateFleetInspectionSchedule, FleetInspectionFormSchema as v, type FleetInspectionFormDTO as w, FleetInspectionFormQuerySchema as x, type FleetInspectionFormQueryDTO as y, toFleetInspectionFormPayload as z };