vms-nest-prisma-api-document 5.0.1 → 5.0.3

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.
@@ -22,15 +22,15 @@ declare const UserLoginAnalyticsSchema: z.ZodObject<{
22
22
  }, "strip", z.ZodTypeAny, {
23
23
  user_id: string;
24
24
  organisation_id: string;
25
- login_from: LoginFrom;
26
25
  country_id: string;
26
+ login_from: LoginFrom;
27
27
  os_details: Record<string, any>;
28
28
  ip_details: Record<string, any>;
29
29
  }, {
30
30
  user_id: string;
31
31
  organisation_id: string;
32
- login_from: LoginFrom;
33
32
  country_id: string;
33
+ login_from: LoginFrom;
34
34
  os_details?: Record<string, any> | undefined;
35
35
  ip_details?: Record<string, any> | undefined;
36
36
  }>;
@@ -48,11 +48,11 @@ declare const UserLoginAnalyticsQuerySchema: z.ZodObject<{
48
48
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
49
49
  country_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
50
50
  }, "strip", z.ZodTypeAny, {
51
+ login_from: LoginFrom;
51
52
  search: string;
52
53
  paging: PAGING;
53
54
  page_count: number;
54
55
  page_index: number;
55
- login_from: LoginFrom;
56
56
  date_format_id: string;
57
57
  time_zone_id: string;
58
58
  user_ids: string[];
@@ -43,11 +43,11 @@ declare const UserPageAnalyticsQuerySchema: z.ZodObject<{
43
43
  user_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
44
44
  organisation_ids: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
45
45
  }, "strip", z.ZodTypeAny, {
46
+ login_from: LoginFrom;
46
47
  search: string;
47
48
  paging: PAGING;
48
49
  page_count: number;
49
50
  page_index: number;
50
- login_from: LoginFrom;
51
51
  date_format_id: string;
52
52
  time_zone_id: string;
53
53
  user_ids: string[];
@@ -47,36 +47,36 @@ declare const GPSFuelVehicleDailySummarySchema: z.ZodObject<{
47
47
  date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
48
48
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
49
49
  }, "strip", z.ZodTypeAny, {
50
+ start_fuel_liters: number;
51
+ end_fuel_liters: number;
52
+ total_km: number;
53
+ consumed_fuel_liters: number;
54
+ refills_count: number;
55
+ removals_count: number;
56
+ mileage: number;
57
+ date: string;
50
58
  status: Status;
51
59
  organisation_id: string;
52
60
  vehicle_id: string;
53
61
  device_id: string;
54
62
  driver_id: string;
55
- date: string;
56
- total_km: number;
57
- consumed_fuel_liters: number;
58
- refills_count: number;
59
63
  refills_liters: number;
60
- start_fuel_liters: number;
61
- end_fuel_liters: number;
62
- removals_count: number;
63
- mileage: number;
64
64
  removals_liters: number;
65
65
  }, {
66
+ date: string;
66
67
  status: Status;
67
68
  organisation_id: string;
68
69
  vehicle_id: string;
69
70
  device_id: string;
70
71
  driver_id: string;
71
- date: string;
72
+ start_fuel_liters?: unknown;
73
+ end_fuel_liters?: unknown;
72
74
  total_km?: unknown;
73
75
  consumed_fuel_liters?: unknown;
74
76
  refills_count?: unknown;
75
- refills_liters?: unknown;
76
- start_fuel_liters?: unknown;
77
- end_fuel_liters?: unknown;
78
77
  removals_count?: unknown;
79
78
  mileage?: unknown;
79
+ refills_liters?: unknown;
80
80
  removals_liters?: unknown;
81
81
  }>;
82
82
  type GPSFuelVehicleDailySummaryDTO = z.infer<typeof GPSFuelVehicleDailySummarySchema>;
@@ -15,6 +15,7 @@ interface GPSFuelVehicleRefill extends Record<string, unknown> {
15
15
  admin_verify_status: GPSFuelApproveStatus;
16
16
  transporter_verify_status: GPSFuelApproveStatus;
17
17
  date_time: string;
18
+ date_time_f: string;
18
19
  cost_per_liter?: number;
19
20
  total_cost?: number;
20
21
  refill_details?: string;
@@ -48,7 +49,7 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
48
49
  after_refill_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
49
50
  gps_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
50
51
  verified_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
- diff_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
52
+ diff_refill_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
52
53
  admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
53
54
  transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
54
55
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -62,40 +63,49 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
62
63
  ll: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
63
64
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
64
65
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
66
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
65
67
  }, "strip", z.ZodTypeAny, {
68
+ status: Status;
69
+ organisation_id: string;
70
+ vehicle_id: string;
71
+ device_id: string;
72
+ driver_id: string;
73
+ time_zone_id: string;
74
+ user_id: string;
75
+ gl: string;
76
+ lid: string;
77
+ ll: string;
78
+ ld: number;
66
79
  before_refill_fuel_liters: number;
67
80
  after_refill_fuel_liters: number;
68
81
  gps_refill_liters: number;
69
82
  verified_refill_liters: number;
70
- diff_refill_liters: number;
71
83
  admin_verify_status: GPSFuelApproveStatus;
72
84
  transporter_verify_status: GPSFuelApproveStatus;
73
85
  date_time: string;
74
86
  refill_details: string;
75
- gl: string;
76
- lid: string;
77
- ll: string;
78
- ld: number;
79
- status: Status;
80
- organisation_id: string;
81
- vehicle_id: string;
82
- device_id: string;
83
- driver_id: string;
84
- user_id: string;
85
- cost_per_liter?: number | undefined;
86
- total_cost?: number | undefined;
87
87
  latitude?: number | undefined;
88
88
  longitude?: number | undefined;
89
+ diff_refill_liters?: number | undefined;
90
+ cost_per_liter?: number | undefined;
91
+ total_cost?: number | undefined;
89
92
  }, {
90
- admin_verify_status: GPSFuelApproveStatus;
91
- transporter_verify_status: GPSFuelApproveStatus;
92
- date_time: string;
93
93
  status: Status;
94
94
  organisation_id: string;
95
95
  vehicle_id: string;
96
96
  device_id: string;
97
97
  driver_id: string;
98
+ time_zone_id: string;
98
99
  user_id: string;
100
+ admin_verify_status: GPSFuelApproveStatus;
101
+ transporter_verify_status: GPSFuelApproveStatus;
102
+ date_time: string;
103
+ latitude?: unknown;
104
+ longitude?: unknown;
105
+ gl?: string | undefined;
106
+ lid?: string | undefined;
107
+ ll?: string | undefined;
108
+ ld?: unknown;
99
109
  before_refill_fuel_liters?: unknown;
100
110
  after_refill_fuel_liters?: unknown;
101
111
  gps_refill_liters?: unknown;
@@ -104,12 +114,6 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
104
114
  cost_per_liter?: unknown;
105
115
  total_cost?: unknown;
106
116
  refill_details?: string | undefined;
107
- latitude?: unknown;
108
- longitude?: unknown;
109
- gl?: string | undefined;
110
- lid?: string | undefined;
111
- ll?: string | undefined;
112
- ld?: unknown;
113
117
  }>;
114
118
  type GPSFuelVehicleRefillDTO = z.infer<typeof GPSFuelVehicleRefillSchema>;
115
119
  declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
@@ -153,8 +157,6 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
153
157
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
154
158
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
155
159
  }, "strip", z.ZodTypeAny, {
156
- admin_verify_status: GPSFuelApproveStatus[];
157
- transporter_verify_status: GPSFuelApproveStatus[];
158
160
  status: Status[];
159
161
  search: string;
160
162
  paging: PAGING;
@@ -177,19 +179,19 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
177
179
  date_format_id: string;
178
180
  time_zone_id: string;
179
181
  organisation_ids: string[];
180
- user_ids: string[];
181
182
  vehicle_ids: string[];
182
183
  device_ids: string[];
183
184
  driver_ids: string[];
184
185
  from_date: string;
185
186
  to_date: string;
187
+ user_ids: string[];
188
+ admin_verify_status: GPSFuelApproveStatus[];
189
+ transporter_verify_status: GPSFuelApproveStatus[];
186
190
  }, {
187
191
  date_format_id: string;
188
192
  time_zone_id: string;
189
193
  from_date: string;
190
194
  to_date: string;
191
- admin_verify_status?: GPSFuelApproveStatus[] | undefined;
192
- transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
193
195
  status?: Status[] | undefined;
194
196
  search?: string | undefined;
195
197
  paging?: PAGING | undefined;
@@ -210,10 +212,12 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
210
212
  }[] | undefined;
211
213
  include_master_data?: YesNo | undefined;
212
214
  organisation_ids?: string[] | undefined;
213
- user_ids?: string[] | undefined;
214
215
  vehicle_ids?: string[] | undefined;
215
216
  device_ids?: string[] | undefined;
216
217
  driver_ids?: string[] | undefined;
218
+ user_ids?: string[] | undefined;
219
+ admin_verify_status?: GPSFuelApproveStatus[] | undefined;
220
+ transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
217
221
  }>;
218
222
  type GPSFuelVehicleRefillQueryDTO = z.infer<typeof GPSFuelVehicleRefillQuerySchema>;
219
223
  declare const toGPSFuelVehicleRefillPayload: (data: GPSFuelVehicleRefill) => GPSFuelVehicleRefillDTO;
@@ -305,7 +305,7 @@ var GPSFuelVehicleRefillSchema = z3.object({
305
305
  after_refill_fuel_liters: doubleMandatory("After Refill Fuel Liters"),
306
306
  gps_refill_liters: doubleMandatory("GPS Refill Liters"),
307
307
  verified_refill_liters: doubleMandatory("Verified Refill Liters"),
308
- diff_refill_liters: doubleMandatory("Difference Refill Liters"),
308
+ diff_refill_liters: doubleOptional("Difference Refill Liters"),
309
309
  admin_verify_status: enumMandatory(
310
310
  "Admin GPS Fuel Verify Status",
311
311
  GPSFuelApproveStatus,
@@ -326,7 +326,8 @@ var GPSFuelVehicleRefillSchema = z3.object({
326
326
  lid: stringOptional("LID", 0, 300),
327
327
  ll: stringOptional("LL", 0, 300),
328
328
  ld: numberOptional("LD"),
329
- status: enumMandatory("Status", Status, "Active" /* Active */)
329
+ status: enumMandatory("Status", Status, "Active" /* Active */),
330
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
330
331
  });
331
332
  var GPSFuelVehicleRefillQuerySchema = BaseQuerySchema.extend({
332
333
  organisation_ids: multi_select_optional("User Organisation IDs"),
@@ -375,7 +376,8 @@ var toGPSFuelVehicleRefillPayload = (data) => ({
375
376
  lid: data.lid || "",
376
377
  ll: data.ll || "",
377
378
  ld: data.ld || 0,
378
- status: data.status
379
+ status: data.status,
380
+ time_zone_id: ""
379
381
  });
380
382
  var newGPSFuelVehicleRefillPayload = () => ({
381
383
  organisation_id: "",
@@ -400,7 +402,8 @@ var newGPSFuelVehicleRefillPayload = () => ({
400
402
  lid: "",
401
403
  ll: "",
402
404
  ld: 0,
403
- status: "Active" /* Active */
405
+ status: "Active" /* Active */,
406
+ time_zone_id: ""
404
407
  });
405
408
  var findGPSFuelVehicleRefills = async (data) => {
406
409
  return apiPost(
@@ -15,6 +15,7 @@ interface GPSFuelVehicleRemoval extends Record<string, unknown> {
15
15
  admin_verify_status: GPSFuelApproveStatus;
16
16
  transporter_verify_status: GPSFuelApproveStatus;
17
17
  date_time: string;
18
+ date_time_f: string;
18
19
  cost_per_liter?: number;
19
20
  total_cost?: number;
20
21
  removal_details?: string;
@@ -48,7 +49,7 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
48
49
  after_remove_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
49
50
  gps_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
50
51
  verified_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
- diff_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
52
+ diff_removal_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
52
53
  admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
53
54
  transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
54
55
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -62,48 +63,51 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
62
63
  ll: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
63
64
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
64
65
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
66
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
65
67
  }, "strip", z.ZodTypeAny, {
66
- admin_verify_status: GPSFuelApproveStatus;
67
- transporter_verify_status: GPSFuelApproveStatus;
68
- date_time: string;
69
- gl: string;
70
- lid: string;
71
- ll: string;
72
- ld: number;
73
68
  status: Status;
74
69
  organisation_id: string;
75
70
  vehicle_id: string;
76
71
  device_id: string;
77
72
  driver_id: string;
73
+ time_zone_id: string;
78
74
  user_id: string;
75
+ gl: string;
76
+ lid: string;
77
+ ll: string;
78
+ ld: number;
79
+ admin_verify_status: GPSFuelApproveStatus;
80
+ transporter_verify_status: GPSFuelApproveStatus;
81
+ date_time: string;
79
82
  before_remove_fuel_liters: number;
80
83
  after_remove_fuel_liters: number;
81
84
  gps_removal_liters: number;
82
85
  verified_removal_liters: number;
83
- diff_removal_liters: number;
84
86
  removal_details: string;
85
- cost_per_liter?: number | undefined;
86
- total_cost?: number | undefined;
87
87
  latitude?: number | undefined;
88
88
  longitude?: number | undefined;
89
+ cost_per_liter?: number | undefined;
90
+ total_cost?: number | undefined;
91
+ diff_removal_liters?: number | undefined;
89
92
  }, {
90
- admin_verify_status: GPSFuelApproveStatus;
91
- transporter_verify_status: GPSFuelApproveStatus;
92
- date_time: string;
93
93
  status: Status;
94
94
  organisation_id: string;
95
95
  vehicle_id: string;
96
96
  device_id: string;
97
97
  driver_id: string;
98
+ time_zone_id: string;
98
99
  user_id: string;
99
- cost_per_liter?: unknown;
100
- total_cost?: unknown;
100
+ admin_verify_status: GPSFuelApproveStatus;
101
+ transporter_verify_status: GPSFuelApproveStatus;
102
+ date_time: string;
101
103
  latitude?: unknown;
102
104
  longitude?: unknown;
103
105
  gl?: string | undefined;
104
106
  lid?: string | undefined;
105
107
  ll?: string | undefined;
106
108
  ld?: unknown;
109
+ cost_per_liter?: unknown;
110
+ total_cost?: unknown;
107
111
  before_remove_fuel_liters?: unknown;
108
112
  after_remove_fuel_liters?: unknown;
109
113
  gps_removal_liters?: unknown;
@@ -153,8 +157,6 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
153
157
  from_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
154
158
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
155
159
  }, "strip", z.ZodTypeAny, {
156
- admin_verify_status: GPSFuelApproveStatus[];
157
- transporter_verify_status: GPSFuelApproveStatus[];
158
160
  status: Status[];
159
161
  search: string;
160
162
  paging: PAGING;
@@ -177,19 +179,19 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
177
179
  date_format_id: string;
178
180
  time_zone_id: string;
179
181
  organisation_ids: string[];
180
- user_ids: string[];
181
182
  vehicle_ids: string[];
182
183
  device_ids: string[];
183
184
  driver_ids: string[];
184
185
  from_date: string;
185
186
  to_date: string;
187
+ user_ids: string[];
188
+ admin_verify_status: GPSFuelApproveStatus[];
189
+ transporter_verify_status: GPSFuelApproveStatus[];
186
190
  }, {
187
191
  date_format_id: string;
188
192
  time_zone_id: string;
189
193
  from_date: string;
190
194
  to_date: string;
191
- admin_verify_status?: GPSFuelApproveStatus[] | undefined;
192
- transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
193
195
  status?: Status[] | undefined;
194
196
  search?: string | undefined;
195
197
  paging?: PAGING | undefined;
@@ -210,10 +212,12 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
210
212
  }[] | undefined;
211
213
  include_master_data?: YesNo | undefined;
212
214
  organisation_ids?: string[] | undefined;
213
- user_ids?: string[] | undefined;
214
215
  vehicle_ids?: string[] | undefined;
215
216
  device_ids?: string[] | undefined;
216
217
  driver_ids?: string[] | undefined;
218
+ user_ids?: string[] | undefined;
219
+ admin_verify_status?: GPSFuelApproveStatus[] | undefined;
220
+ transporter_verify_status?: GPSFuelApproveStatus[] | undefined;
217
221
  }>;
218
222
  type GPSFuelVehicleRemovalQueryDTO = z.infer<typeof GPSFuelVehicleRemovalQuerySchema>;
219
223
  declare const toGPSFuelVehicleRemovalPayload: (item: GPSFuelVehicleRemoval) => GPSFuelVehicleRemovalDTO;
@@ -305,7 +305,7 @@ var GPSFuelVehicleRemovalSchema = z3.object({
305
305
  after_remove_fuel_liters: doubleMandatory("Before Remove Fuel Liters"),
306
306
  gps_removal_liters: doubleMandatory("GPS Removal Liters"),
307
307
  verified_removal_liters: doubleMandatory("Verified Removal Liters"),
308
- diff_removal_liters: doubleMandatory("Difference Removal Liters"),
308
+ diff_removal_liters: doubleOptional("Difference Removal Liters"),
309
309
  admin_verify_status: enumMandatory(
310
310
  "Admin GPS Fuel Status",
311
311
  GPSFuelApproveStatus,
@@ -326,7 +326,8 @@ var GPSFuelVehicleRemovalSchema = z3.object({
326
326
  lid: stringOptional("LID", 0, 300),
327
327
  ll: stringOptional("LL", 0, 300),
328
328
  ld: numberOptional("LD"),
329
- status: enumMandatory("Status", Status, "Active" /* Active */)
329
+ status: enumMandatory("Status", Status, "Active" /* Active */),
330
+ time_zone_id: single_select_mandatory("MasterMainTimeZone")
330
331
  });
331
332
  var GPSFuelVehicleRemovalQuerySchema = BaseQuerySchema.extend({
332
333
  organisation_ids: multi_select_optional("User Organisation IDs"),
@@ -375,7 +376,8 @@ var toGPSFuelVehicleRemovalPayload = (item) => ({
375
376
  lid: item.lid || "",
376
377
  ll: item.ll || "",
377
378
  ld: item.ld || 0,
378
- status: item.status
379
+ status: item.status,
380
+ time_zone_id: ""
379
381
  });
380
382
  var newGPSFuelVehicleRemovalPayload = () => ({
381
383
  organisation_id: "",
@@ -400,7 +402,8 @@ var newGPSFuelVehicleRemovalPayload = () => ({
400
402
  lid: "",
401
403
  ll: "",
402
404
  ld: 0,
403
- status: "Active" /* Active */
405
+ status: "Active" /* Active */,
406
+ time_zone_id: ""
404
407
  });
405
408
  var findGPSFuelVehicleRemovals = async (data) => {
406
409
  return apiPost(
@@ -59,8 +59,6 @@ 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;
64
62
  geofence_name: string;
65
63
  location_name: string;
66
64
  geofence_type: GeofenceType;
@@ -70,19 +68,21 @@ declare const GPSGeofenceDataSchema: z.ZodObject<{
70
68
  }[];
71
69
  geofence_description: string;
72
70
  geofence_purpose_type: GeofencePurposeType;
71
+ status: Status;
72
+ organisation_id: string;
73
+ radius_km?: number | undefined;
73
74
  latitude?: number | undefined;
74
75
  longitude?: number | undefined;
75
- radius_km?: number | undefined;
76
76
  }, {
77
- status: Status;
78
- organisation_id: string;
79
77
  geofence_name: string;
80
78
  location_name: string;
81
79
  geofence_type: GeofenceType;
82
80
  geofence_purpose_type: GeofencePurposeType;
81
+ status: Status;
82
+ organisation_id: string;
83
+ radius_km?: unknown;
83
84
  latitude?: unknown;
84
85
  longitude?: unknown;
85
- radius_km?: unknown;
86
86
  poliline_data?: {
87
87
  latitude?: unknown;
88
88
  longitude?: unknown;
@@ -125,6 +125,8 @@ 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[];
128
130
  status: Status[];
129
131
  search: string;
130
132
  paging: PAGING;
@@ -147,11 +149,11 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
147
149
  date_format_id: string;
148
150
  time_zone_id: string;
149
151
  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;
155
157
  status?: Status[] | undefined;
156
158
  search?: string | undefined;
157
159
  paging?: PAGING | undefined;
@@ -172,8 +174,6 @@ declare const GPSGeofenceDataQuerySchema: z.ZodObject<{
172
174
  }[] | undefined;
173
175
  include_master_data?: YesNo | undefined;
174
176
  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,19 +31,19 @@ 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
35
  status: Status;
35
36
  organisation_id: string;
36
- vehicle_id: string;
37
37
  driver_id: string;
38
- gps_geofence_id: string;
38
+ vehicle_id: string;
39
39
  geofence_status_type: GeofenceStatusType;
40
40
  geofence_time: string;
41
41
  }, {
42
+ gps_geofence_id: string;
42
43
  status: Status;
43
44
  organisation_id: string;
44
- vehicle_id: string;
45
45
  driver_id: string;
46
- gps_geofence_id: string;
46
+ vehicle_id: string;
47
47
  geofence_status_type: GeofenceStatusType;
48
48
  geofence_time: string;
49
49
  }>;
@@ -40,27 +40,27 @@ 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
- duration_seconds: number;
43
+ gps_geofence_id: string;
44
44
  status: Status;
45
45
  organisation_id: string;
46
- vehicle_id: string;
47
46
  driver_id: string;
48
- gps_geofence_id: string;
47
+ vehicle_id: string;
49
48
  geofence_enter_date_time: string;
50
49
  geofence_exit_date_time: string;
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;
54
55
  status: Status;
55
56
  organisation_id: string;
56
- vehicle_id: string;
57
57
  driver_id: string;
58
- gps_geofence_id: string;
58
+ vehicle_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;
62
- duration_seconds?: unknown;
63
62
  geofence_exit_date_time?: string | undefined;
63
+ duration_seconds?: unknown;
64
64
  }>;
65
65
  type GPSGeofenceTransactionSummaryDTO = z.infer<typeof GPSGeofenceTransactionSummarySchema>;
66
66
  declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
@@ -125,9 +125,9 @@ declare const GPSGeofenceTransactionSummaryQuerySchema: z.ZodObject<{
125
125
  organisation_ids: string[];
126
126
  vehicle_ids: string[];
127
127
  driver_ids: string[];
128
+ gps_geofence_ids: string[];
128
129
  from_date: string;
129
130
  to_date: string;
130
- gps_geofence_ids: string[];
131
131
  }, {
132
132
  date_format_id: string;
133
133
  time_zone_id: string;
@@ -62,19 +62,19 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
62
62
  mileage: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
63
63
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
64
64
  }, "strip", z.ZodTypeAny, {
65
+ status: Status;
66
+ organisation_id: string;
67
+ driver_id: string;
68
+ vehicle_id: string;
69
+ duration_seconds: number;
65
70
  from_geofence_exit_date_time: string;
66
71
  to_geofence_enter_date_time: string;
67
- duration_seconds: number;
68
72
  travel_duration_seconds: number;
69
73
  stopped_duration_seconds: number;
70
74
  max_speed: number;
71
75
  avg_speed: number;
72
76
  refills_count: number;
73
77
  removals_count: number;
74
- status: Status;
75
- organisation_id: string;
76
- vehicle_id: string;
77
- driver_id: string;
78
78
  from_geofence_id: string;
79
79
  to_geofence_id: string;
80
80
  distance_meters?: number | undefined;
@@ -85,12 +85,12 @@ declare const TripGeofenceToGeofenceSchema: z.ZodObject<{
85
85
  removal_fuel_liters?: number | undefined;
86
86
  mileage?: number | undefined;
87
87
  }, {
88
- from_geofence_exit_date_time: string;
89
- to_geofence_enter_date_time: string;
90
88
  status: Status;
91
89
  organisation_id: string;
92
- vehicle_id: string;
93
90
  driver_id: string;
91
+ vehicle_id: string;
92
+ from_geofence_exit_date_time: string;
93
+ to_geofence_enter_date_time: string;
94
94
  from_geofence_id: string;
95
95
  to_geofence_id: string;
96
96
  duration_seconds?: unknown;
@@ -172,10 +172,10 @@ declare const TripGeofenceToGeofenceQuerySchema: z.ZodObject<{
172
172
  organisation_ids: string[];
173
173
  vehicle_ids: string[];
174
174
  driver_ids: string[];
175
- from_geofence_ids: string[];
176
- to_geofence_ids: string[];
177
175
  from_date: string;
178
176
  to_date: string;
177
+ from_geofence_ids: string[];
178
+ to_geofence_ids: string[];
179
179
  }, {
180
180
  date_format_id: string;
181
181
  time_zone_id: string;
@@ -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 MasterMainFasttagSchema: 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 MasterMainFasttagDTO = z.infer<typeof MasterMainFasttagSchema>;
@@ -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;
@@ -19,11 +19,11 @@ declare const StaticPageSchema: z.ZodObject<{
19
19
  page_content: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
20
20
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
21
21
  }, "strip", z.ZodTypeAny, {
22
+ status: Status;
22
23
  page_name: string;
23
24
  page_code: string;
24
25
  page_url: string;
25
26
  page_content: string;
26
- status: Status;
27
27
  }, {
28
28
  status: Status;
29
29
  page_name?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vms-nest-prisma-api-document",
3
- "version": "5.0.1",
3
+ "version": "5.0.3",
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",