vms-nest-api-document 17.0.0 → 18.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.
@@ -0,0 +1,353 @@
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/gps/features/gps_lock_digital_door_log_service.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 enumMandatory = (fieldName, enumType, defaultValue) => {
65
+ return z.union([
66
+ z.nativeEnum(enumType, {
67
+ invalid_type_error: `${fieldName} should be one of the following values: ${Object.values(
68
+ enumType
69
+ ).join(", ")}.`
70
+ }),
71
+ z.string().refine((val) => Object.values(enumType).includes(val), {
72
+ message: `${fieldName} should be one of the following values: ${Object.values(
73
+ enumType
74
+ ).join(", ")}.`
75
+ })
76
+ ]).default(defaultValue).refine((val) => val !== "", {
77
+ message: `Please select ${fieldName}.`
78
+ });
79
+ };
80
+ var enumOptional = (fieldName, enumType, defaultValue) => {
81
+ return z.nativeEnum(enumType, {
82
+ invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
83
+ enumType
84
+ ).join(", ")}.`
85
+ }).optional().default(() => defaultValue);
86
+ };
87
+ var getAllEnums = (enumType) => {
88
+ return Object.values(enumType);
89
+ };
90
+ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumType), min = 0, max = 100, unique = false) => {
91
+ const schema = z.array(z.nativeEnum(enumType), {
92
+ invalid_type_error: `${fieldName} must be an array containing only the following values: ${Object.values(
93
+ enumType
94
+ ).join(", ")}.`
95
+ }).min(min, `${fieldName} must contain at least ${min} items.`).max(max, `${fieldName} must contain at most ${max} items.`);
96
+ if (unique) {
97
+ schema.refine(
98
+ (arr) => new Set(arr).size === arr.length,
99
+ `${fieldName} must contain unique values.`
100
+ );
101
+ }
102
+ return schema.optional().default(() => defaultValue);
103
+ };
104
+ var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
105
+ var single_select_optional = (fieldName) => {
106
+ r_log(fieldName);
107
+ const schema = z.string().trim().transform(handleNullOrUndefined);
108
+ return schema;
109
+ };
110
+ var multi_select_mandatory = (fieldName, min = 1, max = 100, defaultValue = []) => {
111
+ const schema = z.array(
112
+ z.string({
113
+ invalid_type_error: `${fieldName} must be an array of strings.`
114
+ })
115
+ ).min(
116
+ min,
117
+ `Please select at least ${min} ${fieldName}${min > 1 ? "s" : ""}.`
118
+ ).max(
119
+ max,
120
+ `Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
121
+ );
122
+ return schema.optional().default(defaultValue);
123
+ };
124
+ var multi_select_optional = (fieldName, max = 1e3, defaultValue = []) => {
125
+ const schema = z.array(
126
+ z.string({
127
+ invalid_type_error: `${fieldName} must be an array of strings.`
128
+ })
129
+ ).max(
130
+ max,
131
+ `Please select at most ${max} ${fieldName}${max > 1 ? "s" : ""}.`
132
+ );
133
+ return schema.optional().default(defaultValue);
134
+ };
135
+
136
+ // src/zod_utils/zod_base_schema.ts
137
+ import { z as z2 } from "zod";
138
+
139
+ // src/core/Enums.ts
140
+ var PAGING = /* @__PURE__ */ ((PAGING2) => {
141
+ PAGING2["Yes"] = "Yes";
142
+ PAGING2["No"] = "No";
143
+ return PAGING2;
144
+ })(PAGING || {});
145
+ var LoadParents = /* @__PURE__ */ ((LoadParents2) => {
146
+ LoadParents2["Yes"] = "Yes";
147
+ LoadParents2["No"] = "No";
148
+ LoadParents2["Custom"] = "Custom";
149
+ return LoadParents2;
150
+ })(LoadParents || {});
151
+ var LoadChild = /* @__PURE__ */ ((LoadChild2) => {
152
+ LoadChild2["No"] = "No";
153
+ LoadChild2["Yes"] = "Yes";
154
+ LoadChild2["Count"] = "Count";
155
+ LoadChild2["Custom"] = "Custom";
156
+ LoadChild2["Direct"] = "Direct";
157
+ return LoadChild2;
158
+ })(LoadChild || {});
159
+ var LoadChildCount = /* @__PURE__ */ ((LoadChildCount2) => {
160
+ LoadChildCount2["No"] = "No";
161
+ LoadChildCount2["Yes"] = "Yes";
162
+ LoadChildCount2["Custom"] = "Custom";
163
+ return LoadChildCount2;
164
+ })(LoadChildCount || {});
165
+ var OrderBy = /* @__PURE__ */ ((OrderBy2) => {
166
+ OrderBy2["asc"] = "asc";
167
+ OrderBy2["desc"] = "desc";
168
+ return OrderBy2;
169
+ })(OrderBy || {});
170
+ var LoginFrom = /* @__PURE__ */ ((LoginFrom2) => {
171
+ LoginFrom2["Web"] = "Web";
172
+ LoginFrom2["Android"] = "Android";
173
+ LoginFrom2["IPhone"] = "IPhone";
174
+ LoginFrom2["AndroidPWA"] = "AndroidPWA";
175
+ LoginFrom2["iOSPWA"] = "iOSPWA";
176
+ return LoginFrom2;
177
+ })(LoginFrom || {});
178
+ var Status = /* @__PURE__ */ ((Status2) => {
179
+ Status2["Active"] = "Active";
180
+ Status2["Inactive"] = "Inactive";
181
+ return Status2;
182
+ })(Status || {});
183
+ var FileType = /* @__PURE__ */ ((FileType2) => {
184
+ FileType2["NoFile"] = "NoFile";
185
+ FileType2["Image"] = "Image";
186
+ FileType2["Video"] = "Video";
187
+ FileType2["PDF"] = "PDF";
188
+ FileType2["Excel"] = "Excel";
189
+ return FileType2;
190
+ })(FileType || {});
191
+ var YesNo = /* @__PURE__ */ ((YesNo2) => {
192
+ YesNo2["Yes"] = "Yes";
193
+ YesNo2["No"] = "No";
194
+ return YesNo2;
195
+ })(YesNo || {});
196
+ var RequestType = /* @__PURE__ */ ((RequestType2) => {
197
+ RequestType2["Lock"] = "Lock";
198
+ RequestType2["Unlock"] = "Unlock";
199
+ return RequestType2;
200
+ })(RequestType || {});
201
+
202
+ // src/zod_utils/zod_base_schema.ts
203
+ var OrderBySchema = z2.array(
204
+ z2.object({
205
+ name: stringMandatory("Order Field Name", 0, 255),
206
+ field: stringMandatory("Order Field Name", 0, 255),
207
+ direction: enumMandatory("Order Direction", OrderBy, "asc" /* asc */)
208
+ })
209
+ );
210
+ var BaseFileSchema = z2.object({
211
+ usage_type: stringMandatory("Usage Type", 3, 100),
212
+ file_type: enumMandatory("File Type", FileType, "Image" /* Image */),
213
+ file_url: stringOptional("File URL", 0, 300),
214
+ file_key: stringOptional("File Key", 0, 300),
215
+ file_name: stringOptional("File Name", 0, 300),
216
+ file_description: stringOptional("File Description", 0, 2e3),
217
+ file_size: numberOptional("File Size"),
218
+ file_metadata: dynamicJsonSchema("File Metadata", {}),
219
+ status: enumMandatory("Status", Status, "Active" /* Active */)
220
+ });
221
+ var BaseQuerySchema = z2.object({
222
+ search: stringOptional("Search", 0, 255, ""),
223
+ status: enumArrayOptional("Status", Status, getAllEnums(Status), 0, 10, true),
224
+ paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
225
+ page_count: numberOptional("Page Count", 0, 1e3, 100),
226
+ page_index: numberOptional("Page Index", 0, 1e3, 0),
227
+ load_parents: enumOptional("Load Parents", LoadParents, "No" /* No */),
228
+ load_parents_list: stringArrayOptional("Load Parents List"),
229
+ load_child: enumOptional("Load Child", LoadChild, "No" /* No */),
230
+ load_child_list: stringArrayOptional("Load Child List"),
231
+ load_child_count: enumOptional(
232
+ "Load Child",
233
+ LoadChildCount,
234
+ "No" /* No */
235
+ ),
236
+ load_child_count_list: stringArrayOptional("Load Child List"),
237
+ include_details: dynamicJsonSchema("Include Details", {}),
238
+ where_relations: dynamicJsonSchema("Where Relations", {}),
239
+ order_by: OrderBySchema.optional().default([]),
240
+ include_master_data: enumOptional("Include Master Data", YesNo, "No" /* No */),
241
+ date_format_id: single_select_optional("MasterMainDateFormat"),
242
+ time_zone_id: single_select_optional("MasterMainTimeZone")
243
+ });
244
+ var FilePresignedUrlSchema = z2.object({
245
+ file_name: stringMandatory("File Name", 1, 255),
246
+ file_type: enumMandatory("File Type", FileType, "Image" /* Image */)
247
+ });
248
+ var MongoBaseQuerySchema = z2.object({
249
+ search: stringOptional("Search", 0, 255, ""),
250
+ paging: enumOptional("Paging", PAGING, "Yes" /* Yes */),
251
+ page_count: numberOptional("Page Count", 0, 1e3, 100),
252
+ page_index: numberOptional("Page Index", 0, 1e3, 0),
253
+ login_from: enumMandatory("Login From", LoginFrom, "Web" /* Web */),
254
+ date_format_id: single_select_optional("MasterMainDateFormat"),
255
+ // ✅ Single-selection -> MasterMainDateFormat
256
+ time_zone_id: single_select_optional("MasterMainTimeZone")
257
+ // ✅ Single-selection -> MasterMainTimeZone
258
+ });
259
+
260
+ // src/services/gps/features/gps_lock_digital_door_log_service.ts
261
+ var URL = "gps/features/gps_lock_digital_door_log";
262
+ var ENDPOINTS = {
263
+ // GPSLockDigitalDoorLog APIs
264
+ find: `${URL}/search`,
265
+ create: URL,
266
+ update: (id) => `${URL}/${id}`,
267
+ delete: (id) => `${URL}/${id}`
268
+ };
269
+ var GPSLockDigitalDoorLogSchema = z3.object({
270
+ // Relations - Parent
271
+ organisation_id: stringMandatory("Organisation"),
272
+ user_id: stringOptional("User"),
273
+ vehicle_id: stringMandatory("Master Vehicle"),
274
+ driver_id: stringOptional("Master Driver"),
275
+ // Main Field Details
276
+ request_type: enumMandatory(
277
+ "Request Type",
278
+ RequestType,
279
+ "Unlock" /* Unlock */
280
+ ),
281
+ command: stringOptional("Command", 0, 150),
282
+ is_success: enumMandatory("Is Success", YesNo, "No" /* No */),
283
+ response: stringOptional("Response", 0, 1e3),
284
+ // Metadata
285
+ status: enumMandatory("Status", Status, "Active" /* Active */)
286
+ });
287
+ var GPSLockDigitalDoorLogQuerySchema = BaseQuerySchema.extend({
288
+ // Self Table
289
+ gps_lock_digital_door_log_ids: multi_select_optional(
290
+ "GPSLockDigitalDoorLog"
291
+ ),
292
+ // Multi-Selection -> GPSLockDigitalDoorLog
293
+ // Relations - Parent
294
+ organisation_ids: multi_select_mandatory("UserOrganisation"),
295
+ // Multi-Selection -> UserOrganisation
296
+ user_ids: multi_select_optional("User"),
297
+ // Multi-Selection -> User
298
+ vehicle_ids: multi_select_mandatory("MasterVehicle"),
299
+ // Multi-Selection -> MasterVehicle
300
+ driver_ids: multi_select_optional("MasterDriver"),
301
+ // Multi-Selection -> MasterDriver
302
+ // Main Field Details
303
+ request_type: enumArrayOptional(
304
+ "Request Type",
305
+ RequestType,
306
+ getAllEnums(RequestType)
307
+ ),
308
+ is_success: enumArrayOptional("Is Success", YesNo, getAllEnums(YesNo))
309
+ });
310
+ var toGPSLockDigitalDoorLogPayload = (row) => ({
311
+ organisation_id: row.organisation_id || "",
312
+ user_id: row.user_id || "",
313
+ vehicle_id: row.vehicle_id || "",
314
+ driver_id: row.driver_id || "",
315
+ request_type: row.request_type || "Unlock" /* Unlock */,
316
+ command: row.command || "",
317
+ is_success: row.is_success || "No" /* No */,
318
+ response: row.response || "",
319
+ status: row.status || "Active" /* Active */
320
+ });
321
+ var newGPSLockDigitalDoorLogPayload = () => ({
322
+ organisation_id: "",
323
+ user_id: "",
324
+ vehicle_id: "",
325
+ driver_id: "",
326
+ request_type: "Unlock" /* Unlock */,
327
+ command: "",
328
+ is_success: "No" /* No */,
329
+ response: "",
330
+ status: "Active" /* Active */
331
+ });
332
+ var findGPSLockDigitalDoorLogs = async (data) => {
333
+ return apiPost(ENDPOINTS.find, data);
334
+ };
335
+ var createGPSLockDigitalDoorLog = async (data) => {
336
+ return apiPost(ENDPOINTS.create, data);
337
+ };
338
+ var updateGPSLockDigitalDoorLog = async (id, data) => {
339
+ return apiPatch(ENDPOINTS.update(id), data);
340
+ };
341
+ var deleteGPSLockDigitalDoorLog = async (id) => {
342
+ return apiDelete(ENDPOINTS.delete(id));
343
+ };
344
+ export {
345
+ GPSLockDigitalDoorLogQuerySchema,
346
+ GPSLockDigitalDoorLogSchema,
347
+ createGPSLockDigitalDoorLog,
348
+ deleteGPSLockDigitalDoorLog,
349
+ findGPSLockDigitalDoorLogs,
350
+ newGPSLockDigitalDoorLogPayload,
351
+ toGPSLockDigitalDoorLogPayload,
352
+ updateGPSLockDigitalDoorLog
353
+ };
@@ -0,0 +1,172 @@
1
+ import { RequestType, YesNo, Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy } from '../../../core/Enums.js';
2
+ import { SBR, FBR } from '../../../core/BaseResponse.js';
3
+ import { z } from 'zod';
4
+ import { U as UserOrganisation, a as User, c as MasterVehicle, d as MasterDriver } from '../../../user_organisation_service-DyBK2Uak.js';
5
+ import '../../../zod_utils/zod_base_schema.js';
6
+ import '../reports/gps_models/FuelConsumptionMonthly.js';
7
+
8
+ interface GPSLockRelayLog extends Record<string, unknown> {
9
+ gps_lock_relay_log_id: string;
10
+ request_type: RequestType;
11
+ command?: string;
12
+ is_success: YesNo;
13
+ response?: string;
14
+ status: Status;
15
+ added_date_time: string;
16
+ modified_date_time: string;
17
+ organisation_id: string;
18
+ UserOrganisation?: UserOrganisation;
19
+ organisation_name?: string;
20
+ organisation_code?: string;
21
+ organisation_logo_url?: string;
22
+ user_id?: string;
23
+ User?: User;
24
+ user_details?: string;
25
+ user_image_url?: string;
26
+ vehicle_id: string;
27
+ MasterVehicle?: MasterVehicle;
28
+ vehicle_number?: string;
29
+ vehicle_type?: string;
30
+ driver_id?: string;
31
+ MasterDriver?: MasterDriver;
32
+ driver_details?: string;
33
+ driver_image_url?: string;
34
+ }
35
+ declare const GPSLockRelayLogSchema: z.ZodObject<{
36
+ organisation_id: z.ZodEffects<z.ZodString, string, string>;
37
+ user_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
38
+ vehicle_id: z.ZodEffects<z.ZodString, string, string>;
39
+ driver_id: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
40
+ request_type: z.ZodType<RequestType, z.ZodTypeDef, RequestType>;
41
+ command: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
42
+ is_success: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
43
+ response: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
44
+ status: z.ZodType<Status, z.ZodTypeDef, Status>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ request_type: RequestType;
47
+ command: string;
48
+ is_success: YesNo;
49
+ response: string;
50
+ status: Status;
51
+ organisation_id: string;
52
+ user_id: string;
53
+ vehicle_id: string;
54
+ driver_id: string;
55
+ }, {
56
+ request_type: RequestType;
57
+ is_success: YesNo;
58
+ status: Status;
59
+ organisation_id: string;
60
+ vehicle_id: string;
61
+ command?: string | undefined;
62
+ response?: string | undefined;
63
+ user_id?: string | undefined;
64
+ driver_id?: string | undefined;
65
+ }>;
66
+ type GPSLockRelayLogDTO = z.infer<typeof GPSLockRelayLogSchema>;
67
+ declare const GPSLockRelayLogQuerySchema: z.ZodObject<{
68
+ search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
69
+ status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
70
+ paging: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof PAGING>>>;
71
+ page_count: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
72
+ page_index: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
73
+ load_parents: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadParents>>>;
74
+ load_parents_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
75
+ load_child: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChild>>>;
76
+ load_child_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
77
+ load_child_count: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof LoadChildCount>>>;
78
+ load_child_count_list: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
79
+ include_details: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
80
+ where_relations: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
81
+ order_by: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodObject<{
82
+ name: z.ZodEffects<z.ZodString, string, string>;
83
+ field: z.ZodEffects<z.ZodString, string, string>;
84
+ direction: z.ZodType<OrderBy, z.ZodTypeDef, OrderBy>;
85
+ }, "strip", z.ZodTypeAny, {
86
+ name: string;
87
+ field: string;
88
+ direction: OrderBy;
89
+ }, {
90
+ name: string;
91
+ field: string;
92
+ direction: OrderBy;
93
+ }>, "many">>>;
94
+ include_master_data: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
95
+ date_format_id: z.ZodEffects<z.ZodString, string, string>;
96
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
97
+ } & {
98
+ gps_lock_relay_log_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
99
+ organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
100
+ user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
101
+ vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
102
+ driver_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
103
+ request_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof RequestType>, "many">>>;
104
+ is_success: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
105
+ }, "strip", z.ZodTypeAny, {
106
+ request_type: RequestType[];
107
+ is_success: YesNo[];
108
+ status: Status[];
109
+ search: string;
110
+ paging: PAGING;
111
+ page_count: number;
112
+ page_index: number;
113
+ load_parents: LoadParents;
114
+ load_parents_list: string[];
115
+ load_child: LoadChild;
116
+ load_child_list: string[];
117
+ load_child_count: LoadChildCount;
118
+ load_child_count_list: string[];
119
+ include_details: Record<string, any>;
120
+ where_relations: Record<string, any>;
121
+ order_by: {
122
+ name: string;
123
+ field: string;
124
+ direction: OrderBy;
125
+ }[];
126
+ include_master_data: YesNo;
127
+ date_format_id: string;
128
+ time_zone_id: string;
129
+ organisation_ids: string[];
130
+ user_ids: string[];
131
+ vehicle_ids: string[];
132
+ driver_ids: string[];
133
+ gps_lock_relay_log_ids: string[];
134
+ }, {
135
+ date_format_id: string;
136
+ time_zone_id: string;
137
+ request_type?: RequestType[] | undefined;
138
+ is_success?: YesNo[] | undefined;
139
+ status?: Status[] | undefined;
140
+ search?: string | undefined;
141
+ paging?: PAGING | undefined;
142
+ page_count?: unknown;
143
+ page_index?: unknown;
144
+ load_parents?: LoadParents | undefined;
145
+ load_parents_list?: string[] | undefined;
146
+ load_child?: LoadChild | undefined;
147
+ load_child_list?: string[] | undefined;
148
+ load_child_count?: LoadChildCount | undefined;
149
+ load_child_count_list?: string[] | undefined;
150
+ include_details?: Record<string, any> | undefined;
151
+ where_relations?: Record<string, any> | undefined;
152
+ order_by?: {
153
+ name: string;
154
+ field: string;
155
+ direction: OrderBy;
156
+ }[] | undefined;
157
+ include_master_data?: YesNo | undefined;
158
+ organisation_ids?: string[] | undefined;
159
+ user_ids?: string[] | undefined;
160
+ vehicle_ids?: string[] | undefined;
161
+ driver_ids?: string[] | undefined;
162
+ gps_lock_relay_log_ids?: string[] | undefined;
163
+ }>;
164
+ type GPSLockRelayLogQueryDTO = z.infer<typeof GPSLockRelayLogQuerySchema>;
165
+ declare const toGPSLockRelayLogPayload: (row: GPSLockRelayLog) => GPSLockRelayLogDTO;
166
+ declare const newGPSLockRelayLogPayload: () => GPSLockRelayLogDTO;
167
+ declare const findGPSLockRelayLogs: (data: GPSLockRelayLogQueryDTO) => Promise<FBR<GPSLockRelayLog[]>>;
168
+ declare const createGPSLockRelayLog: (data: GPSLockRelayLogDTO) => Promise<SBR>;
169
+ declare const updateGPSLockRelayLog: (id: string, data: GPSLockRelayLogDTO) => Promise<SBR>;
170
+ declare const deleteGPSLockRelayLog: (id: string) => Promise<SBR>;
171
+
172
+ export { type GPSLockRelayLog, type GPSLockRelayLogDTO, type GPSLockRelayLogQueryDTO, GPSLockRelayLogQuerySchema, GPSLockRelayLogSchema, createGPSLockRelayLog, deleteGPSLockRelayLog, findGPSLockRelayLogs, newGPSLockRelayLogPayload, toGPSLockRelayLogPayload, updateGPSLockRelayLog };