vms-nest-prisma-api-document 229.0.0 → 240.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 (115) hide show
  1. package/dist/core/Enums.d.ts +18 -1
  2. package/dist/core/Enums.js +23 -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/account/bookmark_service.d.ts +1 -1
  6. package/dist/services/account/notification_preferences.service.d.ts +1 -1
  7. package/dist/services/account/report_preferences.service.d.ts +1 -1
  8. package/dist/services/account/ticket_service.d.ts +1 -1
  9. package/dist/services/fleet/bus_mangement/bus_stop.d.ts +13 -248
  10. package/dist/services/fleet/bus_mangement/bus_stop.js +9 -7
  11. package/dist/services/fleet/bus_mangement/calender.d.ts +6 -2
  12. package/dist/services/fleet/bus_mangement/calender.js +18 -12
  13. package/dist/services/fleet/bus_mangement/master_route.d.ts +251 -4
  14. package/dist/services/fleet/bus_mangement/master_route.js +58 -52
  15. package/dist/services/fleet/bus_mangement/notice_board.d.ts +6 -2
  16. package/dist/services/fleet/bus_mangement/notice_board.js +17 -11
  17. package/dist/services/fleet/bus_mangement/student.d.ts +40 -27
  18. package/dist/services/fleet/bus_mangement/student.js +130 -105
  19. package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +20 -20
  20. package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +58 -58
  21. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
  22. package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
  23. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +16 -0
  24. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +308 -0
  25. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +16 -0
  26. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +501 -0
  27. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +697 -0
  28. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +340 -0
  29. package/dist/services/fleet/issue_management/issue_management_service.d.ts +48 -48
  30. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +185 -52
  31. package/dist/services/fleet/service_management/fleet_service_management_service.js +86 -11
  32. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +166 -0
  33. package/dist/services/fleet/service_management/fleet_service_schedule_service.js +338 -0
  34. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
  35. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
  36. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
  37. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
  38. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
  39. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
  40. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
  41. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
  42. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
  43. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  44. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  45. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  46. package/dist/services/main/users/auth_service.d.ts +1 -1
  47. package/dist/services/main/users/user_admin_service.d.ts +1 -1
  48. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  49. package/dist/services/main/users/user_service.d.ts +1 -1
  50. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  51. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  52. package/dist/services/main/vehicle/master_vehicle_service.js +13 -1
  53. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  54. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  55. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  56. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  57. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  58. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  59. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  60. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  61. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  62. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  63. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  64. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  65. package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
  66. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
  67. package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
  68. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  69. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  70. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  71. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  72. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  73. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +4 -4
  74. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  75. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  76. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  77. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  78. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  79. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  80. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  81. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  82. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  83. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  84. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  85. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  86. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  87. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  88. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  89. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  90. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  91. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  92. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  93. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +9 -9
  94. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  95. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  96. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  97. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  98. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  99. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  100. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  101. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  102. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  103. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
  104. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  105. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  106. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  107. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  108. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  109. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  110. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  111. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  112. package/dist/services/website/contact_us_detail_service.d.ts +1 -1
  113. package/dist/services/website/faq_service.d.ts +1 -1
  114. package/dist/{user_organisation_service-KwfWBPXf.d.ts → user_organisation_service-BZaeiu6L.d.ts} +4 -1
  115. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { EnrollmentStatus, TransportPlanType, Status, YesNo, StudentLeaveType, ApprovalStatus, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
2
2
  import { FBR, SBR } from '../../../core/BaseResponse.js';
3
3
  import { z } from 'zod';
4
- import { U as UserOrganisation, O as OrganisationBranch } from '../../../user_organisation_service-KwfWBPXf.js';
4
+ import { U as UserOrganisation, O as OrganisationBranch } from '../../../user_organisation_service-BZaeiu6L.js';
5
5
  import { MasterClass } from '../../master/bus/master_class_service.js';
6
6
  import { MasterProgram } from '../../master/bus/master_program_service.js';
7
7
  import { MasterSection } from '../../master/bus/master_section_service.js';
@@ -24,6 +24,7 @@ interface Student extends Record<string, unknown> {
24
24
  mobile_number?: string;
25
25
  email?: string;
26
26
  dob: string;
27
+ dob_f: string;
27
28
  gender?: string;
28
29
  blood_group?: string;
29
30
  special_notes?: string;
@@ -40,7 +41,7 @@ interface Student extends Record<string, unknown> {
40
41
  modified_date_time?: string;
41
42
  organisation_id: string;
42
43
  UserOrganisation?: UserOrganisation;
43
- organisation_branch_id: string;
44
+ organisation_branch_id?: string;
44
45
  OrganisationBranch?: OrganisationBranch;
45
46
  program_id?: string;
46
47
  MasterProgram?: MasterProgram;
@@ -58,7 +59,7 @@ interface Student extends Record<string, unknown> {
58
59
  }
59
60
  interface StudentAddress extends Record<string, unknown> {
60
61
  student_address_id: string;
61
- address_line1: string;
62
+ address_line1?: string;
62
63
  address_line2?: string;
63
64
  locality_landmark?: string;
64
65
  neighborhood?: string;
@@ -68,9 +69,9 @@ interface StudentAddress extends Record<string, unknown> {
68
69
  postal_code?: string;
69
70
  country?: string;
70
71
  country_code?: string;
71
- google_location?: string;
72
72
  latitude?: number;
73
73
  longitude?: number;
74
+ google_location?: string;
74
75
  bus_stop_id?: string;
75
76
  stop_name?: string;
76
77
  is_default: YesNo;
@@ -109,7 +110,6 @@ interface StudentStopChangeRequest extends Record<string, unknown> {
109
110
  approval_status: ApprovalStatus;
110
111
  approval_notes?: string;
111
112
  approval_date?: string;
112
- status: Status;
113
113
  organisation_id: string;
114
114
  UserOrganisation?: UserOrganisation;
115
115
  organisation_branch_id: string;
@@ -118,6 +118,7 @@ interface StudentStopChangeRequest extends Record<string, unknown> {
118
118
  Student?: Student;
119
119
  student_address_id: string;
120
120
  StudentAddress?: StudentAddress;
121
+ status: Status;
121
122
  }
122
123
  interface StudentGuardianLink extends Record<string, unknown> {
123
124
  student_guardian_link_id: string;
@@ -165,10 +166,13 @@ declare const StudentSchema: z.ZodObject<{
165
166
  special_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
166
167
  enrollment_status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof EnrollmentStatus>>>;
167
168
  transport_plan_type: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof TransportPlanType>>>;
168
- change_reason: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
169
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
170
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
169
171
  }, "strip", z.ZodTypeAny, {
172
+ status: Status;
170
173
  organisation_id: string;
171
174
  organisation_branch_id: string;
175
+ time_zone_id: string;
172
176
  first_name: string;
173
177
  last_name: string;
174
178
  email: string;
@@ -190,10 +194,11 @@ declare const StudentSchema: z.ZodObject<{
190
194
  special_notes: string;
191
195
  enrollment_status: EnrollmentStatus;
192
196
  transport_plan_type: TransportPlanType;
193
- change_reason: string;
194
197
  }, {
198
+ status: Status;
195
199
  organisation_id: string;
196
200
  organisation_branch_id: string;
201
+ time_zone_id: string;
197
202
  first_name: string;
198
203
  class_id: string;
199
204
  program_id: string;
@@ -215,21 +220,20 @@ declare const StudentSchema: z.ZodObject<{
215
220
  special_notes?: string | undefined;
216
221
  enrollment_status?: EnrollmentStatus | undefined;
217
222
  transport_plan_type?: TransportPlanType | undefined;
218
- change_reason?: string | undefined;
219
223
  }>;
220
224
  type StudentDTO = z.infer<typeof StudentSchema>;
221
225
  declare const StudentProfilePictureSchema: z.ZodObject<{
222
- photo_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
223
- photo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
224
- photo_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
226
+ photo_url: z.ZodEffects<z.ZodString, string, string>;
227
+ photo_key: z.ZodEffects<z.ZodString, string, string>;
228
+ photo_name: z.ZodEffects<z.ZodString, string, string>;
225
229
  }, "strip", z.ZodTypeAny, {
226
230
  photo_url: string;
227
231
  photo_key: string;
228
232
  photo_name: string;
229
233
  }, {
230
- photo_url?: string | undefined;
231
- photo_key?: string | undefined;
232
- photo_name?: string | undefined;
234
+ photo_url: string;
235
+ photo_key: string;
236
+ photo_name: string;
233
237
  }>;
234
238
  type StudentProfilePictureDTO = z.infer<typeof StudentProfilePictureSchema>;
235
239
  declare const StudentQuerySchema: z.ZodObject<{
@@ -263,6 +267,7 @@ declare const StudentQuerySchema: z.ZodObject<{
263
267
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
264
268
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
265
269
  } & {
270
+ student_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
266
271
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
267
272
  organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
268
273
  program_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -271,7 +276,6 @@ declare const StudentQuerySchema: z.ZodObject<{
271
276
  semester_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
272
277
  class_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
273
278
  section_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
274
- student_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
275
279
  pickup_route_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
276
280
  drop_route_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
277
281
  pickup_route_stop_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
@@ -447,7 +451,7 @@ declare const StudentAddressSchema: z.ZodObject<{
447
451
  organisation_id: z.ZodEffects<z.ZodString, string, string>;
448
452
  organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
449
453
  student_id: z.ZodEffects<z.ZodString, string, string>;
450
- address_line1: z.ZodEffects<z.ZodString, string, string>;
454
+ address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
451
455
  address_line2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
452
456
  locality_landmark: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
453
457
  neighborhood: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
@@ -457,9 +461,9 @@ declare const StudentAddressSchema: z.ZodObject<{
457
461
  postal_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
458
462
  country: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
459
463
  country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
460
- google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
461
464
  latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
462
465
  longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
466
+ google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
463
467
  is_default: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
464
468
  notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
465
469
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
@@ -484,12 +488,12 @@ declare const StudentAddressSchema: z.ZodObject<{
484
488
  latitude?: number | undefined;
485
489
  longitude?: number | undefined;
486
490
  }, {
487
- address_line1: string;
488
491
  status: Status;
489
492
  organisation_id: string;
490
493
  organisation_branch_id: string;
491
494
  is_default: YesNo;
492
495
  student_id: string;
496
+ address_line1?: string | undefined;
493
497
  address_line2?: string | undefined;
494
498
  locality_landmark?: string | undefined;
495
499
  neighborhood?: string | undefined;
@@ -544,11 +548,11 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
544
548
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
545
549
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
546
550
  } & {
551
+ student_address_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
547
552
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
548
553
  organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
549
554
  student_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
550
555
  bus_stop_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
551
- student_address_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
552
556
  is_default: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
553
557
  }, "strip", z.ZodTypeAny, {
554
558
  status: Status[];
@@ -572,9 +576,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
572
576
  include_master_data: YesNo;
573
577
  date_format_id: string;
574
578
  time_zone_id: string;
579
+ bus_stop_ids: string[];
575
580
  organisation_ids: string[];
576
581
  organisation_branch_ids: string[];
577
- bus_stop_ids: string[];
578
582
  is_default: YesNo[];
579
583
  student_ids: string[];
580
584
  student_address_ids: string[];
@@ -600,9 +604,9 @@ declare const StudentAddressQuerySchema: z.ZodObject<{
600
604
  direction: OrderBy;
601
605
  }[] | undefined;
602
606
  include_master_data?: YesNo | undefined;
607
+ bus_stop_ids?: string[] | undefined;
603
608
  organisation_ids?: string[] | undefined;
604
609
  organisation_branch_ids?: string[] | undefined;
605
- bus_stop_ids?: string[] | undefined;
606
610
  is_default?: YesNo[] | undefined;
607
611
  student_ids?: string[] | undefined;
608
612
  student_address_ids?: string[] | undefined;
@@ -656,17 +660,17 @@ declare const StudentGuardianLinkSchema: z.ZodObject<{
656
660
  }>;
657
661
  type StudentGuardianLinkDTO = z.infer<typeof StudentGuardianLinkSchema>;
658
662
  declare const GuardianProfilePictureSchema: z.ZodObject<{
659
- photo_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
660
- photo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
661
- photo_name: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
663
+ photo_url: z.ZodEffects<z.ZodString, string, string>;
664
+ photo_key: z.ZodEffects<z.ZodString, string, string>;
665
+ photo_name: z.ZodEffects<z.ZodString, string, string>;
662
666
  }, "strip", z.ZodTypeAny, {
663
667
  photo_url: string;
664
668
  photo_key: string;
665
669
  photo_name: string;
666
670
  }, {
667
- photo_url?: string | undefined;
668
- photo_key?: string | undefined;
669
- photo_name?: string | undefined;
671
+ photo_url: string;
672
+ photo_key: string;
673
+ photo_name: string;
670
674
  }>;
671
675
  type GuardianProfilePictureDTO = z.infer<typeof GuardianProfilePictureSchema>;
672
676
  declare const GuardianDetailsSchema: z.ZodObject<{
@@ -883,9 +887,11 @@ declare const StudentLeaveRequestSchema: z.ZodObject<{
883
887
  date_to: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
884
888
  leave_type: z.ZodType<StudentLeaveType, z.ZodTypeDef, StudentLeaveType>;
885
889
  reason: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
890
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
886
891
  }, "strip", z.ZodTypeAny, {
887
892
  organisation_id: string;
888
893
  organisation_branch_id: string;
894
+ time_zone_id: string;
889
895
  student_id: string;
890
896
  date_from: string;
891
897
  date_to: string;
@@ -894,6 +900,7 @@ declare const StudentLeaveRequestSchema: z.ZodObject<{
894
900
  }, {
895
901
  organisation_id: string;
896
902
  organisation_branch_id: string;
903
+ time_zone_id: string;
897
904
  student_id: string;
898
905
  date_from: string;
899
906
  date_to: string;
@@ -904,10 +911,13 @@ type StudentLeaveRequestDTO = z.infer<typeof StudentLeaveRequestSchema>;
904
911
  declare const StudentLeaveRequestApprovalSchema: z.ZodObject<{
905
912
  approval_status: z.ZodType<ApprovalStatus, z.ZodTypeDef, ApprovalStatus>;
906
913
  approval_notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
914
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
907
915
  }, "strip", z.ZodTypeAny, {
916
+ time_zone_id: string;
908
917
  approval_status: ApprovalStatus;
909
918
  approval_notes: string;
910
919
  }, {
920
+ time_zone_id: string;
911
921
  approval_status: ApprovalStatus;
912
922
  approval_notes?: string | undefined;
913
923
  }>;
@@ -1016,10 +1026,12 @@ declare const StudentStopChangeRequestSchema: z.ZodObject<{
1016
1026
  apply_until: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>;
1017
1027
  reason: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
1018
1028
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
1029
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
1019
1030
  }, "strip", z.ZodTypeAny, {
1020
1031
  status: Status;
1021
1032
  organisation_id: string;
1022
1033
  organisation_branch_id: string;
1034
+ time_zone_id: string;
1023
1035
  student_id: string;
1024
1036
  student_address_id: string;
1025
1037
  reason: string;
@@ -1032,6 +1044,7 @@ declare const StudentStopChangeRequestSchema: z.ZodObject<{
1032
1044
  status: Status;
1033
1045
  organisation_id: string;
1034
1046
  organisation_branch_id: string;
1047
+ time_zone_id: string;
1035
1048
  student_id: string;
1036
1049
  student_address_id: string;
1037
1050
  change_pickup: YesNo;
@@ -358,7 +358,7 @@ var ENDPOINTS = {
358
358
  var StudentSchema = z3.object({
359
359
  organisation_id: single_select_mandatory("UserOrganisation"),
360
360
  // ✅ Single-Selection -> UserOrganisation
361
- organisation_branch_id: single_select_mandatory("OrganisationBranch"),
361
+ organisation_branch_id: single_select_optional("OrganisationBranch"),
362
362
  // ✅ Single-Selection -> OrganisationBranch
363
363
  program_id: single_select_optional("MasterProgram"),
364
364
  // ✅ Single-Selection -> MasterProgram
@@ -389,6 +389,7 @@ var StudentSchema = z3.object({
389
389
  gender: stringOptional("Gender", 0, 10),
390
390
  blood_group: stringOptional("Blood Group", 0, 10),
391
391
  special_notes: stringOptional("Special Notes", 0, 500),
392
+ // Admin Will Update
392
393
  enrollment_status: enumOptional(
393
394
  "Enrollment Status",
394
395
  EnrollmentStatus,
@@ -399,14 +400,18 @@ var StudentSchema = z3.object({
399
400
  TransportPlanType,
400
401
  "Both" /* Both */
401
402
  ),
402
- change_reason: stringOptional("Change Reason", 0, 500)
403
+ // Other
404
+ status: enumMandatory("Status", Status, "Active" /* Active */),
405
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
403
406
  });
404
407
  var StudentProfilePictureSchema = z3.object({
405
- photo_url: stringOptional("Photo URL", 0, 300),
406
- photo_key: stringOptional("Photo Key", 0, 300),
407
- photo_name: stringOptional("Photo Name", 0, 300)
408
+ photo_url: stringMandatory("Photo URL", 0, 300),
409
+ photo_key: stringMandatory("Photo Key", 0, 300),
410
+ photo_name: stringMandatory("Photo Name", 0, 300)
408
411
  });
409
412
  var StudentQuerySchema = BaseQuerySchema.extend({
413
+ student_ids: multi_select_optional("Student"),
414
+ // ✅ Multi-selection -> Student
410
415
  organisation_ids: multi_select_optional("UserOrganisation"),
411
416
  // ✅ Multi-selection -> UserOrganisation
412
417
  organisation_branch_ids: multi_select_optional("OrganisationBranch"),
@@ -423,8 +428,6 @@ var StudentQuerySchema = BaseQuerySchema.extend({
423
428
  // ✅ Multi-selection -> MasterClass
424
429
  section_ids: multi_select_optional("MasterSection"),
425
430
  // ✅ Multi-selection -> MasterSection
426
- student_ids: multi_select_optional("Student"),
427
- // ✅ Multi-selection -> Student
428
431
  pickup_route_ids: multi_select_optional("MasterRoute"),
429
432
  // ✅ Multi-selection -> MasterRoute
430
433
  drop_route_ids: multi_select_optional("MasterRoute"),
@@ -462,7 +465,7 @@ var StudentAddressSchema = z3.object({
462
465
  student_id: single_select_mandatory("Student"),
463
466
  // ✅ Single-Selection -> Student
464
467
  // Address
465
- address_line1: stringMandatory("Address Line 1", 1, 150),
468
+ address_line1: stringOptional("Address Line 1", 0, 150),
466
469
  address_line2: stringOptional("Address Line 2", 0, 150),
467
470
  locality_landmark: stringOptional("Locality / Landmark", 0, 150),
468
471
  neighborhood: stringOptional("Neighborhood", 0, 100),
@@ -472,9 +475,10 @@ var StudentAddressSchema = z3.object({
472
475
  postal_code: stringOptional("Postal Code", 0, 20),
473
476
  country: stringOptional("Country", 0, 100),
474
477
  country_code: stringOptional("Country Code", 0, 5),
475
- google_location: stringOptional("Google Location", 0, 500),
478
+ // Location Details
476
479
  latitude: doubleOptionalLatLng("Latitude"),
477
480
  longitude: doubleOptionalLatLng("Longitude"),
481
+ google_location: stringOptional("Google Location", 0, 500),
478
482
  is_default: enumMandatory("Is Active", YesNo, "No" /* No */),
479
483
  notes: stringOptional("Notes", 0, 1e3),
480
484
  status: enumMandatory("Status", Status, "Active" /* Active */)
@@ -484,7 +488,8 @@ var StudentAddressBusStopAssignSchema = z3.object({
484
488
  // ✅ Single-Selection -> BusStop
485
489
  });
486
490
  var StudentAddressQuerySchema = BaseQuerySchema.extend({
487
- // Multi-select relations
491
+ student_address_ids: multi_select_optional("StudentAddress"),
492
+ // ✅ Multi-selection -> StudentAddress
488
493
  organisation_ids: multi_select_optional("UserOrganisation"),
489
494
  // ✅ Multi-selection -> UserOrganisation
490
495
  organisation_branch_ids: multi_select_optional("OrganisationBranch"),
@@ -493,8 +498,6 @@ var StudentAddressQuerySchema = BaseQuerySchema.extend({
493
498
  // ✅ Multi-selection -> Student
494
499
  bus_stop_ids: multi_select_optional("BusStop"),
495
500
  // ✅ Multi-selection -> BusStop
496
- student_address_ids: multi_select_optional("StudentAddress"),
497
- // ✅ Multi-selection -> StudentAddress
498
501
  is_default: enumArrayOptional("Is Active", YesNo, getAllEnums(YesNo))
499
502
  });
500
503
  var StudentGuardianLinkSchema = z3.object({
@@ -516,9 +519,9 @@ var StudentGuardianLinkSchema = z3.object({
516
519
  status: enumMandatory("Status", Status, "Active" /* Active */)
517
520
  });
518
521
  var GuardianProfilePictureSchema = z3.object({
519
- photo_url: stringOptional("Photo URL", 0, 300),
520
- photo_key: stringOptional("Photo Key", 0, 300),
521
- photo_name: stringOptional("Photo Name", 0, 300)
522
+ photo_url: stringMandatory("Photo URL", 0, 300),
523
+ photo_key: stringMandatory("Photo Key", 0, 300),
524
+ photo_name: stringMandatory("Photo Name", 0, 300)
522
525
  });
523
526
  var GuardianDetailsSchema = z3.object({
524
527
  full_name: stringMandatory("Full Name", 3, 100),
@@ -561,7 +564,8 @@ var StudentLeaveRequestSchema = z3.object({
561
564
  StudentLeaveType,
562
565
  "FullDay" /* FullDay */
563
566
  ),
564
- reason: stringOptional("Reason", 0, 500)
567
+ reason: stringOptional("Reason", 0, 500),
568
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
565
569
  });
566
570
  var StudentLeaveRequestApprovalSchema = z3.object({
567
571
  approval_status: enumMandatory(
@@ -569,7 +573,8 @@ var StudentLeaveRequestApprovalSchema = z3.object({
569
573
  ApprovalStatus,
570
574
  "Pending" /* Pending */
571
575
  ),
572
- approval_notes: stringOptional("Approval Notes", 0, 500)
576
+ approval_notes: stringOptional("Approval Notes", 0, 500),
577
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
573
578
  });
574
579
  var StudentLeaveRequestQuerySchema = BaseQuerySchema.extend({
575
580
  organisation_ids: multi_select_optional("UserOrganisation"),
@@ -598,7 +603,9 @@ var StudentStopChangeRequestSchema = z3.object({
598
603
  apply_from: dateMandatory("Apply From"),
599
604
  apply_until: dateOptional("Apply Until"),
600
605
  reason: stringOptional("Reason", 0, 500),
601
- status: enumMandatory("Status", Status, "Active" /* Active */)
606
+ // Other
607
+ status: enumMandatory("Status", Status, "Active" /* Active */),
608
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
602
609
  });
603
610
  var StudentStopChangeRequestApprovalSchema = z3.object({
604
611
  approval_status: enumMandatory(
@@ -628,30 +635,32 @@ var StudentStopChangeRequestQuerySchema = BaseQuerySchema.extend({
628
635
  )
629
636
  });
630
637
  var toStudentPayload = (row) => ({
631
- organisation_id: row.organisation_id,
632
- organisation_branch_id: row.organisation_branch_id,
633
- program_id: row.program_id ?? "",
634
- stream_id: row.stream_id ?? "",
635
- year_id: row.year_id ?? "",
636
- semester_id: row.semester_id ?? "",
637
- class_id: row.class_id ?? "",
638
- section_id: row.section_id ?? "",
639
- photo_url: row.photo_url ?? "",
640
- photo_key: row.photo_key ?? "",
641
- photo_name: row.photo_name ?? "",
642
- admission_registration_number: row.admission_registration_number ?? "",
643
- roll_number: row.roll_number ?? "",
638
+ organisation_id: row.organisation_id || "",
639
+ organisation_branch_id: row.organisation_branch_id || "",
640
+ program_id: row.program_id || "",
641
+ stream_id: row.stream_id || "",
642
+ year_id: row.year_id || "",
643
+ semester_id: row.semester_id || "",
644
+ class_id: row.class_id || "",
645
+ section_id: row.section_id || "",
646
+ photo_url: row.photo_url || "",
647
+ photo_key: row.photo_key || "",
648
+ photo_name: row.photo_name || "",
649
+ admission_registration_number: row.admission_registration_number || "",
650
+ roll_number: row.roll_number || "",
644
651
  first_name: row.first_name,
645
- last_name: row.last_name ?? "",
646
- mobile_number: row.mobile_number ?? "",
647
- email: row.email ?? "",
652
+ last_name: row.last_name || "",
653
+ mobile_number: row.mobile_number || "",
654
+ email: row.email || "",
648
655
  dob: row.dob,
649
- gender: row.gender ?? "",
650
- blood_group: row.blood_group ?? "",
651
- special_notes: row.special_notes ?? "",
652
- enrollment_status: row.enrollment_status ?? "",
653
- transport_plan_type: row.transport_plan_type ?? "",
654
- change_reason: ""
656
+ gender: row.gender || "",
657
+ blood_group: row.blood_group || "",
658
+ special_notes: row.special_notes || "",
659
+ enrollment_status: row.enrollment_status || "Active" /* Active */,
660
+ transport_plan_type: row.transport_plan_type || "Both" /* Both */,
661
+ status: row.status,
662
+ time_zone_id: ""
663
+ // Needs to be provided manually
655
664
  });
656
665
  var newStudentPayload = () => ({
657
666
  organisation_id: "",
@@ -677,32 +686,35 @@ var newStudentPayload = () => ({
677
686
  special_notes: "",
678
687
  enrollment_status: "Active" /* Active */,
679
688
  transport_plan_type: "Both" /* Both */,
680
- change_reason: ""
689
+ status: "Active" /* Active */,
690
+ time_zone_id: ""
691
+ // Needs to be provided manually
681
692
  });
682
693
  var toStudentAddressPayload = (row) => ({
683
- organisation_id: row.organisation_id,
684
- organisation_branch_id: row.organisation_branch_id,
685
- student_id: row.student_id,
686
- address_line1: row.address_line1,
687
- address_line2: row.address_line2 ?? "",
688
- locality_landmark: row.locality_landmark ?? "",
689
- neighborhood: row.neighborhood ?? "",
690
- town_city: row.town_city ?? "",
691
- district_county: row.district_county ?? "",
692
- state_province_region: row.state_province_region ?? "",
693
- postal_code: row.postal_code ?? "",
694
- country: row.country ?? "",
695
- country_code: row.country_code ?? "",
696
- google_location: row.google_location ?? "",
697
- latitude: row.latitude ?? 0,
698
- longitude: row.longitude ?? 0,
699
- is_default: row.is_default,
700
- notes: row.notes ?? "",
694
+ organisation_id: row.organisation_id || "",
695
+ organisation_branch_id: row.organisation_branch_id || "",
696
+ student_id: row.student_id || "",
697
+ // Address
698
+ address_line1: row.address_line1 || "",
699
+ address_line2: row.address_line2 || "",
700
+ locality_landmark: row.locality_landmark || "",
701
+ neighborhood: row.neighborhood || "",
702
+ town_city: row.town_city || "",
703
+ district_county: row.district_county || "",
704
+ state_province_region: row.state_province_region || "",
705
+ postal_code: row.postal_code || "",
706
+ country: row.country || "",
707
+ country_code: row.country_code || "",
708
+ // Location Details
709
+ latitude: row.latitude || 0,
710
+ longitude: row.longitude || 0,
711
+ google_location: row.google_location || "",
712
+ is_default: row.is_default || "No" /* No */,
713
+ notes: row.notes || "",
701
714
  status: row.status
702
715
  });
703
716
  var newStudentAddressPayload = () => ({
704
717
  student_id: "",
705
- status: "Active" /* Active */,
706
718
  organisation_id: "",
707
719
  organisation_branch_id: "",
708
720
  address_line1: "",
@@ -715,18 +727,24 @@ var newStudentAddressPayload = () => ({
715
727
  postal_code: "",
716
728
  country: "",
717
729
  country_code: "",
730
+ latitude: 0,
731
+ longitude: 0,
718
732
  google_location: "",
719
733
  is_default: "Yes" /* Yes */,
720
- notes: ""
734
+ notes: "",
735
+ status: "Active" /* Active */
721
736
  });
722
737
  var toStudentLeaveRequestPayload = (row) => ({
723
- organisation_id: row.organisation_id,
724
- organisation_branch_id: row.organisation_branch_id,
725
- student_id: row.student_id,
726
- date_from: row.date_from,
727
- date_to: row.date_to,
728
- leave_type: row.leave_type,
729
- reason: row.reason ?? ""
738
+ organisation_id: row.organisation_id || "",
739
+ organisation_branch_id: row.organisation_branch_id || "",
740
+ student_id: row.student_id || "",
741
+ // Leave details
742
+ date_from: row.date_from || "",
743
+ date_to: row.date_to || "",
744
+ leave_type: row.leave_type || "FullDay" /* FullDay */,
745
+ reason: row.reason || "",
746
+ time_zone_id: ""
747
+ // Needs to be provided manually
730
748
  });
731
749
  var newStudentLeaveRequestPayload = () => ({
732
750
  student_id: "",
@@ -735,65 +753,72 @@ var newStudentLeaveRequestPayload = () => ({
735
753
  date_from: "",
736
754
  date_to: "",
737
755
  leave_type: "FullDay" /* FullDay */,
738
- reason: ""
756
+ reason: "",
757
+ time_zone_id: ""
758
+ // Needs to be provided manually
739
759
  });
740
760
  var toStudentStopChangeRequestPayload = (row) => ({
741
- organisation_id: row.organisation_id,
742
- organisation_branch_id: row.organisation_branch_id,
743
- student_id: row.student_id,
744
- student_address_id: row.student_address_id,
745
- change_pickup: row.change_pickup,
746
- change_drop: row.change_drop,
747
- is_temporary: row.is_temporary,
748
- apply_from: row.apply_from,
749
- apply_until: row.apply_until ?? "",
750
- reason: row.reason ?? "",
751
- status: row.status
761
+ organisation_id: row.organisation_id || "",
762
+ organisation_branch_id: row.organisation_branch_id || "",
763
+ student_id: row.student_id || "",
764
+ student_address_id: row.student_address_id || "",
765
+ change_pickup: row.change_pickup || "Yes" /* Yes */,
766
+ change_drop: row.change_drop || "Yes" /* Yes */,
767
+ is_temporary: row.is_temporary || "No" /* No */,
768
+ apply_from: row.apply_from || "",
769
+ apply_until: row.apply_until || "",
770
+ reason: row.reason || "",
771
+ status: row.status,
772
+ time_zone_id: ""
773
+ // Needs to be provided manually
752
774
  });
753
775
  var newStudentStopChangeRequestPayload = () => ({
754
776
  student_id: "",
755
- status: "Active" /* Active */,
756
777
  organisation_id: "",
757
778
  organisation_branch_id: "",
758
779
  student_address_id: "",
759
- reason: "",
760
780
  change_pickup: "Yes" /* Yes */,
761
781
  change_drop: "Yes" /* Yes */,
762
- is_temporary: "Yes" /* Yes */,
782
+ is_temporary: "No" /* No */,
763
783
  apply_from: "",
764
- apply_until: ""
784
+ apply_until: "",
785
+ reason: "",
786
+ status: "Active" /* Active */,
787
+ time_zone_id: ""
788
+ // Needs to be provided manually
765
789
  });
766
790
  var toStudentGuardianLinkPayload = (row) => ({
767
- organisation_id: row.organisation_id,
768
- organisation_branch_id: row.organisation_branch_id,
769
- student_id: row.student_id,
770
- relationship_id: row.relationship_id,
771
- is_primary: row.is_primary,
772
- notes: row.notes ?? "",
773
- photo_url: row.photo_url ?? "",
774
- photo_key: row.photo_key ?? "",
775
- photo_name: row.photo_name ?? "",
776
- full_name: row.full_name,
777
- mobile: row.mobile,
778
- email: row.email ?? "",
779
- alternative_mobile: row.alternative_mobile ?? "",
791
+ organisation_id: row.organisation_id || "",
792
+ organisation_branch_id: row.organisation_branch_id || "",
793
+ student_id: row.student_id || "",
794
+ relationship_id: row.relationship_id || "",
795
+ is_primary: row.is_primary || "No" /* No */,
796
+ notes: row.notes || "",
797
+ photo_url: row.photo_url || "",
798
+ photo_key: row.photo_key || "",
799
+ photo_name: row.photo_name || "",
800
+ full_name: row.full_name || "",
801
+ mobile: row.mobile || "",
802
+ email: row.email || "",
803
+ alternative_mobile: row.alternative_mobile || "",
780
804
  status: row.status
781
805
  });
782
806
  var newStudentGuardianLinkPayload = () => ({
783
807
  student_id: "",
784
- photo_url: "",
785
- photo_key: "",
786
- photo_name: "",
787
- email: "",
788
- status: "Active" /* Active */,
789
808
  organisation_id: "",
790
809
  organisation_branch_id: "",
810
+ relationship_id: "",
811
+ is_primary: "No" /* No */,
791
812
  notes: "",
792
- is_primary: "Yes" /* Yes */,
813
+ // Guardian
814
+ photo_url: "",
815
+ photo_key: "",
816
+ photo_name: "",
793
817
  full_name: "",
794
818
  mobile: "",
795
- relationship_id: "",
796
- alternative_mobile: ""
819
+ email: "",
820
+ alternative_mobile: "",
821
+ status: "Active" /* Active */
797
822
  });
798
823
  var findStudent = async (data) => {
799
824
  return apiPost(ENDPOINTS.find, data);