vms-nest-api-document 27.0.0 → 29.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.
@@ -203,11 +203,11 @@ declare const DailyScheduleDayRunSchema: z.ZodObject<{
203
203
  organisation_id: string;
204
204
  organisation_branch_id: string;
205
205
  route_id: string;
206
+ daily_schedule_id: string;
206
207
  vehicle_id: string;
207
208
  driver_id: string;
208
209
  attendant_id: string;
209
210
  time_zone_id: string;
210
- daily_schedule_id: string;
211
211
  }, {
212
212
  run_date: string;
213
213
  schedule_type: BusLeg;
@@ -217,11 +217,11 @@ declare const DailyScheduleDayRunSchema: z.ZodObject<{
217
217
  organisation_id: string;
218
218
  organisation_branch_id: string;
219
219
  route_id: string;
220
+ daily_schedule_id: string;
220
221
  vehicle_id: string;
221
222
  driver_id: string;
222
223
  attendant_id: string;
223
224
  time_zone_id: string;
224
- daily_schedule_id: string;
225
225
  start_planned_date_time?: string | undefined;
226
226
  end_planned_date_time?: string | undefined;
227
227
  start_actual_date_time?: string | undefined;
@@ -304,16 +304,16 @@ declare const DailyScheduleDayRunQuerySchema: z.ZodObject<{
304
304
  }[];
305
305
  include_master_data: YesNo;
306
306
  date_format_id: string;
307
+ daily_schedule_day_run_ids: string[];
307
308
  organisation_ids: string[];
308
309
  organisation_branch_ids: string[];
309
310
  route_ids: string[];
311
+ daily_schedule_ids: string[];
310
312
  vehicle_ids: string[];
311
313
  driver_ids: string[];
312
314
  attendant_ids: string[];
313
315
  run_date_from: string;
314
316
  run_date_to: string;
315
- daily_schedule_ids: string[];
316
- daily_schedule_day_run_ids: string[];
317
317
  }, {
318
318
  time_zone_id: string;
319
319
  date_format_id: string;
@@ -339,16 +339,16 @@ declare const DailyScheduleDayRunQuerySchema: z.ZodObject<{
339
339
  direction: OrderBy;
340
340
  }[] | undefined;
341
341
  include_master_data?: YesNo | undefined;
342
+ daily_schedule_day_run_ids?: string[] | undefined;
342
343
  organisation_ids?: string[] | undefined;
343
344
  organisation_branch_ids?: string[] | undefined;
344
345
  route_ids?: string[] | undefined;
346
+ daily_schedule_ids?: string[] | undefined;
345
347
  vehicle_ids?: string[] | undefined;
346
348
  driver_ids?: string[] | undefined;
347
349
  attendant_ids?: string[] | undefined;
348
350
  run_date_from?: string | undefined;
349
351
  run_date_to?: string | undefined;
350
- daily_schedule_ids?: string[] | undefined;
351
- daily_schedule_day_run_ids?: string[] | undefined;
352
352
  }>;
353
353
  type DailyScheduleDayRunQueryDTO = z.infer<typeof DailyScheduleDayRunQuerySchema>;
354
354
  declare const DailyScheduleDayRunStopSchema: z.ZodObject<{
@@ -367,6 +367,7 @@ declare const DailyScheduleDayRunStopSchema: z.ZodObject<{
367
367
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
368
368
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
369
369
  }, "strip", z.ZodTypeAny, {
370
+ daily_schedule_day_run_id: string;
370
371
  planned_student_count: number;
371
372
  marked_student_count: number;
372
373
  status: Status;
@@ -380,13 +381,12 @@ declare const DailyScheduleDayRunStopSchema: z.ZodObject<{
380
381
  stop_status: DayRunStopStatus;
381
382
  bus_stop_id: string;
382
383
  time_zone_id: string;
383
- daily_schedule_day_run_id: string;
384
384
  }, {
385
+ daily_schedule_day_run_id: string;
385
386
  status: Status;
386
387
  stop_status: DayRunStopStatus;
387
388
  bus_stop_id: string;
388
389
  time_zone_id: string;
389
- daily_schedule_day_run_id: string;
390
390
  planned_student_count?: unknown;
391
391
  marked_student_count?: unknown;
392
392
  order_no?: unknown;
@@ -460,13 +460,13 @@ declare const DailyScheduleDayRunStopQuerySchema: z.ZodObject<{
460
460
  }[];
461
461
  include_master_data: YesNo;
462
462
  date_format_id: string;
463
+ daily_schedule_day_run_ids: string[];
463
464
  organisation_ids: string[];
464
465
  organisation_branch_ids: string[];
465
466
  route_ids: string[];
466
- bus_stop_ids: string[];
467
467
  daily_schedule_ids: string[];
468
- daily_schedule_day_run_ids: string[];
469
468
  daily_schedule_day_run_stop_ids: string[];
469
+ bus_stop_ids: string[];
470
470
  }, {
471
471
  time_zone_id: string;
472
472
  date_format_id: string;
@@ -490,13 +490,13 @@ declare const DailyScheduleDayRunStopQuerySchema: z.ZodObject<{
490
490
  direction: OrderBy;
491
491
  }[] | undefined;
492
492
  include_master_data?: YesNo | undefined;
493
+ daily_schedule_day_run_ids?: string[] | undefined;
493
494
  organisation_ids?: string[] | undefined;
494
495
  organisation_branch_ids?: string[] | undefined;
495
496
  route_ids?: string[] | undefined;
496
- bus_stop_ids?: string[] | undefined;
497
497
  daily_schedule_ids?: string[] | undefined;
498
- daily_schedule_day_run_ids?: string[] | undefined;
499
498
  daily_schedule_day_run_stop_ids?: string[] | undefined;
499
+ bus_stop_ids?: string[] | undefined;
500
500
  }>;
501
501
  type DailyScheduleDayRunStopQueryDTO = z.infer<typeof DailyScheduleDayRunStopQuerySchema>;
502
502
  declare const DailyScheduleDayRunStudentSchema: z.ZodObject<{
@@ -514,6 +514,7 @@ declare const DailyScheduleDayRunStudentSchema: z.ZodObject<{
514
514
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
515
515
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
516
516
  }, "strip", z.ZodTypeAny, {
517
+ daily_schedule_day_run_id: string;
517
518
  status: Status;
518
519
  student_boarding_status: StudentLegStatus;
519
520
  method: AttendanceMethod;
@@ -522,20 +523,19 @@ declare const DailyScheduleDayRunStudentSchema: z.ZodObject<{
522
523
  student_attendance_image_url: string;
523
524
  student_attendance_image_key: string;
524
525
  student_attendance_image_name: string;
525
- student_id: string;
526
- time_zone_id: string;
527
- daily_schedule_day_run_id: string;
528
526
  planned_daily_schedule_day_run_stop_id: string;
529
527
  actual_daily_schedule_day_run_stop_id: string;
528
+ student_id: string;
529
+ time_zone_id: string;
530
530
  }, {
531
+ daily_schedule_day_run_id: string;
531
532
  status: Status;
532
533
  student_boarding_status: StudentLegStatus;
533
534
  method: AttendanceMethod;
534
- student_id: string;
535
- time_zone_id: string;
536
- daily_schedule_day_run_id: string;
537
535
  planned_daily_schedule_day_run_stop_id: string;
538
536
  actual_daily_schedule_day_run_stop_id: string;
537
+ student_id: string;
538
+ time_zone_id: string;
539
539
  mark_time?: string | undefined;
540
540
  note?: string | undefined;
541
541
  student_attendance_image_url?: string | undefined;
@@ -609,15 +609,15 @@ declare const DailyScheduleDayRunStudentQuerySchema: z.ZodObject<{
609
609
  }[];
610
610
  include_master_data: YesNo;
611
611
  date_format_id: string;
612
+ daily_schedule_day_run_ids: string[];
612
613
  organisation_ids: string[];
613
614
  organisation_branch_ids: string[];
614
615
  route_ids: string[];
615
- student_ids: string[];
616
616
  daily_schedule_ids: string[];
617
- daily_schedule_day_run_ids: string[];
618
617
  daily_schedule_day_run_student_ids: string[];
619
618
  planned_daily_schedule_day_run_stop_ids: string[];
620
619
  actual_daily_schedule_day_run_stop_ids: string[];
620
+ student_ids: string[];
621
621
  }, {
622
622
  time_zone_id: string;
623
623
  date_format_id: string;
@@ -642,15 +642,15 @@ declare const DailyScheduleDayRunStudentQuerySchema: z.ZodObject<{
642
642
  direction: OrderBy;
643
643
  }[] | undefined;
644
644
  include_master_data?: YesNo | undefined;
645
+ daily_schedule_day_run_ids?: string[] | undefined;
645
646
  organisation_ids?: string[] | undefined;
646
647
  organisation_branch_ids?: string[] | undefined;
647
648
  route_ids?: string[] | undefined;
648
- student_ids?: string[] | undefined;
649
649
  daily_schedule_ids?: string[] | undefined;
650
- daily_schedule_day_run_ids?: string[] | undefined;
651
650
  daily_schedule_day_run_student_ids?: string[] | undefined;
652
651
  planned_daily_schedule_day_run_stop_ids?: string[] | undefined;
653
652
  actual_daily_schedule_day_run_stop_ids?: string[] | undefined;
653
+ student_ids?: string[] | undefined;
654
654
  }>;
655
655
  type DailyScheduleDayRunStudentQueryDTO = z.infer<typeof DailyScheduleDayRunStudentQuerySchema>;
656
656
  declare const GenerateDailyScheduleDayRunSchema: z.ZodObject<{
@@ -659,23 +659,23 @@ declare const GenerateDailyScheduleDayRunSchema: z.ZodObject<{
659
659
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
660
660
  }, "strip", z.ZodTypeAny, {
661
661
  run_date: string;
662
- time_zone_id: string;
663
662
  daily_schedule_id: string;
663
+ time_zone_id: string;
664
664
  }, {
665
665
  run_date: string;
666
- time_zone_id: string;
667
666
  daily_schedule_id: string;
667
+ time_zone_id: string;
668
668
  }>;
669
669
  type GenerateDailyScheduleDayRunDTO = z.infer<typeof GenerateDailyScheduleDayRunSchema>;
670
670
  declare const DailyScheduleDayRunIdSchema: z.ZodObject<{
671
671
  daily_schedule_day_run_id: z.ZodEffects<z.ZodString, string, string>;
672
672
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
673
673
  }, "strip", z.ZodTypeAny, {
674
- time_zone_id: string;
675
674
  daily_schedule_day_run_id: string;
676
- }, {
677
675
  time_zone_id: string;
676
+ }, {
678
677
  daily_schedule_day_run_id: string;
678
+ time_zone_id: string;
679
679
  }>;
680
680
  type DailyScheduleDayRunIdDTO = z.infer<typeof DailyScheduleDayRunIdSchema>;
681
681
  declare const CancelDailyScheduleDayRunSchema: z.ZodObject<{
@@ -683,12 +683,12 @@ declare const CancelDailyScheduleDayRunSchema: z.ZodObject<{
683
683
  cancel_reason: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
684
684
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
685
685
  }, "strip", z.ZodTypeAny, {
686
+ daily_schedule_day_run_id: string;
686
687
  cancel_reason: string;
687
688
  time_zone_id: string;
688
- daily_schedule_day_run_id: string;
689
689
  }, {
690
- time_zone_id: string;
691
690
  daily_schedule_day_run_id: string;
691
+ time_zone_id: string;
692
692
  cancel_reason?: string | undefined;
693
693
  }>;
694
694
  type CancelDailyScheduleDayRunDTO = z.infer<typeof CancelDailyScheduleDayRunSchema>;
@@ -697,12 +697,12 @@ declare const DailyScheduleDayRunStopIdSchema: z.ZodObject<{
697
697
  actual_time: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
698
698
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
699
699
  }, "strip", z.ZodTypeAny, {
700
+ daily_schedule_day_run_stop_id: string;
700
701
  time_zone_id: string;
701
702
  actual_time: string;
702
- daily_schedule_day_run_stop_id: string;
703
703
  }, {
704
- time_zone_id: string;
705
704
  daily_schedule_day_run_stop_id: string;
705
+ time_zone_id: string;
706
706
  actual_time?: string | undefined;
707
707
  }>;
708
708
  type DailyScheduleDayRunStopIdDTO = z.infer<typeof DailyScheduleDayRunStopIdSchema>;
@@ -718,6 +718,7 @@ declare const MarkDailyScheduleDayRunStudentSchema: z.ZodObject<{
718
718
  student_attendance_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
719
719
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
720
720
  }, "strip", z.ZodTypeAny, {
721
+ daily_schedule_day_run_student_id: string;
721
722
  student_boarding_status: StudentLegStatus;
722
723
  method: AttendanceMethod;
723
724
  mark_time: string;
@@ -725,15 +726,14 @@ declare const MarkDailyScheduleDayRunStudentSchema: z.ZodObject<{
725
726
  student_attendance_image_url: string;
726
727
  student_attendance_image_key: string;
727
728
  student_attendance_image_name: string;
728
- time_zone_id: string;
729
- daily_schedule_day_run_student_id: string;
730
729
  actual_daily_schedule_day_run_stop_id: string;
730
+ time_zone_id: string;
731
731
  }, {
732
+ daily_schedule_day_run_student_id: string;
732
733
  student_boarding_status: StudentLegStatus;
733
734
  method: AttendanceMethod;
734
- time_zone_id: string;
735
- daily_schedule_day_run_student_id: string;
736
735
  actual_daily_schedule_day_run_stop_id: string;
736
+ time_zone_id: string;
737
737
  mark_time?: string | undefined;
738
738
  note?: string | undefined;
739
739
  student_attendance_image_url?: string | undefined;
@@ -203,11 +203,11 @@ declare const SpecialScheduleDayRunSchema: z.ZodObject<{
203
203
  organisation_id: string;
204
204
  organisation_branch_id: string;
205
205
  route_id: string;
206
- special_schedule_id: string;
207
206
  vehicle_id: string;
208
207
  driver_id: string;
209
208
  attendant_id: string;
210
209
  time_zone_id: string;
210
+ special_schedule_id: string;
211
211
  }, {
212
212
  run_date: string;
213
213
  schedule_type: BusLeg;
@@ -217,11 +217,11 @@ declare const SpecialScheduleDayRunSchema: z.ZodObject<{
217
217
  organisation_id: string;
218
218
  organisation_branch_id: string;
219
219
  route_id: string;
220
- special_schedule_id: string;
221
220
  vehicle_id: string;
222
221
  driver_id: string;
223
222
  attendant_id: string;
224
223
  time_zone_id: string;
224
+ special_schedule_id: string;
225
225
  start_planned_date_time?: string | undefined;
226
226
  end_planned_date_time?: string | undefined;
227
227
  start_actual_date_time?: string | undefined;
@@ -304,16 +304,16 @@ declare const SpecialScheduleDayRunQuerySchema: z.ZodObject<{
304
304
  }[];
305
305
  include_master_data: YesNo;
306
306
  date_format_id: string;
307
- special_schedule_day_run_ids: string[];
308
307
  organisation_ids: string[];
309
308
  organisation_branch_ids: string[];
310
309
  route_ids: string[];
311
- special_schedule_ids: string[];
312
310
  vehicle_ids: string[];
313
311
  driver_ids: string[];
314
312
  attendant_ids: string[];
315
313
  run_date_from: string;
316
314
  run_date_to: string;
315
+ special_schedule_ids: string[];
316
+ special_schedule_day_run_ids: string[];
317
317
  }, {
318
318
  time_zone_id: string;
319
319
  date_format_id: string;
@@ -339,16 +339,16 @@ declare const SpecialScheduleDayRunQuerySchema: z.ZodObject<{
339
339
  direction: OrderBy;
340
340
  }[] | undefined;
341
341
  include_master_data?: YesNo | undefined;
342
- special_schedule_day_run_ids?: string[] | undefined;
343
342
  organisation_ids?: string[] | undefined;
344
343
  organisation_branch_ids?: string[] | undefined;
345
344
  route_ids?: string[] | undefined;
346
- special_schedule_ids?: string[] | undefined;
347
345
  vehicle_ids?: string[] | undefined;
348
346
  driver_ids?: string[] | undefined;
349
347
  attendant_ids?: string[] | undefined;
350
348
  run_date_from?: string | undefined;
351
349
  run_date_to?: string | undefined;
350
+ special_schedule_ids?: string[] | undefined;
351
+ special_schedule_day_run_ids?: string[] | undefined;
352
352
  }>;
353
353
  type SpecialScheduleDayRunQueryDTO = z.infer<typeof SpecialScheduleDayRunQuerySchema>;
354
354
  declare const SpecialScheduleDayRunStopSchema: z.ZodObject<{
@@ -367,7 +367,6 @@ declare const SpecialScheduleDayRunStopSchema: z.ZodObject<{
367
367
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
368
368
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
369
369
  }, "strip", z.ZodTypeAny, {
370
- special_schedule_day_run_id: string;
371
370
  planned_student_count: number;
372
371
  marked_student_count: number;
373
372
  status: Status;
@@ -381,12 +380,13 @@ declare const SpecialScheduleDayRunStopSchema: z.ZodObject<{
381
380
  stop_status: DayRunStopStatus;
382
381
  bus_stop_id: string;
383
382
  time_zone_id: string;
384
- }, {
385
383
  special_schedule_day_run_id: string;
384
+ }, {
386
385
  status: Status;
387
386
  stop_status: DayRunStopStatus;
388
387
  bus_stop_id: string;
389
388
  time_zone_id: string;
389
+ special_schedule_day_run_id: string;
390
390
  planned_student_count?: unknown;
391
391
  marked_student_count?: unknown;
392
392
  order_no?: unknown;
@@ -460,13 +460,13 @@ declare const SpecialScheduleDayRunStopQuerySchema: z.ZodObject<{
460
460
  }[];
461
461
  include_master_data: YesNo;
462
462
  date_format_id: string;
463
- special_schedule_day_run_ids: string[];
464
463
  organisation_ids: string[];
465
464
  organisation_branch_ids: string[];
466
465
  route_ids: string[];
466
+ bus_stop_ids: string[];
467
467
  special_schedule_ids: string[];
468
+ special_schedule_day_run_ids: string[];
468
469
  special_schedule_day_run_stop_ids: string[];
469
- bus_stop_ids: string[];
470
470
  }, {
471
471
  time_zone_id: string;
472
472
  date_format_id: string;
@@ -490,13 +490,13 @@ declare const SpecialScheduleDayRunStopQuerySchema: z.ZodObject<{
490
490
  direction: OrderBy;
491
491
  }[] | undefined;
492
492
  include_master_data?: YesNo | undefined;
493
- special_schedule_day_run_ids?: string[] | undefined;
494
493
  organisation_ids?: string[] | undefined;
495
494
  organisation_branch_ids?: string[] | undefined;
496
495
  route_ids?: string[] | undefined;
496
+ bus_stop_ids?: string[] | undefined;
497
497
  special_schedule_ids?: string[] | undefined;
498
+ special_schedule_day_run_ids?: string[] | undefined;
498
499
  special_schedule_day_run_stop_ids?: string[] | undefined;
499
- bus_stop_ids?: string[] | undefined;
500
500
  }>;
501
501
  type SpecialScheduleDayRunStopQueryDTO = z.infer<typeof SpecialScheduleDayRunStopQuerySchema>;
502
502
  declare const SpecialScheduleDayRunStudentSchema: z.ZodObject<{
@@ -514,7 +514,6 @@ declare const SpecialScheduleDayRunStudentSchema: z.ZodObject<{
514
514
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
515
515
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
516
516
  }, "strip", z.ZodTypeAny, {
517
- special_schedule_day_run_id: string;
518
517
  status: Status;
519
518
  student_boarding_status: StudentLegStatus;
520
519
  method: AttendanceMethod;
@@ -523,19 +522,20 @@ declare const SpecialScheduleDayRunStudentSchema: z.ZodObject<{
523
522
  student_attendance_image_url: string;
524
523
  student_attendance_image_key: string;
525
524
  student_attendance_image_name: string;
526
- planned_special_schedule_day_run_stop_id: string;
527
- actual_special_schedule_day_run_stop_id: string;
528
525
  student_id: string;
529
526
  time_zone_id: string;
530
- }, {
531
527
  special_schedule_day_run_id: string;
528
+ planned_special_schedule_day_run_stop_id: string;
529
+ actual_special_schedule_day_run_stop_id: string;
530
+ }, {
532
531
  status: Status;
533
532
  student_boarding_status: StudentLegStatus;
534
533
  method: AttendanceMethod;
535
- planned_special_schedule_day_run_stop_id: string;
536
- actual_special_schedule_day_run_stop_id: string;
537
534
  student_id: string;
538
535
  time_zone_id: string;
536
+ special_schedule_day_run_id: string;
537
+ planned_special_schedule_day_run_stop_id: string;
538
+ actual_special_schedule_day_run_stop_id: string;
539
539
  mark_time?: string | undefined;
540
540
  note?: string | undefined;
541
541
  student_attendance_image_url?: string | undefined;
@@ -609,15 +609,15 @@ declare const SpecialScheduleDayRunStudentQuerySchema: z.ZodObject<{
609
609
  }[];
610
610
  include_master_data: YesNo;
611
611
  date_format_id: string;
612
- special_schedule_day_run_ids: string[];
613
612
  organisation_ids: string[];
614
613
  organisation_branch_ids: string[];
615
614
  route_ids: string[];
615
+ student_ids: string[];
616
616
  special_schedule_ids: string[];
617
+ special_schedule_day_run_ids: string[];
617
618
  special_schedule_day_run_student_ids: string[];
618
619
  planned_special_schedule_day_run_stop_ids: string[];
619
620
  actual_special_schedule_day_run_stop_ids: string[];
620
- student_ids: string[];
621
621
  }, {
622
622
  time_zone_id: string;
623
623
  date_format_id: string;
@@ -642,15 +642,15 @@ declare const SpecialScheduleDayRunStudentQuerySchema: z.ZodObject<{
642
642
  direction: OrderBy;
643
643
  }[] | undefined;
644
644
  include_master_data?: YesNo | undefined;
645
- special_schedule_day_run_ids?: string[] | undefined;
646
645
  organisation_ids?: string[] | undefined;
647
646
  organisation_branch_ids?: string[] | undefined;
648
647
  route_ids?: string[] | undefined;
648
+ student_ids?: string[] | undefined;
649
649
  special_schedule_ids?: string[] | undefined;
650
+ special_schedule_day_run_ids?: string[] | undefined;
650
651
  special_schedule_day_run_student_ids?: string[] | undefined;
651
652
  planned_special_schedule_day_run_stop_ids?: string[] | undefined;
652
653
  actual_special_schedule_day_run_stop_ids?: string[] | undefined;
653
- student_ids?: string[] | undefined;
654
654
  }>;
655
655
  type SpecialScheduleDayRunStudentQueryDTO = z.infer<typeof SpecialScheduleDayRunStudentQuerySchema>;
656
656
  declare const GenerateSpecialScheduleDayRunSchema: z.ZodObject<{
@@ -659,23 +659,23 @@ declare const GenerateSpecialScheduleDayRunSchema: z.ZodObject<{
659
659
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
660
660
  }, "strip", z.ZodTypeAny, {
661
661
  run_date: string;
662
- special_schedule_id: string;
663
662
  time_zone_id: string;
663
+ special_schedule_id: string;
664
664
  }, {
665
665
  run_date: string;
666
- special_schedule_id: string;
667
666
  time_zone_id: string;
667
+ special_schedule_id: string;
668
668
  }>;
669
669
  type GenerateSpecialScheduleDayRunDTO = z.infer<typeof GenerateSpecialScheduleDayRunSchema>;
670
670
  declare const SpecialScheduleDayRunIdSchema: z.ZodObject<{
671
671
  special_schedule_day_run_id: z.ZodEffects<z.ZodString, string, string>;
672
672
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
673
673
  }, "strip", z.ZodTypeAny, {
674
- special_schedule_day_run_id: string;
675
674
  time_zone_id: string;
676
- }, {
677
675
  special_schedule_day_run_id: string;
676
+ }, {
678
677
  time_zone_id: string;
678
+ special_schedule_day_run_id: string;
679
679
  }>;
680
680
  type SpecialScheduleDayRunIdDTO = z.infer<typeof SpecialScheduleDayRunIdSchema>;
681
681
  declare const CancelSpecialScheduleDayRunSchema: z.ZodObject<{
@@ -683,12 +683,12 @@ declare const CancelSpecialScheduleDayRunSchema: z.ZodObject<{
683
683
  cancel_reason: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
684
684
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
685
685
  }, "strip", z.ZodTypeAny, {
686
- special_schedule_day_run_id: string;
687
686
  cancel_reason: string;
688
687
  time_zone_id: string;
689
- }, {
690
688
  special_schedule_day_run_id: string;
689
+ }, {
691
690
  time_zone_id: string;
691
+ special_schedule_day_run_id: string;
692
692
  cancel_reason?: string | undefined;
693
693
  }>;
694
694
  type CancelSpecialScheduleDayRunDTO = z.infer<typeof CancelSpecialScheduleDayRunSchema>;
@@ -697,12 +697,12 @@ declare const SpecialScheduleDayRunStopIdSchema: z.ZodObject<{
697
697
  actual_time: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
698
698
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
699
699
  }, "strip", z.ZodTypeAny, {
700
- special_schedule_day_run_stop_id: string;
701
700
  time_zone_id: string;
702
701
  actual_time: string;
703
- }, {
704
702
  special_schedule_day_run_stop_id: string;
703
+ }, {
705
704
  time_zone_id: string;
705
+ special_schedule_day_run_stop_id: string;
706
706
  actual_time?: string | undefined;
707
707
  }>;
708
708
  type SpecialScheduleDayRunStopIdDTO = z.infer<typeof SpecialScheduleDayRunStopIdSchema>;
@@ -718,7 +718,6 @@ declare const MarkSpecialScheduleDayRunStudentSchema: z.ZodObject<{
718
718
  student_attendance_image_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
719
719
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
720
720
  }, "strip", z.ZodTypeAny, {
721
- special_schedule_day_run_student_id: string;
722
721
  student_boarding_status: StudentLegStatus;
723
722
  method: AttendanceMethod;
724
723
  mark_time: string;
@@ -726,14 +725,15 @@ declare const MarkSpecialScheduleDayRunStudentSchema: z.ZodObject<{
726
725
  student_attendance_image_url: string;
727
726
  student_attendance_image_key: string;
728
727
  student_attendance_image_name: string;
729
- actual_special_schedule_day_run_stop_id: string;
730
728
  time_zone_id: string;
731
- }, {
732
729
  special_schedule_day_run_student_id: string;
730
+ actual_special_schedule_day_run_stop_id: string;
731
+ }, {
733
732
  student_boarding_status: StudentLegStatus;
734
733
  method: AttendanceMethod;
735
- actual_special_schedule_day_run_stop_id: string;
736
734
  time_zone_id: string;
735
+ special_schedule_day_run_student_id: string;
736
+ actual_special_schedule_day_run_stop_id: string;
737
737
  mark_time?: string | undefined;
738
738
  note?: string | undefined;
739
739
  student_attendance_image_url?: string | undefined;
@@ -36,14 +36,13 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
36
36
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
37
37
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
38
38
  }, "strip", z.ZodTypeAny, {
39
- night_driving: NightDriving;
40
39
  search: string;
41
40
  paging: PAGING;
42
41
  page_count: number;
43
42
  page_index: number;
43
+ login_from: LoginFrom;
44
44
  date_format_id: string;
45
45
  time_zone_id: string;
46
- login_from: LoginFrom;
47
46
  organisation_id: string;
48
47
  db_instance: string;
49
48
  db_group: string;
@@ -51,6 +50,7 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
51
50
  from_date: string;
52
51
  to_date: string;
53
52
  time_slot: TimeSlot;
53
+ night_driving: NightDriving;
54
54
  over_speed: OverSpeed;
55
55
  utilization_km: number;
56
56
  raw_data: YesNo;
@@ -58,21 +58,21 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
58
58
  vehicle_summary: YesNo;
59
59
  driver_summary: YesNo;
60
60
  }, {
61
+ login_from: LoginFrom;
61
62
  date_format_id: string;
62
63
  time_zone_id: string;
63
- login_from: LoginFrom;
64
64
  organisation_id: string;
65
65
  db_instance: string;
66
66
  db_group: string;
67
67
  from_date: string;
68
68
  to_date: string;
69
- night_driving?: NightDriving | undefined;
70
69
  search?: string | undefined;
71
70
  paging?: PAGING | undefined;
72
71
  page_count?: unknown;
73
72
  page_index?: unknown;
74
73
  vehicle_ids?: string[] | undefined;
75
74
  time_slot?: TimeSlot | undefined;
75
+ night_driving?: NightDriving | undefined;
76
76
  over_speed?: OverSpeed | undefined;
77
77
  utilization_km?: unknown;
78
78
  raw_data?: YesNo | undefined;
@@ -105,20 +105,20 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
105
105
  vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
106
106
  driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
107
107
  }, "strip", z.ZodTypeAny, {
108
- night_driving: NightDriving;
109
108
  search: string;
110
109
  paging: PAGING;
111
110
  page_count: number;
112
111
  page_index: number;
112
+ login_from: LoginFrom;
113
113
  date_format_id: string;
114
114
  time_zone_id: string;
115
- login_from: LoginFrom;
116
115
  organisation_id: string;
117
116
  db_instance: string;
118
117
  db_group: string;
119
118
  from_date: string;
120
119
  to_date: string;
121
120
  time_slot: TimeSlot;
121
+ night_driving: NightDriving;
122
122
  over_speed: OverSpeed;
123
123
  utilization_km: number;
124
124
  raw_data: YesNo;
@@ -127,20 +127,20 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
127
127
  driver_summary: YesNo;
128
128
  driver_ids: string[];
129
129
  }, {
130
+ login_from: LoginFrom;
130
131
  date_format_id: string;
131
132
  time_zone_id: string;
132
- login_from: LoginFrom;
133
133
  organisation_id: string;
134
134
  db_instance: string;
135
135
  db_group: string;
136
136
  from_date: string;
137
137
  to_date: string;
138
- night_driving?: NightDriving | undefined;
139
138
  search?: string | undefined;
140
139
  paging?: PAGING | undefined;
141
140
  page_count?: unknown;
142
141
  page_index?: unknown;
143
142
  time_slot?: TimeSlot | undefined;
143
+ night_driving?: NightDriving | undefined;
144
144
  over_speed?: OverSpeed | undefined;
145
145
  utilization_km?: unknown;
146
146
  raw_data?: YesNo | undefined;
@@ -173,9 +173,9 @@ declare const SimpleReportSchema: z.ZodObject<{
173
173
  paging: PAGING;
174
174
  page_count: number;
175
175
  page_index: number;
176
+ login_from: LoginFrom;
176
177
  date_format_id: string;
177
178
  time_zone_id: string;
178
- login_from: LoginFrom;
179
179
  organisation_id: string;
180
180
  db_instance: string;
181
181
  db_group: string;
@@ -186,9 +186,9 @@ declare const SimpleReportSchema: z.ZodObject<{
186
186
  interval_seconds: number;
187
187
  boolean_type: BooleanType;
188
188
  }, {
189
+ login_from: LoginFrom;
189
190
  date_format_id: string;
190
191
  time_zone_id: string;
191
- login_from: LoginFrom;
192
192
  organisation_id: string;
193
193
  db_instance: string;
194
194
  db_group: string;
@@ -224,9 +224,9 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
224
224
  paging: PAGING;
225
225
  page_count: number;
226
226
  page_index: number;
227
+ login_from: LoginFrom;
227
228
  date_format_id: string;
228
229
  time_zone_id: string;
229
- login_from: LoginFrom;
230
230
  organisation_id: string;
231
231
  db_instance: string;
232
232
  db_group: string;
@@ -234,9 +234,9 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
234
234
  utilization_km: number;
235
235
  is12am: Is12AM;
236
236
  }, {
237
+ login_from: LoginFrom;
237
238
  date_format_id: string;
238
239
  time_zone_id: string;
239
- login_from: LoginFrom;
240
240
  organisation_id: string;
241
241
  db_instance: string;
242
242
  db_group: string;
@@ -270,9 +270,9 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
270
270
  paging: PAGING;
271
271
  page_count: number;
272
272
  page_index: number;
273
+ login_from: LoginFrom;
273
274
  date_format_id: string;
274
275
  time_zone_id: string;
275
- login_from: LoginFrom;
276
276
  organisation_id: string;
277
277
  db_instance: string;
278
278
  db_group: string;
@@ -281,9 +281,9 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
281
281
  from_date_time: string;
282
282
  to_date_time: string;
283
283
  }, {
284
+ login_from: LoginFrom;
284
285
  date_format_id: string;
285
286
  time_zone_id: string;
286
- login_from: LoginFrom;
287
287
  organisation_id: string;
288
288
  db_instance: string;
289
289
  db_group: string;
@@ -315,17 +315,17 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
315
315
  paging: PAGING;
316
316
  page_count: number;
317
317
  page_index: number;
318
+ login_from: LoginFrom;
318
319
  date_format_id: string;
319
320
  time_zone_id: string;
320
- login_from: LoginFrom;
321
321
  organisation_id: string;
322
322
  db_instance: string;
323
323
  db_group: string;
324
324
  vehicle_id: string;
325
325
  }, {
326
+ login_from: LoginFrom;
326
327
  date_format_id: string;
327
328
  time_zone_id: string;
328
- login_from: LoginFrom;
329
329
  organisation_id: string;
330
330
  db_instance: string;
331
331
  db_group: string;
@@ -362,9 +362,9 @@ declare const AlertReportSchema: z.ZodObject<{
362
362
  paging: PAGING;
363
363
  page_count: number;
364
364
  page_index: number;
365
+ login_from: LoginFrom;
365
366
  date_format_id: string;
366
367
  time_zone_id: string;
367
- login_from: LoginFrom;
368
368
  organisation_id: string;
369
369
  db_instance: string;
370
370
  db_group: string;
@@ -378,9 +378,9 @@ declare const AlertReportSchema: z.ZodObject<{
378
378
  alert_types: AlertType[];
379
379
  alert_sub_types: AlertSubType[];
380
380
  }, {
381
+ login_from: LoginFrom;
381
382
  date_format_id: string;
382
383
  time_zone_id: string;
383
- login_from: LoginFrom;
384
384
  organisation_id: string;
385
385
  db_instance: string;
386
386
  db_group: string;
@@ -34,7 +34,7 @@ interface DataCheckResult extends Record<string, unknown> {
34
34
  data_protocol_array: DataCheckProtocolRow[];
35
35
  data_api_array: DataCheckApiRow[];
36
36
  }
37
- declare const DataCheckQuerySchema: z.ZodObject<{
37
+ declare const MasterDataCheckQuerySchema: z.ZodObject<{
38
38
  status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
39
39
  paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
40
40
  page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
@@ -64,6 +64,7 @@ declare const DataCheckQuerySchema: z.ZodObject<{
64
64
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
65
65
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
66
66
  } & {
67
+ master_traccar_server_id: z.ZodEffects<z.ZodString, string, string>;
67
68
  search: z.ZodEffects<z.ZodString, string, string>;
68
69
  }, "strip", z.ZodTypeAny, {
69
70
  search: string;
@@ -87,10 +88,12 @@ declare const DataCheckQuerySchema: z.ZodObject<{
87
88
  include_master_data: YesNo;
88
89
  date_format_id: string;
89
90
  time_zone_id: string;
91
+ master_traccar_server_id: string;
90
92
  }, {
91
93
  search: string;
92
94
  date_format_id: string;
93
95
  time_zone_id: string;
96
+ master_traccar_server_id: string;
94
97
  status?: Status[] | undefined;
95
98
  paging?: PAGING | undefined;
96
99
  page_count?: unknown;
@@ -110,8 +113,7 @@ declare const DataCheckQuerySchema: z.ZodObject<{
110
113
  }[] | undefined;
111
114
  include_master_data?: YesNo | undefined;
112
115
  }>;
113
- type DataCheckQueryDTO = z.infer<typeof DataCheckQuerySchema>;
114
- declare const newDataCheckQueryPayload: () => DataCheckQueryDTO;
115
- declare const checkDataCheck: (data: DataCheckQueryDTO) => Promise<BR<DataCheckResult>>;
116
+ type MasterDataCheckQueryDTO = z.infer<typeof MasterDataCheckQuerySchema>;
117
+ declare const checkDataCheck: (data: MasterDataCheckQueryDTO) => Promise<BR<DataCheckResult>>;
116
118
 
117
- export { type DataCheckApiRow, type DataCheckProtocolRow, type DataCheckQueryDTO, DataCheckQuerySchema, type DataCheckResult, type DataCheckTraccarRow, checkDataCheck, newDataCheckQueryPayload };
119
+ export { type DataCheckApiRow, type DataCheckProtocolRow, type DataCheckResult, type DataCheckTraccarRow, type MasterDataCheckQueryDTO, MasterDataCheckQuerySchema, checkDataCheck };
@@ -91,6 +91,10 @@ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumTyp
91
91
  return schema.optional().default(() => defaultValue);
92
92
  };
93
93
  var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
94
+ var single_select_mandatory = (fieldName) => {
95
+ const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
96
+ return schema;
97
+ };
94
98
  var single_select_optional = (fieldName) => {
95
99
  r_log(fieldName);
96
100
  const schema = z.string().trim().transform(handleNullOrUndefined);
@@ -217,22 +221,21 @@ var MongoBaseQuerySchema = z2.object({
217
221
  });
218
222
 
219
223
  // src/services/main/device/master_data_check_service.ts
220
- var URL = "data_check";
224
+ var URL = "main/data_check";
221
225
  var ENDPOINTS = {
222
226
  check: `${URL}/search`
223
227
  };
224
- var DataCheckQuerySchema = BaseQuerySchema.extend({
228
+ var MasterDataCheckQuerySchema = BaseQuerySchema.extend({
229
+ // Relations - Parent
230
+ master_traccar_server_id: single_select_mandatory("MasterTraccarServer"),
231
+ // Single-Selection -> MasterTraccarServer
232
+ // Search value - vehicle number or IMEI
225
233
  search: stringMandatory("Search", 1, 100)
226
234
  });
227
- var newDataCheckQueryPayload = () => ({
228
- ...BaseQuerySchema.parse({}),
229
- search: ""
230
- });
231
235
  var checkDataCheck = async (data) => {
232
236
  return apiPost(ENDPOINTS.check, data);
233
237
  };
234
238
  export {
235
- DataCheckQuerySchema,
236
- checkDataCheck,
237
- newDataCheckQueryPayload
239
+ MasterDataCheckQuerySchema,
240
+ checkDataCheck
238
241
  };
@@ -32,13 +32,13 @@ declare const MasterDeviceSchema: z.ZodObject<{
32
32
  description: z.ZodEffects<z.ZodString, string, string>;
33
33
  imei: z.ZodEffects<z.ZodString, string, string>;
34
34
  }, "strip", z.ZodTypeAny, {
35
+ master_traccar_server_id: string;
35
36
  description: string;
36
37
  imei: string;
37
- master_traccar_server_id: string;
38
38
  }, {
39
+ master_traccar_server_id: string;
39
40
  description: string;
40
41
  imei: string;
41
- master_traccar_server_id: string;
42
42
  }>;
43
43
  type MasterDeviceDTO = z.infer<typeof MasterDeviceSchema>;
44
44
  declare const MasterDeviceQuerySchema: z.ZodObject<{
@@ -228,7 +228,7 @@ var MongoBaseQuerySchema = z2.object({
228
228
  });
229
229
 
230
230
  // src/services/main/device/master_device_service.ts
231
- var URL = "master_device";
231
+ var URL = "main/master_device";
232
232
  var ENDPOINTS = {
233
233
  // MasterDevice APIs
234
234
  create: URL,
@@ -1,4 +1,4 @@
1
- import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
1
+ import { YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
2
2
  import { SBR, FBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
4
 
@@ -10,7 +10,7 @@ interface MasterTraccarServer extends Record<string, unknown> {
10
10
  db_name?: string;
11
11
  db_user?: string;
12
12
  db_password?: string;
13
- db_ssl_enabled?: boolean;
13
+ db_ssl_enabled?: YesNo;
14
14
  db_connection_string?: string;
15
15
  datacheck_api?: string;
16
16
  api_base_url?: string;
@@ -27,7 +27,7 @@ declare const MasterTraccarServerSchema: z.ZodObject<{
27
27
  db_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
28
28
  db_user: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
29
29
  db_password: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
30
- db_ssl_enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
30
+ db_ssl_enabled: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
31
31
  db_connection_string: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
32
32
  datacheck_api: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
33
33
  api_base_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -42,7 +42,7 @@ declare const MasterTraccarServerSchema: z.ZodObject<{
42
42
  db_name: string;
43
43
  db_user: string;
44
44
  db_password: string;
45
- db_ssl_enabled: boolean;
45
+ db_ssl_enabled: YesNo;
46
46
  db_connection_string: string;
47
47
  datacheck_api: string;
48
48
  api_base_url: string;
@@ -56,7 +56,7 @@ declare const MasterTraccarServerSchema: z.ZodObject<{
56
56
  db_name?: string | undefined;
57
57
  db_user?: string | undefined;
58
58
  db_password?: string | undefined;
59
- db_ssl_enabled?: boolean | undefined;
59
+ db_ssl_enabled?: YesNo | undefined;
60
60
  db_connection_string?: string | undefined;
61
61
  datacheck_api?: string | undefined;
62
62
  api_base_url?: string | undefined;
@@ -65,9 +65,6 @@ var numberOptional = (fieldName, min = 0, max = 1e14, defaultValue = 0) => {
65
65
  z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
66
66
  );
67
67
  };
68
- var booleanOptional = (fieldName, defaultValue = false) => {
69
- return z.boolean({ invalid_type_error: `${fieldName} must be true or false.` }).optional().default(defaultValue);
70
- };
71
68
  var enumMandatory = (fieldName, enumType, defaultValue) => {
72
69
  return z.union([
73
70
  z.nativeEnum(enumType, {
@@ -246,7 +243,7 @@ var MongoBaseQuerySchema = z2.object({
246
243
  });
247
244
 
248
245
  // src/services/main/device/master_traccar_server_service.ts
249
- var URL = "traccar_server";
246
+ var URL = "main/traccar_server";
250
247
  var ENDPOINTS = {
251
248
  // MasterTraccarServer APIs
252
249
  find: `${URL}/search`,
@@ -265,7 +262,7 @@ var MasterTraccarServerSchema = z3.object({
265
262
  db_name: stringOptional("DB Name", 0, 100),
266
263
  db_user: stringOptional("DB User", 0, 100),
267
264
  db_password: stringOptional("DB Password", 0, 100),
268
- db_ssl_enabled: booleanOptional("DB SSL Enabled", false),
265
+ db_ssl_enabled: enumOptional("DB SSL Enabled", YesNo, "No" /* No */),
269
266
  db_connection_string: stringOptional("DB Connection String", 0, 500),
270
267
  datacheck_api: stringOptional("Data Check API", 0, 500),
271
268
  // Traccar REST API
@@ -287,7 +284,7 @@ var toMasterTraccarServerPayload = (row) => ({
287
284
  db_name: row.db_name || "",
288
285
  db_user: row.db_user || "",
289
286
  db_password: row.db_password || "",
290
- db_ssl_enabled: row.db_ssl_enabled || false,
287
+ db_ssl_enabled: row.db_ssl_enabled || "No" /* No */,
291
288
  db_connection_string: row.db_connection_string || "",
292
289
  datacheck_api: row.datacheck_api || "",
293
290
  api_base_url: row.api_base_url || "",
@@ -302,7 +299,7 @@ var newMasterTraccarServerPayload = () => ({
302
299
  db_name: "",
303
300
  db_user: "",
304
301
  db_password: "",
305
- db_ssl_enabled: false,
302
+ db_ssl_enabled: "No" /* No */,
306
303
  db_connection_string: "",
307
304
  datacheck_api: "",
308
305
  api_base_url: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-api-document",
3
- "version": "27.0.0",
3
+ "version": "29.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",