vms-nest-prisma-api-document 300.0.0 → 310.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/services/account/bookmark_service.d.ts +1 -2
- package/dist/services/account/notification_preferences.service.d.ts +1 -2
- package/dist/services/account/report_preferences.service.d.ts +1 -2
- package/dist/services/account/ticket_service.d.ts +1 -2
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -11
- package/dist/services/fleet/bus_mangement/bus_stop.js +3 -2
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -3
- package/dist/services/fleet/bus_mangement/calender.js +3 -2
- package/dist/services/fleet/bus_mangement/master_route.d.ts +4 -1047
- package/dist/services/fleet/bus_mangement/master_route.js +8 -7
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +3 -3
- package/dist/services/fleet/bus_mangement/notice_board.js +3 -2
- package/dist/services/fleet/bus_mangement/student.d.ts +4 -1204
- package/dist/services/fleet/bus_mangement/student.js +19 -19
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +5 -6
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.js +16 -15
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +5 -467
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.js +13 -11
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +5 -395
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.js +13 -11
- package/dist/services/fleet/incident_management/incident_management_service.d.ts +1 -8
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.d.ts +1 -9
- package/dist/services/fleet/inspection_management/fleet_inspection_form_service.js +2 -1
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.d.ts +1 -9
- package/dist/services/fleet/inspection_management/fleet_inspection_management_service.js +15 -13
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.d.ts +5 -694
- package/dist/services/fleet/inspection_management/fleet_inspection_schedule_service.js +3 -2
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +1 -8
- package/dist/services/fleet/issue_management/issue_management_service.js +17 -16
- package/dist/services/fleet/service_management/fleet_service_management_service.d.ts +1 -2
- package/dist/services/fleet/service_management/fleet_service_management_service.js +24 -23
- package/dist/services/fleet/service_management/fleet_service_schedule_service.d.ts +4 -163
- package/dist/services/fleet/service_management/fleet_service_schedule_service.js +2 -1
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +1 -2
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +4 -3
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1 -2
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +18 -15
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +1 -2
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +4 -3
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +13 -14
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -7
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -8
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -3
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +1 -2
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +1 -2
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/main/devices/master_device_service.d.ts +1 -2
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -2
- package/dist/services/main/sims/master_sim_service.d.ts +1 -2
- package/dist/services/main/users/auth_service.d.ts +1 -2
- package/dist/services/main/users/user_admin_service.d.ts +1 -2
- package/dist/services/main/users/user_organisation_service.d.ts +1 -2
- package/dist/services/main/users/user_service.d.ts +1 -2
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -2
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -2
- package/dist/services/master/bus/master_class_service.d.ts +4 -130
- package/dist/services/master/bus/master_class_service.js +5 -3
- package/dist/services/master/bus/master_program_service.d.ts +4 -130
- package/dist/services/master/bus/master_program_service.js +5 -3
- package/dist/services/master/bus/master_relationship_service.d.ts +4 -130
- package/dist/services/master/bus/master_relationship_service.js +5 -3
- package/dist/services/master/bus/master_section_service.d.ts +4 -130
- package/dist/services/master/bus/master_section_service.js +5 -3
- package/dist/services/master/bus/master_semester_service.d.ts +4 -130
- package/dist/services/master/bus/master_semester_service.js +5 -3
- package/dist/services/master/bus/master_stream_service.d.ts +4 -130
- package/dist/services/master/bus/master_stream_service.js +5 -3
- package/dist/services/master/bus/master_year_service.d.ts +4 -130
- package/dist/services/master/bus/master_year_service.js +5 -3
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -2
- package/dist/services/master/device/master_device_manufacturer_service.js +5 -3
- package/dist/services/master/device/master_device_model_service.d.ts +1 -2
- package/dist/services/master/device/master_device_model_service.js +6 -4
- package/dist/services/master/device/master_device_type_service.d.ts +1 -2
- package/dist/services/master/device/master_device_type_service.js +8 -6
- package/dist/services/master/expense/master_expense_name_service.d.ts +4 -136
- package/dist/services/master/expense/master_expense_name_service.js +6 -4
- package/dist/services/master/expense/master_expense_type_service.d.ts +2 -3
- package/dist/services/master/expense/master_expense_type_service.js +5 -3
- package/dist/services/master/expense/master_fuel_company_service.d.ts +1 -2
- package/dist/services/master/expense/master_fuel_company_service.js +7 -5
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +1 -2
- package/dist/services/master/expense/master_vendor_document_type_service.js +6 -4
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +1 -2
- package/dist/services/master/expense/master_vendor_tag_service.js +6 -4
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -2
- package/dist/services/master/expense/master_vendor_type_service.js +6 -4
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +4 -128
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +5 -3
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +4 -128
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +5 -3
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +4 -128
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +5 -3
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +4 -128
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +5 -3
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -2
- package/dist/services/master/fleet/master_fleet_service_task_service.js +5 -3
- package/dist/services/master/main/master_main_country_service.d.ts +1 -2
- package/dist/services/master/main/master_main_country_service.js +6 -4
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -2
- package/dist/services/master/main/master_main_currency_service.js +7 -5
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -2
- package/dist/services/master/main/master_main_date_format_service.js +5 -3
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +3 -0
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +5 -3
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +3 -0
- package/dist/services/master/main/master_main_fasttag_bank_service.js +5 -3
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -2
- package/dist/services/master/main/master_main_industry_service.js +5 -3
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -2
- package/dist/services/master/main/master_main_landmark_service.js +13 -15
- package/dist/services/master/main/master_main_language_service.d.ts +1 -2
- package/dist/services/master/main/master_main_language_service.js +5 -3
- package/dist/services/master/main/master_main_sim_provider_service.d.ts +5 -116
- package/dist/services/master/main/master_main_sim_provider_service.js +5 -3
- package/dist/services/master/main/master_main_state_service.d.ts +1 -2
- package/dist/services/master/main/master_main_state_service.js +6 -4
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -2
- package/dist/services/master/main/master_main_timezone_service.js +9 -7
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +3 -4
- package/dist/services/master/main/master_main_unit_distance_service.js +5 -3
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -2
- package/dist/services/master/main/master_main_unit_mileage_service.js +5 -3
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -2
- package/dist/services/master/main/master_main_unit_volume_service.js +5 -3
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -2
- package/dist/services/master/organisation/organisation_branch_service.js +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -2
- package/dist/services/master/organisation/organisation_color_service.js +6 -4
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -2
- package/dist/services/master/organisation/organisation_group_service.js +2 -0
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -2
- package/dist/services/master/organisation/organisation_sub_company_service.js +6 -4
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -2
- package/dist/services/master/organisation/organisation_tag_service.js +5 -3
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -2
- package/dist/services/master/spare_part/master_spare_part_category_service.js +6 -4
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +15 -16
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +7 -5
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +3 -4
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +6 -4
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +3 -4
- package/dist/services/master/trip/master_trip_party_type_service.js +5 -3
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +5 -6
- package/dist/services/master/tyre/master_tyre_grade_service.js +5 -3
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -2
- package/dist/services/master/tyre/master_tyre_make_service.js +5 -3
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +9 -10
- package/dist/services/master/tyre/master_tyre_model_service.js +6 -4
- package/dist/services/master/user/master_user_role_service.d.ts +1 -2
- package/dist/services/master/user/master_user_role_service.js +5 -3
- package/dist/services/master/user/master_user_status_service.d.ts +1 -2
- package/dist/services/master/user/master_user_status_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_document_type_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +4 -130
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_make_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_model_service.js +6 -4
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +5 -3
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +6 -4
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -2
- package/dist/services/master/vehicle/master_vehicle_type_service.js +5 -3
- package/dist/{user_organisation_service-B2f6Wfhh.d.ts → user_organisation_service-XbbpZf5F.d.ts} +12276 -5302
- package/package.json +1 -1
- package/dist/issue_management_service-c-CppH3O.d.ts +0 -1290
|
@@ -1,131 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import '../../../core/Enums.js';
|
|
2
|
+
import '../../../core/BaseResponse.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
export { dW as MasterClass, dY as MasterClassDTO, d_ as MasterClassQueryDTO, dZ as MasterClassQuerySchema, dX as MasterClassSchema, e2 as createMasterClass, e4 as deleteMasterClass, e1 as findMasterClass, e5 as getMasterClassCache, e6 as getMasterClassCacheCount, e0 as newMasterClassPayload, d$ as toMasterClassPayload, e3 as updateMasterClass } from '../../../user_organisation_service-XbbpZf5F.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
|
-
import '../main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
interface MasterClass extends Record<string, unknown> {
|
|
9
|
-
class_id: string;
|
|
10
|
-
class_name: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: Status;
|
|
13
|
-
added_date_time: string;
|
|
14
|
-
modified_date_time: string;
|
|
15
|
-
organisation_id?: string;
|
|
16
|
-
UserOrganisation?: UserOrganisation;
|
|
17
|
-
Student: User[];
|
|
18
|
-
_count?: {
|
|
19
|
-
Student: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
declare const MasterClassSchema: z.ZodObject<{
|
|
23
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
-
class_name: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
-
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
26
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
status: Status;
|
|
29
|
-
organisation_id: string;
|
|
30
|
-
description: string;
|
|
31
|
-
class_name: string;
|
|
32
|
-
}, {
|
|
33
|
-
status: Status;
|
|
34
|
-
organisation_id: string;
|
|
35
|
-
class_name: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
type MasterClassDTO = z.infer<typeof MasterClassSchema>;
|
|
39
|
-
declare const MasterClassQuerySchema: z.ZodObject<{
|
|
40
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
42
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
43
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
44
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
45
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
46
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
48
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
50
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
51
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
52
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
53
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
name: string;
|
|
59
|
-
field: string;
|
|
60
|
-
direction: OrderBy;
|
|
61
|
-
}, {
|
|
62
|
-
name: string;
|
|
63
|
-
field: string;
|
|
64
|
-
direction: OrderBy;
|
|
65
|
-
}>, "many">>>;
|
|
66
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
67
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
68
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
} & {
|
|
70
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
71
|
-
class_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status: Status[];
|
|
74
|
-
time_zone_id: string;
|
|
75
|
-
search: string;
|
|
76
|
-
paging: PAGING;
|
|
77
|
-
page_count: number;
|
|
78
|
-
page_index: number;
|
|
79
|
-
load_parents: LoadParents;
|
|
80
|
-
load_parents_list: string[];
|
|
81
|
-
load_child: LoadChild;
|
|
82
|
-
load_child_list: string[];
|
|
83
|
-
load_child_count: LoadChildCount;
|
|
84
|
-
load_child_count_list: string[];
|
|
85
|
-
include_details: Record<string, any>;
|
|
86
|
-
where_relations: Record<string, any>;
|
|
87
|
-
order_by: {
|
|
88
|
-
name: string;
|
|
89
|
-
field: string;
|
|
90
|
-
direction: OrderBy;
|
|
91
|
-
}[];
|
|
92
|
-
include_master_data: YesNo;
|
|
93
|
-
date_format_id: string;
|
|
94
|
-
organisation_ids: string[];
|
|
95
|
-
class_ids: string[];
|
|
96
|
-
}, {
|
|
97
|
-
time_zone_id: string;
|
|
98
|
-
date_format_id: string;
|
|
99
|
-
status?: Status[] | undefined;
|
|
100
|
-
search?: string | undefined;
|
|
101
|
-
paging?: PAGING | undefined;
|
|
102
|
-
page_count?: unknown;
|
|
103
|
-
page_index?: unknown;
|
|
104
|
-
load_parents?: LoadParents | undefined;
|
|
105
|
-
load_parents_list?: string[] | undefined;
|
|
106
|
-
load_child?: LoadChild | undefined;
|
|
107
|
-
load_child_list?: string[] | undefined;
|
|
108
|
-
load_child_count?: LoadChildCount | undefined;
|
|
109
|
-
load_child_count_list?: string[] | undefined;
|
|
110
|
-
include_details?: Record<string, any> | undefined;
|
|
111
|
-
where_relations?: Record<string, any> | undefined;
|
|
112
|
-
order_by?: {
|
|
113
|
-
name: string;
|
|
114
|
-
field: string;
|
|
115
|
-
direction: OrderBy;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
include_master_data?: YesNo | undefined;
|
|
118
|
-
organisation_ids?: string[] | undefined;
|
|
119
|
-
class_ids?: string[] | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
type MasterClassQueryDTO = z.infer<typeof MasterClassQuerySchema>;
|
|
122
|
-
declare const toMasterClassPayload: (row: MasterClass) => MasterClassDTO;
|
|
123
|
-
declare const newMasterClassPayload: () => MasterClassDTO;
|
|
124
|
-
declare const findMasterClass: (data: MasterClassQueryDTO) => Promise<FBR<MasterClass[]>>;
|
|
125
|
-
declare const createMasterClass: (data: MasterClassDTO) => Promise<SBR>;
|
|
126
|
-
declare const updateMasterClass: (id: string, data: MasterClassDTO) => Promise<SBR>;
|
|
127
|
-
declare const deleteMasterClass: (id: string) => Promise<SBR>;
|
|
128
|
-
declare const getMasterClassCache: (organisation_id: string) => Promise<FBR<MasterClass[]>>;
|
|
129
|
-
declare const getMasterClassCacheCount: (organisation_id: string) => Promise<FBR<MasterClass>>;
|
|
130
|
-
|
|
131
|
-
export { type MasterClass, type MasterClassDTO, type MasterClassQueryDTO, MasterClassQuerySchema, MasterClassSchema, createMasterClass, deleteMasterClass, findMasterClass, getMasterClassCache, getMasterClassCacheCount, newMasterClassPayload, toMasterClassPayload, updateMasterClass };
|
|
@@ -249,10 +249,12 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
249
249
|
// src/services/master/bus/master_class_service.ts
|
|
250
250
|
var URL = "master/bus/class";
|
|
251
251
|
var ENDPOINTS = {
|
|
252
|
+
// MasterClass APIs
|
|
252
253
|
find: `${URL}/search`,
|
|
253
254
|
create: URL,
|
|
254
255
|
update: (id) => `${URL}/${id}`,
|
|
255
256
|
delete: (id) => `${URL}/${id}`,
|
|
257
|
+
// Cache APIs
|
|
256
258
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`,
|
|
257
259
|
cache_count: (organisation_id) => `${URL}/cache_count/${organisation_id}`
|
|
258
260
|
};
|
|
@@ -270,10 +272,10 @@ var MasterClassQuerySchema = BaseQuerySchema.extend({
|
|
|
270
272
|
// ✅ Multi-selection -> MasterClass
|
|
271
273
|
});
|
|
272
274
|
var toMasterClassPayload = (row) => ({
|
|
273
|
-
organisation_id: row.organisation_id
|
|
274
|
-
class_name: row.class_name,
|
|
275
|
+
organisation_id: row.organisation_id || "",
|
|
276
|
+
class_name: row.class_name || "",
|
|
275
277
|
description: row.description || "",
|
|
276
|
-
status: row.status
|
|
278
|
+
status: row.status || "Active" /* Active */
|
|
277
279
|
});
|
|
278
280
|
var newMasterClassPayload = () => ({
|
|
279
281
|
organisation_id: "",
|
|
@@ -1,131 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import '../../../core/Enums.js';
|
|
2
|
+
import '../../../core/BaseResponse.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
export { e7 as MasterProgram, e9 as MasterProgramDTO, eb as MasterProgramQueryDTO, ea as MasterProgramQuerySchema, e8 as MasterProgramSchema, ef as createMasterProgram, eh as deleteMasterProgram, ee as findMasterProgram, ei as getMasterProgramCache, ej as getMasterProgramCacheCount, ed as newMasterProgramPayload, ec as toMasterProgramPayload, eg as updateMasterProgram } from '../../../user_organisation_service-XbbpZf5F.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
|
-
import '../main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
interface MasterProgram extends Record<string, unknown> {
|
|
9
|
-
program_id: string;
|
|
10
|
-
program_name: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: Status;
|
|
13
|
-
added_date_time: string;
|
|
14
|
-
modified_date_time: string;
|
|
15
|
-
organisation_id?: string;
|
|
16
|
-
UserOrganisation?: UserOrganisation;
|
|
17
|
-
Student: User[];
|
|
18
|
-
_count?: {
|
|
19
|
-
Student: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
declare const MasterProgramSchema: z.ZodObject<{
|
|
23
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
-
program_name: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
-
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
26
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
status: Status;
|
|
29
|
-
organisation_id: string;
|
|
30
|
-
description: string;
|
|
31
|
-
program_name: string;
|
|
32
|
-
}, {
|
|
33
|
-
status: Status;
|
|
34
|
-
organisation_id: string;
|
|
35
|
-
program_name: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
type MasterProgramDTO = z.infer<typeof MasterProgramSchema>;
|
|
39
|
-
declare const MasterProgramQuerySchema: z.ZodObject<{
|
|
40
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
42
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
43
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
44
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
45
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
46
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
48
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
50
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
51
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
52
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
53
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
name: string;
|
|
59
|
-
field: string;
|
|
60
|
-
direction: OrderBy;
|
|
61
|
-
}, {
|
|
62
|
-
name: string;
|
|
63
|
-
field: string;
|
|
64
|
-
direction: OrderBy;
|
|
65
|
-
}>, "many">>>;
|
|
66
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
67
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
68
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
} & {
|
|
70
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
71
|
-
program_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status: Status[];
|
|
74
|
-
time_zone_id: string;
|
|
75
|
-
search: string;
|
|
76
|
-
paging: PAGING;
|
|
77
|
-
page_count: number;
|
|
78
|
-
page_index: number;
|
|
79
|
-
load_parents: LoadParents;
|
|
80
|
-
load_parents_list: string[];
|
|
81
|
-
load_child: LoadChild;
|
|
82
|
-
load_child_list: string[];
|
|
83
|
-
load_child_count: LoadChildCount;
|
|
84
|
-
load_child_count_list: string[];
|
|
85
|
-
include_details: Record<string, any>;
|
|
86
|
-
where_relations: Record<string, any>;
|
|
87
|
-
order_by: {
|
|
88
|
-
name: string;
|
|
89
|
-
field: string;
|
|
90
|
-
direction: OrderBy;
|
|
91
|
-
}[];
|
|
92
|
-
include_master_data: YesNo;
|
|
93
|
-
date_format_id: string;
|
|
94
|
-
organisation_ids: string[];
|
|
95
|
-
program_ids: string[];
|
|
96
|
-
}, {
|
|
97
|
-
time_zone_id: string;
|
|
98
|
-
date_format_id: string;
|
|
99
|
-
status?: Status[] | undefined;
|
|
100
|
-
search?: string | undefined;
|
|
101
|
-
paging?: PAGING | undefined;
|
|
102
|
-
page_count?: unknown;
|
|
103
|
-
page_index?: unknown;
|
|
104
|
-
load_parents?: LoadParents | undefined;
|
|
105
|
-
load_parents_list?: string[] | undefined;
|
|
106
|
-
load_child?: LoadChild | undefined;
|
|
107
|
-
load_child_list?: string[] | undefined;
|
|
108
|
-
load_child_count?: LoadChildCount | undefined;
|
|
109
|
-
load_child_count_list?: string[] | undefined;
|
|
110
|
-
include_details?: Record<string, any> | undefined;
|
|
111
|
-
where_relations?: Record<string, any> | undefined;
|
|
112
|
-
order_by?: {
|
|
113
|
-
name: string;
|
|
114
|
-
field: string;
|
|
115
|
-
direction: OrderBy;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
include_master_data?: YesNo | undefined;
|
|
118
|
-
organisation_ids?: string[] | undefined;
|
|
119
|
-
program_ids?: string[] | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
type MasterProgramQueryDTO = z.infer<typeof MasterProgramQuerySchema>;
|
|
122
|
-
declare const toMasterProgramPayload: (row: MasterProgram) => MasterProgramDTO;
|
|
123
|
-
declare const newMasterProgramPayload: () => MasterProgramDTO;
|
|
124
|
-
declare const findMasterProgram: (data: MasterProgramQueryDTO) => Promise<FBR<MasterProgram[]>>;
|
|
125
|
-
declare const createMasterProgram: (data: MasterProgramDTO) => Promise<SBR>;
|
|
126
|
-
declare const updateMasterProgram: (id: string, data: MasterProgramDTO) => Promise<SBR>;
|
|
127
|
-
declare const deleteMasterProgram: (id: string) => Promise<SBR>;
|
|
128
|
-
declare const getMasterProgramCache: (organisation_id: string) => Promise<FBR<MasterProgram[]>>;
|
|
129
|
-
declare const getMasterProgramCacheCount: (organisation_id: string) => Promise<FBR<MasterProgram>>;
|
|
130
|
-
|
|
131
|
-
export { type MasterProgram, type MasterProgramDTO, type MasterProgramQueryDTO, MasterProgramQuerySchema, MasterProgramSchema, createMasterProgram, deleteMasterProgram, findMasterProgram, getMasterProgramCache, getMasterProgramCacheCount, newMasterProgramPayload, toMasterProgramPayload, updateMasterProgram };
|
|
@@ -249,10 +249,12 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
249
249
|
// src/services/master/bus/master_program_service.ts
|
|
250
250
|
var URL = "master/bus/program";
|
|
251
251
|
var ENDPOINTS = {
|
|
252
|
+
// MasterProgram APIs
|
|
252
253
|
find: `${URL}/search`,
|
|
253
254
|
create: URL,
|
|
254
255
|
update: (id) => `${URL}/${id}`,
|
|
255
256
|
delete: (id) => `${URL}/${id}`,
|
|
257
|
+
// Cache APIs
|
|
256
258
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`,
|
|
257
259
|
cache_count: (organisation_id) => `${URL}/cache_count/${organisation_id}`
|
|
258
260
|
};
|
|
@@ -270,10 +272,10 @@ var MasterProgramQuerySchema = BaseQuerySchema.extend({
|
|
|
270
272
|
// ✅ Multi-selection -> MasterProgram
|
|
271
273
|
});
|
|
272
274
|
var toMasterProgramPayload = (row) => ({
|
|
273
|
-
organisation_id: row.organisation_id
|
|
274
|
-
program_name: row.program_name,
|
|
275
|
+
organisation_id: row.organisation_id || "",
|
|
276
|
+
program_name: row.program_name || "",
|
|
275
277
|
description: row.description || "",
|
|
276
|
-
status: row.status
|
|
278
|
+
status: row.status || "Active" /* Active */
|
|
277
279
|
});
|
|
278
280
|
var newMasterProgramPayload = () => ({
|
|
279
281
|
organisation_id: "",
|
|
@@ -1,131 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import '../../../core/Enums.js';
|
|
2
|
+
import '../../../core/BaseResponse.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
export { f8 as MasterRelationship, fa as MasterRelationshipDTO, fc as MasterRelationshipQueryDTO, fb as MasterRelationshipQuerySchema, f9 as MasterRelationshipSchema, fg as createMasterRelationship, fi as deleteMasterRelationship, ff as findMasterRelationship, fj as getMasterRelationshipCache, fk as getMasterRelationshipCacheCount, fe as newMasterRelationshipPayload, fd as toMasterRelationshipPayload, fh as updateMasterRelationship } from '../../../user_organisation_service-XbbpZf5F.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
|
-
import '../main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
interface MasterRelationship extends Record<string, unknown> {
|
|
9
|
-
relationship_id: string;
|
|
10
|
-
relationship_name: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: Status;
|
|
13
|
-
added_date_time: string;
|
|
14
|
-
modified_date_time: string;
|
|
15
|
-
organisation_id?: string;
|
|
16
|
-
UserOrganisation?: UserOrganisation;
|
|
17
|
-
StudentGuardianLink: User[];
|
|
18
|
-
_count?: {
|
|
19
|
-
StudentGuardianLink: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
declare const MasterRelationshipSchema: z.ZodObject<{
|
|
23
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
-
relationship_name: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
-
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
26
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
status: Status;
|
|
29
|
-
organisation_id: string;
|
|
30
|
-
description: string;
|
|
31
|
-
relationship_name: string;
|
|
32
|
-
}, {
|
|
33
|
-
status: Status;
|
|
34
|
-
organisation_id: string;
|
|
35
|
-
relationship_name: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
type MasterRelationshipDTO = z.infer<typeof MasterRelationshipSchema>;
|
|
39
|
-
declare const MasterRelationshipQuerySchema: z.ZodObject<{
|
|
40
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
42
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
43
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
44
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
45
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
46
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
48
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
50
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
51
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
52
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
53
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
name: string;
|
|
59
|
-
field: string;
|
|
60
|
-
direction: OrderBy;
|
|
61
|
-
}, {
|
|
62
|
-
name: string;
|
|
63
|
-
field: string;
|
|
64
|
-
direction: OrderBy;
|
|
65
|
-
}>, "many">>>;
|
|
66
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
67
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
68
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
} & {
|
|
70
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
71
|
-
relationship_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status: Status[];
|
|
74
|
-
time_zone_id: string;
|
|
75
|
-
search: string;
|
|
76
|
-
paging: PAGING;
|
|
77
|
-
page_count: number;
|
|
78
|
-
page_index: number;
|
|
79
|
-
load_parents: LoadParents;
|
|
80
|
-
load_parents_list: string[];
|
|
81
|
-
load_child: LoadChild;
|
|
82
|
-
load_child_list: string[];
|
|
83
|
-
load_child_count: LoadChildCount;
|
|
84
|
-
load_child_count_list: string[];
|
|
85
|
-
include_details: Record<string, any>;
|
|
86
|
-
where_relations: Record<string, any>;
|
|
87
|
-
order_by: {
|
|
88
|
-
name: string;
|
|
89
|
-
field: string;
|
|
90
|
-
direction: OrderBy;
|
|
91
|
-
}[];
|
|
92
|
-
include_master_data: YesNo;
|
|
93
|
-
date_format_id: string;
|
|
94
|
-
organisation_ids: string[];
|
|
95
|
-
relationship_ids: string[];
|
|
96
|
-
}, {
|
|
97
|
-
time_zone_id: string;
|
|
98
|
-
date_format_id: string;
|
|
99
|
-
status?: Status[] | undefined;
|
|
100
|
-
search?: string | undefined;
|
|
101
|
-
paging?: PAGING | undefined;
|
|
102
|
-
page_count?: unknown;
|
|
103
|
-
page_index?: unknown;
|
|
104
|
-
load_parents?: LoadParents | undefined;
|
|
105
|
-
load_parents_list?: string[] | undefined;
|
|
106
|
-
load_child?: LoadChild | undefined;
|
|
107
|
-
load_child_list?: string[] | undefined;
|
|
108
|
-
load_child_count?: LoadChildCount | undefined;
|
|
109
|
-
load_child_count_list?: string[] | undefined;
|
|
110
|
-
include_details?: Record<string, any> | undefined;
|
|
111
|
-
where_relations?: Record<string, any> | undefined;
|
|
112
|
-
order_by?: {
|
|
113
|
-
name: string;
|
|
114
|
-
field: string;
|
|
115
|
-
direction: OrderBy;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
include_master_data?: YesNo | undefined;
|
|
118
|
-
organisation_ids?: string[] | undefined;
|
|
119
|
-
relationship_ids?: string[] | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
type MasterRelationshipQueryDTO = z.infer<typeof MasterRelationshipQuerySchema>;
|
|
122
|
-
declare const toMasterRelationshipPayload: (row: MasterRelationship) => MasterRelationshipDTO;
|
|
123
|
-
declare const newMasterRelationshipPayload: () => MasterRelationshipDTO;
|
|
124
|
-
declare const findMasterRelationship: (data: MasterRelationshipQueryDTO) => Promise<FBR<MasterRelationship[]>>;
|
|
125
|
-
declare const createMasterRelationship: (data: MasterRelationshipDTO) => Promise<SBR>;
|
|
126
|
-
declare const updateMasterRelationship: (id: string, data: MasterRelationshipDTO) => Promise<SBR>;
|
|
127
|
-
declare const deleteMasterRelationship: (id: string) => Promise<SBR>;
|
|
128
|
-
declare const getMasterRelationshipCache: (organisation_id: string) => Promise<FBR<MasterRelationship[]>>;
|
|
129
|
-
declare const getMasterRelationshipCacheCount: (organisation_id: string) => Promise<FBR<MasterRelationship>>;
|
|
130
|
-
|
|
131
|
-
export { type MasterRelationship, type MasterRelationshipDTO, type MasterRelationshipQueryDTO, MasterRelationshipQuerySchema, MasterRelationshipSchema, createMasterRelationship, deleteMasterRelationship, findMasterRelationship, getMasterRelationshipCache, getMasterRelationshipCacheCount, newMasterRelationshipPayload, toMasterRelationshipPayload, updateMasterRelationship };
|
|
@@ -249,10 +249,12 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
249
249
|
// src/services/master/bus/master_relationship_service.ts
|
|
250
250
|
var URL = "master/bus/relationship";
|
|
251
251
|
var ENDPOINTS = {
|
|
252
|
+
// MasterRelationship APIs
|
|
252
253
|
find: `${URL}/search`,
|
|
253
254
|
create: URL,
|
|
254
255
|
update: (id) => `${URL}/${id}`,
|
|
255
256
|
delete: (id) => `${URL}/${id}`,
|
|
257
|
+
// Cache APIs
|
|
256
258
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`,
|
|
257
259
|
cache_count: (organisation_id) => `${URL}/cache_count/${organisation_id}`
|
|
258
260
|
};
|
|
@@ -270,10 +272,10 @@ var MasterRelationshipQuerySchema = BaseQuerySchema.extend({
|
|
|
270
272
|
// ✅ Multi-selection -> MasterRelationship
|
|
271
273
|
});
|
|
272
274
|
var toMasterRelationshipPayload = (row) => ({
|
|
273
|
-
organisation_id: row.organisation_id
|
|
274
|
-
relationship_name: row.relationship_name,
|
|
275
|
+
organisation_id: row.organisation_id || "",
|
|
276
|
+
relationship_name: row.relationship_name || "",
|
|
275
277
|
description: row.description || "",
|
|
276
|
-
status: row.status
|
|
278
|
+
status: row.status || "Active" /* Active */
|
|
277
279
|
});
|
|
278
280
|
var newMasterRelationshipPayload = () => ({
|
|
279
281
|
organisation_id: "",
|
|
@@ -1,131 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import '../../../core/Enums.js';
|
|
2
|
+
import '../../../core/BaseResponse.js';
|
|
3
|
+
import 'zod';
|
|
4
|
+
export { ek as MasterSection, em as MasterSectionDTO, eo as MasterSectionQueryDTO, en as MasterSectionQuerySchema, el as MasterSectionSchema, es as createMasterSection, eu as deleteMasterSection, er as findMasterSection, ev as getMasterSectionCache, ew as getMasterSectionCacheCount, eq as newMasterSectionPayload, ep as toMasterSectionPayload, et as updateMasterSection } from '../../../user_organisation_service-XbbpZf5F.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
|
-
import '../main/master_main_sim_provider_service.js';
|
|
7
|
-
|
|
8
|
-
interface MasterSection extends Record<string, unknown> {
|
|
9
|
-
section_id: string;
|
|
10
|
-
section_name: string;
|
|
11
|
-
description?: string;
|
|
12
|
-
status: Status;
|
|
13
|
-
added_date_time: string;
|
|
14
|
-
modified_date_time: string;
|
|
15
|
-
organisation_id?: string;
|
|
16
|
-
UserOrganisation?: UserOrganisation;
|
|
17
|
-
Student: User[];
|
|
18
|
-
_count?: {
|
|
19
|
-
Student: number;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
declare const MasterSectionSchema: z.ZodObject<{
|
|
23
|
-
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
24
|
-
section_name: z.ZodEffects<z.ZodString, string, string>;
|
|
25
|
-
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
26
|
-
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
27
|
-
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
status: Status;
|
|
29
|
-
organisation_id: string;
|
|
30
|
-
description: string;
|
|
31
|
-
section_name: string;
|
|
32
|
-
}, {
|
|
33
|
-
status: Status;
|
|
34
|
-
organisation_id: string;
|
|
35
|
-
section_name: string;
|
|
36
|
-
description?: string | undefined;
|
|
37
|
-
}>;
|
|
38
|
-
type MasterSectionDTO = z.infer<typeof MasterSectionSchema>;
|
|
39
|
-
declare const MasterSectionQuerySchema: z.ZodObject<{
|
|
40
|
-
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
|
-
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
42
|
-
paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
|
|
43
|
-
page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
44
|
-
page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
45
|
-
load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
|
|
46
|
-
load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
|
-
load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
|
|
48
|
-
load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
|
-
load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
|
|
50
|
-
load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
51
|
-
include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
52
|
-
where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
53
|
-
order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
-
name: z.ZodEffects<z.ZodString, string, string>;
|
|
55
|
-
field: z.ZodEffects<z.ZodString, string, string>;
|
|
56
|
-
direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
|
|
57
|
-
}, "strip", z.ZodTypeAny, {
|
|
58
|
-
name: string;
|
|
59
|
-
field: string;
|
|
60
|
-
direction: OrderBy;
|
|
61
|
-
}, {
|
|
62
|
-
name: string;
|
|
63
|
-
field: string;
|
|
64
|
-
direction: OrderBy;
|
|
65
|
-
}>, "many">>>;
|
|
66
|
-
include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
67
|
-
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
68
|
-
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
69
|
-
} & {
|
|
70
|
-
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
71
|
-
section_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
-
}, "strip", z.ZodTypeAny, {
|
|
73
|
-
status: Status[];
|
|
74
|
-
time_zone_id: string;
|
|
75
|
-
search: string;
|
|
76
|
-
paging: PAGING;
|
|
77
|
-
page_count: number;
|
|
78
|
-
page_index: number;
|
|
79
|
-
load_parents: LoadParents;
|
|
80
|
-
load_parents_list: string[];
|
|
81
|
-
load_child: LoadChild;
|
|
82
|
-
load_child_list: string[];
|
|
83
|
-
load_child_count: LoadChildCount;
|
|
84
|
-
load_child_count_list: string[];
|
|
85
|
-
include_details: Record<string, any>;
|
|
86
|
-
where_relations: Record<string, any>;
|
|
87
|
-
order_by: {
|
|
88
|
-
name: string;
|
|
89
|
-
field: string;
|
|
90
|
-
direction: OrderBy;
|
|
91
|
-
}[];
|
|
92
|
-
include_master_data: YesNo;
|
|
93
|
-
date_format_id: string;
|
|
94
|
-
organisation_ids: string[];
|
|
95
|
-
section_ids: string[];
|
|
96
|
-
}, {
|
|
97
|
-
time_zone_id: string;
|
|
98
|
-
date_format_id: string;
|
|
99
|
-
status?: Status[] | undefined;
|
|
100
|
-
search?: string | undefined;
|
|
101
|
-
paging?: PAGING | undefined;
|
|
102
|
-
page_count?: unknown;
|
|
103
|
-
page_index?: unknown;
|
|
104
|
-
load_parents?: LoadParents | undefined;
|
|
105
|
-
load_parents_list?: string[] | undefined;
|
|
106
|
-
load_child?: LoadChild | undefined;
|
|
107
|
-
load_child_list?: string[] | undefined;
|
|
108
|
-
load_child_count?: LoadChildCount | undefined;
|
|
109
|
-
load_child_count_list?: string[] | undefined;
|
|
110
|
-
include_details?: Record<string, any> | undefined;
|
|
111
|
-
where_relations?: Record<string, any> | undefined;
|
|
112
|
-
order_by?: {
|
|
113
|
-
name: string;
|
|
114
|
-
field: string;
|
|
115
|
-
direction: OrderBy;
|
|
116
|
-
}[] | undefined;
|
|
117
|
-
include_master_data?: YesNo | undefined;
|
|
118
|
-
organisation_ids?: string[] | undefined;
|
|
119
|
-
section_ids?: string[] | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
type MasterSectionQueryDTO = z.infer<typeof MasterSectionQuerySchema>;
|
|
122
|
-
declare const toMasterSectionPayload: (row: MasterSection) => MasterSectionDTO;
|
|
123
|
-
declare const newMasterSectionPayload: () => MasterSectionDTO;
|
|
124
|
-
declare const findMasterSection: (data: MasterSectionQueryDTO) => Promise<FBR<MasterSection[]>>;
|
|
125
|
-
declare const createMasterSection: (data: MasterSectionDTO) => Promise<SBR>;
|
|
126
|
-
declare const updateMasterSection: (id: string, data: MasterSectionDTO) => Promise<SBR>;
|
|
127
|
-
declare const deleteMasterSection: (id: string) => Promise<SBR>;
|
|
128
|
-
declare const getMasterSectionCache: (organisation_id: string) => Promise<FBR<MasterSection[]>>;
|
|
129
|
-
declare const getMasterSectionCacheCount: (organisation_id: string) => Promise<FBR<MasterSection>>;
|
|
130
|
-
|
|
131
|
-
export { type MasterSection, type MasterSectionDTO, type MasterSectionQueryDTO, MasterSectionQuerySchema, MasterSectionSchema, createMasterSection, deleteMasterSection, findMasterSection, getMasterSectionCache, getMasterSectionCacheCount, newMasterSectionPayload, toMasterSectionPayload, updateMasterSection };
|
|
@@ -249,10 +249,12 @@ var MongoBaseQuerySchema = z2.object({
|
|
|
249
249
|
// src/services/master/bus/master_section_service.ts
|
|
250
250
|
var URL = "master/bus/section";
|
|
251
251
|
var ENDPOINTS = {
|
|
252
|
+
// MasterSection APIs
|
|
252
253
|
find: `${URL}/search`,
|
|
253
254
|
create: URL,
|
|
254
255
|
update: (id) => `${URL}/${id}`,
|
|
255
256
|
delete: (id) => `${URL}/${id}`,
|
|
257
|
+
// Cache APIs
|
|
256
258
|
cache: (organisation_id) => `${URL}/cache/${organisation_id}`,
|
|
257
259
|
cache_count: (organisation_id) => `${URL}/cache_count/${organisation_id}`
|
|
258
260
|
};
|
|
@@ -270,10 +272,10 @@ var MasterSectionQuerySchema = BaseQuerySchema.extend({
|
|
|
270
272
|
// ✅ Multi-selection -> MasterSection
|
|
271
273
|
});
|
|
272
274
|
var toMasterSectionPayload = (row) => ({
|
|
273
|
-
organisation_id: row.organisation_id
|
|
274
|
-
section_name: row.section_name,
|
|
275
|
+
organisation_id: row.organisation_id || "",
|
|
276
|
+
section_name: row.section_name || "",
|
|
275
277
|
description: row.description || "",
|
|
276
|
-
status: row.status
|
|
278
|
+
status: row.status || "Active" /* Active */
|
|
277
279
|
});
|
|
278
280
|
var newMasterSectionPayload = () => ({
|
|
279
281
|
organisation_id: "",
|