vms-nest-prisma-api-document 140.0.0 → 150.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.
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- login_from: LoginFrom;
26
25
  country_id: string;
26
+ login_from: LoginFrom;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- login_from: LoginFrom;
33
32
  country_id: string;
33
+ login_from: LoginFrom;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ login_from: LoginFrom;
51
52
  search: string;
52
53
  paging: PAGING;
53
54
  page_count: number;
54
55
  page_index: number;
55
- login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
+ login_from: LoginFrom;
46
47
  search: string;
47
48
  paging: PAGING;
48
49
  page_count: number;
49
50
  page_index: number;
50
- login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -92,8 +92,6 @@ declare const BusStopSchema: z.ZodObject<{
92
92
  status: Status;
93
93
  organisation_id: string;
94
94
  organisation_branch_id: string;
95
- stop_duration_seconds: number;
96
- stop_name: string;
97
95
  country_code: string;
98
96
  address_line1: string;
99
97
  address_line2: string;
@@ -104,9 +102,11 @@ declare const BusStopSchema: z.ZodObject<{
104
102
  state_province_region: string;
105
103
  postal_code: string;
106
104
  country: string;
105
+ stop_name: string;
107
106
  stop_code: string;
108
107
  stop_type: BusStopType;
109
108
  stop_description: string;
109
+ stop_duration_seconds: number;
110
110
  google_location: string;
111
111
  geofence_type: GeofenceType;
112
112
  polygon_data: {
@@ -124,7 +124,6 @@ declare const BusStopSchema: z.ZodObject<{
124
124
  stop_name: string;
125
125
  stop_type: BusStopType;
126
126
  geofence_type: GeofenceType;
127
- stop_duration_seconds?: unknown;
128
127
  country_code?: string | undefined;
129
128
  address_line1?: string | undefined;
130
129
  address_line2?: string | undefined;
@@ -137,6 +136,7 @@ declare const BusStopSchema: z.ZodObject<{
137
136
  country?: string | undefined;
138
137
  stop_code?: string | undefined;
139
138
  stop_description?: string | undefined;
139
+ stop_duration_seconds?: unknown;
140
140
  google_location?: string | undefined;
141
141
  stop_latitude?: unknown;
142
142
  stop_longitude?: unknown;
@@ -29,20 +29,20 @@ declare const OrganisationCalendarSchema: z.ZodObject<{
29
29
  notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
30
30
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
31
31
  }, "strip", z.ZodTypeAny, {
32
- status: Status;
33
- organisation_id: string;
34
- organisation_branch_id: string;
35
32
  calendar_date: string;
36
33
  holiday_type: HolidayType;
37
34
  title: string;
38
35
  notes: string;
39
- }, {
40
36
  status: Status;
41
37
  organisation_id: string;
42
38
  organisation_branch_id: string;
39
+ }, {
43
40
  calendar_date: string;
44
41
  holiday_type: HolidayType;
45
42
  title: string;
43
+ status: Status;
44
+ organisation_id: string;
45
+ organisation_branch_id: string;
46
46
  notes?: string | undefined;
47
47
  }>;
48
48
  type OrganisationCalendarDTO = z.infer<typeof OrganisationCalendarSchema>;
@@ -82,6 +82,7 @@ declare const OrganisationCalendarQuerySchema: z.ZodObject<{
82
82
  calendar_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
83
83
  holiday_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof HolidayType>, "many">>>;
84
84
  }, "strip", z.ZodTypeAny, {
85
+ holiday_type: HolidayType[];
85
86
  status: Status[];
86
87
  search: string;
87
88
  paging: PAGING;
@@ -105,11 +106,11 @@ declare const OrganisationCalendarQuerySchema: z.ZodObject<{
105
106
  time_zone_id: string;
106
107
  organisation_ids: string[];
107
108
  organisation_branch_ids: string[];
108
- holiday_type: HolidayType[];
109
109
  calendar_ids: string[];
110
110
  }, {
111
111
  date_format_id: string;
112
112
  time_zone_id: string;
113
+ holiday_type?: HolidayType[] | undefined;
113
114
  status?: Status[] | undefined;
114
115
  search?: string | undefined;
115
116
  paging?: PAGING | undefined;
@@ -131,7 +132,6 @@ declare const OrganisationCalendarQuerySchema: z.ZodObject<{
131
132
  include_master_data?: YesNo | undefined;
132
133
  organisation_ids?: string[] | undefined;
133
134
  organisation_branch_ids?: string[] | undefined;
134
- holiday_type?: HolidayType[] | undefined;
135
135
  calendar_ids?: string[] | undefined;
136
136
  }>;
137
137
  type OrganisationCalendarQueryDTO = z.infer<typeof OrganisationCalendarQuerySchema>;
@@ -121,6 +121,9 @@ declare const MasterRouteSchema: z.ZodObject<{
121
121
  drop_journey_time_in_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
122
122
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
123
123
  }, "strip", z.ZodTypeAny, {
124
+ status: Status;
125
+ organisation_id: string;
126
+ organisation_branch_id: string;
124
127
  route_name: string;
125
128
  route_code: string;
126
129
  route_notes: string;
@@ -131,19 +134,16 @@ declare const MasterRouteSchema: z.ZodObject<{
131
134
  pickup_end_stop_id: string;
132
135
  drop_start_stop_id: string;
133
136
  drop_end_stop_id: string;
137
+ }, {
134
138
  status: Status;
135
139
  organisation_id: string;
136
140
  organisation_branch_id: string;
137
- }, {
138
141
  route_name: string;
139
142
  route_status: Status;
140
143
  pickup_start_stop_id: string;
141
144
  pickup_end_stop_id: string;
142
145
  drop_start_stop_id: string;
143
146
  drop_end_stop_id: string;
144
- status: Status;
145
- organisation_id: string;
146
- organisation_branch_id: string;
147
147
  route_code?: string | undefined;
148
148
  route_notes?: string | undefined;
149
149
  pickup_journey_time_in_seconds?: unknown;
@@ -186,7 +186,6 @@ declare const MasterRouteQuerySchema: z.ZodObject<{
186
186
  route_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
187
187
  route_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
188
188
  }, "strip", z.ZodTypeAny, {
189
- route_status: Status[];
190
189
  status: Status[];
191
190
  search: string;
192
191
  paging: PAGING;
@@ -210,11 +209,11 @@ declare const MasterRouteQuerySchema: z.ZodObject<{
210
209
  time_zone_id: string;
211
210
  organisation_ids: string[];
212
211
  organisation_branch_ids: string[];
212
+ route_status: Status[];
213
213
  route_ids: string[];
214
214
  }, {
215
215
  date_format_id: string;
216
216
  time_zone_id: string;
217
- route_status?: Status[] | undefined;
218
217
  status?: Status[] | undefined;
219
218
  search?: string | undefined;
220
219
  paging?: PAGING | undefined;
@@ -236,6 +235,7 @@ declare const MasterRouteQuerySchema: z.ZodObject<{
236
235
  include_master_data?: YesNo | undefined;
237
236
  organisation_ids?: string[] | undefined;
238
237
  organisation_branch_ids?: string[] | undefined;
238
+ route_status?: Status[] | undefined;
239
239
  route_ids?: string[] | undefined;
240
240
  }>;
241
241
  type MasterRouteQueryDTO = z.infer<typeof MasterRouteQuerySchema>;
@@ -265,10 +265,12 @@ declare const MasterFixedScheduleSchema: z.ZodObject<{
265
265
  saturday: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
266
266
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
267
267
  }, "strip", z.ZodTypeAny, {
268
- route_id: string;
269
268
  status: Status;
270
269
  organisation_id: string;
271
270
  organisation_branch_id: string;
271
+ driver_id: string;
272
+ vehicle_id: string;
273
+ route_id: string;
272
274
  schedule_name: string;
273
275
  schedule_status: Status;
274
276
  is_stops_finalized: YesNo;
@@ -286,14 +288,14 @@ declare const MasterFixedScheduleSchema: z.ZodObject<{
286
288
  thursday: YesNo;
287
289
  friday: YesNo;
288
290
  saturday: YesNo;
289
- vehicle_id: string;
290
- driver_id: string;
291
291
  attendant_id: string;
292
292
  }, {
293
- route_id: string;
294
293
  status: Status;
295
294
  organisation_id: string;
296
295
  organisation_branch_id: string;
296
+ driver_id: string;
297
+ vehicle_id: string;
298
+ route_id: string;
297
299
  schedule_name: string;
298
300
  schedule_status: Status;
299
301
  is_stops_finalized: YesNo;
@@ -305,8 +307,6 @@ declare const MasterFixedScheduleSchema: z.ZodObject<{
305
307
  thursday: YesNo;
306
308
  friday: YesNo;
307
309
  saturday: YesNo;
308
- vehicle_id: string;
309
- driver_id: string;
310
310
  attendant_id: string;
311
311
  start_hour?: unknown;
312
312
  start_minute?: unknown;
@@ -359,9 +359,6 @@ declare const MasterFixedScheduleQuerySchema: z.ZodObject<{
359
359
  schedule_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BusLeg>, "many">>>;
360
360
  }, "strip", z.ZodTypeAny, {
361
361
  status: Status[];
362
- schedule_status: Status[];
363
- is_stops_finalized: YesNo[];
364
- schedule_type: BusLeg[];
365
362
  search: string;
366
363
  paging: PAGING;
367
364
  page_count: number;
@@ -384,18 +381,18 @@ declare const MasterFixedScheduleQuerySchema: z.ZodObject<{
384
381
  time_zone_id: string;
385
382
  organisation_ids: string[];
386
383
  organisation_branch_ids: string[];
387
- route_ids: string[];
388
384
  vehicle_ids: string[];
389
385
  driver_ids: string[];
386
+ schedule_status: Status[];
387
+ is_stops_finalized: YesNo[];
388
+ schedule_type: BusLeg[];
389
+ route_ids: string[];
390
390
  attendant_ids: string[];
391
391
  fixed_schedule_ids: string[];
392
392
  }, {
393
393
  date_format_id: string;
394
394
  time_zone_id: string;
395
395
  status?: Status[] | undefined;
396
- schedule_status?: Status[] | undefined;
397
- is_stops_finalized?: YesNo[] | undefined;
398
- schedule_type?: BusLeg[] | undefined;
399
396
  search?: string | undefined;
400
397
  paging?: PAGING | undefined;
401
398
  page_count?: unknown;
@@ -416,9 +413,12 @@ declare const MasterFixedScheduleQuerySchema: z.ZodObject<{
416
413
  include_master_data?: YesNo | undefined;
417
414
  organisation_ids?: string[] | undefined;
418
415
  organisation_branch_ids?: string[] | undefined;
419
- route_ids?: string[] | undefined;
420
416
  vehicle_ids?: string[] | undefined;
421
417
  driver_ids?: string[] | undefined;
418
+ schedule_status?: Status[] | undefined;
419
+ is_stops_finalized?: YesNo[] | undefined;
420
+ schedule_type?: BusLeg[] | undefined;
421
+ route_ids?: string[] | undefined;
422
422
  attendant_ids?: string[] | undefined;
423
423
  fixed_schedule_ids?: string[] | undefined;
424
424
  }>;
@@ -429,14 +429,14 @@ declare const MasterRouteStopSchema: z.ZodObject<{
429
429
  travel_seconds_to_next_stop: z.ZodEffects<z.ZodNumber, number, unknown>;
430
430
  bus_stop_id: z.ZodEffects<z.ZodString, string, string>;
431
431
  }, "strip", z.ZodTypeAny, {
432
- order_no: number;
432
+ bus_stop_id: string;
433
433
  stop_duration_seconds: number;
434
+ order_no: number;
434
435
  travel_seconds_to_next_stop: number;
435
- bus_stop_id: string;
436
436
  }, {
437
437
  bus_stop_id: string;
438
- order_no?: unknown;
439
438
  stop_duration_seconds?: unknown;
439
+ order_no?: unknown;
440
440
  travel_seconds_to_next_stop?: unknown;
441
441
  }>;
442
442
  type MasterRouteStopDTO = z.infer<typeof MasterRouteStopSchema>;
@@ -445,9 +445,9 @@ declare const MasterRouteStopUpdateSchema: z.ZodObject<{
445
445
  travel_seconds_to_next_stop: z.ZodEffects<z.ZodNumber, number, unknown>;
446
446
  bus_stop_id: z.ZodEffects<z.ZodString, string, string>;
447
447
  }, "strip", z.ZodTypeAny, {
448
+ bus_stop_id: string;
448
449
  stop_duration_seconds: number;
449
450
  travel_seconds_to_next_stop: number;
450
- bus_stop_id: string;
451
451
  }, {
452
452
  bus_stop_id: string;
453
453
  stop_duration_seconds?: unknown;
@@ -466,38 +466,38 @@ declare const MasterRouteStopCreateSchema: z.ZodObject<{
466
466
  travel_seconds_to_next_stop: z.ZodEffects<z.ZodNumber, number, unknown>;
467
467
  bus_stop_id: z.ZodEffects<z.ZodString, string, string>;
468
468
  }, z.UnknownKeysParam, z.ZodTypeAny, {
469
- order_no: number;
469
+ bus_stop_id: string;
470
470
  stop_duration_seconds: number;
471
+ order_no: number;
471
472
  travel_seconds_to_next_stop: number;
472
- bus_stop_id: string;
473
473
  }, {
474
474
  bus_stop_id: string;
475
- order_no?: unknown;
476
475
  stop_duration_seconds?: unknown;
476
+ order_no?: unknown;
477
477
  travel_seconds_to_next_stop?: unknown;
478
478
  }>, "many">>>;
479
479
  }, "strip", z.ZodTypeAny, {
480
- route_id: string;
481
480
  status: Status;
482
481
  organisation_id: string;
483
482
  organisation_branch_id: string;
484
- leg: BusLeg;
485
483
  MasterRouteStop: {
486
- order_no: number;
484
+ bus_stop_id: string;
487
485
  stop_duration_seconds: number;
486
+ order_no: number;
488
487
  travel_seconds_to_next_stop: number;
489
- bus_stop_id: string;
490
488
  }[];
491
- }, {
492
489
  route_id: string;
490
+ leg: BusLeg;
491
+ }, {
493
492
  status: Status;
494
493
  organisation_id: string;
495
494
  organisation_branch_id: string;
495
+ route_id: string;
496
496
  leg: BusLeg;
497
497
  MasterRouteStop?: {
498
498
  bus_stop_id: string;
499
- order_no?: unknown;
500
499
  stop_duration_seconds?: unknown;
500
+ order_no?: unknown;
501
501
  travel_seconds_to_next_stop?: unknown;
502
502
  }[] | undefined;
503
503
  }>;
@@ -550,13 +550,13 @@ declare const MasterRouteStopDeleteSchema: z.ZodObject<{
550
550
  bus_stop_id: z.ZodEffects<z.ZodString, string, string>;
551
551
  leg: z.ZodType<BusLeg, z.ZodTypeDef, BusLeg>;
552
552
  }, "strip", z.ZodTypeAny, {
553
+ bus_stop_id: string;
553
554
  route_id: string;
554
555
  leg: BusLeg;
555
- bus_stop_id: string;
556
556
  }, {
557
+ bus_stop_id: string;
557
558
  route_id: string;
558
559
  leg: BusLeg;
559
- bus_stop_id: string;
560
560
  }>;
561
561
  type MasterRouteStopDeleteReOrderDTO = z.infer<typeof MasterRouteStopDeleteSchema>;
562
562
  declare const StudentNoStopQuerySchema: z.ZodObject<{
@@ -592,7 +592,6 @@ declare const StudentNoStopQuerySchema: z.ZodObject<{
592
592
  } & {
593
593
  route_id: z.ZodEffects<z.ZodString, string, string>;
594
594
  }, "strip", z.ZodTypeAny, {
595
- route_id: string;
596
595
  status: Status[];
597
596
  search: string;
598
597
  paging: PAGING;
@@ -614,10 +613,11 @@ declare const StudentNoStopQuerySchema: z.ZodObject<{
614
613
  include_master_data: YesNo;
615
614
  date_format_id: string;
616
615
  time_zone_id: string;
617
- }, {
618
616
  route_id: string;
617
+ }, {
619
618
  date_format_id: string;
620
619
  time_zone_id: string;
620
+ route_id: string;
621
621
  status?: Status[] | undefined;
622
622
  search?: string | undefined;
623
623
  paging?: PAGING | undefined;
@@ -672,7 +672,6 @@ declare const StudentNoScheduleQuerySchema: z.ZodObject<{
672
672
  } & {
673
673
  route_id: z.ZodEffects<z.ZodString, string, string>;
674
674
  }, "strip", z.ZodTypeAny, {
675
- route_id: string;
676
675
  status: Status[];
677
676
  search: string;
678
677
  paging: PAGING;
@@ -694,10 +693,11 @@ declare const StudentNoScheduleQuerySchema: z.ZodObject<{
694
693
  include_master_data: YesNo;
695
694
  date_format_id: string;
696
695
  time_zone_id: string;
697
- }, {
698
696
  route_id: string;
697
+ }, {
699
698
  date_format_id: string;
700
699
  time_zone_id: string;
700
+ route_id: string;
701
701
  status?: Status[] | undefined;
702
702
  search?: string | undefined;
703
703
  paging?: PAGING | undefined;
@@ -723,8 +723,8 @@ declare const MasterRouteStudentAssignRemoveSchema: z.ZodObject<{
723
723
  route_id: z.ZodEffects<z.ZodString, string, string>;
724
724
  student_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
725
725
  }, "strip", z.ZodTypeAny, {
726
- route_id: string;
727
726
  student_ids: string[];
727
+ route_id: string;
728
728
  }, {
729
729
  route_id: string;
730
730
  student_ids?: string[] | undefined;
@@ -304,7 +304,6 @@ declare const StudentQuerySchema: z.ZodObject<{
304
304
  time_zone_id: string;
305
305
  organisation_ids: string[];
306
306
  organisation_branch_ids: string[];
307
- student_ids: string[];
308
307
  class_ids: string[];
309
308
  program_ids: string[];
310
309
  section_ids: string[];
@@ -313,6 +312,7 @@ declare const StudentQuerySchema: z.ZodObject<{
313
312
  year_ids: string[];
314
313
  enrollment_status: EnrollmentStatus[];
315
314
  transport_plan_type: TransportPlanType[];
315
+ student_ids: string[];
316
316
  pickup_route_ids: string[];
317
317
  drop_route_ids: string[];
318
318
  pickup_route_stop_ids: string[];
@@ -343,7 +343,6 @@ declare const StudentQuerySchema: z.ZodObject<{
343
343
  include_master_data?: YesNo | undefined;
344
344
  organisation_ids?: string[] | undefined;
345
345
  organisation_branch_ids?: string[] | undefined;
346
- student_ids?: string[] | undefined;
347
346
  class_ids?: string[] | undefined;
348
347
  program_ids?: string[] | undefined;
349
348
  section_ids?: string[] | undefined;
@@ -352,6 +351,7 @@ declare const StudentQuerySchema: z.ZodObject<{
352
351
  year_ids?: string[] | undefined;
353
352
  enrollment_status?: EnrollmentStatus[] | undefined;
354
353
  transport_plan_type?: TransportPlanType[] | undefined;
354
+ student_ids?: string[] | undefined;
355
355
  pickup_route_ids?: string[] | undefined;
356
356
  drop_route_ids?: string[] | undefined;
357
357
  pickup_route_stop_ids?: string[] | undefined;
@@ -464,10 +464,10 @@ declare const StudentAddressSchema: z.ZodObject<{
464
464
  notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
465
465
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
466
466
  }, "strip", z.ZodTypeAny, {
467
+ notes: string;
467
468
  status: Status;
468
469
  organisation_id: string;
469
470
  organisation_branch_id: string;
470
- student_id: string;
471
471
  country_code: string;
472
472
  address_line1: string;
473
473
  address_line2: string;
@@ -479,7 +479,7 @@ declare const StudentAddressSchema: z.ZodObject<{
479
479
  postal_code: string;
480
480
  country: string;
481
481
  google_location: string;
482
- notes: string;
482
+ student_id: string;
483
483
  is_default: YesNo;
484
484
  latitude?: number | undefined;
485
485
  longitude?: number | undefined;
@@ -487,9 +487,10 @@ declare const StudentAddressSchema: z.ZodObject<{
487
487
  status: Status;
488
488
  organisation_id: string;
489
489
  organisation_branch_id: string;
490
- student_id: string;
491
490
  address_line1: string;
491
+ student_id: string;
492
492
  is_default: YesNo;
493
+ notes?: string | undefined;
493
494
  country_code?: string | undefined;
494
495
  latitude?: unknown;
495
496
  longitude?: unknown;
@@ -502,7 +503,6 @@ declare const StudentAddressSchema: z.ZodObject<{
502
503
  postal_code?: string | undefined;
503
504
  country?: string | undefined;
504
505
  google_location?: string | undefined;
505
- notes?: string | undefined;
506
506
  }>;
507
507
  type StudentAddressDTO = z.infer<typeof StudentAddressSchema>;
508
508
  declare const StudentAddressBusStopAssignSchema: z.ZodObject<{
@@ -574,9 +574,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
574
574
  time_zone_id: string;
575
575
  organisation_ids: string[];
576
576
  organisation_branch_ids: string[];
577
- student_ids: string[];
578
577
  bus_stop_ids: string[];
579
578
  is_default: YesNo[];
579
+ student_ids: string[];
580
580
  student_address_ids: string[];
581
581
  }, {
582
582
  date_format_id: string;
@@ -602,9 +602,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
602
602
  include_master_data?: YesNo | undefined;
603
603
  organisation_ids?: string[] | undefined;
604
604
  organisation_branch_ids?: string[] | undefined;
605
- student_ids?: string[] | undefined;
606
605
  bus_stop_ids?: string[] | undefined;
607
606
  is_default?: YesNo[] | undefined;
607
+ student_ids?: string[] | undefined;
608
608
  student_address_ids?: string[] | undefined;
609
609
  }>;
610
610
  type StudentAddressQueryDTO = z.infer<typeof StudentAddressQuerySchema>;
@@ -624,14 +624,14 @@ declare const StudentGuardianLinkSchema: z.ZodObject<{
624
624
  alternative_mobile: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
625
625
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
626
626
  }, "strip", z.ZodTypeAny, {
627
+ notes: string;
627
628
  status: Status;
628
629
  organisation_id: string;
629
630
  organisation_branch_id: string;
630
- student_id: string;
631
631
  email: string;
632
632
  mobile: string;
633
- notes: string;
634
633
  relationship_id: string;
634
+ student_id: string;
635
635
  photo_url: string;
636
636
  photo_key: string;
637
637
  photo_name: string;
@@ -642,13 +642,13 @@ declare const StudentGuardianLinkSchema: z.ZodObject<{
642
642
  status: Status;
643
643
  organisation_id: string;
644
644
  organisation_branch_id: string;
645
- student_id: string;
646
645
  mobile: string;
647
646
  relationship_id: string;
647
+ student_id: string;
648
648
  is_primary: YesNo;
649
649
  full_name: string;
650
- email?: string | undefined;
651
650
  notes?: string | undefined;
651
+ email?: string | undefined;
652
652
  photo_url?: string | undefined;
653
653
  photo_key?: string | undefined;
654
654
  photo_name?: string | undefined;
@@ -972,8 +972,8 @@ declare const StudentLeaveRequestQuerySchema: z.ZodObject<{
972
972
  time_zone_id: string;
973
973
  organisation_ids: string[];
974
974
  organisation_branch_ids: string[];
975
- student_ids: string[];
976
975
  approval_status: ApprovalStatus[];
976
+ student_ids: string[];
977
977
  student_leave_request_ids: string[];
978
978
  }, {
979
979
  date_format_id: string;
@@ -999,8 +999,8 @@ declare const StudentLeaveRequestQuerySchema: z.ZodObject<{
999
999
  include_master_data?: YesNo | undefined;
1000
1000
  organisation_ids?: string[] | undefined;
1001
1001
  organisation_branch_ids?: string[] | undefined;
1002
- student_ids?: string[] | undefined;
1003
1002
  approval_status?: ApprovalStatus[] | undefined;
1003
+ student_ids?: string[] | undefined;
1004
1004
  student_leave_request_ids?: string[] | undefined;
1005
1005
  }>;
1006
1006
  type StudentLeaveRequestQueryDTO = z.infer<typeof StudentLeaveRequestQuerySchema>;
@@ -1114,8 +1114,8 @@ declare const StudentStopChangeRequestQuerySchema: z.ZodObject<{
1114
1114
  time_zone_id: string;
1115
1115
  organisation_ids: string[];
1116
1116
  organisation_branch_ids: string[];
1117
- student_ids: string[];
1118
1117
  approval_status: ApprovalStatus[];
1118
+ student_ids: string[];
1119
1119
  student_address_ids: string[];
1120
1120
  student_stop_change_request_ids: string[];
1121
1121
  }, {
@@ -1142,8 +1142,8 @@ declare const StudentStopChangeRequestQuerySchema: z.ZodObject<{
1142
1142
  include_master_data?: YesNo | undefined;
1143
1143
  organisation_ids?: string[] | undefined;
1144
1144
  organisation_branch_ids?: string[] | undefined;
1145
- student_ids?: string[] | undefined;
1146
1145
  approval_status?: ApprovalStatus[] | undefined;
1146
+ student_ids?: string[] | undefined;
1147
1147
  student_address_ids?: string[] | undefined;
1148
1148
  student_stop_change_request_ids?: string[] | undefined;
1149
1149
  }>;
@@ -40,8 +40,8 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
40
40
  organisation_id: string;
41
41
  vehicle_id: string;
42
42
  driver_id: string;
43
- gps_geofence_id: string;
44
43
  time_zone_id: string;
44
+ gps_geofence_id: string;
45
45
  geofence_status_type: GeofenceStatusType;
46
46
  geofence_time: string;
47
47
  }, {
@@ -49,8 +49,8 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
49
49
  organisation_id: string;
50
50
  vehicle_id: string;
51
51
  driver_id: string;
52
- gps_geofence_id: string;
53
52
  time_zone_id: string;
53
+ gps_geofence_id: string;
54
54
  geofence_status_type: GeofenceStatusType;
55
55
  geofence_time: string;
56
56
  }>;
@@ -118,9 +118,9 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
118
118
  organisation_ids: string[];
119
119
  vehicle_ids: string[];
120
120
  driver_ids: string[];
121
- gps_geofence_ids: string[];
122
121
  from_date: string;
123
122
  to_date: string;
123
+ gps_geofence_ids: string[];
124
124
  geofence_status_type: GeofenceStatusType[];
125
125
  }, {
126
126
  time_zone_id: string;
@@ -46,29 +46,29 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
46
46
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
47
47
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
48
48
  }, "strip", z.ZodTypeAny, {
49
- geofence_enter_date_time: string;
50
- geofence_exit_date_time: string;
51
49
  duration_seconds: number;
52
50
  status: Status;
53
51
  organisation_id: string;
54
52
  vehicle_id: string;
55
53
  driver_id: string;
54
+ time_zone_id: string;
56
55
  gps_geofence_id: string;
56
+ geofence_enter_date_time: string;
57
+ geofence_exit_date_time: string;
57
58
  enter_gps_geofence_transaction_id: string;
58
59
  exit_gps_geofence_transaction_id: string;
59
- time_zone_id: string;
60
60
  }, {
61
- geofence_enter_date_time: string;
62
61
  status: Status;
63
62
  organisation_id: string;
64
63
  vehicle_id: string;
65
64
  driver_id: string;
65
+ time_zone_id: string;
66
66
  gps_geofence_id: string;
67
+ geofence_enter_date_time: string;
67
68
  enter_gps_geofence_transaction_id: string;
68
69
  exit_gps_geofence_transaction_id: string;
69
- time_zone_id: string;
70
- geofence_exit_date_time?: string | undefined;
71
70
  duration_seconds?: unknown;
71
+ geofence_exit_date_time?: string | undefined;
72
72
  }>;
73
73
  type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
74
74
  declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
@@ -133,9 +133,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
133
133
  organisation_ids: string[];
134
134
  vehicle_ids: string[];
135
135
  driver_ids: string[];
136
- gps_geofence_ids: string[];
137
136
  from_date: string;
138
137
  to_date: string;
138
+ gps_geofence_ids: string[];
139
139
  }, {
140
140
  time_zone_id: string;
141
141
  date_format_id: string;
@@ -55,31 +55,31 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
55
55
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
56
56
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
57
57
  }, "strip", z.ZodTypeAny, {
58
- duration_seconds: number;
59
- status: Status;
60
- organisation_id: string;
61
- vehicle_id: string;
62
- driver_id: string;
63
- time_zone_id: string;
64
58
  from_geofence_exit_date_time: string;
65
59
  to_geofence_enter_date_time: string;
60
+ duration_seconds: number;
66
61
  travel_duration_seconds: number;
67
62
  stopped_duration_seconds: number;
68
63
  max_speed: number;
69
64
  avg_speed: number;
65
+ status: Status;
66
+ organisation_id: string;
67
+ vehicle_id: string;
68
+ driver_id: string;
70
69
  from_geofence_id: string;
71
70
  to_geofence_id: string;
71
+ time_zone_id: string;
72
72
  distance_meters?: number | undefined;
73
73
  }, {
74
+ from_geofence_exit_date_time: string;
75
+ to_geofence_enter_date_time: string;
74
76
  status: Status;
75
77
  organisation_id: string;
76
78
  vehicle_id: string;
77
79
  driver_id: string;
78
- time_zone_id: string;
79
- from_geofence_exit_date_time: string;
80
- to_geofence_enter_date_time: string;
81
80
  from_geofence_id: string;
82
81
  to_geofence_id: string;
82
+ time_zone_id: string;
83
83
  duration_seconds?: unknown;
84
84
  travel_duration_seconds?: unknown;
85
85
  stopped_duration_seconds?: unknown;
@@ -151,10 +151,10 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
151
151
  organisation_ids: string[];
152
152
  vehicle_ids: string[];
153
153
  driver_ids: string[];
154
- from_date: string;
155
- to_date: string;
156
154
  from_geofence_ids: string[];
157
155
  to_geofence_ids: string[];
156
+ from_date: string;
157
+ to_date: string;
158
158
  }, {
159
159
  time_zone_id: string;
160
160
  date_format_id: string;
@@ -34,41 +34,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
34
34
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
35
35
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
36
36
  }, "strip", z.ZodTypeAny, {
37
+ db_group: string;
38
+ db_instance: string;
39
+ night_driving: NightDriving;
37
40
  search: string;
38
41
  paging: PAGING;
39
42
  page_count: number;
40
43
  page_index: number;
41
- login_from: LoginFrom;
42
44
  date_format_id: string;
43
45
  time_zone_id: string;
46
+ login_from: LoginFrom;
44
47
  organisation_id: string;
45
- db_instance: string;
46
- db_group: string;
47
48
  vehicle_ids: string[];
48
49
  from_date: string;
49
50
  to_date: string;
50
51
  time_slot: TimeSlot;
51
- night_driving: NightDriving;
52
52
  over_speed: OverSpeed;
53
53
  utilization_km: number;
54
54
  vehicle_summary: YesNo;
55
55
  driver_summary: YesNo;
56
56
  }, {
57
- login_from: LoginFrom;
57
+ db_group: string;
58
+ db_instance: string;
58
59
  date_format_id: string;
59
60
  time_zone_id: string;
61
+ login_from: LoginFrom;
60
62
  organisation_id: string;
61
- db_instance: string;
62
- db_group: string;
63
63
  from_date: string;
64
64
  to_date: string;
65
+ night_driving?: NightDriving | undefined;
65
66
  search?: string | undefined;
66
67
  paging?: PAGING | undefined;
67
68
  page_count?: unknown;
68
69
  page_index?: unknown;
69
70
  vehicle_ids?: string[] | undefined;
70
71
  time_slot?: TimeSlot | undefined;
71
- night_driving?: NightDriving | undefined;
72
72
  over_speed?: OverSpeed | undefined;
73
73
  utilization_km?: unknown;
74
74
  vehicle_summary?: YesNo | undefined;
@@ -97,40 +97,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
97
97
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
98
98
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
99
99
  }, "strip", z.ZodTypeAny, {
100
+ db_group: string;
101
+ db_instance: string;
102
+ night_driving: NightDriving;
100
103
  search: string;
101
104
  paging: PAGING;
102
105
  page_count: number;
103
106
  page_index: number;
104
- login_from: LoginFrom;
105
107
  date_format_id: string;
106
108
  time_zone_id: string;
109
+ login_from: LoginFrom;
107
110
  organisation_id: string;
108
- db_instance: string;
109
- db_group: string;
110
111
  from_date: string;
111
112
  to_date: string;
112
113
  time_slot: TimeSlot;
113
- night_driving: NightDriving;
114
114
  over_speed: OverSpeed;
115
115
  utilization_km: number;
116
116
  vehicle_summary: YesNo;
117
117
  driver_summary: YesNo;
118
118
  driver_ids: string[];
119
119
  }, {
120
- login_from: LoginFrom;
120
+ db_group: string;
121
+ db_instance: string;
121
122
  date_format_id: string;
122
123
  time_zone_id: string;
124
+ login_from: LoginFrom;
123
125
  organisation_id: string;
124
- db_instance: string;
125
- db_group: string;
126
126
  from_date: string;
127
127
  to_date: string;
128
+ night_driving?: NightDriving | undefined;
128
129
  search?: string | undefined;
129
130
  paging?: PAGING | undefined;
130
131
  page_count?: unknown;
131
132
  page_index?: unknown;
132
133
  time_slot?: TimeSlot | undefined;
133
- night_driving?: NightDriving | undefined;
134
134
  over_speed?: OverSpeed | undefined;
135
135
  utilization_km?: unknown;
136
136
  vehicle_summary?: YesNo | undefined;
@@ -157,16 +157,16 @@ declare const SimpleReportSchema: z.ZodObject<{
157
157
  interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
158
158
  boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
159
159
  }, "strip", z.ZodTypeAny, {
160
+ db_group: string;
161
+ db_instance: string;
160
162
  search: string;
161
163
  paging: PAGING;
162
164
  page_count: number;
163
165
  page_index: number;
164
- login_from: LoginFrom;
165
166
  date_format_id: string;
166
167
  time_zone_id: string;
168
+ login_from: LoginFrom;
167
169
  organisation_id: string;
168
- db_instance: string;
169
- db_group: string;
170
170
  vehicle_ids: string[];
171
171
  from_date: string;
172
172
  to_date: string;
@@ -174,12 +174,12 @@ declare const SimpleReportSchema: z.ZodObject<{
174
174
  interval_seconds: number;
175
175
  boolean_type: BooleanType;
176
176
  }, {
177
- login_from: LoginFrom;
177
+ db_group: string;
178
+ db_instance: string;
178
179
  date_format_id: string;
179
180
  time_zone_id: string;
181
+ login_from: LoginFrom;
180
182
  organisation_id: string;
181
- db_instance: string;
182
- db_group: string;
183
183
  from_date: string;
184
184
  to_date: string;
185
185
  gps_type: GPSType;
@@ -208,26 +208,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
208
208
  utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
209
209
  is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
210
210
  }, "strip", z.ZodTypeAny, {
211
+ db_group: string;
212
+ db_instance: string;
211
213
  search: string;
212
214
  paging: PAGING;
213
215
  page_count: number;
214
216
  page_index: number;
215
- login_from: LoginFrom;
216
217
  date_format_id: string;
217
218
  time_zone_id: string;
219
+ login_from: LoginFrom;
218
220
  organisation_id: string;
219
- db_instance: string;
220
- db_group: string;
221
221
  vehicle_ids: string[];
222
222
  utilization_km: number;
223
223
  is12am: Is12AM;
224
224
  }, {
225
- login_from: LoginFrom;
225
+ db_group: string;
226
+ db_instance: string;
226
227
  date_format_id: string;
227
228
  time_zone_id: string;
229
+ login_from: LoginFrom;
228
230
  organisation_id: string;
229
- db_instance: string;
230
- db_group: string;
231
231
  is12am: Is12AM;
232
232
  search?: string | undefined;
233
233
  paging?: PAGING | undefined;
@@ -254,27 +254,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
254
254
  to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
255
255
  interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
256
256
  }, "strip", z.ZodTypeAny, {
257
+ db_group: string;
258
+ db_instance: string;
257
259
  search: string;
258
260
  paging: PAGING;
259
261
  page_count: number;
260
262
  page_index: number;
261
- login_from: LoginFrom;
262
263
  date_format_id: string;
263
264
  time_zone_id: string;
265
+ login_from: LoginFrom;
264
266
  organisation_id: string;
265
- db_instance: string;
266
- db_group: string;
267
267
  interval_seconds: number;
268
268
  vehicle_id: string;
269
269
  from_date_time: string;
270
270
  to_date_time: string;
271
271
  }, {
272
- login_from: LoginFrom;
272
+ db_group: string;
273
+ db_instance: string;
273
274
  date_format_id: string;
274
275
  time_zone_id: string;
276
+ login_from: LoginFrom;
275
277
  organisation_id: string;
276
- db_instance: string;
277
- db_group: string;
278
278
  vehicle_id: string;
279
279
  from_date_time: string;
280
280
  to_date_time: string;
@@ -299,24 +299,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
299
299
  db_group: z.ZodEffects<z.ZodString, string, string>;
300
300
  vehicle_id: z.ZodEffects<z.ZodString, string, string>;
301
301
  }, "strip", z.ZodTypeAny, {
302
+ db_group: string;
303
+ db_instance: string;
302
304
  search: string;
303
305
  paging: PAGING;
304
306
  page_count: number;
305
307
  page_index: number;
306
- login_from: LoginFrom;
307
308
  date_format_id: string;
308
309
  time_zone_id: string;
310
+ login_from: LoginFrom;
309
311
  organisation_id: string;
310
- db_instance: string;
311
- db_group: string;
312
312
  vehicle_id: string;
313
313
  }, {
314
- login_from: LoginFrom;
314
+ db_group: string;
315
+ db_instance: string;
315
316
  date_format_id: string;
316
317
  time_zone_id: string;
318
+ login_from: LoginFrom;
317
319
  organisation_id: string;
318
- db_instance: string;
319
- db_group: string;
320
320
  vehicle_id: string;
321
321
  search?: string | undefined;
322
322
  paging?: PAGING | undefined;
@@ -346,16 +346,16 @@ declare const AlertReportSchema: z.ZodObject<{
346
346
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
347
347
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
348
348
  }, "strip", z.ZodTypeAny, {
349
+ db_group: string;
350
+ db_instance: string;
349
351
  search: string;
350
352
  paging: PAGING;
351
353
  page_count: number;
352
354
  page_index: number;
353
- login_from: LoginFrom;
354
355
  date_format_id: string;
355
356
  time_zone_id: string;
357
+ login_from: LoginFrom;
356
358
  organisation_id: string;
357
- db_instance: string;
358
- db_group: string;
359
359
  vehicle_ids: string[];
360
360
  from_date: string;
361
361
  to_date: string;
@@ -366,12 +366,12 @@ declare const AlertReportSchema: z.ZodObject<{
366
366
  alert_types: AlertType[];
367
367
  alert_sub_types: AlertSubType[];
368
368
  }, {
369
- login_from: LoginFrom;
369
+ db_group: string;
370
+ db_instance: string;
370
371
  date_format_id: string;
371
372
  time_zone_id: string;
373
+ login_from: LoginFrom;
372
374
  organisation_id: string;
373
- db_instance: string;
374
- db_group: string;
375
375
  from_date: string;
376
376
  to_date: string;
377
377
  search?: string | undefined;
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
28
28
  logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
29
29
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
30
30
  }, "strip", z.ZodTypeAny, {
31
+ company_name: string;
31
32
  description: string;
33
+ logo_url: string;
34
+ logo_key: string;
32
35
  status: Status;
33
36
  organisation_id: string;
34
37
  country_id: string;
35
- logo_key: string;
36
- logo_url: string;
37
- company_name: string;
38
38
  }, {
39
+ company_name: string;
39
40
  status: Status;
40
41
  organisation_id: string;
41
42
  country_id: string;
42
- company_name: string;
43
43
  description?: string | undefined;
44
- logo_key?: string | undefined;
45
44
  logo_url?: string | undefined;
45
+ logo_key?: string | undefined;
46
46
  }>;
47
47
  type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
48
48
  declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
21
21
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
22
22
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
23
23
  }, "strip", z.ZodTypeAny, {
24
- document_type: string;
25
24
  description: string;
26
25
  status: Status;
27
26
  organisation_id: string;
28
- }, {
29
27
  document_type: string;
28
+ }, {
30
29
  status: Status;
31
30
  organisation_id: string;
31
+ document_type: string;
32
32
  description?: string | undefined;
33
33
  }>;
34
34
  type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
@@ -31,6 +31,7 @@ declare const ContactUsDetailSchema: z.ZodObject<{
31
31
  telegram_chat_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
32
32
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
33
33
  }, "strip", z.ZodTypeAny, {
34
+ status: Status;
34
35
  mobile_number: string;
35
36
  email: string;
36
37
  facebook_link: string;
@@ -41,7 +42,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
41
42
  pinterest_link: string;
42
43
  whats_app_chat_url: string;
43
44
  telegram_chat_url: string;
44
- status: Status;
45
45
  }, {
46
46
  status: Status;
47
47
  mobile_number?: string | undefined;
@@ -17,10 +17,10 @@ declare const FaqSchema: z.ZodObject<{
17
17
  faq_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
18
18
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- status: Status;
21
20
  faq_section: string;
22
21
  faq_header: string;
23
22
  faq_content: string;
23
+ status: Status;
24
24
  }, {
25
25
  status: Status;
26
26
  faq_section?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "140.0.0",
3
+ "version": "150.0.0",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",