vms-nest-prisma-api-document 6.0.4 → 6.0.6

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.
@@ -2,12 +2,14 @@ import { Status, PAGING, LoadParents, LoadChild, LoadChildCount, OrderBy, YesNo
2
2
  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, c as MasterDevice } from '../../../user_organisation_service-CBArMKRF.js';
5
+ import { FuelConsumptionMonthly } from '../../gps/reports/gps_models/FuelConsumptionMonthly.js';
5
6
  import '../../../zod_utils/zod_base_schema.js';
6
7
  import '../../master/main/master_main_sim_provider_service.js';
7
8
 
8
9
  interface FleetFuelDailySummary extends Record<string, unknown> {
9
10
  fleet_fuel_daily_summary_id: string;
10
11
  date: string;
12
+ date_f?: string;
11
13
  day?: string;
12
14
  start_fuel_liters: number;
13
15
  end_fuel_liters: number;
@@ -66,11 +68,11 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
66
68
  driver_id: string;
67
69
  device_id: string;
68
70
  date: string;
69
- start_fuel_liters: number;
70
- end_fuel_liters: number;
71
71
  total_km: number;
72
72
  consumed_fuel_liters: number;
73
73
  refills_count: number;
74
+ start_fuel_liters: number;
75
+ end_fuel_liters: number;
74
76
  refill_liters: number;
75
77
  removals_count: number;
76
78
  removal_liters: number;
@@ -84,11 +86,11 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
84
86
  driver_id: string;
85
87
  device_id: string;
86
88
  date: string;
87
- start_fuel_liters?: unknown;
88
- end_fuel_liters?: unknown;
89
89
  total_km?: unknown;
90
90
  consumed_fuel_liters?: unknown;
91
91
  refills_count?: unknown;
92
+ start_fuel_liters?: unknown;
93
+ end_fuel_liters?: unknown;
92
94
  refill_liters?: unknown;
93
95
  removals_count?: unknown;
94
96
  removal_liters?: unknown;
@@ -291,7 +293,7 @@ declare const FleetFuelDailyMonthlySummaryQuerySchema: z.ZodObject<{
291
293
  type FleetFuelDailyMonthlySummaryQueryDTO = z.infer<typeof FleetFuelDailyMonthlySummaryQuerySchema>;
292
294
  declare const toFleetFuelDailySummaryPayload: (row: FleetFuelDailySummary) => FleetFuelDailySummaryDTO;
293
295
  declare const findFleetFuelDailySummary: (data: FleetFuelDailySummaryQueryDTO) => Promise<FBR<FleetFuelDailySummary[]>>;
294
- declare const findFleetFuelMonthlySummary: (data: FleetFuelDailyMonthlySummaryQueryDTO) => Promise<FBR<FleetFuelDailySummary[]>>;
296
+ declare const findFleetFuelMonthlySummary: (data: FleetFuelDailyMonthlySummaryQueryDTO) => Promise<FBR<FuelConsumptionMonthly[]>>;
295
297
  declare const createFleetFuelDailySummary: (data: FleetFuelDailySummaryDTO) => Promise<SBR>;
296
298
  declare const updateFleetFuelDailySummary: (id: string, data: FleetFuelDailySummaryDTO) => Promise<SBR>;
297
299
  declare const deleteFleetFuelDailySummary: (id: string) => Promise<SBR>;
@@ -140,29 +140,14 @@ declare const FleetFuelRefillchema: z.ZodObject<{
140
140
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
141
141
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
142
142
  }, "strip", z.ZodTypeAny, {
143
- odometer_reading: number;
144
- date_time: string;
145
- entry_source: RefillEntrySource;
146
- source_reference_id: string;
147
- source_notes: string;
148
- admin_verify_status: GPSFuelApproveStatus;
149
- transporter_verify_status: GPSFuelApproveStatus;
150
- google_location: string;
151
- status: Status;
152
- organisation_id: string;
153
- user_id: string;
154
- vehicle_id: string;
155
- driver_id: string;
156
- device_id: string;
157
- vehicle_fuel_type_id: string;
158
- vehicle_fuel_unit_id: string;
159
- time_zone_id: string;
160
143
  before_refill_quantity: number;
161
144
  after_refill_quantity: number;
162
145
  refill_quantity: number;
163
146
  verified_refill_quantity: number;
147
+ odometer_reading: number;
164
148
  is_full_tank: YesNo;
165
149
  is_previous_entries_missed: YesNo;
150
+ date_time: string;
166
151
  invoice_number: string;
167
152
  payment_mode: PaymentMode;
168
153
  payment_status: PaymentStatus;
@@ -173,15 +158,34 @@ declare const FleetFuelRefillchema: z.ZodObject<{
173
158
  refill_details: string;
174
159
  payment_details: string;
175
160
  filled_by_person: string;
161
+ entry_source: RefillEntrySource;
162
+ source_reference_id: string;
163
+ source_notes: string;
164
+ admin_verify_status: GPSFuelApproveStatus;
165
+ transporter_verify_status: GPSFuelApproveStatus;
166
+ google_location: string;
167
+ status: Status;
168
+ organisation_id: string;
169
+ user_id: string;
170
+ vehicle_id: string;
171
+ driver_id: string;
172
+ device_id: string;
176
173
  vendor_id: string;
177
174
  fuel_station_id: string;
175
+ vehicle_fuel_type_id: string;
176
+ vehicle_fuel_unit_id: string;
177
+ time_zone_id: string;
178
+ diff_refill_quantity?: number | undefined;
178
179
  cost_per_unit?: number | undefined;
179
180
  total_cost?: number | undefined;
180
181
  latitude?: number | undefined;
181
182
  longitude?: number | undefined;
182
- diff_refill_quantity?: number | undefined;
183
183
  }, {
184
+ is_full_tank: YesNo;
185
+ is_previous_entries_missed: YesNo;
184
186
  date_time: string;
187
+ payment_mode: PaymentMode;
188
+ payment_status: PaymentStatus;
185
189
  admin_verify_status: GPSFuelApproveStatus;
186
190
  transporter_verify_status: GPSFuelApproveStatus;
187
191
  status: Status;
@@ -190,29 +194,19 @@ declare const FleetFuelRefillchema: z.ZodObject<{
190
194
  vehicle_id: string;
191
195
  driver_id: string;
192
196
  device_id: string;
197
+ vendor_id: string;
198
+ fuel_station_id: string;
193
199
  vehicle_fuel_type_id: string;
194
200
  vehicle_fuel_unit_id: string;
195
201
  time_zone_id: string;
196
- is_full_tank: YesNo;
197
- is_previous_entries_missed: YesNo;
198
- payment_mode: PaymentMode;
199
- payment_status: PaymentStatus;
200
- vendor_id: string;
201
- fuel_station_id: string;
202
- odometer_reading?: unknown;
203
- cost_per_unit?: unknown;
204
- total_cost?: unknown;
205
- entry_source?: RefillEntrySource | undefined;
206
- source_reference_id?: string | undefined;
207
- source_notes?: string | undefined;
208
- latitude?: unknown;
209
- longitude?: unknown;
210
- google_location?: string | undefined;
211
202
  before_refill_quantity?: unknown;
212
203
  after_refill_quantity?: unknown;
213
204
  refill_quantity?: unknown;
214
205
  verified_refill_quantity?: unknown;
215
206
  diff_refill_quantity?: unknown;
207
+ odometer_reading?: unknown;
208
+ cost_per_unit?: unknown;
209
+ total_cost?: unknown;
216
210
  invoice_number?: string | undefined;
217
211
  payment_reference_number?: string | undefined;
218
212
  fuel_card_number?: string | undefined;
@@ -221,6 +215,12 @@ declare const FleetFuelRefillchema: z.ZodObject<{
221
215
  refill_details?: string | undefined;
222
216
  payment_details?: string | undefined;
223
217
  filled_by_person?: string | undefined;
218
+ entry_source?: RefillEntrySource | undefined;
219
+ source_reference_id?: string | undefined;
220
+ source_notes?: string | undefined;
221
+ latitude?: unknown;
222
+ longitude?: unknown;
223
+ google_location?: string | undefined;
224
224
  }>;
225
225
  type FleetFuelRefillDTO = z.infer<typeof FleetFuelRefillchema>;
226
226
  declare const FleetFuelRefillQuerySchema: z.ZodObject<{
@@ -298,12 +298,12 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
298
298
  vehicle_ids: string[];
299
299
  driver_ids: string[];
300
300
  device_ids: string[];
301
+ vendor_ids: string[];
302
+ fuel_station_ids: string[];
301
303
  vehicle_fuel_type_ids: string[];
302
304
  vehicle_fuel_unit_ids: string[];
303
305
  from_date: string;
304
306
  to_date: string;
305
- vendor_ids: string[];
306
- fuel_station_ids: string[];
307
307
  }, {
308
308
  time_zone_id: string;
309
309
  date_format_id: string;
@@ -336,10 +336,10 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
336
336
  vehicle_ids?: string[] | undefined;
337
337
  driver_ids?: string[] | undefined;
338
338
  device_ids?: string[] | undefined;
339
- vehicle_fuel_type_ids?: string[] | undefined;
340
- vehicle_fuel_unit_ids?: string[] | undefined;
341
339
  vendor_ids?: string[] | undefined;
342
340
  fuel_station_ids?: string[] | undefined;
341
+ vehicle_fuel_type_ids?: string[] | undefined;
342
+ vehicle_fuel_unit_ids?: string[] | undefined;
343
343
  }>;
344
344
  type FleetFuelRefillQueryDTO = z.infer<typeof FleetFuelRefillQuerySchema>;
345
345
  declare const toFleetFuelRefillPayload: (row: FleetFuelRefill) => FleetFuelRefillDTO;
@@ -111,14 +111,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
111
111
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
112
112
  time_zone_id: z.ZodEffects<z.ZodString, string, string>;
113
113
  }, "strip", z.ZodTypeAny, {
114
- before_removal_quantity: number;
115
- after_removal_quantity: number;
116
- removed_quantity: number;
117
- verified_quantity: number;
118
114
  odometer_reading: number;
119
115
  date_time: string;
120
- fuel_removal_reason_id: string;
121
- removal_details: string;
122
116
  entry_source: RefillEntrySource;
123
117
  source_reference_id: string;
124
118
  source_notes: string;
@@ -134,14 +128,19 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
134
128
  vehicle_fuel_type_id: string;
135
129
  vehicle_fuel_unit_id: string;
136
130
  time_zone_id: string;
137
- diff_quantity?: number | undefined;
131
+ fuel_removal_reason_id: string;
132
+ before_removal_quantity: number;
133
+ after_removal_quantity: number;
134
+ removed_quantity: number;
135
+ verified_quantity: number;
136
+ removal_details: string;
138
137
  cost_per_unit?: number | undefined;
139
138
  total_cost?: number | undefined;
140
139
  latitude?: number | undefined;
141
140
  longitude?: number | undefined;
141
+ diff_quantity?: number | undefined;
142
142
  }, {
143
143
  date_time: string;
144
- fuel_removal_reason_id: string;
145
144
  admin_verify_status: GPSFuelApproveStatus;
146
145
  transporter_verify_status: GPSFuelApproveStatus;
147
146
  status: Status;
@@ -153,21 +152,22 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
153
152
  vehicle_fuel_type_id: string;
154
153
  vehicle_fuel_unit_id: string;
155
154
  time_zone_id: string;
156
- before_removal_quantity?: unknown;
157
- after_removal_quantity?: unknown;
158
- removed_quantity?: unknown;
159
- verified_quantity?: unknown;
160
- diff_quantity?: unknown;
155
+ fuel_removal_reason_id: string;
161
156
  odometer_reading?: unknown;
162
157
  cost_per_unit?: unknown;
163
158
  total_cost?: unknown;
164
- removal_details?: string | undefined;
165
159
  entry_source?: RefillEntrySource | undefined;
166
160
  source_reference_id?: string | undefined;
167
161
  source_notes?: string | undefined;
168
162
  latitude?: unknown;
169
163
  longitude?: unknown;
170
164
  google_location?: string | undefined;
165
+ before_removal_quantity?: unknown;
166
+ after_removal_quantity?: unknown;
167
+ removed_quantity?: unknown;
168
+ verified_quantity?: unknown;
169
+ diff_quantity?: unknown;
170
+ removal_details?: string | undefined;
171
171
  }>;
172
172
  type FleetFuelRemovalDTO = z.infer<typeof FleetFuelRemovalSchema>;
173
173
  declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
@@ -246,9 +246,9 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
246
246
  device_ids: string[];
247
247
  vehicle_fuel_type_ids: string[];
248
248
  vehicle_fuel_unit_ids: string[];
249
- fuel_removal_reason_ids: string[];
250
249
  from_date: string;
251
250
  to_date: string;
251
+ fuel_removal_reason_ids: string[];
252
252
  }, {
253
253
  time_zone_id: string;
254
254
  date_format_id: string;
@@ -59,6 +59,8 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
59
59
  geofence_purpose_type: z.ZodType<GeofencePurposeType, z.ZodTypeDef, GeofencePurposeType>;
60
60
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
61
61
  }, "strip", z.ZodTypeAny, {
62
+ status: Status;
63
+ organisation_id: string;
62
64
  geofence_name: string;
63
65
  location_name: string;
64
66
  geofence_type: GeofenceType;
@@ -68,21 +70,19 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
68
70
  }[];
69
71
  geofence_description: string;
70
72
  geofence_purpose_type: GeofencePurposeType;
71
- status: Status;
72
- organisation_id: string;
73
- radius_km?: number | undefined;
74
73
  latitude?: number | undefined;
75
74
  longitude?: number | undefined;
75
+ radius_km?: number | undefined;
76
76
  }, {
77
+ status: Status;
78
+ organisation_id: string;
77
79
  geofence_name: string;
78
80
  location_name: string;
79
81
  geofence_type: GeofenceType;
80
82
  geofence_purpose_type: GeofencePurposeType;
81
- status: Status;
82
- organisation_id: string;
83
- radius_km?: unknown;
84
83
  latitude?: unknown;
85
84
  longitude?: unknown;
85
+ radius_km?: unknown;
86
86
  poliline_data?: {
87
87
  latitude?: unknown;
88
88
  longitude?: unknown;
@@ -125,8 +125,6 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
125
125
  geofence_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceType>, "many">>>;
126
126
  geofence_purpose_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofencePurposeType>, "many">>>;
127
127
  }, "strip", z.ZodTypeAny, {
128
- geofence_type: GeofenceType[];
129
- geofence_purpose_type: GeofencePurposeType[];
130
128
  status: Status[];
131
129
  search: string;
132
130
  paging: PAGING;
@@ -149,11 +147,11 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
149
147
  date_format_id: string;
150
148
  time_zone_id: string;
151
149
  organisation_ids: string[];
150
+ geofence_type: GeofenceType[];
151
+ geofence_purpose_type: GeofencePurposeType[];
152
152
  }, {
153
153
  date_format_id: string;
154
154
  time_zone_id: string;
155
- geofence_type?: GeofenceType[] | undefined;
156
- geofence_purpose_type?: GeofencePurposeType[] | undefined;
157
155
  status?: Status[] | undefined;
158
156
  search?: string | undefined;
159
157
  paging?: PAGING | undefined;
@@ -174,6 +172,8 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
174
172
  }[] | undefined;
175
173
  include_master_data?: YesNo | undefined;
176
174
  organisation_ids?: string[] | undefined;
175
+ geofence_type?: GeofenceType[] | undefined;
176
+ geofence_purpose_type?: GeofencePurposeType[] | undefined;
177
177
  }>;
178
178
  type GPSGeofenceDataQueryDTO = z.infer<typeof GPSGeofenceDataQuerySchema>;
179
179
  declare const toGPSGeofenceDataPayload: (data: GPSGeofenceData) => GPSGeofenceDataDTO;
@@ -31,21 +31,21 @@ declare const GPSGeofenceTransactionSchema: z.ZodObject<{
31
31
  geofence_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
32
32
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
33
33
  }, "strip", z.ZodTypeAny, {
34
- gps_geofence_id: string;
34
+ geofence_status_type: GeofenceStatusType;
35
+ geofence_time: string;
35
36
  status: Status;
36
37
  organisation_id: string;
37
- driver_id: string;
38
38
  vehicle_id: string;
39
+ driver_id: string;
40
+ gps_geofence_id: string;
41
+ }, {
39
42
  geofence_status_type: GeofenceStatusType;
40
43
  geofence_time: string;
41
- }, {
42
- gps_geofence_id: string;
43
44
  status: Status;
44
45
  organisation_id: string;
45
- driver_id: string;
46
46
  vehicle_id: string;
47
- geofence_status_type: GeofenceStatusType;
48
- geofence_time: string;
47
+ driver_id: string;
48
+ gps_geofence_id: string;
49
49
  }>;
50
50
  type GPSGeofenceTransactionDTO = z.infer<typeof GPSGeofenceTransactionSchema>;
51
51
  declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
@@ -85,6 +85,7 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
85
85
  gps_geofence_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
86
86
  geofence_status_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof GeofenceStatusType>, "many">>>;
87
87
  }, "strip", z.ZodTypeAny, {
88
+ geofence_status_type: GeofenceStatusType[];
88
89
  status: Status[];
89
90
  search: string;
90
91
  paging: PAGING;
@@ -109,11 +110,11 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
109
110
  organisation_ids: string[];
110
111
  vehicle_ids: string[];
111
112
  driver_ids: string[];
112
- geofence_status_type: GeofenceStatusType[];
113
113
  gps_geofence_ids: string[];
114
114
  }, {
115
115
  date_format_id: string;
116
116
  time_zone_id: string;
117
+ geofence_status_type?: GeofenceStatusType[] | undefined;
117
118
  status?: Status[] | undefined;
118
119
  search?: string | undefined;
119
120
  paging?: PAGING | undefined;
@@ -136,7 +137,6 @@ declare const GPSGeofenceTransactionQuerySchema: z.ZodObject<{
136
137
  organisation_ids?: string[] | undefined;
137
138
  vehicle_ids?: string[] | undefined;
138
139
  driver_ids?: string[] | undefined;
139
- geofence_status_type?: GeofenceStatusType[] | undefined;
140
140
  gps_geofence_ids?: string[] | undefined;
141
141
  }>;
142
142
  type GPSGeofenceTransactionQueryDTO = z.infer<typeof GPSGeofenceTransactionQuerySchema>;
@@ -40,22 +40,22 @@ declare const GPSGeofenceTransactionSummarySchema: z.ZodObject<{
40
40
  duration_seconds: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- gps_geofence_id: string;
44
43
  status: Status;
45
44
  organisation_id: string;
46
- driver_id: string;
47
45
  vehicle_id: string;
46
+ driver_id: string;
47
+ gps_geofence_id: string;
48
48
  geofence_enter_date_time: string;
49
49
  geofence_exit_date_time: string;
50
50
  duration_seconds: number;
51
51
  enter_gps_geofence_transaction_id: string;
52
52
  exit_gps_geofence_transaction_id: string;
53
53
  }, {
54
- gps_geofence_id: string;
55
54
  status: Status;
56
55
  organisation_id: string;
57
- driver_id: string;
58
56
  vehicle_id: string;
57
+ driver_id: string;
58
+ gps_geofence_id: string;
59
59
  geofence_enter_date_time: string;
60
60
  enter_gps_geofence_transaction_id: string;
61
61
  exit_gps_geofence_transaction_id: string;
@@ -64,8 +64,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
64
64
  }, "strip", z.ZodTypeAny, {
65
65
  status: Status;
66
66
  organisation_id: string;
67
- driver_id: string;
68
67
  vehicle_id: string;
68
+ driver_id: string;
69
69
  duration_seconds: number;
70
70
  from_geofence_exit_date_time: string;
71
71
  to_geofence_enter_date_time: string;
@@ -87,8 +87,8 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
87
87
  }, {
88
88
  status: Status;
89
89
  organisation_id: string;
90
- driver_id: string;
91
90
  vehicle_id: string;
91
+ driver_id: string;
92
92
  from_geofence_exit_date_time: string;
93
93
  to_geofence_enter_date_time: string;
94
94
  from_geofence_id: string;
@@ -42,17 +42,17 @@ declare const GPSLiveTrackShareLinkNotificationsSchema: z.ZodObject<{
42
42
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
43
43
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
44
44
  }, "strip", z.ZodTypeAny, {
45
+ gps_live_track_share_link_id: string;
45
46
  status: Status;
46
47
  organisation_id: string;
47
48
  type: NotificationType;
48
49
  to_recipients: string;
49
- gps_live_track_share_link_id: string;
50
50
  }, {
51
+ gps_live_track_share_link_id: string;
51
52
  status: Status;
52
53
  organisation_id: string;
53
54
  type: NotificationType;
54
55
  to_recipients: string;
55
- gps_live_track_share_link_id: string;
56
56
  }>;
57
57
  type GPSLiveTrackShareLinkNotificationsDTO = z.infer<typeof GPSLiveTrackShareLinkNotificationsSchema>;
58
58
  declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
@@ -73,54 +73,54 @@ declare const GPSLiveTrackShareLinkSchema: z.ZodObject<{
73
73
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
74
74
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
75
75
  }, z.UnknownKeysParam, z.ZodTypeAny, {
76
+ gps_live_track_share_link_id: string;
76
77
  status: Status;
77
78
  organisation_id: string;
78
79
  type: NotificationType;
79
80
  to_recipients: string;
80
- gps_live_track_share_link_id: string;
81
81
  }, {
82
+ gps_live_track_share_link_id: string;
82
83
  status: Status;
83
84
  organisation_id: string;
84
85
  type: NotificationType;
85
86
  to_recipients: string;
86
- gps_live_track_share_link_id: string;
87
87
  }>, "many">>>;
88
88
  }, "strip", z.ZodTypeAny, {
89
+ link_type: LinkType;
90
+ location: string;
89
91
  link_status: LinkStatus;
90
92
  status: Status;
91
93
  organisation_id: string;
92
94
  vehicle_id: string;
93
95
  trip_id: string;
96
+ expire_milliseconds: number;
94
97
  notifications: {
98
+ gps_live_track_share_link_id: string;
95
99
  status: Status;
96
100
  organisation_id: string;
97
101
  type: NotificationType;
98
102
  to_recipients: string;
99
- gps_live_track_share_link_id: string;
100
103
  }[];
101
- link_type: LinkType;
102
- location: string;
103
- expire_milliseconds: number;
104
104
  latitude?: number | undefined;
105
105
  longitude?: number | undefined;
106
106
  }, {
107
+ link_type: LinkType;
107
108
  link_status: LinkStatus;
108
109
  status: Status;
109
110
  organisation_id: string;
110
111
  vehicle_id: string;
111
112
  trip_id: string;
112
- link_type: LinkType;
113
+ latitude?: unknown;
114
+ longitude?: unknown;
115
+ location?: string | undefined;
116
+ expire_milliseconds?: unknown;
113
117
  notifications?: {
118
+ gps_live_track_share_link_id: string;
114
119
  status: Status;
115
120
  organisation_id: string;
116
121
  type: NotificationType;
117
122
  to_recipients: string;
118
- gps_live_track_share_link_id: string;
119
123
  }[] | undefined;
120
- latitude?: unknown;
121
- longitude?: unknown;
122
- location?: string | undefined;
123
- expire_milliseconds?: unknown;
124
124
  }>;
125
125
  type GPSLiveTrackShareLinkDTO = z.infer<typeof GPSLiveTrackShareLinkSchema>;
126
126
  declare const GPSLiveTrackShareLinkTimeSchema: z.ZodObject<{
@@ -176,6 +176,7 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
176
176
  link_type: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkType>, "many">>>;
177
177
  link_status: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof LinkStatus>, "many">>>;
178
178
  }, "strip", z.ZodTypeAny, {
179
+ link_type: LinkType[];
179
180
  link_status: LinkStatus[];
180
181
  status: Status[];
181
182
  search: string;
@@ -201,10 +202,10 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
201
202
  organisation_ids: string[];
202
203
  vehicle_ids: string[];
203
204
  trip_ids: string[];
204
- link_type: LinkType[];
205
205
  }, {
206
206
  date_format_id: string;
207
207
  time_zone_id: string;
208
+ link_type?: LinkType[] | undefined;
208
209
  link_status?: LinkStatus[] | undefined;
209
210
  status?: Status[] | undefined;
210
211
  search?: string | undefined;
@@ -228,7 +229,6 @@ declare const GPSLiveTrackShareLinkQuerySchema: z.ZodObject<{
228
229
  organisation_ids?: string[] | undefined;
229
230
  vehicle_ids?: string[] | undefined;
230
231
  trip_ids?: string[] | undefined;
231
- link_type?: LinkType[] | undefined;
232
232
  }>;
233
233
  type GPSLiveTrackShareLinkQueryDTO = z.infer<typeof GPSLiveTrackShareLinkQuerySchema>;
234
234
  declare const toGPSLiveTrackShareLinkPayload: (data: GPSLiveTrackShareLink) => GPSLiveTrackShareLinkDTO;
@@ -40,17 +40,17 @@ declare const GPSTrackHistoryShareLinkNotificationsSchema: z.ZodObject<{
40
40
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
41
41
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
42
42
  }, "strip", z.ZodTypeAny, {
43
- gps_track_history_share_link_id: string;
44
43
  status: Status;
45
44
  organisation_id: string;
46
45
  type: NotificationType;
47
46
  to_recipients: string;
48
- }, {
49
47
  gps_track_history_share_link_id: string;
48
+ }, {
50
49
  status: Status;
51
50
  organisation_id: string;
52
51
  type: NotificationType;
53
52
  to_recipients: string;
53
+ gps_track_history_share_link_id: string;
54
54
  }>;
55
55
  type GPSTrackHistoryShareLinkNotificationsDTO = z.infer<typeof GPSTrackHistoryShareLinkNotificationsSchema>;
56
56
  declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
@@ -68,47 +68,47 @@ declare const GPSTrackHistoryShareLinkSchema: z.ZodObject<{
68
68
  to_recipients: z.ZodEffects<z.ZodString, string, string>;
69
69
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
70
70
  }, z.UnknownKeysParam, z.ZodTypeAny, {
71
- gps_track_history_share_link_id: string;
72
71
  status: Status;
73
72
  organisation_id: string;
74
73
  type: NotificationType;
75
74
  to_recipients: string;
76
- }, {
77
75
  gps_track_history_share_link_id: string;
76
+ }, {
78
77
  status: Status;
79
78
  organisation_id: string;
80
79
  type: NotificationType;
81
80
  to_recipients: string;
81
+ gps_track_history_share_link_id: string;
82
82
  }>, "many">>>;
83
83
  }, "strip", z.ZodTypeAny, {
84
- from_date_time: string;
85
- to_date_time: string;
86
84
  link_status: TrackHistoryLinkStatus;
87
85
  status: Status;
88
86
  organisation_id: string;
89
87
  vehicle_id: string;
90
88
  trip_id: string;
91
89
  notifications: {
92
- gps_track_history_share_link_id: string;
93
90
  status: Status;
94
91
  organisation_id: string;
95
92
  type: NotificationType;
96
93
  to_recipients: string;
94
+ gps_track_history_share_link_id: string;
97
95
  }[];
98
- }, {
99
96
  from_date_time: string;
100
97
  to_date_time: string;
98
+ }, {
101
99
  link_status: TrackHistoryLinkStatus;
102
100
  status: Status;
103
101
  organisation_id: string;
104
102
  vehicle_id: string;
105
103
  trip_id: string;
104
+ from_date_time: string;
105
+ to_date_time: string;
106
106
  notifications?: {
107
- gps_track_history_share_link_id: string;
108
107
  status: Status;
109
108
  organisation_id: string;
110
109
  type: NotificationType;
111
110
  to_recipients: string;
111
+ gps_track_history_share_link_id: string;
112
112
  }[] | undefined;
113
113
  }>;
114
114
  type GPSTrackHistoryShareLinkDTO = z.infer<typeof GPSTrackHistoryShareLinkSchema>;
@@ -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;
39
36
  search: string;
40
37
  paging: PAGING;
41
38
  page_count: number;
42
39
  page_index: number;
40
+ login_from: LoginFrom;
43
41
  date_format_id: string;
44
42
  time_zone_id: string;
45
- login_from: LoginFrom;
46
43
  organisation_id: string;
44
+ db_instance: string;
45
+ db_index: string;
47
46
  vehicle_ids: string[];
48
47
  from_date: string;
49
48
  to_date: string;
50
49
  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
- db_index: string;
57
- db_instance: string;
56
+ login_from: LoginFrom;
58
57
  date_format_id: string;
59
58
  time_zone_id: string;
60
- login_from: LoginFrom;
61
59
  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;
65
64
  search?: string | undefined;
66
65
  paging?: PAGING | undefined;
67
66
  page_count?: unknown;
68
67
  page_index?: unknown;
69
68
  vehicle_ids?: string[] | undefined;
70
69
  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;
102
99
  search: string;
103
100
  paging: PAGING;
104
101
  page_count: number;
105
102
  page_index: number;
103
+ login_from: LoginFrom;
106
104
  date_format_id: string;
107
105
  time_zone_id: string;
108
- login_from: LoginFrom;
109
106
  organisation_id: string;
107
+ db_instance: string;
108
+ db_index: string;
110
109
  from_date: string;
111
110
  to_date: string;
112
111
  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
- db_index: string;
120
- db_instance: string;
119
+ login_from: LoginFrom;
121
120
  date_format_id: string;
122
121
  time_zone_id: string;
123
- login_from: LoginFrom;
124
122
  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;
128
127
  search?: string | undefined;
129
128
  paging?: PAGING | undefined;
130
129
  page_count?: unknown;
131
130
  page_index?: unknown;
132
131
  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;
161
159
  search: string;
162
160
  paging: PAGING;
163
161
  page_count: number;
164
162
  page_index: number;
163
+ login_from: LoginFrom;
165
164
  date_format_id: string;
166
165
  time_zone_id: string;
167
- login_from: LoginFrom;
168
166
  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
- db_index: string;
177
- db_instance: string;
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_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;
212
210
  search: string;
213
211
  paging: PAGING;
214
212
  page_count: number;
215
213
  page_index: number;
214
+ login_from: LoginFrom;
216
215
  date_format_id: string;
217
216
  time_zone_id: string;
218
- login_from: LoginFrom;
219
217
  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
- db_index: string;
225
- db_instance: string;
224
+ login_from: LoginFrom;
226
225
  date_format_id: string;
227
226
  time_zone_id: string;
228
- login_from: LoginFrom;
229
227
  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;
259
256
  search: string;
260
257
  paging: PAGING;
261
258
  page_count: number;
262
259
  page_index: number;
260
+ login_from: LoginFrom;
263
261
  date_format_id: string;
264
262
  time_zone_id: string;
265
- login_from: LoginFrom;
266
263
  organisation_id: string;
264
+ db_instance: string;
265
+ db_index: string;
267
266
  interval_seconds: number;
267
+ vehicle_id: string;
268
268
  from_date_time: string;
269
269
  to_date_time: string;
270
270
  }, {
271
- db_index: string;
272
- db_instance: string;
273
- vehicle_id: string;
271
+ login_from: LoginFrom;
274
272
  date_format_id: string;
275
273
  time_zone_id: string;
276
- login_from: LoginFrom;
277
274
  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;
304
301
  search: string;
305
302
  paging: PAGING;
306
303
  page_count: number;
307
304
  page_index: number;
305
+ login_from: LoginFrom;
308
306
  date_format_id: string;
309
307
  time_zone_id: string;
310
- login_from: LoginFrom;
311
308
  organisation_id: string;
312
- }, {
313
- db_index: string;
314
309
  db_instance: string;
310
+ db_index: string;
315
311
  vehicle_id: string;
312
+ }, {
313
+ login_from: LoginFrom;
316
314
  date_format_id: string;
317
315
  time_zone_id: string;
318
- login_from: LoginFrom;
319
316
  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;
@@ -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;
19
18
  provider_name: string;
20
19
  provider_code: string;
21
- }, {
22
20
  status: Status;
21
+ }, {
23
22
  provider_name: string;
23
+ status: Status;
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;
18
19
  bank_name: string;
19
20
  bank_code: string;
20
- status: Status;
21
21
  }, {
22
- bank_name: string;
23
22
  status: Status;
23
+ bank_name: string;
24
24
  bank_code?: string | undefined;
25
25
  }>;
26
26
  type MasterMainFasttagBankDTO = z.infer<typeof MasterMainFasttagBankSchema>;
@@ -25,14 +25,14 @@ declare const MasterVehicleAssociatedToSchema: z.ZodObject<{
25
25
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
26
26
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ associated_to: string;
28
29
  description: string;
29
30
  status: Status;
30
31
  organisation_id: string;
31
- associated_to: string;
32
32
  }, {
33
+ associated_to: string;
33
34
  status: Status;
34
35
  organisation_id: string;
35
- associated_to: string;
36
36
  description?: string | undefined;
37
37
  }>;
38
38
  type MasterVehicleAssociatedToDTO = z.infer<typeof MasterVehicleAssociatedToSchema>;
@@ -24,14 +24,14 @@ declare const MasterVehicleDocumentTypeSchema: 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
- document_type: string;
28
27
  description: string;
29
28
  status: Status;
30
29
  organisation_id: string;
31
- }, {
32
30
  document_type: string;
31
+ }, {
33
32
  status: Status;
34
33
  organisation_id: string;
34
+ document_type: string;
35
35
  description?: string | undefined;
36
36
  }>;
37
37
  type MasterVehicleDocumentTypeDTO = z.infer<typeof MasterVehicleDocumentTypeSchema>;
@@ -24,14 +24,14 @@ declare const MasterVehicleFuelRemovalReasonSchema: 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
- removal_reason: string;
28
27
  status: Status;
29
28
  organisation_id: string;
30
29
  description: string;
31
- }, {
32
30
  removal_reason: string;
31
+ }, {
33
32
  status: Status;
34
33
  organisation_id: string;
34
+ removal_reason: string;
35
35
  description?: string | undefined;
36
36
  }>;
37
37
  type MasterVehicleFuelRemovalReasonDTO = z.infer<typeof MasterVehicleFuelRemovalReasonSchema>;
@@ -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;
@@ -17,10 +17,10 @@ declare const FaqSchema: z.ZodObject<{
17
17
  faq_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
18
18
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
19
19
  }, "strip", z.ZodTypeAny, {
20
+ status: Status;
20
21
  faq_section: string;
21
22
  faq_header: string;
22
23
  faq_content: string;
23
- status: Status;
24
24
  }, {
25
25
  status: Status;
26
26
  faq_section?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.4",
3
+ "version": "6.0.6",
4
4
  "description": "Reusable API SDK built with NestJS, Prisma, Axios, and Zod for VMS frontends.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",