vms-nest-prisma-api-document 1.1.7 → 1.2.1
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/BaseRequest.js +28 -2
- package/dist/core/BaseResponse.js +27 -2
- package/dist/core/Enums.js +93 -2
- package/dist/core/apiCall.js +32 -2
- package/dist/core/sdk-config.js +28 -2
- package/dist/index.js +1 -0
- package/dist/services/account/alert_service.d.ts +32 -32
- package/dist/services/account/alert_service.js +84 -58
- package/dist/services/account/analytics/user_login_analytics_service.js +49 -21
- package/dist/services/account/analytics/user_page_analytics_service.js +47 -14
- package/dist/services/account/bookmark_service.d.ts +9 -9
- package/dist/services/account/bookmark_service.js +59 -33
- package/dist/services/account/notification_service.d.ts +6 -6
- package/dist/services/account/notification_service.js +64 -39
- package/dist/services/account/ticket_service.d.ts +3 -3
- package/dist/services/account/ticket_service.js +70 -44
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +1 -1
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +71 -44
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +11 -11
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +73 -52
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +11 -11
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +73 -52
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +11 -11
- package/dist/services/gps/features/geofence/gps_geofence_data_service.js +61 -38
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +10 -10
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +54 -28
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +57 -31
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +3 -3
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +70 -45
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +17 -17
- package/dist/services/gps/features/gps_live_track_share_link_service.js +74 -47
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +10 -10
- package/dist/services/gps/features/gps_track_history_share_link_service.js +62 -35
- package/dist/services/gps/reports/gps_models/DashboardSummaryReport.js +18 -0
- package/dist/services/gps/reports/gps_models/FuelConsumptionMonthly.js +18 -0
- package/dist/services/gps/reports/gps_models/GPSOverSpeedViolation.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsAnalytics.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsPacket.js +18 -0
- package/dist/services/gps/reports/gps_models/GpsSensor.js +18 -0
- package/dist/services/gps/reports/gps_models/HourlyKmAnalysis.js +18 -0
- package/dist/services/gps/reports/gps_models/KilometerMonthly.js +18 -0
- package/dist/services/gps/reports/gps_models/Last24HoursKmReport.js +18 -0
- package/dist/services/gps/reports/gps_models/OverSpeedViolationMonthly.js +18 -0
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- package/dist/services/gps/reports/gps_reports_mongo_service.js +111 -70
- package/dist/services/gps/reports/gps_reports_postgre_service.js +1 -0
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/devices/master_device_service.js +69 -38
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.js +73 -43
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.js +54 -27
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.js +47 -15
- package/dist/services/main/users/user_admin_service.js +52 -21
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_organisation_service.js +88 -59
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/users/user_service.js +142 -98
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +52 -24
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.js +282 -227
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.js +48 -16
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.js +50 -19
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.js +53 -22
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.js +49 -20
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.js +47 -17
- package/dist/services/master/expense/master_vendor_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_vendor_type_service.js +48 -19
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +47 -17
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.js +47 -17
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.js +48 -16
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.js +49 -20
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.js +46 -15
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.js +46 -16
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.js +46 -16
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.js +46 -16
- package/dist/services/master/main/master_main_landmark_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.js +55 -28
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_language_service.js +46 -15
- package/dist/services/master/main/master_main_sim_provider_service.js +46 -15
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.js +48 -19
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.js +51 -22
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.js +46 -15
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.js +46 -15
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.js +46 -15
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.js +51 -19
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.js +50 -18
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.js +51 -19
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.js +52 -21
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.js +49 -17
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.js +51 -18
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +50 -20
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +48 -18
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.js +47 -17
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.js +47 -17
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_make_service.js +50 -17
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.js +49 -19
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_role_service.js +47 -17
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.js +49 -17
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.js +49 -19
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +47 -17
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +51 -21
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.js +49 -17
- package/dist/services/website/contact_us_detail_service.js +53 -23
- package/dist/services/website/faq_service.js +46 -16
- package/dist/services/website/static_pages_service.js +47 -17
- package/dist/zod/zod_base_schema.js +47 -20
- package/dist/zod/zod_utils.js +108 -49
- package/package.json +2 -2
- package/dist/{user_organisation_service-umUoNvpJ.d.ts → user_organisation_service-CNOJPhQD.d.ts} +20 -20
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/account/analytics/user_login_analytics_service.ts
|
|
21
|
+
var user_login_analytics_service_exports = {};
|
|
22
|
+
__export(user_login_analytics_service_exports, {
|
|
23
|
+
UserLoginAnalyticsQuerySchema: () => UserLoginAnalyticsQuerySchema,
|
|
24
|
+
UserLoginAnalyticsSchema: () => UserLoginAnalyticsSchema,
|
|
25
|
+
createUserLoginAnalytics: () => createUserLoginAnalytics,
|
|
26
|
+
deleteUserLoginAnalytics: () => deleteUserLoginAnalytics,
|
|
27
|
+
findUserLoginAnalytics: () => findUserLoginAnalytics,
|
|
28
|
+
newUserLoginAnalyticsPayload: () => newUserLoginAnalyticsPayload,
|
|
29
|
+
toUserLoginAnalyticsPayload: () => toUserLoginAnalyticsPayload
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(user_login_analytics_service_exports);
|
|
32
|
+
|
|
1
33
|
// src/core/sdk-config.ts
|
|
2
34
|
var axiosInstance;
|
|
3
35
|
var getAxiosInstance = () => {
|
|
@@ -18,14 +50,9 @@ var apiDelete = async (url) => {
|
|
|
18
50
|
};
|
|
19
51
|
|
|
20
52
|
// src/services/account/analytics/user_login_analytics_service.ts
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
multi_select_optional,
|
|
25
|
-
enumMandatory,
|
|
26
|
-
dynamicJsonSchema
|
|
27
|
-
} from "zod/zod_utils";
|
|
28
|
-
import { MongoBaseQuerySchema } from "zod/zod_base_schema";
|
|
53
|
+
var import_zod = require("zod");
|
|
54
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
55
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
29
56
|
|
|
30
57
|
// src/core/Enums.ts
|
|
31
58
|
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
@@ -42,19 +69,19 @@ var ENDPOINTS = {
|
|
|
42
69
|
create: URL,
|
|
43
70
|
delete: (id) => `${URL}/${id}`
|
|
44
71
|
};
|
|
45
|
-
var UserLoginAnalyticsSchema = z.object({
|
|
46
|
-
user_id: stringMandatory("User", 3, 100),
|
|
47
|
-
organisation_id: stringMandatory("Organisation", 3, 100),
|
|
48
|
-
login_from: enumMandatory("Status", LoginFrom, "Web" /* Web */),
|
|
49
|
-
os_details: dynamicJsonSchema("OS Details", {}),
|
|
50
|
-
ip_details: dynamicJsonSchema("IP Details", {}),
|
|
51
|
-
country_id: stringMandatory("Country", 2, 100)
|
|
72
|
+
var UserLoginAnalyticsSchema = import_zod.z.object({
|
|
73
|
+
user_id: (0, import_zod_utils.stringMandatory)("User", 3, 100),
|
|
74
|
+
organisation_id: (0, import_zod_utils.stringMandatory)("Organisation", 3, 100),
|
|
75
|
+
login_from: (0, import_zod_utils.enumMandatory)("Status", LoginFrom, "Web" /* Web */),
|
|
76
|
+
os_details: (0, import_zod_utils.dynamicJsonSchema)("OS Details", {}),
|
|
77
|
+
ip_details: (0, import_zod_utils.dynamicJsonSchema)("IP Details", {}),
|
|
78
|
+
country_id: (0, import_zod_utils.stringMandatory)("Country", 2, 100)
|
|
52
79
|
// ✅ Country ID
|
|
53
80
|
});
|
|
54
|
-
var UserLoginAnalyticsQuerySchema = MongoBaseQuerySchema.extend({
|
|
55
|
-
user_ids: multi_select_optional("User"),
|
|
56
|
-
organisation_ids: multi_select_optional("Organisation"),
|
|
57
|
-
country_ids: multi_select_optional("Country")
|
|
81
|
+
var UserLoginAnalyticsQuerySchema = import_zod_base_schema.MongoBaseQuerySchema.extend({
|
|
82
|
+
user_ids: (0, import_zod_utils.multi_select_optional)("User"),
|
|
83
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("Organisation"),
|
|
84
|
+
country_ids: (0, import_zod_utils.multi_select_optional)("Country")
|
|
58
85
|
});
|
|
59
86
|
var toUserLoginAnalyticsPayload = (analytics) => ({
|
|
60
87
|
user_id: analytics.user_id,
|
|
@@ -84,7 +111,8 @@ var createUserLoginAnalytics = async (data) => {
|
|
|
84
111
|
var deleteUserLoginAnalytics = async (id) => {
|
|
85
112
|
return apiDelete(ENDPOINTS.delete(id));
|
|
86
113
|
};
|
|
87
|
-
export
|
|
114
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
115
|
+
0 && (module.exports = {
|
|
88
116
|
UserLoginAnalyticsQuerySchema,
|
|
89
117
|
UserLoginAnalyticsSchema,
|
|
90
118
|
createUserLoginAnalytics,
|
|
@@ -92,4 +120,4 @@ export {
|
|
|
92
120
|
findUserLoginAnalytics,
|
|
93
121
|
newUserLoginAnalyticsPayload,
|
|
94
122
|
toUserLoginAnalyticsPayload
|
|
95
|
-
};
|
|
123
|
+
});
|
|
@@ -1,3 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/account/analytics/user_page_analytics_service.ts
|
|
21
|
+
var user_page_analytics_service_exports = {};
|
|
22
|
+
__export(user_page_analytics_service_exports, {
|
|
23
|
+
UserPageAnalyticsQuerySchema: () => UserPageAnalyticsQuerySchema,
|
|
24
|
+
UserPageAnalyticsSchema: () => UserPageAnalyticsSchema,
|
|
25
|
+
createUserPageAnalytics: () => createUserPageAnalytics,
|
|
26
|
+
deleteUserPageAnalytics: () => deleteUserPageAnalytics,
|
|
27
|
+
findUserPageAnalytics: () => findUserPageAnalytics,
|
|
28
|
+
newUserPageAnalyticsPayload: () => newUserPageAnalyticsPayload,
|
|
29
|
+
toUserPageAnalyticsPayload: () => toUserPageAnalyticsPayload
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(user_page_analytics_service_exports);
|
|
32
|
+
|
|
1
33
|
// src/core/sdk-config.ts
|
|
2
34
|
var axiosInstance;
|
|
3
35
|
var getAxiosInstance = () => {
|
|
@@ -18,25 +50,25 @@ var apiDelete = async (url) => {
|
|
|
18
50
|
};
|
|
19
51
|
|
|
20
52
|
// src/services/account/analytics/user_page_analytics_service.ts
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
53
|
+
var import_zod = require("zod");
|
|
54
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
55
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
24
56
|
var URL = "analytics/user_page_analytics";
|
|
25
57
|
var ENDPOINTS = {
|
|
26
58
|
find: `${URL}/search`,
|
|
27
59
|
create: URL,
|
|
28
60
|
delete: (id) => `${URL}/${id}`
|
|
29
61
|
};
|
|
30
|
-
var UserPageAnalyticsSchema = z.object({
|
|
31
|
-
user_id: stringMandatory("User", 3, 100),
|
|
32
|
-
organisation_id: stringMandatory("Organisation", 3, 100),
|
|
33
|
-
page: stringMandatory("Page", 3, 100),
|
|
34
|
-
sub_module: stringMandatory("Sub Module", 3, 100),
|
|
35
|
-
main_module: stringMandatory("Main Module", 3, 100)
|
|
62
|
+
var UserPageAnalyticsSchema = import_zod.z.object({
|
|
63
|
+
user_id: (0, import_zod_utils.stringMandatory)("User", 3, 100),
|
|
64
|
+
organisation_id: (0, import_zod_utils.stringMandatory)("Organisation", 3, 100),
|
|
65
|
+
page: (0, import_zod_utils.stringMandatory)("Page", 3, 100),
|
|
66
|
+
sub_module: (0, import_zod_utils.stringMandatory)("Sub Module", 3, 100),
|
|
67
|
+
main_module: (0, import_zod_utils.stringMandatory)("Main Module", 3, 100)
|
|
36
68
|
});
|
|
37
|
-
var UserPageAnalyticsQuerySchema = MongoBaseQuerySchema.extend({
|
|
38
|
-
user_ids: multi_select_optional("User"),
|
|
39
|
-
organisation_ids: multi_select_optional("Organisation")
|
|
69
|
+
var UserPageAnalyticsQuerySchema = import_zod_base_schema.MongoBaseQuerySchema.extend({
|
|
70
|
+
user_ids: (0, import_zod_utils.multi_select_optional)("User"),
|
|
71
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("Organisation")
|
|
40
72
|
});
|
|
41
73
|
var toUserPageAnalyticsPayload = (analytics) => ({
|
|
42
74
|
user_id: analytics.user_id,
|
|
@@ -64,7 +96,8 @@ var createUserPageAnalytics = async (data) => {
|
|
|
64
96
|
var deleteUserPageAnalytics = async (id) => {
|
|
65
97
|
return apiDelete(ENDPOINTS.delete(id));
|
|
66
98
|
};
|
|
67
|
-
export
|
|
99
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
100
|
+
0 && (module.exports = {
|
|
68
101
|
UserPageAnalyticsQuerySchema,
|
|
69
102
|
UserPageAnalyticsSchema,
|
|
70
103
|
createUserPageAnalytics,
|
|
@@ -72,4 +105,4 @@ export {
|
|
|
72
105
|
findUserPageAnalytics,
|
|
73
106
|
newUserPageAnalyticsPayload,
|
|
74
107
|
toUserPageAnalyticsPayload
|
|
75
|
-
};
|
|
108
|
+
});
|
|
@@ -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-CNOJPhQD.js';
|
|
5
5
|
import 'zod/zod_base_schema';
|
|
6
6
|
import '../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -40,6 +40,9 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
40
40
|
sub_item_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
41
41
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
|
+
status: Status;
|
|
44
|
+
organisation_id: string;
|
|
45
|
+
user_id: string;
|
|
43
46
|
module_name: string;
|
|
44
47
|
menu_type: MenuType;
|
|
45
48
|
group_name: string;
|
|
@@ -50,19 +53,16 @@ declare const BookMarkSchema: z.ZodObject<{
|
|
|
50
53
|
sub_item_name_language: string;
|
|
51
54
|
sub_item_icon: string;
|
|
52
55
|
sub_item_url: string;
|
|
56
|
+
}, {
|
|
53
57
|
status: Status;
|
|
54
58
|
organisation_id: string;
|
|
55
59
|
user_id: string;
|
|
56
|
-
}, {
|
|
57
60
|
module_name: string;
|
|
58
61
|
menu_type: MenuType;
|
|
59
62
|
group_name: string;
|
|
60
63
|
group_name_language: string;
|
|
61
64
|
group_icon: string;
|
|
62
65
|
group_url: string;
|
|
63
|
-
status: Status;
|
|
64
|
-
organisation_id: string;
|
|
65
|
-
user_id: string;
|
|
66
66
|
sub_item_name?: string | undefined;
|
|
67
67
|
sub_item_name_language?: string | undefined;
|
|
68
68
|
sub_item_icon?: string | undefined;
|
|
@@ -105,8 +105,8 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
105
105
|
bookmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
106
106
|
menu_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof MenuType>, "many">>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
menu_type: MenuType[];
|
|
109
108
|
status: Status[];
|
|
109
|
+
user_ids: string[];
|
|
110
110
|
search: string;
|
|
111
111
|
paging: PAGING;
|
|
112
112
|
page_count: number;
|
|
@@ -128,13 +128,13 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
128
128
|
date_format_id: string;
|
|
129
129
|
time_zone_id: string;
|
|
130
130
|
organisation_ids: string[];
|
|
131
|
-
|
|
131
|
+
menu_type: MenuType[];
|
|
132
132
|
bookmark_ids: string[];
|
|
133
133
|
}, {
|
|
134
134
|
date_format_id: string;
|
|
135
135
|
time_zone_id: string;
|
|
136
|
-
menu_type?: MenuType[] | undefined;
|
|
137
136
|
status?: Status[] | undefined;
|
|
137
|
+
user_ids?: string[] | undefined;
|
|
138
138
|
search?: string | undefined;
|
|
139
139
|
paging?: PAGING | undefined;
|
|
140
140
|
page_count?: unknown;
|
|
@@ -154,7 +154,7 @@ declare const BookMarkQuerySchema: z.ZodObject<{
|
|
|
154
154
|
}[] | undefined;
|
|
155
155
|
include_master_data?: YesNo | undefined;
|
|
156
156
|
organisation_ids?: string[] | undefined;
|
|
157
|
-
|
|
157
|
+
menu_type?: MenuType[] | undefined;
|
|
158
158
|
bookmark_ids?: string[] | undefined;
|
|
159
159
|
}>;
|
|
160
160
|
type BookMarkQueryDTO = z.infer<typeof BookMarkQuerySchema>;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/account/bookmark_service.ts
|
|
21
|
+
var bookmark_service_exports = {};
|
|
22
|
+
__export(bookmark_service_exports, {
|
|
23
|
+
BookMarkQuerySchema: () => BookMarkQuerySchema,
|
|
24
|
+
BookMarkSchema: () => BookMarkSchema,
|
|
25
|
+
createBookMark: () => createBookMark,
|
|
26
|
+
deleteBookMark: () => deleteBookMark,
|
|
27
|
+
findBookMarks: () => findBookMarks,
|
|
28
|
+
newBookMarkPayload: () => newBookMarkPayload,
|
|
29
|
+
toBookMarkPayload: () => toBookMarkPayload,
|
|
30
|
+
updateBookMark: () => updateBookMark
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(bookmark_service_exports);
|
|
33
|
+
|
|
1
34
|
// src/core/sdk-config.ts
|
|
2
35
|
var axiosInstance;
|
|
3
36
|
var getAxiosInstance = () => {
|
|
@@ -22,17 +55,9 @@ var apiDelete = async (url) => {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/services/account/bookmark_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
stringOptional,
|
|
29
|
-
enumMandatory,
|
|
30
|
-
enumArrayOptional,
|
|
31
|
-
getAllEnums,
|
|
32
|
-
multi_select_optional,
|
|
33
|
-
single_select_mandatory
|
|
34
|
-
} from "zod/zod_utils";
|
|
35
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
58
|
+
var import_zod = require("zod");
|
|
59
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
36
61
|
|
|
37
62
|
// src/core/Enums.ts
|
|
38
63
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -54,34 +79,34 @@ var ENDPOINTS = {
|
|
|
54
79
|
update: (id) => `${URL}/${id}`,
|
|
55
80
|
delete: (id) => `${URL}/${id}`
|
|
56
81
|
};
|
|
57
|
-
var BookMarkSchema = z.object({
|
|
58
|
-
organisation_id: single_select_mandatory("Organisation"),
|
|
82
|
+
var BookMarkSchema = import_zod.z.object({
|
|
83
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation"),
|
|
59
84
|
// ✅ Single-selection -> UserOrganisation
|
|
60
|
-
user_id: single_select_mandatory("User"),
|
|
85
|
+
user_id: (0, import_zod_utils.single_select_mandatory)("User"),
|
|
61
86
|
// ✅ Single-selection -> User
|
|
62
|
-
module_name: stringMandatory("Module Name", 3, 100),
|
|
63
|
-
menu_type: enumMandatory("Menu Type", MenuType, "Group" /* Group */),
|
|
64
|
-
group_name: stringMandatory("Group Name", 3, 50),
|
|
65
|
-
group_name_language: stringMandatory("Group Name Language", 3, 50),
|
|
66
|
-
group_icon: stringMandatory("Group Icon", 3, 50),
|
|
67
|
-
group_url: stringMandatory("Group URL", 3, 200),
|
|
68
|
-
sub_item_name: stringOptional("Sub Item Name", 0, 50),
|
|
69
|
-
sub_item_name_language: stringOptional("Sub Item Name Language", 0, 50),
|
|
70
|
-
sub_item_icon: stringOptional("Sub Item Icon", 0, 50),
|
|
71
|
-
sub_item_url: stringOptional("Sub Item URL", 0, 200),
|
|
72
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
87
|
+
module_name: (0, import_zod_utils.stringMandatory)("Module Name", 3, 100),
|
|
88
|
+
menu_type: (0, import_zod_utils.enumMandatory)("Menu Type", MenuType, "Group" /* Group */),
|
|
89
|
+
group_name: (0, import_zod_utils.stringMandatory)("Group Name", 3, 50),
|
|
90
|
+
group_name_language: (0, import_zod_utils.stringMandatory)("Group Name Language", 3, 50),
|
|
91
|
+
group_icon: (0, import_zod_utils.stringMandatory)("Group Icon", 3, 50),
|
|
92
|
+
group_url: (0, import_zod_utils.stringMandatory)("Group URL", 3, 200),
|
|
93
|
+
sub_item_name: (0, import_zod_utils.stringOptional)("Sub Item Name", 0, 50),
|
|
94
|
+
sub_item_name_language: (0, import_zod_utils.stringOptional)("Sub Item Name Language", 0, 50),
|
|
95
|
+
sub_item_icon: (0, import_zod_utils.stringOptional)("Sub Item Icon", 0, 50),
|
|
96
|
+
sub_item_url: (0, import_zod_utils.stringOptional)("Sub Item URL", 0, 200),
|
|
97
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
73
98
|
});
|
|
74
|
-
var BookMarkQuerySchema = BaseQuerySchema.extend({
|
|
75
|
-
organisation_ids: multi_select_optional("Organisation"),
|
|
99
|
+
var BookMarkQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
100
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("Organisation"),
|
|
76
101
|
// ✅ Multi-selection -> Organisation
|
|
77
|
-
user_ids: multi_select_optional("User"),
|
|
102
|
+
user_ids: (0, import_zod_utils.multi_select_optional)("User"),
|
|
78
103
|
// ✅ Multi-selection -> User
|
|
79
|
-
bookmark_ids: multi_select_optional("Bookmark"),
|
|
104
|
+
bookmark_ids: (0, import_zod_utils.multi_select_optional)("Bookmark"),
|
|
80
105
|
// ✅ Multi-selection -> Bookmark
|
|
81
|
-
menu_type: enumArrayOptional(
|
|
106
|
+
menu_type: (0, import_zod_utils.enumArrayOptional)(
|
|
82
107
|
"Menu Type",
|
|
83
108
|
MenuType,
|
|
84
|
-
getAllEnums(MenuType),
|
|
109
|
+
(0, import_zod_utils.getAllEnums)(MenuType),
|
|
85
110
|
0,
|
|
86
111
|
10,
|
|
87
112
|
true
|
|
@@ -129,7 +154,8 @@ var updateBookMark = async (id, data) => {
|
|
|
129
154
|
var deleteBookMark = async (id) => {
|
|
130
155
|
return apiDelete(ENDPOINTS.delete(id));
|
|
131
156
|
};
|
|
132
|
-
export
|
|
157
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
158
|
+
0 && (module.exports = {
|
|
133
159
|
BookMarkQuerySchema,
|
|
134
160
|
BookMarkSchema,
|
|
135
161
|
createBookMark,
|
|
@@ -138,4 +164,4 @@ export {
|
|
|
138
164
|
newBookMarkPayload,
|
|
139
165
|
toBookMarkPayload,
|
|
140
166
|
updateBookMark
|
|
141
|
-
};
|
|
167
|
+
});
|
|
@@ -2,7 +2,7 @@ import { YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy
|
|
|
2
2
|
import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { Alert } from './alert_service.js';
|
|
5
|
-
import { U as UserOrganisation, a as User } from '../../user_organisation_service-
|
|
5
|
+
import { U as UserOrganisation, a as User } from '../../user_organisation_service-CNOJPhQD.js';
|
|
6
6
|
import 'zod/zod_base_schema';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
|
|
@@ -46,12 +46,12 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
46
46
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
47
47
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
status: Status;
|
|
50
|
-
organisation_id: string;
|
|
51
|
-
user_ids: string[];
|
|
52
49
|
alert_id: string;
|
|
53
50
|
mobile_numbers: string;
|
|
54
51
|
emails: string;
|
|
52
|
+
status: Status;
|
|
53
|
+
organisation_id: string;
|
|
54
|
+
user_ids: string[];
|
|
55
55
|
notification_title: string;
|
|
56
56
|
notification_message: string;
|
|
57
57
|
is_push_sent: YesNo;
|
|
@@ -59,14 +59,14 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
59
59
|
is_whatsapp_sent: YesNo;
|
|
60
60
|
is_email_sent: YesNo;
|
|
61
61
|
}, {
|
|
62
|
+
alert_id: string;
|
|
62
63
|
status: Status;
|
|
63
64
|
organisation_id: string;
|
|
64
|
-
alert_id: string;
|
|
65
65
|
notification_title: string;
|
|
66
66
|
notification_message: string;
|
|
67
|
-
user_ids?: string[] | undefined;
|
|
68
67
|
mobile_numbers?: string | undefined;
|
|
69
68
|
emails?: string | undefined;
|
|
69
|
+
user_ids?: string[] | undefined;
|
|
70
70
|
is_push_sent?: YesNo | undefined;
|
|
71
71
|
is_sms_sent?: YesNo | undefined;
|
|
72
72
|
is_whatsapp_sent?: YesNo | undefined;
|
|
@@ -1,3 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/services/account/notification_service.ts
|
|
21
|
+
var notification_service_exports = {};
|
|
22
|
+
__export(notification_service_exports, {
|
|
23
|
+
NotificationQuerySchema: () => NotificationQuerySchema,
|
|
24
|
+
NotificationSchema: () => NotificationSchema,
|
|
25
|
+
createNotification: () => createNotification,
|
|
26
|
+
deleteNotification: () => deleteNotification,
|
|
27
|
+
findNotifications: () => findNotifications,
|
|
28
|
+
newNotificationPayload: () => newNotificationPayload,
|
|
29
|
+
toNotificationPayload: () => toNotificationPayload,
|
|
30
|
+
updateNotification: () => updateNotification
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(notification_service_exports);
|
|
33
|
+
|
|
1
34
|
// src/core/sdk-config.ts
|
|
2
35
|
var axiosInstance;
|
|
3
36
|
var getAxiosInstance = () => {
|
|
@@ -22,18 +55,9 @@ var apiDelete = async (url) => {
|
|
|
22
55
|
};
|
|
23
56
|
|
|
24
57
|
// src/services/account/notification_service.ts
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
enumMandatory,
|
|
29
|
-
enumOptional,
|
|
30
|
-
getAllEnums,
|
|
31
|
-
multi_select_optional,
|
|
32
|
-
single_select_mandatory,
|
|
33
|
-
stringMandatory,
|
|
34
|
-
stringOptional
|
|
35
|
-
} from "zod/zod_utils";
|
|
36
|
-
import { BaseQuerySchema } from "zod/zod_base_schema";
|
|
58
|
+
var import_zod = require("zod");
|
|
59
|
+
var import_zod_utils = require("zod/zod_utils");
|
|
60
|
+
var import_zod_base_schema = require("zod/zod_base_schema");
|
|
37
61
|
|
|
38
62
|
// src/core/Enums.ts
|
|
39
63
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
@@ -55,52 +79,52 @@ var ENDPOINTS = {
|
|
|
55
79
|
update: (id) => `${URL}/${id}`,
|
|
56
80
|
delete: (id) => `${URL}/${id}`
|
|
57
81
|
};
|
|
58
|
-
var NotificationSchema = z.object({
|
|
59
|
-
notification_title: stringMandatory("Notification Title", 3, 100),
|
|
60
|
-
notification_message: stringMandatory("Notification Message", 3, 500),
|
|
61
|
-
is_push_sent: enumOptional("Is Push Sent", YesNo, "No" /* No */),
|
|
62
|
-
is_sms_sent: enumOptional("Is SMS Sent", YesNo, "No" /* No */),
|
|
63
|
-
is_whatsapp_sent: enumOptional("Is WhatsApp Sent", YesNo, "No" /* No */),
|
|
64
|
-
is_email_sent: enumOptional("Is Email Sent", YesNo, "No" /* No */),
|
|
65
|
-
mobile_numbers: stringOptional("Mobile Numbers", 0, 300),
|
|
66
|
-
emails: stringOptional("Emails", 0, 300),
|
|
67
|
-
alert_id: single_select_mandatory("Alert"),
|
|
68
|
-
organisation_id: single_select_mandatory("Organisation"),
|
|
69
|
-
user_ids: multi_select_optional("User"),
|
|
70
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
82
|
+
var NotificationSchema = import_zod.z.object({
|
|
83
|
+
notification_title: (0, import_zod_utils.stringMandatory)("Notification Title", 3, 100),
|
|
84
|
+
notification_message: (0, import_zod_utils.stringMandatory)("Notification Message", 3, 500),
|
|
85
|
+
is_push_sent: (0, import_zod_utils.enumOptional)("Is Push Sent", YesNo, "No" /* No */),
|
|
86
|
+
is_sms_sent: (0, import_zod_utils.enumOptional)("Is SMS Sent", YesNo, "No" /* No */),
|
|
87
|
+
is_whatsapp_sent: (0, import_zod_utils.enumOptional)("Is WhatsApp Sent", YesNo, "No" /* No */),
|
|
88
|
+
is_email_sent: (0, import_zod_utils.enumOptional)("Is Email Sent", YesNo, "No" /* No */),
|
|
89
|
+
mobile_numbers: (0, import_zod_utils.stringOptional)("Mobile Numbers", 0, 300),
|
|
90
|
+
emails: (0, import_zod_utils.stringOptional)("Emails", 0, 300),
|
|
91
|
+
alert_id: (0, import_zod_utils.single_select_mandatory)("Alert"),
|
|
92
|
+
organisation_id: (0, import_zod_utils.single_select_mandatory)("Organisation"),
|
|
93
|
+
user_ids: (0, import_zod_utils.multi_select_optional)("User"),
|
|
94
|
+
status: (0, import_zod_utils.enumMandatory)("Status", Status, "Active" /* Active */)
|
|
71
95
|
});
|
|
72
|
-
var NotificationQuerySchema = BaseQuerySchema.extend({
|
|
73
|
-
alert_ids: multi_select_optional("Alert"),
|
|
74
|
-
organisation_ids: multi_select_optional("Organisation"),
|
|
75
|
-
notification_ids: multi_select_optional("Notification"),
|
|
76
|
-
is_push_sent: enumArrayOptional(
|
|
96
|
+
var NotificationQuerySchema = import_zod_base_schema.BaseQuerySchema.extend({
|
|
97
|
+
alert_ids: (0, import_zod_utils.multi_select_optional)("Alert"),
|
|
98
|
+
organisation_ids: (0, import_zod_utils.multi_select_optional)("Organisation"),
|
|
99
|
+
notification_ids: (0, import_zod_utils.multi_select_optional)("Notification"),
|
|
100
|
+
is_push_sent: (0, import_zod_utils.enumArrayOptional)(
|
|
77
101
|
"Is Push Sent",
|
|
78
102
|
YesNo,
|
|
79
|
-
getAllEnums(YesNo),
|
|
103
|
+
(0, import_zod_utils.getAllEnums)(YesNo),
|
|
80
104
|
0,
|
|
81
105
|
10,
|
|
82
106
|
true
|
|
83
107
|
),
|
|
84
|
-
is_sms_sent: enumArrayOptional(
|
|
108
|
+
is_sms_sent: (0, import_zod_utils.enumArrayOptional)(
|
|
85
109
|
"Is SMS Sent",
|
|
86
110
|
YesNo,
|
|
87
|
-
getAllEnums(YesNo),
|
|
111
|
+
(0, import_zod_utils.getAllEnums)(YesNo),
|
|
88
112
|
0,
|
|
89
113
|
10,
|
|
90
114
|
true
|
|
91
115
|
),
|
|
92
|
-
is_whatsapp_sent: enumArrayOptional(
|
|
116
|
+
is_whatsapp_sent: (0, import_zod_utils.enumArrayOptional)(
|
|
93
117
|
"Is Whatsapp Sent",
|
|
94
118
|
YesNo,
|
|
95
|
-
getAllEnums(YesNo),
|
|
119
|
+
(0, import_zod_utils.getAllEnums)(YesNo),
|
|
96
120
|
0,
|
|
97
121
|
10,
|
|
98
122
|
true
|
|
99
123
|
),
|
|
100
|
-
is_email_sent: enumArrayOptional(
|
|
124
|
+
is_email_sent: (0, import_zod_utils.enumArrayOptional)(
|
|
101
125
|
"Is Email Sent",
|
|
102
126
|
YesNo,
|
|
103
|
-
getAllEnums(YesNo),
|
|
127
|
+
(0, import_zod_utils.getAllEnums)(YesNo),
|
|
104
128
|
0,
|
|
105
129
|
10,
|
|
106
130
|
true
|
|
@@ -149,7 +173,8 @@ var updateNotification = async (id, data) => {
|
|
|
149
173
|
var deleteNotification = async (id) => {
|
|
150
174
|
return apiDelete(ENDPOINTS.delete(id));
|
|
151
175
|
};
|
|
152
|
-
export
|
|
176
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
177
|
+
0 && (module.exports = {
|
|
153
178
|
NotificationQuerySchema,
|
|
154
179
|
NotificationSchema,
|
|
155
180
|
createNotification,
|
|
@@ -158,4 +183,4 @@ export {
|
|
|
158
183
|
newNotificationPayload,
|
|
159
184
|
toNotificationPayload,
|
|
160
185
|
updateNotification
|
|
161
|
-
};
|
|
186
|
+
});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FileType, Status, TicketStatus, 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-CNOJPhQD.js';
|
|
5
5
|
import { UserAdmin } from '../main/users/user_admin_service.js';
|
|
6
6
|
import 'zod/zod_base_schema';
|
|
7
7
|
import '../master/main/master_main_sim_provider_service.js';
|
|
@@ -191,6 +191,7 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
191
191
|
ticket_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof TicketStatus>, "many">>>;
|
|
192
192
|
}, "strip", z.ZodTypeAny, {
|
|
193
193
|
status: Status[];
|
|
194
|
+
user_ids: string[];
|
|
194
195
|
search: string;
|
|
195
196
|
paging: PAGING;
|
|
196
197
|
page_count: number;
|
|
@@ -212,7 +213,6 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
212
213
|
date_format_id: string;
|
|
213
214
|
time_zone_id: string;
|
|
214
215
|
organisation_ids: string[];
|
|
215
|
-
user_ids: string[];
|
|
216
216
|
admin_ids: string[];
|
|
217
217
|
ticket_status: TicketStatus[];
|
|
218
218
|
ticket_ids: string[];
|
|
@@ -220,6 +220,7 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
220
220
|
date_format_id: string;
|
|
221
221
|
time_zone_id: string;
|
|
222
222
|
status?: Status[] | undefined;
|
|
223
|
+
user_ids?: string[] | undefined;
|
|
223
224
|
search?: string | undefined;
|
|
224
225
|
paging?: PAGING | undefined;
|
|
225
226
|
page_count?: unknown;
|
|
@@ -239,7 +240,6 @@ declare const TicketQuerySchema: z.ZodObject<{
|
|
|
239
240
|
}[] | undefined;
|
|
240
241
|
include_master_data?: YesNo | undefined;
|
|
241
242
|
organisation_ids?: string[] | undefined;
|
|
242
|
-
user_ids?: string[] | undefined;
|
|
243
243
|
admin_ids?: string[] | undefined;
|
|
244
244
|
ticket_status?: TicketStatus[] | undefined;
|
|
245
245
|
ticket_ids?: string[] | undefined;
|