vms-nest-prisma-api-document 230.0.0 → 250.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 (113) hide show
  1. package/dist/core/Enums.d.ts +7 -1
  2. package/dist/core/Enums.js +8 -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 +11 -11
  6. package/dist/services/account/notification_preferences.service.d.ts +18 -18
  7. package/dist/services/account/report_preferences.service.d.ts +7 -7
  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 +34 -34
  21. package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +48 -48
  22. package/dist/services/fleet/incident_management/incident_management_service.d.ts +19 -19
  23. package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -1
  24. package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -1
  25. package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +49 -49
  26. package/dist/services/fleet/issue_management/issue_management_service.d.ts +47 -47
  27. package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +7 -20
  28. package/dist/services/fleet/service_management/fleet_service_management_service.js +0 -9
  29. package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +1 -1
  30. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
  31. package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +0 -61
  32. package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
  33. package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
  34. package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +3 -3
  35. package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
  36. package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
  37. package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
  38. package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
  39. package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
  40. package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
  41. package/dist/services/main/devices/master_device_service.d.ts +1 -1
  42. package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
  43. package/dist/services/main/sims/master_sim_service.d.ts +1 -1
  44. package/dist/services/main/users/auth_service.d.ts +1 -1
  45. package/dist/services/main/users/user_admin_service.d.ts +3 -3
  46. package/dist/services/main/users/user_organisation_service.d.ts +1 -1
  47. package/dist/services/main/users/user_service.d.ts +1 -1
  48. package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
  49. package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
  50. package/dist/services/main/vehicle/master_vehicle_service.js +13 -1
  51. package/dist/services/master/bus/master_class_service.d.ts +1 -1
  52. package/dist/services/master/bus/master_program_service.d.ts +1 -1
  53. package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
  54. package/dist/services/master/bus/master_section_service.d.ts +1 -1
  55. package/dist/services/master/bus/master_semester_service.d.ts +1 -1
  56. package/dist/services/master/bus/master_stream_service.d.ts +1 -1
  57. package/dist/services/master/bus/master_year_service.d.ts +1 -1
  58. package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
  59. package/dist/services/master/device/master_device_model_service.d.ts +1 -1
  60. package/dist/services/master/device/master_device_type_service.d.ts +1 -1
  61. package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
  62. package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
  63. package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
  64. package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
  65. package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
  66. package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
  67. package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
  68. package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
  69. package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
  70. package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
  71. package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
  72. package/dist/services/master/main/master_main_country_service.d.ts +1 -1
  73. package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
  74. package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
  75. package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
  76. package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
  77. package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
  78. package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
  79. package/dist/services/master/main/master_main_language_service.d.ts +1 -1
  80. package/dist/services/master/main/master_main_state_service.d.ts +1 -1
  81. package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
  82. package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
  83. package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
  84. package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
  85. package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
  86. package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
  87. package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
  88. package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
  89. package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
  90. package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
  91. package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
  92. package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
  93. package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
  94. package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
  95. package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
  96. package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
  97. package/dist/services/master/user/master_user_role_service.d.ts +1 -1
  98. package/dist/services/master/user/master_user_status_service.d.ts +1 -1
  99. package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
  100. package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
  101. package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +5 -5
  102. package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
  103. package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
  104. package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
  105. package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
  106. package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
  107. package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
  108. package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
  109. package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
  110. package/dist/services/website/contact_us_detail_service.d.ts +1 -1
  111. package/dist/services/website/static_pages_service.d.ts +1 -1
  112. package/dist/{user_organisation_service-KwfWBPXf.d.ts → user_organisation_service-CqR_hga1.d.ts} +58 -177
  113. package/package.json +1 -1
@@ -1,13 +1,14 @@
1
1
  import { HolidayType, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } 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-CqR_hga1.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../master/main/master_main_sim_provider_service.js';
7
7
 
8
8
  interface OrganisationCalendar extends Record<string, unknown> {
9
9
  calendar_id: string;
10
10
  calendar_date: string;
11
+ calendar_date_f: string;
11
12
  holiday_type: HolidayType;
12
13
  title: string;
13
14
  notes?: string;
@@ -28,10 +29,12 @@ declare const OrganisationCalendarSchema: z.ZodObject<{
28
29
  title: z.ZodEffects<z.ZodString, string, string>;
29
30
  notes: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
30
31
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
32
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
31
33
  }, "strip", z.ZodTypeAny, {
32
34
  status: Status;
33
35
  organisation_id: string;
34
36
  organisation_branch_id: string;
37
+ time_zone_id: string;
35
38
  notes: string;
36
39
  calendar_date: string;
37
40
  holiday_type: HolidayType;
@@ -40,6 +43,7 @@ declare const OrganisationCalendarSchema: z.ZodObject<{
40
43
  status: Status;
41
44
  organisation_id: string;
42
45
  organisation_branch_id: string;
46
+ time_zone_id: string;
43
47
  calendar_date: string;
44
48
  holiday_type: HolidayType;
45
49
  title: string;
@@ -77,9 +81,9 @@ declare const OrganisationCalendarQuerySchema: z.ZodObject<{
77
81
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
78
82
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
79
83
  } & {
84
+ calendar_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
80
85
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
81
86
  organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
82
- calendar_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
83
87
  holiday_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof HolidayType>, "many">>>;
84
88
  }, "strip", z.ZodTypeAny, {
85
89
  status: Status[];
@@ -285,15 +285,17 @@ var OrganisationCalendarSchema = z3.object({
285
285
  holiday_type: enumMandatory("Holiday Type", HolidayType, "FullDay" /* FullDay */),
286
286
  title: stringMandatory("Title", 3, 100),
287
287
  notes: stringOptional("Notes", 0, 500),
288
- status: enumMandatory("Status", Status, "Active" /* Active */)
288
+ // Other
289
+ status: enumMandatory("Status", Status, "Active" /* Active */),
290
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
289
291
  });
290
292
  var OrganisationCalendarQuerySchema = BaseQuerySchema.extend({
293
+ calendar_ids: multi_select_optional("OrganisationCalendar"),
294
+ // ✅ Multi-selection -> OrganisationCalendar
291
295
  organisation_ids: multi_select_optional("UserOrganisation"),
292
296
  // ✅ Multi-selection -> UserOrganisation
293
297
  organisation_branch_ids: multi_select_optional("OrganisationBranch"),
294
298
  // ✅ Multi-selection -> OrganisationBranch
295
- calendar_ids: multi_select_optional("OrganisationCalendar"),
296
- // ✅ Multi-selection -> OrganisationCalendar
297
299
  holiday_type: enumArrayOptional(
298
300
  "Holiday Type",
299
301
  HolidayType,
@@ -301,22 +303,26 @@ var OrganisationCalendarQuerySchema = BaseQuerySchema.extend({
301
303
  )
302
304
  });
303
305
  var toOrganisationCalendarPayload = (row) => ({
304
- organisation_id: row.organisation_id,
305
- organisation_branch_id: row.organisation_branch_id ?? "",
306
- calendar_date: row.calendar_date,
307
- holiday_type: row.holiday_type,
308
- title: row.title,
309
- notes: row.notes ?? "",
310
- status: row.status
306
+ organisation_id: row.organisation_id || "",
307
+ organisation_branch_id: row.organisation_branch_id || "",
308
+ calendar_date: row.calendar_date || "",
309
+ holiday_type: row.holiday_type || "FullDay" /* FullDay */,
310
+ title: row.title || "",
311
+ notes: row.notes || "",
312
+ status: row.status,
313
+ time_zone_id: ""
314
+ // Needs to be provided manually
311
315
  });
312
316
  var newOrganisationCalendarPayload = () => ({
317
+ organisation_id: "",
318
+ organisation_branch_id: "",
313
319
  calendar_date: "",
314
320
  holiday_type: "FullDay" /* FullDay */,
315
321
  title: "",
316
322
  notes: "",
317
323
  status: "Active" /* Active */,
318
- organisation_id: "",
319
- organisation_branch_id: ""
324
+ time_zone_id: ""
325
+ // Needs to be provided manually
320
326
  });
321
327
  var findOrganisationCalendar = async (data) => {
322
328
  return apiPost(ENDPOINTS.find, data);
@@ -1,8 +1,7 @@
1
- import { Status, BusLeg, YesNo, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
1
+ import { BusLeg, Status, YesNo, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, BusStopType, GeofenceType } 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, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-KwfWBPXf.js';
5
- import { BusStop } from './bus_stop.js';
4
+ import { U as UserOrganisation, O as OrganisationBranch, M as MasterVehicle, b as MasterDriver } from '../../../user_organisation_service-CqR_hga1.js';
6
5
  import { Student } from './student.js';
7
6
  import '../../../zod_utils/zod_base_schema.js';
8
7
  import '../../master/main/master_main_sim_provider_service.js';
@@ -264,10 +263,12 @@ declare const MasterFixedScheduleSchema: z.ZodObject<{
264
263
  friday: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
265
264
  saturday: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
266
265
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
266
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
267
267
  }, "strip", z.ZodTypeAny, {
268
268
  status: Status;
269
269
  organisation_id: string;
270
270
  organisation_branch_id: string;
271
+ time_zone_id: string;
271
272
  driver_id: string;
272
273
  vehicle_id: string;
273
274
  route_id: string;
@@ -293,6 +294,7 @@ declare const MasterFixedScheduleSchema: z.ZodObject<{
293
294
  status: Status;
294
295
  organisation_id: string;
295
296
  organisation_branch_id: string;
297
+ time_zone_id: string;
296
298
  driver_id: string;
297
299
  vehicle_id: string;
298
300
  route_id: string;
@@ -798,4 +800,249 @@ declare const assignMasterRouteStudentScheduleToStudentDrop: (data: MasterRouteS
798
800
  declare const removeMasterRouteStudentScheduleToStudentPickup: (data: MasterRouteStudentScheduleAssignRemoveDTO) => Promise<SBR>;
799
801
  declare const removeMasterRouteStudentScheduleToStudentDrop: (data: MasterRouteStudentScheduleAssignRemoveDTO) => Promise<SBR>;
800
802
 
801
- export { type MasterFixedSchedule, type MasterFixedScheduleDTO, type MasterFixedScheduleQueryDTO, MasterFixedScheduleQuerySchema, MasterFixedScheduleSchema, type MasterRoute, type MasterRouteDTO, type MasterRouteQueryDTO, MasterRouteQuerySchema, MasterRouteSchema, type MasterRouteStop, type MasterRouteStopCreateDTO, MasterRouteStopCreateSchema, type MasterRouteStopDTO, MasterRouteStopDeleteAllSchema, type MasterRouteStopDeleteDTO, type MasterRouteStopDeleteReOrderDTO, MasterRouteStopDeleteSchema, MasterRouteStopIds, type MasterRouteStopIdsDTO, type MasterRouteStopReorderDTO, MasterRouteStopReorderSchema, MasterRouteStopSchema, type MasterRouteStopUpdateDTO, MasterRouteStopUpdateSchema, type MasterRouteStudent, type MasterRouteStudentAssignRemoveDTO, MasterRouteStudentAssignRemoveSchema, type MasterRouteStudentScheduleAssignRemoveDTO, MasterRouteStudentScheduleAssignRemoveSchema, type MasterRouteStudentStopAssignRemoveDTO, MasterRouteStudentStopAssignRemoveSchema, type StudentNoScheduleQueryDTO, StudentNoScheduleQuerySchema, type StudentNoStopQueryDTO, StudentNoStopQuerySchema, appendRouteStop, assignMasterRouteStudentScheduleToStudentDrop, assignMasterRouteStudentScheduleToStudentsPickup, assignMasterRouteStudentStopToStudentsDrop, assignMasterRouteStudentStopToStudentsPickup, assignRouteStudentsDrop, assignRouteStudentsPickup, createMasterFixedSchedule, createMasterRoute, createStopsFirstTimeRoute, deleteMasterFixedSchedule, deleteMasterRoute, deleteRouteStopReorder, deleteRouteStopsAll, findMasterFixedSchedule, findMasterRoute, findStudentsWithNoScheduleDrop, findStudentsWithNoSchedulePickup, findStudentsWithNoStopDrop, findStudentsWithNoStopPickup, newMasterFixedSchedulePayload, newMasterRoutePayload, newMasterRouteStopPayload, newMasterRouteStudentAssignPayload, removeMasterRouteStudentScheduleToStudentDrop, removeMasterRouteStudentScheduleToStudentPickup, removeMasterRouteStudentStopToStudentsDrop, removeMasterRouteStudentStopToStudentsPickup, removeRouteStudentsDrop, removeRouteStudentsPickup, reorderRouteStops, toMasterFixedSchedulePayload, toMasterRoutePayload, toMasterRouteStopPayload, toMasterRouteStopReorderPayload, toMasterRouteStudentAssignPayload, updateMasterFixedSchedule, updateMasterRoute, updateRouteStop };
803
+ interface BusStopPolygonData {
804
+ latitude: number;
805
+ longitude: number;
806
+ }
807
+ interface BusStop extends Record<string, unknown> {
808
+ bus_stop_id: string;
809
+ stop_name: string;
810
+ stop_code?: string;
811
+ stop_type: BusStopType;
812
+ stop_description?: string;
813
+ stop_duration_seconds?: number;
814
+ address_line1?: string;
815
+ address_line2?: string;
816
+ locality_landmark?: string;
817
+ neighborhood?: string;
818
+ town_city?: string;
819
+ district_county?: string;
820
+ state_province_region?: string;
821
+ postal_code?: string;
822
+ country?: string;
823
+ country_code?: string;
824
+ google_location?: string;
825
+ geofence_type: GeofenceType;
826
+ stop_latitude?: number;
827
+ stop_longitude?: number;
828
+ radius_meters?: number;
829
+ radius_km?: number;
830
+ polygon_data?: BusStopPolygonData[];
831
+ status: Status;
832
+ added_date_time: string;
833
+ modified_date_time: string;
834
+ organisation_id: string;
835
+ UserOrganisation?: UserOrganisation;
836
+ organisation_branch_id?: string;
837
+ OrganisationBranch?: OrganisationBranch;
838
+ MasterRouteStop: MasterRouteStop[];
839
+ _count?: {
840
+ MasterRouteStop: number;
841
+ };
842
+ }
843
+ declare const BusStopPolygonDataSchema: z.ZodObject<{
844
+ latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
845
+ longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
846
+ }, "strip", z.ZodTypeAny, {
847
+ latitude: number;
848
+ longitude: number;
849
+ }, {
850
+ latitude?: unknown;
851
+ longitude?: unknown;
852
+ }>;
853
+ type BusStopPolygonDataDTO = z.infer<typeof BusStopPolygonDataSchema>;
854
+ declare const BusStopSchema: z.ZodObject<{
855
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
856
+ organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
857
+ stop_name: z.ZodEffects<z.ZodString, string, string>;
858
+ stop_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
859
+ stop_type: z.ZodType<BusStopType, z.ZodTypeDef, BusStopType>;
860
+ stop_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
861
+ stop_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
862
+ address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
863
+ address_line2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
864
+ locality_landmark: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
865
+ neighborhood: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
866
+ town_city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
867
+ district_county: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
868
+ state_province_region: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
869
+ postal_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
870
+ country: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
871
+ country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
872
+ google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
873
+ geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
874
+ stop_latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
875
+ stop_longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
876
+ radius_meters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
877
+ radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
878
+ polygon_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
879
+ latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
880
+ longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
881
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
882
+ latitude: number;
883
+ longitude: number;
884
+ }, {
885
+ latitude?: unknown;
886
+ longitude?: unknown;
887
+ }>, "many">>>;
888
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
889
+ }, "strip", z.ZodTypeAny, {
890
+ stop_name: string;
891
+ stop_code: string;
892
+ stop_type: BusStopType;
893
+ stop_description: string;
894
+ stop_duration_seconds: number;
895
+ address_line1: string;
896
+ address_line2: string;
897
+ locality_landmark: string;
898
+ neighborhood: string;
899
+ town_city: string;
900
+ district_county: string;
901
+ state_province_region: string;
902
+ postal_code: string;
903
+ country: string;
904
+ country_code: string;
905
+ google_location: string;
906
+ geofence_type: GeofenceType;
907
+ polygon_data: {
908
+ latitude: number;
909
+ longitude: number;
910
+ }[];
911
+ status: Status;
912
+ organisation_id: string;
913
+ organisation_branch_id: string;
914
+ stop_latitude?: number | undefined;
915
+ stop_longitude?: number | undefined;
916
+ radius_meters?: number | undefined;
917
+ radius_km?: number | undefined;
918
+ }, {
919
+ stop_name: string;
920
+ stop_type: BusStopType;
921
+ geofence_type: GeofenceType;
922
+ status: Status;
923
+ organisation_id: string;
924
+ organisation_branch_id: string;
925
+ stop_code?: string | undefined;
926
+ stop_description?: string | undefined;
927
+ stop_duration_seconds?: unknown;
928
+ address_line1?: string | undefined;
929
+ address_line2?: string | undefined;
930
+ locality_landmark?: string | undefined;
931
+ neighborhood?: string | undefined;
932
+ town_city?: string | undefined;
933
+ district_county?: string | undefined;
934
+ state_province_region?: string | undefined;
935
+ postal_code?: string | undefined;
936
+ country?: string | undefined;
937
+ country_code?: string | undefined;
938
+ google_location?: string | undefined;
939
+ stop_latitude?: unknown;
940
+ stop_longitude?: unknown;
941
+ radius_meters?: unknown;
942
+ radius_km?: unknown;
943
+ polygon_data?: {
944
+ latitude?: unknown;
945
+ longitude?: unknown;
946
+ }[] | undefined;
947
+ }>;
948
+ type BusStopDTO = z.infer<typeof BusStopSchema>;
949
+ declare const BusStopQuerySchema: z.ZodObject<{
950
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
951
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
952
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
953
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
954
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
955
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
956
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
957
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
958
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
959
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
960
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
961
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
962
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
963
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
964
+ name: z.ZodEffects<z.ZodString, string, string>;
965
+ field: z.ZodEffects<z.ZodString, string, string>;
966
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
967
+ }, "strip", z.ZodTypeAny, {
968
+ name: string;
969
+ field: string;
970
+ direction: OrderBy;
971
+ }, {
972
+ name: string;
973
+ field: string;
974
+ direction: OrderBy;
975
+ }>, "many">>>;
976
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
977
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
978
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
979
+ } & {
980
+ bus_stop_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
981
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
982
+ organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
983
+ stop_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BusStopType>, "many">>>;
984
+ geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
985
+ }, "strip", z.ZodTypeAny, {
986
+ stop_type: BusStopType[];
987
+ geofence_type: GeofenceType[];
988
+ status: Status[];
989
+ search: string;
990
+ paging: PAGING;
991
+ page_count: number;
992
+ page_index: number;
993
+ load_parents: LoadParents;
994
+ load_parents_list: string[];
995
+ load_child: LoadChild;
996
+ load_child_list: string[];
997
+ load_child_count: LoadChildCount;
998
+ load_child_count_list: string[];
999
+ include_details: Record<string, any>;
1000
+ where_relations: Record<string, any>;
1001
+ order_by: {
1002
+ name: string;
1003
+ field: string;
1004
+ direction: OrderBy;
1005
+ }[];
1006
+ include_master_data: YesNo;
1007
+ date_format_id: string;
1008
+ time_zone_id: string;
1009
+ bus_stop_ids: string[];
1010
+ organisation_ids: string[];
1011
+ organisation_branch_ids: string[];
1012
+ }, {
1013
+ date_format_id: string;
1014
+ time_zone_id: string;
1015
+ stop_type?: BusStopType[] | undefined;
1016
+ geofence_type?: GeofenceType[] | undefined;
1017
+ status?: Status[] | undefined;
1018
+ search?: string | undefined;
1019
+ paging?: PAGING | undefined;
1020
+ page_count?: unknown;
1021
+ page_index?: unknown;
1022
+ load_parents?: LoadParents | undefined;
1023
+ load_parents_list?: string[] | undefined;
1024
+ load_child?: LoadChild | undefined;
1025
+ load_child_list?: string[] | undefined;
1026
+ load_child_count?: LoadChildCount | undefined;
1027
+ load_child_count_list?: string[] | undefined;
1028
+ include_details?: Record<string, any> | undefined;
1029
+ where_relations?: Record<string, any> | undefined;
1030
+ order_by?: {
1031
+ name: string;
1032
+ field: string;
1033
+ direction: OrderBy;
1034
+ }[] | undefined;
1035
+ include_master_data?: YesNo | undefined;
1036
+ bus_stop_ids?: string[] | undefined;
1037
+ organisation_ids?: string[] | undefined;
1038
+ organisation_branch_ids?: string[] | undefined;
1039
+ }>;
1040
+ type BusStopQueryDTO = z.infer<typeof BusStopQuerySchema>;
1041
+ declare const toBusStopPayload: (row: BusStop) => BusStopDTO;
1042
+ declare const newBusStopPayload: () => BusStopDTO;
1043
+ declare const findBusStop: (data: BusStopQueryDTO) => Promise<FBR<BusStop[]>>;
1044
+ declare const createBusStop: (data: BusStopDTO) => Promise<SBR>;
1045
+ declare const updateBusStop: (id: string, data: BusStopDTO) => Promise<SBR>;
1046
+ declare const deleteBusStop: (id: string) => Promise<SBR>;
1047
+
1048
+ export { type BusStopPolygonData as B, type MasterFixedSchedule, type MasterFixedScheduleDTO, type MasterFixedScheduleQueryDTO, MasterFixedScheduleQuerySchema, MasterFixedScheduleSchema, type MasterRoute, type MasterRouteDTO, type MasterRouteQueryDTO, MasterRouteQuerySchema, MasterRouteSchema, type MasterRouteStop, type MasterRouteStopCreateDTO, MasterRouteStopCreateSchema, type MasterRouteStopDTO, MasterRouteStopDeleteAllSchema, type MasterRouteStopDeleteDTO, type MasterRouteStopDeleteReOrderDTO, MasterRouteStopDeleteSchema, MasterRouteStopIds, type MasterRouteStopIdsDTO, type MasterRouteStopReorderDTO, MasterRouteStopReorderSchema, MasterRouteStopSchema, type MasterRouteStopUpdateDTO, MasterRouteStopUpdateSchema, type MasterRouteStudent, type MasterRouteStudentAssignRemoveDTO, MasterRouteStudentAssignRemoveSchema, type MasterRouteStudentScheduleAssignRemoveDTO, MasterRouteStudentScheduleAssignRemoveSchema, type MasterRouteStudentStopAssignRemoveDTO, MasterRouteStudentStopAssignRemoveSchema, type StudentNoScheduleQueryDTO, StudentNoScheduleQuerySchema, type StudentNoStopQueryDTO, StudentNoStopQuerySchema, type BusStop as a, appendRouteStop, assignMasterRouteStudentScheduleToStudentDrop, assignMasterRouteStudentScheduleToStudentsPickup, assignMasterRouteStudentStopToStudentsDrop, assignMasterRouteStudentStopToStudentsPickup, assignRouteStudentsDrop, assignRouteStudentsPickup, BusStopPolygonDataSchema as b, type BusStopPolygonDataDTO as c, createMasterFixedSchedule, createMasterRoute, createStopsFirstTimeRoute, BusStopSchema as d, deleteMasterFixedSchedule, deleteMasterRoute, deleteRouteStopReorder, deleteRouteStopsAll, type BusStopDTO as e, BusStopQuerySchema as f, findMasterFixedSchedule, findMasterRoute, findStudentsWithNoScheduleDrop, findStudentsWithNoSchedulePickup, findStudentsWithNoStopDrop, findStudentsWithNoStopPickup, type BusStopQueryDTO as g, findBusStop as h, createBusStop as i, deleteBusStop as j, newBusStopPayload as n, newMasterFixedSchedulePayload, newMasterRoutePayload, newMasterRouteStopPayload, newMasterRouteStudentAssignPayload, removeMasterRouteStudentScheduleToStudentDrop, removeMasterRouteStudentScheduleToStudentPickup, removeMasterRouteStudentStopToStudentsDrop, removeMasterRouteStudentStopToStudentsPickup, removeRouteStudentsDrop, removeRouteStudentsPickup, reorderRouteStops, toBusStopPayload as t, toMasterFixedSchedulePayload, toMasterRoutePayload, toMasterRouteStopPayload, toMasterRouteStopReorderPayload, toMasterRouteStudentAssignPayload, updateBusStop as u, updateMasterFixedSchedule, updateMasterRoute, updateRouteStop };
@@ -387,7 +387,9 @@ var MasterFixedScheduleSchema = z3.object({
387
387
  thursday: enumMandatory("Thursday", YesNo, "Yes" /* Yes */),
388
388
  friday: enumMandatory("Friday", YesNo, "Yes" /* Yes */),
389
389
  saturday: enumMandatory("Saturday", YesNo, "Yes" /* Yes */),
390
- status: enumMandatory("Status", Status, "Active" /* Active */)
390
+ // Other
391
+ status: enumMandatory("Status", Status, "Active" /* Active */),
392
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
391
393
  });
392
394
  var MasterFixedScheduleQuerySchema = BaseQuerySchema.extend({
393
395
  organisation_ids: multi_select_optional("UserOrganisation"),
@@ -504,22 +506,21 @@ var MasterRouteStudentScheduleAssignRemoveSchema = z3.object({
504
506
  // Multi selection -> MasterRouteStudent
505
507
  });
506
508
  var toMasterRoutePayload = (row) => ({
507
- organisation_id: row.organisation_id,
508
- organisation_branch_id: row.organisation_branch_id,
509
- pickup_start_stop_id: row.pickup_start_stop_id ?? "",
510
- pickup_end_stop_id: row.pickup_end_stop_id ?? "",
511
- drop_start_stop_id: row.drop_start_stop_id ?? "",
512
- drop_end_stop_id: row.drop_end_stop_id ?? "",
513
- route_name: row.route_name,
514
- route_code: row.route_code ?? "",
515
- route_notes: row.route_notes ?? "",
509
+ organisation_id: row.organisation_id || "",
510
+ organisation_branch_id: row.organisation_branch_id || "",
511
+ pickup_start_stop_id: row.pickup_start_stop_id || "",
512
+ pickup_end_stop_id: row.pickup_end_stop_id || "",
513
+ drop_start_stop_id: row.drop_start_stop_id || "",
514
+ drop_end_stop_id: row.drop_end_stop_id || "",
515
+ route_name: row.route_name || "",
516
+ route_code: row.route_code || "",
517
+ route_notes: row.route_notes || "",
516
518
  route_status: row.route_status,
517
- pickup_journey_time_in_seconds: Number(row.pickup_journey_time_in_seconds) ?? 0,
518
- drop_journey_time_in_seconds: Number(row.drop_journey_time_in_seconds) ?? 0,
519
- status: row.status ?? "Active" /* Active */
519
+ pickup_journey_time_in_seconds: row.pickup_journey_time_in_seconds || 0,
520
+ drop_journey_time_in_seconds: row.drop_journey_time_in_seconds || 0,
521
+ status: row.status || "Active" /* Active */
520
522
  });
521
523
  var newMasterRoutePayload = () => ({
522
- status: "Active" /* Active */,
523
524
  organisation_id: "",
524
525
  organisation_branch_id: "",
525
526
  pickup_start_stop_id: "",
@@ -531,42 +532,44 @@ var newMasterRoutePayload = () => ({
531
532
  route_notes: "",
532
533
  route_status: "Active" /* Active */,
533
534
  pickup_journey_time_in_seconds: 0,
534
- drop_journey_time_in_seconds: 0
535
+ drop_journey_time_in_seconds: 0,
536
+ status: "Active" /* Active */
535
537
  });
536
538
  var toMasterFixedSchedulePayload = (row) => ({
537
- organisation_id: row.organisation_id,
538
- organisation_branch_id: row.organisation_branch_id,
539
- route_id: row.route_id,
540
- vehicle_id: row.vehicle_id ?? "",
541
- driver_id: row.driver_id ?? "",
542
- attendant_id: row.attendant_id ?? "",
543
- schedule_name: row.schedule_name,
544
- schedule_status: row.schedule_status,
545
- is_stops_finalized: row.is_stops_finalized,
546
- schedule_type: row.schedule_type,
547
- start_hour: Number(row.start_hour) ?? "",
548
- start_minute: Number(row.start_minute) ?? "",
549
- end_hour: Number(row.end_hour) ?? "",
550
- end_minute: Number(row.end_minute) ?? "",
551
- schedule_plan_start_date: row.schedule_plan_start_date ?? "",
552
- schedule_plan_end_date: row.schedule_plan_end_date ?? "",
553
- sunday: row.sunday,
554
- monday: row.monday,
555
- tuesday: row.tuesday,
556
- wednesday: row.wednesday,
557
- thursday: row.thursday,
558
- friday: row.friday,
559
- saturday: row.saturday,
560
- status: row.status
539
+ organisation_id: row.organisation_id || "",
540
+ organisation_branch_id: row.organisation_branch_id || "",
541
+ route_id: row.route_id || "",
542
+ vehicle_id: row.vehicle_id || "",
543
+ driver_id: row.driver_id || "",
544
+ attendant_id: row.attendant_id || "",
545
+ schedule_name: row.schedule_name || "",
546
+ schedule_status: row.schedule_status || "Active" /* Active */,
547
+ is_stops_finalized: row.is_stops_finalized || "No" /* No */,
548
+ schedule_type: row.schedule_type || "Pickup" /* Pickup */,
549
+ start_hour: row.start_hour || 0,
550
+ start_minute: row.start_minute || 0,
551
+ end_hour: row.end_hour || 0,
552
+ end_minute: row.end_minute || 0,
553
+ schedule_plan_start_date: row.schedule_plan_start_date || "",
554
+ schedule_plan_end_date: row.schedule_plan_end_date || "",
555
+ sunday: row.sunday || "No" /* No */,
556
+ monday: row.monday || "Yes" /* Yes */,
557
+ tuesday: row.tuesday || "Yes" /* Yes */,
558
+ wednesday: row.wednesday || "Yes" /* Yes */,
559
+ thursday: row.thursday || "Yes" /* Yes */,
560
+ friday: row.friday || "Yes" /* Yes */,
561
+ saturday: row.saturday || "Yes" /* Yes */,
562
+ status: row.status,
563
+ time_zone_id: ""
564
+ // Needs to be provided manually
561
565
  });
562
566
  var newMasterFixedSchedulePayload = () => ({
563
567
  route_id: "",
564
- status: "Active" /* Active */,
565
568
  organisation_id: "",
566
569
  organisation_branch_id: "",
567
570
  schedule_name: "",
568
571
  schedule_status: "Active" /* Active */,
569
- is_stops_finalized: "Yes" /* Yes */,
572
+ is_stops_finalized: "No" /* No */,
570
573
  schedule_type: "Pickup" /* Pickup */,
571
574
  start_hour: 0,
572
575
  start_minute: 0,
@@ -574,7 +577,7 @@ var newMasterFixedSchedulePayload = () => ({
574
577
  end_minute: 0,
575
578
  schedule_plan_start_date: "",
576
579
  schedule_plan_end_date: "",
577
- sunday: "Yes" /* Yes */,
580
+ sunday: "No" /* No */,
578
581
  monday: "Yes" /* Yes */,
579
582
  tuesday: "Yes" /* Yes */,
580
583
  wednesday: "Yes" /* Yes */,
@@ -583,14 +586,17 @@ var newMasterFixedSchedulePayload = () => ({
583
586
  saturday: "Yes" /* Yes */,
584
587
  vehicle_id: "",
585
588
  driver_id: "",
586
- attendant_id: ""
589
+ attendant_id: "",
590
+ status: "Active" /* Active */,
591
+ time_zone_id: ""
592
+ // Needs to be provided manually
587
593
  });
588
594
  var toMasterRouteStopPayload = (row) => ({
589
- organisation_id: row.organisation_id,
590
- organisation_branch_id: row.organisation_branch_id,
591
- route_id: row.route_id,
592
- leg: row.leg,
593
- status: row.status,
595
+ organisation_id: row.organisation_id || "",
596
+ organisation_branch_id: row.organisation_branch_id || "",
597
+ route_id: row.route_id || "",
598
+ leg: row.leg || "Pickup" /* Pickup */,
599
+ status: row.status || "Active" /* Active */,
594
600
  MasterRouteStop: []
595
601
  });
596
602
  var newMasterRouteStopPayload = () => ({
@@ -602,13 +608,13 @@ var newMasterRouteStopPayload = () => ({
602
608
  MasterRouteStop: []
603
609
  });
604
610
  var toMasterRouteStopReorderPayload = (row) => ({
605
- route_id: row.route_id ?? "",
606
- leg: row.leg,
611
+ route_id: row.route_id || "",
612
+ leg: row.leg || "Pickup" /* Pickup */,
607
613
  MasterRouteStopIds: []
608
614
  });
609
615
  var toMasterRouteStudentAssignPayload = (row) => ({
610
- route_id: row.route_id ?? "",
611
- student_ids: Array.isArray(row.student_ids) ? row.student_ids : []
616
+ route_id: row.route_id || "",
617
+ student_ids: []
612
618
  });
613
619
  var newMasterRouteStudentAssignPayload = () => ({
614
620
  route_id: "",
@@ -1,13 +1,14 @@
1
1
  import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } 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-CqR_hga1.js';
5
5
  import '../../../zod_utils/zod_base_schema.js';
6
6
  import '../../master/main/master_main_sim_provider_service.js';
7
7
 
8
8
  interface OrganisationNoticeBoard extends Record<string, unknown> {
9
9
  notice_id: string;
10
10
  notice_date_time: string;
11
+ notice_date_time_f: string;
11
12
  notice_subject: string;
12
13
  notice_description?: string;
13
14
  status: Status;
@@ -26,10 +27,12 @@ declare const OrganisationNoticeBoardSchema: z.ZodObject<{
26
27
  notice_subject: z.ZodEffects<z.ZodString, string, string>;
27
28
  notice_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
28
29
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
30
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
29
31
  }, "strip", z.ZodTypeAny, {
30
32
  status: Status;
31
33
  organisation_id: string;
32
34
  organisation_branch_id: string;
35
+ time_zone_id: string;
33
36
  notice_date_time: string;
34
37
  notice_subject: string;
35
38
  notice_description: string;
@@ -37,6 +40,7 @@ declare const OrganisationNoticeBoardSchema: z.ZodObject<{
37
40
  status: Status;
38
41
  organisation_id: string;
39
42
  organisation_branch_id: string;
43
+ time_zone_id: string;
40
44
  notice_date_time: string;
41
45
  notice_subject: string;
42
46
  notice_description?: string | undefined;
@@ -73,9 +77,9 @@ declare const OrganisationNoticeBoardQuerySchema: z.ZodObject<{
73
77
  date_format_id: z.ZodEffects<z.ZodString, string, string>;
74
78
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
75
79
  } & {
80
+ notice_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
76
81
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
77
82
  organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
78
- notice_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
79
83
  }, "strip", z.ZodTypeAny, {
80
84
  status: Status[];
81
85
  search: string;
@@ -279,23 +279,27 @@ var OrganisationNoticeBoardSchema = z3.object({
279
279
  notice_date_time: dateMandatory("Notice Date Time"),
280
280
  notice_subject: stringMandatory("Notice Subject", 3, 100),
281
281
  notice_description: stringOptional("Notice Description", 0, 500),
282
- status: enumMandatory("Status", Status, "Active" /* Active */)
282
+ // Other
283
+ status: enumMandatory("Status", Status, "Active" /* Active */),
284
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
283
285
  });
284
286
  var OrganisationNoticeBoardQuerySchema = BaseQuerySchema.extend({
287
+ notice_ids: multi_select_optional("OrganisationNoticeBoard"),
288
+ // ✅ Multi-selection -> OrganisationNoticeBoard
285
289
  organisation_ids: multi_select_optional("UserOrganisation"),
286
290
  // ✅ Multi-selection -> UserOrganisation
287
- organisation_branch_ids: multi_select_optional("OrganisationBranch"),
291
+ organisation_branch_ids: multi_select_optional("OrganisationBranch")
288
292
  // ✅ Multi-selection -> OrganisationBranch
289
- notice_ids: multi_select_optional("OrganisationNoticeBoard")
290
- // ✅ Multi-selection -> OrganisationNoticeBoard
291
293
  });
292
294
  var toOrganisationNoticeBoardPayload = (row) => ({
293
- organisation_id: row.organisation_id,
294
- organisation_branch_id: row.organisation_branch_id ?? "",
295
- notice_date_time: row.notice_date_time,
296
- notice_subject: row.notice_subject,
297
- notice_description: row.notice_description ?? "",
298
- status: row.status
295
+ organisation_id: row.organisation_id || "",
296
+ organisation_branch_id: row.organisation_branch_id || "",
297
+ notice_date_time: row.notice_date_time || "",
298
+ notice_subject: row.notice_subject || "",
299
+ notice_description: row.notice_description || "",
300
+ status: row.status,
301
+ time_zone_id: ""
302
+ // Needs to be provided manually
299
303
  });
300
304
  var newOrganisationNoticeBoardPayload = () => ({
301
305
  organisation_id: "",
@@ -303,7 +307,9 @@ var newOrganisationNoticeBoardPayload = () => ({
303
307
  notice_date_time: "",
304
308
  notice_subject: "",
305
309
  notice_description: "",
306
- status: "Active" /* Active */
310
+ status: "Active" /* Active */,
311
+ time_zone_id: ""
312
+ // Needs to be provided manually
307
313
  });
308
314
  var findOrganisationNoticeBoard = async (data) => {
309
315
  return apiPost(ENDPOINTS.find, data);