vms-nest-prisma-api-document 1018.0.0 → 1019.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/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/core/cronjobs.service.d.ts +12 -12
- package/dist/services/core/external_api.service.d.ts +10 -10
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.d.ts +27 -6
- package/dist/services/main/vehicle/childs/vehicle_odometer_history.js +37 -10
- package/dist/services/website/contact_us_detail_service.d.ts +1 -1
- package/dist/services/website/exclusive_feature_access.d.ts +6 -6
- package/dist/services/website/request_demo.service.d.ts +5 -5
- 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[];
|
|
@@ -86,10 +86,8 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
86
86
|
run_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof RunType>, "many">>>;
|
|
87
87
|
execution_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExecutionStatus>, "many">>>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
run_type: RunType[];
|
|
90
|
-
execution_status: ExecutionStatus[];
|
|
91
|
-
status: Status[];
|
|
92
89
|
is_enabled: YesNo[];
|
|
90
|
+
status: Status[];
|
|
93
91
|
search: string;
|
|
94
92
|
paging: PAGING;
|
|
95
93
|
page_count: number;
|
|
@@ -110,13 +108,13 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
110
108
|
include_master_data: YesNo;
|
|
111
109
|
date_format_id: string;
|
|
112
110
|
time_zone_id: string;
|
|
111
|
+
run_type: RunType[];
|
|
112
|
+
execution_status: ExecutionStatus[];
|
|
113
113
|
}, {
|
|
114
114
|
date_format_id: string;
|
|
115
115
|
time_zone_id: string;
|
|
116
|
-
run_type?: RunType[] | undefined;
|
|
117
|
-
execution_status?: ExecutionStatus[] | undefined;
|
|
118
|
-
status?: Status[] | undefined;
|
|
119
116
|
is_enabled?: YesNo[] | undefined;
|
|
117
|
+
status?: Status[] | undefined;
|
|
120
118
|
search?: string | undefined;
|
|
121
119
|
paging?: PAGING | undefined;
|
|
122
120
|
page_count?: unknown;
|
|
@@ -135,6 +133,8 @@ declare const CronMonitorQuerySchema: z.ZodObject<{
|
|
|
135
133
|
direction: OrderBy;
|
|
136
134
|
}[] | undefined;
|
|
137
135
|
include_master_data?: YesNo | undefined;
|
|
136
|
+
run_type?: RunType[] | undefined;
|
|
137
|
+
execution_status?: ExecutionStatus[] | undefined;
|
|
138
138
|
}>;
|
|
139
139
|
type CronMonitorQueryDTO = z.infer<typeof CronMonitorQuerySchema>;
|
|
140
140
|
declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
@@ -173,9 +173,6 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
173
173
|
execution_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExecutionStatus>, "many">>>;
|
|
174
174
|
is_latest_run: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
run_type: RunType[];
|
|
177
|
-
execution_status: ExecutionStatus[];
|
|
178
|
-
is_latest_run: YesNo[];
|
|
179
176
|
status: Status[];
|
|
180
177
|
search: string;
|
|
181
178
|
paging: PAGING;
|
|
@@ -197,13 +194,13 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
197
194
|
include_master_data: YesNo;
|
|
198
195
|
date_format_id: string;
|
|
199
196
|
time_zone_id: string;
|
|
197
|
+
run_type: RunType[];
|
|
198
|
+
execution_status: ExecutionStatus[];
|
|
199
|
+
is_latest_run: YesNo[];
|
|
200
200
|
cron_job_ids: string[];
|
|
201
201
|
}, {
|
|
202
202
|
date_format_id: string;
|
|
203
203
|
time_zone_id: string;
|
|
204
|
-
run_type?: RunType[] | undefined;
|
|
205
|
-
execution_status?: ExecutionStatus[] | undefined;
|
|
206
|
-
is_latest_run?: YesNo[] | undefined;
|
|
207
204
|
status?: Status[] | undefined;
|
|
208
205
|
search?: string | undefined;
|
|
209
206
|
paging?: PAGING | undefined;
|
|
@@ -223,6 +220,9 @@ declare const CronJobLogQuerySchema: z.ZodObject<{
|
|
|
223
220
|
direction: OrderBy;
|
|
224
221
|
}[] | undefined;
|
|
225
222
|
include_master_data?: YesNo | undefined;
|
|
223
|
+
run_type?: RunType[] | undefined;
|
|
224
|
+
execution_status?: ExecutionStatus[] | undefined;
|
|
225
|
+
is_latest_run?: YesNo[] | undefined;
|
|
226
226
|
cron_job_ids?: string[] | undefined;
|
|
227
227
|
}>;
|
|
228
228
|
type CronJobLogQueryDTO = z.infer<typeof CronJobLogQuerySchema>;
|
|
@@ -61,26 +61,26 @@ declare const ApiDataShareManagementSchema: z.ZodObject<{
|
|
|
61
61
|
allowed_ips: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
62
62
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
status: Status;
|
|
65
|
-
is_enabled: YesNo;
|
|
66
64
|
api_name: string;
|
|
67
65
|
vendor_name: string;
|
|
68
66
|
purpose: string;
|
|
69
67
|
description: string;
|
|
68
|
+
is_enabled: YesNo;
|
|
70
69
|
auth_type: APIAuthType;
|
|
71
70
|
api_key: string;
|
|
72
71
|
username: string;
|
|
73
72
|
password: string;
|
|
74
73
|
rate_limit_rpm: number;
|
|
75
74
|
allowed_ips: string[];
|
|
76
|
-
}, {
|
|
77
75
|
status: Status;
|
|
76
|
+
}, {
|
|
78
77
|
api_name: string;
|
|
79
78
|
vendor_name: string;
|
|
80
79
|
allowed_ips: string[];
|
|
81
|
-
|
|
80
|
+
status: Status;
|
|
82
81
|
purpose?: string | undefined;
|
|
83
82
|
description?: string | undefined;
|
|
83
|
+
is_enabled?: YesNo | undefined;
|
|
84
84
|
auth_type?: APIAuthType | undefined;
|
|
85
85
|
api_key?: string | undefined;
|
|
86
86
|
username?: string | undefined;
|
|
@@ -123,8 +123,9 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
123
123
|
is_enabled: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
124
124
|
auth_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof APIAuthType>, "many">>>;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
status: Status[];
|
|
127
126
|
is_enabled: YesNo[];
|
|
127
|
+
auth_type: APIAuthType[];
|
|
128
|
+
status: Status[];
|
|
128
129
|
search: string;
|
|
129
130
|
paging: PAGING;
|
|
130
131
|
page_count: number;
|
|
@@ -145,13 +146,13 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
145
146
|
include_master_data: YesNo;
|
|
146
147
|
date_format_id: string;
|
|
147
148
|
time_zone_id: string;
|
|
148
|
-
auth_type: APIAuthType[];
|
|
149
149
|
api_data_share_ids: string[];
|
|
150
150
|
}, {
|
|
151
151
|
date_format_id: string;
|
|
152
152
|
time_zone_id: string;
|
|
153
|
-
status?: Status[] | undefined;
|
|
154
153
|
is_enabled?: YesNo[] | undefined;
|
|
154
|
+
auth_type?: APIAuthType[] | undefined;
|
|
155
|
+
status?: Status[] | undefined;
|
|
155
156
|
search?: string | undefined;
|
|
156
157
|
paging?: PAGING | undefined;
|
|
157
158
|
page_count?: unknown;
|
|
@@ -170,7 +171,6 @@ declare const ApiDataShareManagementQuerySchema: z.ZodObject<{
|
|
|
170
171
|
direction: OrderBy;
|
|
171
172
|
}[] | undefined;
|
|
172
173
|
include_master_data?: YesNo | undefined;
|
|
173
|
-
auth_type?: APIAuthType[] | undefined;
|
|
174
174
|
api_data_share_ids?: string[] | undefined;
|
|
175
175
|
}>;
|
|
176
176
|
type ApiDataShareManagementQueryDTO = z.infer<typeof ApiDataShareManagementQuerySchema>;
|
|
@@ -210,6 +210,7 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
210
210
|
is_auth_success: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof YesNo>, "many">>>;
|
|
211
211
|
}, "strip", z.ZodTypeAny, {
|
|
212
212
|
status: Status[];
|
|
213
|
+
is_auth_success: YesNo[];
|
|
213
214
|
search: string;
|
|
214
215
|
paging: PAGING;
|
|
215
216
|
page_count: number;
|
|
@@ -230,13 +231,13 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
230
231
|
include_master_data: YesNo;
|
|
231
232
|
date_format_id: string;
|
|
232
233
|
time_zone_id: string;
|
|
233
|
-
is_auth_success: YesNo[];
|
|
234
234
|
api_data_share_ids: string[];
|
|
235
235
|
api_data_share_hit_log_ids: string[];
|
|
236
236
|
}, {
|
|
237
237
|
date_format_id: string;
|
|
238
238
|
time_zone_id: string;
|
|
239
239
|
status?: Status[] | undefined;
|
|
240
|
+
is_auth_success?: YesNo[] | undefined;
|
|
240
241
|
search?: string | undefined;
|
|
241
242
|
paging?: PAGING | undefined;
|
|
242
243
|
page_count?: unknown;
|
|
@@ -255,7 +256,6 @@ declare const ApiDataShareHitLogQuerySchema: z.ZodObject<{
|
|
|
255
256
|
direction: OrderBy;
|
|
256
257
|
}[] | undefined;
|
|
257
258
|
include_master_data?: YesNo | undefined;
|
|
258
|
-
is_auth_success?: YesNo[] | undefined;
|
|
259
259
|
api_data_share_ids?: string[] | undefined;
|
|
260
260
|
api_data_share_hit_log_ids?: string[] | undefined;
|
|
261
261
|
}>;
|
|
@@ -36,21 +36,21 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
36
36
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
37
37
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
db_group: string;
|
|
40
|
-
db_instance: string;
|
|
41
|
-
night_driving: NightDriving;
|
|
42
39
|
search: string;
|
|
43
40
|
paging: PAGING;
|
|
44
41
|
page_count: number;
|
|
45
42
|
page_index: number;
|
|
43
|
+
login_from: LoginFrom;
|
|
46
44
|
date_format_id: string;
|
|
47
45
|
time_zone_id: string;
|
|
48
|
-
login_from: LoginFrom;
|
|
49
46
|
organisation_id: string;
|
|
47
|
+
db_instance: string;
|
|
48
|
+
db_group: string;
|
|
50
49
|
vehicle_ids: string[];
|
|
51
50
|
from_date: string;
|
|
52
51
|
to_date: string;
|
|
53
52
|
time_slot: TimeSlot;
|
|
53
|
+
night_driving: NightDriving;
|
|
54
54
|
over_speed: OverSpeed;
|
|
55
55
|
utilization_km: number;
|
|
56
56
|
raw_data: YesNo;
|
|
@@ -58,21 +58,21 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
58
58
|
vehicle_summary: YesNo;
|
|
59
59
|
driver_summary: YesNo;
|
|
60
60
|
}, {
|
|
61
|
-
|
|
62
|
-
db_instance: string;
|
|
61
|
+
login_from: LoginFrom;
|
|
63
62
|
date_format_id: string;
|
|
64
63
|
time_zone_id: string;
|
|
65
|
-
login_from: LoginFrom;
|
|
66
64
|
organisation_id: string;
|
|
65
|
+
db_instance: string;
|
|
66
|
+
db_group: string;
|
|
67
67
|
from_date: string;
|
|
68
68
|
to_date: string;
|
|
69
|
-
night_driving?: NightDriving | undefined;
|
|
70
69
|
search?: string | undefined;
|
|
71
70
|
paging?: PAGING | undefined;
|
|
72
71
|
page_count?: unknown;
|
|
73
72
|
page_index?: unknown;
|
|
74
73
|
vehicle_ids?: string[] | undefined;
|
|
75
74
|
time_slot?: TimeSlot | undefined;
|
|
75
|
+
night_driving?: NightDriving | undefined;
|
|
76
76
|
over_speed?: OverSpeed | undefined;
|
|
77
77
|
utilization_km?: unknown;
|
|
78
78
|
raw_data?: YesNo | undefined;
|
|
@@ -105,20 +105,20 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
105
105
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
106
106
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
107
107
|
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
db_group: string;
|
|
109
|
-
db_instance: string;
|
|
110
|
-
night_driving: NightDriving;
|
|
111
108
|
search: string;
|
|
112
109
|
paging: PAGING;
|
|
113
110
|
page_count: number;
|
|
114
111
|
page_index: number;
|
|
112
|
+
login_from: LoginFrom;
|
|
115
113
|
date_format_id: string;
|
|
116
114
|
time_zone_id: string;
|
|
117
|
-
login_from: LoginFrom;
|
|
118
115
|
organisation_id: string;
|
|
116
|
+
db_instance: string;
|
|
117
|
+
db_group: string;
|
|
119
118
|
from_date: string;
|
|
120
119
|
to_date: string;
|
|
121
120
|
time_slot: TimeSlot;
|
|
121
|
+
night_driving: NightDriving;
|
|
122
122
|
over_speed: OverSpeed;
|
|
123
123
|
utilization_km: number;
|
|
124
124
|
raw_data: YesNo;
|
|
@@ -127,20 +127,20 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
127
127
|
driver_summary: YesNo;
|
|
128
128
|
driver_ids: string[];
|
|
129
129
|
}, {
|
|
130
|
-
|
|
131
|
-
db_instance: string;
|
|
130
|
+
login_from: LoginFrom;
|
|
132
131
|
date_format_id: string;
|
|
133
132
|
time_zone_id: string;
|
|
134
|
-
login_from: LoginFrom;
|
|
135
133
|
organisation_id: string;
|
|
134
|
+
db_instance: string;
|
|
135
|
+
db_group: string;
|
|
136
136
|
from_date: string;
|
|
137
137
|
to_date: string;
|
|
138
|
-
night_driving?: NightDriving | undefined;
|
|
139
138
|
search?: string | undefined;
|
|
140
139
|
paging?: PAGING | undefined;
|
|
141
140
|
page_count?: unknown;
|
|
142
141
|
page_index?: unknown;
|
|
143
142
|
time_slot?: TimeSlot | undefined;
|
|
143
|
+
night_driving?: NightDriving | undefined;
|
|
144
144
|
over_speed?: OverSpeed | undefined;
|
|
145
145
|
utilization_km?: unknown;
|
|
146
146
|
raw_data?: YesNo | undefined;
|
|
@@ -169,16 +169,16 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
169
169
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
170
170
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
172
|
-
db_group: string;
|
|
173
|
-
db_instance: string;
|
|
174
172
|
search: string;
|
|
175
173
|
paging: PAGING;
|
|
176
174
|
page_count: number;
|
|
177
175
|
page_index: number;
|
|
176
|
+
login_from: LoginFrom;
|
|
178
177
|
date_format_id: string;
|
|
179
178
|
time_zone_id: string;
|
|
180
|
-
login_from: LoginFrom;
|
|
181
179
|
organisation_id: string;
|
|
180
|
+
db_instance: string;
|
|
181
|
+
db_group: string;
|
|
182
182
|
vehicle_ids: string[];
|
|
183
183
|
from_date: string;
|
|
184
184
|
to_date: string;
|
|
@@ -186,12 +186,12 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
186
186
|
interval_seconds: number;
|
|
187
187
|
boolean_type: BooleanType;
|
|
188
188
|
}, {
|
|
189
|
-
|
|
190
|
-
db_instance: string;
|
|
189
|
+
login_from: LoginFrom;
|
|
191
190
|
date_format_id: string;
|
|
192
191
|
time_zone_id: string;
|
|
193
|
-
login_from: LoginFrom;
|
|
194
192
|
organisation_id: string;
|
|
193
|
+
db_instance: string;
|
|
194
|
+
db_group: string;
|
|
195
195
|
from_date: string;
|
|
196
196
|
to_date: string;
|
|
197
197
|
gps_type: GPSType;
|
|
@@ -220,26 +220,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
220
220
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
221
221
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
222
222
|
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
db_group: string;
|
|
224
|
-
db_instance: string;
|
|
225
223
|
search: string;
|
|
226
224
|
paging: PAGING;
|
|
227
225
|
page_count: number;
|
|
228
226
|
page_index: number;
|
|
227
|
+
login_from: LoginFrom;
|
|
229
228
|
date_format_id: string;
|
|
230
229
|
time_zone_id: string;
|
|
231
|
-
login_from: LoginFrom;
|
|
232
230
|
organisation_id: string;
|
|
231
|
+
db_instance: string;
|
|
232
|
+
db_group: string;
|
|
233
233
|
vehicle_ids: string[];
|
|
234
234
|
utilization_km: number;
|
|
235
235
|
is12am: Is12AM;
|
|
236
236
|
}, {
|
|
237
|
-
|
|
238
|
-
db_instance: string;
|
|
237
|
+
login_from: LoginFrom;
|
|
239
238
|
date_format_id: string;
|
|
240
239
|
time_zone_id: string;
|
|
241
|
-
login_from: LoginFrom;
|
|
242
240
|
organisation_id: string;
|
|
241
|
+
db_instance: string;
|
|
242
|
+
db_group: string;
|
|
243
243
|
is12am: Is12AM;
|
|
244
244
|
search?: string | undefined;
|
|
245
245
|
paging?: PAGING | undefined;
|
|
@@ -266,27 +266,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
266
266
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
267
267
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
268
268
|
}, "strip", z.ZodTypeAny, {
|
|
269
|
-
db_group: string;
|
|
270
|
-
db_instance: string;
|
|
271
269
|
search: string;
|
|
272
270
|
paging: PAGING;
|
|
273
271
|
page_count: number;
|
|
274
272
|
page_index: number;
|
|
273
|
+
login_from: LoginFrom;
|
|
275
274
|
date_format_id: string;
|
|
276
275
|
time_zone_id: string;
|
|
277
|
-
login_from: LoginFrom;
|
|
278
276
|
organisation_id: string;
|
|
277
|
+
db_instance: string;
|
|
278
|
+
db_group: string;
|
|
279
279
|
interval_seconds: number;
|
|
280
280
|
vehicle_id: string;
|
|
281
281
|
from_date_time: string;
|
|
282
282
|
to_date_time: string;
|
|
283
283
|
}, {
|
|
284
|
-
|
|
285
|
-
db_instance: string;
|
|
284
|
+
login_from: LoginFrom;
|
|
286
285
|
date_format_id: string;
|
|
287
286
|
time_zone_id: string;
|
|
288
|
-
login_from: LoginFrom;
|
|
289
287
|
organisation_id: string;
|
|
288
|
+
db_instance: string;
|
|
289
|
+
db_group: string;
|
|
290
290
|
vehicle_id: string;
|
|
291
291
|
from_date_time: string;
|
|
292
292
|
to_date_time: string;
|
|
@@ -311,24 +311,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
311
311
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
312
312
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
|
-
db_group: string;
|
|
315
|
-
db_instance: string;
|
|
316
314
|
search: string;
|
|
317
315
|
paging: PAGING;
|
|
318
316
|
page_count: number;
|
|
319
317
|
page_index: number;
|
|
318
|
+
login_from: LoginFrom;
|
|
320
319
|
date_format_id: string;
|
|
321
320
|
time_zone_id: string;
|
|
322
|
-
login_from: LoginFrom;
|
|
323
321
|
organisation_id: string;
|
|
322
|
+
db_instance: string;
|
|
323
|
+
db_group: string;
|
|
324
324
|
vehicle_id: string;
|
|
325
325
|
}, {
|
|
326
|
-
|
|
327
|
-
db_instance: string;
|
|
326
|
+
login_from: LoginFrom;
|
|
328
327
|
date_format_id: string;
|
|
329
328
|
time_zone_id: string;
|
|
330
|
-
login_from: LoginFrom;
|
|
331
329
|
organisation_id: string;
|
|
330
|
+
db_instance: string;
|
|
331
|
+
db_group: string;
|
|
332
332
|
vehicle_id: string;
|
|
333
333
|
search?: string | undefined;
|
|
334
334
|
paging?: PAGING | undefined;
|
|
@@ -358,16 +358,16 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
358
358
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
359
359
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
360
360
|
}, "strip", z.ZodTypeAny, {
|
|
361
|
-
db_group: string;
|
|
362
|
-
db_instance: string;
|
|
363
361
|
search: string;
|
|
364
362
|
paging: PAGING;
|
|
365
363
|
page_count: number;
|
|
366
364
|
page_index: number;
|
|
365
|
+
login_from: LoginFrom;
|
|
367
366
|
date_format_id: string;
|
|
368
367
|
time_zone_id: string;
|
|
369
|
-
login_from: LoginFrom;
|
|
370
368
|
organisation_id: string;
|
|
369
|
+
db_instance: string;
|
|
370
|
+
db_group: string;
|
|
371
371
|
vehicle_ids: string[];
|
|
372
372
|
from_date: string;
|
|
373
373
|
to_date: string;
|
|
@@ -378,12 +378,12 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
378
378
|
alert_types: AlertType[];
|
|
379
379
|
alert_sub_types: AlertSubType[];
|
|
380
380
|
}, {
|
|
381
|
-
|
|
382
|
-
db_instance: string;
|
|
381
|
+
login_from: LoginFrom;
|
|
383
382
|
date_format_id: string;
|
|
384
383
|
time_zone_id: string;
|
|
385
|
-
login_from: LoginFrom;
|
|
386
384
|
organisation_id: string;
|
|
385
|
+
db_instance: string;
|
|
386
|
+
db_group: string;
|
|
387
387
|
from_date: string;
|
|
388
388
|
to_date: string;
|
|
389
389
|
search?: string | undefined;
|
|
@@ -9,6 +9,7 @@ interface VehicleOdometerHistory extends Record<string, unknown> {
|
|
|
9
9
|
vehicle_odometer_history_id: string;
|
|
10
10
|
odometer_reading: number;
|
|
11
11
|
odometer_date: string;
|
|
12
|
+
odometer_date_f?: string;
|
|
12
13
|
odometer_source: OdometerSource;
|
|
13
14
|
status: Status;
|
|
14
15
|
added_date_time: string;
|
|
@@ -27,6 +28,7 @@ declare const VehicleOdometerHistorySchema: z.ZodObject<{
|
|
|
27
28
|
odometer_date: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>, string, string>, string, string>;
|
|
28
29
|
odometer_source: z.ZodType<OdometerSource, z.ZodTypeDef, OdometerSource>;
|
|
29
30
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
31
|
+
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
30
32
|
}, "strip", z.ZodTypeAny, {
|
|
31
33
|
odometer_reading: number;
|
|
32
34
|
odometer_date: string;
|
|
@@ -34,15 +36,34 @@ declare const VehicleOdometerHistorySchema: z.ZodObject<{
|
|
|
34
36
|
status: Status;
|
|
35
37
|
organisation_id: string;
|
|
36
38
|
vehicle_id: string;
|
|
39
|
+
time_zone_id: string;
|
|
37
40
|
}, {
|
|
38
41
|
odometer_date: string;
|
|
39
42
|
odometer_source: OdometerSource;
|
|
40
43
|
status: Status;
|
|
41
44
|
organisation_id: string;
|
|
42
45
|
vehicle_id: string;
|
|
46
|
+
time_zone_id: string;
|
|
43
47
|
odometer_reading?: unknown;
|
|
44
48
|
}>;
|
|
45
49
|
type VehicleOdometerHistoryDTO = z.infer<typeof VehicleOdometerHistorySchema>;
|
|
50
|
+
declare const VehicleOdometerHistoryInternalSchema: z.ZodObject<{
|
|
51
|
+
organisation_id: z.ZodEffects<z.ZodString, string, string>;
|
|
52
|
+
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
53
|
+
odometer_reading: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
54
|
+
odometer_source: z.ZodType<OdometerSource, z.ZodTypeDef, OdometerSource>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
odometer_reading: number;
|
|
57
|
+
odometer_source: OdometerSource;
|
|
58
|
+
organisation_id: string;
|
|
59
|
+
vehicle_id: string;
|
|
60
|
+
}, {
|
|
61
|
+
odometer_source: OdometerSource;
|
|
62
|
+
organisation_id: string;
|
|
63
|
+
vehicle_id: string;
|
|
64
|
+
odometer_reading?: unknown;
|
|
65
|
+
}>;
|
|
66
|
+
type VehicleOdometerHistoryInternalDTO = z.infer<typeof VehicleOdometerHistoryInternalSchema>;
|
|
46
67
|
declare const OdometerHistoryQuerySchema: z.ZodObject<{
|
|
47
68
|
search: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
48
69
|
status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof Status>, "many">>>;
|
|
@@ -74,13 +95,14 @@ declare const OdometerHistoryQuerySchema: z.ZodObject<{
|
|
|
74
95
|
date_format_id: z.ZodEffects<z.ZodString, string, string>;
|
|
75
96
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
76
97
|
} & {
|
|
98
|
+
vehicle_odometer_history_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
77
99
|
organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
78
100
|
vehicle_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
79
|
-
vehicle_odometer_history_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
80
101
|
odometer_source: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof OdometerSource>, "many">>>;
|
|
81
102
|
}, "strip", z.ZodTypeAny, {
|
|
82
103
|
odometer_source: OdometerSource[];
|
|
83
104
|
status: Status[];
|
|
105
|
+
time_zone_id: string;
|
|
84
106
|
search: string;
|
|
85
107
|
paging: PAGING;
|
|
86
108
|
page_count: number;
|
|
@@ -100,13 +122,12 @@ declare const OdometerHistoryQuerySchema: z.ZodObject<{
|
|
|
100
122
|
}[];
|
|
101
123
|
include_master_data: YesNo;
|
|
102
124
|
date_format_id: string;
|
|
103
|
-
|
|
125
|
+
vehicle_odometer_history_ids: string[];
|
|
104
126
|
organisation_ids: string[];
|
|
105
127
|
vehicle_ids: string[];
|
|
106
|
-
vehicle_odometer_history_ids: string[];
|
|
107
128
|
}, {
|
|
108
|
-
date_format_id: string;
|
|
109
129
|
time_zone_id: string;
|
|
130
|
+
date_format_id: string;
|
|
110
131
|
odometer_source?: OdometerSource[] | undefined;
|
|
111
132
|
status?: Status[] | undefined;
|
|
112
133
|
search?: string | undefined;
|
|
@@ -127,9 +148,9 @@ declare const OdometerHistoryQuerySchema: z.ZodObject<{
|
|
|
127
148
|
direction: OrderBy;
|
|
128
149
|
}[] | undefined;
|
|
129
150
|
include_master_data?: YesNo | undefined;
|
|
151
|
+
vehicle_odometer_history_ids?: string[] | undefined;
|
|
130
152
|
organisation_ids?: string[] | undefined;
|
|
131
153
|
vehicle_ids?: string[] | undefined;
|
|
132
|
-
vehicle_odometer_history_ids?: string[] | undefined;
|
|
133
154
|
}>;
|
|
134
155
|
type OdometerHistoryQueryDTO = z.infer<typeof OdometerHistoryQuerySchema>;
|
|
135
156
|
declare const toVehicleOdometerHistoryPayload: (history: VehicleOdometerHistory) => VehicleOdometerHistoryDTO;
|
|
@@ -140,4 +161,4 @@ declare const updateVehicleOdometerHistory: (id: string, data: VehicleOdometerHi
|
|
|
140
161
|
declare const deleteVehicleOdometerHistory: (id: string) => Promise<SBR>;
|
|
141
162
|
declare const getVehicleOdometerHistoryCache: () => Promise<FBR<VehicleOdometerHistory[]>>;
|
|
142
163
|
|
|
143
|
-
export { type OdometerHistoryQueryDTO, OdometerHistoryQuerySchema, type VehicleOdometerHistory, type VehicleOdometerHistoryDTO, VehicleOdometerHistorySchema, createVehicleOdometerHistory, deleteVehicleOdometerHistory, findVehicleOdometerHistories, getVehicleOdometerHistoryCache, newVehicleOdometerHistoryPayload, toVehicleOdometerHistoryPayload, updateVehicleOdometerHistory };
|
|
164
|
+
export { type OdometerHistoryQueryDTO, OdometerHistoryQuerySchema, type VehicleOdometerHistory, type VehicleOdometerHistoryDTO, type VehicleOdometerHistoryInternalDTO, VehicleOdometerHistoryInternalSchema, VehicleOdometerHistorySchema, createVehicleOdometerHistory, deleteVehicleOdometerHistory, findVehicleOdometerHistories, getVehicleOdometerHistoryCache, newVehicleOdometerHistoryPayload, toVehicleOdometerHistoryPayload, updateVehicleOdometerHistory };
|
|
@@ -297,8 +297,12 @@ var ENDPOINTS = {
|
|
|
297
297
|
cache: `${URL}/cache`
|
|
298
298
|
};
|
|
299
299
|
var VehicleOdometerHistorySchema = z3.object({
|
|
300
|
-
|
|
301
|
-
|
|
300
|
+
// Relations - Parent
|
|
301
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
302
|
+
// Single-Selection -> UserOrganisation
|
|
303
|
+
vehicle_id: single_select_mandatory("MasterVehicle"),
|
|
304
|
+
// Single-Selection -> MasterVehicle
|
|
305
|
+
// Main Field Details
|
|
302
306
|
odometer_reading: numberMandatory("Odometer Reading"),
|
|
303
307
|
odometer_date: dateMandatory("Odometer Date"),
|
|
304
308
|
odometer_source: enumMandatory(
|
|
@@ -306,14 +310,34 @@ var VehicleOdometerHistorySchema = z3.object({
|
|
|
306
310
|
OdometerSource,
|
|
307
311
|
"Direct" /* Direct */
|
|
308
312
|
),
|
|
309
|
-
|
|
313
|
+
// Metadata
|
|
314
|
+
status: enumMandatory("Status", Status, "Active" /* Active */),
|
|
315
|
+
time_zone_id: single_select_mandatory("MasterMainTimeZone")
|
|
316
|
+
});
|
|
317
|
+
var VehicleOdometerHistoryInternalSchema = z3.object({
|
|
318
|
+
// Relations - Parent
|
|
319
|
+
organisation_id: single_select_mandatory("UserOrganisation"),
|
|
320
|
+
// Single-Selection -> UserOrganisation
|
|
321
|
+
vehicle_id: single_select_mandatory("MasterVehicle"),
|
|
322
|
+
// Single-Selection -> MasterVehicle
|
|
323
|
+
// Main Field Details
|
|
324
|
+
odometer_reading: numberMandatory("Odometer Reading"),
|
|
325
|
+
odometer_source: enumMandatory(
|
|
326
|
+
"Odometer Source",
|
|
327
|
+
OdometerSource,
|
|
328
|
+
"Direct" /* Direct */
|
|
329
|
+
)
|
|
310
330
|
});
|
|
311
331
|
var OdometerHistoryQuerySchema = BaseQuerySchema.extend({
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
),
|
|
332
|
+
// Self Table
|
|
333
|
+
vehicle_odometer_history_ids: multi_select_optional("VehicleOdometerHistory"),
|
|
334
|
+
// Multi-Selection -> VehicleOdometerHistory
|
|
335
|
+
// Relations - Parent
|
|
336
|
+
organisation_ids: multi_select_optional("UserOrganisation"),
|
|
337
|
+
// Multi-Selection -> UserOrganisation
|
|
338
|
+
vehicle_ids: multi_select_optional("MasterVehicle"),
|
|
339
|
+
// Multi-Selection -> Vehicle
|
|
340
|
+
// Main Field Details
|
|
317
341
|
odometer_source: enumArrayOptional("Odometer Source", OdometerSource)
|
|
318
342
|
});
|
|
319
343
|
var toVehicleOdometerHistoryPayload = (history) => ({
|
|
@@ -322,7 +346,8 @@ var toVehicleOdometerHistoryPayload = (history) => ({
|
|
|
322
346
|
odometer_reading: history.odometer_reading,
|
|
323
347
|
odometer_date: history.odometer_date,
|
|
324
348
|
odometer_source: history.odometer_source,
|
|
325
|
-
status: history.status
|
|
349
|
+
status: history.status,
|
|
350
|
+
time_zone_id: ""
|
|
326
351
|
});
|
|
327
352
|
var newVehicleOdometerHistoryPayload = () => ({
|
|
328
353
|
organisation_id: "",
|
|
@@ -330,7 +355,8 @@ var newVehicleOdometerHistoryPayload = () => ({
|
|
|
330
355
|
odometer_reading: 0,
|
|
331
356
|
odometer_date: (/* @__PURE__ */ new Date()).toISOString(),
|
|
332
357
|
odometer_source: "Other" /* Other */,
|
|
333
|
-
status: "Active" /* Active
|
|
358
|
+
status: "Active" /* Active */,
|
|
359
|
+
time_zone_id: ""
|
|
334
360
|
});
|
|
335
361
|
var findVehicleOdometerHistories = async (data) => {
|
|
336
362
|
return apiPost(
|
|
@@ -352,6 +378,7 @@ var getVehicleOdometerHistoryCache = async () => {
|
|
|
352
378
|
};
|
|
353
379
|
export {
|
|
354
380
|
OdometerHistoryQuerySchema,
|
|
381
|
+
VehicleOdometerHistoryInternalSchema,
|
|
355
382
|
VehicleOdometerHistorySchema,
|
|
356
383
|
createVehicleOdometerHistory,
|
|
357
384
|
deleteVehicleOdometerHistory,
|
|
@@ -31,7 +31,6 @@ declare const ContactUsDetailSchema: z.ZodObject<{
|
|
|
31
31
|
telegram_chat_url: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
32
32
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
|
-
status: Status;
|
|
35
34
|
mobile_number: string;
|
|
36
35
|
email: string;
|
|
37
36
|
facebook_link: string;
|
|
@@ -42,6 +41,7 @@ declare const ContactUsDetailSchema: z.ZodObject<{
|
|
|
42
41
|
pinterest_link: string;
|
|
43
42
|
whats_app_chat_url: string;
|
|
44
43
|
telegram_chat_url: string;
|
|
44
|
+
status: Status;
|
|
45
45
|
}, {
|
|
46
46
|
status: Status;
|
|
47
47
|
mobile_number?: string | undefined;
|
|
@@ -23,14 +23,14 @@ declare const ExclusiveFeatureAccessSchema: z.ZodObject<{
|
|
|
23
23
|
message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
24
24
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
|
|
26
|
+
status: Status;
|
|
27
27
|
message: string;
|
|
28
28
|
organisation_id: string;
|
|
29
|
-
status: Status;
|
|
30
|
-
}, {
|
|
31
29
|
subject: string;
|
|
32
|
-
|
|
30
|
+
}, {
|
|
33
31
|
status: Status;
|
|
32
|
+
organisation_id: string;
|
|
33
|
+
subject: string;
|
|
34
34
|
message?: string | undefined;
|
|
35
35
|
}>;
|
|
36
36
|
type ExclusiveFeatureAccessDTO = z.infer<typeof ExclusiveFeatureAccessSchema>;
|
|
@@ -89,8 +89,8 @@ declare const ExclusiveFeatureAccessQuerySchema: z.ZodObject<{
|
|
|
89
89
|
include_master_data: YesNo;
|
|
90
90
|
date_format_id: string;
|
|
91
91
|
time_zone_id: string;
|
|
92
|
-
exclusive_feature_access_ids: string[];
|
|
93
92
|
organisation_ids: string[];
|
|
93
|
+
exclusive_feature_access_ids: string[];
|
|
94
94
|
}, {
|
|
95
95
|
date_format_id: string;
|
|
96
96
|
time_zone_id: string;
|
|
@@ -113,8 +113,8 @@ declare const ExclusiveFeatureAccessQuerySchema: z.ZodObject<{
|
|
|
113
113
|
direction: OrderBy;
|
|
114
114
|
}[] | undefined;
|
|
115
115
|
include_master_data?: YesNo | undefined;
|
|
116
|
-
exclusive_feature_access_ids?: string[] | undefined;
|
|
117
116
|
organisation_ids?: string[] | undefined;
|
|
117
|
+
exclusive_feature_access_ids?: string[] | undefined;
|
|
118
118
|
}>;
|
|
119
119
|
type ExclusiveFeatureAccessQueryDTO = z.infer<typeof ExclusiveFeatureAccessQuerySchema>;
|
|
120
120
|
declare const toExclusiveFeatureAccessPayload: (row: ExclusiveFeatureAccess) => ExclusiveFeatureAccessDTO;
|
|
@@ -25,10 +25,10 @@ declare const RequestDemoSchema: z.ZodObject<{
|
|
|
25
25
|
admin_view: z.ZodType<YesNo, z.ZodTypeDef, YesNo>;
|
|
26
26
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
|
|
28
|
+
email: string;
|
|
29
29
|
status: Status;
|
|
30
|
+
message: string;
|
|
30
31
|
name: string;
|
|
31
|
-
email: string;
|
|
32
32
|
mobile: string;
|
|
33
33
|
admin_message: string;
|
|
34
34
|
city: string;
|
|
@@ -37,8 +37,8 @@ declare const RequestDemoSchema: z.ZodObject<{
|
|
|
37
37
|
status: Status;
|
|
38
38
|
name: string;
|
|
39
39
|
admin_view: YesNo;
|
|
40
|
-
message?: string | undefined;
|
|
41
40
|
email?: string | undefined;
|
|
41
|
+
message?: string | undefined;
|
|
42
42
|
mobile?: string | undefined;
|
|
43
43
|
admin_message?: string | undefined;
|
|
44
44
|
city?: string | undefined;
|
|
@@ -134,15 +134,15 @@ declare const RequestDemoCreateSchema: z.ZodObject<{
|
|
|
134
134
|
message: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
135
135
|
city: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
email: string;
|
|
137
138
|
message: string;
|
|
138
139
|
name: string;
|
|
139
|
-
email: string;
|
|
140
140
|
mobile: string;
|
|
141
141
|
city: string;
|
|
142
142
|
}, {
|
|
143
143
|
name: string;
|
|
144
|
-
message?: string | undefined;
|
|
145
144
|
email?: string | undefined;
|
|
145
|
+
message?: string | undefined;
|
|
146
146
|
mobile?: string | undefined;
|
|
147
147
|
city?: string | undefined;
|
|
148
148
|
}>;
|
package/package.json
CHANGED