vms-nest-prisma-api-document 194.0.0 → 195.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/fleet/fuel_management/fleet_fuel_daily_summary_service.d.ts +16 -16
- package/dist/services/fleet/fuel_management/fleet_fuel_refill_service.d.ts +44 -44
- package/dist/services/fleet/fuel_management/fleet_fuel_removal_service.d.ts +29 -29
- package/dist/services/gps/features/geofence/gps_geofence_transaction_service.d.ts +8 -8
- package/dist/services/gps/features/geofence/gps_geofence_transaction_summary_service.d.ts +5 -5
- package/dist/services/gps/features/geofence/trip_geofence_to_geofence_service.d.ts +11 -11
- package/dist/services/gps/features/gps_live_track_share_link_service.d.ts +4 -4
- package/dist/services/gps/features/gps_track_history_share_link_service.d.ts +7 -7
- package/dist/services/gps/reports/gps_reports_mongo_service.d.ts +46 -46
- package/dist/services/main/users/user_admin_service.d.ts +2 -2
- package/dist/services/main/users/user_admin_service.js +5 -6
- package/dist/services/master/expense/master_expense_name_service.d.ts +5 -5
- package/dist/services/master/expense/master_fuel_company_service.d.ts +5 -5
- package/dist/services/master/fleet/master_fleet_incident_status_service.d.ts +2 -2
- package/dist/services/master/fleet/master_fleet_insurance_claim_status_service.d.ts +2 -2
- package/dist/services/master/main/master_main_eway_bill_provider_service.d.ts +2 -2
- package/dist/services/master/main/master_main_fasttag_bank_service.d.ts +2 -2
- package/dist/services/master/main/master_main_landmark_service.d.ts +4 -4
- package/dist/services/master/spare_part/master_spare_part_sub_category_service.d.ts +8 -8
- package/dist/services/master/vehicle/master_vehicle_fuel_removal_reason_service.d.ts +2 -2
- package/dist/services/website/faq_service.d.ts +1 -1
- package/dist/services/website/static_pages_service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -48,17 +48,17 @@ declare const GPSTrackHistoryShareLinkNotificationSchema: 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_track_history_share_link_id: string;
|
|
52
51
|
status: Status;
|
|
53
52
|
organisation_id: string;
|
|
54
53
|
share_channels: ShareChannel.Email[];
|
|
55
54
|
mobile_numbers: string;
|
|
56
55
|
email_ids: string;
|
|
57
56
|
cc_email_ids: string;
|
|
58
|
-
}, {
|
|
59
57
|
gps_track_history_share_link_id: string;
|
|
58
|
+
}, {
|
|
60
59
|
status: Status;
|
|
61
60
|
organisation_id: string;
|
|
61
|
+
gps_track_history_share_link_id: string;
|
|
62
62
|
share_channels?: ShareChannel.Email[] | undefined;
|
|
63
63
|
mobile_numbers?: string | undefined;
|
|
64
64
|
email_ids?: string | undefined;
|
|
@@ -74,21 +74,21 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
|
|
|
74
74
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
75
75
|
time_zone_id: z.ZodEffects<z.ZodString, string, string>;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
|
-
from_date_time: string;
|
|
78
|
-
to_date_time: string;
|
|
79
77
|
link_status: TrackHistoryLinkStatus;
|
|
80
78
|
status: Status;
|
|
81
79
|
organisation_id: string;
|
|
82
80
|
vehicle_id: string;
|
|
83
81
|
time_zone_id: string;
|
|
84
|
-
}, {
|
|
85
82
|
from_date_time: string;
|
|
86
83
|
to_date_time: string;
|
|
84
|
+
}, {
|
|
87
85
|
link_status: TrackHistoryLinkStatus;
|
|
88
86
|
status: Status;
|
|
89
87
|
organisation_id: string;
|
|
90
88
|
vehicle_id: string;
|
|
91
89
|
time_zone_id: string;
|
|
90
|
+
from_date_time: string;
|
|
91
|
+
to_date_time: string;
|
|
92
92
|
}>;
|
|
93
93
|
type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
|
|
94
94
|
declare const GPSTrackHistoryShareLinkUpdateLinkStatusSchema: z.ZodObject<{
|
|
@@ -137,7 +137,6 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
link_status: TrackHistoryLinkStatus[];
|
|
139
139
|
status: Status[];
|
|
140
|
-
time_zone_id: string;
|
|
141
140
|
search: string;
|
|
142
141
|
paging: PAGING;
|
|
143
142
|
page_count: number;
|
|
@@ -157,12 +156,13 @@ declare const GPSTrackHistoryShareLinkQuerySchema: z.ZodObject<{
|
|
|
157
156
|
}[];
|
|
158
157
|
include_master_data: YesNo;
|
|
159
158
|
date_format_id: string;
|
|
159
|
+
time_zone_id: string;
|
|
160
160
|
organisation_ids: string[];
|
|
161
161
|
vehicle_ids: string[];
|
|
162
162
|
gps_track_history_share_link_ids: string[];
|
|
163
163
|
}, {
|
|
164
|
-
time_zone_id: string;
|
|
165
164
|
date_format_id: string;
|
|
165
|
+
time_zone_id: string;
|
|
166
166
|
link_status?: TrackHistoryLinkStatus[] | undefined;
|
|
167
167
|
status?: Status[] | undefined;
|
|
168
168
|
search?: string | undefined;
|
|
@@ -34,41 +34,41 @@ declare const MultipleVehicleReportSchema: z.ZodObject<{
|
|
|
34
34
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
35
35
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
+
db_group: string;
|
|
38
|
+
db_instance: string;
|
|
39
|
+
night_driving: NightDriving;
|
|
37
40
|
search: string;
|
|
38
41
|
paging: PAGING;
|
|
39
42
|
page_count: number;
|
|
40
43
|
page_index: number;
|
|
41
|
-
login_from: LoginFrom;
|
|
42
44
|
date_format_id: string;
|
|
43
45
|
time_zone_id: string;
|
|
46
|
+
login_from: LoginFrom;
|
|
44
47
|
organisation_id: string;
|
|
45
|
-
db_instance: string;
|
|
46
|
-
db_group: string;
|
|
47
48
|
vehicle_ids: string[];
|
|
48
49
|
from_date: string;
|
|
49
50
|
to_date: string;
|
|
50
51
|
time_slot: TimeSlot;
|
|
51
|
-
night_driving: NightDriving;
|
|
52
52
|
over_speed: OverSpeed;
|
|
53
53
|
utilization_km: number;
|
|
54
54
|
vehicle_summary: YesNo;
|
|
55
55
|
driver_summary: YesNo;
|
|
56
56
|
}, {
|
|
57
|
-
|
|
57
|
+
db_group: string;
|
|
58
|
+
db_instance: string;
|
|
58
59
|
date_format_id: string;
|
|
59
60
|
time_zone_id: string;
|
|
61
|
+
login_from: LoginFrom;
|
|
60
62
|
organisation_id: string;
|
|
61
|
-
db_instance: string;
|
|
62
|
-
db_group: string;
|
|
63
63
|
from_date: string;
|
|
64
64
|
to_date: string;
|
|
65
|
+
night_driving?: NightDriving | undefined;
|
|
65
66
|
search?: string | undefined;
|
|
66
67
|
paging?: PAGING | undefined;
|
|
67
68
|
page_count?: unknown;
|
|
68
69
|
page_index?: unknown;
|
|
69
70
|
vehicle_ids?: string[] | undefined;
|
|
70
71
|
time_slot?: TimeSlot | undefined;
|
|
71
|
-
night_driving?: NightDriving | undefined;
|
|
72
72
|
over_speed?: OverSpeed | undefined;
|
|
73
73
|
utilization_km?: unknown;
|
|
74
74
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -97,40 +97,40 @@ declare const MultipleDriverReportSchema: z.ZodObject<{
|
|
|
97
97
|
vehicle_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
98
98
|
driver_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
|
|
99
99
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
+
db_group: string;
|
|
101
|
+
db_instance: string;
|
|
102
|
+
night_driving: NightDriving;
|
|
100
103
|
search: string;
|
|
101
104
|
paging: PAGING;
|
|
102
105
|
page_count: number;
|
|
103
106
|
page_index: number;
|
|
104
|
-
login_from: LoginFrom;
|
|
105
107
|
date_format_id: string;
|
|
106
108
|
time_zone_id: string;
|
|
109
|
+
login_from: LoginFrom;
|
|
107
110
|
organisation_id: string;
|
|
108
|
-
db_instance: string;
|
|
109
|
-
db_group: string;
|
|
110
111
|
from_date: string;
|
|
111
112
|
to_date: string;
|
|
112
113
|
time_slot: TimeSlot;
|
|
113
|
-
night_driving: NightDriving;
|
|
114
114
|
over_speed: OverSpeed;
|
|
115
115
|
utilization_km: number;
|
|
116
116
|
vehicle_summary: YesNo;
|
|
117
117
|
driver_summary: YesNo;
|
|
118
118
|
driver_ids: string[];
|
|
119
119
|
}, {
|
|
120
|
-
|
|
120
|
+
db_group: string;
|
|
121
|
+
db_instance: string;
|
|
121
122
|
date_format_id: string;
|
|
122
123
|
time_zone_id: string;
|
|
124
|
+
login_from: LoginFrom;
|
|
123
125
|
organisation_id: string;
|
|
124
|
-
db_instance: string;
|
|
125
|
-
db_group: string;
|
|
126
126
|
from_date: string;
|
|
127
127
|
to_date: string;
|
|
128
|
+
night_driving?: NightDriving | undefined;
|
|
128
129
|
search?: string | undefined;
|
|
129
130
|
paging?: PAGING | undefined;
|
|
130
131
|
page_count?: unknown;
|
|
131
132
|
page_index?: unknown;
|
|
132
133
|
time_slot?: TimeSlot | undefined;
|
|
133
|
-
night_driving?: NightDriving | undefined;
|
|
134
134
|
over_speed?: OverSpeed | undefined;
|
|
135
135
|
utilization_km?: unknown;
|
|
136
136
|
vehicle_summary?: YesNo | undefined;
|
|
@@ -157,16 +157,16 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
157
157
|
interval_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
158
158
|
boolean_type: z.ZodType<BooleanType, z.ZodTypeDef, BooleanType>;
|
|
159
159
|
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
db_group: string;
|
|
161
|
+
db_instance: string;
|
|
160
162
|
search: string;
|
|
161
163
|
paging: PAGING;
|
|
162
164
|
page_count: number;
|
|
163
165
|
page_index: number;
|
|
164
|
-
login_from: LoginFrom;
|
|
165
166
|
date_format_id: string;
|
|
166
167
|
time_zone_id: string;
|
|
168
|
+
login_from: LoginFrom;
|
|
167
169
|
organisation_id: string;
|
|
168
|
-
db_instance: string;
|
|
169
|
-
db_group: string;
|
|
170
170
|
vehicle_ids: string[];
|
|
171
171
|
from_date: string;
|
|
172
172
|
to_date: string;
|
|
@@ -174,12 +174,12 @@ declare const SimpleReportSchema: z.ZodObject<{
|
|
|
174
174
|
interval_seconds: number;
|
|
175
175
|
boolean_type: BooleanType;
|
|
176
176
|
}, {
|
|
177
|
-
|
|
177
|
+
db_group: string;
|
|
178
|
+
db_instance: string;
|
|
178
179
|
date_format_id: string;
|
|
179
180
|
time_zone_id: string;
|
|
181
|
+
login_from: LoginFrom;
|
|
180
182
|
organisation_id: string;
|
|
181
|
-
db_instance: string;
|
|
182
|
-
db_group: string;
|
|
183
183
|
from_date: string;
|
|
184
184
|
to_date: string;
|
|
185
185
|
gps_type: GPSType;
|
|
@@ -208,26 +208,26 @@ declare const MultipleVehicleLast24HoursReportSchema: z.ZodObject<{
|
|
|
208
208
|
utilization_km: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
209
209
|
is12am: z.ZodType<Is12AM, z.ZodTypeDef, Is12AM>;
|
|
210
210
|
}, "strip", z.ZodTypeAny, {
|
|
211
|
+
db_group: string;
|
|
212
|
+
db_instance: string;
|
|
211
213
|
search: string;
|
|
212
214
|
paging: PAGING;
|
|
213
215
|
page_count: number;
|
|
214
216
|
page_index: number;
|
|
215
|
-
login_from: LoginFrom;
|
|
216
217
|
date_format_id: string;
|
|
217
218
|
time_zone_id: string;
|
|
219
|
+
login_from: LoginFrom;
|
|
218
220
|
organisation_id: string;
|
|
219
|
-
db_instance: string;
|
|
220
|
-
db_group: string;
|
|
221
221
|
vehicle_ids: string[];
|
|
222
222
|
utilization_km: number;
|
|
223
223
|
is12am: Is12AM;
|
|
224
224
|
}, {
|
|
225
|
-
|
|
225
|
+
db_group: string;
|
|
226
|
+
db_instance: string;
|
|
226
227
|
date_format_id: string;
|
|
227
228
|
time_zone_id: string;
|
|
229
|
+
login_from: LoginFrom;
|
|
228
230
|
organisation_id: string;
|
|
229
|
-
db_instance: string;
|
|
230
|
-
db_group: string;
|
|
231
231
|
is12am: Is12AM;
|
|
232
232
|
search?: string | undefined;
|
|
233
233
|
paging?: PAGING | undefined;
|
|
@@ -254,27 +254,27 @@ declare const SingleVehicleReportSchema: z.ZodObject<{
|
|
|
254
254
|
to_date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
255
255
|
interval_seconds: z.ZodEffects<z.ZodNumber, number, unknown>;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
+
db_group: string;
|
|
258
|
+
db_instance: string;
|
|
257
259
|
search: string;
|
|
258
260
|
paging: PAGING;
|
|
259
261
|
page_count: number;
|
|
260
262
|
page_index: number;
|
|
261
|
-
login_from: LoginFrom;
|
|
262
263
|
date_format_id: string;
|
|
263
264
|
time_zone_id: string;
|
|
265
|
+
login_from: LoginFrom;
|
|
264
266
|
organisation_id: string;
|
|
265
|
-
db_instance: string;
|
|
266
|
-
db_group: string;
|
|
267
267
|
interval_seconds: number;
|
|
268
268
|
vehicle_id: string;
|
|
269
269
|
from_date_time: string;
|
|
270
270
|
to_date_time: string;
|
|
271
271
|
}, {
|
|
272
|
-
|
|
272
|
+
db_group: string;
|
|
273
|
+
db_instance: string;
|
|
273
274
|
date_format_id: string;
|
|
274
275
|
time_zone_id: string;
|
|
276
|
+
login_from: LoginFrom;
|
|
275
277
|
organisation_id: string;
|
|
276
|
-
db_instance: string;
|
|
277
|
-
db_group: string;
|
|
278
278
|
vehicle_id: string;
|
|
279
279
|
from_date_time: string;
|
|
280
280
|
to_date_time: string;
|
|
@@ -299,24 +299,24 @@ declare const VehicleDashboardSummaryQuerySchema: z.ZodObject<{
|
|
|
299
299
|
db_group: z.ZodEffects<z.ZodString, string, string>;
|
|
300
300
|
vehicle_id: z.ZodEffects<z.ZodString, string, string>;
|
|
301
301
|
}, "strip", z.ZodTypeAny, {
|
|
302
|
+
db_group: string;
|
|
303
|
+
db_instance: string;
|
|
302
304
|
search: string;
|
|
303
305
|
paging: PAGING;
|
|
304
306
|
page_count: number;
|
|
305
307
|
page_index: number;
|
|
306
|
-
login_from: LoginFrom;
|
|
307
308
|
date_format_id: string;
|
|
308
309
|
time_zone_id: string;
|
|
310
|
+
login_from: LoginFrom;
|
|
309
311
|
organisation_id: string;
|
|
310
|
-
db_instance: string;
|
|
311
|
-
db_group: string;
|
|
312
312
|
vehicle_id: string;
|
|
313
313
|
}, {
|
|
314
|
-
|
|
314
|
+
db_group: string;
|
|
315
|
+
db_instance: string;
|
|
315
316
|
date_format_id: string;
|
|
316
317
|
time_zone_id: string;
|
|
318
|
+
login_from: LoginFrom;
|
|
317
319
|
organisation_id: string;
|
|
318
|
-
db_instance: string;
|
|
319
|
-
db_group: string;
|
|
320
320
|
vehicle_id: string;
|
|
321
321
|
search?: string | undefined;
|
|
322
322
|
paging?: PAGING | undefined;
|
|
@@ -346,16 +346,16 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
346
346
|
from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
347
347
|
to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
348
348
|
}, "strip", z.ZodTypeAny, {
|
|
349
|
+
db_group: string;
|
|
350
|
+
db_instance: string;
|
|
349
351
|
search: string;
|
|
350
352
|
paging: PAGING;
|
|
351
353
|
page_count: number;
|
|
352
354
|
page_index: number;
|
|
353
|
-
login_from: LoginFrom;
|
|
354
355
|
date_format_id: string;
|
|
355
356
|
time_zone_id: string;
|
|
357
|
+
login_from: LoginFrom;
|
|
356
358
|
organisation_id: string;
|
|
357
|
-
db_instance: string;
|
|
358
|
-
db_group: string;
|
|
359
359
|
vehicle_ids: string[];
|
|
360
360
|
from_date: string;
|
|
361
361
|
to_date: string;
|
|
@@ -366,12 +366,12 @@ declare const AlertReportSchema: z.ZodObject<{
|
|
|
366
366
|
alert_types: AlertType[];
|
|
367
367
|
alert_sub_types: AlertSubType[];
|
|
368
368
|
}, {
|
|
369
|
-
|
|
369
|
+
db_group: string;
|
|
370
|
+
db_instance: string;
|
|
370
371
|
date_format_id: string;
|
|
371
372
|
time_zone_id: string;
|
|
373
|
+
login_from: LoginFrom;
|
|
372
374
|
organisation_id: string;
|
|
373
|
-
db_instance: string;
|
|
374
|
-
db_group: string;
|
|
375
375
|
from_date: string;
|
|
376
376
|
to_date: string;
|
|
377
377
|
search?: string | undefined;
|
|
@@ -197,13 +197,13 @@ declare const UserAdminQuerySchema: z.ZodObject<{
|
|
|
197
197
|
}>;
|
|
198
198
|
type UserAdminQueryDTO = z.infer<typeof UserAdminQuerySchema>;
|
|
199
199
|
declare const toUserAdminPayload: (admin: UserAdmin) => UserAdminDTO;
|
|
200
|
-
declare const toUserAdminLogoPayload: (admin: UserAdmin) => UserAdminLogoDTO;
|
|
201
200
|
declare const toUserAdminProfilePayload: (admin: UserAdmin) => UserAdminProfileDTO;
|
|
202
201
|
declare const newUserAdminPayload: () => UserAdminDTO;
|
|
203
202
|
declare const findUserAdmin: (data: UserAdminQueryDTO) => Promise<FBR<UserAdmin[]>>;
|
|
204
203
|
declare const createUserAdmin: (data: UserAdminDTO) => Promise<SBR>;
|
|
205
204
|
declare const updateUserAdmin: (id: string, data: UserAdminDTO) => Promise<SBR>;
|
|
206
205
|
declare const updateUserAdminLogo: (id: string, data: UserAdminLogoDTO) => Promise<SBR>;
|
|
206
|
+
declare const deleteUserAdminLogo: (id: string) => Promise<SBR>;
|
|
207
207
|
declare const updateUserAdminProfile: (id: string, data: UserAdminProfileDTO) => Promise<SBR>;
|
|
208
208
|
declare const deleteUserAdmin: (id: string) => Promise<SBR>;
|
|
209
209
|
declare const get_admin_presigned_url: (file_name: string) => Promise<BR<AWSPresignedUrl>>;
|
|
@@ -539,4 +539,4 @@ declare const getTicketFilePresignedUrl: (data: FilePresignedUrlDTO) => Promise<
|
|
|
539
539
|
declare const createTicketFile: (data: TicketFileDTO) => Promise<SBR>;
|
|
540
540
|
declare const removeTicketFile: (id: string) => Promise<SBR>;
|
|
541
541
|
|
|
542
|
-
export { type Ticket as T, type UserAdmin, type UserAdminDTO, type UserAdminLoginPush, type UserAdminLogoDTO, UserAdminLogoSchema, type UserAdminProfileDTO, UserAdminProfileSchema, type UserAdminQueryDTO, UserAdminQuerySchema, UserAdminSchema, type TicketFile as a, TicketFileSchema as b, type TicketFileDTO as c, createUserAdmin, TicketSchema as d, deleteUserAdmin, type TicketDTO as e, TicketVerifySchema as f, findUserAdmin, type TicketVerifyDTO as g, getAdminUserCache, get_admin_presigned_url, TicketQuerySchema as h, type TicketQueryDTO as i, toVerifyTicketPayload as j, findTickets as k, createTicket as l, updateVerifyStatus as m, newTicketPayload as n, newUserAdminPayload, deleteTicket as o, getTicketFilePresignedUrl as p, createTicketFile as q, removeTicketFile as r, toTicketPayload as t,
|
|
542
|
+
export { type Ticket as T, type UserAdmin, type UserAdminDTO, type UserAdminLoginPush, type UserAdminLogoDTO, UserAdminLogoSchema, type UserAdminProfileDTO, UserAdminProfileSchema, type UserAdminQueryDTO, UserAdminQuerySchema, UserAdminSchema, type TicketFile as a, TicketFileSchema as b, type TicketFileDTO as c, createUserAdmin, TicketSchema as d, deleteUserAdmin, deleteUserAdminLogo, type TicketDTO as e, TicketVerifySchema as f, findUserAdmin, type TicketVerifyDTO as g, getAdminUserCache, get_admin_presigned_url, TicketQuerySchema as h, type TicketQueryDTO as i, toVerifyTicketPayload as j, findTickets as k, createTicket as l, updateVerifyStatus as m, newTicketPayload as n, newUserAdminPayload, deleteTicket as o, getTicketFilePresignedUrl as p, createTicketFile as q, removeTicketFile as r, toTicketPayload as t, toUserAdminPayload, toUserAdminProfilePayload, updateTicket as u, updateUserAdmin, updateUserAdminLogo, updateUserAdminProfile };
|
|
@@ -253,6 +253,7 @@ var ENDPOINTS = {
|
|
|
253
253
|
create: URL,
|
|
254
254
|
update: (id) => `${URL}/${id}`,
|
|
255
255
|
update_logo: (id) => `${URL}/update_logo/${id}`,
|
|
256
|
+
delete_logo: (id) => `${URL}/delete_logo/${id}`,
|
|
256
257
|
update_profile: (id) => `${URL}/update_profile/${id}`,
|
|
257
258
|
delete: (id) => `${URL}/${id}`,
|
|
258
259
|
presigned_url: (fileName) => `${URL}/presigned_url/${fileName}`,
|
|
@@ -303,11 +304,6 @@ var toUserAdminPayload = (admin) => ({
|
|
|
303
304
|
admin_image_name: admin.admin_image_name || "",
|
|
304
305
|
status: admin.status
|
|
305
306
|
});
|
|
306
|
-
var toUserAdminLogoPayload = (admin) => ({
|
|
307
|
-
admin_image_url: admin.admin_image_url || "",
|
|
308
|
-
admin_image_key: admin.admin_image_key || "",
|
|
309
|
-
admin_image_name: admin.admin_image_name || ""
|
|
310
|
-
});
|
|
311
307
|
var toUserAdminProfilePayload = (admin) => ({
|
|
312
308
|
admin_name: admin.admin_name,
|
|
313
309
|
email: admin.email,
|
|
@@ -339,6 +335,9 @@ var updateUserAdmin = async (id, data) => {
|
|
|
339
335
|
var updateUserAdminLogo = async (id, data) => {
|
|
340
336
|
return apiPatch(ENDPOINTS.update_logo(id), data);
|
|
341
337
|
};
|
|
338
|
+
var deleteUserAdminLogo = async (id) => {
|
|
339
|
+
return apiDelete(ENDPOINTS.delete_logo(id));
|
|
340
|
+
};
|
|
342
341
|
var updateUserAdminProfile = async (id, data) => {
|
|
343
342
|
return apiPatch(ENDPOINTS.update_profile(id), data);
|
|
344
343
|
};
|
|
@@ -358,11 +357,11 @@ export {
|
|
|
358
357
|
UserAdminSchema,
|
|
359
358
|
createUserAdmin,
|
|
360
359
|
deleteUserAdmin,
|
|
360
|
+
deleteUserAdminLogo,
|
|
361
361
|
findUserAdmin,
|
|
362
362
|
getAdminUserCache,
|
|
363
363
|
get_admin_presigned_url,
|
|
364
364
|
newUserAdminPayload,
|
|
365
|
-
toUserAdminLogoPayload,
|
|
366
365
|
toUserAdminPayload,
|
|
367
366
|
toUserAdminProfilePayload,
|
|
368
367
|
updateUserAdmin,
|
|
@@ -27,16 +27,16 @@ declare const MasterExpenseNameSchema: z.ZodObject<{
|
|
|
27
27
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
28
28
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
|
+
expense_name: string;
|
|
31
|
+
expense_category: ExpenseCategory;
|
|
30
32
|
description: string;
|
|
31
33
|
status: Status;
|
|
32
34
|
organisation_id: string;
|
|
35
|
+
}, {
|
|
33
36
|
expense_name: string;
|
|
34
37
|
expense_category: ExpenseCategory;
|
|
35
|
-
}, {
|
|
36
38
|
status: Status;
|
|
37
39
|
organisation_id: string;
|
|
38
|
-
expense_name: string;
|
|
39
|
-
expense_category: ExpenseCategory;
|
|
40
40
|
description?: string | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
type MasterExpenseNameDTO = z.infer<typeof MasterExpenseNameSchema>;
|
|
@@ -75,6 +75,7 @@ declare const MasterExpenseNameQuerySchema: z.ZodObject<{
|
|
|
75
75
|
expense_name_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
76
76
|
expense_category: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof ExpenseCategory>, "many">>>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
expense_category: ExpenseCategory[];
|
|
78
79
|
status: Status[];
|
|
79
80
|
search: string;
|
|
80
81
|
paging: PAGING;
|
|
@@ -97,11 +98,11 @@ declare const MasterExpenseNameQuerySchema: z.ZodObject<{
|
|
|
97
98
|
date_format_id: string;
|
|
98
99
|
time_zone_id: string;
|
|
99
100
|
organisation_ids: string[];
|
|
100
|
-
expense_category: ExpenseCategory[];
|
|
101
101
|
expense_name_ids: string[];
|
|
102
102
|
}, {
|
|
103
103
|
date_format_id: string;
|
|
104
104
|
time_zone_id: string;
|
|
105
|
+
expense_category?: ExpenseCategory[] | undefined;
|
|
105
106
|
status?: Status[] | undefined;
|
|
106
107
|
search?: string | undefined;
|
|
107
108
|
paging?: PAGING | undefined;
|
|
@@ -122,7 +123,6 @@ declare const MasterExpenseNameQuerySchema: z.ZodObject<{
|
|
|
122
123
|
}[] | undefined;
|
|
123
124
|
include_master_data?: YesNo | undefined;
|
|
124
125
|
organisation_ids?: string[] | undefined;
|
|
125
|
-
expense_category?: ExpenseCategory[] | undefined;
|
|
126
126
|
expense_name_ids?: string[] | undefined;
|
|
127
127
|
}>;
|
|
128
128
|
type MasterExpenseNameQueryDTO = z.infer<typeof MasterExpenseNameQuerySchema>;
|
|
@@ -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<{
|
|
@@ -24,14 +24,14 @@ declare const MasterFleetIncidentStatusSchema: z.ZodObject<{
|
|
|
24
24
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
25
25
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
fleet_incident_status: string;
|
|
27
28
|
description: string;
|
|
28
29
|
status: Status;
|
|
29
30
|
organisation_id: string;
|
|
30
|
-
fleet_incident_status: string;
|
|
31
31
|
}, {
|
|
32
|
+
fleet_incident_status: string;
|
|
32
33
|
status: Status;
|
|
33
34
|
organisation_id: string;
|
|
34
|
-
fleet_incident_status: string;
|
|
35
35
|
description?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
type MasterFleetIncidentStatusDTO = z.infer<typeof MasterFleetIncidentStatusSchema>;
|
|
@@ -24,14 +24,14 @@ declare const MasterFleetInsuranceClaimStatusSchema: z.ZodObject<{
|
|
|
24
24
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
25
25
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
fleet_insurance_claim_status: string;
|
|
28
27
|
description: string;
|
|
29
28
|
status: Status;
|
|
30
29
|
organisation_id: string;
|
|
31
|
-
}, {
|
|
32
30
|
fleet_insurance_claim_status: string;
|
|
31
|
+
}, {
|
|
33
32
|
status: Status;
|
|
34
33
|
organisation_id: string;
|
|
34
|
+
fleet_insurance_claim_status: string;
|
|
35
35
|
description?: string | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
type MasterFleetInsuranceClaimStatusDTO = z.infer<typeof MasterFleetInsuranceClaimStatusSchema>;
|
|
@@ -15,12 +15,12 @@ declare const MasterMainEwayBillProviderSchema: z.ZodObject<{
|
|
|
15
15
|
provider_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
16
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
status: Status;
|
|
18
19
|
provider_name: string;
|
|
19
20
|
provider_code: string;
|
|
20
|
-
status: Status;
|
|
21
21
|
}, {
|
|
22
|
-
provider_name: string;
|
|
23
22
|
status: Status;
|
|
23
|
+
provider_name: string;
|
|
24
24
|
provider_code?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type MasterMainEwayBillProviderDTO = z.infer<typeof MasterMainEwayBillProviderSchema>;
|
|
@@ -15,12 +15,12 @@ declare const MasterMainFasttagBankSchema: z.ZodObject<{
|
|
|
15
15
|
bank_code: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
16
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
status: Status;
|
|
19
18
|
bank_name: string;
|
|
20
19
|
bank_code: string;
|
|
21
|
-
}, {
|
|
22
20
|
status: Status;
|
|
21
|
+
}, {
|
|
23
22
|
bank_name: string;
|
|
23
|
+
status: Status;
|
|
24
24
|
bank_code?: string | undefined;
|
|
25
25
|
}>;
|
|
26
26
|
type MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
|
|
@@ -39,6 +39,7 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
|
|
|
39
39
|
longitude: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
|
|
40
40
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
41
41
|
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
google_location: string;
|
|
42
43
|
status: Status;
|
|
43
44
|
country_id: string;
|
|
44
45
|
state_id: string;
|
|
@@ -47,7 +48,6 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
|
|
|
47
48
|
locality: string;
|
|
48
49
|
city_district_town: string;
|
|
49
50
|
zip_code: string;
|
|
50
|
-
google_location: string;
|
|
51
51
|
latitude?: number | undefined;
|
|
52
52
|
longitude?: number | undefined;
|
|
53
53
|
}, {
|
|
@@ -57,11 +57,11 @@ declare const MasterMainLandmarkSchema: z.ZodObject<{
|
|
|
57
57
|
landmark_name: string;
|
|
58
58
|
latitude?: unknown;
|
|
59
59
|
longitude?: unknown;
|
|
60
|
+
google_location?: string | undefined;
|
|
60
61
|
location?: string | undefined;
|
|
61
62
|
locality?: string | undefined;
|
|
62
63
|
city_district_town?: string | undefined;
|
|
63
64
|
zip_code?: string | undefined;
|
|
64
|
-
google_location?: string | undefined;
|
|
65
65
|
}>;
|
|
66
66
|
type MasterMainLandmarkDTO = z.infer<typeof MasterMainLandmarkSchema>;
|
|
67
67
|
declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
|
|
@@ -100,6 +100,7 @@ declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
|
|
|
100
100
|
landmark_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
102
|
status: Status[];
|
|
103
|
+
time_zone_id: string;
|
|
103
104
|
search: string;
|
|
104
105
|
paging: PAGING;
|
|
105
106
|
page_count: number;
|
|
@@ -119,13 +120,12 @@ declare const MasterMainLandmarkQuerySchema: z.ZodObject<{
|
|
|
119
120
|
}[];
|
|
120
121
|
include_master_data: YesNo;
|
|
121
122
|
date_format_id: string;
|
|
122
|
-
time_zone_id: string;
|
|
123
123
|
country_ids: string[];
|
|
124
124
|
state_ids: string[];
|
|
125
125
|
landmark_ids: string[];
|
|
126
126
|
}, {
|
|
127
|
-
date_format_id: string;
|
|
128
127
|
time_zone_id: string;
|
|
128
|
+
date_format_id: string;
|
|
129
129
|
status?: Status[] | undefined;
|
|
130
130
|
search?: string | undefined;
|
|
131
131
|
paging?: PAGING | undefined;
|
|
@@ -29,18 +29,18 @@ declare const MasterSparePartSubCategorySchema: z.ZodObject<{
|
|
|
29
29
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
30
30
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
|
|
33
|
-
sub_category_code: string;
|
|
32
|
+
spare_part_category_id: string;
|
|
34
33
|
description: string;
|
|
35
34
|
status: Status;
|
|
36
35
|
organisation_id: string;
|
|
37
|
-
spare_part_category_id: string;
|
|
38
|
-
}, {
|
|
39
36
|
sub_category_name: string;
|
|
40
37
|
sub_category_code: string;
|
|
38
|
+
}, {
|
|
39
|
+
spare_part_category_id: string;
|
|
41
40
|
status: Status;
|
|
42
41
|
organisation_id: string;
|
|
43
|
-
|
|
42
|
+
sub_category_name: string;
|
|
43
|
+
sub_category_code: string;
|
|
44
44
|
description?: string | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
type MasterSparePartSubCategoryDTO = z.infer<typeof MasterSparePartSubCategorySchema>;
|
|
@@ -162,16 +162,16 @@ declare const MasterSparePartCategorySchema: z.ZodObject<{
|
|
|
162
162
|
description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
|
|
163
163
|
status: z.ZodType<Status, z.ZodTypeDef, Status>;
|
|
164
164
|
}, "strip", z.ZodTypeAny, {
|
|
165
|
+
category_name: string;
|
|
166
|
+
category_code: string;
|
|
165
167
|
description: string;
|
|
166
168
|
status: Status;
|
|
167
169
|
organisation_id: string;
|
|
170
|
+
}, {
|
|
168
171
|
category_name: string;
|
|
169
172
|
category_code: string;
|
|
170
|
-
}, {
|
|
171
173
|
status: Status;
|
|
172
174
|
organisation_id: string;
|
|
173
|
-
category_name: string;
|
|
174
|
-
category_code: string;
|
|
175
175
|
description?: string | undefined;
|
|
176
176
|
}>;
|
|
177
177
|
type MasterSparePartCategoryDTO = z.infer<typeof MasterSparePartCategorySchema>;
|