vms-nest-prisma-api-document 6.0.11 → 6.0.12

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.
@@ -61,13 +61,13 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
61
61
  liters_per_100km: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
62
62
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
63
63
  }, "strip", z.ZodTypeAny, {
64
+ date: string;
64
65
  status: Status;
65
66
  organisation_id: string;
66
67
  user_id: string;
67
68
  vehicle_id: string;
68
69
  driver_id: string;
69
70
  device_id: string;
70
- date: string;
71
71
  total_km: number;
72
72
  consumed_fuel_liters: number;
73
73
  refills_count: number;
@@ -79,13 +79,13 @@ declare const FleetFuelDailySummarySchema: z.ZodObject<{
79
79
  mileage_kmpl: number;
80
80
  liters_per_100km: number;
81
81
  }, {
82
+ date: string;
82
83
  status: Status;
83
84
  organisation_id: string;
84
85
  user_id: string;
85
86
  vehicle_id: string;
86
87
  driver_id: string;
87
88
  device_id: string;
88
- date: string;
89
89
  total_km?: unknown;
90
90
  consumed_fuel_liters?: unknown;
91
91
  refills_count?: unknown;
@@ -325,8 +325,8 @@ declare const AllVehiclesFuelDailySummaryQuerySchema: z.ZodObject<{
325
325
  date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
326
326
  organisation_utrack_id: z.ZodEffects<z.ZodString, string, string>;
327
327
  }, "strip", z.ZodTypeAny, {
328
- status: Status[];
329
328
  date: string;
329
+ status: Status[];
330
330
  time_zone_id: string;
331
331
  search: string;
332
332
  paging: PAGING;
@@ -18,6 +18,7 @@ interface FleetFuelRefill extends Record<string, unknown> {
18
18
  is_full_tank: YesNo;
19
19
  is_previous_entries_missed: YesNo;
20
20
  date_time: string;
21
+ date?: string;
21
22
  date_time_f?: string;
22
23
  cost_per_unit?: number;
23
24
  total_cost?: number;
@@ -110,7 +111,6 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
110
111
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
111
112
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
112
113
  }, "strip", z.ZodTypeAny, {
113
- fleet_fuel_refill_id: string;
114
114
  status: Status;
115
115
  organisation_id: string;
116
116
  file_type: FileType;
@@ -120,11 +120,12 @@ declare const FleetFuelRefillFileSchema: z.ZodObject<{
120
120
  file_description: string;
121
121
  file_size: number;
122
122
  file_metadata: Record<string, any>;
123
- }, {
124
123
  fleet_fuel_refill_id: string;
124
+ }, {
125
125
  status: Status;
126
126
  organisation_id: string;
127
127
  file_type: FileType;
128
+ fleet_fuel_refill_id: string;
128
129
  file_url?: string | undefined;
129
130
  file_key?: string | undefined;
130
131
  file_name?: string | undefined;
@@ -186,7 +187,6 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
186
187
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
187
188
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
188
189
  }, z.UnknownKeysParam, z.ZodTypeAny, {
189
- fleet_fuel_refill_id: string;
190
190
  status: Status;
191
191
  organisation_id: string;
192
192
  file_type: FileType;
@@ -196,11 +196,12 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
196
196
  file_description: string;
197
197
  file_size: number;
198
198
  file_metadata: Record<string, any>;
199
- }, {
200
199
  fleet_fuel_refill_id: string;
200
+ }, {
201
201
  status: Status;
202
202
  organisation_id: string;
203
203
  file_type: FileType;
204
+ fleet_fuel_refill_id: string;
204
205
  file_url?: string | undefined;
205
206
  file_key?: string | undefined;
206
207
  file_name?: string | undefined;
@@ -210,19 +211,7 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
210
211
  }>, "many">>>;
211
212
  }, "strip", z.ZodTypeAny, {
212
213
  odometer_reading: number;
213
- is_full_tank: YesNo;
214
- is_previous_entries_missed: YesNo;
215
214
  date_time: string;
216
- invoice_number: string;
217
- payment_mode: PaymentMode;
218
- payment_status: PaymentStatus;
219
- payment_reference_number: string;
220
- fuel_card_number: string;
221
- payment_notes: string;
222
- refill_method: RefillMethod;
223
- refill_details: string;
224
- payment_details: string;
225
- filled_by_person: string;
226
215
  entry_source: RefillEntrySource;
227
216
  source_reference_id: string;
228
217
  source_notes: string;
@@ -235,13 +224,24 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
235
224
  vehicle_id: string;
236
225
  driver_id: string;
237
226
  device_id: string;
238
- vendor_id: string;
239
- fuel_station_id: string;
240
227
  vehicle_fuel_type_id: string;
241
228
  vehicle_fuel_unit_id: string;
242
229
  time_zone_id: string;
230
+ is_full_tank: YesNo;
231
+ is_previous_entries_missed: YesNo;
232
+ invoice_number: string;
233
+ payment_mode: PaymentMode;
234
+ payment_status: PaymentStatus;
235
+ payment_reference_number: string;
236
+ fuel_card_number: string;
237
+ payment_notes: string;
238
+ refill_method: RefillMethod;
239
+ refill_details: string;
240
+ payment_details: string;
241
+ filled_by_person: string;
242
+ vendor_id: string;
243
+ fuel_station_id: string;
243
244
  refill_files: {
244
- fleet_fuel_refill_id: string;
245
245
  status: Status;
246
246
  organisation_id: string;
247
247
  file_type: FileType;
@@ -251,22 +251,19 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
251
251
  file_description: string;
252
252
  file_size: number;
253
253
  file_metadata: Record<string, any>;
254
+ fleet_fuel_refill_id: string;
254
255
  }[];
256
+ cost_per_unit?: number | undefined;
257
+ total_cost?: number | undefined;
258
+ latitude?: number | undefined;
259
+ longitude?: number | undefined;
255
260
  before_refill_quantity?: number | undefined;
256
261
  after_refill_quantity?: number | undefined;
257
262
  refill_quantity?: number | undefined;
258
263
  verified_refill_quantity?: number | undefined;
259
264
  diff_refill_quantity?: number | undefined;
260
- cost_per_unit?: number | undefined;
261
- total_cost?: number | undefined;
262
- latitude?: number | undefined;
263
- longitude?: number | undefined;
264
265
  }, {
265
- is_full_tank: YesNo;
266
- is_previous_entries_missed: YesNo;
267
266
  date_time: string;
268
- payment_mode: PaymentMode;
269
- payment_status: PaymentStatus;
270
267
  admin_verify_status: GPSFuelApproveStatus;
271
268
  transporter_verify_status: GPSFuelApproveStatus;
272
269
  status: Status;
@@ -275,19 +272,29 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
275
272
  vehicle_id: string;
276
273
  driver_id: string;
277
274
  device_id: string;
278
- vendor_id: string;
279
- fuel_station_id: string;
280
275
  vehicle_fuel_type_id: string;
281
276
  vehicle_fuel_unit_id: string;
282
277
  time_zone_id: string;
278
+ is_full_tank: YesNo;
279
+ is_previous_entries_missed: YesNo;
280
+ payment_mode: PaymentMode;
281
+ payment_status: PaymentStatus;
282
+ vendor_id: string;
283
+ fuel_station_id: string;
284
+ odometer_reading?: unknown;
285
+ cost_per_unit?: unknown;
286
+ total_cost?: unknown;
287
+ entry_source?: RefillEntrySource | undefined;
288
+ source_reference_id?: string | undefined;
289
+ source_notes?: string | undefined;
290
+ latitude?: unknown;
291
+ longitude?: unknown;
292
+ google_location?: string | undefined;
283
293
  before_refill_quantity?: unknown;
284
294
  after_refill_quantity?: unknown;
285
295
  refill_quantity?: unknown;
286
296
  verified_refill_quantity?: unknown;
287
297
  diff_refill_quantity?: unknown;
288
- odometer_reading?: unknown;
289
- cost_per_unit?: unknown;
290
- total_cost?: unknown;
291
298
  invoice_number?: string | undefined;
292
299
  payment_reference_number?: string | undefined;
293
300
  fuel_card_number?: string | undefined;
@@ -296,17 +303,11 @@ declare const FleetFuelRefillSchema: z.ZodObject<{
296
303
  refill_details?: string | undefined;
297
304
  payment_details?: string | undefined;
298
305
  filled_by_person?: string | undefined;
299
- entry_source?: RefillEntrySource | undefined;
300
- source_reference_id?: string | undefined;
301
- source_notes?: string | undefined;
302
- latitude?: unknown;
303
- longitude?: unknown;
304
- google_location?: string | undefined;
305
306
  refill_files?: {
306
- fleet_fuel_refill_id: string;
307
307
  status: Status;
308
308
  organisation_id: string;
309
309
  file_type: FileType;
310
+ fleet_fuel_refill_id: string;
310
311
  file_url?: string | undefined;
311
312
  file_key?: string | undefined;
312
313
  file_name?: string | undefined;
@@ -392,13 +393,13 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
392
393
  vehicle_ids: string[];
393
394
  driver_ids: string[];
394
395
  device_ids: string[];
395
- vendor_ids: string[];
396
- fuel_station_ids: string[];
397
396
  vehicle_fuel_type_ids: string[];
398
397
  vehicle_fuel_unit_ids: string[];
399
- fleet_fuel_refill_ids: string[];
400
398
  from_date: string;
401
399
  to_date: string;
400
+ vendor_ids: string[];
401
+ fuel_station_ids: string[];
402
+ fleet_fuel_refill_ids: string[];
402
403
  }, {
403
404
  time_zone_id: string;
404
405
  date_format_id: string;
@@ -431,10 +432,10 @@ declare const FleetFuelRefillQuerySchema: z.ZodObject<{
431
432
  vehicle_ids?: string[] | undefined;
432
433
  driver_ids?: string[] | undefined;
433
434
  device_ids?: string[] | undefined;
434
- vendor_ids?: string[] | undefined;
435
- fuel_station_ids?: string[] | undefined;
436
435
  vehicle_fuel_type_ids?: string[] | undefined;
437
436
  vehicle_fuel_unit_ids?: string[] | undefined;
437
+ vendor_ids?: string[] | undefined;
438
+ fuel_station_ids?: string[] | undefined;
438
439
  fleet_fuel_refill_ids?: string[] | undefined;
439
440
  }>;
440
441
  type FleetFuelRefillQueryDTO = z.infer<typeof FleetFuelRefillQuerySchema>;
@@ -17,6 +17,7 @@ interface FleetFuelRemoval extends Record<string, unknown> {
17
17
  diff_removal_quantity: number;
18
18
  odometer_reading?: number;
19
19
  date_time: string;
20
+ date?: string;
20
21
  date_time_f?: string;
21
22
  cost_per_unit?: number;
22
23
  total_cost?: number;
@@ -93,6 +94,7 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
93
94
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
94
95
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
95
96
  }, "strip", z.ZodTypeAny, {
97
+ fleet_fuel_removal_id: string;
96
98
  status: Status;
97
99
  organisation_id: string;
98
100
  file_type: FileType;
@@ -102,12 +104,11 @@ declare const FleetFuelRemovalFileSchema: z.ZodObject<{
102
104
  file_description: string;
103
105
  file_size: number;
104
106
  file_metadata: Record<string, any>;
105
- fleet_fuel_removal_id: string;
106
107
  }, {
108
+ fleet_fuel_removal_id: string;
107
109
  status: Status;
108
110
  organisation_id: string;
109
111
  file_type: FileType;
110
- fleet_fuel_removal_id: string;
111
112
  file_url?: string | undefined;
112
113
  file_key?: string | undefined;
113
114
  file_name?: string | undefined;
@@ -157,6 +158,7 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
157
158
  file_metadata: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
158
159
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
159
160
  }, z.UnknownKeysParam, z.ZodTypeAny, {
161
+ fleet_fuel_removal_id: string;
160
162
  status: Status;
161
163
  organisation_id: string;
162
164
  file_type: FileType;
@@ -166,12 +168,11 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
166
168
  file_description: string;
167
169
  file_size: number;
168
170
  file_metadata: Record<string, any>;
169
- fleet_fuel_removal_id: string;
170
171
  }, {
172
+ fleet_fuel_removal_id: string;
171
173
  status: Status;
172
174
  organisation_id: string;
173
175
  file_type: FileType;
174
- fleet_fuel_removal_id: string;
175
176
  file_url?: string | undefined;
176
177
  file_key?: string | undefined;
177
178
  file_name?: string | undefined;
@@ -182,6 +183,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
182
183
  }, "strip", z.ZodTypeAny, {
183
184
  odometer_reading: number;
184
185
  date_time: string;
186
+ fuel_removal_reason_id: string;
187
+ removal_details: string;
185
188
  entry_source: RefillEntrySource;
186
189
  source_reference_id: string;
187
190
  source_notes: string;
@@ -197,9 +200,8 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
197
200
  vehicle_fuel_type_id: string;
198
201
  vehicle_fuel_unit_id: string;
199
202
  time_zone_id: string;
200
- fuel_removal_reason_id: string;
201
- removal_details: string;
202
203
  removal_files: {
204
+ fleet_fuel_removal_id: string;
203
205
  status: Status;
204
206
  organisation_id: string;
205
207
  file_type: FileType;
@@ -209,19 +211,19 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
209
211
  file_description: string;
210
212
  file_size: number;
211
213
  file_metadata: Record<string, any>;
212
- fleet_fuel_removal_id: string;
213
214
  }[];
214
- cost_per_unit?: number | undefined;
215
- total_cost?: number | undefined;
216
- latitude?: number | undefined;
217
- longitude?: number | undefined;
218
215
  before_removal_quantity?: number | undefined;
219
216
  after_removal_quantity?: number | undefined;
220
217
  removal_quantity?: number | undefined;
221
218
  verified_removal_quantity?: number | undefined;
222
219
  diff_removal_quantity?: number | undefined;
220
+ cost_per_unit?: number | undefined;
221
+ total_cost?: number | undefined;
222
+ latitude?: number | undefined;
223
+ longitude?: number | undefined;
223
224
  }, {
224
225
  date_time: string;
226
+ fuel_removal_reason_id: string;
225
227
  admin_verify_status: GPSFuelApproveStatus;
226
228
  transporter_verify_status: GPSFuelApproveStatus;
227
229
  status: Status;
@@ -233,27 +235,26 @@ declare const FleetFuelRemovalSchema: z.ZodObject<{
233
235
  vehicle_fuel_type_id: string;
234
236
  vehicle_fuel_unit_id: string;
235
237
  time_zone_id: string;
236
- fuel_removal_reason_id: string;
238
+ before_removal_quantity?: unknown;
239
+ after_removal_quantity?: unknown;
240
+ removal_quantity?: unknown;
241
+ verified_removal_quantity?: unknown;
242
+ diff_removal_quantity?: unknown;
237
243
  odometer_reading?: unknown;
238
244
  cost_per_unit?: unknown;
239
245
  total_cost?: unknown;
246
+ removal_details?: string | undefined;
240
247
  entry_source?: RefillEntrySource | undefined;
241
248
  source_reference_id?: string | undefined;
242
249
  source_notes?: string | undefined;
243
250
  latitude?: unknown;
244
251
  longitude?: unknown;
245
252
  google_location?: string | undefined;
246
- before_removal_quantity?: unknown;
247
- after_removal_quantity?: unknown;
248
- removal_quantity?: unknown;
249
- verified_removal_quantity?: unknown;
250
- diff_removal_quantity?: unknown;
251
- removal_details?: string | undefined;
252
253
  removal_files?: {
254
+ fleet_fuel_removal_id: string;
253
255
  status: Status;
254
256
  organisation_id: string;
255
257
  file_type: FileType;
256
- fleet_fuel_removal_id: string;
257
258
  file_url?: string | undefined;
258
259
  file_key?: string | undefined;
259
260
  file_name?: string | undefined;
@@ -339,9 +340,9 @@ declare const FleetFuelRemovalQuerySchema: z.ZodObject<{
339
340
  device_ids: string[];
340
341
  vehicle_fuel_type_ids: string[];
341
342
  vehicle_fuel_unit_ids: string[];
343
+ fuel_removal_reason_ids: string[];
342
344
  from_date: string;
343
345
  to_date: string;
344
- fuel_removal_reason_ids: string[];
345
346
  }, {
346
347
  time_zone_id: string;
347
348
  date_format_id: string;
@@ -28,21 +28,21 @@ declare const MasterFuelCompanySchema: z.ZodObject<{
28
28
  logo_key: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
29
29
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
30
30
  }, "strip", z.ZodTypeAny, {
31
- company_name: string;
32
31
  description: string;
33
- logo_url: string;
34
- logo_key: string;
35
32
  status: Status;
36
33
  organisation_id: string;
37
34
  country_id: string;
38
- }, {
35
+ logo_key: string;
36
+ logo_url: string;
39
37
  company_name: string;
38
+ }, {
40
39
  status: Status;
41
40
  organisation_id: string;
42
41
  country_id: string;
42
+ company_name: string;
43
43
  description?: string | undefined;
44
- logo_url?: string | undefined;
45
44
  logo_key?: string | undefined;
45
+ logo_url?: string | undefined;
46
46
  }>;
47
47
  type MasterFuelCompanyDTO = z.infer<typeof MasterFuelCompanySchema>;
48
48
  declare const MasterFuelCompanyQuerySchema: z.ZodObject<{
@@ -21,14 +21,14 @@ declare const MasterVendorDocumentTypeSchema: z.ZodObject<{
21
21
  description: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
22
22
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
23
23
  }, "strip", z.ZodTypeAny, {
24
+ document_type: string;
24
25
  description: string;
25
26
  status: Status;
26
27
  organisation_id: string;
27
- document_type: string;
28
28
  }, {
29
+ document_type: string;
29
30
  status: Status;
30
31
  organisation_id: string;
31
- document_type: string;
32
32
  description?: string | undefined;
33
33
  }>;
34
34
  type MasterVendorDocumentTypeDTO = z.infer<typeof MasterVendorDocumentTypeSchema>;
@@ -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>;
@@ -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;
27
28
  status: Status;
28
29
  organisation_id: string;
29
30
  description: string;
30
- removal_reason: string;
31
31
  }, {
32
+ removal_reason: string;
32
33
  status: Status;
33
34
  organisation_id: string;
34
- removal_reason: string;
35
35
  description?: string | undefined;
36
36
  }>;
37
37
  type MasterVehicleFuelRemovalReasonDTO = z.infer<typeof MasterVehicleFuelRemovalReasonSchema>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "6.0.11",
3
+ "version": "6.0.12",
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",