vms-nest-prisma-api-document 215.0.0 → 216.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Enums.d.ts +8 -1
- package/dist/core/Enums.js +9 -0
- package/dist/services/account/analytics/user_login_analytics_service.d.ts +3 -3
- package/dist/services/account/analytics/user_page_analytics_service.d.ts +1 -1
- package/dist/services/account/bookmark_service.d.ts +3 -3
- package/dist/services/account/notification_preferences.service.d.ts +18 -18
- package/dist/services/account/report_preferences.service.d.ts +7 -7
- package/dist/services/account/ticket_service.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/bus_stop.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/calender.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/master_route.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/notice_board.d.ts +1 -1
- package/dist/services/fleet/bus_mangement/student.d.ts +1 -1
- package/dist/services/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +17 -17
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +47 -47
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +30 -30
- package/dist/services/fleet/issue_management/issue_management_service.d.ts +494 -0
- package/dist/services/fleet/issue_management/issue_management_service.js +559 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.d.ts +290 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_fuel_station.js +442 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service.d.ts +1220 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service.js +957 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.d.ts +314 -0
- package/dist/services/fleet/vendor_management/fleet_vendor_service_center.js +447 -0
- package/dist/services/gps/features/geofence/gps_geofence_service.d.ts +3 -3
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +6 -6
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +7 -7
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +2 -2
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +5 -5
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +8 -8
- package/dist/services/main/devices/master_device_service.d.ts +1 -1
- package/dist/services/main/drivers/master_driver_service.d.ts +1 -1
- package/dist/services/main/sims/master_sim_service.d.ts +1 -1
- package/dist/services/main/users/auth_service.d.ts +1 -1
- package/dist/services/main/users/user_admin_service.d.ts +22 -22
- package/dist/services/main/users/user_organisation_service.d.ts +1 -1
- package/dist/services/main/users/user_service.d.ts +1 -1
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +1 -1
- package/dist/services/main/vehicle/master_vehicle_service.d.ts +1 -1
- package/dist/services/master/bus/master_class_service.d.ts +1 -1
- package/dist/services/master/bus/master_program_service.d.ts +1 -1
- package/dist/services/master/bus/master_relationship_service.d.ts +1 -1
- package/dist/services/master/bus/master_section_service.d.ts +1 -1
- package/dist/services/master/bus/master_semester_service.d.ts +1 -1
- package/dist/services/master/bus/master_stream_service.d.ts +1 -1
- package/dist/services/master/bus/master_year_service.d.ts +1 -1
- package/dist/services/master/device/master_device_manufacturer_service.d.ts +1 -1
- package/dist/services/master/device/master_device_model_service.d.ts +1 -1
- package/dist/services/master/device/master_device_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_name_service.d.ts +1 -1
- package/dist/services/master/expense/master_expense_type_service.d.ts +1 -1
- package/dist/services/master/expense/master_fuel_company_service.d.ts +6 -6
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
- package/dist/services/master/expense/master_vendor_tag_service.d.ts +126 -0
- package/dist/services/master/expense/master_vendor_tag_service.js +307 -0
- package/dist/services/master/expense/master_vendor_type_service.d.ts +5 -5
- package/dist/services/master/fleet/master_fleet_incident_severity_service.d.ts +3 -3
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_incident_type_service.d.ts +3 -3
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +1 -1
- package/dist/services/master/fleet/master_fleet_service_task_service.d.ts +1 -1
- package/dist/services/master/main/master_main_country_service.d.ts +1 -1
- package/dist/services/master/main/master_main_currency_service.d.ts +1 -1
- package/dist/services/master/main/master_main_date_format_service.d.ts +1 -1
- package/dist/services/master/main/master_main_industry_service.d.ts +1 -1
- package/dist/services/master/main/master_main_landmark_service.d.ts +5 -5
- package/dist/services/master/main/master_main_language_service.d.ts +1 -1
- package/dist/services/master/main/master_main_state_service.d.ts +1 -1
- package/dist/services/master/main/master_main_timezone_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_distance_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_mileage_service.d.ts +1 -1
- package/dist/services/master/main/master_main_unit_volume_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_branch_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_color_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_group_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_sub_company_service.d.ts +1 -1
- package/dist/services/master/organisation/organisation_tag_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +1 -1
- package/dist/services/master/spare_part/master_spare_part_unit_service.d.ts +1 -1
- package/dist/services/master/trip/master_trip_party_type_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_grade_service.d.ts +3 -3
- package/dist/services/master/tyre/master_tyre_make_service.d.ts +1 -1
- package/dist/services/master/tyre/master_tyre_model_service.d.ts +3 -3
- package/dist/services/master/user/master_user_role_service.d.ts +1 -1
- package/dist/services/master/user/master_user_status_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_associated_to_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_document_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +3 -3
- package/dist/services/master/vehicle/master_vehicle_fuel_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_fuel_unit_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_make_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_ownership_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_status_type_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_sub_model_service.d.ts +1 -1
- package/dist/services/master/vehicle/master_vehicle_type_service.d.ts +1 -1
- package/dist/{user_organisation_service-Dn5ij2oU.d.ts → user_organisation_service-C186BM9A.d.ts} +59 -59
- package/package.json +1 -1
|
@@ -0,0 +1,447 @@
|
|
|
1
|
+
// src/core/sdk-config.ts
|
|
2
|
+
var KEY = "__vms_axios_instance__";
|
|
3
|
+
var getAxiosInstance = () => {
|
|
4
|
+
const instance = globalThis[KEY];
|
|
5
|
+
if (!instance) {
|
|
6
|
+
throw new Error("\u274C Axios instance not configured. Call setAxiosInstance() first.");
|
|
7
|
+
}
|
|
8
|
+
return instance;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
// src/core/apiCall.ts
|
|
12
|
+
var apiPost = async (url, data) => {
|
|
13
|
+
const response = await getAxiosInstance().post(url, data);
|
|
14
|
+
return response.data;
|
|
15
|
+
};
|
|
16
|
+
var apiPatch = async (url, data) => {
|
|
17
|
+
const response = await getAxiosInstance().patch(url, data);
|
|
18
|
+
return response.data;
|
|
19
|
+
};
|
|
20
|
+
var apiDelete = async (url) => {
|
|
21
|
+
const response = await getAxiosInstance().delete(url);
|
|
22
|
+
return response.data;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// src/services/fleet/vendor_management/fleet_vendor_service_center.ts
|
|
26
|
+
import { z as z3 } from "zod";
|
|
27
|
+
|
|
28
|
+
// src/zod_utils/zod_utils.ts
|
|
29
|
+
import { z } from "zod";
|
|
30
|
+
|
|
31
|
+
// src/core/BaseResponse.ts
|
|
32
|
+
var r_log = (data = {}) => {
|
|
33
|
+
return data;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// src/zod_utils/zod_utils.ts
|
|
37
|
+
var handleNullOrUndefined = (value) => typeof value === "string" ? value : "";
|
|
38
|
+
var stringMandatory = (fieldName, min = 1, max = 100) => {
|
|
39
|
+
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);
|
|
40
|
+
return schema;
|
|
41
|
+
};
|
|
42
|
+
var stringOptional = (fieldName, min = 0, max = 255, defaultValue = "") => {
|
|
43
|
+
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);
|
|
44
|
+
return schema;
|
|
45
|
+
};
|
|
46
|
+
var stringArrayOptional = (fieldName, min = 0, max = 100, defaultValue = [], unique = false) => {
|
|
47
|
+
const schema = z.array(z.string().trim(), {
|
|
48
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
49
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
50
|
+
if (unique) {
|
|
51
|
+
schema.refine(
|
|
52
|
+
(arr) => new Set(arr).size === arr.length,
|
|
53
|
+
`${fieldName} must contain unique values.`
|
|
54
|
+
);
|
|
55
|
+
}
|
|
56
|
+
return schema.optional().default(defaultValue);
|
|
57
|
+
};
|
|
58
|
+
var numberOptional = (fieldName, min = 0, max = 1e14, defaultValue = 0) => {
|
|
59
|
+
return z.preprocess(
|
|
60
|
+
(val) => typeof val === "string" && val.trim() !== "" ? Number(val) : val,
|
|
61
|
+
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)
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
var doubleOptionalLatLng = (fieldName, defaultValue = 0) => {
|
|
65
|
+
return z.preprocess(
|
|
66
|
+
(val) => {
|
|
67
|
+
if (typeof val === "string") {
|
|
68
|
+
val = parseFloat(val);
|
|
69
|
+
}
|
|
70
|
+
if (typeof val === "number") {
|
|
71
|
+
return parseFloat(val.toFixed(6));
|
|
72
|
+
}
|
|
73
|
+
return val;
|
|
74
|
+
},
|
|
75
|
+
z.number({ invalid_type_error: `${fieldName} must be a number.` }).min(-180, `${fieldName} must be at least -180.`).max(180, `${fieldName} must be at most 180.`).default(defaultValue)
|
|
76
|
+
).optional();
|
|
77
|
+
};
|
|
78
|
+
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
79
|
+
return z.union([
|
|
80
|
+
z.nativeEnum(enumType, {
|
|
81
|
+
invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
|
|
82
|
+
enumType
|
|
83
|
+
).join(", ")}.`
|
|
84
|
+
}),
|
|
85
|
+
z.string().refine((val) => Object.values(enumType).includes(val), {
|
|
86
|
+
message: `${fieldName} should be one of the following values: ${Object.values(
|
|
87
|
+
enumType
|
|
88
|
+
).join(", ")}.`
|
|
89
|
+
})
|
|
90
|
+
]).default(defaultValue).refine((val) => val !== "", {
|
|
91
|
+
message: `Please select ${fieldName}.`
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
var enumOptional = (fieldName, enumType, defaultValue) => {
|
|
95
|
+
return z.nativeEnum(enumType, {
|
|
96
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
97
|
+
enumType
|
|
98
|
+
).join(", ")}.`
|
|
99
|
+
}).optional().default(() => defaultValue);
|
|
100
|
+
};
|
|
101
|
+
var getAllEnums = (enumType) => {
|
|
102
|
+
return Object.values(enumType);
|
|
103
|
+
};
|
|
104
|
+
var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
|
|
105
|
+
const schema = z.array(z.nativeEnum(enumType), {
|
|
106
|
+
invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
|
|
107
|
+
enumType
|
|
108
|
+
).join(", ")}.`
|
|
109
|
+
}).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
|
|
110
|
+
if (unique) {
|
|
111
|
+
schema.refine(
|
|
112
|
+
(arr) => new Set(arr).size === arr.length,
|
|
113
|
+
`${fieldName} must contain unique values.`
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
return schema.optional().default(() => defaultValue);
|
|
117
|
+
};
|
|
118
|
+
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
119
|
+
var single_select_mandatory = (fieldName) => {
|
|
120
|
+
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
121
|
+
return schema;
|
|
122
|
+
};
|
|
123
|
+
var single_select_optional = (fieldName) => {
|
|
124
|
+
r_log(fieldName);
|
|
125
|
+
const schema = z.string().trim().transform(handleNullOrUndefined);
|
|
126
|
+
return schema;
|
|
127
|
+
};
|
|
128
|
+
var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
|
|
129
|
+
const schema = z.array(
|
|
130
|
+
z.string({
|
|
131
|
+
invalid_type_error: `${fieldName} must be an array of strings.`
|
|
132
|
+
})
|
|
133
|
+
).max(
|
|
134
|
+
max,
|
|
135
|
+
`Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
|
|
136
|
+
);
|
|
137
|
+
return schema.optional().default(defaultValue);
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
// src/zod_utils/zod_base_schema.ts
|
|
141
|
+
import { z as z2 } from "zod";
|
|
142
|
+
|
|
143
|
+
// src/core/Enums.ts
|
|
144
|
+
var PAGING = /* @__PURE__ */ ((PAGING2) => {
|
|
145
|
+
PAGING2["Yes"] = "Yes";
|
|
146
|
+
PAGING2["No"] = "No";
|
|
147
|
+
return PAGING2;
|
|
148
|
+
})(PAGING || {});
|
|
149
|
+
var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
|
|
150
|
+
LoadParents2["Yes"] = "Yes";
|
|
151
|
+
LoadParents2["No"] = "No";
|
|
152
|
+
LoadParents2["Custom"] = "Custom";
|
|
153
|
+
return LoadParents2;
|
|
154
|
+
})(LoadParents || {});
|
|
155
|
+
var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
|
|
156
|
+
LoadChild2["No"] = "No";
|
|
157
|
+
LoadChild2["Yes"] = "Yes";
|
|
158
|
+
LoadChild2["Count"] = "Count";
|
|
159
|
+
LoadChild2["Custom"] = "Custom";
|
|
160
|
+
LoadChild2["Direct"] = "Direct";
|
|
161
|
+
return LoadChild2;
|
|
162
|
+
})(LoadChild || {});
|
|
163
|
+
var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
|
|
164
|
+
LoadChildCount2["No"] = "No";
|
|
165
|
+
LoadChildCount2["Yes"] = "Yes";
|
|
166
|
+
LoadChildCount2["Custom"] = "Custom";
|
|
167
|
+
return LoadChildCount2;
|
|
168
|
+
})(LoadChildCount || {});
|
|
169
|
+
var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
|
|
170
|
+
OrderBy2["asc"] = "asc";
|
|
171
|
+
OrderBy2["desc"] = "desc";
|
|
172
|
+
return OrderBy2;
|
|
173
|
+
})(OrderBy || {});
|
|
174
|
+
var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
|
|
175
|
+
LoginFrom2["Web"] = "Web";
|
|
176
|
+
LoginFrom2["Android"] = "Android";
|
|
177
|
+
LoginFrom2["IPhone"] = "IPhone";
|
|
178
|
+
LoginFrom2["AndroidPWA"] = "AndroidPWA";
|
|
179
|
+
LoginFrom2["iOSPWA"] = "iOSPWA";
|
|
180
|
+
return LoginFrom2;
|
|
181
|
+
})(LoginFrom || {});
|
|
182
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
183
|
+
Status2["Active"] = "Active";
|
|
184
|
+
Status2["Inactive"] = "Inactive";
|
|
185
|
+
return Status2;
|
|
186
|
+
})(Status || {});
|
|
187
|
+
var FileType = /* @__PURE__ */ ((FileType2) => {
|
|
188
|
+
FileType2["NoFile"] = "NoFile";
|
|
189
|
+
FileType2["Image"] = "Image";
|
|
190
|
+
FileType2["Video"] = "Video";
|
|
191
|
+
FileType2["PDF"] = "PDF";
|
|
192
|
+
return FileType2;
|
|
193
|
+
})(FileType || {});
|
|
194
|
+
var YesNo = /* @__PURE__ */ ((YesNo2) => {
|
|
195
|
+
YesNo2["Yes"] = "Yes";
|
|
196
|
+
YesNo2["No"] = "No";
|
|
197
|
+
return YesNo2;
|
|
198
|
+
})(YesNo || {});
|
|
199
|
+
|
|
200
|
+
// src/zod_utils/zod_base_schema.ts
|
|
201
|
+
var OrderBySchema = z2.array(
|
|
202
|
+
z2.object({
|
|
203
|
+
name: stringMandatory("Order Field Name", 0, 255),
|
|
204
|
+
field: stringMandatory("Order Field Name", 0, 255),
|
|
205
|
+
direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
|
|
206
|
+
})
|
|
207
|
+
);
|
|
208
|
+
var BaseFileSchema = z2.object({
|
|
209
|
+
usage_type: stringMandatory("Usage Type", 3, 100),
|
|
210
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
|
|
211
|
+
file_url: stringOptional("File URL", 0, 300),
|
|
212
|
+
file_key: stringOptional("File Key", 0, 300),
|
|
213
|
+
file_name: stringOptional("File Name", 0, 300),
|
|
214
|
+
file_description: stringOptional("File Description", 0, 2e3),
|
|
215
|
+
file_size: numberOptional("File Size"),
|
|
216
|
+
file_metadata: dynamicJsonSchema("File Metadata", {}),
|
|
217
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
218
|
+
});
|
|
219
|
+
var BaseQuerySchema = z2.object({
|
|
220
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
221
|
+
status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
|
|
222
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
223
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
224
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
225
|
+
load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
|
|
226
|
+
load_parents_list: stringArrayOptional("Load Parents List"),
|
|
227
|
+
load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
|
|
228
|
+
load_child_list: stringArrayOptional("Load Child List"),
|
|
229
|
+
load_child_count: enumOptional(
|
|
230
|
+
"Load Child",
|
|
231
|
+
LoadChildCount,
|
|
232
|
+
"No" /* No */
|
|
233
|
+
),
|
|
234
|
+
load_child_count_list: stringArrayOptional("Load Child List"),
|
|
235
|
+
include_details: dynamicJsonSchema("Include Details", {}),
|
|
236
|
+
where_relations: dynamicJsonSchema("Where Relations", {}),
|
|
237
|
+
order_by: OrderBySchema.optional().default([]),
|
|
238
|
+
include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
|
|
239
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
240
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
241
|
+
});
|
|
242
|
+
var FilePresignedUrlSchema = z2.object({
|
|
243
|
+
file_name: stringMandatory("File Name", 1, 255),
|
|
244
|
+
file_type: enumMandatory("File Type", FileType, "Image" /* Image */)
|
|
245
|
+
});
|
|
246
|
+
var MongoBaseQuerySchema = z2.object({
|
|
247
|
+
search: stringOptional("Search", 0, 255, ""),
|
|
248
|
+
paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
|
|
249
|
+
page_count: numberOptional("Page Count", 0, 1e3, 100),
|
|
250
|
+
page_index: numberOptional("Page Index", 0, 1e3, 0),
|
|
251
|
+
login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
|
|
252
|
+
date_format_id: single_select_optional("MasterMainDateFormat"),
|
|
253
|
+
// ✅ Single-selection -> MasterMainDateFormat
|
|
254
|
+
time_zone_id: single_select_optional("MasterMainTimeZone")
|
|
255
|
+
// ✅ Single-selection -> MasterMainTimeZone
|
|
256
|
+
});
|
|
257
|
+
|
|
258
|
+
// src/services/fleet/vendor_management/fleet_vendor_service_center.ts
|
|
259
|
+
var URL = "fleet/vendor_management/vendor_service_center";
|
|
260
|
+
var ENDPOINTS = {
|
|
261
|
+
find: `${URL}/search`,
|
|
262
|
+
create: `${URL}`,
|
|
263
|
+
update: (id) => `${URL}/${id}`,
|
|
264
|
+
delete: (id) => `${URL}/${id}`
|
|
265
|
+
};
|
|
266
|
+
var FleetVendorServiceCenterSchema = z3.object({
|
|
267
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
268
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
269
|
+
vendor_id: single_select_mandatory("FleetVendor"),
|
|
270
|
+
// ✅ Single-Selection -> FleetVendor
|
|
271
|
+
center_name: stringMandatory("Center Name", 3, 150),
|
|
272
|
+
center_code: stringOptional("Center Code", 0, 50),
|
|
273
|
+
is_company_owned: enumMandatory("Is Company Owned", YesNo, "No" /* No */),
|
|
274
|
+
oem_authorised: enumMandatory("OEM Authorised", YesNo, "No" /* No */),
|
|
275
|
+
oem_brand_name: stringOptional("OEM Brand Name", 0, 150),
|
|
276
|
+
service_brand_name: stringOptional("Service Brand Name", 0, 150),
|
|
277
|
+
operating_hours: stringOptional("Operating Hours", 0, 200),
|
|
278
|
+
is_24x7: enumMandatory("Is 24x7", YesNo, "No" /* No */),
|
|
279
|
+
supports_credit: enumMandatory("Supports Credit", YesNo, "No" /* No */),
|
|
280
|
+
pickup_and_drop: enumMandatory("Pickup And Drop", YesNo, "No" /* No */),
|
|
281
|
+
roadside_assistance: enumMandatory("Roadside Assistance", YesNo, "No" /* No */),
|
|
282
|
+
warranty_repairs: enumMandatory("Warranty Repairs", YesNo, "No" /* No */),
|
|
283
|
+
supported_service_types: stringOptional("Supported Service Types", 0, 300),
|
|
284
|
+
supported_vehicle_types: stringOptional("Supported Vehicle Types", 0, 200),
|
|
285
|
+
has_alignment_bay: enumMandatory("Has Alignment Bay", YesNo, "No" /* No */),
|
|
286
|
+
has_body_shop: enumMandatory("Has Body Shop", YesNo, "No" /* No */),
|
|
287
|
+
has_paint_booth: enumMandatory("Has Paint Booth", YesNo, "Yes" /* Yes */),
|
|
288
|
+
has_wash_bay: enumMandatory("Has Wash Bay", YesNo, "Yes" /* Yes */),
|
|
289
|
+
has_tow_truck: enumMandatory("Has Tow Truck", YesNo, "Yes" /* Yes */),
|
|
290
|
+
service_capacity_per_day: numberOptional("Service Capacity Per Day", 0),
|
|
291
|
+
eta_regular_service_hours: numberOptional("ETA Regular Service Hours"),
|
|
292
|
+
eta_repair_hours: numberOptional("ETA Repair Hours"),
|
|
293
|
+
center_email: stringOptional("Center Email", 0, 100),
|
|
294
|
+
center_mobile: stringOptional("Center Mobile", 0, 15),
|
|
295
|
+
center_phone: stringOptional("Center Phone", 0, 15),
|
|
296
|
+
website_url: stringOptional("Website URL", 0, 200),
|
|
297
|
+
address_line1: stringOptional("Address Line 1", 0, 150),
|
|
298
|
+
address_line2: stringOptional("Address Line 2", 0, 150),
|
|
299
|
+
locality_landmark: stringOptional("Locality / Landmark", 0, 150),
|
|
300
|
+
neighborhood: stringOptional("Neighborhood", 0, 100),
|
|
301
|
+
town_city: stringOptional("Town / City", 0, 100),
|
|
302
|
+
district_county: stringOptional("District / County", 0, 100),
|
|
303
|
+
state_province_region: stringOptional("State / Province / Region", 0, 100),
|
|
304
|
+
postal_code: stringOptional("Postal Code", 0, 20),
|
|
305
|
+
country: stringOptional("Country", 0, 100),
|
|
306
|
+
country_code: stringOptional("Country Code", 0, 5),
|
|
307
|
+
// Location Details
|
|
308
|
+
latitude: doubleOptionalLatLng("Latitude"),
|
|
309
|
+
longitude: doubleOptionalLatLng("Longitude"),
|
|
310
|
+
google_location: stringOptional("Google Location", 0, 500),
|
|
311
|
+
center_notes: stringOptional("Center Notes", 0, 2e3),
|
|
312
|
+
is_preferred_center: enumMandatory("Is Preferred Center", YesNo, "No" /* No */),
|
|
313
|
+
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
314
|
+
});
|
|
315
|
+
var FleetVendorServiceCenterQuerySchema = BaseQuerySchema.extend({
|
|
316
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
317
|
+
// ✅ Single-Selection -> UserOrganisation
|
|
318
|
+
vendor_ids: multi_select_optional("FleetVendor"),
|
|
319
|
+
// ✅ Single-Selection -> FleetVendor
|
|
320
|
+
landmark_ids: multi_select_optional("MasterMainLandMark"),
|
|
321
|
+
// ✅ Single-Selection -> MasterMainLandMark
|
|
322
|
+
service_center_ids: multi_select_optional("FleetVendorServiceCenter"),
|
|
323
|
+
// ✅ Single-Selection -> FleetVendorServiceCenter
|
|
324
|
+
is_company_owned: enumArrayOptional("Is Company Owned", YesNo),
|
|
325
|
+
oem_authorised: enumArrayOptional("OEM Authorised", YesNo),
|
|
326
|
+
is_preferred_station: enumArrayOptional("Is Preferred Station", YesNo)
|
|
327
|
+
});
|
|
328
|
+
var toFleetVendorServiceCenterPayload = (vendorServiceCenter) => ({
|
|
329
|
+
// Basic Info
|
|
330
|
+
center_name: vendorServiceCenter.center_name || "",
|
|
331
|
+
center_code: vendorServiceCenter.center_code || "",
|
|
332
|
+
is_company_owned: vendorServiceCenter.is_company_owned || "No" /* No */,
|
|
333
|
+
oem_authorised: vendorServiceCenter.oem_authorised || "No" /* No */,
|
|
334
|
+
oem_brand_name: vendorServiceCenter.oem_brand_name || "",
|
|
335
|
+
service_brand_name: vendorServiceCenter.service_brand_name || "",
|
|
336
|
+
// Notes
|
|
337
|
+
center_notes: vendorServiceCenter.center_notes || "",
|
|
338
|
+
is_preferred_center: vendorServiceCenter.is_preferred_center || "No" /* No */,
|
|
339
|
+
// Operational Details
|
|
340
|
+
operating_hours: vendorServiceCenter.operating_hours || "",
|
|
341
|
+
is_24x7: vendorServiceCenter.is_24x7 || "No" /* No */,
|
|
342
|
+
supports_credit: vendorServiceCenter.supports_credit || "No" /* No */,
|
|
343
|
+
pickup_and_drop: vendorServiceCenter.pickup_and_drop || "No" /* No */,
|
|
344
|
+
roadside_assistance: vendorServiceCenter.roadside_assistance || "No" /* No */,
|
|
345
|
+
warranty_repairs: vendorServiceCenter.warranty_repairs || "No" /* No */,
|
|
346
|
+
supported_service_types: vendorServiceCenter.supported_service_types || "",
|
|
347
|
+
supported_vehicle_types: vendorServiceCenter.supported_vehicle_types || "",
|
|
348
|
+
has_alignment_bay: vendorServiceCenter.has_alignment_bay || "No" /* No */,
|
|
349
|
+
has_body_shop: vendorServiceCenter.has_body_shop || "No" /* No */,
|
|
350
|
+
has_paint_booth: vendorServiceCenter.has_paint_booth || "No" /* No */,
|
|
351
|
+
has_wash_bay: vendorServiceCenter.has_wash_bay || "Yes" /* Yes */,
|
|
352
|
+
has_tow_truck: vendorServiceCenter.has_tow_truck || "No" /* No */,
|
|
353
|
+
service_capacity_per_day: vendorServiceCenter.service_capacity_per_day || 0,
|
|
354
|
+
eta_regular_service_hours: vendorServiceCenter.eta_regular_service_hours || 0,
|
|
355
|
+
eta_repair_hours: vendorServiceCenter.eta_repair_hours || 0,
|
|
356
|
+
// Contact Info
|
|
357
|
+
center_email: vendorServiceCenter.center_email || "",
|
|
358
|
+
center_mobile: vendorServiceCenter.center_mobile || "",
|
|
359
|
+
center_phone: vendorServiceCenter.center_phone || "",
|
|
360
|
+
website_url: vendorServiceCenter.website_url || "",
|
|
361
|
+
// Address Details
|
|
362
|
+
address_line1: vendorServiceCenter.address_line1 || "",
|
|
363
|
+
address_line2: vendorServiceCenter.address_line2 || "",
|
|
364
|
+
locality_landmark: vendorServiceCenter.locality_landmark || "",
|
|
365
|
+
neighborhood: vendorServiceCenter.neighborhood || "",
|
|
366
|
+
town_city: vendorServiceCenter.town_city || "",
|
|
367
|
+
district_county: vendorServiceCenter.district_county || "",
|
|
368
|
+
state_province_region: vendorServiceCenter.state_province_region || "",
|
|
369
|
+
postal_code: vendorServiceCenter.postal_code || "",
|
|
370
|
+
country: vendorServiceCenter.country || "",
|
|
371
|
+
country_code: vendorServiceCenter.country_code || "",
|
|
372
|
+
// Location Details
|
|
373
|
+
latitude: vendorServiceCenter.latitude || 0,
|
|
374
|
+
longitude: vendorServiceCenter.longitude || 0,
|
|
375
|
+
google_location: vendorServiceCenter.google_location || "",
|
|
376
|
+
organisation_id: vendorServiceCenter.organisation_id || "",
|
|
377
|
+
vendor_id: vendorServiceCenter.vendor_id || "",
|
|
378
|
+
status: "Active" /* Active */
|
|
379
|
+
});
|
|
380
|
+
var newFleetVendorServiceCenterPayload = () => ({
|
|
381
|
+
organisation_id: "",
|
|
382
|
+
vendor_id: "",
|
|
383
|
+
center_name: "",
|
|
384
|
+
center_code: "",
|
|
385
|
+
is_company_owned: "No" /* No */,
|
|
386
|
+
oem_authorised: "No" /* No */,
|
|
387
|
+
oem_brand_name: "",
|
|
388
|
+
service_brand_name: "",
|
|
389
|
+
center_notes: "",
|
|
390
|
+
is_preferred_center: "No" /* No */,
|
|
391
|
+
operating_hours: "",
|
|
392
|
+
is_24x7: "No" /* No */,
|
|
393
|
+
supports_credit: "No" /* No */,
|
|
394
|
+
pickup_and_drop: "No" /* No */,
|
|
395
|
+
roadside_assistance: "No" /* No */,
|
|
396
|
+
warranty_repairs: "No" /* No */,
|
|
397
|
+
supported_service_types: "",
|
|
398
|
+
supported_vehicle_types: "",
|
|
399
|
+
has_alignment_bay: "No" /* No */,
|
|
400
|
+
has_body_shop: "No" /* No */,
|
|
401
|
+
has_paint_booth: "No" /* No */,
|
|
402
|
+
has_wash_bay: "Yes" /* Yes */,
|
|
403
|
+
has_tow_truck: "No" /* No */,
|
|
404
|
+
service_capacity_per_day: 0,
|
|
405
|
+
eta_regular_service_hours: 0,
|
|
406
|
+
eta_repair_hours: 0,
|
|
407
|
+
center_email: "",
|
|
408
|
+
center_mobile: "",
|
|
409
|
+
center_phone: "",
|
|
410
|
+
website_url: "",
|
|
411
|
+
address_line1: "",
|
|
412
|
+
address_line2: "",
|
|
413
|
+
locality_landmark: "",
|
|
414
|
+
neighborhood: "",
|
|
415
|
+
town_city: "",
|
|
416
|
+
district_county: "",
|
|
417
|
+
state_province_region: "",
|
|
418
|
+
postal_code: "",
|
|
419
|
+
country: "",
|
|
420
|
+
country_code: "",
|
|
421
|
+
latitude: 0,
|
|
422
|
+
longitude: 0,
|
|
423
|
+
google_location: "",
|
|
424
|
+
status: "Active" /* Active */
|
|
425
|
+
});
|
|
426
|
+
var findFleetVendorServiceCenter = async (data) => {
|
|
427
|
+
return apiPost(ENDPOINTS.find, data);
|
|
428
|
+
};
|
|
429
|
+
var createFleetVendorServiceCenter = async (data) => {
|
|
430
|
+
return apiPost(ENDPOINTS.create, data);
|
|
431
|
+
};
|
|
432
|
+
var updateFleetVendorServiceCenter = async (id, data) => {
|
|
433
|
+
return apiPatch(ENDPOINTS.update(id), data);
|
|
434
|
+
};
|
|
435
|
+
var deleteFleetVendorServiceCenter = async (id) => {
|
|
436
|
+
return apiDelete(ENDPOINTS.delete(id));
|
|
437
|
+
};
|
|
438
|
+
export {
|
|
439
|
+
FleetVendorServiceCenterQuerySchema,
|
|
440
|
+
FleetVendorServiceCenterSchema,
|
|
441
|
+
createFleetVendorServiceCenter,
|
|
442
|
+
deleteFleetVendorServiceCenter,
|
|
443
|
+
findFleetVendorServiceCenter,
|
|
444
|
+
newFleetVendorServiceCenterPayload,
|
|
445
|
+
toFleetVendorServiceCenterPayload,
|
|
446
|
+
updateFleetVendorServiceCenter
|
|
447
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofencePurposeType, GeofenceType, 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 } from '../../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation } from '../../../../user_organisation_service-C186BM9A.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -172,7 +172,6 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
172
172
|
gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
173
173
|
}, "strip", z.ZodTypeAny, {
|
|
174
174
|
status: Status[];
|
|
175
|
-
gps_geofence_ids: string[];
|
|
176
175
|
search: string;
|
|
177
176
|
paging: PAGING;
|
|
178
177
|
page_count: number;
|
|
@@ -196,11 +195,11 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
196
195
|
organisation_ids: string[];
|
|
197
196
|
geofence_purpose_type: GeofencePurposeType[];
|
|
198
197
|
geofence_type: GeofenceType[];
|
|
198
|
+
gps_geofence_ids: string[];
|
|
199
199
|
}, {
|
|
200
200
|
date_format_id: string;
|
|
201
201
|
time_zone_id: string;
|
|
202
202
|
status?: Status[] | undefined;
|
|
203
|
-
gps_geofence_ids?: string[] | undefined;
|
|
204
203
|
search?: string | undefined;
|
|
205
204
|
paging?: PAGING | undefined;
|
|
206
205
|
page_count?: unknown;
|
|
@@ -222,6 +221,7 @@ declare const GPSGeofenceQuerySchema: z.ZodObject<{
|
|
|
222
221
|
organisation_ids?: string[] | undefined;
|
|
223
222
|
geofence_purpose_type?: GeofencePurposeType[] | undefined;
|
|
224
223
|
geofence_type?: GeofenceType[] | undefined;
|
|
224
|
+
gps_geofence_ids?: string[] | undefined;
|
|
225
225
|
}>;
|
|
226
226
|
type GPSGeofenceQueryDTO = z.infer<typeof GPSGeofenceQuerySchema>;
|
|
227
227
|
declare const toGPSGeofencePayload: (data: GPSGeofence) => GPSGeofenceDTO;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { GeofenceStatusType, 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-C186BM9A.js';
|
|
5
5
|
import { GPSGeofence } from './gps_geofence_service.js';
|
|
6
6
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
7
7
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
@@ -36,23 +36,23 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
|
|
|
36
36
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
37
37
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
geofence_status_type: GeofenceStatusType;
|
|
40
|
-
geofence_time: string;
|
|
41
39
|
status: Status;
|
|
42
40
|
organisation_id: string;
|
|
43
41
|
vehicle_id: string;
|
|
44
42
|
driver_id: string;
|
|
45
43
|
gps_geofence_id: string;
|
|
46
44
|
time_zone_id: string;
|
|
47
|
-
}, {
|
|
48
45
|
geofence_status_type: GeofenceStatusType;
|
|
49
46
|
geofence_time: string;
|
|
47
|
+
}, {
|
|
50
48
|
status: Status;
|
|
51
49
|
organisation_id: string;
|
|
52
50
|
vehicle_id: string;
|
|
53
51
|
driver_id: string;
|
|
54
52
|
gps_geofence_id: string;
|
|
55
53
|
time_zone_id: string;
|
|
54
|
+
geofence_status_type: GeofenceStatusType;
|
|
55
|
+
geofence_time: string;
|
|
56
56
|
}>;
|
|
57
57
|
type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
|
|
58
58
|
declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
@@ -94,7 +94,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
94
94
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
95
95
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
96
96
|
}, "strip", z.ZodTypeAny, {
|
|
97
|
-
geofence_status_type: GeofenceStatusType[];
|
|
98
97
|
status: Status[];
|
|
99
98
|
time_zone_id: string;
|
|
100
99
|
search: string;
|
|
@@ -122,12 +121,12 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
122
121
|
gps_geofence_ids: string[];
|
|
123
122
|
from_date: string;
|
|
124
123
|
to_date: string;
|
|
124
|
+
geofence_status_type: GeofenceStatusType[];
|
|
125
125
|
}, {
|
|
126
126
|
time_zone_id: string;
|
|
127
127
|
date_format_id: string;
|
|
128
128
|
from_date: string;
|
|
129
129
|
to_date: string;
|
|
130
|
-
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
131
130
|
status?: Status[] | undefined;
|
|
132
131
|
search?: string | undefined;
|
|
133
132
|
paging?: PAGING | undefined;
|
|
@@ -151,6 +150,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
|
|
|
151
150
|
vehicle_ids?: string[] | undefined;
|
|
152
151
|
driver_ids?: string[] | undefined;
|
|
153
152
|
gps_geofence_ids?: string[] | undefined;
|
|
153
|
+
geofence_status_type?: GeofenceStatusType[] | undefined;
|
|
154
154
|
}>;
|
|
155
155
|
type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
|
|
156
156
|
declare const toGPSGeofenceTransactionPayload: (data: GPSGeofenceTransaction) => GPSGeofenceTransactionDTO;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-C186BM9A.js';
|
|
5
5
|
import { GPSGeofence } from './gps_geofence_service.js';
|
|
6
6
|
import { GPSGeofenceTransaction } from './gps_geofence_transaction_service.js';
|
|
7
7
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
@@ -46,27 +46,27 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
|
|
|
46
46
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
47
47
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
geofence_enter_date_time: string;
|
|
50
|
+
geofence_exit_date_time: string;
|
|
51
|
+
duration_seconds: number;
|
|
49
52
|
status: Status;
|
|
50
53
|
organisation_id: string;
|
|
51
54
|
vehicle_id: string;
|
|
52
55
|
driver_id: string;
|
|
53
56
|
gps_geofence_id: string;
|
|
54
|
-
time_zone_id: string;
|
|
55
|
-
geofence_enter_date_time: string;
|
|
56
|
-
geofence_exit_date_time: string;
|
|
57
|
-
duration_seconds: number;
|
|
58
57
|
enter_gps_geofence_transaction_id: string;
|
|
59
58
|
exit_gps_geofence_transaction_id: string;
|
|
59
|
+
time_zone_id: string;
|
|
60
60
|
}, {
|
|
61
|
+
geofence_enter_date_time: string;
|
|
61
62
|
status: Status;
|
|
62
63
|
organisation_id: string;
|
|
63
64
|
vehicle_id: string;
|
|
64
65
|
driver_id: string;
|
|
65
66
|
gps_geofence_id: string;
|
|
66
|
-
time_zone_id: string;
|
|
67
|
-
geofence_enter_date_time: string;
|
|
68
67
|
enter_gps_geofence_transaction_id: string;
|
|
69
68
|
exit_gps_geofence_transaction_id: string;
|
|
69
|
+
time_zone_id: string;
|
|
70
70
|
geofence_exit_date_time?: string | undefined;
|
|
71
71
|
duration_seconds?: unknown;
|
|
72
72
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
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-C186BM9A.js';
|
|
5
5
|
import '../../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -55,12 +55,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
|
|
|
55
55
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
56
56
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
duration_seconds: number;
|
|
58
59
|
status: Status;
|
|
59
60
|
organisation_id: string;
|
|
60
61
|
vehicle_id: string;
|
|
61
62
|
driver_id: string;
|
|
62
63
|
time_zone_id: string;
|
|
63
|
-
duration_seconds: number;
|
|
64
64
|
from_geofence_exit_date_time: string;
|
|
65
65
|
to_geofence_enter_date_time: string;
|
|
66
66
|
travel_duration_seconds: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LinkType, LinkStatus, Status, ShareChannel, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo } from '../../../core/Enums.js';
|
|
2
2
|
import { FBR, BR, SBR } from '../../../core/BaseResponse.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
|
-
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-
|
|
4
|
+
import { U as UserOrganisation, M as MasterVehicle } from '../../../user_organisation_service-C186BM9A.js';
|
|
5
5
|
import '../../../zod_utils/zod_base_schema.js';
|
|
6
6
|
import '../../master/main/master_main_sim_provider_service.js';
|
|
7
7
|
|
|
@@ -48,17 +48,17 @@ declare const GPSLiveTrackShareLinkNotificationSchema: z.ZodObject<{
|
|
|
48
48
|
cc_email_ids: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
49
49
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
+
gps_live_track_share_link_id: string;
|
|
51
52
|
status: Status;
|
|
52
53
|
organisation_id: string;
|
|
53
54
|
share_channels: ShareChannel.Email[];
|
|
54
55
|
mobile_numbers: string;
|
|
55
56
|
email_ids: string;
|
|
56
57
|
cc_email_ids: string;
|
|
57
|
-
gps_live_track_share_link_id: string;
|
|
58
58
|
}, {
|
|
59
|
+
gps_live_track_share_link_id: string;
|
|
59
60
|
status: Status;
|
|
60
61
|
organisation_id: string;
|
|
61
|
-
gps_live_track_share_link_id: string;
|
|
62
62
|
share_channels?: ShareChannel.Email[] | undefined;
|
|
63
63
|
mobile_numbers?: string | undefined;
|
|
64
64
|
email_ids?: string | undefined;
|
|
@@ -139,7 +139,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
link_status: LinkStatus[];
|
|
141
141
|
status: Status[];
|
|
142
|
-
time_zone_id: string;
|
|
143
142
|
search: string;
|
|
144
143
|
paging: PAGING;
|
|
145
144
|
page_count: number;
|
|
@@ -159,12 +158,13 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
|
|
|
159
158
|
}[];
|
|
160
159
|
include_master_data: YesNo;
|
|
161
160
|
date_format_id: string;
|
|
161
|
+
time_zone_id: string;
|
|
162
162
|
organisation_ids: string[];
|
|
163
163
|
vehicle_ids: string[];
|
|
164
164
|
gps_live_track_share_link_ids: string[];
|
|
165
165
|
}, {
|
|
166
|
-
time_zone_id: string;
|
|
167
166
|
date_format_id: string;
|
|
167
|
+
time_zone_id: string;
|
|
168
168
|
link_status?: LinkStatus[] | undefined;
|
|
169
169
|
status?: Status[] | undefined;
|
|
170
170
|
search?: string | undefined;
|