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.
- package/dist/core/Enums.d.ts +18 -1
- package/dist/core/Enums.js +23 -0
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/bookmark_service.d.ts +1 -1
- package/dist/services/account/notification_preferences.service.d.ts +1 -1
- package/dist/services/account/report_preferences.service.d.ts +1 -1
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +13 -248
- package/dist/services/fleet/bus_mangement/bus_stop.js +9 -7
- package/dist/services/fleet/bus_mangement/calender.d.ts +6 -2
- package/dist/services/fleet/bus_mangement/calender.js +18 -12
- package/dist/services/fleet/bus_mangement/master_route.d.ts +251 -4
- package/dist/services/fleet/bus_mangement/master_route.js +58 -52
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +6 -2
- package/dist/services/fleet/bus_mangement/notice_board.js +17 -11
- package/dist/services/fleet/bus_mangement/student.d.ts +40 -27
- package/dist/services/fleet/bus_mangement/student.js +130 -105
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +20 -20
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +58 -58
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +16 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +308 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +16 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +501 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +697 -0
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +340 -0
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +48 -48
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +185 -52
- package/dist/services/fleet/service_management/fleet_service_management_service.js +86 -11
- package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +166 -0
- package/dist/services/fleet/service_management/fleet_service_schedule_service.js +338 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +1 -1
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +1 -1
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_admin_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +13 -1
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +4 -4
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +9 -9
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/faq_service.d.ts +1 -1
- package/dist/{user_organisation_service-KwfWBPXf.d.ts → user_organisation_service-BZaeiu6L.d.ts} +4 -1
- package/package.json +1 -1
package/dist/core/Enums.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ declare enum Status {
|
|
|
38
38
|
Active = "Active",
|
|
39
39
|
Inactive = "Inactive"
|
|
40
40
|
}
|
|
41
|
+
declare enum ReminderType {
|
|
42
|
+
Upcoming = "Upcoming",
|
|
43
|
+
OverDue = "OverDue"
|
|
44
|
+
}
|
|
41
45
|
declare enum ExpenseCategory {
|
|
42
46
|
Main = "Main",
|
|
43
47
|
Document = "Document",
|
|
@@ -222,6 +226,13 @@ declare enum InspectionStatus {
|
|
|
222
226
|
Cancelled = "Cancelled",
|
|
223
227
|
Failed = "Failed"
|
|
224
228
|
}
|
|
229
|
+
declare enum InspectionPriority {
|
|
230
|
+
Critical = "Critical",
|
|
231
|
+
High = "High",
|
|
232
|
+
Medium = "Medium",
|
|
233
|
+
Low = "Low",
|
|
234
|
+
NoPriority = "NoPriority"
|
|
235
|
+
}
|
|
225
236
|
declare enum ScheduleType {
|
|
226
237
|
OneTime = "OneTime",
|
|
227
238
|
Recurring = "Recurring"
|
|
@@ -365,6 +376,12 @@ declare enum GPSSource {
|
|
|
365
376
|
Protocol = "Protocol",
|
|
366
377
|
NoDevice = "NoDevice"
|
|
367
378
|
}
|
|
379
|
+
declare enum GPSVehicleCategory {
|
|
380
|
+
ALL = "ALL",
|
|
381
|
+
Moving = "Moving",
|
|
382
|
+
Stopped = "Stopped",
|
|
383
|
+
AwaitingGPS = "AwaitingGPS"
|
|
384
|
+
}
|
|
368
385
|
declare enum TicketStatus {
|
|
369
386
|
Open = "Open",
|
|
370
387
|
InProgress = "InProgress",
|
|
@@ -773,4 +790,4 @@ declare enum IncidentVisibility {
|
|
|
773
790
|
Unknown = "Unknown"
|
|
774
791
|
}
|
|
775
792
|
|
|
776
|
-
export { AdminRole, AlertSubType, AlertType, ApprovalStatus, BillingStatus, BooleanType, BusLeg, BusStopType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, DriverType, EnrollmentStatus, ExpenseCategory, ExpiryType, FileType, FleetSize, FleetVendorAddressLabel, FuelTankType, GPSFuelApproveStatus, GPSSource, GPSType, GeofencePurposeType, GeofenceStatusType, GeofenceType, HolidayType, IncidentRoadType, IncidentTime, IncidentVisibility, IncidentWeather, InspectionActionStatus, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoanInterestType, LoginFrom, MenuType, Module, NightDriving, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceStatus, ServiceType, ShareChannel, SimStatus, Status, SteeringType, StockType, StudentLeaveType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TransportPlanType, TyreStatus, VehicleLifeStatus, VerifyStatus, WheelDriveType, YesNo };
|
|
793
|
+
export { AdminRole, AlertSubType, AlertType, ApprovalStatus, BillingStatus, BooleanType, BusLeg, BusStopType, DeviceStatus, DeviceType, DocumentStatus, DocumentType, DocumentValidityStatus, DoorSensorStatus, DriverType, EnrollmentStatus, ExpenseCategory, ExpiryType, FileType, FleetSize, FleetVendorAddressLabel, FuelTankType, GPSFuelApproveStatus, GPSSource, GPSType, GPSVehicleCategory, GeofencePurposeType, GeofenceStatusType, GeofenceType, HolidayType, IncidentRoadType, IncidentTime, IncidentVisibility, IncidentWeather, InspectionActionStatus, InspectionPriority, InspectionStatus, InspectionType, Is12AM, IssueSeverity, IssueSource, IssueStatus, JobCardStatus, LifeExpiry, LinkStatus, LinkType, LoadChild, LoadChildCount, LoadParents, LoanInterestType, LoginFrom, MenuType, Module, NightDriving, NotificationChannel, NotificationList, NotificationPreference, OdometerSource, OnOff, OrderBy, OverSpeed, PAGING, PaymentMode, PaymentStatus, Priority, PurchaseOrderStatus, PurchaseType, PurchaseVehicleType, RecurrenceInterval, RefillEntrySource, RefillMethod, ReminderSource, ReminderStatus, ReminderTriggerType, ReminderType, ReportChannel, ReportList, ReportType, RequestType, RetreadingMethod, ScheduleStatus, ScheduleType, ServiceStatus, ServiceType, ShareChannel, SimStatus, Status, SteeringType, StockType, StudentLeaveType, TicketStatus, TimeSlot, TrackHistoryLinkStatus, TransportPlanType, TyreStatus, VehicleLifeStatus, VerifyStatus, WheelDriveType, YesNo };
|
package/dist/core/Enums.js
CHANGED
|
@@ -47,6 +47,11 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
47
47
|
Status2["Inactive"] = "Inactive";
|
|
48
48
|
return Status2;
|
|
49
49
|
})(Status || {});
|
|
50
|
+
var ReminderType = /* @__PURE__ */ ((ReminderType2) => {
|
|
51
|
+
ReminderType2["Upcoming"] = "Upcoming";
|
|
52
|
+
ReminderType2["OverDue"] = "OverDue";
|
|
53
|
+
return ReminderType2;
|
|
54
|
+
})(ReminderType || {});
|
|
50
55
|
var ExpenseCategory = /* @__PURE__ */ ((ExpenseCategory2) => {
|
|
51
56
|
ExpenseCategory2["Main"] = "Main";
|
|
52
57
|
ExpenseCategory2["Document"] = "Document";
|
|
@@ -262,6 +267,14 @@ var InspectionStatus = /* @__PURE__ */ ((InspectionStatus2) => {
|
|
|
262
267
|
InspectionStatus2["Failed"] = "Failed";
|
|
263
268
|
return InspectionStatus2;
|
|
264
269
|
})(InspectionStatus || {});
|
|
270
|
+
var InspectionPriority = /* @__PURE__ */ ((InspectionPriority2) => {
|
|
271
|
+
InspectionPriority2["Critical"] = "Critical";
|
|
272
|
+
InspectionPriority2["High"] = "High";
|
|
273
|
+
InspectionPriority2["Medium"] = "Medium";
|
|
274
|
+
InspectionPriority2["Low"] = "Low";
|
|
275
|
+
InspectionPriority2["NoPriority"] = "NoPriority";
|
|
276
|
+
return InspectionPriority2;
|
|
277
|
+
})(InspectionPriority || {});
|
|
265
278
|
var ScheduleType = /* @__PURE__ */ ((ScheduleType2) => {
|
|
266
279
|
ScheduleType2["OneTime"] = "OneTime";
|
|
267
280
|
ScheduleType2["Recurring"] = "Recurring";
|
|
@@ -424,6 +437,13 @@ var GPSSource = /* @__PURE__ */ ((GPSSource2) => {
|
|
|
424
437
|
GPSSource2["NoDevice"] = "NoDevice";
|
|
425
438
|
return GPSSource2;
|
|
426
439
|
})(GPSSource || {});
|
|
440
|
+
var GPSVehicleCategory = /* @__PURE__ */ ((GPSVehicleCategory2) => {
|
|
441
|
+
GPSVehicleCategory2["ALL"] = "ALL";
|
|
442
|
+
GPSVehicleCategory2["Moving"] = "Moving";
|
|
443
|
+
GPSVehicleCategory2["Stopped"] = "Stopped";
|
|
444
|
+
GPSVehicleCategory2["AwaitingGPS"] = "AwaitingGPS";
|
|
445
|
+
return GPSVehicleCategory2;
|
|
446
|
+
})(GPSVehicleCategory || {});
|
|
427
447
|
var TicketStatus = /* @__PURE__ */ ((TicketStatus2) => {
|
|
428
448
|
TicketStatus2["Open"] = "Open";
|
|
429
449
|
TicketStatus2["InProgress"] = "InProgress";
|
|
@@ -895,6 +915,7 @@ export {
|
|
|
895
915
|
GPSFuelApproveStatus,
|
|
896
916
|
GPSSource,
|
|
897
917
|
GPSType,
|
|
918
|
+
GPSVehicleCategory,
|
|
898
919
|
GeofencePurposeType,
|
|
899
920
|
GeofenceStatusType,
|
|
900
921
|
GeofenceType,
|
|
@@ -904,6 +925,7 @@ export {
|
|
|
904
925
|
IncidentVisibility,
|
|
905
926
|
IncidentWeather,
|
|
906
927
|
InspectionActionStatus,
|
|
928
|
+
InspectionPriority,
|
|
907
929
|
InspectionStatus,
|
|
908
930
|
InspectionType,
|
|
909
931
|
Is12AM,
|
|
@@ -942,6 +964,7 @@ export {
|
|
|
942
964
|
ReminderSource,
|
|
943
965
|
ReminderStatus,
|
|
944
966
|
ReminderTriggerType,
|
|
967
|
+
ReminderType,
|
|
945
968
|
ReportChannel,
|
|
946
969
|
ReportList,
|
|
947
970
|
ReportType,
|
|
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
user_id: string;
|
|
24
24
|
organisation_id: string;
|
|
25
|
-
login_from: LoginFrom;
|
|
26
25
|
country_id: string;
|
|
26
|
+
login_from: LoginFrom;
|
|
27
27
|
os_details: Record<string, any>;
|
|
28
28
|
ip_details: Record<string, any>;
|
|
29
29
|
}, {
|
|
30
30
|
user_id: string;
|
|
31
31
|
organisation_id: string;
|
|
32
|
-
login_from: LoginFrom;
|
|
33
32
|
country_id: string;
|
|
33
|
+
login_from: LoginFrom;
|
|
34
34
|
os_details?: Record<string, any> | undefined;
|
|
35
35
|
ip_details?: Record<string, any> | undefined;
|
|
36
36
|
}>;
|
|
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
login_from: LoginFrom;
|
|
51
52
|
search: string;
|
|
52
53
|
paging: PAGING;
|
|
53
54
|
page_count: number;
|
|
54
55
|
page_index: number;
|
|
55
|
-
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
|
|
|
43
43
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
44
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
login_from: LoginFrom;
|
|
46
47
|
search: string;
|
|
47
48
|
paging: PAGING;
|
|
48
49
|
page_count: number;
|
|
49
50
|
page_index: number;
|
|
50
|
-
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MenuType, 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, a as User } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, a as User } from '../../user_organisation_service-BZaeiu6L.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnOff, NotificationChannel, YesNo, NotificationList, Status, 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, M as MasterVehicle, a as User } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, a as User } from '../../user_organisation_service-BZaeiu6L.js';
|
|
5
5
|
import { GPSGeofence } from '../gps/features/geofence/gps_geofence_service.js';
|
|
6
6
|
import '../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnOff, ReportType, ReportList, ReportChannel, YesNo, Status, 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, M as MasterVehicle } from '../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../user_organisation_service-BZaeiu6L.js';
|
|
5
5
|
import '../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -2,6 +2,6 @@ import '../../core/Enums.js';
|
|
|
2
2
|
import '../../core/BaseResponse.js';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '../../zod_utils/zod_base_schema.js';
|
|
5
|
-
import '../../user_organisation_service-
|
|
5
|
+
import '../../user_organisation_service-BZaeiu6L.js';
|
|
6
6
|
export { T as Ticket, e as TicketDTO, a as TicketFile, c as TicketFileDTO, b as TicketFileSchema, i as TicketQueryDTO, h as TicketQuerySchema, d as TicketSchema, g as TicketVerifyDTO, f as TicketVerifySchema, l as createTicket, q as createTicketFile, o as deleteTicket, k as findTickets, p as getTicketFilePresignedUrl, n as newTicketPayload, r as removeTicketFile, t as toTicketPayload, j as toVerifyTicketPayload, u as updateTicket, m as updateVerifyStatus } from '../main/users/user_admin_service.js';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
@@ -1,250 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import '../../../core/Enums.js';
|
|
2
|
+
import '../../../core/BaseResponse.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
import '../../../user_organisation_service-BZaeiu6L.js';
|
|
5
|
+
export { a as BusStop, e as BusStopDTO, B as BusStopPolygonData, c as BusStopPolygonDataDTO, b as BusStopPolygonDataSchema, g as BusStopQueryDTO, f as BusStopQuerySchema, d as BusStopSchema, i as createBusStop, j as deleteBusStop, h as findBusStop, n as newBusStopPayload, t as toBusStopPayload, u as updateBusStop } from './master_route.js';
|
|
5
6
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
7
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
stop_code?: string;
|
|
16
|
-
stop_type: BusStopType;
|
|
17
|
-
stop_description?: string;
|
|
18
|
-
stop_duration_seconds?: number;
|
|
19
|
-
address_line1?: string;
|
|
20
|
-
address_line2?: string;
|
|
21
|
-
locality_landmark?: string;
|
|
22
|
-
neighborhood?: string;
|
|
23
|
-
town_city?: string;
|
|
24
|
-
district_county?: string;
|
|
25
|
-
state_province_region?: string;
|
|
26
|
-
postal_code?: string;
|
|
27
|
-
country?: string;
|
|
28
|
-
country_code?: string;
|
|
29
|
-
google_location?: string;
|
|
30
|
-
geofence_type: GeofenceType;
|
|
31
|
-
stop_latitude?: number;
|
|
32
|
-
stop_longitude?: number;
|
|
33
|
-
radius_meters?: number;
|
|
34
|
-
radius_km?: number;
|
|
35
|
-
polygon_data?: BusStopPolygonData[];
|
|
36
|
-
status: Status;
|
|
37
|
-
added_date_time: string;
|
|
38
|
-
modified_date_time: string;
|
|
39
|
-
organisation_id: string;
|
|
40
|
-
UserOrganisation?: UserOrganisation;
|
|
41
|
-
organisation_branch_id?: string;
|
|
42
|
-
OrganisationBranch?: OrganisationBranch;
|
|
43
|
-
_count?: Record<string, number>;
|
|
44
|
-
}
|
|
45
|
-
declare const BusStopPolygonDataSchema: z.ZodObject<{
|
|
46
|
-
latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
47
|
-
longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
latitude: number;
|
|
50
|
-
longitude: number;
|
|
51
|
-
}, {
|
|
52
|
-
latitude?: unknown;
|
|
53
|
-
longitude?: unknown;
|
|
54
|
-
}>;
|
|
55
|
-
type BusStopPolygonDataDTO = z.infer<typeof BusStopPolygonDataSchema>;
|
|
56
|
-
declare const BusStopSchema: z.ZodObject<{
|
|
57
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
58
|
-
organisation_branch_id: z.ZodEffects<z.ZodString, string, string>;
|
|
59
|
-
stop_name: z.ZodEffects<z.ZodString, string, string>;
|
|
60
|
-
stop_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
61
|
-
stop_type: z.ZodType<BusStopType, z.ZodTypeDef, BusStopType>;
|
|
62
|
-
stop_description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
63
|
-
stop_duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
64
|
-
address_line1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
65
|
-
address_line2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
66
|
-
locality_landmark: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
67
|
-
neighborhood: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
68
|
-
town_city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
69
|
-
district_county: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
70
|
-
state_province_region: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
71
|
-
postal_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
72
|
-
country: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
73
|
-
country_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
74
|
-
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
75
|
-
geofence_type: z.ZodType<GeofenceType, z.ZodTypeDef, GeofenceType>;
|
|
76
|
-
stop_latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
77
|
-
stop_longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
78
|
-
radius_meters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
79
|
-
radius_km: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
80
|
-
polygon_data: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
-
latitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
82
|
-
longitude: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
|
|
83
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
84
|
-
latitude: number;
|
|
85
|
-
longitude: number;
|
|
86
|
-
}, {
|
|
87
|
-
latitude?: unknown;
|
|
88
|
-
longitude?: unknown;
|
|
89
|
-
}>, "many">>>;
|
|
90
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
stop_name: string;
|
|
93
|
-
stop_code: string;
|
|
94
|
-
stop_type: BusStopType;
|
|
95
|
-
stop_description: string;
|
|
96
|
-
stop_duration_seconds: number;
|
|
97
|
-
address_line1: string;
|
|
98
|
-
address_line2: string;
|
|
99
|
-
locality_landmark: string;
|
|
100
|
-
neighborhood: string;
|
|
101
|
-
town_city: string;
|
|
102
|
-
district_county: string;
|
|
103
|
-
state_province_region: string;
|
|
104
|
-
postal_code: string;
|
|
105
|
-
country: string;
|
|
106
|
-
country_code: string;
|
|
107
|
-
google_location: string;
|
|
108
|
-
geofence_type: GeofenceType;
|
|
109
|
-
polygon_data: {
|
|
110
|
-
latitude: number;
|
|
111
|
-
longitude: number;
|
|
112
|
-
}[];
|
|
113
|
-
status: Status;
|
|
114
|
-
organisation_id: string;
|
|
115
|
-
organisation_branch_id: string;
|
|
116
|
-
stop_latitude?: number | undefined;
|
|
117
|
-
stop_longitude?: number | undefined;
|
|
118
|
-
radius_meters?: number | undefined;
|
|
119
|
-
radius_km?: number | undefined;
|
|
120
|
-
}, {
|
|
121
|
-
stop_name: string;
|
|
122
|
-
stop_type: BusStopType;
|
|
123
|
-
geofence_type: GeofenceType;
|
|
124
|
-
status: Status;
|
|
125
|
-
organisation_id: string;
|
|
126
|
-
organisation_branch_id: string;
|
|
127
|
-
stop_code?: string | undefined;
|
|
128
|
-
stop_description?: string | undefined;
|
|
129
|
-
stop_duration_seconds?: unknown;
|
|
130
|
-
address_line1?: string | undefined;
|
|
131
|
-
address_line2?: string | undefined;
|
|
132
|
-
locality_landmark?: string | undefined;
|
|
133
|
-
neighborhood?: string | undefined;
|
|
134
|
-
town_city?: string | undefined;
|
|
135
|
-
district_county?: string | undefined;
|
|
136
|
-
state_province_region?: string | undefined;
|
|
137
|
-
postal_code?: string | undefined;
|
|
138
|
-
country?: string | undefined;
|
|
139
|
-
country_code?: string | undefined;
|
|
140
|
-
google_location?: string | undefined;
|
|
141
|
-
stop_latitude?: unknown;
|
|
142
|
-
stop_longitude?: unknown;
|
|
143
|
-
radius_meters?: unknown;
|
|
144
|
-
radius_km?: unknown;
|
|
145
|
-
polygon_data?: {
|
|
146
|
-
latitude?: unknown;
|
|
147
|
-
longitude?: unknown;
|
|
148
|
-
}[] | undefined;
|
|
149
|
-
}>;
|
|
150
|
-
type BusStopDTO = z.infer<typeof BusStopSchema>;
|
|
151
|
-
declare const BusStopQuerySchema: z.ZodObject<{
|
|
152
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
153
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
154
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
155
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
156
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
157
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
158
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
159
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
160
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
161
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
162
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
163
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
164
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
165
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
166
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
167
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
168
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
169
|
-
}, "strip", z.ZodTypeAny, {
|
|
170
|
-
name: string;
|
|
171
|
-
field: string;
|
|
172
|
-
direction: OrderBy;
|
|
173
|
-
}, {
|
|
174
|
-
name: string;
|
|
175
|
-
field: string;
|
|
176
|
-
direction: OrderBy;
|
|
177
|
-
}>, "many">>>;
|
|
178
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
179
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
180
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
181
|
-
} & {
|
|
182
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
183
|
-
organisation_branch_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
184
|
-
bus_stop_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
185
|
-
stop_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof BusStopType>, "many">>>;
|
|
186
|
-
geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
|
|
187
|
-
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
stop_type: BusStopType[];
|
|
189
|
-
geofence_type: GeofenceType[];
|
|
190
|
-
status: Status[];
|
|
191
|
-
search: string;
|
|
192
|
-
paging: PAGING;
|
|
193
|
-
page_count: number;
|
|
194
|
-
page_index: number;
|
|
195
|
-
load_parents: LoadParents;
|
|
196
|
-
load_parents_list: string[];
|
|
197
|
-
load_child: LoadChild;
|
|
198
|
-
load_child_list: string[];
|
|
199
|
-
load_child_count: LoadChildCount;
|
|
200
|
-
load_child_count_list: string[];
|
|
201
|
-
include_details: Record<string, any>;
|
|
202
|
-
where_relations: Record<string, any>;
|
|
203
|
-
order_by: {
|
|
204
|
-
name: string;
|
|
205
|
-
field: string;
|
|
206
|
-
direction: OrderBy;
|
|
207
|
-
}[];
|
|
208
|
-
include_master_data: YesNo;
|
|
209
|
-
date_format_id: string;
|
|
210
|
-
time_zone_id: string;
|
|
211
|
-
organisation_ids: string[];
|
|
212
|
-
organisation_branch_ids: string[];
|
|
213
|
-
bus_stop_ids: string[];
|
|
214
|
-
}, {
|
|
215
|
-
date_format_id: string;
|
|
216
|
-
time_zone_id: string;
|
|
217
|
-
stop_type?: BusStopType[] | undefined;
|
|
218
|
-
geofence_type?: GeofenceType[] | undefined;
|
|
219
|
-
status?: Status[] | undefined;
|
|
220
|
-
search?: string | undefined;
|
|
221
|
-
paging?: PAGING | undefined;
|
|
222
|
-
page_count?: unknown;
|
|
223
|
-
page_index?: unknown;
|
|
224
|
-
load_parents?: LoadParents | undefined;
|
|
225
|
-
load_parents_list?: string[] | undefined;
|
|
226
|
-
load_child?: LoadChild | undefined;
|
|
227
|
-
load_child_list?: string[] | undefined;
|
|
228
|
-
load_child_count?: LoadChildCount | undefined;
|
|
229
|
-
load_child_count_list?: string[] | undefined;
|
|
230
|
-
include_details?: Record<string, any> | undefined;
|
|
231
|
-
where_relations?: Record<string, any> | undefined;
|
|
232
|
-
order_by?: {
|
|
233
|
-
name: string;
|
|
234
|
-
field: string;
|
|
235
|
-
direction: OrderBy;
|
|
236
|
-
}[] | undefined;
|
|
237
|
-
include_master_data?: YesNo | undefined;
|
|
238
|
-
organisation_ids?: string[] | undefined;
|
|
239
|
-
organisation_branch_ids?: string[] | undefined;
|
|
240
|
-
bus_stop_ids?: string[] | undefined;
|
|
241
|
-
}>;
|
|
242
|
-
type BusStopQueryDTO = z.infer<typeof BusStopQuerySchema>;
|
|
243
|
-
declare const toBusStopPayload: (row: BusStop) => BusStopDTO;
|
|
244
|
-
declare const newBusStopPayload: () => BusStopDTO;
|
|
245
|
-
declare const findBusStop: (data: BusStopQueryDTO) => Promise<FBR<BusStop[]>>;
|
|
246
|
-
declare const createBusStop: (data: BusStopDTO) => Promise<SBR>;
|
|
247
|
-
declare const updateBusStop: (id: string, data: BusStopDTO) => Promise<SBR>;
|
|
248
|
-
declare const deleteBusStop: (id: string) => Promise<SBR>;
|
|
249
|
-
|
|
250
|
-
export { type BusStop, type BusStopDTO, type BusStopPolygonData, type BusStopPolygonDataDTO, BusStopPolygonDataSchema, type BusStopQueryDTO, BusStopQuerySchema, BusStopSchema, createBusStop, deleteBusStop, findBusStop, newBusStopPayload, toBusStopPayload, updateBusStop };
|
|
8
|
+
import './student.js';
|
|
9
|
+
import '../../master/bus/master_class_service.js';
|
|
10
|
+
import '../../master/bus/master_program_service.js';
|
|
11
|
+
import '../../master/bus/master_section_service.js';
|
|
12
|
+
import '../../master/bus/master_semester_service.js';
|
|
13
|
+
import '../../master/bus/master_stream_service.js';
|
|
14
|
+
import '../../master/bus/master_year_service.js';
|
|
15
|
+
import '../../master/bus/master_relationship_service.js';
|
|
@@ -324,11 +324,13 @@ var BusStopSchema = z3.object({
|
|
|
324
324
|
// ✅ Single-Selection -> UserOrganisation
|
|
325
325
|
organisation_branch_id: single_select_optional("OrganisationBranch"),
|
|
326
326
|
// ✅ Single-Selection -> OrganisationBranch
|
|
327
|
+
// Basic Info
|
|
327
328
|
stop_name: stringMandatory("Stop Name", 3, 120),
|
|
328
329
|
stop_code: stringOptional("Stop Code", 0, 50),
|
|
329
330
|
stop_type: enumMandatory("Stop Type", BusStopType, "FixedStop" /* FixedStop */),
|
|
330
331
|
stop_description: stringOptional("Stop Description", 0, 2e3),
|
|
331
332
|
stop_duration_seconds: numberOptional("Stop Duration Seconds"),
|
|
333
|
+
// Address
|
|
332
334
|
address_line1: stringOptional("Address Line 1", 0, 150),
|
|
333
335
|
address_line2: stringOptional("Address Line 2", 0, 150),
|
|
334
336
|
locality_landmark: stringOptional("Locality / Landmark", 0, 150),
|
|
@@ -357,12 +359,12 @@ var BusStopSchema = z3.object({
|
|
|
357
359
|
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
358
360
|
});
|
|
359
361
|
var BusStopQuerySchema = BaseQuerySchema.extend({
|
|
362
|
+
bus_stop_ids: multi_select_optional("BusStop"),
|
|
363
|
+
// ✅ Multi-selection -> BusStop
|
|
360
364
|
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
361
365
|
// ✅ Multi-selection -> UserOrganisation
|
|
362
366
|
organisation_branch_ids: multi_select_optional("OrganisationBranch"),
|
|
363
367
|
// ✅ Multi-selection -> OrganisationBranch
|
|
364
|
-
bus_stop_ids: multi_select_optional("BusStop"),
|
|
365
|
-
// ✅ Multi-selection -> BusStop
|
|
366
368
|
stop_type: enumArrayOptional(
|
|
367
369
|
"Stop Type",
|
|
368
370
|
BusStopType,
|
|
@@ -375,11 +377,11 @@ var BusStopQuerySchema = BaseQuerySchema.extend({
|
|
|
375
377
|
)
|
|
376
378
|
});
|
|
377
379
|
var toBusStopPayload = (row) => ({
|
|
378
|
-
organisation_id: row.organisation_id,
|
|
379
|
-
organisation_branch_id: row.organisation_branch_id
|
|
380
|
-
stop_name: row.stop_name,
|
|
380
|
+
organisation_id: row.organisation_id || "",
|
|
381
|
+
organisation_branch_id: row.organisation_branch_id || "",
|
|
382
|
+
stop_name: row.stop_name || "",
|
|
381
383
|
stop_code: row.stop_code || "",
|
|
382
|
-
stop_type: row.stop_type
|
|
384
|
+
stop_type: row.stop_type || "FixedStop" /* FixedStop */,
|
|
383
385
|
stop_description: row.stop_description || "",
|
|
384
386
|
stop_duration_seconds: row.stop_duration_seconds || 0,
|
|
385
387
|
address_line1: row.address_line1 || "",
|
|
@@ -393,7 +395,7 @@ var toBusStopPayload = (row) => ({
|
|
|
393
395
|
country: row.country || "",
|
|
394
396
|
country_code: row.country_code || "",
|
|
395
397
|
google_location: row.google_location || "",
|
|
396
|
-
geofence_type: row.geofence_type
|
|
398
|
+
geofence_type: row.geofence_type || "Circle" /* Circle */,
|
|
397
399
|
stop_latitude: row.stop_latitude || 0,
|
|
398
400
|
stop_longitude: row.stop_longitude || 0,
|
|
399
401
|
radius_meters: row.radius_meters || 0,
|
|
@@ -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-
|
|
4
|
+
import { U as UserOrganisation, O as OrganisationBranch } from '../../../user_organisation_service-BZaeiu6L.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
|
-
|
|
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
|
-
|
|
319
|
-
|
|
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);
|