vms-nest-prisma-api-document 6.0.14 → 6.0.15
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/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/notification_service.d.ts +26 -5
- package/dist/services/account/notification_service.js +73 -21
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +43 -43
- package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
- package/dist/services/master/expense/master_vendor_document_type_service.d.ts +2 -2
- package/package.json +1 -1
|
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
|
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
user_id: string;
|
|
24
24
|
organisation_id: string;
|
|
25
|
-
country_id: string;
|
|
26
25
|
login_from: LoginFrom;
|
|
26
|
+
country_id: string;
|
|
27
27
|
os_details: Record<string, any>;
|
|
28
28
|
ip_details: Record<string, any>;
|
|
29
29
|
}, {
|
|
30
30
|
user_id: string;
|
|
31
31
|
organisation_id: string;
|
|
32
|
-
country_id: string;
|
|
33
32
|
login_from: LoginFrom;
|
|
33
|
+
country_id: string;
|
|
34
34
|
os_details?: Record<string, any> | undefined;
|
|
35
35
|
ip_details?: Record<string, any> | undefined;
|
|
36
36
|
}>;
|
|
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
|
|
|
48
48
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
49
49
|
country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
50
50
|
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
login_from: LoginFrom;
|
|
52
51
|
search: string;
|
|
53
52
|
paging: PAGING;
|
|
54
53
|
page_count: number;
|
|
55
54
|
page_index: number;
|
|
55
|
+
login_from: LoginFrom;
|
|
56
56
|
date_format_id: string;
|
|
57
57
|
time_zone_id: string;
|
|
58
58
|
user_ids: string[];
|
|
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
|
|
|
43
43
|
user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
44
44
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
login_from: LoginFrom;
|
|
47
46
|
search: string;
|
|
48
47
|
paging: PAGING;
|
|
49
48
|
page_count: number;
|
|
50
49
|
page_index: number;
|
|
50
|
+
login_from: LoginFrom;
|
|
51
51
|
date_format_id: string;
|
|
52
52
|
time_zone_id: string;
|
|
53
53
|
user_ids: string[];
|
|
@@ -3,6 +3,7 @@ import { FBR, SBR } from '../../core/BaseResponse.js';
|
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { U as UserOrganisation, a as User, M as MasterVehicle, b as MasterDriver } from '../../user_organisation_service-Cx3ffrVp.js';
|
|
5
5
|
import { GPSGeofenceData } from '../gps/features/geofence/gps_geofence_data_service.js';
|
|
6
|
+
import { MasterMainLandmark } from '../master/main/master_main_landmark_service.js';
|
|
6
7
|
import '../../zod_utils/zod_base_schema.js';
|
|
7
8
|
import '../master/main/master_main_sim_provider_service.js';
|
|
8
9
|
|
|
@@ -11,7 +12,8 @@ interface Notification extends Record<string, unknown> {
|
|
|
11
12
|
module: Module;
|
|
12
13
|
alert_type: AlertType;
|
|
13
14
|
alert_sub_type: AlertSubType;
|
|
14
|
-
|
|
15
|
+
date_time: string;
|
|
16
|
+
date_time_f?: string;
|
|
15
17
|
notification_message: string;
|
|
16
18
|
notification_html_message: string;
|
|
17
19
|
notification_key_1?: string;
|
|
@@ -20,6 +22,13 @@ interface Notification extends Record<string, unknown> {
|
|
|
20
22
|
notification_key_4?: string;
|
|
21
23
|
notification_key_5?: string;
|
|
22
24
|
notification_key_6?: string;
|
|
25
|
+
latitude?: number;
|
|
26
|
+
longitude?: number;
|
|
27
|
+
google_location?: string;
|
|
28
|
+
landmark_id?: string;
|
|
29
|
+
MasterMainLandmark?: MasterMainLandmark;
|
|
30
|
+
landmark_location?: string;
|
|
31
|
+
landmark_distance?: number;
|
|
23
32
|
status: Status;
|
|
24
33
|
added_date_time: string;
|
|
25
34
|
modified_date_time: string;
|
|
@@ -44,9 +53,12 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
44
53
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
45
54
|
driver_id: z.ZodEffects<z.ZodString, string, string>;
|
|
46
55
|
gps_geofence_id: z.ZodEffects<z.ZodString, string, string>;
|
|
47
|
-
|
|
56
|
+
date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
48
57
|
notification_message: z.ZodEffects<z.ZodString, string, string>;
|
|
49
58
|
notification_html_message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
+
latitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
60
|
+
longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
61
|
+
google_location: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
50
62
|
notification_key_1: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
51
63
|
notification_key_2: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
52
64
|
notification_key_3: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
@@ -54,14 +66,17 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
54
66
|
notification_key_5: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
55
67
|
notification_key_6: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
56
68
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
69
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
57
70
|
}, "strip", z.ZodTypeAny, {
|
|
58
71
|
status: Status;
|
|
59
72
|
organisation_id: string;
|
|
60
73
|
user_id: string;
|
|
74
|
+
time_zone_id: string;
|
|
61
75
|
driver_id: string;
|
|
62
76
|
vehicle_id: string;
|
|
63
77
|
gps_geofence_id: string;
|
|
64
|
-
|
|
78
|
+
google_location: string;
|
|
79
|
+
date_time: string;
|
|
65
80
|
notification_message: string;
|
|
66
81
|
notification_html_message: string;
|
|
67
82
|
notification_key_1: string;
|
|
@@ -70,15 +85,21 @@ declare const NotificationSchema: z.ZodObject<{
|
|
|
70
85
|
notification_key_4: string;
|
|
71
86
|
notification_key_5: string;
|
|
72
87
|
notification_key_6: string;
|
|
88
|
+
latitude?: number | undefined;
|
|
89
|
+
longitude?: number | undefined;
|
|
73
90
|
}, {
|
|
74
91
|
status: Status;
|
|
75
92
|
organisation_id: string;
|
|
76
93
|
user_id: string;
|
|
94
|
+
time_zone_id: string;
|
|
77
95
|
driver_id: string;
|
|
78
96
|
vehicle_id: string;
|
|
79
97
|
gps_geofence_id: string;
|
|
80
|
-
|
|
98
|
+
date_time: string;
|
|
81
99
|
notification_message: string;
|
|
100
|
+
latitude?: unknown;
|
|
101
|
+
longitude?: unknown;
|
|
102
|
+
google_location?: string | undefined;
|
|
82
103
|
notification_html_message?: string | undefined;
|
|
83
104
|
notification_key_1?: string | undefined;
|
|
84
105
|
notification_key_2?: string | undefined;
|
|
@@ -192,7 +213,7 @@ declare const NotificationQuerySchema: z.ZodObject<{
|
|
|
192
213
|
gps_geofence_ids?: string[] | undefined;
|
|
193
214
|
}>;
|
|
194
215
|
type NotificationQueryDTO = z.infer<typeof NotificationQuerySchema>;
|
|
195
|
-
declare const toNotificationPayload: (
|
|
216
|
+
declare const toNotificationPayload: (row: Notification) => NotificationDTO;
|
|
196
217
|
declare const newNotificationPayload: () => NotificationDTO;
|
|
197
218
|
declare const findNotifications: (data: NotificationQueryDTO) => Promise<FBR<Notification[]>>;
|
|
198
219
|
declare const createNotification: (data: NotificationDTO) => Promise<SBR>;
|
|
@@ -61,6 +61,20 @@ var numberOptional = (fieldName, min = 0, max = 1e9, defaultValue = 0) => {
|
|
|
61
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
62
|
);
|
|
63
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
|
+
};
|
|
64
78
|
var enumMandatory = (fieldName, enumType, defaultValue) => {
|
|
65
79
|
return z.union([
|
|
66
80
|
z.nativeEnum(enumType, {
|
|
@@ -101,6 +115,28 @@ var enumArrayOptional = (fieldName, enumType, defaultValue = getAllEnums(enumTyp
|
|
|
101
115
|
}
|
|
102
116
|
return schema.optional().default(() => defaultValue);
|
|
103
117
|
};
|
|
118
|
+
var handleNullOrUndefinedDate = (value, defaultValue) => {
|
|
119
|
+
if (typeof value === "string" && !isNaN(Date.parse(value))) {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
return defaultValue;
|
|
123
|
+
};
|
|
124
|
+
var dateMandatory = (fieldName, minDate, maxDate, defaultValue = (/* @__PURE__ */ new Date()).toISOString()) => {
|
|
125
|
+
const schema = z.string().refine((val) => !isNaN(Date.parse(val)), {
|
|
126
|
+
message: `${fieldName} must be a valid ISO date.`
|
|
127
|
+
}).transform((val) => handleNullOrUndefinedDate(val, defaultValue));
|
|
128
|
+
if (minDate) {
|
|
129
|
+
schema.refine((val) => new Date(val) >= new Date(minDate), {
|
|
130
|
+
message: `${fieldName} must be after ${minDate}.`
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
if (maxDate) {
|
|
134
|
+
schema.refine((val) => new Date(val) <= new Date(maxDate), {
|
|
135
|
+
message: `${fieldName} must be before ${maxDate}.`
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
return schema;
|
|
139
|
+
};
|
|
104
140
|
var dynamicJsonSchema = (fieldName, defaultValue = {}) => z.record(z.any()).optional().default(() => defaultValue);
|
|
105
141
|
var single_select_mandatory = (fieldName) => {
|
|
106
142
|
const schema = z.string().trim().nonempty(`Please select ${fieldName}.`).transform(handleNullOrUndefined);
|
|
@@ -358,20 +394,26 @@ var NotificationSchema = z3.object({
|
|
|
358
394
|
// ✅ Single-Selection -> MasterDriver
|
|
359
395
|
gps_geofence_id: single_select_optional("GPSGeofenceData"),
|
|
360
396
|
// ✅ Single-Selection -> GPSGeofenceData
|
|
361
|
-
|
|
397
|
+
// Event Time
|
|
398
|
+
date_time: dateMandatory("Date Time"),
|
|
362
399
|
notification_message: stringMandatory("Notification Message", 3, 500),
|
|
363
400
|
notification_html_message: stringOptional(
|
|
364
401
|
"Notification HTML Message",
|
|
365
402
|
0,
|
|
366
403
|
500
|
|
367
404
|
),
|
|
405
|
+
// Location Details
|
|
406
|
+
latitude: doubleOptionalLatLng("Latitude"),
|
|
407
|
+
longitude: doubleOptionalLatLng("Longitude"),
|
|
408
|
+
google_location: stringOptional("Google Location", 0, 500),
|
|
368
409
|
notification_key_1: stringOptional("Notification Key 1", 0, 100),
|
|
369
410
|
notification_key_2: stringOptional("Notification Key 2", 0, 100),
|
|
370
411
|
notification_key_3: stringOptional("Notification Key 3", 0, 100),
|
|
371
412
|
notification_key_4: stringOptional("Notification Key 4", 0, 100),
|
|
372
413
|
notification_key_5: stringOptional("Notification Key 5", 0, 100),
|
|
373
414
|
notification_key_6: stringOptional("Notification Key 6", 0, 100),
|
|
374
|
-
status: enumMandatory("Status", Status, "Active" /* Active */)
|
|
415
|
+
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
416
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
375
417
|
});
|
|
376
418
|
var NotificationQuerySchema = BaseQuerySchema.extend({
|
|
377
419
|
notification_ids: multi_select_optional("Notification"),
|
|
@@ -398,26 +440,30 @@ var NotificationQuerySchema = BaseQuerySchema.extend({
|
|
|
398
440
|
getAllEnums(AlertSubType)
|
|
399
441
|
)
|
|
400
442
|
});
|
|
401
|
-
var toNotificationPayload = (
|
|
443
|
+
var toNotificationPayload = (row) => ({
|
|
402
444
|
// relations (single-selects)
|
|
403
|
-
organisation_id:
|
|
404
|
-
user_id:
|
|
405
|
-
vehicle_id:
|
|
406
|
-
driver_id:
|
|
407
|
-
gps_geofence_id:
|
|
445
|
+
organisation_id: row.organisation_id,
|
|
446
|
+
user_id: row.user_id ?? "",
|
|
447
|
+
vehicle_id: row.vehicle_id ?? "",
|
|
448
|
+
driver_id: row.driver_id ?? "",
|
|
449
|
+
gps_geofence_id: row.gps_geofence_id ?? "",
|
|
450
|
+
date_time: row.date_time,
|
|
408
451
|
// content
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
notification_html_message: n.notification_html_message ?? "",
|
|
452
|
+
notification_message: row.notification_message,
|
|
453
|
+
notification_html_message: row.notification_html_message ?? "",
|
|
412
454
|
// keys
|
|
413
|
-
notification_key_1:
|
|
414
|
-
notification_key_2:
|
|
415
|
-
notification_key_3:
|
|
416
|
-
notification_key_4:
|
|
417
|
-
notification_key_5:
|
|
418
|
-
notification_key_6:
|
|
419
|
-
|
|
420
|
-
|
|
455
|
+
notification_key_1: row.notification_key_1 ?? "",
|
|
456
|
+
notification_key_2: row.notification_key_2 ?? "",
|
|
457
|
+
notification_key_3: row.notification_key_3 ?? "",
|
|
458
|
+
notification_key_4: row.notification_key_4 ?? "",
|
|
459
|
+
notification_key_5: row.notification_key_5 ?? "",
|
|
460
|
+
notification_key_6: row.notification_key_6 ?? "",
|
|
461
|
+
latitude: row.latitude ?? 0,
|
|
462
|
+
longitude: row.longitude ?? 0,
|
|
463
|
+
google_location: row.google_location || "",
|
|
464
|
+
status: row.status,
|
|
465
|
+
time_zone_id: ""
|
|
466
|
+
// Needs to be provided manually
|
|
421
467
|
});
|
|
422
468
|
var newNotificationPayload = () => ({
|
|
423
469
|
// relations (single-selects)
|
|
@@ -426,8 +472,9 @@ var newNotificationPayload = () => ({
|
|
|
426
472
|
vehicle_id: "",
|
|
427
473
|
driver_id: "",
|
|
428
474
|
gps_geofence_id: "",
|
|
475
|
+
// date
|
|
476
|
+
date_time: (/* @__PURE__ */ new Date()).toISOString(),
|
|
429
477
|
// content
|
|
430
|
-
notification_title: "",
|
|
431
478
|
notification_message: "",
|
|
432
479
|
notification_html_message: "",
|
|
433
480
|
// keys
|
|
@@ -437,8 +484,13 @@ var newNotificationPayload = () => ({
|
|
|
437
484
|
notification_key_4: "",
|
|
438
485
|
notification_key_5: "",
|
|
439
486
|
notification_key_6: "",
|
|
487
|
+
// location
|
|
488
|
+
latitude: 0,
|
|
489
|
+
longitude: 0,
|
|
490
|
+
google_location: "",
|
|
440
491
|
// metadata
|
|
441
|
-
status: "Active" /* Active
|
|
492
|
+
status: "Active" /* Active */,
|
|
493
|
+
time_zone_id: ""
|
|
442
494
|
});
|
|
443
495
|
var findNotifications = async (data) => {
|
|
444
496
|
return apiPost(ENDPOINTS.find, data);
|
|
@@ -33,41 +33,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
33
33
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
34
34
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
db_index: string;
|
|
37
|
+
db_instance: string;
|
|
38
|
+
night_driving: NightDriving;
|
|
36
39
|
search: string;
|
|
37
40
|
paging: PAGING;
|
|
38
41
|
page_count: number;
|
|
39
42
|
page_index: number;
|
|
40
|
-
login_from: LoginFrom;
|
|
41
43
|
date_format_id: string;
|
|
42
44
|
time_zone_id: string;
|
|
45
|
+
login_from: LoginFrom;
|
|
43
46
|
organisation_id: string;
|
|
44
|
-
db_instance: string;
|
|
45
|
-
db_index: string;
|
|
46
47
|
vehicle_ids: string[];
|
|
47
48
|
from_date: string;
|
|
48
49
|
to_date: string;
|
|
49
50
|
time_slot: TimeSlot;
|
|
50
|
-
night_driving: NightDriving;
|
|
51
51
|
over_speed: OverSpeed;
|
|
52
52
|
utilization_km: number;
|
|
53
53
|
vehicle_summary: YesNo;
|
|
54
54
|
driver_summary: YesNo;
|
|
55
55
|
}, {
|
|
56
|
-
|
|
56
|
+
db_index: string;
|
|
57
|
+
db_instance: string;
|
|
57
58
|
date_format_id: string;
|
|
58
59
|
time_zone_id: string;
|
|
60
|
+
login_from: LoginFrom;
|
|
59
61
|
organisation_id: string;
|
|
60
|
-
db_instance: string;
|
|
61
|
-
db_index: string;
|
|
62
62
|
from_date: string;
|
|
63
63
|
to_date: string;
|
|
64
|
+
night_driving?: NightDriving | undefined;
|
|
64
65
|
search?: string | undefined;
|
|
65
66
|
paging?: PAGING | undefined;
|
|
66
67
|
page_count?: unknown;
|
|
67
68
|
page_index?: unknown;
|
|
68
69
|
vehicle_ids?: string[] | undefined;
|
|
69
70
|
time_slot?: TimeSlot | undefined;
|
|
70
|
-
night_driving?: NightDriving | undefined;
|
|
71
71
|
over_speed?: OverSpeed | undefined;
|
|
72
72
|
utilization_km?: unknown;
|
|
73
73
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -96,40 +96,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
96
96
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
97
97
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
98
98
|
}, "strip", z.ZodTypeAny, {
|
|
99
|
+
db_index: string;
|
|
100
|
+
db_instance: string;
|
|
101
|
+
night_driving: NightDriving;
|
|
99
102
|
search: string;
|
|
100
103
|
paging: PAGING;
|
|
101
104
|
page_count: number;
|
|
102
105
|
page_index: number;
|
|
103
|
-
login_from: LoginFrom;
|
|
104
106
|
date_format_id: string;
|
|
105
107
|
time_zone_id: string;
|
|
108
|
+
login_from: LoginFrom;
|
|
106
109
|
organisation_id: string;
|
|
107
|
-
db_instance: string;
|
|
108
|
-
db_index: string;
|
|
109
110
|
from_date: string;
|
|
110
111
|
to_date: string;
|
|
111
112
|
time_slot: TimeSlot;
|
|
112
|
-
night_driving: NightDriving;
|
|
113
113
|
over_speed: OverSpeed;
|
|
114
114
|
utilization_km: number;
|
|
115
115
|
vehicle_summary: YesNo;
|
|
116
116
|
driver_summary: YesNo;
|
|
117
117
|
driver_ids: string[];
|
|
118
118
|
}, {
|
|
119
|
-
|
|
119
|
+
db_index: string;
|
|
120
|
+
db_instance: string;
|
|
120
121
|
date_format_id: string;
|
|
121
122
|
time_zone_id: string;
|
|
123
|
+
login_from: LoginFrom;
|
|
122
124
|
organisation_id: string;
|
|
123
|
-
db_instance: string;
|
|
124
|
-
db_index: string;
|
|
125
125
|
from_date: string;
|
|
126
126
|
to_date: string;
|
|
127
|
+
night_driving?: NightDriving | undefined;
|
|
127
128
|
search?: string | undefined;
|
|
128
129
|
paging?: PAGING | undefined;
|
|
129
130
|
page_count?: unknown;
|
|
130
131
|
page_index?: unknown;
|
|
131
132
|
time_slot?: TimeSlot | undefined;
|
|
132
|
-
night_driving?: NightDriving | undefined;
|
|
133
133
|
over_speed?: OverSpeed | undefined;
|
|
134
134
|
utilization_km?: unknown;
|
|
135
135
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -156,16 +156,16 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
156
156
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
157
157
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
158
158
|
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
db_index: string;
|
|
160
|
+
db_instance: string;
|
|
159
161
|
search: string;
|
|
160
162
|
paging: PAGING;
|
|
161
163
|
page_count: number;
|
|
162
164
|
page_index: number;
|
|
163
|
-
login_from: LoginFrom;
|
|
164
165
|
date_format_id: string;
|
|
165
166
|
time_zone_id: string;
|
|
167
|
+
login_from: LoginFrom;
|
|
166
168
|
organisation_id: string;
|
|
167
|
-
db_instance: string;
|
|
168
|
-
db_index: string;
|
|
169
169
|
vehicle_ids: string[];
|
|
170
170
|
from_date: string;
|
|
171
171
|
to_date: string;
|
|
@@ -173,12 +173,12 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
173
173
|
interval_seconds: number;
|
|
174
174
|
boolean_type: BooleanType;
|
|
175
175
|
}, {
|
|
176
|
-
|
|
176
|
+
db_index: string;
|
|
177
|
+
db_instance: string;
|
|
177
178
|
date_format_id: string;
|
|
178
179
|
time_zone_id: string;
|
|
180
|
+
login_from: LoginFrom;
|
|
179
181
|
organisation_id: string;
|
|
180
|
-
db_instance: string;
|
|
181
|
-
db_index: string;
|
|
182
182
|
from_date: string;
|
|
183
183
|
to_date: string;
|
|
184
184
|
gps_type: GPSType;
|
|
@@ -207,26 +207,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
207
207
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
208
208
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
db_index: string;
|
|
211
|
+
db_instance: string;
|
|
210
212
|
search: string;
|
|
211
213
|
paging: PAGING;
|
|
212
214
|
page_count: number;
|
|
213
215
|
page_index: number;
|
|
214
|
-
login_from: LoginFrom;
|
|
215
216
|
date_format_id: string;
|
|
216
217
|
time_zone_id: string;
|
|
218
|
+
login_from: LoginFrom;
|
|
217
219
|
organisation_id: string;
|
|
218
|
-
db_instance: string;
|
|
219
|
-
db_index: string;
|
|
220
220
|
vehicle_ids: string[];
|
|
221
221
|
utilization_km: number;
|
|
222
222
|
is12am: Is12AM;
|
|
223
223
|
}, {
|
|
224
|
-
|
|
224
|
+
db_index: string;
|
|
225
|
+
db_instance: string;
|
|
225
226
|
date_format_id: string;
|
|
226
227
|
time_zone_id: string;
|
|
228
|
+
login_from: LoginFrom;
|
|
227
229
|
organisation_id: string;
|
|
228
|
-
db_instance: string;
|
|
229
|
-
db_index: string;
|
|
230
230
|
is12am: Is12AM;
|
|
231
231
|
search?: string | undefined;
|
|
232
232
|
paging?: PAGING | undefined;
|
|
@@ -253,28 +253,28 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
253
253
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
254
254
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
|
+
db_index: string;
|
|
257
|
+
db_instance: string;
|
|
258
|
+
vehicle_id: string;
|
|
256
259
|
search: string;
|
|
257
260
|
paging: PAGING;
|
|
258
261
|
page_count: number;
|
|
259
262
|
page_index: number;
|
|
260
|
-
login_from: LoginFrom;
|
|
261
263
|
date_format_id: string;
|
|
262
264
|
time_zone_id: string;
|
|
265
|
+
login_from: LoginFrom;
|
|
263
266
|
organisation_id: string;
|
|
264
|
-
db_instance: string;
|
|
265
|
-
db_index: string;
|
|
266
267
|
interval_seconds: number;
|
|
267
|
-
vehicle_id: string;
|
|
268
268
|
from_date_time: string;
|
|
269
269
|
to_date_time: string;
|
|
270
270
|
}, {
|
|
271
|
-
|
|
271
|
+
db_index: string;
|
|
272
|
+
db_instance: string;
|
|
273
|
+
vehicle_id: string;
|
|
272
274
|
date_format_id: string;
|
|
273
275
|
time_zone_id: string;
|
|
276
|
+
login_from: LoginFrom;
|
|
274
277
|
organisation_id: string;
|
|
275
|
-
db_instance: string;
|
|
276
|
-
db_index: string;
|
|
277
|
-
vehicle_id: string;
|
|
278
278
|
from_date_time: string;
|
|
279
279
|
to_date_time: string;
|
|
280
280
|
search?: string | undefined;
|
|
@@ -298,25 +298,25 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
298
298
|
db_index: z.ZodEffects<z.ZodString, string, string>;
|
|
299
299
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
300
300
|
}, "strip", z.ZodTypeAny, {
|
|
301
|
+
db_index: string;
|
|
302
|
+
db_instance: string;
|
|
303
|
+
vehicle_id: string;
|
|
301
304
|
search: string;
|
|
302
305
|
paging: PAGING;
|
|
303
306
|
page_count: number;
|
|
304
307
|
page_index: number;
|
|
305
|
-
login_from: LoginFrom;
|
|
306
308
|
date_format_id: string;
|
|
307
309
|
time_zone_id: string;
|
|
310
|
+
login_from: LoginFrom;
|
|
308
311
|
organisation_id: string;
|
|
309
|
-
|
|
312
|
+
}, {
|
|
310
313
|
db_index: string;
|
|
314
|
+
db_instance: string;
|
|
311
315
|
vehicle_id: string;
|
|
312
|
-
}, {
|
|
313
|
-
login_from: LoginFrom;
|
|
314
316
|
date_format_id: string;
|
|
315
317
|
time_zone_id: string;
|
|
318
|
+
login_from: LoginFrom;
|
|
316
319
|
organisation_id: string;
|
|
317
|
-
db_instance: string;
|
|
318
|
-
db_index: string;
|
|
319
|
-
vehicle_id: string;
|
|
320
320
|
search?: string | undefined;
|
|
321
321
|
paging?: PAGING | undefined;
|
|
322
322
|
page_count?: unknown;
|
|
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
|
|
|
28
28
|
logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
29
29
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
30
30
|
}, "strip", z.ZodTypeAny, {
|
|
31
|
-
company_name: string;
|
|
32
31
|
description: string;
|
|
33
|
-
logo_url: string;
|
|
34
|
-
logo_key: string;
|
|
35
32
|
status: Status;
|
|
36
33
|
organisation_id: string;
|
|
37
34
|
country_id: string;
|
|
38
|
-
|
|
35
|
+
logo_key: string;
|
|
36
|
+
logo_url: string;
|
|
39
37
|
company_name: string;
|
|
38
|
+
}, {
|
|
40
39
|
status: Status;
|
|
41
40
|
organisation_id: string;
|
|
42
41
|
country_id: string;
|
|
42
|
+
company_name: string;
|
|
43
43
|
description?: string | undefined;
|
|
44
|
-
logo_url?: string | undefined;
|
|
45
44
|
logo_key?: string | undefined;
|
|
45
|
+
logo_url?: string | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
|
|
48
48
|
declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
|
|
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
|
|
|
21
21
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
22
22
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
23
23
|
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
document_type: string;
|
|
24
25
|
description: string;
|
|
25
26
|
status: Status;
|
|
26
27
|
organisation_id: string;
|
|
27
|
-
document_type: string;
|
|
28
28
|
}, {
|
|
29
|
+
document_type: string;
|
|
29
30
|
status: Status;
|
|
30
31
|
organisation_id: string;
|
|
31
|
-
document_type: string;
|
|
32
32
|
description?: string | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
|
package/package.json
CHANGED