vms-nest-prisma-api-document 1.3.3 → 1.5.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/alert_service.d.ts +2 -2
- package/dist/services/account/alert_service.js +181 -11
- package/dist/services/account/analytics/user_login_analytics_service.js +181 -8
- package/dist/services/account/analytics/user_page_analytics_service.js +191 -3
- package/dist/services/account/bookmark_service.d.ts +2 -2
- package/dist/services/account/bookmark_service.js +186 -11
- package/dist/services/account/notification_service.d.ts +2 -2
- package/dist/services/account/notification_service.js +181 -12
- package/dist/services/account/ticket_service.d.ts +2 -2
- package/dist/services/account/ticket_service.js +199 -16
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.d.ts +2 -2
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_daily_summary_service.js +231 -12
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.d.ts +2 -2
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_refill_service.js +245 -16
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.d.ts +2 -2
- package/dist/services/gps/features/fuel/gps_fuel_vehicle_removal_service.js +245 -16
- package/dist/services/gps/features/geofence/gps_geofence_data_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/gps_geofence_data_service.js +241 -16
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.js +208 -11
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.js +224 -11
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.js +236 -12
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +18 -18
- package/dist/services/gps/features/gps_live_track_share_link_service.js +229 -19
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +11 -11
- package/dist/services/gps/features/gps_track_history_share_link_service.js +199 -13
- package/dist/services/gps/reports/gps_reports_mongo_service.js +239 -13
- package/dist/services/main/devices/master_device_service.d.ts +2 -2
- package/dist/services/main/devices/master_device_service.js +182 -12
- package/dist/services/main/drivers/master_driver_service.d.ts +2 -2
- package/dist/services/main/drivers/master_driver_service.js +181 -10
- package/dist/services/main/sims/master_sim_service.d.ts +2 -2
- package/dist/services/main/sims/master_sim_service.js +186 -10
- package/dist/services/main/users/auth_service.d.ts +2 -2
- package/dist/services/main/users/auth_service.js +16 -5
- package/dist/services/main/users/user_admin_service.js +182 -8
- package/dist/services/main/users/user_organisation_service.d.ts +2 -2
- package/dist/services/main/users/user_organisation_service.js +200 -11
- package/dist/services/main/users/user_service.d.ts +2 -2
- package/dist/services/main/users/user_service.js +182 -18
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +2 -2
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +222 -10
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +2 -2
- package/dist/services/main/vehicle/master_vehicle_service.js +249 -29
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +2 -2
- package/dist/services/master/device/master_device_manufacturer_service.js +182 -8
- package/dist/services/master/device/master_device_model_service.d.ts +2 -2
- package/dist/services/master/device/master_device_model_service.js +186 -9
- package/dist/services/master/device/master_device_type_service.d.ts +2 -2
- package/dist/services/master/device/master_device_type_service.js +186 -9
- package/dist/services/master/expense/master_expense_name_service.d.ts +2 -2
- package/dist/services/master/expense/master_expense_name_service.js +186 -9
- package/dist/services/master/expense/master_expense_type_service.d.ts +2 -2
- package/dist/services/master/expense/master_expense_type_service.js +186 -8
- package/dist/services/master/expense/master_vendor_type_service.d.ts +2 -2
- package/dist/services/master/expense/master_vendor_type_service.js +186 -9
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_incident_severity_service.js +186 -8
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_incident_status_service.js +186 -8
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_incident_type_service.js +186 -8
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.js +186 -8
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_service_task_service.js +186 -8
- package/dist/services/master/main/master_main_country_service.d.ts +2 -2
- package/dist/services/master/main/master_main_country_service.js +182 -7
- package/dist/services/master/main/master_main_currency_service.d.ts +2 -2
- package/dist/services/master/main/master_main_currency_service.js +186 -9
- package/dist/services/master/main/master_main_date_format_service.d.ts +2 -2
- package/dist/services/master/main/master_main_date_format_service.js +182 -7
- 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 +182 -8
- 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 +182 -8
- package/dist/services/master/main/master_main_industry_service.d.ts +2 -2
- package/dist/services/master/main/master_main_industry_service.js +182 -8
- package/dist/services/master/main/master_main_landmark_service.d.ts +2 -2
- package/dist/services/master/main/master_main_landmark_service.js +200 -10
- package/dist/services/master/main/master_main_language_service.d.ts +2 -2
- package/dist/services/master/main/master_main_language_service.js +182 -7
- package/dist/services/master/main/master_main_sim_provider_service.js +182 -7
- package/dist/services/master/main/master_main_state_service.d.ts +2 -2
- package/dist/services/master/main/master_main_state_service.js +186 -9
- package/dist/services/master/main/master_main_timezone_service.d.ts +2 -2
- package/dist/services/master/main/master_main_timezone_service.js +186 -9
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +2 -2
- package/dist/services/master/main/master_main_unit_distance_service.js +182 -7
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +2 -2
- package/dist/services/master/main/master_main_unit_mileage_service.js +182 -7
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +2 -2
- package/dist/services/master/main/master_main_unit_volume_service.js +182 -7
- package/dist/services/master/organisation/organisation_branch_service.d.ts +2 -2
- package/dist/services/master/organisation/organisation_branch_service.js +186 -8
- package/dist/services/master/organisation/organisation_color_service.d.ts +2 -2
- package/dist/services/master/organisation/organisation_color_service.js +186 -8
- package/dist/services/master/organisation/organisation_group_service.d.ts +2 -2
- package/dist/services/master/organisation/organisation_group_service.js +186 -8
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +2 -2
- package/dist/services/master/organisation/organisation_sub_company_service.js +186 -9
- package/dist/services/master/organisation/organisation_tag_service.d.ts +2 -2
- package/dist/services/master/organisation/organisation_tag_service.js +186 -8
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +2 -2
- package/dist/services/master/spare_part/master_spare_part_category_service.js +186 -8
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +2 -2
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.js +186 -8
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +2 -2
- package/dist/services/master/spare_part/master_spare_part_unit_service.js +186 -8
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +2 -2
- package/dist/services/master/trip/master_trip_party_type_service.js +186 -8
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +2 -2
- package/dist/services/master/tyre/master_tyre_grade_service.js +186 -8
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +2 -2
- package/dist/services/master/tyre/master_tyre_make_service.js +186 -8
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +2 -2
- package/dist/services/master/tyre/master_tyre_model_service.js +186 -8
- package/dist/services/master/user/master_user_role_service.d.ts +2 -2
- package/dist/services/master/user/master_user_role_service.js +186 -8
- package/dist/services/master/user/master_user_status_service.d.ts +2 -2
- package/dist/services/master/user/master_user_status_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_make_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_model_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_status_type_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.js +186 -8
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +2 -2
- package/dist/services/master/vehicle/master_vehicle_type_service.js +186 -8
- package/dist/services/website/contact_us_detail_service.js +182 -7
- package/dist/services/website/faq_service.js +182 -7
- package/dist/services/website/static_pages_service.js +182 -7
- package/dist/{user_organisation_service-CNOJPhQD.d.ts → user_organisation_service-DJWj2iMa.d.ts} +1 -1
- package/dist/{zod → zod_utils}/zod_base_schema.js +4 -4
- package/dist/{zod → zod_utils}/zod_utils.js +2 -2
- package/package.json +6 -6
- /package/dist/{zod → zod_utils}/zod_base_schema.d.ts +0 -0
- /package/dist/{zod → zod_utils}/zod_utils.d.ts +0 -0
|
@@ -22,24 +22,237 @@ var apiDelete = async (url) => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
|
|
25
|
+
import { z as z3 } from "zod";
|
|
26
|
+
|
|
27
|
+
// src/zod_utils/zod_utils.ts
|
|
25
28
|
import { z } from "zod";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
|
|
30
|
+
// src/core/BaseResponse.ts
|
|
31
|
+
var r_log = (data = {}) => {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// src/zod_utils/zod_utils.ts
|
|
36
|
+
var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
|
|
37
|
+
var stringMandatory = (fieldName, min = 1, max = 100) => {
|
|
38
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
|
|
39
|
+
return schema;
|
|
40
|
+
};
|
|
41
|
+
var stringOptional = (fieldName, min = 0, max = 255, defaultValue = "") => {
|
|
42
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).transform(handleNullOrUndefined).default(defaultValue);
|
|
43
|
+
return schema;
|
|
44
|
+
};
|
|
45
|
+
var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], unique = false) => {
|
|
46
|
+
const schema = z.array(z.string().trim(), {
|
|
47
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
48
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
49
|
+
if (unique) {
|
|
50
|
+
schema.refine(
|
|
51
|
+
(arr) => new Set(arr).size === arr.length,
|
|
52
|
+
`${fieldName} must contain unique values.`
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return schema.optional().default(defaultValue);
|
|
56
|
+
};
|
|
57
|
+
var numberOptional = (fieldName, min = 0, max = 1e9, defaultValue = 0) => {
|
|
58
|
+
return z.preprocess(
|
|
59
|
+
(val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
|
|
60
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
|
|
61
|
+
);
|
|
62
|
+
};
|
|
63
|
+
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
64
|
+
return z.union([
|
|
65
|
+
z.nativeEnum(enumType, {
|
|
66
|
+
invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
|
|
67
|
+
enumType
|
|
68
|
+
).join(", ")}.`
|
|
69
|
+
}),
|
|
70
|
+
z.string().refine((val) => Object.values(enumType).includes(val), {
|
|
71
|
+
message: `${fieldName} should be one of the following values: ${Object.values(
|
|
72
|
+
enumType
|
|
73
|
+
).join(", ")}.`
|
|
74
|
+
})
|
|
75
|
+
]).default(defaultValue).refine((val) => val !== "", {
|
|
76
|
+
message: `Please select ${fieldName}.`
|
|
77
|
+
});
|
|
78
|
+
};
|
|
79
|
+
var enumOptional = (fieldName, enumType, defaultValue) => {
|
|
80
|
+
return z.nativeEnum(enumType, {
|
|
81
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
82
|
+
enumType
|
|
83
|
+
).join(", ")}.`
|
|
84
|
+
}).optional().default(() => defaultValue);
|
|
85
|
+
};
|
|
86
|
+
var getAllEnums = (enumType) => {
|
|
87
|
+
return Object.values(enumType);
|
|
88
|
+
};
|
|
89
|
+
var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
|
|
90
|
+
const schema = z.array(z.nativeEnum(enumType), {
|
|
91
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
92
|
+
enumType
|
|
93
|
+
).join(", ")}.`
|
|
94
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
95
|
+
if (unique) {
|
|
96
|
+
schema.refine(
|
|
97
|
+
(arr) => new Set(arr).size === arr.length,
|
|
98
|
+
`${fieldName} must contain unique values.`
|
|
99
|
+
);
|
|
100
|
+
}
|
|
101
|
+
return schema.optional().default(() => defaultValue);
|
|
102
|
+
};
|
|
103
|
+
var handleNullOrUndefinedDate = (value, defaultValue) => {
|
|
104
|
+
if (typeof value === "string" && !isNaN(Date.parse(value))) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
return defaultValue;
|
|
108
|
+
};
|
|
109
|
+
var dateMandatory = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
110
|
+
const schema = z.string().refine((val) => !isNaN(Date.parse(val)), {
|
|
111
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
112
|
+
}).transform((val) => handleNullOrUndefinedDate(val, defaultValue));
|
|
113
|
+
if (minDate) {
|
|
114
|
+
schema.refine((val) => new Date(val) >= new Date(minDate), {
|
|
115
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
if (maxDate) {
|
|
119
|
+
schema.refine((val) => new Date(val) <= new Date(maxDate), {
|
|
120
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
return schema;
|
|
124
|
+
};
|
|
125
|
+
var dateOptional = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
126
|
+
const schema = z.string().refine((val) => !isNaN(Date.parse(val)), {
|
|
127
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
128
|
+
}).optional().default(defaultValue);
|
|
129
|
+
if (minDate) {
|
|
130
|
+
schema.refine((val) => new Date(val) >= new Date(minDate), {
|
|
131
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
if (maxDate) {
|
|
135
|
+
schema.refine((val) => new Date(val) <= new Date(maxDate), {
|
|
136
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
return schema;
|
|
140
|
+
};
|
|
141
|
+
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
142
|
+
var single_select_mandatory = (fieldName) => {
|
|
143
|
+
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
144
|
+
return schema;
|
|
145
|
+
};
|
|
146
|
+
var single_select_optional = (fieldName) => {
|
|
147
|
+
r_log(fieldName);
|
|
148
|
+
const schema = z.string().trim().transform(handleNullOrUndefined);
|
|
149
|
+
return schema;
|
|
150
|
+
};
|
|
151
|
+
var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
|
|
152
|
+
const schema = z.array(
|
|
153
|
+
z.string({
|
|
154
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
155
|
+
})
|
|
156
|
+
).max(
|
|
157
|
+
max,
|
|
158
|
+
`Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
|
|
159
|
+
);
|
|
160
|
+
return schema.optional().default(defaultValue);
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
// src/zod_utils/zod_base_schema.ts
|
|
164
|
+
import { z as z2 } from "zod";
|
|
36
165
|
|
|
37
166
|
// src/core/Enums.ts
|
|
167
|
+
var PAGING = /* @__PURE__ */ ((PAGING2) => {
|
|
168
|
+
PAGING2["Yes"] = "Yes";
|
|
169
|
+
PAGING2["No"] = "No";
|
|
170
|
+
return PAGING2;
|
|
171
|
+
})(PAGING || {});
|
|
172
|
+
var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
|
|
173
|
+
LoadParents2["Yes"] = "Yes";
|
|
174
|
+
LoadParents2["No"] = "No";
|
|
175
|
+
LoadParents2["Custom"] = "Custom";
|
|
176
|
+
return LoadParents2;
|
|
177
|
+
})(LoadParents || {});
|
|
178
|
+
var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
|
|
179
|
+
LoadChild2["No"] = "No";
|
|
180
|
+
LoadChild2["Yes"] = "Yes";
|
|
181
|
+
LoadChild2["Count"] = "Count";
|
|
182
|
+
LoadChild2["Custom"] = "Custom";
|
|
183
|
+
LoadChild2["Direct"] = "Direct";
|
|
184
|
+
return LoadChild2;
|
|
185
|
+
})(LoadChild || {});
|
|
186
|
+
var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
|
|
187
|
+
LoadChildCount2["No"] = "No";
|
|
188
|
+
LoadChildCount2["Yes"] = "Yes";
|
|
189
|
+
LoadChildCount2["Custom"] = "Custom";
|
|
190
|
+
return LoadChildCount2;
|
|
191
|
+
})(LoadChildCount || {});
|
|
192
|
+
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
|
|
193
|
+
OrderBy2["asc"] = "asc";
|
|
194
|
+
OrderBy2["desc"] = "desc";
|
|
195
|
+
return OrderBy2;
|
|
196
|
+
})(OrderBy || {});
|
|
197
|
+
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
198
|
+
LoginFrom2["Web"] = "Web";
|
|
199
|
+
LoginFrom2["Android"] = "Android";
|
|
200
|
+
LoginFrom2["IPhone"] = "IPhone";
|
|
201
|
+
return LoginFrom2;
|
|
202
|
+
})(LoginFrom || {});
|
|
38
203
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
39
204
|
Status2["Active"] = "Active";
|
|
40
205
|
Status2["Inactive"] = "Inactive";
|
|
41
206
|
return Status2;
|
|
42
207
|
})(Status || {});
|
|
208
|
+
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
209
|
+
YesNo2["Yes"] = "Yes";
|
|
210
|
+
YesNo2["No"] = "No";
|
|
211
|
+
return YesNo2;
|
|
212
|
+
})(YesNo || {});
|
|
213
|
+
|
|
214
|
+
// src/zod_utils/zod_base_schema.ts
|
|
215
|
+
var OrderBySchema = z2.array(
|
|
216
|
+
z2.object({
|
|
217
|
+
name: stringMandatory("Order Field Name", 0, 255),
|
|
218
|
+
field: stringMandatory("Order Field Name", 0, 255),
|
|
219
|
+
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
220
|
+
})
|
|
221
|
+
);
|
|
222
|
+
var BaseQuerySchema = z2.object({
|
|
223
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
224
|
+
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
225
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
226
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
227
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
228
|
+
load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
|
|
229
|
+
load_parents_list: stringArrayOptional("Load Parents List"),
|
|
230
|
+
load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
|
|
231
|
+
load_child_list: stringArrayOptional("Load Child List"),
|
|
232
|
+
load_child_count: enumOptional(
|
|
233
|
+
"Load Child",
|
|
234
|
+
LoadChildCount,
|
|
235
|
+
"No" /* No */
|
|
236
|
+
),
|
|
237
|
+
load_child_count_list: stringArrayOptional("Load Child List"),
|
|
238
|
+
include_details: dynamicJsonSchema("Include Details", {}),
|
|
239
|
+
where_relations: dynamicJsonSchema("Where Relations", {}),
|
|
240
|
+
order_by: OrderBySchema.optional().default([]),
|
|
241
|
+
include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
|
|
242
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
243
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
244
|
+
});
|
|
245
|
+
var MongoBaseQuerySchema = z2.object({
|
|
246
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
247
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
248
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
249
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
250
|
+
login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
|
|
251
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
252
|
+
// ✅ Single-selection -> MasterMainDateFormat
|
|
253
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
254
|
+
// ✅ Single-selection -> MasterMainTimeZone
|
|
255
|
+
});
|
|
43
256
|
|
|
44
257
|
// src/services/gps/features/geofence/gps_geofence_transaction_summary_service.ts
|
|
45
258
|
var URL = "gps/features/gps_geofence_transaction_summary";
|
|
@@ -49,7 +262,7 @@ var ENDPOINTS = {
|
|
|
49
262
|
update: (id) => `${URL}/${id}`,
|
|
50
263
|
delete: (id) => `${URL}/${id}`
|
|
51
264
|
};
|
|
52
|
-
var GPSGeofenceTransactionSummarySchema =
|
|
265
|
+
var GPSGeofenceTransactionSummarySchema = z3.object({
|
|
53
266
|
organisation_id: single_select_mandatory("Organisation ID"),
|
|
54
267
|
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
55
268
|
driver_id: single_select_optional("Driver ID"),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../../core/Enums.js';
|
|
2
2
|
import { FBR, SBR } from '../../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle, b as MasterDriver } from '../../../../user_organisation_service-DJWj2iMa.js';
|
|
5
5
|
import { GPSGeofenceData } from './gps_geofence_data_service.js';
|
|
6
|
-
import '
|
|
6
|
+
import '../../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
8
8
|
|
|
9
9
|
interface TripGeofenceToGeofence extends Record<string, unknown> {
|
|
@@ -22,25 +22,249 @@ var apiDelete = async (url) => {
|
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
25
|
+
import { z as z3 } from "zod";
|
|
26
|
+
|
|
27
|
+
// src/zod_utils/zod_utils.ts
|
|
25
28
|
import { z } from "zod";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
29
|
+
|
|
30
|
+
// src/core/BaseResponse.ts
|
|
31
|
+
var r_log = (data = {}) => {
|
|
32
|
+
return data;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
// src/zod_utils/zod_utils.ts
|
|
36
|
+
var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
|
|
37
|
+
var stringMandatory = (fieldName, min = 1, max = 100) => {
|
|
38
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).nonempty(`${fieldName} is required.`).transform(handleNullOrUndefined);
|
|
39
|
+
return schema;
|
|
40
|
+
};
|
|
41
|
+
var stringOptional = (fieldName, min = 0, max = 255, defaultValue = "") => {
|
|
42
|
+
const schema = z.string().trim().min(min, `${fieldName} must be at least ${min} characters.`).max(max, `${fieldName} must be at most ${max} characters.`).transform(handleNullOrUndefined).default(defaultValue);
|
|
43
|
+
return schema;
|
|
44
|
+
};
|
|
45
|
+
var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], unique = false) => {
|
|
46
|
+
const schema = z.array(z.string().trim(), {
|
|
47
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
48
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
49
|
+
if (unique) {
|
|
50
|
+
schema.refine(
|
|
51
|
+
(arr) => new Set(arr).size === arr.length,
|
|
52
|
+
`${fieldName} must contain unique values.`
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
return schema.optional().default(defaultValue);
|
|
56
|
+
};
|
|
57
|
+
var numberMandatory = (fieldName, min = 1, max = 1e9, defaultValue = 0) => {
|
|
58
|
+
return z.preprocess(
|
|
59
|
+
(val) => {
|
|
60
|
+
if (val === null || val === void 0 || val === "") {
|
|
61
|
+
return defaultValue;
|
|
62
|
+
}
|
|
63
|
+
if (typeof val === "string" && !isNaN(Number(val))) {
|
|
64
|
+
return Number(val);
|
|
65
|
+
}
|
|
66
|
+
return val;
|
|
67
|
+
},
|
|
68
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`)
|
|
69
|
+
);
|
|
70
|
+
};
|
|
71
|
+
var numberOptional = (fieldName, min = 0, max = 1e9, defaultValue = 0) => {
|
|
72
|
+
return z.preprocess(
|
|
73
|
+
(val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
|
|
74
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).optional().default(defaultValue)
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
var doubleOptional = (fieldName, min = 0, max = 1e6, decimalPlaces = 2, defaultValue = 0) => {
|
|
78
|
+
return z.preprocess(
|
|
79
|
+
(val) => {
|
|
80
|
+
if (typeof val === "string") {
|
|
81
|
+
val = parseFloat(val);
|
|
82
|
+
}
|
|
83
|
+
if (typeof val === "number") {
|
|
84
|
+
return parseFloat(val.toFixed(decimalPlaces));
|
|
85
|
+
}
|
|
86
|
+
return val;
|
|
87
|
+
},
|
|
88
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(min, `${fieldName} must be at least ${min}.`).max(max, `${fieldName} must be at most ${max}.`).default(defaultValue)
|
|
89
|
+
).optional();
|
|
90
|
+
};
|
|
91
|
+
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
92
|
+
return z.union([
|
|
93
|
+
z.nativeEnum(enumType, {
|
|
94
|
+
invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
|
|
95
|
+
enumType
|
|
96
|
+
).join(", ")}.`
|
|
97
|
+
}),
|
|
98
|
+
z.string().refine((val) => Object.values(enumType).includes(val), {
|
|
99
|
+
message: `${fieldName} should be one of the following values: ${Object.values(
|
|
100
|
+
enumType
|
|
101
|
+
).join(", ")}.`
|
|
102
|
+
})
|
|
103
|
+
]).default(defaultValue).refine((val) => val !== "", {
|
|
104
|
+
message: `Please select ${fieldName}.`
|
|
105
|
+
});
|
|
106
|
+
};
|
|
107
|
+
var enumOptional = (fieldName, enumType, defaultValue) => {
|
|
108
|
+
return z.nativeEnum(enumType, {
|
|
109
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
110
|
+
enumType
|
|
111
|
+
).join(", ")}.`
|
|
112
|
+
}).optional().default(() => defaultValue);
|
|
113
|
+
};
|
|
114
|
+
var getAllEnums = (enumType) => {
|
|
115
|
+
return Object.values(enumType);
|
|
116
|
+
};
|
|
117
|
+
var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
|
|
118
|
+
const schema = z.array(z.nativeEnum(enumType), {
|
|
119
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
120
|
+
enumType
|
|
121
|
+
).join(", ")}.`
|
|
122
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
123
|
+
if (unique) {
|
|
124
|
+
schema.refine(
|
|
125
|
+
(arr) => new Set(arr).size === arr.length,
|
|
126
|
+
`${fieldName} must contain unique values.`
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
return schema.optional().default(() => defaultValue);
|
|
130
|
+
};
|
|
131
|
+
var handleNullOrUndefinedDate = (value, defaultValue) => {
|
|
132
|
+
if (typeof value === "string" && !isNaN(Date.parse(value))) {
|
|
133
|
+
return value;
|
|
134
|
+
}
|
|
135
|
+
return defaultValue;
|
|
136
|
+
};
|
|
137
|
+
var dateMandatory = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
138
|
+
const schema = z.string().refine((val) => !isNaN(Date.parse(val)), {
|
|
139
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
140
|
+
}).transform((val) => handleNullOrUndefinedDate(val, defaultValue));
|
|
141
|
+
if (minDate) {
|
|
142
|
+
schema.refine((val) => new Date(val) >= new Date(minDate), {
|
|
143
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
if (maxDate) {
|
|
147
|
+
schema.refine((val) => new Date(val) <= new Date(maxDate), {
|
|
148
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
return schema;
|
|
152
|
+
};
|
|
153
|
+
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
154
|
+
var single_select_mandatory = (fieldName) => {
|
|
155
|
+
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
156
|
+
return schema;
|
|
157
|
+
};
|
|
158
|
+
var single_select_optional = (fieldName) => {
|
|
159
|
+
r_log(fieldName);
|
|
160
|
+
const schema = z.string().trim().transform(handleNullOrUndefined);
|
|
161
|
+
return schema;
|
|
162
|
+
};
|
|
163
|
+
var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
|
|
164
|
+
const schema = z.array(
|
|
165
|
+
z.string({
|
|
166
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
167
|
+
})
|
|
168
|
+
).max(
|
|
169
|
+
max,
|
|
170
|
+
`Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
|
|
171
|
+
);
|
|
172
|
+
return schema.optional().default(defaultValue);
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// src/zod_utils/zod_base_schema.ts
|
|
176
|
+
import { z as z2 } from "zod";
|
|
37
177
|
|
|
38
178
|
// src/core/Enums.ts
|
|
179
|
+
var PAGING = /* @__PURE__ */ ((PAGING2) => {
|
|
180
|
+
PAGING2["Yes"] = "Yes";
|
|
181
|
+
PAGING2["No"] = "No";
|
|
182
|
+
return PAGING2;
|
|
183
|
+
})(PAGING || {});
|
|
184
|
+
var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
|
|
185
|
+
LoadParents2["Yes"] = "Yes";
|
|
186
|
+
LoadParents2["No"] = "No";
|
|
187
|
+
LoadParents2["Custom"] = "Custom";
|
|
188
|
+
return LoadParents2;
|
|
189
|
+
})(LoadParents || {});
|
|
190
|
+
var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
|
|
191
|
+
LoadChild2["No"] = "No";
|
|
192
|
+
LoadChild2["Yes"] = "Yes";
|
|
193
|
+
LoadChild2["Count"] = "Count";
|
|
194
|
+
LoadChild2["Custom"] = "Custom";
|
|
195
|
+
LoadChild2["Direct"] = "Direct";
|
|
196
|
+
return LoadChild2;
|
|
197
|
+
})(LoadChild || {});
|
|
198
|
+
var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
|
|
199
|
+
LoadChildCount2["No"] = "No";
|
|
200
|
+
LoadChildCount2["Yes"] = "Yes";
|
|
201
|
+
LoadChildCount2["Custom"] = "Custom";
|
|
202
|
+
return LoadChildCount2;
|
|
203
|
+
})(LoadChildCount || {});
|
|
204
|
+
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
|
|
205
|
+
OrderBy2["asc"] = "asc";
|
|
206
|
+
OrderBy2["desc"] = "desc";
|
|
207
|
+
return OrderBy2;
|
|
208
|
+
})(OrderBy || {});
|
|
209
|
+
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
210
|
+
LoginFrom2["Web"] = "Web";
|
|
211
|
+
LoginFrom2["Android"] = "Android";
|
|
212
|
+
LoginFrom2["IPhone"] = "IPhone";
|
|
213
|
+
return LoginFrom2;
|
|
214
|
+
})(LoginFrom || {});
|
|
39
215
|
var Status = /* @__PURE__ */ ((Status2) => {
|
|
40
216
|
Status2["Active"] = "Active";
|
|
41
217
|
Status2["Inactive"] = "Inactive";
|
|
42
218
|
return Status2;
|
|
43
219
|
})(Status || {});
|
|
220
|
+
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
221
|
+
YesNo2["Yes"] = "Yes";
|
|
222
|
+
YesNo2["No"] = "No";
|
|
223
|
+
return YesNo2;
|
|
224
|
+
})(YesNo || {});
|
|
225
|
+
|
|
226
|
+
// src/zod_utils/zod_base_schema.ts
|
|
227
|
+
var OrderBySchema = z2.array(
|
|
228
|
+
z2.object({
|
|
229
|
+
name: stringMandatory("Order Field Name", 0, 255),
|
|
230
|
+
field: stringMandatory("Order Field Name", 0, 255),
|
|
231
|
+
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
232
|
+
})
|
|
233
|
+
);
|
|
234
|
+
var BaseQuerySchema = z2.object({
|
|
235
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
236
|
+
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
237
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
238
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
239
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
240
|
+
load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
|
|
241
|
+
load_parents_list: stringArrayOptional("Load Parents List"),
|
|
242
|
+
load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
|
|
243
|
+
load_child_list: stringArrayOptional("Load Child List"),
|
|
244
|
+
load_child_count: enumOptional(
|
|
245
|
+
"Load Child",
|
|
246
|
+
LoadChildCount,
|
|
247
|
+
"No" /* No */
|
|
248
|
+
),
|
|
249
|
+
load_child_count_list: stringArrayOptional("Load Child List"),
|
|
250
|
+
include_details: dynamicJsonSchema("Include Details", {}),
|
|
251
|
+
where_relations: dynamicJsonSchema("Where Relations", {}),
|
|
252
|
+
order_by: OrderBySchema.optional().default([]),
|
|
253
|
+
include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
|
|
254
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
255
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
256
|
+
});
|
|
257
|
+
var MongoBaseQuerySchema = z2.object({
|
|
258
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
259
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
260
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
261
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
262
|
+
login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
|
|
263
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
264
|
+
// ✅ Single-selection -> MasterMainDateFormat
|
|
265
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
266
|
+
// ✅ Single-selection -> MasterMainTimeZone
|
|
267
|
+
});
|
|
44
268
|
|
|
45
269
|
// src/services/gps/features/geofence/trip_geofence_to_geofence_service.ts
|
|
46
270
|
var URL = "gps/features/trip_geofence_to_geofence";
|
|
@@ -50,7 +274,7 @@ var ENDPOINTS = {
|
|
|
50
274
|
update: (id) => `${URL}/${id}`,
|
|
51
275
|
delete: (id) => `${URL}/${id}`
|
|
52
276
|
};
|
|
53
|
-
var TripGeofenceToGeofenceSchema =
|
|
277
|
+
var TripGeofenceToGeofenceSchema = z3.object({
|
|
54
278
|
organisation_id: single_select_mandatory("Organisation ID"),
|
|
55
279
|
vehicle_id: single_select_mandatory("Master Vehicle ID"),
|
|
56
280
|
from_geofence_id: single_select_mandatory("From Geofence ID"),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LinkType, LinkStatus, Status, NotificationType, 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, M as MasterVehicle } from '../../../user_organisation_service-
|
|
5
|
-
import '
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-DJWj2iMa.js';
|
|
5
|
+
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
8
8
|
interface GPSLiveTrackShareLink extends Record<string, unknown> {
|
|
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
|
|
|
42
42
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
43
43
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
gps_live_track_share_link_id: string;
|
|
46
45
|
status: Status;
|
|
47
46
|
organisation_id: string;
|
|
48
47
|
type: NotificationType;
|
|
49
48
|
to_recipients: string;
|
|
50
|
-
}, {
|
|
51
49
|
gps_live_track_share_link_id: string;
|
|
50
|
+
}, {
|
|
52
51
|
status: Status;
|
|
53
52
|
organisation_id: string;
|
|
54
53
|
type: NotificationType;
|
|
55
54
|
to_recipients: string;
|
|
55
|
+
gps_live_track_share_link_id: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
|
|
58
58
|
declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
|
|
|
73
73
|
to_recipients: z.ZodEffects<z.ZodString, string, string>;
|
|
74
74
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
75
|
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
76
|
-
gps_live_track_share_link_id: string;
|
|
77
76
|
status: Status;
|
|
78
77
|
organisation_id: string;
|
|
79
78
|
type: NotificationType;
|
|
80
79
|
to_recipients: string;
|
|
81
|
-
}, {
|
|
82
80
|
gps_live_track_share_link_id: string;
|
|
81
|
+
}, {
|
|
83
82
|
status: Status;
|
|
84
83
|
organisation_id: string;
|
|
85
84
|
type: NotificationType;
|
|
86
85
|
to_recipients: string;
|
|
86
|
+
gps_live_track_share_link_id: string;
|
|
87
87
|
}>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
link_type: LinkType;
|
|
90
|
-
location: string;
|
|
91
89
|
link_status: LinkStatus;
|
|
92
90
|
status: Status;
|
|
93
91
|
organisation_id: string;
|
|
94
92
|
vehicle_id: string;
|
|
95
93
|
trip_id: string;
|
|
96
|
-
expire_milliseconds: number;
|
|
97
94
|
notifications: {
|
|
98
|
-
gps_live_track_share_link_id: string;
|
|
99
95
|
status: Status;
|
|
100
96
|
organisation_id: string;
|
|
101
97
|
type: NotificationType;
|
|
102
98
|
to_recipients: string;
|
|
99
|
+
gps_live_track_share_link_id: string;
|
|
103
100
|
}[];
|
|
101
|
+
link_type: LinkType;
|
|
102
|
+
location: string;
|
|
103
|
+
expire_milliseconds: number;
|
|
104
104
|
latitude?: number | undefined;
|
|
105
105
|
longitude?: number | undefined;
|
|
106
106
|
}, {
|
|
107
|
-
link_type: LinkType;
|
|
108
107
|
link_status: LinkStatus;
|
|
109
108
|
status: Status;
|
|
110
109
|
organisation_id: string;
|
|
111
110
|
vehicle_id: string;
|
|
112
111
|
trip_id: string;
|
|
113
|
-
|
|
114
|
-
longitude?: unknown;
|
|
115
|
-
location?: string | undefined;
|
|
116
|
-
expire_milliseconds?: unknown;
|
|
112
|
+
link_type: LinkType;
|
|
117
113
|
notifications?: {
|
|
118
|
-
gps_live_track_share_link_id: string;
|
|
119
114
|
status: Status;
|
|
120
115
|
organisation_id: string;
|
|
121
116
|
type: NotificationType;
|
|
122
117
|
to_recipients: string;
|
|
118
|
+
gps_live_track_share_link_id: string;
|
|
123
119
|
}[] | undefined;
|
|
120
|
+
latitude?: unknown;
|
|
121
|
+
longitude?: unknown;
|
|
122
|
+
location?: string | undefined;
|
|
123
|
+
expire_milliseconds?: unknown;
|
|
124
124
|
}>;
|
|
125
125
|
type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
|
|
126
126
|
declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
|
|
@@ -176,7 +176,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
176
176
|
link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
|
|
177
177
|
link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
|
|
178
178
|
}, "strip", z.ZodTypeAny, {
|
|
179
|
-
link_type: LinkType[];
|
|
180
179
|
link_status: LinkStatus[];
|
|
181
180
|
status: Status[];
|
|
182
181
|
search: string;
|
|
@@ -202,10 +201,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
202
201
|
organisation_ids: string[];
|
|
203
202
|
vehicle_ids: string[];
|
|
204
203
|
trip_ids: string[];
|
|
204
|
+
link_type: LinkType[];
|
|
205
205
|
}, {
|
|
206
206
|
date_format_id: string;
|
|
207
207
|
time_zone_id: string;
|
|
208
|
-
link_type?: LinkType[] | undefined;
|
|
209
208
|
link_status?: LinkStatus[] | undefined;
|
|
210
209
|
status?: Status[] | undefined;
|
|
211
210
|
search?: string | undefined;
|
|
@@ -229,6 +228,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
229
228
|
organisation_ids?: string[] | undefined;
|
|
230
229
|
vehicle_ids?: string[] | undefined;
|
|
231
230
|
trip_ids?: string[] | undefined;
|
|
231
|
+
link_type?: LinkType[] | undefined;
|
|
232
232
|
}>;
|
|
233
233
|
type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
|
|
234
234
|
declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
|