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

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[];
@@ -121,6 +121,7 @@ declare const GPSFuelVehicleDailySummaryQuerySchema: z.ZodObject<{
121
121
  day_summary: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<typeof YesNo>>>;
122
122
  }, "strip", z.ZodTypeAny, {
123
123
  status: Status[];
124
+ time_zone_id: string;
124
125
  search: string;
125
126
  paging: PAGING;
126
127
  page_count: number;
@@ -140,7 +141,6 @@ declare const GPSFuelVehicleDailySummaryQuerySchema: z.ZodObject<{
140
141
  }[];
141
142
  include_master_data: YesNo;
142
143
  date_format_id: string;
143
- time_zone_id: string;
144
144
  organisation_ids: string[];
145
145
  vehicle_ids: string[];
146
146
  device_ids: string[];
@@ -150,8 +150,8 @@ declare const GPSFuelVehicleDailySummaryQuerySchema: z.ZodObject<{
150
150
  vehicle_summary: YesNo;
151
151
  day_summary: YesNo;
152
152
  }, {
153
- date_format_id: string;
154
153
  time_zone_id: string;
154
+ date_format_id: string;
155
155
  from_date: string;
156
156
  to_date: string;
157
157
  status?: Status[] | undefined;
@@ -218,6 +218,7 @@ declare const GPSFuelVehicleMonthlySummaryQuerySchema: z.ZodObject<{
218
218
  to_date: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
219
219
  }, "strip", z.ZodTypeAny, {
220
220
  status: Status[];
221
+ time_zone_id: string;
221
222
  search: string;
222
223
  paging: PAGING;
223
224
  page_count: number;
@@ -237,14 +238,13 @@ declare const GPSFuelVehicleMonthlySummaryQuerySchema: z.ZodObject<{
237
238
  }[];
238
239
  include_master_data: YesNo;
239
240
  date_format_id: string;
240
- time_zone_id: string;
241
241
  organisation_ids: string[];
242
242
  vehicle_ids: string[];
243
243
  from_date: string;
244
244
  to_date: string;
245
245
  }, {
246
- date_format_id: string;
247
246
  time_zone_id: string;
247
+ date_format_id: string;
248
248
  from_date: string;
249
249
  to_date: string;
250
250
  status?: Status[] | undefined;
@@ -48,7 +48,7 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
48
48
  after_refill_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
49
49
  gps_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
50
50
  verified_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
- diff_refill_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
+ diff_refill_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
52
52
  admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
53
53
  transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
54
54
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -62,16 +62,11 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
62
62
  ll: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
63
63
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
64
64
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
65
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
65
66
  }, "strip", z.ZodTypeAny, {
66
- before_refill_fuel_liters: number;
67
- after_refill_fuel_liters: number;
68
- gps_refill_liters: number;
69
- verified_refill_liters: number;
70
- diff_refill_liters: number;
71
67
  admin_verify_status: GPSFuelApproveStatus;
72
68
  transporter_verify_status: GPSFuelApproveStatus;
73
69
  date_time: string;
74
- refill_details: string;
75
70
  gl: string;
76
71
  lid: string;
77
72
  ll: string;
@@ -82,10 +77,17 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
82
77
  device_id: string;
83
78
  driver_id: string;
84
79
  user_id: string;
80
+ time_zone_id: string;
81
+ before_refill_fuel_liters: number;
82
+ after_refill_fuel_liters: number;
83
+ gps_refill_liters: number;
84
+ verified_refill_liters: number;
85
+ refill_details: string;
85
86
  cost_per_liter?: number | undefined;
86
87
  total_cost?: number | undefined;
87
88
  latitude?: number | undefined;
88
89
  longitude?: number | undefined;
90
+ diff_refill_liters?: number | undefined;
89
91
  }, {
90
92
  admin_verify_status: GPSFuelApproveStatus;
91
93
  transporter_verify_status: GPSFuelApproveStatus;
@@ -96,20 +98,21 @@ declare const GPSFuelVehicleRefillSchema: z.ZodObject<{
96
98
  device_id: string;
97
99
  driver_id: string;
98
100
  user_id: string;
99
- before_refill_fuel_liters?: unknown;
100
- after_refill_fuel_liters?: unknown;
101
- gps_refill_liters?: unknown;
102
- verified_refill_liters?: unknown;
103
- diff_refill_liters?: unknown;
101
+ time_zone_id: string;
104
102
  cost_per_liter?: unknown;
105
103
  total_cost?: unknown;
106
- refill_details?: string | undefined;
107
104
  latitude?: unknown;
108
105
  longitude?: unknown;
109
106
  gl?: string | undefined;
110
107
  lid?: string | undefined;
111
108
  ll?: string | undefined;
112
109
  ld?: unknown;
110
+ before_refill_fuel_liters?: unknown;
111
+ after_refill_fuel_liters?: unknown;
112
+ gps_refill_liters?: unknown;
113
+ verified_refill_liters?: unknown;
114
+ diff_refill_liters?: unknown;
115
+ refill_details?: string | undefined;
113
116
  }>;
114
117
  type GPSFuelVehicleRefillDTO = z.infer<typeof GPSFuelVehicleRefillSchema>;
115
118
  declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
@@ -156,6 +159,7 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
156
159
  admin_verify_status: GPSFuelApproveStatus[];
157
160
  transporter_verify_status: GPSFuelApproveStatus[];
158
161
  status: Status[];
162
+ time_zone_id: string;
159
163
  search: string;
160
164
  paging: PAGING;
161
165
  page_count: number;
@@ -175,7 +179,6 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
175
179
  }[];
176
180
  include_master_data: YesNo;
177
181
  date_format_id: string;
178
- time_zone_id: string;
179
182
  organisation_ids: string[];
180
183
  user_ids: string[];
181
184
  vehicle_ids: string[];
@@ -184,8 +187,8 @@ declare const GPSFuelVehicleRefillQuerySchema: z.ZodObject<{
184
187
  from_date: string;
185
188
  to_date: string;
186
189
  }, {
187
- date_format_id: string;
188
190
  time_zone_id: string;
191
+ date_format_id: string;
189
192
  from_date: string;
190
193
  to_date: string;
191
194
  admin_verify_status?: GPSFuelApproveStatus[] | undefined;
@@ -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(
@@ -48,7 +48,7 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
48
48
  after_remove_fuel_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
49
49
  gps_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
50
50
  verified_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
- diff_removal_liters: z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>;
51
+ diff_removal_liters: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNumber>, number, unknown>>;
52
52
  admin_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
53
53
  transporter_verify_status: z.ZodType<GPSFuelApproveStatus, z.ZodTypeDef, GPSFuelApproveStatus>;
54
54
  date_time: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
@@ -62,10 +62,16 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
62
62
  ll: z.ZodDefault<z.ZodEffects<z.ZodString, string, string>>;
63
63
  ld: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
64
64
  status: z.ZodType<Status, z.ZodTypeDef, Status>;
65
+ time_zone_id: z.ZodEffects<z.ZodString, string, string>;
65
66
  }, "strip", z.ZodTypeAny, {
67
+ before_remove_fuel_liters: number;
68
+ after_remove_fuel_liters: number;
69
+ gps_removal_liters: number;
70
+ verified_removal_liters: number;
66
71
  admin_verify_status: GPSFuelApproveStatus;
67
72
  transporter_verify_status: GPSFuelApproveStatus;
68
73
  date_time: string;
74
+ removal_details: string;
69
75
  gl: string;
70
76
  lid: string;
71
77
  ll: string;
@@ -76,12 +82,8 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
76
82
  device_id: string;
77
83
  driver_id: string;
78
84
  user_id: string;
79
- before_remove_fuel_liters: number;
80
- after_remove_fuel_liters: number;
81
- gps_removal_liters: number;
82
- verified_removal_liters: number;
83
- diff_removal_liters: number;
84
- removal_details: string;
85
+ time_zone_id: string;
86
+ diff_removal_liters?: number | undefined;
85
87
  cost_per_liter?: number | undefined;
86
88
  total_cost?: number | undefined;
87
89
  latitude?: number | undefined;
@@ -96,20 +98,21 @@ declare const GPSFuelVehicleRemovalSchema: z.ZodObject<{
96
98
  device_id: string;
97
99
  driver_id: string;
98
100
  user_id: string;
101
+ time_zone_id: string;
102
+ before_remove_fuel_liters?: unknown;
103
+ after_remove_fuel_liters?: unknown;
104
+ gps_removal_liters?: unknown;
105
+ verified_removal_liters?: unknown;
106
+ diff_removal_liters?: unknown;
99
107
  cost_per_liter?: unknown;
100
108
  total_cost?: unknown;
109
+ removal_details?: string | undefined;
101
110
  latitude?: unknown;
102
111
  longitude?: unknown;
103
112
  gl?: string | undefined;
104
113
  lid?: string | undefined;
105
114
  ll?: string | undefined;
106
115
  ld?: unknown;
107
- before_remove_fuel_liters?: unknown;
108
- after_remove_fuel_liters?: unknown;
109
- gps_removal_liters?: unknown;
110
- verified_removal_liters?: unknown;
111
- diff_removal_liters?: unknown;
112
- removal_details?: string | undefined;
113
116
  }>;
114
117
  type GPSFuelVehicleRemovalDTO = z.infer<typeof GPSFuelVehicleRemovalSchema>;
115
118
  declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
@@ -156,6 +159,7 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
156
159
  admin_verify_status: GPSFuelApproveStatus[];
157
160
  transporter_verify_status: GPSFuelApproveStatus[];
158
161
  status: Status[];
162
+ time_zone_id: string;
159
163
  search: string;
160
164
  paging: PAGING;
161
165
  page_count: number;
@@ -175,7 +179,6 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
175
179
  }[];
176
180
  include_master_data: YesNo;
177
181
  date_format_id: string;
178
- time_zone_id: string;
179
182
  organisation_ids: string[];
180
183
  user_ids: string[];
181
184
  vehicle_ids: string[];
@@ -184,8 +187,8 @@ declare const GPSFuelVehicleRemovalQuerySchema: z.ZodObject<{
184
187
  from_date: string;
185
188
  to_date: string;
186
189
  }, {
187
- date_format_id: string;
188
190
  time_zone_id: string;
191
+ date_format_id: string;
189
192
  from_date: string;
190
193
  to_date: string;
191
194
  admin_verify_status?: GPSFuelApproveStatus[] | undefined;
@@ -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.2",
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",